-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMicrobotEvolutionLab.hta
More file actions
221 lines (220 loc) · 197 KB
/
Copy pathMicrobotEvolutionLab.hta
File metadata and controls
221 lines (220 loc) · 197 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Microbot Evolution Lab</title>
<HTA:APPLICATION
ID="MicrobotEvolutionLabApp"
APPLICATIONNAME="Microbot Evolution Lab"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="yes"
ICON="favicon.ico"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
WINDOWSTATE="maximize"
NAVIGABLE="yes"
/>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🤖</text></svg>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Microbot Evolution Lab - 2D Artificial Life Simulation</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;800&display=swap" rel="stylesheet">
<script type="module" crossorigin>var mc=Object.defineProperty;var yc=(e,t,n)=>t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Y=(e,t,n)=>yc(e,typeof t!="symbol"?t+"":t,n);(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)}})();function gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zs={exports:{}},nl={},qs={exports:{}},_={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Xn=Symbol.for("react.element"),vc=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),kc=Symbol.for("react.strict_mode"),wc=Symbol.for("react.profiler"),Sc=Symbol.for("react.provider"),Cc=Symbol.for("react.context"),Ec=Symbol.for("react.forward_ref"),jc=Symbol.for("react.suspense"),Mc=Symbol.for("react.memo"),zc=Symbol.for("react.lazy"),Ao=Symbol.iterator;function Nc(e){return e===null||typeof e!="object"?null:(e=Ao&&e[Ao]||e["@@iterator"],typeof e=="function"?e:null)}var bs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eu=Object.assign,tu={};function sn(e,t,n){this.props=e,this.context=t,this.refs=tu,this.updater=n||bs}sn.prototype.isReactComponent={};sn.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")};sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nu(){}nu.prototype=sn.prototype;function Ui(e,t,n){this.props=e,this.context=t,this.refs=tu,this.updater=n||bs}var Wi=Ui.prototype=new nu;Wi.constructor=Ui;eu(Wi,sn.prototype);Wi.isPureReactComponent=!0;var Ho=Array.isArray,ru=Object.prototype.hasOwnProperty,$i={current:null},lu={key:!0,ref:!0,__self:!0,__source:!0};function iu(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)ru.call(t,r)&&!lu.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1<s){for(var u=Array(s),d=0;d<s;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)l[r]===void 0&&(l[r]=s[r]);return{$$typeof:Xn,type:e,key:i,ref:o,props:l,_owner:$i.current}}function Pc(e,t){return{$$typeof:Xn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Vi(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xn}function Rc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Uo=/\/+/g;function Sl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Rc(""+e.key):t.toString(36)}function kr(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 Xn:case vc:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Sl(o,0):r,Ho(l)?(n="",e!=null&&(n=e.replace(Uo,"$&/")+"/"),kr(l,t,n,"",function(d){return d})):l!=null&&(Vi(l)&&(l=Pc(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(Uo,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",Ho(e))for(var s=0;s<e.length;s++){i=e[s];var u=r+Sl(i,s);o+=kr(i,t,n,u,l)}else if(u=Nc(e),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=r+Sl(i,s++),o+=kr(i,t,n,u,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function rr(e,t,n){if(e==null)return e;var r=[],l=0;return kr(e,r,"","",function(i){return t.call(n,i,l++)}),r}function _c(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 ce={current:null},wr={transition:null},Tc={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:wr,ReactCurrentOwner:$i};function ou(){throw Error("act(...) is not supported in production builds of React.")}_.Children={map:rr,forEach:function(e,t,n){rr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rr(e,function(){t++}),t},toArray:function(e){return rr(e,function(t){return t})||[]},only:function(e){if(!Vi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_.Component=sn;_.Fragment=xc;_.Profiler=wc;_.PureComponent=Ui;_.StrictMode=kc;_.Suspense=jc;_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tc;_.act=ou;_.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=eu({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=$i.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)ru.call(t,u)&&!lu.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var d=0;d<u;d++)s[d]=arguments[d+2];r.children=s}return{$$typeof:Xn,type:e.type,key:l,ref:i,props:r,_owner:o}};_.createContext=function(e){return e={$$typeof:Cc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sc,_context:e},e.Consumer=e};_.createElement=iu;_.createFactory=function(e){var t=iu.bind(null,e);return t.type=e,t};_.createRef=function(){return{current:null}};_.forwardRef=function(e){return{$$typeof:Ec,render:e}};_.isValidElement=Vi;_.lazy=function(e){return{$$typeof:zc,_payload:{_status:-1,_result:e},_init:_c}};_.memo=function(e,t){return{$$typeof:Mc,type:e,compare:t===void 0?null:t}};_.startTransition=function(e){var t=wr.transition;wr.transition={};try{e()}finally{wr.transition=t}};_.unstable_act=ou;_.useCallback=function(e,t){return ce.current.useCallback(e,t)};_.useContext=function(e){return ce.current.useContext(e)};_.useDebugValue=function(){};_.useDeferredValue=function(e){return ce.current.useDeferredValue(e)};_.useEffect=function(e,t){return ce.current.useEffect(e,t)};_.useId=function(){return ce.current.useId()};_.useImperativeHandle=function(e,t,n){return ce.current.useImperativeHandle(e,t,n)};_.useInsertionEffect=function(e,t){return ce.current.useInsertionEffect(e,t)};_.useLayoutEffect=function(e,t){return ce.current.useLayoutEffect(e,t)};_.useMemo=function(e,t){return ce.current.useMemo(e,t)};_.useReducer=function(e,t,n){return ce.current.useReducer(e,t,n)};_.useRef=function(e){return ce.current.useRef(e)};_.useState=function(e){return ce.current.useState(e)};_.useSyncExternalStore=function(e,t,n){return ce.current.useSyncExternalStore(e,t,n)};_.useTransition=function(){return ce.current.useTransition()};_.version="18.3.1";qs.exports=_;var H=qs.exports;const Ic=gc(H);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Lc=H,Fc=Symbol.for("react.element"),Oc=Symbol.for("react.fragment"),Dc=Object.prototype.hasOwnProperty,Bc=Lc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ac={key:!0,ref:!0,__self:!0,__source:!0};function su(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)Dc.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:Fc,type:e,key:i,ref:o,props:l,_owner:Bc.current}}nl.Fragment=Oc;nl.jsx=su;nl.jsxs=su;Zs.exports=nl;var a=Zs.exports,Yl={},uu={exports:{}},we={},au={exports:{}},cu={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(M,P){var R=M.length;M.push(P);e:for(;0<R;){var G=R-1>>>1,q=M[G];if(0<l(q,P))M[G]=P,M[R]=q,R=G;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var P=M[0],R=M.pop();if(R!==P){M[0]=R;e:for(var G=0,q=M.length,tr=q>>>1;G<tr;){var vt=2*(G+1)-1,wl=M[vt],xt=vt+1,nr=M[xt];if(0>l(wl,R))xt<q&&0>l(nr,wl)?(M[G]=nr,M[xt]=R,G=xt):(M[G]=wl,M[vt]=R,G=vt);else if(xt<q&&0>l(nr,R))M[G]=nr,M[xt]=R,G=xt;else break e}}return P}function l(M,P){var R=M.sortIndex-P.sortIndex;return R!==0?R:M.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],d=[],c=1,m=null,g=3,y=!1,x=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(M){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=M)r(d),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(d)}}function v(M){if(w=!1,h(M),!x)if(n(u)!==null)x=!0,xl(C);else{var P=n(d);P!==null&&kl(v,P.startTime-M)}}function C(M,P){x=!1,w&&(w=!1,p(z),z=-1),y=!0;var R=g;try{for(h(P),m=n(u);m!==null&&(!(m.expirationTime>P)||M&&!Pe());){var G=m.callback;if(typeof G=="function"){m.callback=null,g=m.priorityLevel;var q=G(m.expirationTime<=P);P=e.unstable_now(),typeof q=="function"?m.callback=q:m===n(u)&&r(u),h(P)}else r(u);m=n(u)}if(m!==null)var tr=!0;else{var vt=n(d);vt!==null&&kl(v,vt.startTime-P),tr=!1}return tr}finally{m=null,g=R,y=!1}}var S=!1,E=null,z=-1,Q=5,T=-1;function Pe(){return!(e.unstable_now()-T<Q)}function cn(){if(E!==null){var M=e.unstable_now();T=M;var P=!0;try{P=E(!0,M)}finally{P?dn():(S=!1,E=null)}}else S=!1}var dn;if(typeof f=="function")dn=function(){f(cn)};else if(typeof MessageChannel<"u"){var Bo=new MessageChannel,hc=Bo.port2;Bo.port1.onmessage=cn,dn=function(){hc.postMessage(null)}}else dn=function(){N(cn,0)};function xl(M){E=M,S||(S=!0,dn())}function kl(M,P){z=N(function(){M(e.unstable_now())},P)}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(M){M.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,xl(C))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(M){switch(g){case 1:case 2:case 3:var P=3;break;default:P=g}var R=g;g=P;try{return M()}finally{g=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,P){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var R=g;g=M;try{return P()}finally{g=R}},e.unstable_scheduleCallback=function(M,P,R){var G=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?G+R:G):R=G,M){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=R+q,M={id:c++,callback:P,priorityLevel:M,startTime:R,expirationTime:q,sortIndex:-1},R>G?(M.sortIndex=R,t(d,M),n(u)===null&&M===n(d)&&(w?(p(z),z=-1):w=!0,kl(v,R-G))):(M.sortIndex=q,t(u,M),x||y||(x=!0,xl(C))),M},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(M){var P=g;return function(){var R=g;g=P;try{return M.apply(this,arguments)}finally{g=R}}}})(cu);au.exports=cu;var Hc=au.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Uc=H,ke=Hc;function k(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 du=new Set,In={};function Tt(e,t){bt(e,t),bt(e+"Capture",t)}function bt(e,t){for(In[e]=t,e=0;e<t.length;e++)du.add(t[e])}var Ke=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,Wc=/^[: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]*$/,Wo={},$o={};function $c(e){return Jl.call($o,e)?!0:Jl.call(Wo,e)?!1:Wc.test(e)?$o[e]=!0:(Wo[e]=!0,!1)}function Vc(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"||Vc(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 de(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 re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(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){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qi=/[\-:]([a-z])/g;function Gi(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(Qi,Gi);re[t]=new de(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(Qi,Gi);re[t]=new de(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(Qi,Gi);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ki(e,t,n,r){var l=re.hasOwnProperty(t)?re[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?$c(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 Ze=Uc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,lr=Symbol.for("react.element"),Ft=Symbol.for("react.portal"),Ot=Symbol.for("react.fragment"),Yi=Symbol.for("react.strict_mode"),Xl=Symbol.for("react.profiler"),fu=Symbol.for("react.provider"),pu=Symbol.for("react.context"),Ji=Symbol.for("react.forward_ref"),Zl=Symbol.for("react.suspense"),ql=Symbol.for("react.suspense_list"),Xi=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),hu=Symbol.for("react.offscreen"),Vo=Symbol.iterator;function fn(e){return e===null||typeof e!="object"?null:(e=Vo&&e[Vo]||e["@@iterator"],typeof e=="function"?e:null)}var $=Object.assign,Cl;function kn(e){if(Cl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cl=t&&t[1]||""}return`
`+Cl+e}var El=!1;function jl(e,t){if(!e||El)return"";El=!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(`
`),i=r.stack.split(`
`),o=l.length-1,s=i.length-1;1<=o&&0<=s&&l[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(l[o]!==i[s]){if(o!==1||s!==1)do if(o--,s--,0>s||l[o]!==i[s]){var u=`
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{El=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kn(e):""}function Gc(e){switch(e.tag){case 5:return kn(e.type);case 16:return kn("Lazy");case 13:return kn("Suspense");case 19:return kn("SuspenseList");case 0:case 2:case 15:return e=jl(e.type,!1),e;case 11:return e=jl(e.type.render,!1),e;case 1:return e=jl(e.type,!0),e;default:return""}}function bl(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 Ot:return"Fragment";case Ft:return"Portal";case Xl:return"Profiler";case Yi:return"StrictMode";case Zl:return"Suspense";case ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pu:return(e.displayName||"Context")+".Consumer";case fu:return(e._context.displayName||"Context")+".Provider";case Ji:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xi:return t=e.displayName||null,t!==null?t:bl(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return bl(e(t))}catch{}}return null}function Kc(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 bl(t);case 8:return t===Yi?"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 pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yc(e){var t=mu(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 ir(e){e._valueTracker||(e._valueTracker=Yc(e))}function yu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tr(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 ei(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pt(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 gu(e,t){t=t.checked,t!=null&&Ki(e,"checked",t,!1)}function ti(e,t){gu(e,t);var n=pt(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")?ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&ni(e,t.type,pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Go(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 ni(e,t,n){(t!=="number"||Tr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wn=Array.isArray;function Kt(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=""+pt(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 ri(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return $({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ko(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(wn(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:pt(n)}}function vu(e,t){var n=pt(t.value),r=pt(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 Yo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xu(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 li(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var or,ku=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(or=or||document.createElement("div"),or.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var En={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},Jc=["Webkit","ms","Moz","O"];Object.keys(En).forEach(function(e){Jc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),En[t]=En[e]})});function wu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||En.hasOwnProperty(e)&&En[e]?(""+t).trim():t+"px"}function Su(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=wu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Xc=$({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 ii(e,t){if(t){if(Xc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function oi(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 si=null;function Zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,Yt=null,Jt=null;function Jo(e){if(e=bn(e)){if(typeof ui!="function")throw Error(k(280));var t=e.stateNode;t&&(t=sl(t),ui(e.stateNode,e.type,t))}}function Cu(e){Yt?Jt?Jt.push(e):Jt=[e]:Yt=e}function Eu(){if(Yt){var e=Yt,t=Jt;if(Jt=Yt=null,Jo(e),t)for(e=0;e<t.length;e++)Jo(t[e])}}function ju(e,t){return e(t)}function Mu(){}var Ml=!1;function zu(e,t,n){if(Ml)return e(t,n);Ml=!0;try{return ju(e,t,n)}finally{Ml=!1,(Yt!==null||Jt!==null)&&(Mu(),Eu())}}function Fn(e,t){var n=e.stateNode;if(n===null)return null;var r=sl(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(k(231,t,typeof n));return n}var ai=!1;if(Ke)try{var pn={};Object.defineProperty(pn,"passive",{get:function(){ai=!0}}),window.addEventListener("test",pn,pn),window.removeEventListener("test",pn,pn)}catch{ai=!1}function Zc(e,t,n,r,l,i,o,s,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(c){this.onError(c)}}var jn=!1,Ir=null,Lr=!1,ci=null,qc={onError:function(e){jn=!0,Ir=e}};function bc(e,t,n,r,l,i,o,s,u){jn=!1,Ir=null,Zc.apply(qc,arguments)}function ed(e,t,n,r,l,i,o,s,u){if(bc.apply(this,arguments),jn){if(jn){var d=Ir;jn=!1,Ir=null}else throw Error(k(198));Lr||(Lr=!0,ci=d)}}function It(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 Nu(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 Xo(e){if(It(e)!==e)throw Error(k(188))}function td(e){var t=e.alternate;if(!t){if(t=It(e),t===null)throw Error(k(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 Xo(l),e;if(i===r)return Xo(l),t;i=i.sibling}throw Error(k(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Pu(e){return e=td(e),e!==null?Ru(e):null}function Ru(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ru(e);if(t!==null)return t;e=e.sibling}return null}var _u=ke.unstable_scheduleCallback,Zo=ke.unstable_cancelCallback,nd=ke.unstable_shouldYield,rd=ke.unstable_requestPaint,K=ke.unstable_now,ld=ke.unstable_getCurrentPriorityLevel,qi=ke.unstable_ImmediatePriority,Tu=ke.unstable_UserBlockingPriority,Fr=ke.unstable_NormalPriority,id=ke.unstable_LowPriority,Iu=ke.unstable_IdlePriority,rl=null,He=null;function od(e){if(He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(rl,e,void 0,(e.current.flags&128)===128)}catch{}}var Le=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 sr=64,ur=4194304;function Sn(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 Or(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 s=o&~l;s!==0?r=Sn(s):(i&=o,i!==0&&(r=Sn(i)))}else o=n&~l,o!==0?r=Sn(o):i!==0&&(r=Sn(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-Le(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-Le(i),s=1<<o,u=l[o];u===-1?(!(s&n)||s&r)&&(l[o]=cd(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}function di(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Lu(){var e=sr;return sr<<=1,!(sr&4194240)&&(sr=64),e}function zl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Le(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-Le(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function bi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var L=0;function Fu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ou,eo,Du,Bu,Au,fi=!1,ar=[],it=null,ot=null,st=null,On=new Map,Dn=new Map,tt=[],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 qo(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":On.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dn.delete(t.pointerId)}}function hn(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=bn(t),t!==null&&eo(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 it=hn(it,e,t,n,r,l),!0;case"dragenter":return ot=hn(ot,e,t,n,r,l),!0;case"mouseover":return st=hn(st,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return On.set(i,hn(On.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Dn.set(i,hn(Dn.get(i)||null,e,t,n,r,l)),!0}return!1}function Hu(e){var t=St(e.target);if(t!==null){var n=It(t);if(n!==null){if(t=n.tag,t===13){if(t=Nu(n),t!==null){e.blockedOn=t,Au(e.priority,function(){Du(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 Sr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);si=r,n.target.dispatchEvent(r),si=null}else return t=bn(n),t!==null&&eo(t),e.blockedOn=n,!1;t.shift()}return!0}function bo(e,t,n){Sr(e)&&n.delete(t)}function md(){fi=!1,it!==null&&Sr(it)&&(it=null),ot!==null&&Sr(ot)&&(ot=null),st!==null&&Sr(st)&&(st=null),On.forEach(bo),Dn.forEach(bo)}function mn(e,t){e.blockedOn===t&&(e.blockedOn=null,fi||(fi=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,md)))}function Bn(e){function t(l){return mn(l,e)}if(0<ar.length){mn(ar[0],e);for(var n=1;n<ar.length;n++){var r=ar[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&mn(it,e),ot!==null&&mn(ot,e),st!==null&&mn(st,e),On.forEach(t),Dn.forEach(t),n=0;n<tt.length;n++)r=tt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tt.length&&(n=tt[0],n.blockedOn===null);)Hu(n),n.blockedOn===null&&tt.shift()}var Xt=Ze.ReactCurrentBatchConfig,Dr=!0;function yd(e,t,n,r){var l=L,i=Xt.transition;Xt.transition=null;try{L=1,to(e,t,n,r)}finally{L=l,Xt.transition=i}}function gd(e,t,n,r){var l=L,i=Xt.transition;Xt.transition=null;try{L=4,to(e,t,n,r)}finally{L=l,Xt.transition=i}}function to(e,t,n,r){if(Dr){var l=pi(e,t,n,r);if(l===null)Dl(e,t,r,Br,n),qo(e,r);else if(hd(l,e,t,n,r))r.stopPropagation();else if(qo(e,r),t&4&&-1<pd.indexOf(e)){for(;l!==null;){var i=bn(l);if(i!==null&&Ou(i),i=pi(e,t,n,r),i===null&&Dl(e,t,r,Br,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Dl(e,t,r,null,n)}}var Br=null;function pi(e,t,n,r){if(Br=null,e=Zi(r),e=St(e),e!==null)if(t=It(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nu(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 Br=e,null}function Uu(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 qi:return 1;case Tu:return 4;case Fr:case id:return 16;case Iu:return 536870912;default:return 16}default:return 16}}var rt=null,no=null,Cr=null;function Wu(){if(Cr)return Cr;var e,t=no,n=t.length,r,l="value"in rt?rt.value:rt.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 Cr=l.slice(e,1<r?1-r:void 0)}function Er(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function cr(){return!0}function es(){return!1}function Se(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 s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?cr:es,this.isPropagationStopped=es,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=cr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=cr)},persist:function(){},isPersistent:cr}),t}var un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ro=Se(un),qn=$({},un,{view:0,detail:0}),vd=Se(qn),Nl,Pl,yn,ll=$({},qn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lo,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!==yn&&(yn&&e.type==="mousemove"?(Nl=e.screenX-yn.screenX,Pl=e.screenY-yn.screenY):Pl=Nl=0,yn=e),Nl)},movementY:function(e){return"movementY"in e?e.movementY:Pl}}),ts=Se(ll),xd=$({},ll,{dataTransfer:0}),kd=Se(xd),wd=$({},qn,{relatedTarget:0}),Rl=Se(wd),Sd=$({},un,{animationName:0,elapsedTime:0,pseudoElement:0}),Cd=Se(Sd),Ed=$({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jd=Se(Ed),Md=$({},un,{data:0}),ns=Se(Md),zd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Pd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pd[e])?!!t[e]:!1}function lo(){return Rd}var _d=$({},qn,{key:function(e){if(e.key){var t=zd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Er(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lo,charCode:function(e){return e.type==="keypress"?Er(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Er(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Td=Se(_d),Id=$({},ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rs=Se(Id),Ld=$({},qn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lo}),Fd=Se(Ld),Od=$({},un,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dd=Se(Od),Bd=$({},ll,{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=Se(Bd),Hd=[9,13,27,32],io=Ke&&"CompositionEvent"in window,Mn=null;Ke&&"documentMode"in document&&(Mn=document.documentMode);var Ud=Ke&&"TextEvent"in window&&!Mn,$u=Ke&&(!io||Mn&&8<Mn&&11>=Mn),ls=" ",is=!1;function Vu(e,t){switch(e){case"keyup":return Hd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dt=!1;function Wd(e,t){switch(e){case"compositionend":return Qu(t);case"keypress":return t.which!==32?null:(is=!0,ls);case"textInput":return e=t.data,e===ls&&is?null:e;default:return null}}function $d(e,t){if(Dt)return e==="compositionend"||!io&&Vu(e,t)?(e=Wu(),Cr=no=rt=null,Dt=!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 $u&&t.locale!=="ko"?null:t.data;default:return null}}var Vd={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 os(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vd[e.type]:t==="textarea"}function Gu(e,t,n,r){Cu(r),t=Ar(t,"onChange"),0<t.length&&(n=new ro("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zn=null,An=null;function Qd(e){ra(e,0)}function il(e){var t=Ht(e);if(yu(t))return e}function Gd(e,t){if(e==="change")return t}var Ku=!1;if(Ke){var _l;if(Ke){var Tl="oninput"in document;if(!Tl){var ss=document.createElement("div");ss.setAttribute("oninput","return;"),Tl=typeof ss.oninput=="function"}_l=Tl}else _l=!1;Ku=_l&&(!document.documentMode||9<document.documentMode)}function us(){zn&&(zn.detachEvent("onpropertychange",Yu),An=zn=null)}function Yu(e){if(e.propertyName==="value"&&il(An)){var t=[];Gu(t,An,e,Zi(e)),zu(Qd,t)}}function Kd(e,t,n){e==="focusin"?(us(),zn=t,An=n,zn.attachEvent("onpropertychange",Yu)):e==="focusout"&&us()}function Yd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return il(An)}function Jd(e,t){if(e==="click")return il(t)}function Xd(e,t){if(e==="input"||e==="change")return il(t)}function Zd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oe=typeof Object.is=="function"?Object.is:Zd;function Hn(e,t){if(Oe(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(!Jl.call(t,l)||!Oe(e[l],t[l]))return!1}return!0}function as(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cs(e,t){var n=as(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=as(n)}}function Ju(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ju(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xu(){for(var e=window,t=Tr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tr(e.document)}return t}function oo(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=Xu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ju(n.ownerDocument.documentElement,n)){if(r!==null&&oo(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=cs(n,i);var o=cs(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=Ke&&"documentMode"in document&&11>=document.documentMode,Bt=null,hi=null,Nn=null,mi=!1;function ds(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mi||Bt==null||Bt!==Tr(r)||(r=Bt,"selectionStart"in r&&oo(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}),Nn&&Hn(Nn,r)||(Nn=r,r=Ar(hi,"onSelect"),0<r.length&&(t=new ro("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bt)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var At={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionend:dr("Transition","TransitionEnd")},Il={},Zu={};Ke&&(Zu=document.createElement("div").style,"AnimationEvent"in window||(delete At.animationend.animation,delete At.animationiteration.animation,delete At.animationstart.animation),"TransitionEvent"in window||delete At.transitionend.transition);function ol(e){if(Il[e])return Il[e];if(!At[e])return e;var t=At[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zu)return Il[e]=t[n];return e}var qu=ol("animationend"),bu=ol("animationiteration"),ea=ol("animationstart"),ta=ol("transitionend"),na=new Map,fs="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 mt(e,t){na.set(e,t),Tt(t,[e])}for(var Ll=0;Ll<fs.length;Ll++){var Fl=fs[Ll],ef=Fl.toLowerCase(),tf=Fl[0].toUpperCase()+Fl.slice(1);mt(ef,"on"+tf)}mt(qu,"onAnimationEnd");mt(bu,"onAnimationIteration");mt(ea,"onAnimationStart");mt("dblclick","onDoubleClick");mt("focusin","onFocus");mt("focusout","onBlur");mt(ta,"onTransitionEnd");bt("onMouseEnter",["mouseout","mouseover"]);bt("onMouseLeave",["mouseout","mouseover"]);bt("onPointerEnter",["pointerout","pointerover"]);bt("onPointerLeave",["pointerout","pointerover"]);Tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cn="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(Cn));function ps(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ed(r,t,void 0,e),e.currentTarget=null}function ra(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 s=r[o],u=s.instance,d=s.currentTarget;if(s=s.listener,u!==i&&l.isPropagationStopped())break e;ps(l,s,d),i=u}else for(o=0;o<r.length;o++){if(s=r[o],u=s.instance,d=s.currentTarget,s=s.listener,u!==i&&l.isPropagationStopped())break e;ps(l,s,d),i=u}}}if(Lr)throw e=ci,Lr=!1,ci=null,e}function D(e,t){var n=t[ki];n===void 0&&(n=t[ki]=new Set);var r=e+"__bubble";n.has(r)||(la(t,e,2,!1),n.add(r))}function Ol(e,t,n){var r=0;t&&(r|=4),la(n,e,r,t)}var fr="_reactListening"+Math.random().toString(36).slice(2);function Un(e){if(!e[fr]){e[fr]=!0,du.forEach(function(n){n!=="selectionchange"&&(nf.has(n)||Ol(n,!1,e),Ol(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fr]||(t[fr]=!0,Ol("selectionchange",!1,t))}}function la(e,t,n,r){switch(Uu(t)){case 1:var l=yd;break;case 4:l=gd;break;default:l=to}n=l.bind(null,t,n,e),l=void 0,!ai||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 Dl(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 s=r.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;s!==null;){if(o=St(s),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}s=s.parentNode}}r=r.return}zu(function(){var d=i,c=Zi(n),m=[];e:{var g=na.get(e);if(g!==void 0){var y=ro,x=e;switch(e){case"keypress":if(Er(n)===0)break e;case"keydown":case"keyup":y=Td;break;case"focusin":x="focus",y=Rl;break;case"focusout":x="blur",y=Rl;break;case"beforeblur":case"afterblur":y=Rl;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":y=ts;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=kd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Fd;break;case qu:case bu:case ea:y=Cd;break;case ta:y=Dd;break;case"scroll":y=vd;break;case"wheel":y=Ad;break;case"copy":case"cut":case"paste":y=jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=rs}var w=(t&4)!==0,N=!w&&e==="scroll",p=w?g!==null?g+"Capture":null:g;w=[];for(var f=d,h;f!==null;){h=f;var v=h.stateNode;if(h.tag===5&&v!==null&&(h=v,p!==null&&(v=Fn(f,p),v!=null&&w.push(Wn(f,v,h)))),N)break;f=f.return}0<w.length&&(g=new y(g,x,null,n,c),m.push({event:g,listeners:w}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",g&&n!==si&&(x=n.relatedTarget||n.fromElement)&&(St(x)||x[Ye]))break e;if((y||g)&&(g=c.window===c?c:(g=c.ownerDocument)?g.defaultView||g.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=d,x=x?St(x):null,x!==null&&(N=It(x),x!==N||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=d),y!==x)){if(w=ts,v="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(w=rs,v="onPointerLeave",p="onPointerEnter",f="pointer"),N=y==null?g:Ht(y),h=x==null?g:Ht(x),g=new w(v,f+"leave",y,n,c),g.target=N,g.relatedTarget=h,v=null,St(c)===d&&(w=new w(p,f+"enter",x,n,c),w.target=h,w.relatedTarget=N,v=w),N=v,y&&x)t:{for(w=y,p=x,f=0,h=w;h;h=Lt(h))f++;for(h=0,v=p;v;v=Lt(v))h++;for(;0<f-h;)w=Lt(w),f--;for(;0<h-f;)p=Lt(p),h--;for(;f--;){if(w===p||p!==null&&w===p.alternate)break t;w=Lt(w),p=Lt(p)}w=null}else w=null;y!==null&&hs(m,g,y,w,!1),x!==null&&N!==null&&hs(m,N,x,w,!0)}}e:{if(g=d?Ht(d):window,y=g.nodeName&&g.nodeName.toLowerCase(),y==="select"||y==="input"&&g.type==="file")var C=Gd;else if(os(g))if(Ku)C=Xd;else{C=Yd;var S=Kd}else(y=g.nodeName)&&y.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(C=Jd);if(C&&(C=C(e,d))){Gu(m,C,n,c);break e}S&&S(e,g,d),e==="focusout"&&(S=g._wrapperState)&&S.controlled&&g.type==="number"&&ni(g,"number",g.value)}switch(S=d?Ht(d):window,e){case"focusin":(os(S)||S.contentEditable==="true")&&(Bt=S,hi=d,Nn=null);break;case"focusout":Nn=hi=Bt=null;break;case"mousedown":mi=!0;break;case"contextmenu":case"mouseup":case"dragend":mi=!1,ds(m,n,c);break;case"selectionchange":if(bd)break;case"keydown":case"keyup":ds(m,n,c)}var E;if(io)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 Dt?Vu(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&($u&&n.locale!=="ko"&&(Dt||z!=="onCompositionStart"?z==="onCompositionEnd"&&Dt&&(E=Wu()):(rt=c,no="value"in rt?rt.value:rt.textContent,Dt=!0)),S=Ar(d,z),0<S.length&&(z=new ns(z,e,null,n,c),m.push({event:z,listeners:S}),E?z.data=E:(E=Qu(n),E!==null&&(z.data=E)))),(E=Ud?Wd(e,n):$d(e,n))&&(d=Ar(d,"onBeforeInput"),0<d.length&&(c=new ns("onBeforeInput","beforeinput",null,n,c),m.push({event:c,listeners:d}),c.data=E))}ra(m,t)})}function Wn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ar(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Fn(e,n),i!=null&&r.unshift(Wn(e,i,l)),i=Fn(e,t),i!=null&&r.push(Wn(e,i,l))),e=e.return}return r}function Lt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hs(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var s=n,u=s.alternate,d=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&d!==null&&(s=d,l?(u=Fn(n,i),u!=null&&o.unshift(Wn(n,u,s))):l||(u=Fn(n,i),u!=null&&o.push(Wn(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rf=/\r\n?/g,lf=/\u0000|\uFFFD/g;function ms(e){return(typeof e=="string"?e:""+e).replace(rf,`
`).replace(lf,"")}function pr(e,t,n){if(t=ms(t),ms(e)!==t&&n)throw Error(k(425))}function Hr(){}var yi=null,gi=null;function vi(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xi=typeof setTimeout=="function"?setTimeout:void 0,of=typeof clearTimeout=="function"?clearTimeout:void 0,ys=typeof Promise=="function"?Promise:void 0,sf=typeof queueMicrotask=="function"?queueMicrotask:typeof ys<"u"?function(e){return ys.resolve(null).then(e).catch(uf)}:xi;function uf(e){setTimeout(function(){throw e})}function Bl(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),Bn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Bn(t)}function ut(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 gs(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 an=Math.random().toString(36).slice(2),Ae="__reactFiber$"+an,$n="__reactProps$"+an,Ye="__reactContainer$"+an,ki="__reactEvents$"+an,af="__reactListeners$"+an,cf="__reactHandles$"+an;function St(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ye]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gs(e);e!==null;){if(n=e[Ae])return n;e=gs(e)}return t}e=n,n=e.parentNode}return null}function bn(e){return e=e[Ae]||e[Ye],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ht(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function sl(e){return e[$n]||null}var wi=[],Ut=-1;function yt(e){return{current:e}}function B(e){0>Ut||(e.current=wi[Ut],wi[Ut]=null,Ut--)}function O(e,t){Ut++,wi[Ut]=e.current,e.current=t}var ht={},se=yt(ht),he=yt(!1),zt=ht;function en(e,t){var n=e.type.contextTypes;if(!n)return ht;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 me(e){return e=e.childContextTypes,e!=null}function Ur(){B(he),B(se)}function vs(e,t,n){if(se.current!==ht)throw Error(k(168));O(se,t),O(he,n)}function ia(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(k(108,Kc(e)||"Unknown",l));return $({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ht,zt=se.current,O(se,e),O(he,he.current),!0}function xs(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=ia(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,B(he),B(se),O(se,e)):B(he),O(he,n)}var $e=null,ul=!1,Al=!1;function oa(e){$e===null?$e=[e]:$e.push(e)}function df(e){ul=!0,oa(e)}function gt(){if(!Al&&$e!==null){Al=!0;var e=0,t=L;try{var n=$e;for(L=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$e=null,ul=!1}catch(l){throw $e!==null&&($e=$e.slice(e+1)),_u(qi,gt),l}finally{L=t,Al=!1}}return null}var Wt=[],$t=0,$r=null,Vr=0,Ce=[],Ee=0,Nt=null,Ve=1,Qe="";function kt(e,t){Wt[$t++]=Vr,Wt[$t++]=$r,$r=e,Vr=t}function sa(e,t,n){Ce[Ee++]=Ve,Ce[Ee++]=Qe,Ce[Ee++]=Nt,Nt=e;var r=Ve;e=Qe;var l=32-Le(r)-1;r&=~(1<<l),n+=1;var i=32-Le(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Ve=1<<32-Le(t)+l|n<<l|r,Qe=i+e}else Ve=1<<i|n<<l|r,Qe=e}function so(e){e.return!==null&&(kt(e,1),sa(e,1,0))}function uo(e){for(;e===$r;)$r=Wt[--$t],Wt[$t]=null,Vr=Wt[--$t],Wt[$t]=null;for(;e===Nt;)Nt=Ce[--Ee],Ce[Ee]=null,Qe=Ce[--Ee],Ce[Ee]=null,Ve=Ce[--Ee],Ce[Ee]=null}var xe=null,ve=null,A=!1,Ie=null;function ua(e,t){var n=je(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 ks(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,xe=e,ve=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xe=e,ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nt!==null?{id:Ve,overflow:Qe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=je(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xe=e,ve=null,!0):!1;default:return!1}}function Si(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ci(e){if(A){var t=ve;if(t){var n=t;if(!ks(e,t)){if(Si(e))throw Error(k(418));t=ut(n.nextSibling);var r=xe;t&&ks(e,t)?ua(r,n):(e.flags=e.flags&-4097|2,A=!1,xe=e)}}else{if(Si(e))throw Error(k(418));e.flags=e.flags&-4097|2,A=!1,xe=e}}}function ws(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xe=e}function hr(e){if(e!==xe)return!1;if(!A)return ws(e),A=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vi(e.type,e.memoizedProps)),t&&(t=ve)){if(Si(e))throw aa(),Error(k(418));for(;t;)ua(e,t),t=ut(t.nextSibling)}if(ws(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ve=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ve=null}}else ve=xe?ut(e.stateNode.nextSibling):null;return!0}function aa(){for(var e=ve;e;)e=ut(e.nextSibling)}function tn(){ve=xe=null,A=!1}function ao(e){Ie===null?Ie=[e]:Ie.push(e)}var ff=Ze.ReactCurrentBatchConfig;function gn(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(k(309));var r=n.stateNode}if(!r)throw Error(k(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 s=l.refs;o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function mr(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ss(e){var t=e._init;return t(e._payload)}function ca(e){function t(p,f){if(e){var h=p.deletions;h===null?(p.deletions=[f],p.flags|=16):h.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function l(p,f){return p=ft(p,f),p.index=0,p.sibling=null,p}function i(p,f,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<f?(p.flags|=2,f):h):(p.flags|=2,f)):(p.flags|=1048576,f)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,f,h,v){return f===null||f.tag!==6?(f=Gl(h,p.mode,v),f.return=p,f):(f=l(f,h),f.return=p,f)}function u(p,f,h,v){var C=h.type;return C===Ot?c(p,f,h.props.children,v,h.key):f!==null&&(f.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===be&&Ss(C)===f.type)?(v=l(f,h.props),v.ref=gn(p,f,h),v.return=p,v):(v=_r(h.type,h.key,h.props,null,p.mode,v),v.ref=gn(p,f,h),v.return=p,v)}function d(p,f,h,v){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=Kl(h,p.mode,v),f.return=p,f):(f=l(f,h.children||[]),f.return=p,f)}function c(p,f,h,v,C){return f===null||f.tag!==7?(f=Mt(h,p.mode,v,C),f.return=p,f):(f=l(f,h),f.return=p,f)}function m(p,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Gl(""+f,p.mode,h),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case lr:return h=_r(f.type,f.key,f.props,null,p.mode,h),h.ref=gn(p,null,f),h.return=p,h;case Ft:return f=Kl(f,p.mode,h),f.return=p,f;case be:var v=f._init;return m(p,v(f._payload),h)}if(wn(f)||fn(f))return f=Mt(f,p.mode,h,null),f.return=p,f;mr(p,f)}return null}function g(p,f,h,v){var C=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return C!==null?null:s(p,f,""+h,v);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case lr:return h.key===C?u(p,f,h,v):null;case Ft:return h.key===C?d(p,f,h,v):null;case be:return C=h._init,g(p,f,C(h._payload),v)}if(wn(h)||fn(h))return C!==null?null:c(p,f,h,v,null);mr(p,h)}return null}function y(p,f,h,v,C){if(typeof v=="string"&&v!==""||typeof v=="number")return p=p.get(h)||null,s(f,p,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case lr:return p=p.get(v.key===null?h:v.key)||null,u(f,p,v,C);case Ft:return p=p.get(v.key===null?h:v.key)||null,d(f,p,v,C);case be:var S=v._init;return y(p,f,h,S(v._payload),C)}if(wn(v)||fn(v))return p=p.get(h)||null,c(f,p,v,C,null);mr(f,v)}return null}function x(p,f,h,v){for(var C=null,S=null,E=f,z=f=0,Q=null;E!==null&&z<h.length;z++){E.index>z?(Q=E,E=null):Q=E.sibling;var T=g(p,E,h[z],v);if(T===null){E===null&&(E=Q);break}e&&E&&T.alternate===null&&t(p,E),f=i(T,f,z),S===null?C=T:S.sibling=T,S=T,E=Q}if(z===h.length)return n(p,E),A&&kt(p,z),C;if(E===null){for(;z<h.length;z++)E=m(p,h[z],v),E!==null&&(f=i(E,f,z),S===null?C=E:S.sibling=E,S=E);return A&&kt(p,z),C}for(E=r(p,E);z<h.length;z++)Q=y(E,p,z,h[z],v),Q!==null&&(e&&Q.alternate!==null&&E.delete(Q.key===null?z:Q.key),f=i(Q,f,z),S===null?C=Q:S.sibling=Q,S=Q);return e&&E.forEach(function(Pe){return t(p,Pe)}),A&&kt(p,z),C}function w(p,f,h,v){var C=fn(h);if(typeof C!="function")throw Error(k(150));if(h=C.call(h),h==null)throw Error(k(151));for(var S=C=null,E=f,z=f=0,Q=null,T=h.next();E!==null&&!T.done;z++,T=h.next()){E.index>z?(Q=E,E=null):Q=E.sibling;var Pe=g(p,E,T.value,v);if(Pe===null){E===null&&(E=Q);break}e&&E&&Pe.alternate===null&&t(p,E),f=i(Pe,f,z),S===null?C=Pe:S.sibling=Pe,S=Pe,E=Q}if(T.done)return n(p,E),A&&kt(p,z),C;if(E===null){for(;!T.done;z++,T=h.next())T=m(p,T.value,v),T!==null&&(f=i(T,f,z),S===null?C=T:S.sibling=T,S=T);return A&&kt(p,z),C}for(E=r(p,E);!T.done;z++,T=h.next())T=y(E,p,z,T.value,v),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?z:T.key),f=i(T,f,z),S===null?C=T:S.sibling=T,S=T);return e&&E.forEach(function(cn){return t(p,cn)}),A&&kt(p,z),C}function N(p,f,h,v){if(typeof h=="object"&&h!==null&&h.type===Ot&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case lr:e:{for(var C=h.key,S=f;S!==null;){if(S.key===C){if(C=h.type,C===Ot){if(S.tag===7){n(p,S.sibling),f=l(S,h.props.children),f.return=p,p=f;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===be&&Ss(C)===S.type){n(p,S.sibling),f=l(S,h.props),f.ref=gn(p,S,h),f.return=p,p=f;break e}n(p,S);break}else t(p,S);S=S.sibling}h.type===Ot?(f=Mt(h.props.children,p.mode,v,h.key),f.return=p,p=f):(v=_r(h.type,h.key,h.props,null,p.mode,v),v.ref=gn(p,f,h),v.return=p,p=v)}return o(p);case Ft:e:{for(S=h.key;f!==null;){if(f.key===S)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(p,f.sibling),f=l(f,h.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Kl(h,p.mode,v),f.return=p,p=f}return o(p);case be:return S=h._init,N(p,f,S(h._payload),v)}if(wn(h))return x(p,f,h,v);if(fn(h))return w(p,f,h,v);mr(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(p,f.sibling),f=l(f,h),f.return=p,p=f):(n(p,f),f=Gl(h,p.mode,v),f.return=p,p=f),o(p)):n(p,f)}return N}var nn=ca(!0),da=ca(!1),Qr=yt(null),Gr=null,Vt=null,co=null;function fo(){co=Vt=Gr=null}function po(e){var t=Qr.current;B(Qr),e._currentValue=t}function Ei(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 Zt(e,t){Gr=e,co=Vt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(co!==e)if(e={context:e,memoizedValue:t,next:null},Vt===null){if(Gr===null)throw Error(k(308));Vt=e,Gr.dependencies={lanes:0,firstContext:e}}else Vt=Vt.next=e;return t}var Ct=null;function ho(e){Ct===null?Ct=[e]:Ct.push(e)}function fa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ho(t)):(n.next=l.next,l.next=n),t.interleaved=n,Je(e,r)}function Je(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 et=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ge(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function at(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Je(e,n)}return l=r.interleaved,l===null?(t.next=t,ho(r)):(t.next=l.next,l.next=t),r.interleaved=t,Je(e,n)}function jr(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,bi(e,n)}}function Cs(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 Kr(e,t,n,r){var l=e.updateQueue;et=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,d=u.next;u.next=null,o===null?i=d:o.next=d,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=d:s.next=d,c.lastBaseUpdate=u))}if(i!==null){var m=l.baseState;o=0,c=d=u=null,s=i;do{var g=s.lane,y=s.eventTime;if((r&g)===g){c!==null&&(c=c.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,w=s;switch(g=t,y=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){m=x.call(y,m,g);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,g=typeof x=="function"?x.call(y,m,g):x,g==null)break e;m=$({},m,g);break e;case 2:et=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=l.effects,g===null?l.effects=[s]:g.push(s))}else y={eventTime:y,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(d=c=y,u=m):c=c.next=y,o|=g;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;g=s,s=g.next,g.next=null,l.lastBaseUpdate=g,l.shared.pending=null}}while(!0);if(c===null&&(u=m),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=c,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);Rt|=o,e.lanes=o,e.memoizedState=m}}function Es(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(k(191,l));l.call(r)}}}var er={},Ue=yt(er),Vn=yt(er),Qn=yt(er);function Et(e){if(e===er)throw Error(k(174));return e}function yo(e,t){switch(O(Qn,t),O(Vn,e),O(Ue,er),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:li(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=li(t,e)}B(Ue),O(Ue,t)}function rn(){B(Ue),B(Vn),B(Qn)}function ha(e){Et(Qn.current);var t=Et(Ue.current),n=li(t,e.type);t!==n&&(O(Vn,e),O(Ue,n))}function go(e){Vn.current===e&&(B(Ue),B(Vn))}var U=yt(0);function Yr(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 Hl=[];function vo(){for(var e=0;e<Hl.length;e++)Hl[e]._workInProgressVersionPrimary=null;Hl.length=0}var Mr=Ze.ReactCurrentDispatcher,Ul=Ze.ReactCurrentBatchConfig,Pt=0,W=null,X=null,b=null,Jr=!1,Pn=!1,Gn=0,pf=0;function le(){throw Error(k(321))}function xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Oe(e[n],t[n]))return!1;return!0}function ko(e,t,n,r,l,i){if(Pt=i,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mr.current=e===null||e.memoizedState===null?gf:vf,e=n(r,l),Pn){i=0;do{if(Pn=!1,Gn=0,25<=i)throw Error(k(301));i+=1,b=X=null,t.updateQueue=null,Mr.current=xf,e=n(r,l)}while(Pn)}if(Mr.current=Xr,t=X!==null&&X.next!==null,Pt=0,b=X=W=null,Jr=!1,t)throw Error(k(300));return e}function wo(){var e=Gn!==0;return Gn=0,e}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?W.memoizedState=b=e:b=b.next=e,b}function Ne(){if(X===null){var e=W.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var t=b===null?W.memoizedState:b.next;if(t!==null)b=t,X=e;else{if(e===null)throw Error(k(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},b===null?W.memoizedState=b=e:b=b.next=e}return b}function Kn(e,t){return typeof t=="function"?t(e):t}function Wl(e){var t=Ne(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=X,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 s=o=null,u=null,d=i;do{var c=d.lane;if((Pt&c)===c)u!==null&&(u=u.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 m={lane:c,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(s=u=m,o=r):u=u.next=m,W.lanes|=c,Rt|=c}d=d.next}while(d!==null&&d!==i);u===null?o=r:u.next=s,Oe(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,W.lanes|=i,Rt|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $l(e){var t=Ne(),n=t.queue;if(n===null)throw Error(k(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);Oe(i,t.memoizedState)||(pe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ma(){}function ya(e,t){var n=W,r=Ne(),l=t(),i=!Oe(r.memoizedState,l);if(i&&(r.memoizedState=l,pe=!0),r=r.queue,So(xa.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,Yn(9,va.bind(null,n,r,l,t),void 0,null),ee===null)throw Error(k(349));Pt&30||ga(n,t,l)}return l}function ga(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=W.updateQueue,t===null?(t={lastEffect:null,stores:null},W.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function va(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&wa(e)}function xa(e,t,n){return n(function(){ka(t)&&wa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oe(e,n)}catch{return!0}}function wa(e){var t=Je(e,1);t!==null&&Fe(t,e,1,-1)}function js(e){var t=Be();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:e},t.queue=e,e=e.dispatch=yf.bind(null,W,e),[t.memoizedState,e]}function Yn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=W.updateQueue,t===null?(t={lastEffect:null,stores:null},W.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 Sa(){return Ne().memoizedState}function zr(e,t,n,r){var l=Be();W.flags|=e,l.memoizedState=Yn(1|t,n,void 0,r===void 0?null:r)}function al(e,t,n,r){var l=Ne();r=r===void 0?null:r;var i=void 0;if(X!==null){var o=X.memoizedState;if(i=o.destroy,r!==null&&xo(r,o.deps)){l.memoizedState=Yn(t,n,i,r);return}}W.flags|=e,l.memoizedState=Yn(1|t,n,i,r)}function Ms(e,t){return zr(8390656,8,e,t)}function So(e,t){return al(2048,8,e,t)}function Ca(e,t){return al(4,2,e,t)}function Ea(e,t){return al(4,4,e,t)}function ja(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 Ma(e,t,n){return n=n!=null?n.concat([e]):null,al(4,4,ja.bind(null,t,e),n)}function Co(){}function za(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Na(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t,n){return Pt&21?(Oe(n,t)||(n=Lu(),W.lanes|=n,Rt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function hf(e,t){var n=L;L=n!==0&&4>n?n:4,e(!0);var r=Ul.transition;Ul.transition={};try{e(!1),t()}finally{L=n,Ul.transition=r}}function Ra(){return Ne().memoizedState}function mf(e,t,n){var r=dt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_a(e))Ta(t,n);else if(n=fa(e,t,n,r),n!==null){var l=ae();Fe(n,e,r,l),Ia(n,t,r)}}function yf(e,t,n){var r=dt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_a(e))Ta(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,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,Oe(s,o)){var u=t.interleaved;u===null?(l.next=l,ho(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=fa(e,t,l,r),n!==null&&(l=ae(),Fe(n,e,r,l),Ia(n,t,r))}}function _a(e){var t=e.alternate;return e===W||t!==null&&t===W}function Ta(e,t){Pn=Jr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ia(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bi(e,n)}}var Xr={readContext:ze,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},gf={readContext:ze,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:Ms,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zr(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zr(4194308,4,e,t)},useInsertionEffect:function(e,t){return zr(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();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,W,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:js,useDebugValue:Co,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=js(!1),t=e[0];return e=hf.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,l=Be();if(A){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ee===null)throw Error(k(349));Pt&30||ga(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ms(xa.bind(null,r,i,e),[e]),r.flags|=2048,Yn(9,va.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Be(),t=ee.identifierPrefix;if(A){var n=Qe,r=Ve;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=pf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vf={readContext:ze,useCallback:za,useContext:ze,useEffect:So,useImperativeHandle:Ma,useInsertionEffect:Ca,useLayoutEffect:Ea,useMemo:Na,useReducer:Wl,useRef:Sa,useState:function(){return Wl(Kn)},useDebugValue:Co,useDeferredValue:function(e){var t=Ne();return Pa(t,X.memoizedState,e)},useTransition:function(){var e=Wl(Kn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:ma,useSyncExternalStore:ya,useId:Ra,unstable_isNewReconciler:!1},xf={readContext:ze,useCallback:za,useContext:ze,useEffect:So,useImperativeHandle:Ma,useInsertionEffect:Ca,useLayoutEffect:Ea,useMemo:Na,useReducer:$l,useRef:Sa,useState:function(){return $l(Kn)},useDebugValue:Co,useDeferredValue:function(e){var t=Ne();return X===null?t.memoizedState=e:Pa(t,X.memoizedState,e)},useTransition:function(){var e=$l(Kn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:ma,useSyncExternalStore:ya,useId:Ra,unstable_isNewReconciler:!1};function _e(e,t){if(e&&e.defaultProps){t=$({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ji(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:$({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cl={isMounted:function(e){return(e=e._reactInternals)?It(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ae(),l=dt(e),i=Ge(r,l);i.payload=t,n!=null&&(i.callback=n),t=at(e,i,l),t!==null&&(Fe(t,e,l,r),jr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ae(),l=dt(e),i=Ge(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=at(e,i,l),t!==null&&(Fe(t,e,l,r),jr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ae(),r=dt(e),l=Ge(n,r);l.tag=2,t!=null&&(l.callback=t),t=at(e,l,r),t!==null&&(Fe(t,e,r,n),jr(t,e,r))}};function zs(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?!Hn(n,r)||!Hn(l,i):!0}function La(e,t,n){var r=!1,l=ht,i=t.contextType;return typeof i=="object"&&i!==null?i=ze(i):(l=me(t)?zt:se.current,r=t.contextTypes,i=(r=r!=null)?en(e,l):ht),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ns(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&cl.enqueueReplaceState(t,t.state,null)}function Mi(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},mo(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=ze(i):(i=me(t)?zt:se.current,l.context=en(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ji(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&cl.enqueueReplaceState(l,l.state,null),Kr(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function ln(e,t){try{var n="",r=t;do n+=Gc(r),r=r.return;while(r);var l=n}catch(i){l=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kf=typeof WeakMap=="function"?WeakMap:Map;function Fa(e,t,n){n=Ge(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qr||(qr=!0,Di=r),zi(e,t)},n}function Oa(e,t,n){n=Ge(-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(){zi(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){zi(e,t),typeof r!="function"&&(ct===null?ct=new Set([this]):ct.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ps(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kf;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=Lf.bind(null,e,t,n),t.then(e,e))}function Rs(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 _s(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=Ge(-1,1),t.tag=2,at(n,t,1))),n.lanes|=1),e)}var wf=Ze.ReactCurrentOwner,pe=!1;function ue(e,t,n,r){t.child=e===null?da(t,null,n,r):nn(t,e.child,n,r)}function Ts(e,t,n,r,l){n=n.render;var i=t.ref;return Zt(t,l),r=ko(e,t,n,r,i,l),n=wo(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(A&&n&&so(t),t.flags|=1,ue(e,t,r,l),t.child)}function Is(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!_o(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Da(e,t,i,r,l)):(e=_r(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:Hn,n(o,r)&&e.ref===t.ref)return Xe(e,t,l)}return t.flags|=1,e=ft(i,r),e.ref=t.ref,e.return=t,t.child=e}function Da(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Hn(i,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,Xe(e,t,l)}return Ni(e,t,n,r,l)}function Ba(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},O(Gt,ge),ge|=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,O(Gt,ge),ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,O(Gt,ge),ge|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,O(Gt,ge),ge|=r;return ue(e,t,l,n),t.child}function Aa(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ni(e,t,n,r,l){var i=me(n)?zt:se.current;return i=en(t,i),Zt(t,l),n=ko(e,t,n,r,i,l),r=wo(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(A&&r&&so(t),t.flags|=1,ue(e,t,n,l),t.child)}function Ls(e,t,n,r,l){if(me(n)){var i=!0;Wr(t)}else i=!1;if(Zt(t,l),t.stateNode===null)Nr(e,t),La(t,n,r),Mi(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=ze(d):(d=me(n)?zt:se.current,d=en(t,d));var c=n.getDerivedStateFromProps,m=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==d)&&Ns(t,o,r,d),et=!1;var g=t.memoizedState;o.state=g,Kr(t,r,o,l),u=t.memoizedState,s!==r||g!==u||he.current||et?(typeof c=="function"&&(ji(t,n,c,r),u=t.memoizedState),(s=et||zs(t,n,s,r,g,u,d))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,pa(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:_e(t.type,s),o.props=d,m=t.pendingProps,g=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ze(u):(u=me(n)?zt:se.current,u=en(t,u));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==m||g!==u)&&Ns(t,o,r,u),et=!1,g=t.memoizedState,o.state=g,Kr(t,r,o,l);var x=t.memoizedState;s!==m||g!==x||he.current||et?(typeof y=="function"&&(ji(t,n,y,r),x=t.memoizedState),(d=et||zs(t,n,d,r,g,x,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Pi(e,t,n,r,i,l)}function Pi(e,t,n,r,l,i){Aa(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&xs(t,n,!1),Xe(e,t,i);r=t.stateNode,wf.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=nn(t,e.child,null,i),t.child=nn(t,null,s,i)):ue(e,t,s,i),t.memoizedState=r.state,l&&xs(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?vs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vs(e,t.context,!1),yo(e,t.containerInfo)}function Fs(e,t,n,r,l){return tn(),ao(l),t.flags|=256,ue(e,t,n,r),t.child}var Ri={dehydrated:null,treeContext:null,retryLane:0};function _i(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ua(e,t,n){var r=t.pendingProps,l=U.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),O(U,l&1),e===null)return Ci(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=pl(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=Ri,e):Eo(t,o));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return Sf(e,t,o,r,s,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ft(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=ft(s,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=Ri,r}return i=e.child,e=i.sibling,r=ft(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 Eo(e,t){return t=pl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yr(e,t,n,r){return r!==null&&ao(r),nn(t,e.child,null,n),e=Eo(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=Vl(Error(k(422))),yr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=pl({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&&nn(t,e.child,null,o),t.child.memoizedState=_i(o),t.memoizedState=Ri,i);if(!(t.mode&1))return yr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(k(419)),r=Vl(i,r,void 0),yr(e,t,o,r)}if(s=(o&e.childLanes)!==0,pe||s){if(r=ee,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,Je(e,l),Fe(r,e,l,-1))}return Ro(),r=Vl(Error(k(421))),yr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ff.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,ve=ut(l.nextSibling),xe=t,A=!0,Ie=null,e!==null&&(Ce[Ee++]=Ve,Ce[Ee++]=Qe,Ce[Ee++]=Nt,Ve=e.id,Qe=e.overflow,Nt=t),t=Eo(t,r.children),t.flags|=4096,t)}function Os(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ei(e.return,t,n)}function Ql(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 Wa(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(ue(e,t,r.children,n),r=U.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&&Os(e,n,t);else if(e.tag===19)Os(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(O(U,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&&Yr(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ql(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&&Yr(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ql(t,!0,n,null,i);break;case"together":Ql(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xe(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cf(e,t,n){switch(t.tag){case 3:Ha(t),tn();break;case 5:ha(t);break;case 1:me(t.type)&&Wr(t);break;case 4:yo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;O(Qr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(O(U,U.current&1),t.flags|=128,null):n&t.child.childLanes?Ua(e,t,n):(O(U,U.current&1),e=Xe(e,t,n),e!==null?e.sibling:null);O(U,U.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wa(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),O(U,U.current),r)break;return null;case 22:case 23:return t.lanes=0,Ba(e,t,n)}return Xe(e,t,n)}var $a,Ti,Va,Qa;$a=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}};Ti=function(){};Va=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Et(Ue.current);var i=null;switch(n){case"input":l=ei(e,l),r=ei(e,r),i=[];break;case"select":l=$({},l,{value:void 0}),r=$({},r,{value:void 0}),i=[];break;case"textarea":l=ri(e,l),r=ri(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Hr)}ii(n,r);var o;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var s=l[d];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(In.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var u=r[d];if(s=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&u!==s&&(u!=null||s!=null))if(d==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(In.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&D("scroll",e),i||s===u||(i=[])):(i=i||[]).push(d,u))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};function vn(e,t){if(!A)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 ie(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 Ef(e,t,n){var r=t.pendingProps;switch(uo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(t),null;case 1:return me(t.type)&&Ur(),ie(t),null;case 3:return r=t.stateNode,rn(),B(he),B(se),vo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ie!==null&&(Hi(Ie),Ie=null))),Ti(e,t),ie(t),null;case 5:go(t);var l=Et(Qn.current);if(n=t.type,e!==null&&t.stateNode!=null)Va(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ie(t),null}if(e=Et(Ue.current),hr(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ae]=t,r[$n]=i,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(l=0;l<Cn.length;l++)D(Cn[l],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":Qo(r,i),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},D("invalid",r);break;case"textarea":Ko(r,i),D("invalid",r)}ii(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&pr(r.textContent,s,e),l=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&pr(r.textContent,s,e),l=["children",""+s]):In.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&D("scroll",r)}switch(n){case"input":ir(r),Go(r,i,!0);break;case"textarea":ir(r),Yo(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Hr)}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=xu(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[Ae]=t,e[$n]=r,$a(e,t,!1,!1),t.stateNode=e;e:{switch(o=oi(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;l<Cn.length;l++)D(Cn[l],e);l=r;break;case"source":D("error",e),l=r;break;case"img":case"image":case"link":D("error",e),D("load",e),l=r;break;case"details":D("toggle",e),l=r;break;case"input":Qo(e,r),l=ei(e,r),D("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=$({},r,{value:void 0}),D("invalid",e);break;case"textarea":Ko(e,r),l=ri(e,r),D("invalid",e);break;default:l=r}ii(n,l),s=l;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];i==="style"?Su(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&ku(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Ln(e,u):typeof u=="number"&&Ln(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(In.hasOwnProperty(i)?u!=null&&i==="onScroll"&&D("scroll",e):u!=null&&Ki(e,i,u,o))}switch(n){case"input":ir(e),Go(e,r,!1);break;case"textarea":ir(e),Yo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Kt(e,!!r.multiple,i,!1):r.defaultValue!=null&&Kt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Hr)}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 ie(t),null;case 6:if(e&&t.stateNode!=null)Qa(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=Et(Qn.current),Et(Ue.current),hr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(i=r.nodeValue!==n)&&(e=xe,e!==null))switch(e.tag){case 3:pr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pr(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return ie(t),null;case 13:if(B(U),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(A&&ve!==null&&t.mode&1&&!(t.flags&128))aa(),tn(),t.flags|=98560,i=!1;else if(i=hr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(k(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(k(317));i[Ae]=t}else tn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ie(t),i=!1}else Ie!==null&&(Hi(Ie),Ie=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||U.current&1?Z===0&&(Z=3):Ro())),t.updateQueue!==null&&(t.flags|=4),ie(t),null);case 4:return rn(),Ti(e,t),e===null&&Un(t.stateNode.containerInfo),ie(t),null;case 10:return po(t.type._context),ie(t),null;case 17:return me(t.type)&&Ur(),ie(t),null;case 19:if(B(U),i=t.memoizedState,i===null)return ie(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)vn(i,!1);else{if(Z!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Yr(e),o!==null){for(t.flags|=128,vn(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 O(U,U.current&1|2),t.child}e=e.sibling}i.tail!==null&&K()>on&&(t.flags|=128,r=!0,vn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!A)return ie(t),null}else 2*K()-i.renderingStartTime>on&&n!==1073741824&&(t.flags|=128,r=!0,vn(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=K(),t.sibling=null,n=U.current,O(U,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return Po(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function jf(e,t){switch(uo(t),t.tag){case 1:return me(t.type)&&Ur(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rn(),B(he),B(se),vo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return go(t),null;case 13:if(B(U),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(U),null;case 4:return rn(),null;case 10:return po(t.type._context),null;case 22:case 23:return Po(),null;case 24:return null;default:return null}}var gr=!1,oe=!1,Mf=typeof WeakSet=="function"?WeakSet:Set,j=null;function Qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Ii(e,t,n){try{n()}catch(r){V(e,t,r)}}var Ds=!1;function zf(e,t){if(yi=Dr,e=Xu(),oo(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,s=-1,u=-1,d=0,c=0,m=e,g=null;t:for(;;){for(var y;m!==n||l!==0&&m.nodeType!==3||(s=o+l),m!==i||r!==0&&m.nodeType!==3||(u=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(y=m.firstChild)!==null;)g=m,m=y;for(;;){if(m===e)break t;if(g===n&&++d===l&&(s=o),g===i&&++c===r&&(u=o),(y=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=y}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(gi={focusedElem:e,selectionRange:n},Dr=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,N=x.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:_e(t.type,w),N);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(v){V(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return x=Ds,Ds=!1,x}function Rn(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&&Ii(t,n,i)}l=l.next}while(l!==r)}}function dl(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 Li(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 Ga(e){var t=e.alternate;t!==null&&(e.alternate=null,Ga(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[$n],delete t[ki],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 Ka(e){return e.tag===5||e.tag===3||e.tag===4}function Bs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ka(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 Fi(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=Hr));else if(r!==4&&(e=e.child,e!==null))for(Fi(e,t,n),e=e.sibling;e!==null;)Fi(e,t,n),e=e.sibling}function Oi(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(Oi(e,t,n),e=e.sibling;e!==null;)Oi(e,t,n),e=e.sibling}var te=null,Te=!1;function qe(e,t,n){for(n=n.child;n!==null;)Ya(e,t,n),n=n.sibling}function Ya(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:oe||Qt(n,t);case 6:var r=te,l=Te;te=null,qe(e,t,n),te=r,Te=l,te!==null&&(Te?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Te?(e=te,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),Bn(e)):Bl(te,n.stateNode));break;case 4:r=te,l=Te,te=n.stateNode.containerInfo,Te=!0,qe(e,t,n),te=r,Te=l;break;case 0:case 11:case 14:case 15:if(!oe&&(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)&&Ii(n,t,o),l=l.next}while(l!==r)}qe(e,t,n);break;case 1:if(!oe&&(Qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){V(n,t,s)}qe(e,t,n);break;case 21:qe(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,qe(e,t,n),oe=r):qe(e,t,n);break;default:qe(e,t,n)}}function As(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Mf),t.forEach(function(r){var l=Of.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Re(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,s=o;e:for(;s!==null;){switch(s.tag){case 5:te=s.stateNode,Te=!1;break e;case 3:te=s.stateNode.containerInfo,Te=!0;break e;case 4:te=s.stateNode.containerInfo,Te=!0;break e}s=s.return}if(te===null)throw Error(k(160));Ya(i,o,l),te=null,Te=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){V(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ja(t,e),t=t.sibling}function Ja(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Re(t,e),De(e),r&4){try{Rn(3,e,e.return),dl(3,e)}catch(w){V(e,e.return,w)}try{Rn(5,e,e.return)}catch(w){V(e,e.return,w)}}break;case 1:Re(t,e),De(e),r&512&&n!==null&&Qt(n,n.return);break;case 5:if(Re(t,e),De(e),r&512&&n!==null&&Qt(n,n.return),e.flags&32){var l=e.stateNode;try{Ln(l,"")}catch(w){V(e,e.return,w)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&gu(l,i),oi(s,o);var d=oi(s,i);for(o=0;o<u.length;o+=2){var c=u[o],m=u[o+1];c==="style"?Su(l,m):c==="dangerouslySetInnerHTML"?ku(l,m):c==="children"?Ln(l,m):Ki(l,c,m,d)}switch(s){case"input":ti(l,i);break;case"textarea":vu(l,i);break;case"select":var g=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Kt(l,!!i.multiple,y,!1):g!==!!i.multiple&&(i.defaultValue!=null?Kt(l,!!i.multiple,i.defaultValue,!0):Kt(l,!!i.multiple,i.multiple?[]:"",!1))}l[$n]=i}catch(w){V(e,e.return,w)}}break;case 6:if(Re(t,e),De(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(w){V(e,e.return,w)}}break;case 3:if(Re(t,e),De(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bn(t.containerInfo)}catch(w){V(e,e.return,w)}break;case 4:Re(t,e),De(e);break;case 13:Re(t,e),De(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(zo=K())),r&4&&As(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(oe=(d=oe)||c,Re(t,e),oe=d):Re(t,e),De(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!c&&e.mode&1)for(j=e,c=e.child;c!==null;){for(m=j=c;j!==null;){switch(g=j,y=g.child,g.tag){case 0:case 11:case 14:case 15:Rn(4,g,g.return);break;case 1:Qt(g,g.return);var x=g.stateNode;if(typeof x.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(w){V(r,n,w)}}break;case 5:Qt(g,g.return);break;case 22:if(g.memoizedState!==null){Us(m);continue}}y!==null?(y.return=g,j=y):Us(m)}c=c.sibling}e:for(c=null,m=e;;){if(m.tag===5){if(c===null){c=m;try{l=m.stateNode,d?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=m.stateNode,u=m.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=wu("display",o))}catch(w){V(e,e.return,w)}}}else if(m.tag===6){if(c===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(w){V(e,e.return,w)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;c===m&&(c=null),m=m.return}c===m&&(c=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Re(t,e),De(e),r&4&&As(e);break;case 21:break;default:Re(t,e),De(e)}}function De(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ka(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Ln(l,""),r.flags&=-33);var i=Bs(e);Oi(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,s=Bs(e);Fi(e,s,o);break;default:throw Error(k(161))}}catch(u){V(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nf(e,t,n){j=e,Xa(e)}function Xa(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var l=j,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||gr;if(!o){var s=l.alternate,u=s!==null&&s.memoizedState!==null||oe;s=gr;var d=oe;if(gr=o,(oe=u)&&!d)for(j=l;j!==null;)o=j,u=o.child,o.tag===22&&o.memoizedState!==null?Ws(l):u!==null?(u.return=o,j=u):Ws(l);for(;i!==null;)j=i,Xa(i),i=i.sibling;j=l,gr=s,oe=d}Hs(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,j=i):Hs(e)}}function Hs(e){for(;j!==null;){var t=j;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:oe||dl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!oe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:_e(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Es(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}Es(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var c=d.memoizedState;if(c!==null){var m=c.dehydrated;m!==null&&Bn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}oe||t.flags&512&&Li(t)}catch(g){V(t,t.return,g)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function Us(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function Ws(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{dl(4,t)}catch(u){V(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){V(t,l,u)}}var i=t.return;try{Li(t)}catch(u){V(t,i,u)}break;case 5:var o=t.return;try{Li(t)}catch(u){V(t,o,u)}}}catch(u){V(t,t.return,u)}if(t===e){j=null;break}var s=t.sibling;if(s!==null){s.return=t.return,j=s;break}j=t.return}}var Pf=Math.ceil,Zr=Ze.ReactCurrentDispatcher,jo=Ze.ReactCurrentOwner,Me=Ze.ReactCurrentBatchConfig,I=0,ee=null,J=null,ne=0,ge=0,Gt=yt(0),Z=0,Jn=null,Rt=0,fl=0,Mo=0,_n=null,fe=null,zo=0,on=1/0,We=null,qr=!1,Di=null,ct=null,vr=!1,lt=null,br=0,Tn=0,Bi=null,Pr=-1,Rr=0;function ae(){return I&6?K():Pr!==-1?Pr:Pr=K()}function dt(e){return e.mode&1?I&2&&ne!==0?ne&-ne:ff.transition!==null?(Rr===0&&(Rr=Lu()),Rr):(e=L,e!==0||(e=window.event,e=e===void 0?16:Uu(e.type)),e):1}function Fe(e,t,n,r){if(50<Tn)throw Tn=0,Bi=null,Error(k(185));Zn(e,n,r),(!(I&2)||e!==ee)&&(e===ee&&(!(I&2)&&(fl|=n),Z===4&&nt(e,ne)),ye(e,r),n===1&&I===0&&!(t.mode&1)&&(on=K()+500,ul&>()))}function ye(e,t){var n=e.callbackNode;dd(e,t);var r=Or(e,e===ee?ne:0);if(r===0)n!==null&&Zo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zo(n),t===1)e.tag===0?df($s.bind(null,e)):oa($s.bind(null,e)),sf(function(){!(I&6)&>()}),n=null;else{switch(Fu(r)){case 1:n=qi;break;case 4:n=Tu;break;case 16:n=Fr;break;case 536870912:n=Iu;break;default:n=Fr}n=lc(n,Za.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Za(e,t){if(Pr=-1,Rr=0,I&6)throw Error(k(327));var n=e.callbackNode;if(qt()&&e.callbackNode!==n)return null;var r=Or(e,e===ee?ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=el(e,r);else{t=r;var l=I;I|=2;var i=ba();(ee!==e||ne!==t)&&(We=null,on=K()+500,jt(e,t));do try{Tf();break}catch(s){qa(e,s)}while(!0);fo(),Zr.current=i,I=l,J!==null?t=0:(ee=null,ne=0,t=Z)}if(t!==0){if(t===2&&(l=di(e),l!==0&&(r=l,t=Ai(e,l))),t===1)throw n=Jn,jt(e,0),nt(e,r),ye(e,K()),n;if(t===6)nt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Rf(l)&&(t=el(e,r),t===2&&(i=di(e),i!==0&&(r=i,t=Ai(e,i))),t===1))throw n=Jn,jt(e,0),nt(e,r),ye(e,K()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:wt(e,fe,We);break;case 3:if(nt(e,r),(r&130023424)===r&&(t=zo+500-K(),10<t)){if(Or(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ae(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=xi(wt.bind(null,e,fe,We),t);break}wt(e,fe,We);break;case 4:if(nt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-Le(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pf(r/1960))-r,10<r){e.timeoutHandle=xi(wt.bind(null,e,fe,We),r);break}wt(e,fe,We);break;case 5:wt(e,fe,We);break;default:throw Error(k(329))}}}return ye(e,K()),e.callbackNode===n?Za.bind(null,e):null}function Ai(e,t){var n=_n;return e.current.memoizedState.isDehydrated&&(jt(e,t).flags|=256),e=el(e,t),e!==2&&(t=fe,fe=n,t!==null&&Hi(t)),e}function Hi(e){fe===null?fe=e:fe.push.apply(fe,e)}function Rf(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(!Oe(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 nt(e,t){for(t&=~Mo,t&=~fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Le(t),r=1<<n;e[n]=-1,t&=~r}}function $s(e){if(I&6)throw Error(k(327));qt();var t=Or(e,0);if(!(t&1))return ye(e,K()),null;var n=el(e,t);if(e.tag!==0&&n===2){var r=di(e);r!==0&&(t=r,n=Ai(e,r))}if(n===1)throw n=Jn,jt(e,0),nt(e,t),ye(e,K()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wt(e,fe,We),ye(e,K()),null}function No(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(on=K()+500,ul&>())}}function _t(e){lt!==null&<.tag===0&&!(I&6)&&qt();var t=I;I|=1;var n=Me.transition,r=L;try{if(Me.transition=null,L=1,e)return e()}finally{L=r,Me.transition=n,I=t,!(I&6)&>()}}function Po(){ge=Gt.current,B(Gt)}function jt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,of(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(uo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ur();break;case 3:rn(),B(he),B(se),vo();break;case 5:go(r);break;case 4:rn();break;case 13:B(U);break;case 19:B(U);break;case 10:po(r.type._context);break;case 22:case 23:Po()}n=n.return}if(ee=e,J=e=ft(e.current,null),ne=ge=t,Z=0,Jn=null,Mo=fl=Rt=0,fe=_n=null,Ct!==null){for(t=0;t<Ct.length;t++)if(n=Ct[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}Ct=null}return e}function qa(e,t){do{var n=J;try{if(fo(),Mr.current=Xr,Jr){for(var r=W.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Jr=!1}if(Pt=0,b=X=W=null,Pn=!1,Gn=0,jo.current=null,n===null||n.return===null){Z=1,Jn=t,J=null;break}e:{var i=e,o=n.return,s=n,u=t;if(t=ne,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,c=s,m=c.tag;if(!(c.mode&1)&&(m===0||m===11||m===15)){var g=c.alternate;g?(c.updateQueue=g.updateQueue,c.memoizedState=g.memoizedState,c.lanes=g.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=Rs(o);if(y!==null){y.flags&=-257,_s(y,o,s,i,t),y.mode&1&&Ps(i,d,t),t=y,u=d;var x=t.updateQueue;if(x===null){var w=new Set;w.add(u),t.updateQueue=w}else x.add(u);break e}else{if(!(t&1)){Ps(i,d,t),Ro();break e}u=Error(k(426))}}else if(A&&s.mode&1){var N=Rs(o);if(N!==null){!(N.flags&65536)&&(N.flags|=256),_s(N,o,s,i,t),ao(ln(u,s));break e}}i=u=ln(u,s),Z!==4&&(Z=2),_n===null?_n=[i]:_n.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=Fa(i,u,t);Cs(i,p);break e;case 1:s=u;var f=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ct===null||!ct.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var v=Oa(i,s,t);Cs(i,v);break e}}i=i.return}while(i!==null)}tc(n)}catch(C){t=C,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function ba(){var e=Zr.current;return Zr.current=Xr,e===null?Xr:e}function Ro(){(Z===0||Z===3||Z===2)&&(Z=4),ee===null||!(Rt&268435455)&&!(fl&268435455)||nt(ee,ne)}function el(e,t){var n=I;I|=2;var r=ba();(ee!==e||ne!==t)&&(We=null,jt(e,t));do try{_f();break}catch(l){qa(e,l)}while(!0);if(fo(),I=n,Zr.current=r,J!==null)throw Error(k(261));return ee=null,ne=0,Z}function _f(){for(;J!==null;)ec(J)}function Tf(){for(;J!==null&&!nd();)ec(J)}function ec(e){var t=rc(e.alternate,e,ge);e.memoizedProps=e.pendingProps,t===null?tc(e):J=t,jo.current=null}function tc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=jf(n,t),n!==null){n.flags&=32767,J=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Z=6,J=null;return}}else if(n=Ef(n,t,ge),n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);Z===0&&(Z=5)}function wt(e,t,n){var r=L,l=Me.transition;try{Me.transition=null,L=1,If(e,t,n,r)}finally{Me.transition=l,L=r}return null}function If(e,t,n,r){do qt();while(lt!==null);if(I&6)throw Error(k(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(k(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(fd(e,i),e===ee&&(J=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||vr||(vr=!0,lc(Fr,function(){return qt(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Me.transition,Me.transition=null;var o=L;L=1;var s=I;I|=4,jo.current=null,zf(e,n),Ja(n,e),qd(gi),Dr=!!yi,gi=yi=null,e.current=n,Nf(n),rd(),I=s,L=o,Me.transition=i}else e.current=n;if(vr&&(vr=!1,lt=e,br=l),i=e.pendingLanes,i===0&&(ct=null),od(n.stateNode),ye(e,K()),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(qr)throw qr=!1,e=Di,Di=null,e;return br&1&&e.tag!==0&&qt(),i=e.pendingLanes,i&1?e===Bi?Tn++:(Tn=0,Bi=e):Tn=0,gt(),null}function qt(){if(lt!==null){var e=Fu(br),t=Me.transition,n=L;try{if(Me.transition=null,L=16>e?16:e,lt===null)var r=!1;else{if(e=lt,lt=null,br=0,I&6)throw Error(k(331));var l=I;for(I|=4,j=e.current;j!==null;){var i=j,o=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var u=0;u<s.length;u++){var d=s[u];for(j=d;j!==null;){var c=j;switch(c.tag){case 0:case 11:case 15:Rn(8,c,i)}var m=c.child;if(m!==null)m.return=c,j=m;else for(;j!==null;){c=j;var g=c.sibling,y=c.return;if(Ga(c),c===d){j=null;break}if(g!==null){g.return=y,j=g;break}j=y}}}var x=i.alternate;if(x!==null){var w=x.child;if(w!==null){x.child=null;do{var N=w.sibling;w.sibling=null,w=N}while(w!==null)}}j=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,j=o;else e:for(;j!==null;){if(i=j,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Rn(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,j=p;break e}j=i.return}}var f=e.current;for(j=f;j!==null;){o=j;var h=o.child;if(o.subtreeFlags&2064&&h!==null)h.return=o,j=h;else e:for(o=f;j!==null;){if(s=j,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:dl(9,s)}}catch(C){V(s,s.return,C)}if(s===o){j=null;break e}var v=s.sibling;if(v!==null){v.return=s.return,j=v;break e}j=s.return}}if(I=l,gt(),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(rl,e)}catch{}r=!0}return r}finally{L=n,Me.transition=t}}return!1}function Vs(e,t,n){t=ln(n,t),t=Fa(e,t,1),e=at(e,t,1),t=ae(),e!==null&&(Zn(e,1,t),ye(e,t))}function V(e,t,n){if(e.tag===3)Vs(e,e,n);else for(;t!==null;){if(t.tag===3){Vs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ct===null||!ct.has(r))){e=ln(n,e),e=Oa(t,e,1),t=at(t,e,1),e=ae(),t!==null&&(Zn(t,1,e),ye(t,e));break}}t=t.return}}function Lf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ae(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(ne&n)===n&&(Z===4||Z===3&&(ne&130023424)===ne&&500>K()-zo?jt(e,0):Mo|=n),ye(e,t)}function nc(e,t){t===0&&(e.mode&1?(t=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):t=1);var n=ae();e=Je(e,t),e!==null&&(Zn(e,t,n),ye(e,n))}function Ff(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nc(e,n)}function Of(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(k(314))}r!==null&&r.delete(t),nc(e,n)}var rc;rc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,Cf(e,t,n);pe=!!(e.flags&131072)}else pe=!1,A&&t.flags&1048576&&sa(t,Vr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nr(e,t),e=t.pendingProps;var l=en(t,se.current);Zt(t,n),l=ko(null,t,r,e,l,n);var i=wo();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,me(r)?(i=!0,Wr(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,mo(t),l.updater=cl,t.stateNode=l,l._reactInternals=t,Mi(t,r,e,n),t=Pi(null,t,r,!0,i,n)):(t.tag=0,A&&i&&so(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Bf(r),e=_e(r,e),l){case 0:t=Ni(null,t,r,e,n);break e;case 1:t=Ls(null,t,r,e,n);break e;case 11:t=Ts(null,t,r,e,n);break e;case 14:t=Is(null,t,r,_e(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),Ni(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),Ls(e,t,r,l,n);case 3:e:{if(Ha(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,l=i.element,pa(e,t),Kr(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=ln(Error(k(423)),t),t=Fs(e,t,r,n,l);break e}else if(r!==l){l=ln(Error(k(424)),t),t=Fs(e,t,r,n,l);break e}else for(ve=ut(t.stateNode.containerInfo.firstChild),xe=t,A=!0,Ie=null,n=da(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tn(),r===l){t=Xe(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return ha(t),e===null&&Ci(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,vi(r,l)?o=null:i!==null&&vi(r,i)&&(t.flags|=32),Aa(e,t),ue(e,t,o,n),t.child;case 6:return e===null&&Ci(t),null;case 13:return Ua(e,t,n);case 4:return yo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nn(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),Ts(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(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,O(Qr,r._currentValue),r._currentValue=o,i!==null)if(Oe(i.value,o)){if(i.children===l.children&&!he.current){t=Xe(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Ge(-1,n&-n),u.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var c=d.pending;c===null?u.next=u:(u.next=c.next,c.next=u),d.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ei(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(k(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ei(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}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Zt(t,n),l=ze(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=_e(r,t.pendingProps),l=_e(r.type,l),Is(e,t,r,l,n);case 15:return Da(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),Nr(e,t),t.tag=1,me(r)?(e=!0,Wr(t)):e=!1,Zt(t,n),La(t,r,l),Mi(t,r,l,n),Pi(null,t,r,!0,e,n);case 19:return Wa(e,t,n);case 22:return Ba(e,t,n)}throw Error(k(156,t.tag))};function lc(e,t){return _u(e,t)}function Df(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 je(e,t,n,r){return new Df(e,t,n,r)}function _o(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bf(e){if(typeof e=="function")return _o(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ji)return 11;if(e===Xi)return 14}return 2}function ft(e,t){var n=e.alternate;return n===null?(n=je(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 _r(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")_o(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ot:return Mt(n.children,l,i,t);case Yi:o=8,l|=8;break;case Xl:return e=je(12,n,t,l|2),e.elementType=Xl,e.lanes=i,e;case Zl:return e=je(13,n,t,l),e.elementType=Zl,e.lanes=i,e;case ql:return e=je(19,n,t,l),e.elementType=ql,e.lanes=i,e;case hu:return pl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fu:o=10;break e;case pu:o=9;break e;case Ji:o=11;break e;case Xi:o=14;break e;case be:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=je(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Mt(e,t,n,r){return e=je(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=je(22,e,r,t),e.elementType=hu,e.lanes=n,e.stateNode={isHidden:!1},e}function Gl(e,t,n){return e=je(6,e,null,t),e.lanes=n,e}function Kl(e,t,n){return t=je(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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function To(e,t,n,r,l,i,o,s,u){return e=new Af(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=je(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mo(i),e}function Hf(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ft,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ic(e){if(!e)return ht;e=e._reactInternals;e:{if(It(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(me(n))return ia(e,n,t)}return t}function oc(e,t,n,r,l,i,o,s,u){return e=To(n,r,!0,e,l,i,o,s,u),e.context=ic(null),n=e.current,r=ae(),l=dt(n),i=Ge(r,l),i.callback=t??null,at(n,i,l),e.current.lanes=l,Zn(e,l,r),ye(e,r),e}function hl(e,t,n,r){var l=t.current,i=ae(),o=dt(l);return n=ic(n),t.context===null?t.context=n:t.pendingContext=n,t=Ge(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=at(l,t,o),e!==null&&(Fe(e,l,o,i),jr(e,l,o)),o}function tl(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 Qs(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Io(e,t){Qs(e,t),(e=e.alternate)&&Qs(e,t)}function Uf(){return null}var sc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Lo(e){this._internalRoot=e}ml.prototype.render=Lo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));hl(e,t,null,null)};ml.prototype.unmount=Lo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_t(function(){hl(null,e,null,null)}),t[Ye]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tt.length&&t!==0&&t<tt[n].priority;n++);tt.splice(n,0,e),n===0&&Hu(e)}};function Fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gs(){}function Wf(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var d=tl(o);i.call(d)}}var o=oc(t,r,e,0,null,!1,!1,"",Gs);return e._reactRootContainer=o,e[Ye]=o.current,Un(e.nodeType===8?e.parentNode:e),_t(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var s=r;r=function(){var d=tl(u);s.call(d)}}var u=To(e,0,!1,null,null,!1,!1,"",Gs);return e._reactRootContainer=u,e[Ye]=u.current,Un(e.nodeType===8?e.parentNode:e),_t(function(){hl(t,u,n,r)}),u}function gl(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var s=l;l=function(){var u=tl(o);s.call(u)}}hl(t,o,e,l)}else o=Wf(n,t,e,l,r);return tl(o)}Ou=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Sn(t.pendingLanes);n!==0&&(bi(t,n|1),ye(t,K()),!(I&6)&&(on=K()+500,gt()))}break;case 13:_t(function(){var r=Je(e,1);if(r!==null){var l=ae();Fe(r,e,1,l)}}),Io(e,1)}};eo=function(e){if(e.tag===13){var t=Je(e,134217728);if(t!==null){var n=ae();Fe(t,e,134217728,n)}Io(e,134217728)}};Du=function(e){if(e.tag===13){var t=dt(e),n=Je(e,t);if(n!==null){var r=ae();Fe(n,e,t,r)}Io(e,t)}};Bu=function(){return L};Au=function(e,t){var n=L;try{return L=e,t()}finally{L=n}};ui=function(e,t,n){switch(t){case"input":if(ti(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=sl(r);if(!l)throw Error(k(90));yu(r),ti(r,l)}}}break;case"textarea":vu(e,n);break;case"select":t=n.value,t!=null&&Kt(e,!!n.multiple,t,!1)}};ju=No;Mu=_t;var $f={usingClientEntryPoint:!1,Events:[bn,Ht,sl,Cu,Eu,No]},xn={findFiberByHostInstance:St,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Vf={bundleType:xn.bundleType,version:xn.version,rendererPackageName:xn.rendererPackageName,rendererConfig:xn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Pu(e),e===null?null:e.stateNode},findFiberByHostInstance:xn.findFiberByHostInstance||Uf,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 xr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xr.isDisabled&&xr.supportsFiber)try{rl=xr.inject(Vf),He=xr}catch{}}we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$f;we.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fo(t))throw Error(k(200));return Hf(e,t,null,n)};we.createRoot=function(e,t){if(!Fo(e))throw Error(k(299));var n=!1,r="",l=sc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=To(e,1,!1,null,null,n,!1,r,l),e[Ye]=t.current,Un(e.nodeType===8?e.parentNode:e),new Lo(t)};we.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Pu(t),e=e===null?null:e.stateNode,e};we.flushSync=function(e){return _t(e)};we.hydrate=function(e,t,n){if(!yl(t))throw Error(k(200));return gl(null,e,t,!0,n)};we.hydrateRoot=function(e,t,n){if(!Fo(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=sc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=oc(t,null,e,1,n??null,l,!1,i,o),e[Ye]=t.current,Un(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 ml(t)};we.render=function(e,t,n){if(!yl(t))throw Error(k(200));return gl(null,e,t,!1,n)};we.unmountComponentAtNode=function(e){if(!yl(e))throw Error(k(40));return e._reactRootContainer?(_t(function(){gl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ye]=null})}),!0):!1};we.unstable_batchedUpdates=No;we.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yl(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return gl(e,t,n,!1,r)};we.version="18.3.1-next-f1338f8080-20240426";function uc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uc)}catch(e){console.error(e)}}uc(),uu.exports=we;var Qf=uu.exports,Ks=Qf;Yl.createRoot=Ks.createRoot,Yl.hydrateRoot=Ks.hydrateRoot;class Ys{constructor(t,n,r=60){Y(this,"cellSize");Y(this,"cols");Y(this,"rows");Y(this,"grid");this.cellSize=r,this.cols=Math.ceil(t/r),this.rows=Math.ceil(n/r),this.grid=new Map}clear(){this.grid.clear()}getKey(t,n){return`${t},${n}`}insert(t){const n=Math.floor(t.x/this.cellSize),r=Math.floor(t.y/this.cellSize),l=this.getKey(n,r);this.grid.has(l)||this.grid.set(l,[]),this.grid.get(l).push(t)}getNearby(t,n,r){const l=Math.max(0,Math.floor((t-r)/this.cellSize)),i=Math.min(this.cols-1,Math.floor((t+r)/this.cellSize)),o=Math.max(0,Math.floor((n-r)/this.cellSize)),s=Math.min(this.rows-1,Math.floor((n+r)/this.cellSize)),u=[];for(let d=l;d<=i;d++)for(let c=o;c<=s;c++){const m=this.getKey(d,c),g=this.grid.get(m);g&&u.push(...g)}return u}}function Gf(e,t,n,r,l){let i=0,o=0,s=0,u=0;for(const N of n){const p=e.x-N.x,f=e.y-N.y,h=Math.hypot(p,f);if(h<N.radius+e.visionRadius){const v=(N.radius+e.visionRadius-h)/(N.radius+e.visionRadius);s+=p/(h||1)*v*4,u+=f/(h||1)*v*4}}if(Math.hypot(s,u)>.1)return i+=s,o+=u,{desiredHeading:Math.atan2(o,i),state:"EVADING_HAZARD"};let d=null,c=1/0;for(const N of t){const p=N.x-e.x,f=N.y-e.y,h=Math.hypot(p,f);h<=e.visionRadius&&h<c&&(c=h,d=N)}if(d){const N=d.x-e.x,p=d.y-e.y;return{desiredHeading:Math.atan2(p,N),state:"SEEKING_ENERGY"}}const m=60;let g=0,y=0;if(e.x<m?g=(m-e.x)/m:e.x>r-m&&(g=-(e.x-(r-m))/m),e.y<m?y=(m-e.y)/m:e.y>l-m&&(y=-(e.y-(l-m))/m),Math.hypot(g,y)>.1)return{desiredHeading:Math.atan2(y+Math.sin(e.heading)*.5,g+Math.cos(e.heading)*.5),state:"WANDERING"};const x=(Math.random()-.5)*.3;return{desiredHeading:e.heading+x,state:"WANDERING"}}class Kf{constructor(t,n,r){Y(this,"width");Y(this,"height");Y(this,"config");Y(this,"microbots",[]);Y(this,"energyParticles",[]);Y(this,"hazards",[]);Y(this,"selectedMicrobotId",null);Y(this,"spatialGrid");Y(this,"totalBirths",0);Y(this,"totalDeaths",0);Y(this,"generationCount",1);Y(this,"frameCount",0);Y(this,"historyTimeline",[]);Y(this,"nextBotIdNum",1);Y(this,"nextFoodIdNum",1);this.width=t,this.height=n,this.config=r,this.spatialGrid=new Ys(t,n,60),this.resetSimulation()}resetSimulation(){this.microbots=[],this.energyParticles=[],this.hazards=[],this.selectedMicrobotId=null,this.totalBirths=0,this.totalDeaths=0,this.generationCount=1,this.frameCount=0,this.nextBotIdNum=1,this.nextFoodIdNum=1,this.historyTimeline=[];for(let t=0;t<this.config.startPopulation;t++)this.spawnMicrobot();this.spawnMultipleFood(80),this.updateHazardsCount(),this.microbots.length>0&&(this.selectedMicrobotId=this.microbots[0].id)}resize(t,n){this.width=Math.max(600,t),this.height=Math.max(400,n),this.spatialGrid=new Ys(this.width,this.height,60)}spawnMicrobot(t){const n=`MB-${String(this.nextBotIdNum++).padStart(4,"0")}`;let r=Math.random()*(this.width-100)+50,l=Math.random()*(this.height-100)+50,i=2+(Math.random()-.5)*.5,o=.1+(Math.random()-.5)*.04,s=120+(Math.random()-.5)*30,u=100,d=1,c=185,m=1,g=null;if(t){r=t.x+(Math.random()-.5)*20,l=t.y+(Math.random()-.5)*20,m=t.generation+1,g=t.id,t.offspringCount++,m>this.generationCount&&(this.generationCount=m);const w=this.config.mutationRate;i=Math.max(1,Math.min(5,t.speed+(Math.random()-.5)*w*1.5)),o=Math.max(.04,Math.min(.3,t.turnRate+(Math.random()-.5)*w*.1)),s=Math.max(60,Math.min(260,t.visionRadius+(Math.random()-.5)*w*50)),d=Math.max(.6,Math.min(2.5,t.energyEfficiency+(Math.random()-.5)*w*.4)),c=(t.hue+(Math.random()-.5)*w*80+360)%360}const y=`hsl(${Math.round(c)}, 95%, 55%)`,x={id:n,x:r,y:l,vx:Math.cos(Math.random()*Math.PI*2)*i,vy:Math.sin(Math.random()*Math.PI*2)*i,heading:Math.random()*Math.PI*2,speed:i,maxSpeed:i,turnRate:o,visionRadius:s,battery:u,maxBattery:u,energyEfficiency:d,hue:c,color:y,generation:m,parentId:g,offspringCount:0,age:0,behaviorState:"WANDERING",energyCollected:0,trail:[]};return this.microbots.push(x),this.totalBirths++,x}spawnMultipleBots(t){for(let n=0;n<t;n++)this.spawnMicrobot()}spawnFood(t,n){const r=t??Math.random()*(this.width-80)+40,l=n??Math.random()*(this.height-80)+40,i={id:`EP-${this.nextFoodIdNum++}`,x:r,y:l,value:25,radius:4};this.energyParticles.push(i)}spawnMultipleFood(t){for(let n=0;n<t;n++)this.spawnFood()}spawnHazard(){const t=`HZ-${this.hazards.length+1}`,n=60+Math.random()*40,r=Math.random()*(this.width-n*2)+n,l=Math.random()*(this.height-n*2)+n;this.hazards.push({id:t,x:r,y:l,radius:n,damageRate:.8})}clearHazards(){this.hazards=[]}updateHazardsCount(){for(;this.hazards.length<this.config.hazardCount;)this.spawnHazard();this.hazards.length>this.config.hazardCount&&(this.hazards=this.hazards.slice(0,this.config.hazardCount))}selectRandomMicrobot(){if(this.microbots.length===0)return this.selectedMicrobotId=null,null;const t=Math.floor(Math.random()*this.microbots.length),n=this.microbots[t];return this.selectedMicrobotId=n.id,n}getSelectedMicrobot(){return this.selectedMicrobotId&&this.microbots.find(t=>t.id===this.selectedMicrobotId)||null}update(t=1){if(this.config.isPaused)return;this.frameCount++;const n=this.config.simSpeed*t;this.spatialGrid.clear();for(const i of this.energyParticles)this.spatialGrid.insert(i);this.frameCount%Math.max(1,Math.floor(20/this.config.energySpawnRate))===0&&this.energyParticles.length<this.config.maxEnergyParticles&&this.spawnFood();const r=new Set,l=new Set;for(const i of this.microbots){i.age+=n,this.frameCount%5===0&&(i.trail.push({x:i.x,y:i.y}),i.trail.length>12&&i.trail.shift());const o=this.spatialGrid.getNearby(i.x,i.y,i.visionRadius),s=Gf(i,o,this.hazards,this.width,this.height);i.behaviorState=s.state;let u=s.desiredHeading-i.heading;for(;u<-Math.PI;)u+=Math.PI*2;for(;u>Math.PI;)u-=Math.PI*2;i.heading+=u*i.turnRate*n,i.vx=Math.cos(i.heading)*i.speed,i.vy=Math.sin(i.heading)*i.speed,i.x+=i.vx*n,i.y+=i.vy*n,i.x=Math.max(15,Math.min(this.width-15,i.x)),i.y=Math.max(15,Math.min(this.height-15,i.y));const c=(.015+.012*(i.speed*i.speed))/i.energyEfficiency*this.config.batteryDrainMultiplier*n;i.battery-=c;for(const m of this.hazards)Math.hypot(i.x-m.x,i.y-m.y)<m.radius&&(i.battery-=m.damageRate*n*2);if(i.battery<=0){l.add(i.id),this.totalDeaths++;continue}for(const m of o){if(r.has(m.id))continue;Math.hypot(i.x-m.x,i.y-m.y)<12&&(r.add(m.id),i.battery=Math.min(i.maxBattery,i.battery+m.value),i.energyCollected+=m.value,i.battery>=i.maxBattery*.95&&this.microbots.length<this.config.maxPopulation&&(i.battery-=45,i.behaviorState="REPRODUCING",this.spawnMicrobot(i)))}}for(r.size>0&&(this.energyParticles=this.energyParticles.filter(i=>!r.has(i.id))),l.size>0&&(this.microbots=this.microbots.filter(i=>!l.has(i.id)));this.microbots.length<12;)this.spawnMicrobot();this.frameCount%60===0&&this.recordHistorySnapshot()}recordHistorySnapshot(){const t=this.getStats();this.historyTimeline.push({time:Math.floor(this.frameCount/60),population:t.currentPopulation,avgSpeed:t.avgSpeed,avgVision:t.avgVision}),this.historyTimeline.length>60&&this.historyTimeline.shift()}getStats(){const t=this.microbots.length;let n=0,r=0,l=0;for(const i of this.microbots)n+=i.speed,r+=i.visionRadius,l+=i.energyEfficiency;return{currentPopulation:t,generationCount:this.generationCount,energyParticleCount:this.energyParticles.length,avgSpeed:t>0?n/t:0,avgVision:t>0?r/t:0,avgEfficiency:t>0?l/t:0,totalBirths:this.totalBirths,totalDeaths:this.totalDeaths,historyTimeline:this.historyTimeline}}}const ac="microbot_evolution_lab_config",Js={startPopulation:45,maxPopulation:250,mutationRate:.15,energySpawnRate:4,maxEnergyParticles:120,hazardCount:3,batteryDrainMultiplier:1,simSpeed:1,isPaused:!1,showSensoryRings:!0,showMovementTrails:!0,showTargetVectors:!0};function Yf(){try{const e=localStorage.getItem(ac);if(e)return{...Js,...JSON.parse(e),isPaused:!1}}catch(e){console.error("Failed to load config from storage:",e)}return{...Js}}function Jf(e){try{localStorage.setItem(ac,JSON.stringify(e))}catch(t){console.error("Failed to save config to storage:",t)}}/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/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"};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),F=(e,t)=>{const n=H.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:s="",children:u,...d},c)=>H.createElement("svg",{ref:c,...Xf,width:l,height:l,stroke:r,strokeWidth:o?Number(i)*24/Number(l):i,className:["lucide",`lucide-${Zf(e)}`,s].join(" "),...d},[...t.map(([m,g])=>H.createElement(m,g)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qf=F("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cc=F("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bf=F("BatteryCharging",[["path",{d:"M15 7h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2",key:"1sdynx"}],["path",{d:"M6 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1",key:"1gkd3k"}],["path",{d:"m11 7-3 5h4l-3 5",key:"b4a64w"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ep=F("Cpu",[["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"9",y:"9",width:"6",height:"6",key:"o3kz5p"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tp=F("Crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dc=F("Dna",[["path",{d:"M2 15c6.667-6 13.333 0 20-6",key:"1pyr53"}],["path",{d:"M9 22c1.798-1.998 2.518-3.995 2.807-5.993",key:"q3hbxp"}],["path",{d:"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993",key:"80uv8i"}],["path",{d:"m17 6-2.5-2.5",key:"5cdfhj"}],["path",{d:"m14 8-1-1",key:"15nbz5"}],["path",{d:"m7 18 2.5 2.5",key:"16tu1a"}],["path",{d:"m3.5 14.5.5.5",key:"hapbhd"}],["path",{d:"m20 9 .5.5",key:"1n7z02"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m16.5 10.5 1 1",key:"696xn5"}],["path",{d:"m10 16 1.5 1.5",key:"11lckj"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const np=F("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rp=F("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fc=F("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lp=F("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ip=F("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const op=F("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sp=F("MousePointerClick",[["path",{d:"m9 9 5 12 1.8-5.2L21 14Z",key:"1b76lo"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const up=F("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ap=F("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xs=F("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cp=F("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dp=F("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pc=F("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fp=F("Skull",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["path",{d:"M8 20v2h8v-2",key:"ded4og"}],["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M16 20a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20",key:"xq9p5u"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pp=F("Sliders",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hp=F("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oo=F("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mp=F("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yp=F("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Do=F("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vl=F("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),gp=({config:e,isAutoDemo:t,onUpdateConfig:n,onReset:r,onStep:l,onOpenRosterMenu:i,onOpenGuide:o,onSpawnFood:s,onSpawnBots:u,onSpawnHazard:d,onClearHazards:c,onToggleAutoDemo:m})=>a.jsxs("header",{className:"header-bar",children:[a.jsxs("div",{className:"logo-group",children:[a.jsx("div",{className:"logo-icon",children:a.jsx("div",{className:"logo-inner",children:a.jsx(ep,{style:{width:24,height:24}})})}),a.jsxs("div",{children:[a.jsxs("h1",{className:"title-text",children:["MICROBOT ",a.jsx("span",{className:"title-highlight",children:"EVOLUTION LAB"})]}),a.jsx("p",{className:"subtitle-text",children:"2D Autonomous Artificial Life & Genetic Evolution Engine"})]})]}),a.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:8},children:[a.jsxs("button",{onClick:o,className:"btn btn-cyan",children:[a.jsx(ip,{style:{width:14,height:14}}),a.jsx("span",{children:"GUIDE"})]}),a.jsxs("button",{onClick:i,className:"btn btn-purple",title:"Open Microbot Selection Roster Menu!",style:{padding:"8px 16px",background:"linear-gradient(135deg, #a855f7, #7c3aed)",color:"#ffffff",border:"none",boxShadow:"0 0 15px rgba(168, 85, 247, 0.4)"},children:[a.jsx(Oo,{style:{width:16,height:16}}),a.jsx("span",{children:"🎯 SELECT BOT MENU"})]}),a.jsxs("button",{onClick:s,className:"btn btn-emerald",title:"Drop 20 green food dots!",children:[a.jsx(Xs,{style:{width:14,height:14}}),a.jsx("span",{children:"🍏 +20 FOOD"})]}),a.jsxs("button",{onClick:u,className:"btn btn-cyan",title:"Spawn 10 new microbots!",children:[a.jsx(Xs,{style:{width:14,height:14}}),a.jsx("span",{children:"🤖 +10 BOTS"})]}),a.jsxs("button",{onClick:d,className:"btn btn-rose",title:"Spawn a red hazard zone!",children:[a.jsx(pc,{style:{width:14,height:14}}),a.jsx("span",{children:"💥 +HAZARD"})]}),a.jsxs("button",{onClick:c,className:"btn btn-dark",title:"Clear all hazard zones!",children:[a.jsx(mp,{style:{width:14,height:14}}),a.jsx("span",{children:"CLEAR"})]}),a.jsxs("button",{onClick:m,className:t?"btn btn-cyan":"btn btn-dark",children:[a.jsx(rp,{style:{width:14,height:14}}),a.jsx("span",{children:t?"🎬 DEMO: ON":"🎬 AUTO DEMO"})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,background:"#030712",padding:"4px 8px",borderRadius:8,fontSize:"0.7rem"},children:[a.jsx(hp,{style:{width:12,height:12,color:"#fbbf24"}}),a.jsx("button",{onClick:()=>n({mutationRate:.25,energySpawnRate:10,simSpeed:2}),className:"btn btn-dark",style:{padding:"4px 8px"},children:"⚡ Fast"}),a.jsx("button",{onClick:()=>n({hazardCount:8,batteryDrainMultiplier:1.5,mutationRate:.2}),className:"btn btn-dark",style:{padding:"4px 8px"},children:"🛡️ Survival"})]})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,background:"rgba(3, 7, 18, 0.8)",padding:"6px 10px",borderRadius:10,border:"1px solid rgba(0, 240, 255, 0.2)"},children:[a.jsx("button",{onClick:()=>n({isPaused:!e.isPaused}),className:e.isPaused?"btn btn-emerald":"btn btn-rose",children:e.isPaused?a.jsxs(a.Fragment,{children:[a.jsx(ap,{style:{width:14,height:14,fill:"currentColor"}}),a.jsx("span",{children:"RESUME"})]}):a.jsxs(a.Fragment,{children:[a.jsx(up,{style:{width:14,height:14,fill:"currentColor"}}),a.jsx("span",{children:"PAUSE"})]})}),a.jsx("button",{onClick:l,disabled:!e.isPaused,className:"btn btn-dark",style:{opacity:e.isPaused?1:.4},children:"STEP"}),a.jsxs("button",{onClick:r,className:"btn btn-dark",children:[a.jsx(cp,{style:{width:12,height:12}}),a.jsx("span",{children:"RESET"})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,marginLeft:6,fontSize:"0.7rem",color:"#94a3b8"},children:[a.jsx("span",{children:"SPEED:"}),a.jsxs("select",{value:e.simSpeed,onChange:g=>n({simSpeed:parseFloat(g.target.value)}),style:{background:"#090d16",color:"#00f0ff",fontWeight:700,borderRadius:6,border:"1px solid rgba(0, 240, 255, 0.3)",padding:"4px 6px",cursor:"pointer"},children:[a.jsx("option",{value:"0.05",children:"0.05x (Super Slow)"}),a.jsx("option",{value:"0.10",children:"0.10x (Slow Motion)"}),a.jsx("option",{value:"0.25",children:"0.25x (Quarter Speed)"}),a.jsx("option",{value:"0.50",children:"0.50x (Half Speed)"}),a.jsx("option",{value:"1.00",children:"1.00x (Normal)"}),a.jsx("option",{value:"2.00",children:"2.00x (Fast)"}),a.jsx("option",{value:"5.00",children:"5.00x (Hyper)"})]})]})]})]}),vp=({config:e,onUpdateConfig:t})=>a.jsxs("div",{className:"panel-card",children:[a.jsxs("div",{className:"panel-header",children:[a.jsx(pp,{style:{width:16,height:16}}),a.jsx("span",{children:"Ecosystem Parameters"})]}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[a.jsxs("div",{className:"slider-group",children:[a.jsxs("div",{className:"slider-label",children:[a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[a.jsx(dc,{style:{width:12,height:12,color:"#c084fc"}})," Mutation Rate"]}),a.jsxs("span",{className:"slider-value",children:[(e.mutationRate*100).toFixed(0),"%"]})]}),a.jsx("input",{type:"range",min:"0.01",max:"0.50",step:"0.01",value:e.mutationRate,onChange:n=>t({mutationRate:parseFloat(n.target.value)})})]}),a.jsxs("div",{className:"slider-group",children:[a.jsxs("div",{className:"slider-label",children:[a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[a.jsx(vl,{style:{width:12,height:12,color:"#34d399"}})," Energy Spawn Speed"]}),a.jsxs("span",{className:"slider-value",children:[e.energySpawnRate.toFixed(1),"x"]})]}),a.jsx("input",{type:"range",min:"0.5",max:"12.0",step:"0.5",value:e.energySpawnRate,onChange:n=>t({energySpawnRate:parseFloat(n.target.value)})})]}),a.jsxs("div",{className:"slider-group",children:[a.jsxs("div",{className:"slider-label",children:[a.jsx("span",{children:"Max Population Cap"}),a.jsxs("span",{className:"slider-value",children:[e.maxPopulation," BOTS"]})]}),a.jsx("input",{type:"range",min:"50",max:"400",step:"10",value:e.maxPopulation,onChange:n=>t({maxPopulation:parseInt(n.target.value,10)})})]}),a.jsxs("div",{className:"slider-group",children:[a.jsxs("div",{className:"slider-label",children:[a.jsx("span",{children:"Battery Drain Rate"}),a.jsxs("span",{className:"slider-value",children:[e.batteryDrainMultiplier.toFixed(1),"x"]})]}),a.jsx("input",{type:"range",min:"0.2",max:"3.0",step:"0.1",value:e.batteryDrainMultiplier,onChange:n=>t({batteryDrainMultiplier:parseFloat(n.target.value)})})]}),a.jsxs("div",{className:"slider-group",children:[a.jsxs("div",{className:"slider-label",children:[a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[a.jsx(pc,{style:{width:12,height:12,color:"#fb7185"}})," Hazard Zones"]}),a.jsxs("span",{className:"slider-value",children:[e.hazardCount," ZONES"]})]}),a.jsx("input",{type:"range",min:"0",max:"12",step:"1",value:e.hazardCount,onChange:n=>t({hazardCount:parseInt(n.target.value,10)})})]})]}),a.jsxs("div",{style:{marginTop:14,paddingTop:10,borderTop:"1px solid rgba(255, 255, 255, 0.08)"},children:[a.jsxs("div",{style:{fontSize:"0.7rem",color:"#94a3b8",fontFamily:"'JetBrains Mono', monospace",marginBottom:8,display:"flex",alignItems:"center",gap:4},children:[a.jsx(op,{style:{width:12,height:12,color:"#00f0ff"}})," Visual Overlay Filters"]}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,fontSize:"0.72rem"},children:[a.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8,cursor:"pointer",color:"#cbd5e1"},children:[a.jsx("input",{type:"checkbox",checked:e.showSensoryRings,onChange:n=>t({showSensoryRings:n.target.checked}),style:{accentColor:"#00f0ff"}}),a.jsx("span",{children:"Show Sensory Vision Rings"})]}),a.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8,cursor:"pointer",color:"#cbd5e1"},children:[a.jsx("input",{type:"checkbox",checked:e.showMovementTrails,onChange:n=>t({showMovementTrails:n.target.checked}),style:{accentColor:"#00f0ff"}}),a.jsx("span",{children:"Show Microbot Movement Trails"})]}),a.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8,cursor:"pointer",color:"#cbd5e1"},children:[a.jsx("input",{type:"checkbox",checked:e.showTargetVectors,onChange:n=>t({showTargetVectors:n.target.checked}),style:{accentColor:"#00f0ff"}}),a.jsx("span",{children:"Show Target Vector Headings"})]})]})]})]}),xp=({bot:e,onClose:t})=>{if(!e)return a.jsxs("div",{className:"panel-card",style:{textAlign:"center",padding:"30px 16px"},children:[a.jsx(tp,{style:{width:32,height:32,color:"#00f0ff",marginBottom:8,margin:"0 auto 8px auto"}}),a.jsx("p",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"0.85rem",color:"#ffffff",fontWeight:700},children:"SELECTING MICROBOT..."}),a.jsxs("p",{style:{fontSize:"0.72rem",color:"#94a3b8",marginTop:4},children:["Click any microbot on screen or press ",a.jsx("strong",{style:{color:"#00f0ff"},children:"SELECT BOT"}),"."]})]});const n=Math.max(0,Math.min(100,e.battery/e.maxBattery*100)),r={WANDERING:{bg:"rgba(30, 41, 59, 0.6)",border:"#334155",text:"#cbd5e1",label:"WANDERING"},SEEKING_ENERGY:{bg:"rgba(16, 185, 129, 0.2)",border:"#10b981",text:"#34d399",label:"SEEKING FOOD 🍏"},EVADING_HAZARD:{bg:"rgba(244, 63, 94, 0.2)",border:"#f43f5e",text:"#fb7185",label:"EVADING HAZARD 💥"},REPRODUCING:{bg:"rgba(168, 85, 247, 0.2)",border:"#a855f7",text:"#c084fc",label:"REPRODUCING 🧬"}},l=r[e.behaviorState]||r.WANDERING;return a.jsxs("div",{className:"panel-card",style:{position:"relative",border:"2px solid #00f0ff",boxShadow:"0 0 20px rgba(0, 240, 255, 0.25)"},children:[a.jsx("button",{onClick:t,style:{position:"absolute",top:12,right:12,background:"transparent",border:"none",color:"#94a3b8",cursor:"pointer"},title:"Deselect",children:a.jsx(Do,{style:{width:16,height:16}})}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:12,paddingRight:20},children:[a.jsx("div",{style:{width:24,height:24,borderRadius:"50%",backgroundColor:e.color,border:"2px solid #ffffff",boxShadow:"0 0 10px "+e.color,flexShrink:0}}),a.jsxs("div",{children:[a.jsx("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"1rem",color:"#00f0ff"},children:e.id}),a.jsxs("div",{style:{fontSize:"0.7rem",color:"#94a3b8",fontFamily:"'JetBrains Mono', monospace"},children:["GEN #",e.generation," • PARENT: ",e.parentId||"ORIGIN"]})]})]}),a.jsxs("div",{style:{padding:"6px 12px",borderRadius:8,background:l.bg,border:"1px solid "+l.border,color:l.text,fontSize:"0.75rem",fontFamily:"'JetBrains Mono', monospace",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},children:[a.jsx("span",{children:"BEHAVIOR:"}),a.jsx("span",{children:l.label})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.7)",padding:10,borderRadius:8,border:"1px solid rgba(255,255,255,0.08)",marginBottom:12},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.72rem",fontFamily:"'JetBrains Mono', monospace",marginBottom:6},children:[a.jsxs("span",{style:{color:"#94a3b8",display:"flex",alignItems:"center",gap:4},children:[a.jsx(bf,{style:{width:14,height:14,color:"#00f0ff"}})," Battery Charge"]}),a.jsxs("span",{style:{color:"#00f0ff",fontWeight:700},children:[e.battery.toFixed(1)," / ",e.maxBattery.toFixed(0)," (",n.toFixed(0),"%)"]})]}),a.jsx("div",{style:{width:"100%",height:8,background:"#1e293b",borderRadius:4,overflow:"hidden"},children:a.jsx("div",{style:{height:"100%",width:`${n}%`,background:n>40?"linear-gradient(90deg, #00f0ff, #34d399)":n>20?"#fbbf24":"#f43f5e",transition:"width 0.2s ease"}})})]}),a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,fontSize:"0.72rem",fontFamily:"'JetBrains Mono', monospace"},children:[a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:8,borderRadius:6,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{color:"#94a3b8",fontSize:"0.65rem",display:"flex",alignItems:"center",gap:4},children:[a.jsx(fc,{style:{width:12,height:12,color:"#00f0ff"}})," Speed"]}),a.jsxs("div",{style:{color:"#00f0ff",fontWeight:700,fontSize:"0.9rem",marginTop:2},children:[e.speed.toFixed(2)," px/f"]})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:8,borderRadius:6,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{color:"#94a3b8",fontSize:"0.65rem",display:"flex",alignItems:"center",gap:4},children:[a.jsx(np,{style:{width:12,height:12,color:"#60a5fa"}})," Vision Range"]}),a.jsxs("div",{style:{color:"#60a5fa",fontWeight:700,fontSize:"0.9rem",marginTop:2},children:[e.visionRadius.toFixed(0)," px"]})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:8,borderRadius:6,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{color:"#94a3b8",fontSize:"0.65rem",display:"flex",alignItems:"center",gap:4},children:[a.jsx(vl,{style:{width:12,height:12,color:"#34d399"}})," Efficiency"]}),a.jsxs("div",{style:{color:"#34d399",fontWeight:700,fontSize:"0.9rem",marginTop:2},children:[e.energyEfficiency.toFixed(2),"x"]})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:8,borderRadius:6,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{color:"#94a3b8",fontSize:"0.65rem",display:"flex",alignItems:"center",gap:4},children:[a.jsx(cc,{style:{width:12,height:12,color:"#fbbf24"}})," Offspring"]}),a.jsx("div",{style:{color:"#fbbf24",fontWeight:700,fontSize:"0.9rem",marginTop:2},children:e.offspringCount})]})]}),a.jsxs("div",{style:{marginTop:10,paddingTop:8,borderTop:"1px solid rgba(255,255,255,0.08)",display:"flex",justifyContent:"space-between",fontSize:"0.7rem",color:"#94a3b8",fontFamily:"'JetBrains Mono', monospace"},children:[a.jsxs("span",{children:["AGE: ",Math.floor(e.age/60),"s"]}),a.jsxs("span",{children:["ENERGY EATEN: ",Math.floor(e.energyCollected)]})]})]})},kp=({history:e,maxPopulation:t})=>{const n=H.useRef(null);return H.useEffect(()=>{const r=n.current;if(!r)return;const l=r.getContext("2d");if(!l)return;const i=r.width,o=r.height;if(l.clearRect(0,0,i,o),e.length<2)return;l.strokeStyle="#00f0ff",l.lineWidth=2,l.beginPath();const s=i/(e.length-1);for(let d=0;d<e.length;d++){const c=d*s,m=o-e[d].population/Math.max(1,t)*o*.85-2;d===0?l.moveTo(c,m):l.lineTo(c,m)}l.stroke(),l.lineTo(i,o),l.lineTo(0,o),l.closePath();const u=l.createLinearGradient(0,0,0,o);u.addColorStop(0,"rgba(0, 240, 255, 0.3)"),u.addColorStop(1,"rgba(0, 240, 255, 0)"),l.fillStyle=u,l.fill()},[e,t]),a.jsx("canvas",{ref:n,width:200,height:36,style:{display:"block",width:"100%",height:"100%"}})},wp=({stats:e,maxPopulation:t})=>a.jsx("div",{className:"panel-card",style:{padding:"10px 14px"},children:a.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(6, 1fr) 220px",gap:10,alignItems:"center"},children:[a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:"6px 10px",borderRadius:8,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{fontSize:"0.62rem",color:"#94a3b8",display:"flex",alignItems:"center",gap:4,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx(yp,{style:{width:12,height:12,color:"#00f0ff"}})," Population"]}),a.jsxs("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"0.95rem",color:"#ffffff",marginTop:2},children:[e.currentPopulation," ",a.jsxs("span",{style:{fontSize:"0.65rem",color:"#94a3b8"},children:["/ ",t]})]})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:"6px 10px",borderRadius:8,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{fontSize:"0.62rem",color:"#94a3b8",display:"flex",alignItems:"center",gap:4,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx(dc,{style:{width:12,height:12,color:"#c084fc"}})," Generation"]}),a.jsxs("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"0.95rem",color:"#c084fc",marginTop:2},children:["GEN #",e.generationCount]})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:"6px 10px",borderRadius:8,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{fontSize:"0.62rem",color:"#94a3b8",display:"flex",alignItems:"center",gap:4,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx(vl,{style:{width:12,height:12,color:"#34d399"}})," Food Dots"]}),a.jsx("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"0.95rem",color:"#34d399",marginTop:2},children:e.energyParticleCount})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:"6px 10px",borderRadius:8,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{fontSize:"0.62rem",color:"#94a3b8",display:"flex",alignItems:"center",gap:4,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx(qf,{style:{width:12,height:12,color:"#60a5fa"}})," Avg Speed"]}),a.jsx("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"0.95rem",color:"#60a5fa",marginTop:2},children:e.avgSpeed.toFixed(2)})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:"6px 10px",borderRadius:8,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{fontSize:"0.62rem",color:"#94a3b8",display:"flex",alignItems:"center",gap:4,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx(lp,{style:{width:12,height:12,color:"#f43f5e"}})," Births"]}),a.jsx("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"0.95rem",color:"#fb7185",marginTop:2},children:e.totalBirths})]}),a.jsxs("div",{style:{background:"rgba(3, 7, 18, 0.6)",padding:"6px 10px",borderRadius:8,border:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{fontSize:"0.62rem",color:"#94a3b8",display:"flex",alignItems:"center",gap:4,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx(fp,{style:{width:12,height:12,color:"#94a3b8"}})," Deaths"]}),a.jsx("div",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"0.95rem",color:"#cbd5e1",marginTop:2},children:e.totalDeaths})]}),a.jsx("div",{style:{height:44,background:"rgba(3, 7, 18, 0.8)",borderRadius:8,padding:"4px 8px",border:"1px solid rgba(255,255,255,0.08)"},children:a.jsx(kp,{history:e.historyTimeline,maxPopulation:t})})]})}),Sp=({engine:e,onSelectBot:t,onSelectRandomBot:n})=>{const r=H.useRef(null),l=H.useRef(null);H.useEffect(()=>{const s=r.current;if(!s)return;const u=()=>{const c=s.getBoundingClientRect(),m=Math.max(600,Math.floor(s.clientWidth||c.width||1e3)),g=Math.max(400,Math.floor(s.clientHeight||c.height||650)),y=l.current;y&&(y.width=m,y.height=g,e.resize(m,g))};u();const d=new ResizeObserver(u);return d.observe(s),()=>d.disconnect()},[e]),H.useEffect(()=>{let s;const u=()=>{const d=l.current;if(d){const c=d.getContext("2d");if(c){e.update(1),c.fillStyle="#030712",c.fillRect(0,0,d.width,d.height),c.strokeStyle="rgba(255, 255, 255, 0.03)",c.lineWidth=1;const m=40;for(let y=0;y<d.width;y+=m)c.beginPath(),c.moveTo(y,0),c.lineTo(y,d.height),c.stroke();for(let y=0;y<d.height;y+=m)c.beginPath(),c.moveTo(0,y),c.lineTo(d.width,y),c.stroke();for(const y of e.hazards){const x=Math.sin(Date.now()/300)*4,w=Math.max(10,y.radius+x),N=c.createRadialGradient(y.x,y.y,5,y.x,y.y,w);N.addColorStop(0,"rgba(244, 63, 94, 0.35)"),N.addColorStop(.7,"rgba(244, 63, 94, 0.15)"),N.addColorStop(1,"rgba(244, 63, 94, 0)"),c.fillStyle=N,c.beginPath(),c.arc(y.x,y.y,w,0,Math.PI*2),c.fill(),c.strokeStyle="rgba(244, 63, 94, 0.6)",c.lineWidth=1.5,c.setLineDash([6,6]),c.beginPath(),c.arc(y.x,y.y,y.radius,0,Math.PI*2),c.stroke(),c.setLineDash([])}for(const y of e.energyParticles)c.shadowColor="#10b981",c.shadowBlur=10,c.fillStyle="#34d399",c.beginPath(),c.arc(y.x,y.y,y.radius,0,Math.PI*2),c.fill(),c.shadowBlur=0;const g=e.getSelectedMicrobot();for(const y of e.microbots){const x=g&&g.id===y.id;if(e.config.showMovementTrails&&y.trail.length>1){c.strokeStyle=y.color,c.lineWidth=1.5,c.globalAlpha=.25,c.beginPath(),c.moveTo(y.trail[0].x,y.trail[0].y);for(let v=1;v<y.trail.length;v++)c.lineTo(y.trail[v].x,y.trail[v].y);c.stroke(),c.globalAlpha=1}(x||e.config.showSensoryRings)&&(c.strokeStyle=x?"#00f0ff":"rgba(255, 255, 255, 0.08)",c.lineWidth=x?1.5:.8,c.beginPath(),c.arc(y.x,y.y,y.visionRadius,0,Math.PI*2),c.stroke()),x&&e.config.showTargetVectors&&(c.strokeStyle="rgba(0, 240, 255, 0.6)",c.lineWidth=1,c.setLineDash([4,4]),c.beginPath(),c.moveTo(y.x,y.y),c.lineTo(y.x+Math.cos(y.heading)*y.visionRadius*.8,y.y+Math.sin(y.heading)*y.visionRadius*.8),c.stroke(),c.setLineDash([])),c.save(),c.translate(y.x,y.y),c.rotate(y.heading),c.shadowColor=y.color,c.shadowBlur=x?18:8,c.fillStyle=y.color,c.beginPath(),c.ellipse(0,0,10,6,0,0,Math.PI*2),c.fill(),c.fillStyle="#ffffff",c.beginPath(),c.arc(5,0,2.5,0,Math.PI*2),c.fill(),c.shadowBlur=0,c.restore();const w=Math.max(0,Math.min(1,y.battery/y.maxBattery)),N=20,p=3,f=y.x-N/2,h=y.y-14;if(c.fillStyle="rgba(0, 0, 0, 0.6)",c.fillRect(f,h,N,p),c.fillStyle=w>.4?"#34d399":w>.2?"#fbbf24":"#f43f5e",c.fillRect(f,h,N*w,p),x){const C=18+Math.sin(Date.now()/200)*3;c.strokeStyle="#00f0ff",c.lineWidth=2,c.beginPath(),c.arc(y.x,y.y,C,0,Math.PI*2),c.stroke(),c.beginPath(),c.moveTo(y.x-C-4,y.y),c.lineTo(y.x-C+2,y.y),c.moveTo(y.x+C+4,y.y),c.lineTo(y.x+C-2,y.y),c.moveTo(y.x,y.y-C-4),c.lineTo(y.x,y.y-C+2),c.moveTo(y.x,y.y+C+4),c.lineTo(y.x,y.y+C-2),c.stroke(),c.font="800 11px 'JetBrains Mono', monospace",c.fillStyle="#00f0ff",c.textAlign="center",c.fillText(`★ ${y.id} (${y.behaviorState.replace("_"," ")})`,y.x,y.y-22)}}}}s=requestAnimationFrame(u)};return u(),()=>cancelAnimationFrame(s)},[e]);const i=s=>{const u=l.current;if(!u)return;const d=u.getBoundingClientRect(),c=s.clientX-d.left,m=s.clientY-d.top;let g=null,y=28;for(const x of e.microbots){const w=Math.hypot(x.x-c,x.y-m);w<y&&(y=w,g=x)}if(g)t(g.id);else for(let x=0;x<5;x++)e.spawnFood(c+(Math.random()-.5)*20,m+(Math.random()-.5)*20)},o=e.getSelectedMicrobot();return a.jsxs("div",{ref:r,className:"canvas-container",style:{width:"100%",height:"100%"},children:[a.jsxs("div",{style:{position:"absolute",top:12,left:12,right:12,zIndex:10,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 14px",background:"rgba(3, 7, 18, 0.85)",border:"1px solid rgba(0, 240, 255, 0.3)",borderRadius:10,backdropFilter:"blur(8px)",pointerEvents:"auto"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[a.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:o?o.color:"#00f0ff",boxShadow:"0 0 10px "+(o?o.color:"#00f0ff")}}),a.jsxs("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"0.8rem",fontWeight:800,color:"#ffffff"},children:["TRACKING: ",o?o.id:"SEARCHING..."]}),o&&a.jsxs("span",{style:{fontSize:"0.7rem",color:"#94a3b8",fontFamily:"'JetBrains Mono', monospace"},children:["(GEN #",o.generation," • ",o.behaviorState.replace("_"," "),")"]})]}),a.jsxs("button",{onClick:n,className:"btn btn-cyan",style:{padding:"4px 10px",fontSize:"0.7rem"},children:[a.jsx(Oo,{style:{width:12,height:12}}),a.jsx("span",{children:"SWITCH BOT"})]})]}),a.jsx("canvas",{ref:l,onClick:i,style:{display:"block",width:"100%",height:"100%",cursor:"crosshair"}}),a.jsxs("div",{style:{position:"absolute",bottom:12,left:12,zIndex:10,background:"rgba(3, 7, 18, 0.75)",padding:"4px 10px",borderRadius:6,border:"1px solid rgba(255, 255, 255, 0.1)",fontSize:"0.68rem",color:"#94a3b8",display:"flex",alignItems:"center",gap:6,pointerEvents:"none"},children:[a.jsx(sp,{style:{width:14,height:14,color:"#34d399"}}),a.jsx("span",{children:"Click anywhere on canvas to drop food!"})]})]})},Cp=({isOpen:e,onClose:t})=>e?a.jsx("div",{style:{position:"fixed",inset:0,zIndex:50,background:"rgba(3, 7, 18, 0.85)",backdropFilter:"blur(10px)",display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:a.jsxs("div",{style:{background:"#0b0f19",border:"2px solid #00f0ff",borderRadius:"18px",maxWidth:"620px",width:"100%",padding:"24px",boxShadow:"0 0 40px rgba(0, 240, 255, 0.3)",position:"relative"},children:[a.jsx("button",{onClick:t,style:{position:"absolute",top:16,right:16,background:"transparent",border:"none",color:"#94a3b8",cursor:"pointer"},children:a.jsx(Do,{style:{width:20,height:20}})}),a.jsxs("h2",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"1.2rem",color:"#ffffff",marginBottom:6,display:"flex",alignItems:"center",gap:10},children:[a.jsx(vl,{style:{color:"#00f0ff"}})," HOW TO PLAY MICROBOT EVOLUTION LAB"]}),a.jsx("p",{style:{fontSize:"0.8rem",color:"#94a3b8",marginBottom:20},children:"A 100% automated autonomous artificial life sandbox. Watch microbots steer, search for food, avoid hazards, and reproduce!"}),a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[a.jsxs("div",{style:{background:"rgba(15, 23, 42, 0.6)",padding:12,borderRadius:10,border:"1px solid rgba(255, 255, 255, 0.08)",display:"flex",gap:12},children:[a.jsx("div",{style:{width:32,height:32,borderRadius:8,background:"rgba(0, 240, 255, 0.2)",color:"#00f0ff",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:800,flexShrink:0},children:"1"}),a.jsxs("div",{children:[a.jsx("h4",{style:{fontSize:"0.85rem",color:"#ffffff",fontWeight:700},children:"Inspect Microbot Telemetry"}),a.jsxs("p",{style:{fontSize:"0.75rem",color:"#94a3b8",marginTop:2},children:["Click ",a.jsx("strong",{children:"🎯 SELECT BOT"})," or click any microbot directly on the canvas grid to inspect its real-time battery level, movement speed, vision range, and behavior state."]})]})]}),a.jsxs("div",{style:{background:"rgba(15, 23, 42, 0.6)",padding:12,borderRadius:10,border:"1px solid rgba(255, 255, 255, 0.08)",display:"flex",gap:12},children:[a.jsx("div",{style:{width:32,height:32,borderRadius:8,background:"rgba(16, 185, 129, 0.2)",color:"#34d399",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:800,flexShrink:0},children:"2"}),a.jsxs("div",{children:[a.jsx("h4",{style:{fontSize:"0.85rem",color:"#ffffff",fontWeight:700},children:"Interactive Mouse Canvas Spawner"}),a.jsxs("p",{style:{fontSize:"0.75rem",color:"#94a3b8",marginTop:2},children:["Click anywhere on the simulation grid to drop ",a.jsx("strong",{children:"5 green food particles"})," directly under your cursor, or use ",a.jsx("strong",{children:"🍏 +20 FOOD"})," and ",a.jsx("strong",{children:"🤖 +10 BOTS"})," buttons!"]})]})]}),a.jsxs("div",{style:{background:"rgba(15, 23, 42, 0.6)",padding:12,borderRadius:10,border:"1px solid rgba(255, 255, 255, 0.08)",display:"flex",gap:12},children:[a.jsx("div",{style:{width:32,height:32,borderRadius:8,background:"rgba(168, 85, 247, 0.2)",color:"#c084fc",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:800,flexShrink:0},children:"3"}),a.jsxs("div",{children:[a.jsx("h4",{style:{fontSize:"0.85rem",color:"#ffffff",fontWeight:700},children:"Genetic Evolution & Hazards"}),a.jsx("p",{style:{fontSize:"0.75rem",color:"#94a3b8",marginTop:2},children:"When microbots reach full battery, they reproduce asexually. Offspring inherit mutated traits (speed, vision, energy efficiency). Spawn red hazard zones to watch microbots evolve evasion!"})]})]})]}),a.jsx("div",{style:{marginTop:24,textAlign:"right"},children:a.jsx("button",{onClick:t,className:"btn btn-cyan",style:{padding:"10px 24px",fontSize:"0.85rem"},children:"START EXPERIMENT"})})]})}):null,Ep=({isOpen:e,microbots:t,selectedBotId:n,onSelectBot:r,onClose:l})=>{const[i,o]=H.useState(""),[s,u]=H.useState("gen");if(!e)return null;const d=t.filter(c=>c.id.toLowerCase().includes(i.toLowerCase())).sort((c,m)=>s==="gen"?m.generation-c.generation:s==="battery"?m.battery-c.battery:s==="age"?m.age-c.age:s==="offspring"?m.offspringCount-c.offspringCount:0);return a.jsx("div",{style:{position:"fixed",inset:0,zIndex:60,background:"rgba(3, 7, 18, 0.85)",backdropFilter:"blur(10px)",display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:a.jsxs("div",{style:{background:"#0b0f19",border:"2px solid #00f0ff",borderRadius:"18px",maxWidth:"680px",width:"100%",maxHeight:"85vh",display:"flex",flexDirection:"column",boxShadow:"0 0 40px rgba(0, 240, 255, 0.3)",overflow:"hidden"},children:[a.jsxs("div",{style:{padding:"16px 20px",borderBottom:"1px solid rgba(255, 255, 255, 0.1)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"rgba(15, 23, 42, 0.9)"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,color:"#00f0ff"},children:[a.jsx(Oo,{style:{width:22,height:22}}),a.jsxs("div",{children:[a.jsx("h2",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"1rem",fontWeight:800,color:"#ffffff"},children:"SELECT MICROBOT FROM ROSTER"}),a.jsxs("p",{style:{fontSize:"0.72rem",color:"#94a3b8"},children:["Active Population: ",t.length," Microbots"]})]})]}),a.jsx("button",{onClick:l,style:{background:"transparent",border:"none",color:"#94a3b8",cursor:"pointer",padding:4},children:a.jsx(Do,{style:{width:20,height:20}})})]}),a.jsxs("div",{style:{padding:"12px 20px",background:"rgba(15, 23, 42, 0.5)",display:"flex",gap:12,borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[a.jsxs("div",{style:{flex:1,position:"relative",display:"flex",alignItems:"center"},children:[a.jsx(dp,{style:{width:14,height:14,color:"#94a3b8",position:"absolute",left:10}}),a.jsx("input",{type:"text",placeholder:"Search by ID (e.g. MB-0005)...",value:i,onChange:c=>o(c.target.value),style:{width:"100%",padding:"6px 10px 6px 32px",background:"#030712",border:"1px solid rgba(0, 240, 255, 0.3)",borderRadius:8,color:"#ffffff",fontSize:"0.75rem",fontFamily:"'JetBrains Mono', monospace",outline:"none"}})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,fontSize:"0.72rem",color:"#94a3b8",fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx("span",{children:"SORT:"}),a.jsxs("select",{value:s,onChange:c=>u(c.target.value),style:{background:"#030712",color:"#00f0ff",fontWeight:700,border:"1px solid rgba(0, 240, 255, 0.3)",borderRadius:8,padding:"6px 10px",fontSize:"0.75rem",cursor:"pointer"},children:[a.jsx("option",{value:"gen",children:"Highest Generation"}),a.jsx("option",{value:"battery",children:"Most Battery"}),a.jsx("option",{value:"age",children:"Oldest Age"}),a.jsx("option",{value:"offspring",children:"Most Offspring"})]})]})]}),a.jsx("div",{style:{flex:1,overflowY:"auto",padding:"16px 20px",display:"flex",flexDirection:"column",gap:10},children:d.length===0?a.jsxs("div",{style:{textAlign:"center",padding:"40px",color:"#94a3b8",fontSize:"0.8rem"},children:['No microbots found matching "',i,'".']}):d.map(c=>{const m=c.id===n,g=Math.max(0,Math.min(100,c.battery/c.maxBattery*100));return a.jsxs("div",{style:{background:m?"rgba(0, 240, 255, 0.12)":"rgba(15, 23, 42, 0.7)",border:m?"2px solid #00f0ff":"1px solid rgba(255, 255, 255, 0.1)",borderRadius:12,padding:"12px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,transition:"all 0.2s ease"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[a.jsx("div",{style:{width:18,height:18,borderRadius:"50%",backgroundColor:c.color,border:"2px solid #ffffff",boxShadow:"0 0 8px "+c.color}}),a.jsxs("div",{children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:800,fontSize:"0.9rem",color:"#ffffff"},children:c.id}),a.jsxs("span",{style:{fontSize:"0.65rem",background:"rgba(168, 85, 247, 0.2)",color:"#c084fc",border:"1px solid rgba(168, 85, 247, 0.4)",padding:"2px 6px",borderRadius:6,fontWeight:700,fontFamily:"'JetBrains Mono', monospace"},children:["GEN #",c.generation]})]}),a.jsxs("div",{style:{display:"flex",gap:12,fontSize:"0.7rem",color:"#94a3b8",marginTop:4,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[a.jsx(fc,{style:{width:12,height:12,color:"#00f0ff"}})," ",c.speed.toFixed(1)," px/f"]}),a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[a.jsx(cc,{style:{width:12,height:12,color:"#fbbf24"}})," ",c.offspringCount," kids"]}),a.jsxs("span",{children:["State: ",a.jsx("strong",{style:{color:"#34d399"},children:c.behaviorState.replace("_"," ")})]})]})]})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[a.jsxs("div",{style:{width:90},children:[a.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.65rem",color:"#00f0ff",marginBottom:3,fontFamily:"'JetBrains Mono', monospace"},children:[a.jsx("span",{children:"Charge"}),a.jsxs("span",{children:[g.toFixed(0),"%"]})]}),a.jsx("div",{style:{width:"100%",height:6,background:"#1e293b",borderRadius:3,overflow:"hidden"},children:a.jsx("div",{style:{height:"100%",width:`${g}%`,background:g>40?"#00f0ff":"#fbbf24"}})})]}),a.jsx("button",{onClick:()=>{r(c.id),l()},className:m?"btn btn-cyan":"btn btn-purple",style:{padding:"6px 12px",fontSize:"0.72rem"},children:m?"✓ SELECTED":"SELECT THIS BOT"})]})]},c.id)})})]})})},jp=()=>{const[e,t]=H.useState(Yf),n=H.useRef(null);n.current||(n.current=new Kf(1200,800,{...e,isPaused:!1}));const r=n.current,[l,i]=H.useState(()=>r.selectRandomMicrobot()),[o,s]=H.useState(()=>r.getStats()),[u,d]=H.useState(!1),[c,m]=H.useState(!1),[g,y]=H.useState(!1);H.useEffect(()=>{const S=setInterval(()=>{s(r.getStats());const E=r.getSelectedMicrobot();if(!E&&r.microbots.length>0){const z=r.selectRandomMicrobot();i(z)}else E&&i({...E})},80);return()=>clearInterval(S)},[r]),H.useEffect(()=>{if(!g||!r)return;const S=setInterval(()=>{const E=r.selectRandomMicrobot();i(E?{...E}:null)},5e3);return()=>clearInterval(S)},[g,r]);const x=S=>{t(E=>{const z={...E,...S};return Jf(z),r&&(r.config=z,"hazardCount"in S&&r.updateHazardsCount()),z})},w=()=>{if(r){r.resetSimulation();const S=r.selectRandomMicrobot();i(S?{...S}:null),s(r.getStats())}},N=()=>{r&&e.isPaused&&(r.update(1),s(r.getStats()))},p=S=>{if(r)if(S){r.selectedMicrobotId=S;const E=r.getSelectedMicrobot();i(E?{...E}:null)}else r.selectedMicrobotId=null,i(null)},f=()=>{r&&r.spawnMultipleFood(20)},h=()=>{if(r&&(r.spawnMultipleBots(10),!l)){const S=r.selectRandomMicrobot();i(S?{...S}:null)}},v=()=>{r&&(r.spawnHazard(),t(S=>({...S,hazardCount:r.hazards.length})))},C=()=>{r&&(r.clearHazards(),t(S=>({...S,hazardCount:0})))};return a.jsxs("div",{className:"app-container",children:[a.jsx(Ep,{isOpen:c,microbots:r.microbots,selectedBotId:l?l.id:null,onSelectBot:S=>p(S),onClose:()=>m(!1)}),a.jsx(Cp,{isOpen:u,onClose:()=>d(!1)}),a.jsx(gp,{config:e,isAutoDemo:g,onUpdateConfig:x,onReset:w,onStep:N,onOpenRosterMenu:()=>m(!0),onOpenGuide:()=>d(!0),onSpawnFood:f,onSpawnBots:h,onSpawnHazard:v,onClearHazards:C,onToggleAutoDemo:()=>y(S=>!S)}),a.jsxs("main",{className:"main-workspace",children:[a.jsxs("div",{className:"left-sidebar",children:[a.jsx(xp,{bot:l,onClose:()=>p(null)}),a.jsx(vp,{config:e,onUpdateConfig:x})]}),a.jsxs("div",{className:"right-viewport",children:[a.jsx(Sp,{engine:r,onSelectBot:p,onSelectRandomBot:()=>m(!0)}),a.jsx(wp,{stats:o,maxPopulation:e.maxPopulation})]})]})]})};Yl.createRoot(document.getElementById("root")).render(a.jsx(Ic.StrictMode,{children:a.jsx(jp,{})}));</script>
<style rel="stylesheet" crossorigin>:root{--bg-dark: #030712;--panel-bg: rgba(15, 23, 42, .85);--panel-border: rgba(255, 255, 255, .1);--primary-cyan: #00f0ff;--emerald-accent: #10b981;--rose-accent: #f43f5e;--purple-accent: #a855f7;--amber-accent: #fbbf24;--text-main: #f8fafc;--text-muted: #94a3b8}*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,system-ui,-apple-system,sans-serif;background-color:var(--bg-dark);color:var(--text-main);min-height:100vh;overflow-x:hidden}.app-container{display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden;background:radial-gradient(circle at 50% 0%,#0f172a,#030712)}.header-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#0f172ae6;border-bottom:1px solid var(--panel-border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:20}.logo-group{display:flex;align-items:center;gap:12px}.logo-icon{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#00f0ff,#7c3aed);display:flex;align-items:center;justify-content:center;box-shadow:0 0 15px #00f0ff66}.logo-inner{color:#fff;display:flex}.title-text{font-family:JetBrains Mono,monospace;font-size:1.1rem;font-weight:800;letter-spacing:-.02em;color:#fff}.title-highlight{color:var(--primary-cyan)}.subtitle-text{font-size:.72rem;color:var(--text-muted)}.main-workspace{display:flex;flex:1;overflow:hidden;position:relative}.left-sidebar{width:340px;display:flex;flex-direction:column;gap:12px;padding:14px;overflow-y:auto;border-right:1px solid var(--panel-border);background:#03071266}.right-viewport{flex:1;display:flex;flex-direction:column;gap:12px;padding:14px;overflow:hidden}.canvas-container{flex:1;position:relative;border-radius:14px;border:1px solid var(--panel-border);overflow:hidden;background:#000;box-shadow:inset 0 0 30px #000c,0 0 20px #00f0ff0d}.panel-card{background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:14px;padding:14px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.panel-header{font-family:JetBrains Mono,monospace;font-size:.82rem;font-weight:700;color:var(--primary-cyan);text-transform:uppercase;letter-spacing:.05em;margin-bottom:12px;display:flex;align-items:center;gap:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;border-radius:8px;font-size:.78rem;font-weight:700;font-family:JetBrains Mono,monospace;cursor:pointer;border:1px solid transparent;transition:all .2s ease}.btn-cyan{background:#00f0ff26;border-color:#00f0ff66;color:var(--primary-cyan)}.btn-cyan:hover{background:#00f0ff4d;box-shadow:0 0 12px #00f0ff66}.btn-emerald{background:#10b98126;border-color:#10b98166;color:#34d399}.btn-emerald:hover{background:#10b9814d;box-shadow:0 0 12px #10b98166}.btn-rose{background:#f43f5e26;border-color:#f43f5e66;color:#fb7185}.btn-rose:hover{background:#f43f5e4d;box-shadow:0 0 12px #f43f5e66}.btn-purple{background:#a855f726;border-color:#a855f766;color:#c084fc}.btn-purple:hover{background:#a855f74d;box-shadow:0 0 12px #a855f766}.btn-dark{background:#1e293b99;border-color:#ffffff1a;color:var(--text-muted)}.btn-dark:hover{background:#334155cc;color:#fff}.slider-group{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.slider-label{display:flex;justify-content:space-between;font-size:.72rem;color:var(--text-muted);font-family:JetBrains Mono,monospace}.slider-value{color:var(--primary-cyan);font-weight:700}input[type=range]{accent-color:var(--primary-cyan);cursor:pointer}</style>
</head>
<body>
<div id="root"></div>
</body>
</html>