nyxora 1.6.3 → 1.6.4
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.
- package/CHANGELOG.md +23 -0
- package/package.json +3 -4
- package/packages/core/package.json +1 -2
- package/packages/core/src/gateway/setup.ts +3 -2
- package/packages/core/src/memory/logger.ts +21 -14
- package/packages/dashboard/dist/assets/index-CfIids2e.js +170 -0
- package/packages/dashboard/dist/index.html +1 -1
- package/packages/dashboard/package.json +7 -7
- package/packages/policy/package.json +1 -1
- package/packages/signer/package.json +1 -1
- package/packages/signer/src/server.ts +3 -2
- package/test-db.ts +3 -0
- package/packages/dashboard/dist/assets/index-BTP1WrFj.js +0 -194
- package/packages/dashboard/package-lock.json +0 -2748
|
@@ -0,0 +1,170 @@
|
|
|
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 nu={exports:{}},hl={},ru={exports:{}},O={};/**
|
|
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 ar=Symbol.for("react.element"),xc=Symbol.for("react.portal"),wc=Symbol.for("react.fragment"),kc=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),jc=Symbol.for("react.provider"),Nc=Symbol.for("react.context"),Cc=Symbol.for("react.forward_ref"),Ec=Symbol.for("react.suspense"),_c=Symbol.for("react.memo"),zc=Symbol.for("react.lazy"),Qo=Symbol.iterator;function Tc(e){return e===null||typeof e!="object"?null:(e=Qo&&e[Qo]||e["@@iterator"],typeof e=="function"?e:null)}var lu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},iu=Object.assign,ou={};function xn(e,t,n){this.props=e,this.context=t,this.refs=ou,this.updater=n||lu}xn.prototype.isReactComponent={};xn.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")};xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function su(){}su.prototype=xn.prototype;function Xi(e,t,n){this.props=e,this.context=t,this.refs=ou,this.updater=n||lu}var Zi=Xi.prototype=new su;Zi.constructor=Xi;iu(Zi,xn.prototype);Zi.isPureReactComponent=!0;var Ko=Array.isArray,uu=Object.prototype.hasOwnProperty,Ji={current:null},au={key:!0,ref:!0,__self:!0,__source:!0};function cu(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)uu.call(t,r)&&!au.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var a=Array(u),d=0;d<u;d++)a[d]=arguments[d+2];l.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:ar,type:e,key:i,ref:o,props:l,_owner:Ji.current}}function Pc(e,t){return{$$typeof:ar,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qi(e){return typeof e=="object"&&e!==null&&e.$$typeof===ar}function Lc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yo=/\/+/g;function Pl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lc(""+e.key):t.toString(36)}function Rr(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 ar:case xc:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Pl(o,0):r,Ko(l)?(n="",e!=null&&(n=e.replace(Yo,"$&/")+"/"),Rr(l,t,n,"",function(d){return d})):l!=null&&(qi(l)&&(l=Pc(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(Yo,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",Ko(e))for(var u=0;u<e.length;u++){i=e[u];var a=r+Pl(i,u);o+=Rr(i,t,n,a,l)}else if(a=Tc(e),typeof a=="function")for(e=a.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Pl(i,u++),o+=Rr(i,t,n,a,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 mr(e,t,n){if(e==null)return e;var r=[],l=0;return Rr(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Rc(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 fe={current:null},Ir={transition:null},Ic={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:Ir,ReactCurrentOwner:Ji};function du(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:mr,forEach:function(e,t,n){mr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mr(e,function(){t++}),t},toArray:function(e){return mr(e,function(t){return t})||[]},only:function(e){if(!qi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=xn;O.Fragment=wc;O.Profiler=Sc;O.PureComponent=Xi;O.StrictMode=kc;O.Suspense=Ec;O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ic;O.act=du;O.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=iu({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Ji.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in t)uu.call(t,a)&&!au.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&u!==void 0?u[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){u=Array(a);for(var d=0;d<a;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:ar,type:e.type,key:l,ref:i,props:r,_owner:o}};O.createContext=function(e){return e={$$typeof:Nc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jc,_context:e},e.Consumer=e};O.createElement=cu;O.createFactory=function(e){var t=cu.bind(null,e);return t.type=e,t};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:Cc,render:e}};O.isValidElement=qi;O.lazy=function(e){return{$$typeof:zc,_payload:{_status:-1,_result:e},_init:Rc}};O.memo=function(e,t){return{$$typeof:_c,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=Ir.transition;Ir.transition={};try{e()}finally{Ir.transition=t}};O.unstable_act=du;O.useCallback=function(e,t){return fe.current.useCallback(e,t)};O.useContext=function(e){return fe.current.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e){return fe.current.useDeferredValue(e)};O.useEffect=function(e,t){return fe.current.useEffect(e,t)};O.useId=function(){return fe.current.useId()};O.useImperativeHandle=function(e,t,n){return fe.current.useImperativeHandle(e,t,n)};O.useInsertionEffect=function(e,t){return fe.current.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return fe.current.useLayoutEffect(e,t)};O.useMemo=function(e,t){return fe.current.useMemo(e,t)};O.useReducer=function(e,t,n){return fe.current.useReducer(e,t,n)};O.useRef=function(e){return fe.current.useRef(e)};O.useState=function(e){return fe.current.useState(e)};O.useSyncExternalStore=function(e,t,n){return fe.current.useSyncExternalStore(e,t,n)};O.useTransition=function(){return fe.current.useTransition()};O.version="18.3.1";ru.exports=O;var I=ru.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 Mc=I,Oc=Symbol.for("react.element"),Dc=Symbol.for("react.fragment"),Fc=Object.prototype.hasOwnProperty,$c=Mc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ac={key:!0,ref:!0,__self:!0,__source:!0};function fu(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)Fc.call(t,r)&&!Ac.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:Oc,type:e,key:i,ref:o,props:l,_owner:$c.current}}hl.Fragment=Dc;hl.jsx=fu;hl.jsxs=fu;nu.exports=hl;var s=nu.exports,pu={exports:{}},Ce={},hu={exports:{}},mu={};/**
|
|
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(N,L){var R=N.length;N.push(L);e:for(;0<R;){var A=R-1>>>1,X=N[A];if(0<l(X,L))N[A]=L,N[R]=X,R=A;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var L=N[0],R=N.pop();if(R!==L){N[0]=R;e:for(var A=0,X=N.length,Ht=X>>>1;A<Ht;){var Me=2*(A+1)-1,Nn=N[Me],Oe=Me+1,Qt=N[Oe];if(0>l(Nn,R))Oe<X&&0>l(Qt,Nn)?(N[A]=Qt,N[Oe]=R,A=Oe):(N[A]=Nn,N[Me]=R,A=Me);else if(Oe<X&&0>l(Qt,R))N[A]=Qt,N[Oe]=R,A=Oe;else break e}}return L}function l(N,L){var R=N.sortIndex-L.sortIndex;return R!==0?R:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],d=[],v=1,y=null,h=3,m=!1,g=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=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(N){for(var L=n(d);L!==null;){if(L.callback===null)r(d);else if(L.startTime<=N)r(d),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(d)}}function w(N){if(x=!1,p(N),!g)if(n(a)!==null)g=!0,we(j);else{var L=n(d);L!==null&&Vt(w,L.startTime-N)}}function j(N,L){g=!1,x&&(x=!1,f(z),z=-1),m=!0;var R=h;try{for(p(L),y=n(a);y!==null&&(!(y.expirationTime>L)||N&&!_e());){var A=y.callback;if(typeof A=="function"){y.callback=null,h=y.priorityLevel;var X=A(y.expirationTime<=L);L=e.unstable_now(),typeof X=="function"?y.callback=X:y===n(a)&&r(a),p(L)}else r(a);y=n(a)}if(y!==null)var Ht=!0;else{var Me=n(d);Me!==null&&Vt(w,Me.startTime-L),Ht=!1}return Ht}finally{y=null,h=R,m=!1}}var E=!1,_=null,z=-1,$=5,M=-1;function _e(){return!(e.unstable_now()-M<$)}function Bt(){if(_!==null){var N=e.unstable_now();M=N;var L=!0;try{L=_(!0,N)}finally{L?ot():(E=!1,_=null)}}else E=!1}var ot;if(typeof c=="function")ot=function(){c(Bt)};else if(typeof MessageChannel<"u"){var Sn=new MessageChannel,jn=Sn.port2;Sn.port1.onmessage=Bt,ot=function(){jn.postMessage(null)}}else ot=function(){P(Bt,0)};function we(N){_=N,E||(E=!0,ot())}function Vt(N,L){z=P(function(){N(e.unstable_now())},L)}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(N){N.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,we(j))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var R=h;h=L;try{return N()}finally{h=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,L){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var R=h;h=N;try{return L()}finally{h=R}},e.unstable_scheduleCallback=function(N,L,R){var A=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?A+R:A):R=A,N){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=R+X,N={id:v++,callback:L,priorityLevel:N,startTime:R,expirationTime:X,sortIndex:-1},R>A?(N.sortIndex=R,t(d,N),n(a)===null&&N===n(d)&&(x?(f(z),z=-1):x=!0,Vt(w,R-A))):(N.sortIndex=X,t(a,N),g||m||(g=!0,we(j))),N},e.unstable_shouldYield=_e,e.unstable_wrapCallback=function(N){var L=h;return function(){var R=h;h=L;try{return N.apply(this,arguments)}finally{h=R}}}})(mu);hu.exports=mu;var Uc=hu.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 Wc=I,Ne=Uc;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 yu=new Set,Kn={};function Ut(e,t){fn(e,t),fn(e+"Capture",t)}function fn(e,t){for(Kn[e]=t,e=0;e<t.length;e++)yu.add(t[e])}var tt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ni=Object.prototype.hasOwnProperty,Bc=/^[: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]*$/,Go={},Xo={};function Vc(e){return ni.call(Xo,e)?!0:ni.call(Go,e)?!1:Bc.test(e)?Xo[e]=!0:(Go[e]=!0,!1)}function Hc(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 Qc(e,t,n,r){if(t===null||typeof t>"u"||Hc(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 pe(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 ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new pe(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){ie[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var bi=/[\-:]([a-z])/g;function eo(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(bi,eo);ie[t]=new pe(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(bi,eo);ie[t]=new pe(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(bi,eo);ie[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function to(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Qc(t,n,l,r)&&(n=null),r||l===null?Vc(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=Wc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yr=Symbol.for("react.element"),Yt=Symbol.for("react.portal"),Gt=Symbol.for("react.fragment"),no=Symbol.for("react.strict_mode"),ri=Symbol.for("react.profiler"),vu=Symbol.for("react.provider"),gu=Symbol.for("react.context"),ro=Symbol.for("react.forward_ref"),li=Symbol.for("react.suspense"),ii=Symbol.for("react.suspense_list"),lo=Symbol.for("react.memo"),ut=Symbol.for("react.lazy"),xu=Symbol.for("react.offscreen"),Zo=Symbol.iterator;function Cn(e){return e===null||typeof e!="object"?null:(e=Zo&&e[Zo]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,Ll;function In(e){if(Ll===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ll=t&&t[1]||""}return`
|
|
34
|
+
`+Ll+e}var Rl=!1;function Il(e,t){if(!e||Rl)return"";Rl=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),o=l.length-1,u=i.length-1;1<=o&&0<=u&&l[o]!==i[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==i[u]){if(o!==1||u!==1)do if(o--,u--,0>u||l[o]!==i[u]){var a=`
|
|
37
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?In(e):""}function Kc(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=Il(e.type,!1),e;case 11:return e=Il(e.type.render,!1),e;case 1:return e=Il(e.type,!0),e;default:return""}}function oi(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 Gt:return"Fragment";case Yt:return"Portal";case ri:return"Profiler";case no:return"StrictMode";case li:return"Suspense";case ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gu:return(e.displayName||"Context")+".Consumer";case vu:return(e._context.displayName||"Context")+".Provider";case ro:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lo:return t=e.displayName||null,t!==null?t:oi(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return oi(e(t))}catch{}}return null}function Yc(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 oi(t);case 8:return t===no?"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 St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gc(e){var t=wu(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 vr(e){e._valueTracker||(e._valueTracker=Gc(e))}function ku(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hr(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 si(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(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 Su(e,t){t=t.checked,t!=null&&to(e,"checked",t,!1)}function ui(e,t){Su(e,t);var n=St(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")?ai(e,t.type,n):t.hasOwnProperty("defaultValue")&&ai(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qo(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 ai(e,t,n){(t!=="number"||Hr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mn=Array.isArray;function on(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=""+St(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 ci(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bo(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(Mn(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:St(n)}}function ju(e,t){var n=St(t.value),r=St(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 es(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nu(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 di(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gr,Cu=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(gr=gr||document.createElement("div"),gr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gr.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 Fn={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},Xc=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){Xc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function Eu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function _u(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Eu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Zc=K({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 fi(e,t){if(t){if(Zc[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 pi(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 hi=null;function io(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,sn=null,un=null;function ts(e){if(e=fr(e)){if(typeof mi!="function")throw Error(S(280));var t=e.stateNode;t&&(t=xl(t),mi(e.stateNode,e.type,t))}}function zu(e){sn?un?un.push(e):un=[e]:sn=e}function Tu(){if(sn){var e=sn,t=un;if(un=sn=null,ts(e),t)for(e=0;e<t.length;e++)ts(t[e])}}function Pu(e,t){return e(t)}function Lu(){}var Ml=!1;function Ru(e,t,n){if(Ml)return e(t,n);Ml=!0;try{return Pu(e,t,n)}finally{Ml=!1,(sn!==null||un!==null)&&(Lu(),Tu())}}function Gn(e,t){var n=e.stateNode;if(n===null)return null;var r=xl(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 yi=!1;if(tt)try{var En={};Object.defineProperty(En,"passive",{get:function(){yi=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{yi=!1}function Jc(e,t,n,r,l,i,o,u,a){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(v){this.onError(v)}}var $n=!1,Qr=null,Kr=!1,vi=null,qc={onError:function(e){$n=!0,Qr=e}};function bc(e,t,n,r,l,i,o,u,a){$n=!1,Qr=null,Jc.apply(qc,arguments)}function ed(e,t,n,r,l,i,o,u,a){if(bc.apply(this,arguments),$n){if($n){var d=Qr;$n=!1,Qr=null}else throw Error(S(198));Kr||(Kr=!0,vi=d)}}function Wt(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 Iu(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 ns(e){if(Wt(e)!==e)throw Error(S(188))}function td(e){var t=e.alternate;if(!t){if(t=Wt(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 ns(l),e;if(i===r)return ns(l),t;i=i.sibling}throw Error(S(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,u=l.child;u;){if(u===n){o=!0,n=l,r=i;break}if(u===r){o=!0,r=l,n=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===n){o=!0,n=i,r=l;break}if(u===r){o=!0,r=i,n=l;break}u=u.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 Mu(e){return e=td(e),e!==null?Ou(e):null}function Ou(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ou(e);if(t!==null)return t;e=e.sibling}return null}var Du=Ne.unstable_scheduleCallback,rs=Ne.unstable_cancelCallback,nd=Ne.unstable_shouldYield,rd=Ne.unstable_requestPaint,J=Ne.unstable_now,ld=Ne.unstable_getCurrentPriorityLevel,oo=Ne.unstable_ImmediatePriority,Fu=Ne.unstable_UserBlockingPriority,Yr=Ne.unstable_NormalPriority,id=Ne.unstable_LowPriority,$u=Ne.unstable_IdlePriority,ml=null,Ge=null;function od(e){if(Ge&&typeof Ge.onCommitFiberRoot=="function")try{Ge.onCommitFiberRoot(ml,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:ad,sd=Math.log,ud=Math.LN2;function ad(e){return e>>>=0,e===0?32:31-(sd(e)/ud|0)|0}var xr=64,wr=4194304;function On(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 Gr(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 u=o&~l;u!==0?r=On(u):(i&=o,i!==0&&(r=On(i)))}else o=n&~l,o!==0?r=On(o):i!==0&&(r=On(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 cd(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 dd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Ue(i),u=1<<o,a=l[o];a===-1?(!(u&n)||u&r)&&(l[o]=cd(u,t)):a<=t&&(e.expiredLanes|=u),i&=~u}}function gi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Au(){var e=xr;return xr<<=1,!(xr&4194240)&&(xr=64),e}function Ol(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cr(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 fd(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 so(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 F=0;function Uu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wu,uo,Bu,Vu,Hu,xi=!1,kr=[],ht=null,mt=null,yt=null,Xn=new Map,Zn=new Map,ct=[],pd="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 ls(e,t){switch(e){case"focusin":case"focusout":ht=null;break;case"dragenter":case"dragleave":mt=null;break;case"mouseover":case"mouseout":yt=null;break;case"pointerover":case"pointerout":Xn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zn.delete(t.pointerId)}}function _n(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=fr(t),t!==null&&uo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function hd(e,t,n,r,l){switch(t){case"focusin":return ht=_n(ht,e,t,n,r,l),!0;case"dragenter":return mt=_n(mt,e,t,n,r,l),!0;case"mouseover":return yt=_n(yt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Xn.set(i,_n(Xn.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Zn.set(i,_n(Zn.get(i)||null,e,t,n,r,l)),!0}return!1}function Qu(e){var t=Pt(e.target);if(t!==null){var n=Wt(t);if(n!==null){if(t=n.tag,t===13){if(t=Iu(n),t!==null){e.blockedOn=t,Hu(e.priority,function(){Bu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);hi=r,n.target.dispatchEvent(r),hi=null}else return t=fr(n),t!==null&&uo(t),e.blockedOn=n,!1;t.shift()}return!0}function is(e,t,n){Mr(e)&&n.delete(t)}function md(){xi=!1,ht!==null&&Mr(ht)&&(ht=null),mt!==null&&Mr(mt)&&(mt=null),yt!==null&&Mr(yt)&&(yt=null),Xn.forEach(is),Zn.forEach(is)}function zn(e,t){e.blockedOn===t&&(e.blockedOn=null,xi||(xi=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,md)))}function Jn(e){function t(l){return zn(l,e)}if(0<kr.length){zn(kr[0],e);for(var n=1;n<kr.length;n++){var r=kr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ht!==null&&zn(ht,e),mt!==null&&zn(mt,e),yt!==null&&zn(yt,e),Xn.forEach(t),Zn.forEach(t),n=0;n<ct.length;n++)r=ct[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ct.length&&(n=ct[0],n.blockedOn===null);)Qu(n),n.blockedOn===null&&ct.shift()}var an=it.ReactCurrentBatchConfig,Xr=!0;function yd(e,t,n,r){var l=F,i=an.transition;an.transition=null;try{F=1,ao(e,t,n,r)}finally{F=l,an.transition=i}}function vd(e,t,n,r){var l=F,i=an.transition;an.transition=null;try{F=4,ao(e,t,n,r)}finally{F=l,an.transition=i}}function ao(e,t,n,r){if(Xr){var l=wi(e,t,n,r);if(l===null)Ql(e,t,r,Zr,n),ls(e,r);else if(hd(l,e,t,n,r))r.stopPropagation();else if(ls(e,r),t&4&&-1<pd.indexOf(e)){for(;l!==null;){var i=fr(l);if(i!==null&&Wu(i),i=wi(e,t,n,r),i===null&&Ql(e,t,r,Zr,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Ql(e,t,r,null,n)}}var Zr=null;function wi(e,t,n,r){if(Zr=null,e=io(r),e=Pt(e),e!==null)if(t=Wt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Iu(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 Zr=e,null}function Ku(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(ld()){case oo:return 1;case Fu:return 4;case Yr:case id:return 16;case $u:return 536870912;default:return 16}default:return 16}}var ft=null,co=null,Or=null;function Yu(){if(Or)return Or;var e,t=co,n=t.length,r,l="value"in ft?ft.value:ft.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 Or=l.slice(e,1<r?1-r:void 0)}function Dr(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 Sr(){return!0}function os(){return!1}function Ee(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 u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Sr:os,this.isPropagationStopped=os,this}return K(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=Sr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sr)},persist:function(){},isPersistent:Sr}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fo=Ee(wn),dr=K({},wn,{view:0,detail:0}),gd=Ee(dr),Dl,Fl,Tn,yl=K({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,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"?(Dl=e.screenX-Tn.screenX,Fl=e.screenY-Tn.screenY):Fl=Dl=0,Tn=e),Dl)},movementY:function(e){return"movementY"in e?e.movementY:Fl}}),ss=Ee(yl),xd=K({},yl,{dataTransfer:0}),wd=Ee(xd),kd=K({},dr,{relatedTarget:0}),$l=Ee(kd),Sd=K({},wn,{animationName:0,elapsedTime:0,pseudoElement:0}),jd=Ee(Sd),Nd=K({},wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cd=Ee(Nd),Ed=K({},wn,{data:0}),us=Ee(Ed),_d={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zd={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"},Td={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Td[e])?!!t[e]:!1}function po(){return Pd}var Ld=K({},dr,{key:function(e){if(e.key){var t=_d[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(e){return e.type==="keypress"?Dr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rd=Ee(Ld),Id=K({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),as=Ee(Id),Md=K({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),Od=Ee(Md),Dd=K({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fd=Ee(Dd),$d=K({},yl,{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}),Ad=Ee($d),Ud=[9,13,27,32],ho=tt&&"CompositionEvent"in window,An=null;tt&&"documentMode"in document&&(An=document.documentMode);var Wd=tt&&"TextEvent"in window&&!An,Gu=tt&&(!ho||An&&8<An&&11>=An),cs=" ",ds=!1;function Xu(e,t){switch(e){case"keyup":return Ud.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xt=!1;function Bd(e,t){switch(e){case"compositionend":return Zu(t);case"keypress":return t.which!==32?null:(ds=!0,cs);case"textInput":return e=t.data,e===cs&&ds?null:e;default:return null}}function Vd(e,t){if(Xt)return e==="compositionend"||!ho&&Xu(e,t)?(e=Yu(),Or=co=ft=null,Xt=!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 Gu&&t.locale!=="ko"?null:t.data;default:return null}}var Hd={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 fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hd[e.type]:t==="textarea"}function Ju(e,t,n,r){zu(r),t=Jr(t,"onChange"),0<t.length&&(n=new fo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,qn=null;function Qd(e){ua(e,0)}function vl(e){var t=qt(e);if(ku(t))return e}function Kd(e,t){if(e==="change")return t}var qu=!1;if(tt){var Al;if(tt){var Ul="oninput"in document;if(!Ul){var ps=document.createElement("div");ps.setAttribute("oninput","return;"),Ul=typeof ps.oninput=="function"}Al=Ul}else Al=!1;qu=Al&&(!document.documentMode||9<document.documentMode)}function hs(){Un&&(Un.detachEvent("onpropertychange",bu),qn=Un=null)}function bu(e){if(e.propertyName==="value"&&vl(qn)){var t=[];Ju(t,qn,e,io(e)),Ru(Qd,t)}}function Yd(e,t,n){e==="focusin"?(hs(),Un=t,qn=n,Un.attachEvent("onpropertychange",bu)):e==="focusout"&&hs()}function Gd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vl(qn)}function Xd(e,t){if(e==="click")return vl(t)}function Zd(e,t){if(e==="input"||e==="change")return vl(t)}function Jd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Be=typeof Object.is=="function"?Object.is:Jd;function bn(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(!ni.call(t,l)||!Be(e[l],t[l]))return!1}return!0}function ms(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ys(e,t){var n=ms(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=ms(n)}}function ea(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ea(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ta(){for(var e=window,t=Hr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hr(e.document)}return t}function mo(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 qd(e){var t=ta(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ea(n.ownerDocument.documentElement,n)){if(r!==null&&mo(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=ys(n,i);var o=ys(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 bd=tt&&"documentMode"in document&&11>=document.documentMode,Zt=null,ki=null,Wn=null,Si=!1;function vs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Si||Zt==null||Zt!==Hr(r)||(r=Zt,"selectionStart"in r&&mo(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}),Wn&&bn(Wn,r)||(Wn=r,r=Jr(ki,"onSelect"),0<r.length&&(t=new fo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Zt)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jt={animationend:jr("Animation","AnimationEnd"),animationiteration:jr("Animation","AnimationIteration"),animationstart:jr("Animation","AnimationStart"),transitionend:jr("Transition","TransitionEnd")},Wl={},na={};tt&&(na=document.createElement("div").style,"AnimationEvent"in window||(delete Jt.animationend.animation,delete Jt.animationiteration.animation,delete Jt.animationstart.animation),"TransitionEvent"in window||delete Jt.transitionend.transition);function gl(e){if(Wl[e])return Wl[e];if(!Jt[e])return e;var t=Jt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in na)return Wl[e]=t[n];return e}var ra=gl("animationend"),la=gl("animationiteration"),ia=gl("animationstart"),oa=gl("transitionend"),sa=new Map,gs="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){sa.set(e,t),Ut(t,[e])}for(var Bl=0;Bl<gs.length;Bl++){var Vl=gs[Bl],ef=Vl.toLowerCase(),tf=Vl[0].toUpperCase()+Vl.slice(1);Nt(ef,"on"+tf)}Nt(ra,"onAnimationEnd");Nt(la,"onAnimationIteration");Nt(ia,"onAnimationStart");Nt("dblclick","onDoubleClick");Nt("focusin","onFocus");Nt("focusout","onBlur");Nt(oa,"onTransitionEnd");fn("onMouseEnter",["mouseout","mouseover"]);fn("onMouseLeave",["mouseout","mouseover"]);fn("onPointerEnter",["pointerout","pointerover"]);fn("onPointerLeave",["pointerout","pointerover"]);Ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ut("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),nf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dn));function xs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ed(r,t,void 0,e),e.currentTarget=null}function ua(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 u=r[o],a=u.instance,d=u.currentTarget;if(u=u.listener,a!==i&&l.isPropagationStopped())break e;xs(l,u,d),i=a}else for(o=0;o<r.length;o++){if(u=r[o],a=u.instance,d=u.currentTarget,u=u.listener,a!==i&&l.isPropagationStopped())break e;xs(l,u,d),i=a}}}if(Kr)throw e=vi,Kr=!1,vi=null,e}function W(e,t){var n=t[_i];n===void 0&&(n=t[_i]=new Set);var r=e+"__bubble";n.has(r)||(aa(t,e,2,!1),n.add(r))}function Hl(e,t,n){var r=0;t&&(r|=4),aa(n,e,r,t)}var Nr="_reactListening"+Math.random().toString(36).slice(2);function er(e){if(!e[Nr]){e[Nr]=!0,yu.forEach(function(n){n!=="selectionchange"&&(nf.has(n)||Hl(n,!1,e),Hl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nr]||(t[Nr]=!0,Hl("selectionchange",!1,t))}}function aa(e,t,n,r){switch(Ku(t)){case 1:var l=yd;break;case 4:l=vd;break;default:l=ao}n=l.bind(null,t,n,e),l=void 0,!yi||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 Ql(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 u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;o=o.return}for(;u!==null;){if(o=Pt(u),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}u=u.parentNode}}r=r.return}Ru(function(){var d=i,v=io(n),y=[];e:{var h=sa.get(e);if(h!==void 0){var m=fo,g=e;switch(e){case"keypress":if(Dr(n)===0)break e;case"keydown":case"keyup":m=Rd;break;case"focusin":g="focus",m=$l;break;case"focusout":g="blur",m=$l;break;case"beforeblur":case"afterblur":m=$l;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":m=ss;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=wd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Od;break;case ra:case la:case ia:m=jd;break;case oa:m=Fd;break;case"scroll":m=gd;break;case"wheel":m=Ad;break;case"copy":case"cut":case"paste":m=Cd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=as}var x=(t&4)!==0,P=!x&&e==="scroll",f=x?h!==null?h+"Capture":null:h;x=[];for(var c=d,p;c!==null;){p=c;var w=p.stateNode;if(p.tag===5&&w!==null&&(p=w,f!==null&&(w=Gn(c,f),w!=null&&x.push(tr(c,w,p)))),P)break;c=c.return}0<x.length&&(h=new m(h,g,null,n,v),y.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==hi&&(g=n.relatedTarget||n.fromElement)&&(Pt(g)||g[nt]))break e;if((m||h)&&(h=v.window===v?v:(h=v.ownerDocument)?h.defaultView||h.parentWindow:window,m?(g=n.relatedTarget||n.toElement,m=d,g=g?Pt(g):null,g!==null&&(P=Wt(g),g!==P||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=d),m!==g)){if(x=ss,w="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(x=as,w="onPointerLeave",f="onPointerEnter",c="pointer"),P=m==null?h:qt(m),p=g==null?h:qt(g),h=new x(w,c+"leave",m,n,v),h.target=P,h.relatedTarget=p,w=null,Pt(v)===d&&(x=new x(f,c+"enter",g,n,v),x.target=p,x.relatedTarget=P,w=x),P=w,m&&g)t:{for(x=m,f=g,c=0,p=x;p;p=Kt(p))c++;for(p=0,w=f;w;w=Kt(w))p++;for(;0<c-p;)x=Kt(x),c--;for(;0<p-c;)f=Kt(f),p--;for(;c--;){if(x===f||f!==null&&x===f.alternate)break t;x=Kt(x),f=Kt(f)}x=null}else x=null;m!==null&&ws(y,h,m,x,!1),g!==null&&P!==null&&ws(y,P,g,x,!0)}}e:{if(h=d?qt(d):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var j=Kd;else if(fs(h))if(qu)j=Zd;else{j=Gd;var E=Yd}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=Xd);if(j&&(j=j(e,d))){Ju(y,j,n,v);break e}E&&E(e,h,d),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&ai(h,"number",h.value)}switch(E=d?qt(d):window,e){case"focusin":(fs(E)||E.contentEditable==="true")&&(Zt=E,ki=d,Wn=null);break;case"focusout":Wn=ki=Zt=null;break;case"mousedown":Si=!0;break;case"contextmenu":case"mouseup":case"dragend":Si=!1,vs(y,n,v);break;case"selectionchange":if(bd)break;case"keydown":case"keyup":vs(y,n,v)}var _;if(ho)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 Xt?Xu(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(Gu&&n.locale!=="ko"&&(Xt||z!=="onCompositionStart"?z==="onCompositionEnd"&&Xt&&(_=Yu()):(ft=v,co="value"in ft?ft.value:ft.textContent,Xt=!0)),E=Jr(d,z),0<E.length&&(z=new us(z,e,null,n,v),y.push({event:z,listeners:E}),_?z.data=_:(_=Zu(n),_!==null&&(z.data=_)))),(_=Wd?Bd(e,n):Vd(e,n))&&(d=Jr(d,"onBeforeInput"),0<d.length&&(v=new us("onBeforeInput","beforeinput",null,n,v),y.push({event:v,listeners:d}),v.data=_))}ua(y,t)})}function tr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Gn(e,n),i!=null&&r.unshift(tr(e,i,l)),i=Gn(e,t),i!=null&&r.push(tr(e,i,l))),e=e.return}return r}function Kt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ws(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var u=n,a=u.alternate,d=u.stateNode;if(a!==null&&a===r)break;u.tag===5&&d!==null&&(u=d,l?(a=Gn(n,i),a!=null&&o.unshift(tr(n,a,u))):l||(a=Gn(n,i),a!=null&&o.push(tr(n,a,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rf=/\r\n?/g,lf=/\u0000|\uFFFD/g;function ks(e){return(typeof e=="string"?e:""+e).replace(rf,`
|
|
38
|
+
`).replace(lf,"")}function Cr(e,t,n){if(t=ks(t),ks(e)!==t&&n)throw Error(S(425))}function qr(){}var ji=null,Ni=null;function Ci(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 Ei=typeof setTimeout=="function"?setTimeout:void 0,of=typeof clearTimeout=="function"?clearTimeout:void 0,Ss=typeof Promise=="function"?Promise:void 0,sf=typeof queueMicrotask=="function"?queueMicrotask:typeof Ss<"u"?function(e){return Ss.resolve(null).then(e).catch(uf)}:Ei;function uf(e){setTimeout(function(){throw e})}function Kl(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),Jn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Jn(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 js(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 kn=Math.random().toString(36).slice(2),Ye="__reactFiber$"+kn,nr="__reactProps$"+kn,nt="__reactContainer$"+kn,_i="__reactEvents$"+kn,af="__reactListeners$"+kn,cf="__reactHandles$"+kn;function Pt(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nt]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=js(e);e!==null;){if(n=e[Ye])return n;e=js(e)}return t}e=n,n=e.parentNode}return null}function fr(e){return e=e[Ye]||e[nt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function xl(e){return e[nr]||null}var zi=[],bt=-1;function Ct(e){return{current:e}}function B(e){0>bt||(e.current=zi[bt],zi[bt]=null,bt--)}function U(e,t){bt++,zi[bt]=e.current,e.current=t}var jt={},ae=Ct(jt),ve=Ct(!1),Ot=jt;function pn(e,t){var n=e.type.contextTypes;if(!n)return jt;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 ge(e){return e=e.childContextTypes,e!=null}function br(){B(ve),B(ae)}function Ns(e,t,n){if(ae.current!==jt)throw Error(S(168));U(ae,t),U(ve,n)}function ca(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,Yc(e)||"Unknown",l));return K({},n,r)}function el(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jt,Ot=ae.current,U(ae,e),U(ve,ve.current),!0}function Cs(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=ca(e,t,Ot),r.__reactInternalMemoizedMergedChildContext=e,B(ve),B(ae),U(ae,e)):B(ve),U(ve,n)}var Je=null,wl=!1,Yl=!1;function da(e){Je===null?Je=[e]:Je.push(e)}function df(e){wl=!0,da(e)}function Et(){if(!Yl&&Je!==null){Yl=!0;var e=0,t=F;try{var n=Je;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Je=null,wl=!1}catch(l){throw Je!==null&&(Je=Je.slice(e+1)),Du(oo,Et),l}finally{F=t,Yl=!1}}return null}var en=[],tn=0,tl=null,nl=0,ze=[],Te=0,Dt=null,qe=1,be="";function zt(e,t){en[tn++]=nl,en[tn++]=tl,tl=e,nl=t}function fa(e,t,n){ze[Te++]=qe,ze[Te++]=be,ze[Te++]=Dt,Dt=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 yo(e){e.return!==null&&(zt(e,1),fa(e,1,0))}function vo(e){for(;e===tl;)tl=en[--tn],en[tn]=null,nl=en[--tn],en[tn]=null;for(;e===Dt;)Dt=ze[--Te],ze[Te]=null,be=ze[--Te],ze[Te]=null,qe=ze[--Te],ze[Te]=null}var je=null,Se=null,V=!1,Ae=null;function pa(e,t){var n=Pe(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 Es(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=Dt!==null?{id:qe,overflow:be}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Pe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,je=e,Se=null,!0):!1;default:return!1}}function Ti(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Pi(e){if(V){var t=Se;if(t){var n=t;if(!Es(e,t)){if(Ti(e))throw Error(S(418));t=vt(n.nextSibling);var r=je;t&&Es(e,t)?pa(r,n):(e.flags=e.flags&-4097|2,V=!1,je=e)}}else{if(Ti(e))throw Error(S(418));e.flags=e.flags&-4097|2,V=!1,je=e}}}function _s(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function Er(e){if(e!==je)return!1;if(!V)return _s(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ci(e.type,e.memoizedProps)),t&&(t=Se)){if(Ti(e))throw ha(),Error(S(418));for(;t;)pa(e,t),t=vt(t.nextSibling)}if(_s(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 ha(){for(var e=Se;e;)e=vt(e.nextSibling)}function hn(){Se=je=null,V=!1}function go(e){Ae===null?Ae=[e]:Ae.push(e)}var ff=it.ReactCurrentBatchConfig;function Pn(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 u=l.refs;o===null?delete u[i]:u[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 _r(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zs(e){var t=e._init;return t(e._payload)}function ma(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=kt(f,c),f.index=0,f.sibling=null,f}function i(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,c,p,w){return c===null||c.tag!==6?(c=ei(p,f.mode,w),c.return=f,c):(c=l(c,p),c.return=f,c)}function a(f,c,p,w){var j=p.type;return j===Gt?v(f,c,p.props.children,w,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ut&&zs(j)===c.type)?(w=l(c,p.props),w.ref=Pn(f,c,p),w.return=f,w):(w=Vr(p.type,p.key,p.props,null,f.mode,w),w.ref=Pn(f,c,p),w.return=f,w)}function d(f,c,p,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=ti(p,f.mode,w),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function v(f,c,p,w,j){return c===null||c.tag!==7?(c=Mt(p,f.mode,w,j),c.return=f,c):(c=l(c,p),c.return=f,c)}function y(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=ei(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case yr:return p=Vr(c.type,c.key,c.props,null,f.mode,p),p.ref=Pn(f,null,c),p.return=f,p;case Yt:return c=ti(c,f.mode,p),c.return=f,c;case ut:var w=c._init;return y(f,w(c._payload),p)}if(Mn(c)||Cn(c))return c=Mt(c,f.mode,p,null),c.return=f,c;_r(f,c)}return null}function h(f,c,p,w){var j=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:u(f,c,""+p,w);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case yr:return p.key===j?a(f,c,p,w):null;case Yt:return p.key===j?d(f,c,p,w):null;case ut:return j=p._init,h(f,c,j(p._payload),w)}if(Mn(p)||Cn(p))return j!==null?null:v(f,c,p,w,null);_r(f,p)}return null}function m(f,c,p,w,j){if(typeof w=="string"&&w!==""||typeof w=="number")return f=f.get(p)||null,u(c,f,""+w,j);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case yr:return f=f.get(w.key===null?p:w.key)||null,a(c,f,w,j);case Yt:return f=f.get(w.key===null?p:w.key)||null,d(c,f,w,j);case ut:var E=w._init;return m(f,c,p,E(w._payload),j)}if(Mn(w)||Cn(w))return f=f.get(p)||null,v(c,f,w,j,null);_r(c,w)}return null}function g(f,c,p,w){for(var j=null,E=null,_=c,z=c=0,$=null;_!==null&&z<p.length;z++){_.index>z?($=_,_=null):$=_.sibling;var M=h(f,_,p[z],w);if(M===null){_===null&&(_=$);break}e&&_&&M.alternate===null&&t(f,_),c=i(M,c,z),E===null?j=M:E.sibling=M,E=M,_=$}if(z===p.length)return n(f,_),V&&zt(f,z),j;if(_===null){for(;z<p.length;z++)_=y(f,p[z],w),_!==null&&(c=i(_,c,z),E===null?j=_:E.sibling=_,E=_);return V&&zt(f,z),j}for(_=r(f,_);z<p.length;z++)$=m(_,f,z,p[z],w),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?z:$.key),c=i($,c,z),E===null?j=$:E.sibling=$,E=$);return e&&_.forEach(function(_e){return t(f,_e)}),V&&zt(f,z),j}function x(f,c,p,w){var j=Cn(p);if(typeof j!="function")throw Error(S(150));if(p=j.call(p),p==null)throw Error(S(151));for(var E=j=null,_=c,z=c=0,$=null,M=p.next();_!==null&&!M.done;z++,M=p.next()){_.index>z?($=_,_=null):$=_.sibling;var _e=h(f,_,M.value,w);if(_e===null){_===null&&(_=$);break}e&&_&&_e.alternate===null&&t(f,_),c=i(_e,c,z),E===null?j=_e:E.sibling=_e,E=_e,_=$}if(M.done)return n(f,_),V&&zt(f,z),j;if(_===null){for(;!M.done;z++,M=p.next())M=y(f,M.value,w),M!==null&&(c=i(M,c,z),E===null?j=M:E.sibling=M,E=M);return V&&zt(f,z),j}for(_=r(f,_);!M.done;z++,M=p.next())M=m(_,f,z,M.value,w),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?z:M.key),c=i(M,c,z),E===null?j=M:E.sibling=M,E=M);return e&&_.forEach(function(Bt){return t(f,Bt)}),V&&zt(f,z),j}function P(f,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Gt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case yr:e:{for(var j=p.key,E=c;E!==null;){if(E.key===j){if(j=p.type,j===Gt){if(E.tag===7){n(f,E.sibling),c=l(E,p.props.children),c.return=f,f=c;break e}}else if(E.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ut&&zs(j)===E.type){n(f,E.sibling),c=l(E,p.props),c.ref=Pn(f,E,p),c.return=f,f=c;break e}n(f,E);break}else t(f,E);E=E.sibling}p.type===Gt?(c=Mt(p.props.children,f.mode,w,p.key),c.return=f,f=c):(w=Vr(p.type,p.key,p.props,null,f.mode,w),w.ref=Pn(f,c,p),w.return=f,f=w)}return o(f);case Yt:e:{for(E=p.key;c!==null;){if(c.key===E)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ti(p,f.mode,w),c.return=f,f=c}return o(f);case ut:return E=p._init,P(f,c,E(p._payload),w)}if(Mn(p))return g(f,c,p,w);if(Cn(p))return x(f,c,p,w);_r(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=ei(p,f.mode,w),c.return=f,f=c),o(f)):n(f,c)}return P}var mn=ma(!0),ya=ma(!1),rl=Ct(null),ll=null,nn=null,xo=null;function wo(){xo=nn=ll=null}function ko(e){var t=rl.current;B(rl),e._currentValue=t}function Li(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 cn(e,t){ll=e,xo=nn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function Re(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},nn===null){if(ll===null)throw Error(S(308));nn=e,ll.dependencies={lanes:0,firstContext:e}}else nn=nn.next=e;return t}var Lt=null;function So(e){Lt===null?Lt=[e]:Lt.push(e)}function va(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,So(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 at=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ga(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 gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&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,So(r)):(t.next=l.next,l.next=t),r.interleaved=t,rt(e,n)}function Fr(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,so(e,n)}}function Ts(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 il(e,t,n,r){var l=e.updateQueue;at=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,d=a.next;a.next=null,o===null?i=d:o.next=d,o=a;var v=e.alternate;v!==null&&(v=v.updateQueue,u=v.lastBaseUpdate,u!==o&&(u===null?v.firstBaseUpdate=d:u.next=d,v.lastBaseUpdate=a))}if(i!==null){var y=l.baseState;o=0,v=d=a=null,u=i;do{var h=u.lane,m=u.eventTime;if((r&h)===h){v!==null&&(v=v.next={eventTime:m,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,x=u;switch(h=t,m=n,x.tag){case 1:if(g=x.payload,typeof g=="function"){y=g.call(m,y,h);break e}y=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,h=typeof g=="function"?g.call(m,y,h):g,h==null)break e;y=K({},y,h);break e;case 2:at=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else m={eventTime:m,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},v===null?(d=v=m,a=y):v=v.next=m,o|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(v===null&&(a=y),l.baseState=a,l.firstBaseUpdate=d,l.lastBaseUpdate=v,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);$t|=o,e.lanes=o,e.memoizedState=y}}function Ps(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 pr={},Xe=Ct(pr),rr=Ct(pr),lr=Ct(pr);function Rt(e){if(e===pr)throw Error(S(174));return e}function No(e,t){switch(U(lr,t),U(rr,e),U(Xe,pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:di(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=di(t,e)}B(Xe),U(Xe,t)}function yn(){B(Xe),B(rr),B(lr)}function xa(e){Rt(lr.current);var t=Rt(Xe.current),n=di(t,e.type);t!==n&&(U(rr,e),U(Xe,n))}function Co(e){rr.current===e&&(B(Xe),B(rr))}var H=Ct(0);function ol(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 Gl=[];function Eo(){for(var e=0;e<Gl.length;e++)Gl[e]._workInProgressVersionPrimary=null;Gl.length=0}var $r=it.ReactCurrentDispatcher,Xl=it.ReactCurrentBatchConfig,Ft=0,Q=null,b=null,te=null,sl=!1,Bn=!1,ir=0,pf=0;function oe(){throw Error(S(321))}function _o(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 zo(e,t,n,r,l,i){if(Ft=i,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$r.current=e===null||e.memoizedState===null?vf:gf,e=n(r,l),Bn){i=0;do{if(Bn=!1,ir=0,25<=i)throw Error(S(301));i+=1,te=b=null,t.updateQueue=null,$r.current=xf,e=n(r,l)}while(Bn)}if($r.current=ul,t=b!==null&&b.next!==null,Ft=0,te=b=Q=null,sl=!1,t)throw Error(S(300));return e}function To(){var e=ir!==0;return ir=0,e}function Ke(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?Q.memoizedState=te=e:te=te.next=e,te}function Ie(){if(b===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=b.next;var t=te===null?Q.memoizedState:te.next;if(t!==null)te=t,b=e;else{if(e===null)throw Error(S(310));b=e,e={memoizedState:b.memoizedState,baseState:b.baseState,baseQueue:b.baseQueue,queue:b.queue,next:null},te===null?Q.memoizedState=te=e:te=te.next=e}return te}function or(e,t){return typeof t=="function"?t(e):t}function Zl(e){var t=Ie(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=b,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 u=o=null,a=null,d=i;do{var v=d.lane;if((Ft&v)===v)a!==null&&(a=a.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var y={lane:v,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};a===null?(u=a=y,o=r):a=a.next=y,Q.lanes|=v,$t|=v}d=d.next}while(d!==null&&d!==i);a===null?o=r:a.next=u,Be(r,t.memoizedState)||(ye=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Q.lanes|=i,$t|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jl(e){var t=Ie(),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 wa(){}function ka(e,t){var n=Q,r=Ie(),l=t(),i=!Be(r.memoizedState,l);if(i&&(r.memoizedState=l,ye=!0),r=r.queue,Po(Na.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,sr(9,ja.bind(null,n,r,l,t),void 0,null),ne===null)throw Error(S(349));Ft&30||Sa(n,t,l)}return l}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ja(e,t,n,r){t.value=n,t.getSnapshot=r,Ca(t)&&Ea(e)}function Na(e,t,n){return n(function(){Ca(t)&&Ea(e)})}function Ca(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Be(e,n)}catch{return!0}}function Ea(e){var t=rt(e,1);t!==null&&We(t,e,1,-1)}function Ls(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:or,lastRenderedState:e},t.queue=e,e=e.dispatch=yf.bind(null,Q,e),[t.memoizedState,e]}function sr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.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 _a(){return Ie().memoizedState}function Ar(e,t,n,r){var l=Ke();Q.flags|=e,l.memoizedState=sr(1|t,n,void 0,r===void 0?null:r)}function kl(e,t,n,r){var l=Ie();r=r===void 0?null:r;var i=void 0;if(b!==null){var o=b.memoizedState;if(i=o.destroy,r!==null&&_o(r,o.deps)){l.memoizedState=sr(t,n,i,r);return}}Q.flags|=e,l.memoizedState=sr(1|t,n,i,r)}function Rs(e,t){return Ar(8390656,8,e,t)}function Po(e,t){return kl(2048,8,e,t)}function za(e,t){return kl(4,2,e,t)}function Ta(e,t){return kl(4,4,e,t)}function Pa(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 La(e,t,n){return n=n!=null?n.concat([e]):null,kl(4,4,Pa.bind(null,t,e),n)}function Lo(){}function Ra(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ia(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_o(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ma(e,t,n){return Ft&21?(Be(n,t)||(n=Au(),Q.lanes|=n,$t|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ye=!0),e.memoizedState=n)}function hf(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=Xl.transition;Xl.transition={};try{e(!1),t()}finally{F=n,Xl.transition=r}}function Oa(){return Ie().memoizedState}function mf(e,t,n){var r=wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Da(e))Fa(t,n);else if(n=va(e,t,n,r),n!==null){var l=de();We(n,e,r,l),$a(n,t,r)}}function yf(e,t,n){var r=wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Da(e))Fa(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,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Be(u,o)){var a=t.interleaved;a===null?(l.next=l,So(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=va(e,t,l,r),n!==null&&(l=de(),We(n,e,r,l),$a(n,t,r))}}function Da(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Fa(e,t){Bn=sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $a(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,so(e,n)}}var ul={readContext:Re,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},vf={readContext:Re,useCallback:function(e,t){return Ke().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:Rs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ar(4194308,4,Pa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ar(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ar(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=mf.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Ke();return e={current:e},t.memoizedState=e},useState:Ls,useDebugValue:Lo,useDeferredValue:function(e){return Ke().memoizedState=e},useTransition:function(){var e=Ls(!1),t=e[0];return e=hf.bind(null,e[1]),Ke().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=Ke();if(V){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ne===null)throw Error(S(349));Ft&30||Sa(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Rs(Na.bind(null,r,i,e),[e]),r.flags|=2048,sr(9,ja.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ke(),t=ne.identifierPrefix;if(V){var n=be,r=qe;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ir++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=pf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gf={readContext:Re,useCallback:Ra,useContext:Re,useEffect:Po,useImperativeHandle:La,useInsertionEffect:za,useLayoutEffect:Ta,useMemo:Ia,useReducer:Zl,useRef:_a,useState:function(){return Zl(or)},useDebugValue:Lo,useDeferredValue:function(e){var t=Ie();return Ma(t,b.memoizedState,e)},useTransition:function(){var e=Zl(or)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:wa,useSyncExternalStore:ka,useId:Oa,unstable_isNewReconciler:!1},xf={readContext:Re,useCallback:Ra,useContext:Re,useEffect:Po,useImperativeHandle:La,useInsertionEffect:za,useLayoutEffect:Ta,useMemo:Ia,useReducer:Jl,useRef:_a,useState:function(){return Jl(or)},useDebugValue:Lo,useDeferredValue:function(e){var t=Ie();return b===null?t.memoizedState=e:Ma(t,b.memoizedState,e)},useTransition:function(){var e=Jl(or)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:wa,useSyncExternalStore:ka,useId:Oa,unstable_isNewReconciler:!1};function Fe(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ri(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sl={isMounted:function(e){return(e=e._reactInternals)?Wt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=de(),l=wt(e),i=et(r,l);i.payload=t,n!=null&&(i.callback=n),t=gt(e,i,l),t!==null&&(We(t,e,l,r),Fr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=de(),l=wt(e),i=et(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=gt(e,i,l),t!==null&&(We(t,e,l,r),Fr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=de(),r=wt(e),l=et(n,r);l.tag=2,t!=null&&(l.callback=t),t=gt(e,l,r),t!==null&&(We(t,e,r,n),Fr(t,e,r))}};function Is(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?!bn(n,r)||!bn(l,i):!0}function Aa(e,t,n){var r=!1,l=jt,i=t.contextType;return typeof i=="object"&&i!==null?i=Re(i):(l=ge(t)?Ot:ae.current,r=t.contextTypes,i=(r=r!=null)?pn(e,l):jt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ms(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&&Sl.enqueueReplaceState(t,t.state,null)}function Ii(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},jo(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Re(i):(i=ge(t)?Ot:ae.current,l.context=pn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ri(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&&Sl.enqueueReplaceState(l,l.state,null),il(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+=Kc(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 ql(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Mi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wf=typeof WeakMap=="function"?WeakMap:Map;function Ua(e,t,n){n=et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cl||(cl=!0,Hi=r),Mi(e,t)},n}function Wa(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(){Mi(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Mi(e,t),typeof r!="function"&&(xt===null?xt=new Set([this]):xt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Os(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wf;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=Mf.bind(null,e,t,n),t.then(e,e))}function Ds(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 Fs(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,gt(n,t,1))),n.lanes|=1),e)}var kf=it.ReactCurrentOwner,ye=!1;function ce(e,t,n,r){t.child=e===null?ya(t,null,n,r):mn(t,e.child,n,r)}function $s(e,t,n,r,l){n=n.render;var i=t.ref;return cn(t,l),r=zo(e,t,n,r,i,l),n=To(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(V&&n&&yo(t),t.flags|=1,ce(e,t,r,l),t.child)}function As(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Ao(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ba(e,t,i,r,l)):(e=Vr(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:bn,n(o,r)&&e.ref===t.ref)return lt(e,t,l)}return t.flags|=1,e=kt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ba(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(bn(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 Oi(e,t,n,r,l)}function Va(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},U(ln,ke),ke|=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,U(ln,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,U(ln,ke),ke|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,U(ln,ke),ke|=r;return ce(e,t,l,n),t.child}function Ha(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oi(e,t,n,r,l){var i=ge(n)?Ot:ae.current;return i=pn(t,i),cn(t,l),n=zo(e,t,n,r,i,l),r=To(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(V&&r&&yo(t),t.flags|=1,ce(e,t,n,l),t.child)}function Us(e,t,n,r,l){if(ge(n)){var i=!0;el(t)}else i=!1;if(cn(t,l),t.stateNode===null)Ur(e,t),Aa(t,n,r),Ii(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var a=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=Re(d):(d=ge(n)?Ot:ae.current,d=pn(t,d));var v=n.getDerivedStateFromProps,y=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function";y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||a!==d)&&Ms(t,o,r,d),at=!1;var h=t.memoizedState;o.state=h,il(t,r,o,l),a=t.memoizedState,u!==r||h!==a||ve.current||at?(typeof v=="function"&&(Ri(t,n,v,r),a=t.memoizedState),(u=at||Is(t,n,u,r,h,a,d))?(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=a),o.props=r,o.state=a,o.context=d,r=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ga(e,t),u=t.memoizedProps,d=t.type===t.elementType?u:Fe(t.type,u),o.props=d,y=t.pendingProps,h=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Re(a):(a=ge(n)?Ot:ae.current,a=pn(t,a));var m=n.getDerivedStateFromProps;(v=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==y||h!==a)&&Ms(t,o,r,a),at=!1,h=t.memoizedState,o.state=h,il(t,r,o,l);var g=t.memoizedState;u!==y||h!==g||ve.current||at?(typeof m=="function"&&(Ri(t,n,m,r),g=t.memoizedState),(d=at||Is(t,n,d,r,h,g,a)||!1)?(v||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=a,r=d):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Di(e,t,n,r,i,l)}function Di(e,t,n,r,l,i){Ha(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Cs(t,n,!1),lt(e,t,i);r=t.stateNode,kf.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=mn(t,e.child,null,i),t.child=mn(t,null,u,i)):ce(e,t,u,i),t.memoizedState=r.state,l&&Cs(t,n,!0),t.child}function Qa(e){var t=e.stateNode;t.pendingContext?Ns(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ns(e,t.context,!1),No(e,t.containerInfo)}function Ws(e,t,n,r,l){return hn(),go(l),t.flags|=256,ce(e,t,n,r),t.child}var Fi={dehydrated:null,treeContext:null,retryLane:0};function $i(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ka(e,t,n){var r=t.pendingProps,l=H.current,i=!1,o=(t.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),U(H,l&1),e===null)return Pi(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=Cl(o,r,0,null),e=Mt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$i(n),t.memoizedState=Fi,e):Ro(t,o));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Sf(e,t,o,r,u,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,u=l.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=kt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=kt(u,i):(i=Mt(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?$i(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Fi,r}return i=e.child,e=i.sibling,r=kt(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 Ro(e,t){return t=Cl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zr(e,t,n,r){return r!==null&&go(r),mn(t,e.child,null,n),e=Ro(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sf(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=ql(Error(S(422))),zr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Cl({mode:"visible",children:r.children},l,0,null),i=Mt(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&mn(t,e.child,null,o),t.child.memoizedState=$i(o),t.memoizedState=Fi,i);if(!(t.mode&1))return zr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(S(419)),r=ql(i,r,void 0),zr(e,t,o,r)}if(u=(o&e.childLanes)!==0,ye||u){if(r=ne,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 $o(),r=ql(Error(S(421))),zr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Of.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Se=vt(l.nextSibling),je=t,V=!0,Ae=null,e!==null&&(ze[Te++]=qe,ze[Te++]=be,ze[Te++]=Dt,qe=e.id,be=e.overflow,Dt=t),t=Ro(t,r.children),t.flags|=4096,t)}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Li(e.return,t,n)}function bl(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 Ya(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(ce(e,t,r.children,n),r=H.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&&Bs(e,n,t);else if(e.tag===19)Bs(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(U(H,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&&ol(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),bl(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&&ol(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}bl(t,!0,n,null,i);break;case"together":bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ur(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),$t|=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=kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jf(e,t,n){switch(t.tag){case 3:Qa(t),hn();break;case 5:xa(t);break;case 1:ge(t.type)&&el(t);break;case 4:No(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(rl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(H,H.current&1),t.flags|=128,null):n&t.child.childLanes?Ka(e,t,n):(U(H,H.current&1),e=lt(e,t,n),e!==null?e.sibling:null);U(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ya(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,Va(e,t,n)}return lt(e,t,n)}var Ga,Ai,Xa,Za;Ga=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}};Ai=function(){};Xa=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Rt(Xe.current);var i=null;switch(n){case"input":l=si(e,l),r=si(e,r),i=[];break;case"select":l=K({},l,{value:void 0}),r=K({},r,{value:void 0}),i=[];break;case"textarea":l=ci(e,l),r=ci(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qr)}fi(n,r);var o;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var u=l[d];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Kn.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var a=r[d];if(u=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&a!==u&&(a!=null||u!=null))if(d==="style")if(u){for(o in u)!u.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&u[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(i=i||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Kn.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&W("scroll",e),i||u===a||(i=[])):(i=i||[]).push(d,a))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};Za=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ln(e,t){if(!V)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 se(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 Nf(e,t,n){var r=t.pendingProps;switch(vo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return ge(t.type)&&br(),se(t),null;case 3:return r=t.stateNode,yn(),B(ve),B(ae),Eo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Er(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ae!==null&&(Yi(Ae),Ae=null))),Ai(e,t),se(t),null;case 5:Co(t);var l=Rt(lr.current);if(n=t.type,e!==null&&t.stateNode!=null)Xa(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 se(t),null}if(e=Rt(Xe.current),Er(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ye]=t,r[nr]=i,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(l=0;l<Dn.length;l++)W(Dn[l],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":Jo(r,i),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},W("invalid",r);break;case"textarea":bo(r,i),W("invalid",r)}fi(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var u=i[o];o==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&Cr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&Cr(r.textContent,u,e),l=["children",""+u]):Kn.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&W("scroll",r)}switch(n){case"input":vr(r),qo(r,i,!0);break;case"textarea":vr(r),es(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=qr)}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=Nu(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[Ye]=t,e[nr]=r,Ga(e,t,!1,!1),t.stateNode=e;e:{switch(o=pi(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;l<Dn.length;l++)W(Dn[l],e);l=r;break;case"source":W("error",e),l=r;break;case"img":case"image":case"link":W("error",e),W("load",e),l=r;break;case"details":W("toggle",e),l=r;break;case"input":Jo(e,r),l=si(e,r),W("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=K({},r,{value:void 0}),W("invalid",e);break;case"textarea":bo(e,r),l=ci(e,r),W("invalid",e);break;default:l=r}fi(n,l),u=l;for(i in u)if(u.hasOwnProperty(i)){var a=u[i];i==="style"?_u(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Cu(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Yn(e,a):typeof a=="number"&&Yn(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Kn.hasOwnProperty(i)?a!=null&&i==="onScroll"&&W("scroll",e):a!=null&&to(e,i,a,o))}switch(n){case"input":vr(e),qo(e,r,!1);break;case"textarea":vr(e),es(e);break;case"option":r.value!=null&&e.setAttribute("value",""+St(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?on(e,!!r.multiple,i,!1):r.defaultValue!=null&&on(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=qr)}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 se(t),null;case 6:if(e&&t.stateNode!=null)Za(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=Rt(lr.current),Rt(Xe.current),Er(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,(i=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:Cr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cr(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r}return se(t),null;case 13:if(B(H),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&Se!==null&&t.mode&1&&!(t.flags&128))ha(),hn(),t.flags|=98560,i=!1;else if(i=Er(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[Ye]=t}else hn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),i=!1}else Ae!==null&&(Yi(Ae),Ae=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||H.current&1?ee===0&&(ee=3):$o())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return yn(),Ai(e,t),e===null&&er(t.stateNode.containerInfo),se(t),null;case 10:return ko(t.type._context),se(t),null;case 17:return ge(t.type)&&br(),se(t),null;case 19:if(B(H),i=t.memoizedState,i===null)return se(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Ln(i,!1);else{if(ee!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ol(e),o!==null){for(t.flags|=128,Ln(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 U(H,H.current&1|2),t.child}e=e.sibling}i.tail!==null&&J()>gn&&(t.flags|=128,r=!0,Ln(i,!1),t.lanes=4194304)}else{if(!r)if(e=ol(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ln(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!V)return se(t),null}else 2*J()-i.renderingStartTime>gn&&n!==1073741824&&(t.flags|=128,r=!0,Ln(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=H.current,U(H,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Fo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Cf(e,t){switch(vo(t),t.tag){case 1:return ge(t.type)&&br(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),B(ve),B(ae),Eo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Co(t),null;case 13:if(B(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(H),null;case 4:return yn(),null;case 10:return ko(t.type._context),null;case 22:case 23:return Fo(),null;case 24:return null;default:return null}}var Tr=!1,ue=!1,Ef=typeof WeakSet=="function"?WeakSet:Set,C=null;function rn(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 Ui(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Vs=!1;function _f(e,t){if(ji=Xr,e=ta(),mo(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,u=-1,a=-1,d=0,v=0,y=e,h=null;t:for(;;){for(var m;y!==n||l!==0&&y.nodeType!==3||(u=o+l),y!==i||r!==0&&y.nodeType!==3||(a=o+r),y.nodeType===3&&(o+=y.nodeValue.length),(m=y.firstChild)!==null;)h=y,y=m;for(;;){if(y===e)break t;if(h===n&&++d===l&&(u=o),h===i&&++v===r&&(a=o),(m=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=m}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ni={focusedElem:e,selectionRange:n},Xr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var x=g.memoizedProps,P=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Fe(t.type,x),P);f.__reactInternalSnapshotBeforeUpdate=c}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(w){Y(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return g=Vs,Vs=!1,g}function Vn(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&&Ui(t,n,i)}l=l.next}while(l!==r)}}function jl(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 Wi(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 Ja(e){var t=e.alternate;t!==null&&(e.alternate=null,Ja(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[nr],delete t[_i],delete t[af],delete t[cf])),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 qa(e){return e.tag===5||e.tag===3||e.tag===4}function Hs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qa(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 Bi(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=qr));else if(r!==4&&(e=e.child,e!==null))for(Bi(e,t,n),e=e.sibling;e!==null;)Bi(e,t,n),e=e.sibling}function Vi(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(Vi(e,t,n),e=e.sibling;e!==null;)Vi(e,t,n),e=e.sibling}var re=null,$e=!1;function st(e,t,n){for(n=n.child;n!==null;)ba(e,t,n),n=n.sibling}function ba(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(ml,n)}catch{}switch(n.tag){case 5:ue||rn(n,t);case 6:var r=re,l=$e;re=null,st(e,t,n),re=r,$e=l,re!==null&&($e?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&($e?(e=re,n=n.stateNode,e.nodeType===8?Kl(e.parentNode,n):e.nodeType===1&&Kl(e,n),Jn(e)):Kl(re,n.stateNode));break;case 4:r=re,l=$e,re=n.stateNode.containerInfo,$e=!0,st(e,t,n),re=r,$e=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)&&Ui(n,t,o),l=l.next}while(l!==r)}st(e,t,n);break;case 1:if(!ue&&(rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Y(n,t,u)}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 Ef),t.forEach(function(r){var l=Df.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,u=o;e:for(;u!==null;){switch(u.tag){case 5:re=u.stateNode,$e=!1;break e;case 3:re=u.stateNode.containerInfo,$e=!0;break e;case 4:re=u.stateNode.containerInfo,$e=!0;break e}u=u.return}if(re===null)throw Error(S(160));ba(i,o,l),re=null,$e=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(d){Y(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ec(t,e),t=t.sibling}function ec(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{Vn(3,e,e.return),jl(3,e)}catch(x){Y(e,e.return,x)}try{Vn(5,e,e.return)}catch(x){Y(e,e.return,x)}}break;case 1:De(t,e),Qe(e),r&512&&n!==null&&rn(n,n.return);break;case 5:if(De(t,e),Qe(e),r&512&&n!==null&&rn(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,u=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&Su(l,i),pi(u,o);var d=pi(u,i);for(o=0;o<a.length;o+=2){var v=a[o],y=a[o+1];v==="style"?_u(l,y):v==="dangerouslySetInnerHTML"?Cu(l,y):v==="children"?Yn(l,y):to(l,v,y,d)}switch(u){case"input":ui(l,i);break;case"textarea":ju(l,i);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?on(l,!!i.multiple,m,!1):h!==!!i.multiple&&(i.defaultValue!=null?on(l,!!i.multiple,i.defaultValue,!0):on(l,!!i.multiple,i.multiple?[]:"",!1))}l[nr]=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{Jn(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||(Oo=J())),r&4&&Qs(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(d=ue)||v,De(t,e),ue=d):De(t,e),Qe(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!v&&e.mode&1)for(C=e,v=e.child;v!==null;){for(y=C=v;C!==null;){switch(h=C,m=h.child,h.tag){case 0:case 11:case 14:case 15:Vn(4,h,h.return);break;case 1:rn(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(x){Y(r,n,x)}}break;case 5:rn(h,h.return);break;case 22:if(h.memoizedState!==null){Ys(y);continue}}m!==null?(m.return=h,C=m):Ys(y)}v=v.sibling}e:for(v=null,y=e;;){if(y.tag===5){if(v===null){v=y;try{l=y.stateNode,d?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=y.stateNode,a=y.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,u.style.display=Eu("display",o))}catch(x){Y(e,e.return,x)}}}else if(y.tag===6){if(v===null)try{y.stateNode.nodeValue=d?"":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;v===y&&(v=null),y=y.return}v===y&&(v=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(qa(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=Hs(e);Vi(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,u=Hs(e);Bi(e,u,o);break;default:throw Error(S(161))}}catch(a){Y(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zf(e,t,n){C=e,tc(e)}function tc(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var l=C,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Tr;if(!o){var u=l.alternate,a=u!==null&&u.memoizedState!==null||ue;u=Tr;var d=ue;if(Tr=o,(ue=a)&&!d)for(C=l;C!==null;)o=C,a=o.child,o.tag===22&&o.memoizedState!==null?Gs(l):a!==null?(a.return=o,C=a):Gs(l);for(;i!==null;)C=i,tc(i),i=i.sibling;C=l,Tr=u,ue=d}Ks(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,C=i):Ks(e)}}function Ks(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ue||jl(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&&Ps(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}Ps(t,o,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var v=d.memoizedState;if(v!==null){var y=v.dehydrated;y!==null&&Jn(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}ue||t.flags&512&&Wi(t)}catch(h){Y(t,t.return,h)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function Ys(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function Gs(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jl(4,t)}catch(a){Y(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){Y(t,l,a)}}var i=t.return;try{Wi(t)}catch(a){Y(t,i,a)}break;case 5:var o=t.return;try{Wi(t)}catch(a){Y(t,o,a)}}}catch(a){Y(t,t.return,a)}if(t===e){C=null;break}var u=t.sibling;if(u!==null){u.return=t.return,C=u;break}C=t.return}}var Tf=Math.ceil,al=it.ReactCurrentDispatcher,Io=it.ReactCurrentOwner,Le=it.ReactCurrentBatchConfig,D=0,ne=null,q=null,le=0,ke=0,ln=Ct(0),ee=0,ur=null,$t=0,Nl=0,Mo=0,Hn=null,me=null,Oo=0,gn=1/0,Ze=null,cl=!1,Hi=null,xt=null,Pr=!1,pt=null,dl=0,Qn=0,Qi=null,Wr=-1,Br=0;function de(){return D&6?J():Wr!==-1?Wr:Wr=J()}function wt(e){return e.mode&1?D&2&&le!==0?le&-le:ff.transition!==null?(Br===0&&(Br=Au()),Br):(e=F,e!==0||(e=window.event,e=e===void 0?16:Ku(e.type)),e):1}function We(e,t,n,r){if(50<Qn)throw Qn=0,Qi=null,Error(S(185));cr(e,n,r),(!(D&2)||e!==ne)&&(e===ne&&(!(D&2)&&(Nl|=n),ee===4&&dt(e,le)),xe(e,r),n===1&&D===0&&!(t.mode&1)&&(gn=J()+500,wl&&Et()))}function xe(e,t){var n=e.callbackNode;dd(e,t);var r=Gr(e,e===ne?le:0);if(r===0)n!==null&&rs(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rs(n),t===1)e.tag===0?df(Xs.bind(null,e)):da(Xs.bind(null,e)),sf(function(){!(D&6)&&Et()}),n=null;else{switch(Uu(r)){case 1:n=oo;break;case 4:n=Fu;break;case 16:n=Yr;break;case 536870912:n=$u;break;default:n=Yr}n=ac(n,nc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nc(e,t){if(Wr=-1,Br=0,D&6)throw Error(S(327));var n=e.callbackNode;if(dn()&&e.callbackNode!==n)return null;var r=Gr(e,e===ne?le:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=fl(e,r);else{t=r;var l=D;D|=2;var i=lc();(ne!==e||le!==t)&&(Ze=null,gn=J()+500,It(e,t));do try{Rf();break}catch(u){rc(e,u)}while(!0);wo(),al.current=i,D=l,q!==null?t=0:(ne=null,le=0,t=ee)}if(t!==0){if(t===2&&(l=gi(e),l!==0&&(r=l,t=Ki(e,l))),t===1)throw n=ur,It(e,0),dt(e,r),xe(e,J()),n;if(t===6)dt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Pf(l)&&(t=fl(e,r),t===2&&(i=gi(e),i!==0&&(r=i,t=Ki(e,i))),t===1))throw n=ur,It(e,0),dt(e,r),xe(e,J()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Tt(e,me,Ze);break;case 3:if(dt(e,r),(r&130023424)===r&&(t=Oo+500-J(),10<t)){if(Gr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){de(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ei(Tt.bind(null,e,me,Ze),t);break}Tt(e,me,Ze);break;case 4:if(dt(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*Tf(r/1960))-r,10<r){e.timeoutHandle=Ei(Tt.bind(null,e,me,Ze),r);break}Tt(e,me,Ze);break;case 5:Tt(e,me,Ze);break;default:throw Error(S(329))}}}return xe(e,J()),e.callbackNode===n?nc.bind(null,e):null}function Ki(e,t){var n=Hn;return e.current.memoizedState.isDehydrated&&(It(e,t).flags|=256),e=fl(e,t),e!==2&&(t=me,me=n,t!==null&&Yi(t)),e}function Yi(e){me===null?me=e:me.push.apply(me,e)}function Pf(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 dt(e,t){for(t&=~Mo,t&=~Nl,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 Xs(e){if(D&6)throw Error(S(327));dn();var t=Gr(e,0);if(!(t&1))return xe(e,J()),null;var n=fl(e,t);if(e.tag!==0&&n===2){var r=gi(e);r!==0&&(t=r,n=Ki(e,r))}if(n===1)throw n=ur,It(e,0),dt(e,t),xe(e,J()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tt(e,me,Ze),xe(e,J()),null}function Do(e,t){var n=D;D|=1;try{return e(t)}finally{D=n,D===0&&(gn=J()+500,wl&&Et())}}function At(e){pt!==null&&pt.tag===0&&!(D&6)&&dn();var t=D;D|=1;var n=Le.transition,r=F;try{if(Le.transition=null,F=1,e)return e()}finally{F=r,Le.transition=n,D=t,!(D&6)&&Et()}}function Fo(){ke=ln.current,B(ln)}function It(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,of(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(vo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&br();break;case 3:yn(),B(ve),B(ae),Eo();break;case 5:Co(r);break;case 4:yn();break;case 13:B(H);break;case 19:B(H);break;case 10:ko(r.type._context);break;case 22:case 23:Fo()}n=n.return}if(ne=e,q=e=kt(e.current,null),le=ke=t,ee=0,ur=null,Mo=Nl=$t=0,me=Hn=null,Lt!==null){for(t=0;t<Lt.length;t++)if(n=Lt[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}Lt=null}return e}function rc(e,t){do{var n=q;try{if(wo(),$r.current=ul,sl){for(var r=Q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}sl=!1}if(Ft=0,te=b=Q=null,Bn=!1,ir=0,Io.current=null,n===null||n.return===null){ee=1,ur=t,q=null;break}e:{var i=e,o=n.return,u=n,a=t;if(t=le,u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var d=a,v=u,y=v.tag;if(!(v.mode&1)&&(y===0||y===11||y===15)){var h=v.alternate;h?(v.updateQueue=h.updateQueue,v.memoizedState=h.memoizedState,v.lanes=h.lanes):(v.updateQueue=null,v.memoizedState=null)}var m=Ds(o);if(m!==null){m.flags&=-257,Fs(m,o,u,i,t),m.mode&1&&Os(i,d,t),t=m,a=d;var g=t.updateQueue;if(g===null){var x=new Set;x.add(a),t.updateQueue=x}else g.add(a);break e}else{if(!(t&1)){Os(i,d,t),$o();break e}a=Error(S(426))}}else if(V&&u.mode&1){var P=Ds(o);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Fs(P,o,u,i,t),go(vn(a,u));break e}}i=a=vn(a,u),ee!==4&&(ee=2),Hn===null?Hn=[i]:Hn.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var f=Ua(i,a,t);Ts(i,f);break e;case 1:u=a;var c=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(xt===null||!xt.has(p)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=Wa(i,u,t);Ts(i,w);break e}}i=i.return}while(i!==null)}oc(n)}catch(j){t=j,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function lc(){var e=al.current;return al.current=ul,e===null?ul:e}function $o(){(ee===0||ee===3||ee===2)&&(ee=4),ne===null||!($t&268435455)&&!(Nl&268435455)||dt(ne,le)}function fl(e,t){var n=D;D|=2;var r=lc();(ne!==e||le!==t)&&(Ze=null,It(e,t));do try{Lf();break}catch(l){rc(e,l)}while(!0);if(wo(),D=n,al.current=r,q!==null)throw Error(S(261));return ne=null,le=0,ee}function Lf(){for(;q!==null;)ic(q)}function Rf(){for(;q!==null&&!nd();)ic(q)}function ic(e){var t=uc(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?oc(e):q=t,Io.current=null}function oc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Cf(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ee=6,q=null;return}}else if(n=Nf(n,t,ke),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);ee===0&&(ee=5)}function Tt(e,t,n){var r=F,l=Le.transition;try{Le.transition=null,F=1,If(e,t,n,r)}finally{Le.transition=l,F=r}return null}function If(e,t,n,r){do dn();while(pt!==null);if(D&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(fd(e,i),e===ne&&(q=ne=null,le=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pr||(Pr=!0,ac(Yr,function(){return dn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Le.transition,Le.transition=null;var o=F;F=1;var u=D;D|=4,Io.current=null,_f(e,n),ec(n,e),qd(Ni),Xr=!!ji,Ni=ji=null,e.current=n,zf(n),rd(),D=u,F=o,Le.transition=i}else e.current=n;if(Pr&&(Pr=!1,pt=e,dl=l),i=e.pendingLanes,i===0&&(xt=null),od(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(cl)throw cl=!1,e=Hi,Hi=null,e;return dl&1&&e.tag!==0&&dn(),i=e.pendingLanes,i&1?e===Qi?Qn++:(Qn=0,Qi=e):Qn=0,Et(),null}function dn(){if(pt!==null){var e=Uu(dl),t=Le.transition,n=F;try{if(Le.transition=null,F=16>e?16:e,pt===null)var r=!1;else{if(e=pt,pt=null,dl=0,D&6)throw Error(S(331));var l=D;for(D|=4,C=e.current;C!==null;){var i=C,o=i.child;if(C.flags&16){var u=i.deletions;if(u!==null){for(var a=0;a<u.length;a++){var d=u[a];for(C=d;C!==null;){var v=C;switch(v.tag){case 0:case 11:case 15:Vn(8,v,i)}var y=v.child;if(y!==null)y.return=v,C=y;else for(;C!==null;){v=C;var h=v.sibling,m=v.return;if(Ja(v),v===d){C=null;break}if(h!==null){h.return=m,C=h;break}C=m}}}var g=i.alternate;if(g!==null){var x=g.child;if(x!==null){g.child=null;do{var P=x.sibling;x.sibling=null,x=P}while(x!==null)}}C=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,C=o;else e:for(;C!==null;){if(i=C,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Vn(9,i,i.return)}var f=i.sibling;if(f!==null){f.return=i.return,C=f;break e}C=i.return}}var c=e.current;for(C=c;C!==null;){o=C;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,C=p;else e:for(o=c;C!==null;){if(u=C,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:jl(9,u)}}catch(j){Y(u,u.return,j)}if(u===o){C=null;break e}var w=u.sibling;if(w!==null){w.return=u.return,C=w;break e}C=u.return}}if(D=l,Et(),Ge&&typeof Ge.onPostCommitFiberRoot=="function")try{Ge.onPostCommitFiberRoot(ml,e)}catch{}r=!0}return r}finally{F=n,Le.transition=t}}return!1}function Zs(e,t,n){t=vn(n,t),t=Ua(e,t,1),e=gt(e,t,1),t=de(),e!==null&&(cr(e,1,t),xe(e,t))}function Y(e,t,n){if(e.tag===3)Zs(e,e,n);else for(;t!==null;){if(t.tag===3){Zs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xt===null||!xt.has(r))){e=vn(n,e),e=Wa(t,e,1),t=gt(t,e,1),e=de(),t!==null&&(cr(t,1,e),xe(t,e));break}}t=t.return}}function Mf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=de(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(le&n)===n&&(ee===4||ee===3&&(le&130023424)===le&&500>J()-Oo?It(e,0):Mo|=n),xe(e,t)}function sc(e,t){t===0&&(e.mode&1?(t=wr,wr<<=1,!(wr&130023424)&&(wr=4194304)):t=1);var n=de();e=rt(e,t),e!==null&&(cr(e,t,n),xe(e,n))}function Of(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sc(e,n)}function Df(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),sc(e,n)}var uc;uc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,jf(e,t,n);ye=!!(e.flags&131072)}else ye=!1,V&&t.flags&1048576&&fa(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ur(e,t),e=t.pendingProps;var l=pn(t,ae.current);cn(t,n),l=zo(null,t,r,e,l,n);var i=To();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,ge(r)?(i=!0,el(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,jo(t),l.updater=Sl,t.stateNode=l,l._reactInternals=t,Ii(t,r,e,n),t=Di(null,t,r,!0,i,n)):(t.tag=0,V&&i&&yo(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ur(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=$f(r),e=Fe(r,e),l){case 0:t=Oi(null,t,r,e,n);break e;case 1:t=Us(null,t,r,e,n);break e;case 11:t=$s(null,t,r,e,n);break e;case 14:t=As(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),Oi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Us(e,t,r,l,n);case 3:e:{if(Qa(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ga(e,t),il(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=Ws(e,t,r,n,l);break e}else if(r!==l){l=vn(Error(S(424)),t),t=Ws(e,t,r,n,l);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),je=t,V=!0,Ae=null,n=ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hn(),r===l){t=lt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return xa(t),e===null&&Pi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ci(r,l)?o=null:i!==null&&Ci(r,i)&&(t.flags|=32),Ha(e,t),ce(e,t,o,n),t.child;case 6:return e===null&&Pi(t),null;case 13:return Ka(e,t,n);case 4:return No(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),$s(e,t,r,l,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(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,U(rl,r._currentValue),r._currentValue=o,i!==null)if(Be(i.value,o)){if(i.children===l.children&&!ve.current){t=lt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=et(-1,n&-n),a.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?a.next=a:(a.next=v.next,v.next=a),d.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Li(i.return,n,t),u.lanes|=n;break}a=a.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,u=o.alternate,u!==null&&(u.lanes|=n),Li(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}ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,cn(t,n),l=Re(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Fe(r,t.pendingProps),l=Fe(r.type,l),As(e,t,r,l,n);case 15:return Ba(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Fe(r,l),Ur(e,t),t.tag=1,ge(r)?(e=!0,el(t)):e=!1,cn(t,n),Aa(t,r,l),Ii(t,r,l,n),Di(null,t,r,!0,e,n);case 19:return Ya(e,t,n);case 22:return Va(e,t,n)}throw Error(S(156,t.tag))};function ac(e,t){return Du(e,t)}function Ff(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 Pe(e,t,n,r){return new Ff(e,t,n,r)}function Ao(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $f(e){if(typeof e=="function")return Ao(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ro)return 11;if(e===lo)return 14}return 2}function kt(e,t){var n=e.alternate;return n===null?(n=Pe(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 Vr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ao(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Gt:return Mt(n.children,l,i,t);case no:o=8,l|=8;break;case ri:return e=Pe(12,n,t,l|2),e.elementType=ri,e.lanes=i,e;case li:return e=Pe(13,n,t,l),e.elementType=li,e.lanes=i,e;case ii:return e=Pe(19,n,t,l),e.elementType=ii,e.lanes=i,e;case xu:return Cl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vu:o=10;break e;case gu:o=9;break e;case ro:o=11;break e;case lo:o=14;break e;case ut:o=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Pe(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Mt(e,t,n,r){return e=Pe(7,e,r,t),e.lanes=n,e}function Cl(e,t,n,r){return e=Pe(22,e,r,t),e.elementType=xu,e.lanes=n,e.stateNode={isHidden:!1},e}function ei(e,t,n){return e=Pe(6,e,null,t),e.lanes=n,e}function ti(e,t,n){return t=Pe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Af(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=Ol(0),this.expirationTimes=Ol(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ol(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Uo(e,t,n,r,l,i,o,u,a){return e=new Af(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Pe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jo(i),e}function Uf(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 cc(e){if(!e)return jt;e=e._reactInternals;e:{if(Wt(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(ge(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(ge(n))return ca(e,n,t)}return t}function dc(e,t,n,r,l,i,o,u,a){return e=Uo(n,r,!0,e,l,i,o,u,a),e.context=cc(null),n=e.current,r=de(),l=wt(n),i=et(r,l),i.callback=t??null,gt(n,i,l),e.current.lanes=l,cr(e,l,r),xe(e,r),e}function El(e,t,n,r){var l=t.current,i=de(),o=wt(l);return n=cc(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=gt(l,t,o),e!==null&&(We(e,l,o,i),Fr(e,l,o)),o}function pl(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 Js(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wo(e,t){Js(e,t),(e=e.alternate)&&Js(e,t)}function Wf(){return null}var fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bo(e){this._internalRoot=e}_l.prototype.render=Bo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));El(e,t,null,null)};_l.prototype.unmount=Bo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;At(function(){El(null,e,null,null)}),t[nt]=null}};function _l(e){this._internalRoot=e}_l.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ct.length&&t!==0&&t<ct[n].priority;n++);ct.splice(n,0,e),n===0&&Qu(e)}};function Vo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qs(){}function Bf(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var d=pl(o);i.call(d)}}var o=dc(t,r,e,0,null,!1,!1,"",qs);return e._reactRootContainer=o,e[nt]=o.current,er(e.nodeType===8?e.parentNode:e),At(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var d=pl(a);u.call(d)}}var a=Uo(e,0,!1,null,null,!1,!1,"",qs);return e._reactRootContainer=a,e[nt]=a.current,er(e.nodeType===8?e.parentNode:e),At(function(){El(t,a,n,r)}),a}function Tl(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var u=l;l=function(){var a=pl(o);u.call(a)}}El(t,o,e,l)}else o=Bf(n,t,e,l,r);return pl(o)}Wu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=On(t.pendingLanes);n!==0&&(so(t,n|1),xe(t,J()),!(D&6)&&(gn=J()+500,Et()))}break;case 13:At(function(){var r=rt(e,1);if(r!==null){var l=de();We(r,e,1,l)}}),Wo(e,1)}};uo=function(e){if(e.tag===13){var t=rt(e,134217728);if(t!==null){var n=de();We(t,e,134217728,n)}Wo(e,134217728)}};Bu=function(e){if(e.tag===13){var t=wt(e),n=rt(e,t);if(n!==null){var r=de();We(n,e,t,r)}Wo(e,t)}};Vu=function(){return F};Hu=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};mi=function(e,t,n){switch(t){case"input":if(ui(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=xl(r);if(!l)throw Error(S(90));ku(r),ui(r,l)}}}break;case"textarea":ju(e,n);break;case"select":t=n.value,t!=null&&on(e,!!n.multiple,t,!1)}};Pu=Do;Lu=At;var Vf={usingClientEntryPoint:!1,Events:[fr,qt,xl,zu,Tu,Do]},Rn={findFiberByHostInstance:Pt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hf={bundleType:Rn.bundleType,version:Rn.version,rendererPackageName:Rn.rendererPackageName,rendererConfig:Rn.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=Mu(e),e===null?null:e.stateNode},findFiberByHostInstance:Rn.findFiberByHostInstance||Wf,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 Lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lr.isDisabled&&Lr.supportsFiber)try{ml=Lr.inject(Hf),Ge=Lr}catch{}}Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vf;Ce.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vo(t))throw Error(S(200));return Uf(e,t,null,n)};Ce.createRoot=function(e,t){if(!Vo(e))throw Error(S(299));var n=!1,r="",l=fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Uo(e,1,!1,null,null,n,!1,r,l),e[nt]=t.current,er(e.nodeType===8?e.parentNode:e),new Bo(t)};Ce.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=Mu(t),e=e===null?null:e.stateNode,e};Ce.flushSync=function(e){return At(e)};Ce.hydrate=function(e,t,n){if(!zl(t))throw Error(S(200));return Tl(null,e,t,!0,n)};Ce.hydrateRoot=function(e,t,n){if(!Vo(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=fc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=dc(t,null,e,1,n??null,l,!1,i,o),e[nt]=t.current,er(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 _l(t)};Ce.render=function(e,t,n){if(!zl(t))throw Error(S(200));return Tl(null,e,t,!1,n)};Ce.unmountComponentAtNode=function(e){if(!zl(e))throw Error(S(40));return e._reactRootContainer?(At(function(){Tl(null,null,e,!1,function(){e._reactRootContainer=null,e[nt]=null})}),!0):!1};Ce.unstable_batchedUpdates=Do;Ce.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zl(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Tl(e,t,n,!1,r)};Ce.version="18.3.1-next-f1338f8080-20240426";function pc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pc)}catch(e){console.error(e)}}pc(),pu.exports=Ce;var Qf=pu.exports,hc,bs=Qf;hc=bs.createRoot,bs.hydrateRoot;const Kf=new URLSearchParams(window.location.search),eu=Kf.get("token");eu&&(localStorage.setItem("nyxora_token",eu),window.history.replaceState({},document.title,window.location.pathname));const Yf=()=>localStorage.getItem("nyxora_token")||"";async function he(e,t){const n=Yf(),r=new Headers(t==null?void 0:t.headers);return n&&r.set("x-nyxora-token",n),fetch(e,{...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 Gf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mc=(...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 Xf={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 Zf=I.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:i,iconNode:o,...u},a)=>I.createElement("svg",{ref:a,...Xf,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:mc("lucide",l),...u},[...o.map(([d,v])=>I.createElement(d,v)),...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 G=(e,t)=>{const n=I.forwardRef(({className:r,...l},i)=>I.createElement(Zf,{ref:i,iconNode:t,className:mc(`lucide-${Gf(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 Jf=[["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"}]],yc=G("Activity",Jf);/**
|
|
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 qf=[["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"}]],bf=G("ArrowDownUp",qf);/**
|
|
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 ep=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],tp=G("ArrowRight",ep);/**
|
|
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 np=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],rp=G("Bot",np);/**
|
|
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 lp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tu=G("Check",lp);/**
|
|
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 ip=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ho=G("CircleCheck",ip);/**
|
|
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 op=[["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"}]],sp=G("Compass",op);/**
|
|
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 up=[["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"}]],Gi=G("Copy",up);/**
|
|
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 ap=[["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"}]],cp=G("LayoutDashboard",ap);/**
|
|
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 dp=[["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"}]],fp=G("MessageSquare",dp);/**
|
|
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 pp=[["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"}]],hp=G("Mic",pp);/**
|
|
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:"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"}]],yp=G("Pen",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 vp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gp=G("Plus",vp);/**
|
|
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 xp=[["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"}]],wp=G("RefreshCcw",xp);/**
|
|
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 kp=[["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"}]],Sp=G("Save",kp);/**
|
|
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 jp=[["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"}]],Np=G("Send",jp);/**
|
|
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 Cp=[["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"}]],Ep=G("Settings",Cp);/**
|
|
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 _p=[["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"}]],zp=G("Trash2",_p);/**
|
|
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 Tp=[["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"}]],Pp=G("TrendingDown",Tp);/**
|
|
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 Lp=[["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"}]],Rp=G("TrendingUp",Lp);/**
|
|
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 Ip=[["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"}]],Mp=G("Wallet",Ip);/**
|
|
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 Op=[["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"}]],Dp=G("Zap",Op),Fp=({config:e})=>{const[t,n]=I.useState({cost:0,tokens:0,messages:0}),[r,l]=I.useState([]),[i,o]=I.useState([]),u=I.useRef(null),a=I.useRef(null);return I.useEffect(()=>{const d=async()=>{try{const y=await he("http://localhost:3000/api/stats");y.ok&&n(await y.json());const h=await he("http://localhost:3000/api/logs");if(h.ok){const m=await h.json();l(m.events),o(m.gateway)}}catch{console.error("Failed to fetch analytics")}};d();const v=setInterval(d,2e3);return()=>clearInterval(v)},[]),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:"http://localhost:3000/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((d,v)=>s.jsxs("div",{className:"log-row",children:[s.jsx("span",{className:"log-time",children:d.timestamp}),s.jsxs("span",{className:"log-msg",children:[d.event," ",s.jsx("span",{className:"log-meta",children:JSON.stringify(d.meta)})]})]},v)),s.jsx("div",{ref:u})]})]}),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((d,v)=>s.jsx("div",{className:"log-row gateway-row",children:s.jsx("span",{className:"log-json",children:`{"timestamp":"${d.timestamp}","message":${JSON.stringify(d.message)}${d.meta?`,"meta":${JSON.stringify(d.meta)}`:""}}`})},v)),s.jsx("div",{ref:a})]})]})]})]}):s.jsx("div",{className:"overview-container",children:"Loading..."})},$p=({config:e,onConfigChange:t})=>{var h;const[n,r]=I.useState(null),[l,i]=I.useState(!1);if(I.useEffect(()=>{var m,g,x,P,f,c,p,w;e&&r({agent:{name:((m=e.agent)==null?void 0:m.name)||"Nyxora",default_chain:((g=e.agent)==null?void 0:g.default_chain)||"base"},llm:{provider:((x=e.llm)==null?void 0:x.provider)||"openai",model:((P=e.llm)==null?void 0:P.model)||"gpt-4o-mini",temperature:((f=e.llm)==null?void 0:f.temperature)??.2,api_keys:Array.isArray((c=e.llm)==null?void 0:c.api_keys)?e.llm.api_keys:(p=e.llm)!=null&&p.api_keys?[e.llm.api_keys]:[]},web3:{rpc_urls:((w=e.web3)==null?void 0:w.rpc_urls)||{}}})},[e]),!n)return s.jsx("div",{className:"overview-container",children:"Loading settings..."});const o=(m,g,x)=>{r(P=>P&&{...P,[m]:{...P[m],[g]:g==="temperature"?Number(x):x}})},u=(m,g)=>{r(x=>{var c;if(!x)return x;const P=g.split(",").map(p=>p.trim()).filter(p=>p),f={...((c=x.web3)==null?void 0:c.rpc_urls)||{}};return P.length===0?delete f[m]:P.length===1?f[m]=P[0]:f[m]=P,{...x,web3:{...x.web3,rpc_urls:f}}})},a=()=>{r(m=>{if(!m)return m;const g=m.llm.api_keys||[];return g.length>=10?m:{...m,llm:{...m.llm,api_keys:[...g,""]}}})},d=(m,g)=>{r(x=>{if(!x)return x;const P=[...x.llm.api_keys||[]];return P[m]=g,{...x,llm:{...x.llm,api_keys:P}}})},v=m=>{r(g=>{if(!g)return g;const x=[...g.llm.api_keys||[]];return x.splice(m,1),{...g,llm:{...g.llm,api_keys:x}}})},y=async()=>{i(!0);try{(await he("http://localhost:3000/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).ok&&(t(n),alert("Settings saved successfully!"))}catch(m){console.error(m),alert("Failed to save settings")}finally{i(!1)}};return s.jsxs("div",{className:"overview-container",children:[s.jsxs("div",{className:"overview-header",children:[s.jsx("h1",{children:"Configuration"}),s.jsx("p",{children:"Modify the core behaviors and parameters of the Nyxora Agent."})]}),s.jsxs("div",{className:"panel",children:[s.jsx("div",{className:"panel-header",children: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",{children:"Agent Name"}),s.jsx("input",{type:"text",value:n.agent.name,onChange:m=>o("agent","name",m.target.value)})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{children:"Default Web3 Chain"}),s.jsxs("select",{value:n.agent.default_chain,onChange:m=>o("agent","default_chain",m.target.value),children:[s.jsx("option",{value:"sepolia",children:"Sepolia Testnet"}),s.jsx("option",{value:"ethereum",children:"Ethereum Mainnet"}),s.jsx("option",{value:"base",children:"Base"}),s.jsx("option",{value:"bsc",children:"BNB Chain"}),s.jsx("option",{value:"arbitrum",children:"Arbitrum"}),s.jsx("option",{value:"optimism",children:"Optimism"})]})]})]})]}),s.jsxs("div",{className:"panel",children:[s.jsx("div",{className:"panel-header",children: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",{children:"Provider"}),s.jsxs("select",{value:n.llm.provider,onChange:m=>o("llm","provider",m.target.value),children:[s.jsx("option",{value:"gemini",children:"Google Gemini"}),s.jsx("option",{value:"openai",children:"OpenAI"}),s.jsx("option",{value:"openrouter",children:"OpenRouter"}),s.jsx("option",{value:"ollama",children:"Ollama (Local)"})]})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsx("label",{children:"Model Name"}),s.jsx("input",{type:"text",value:n.llm.model,onChange:m=>o("llm","model",m.target.value)})]}),s.jsxs("div",{className:"form-group flex-1",children:[s.jsxs("label",{children:["Temperature (",n.llm.temperature,")"]}),s.jsx("input",{type:"range",min:"0",max:"1",step:"0.1",value:n.llm.temperature,onChange:m=>o("llm","temperature",m.target.value),style:{padding:"0",background:"transparent"}})]})]})]}),s.jsxs("div",{className:"panel",children:[s.jsxs("div",{className:"panel-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsx("h3",{children:"API Keys (Rotation)"}),s.jsxs("span",{style:{fontSize:"0.8rem",color:"#94a3b8"},children:[((h=n.llm.api_keys)==null?void 0:h.length)||0," / 10 Keys"]})]}),s.jsx("p",{style:{fontSize:"0.85rem",color:"#64748b",marginBottom:"16px"},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 .env file."}),s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[(n.llm.api_keys||[]).map((m,g)=>s.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:[s.jsx("input",{type:"password",value:m,placeholder:"sk-...",onChange:x=>d(g,x.target.value),style:{flex:1,padding:"10px 14px",background:"rgba(15, 23, 42, 0.5)",border:"1px solid var(--glass-border)",borderRadius:"6px",color:"white"}}),s.jsx("button",{onClick:()=>v(g),style:{background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"6px",padding:"10px 14px",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:x=>x.currentTarget.style.background="rgba(239, 68, 68, 0.2)",onMouseLeave:x=>x.currentTarget.style.background="rgba(239, 68, 68, 0.1)",children:"Delete"})]},g)),(!n.llm.api_keys||n.llm.api_keys.length<10)&&s.jsx("button",{onClick:a,style:{alignSelf:"flex-start",background:"rgba(59, 130, 246, 0.1)",color:"#3b82f6",border:"1px dashed #3b82f6",borderRadius:"6px",padding:"8px 16px",cursor:"pointer",marginTop:"8px",transition:"all 0.2s"},onMouseEnter:m=>m.currentTarget.style.background="rgba(59, 130, 246, 0.2)",onMouseLeave:m=>m.currentTarget.style.background="rgba(59, 130, 246, 0.1)",children:"+ Add API Key"})]})]}),s.jsxs("div",{className:"panel",children:[s.jsxs("div",{className:"panel-header",children:[s.jsx("h3",{children:"Web3 & RPC Settings"}),s.jsx("p",{style:{fontSize:"0.85rem",color:"#64748b",marginTop:"4px"},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:"16px",marginTop:"16px"},children:["ethereum","base","bsc","arbitrum","optimism","sepolia"].map(m=>{var P,f;const g=(f=(P=n.web3)==null?void 0:P.rpc_urls)==null?void 0:f[m],x=Array.isArray(g)?g.join(", "):g||"";return s.jsxs("div",{className:"form-group",children:[s.jsxs("label",{style:{textTransform:"capitalize"},children:[m," RPC"]}),s.jsx("input",{type:"text",placeholder:"https://...",value:x,onChange:c=>u(m,c.target.value)})]},m)})})]}),s.jsx("div",{className:"form-actions",style:{justifyContent:"flex-end",marginTop:"32px"},children:s.jsxs("button",{className:"btn-primary",onClick:y,disabled:l,children:[s.jsx(Sp,{size:16,style:{marginRight:"8px",display:"inline"}}),l?"Saving...":"Save Configuration"]})})]})},Ap=e=>e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),Up=()=>{const[e,t]=I.useState([]),[n,r]=I.useState(!0);return I.useEffect(()=>{(async()=>{try{const i=await he("http://localhost:3000/api/skills");i.ok&&t(await i.json())}catch(i){console.error(i)}finally{r(!1)}})()},[]),n?s.jsx("div",{className:"overview-container",children:"Loading skills..."}):s.jsxs("div",{className:"overview-container",children:[s.jsxs("div",{className:"overview-header",children:[s.jsx("h1",{children:"Web3 Capabilities"}),s.jsx("p",{children:"Explore the autonomous on-chain functions currently loaded into the Agent's neural network."})]}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(350px, 1fr))",gap:"20px"},children:e.map((l,i)=>s.jsxs("div",{className:"panel",style:{display:"flex",flexDirection:"column"},children:[s.jsxs("div",{className:"panel-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid rgba(255,255,255,0.05)",paddingBottom:"12px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx(sp,{size:18,color:"#3b82f6"}),s.jsx("h3",{style:{margin:0,fontFamily:"monospace",fontSize:"1.1rem",color:"#60a5fa"},children:Ap(l.function.name)})]}),s.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.2)",color:"#4ade80"},children:"Active"})]}),s.jsx("div",{style:{padding:"16px 0",flex:1},children:s.jsx("p",{style:{color:"#d1d5db",fontSize:"0.9rem",lineHeight:"1.5"},children:l.function.description})})]},i))})]})},Wp=({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(Mp,{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(Ho,{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})]})]})},Bp=({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 u=e.match(/to (0x[a-fA-F0-9]+)/i);u&&(r=u[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(Ho,{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(tp,{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(Gi,{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"})]})},Vp=({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",u=i?"rgba(74, 222, 128, 0.1)":"rgba(239, 68, 68, 0.1)",a=i?Rp:Pp;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(yc,{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:u,color:o,padding:"6px 12px",borderRadius:"12px",display:"flex",alignItems:"center",gap:"6px",fontWeight:600,fontSize:"0.9rem"},children:[s.jsx(a,{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})]})})]})},Hp=({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(wp,{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(Ho,{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(bf,{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 Qp(){const[e,t]=I.useState("chat"),[n,r]=I.useState(["$BTC","$ETH","$SOL","$SUI"]),[l,i]=I.useState([]),[o,u]=I.useState([]),[a,d]=I.useState(null),[v,y]=I.useState(null),[h,m]=I.useState(""),[g,x]=I.useState(""),[P,f]=I.useState(!1),[c,p]=I.useState(!1),[w,j]=I.useState(!1),E=I.useRef(!1),[_,z]=I.useState(!1),[$,M]=I.useState(null),[_e,Bt]=I.useState(70),[ot,Sn]=I.useState(null),jn=I.useRef(null),we=I.useRef(null);I.useEffect(()=>{var k;(k=jn.current)==null||k.scrollIntoView({behavior:"smooth"})},[l,P]),I.useEffect(()=>{const k=window.SpeechRecognition||window.webkitSpeechRecognition;k&&(we.current=new k,we.current.continuous=!1,we.current.interimResults=!1,we.current.lang="en-US",we.current.onresult=T=>{const Z=T.results[0][0].transcript;x(Z),p(!1)},we.current.onerror=T=>{console.error("Speech recognition error",T.error),p(!1)},we.current.onend=()=>{p(!1)})},[]);const Vt=()=>{var k;try{(k=we.current)==null||k.start(),p(!0)}catch{}},N=k=>{if(!("speechSynthesis"in window))return;window.speechSynthesis.cancel();const T=k.replace(/[*#_`]/g,""),Z=new SpeechSynthesisUtterance(T);Z.lang="id-ID",Z.onstart=()=>z(!0),Z.onend=()=>{z(!1),E.current&&Vt()},window.speechSynthesis.speak(Z)},L=()=>{var T;const k=!w;j(k),E.current=k,k?Vt():((T=we.current)==null||T.stop(),p(!1),window.speechSynthesis.cancel(),z(!1))},R=async()=>{if(!a){i([]);return}try{const k=`http://localhost:3000/api/history?session_id=${a}`,T=await he(k);if(T.ok){const Z=await T.json();i(Z)}}catch{console.warn("Backend not ready, retrying history fetch in 2s...")}},A=async()=>{try{const k=await he("http://localhost:3000/api/sessions");if(k.ok){const T=await k.json();u(T),T.length>0&&!a&&d(T[0].id)}}catch{}},X=async()=>{try{const k=await he("http://localhost:3000/api/trending");k.ok&&r(await k.json())}catch{}},Ht=async()=>{try{const k=await he("http://localhost:3000/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:"New Chat"})});if(k.ok){const{id:T}=await k.json();d(T),i([]),await A(),t("chat")}}catch{}},Me=async(k,T)=>{try{await he(`http://localhost:3000/api/sessions/${k}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:T})}),y(null),await A()}catch{}},Nn=async(k,T)=>{T.stopPropagation();try{await he(`http://localhost:3000/api/sessions/${k}`,{method:"DELETE"}),a===k&&(d(null),i([])),await A()}catch{}},Oe=async()=>{try{const k=await he("http://localhost:3000/api/config");if(k.ok){const T=await k.json();M(T)}else setTimeout(Oe,2e3)}catch{console.warn("Backend not ready, retrying config fetch in 2s..."),setTimeout(Oe,2e3)}},Qt=async k=>{M(k);try{await he("http://localhost:3000/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)})}catch(T){console.error("Failed to save config",T)}};I.useEffect(()=>{R(),Oe(),A(),X();const k=setInterval(()=>{R(),A(),X()},2e3);return()=>clearInterval(k)},[a]),I.useEffect(()=>{setTimeout(()=>{var k;(k=jn.current)==null||k.scrollIntoView({behavior:"auto"})},10)},[l,P,e]);const vc=async k=>{if(k.preventDefault(),!g.trim()||P)return;const T=g.trim();x(""),f(!0);let Z=a;if(!Z)try{const He=T.length>25?T.substring(0,25)+"...":T,_t=await he("http://localhost:3000/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:He})});if(_t.ok){const{id:hr}=await _t.json();Z=hr,d(hr),await A()}}catch(He){console.error("Failed to auto-create session",He)}i(He=>[...He,{role:"user",content:T}]);try{const _t=await(await he("http://localhost:3000/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:T,session_id:Z})})).json();if(await R(),l.length===0&&Z){const hr=T.length>25?T.substring(0,25)+"...":T;Me(Z,hr)}E.current&&_t.response&&N(_t.response)}catch(He){console.error("Error sending message:",He)}finally{f(!1)}},Ve=[...l].reverse().find(k=>k.role==="tool");Ve&&Ve.name&&(Ve.name==="get_balance"||Ve.name==="transfer_native"||Ve.name==="get_price"||Ve.name==="swap_token")&&Ve.content;const gc=k=>k.split(/(\*\*.*?\*\*)/g).map((T,Z)=>T.startsWith("**")&&T.endsWith("**")?s.jsx("strong",{style:{color:"#fff"},children:T.slice(2,-2)},Z):T);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(rp,{size:28,color:"#88c0d0"})}),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:Ht,children:[s.jsx(gp,{size:15,className:"nav-icon"})," New Chat"]}),s.jsxs("div",{className:`nav-item ${e==="overview"?"active":""}`,onClick:()=>t("overview"),children:[s.jsx(cp,{size:15,className:"nav-icon"})," Overview"]}),s.jsxs("div",{className:`nav-item ${e==="skills"?"active":""}`,onClick:()=>t("skills"),children:[s.jsx(Dp,{size:15,className:"nav-icon"})," Web3 Skills"]}),s.jsxs("div",{className:`nav-item ${e==="settings"?"active":""}`,onClick:()=>t("settings"),children:[s.jsx(Ep,{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(k=>s.jsxs("div",{className:`nav-item session-item ${a===k.id&&e==="chat"?"active":""}`,onClick:()=>{d(k.id),t("chat")},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",overflow:"hidden",flex:1},children:[s.jsx(fp,{size:14,className:"nav-icon"}),s.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"0.85rem"},children:k.title})]}),s.jsxs("div",{style:{display:"flex",gap:"4px"},children:[s.jsx("button",{className:"delete-session-btn",onClick:T=>{T.stopPropagation(),y(k.id),m(k.title)},title:"Rename Session",children:s.jsx(yp,{size:12})}),s.jsx("button",{className:"delete-session-btn",onClick:T=>Nn(k.id,T),title:"Delete Session",children:s.jsx(zp,{size:14})})]})]},k.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:$?s.jsx(s.Fragment,{children:s.jsxs("select",{className:"config-dropdown",value:$.agent.default_chain,onChange:k=>Qt({...$,agent:{...$.agent,default_chain:k.target.value}}),children:[s.jsx("option",{value:"sepolia",children:"Sepolia (Testnet)"}),s.jsx("option",{value:"base",children:"Base"}),s.jsx("option",{value:"ethereum",children:"Ethereum"}),s.jsx("option",{value:"bsc",children:"BNB Smart Chain"}),s.jsx("option",{value:"arbitrum",children:"Arbitrum"})]})}):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(Fp,{config:$}):e==="skills"?s.jsx(Up,{}):e==="settings"?s.jsx($p,{config:$,onConfigChange:M}):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((k,T)=>{const Z=()=>{navigator.clipboard.writeText(k.content),Sn(T),setTimeout(()=>Sn(null),2e3)};return k.role==="user"?s.jsxs("div",{className:"message-wrapper user",children:[s.jsx("div",{className:"message-bubble",children:k.content}),s.jsx("button",{className:"copy-btn",onClick:Z,title:"Copy message",children:ot===T?s.jsx(tu,{size:14,color:"#a3be8c"}):s.jsx(Gi,{size:14})})]},T):k.role==="assistant"&&k.content?s.jsxs("div",{className:"message-wrapper agent",children:[s.jsx("div",{className:"message-bubble",children:gc(k.content)}),s.jsx("button",{className:"copy-btn",onClick:Z,title:"Copy message",children:ot===T?s.jsx(tu,{size:14,color:"#a3be8c"}):s.jsx(Gi,{size:14})})]},T):k.role==="assistant"&&k.tool_calls?s.jsx("div",{className:"message-wrapper agent",children:k.tool_calls.map((He,_t)=>s.jsxs("div",{className:"tool-call",children:[s.jsx(yc,{size:16,color:"#22c55e"}),"Executing: ",s.jsx("code",{children:He.function.name})]},_t))},T):null}),P&&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:jn})]}),s.jsxs("div",{className:"input-area",children:[s.jsxs("form",{className:"input-form",onSubmit:vc,children:[s.jsx("button",{type:"button",className:`voice-button ${c?"listening":""} ${_?"speaking":""} ${w&&!c&&!_?"active-mode":""}`,onClick:L,title:w?"Disable Voice Mode":"Enable Hands-Free Voice Mode",children:s.jsx(hp,{size:20})}),s.jsx("input",{type:"text",className:"chat-input",placeholder:"Message Nyxora Agent (Enter to send)...",value:g,onChange:k=>x(k.target.value),disabled:P}),s.jsx("button",{type:"submit",className:"send-button",disabled:P||!g.trim(),children:s.jsx(Np,{size:20})})]}),s.jsxs("div",{className:"trending-tokens",children:[s.jsx("span",{children:"Trending Tokens:"}),n.map((k,T)=>s.jsx("span",{className:"token-tag",onClick:()=>x(`Tolong berikan analisis pasar terbaru untuk ${k}`),title:`Click to analyze ${k}`,style:{cursor:"pointer"},children:k},T))]})]})]})})]}),v&&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:h,onChange:k=>m(k.target.value),onKeyDown:k=>{k.key==="Enter"&&Me(v,h),k.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:k=>k.target.style.borderColor="#88c0d0",onBlur:k=>k.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:k=>k.currentTarget.style.background="rgba(255,255,255,0.05)",onMouseLeave:k=>k.currentTarget.style.background="transparent",children:"Cancel"}),s.jsx("button",{onClick:()=>Me(v,h),style:{background:"#88c0d0",border:"none",color:"#13131a",cursor:"pointer",padding:"10px 20px",borderRadius:"24px",fontWeight:600,fontSize:"0.9rem"},onMouseEnter:k=>k.currentTarget.style.opacity="0.9",onMouseLeave:k=>k.currentTarget.style.opacity="1",children:"Rename"})]})]})})]})}hc(document.getElementById("root")).render(s.jsx(I.StrictMode,{children:s.jsx(Qp,{})}));
|