(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))s(m);new MutationObserver(m=>{for(const g of m)if(g.type==="childList")for(const p of g.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function o(m){const g={};return m.integrity&&(g.integrity=m.integrity),m.referrerPolicy&&(g.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?g.credentials="include":m.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function s(m){if(m.ep)return;m.ep=!0;const g=o(m);fetch(m.href,g)}})();function gm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var _r={exports:{}},qn={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var kd;function eg(){if(kd)return qn;kd=1;var i=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function o(s,m,g){var p=null;if(g!==void 0&&(p=""+g),m.key!==void 0&&(p=""+m.key),"key"in m){g={};for(var R in m)R!=="key"&&(g[R]=m[R])}else g=m;return m=g.ref,{$$typeof:i,type:s,key:p,ref:m!==void 0?m:null,props:g}}return qn.Fragment=d,qn.jsx=o,qn.jsxs=o,qn}var Jd;function tg(){return Jd||(Jd=1,_r.exports=eg()),_r.exports}var r=tg(),Ur={exports:{}},ne={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $d;function lg(){if($d)return ne;$d=1;var i=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),p=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),C=Symbol.iterator;function T(b){return b===null||typeof b!="object"?null:(b=C&&b[C]||b["@@iterator"],typeof b=="function"?b:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,Q={};function Z(b,Y,J){this.props=b,this.context=Y,this.refs=Q,this.updater=J||q}Z.prototype.isReactComponent={},Z.prototype.setState=function(b,Y){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,Y,"setState")},Z.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function z(){}z.prototype=Z.prototype;function V(b,Y,J){this.props=b,this.context=Y,this.refs=Q,this.updater=J||q}var O=V.prototype=new z;O.constructor=V,w(O,Z.prototype),O.isPureReactComponent=!0;var G=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function X(b,Y,J,K,I,fe){return J=fe.ref,{$$typeof:i,type:b,key:Y,ref:J!==void 0?J:null,props:fe}}function de(b,Y){return X(b.type,Y,void 0,void 0,void 0,b.props)}function Ee(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function Fe(b){var Y={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(J){return Y[J]})}var gt=/\/+/g;function Ke(b,Y){return typeof b=="object"&&b!==null&&b.key!=null?Fe(""+b.key):Y.toString(36)}function _l(){}function Ul(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(_l,_l):(b.status="pending",b.then(function(Y){b.status==="pending"&&(b.status="fulfilled",b.value=Y)},function(Y){b.status==="pending"&&(b.status="rejected",b.reason=Y)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function ke(b,Y,J,K,I){var fe=typeof b;(fe==="undefined"||fe==="boolean")&&(b=null);var ae=!1;if(b===null)ae=!0;else switch(fe){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(b.$$typeof){case i:case d:ae=!0;break;case j:return ae=b._init,ke(ae(b._payload),Y,J,K,I)}}if(ae)return I=I(b),ae=K===""?"."+Ke(b,0):K,G(I)?(J="",ae!=null&&(J=ae.replace(gt,"$&/")+"/"),ke(I,Y,J,"",function(il){return il})):I!=null&&(Ee(I)&&(I=de(I,J+(I.key==null||b&&b.key===I.key?"":(""+I.key).replace(gt,"$&/")+"/")+ae)),Y.push(I)),1;ae=0;var ut=K===""?".":K+":";if(G(b))for(var je=0;je<b.length;je++)K=b[je],fe=ut+Ke(K,je),ae+=ke(K,Y,J,fe,I);else if(je=T(b),typeof je=="function")for(b=je.call(b),je=0;!(K=b.next()).done;)K=K.value,fe=ut+Ke(K,je++),ae+=ke(K,Y,J,fe,I);else if(fe==="object"){if(typeof b.then=="function")return ke(Ul(b),Y,J,K,I);throw Y=String(b),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ae}function U(b,Y,J){if(b==null)return b;var K=[],I=0;return ke(b,K,"","",function(fe){return Y.call(J,fe,I++)}),K}function k(b){if(b._status===-1){var Y=b._result;Y=Y(),Y.then(function(J){(b._status===0||b._status===-1)&&(b._status=1,b._result=J)},function(J){(b._status===0||b._status===-1)&&(b._status=2,b._result=J)}),b._status===-1&&(b._status=0,b._result=Y)}if(b._status===1)return b._result.default;throw b._result}var te=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)};function be(){}return ne.Children={map:U,forEach:function(b,Y,J){U(b,function(){Y.apply(this,arguments)},J)},count:function(b){var Y=0;return U(b,function(){Y++}),Y},toArray:function(b){return U(b,function(Y){return Y})||[]},only:function(b){if(!Ee(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},ne.Component=Z,ne.Fragment=o,ne.Profiler=m,ne.PureComponent=V,ne.StrictMode=s,ne.Suspense=v,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,ne.__COMPILER_RUNTIME={__proto__:null,c:function(b){return B.H.useMemoCache(b)}},ne.cache=function(b){return function(){return b.apply(null,arguments)}},ne.cloneElement=function(b,Y,J){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var K=w({},b.props),I=b.key,fe=void 0;if(Y!=null)for(ae in Y.ref!==void 0&&(fe=void 0),Y.key!==void 0&&(I=""+Y.key),Y)!F.call(Y,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&Y.ref===void 0||(K[ae]=Y[ae]);var ae=arguments.length-2;if(ae===1)K.children=J;else if(1<ae){for(var ut=Array(ae),je=0;je<ae;je++)ut[je]=arguments[je+2];K.children=ut}return X(b.type,I,void 0,void 0,fe,K)},ne.createContext=function(b){return b={$$typeof:p,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:g,_context:b},b},ne.createElement=function(b,Y,J){var K,I={},fe=null;if(Y!=null)for(K in Y.key!==void 0&&(fe=""+Y.key),Y)F.call(Y,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(I[K]=Y[K]);var ae=arguments.length-2;if(ae===1)I.children=J;else if(1<ae){for(var ut=Array(ae),je=0;je<ae;je++)ut[je]=arguments[je+2];I.children=ut}if(b&&b.defaultProps)for(K in ae=b.defaultProps,ae)I[K]===void 0&&(I[K]=ae[K]);return X(b,fe,void 0,void 0,null,I)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(b){return{$$typeof:R,render:b}},ne.isValidElement=Ee,ne.lazy=function(b){return{$$typeof:j,_payload:{_status:-1,_result:b},_init:k}},ne.memo=function(b,Y){return{$$typeof:h,type:b,compare:Y===void 0?null:Y}},ne.startTransition=function(b){var Y=B.T,J={};B.T=J;try{var K=b(),I=B.S;I!==null&&I(J,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(be,te)}catch(fe){te(fe)}finally{B.T=Y}},ne.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},ne.use=function(b){return B.H.use(b)},ne.useActionState=function(b,Y,J){return B.H.useActionState(b,Y,J)},ne.useCallback=function(b,Y){return B.H.useCallback(b,Y)},ne.useContext=function(b){return B.H.useContext(b)},ne.useDebugValue=function(){},ne.useDeferredValue=function(b,Y){return B.H.useDeferredValue(b,Y)},ne.useEffect=function(b,Y,J){var K=B.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(b,Y)},ne.useId=function(){return B.H.useId()},ne.useImperativeHandle=function(b,Y,J){return B.H.useImperativeHandle(b,Y,J)},ne.useInsertionEffect=function(b,Y){return B.H.useInsertionEffect(b,Y)},ne.useLayoutEffect=function(b,Y){return B.H.useLayoutEffect(b,Y)},ne.useMemo=function(b,Y){return B.H.useMemo(b,Y)},ne.useOptimistic=function(b,Y){return B.H.useOptimistic(b,Y)},ne.useReducer=function(b,Y,J){return B.H.useReducer(b,Y,J)},ne.useRef=function(b){return B.H.useRef(b)},ne.useState=function(b){return B.H.useState(b)},ne.useSyncExternalStore=function(b,Y,J){return B.H.useSyncExternalStore(b,Y,J)},ne.useTransition=function(){return B.H.useTransition()},ne.version="19.1.0",ne}var Wd;function Vr(){return Wd||(Wd=1,Ur.exports=lg()),Ur.exports}var S=Vr();const ag=gm(S);var wr={exports:{}},Yn={},Lr={exports:{}},Hr={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fd;function ng(){return Fd||(Fd=1,function(i){function d(U,k){var te=U.length;U.push(k);e:for(;0<te;){var be=te-1>>>1,b=U[be];if(0<m(b,k))U[be]=k,U[te]=b,te=be;else break e}}function o(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var k=U[0],te=U.pop();if(te!==k){U[0]=te;e:for(var be=0,b=U.length,Y=b>>>1;be<Y;){var J=2*(be+1)-1,K=U[J],I=J+1,fe=U[I];if(0>m(K,te))I<b&&0>m(fe,K)?(U[be]=fe,U[I]=te,be=I):(U[be]=K,U[J]=te,be=J);else if(I<b&&0>m(fe,te))U[be]=fe,U[I]=te,be=I;else break e}}return k}function m(U,k){var te=U.sortIndex-k.sortIndex;return te!==0?te:U.id-k.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;i.unstable_now=function(){return g.now()}}else{var p=Date,R=p.now();i.unstable_now=function(){return p.now()-R}}var v=[],h=[],j=1,C=null,T=3,q=!1,w=!1,Q=!1,Z=!1,z=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function G(U){for(var k=o(h);k!==null;){if(k.callback===null)s(h);else if(k.startTime<=U)s(h),k.sortIndex=k.expirationTime,d(v,k);else break;k=o(h)}}function B(U){if(Q=!1,G(U),!w)if(o(v)!==null)w=!0,F||(F=!0,Ke());else{var k=o(h);k!==null&&ke(B,k.startTime-U)}}var F=!1,X=-1,de=5,Ee=-1;function Fe(){return Z?!0:!(i.unstable_now()-Ee<de)}function gt(){if(Z=!1,F){var U=i.unstable_now();Ee=U;var k=!0;try{e:{w=!1,Q&&(Q=!1,V(X),X=-1),q=!0;var te=T;try{t:{for(G(U),C=o(v);C!==null&&!(C.expirationTime>U&&Fe());){var be=C.callback;if(typeof be=="function"){C.callback=null,T=C.priorityLevel;var b=be(C.expirationTime<=U);if(U=i.unstable_now(),typeof b=="function"){C.callback=b,G(U),k=!0;break t}C===o(v)&&s(v),G(U)}else s(v);C=o(v)}if(C!==null)k=!0;else{var Y=o(h);Y!==null&&ke(B,Y.startTime-U),k=!1}}break e}finally{C=null,T=te,q=!1}k=void 0}}finally{k?Ke():F=!1}}}var Ke;if(typeof O=="function")Ke=function(){O(gt)};else if(typeof MessageChannel<"u"){var _l=new MessageChannel,Ul=_l.port2;_l.port1.onmessage=gt,Ke=function(){Ul.postMessage(null)}}else Ke=function(){z(gt,0)};function ke(U,k){X=z(function(){U(i.unstable_now())},k)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(U){switch(T){case 1:case 2:case 3:var k=3;break;default:k=T}var te=T;T=k;try{return U()}finally{T=te}},i.unstable_requestPaint=function(){Z=!0},i.unstable_runWithPriority=function(U,k){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var te=T;T=U;try{return k()}finally{T=te}},i.unstable_scheduleCallback=function(U,k,te){var be=i.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?be+te:be):te=be,U){case 1:var b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=te+b,U={id:j++,callback:k,priorityLevel:U,startTime:te,expirationTime:b,sortIndex:-1},te>be?(U.sortIndex=te,d(h,U),o(v)===null&&U===o(h)&&(Q?(V(X),X=-1):Q=!0,ke(B,te-be))):(U.sortIndex=b,d(v,U),w||q||(w=!0,F||(F=!0,Ke()))),U},i.unstable_shouldYield=Fe,i.unstable_wrapCallback=function(U){var k=T;return function(){var te=T;T=k;try{return U.apply(this,arguments)}finally{T=te}}}}(Hr)),Hr}var Id;function ug(){return Id||(Id=1,Lr.exports=ng()),Lr.exports}var Br={exports:{}},We={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pd;function ig(){if(Pd)return We;Pd=1;var i=Vr();function d(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)h+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(d(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},m=Symbol.for("react.portal");function g(v,h,j){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:C==null?null:""+C,children:v,containerInfo:h,implementation:j}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return We.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,We.createPortal=function(v,h){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(d(299));return g(v,h,null,j)},We.flushSync=function(v){var h=p.T,j=s.p;try{if(p.T=null,s.p=2,v)return v()}finally{p.T=h,s.p=j,s.d.f()}},We.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(v,h))},We.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},We.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var j=h.as,C=R(j,h.crossOrigin),T=typeof h.integrity=="string"?h.integrity:void 0,q=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;j==="style"?s.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:C,integrity:T,fetchPriority:q}):j==="script"&&s.d.X(v,{crossOrigin:C,integrity:T,fetchPriority:q,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},We.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var j=R(h.as,h.crossOrigin);s.d.M(v,{crossOrigin:j,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(v)},We.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var j=h.as,C=R(j,h.crossOrigin);s.d.L(v,j,{crossOrigin:C,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},We.preloadModule=function(v,h){if(typeof v=="string")if(h){var j=R(h.as,h.crossOrigin);s.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:j,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(v)},We.requestFormReset=function(v){s.d.r(v)},We.unstable_batchedUpdates=function(v,h){return v(h)},We.useFormState=function(v,h,j){return p.H.useFormState(v,h,j)},We.useFormStatus=function(){return p.H.useHostTransitionStatus()},We.version="19.1.0",We}var em;function cg(){if(em)return Br.exports;em=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(d){console.error(d)}}return i(),Br.exports=ig(),Br.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tm;function rg(){if(tm)return Yn;tm=1;var i=ug(),d=Vr(),o=cg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function p(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 R(e){if(g(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return R(n),e;if(u===a)return R(n),t;u=u.sibling}throw Error(s(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,f=n.child;f;){if(f===l){c=!0,l=n,a=u;break}if(f===a){c=!0,a=n,l=u;break}f=f.sibling}if(!c){for(f=u.child;f;){if(f===l){c=!0,l=u,a=n;break}if(f===a){c=!0,a=u,l=n;break}f=f.sibling}if(!c)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,C=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),V=Symbol.for("react.consumer"),O=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),Fe=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=gt&&e[gt]||e["@@iterator"],typeof e=="function"?e:null)}var _l=Symbol.for("react.client.reference");function Ul(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_l?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case Z:return"Profiler";case Q:return"StrictMode";case B:return"Suspense";case F:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case O:return(e.displayName||"Context")+".Provider";case V:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Ul(e.type)||"Memo";case de:t=e._payload,e=e._init;try{return Ul(e(t))}catch{}}return null}var ke=Array.isArray,U=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},be=[],b=-1;function Y(e){return{current:e}}function J(e){0>b||(e.current=be[b],be[b]=null,b--)}function K(e,t){b++,be[b]=e.current,e.current=t}var I=Y(null),fe=Y(null),ae=Y(null),ut=Y(null);function je(e,t){switch(K(ae,t),K(fe,e),K(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sd(t),e=Ed(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(I),K(I,e)}function il(){J(I),J(fe),J(ae)}function pi(e){e.memoizedState!==null&&K(ut,e);var t=I.current,l=Ed(t,e.type);t!==l&&(K(fe,e),K(I,l))}function Jn(e){fe.current===e&&(J(I),J(fe)),ut.current===e&&(J(ut),Un._currentValue=te)}var bi=Object.prototype.hasOwnProperty,xi=i.unstable_scheduleCallback,Si=i.unstable_cancelCallback,Cm=i.unstable_shouldYield,_m=i.unstable_requestPaint,zt=i.unstable_now,Um=i.unstable_getCurrentPriorityLevel,Pr=i.unstable_ImmediatePriority,es=i.unstable_UserBlockingPriority,$n=i.unstable_NormalPriority,wm=i.unstable_LowPriority,ts=i.unstable_IdlePriority,Lm=i.log,Hm=i.unstable_setDisableYieldValue,Ga=null,it=null;function cl(e){if(typeof Lm=="function"&&Hm(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Ga,e)}catch{}}var ct=Math.clz32?Math.clz32:Ym,Bm=Math.log,qm=Math.LN2;function Ym(e){return e>>>=0,e===0?32:31-(Bm(e)/qm|0)|0}var Wn=256,Fn=4194304;function wl(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 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&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function In(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=wl(a):(c&=f,c!==0?n=wl(c):l||(l=f&~e,l!==0&&(n=wl(l))))):(f=a&~u,f!==0?n=wl(f):c!==0?n=wl(c):l||(l=a&~e,l!==0&&(n=wl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Xa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Gm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ls(){var e=Wn;return Wn<<=1,(Wn&4194048)===0&&(Wn=256),e}function as(){var e=Fn;return Fn<<=1,(Fn&62914560)===0&&(Fn=4194304),e}function Ei(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xm(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,y=e.expirationTimes,A=e.hiddenUpdates;for(l=c&~l;0<l;){var _=31-ct(l),H=1<<_;f[_]=0,y[_]=-1;var M=A[_];if(M!==null)for(A[_]=null,_=0;_<M.length;_++){var D=M[_];D!==null&&(D.lane&=-536870913)}l&=~H}a!==0&&ns(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function ns(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function us(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function ji(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ni(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function is(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:Gd(e.type))}function Qm(e,t){var l=k.p;try{return k.p=e,t()}finally{k.p=l}}var rl=Math.random().toString(36).slice(2),Je="__reactFiber$"+rl,Pe="__reactProps$"+rl,Pl="__reactContainer$"+rl,Ti="__reactEvents$"+rl,Zm="__reactListeners$"+rl,Vm="__reactHandles$"+rl,cs="__reactResources$"+rl,Za="__reactMarker$"+rl;function Ai(e){delete e[Je],delete e[Pe],delete e[Ti],delete e[Zm],delete e[Vm]}function ea(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pl]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Ad(e);e!==null;){if(l=e[Je])return l;e=Ad(e)}return t}e=l,l=e.parentNode}return null}function ta(e){if(e=e[Je]||e[Pl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Va(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function la(e){var t=e[cs];return t||(t=e[cs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Be(e){e[Za]=!0}var rs=new Set,ss={};function Ll(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(ss[e]=t,e=0;e<t.length;e++)rs.add(t[e])}var Km=RegExp("^[: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]*$"),fs={},os={};function km(e){return bi.call(os,e)?!0:bi.call(fs,e)?!1:Km.test(e)?os[e]=!0:(fs[e]=!0,!1)}function Pn(e,t,l){if(km(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function eu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Gt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var Ri,ds;function na(e){if(Ri===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ri=t&&t[1]||"",ds=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ri+e+ds}var Mi=!1;function Di(e,t){if(!e||Mi)return"";Mi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(D){var M=D}Reflect.construct(e,[],H)}else{try{H.call()}catch(D){M=D}e.call(H.prototype)}}else{try{throw Error()}catch(D){M=D}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(D){if(D&&M&&typeof D.stack=="string")return[D.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],f=u[1];if(c&&f){var y=c.split(`
`),A=f.split(`
`);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===A.length)for(a=y.length-1,n=A.length-1;1<=a&&0<=n&&y[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==A[n]){var _=`
`+y[a].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=a&&0<=n);break}}}finally{Mi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?na(l):""}function Jm(e){switch(e.tag){case 26:case 27:case 5:return na(e.type);case 16:return na("Lazy");case 13:return na("Suspense");case 19:return na("SuspenseList");case 0:case 15:return Di(e.type,!1);case 11:return Di(e.type.render,!1);case 1:return Di(e.type,!0);case 31:return na("Activity");default:return""}}function ms(e){try{var t="";do t+=Jm(e),e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $m(e){var t=hs(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){a=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tu(e){e._valueTracker||(e._valueTracker=$m(e))}function gs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hs(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function lu(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}}var Wm=/[\n"\\]/g;function vt(e){return e.replace(Wm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oi(e,t,l,a,n,u,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?zi(e,c,yt(t)):l!=null?zi(e,c,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+yt(f):e.removeAttribute("name")}function ys(e,t,l,a,n,u,c,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null))return;l=l!=null?""+yt(l):"",t=t!=null?""+yt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c)}function zi(e,t,l){t==="number"&&lu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+yt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function vs(e,t,l){if(t!=null&&(t=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(l):""}function ps(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(ke(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=yt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Fm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bs(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Fm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function xs(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&bs(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&bs(e,u,t[u])}function Ci(e){if(e.indexOf("-")===-1)return!1;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 Im=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function au(e){return Pm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var _i=null;function Ui(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,ra=null;function Ss(e){var t=ta(e);if(t&&(e=t.stateNode)){var l=e[Pe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Pe]||null;if(!n)throw Error(s(90));Oi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&gs(a)}break e;case"textarea":vs(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ua(e,!!l.multiple,t,!1)}}}var wi=!1;function Es(e,t,l){if(wi)return e(t,l);wi=!0;try{var a=e(t);return a}finally{if(wi=!1,(ca!==null||ra!==null)&&(Xu(),ca&&(t=ca,e=ra,ra=ca=null,Ss(t),e)))for(t=0;t<e.length;t++)Ss(e[t])}}function Ka(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Pe]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Li=!1;if(Xt)try{var ka={};Object.defineProperty(ka,"passive",{get:function(){Li=!0}}),window.addEventListener("test",ka,ka),window.removeEventListener("test",ka,ka)}catch{Li=!1}var sl=null,Hi=null,nu=null;function js(){if(nu)return nu;var e,t=Hi,l=t.length,a,n="value"in sl?sl.value:sl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return nu=n.slice(e,1<a?1-a:void 0)}function uu(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 iu(){return!0}function Ns(){return!1}function et(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?iu:Ns,this.isPropagationStopped=Ns,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=iu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=iu)},persist:function(){},isPersistent:iu}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cu=et(Hl),Ja=j({},Hl,{view:0,detail:0}),eh=et(Ja),Bi,qi,$a,ru=j({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gi,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!==$a&&($a&&e.type==="mousemove"?(Bi=e.screenX-$a.screenX,qi=e.screenY-$a.screenY):qi=Bi=0,$a=e),Bi)},movementY:function(e){return"movementY"in e?e.movementY:qi}}),Ts=et(ru),th=j({},ru,{dataTransfer:0}),lh=et(th),ah=j({},Ja,{relatedTarget:0}),Yi=et(ah),nh=j({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),uh=et(nh),ih=j({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ch=et(ih),rh=j({},Hl,{data:0}),As=et(rh),sh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fh={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"},oh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oh[e])?!!t[e]:!1}function Gi(){return dh}var mh=j({},Ja,{key:function(e){if(e.key){var t=sh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gi,charCode:function(e){return e.type==="keypress"?uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hh=et(mh),gh=j({},ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rs=et(gh),yh=j({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gi}),vh=et(yh),ph=j({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),bh=et(ph),xh=j({},ru,{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}),Sh=et(xh),Eh=j({},Hl,{newState:0,oldState:0}),jh=et(Eh),Nh=[9,13,27,32],Xi=Xt&&"CompositionEvent"in window,Wa=null;Xt&&"documentMode"in document&&(Wa=document.documentMode);var Th=Xt&&"TextEvent"in window&&!Wa,Ms=Xt&&(!Xi||Wa&&8<Wa&&11>=Wa),Ds=" ",Os=!1;function zs(e,t){switch(e){case"keyup":return Nh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function Ah(e,t){switch(e){case"compositionend":return Cs(t);case"keypress":return t.which!==32?null:(Os=!0,Ds);case"textInput":return e=t.data,e===Ds&&Os?null:e;default:return null}}function Rh(e,t){if(sa)return e==="compositionend"||!Xi&&zs(e,t)?(e=js(),nu=Hi=sl=null,sa=!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 Ms&&t.locale!=="ko"?null:t.data;default:return null}}var Mh={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 _s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mh[e.type]:t==="textarea"}function Us(e,t,l,a){ca?ra?ra.push(a):ra=[a]:ca=a,t=Ju(t,"onChange"),0<t.length&&(l=new cu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Fa=null,Ia=null;function Dh(e){yd(e,0)}function su(e){var t=Va(e);if(gs(t))return e}function ws(e,t){if(e==="change")return t}var Ls=!1;if(Xt){var Qi;if(Xt){var Zi="oninput"in document;if(!Zi){var Hs=document.createElement("div");Hs.setAttribute("oninput","return;"),Zi=typeof Hs.oninput=="function"}Qi=Zi}else Qi=!1;Ls=Qi&&(!document.documentMode||9<document.documentMode)}function Bs(){Fa&&(Fa.detachEvent("onpropertychange",qs),Ia=Fa=null)}function qs(e){if(e.propertyName==="value"&&su(Ia)){var t=[];Us(t,Ia,e,Ui(e)),Es(Dh,t)}}function Oh(e,t,l){e==="focusin"?(Bs(),Fa=t,Ia=l,Fa.attachEvent("onpropertychange",qs)):e==="focusout"&&Bs()}function zh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return su(Ia)}function Ch(e,t){if(e==="click")return su(t)}function _h(e,t){if(e==="input"||e==="change")return su(t)}function Uh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Uh;function Pa(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!bi.call(t,n)||!rt(e[n],t[n]))return!1}return!0}function Ys(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gs(e,t){var l=Ys(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ys(l)}}function Xs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qs(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=lu(e.document)}return t}function Vi(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")}var wh=Xt&&"documentMode"in document&&11>=document.documentMode,fa=null,Ki=null,en=null,ki=!1;function Zs(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ki||fa==null||fa!==lu(a)||(a=fa,"selectionStart"in a&&Vi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),en&&Pa(en,a)||(en=a,a=Ju(Ki,"onSelect"),0<a.length&&(t=new cu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function Bl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var oa={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},Ji={},Vs={};Xt&&(Vs=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function ql(e){if(Ji[e])return Ji[e];if(!oa[e])return e;var t=oa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Vs)return Ji[e]=t[l];return e}var Ks=ql("animationend"),ks=ql("animationiteration"),Js=ql("animationstart"),Lh=ql("transitionrun"),Hh=ql("transitionstart"),Bh=ql("transitioncancel"),$s=ql("transitionend"),Ws=new Map,$i="abort auxClick beforeToggle 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(" ");$i.push("scrollEnd");function Rt(e,t){Ws.set(e,t),Ll(t,[e])}var Fs=new WeakMap;function pt(e,t){if(typeof e=="object"&&e!==null){var l=Fs.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ms(t)},Fs.set(e,t),t)}return{value:e,source:t,stack:ms(t)}}var bt=[],da=0,Wi=0;function fu(){for(var e=da,t=Wi=da=0;t<e;){var l=bt[t];bt[t++]=null;var a=bt[t];bt[t++]=null;var n=bt[t];bt[t++]=null;var u=bt[t];if(bt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Is(l,n,u)}}function ou(e,t,l,a){bt[da++]=e,bt[da++]=t,bt[da++]=l,bt[da++]=a,Wi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Fi(e,t,l,a){return ou(e,t,l,a),du(e)}function ma(e,t){return ou(e,null,null,t),du(e)}function Is(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ct(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function du(e){if(50<An)throw An=0,ar=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ha={};function qh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,l,a){return new qh(e,t,l,a)}function Ii(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qt(e,t){var l=e.alternate;return l===null?(l=st(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ps(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Ii(e)&&(c=1);else if(typeof e=="string")c=G0(e,l,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=st(31,l,t,n),e.elementType=Ee,e.lanes=u,e;case w:return Yl(l.children,n,u,t);case Q:c=8,n|=24;break;case Z:return e=st(12,l,t,n|2),e.elementType=Z,e.lanes=u,e;case B:return e=st(13,l,t,n),e.elementType=B,e.lanes=u,e;case F:return e=st(19,l,t,n),e.elementType=F,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:case O:c=10;break e;case V:c=9;break e;case G:c=11;break e;case X:c=14;break e;case de:c=16,a=null;break e}c=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=st(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Yl(e,t,l,a){return e=st(7,e,a,t),e.lanes=l,e}function Pi(e,t,l){return e=st(6,e,null,t),e.lanes=l,e}function ec(e,t,l){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ga=[],ya=0,hu=null,gu=0,xt=[],St=0,Gl=null,Zt=1,Vt="";function Xl(e,t){ga[ya++]=gu,ga[ya++]=hu,hu=e,gu=t}function ef(e,t,l){xt[St++]=Zt,xt[St++]=Vt,xt[St++]=Gl,Gl=e;var a=Zt;e=Vt;var n=32-ct(a)-1;a&=~(1<<n),l+=1;var u=32-ct(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Zt=1<<32-ct(t)+n|l<<n|a,Vt=u+e}else Zt=1<<u|l<<n|a,Vt=e}function tc(e){e.return!==null&&(Xl(e,1),ef(e,1,0))}function lc(e){for(;e===hu;)hu=ga[--ya],ga[ya]=null,gu=ga[--ya],ga[ya]=null;for(;e===Gl;)Gl=xt[--St],xt[St]=null,Vt=xt[--St],xt[St]=null,Zt=xt[--St],xt[St]=null}var Ie=null,Re=null,me=!1,Ql=null,Ct=!1,ac=Error(s(519));function Zl(e){var t=Error(s(418,""));throw an(pt(t,e)),ac}function tf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[Pe]=a,l){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(l=0;l<Mn.length;l++)re(Mn[l],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),ys(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),tu(t);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),ps(t,a.value,a.defaultValue,a.children),tu(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||xd(t.textContent,l)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=$u),t=!0):t=!1,t||Zl(e)}function lf(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 13:Ct=!1;return;case 27:case 3:Ct=!0;return;default:Ie=Ie.return}}function tn(e){if(e!==Ie)return!1;if(!me)return lf(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||br(e.type,e.memoizedProps)),l=!l),l&&Re&&Zl(e),lf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Re=Dt(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Re=null}}else t===27?(t=Re,Tl(e.type)?(e=jr,jr=null,Re=e):Re=t):Re=Ie?Dt(e.stateNode.nextSibling):null;return!0}function ln(){Re=Ie=null,me=!1}function af(){var e=Ql;return e!==null&&(at===null?at=e:at.push.apply(at,e),Ql=null),e}function an(e){Ql===null?Ql=[e]:Ql.push(e)}var nc=Y(null),Vl=null,Kt=null;function fl(e,t,l){K(nc,t._currentValue),t._currentValue=l}function kt(e){e._currentValue=nc.current,J(nc)}function uc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ic(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var f=u;u=n;for(var y=0;y<t.length;y++)if(f.context===t[y]){u.lanes|=l,f=u.alternate,f!==null&&(f.lanes|=l),uc(u.return,l,e),a||(c=null);break e}u=f.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(s(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),uc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function nn(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(s(387));if(c=c.memoizedProps,c!==null){var f=n.type;rt(n.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(n===ut.current){if(c=n.alternate,c===null)throw Error(s(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Un):e=[Un])}n=n.return}e!==null&&ic(t,e,l,a),t.flags|=262144}function yu(e){for(e=e.firstContext;e!==null;){if(!rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Vl=e,Kt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return nf(Vl,e)}function vu(e,t){return Vl===null&&Kl(e),nf(e,t)}function nf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Kt===null){if(e===null)throw Error(s(308));Kt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Kt=Kt.next=t;return l}var Yh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Gh=i.unstable_scheduleCallback,Xh=i.unstable_NormalPriority,we={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new Yh,data:new Map,refCount:0}}function un(e){e.refCount--,e.refCount===0&&Gh(Xh,function(){e.controller.abort()})}var cn=null,rc=0,va=0,pa=null;function Qh(e,t){if(cn===null){var l=cn=[];rc=0,va=fr(),pa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return rc++,t.then(uf,uf),t}function uf(){if(--rc===0&&cn!==null){pa!==null&&(pa.status="fulfilled");var e=cn;cn=null,va=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Zh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var cf=U.S;U.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qh(e,t),cf!==null&&cf(e,t)};var kl=Y(null);function sc(){var e=kl.current;return e!==null?e:Se.pooledCache}function pu(e,t){t===null?K(kl,kl.current):K(kl,t.pool)}function rf(){var e=sc();return e===null?null:{parent:we._currentValue,pool:e}}var rn=Error(s(460)),sf=Error(s(474)),bu=Error(s(542)),fc={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xu(){}function of(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(xu,xu),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e;default:if(typeof t.status=="string")t.then(xu,xu);else{if(e=Se,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e}throw sn=t,rn}}var sn=null;function df(){if(sn===null)throw Error(s(459));var e=sn;return sn=null,e}function mf(e){if(e===rn||e===bu)throw Error(s(483))}var ol=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function dl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ml(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=du(e),Is(e,null,l),t}return ou(e,a,t,l),du(e)}function fn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,us(e,l)}}function mc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var hc=!1;function on(){if(hc){var e=pa;if(e!==null)throw e}}function dn(e,t,l,a){hc=!1;var n=e.updateQueue;ol=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var y=f,A=y.next;y.next=null,c===null?u=A:c.next=A,c=y;var _=e.alternate;_!==null&&(_=_.updateQueue,f=_.lastBaseUpdate,f!==c&&(f===null?_.firstBaseUpdate=A:f.next=A,_.lastBaseUpdate=y))}if(u!==null){var H=n.baseState;c=0,_=A=y=null,f=u;do{var M=f.lane&-536870913,D=M!==f.lane;if(D?(se&M)===M:(a&M)===M){M!==0&&M===va&&(hc=!0),_!==null&&(_=_.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var le=e,P=f;M=t;var pe=l;switch(P.tag){case 1:if(le=P.payload,typeof le=="function"){H=le.call(pe,H,M);break e}H=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=P.payload,M=typeof le=="function"?le.call(pe,H,M):le,M==null)break e;H=j({},H,M);break e;case 2:ol=!0}}M=f.callback,M!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[M]:D.push(M))}else D={lane:M,tag:f.tag,payload:f.payload,callback:f.callback,next:null},_===null?(A=_=D,y=H):_=_.next=D,c|=M;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;D=f,f=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);_===null&&(y=H),n.baseState=y,n.firstBaseUpdate=A,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),Sl|=c,e.lanes=c,e.memoizedState=H}}function hf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function gf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)hf(l[e],t)}var ba=Y(null),Su=Y(0);function yf(e,t){e=el,K(Su,e),K(ba,t),el=e|t.baseLanes}function gc(){K(Su,el),K(ba,ba.current)}function yc(){el=Su.current,J(ba),J(Su)}var hl=0,ue=null,ye=null,Ce=null,Eu=!1,xa=!1,Jl=!1,ju=0,mn=0,Sa=null,Vh=0;function Oe(){throw Error(s(321))}function vc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!rt(e[l],t[l]))return!1;return!0}function pc(e,t,l,a,n,u){return hl=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Pf:eo,Jl=!1,u=l(a,n),Jl=!1,xa&&(u=pf(t,l,a,n)),vf(e),u}function vf(e){U.H=Du;var t=ye!==null&&ye.next!==null;if(hl=0,Ce=ye=ue=null,Eu=!1,mn=0,Sa=null,t)throw Error(s(300));e===null||qe||(e=e.dependencies,e!==null&&yu(e)&&(qe=!0))}function pf(e,t,l,a){ue=e;var n=0;do{if(xa&&(Sa=null),mn=0,xa=!1,25<=n)throw Error(s(301));if(n+=1,Ce=ye=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Ih,u=t(l,a)}while(xa);return u}function Kh(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?hn(t):t,e=e.useState()[0],(ye!==null?ye.memoizedState:null)!==e&&(ue.flags|=1024),t}function bc(){var e=ju!==0;return ju=0,e}function xc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Sc(e){if(Eu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Eu=!1}hl=0,Ce=ye=ue=null,xa=!1,mn=ju=0,Sa=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ce===null?ue.memoizedState=Ce=e:Ce=Ce.next=e,Ce}function _e(){if(ye===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=Ce===null?ue.memoizedState:Ce.next;if(t!==null)Ce=t,ye=e;else{if(e===null)throw ue.alternate===null?Error(s(467)):Error(s(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Ce===null?ue.memoizedState=Ce=e:Ce=Ce.next=e}return Ce}function Ec(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hn(e){var t=mn;return mn+=1,Sa===null&&(Sa=[]),e=of(Sa,e,t),t=ue,(Ce===null?t.memoizedState:Ce.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Pf:eo),e}function Nu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return hn(e);if(e.$$typeof===O)return $e(e)}throw Error(s(438,String(e)))}function jc(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ec(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Fe;return t.index++,l}function Jt(e,t){return typeof t=="function"?t(e):t}function Tu(e){var t=_e();return Nc(t,ye,e)}function Nc(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var f=c=null,y=null,A=t,_=!1;do{var H=A.lane&-536870913;if(H!==A.lane?(se&H)===H:(hl&H)===H){var M=A.revertLane;if(M===0)y!==null&&(y=y.next={lane:0,revertLane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),H===va&&(_=!0);else if((hl&M)===M){A=A.next,M===va&&(_=!0);continue}else H={lane:0,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=H,c=u):y=y.next=H,ue.lanes|=M,Sl|=M;H=A.action,Jl&&l(u,H),u=A.hasEagerState?A.eagerState:l(u,H)}else M={lane:H,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=M,c=u):y=y.next=M,ue.lanes|=H,Sl|=H;A=A.next}while(A!==null&&A!==t);if(y===null?c=u:y.next=f,!rt(u,e.memoizedState)&&(qe=!0,_&&(l=pa,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=y,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tc(e){var t=_e(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);rt(u,t.memoizedState)||(qe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function bf(e,t,l){var a=ue,n=_e(),u=me;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=t();var c=!rt((ye||n).memoizedState,l);c&&(n.memoizedState=l,qe=!0),n=n.queue;var f=Ef.bind(null,a,n,e);if(gn(2048,8,f,[e]),n.getSnapshot!==t||c||Ce!==null&&Ce.memoizedState.tag&1){if(a.flags|=2048,Ea(9,Au(),Sf.bind(null,a,n,l,t),null),Se===null)throw Error(s(349));u||(hl&124)!==0||xf(a,t,l)}return l}function xf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=Ec(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Sf(e,t,l,a){t.value=l,t.getSnapshot=a,jf(t)&&Nf(e)}function Ef(e,t,l){return l(function(){jf(t)&&Nf(e)})}function jf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!rt(e,l)}catch{return!0}}function Nf(e){var t=ma(e,2);t!==null&&ht(t,e,2)}function Ac(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),Jl){cl(!0);try{l()}finally{cl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},t}function Tf(e,t,l,a){return e.baseState=l,Nc(e,ye,typeof a=="function"?a:Jt)}function kh(e,t,l,a,n){if(Mu(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};U.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Af(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Af(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=U.T,c={};U.T=c;try{var f=l(n,a),y=U.S;y!==null&&y(c,f),Rf(e,t,f)}catch(A){Rc(e,t,A)}finally{U.T=u}}else try{u=l(n,a),Rf(e,t,u)}catch(A){Rc(e,t,A)}}function Rf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Mf(e,t,a)},function(a){return Rc(e,t,a)}):Mf(e,t,l)}function Mf(e,t,l){t.status="fulfilled",t.value=l,Df(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Af(e,l)))}function Rc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Df(t),t=t.next;while(t!==a)}e.action=null}function Df(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Of(e,t){return t}function zf(e,t){if(me){var l=Se.formState;if(l!==null){e:{var a=ue;if(me){if(Re){t:{for(var n=Re,u=Ct;n.nodeType!==8;){if(!u){n=null;break t}if(n=Dt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Re=Dt(n.nextSibling),a=n.data==="F!";break e}}Zl(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Of,lastRenderedState:t},l.queue=a,l=Wf.bind(null,ue,a),a.dispatch=l,a=Ac(!1),u=Cc.bind(null,ue,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=kh.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Cf(e){var t=_e();return _f(t,ye,e)}function _f(e,t,l){if(t=Nc(e,t,Of)[0],e=Tu(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=hn(t)}catch(c){throw c===rn?bu:c}else a=t;t=_e();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Ea(9,Au(),Jh.bind(null,n,l),null)),[a,u,e]}function Jh(e,t){e.action=t}function Uf(e){var t=_e(),l=ye;if(l!==null)return _f(t,l,e);_e(),t=t.memoizedState,l=_e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ea(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=Ec(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Au(){return{destroy:void 0,resource:void 0}}function wf(){return _e().memoizedState}function Ru(e,t,l,a){var n=tt();a=a===void 0?null:a,ue.flags|=e,n.memoizedState=Ea(1|t,Au(),l,a)}function gn(e,t,l,a){var n=_e();a=a===void 0?null:a;var u=n.memoizedState.inst;ye!==null&&a!==null&&vc(a,ye.memoizedState.deps)?n.memoizedState=Ea(t,u,l,a):(ue.flags|=e,n.memoizedState=Ea(1|t,u,l,a))}function Lf(e,t){Ru(8390656,8,e,t)}function Hf(e,t){gn(2048,8,e,t)}function Bf(e,t){return gn(4,2,e,t)}function qf(e,t){return gn(4,4,e,t)}function Yf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gf(e,t,l){l=l!=null?l.concat([e]):null,gn(4,4,Yf.bind(null,t,e),l)}function Mc(){}function Xf(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&vc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Qf(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&vc(t,a[1]))return a[0];if(a=e(),Jl){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[a,t],a}function Dc(e,t,l){return l===void 0||(hl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=ko(),ue.lanes|=e,Sl|=e,l)}function Zf(e,t,l,a){return rt(l,t)?l:ba.current!==null?(e=Dc(e,l,a),rt(e,t)||(qe=!0),e):(hl&42)===0?(qe=!0,e.memoizedState=l):(e=ko(),ue.lanes|=e,Sl|=e,t)}function Vf(e,t,l,a,n){var u=k.p;k.p=u!==0&&8>u?u:8;var c=U.T,f={};U.T=f,Cc(e,!1,t,l);try{var y=n(),A=U.S;if(A!==null&&A(f,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var _=Zh(y,a);yn(e,t,_,mt(e))}else yn(e,t,a,mt(e))}catch(H){yn(e,t,{then:function(){},status:"rejected",reason:H},mt())}finally{k.p=u,U.T=c}}function $h(){}function Oc(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=Kf(e).queue;Vf(e,n,t,te,l===null?$h:function(){return kf(e),l(a)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kf(e){var t=Kf(e).next.queue;yn(e,t,{},mt())}function zc(){return $e(Un)}function Jf(){return _e().memoizedState}function $f(){return _e().memoizedState}function Wh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=dl(l);var a=ml(t,e,l);a!==null&&(ht(a,t,l),fn(a,t,l)),t={cache:cc()},e.payload=t;return}t=t.return}}function Fh(e,t,l){var a=mt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Mu(e)?Ff(t,l):(l=Fi(e,t,l,a),l!==null&&(ht(l,e,a),If(l,t,a)))}function Wf(e,t,l){var a=mt();yn(e,t,l,a)}function yn(e,t,l,a){var n={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mu(e))Ff(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,f=u(c,l);if(n.hasEagerState=!0,n.eagerState=f,rt(f,c))return ou(e,t,n,0),Se===null&&fu(),!1}catch{}finally{}if(l=Fi(e,t,n,a),l!==null)return ht(l,e,a),If(l,t,a),!0}return!1}function Cc(e,t,l,a){if(a={lane:2,revertLane:fr(),action:a,hasEagerState:!1,eagerState:null,next:null},Mu(e)){if(t)throw Error(s(479))}else t=Fi(e,l,a,2),t!==null&&ht(t,e,2)}function Mu(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Ff(e,t){xa=Eu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function If(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,us(e,l)}}var Du={readContext:$e,use:Nu,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useLayoutEffect:Oe,useInsertionEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useSyncExternalStore:Oe,useId:Oe,useHostTransitionStatus:Oe,useFormState:Oe,useActionState:Oe,useOptimistic:Oe,useMemoCache:Oe,useCacheRefresh:Oe},Pf={readContext:$e,use:Nu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:Lf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ru(4194308,4,Yf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ru(4194308,4,e,t)},useInsertionEffect:function(e,t){Ru(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if(Jl){cl(!0);try{e()}finally{cl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var n=l(t);if(Jl){cl(!0);try{l(t)}finally{cl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Fh.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=Wf.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=tt();return Dc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=Vf.bind(null,ue,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=tt();if(me){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Se===null)throw Error(s(349));(se&124)!==0||xf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Lf(Ef.bind(null,a,u,e),[e]),a.flags|=2048,Ea(9,Au(),Sf.bind(null,a,u,l,t),null),l},useId:function(){var e=tt(),t=Se.identifierPrefix;if(me){var l=Vt,a=Zt;l=(a&~(1<<32-ct(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=ju++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Vh++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:zc,useFormState:zf,useActionState:zf,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Cc.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:jc,useCacheRefresh:function(){return tt().memoizedState=Wh.bind(null,ue)}},eo={readContext:$e,use:Nu,useCallback:Xf,useContext:$e,useEffect:Hf,useImperativeHandle:Gf,useInsertionEffect:Bf,useLayoutEffect:qf,useMemo:Qf,useReducer:Tu,useRef:wf,useState:function(){return Tu(Jt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=_e();return Zf(l,ye.memoizedState,e,t)},useTransition:function(){var e=Tu(Jt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:hn(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:zc,useFormState:Cf,useActionState:Cf,useOptimistic:function(e,t){var l=_e();return Tf(l,ye,e,t)},useMemoCache:jc,useCacheRefresh:$f},Ih={readContext:$e,use:Nu,useCallback:Xf,useContext:$e,useEffect:Hf,useImperativeHandle:Gf,useInsertionEffect:Bf,useLayoutEffect:qf,useMemo:Qf,useReducer:Tc,useRef:wf,useState:function(){return Tc(Jt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=_e();return ye===null?Dc(l,e,t):Zf(l,ye.memoizedState,e,t)},useTransition:function(){var e=Tc(Jt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:hn(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:zc,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var l=_e();return ye!==null?Tf(l,ye,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:jc,useCacheRefresh:$f},ja=null,vn=0;function Ou(e){var t=vn;return vn+=1,ja===null&&(ja=[]),of(ja,e,t)}function pn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function zu(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function to(e){var t=e._init;return t(e._payload)}function lo(e){function t(E,x){if(e){var N=E.deletions;N===null?(E.deletions=[x],E.flags|=16):N.push(x)}}function l(E,x){if(!e)return null;for(;x!==null;)t(E,x),x=x.sibling;return null}function a(E){for(var x=new Map;E!==null;)E.key!==null?x.set(E.key,E):x.set(E.index,E),E=E.sibling;return x}function n(E,x){return E=Qt(E,x),E.index=0,E.sibling=null,E}function u(E,x,N){return E.index=N,e?(N=E.alternate,N!==null?(N=N.index,N<x?(E.flags|=67108866,x):N):(E.flags|=67108866,x)):(E.flags|=1048576,x)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function f(E,x,N,L){return x===null||x.tag!==6?(x=Pi(N,E.mode,L),x.return=E,x):(x=n(x,N),x.return=E,x)}function y(E,x,N,L){var $=N.type;return $===w?_(E,x,N.props.children,L,N.key):x!==null&&(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===de&&to($)===x.type)?(x=n(x,N.props),pn(x,N),x.return=E,x):(x=mu(N.type,N.key,N.props,null,E.mode,L),pn(x,N),x.return=E,x)}function A(E,x,N,L){return x===null||x.tag!==4||x.stateNode.containerInfo!==N.containerInfo||x.stateNode.implementation!==N.implementation?(x=ec(N,E.mode,L),x.return=E,x):(x=n(x,N.children||[]),x.return=E,x)}function _(E,x,N,L,$){return x===null||x.tag!==7?(x=Yl(N,E.mode,L,$),x.return=E,x):(x=n(x,N),x.return=E,x)}function H(E,x,N){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Pi(""+x,E.mode,N),x.return=E,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case T:return N=mu(x.type,x.key,x.props,null,E.mode,N),pn(N,x),N.return=E,N;case q:return x=ec(x,E.mode,N),x.return=E,x;case de:var L=x._init;return x=L(x._payload),H(E,x,N)}if(ke(x)||Ke(x))return x=Yl(x,E.mode,N,null),x.return=E,x;if(typeof x.then=="function")return H(E,Ou(x),N);if(x.$$typeof===O)return H(E,vu(E,x),N);zu(E,x)}return null}function M(E,x,N,L){var $=x!==null?x.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return $!==null?null:f(E,x,""+N,L);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case T:return N.key===$?y(E,x,N,L):null;case q:return N.key===$?A(E,x,N,L):null;case de:return $=N._init,N=$(N._payload),M(E,x,N,L)}if(ke(N)||Ke(N))return $!==null?null:_(E,x,N,L,null);if(typeof N.then=="function")return M(E,x,Ou(N),L);if(N.$$typeof===O)return M(E,x,vu(E,N),L);zu(E,N)}return null}function D(E,x,N,L,$){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return E=E.get(N)||null,f(x,E,""+L,$);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return E=E.get(L.key===null?N:L.key)||null,y(x,E,L,$);case q:return E=E.get(L.key===null?N:L.key)||null,A(x,E,L,$);case de:var ie=L._init;return L=ie(L._payload),D(E,x,N,L,$)}if(ke(L)||Ke(L))return E=E.get(N)||null,_(x,E,L,$,null);if(typeof L.then=="function")return D(E,x,N,Ou(L),$);if(L.$$typeof===O)return D(E,x,N,vu(x,L),$);zu(x,L)}return null}function le(E,x,N,L){for(var $=null,ie=null,W=x,ee=x=0,Ge=null;W!==null&&ee<N.length;ee++){W.index>ee?(Ge=W,W=null):Ge=W.sibling;var oe=M(E,W,N[ee],L);if(oe===null){W===null&&(W=Ge);break}e&&W&&oe.alternate===null&&t(E,W),x=u(oe,x,ee),ie===null?$=oe:ie.sibling=oe,ie=oe,W=Ge}if(ee===N.length)return l(E,W),me&&Xl(E,ee),$;if(W===null){for(;ee<N.length;ee++)W=H(E,N[ee],L),W!==null&&(x=u(W,x,ee),ie===null?$=W:ie.sibling=W,ie=W);return me&&Xl(E,ee),$}for(W=a(W);ee<N.length;ee++)Ge=D(W,E,ee,N[ee],L),Ge!==null&&(e&&Ge.alternate!==null&&W.delete(Ge.key===null?ee:Ge.key),x=u(Ge,x,ee),ie===null?$=Ge:ie.sibling=Ge,ie=Ge);return e&&W.forEach(function(Ol){return t(E,Ol)}),me&&Xl(E,ee),$}function P(E,x,N,L){if(N==null)throw Error(s(151));for(var $=null,ie=null,W=x,ee=x=0,Ge=null,oe=N.next();W!==null&&!oe.done;ee++,oe=N.next()){W.index>ee?(Ge=W,W=null):Ge=W.sibling;var Ol=M(E,W,oe.value,L);if(Ol===null){W===null&&(W=Ge);break}e&&W&&Ol.alternate===null&&t(E,W),x=u(Ol,x,ee),ie===null?$=Ol:ie.sibling=Ol,ie=Ol,W=Ge}if(oe.done)return l(E,W),me&&Xl(E,ee),$;if(W===null){for(;!oe.done;ee++,oe=N.next())oe=H(E,oe.value,L),oe!==null&&(x=u(oe,x,ee),ie===null?$=oe:ie.sibling=oe,ie=oe);return me&&Xl(E,ee),$}for(W=a(W);!oe.done;ee++,oe=N.next())oe=D(W,E,ee,oe.value,L),oe!==null&&(e&&oe.alternate!==null&&W.delete(oe.key===null?ee:oe.key),x=u(oe,x,ee),ie===null?$=oe:ie.sibling=oe,ie=oe);return e&&W.forEach(function(P0){return t(E,P0)}),me&&Xl(E,ee),$}function pe(E,x,N,L){if(typeof N=="object"&&N!==null&&N.type===w&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case T:e:{for(var $=N.key;x!==null;){if(x.key===$){if($=N.type,$===w){if(x.tag===7){l(E,x.sibling),L=n(x,N.props.children),L.return=E,E=L;break e}}else if(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===de&&to($)===x.type){l(E,x.sibling),L=n(x,N.props),pn(L,N),L.return=E,E=L;break e}l(E,x);break}else t(E,x);x=x.sibling}N.type===w?(L=Yl(N.props.children,E.mode,L,N.key),L.return=E,E=L):(L=mu(N.type,N.key,N.props,null,E.mode,L),pn(L,N),L.return=E,E=L)}return c(E);case q:e:{for($=N.key;x!==null;){if(x.key===$)if(x.tag===4&&x.stateNode.containerInfo===N.containerInfo&&x.stateNode.implementation===N.implementation){l(E,x.sibling),L=n(x,N.children||[]),L.return=E,E=L;break e}else{l(E,x);break}else t(E,x);x=x.sibling}L=ec(N,E.mode,L),L.return=E,E=L}return c(E);case de:return $=N._init,N=$(N._payload),pe(E,x,N,L)}if(ke(N))return le(E,x,N,L);if(Ke(N)){if($=Ke(N),typeof $!="function")throw Error(s(150));return N=$.call(N),P(E,x,N,L)}if(typeof N.then=="function")return pe(E,x,Ou(N),L);if(N.$$typeof===O)return pe(E,x,vu(E,N),L);zu(E,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,x!==null&&x.tag===6?(l(E,x.sibling),L=n(x,N),L.return=E,E=L):(l(E,x),L=Pi(N,E.mode,L),L.return=E,E=L),c(E)):l(E,x)}return function(E,x,N,L){try{vn=0;var $=pe(E,x,N,L);return ja=null,$}catch(W){if(W===rn||W===bu)throw W;var ie=st(29,W,null,E.mode);return ie.lanes=L,ie.return=E,ie}finally{}}}var Na=lo(!0),ao=lo(!1),Et=Y(null),_t=null;function gl(e){var t=e.alternate;K(Le,Le.current&1),K(Et,e),_t===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(_t=e)}function no(e){if(e.tag===22){if(K(Le,Le.current),K(Et,e),_t===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(_t=e)}}else yl()}function yl(){K(Le,Le.current),K(Et,Et.current)}function $t(e){J(Et),_t===e&&(_t=null),J(Le)}var Le=Y(0);function Cu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Er(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function _c(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:j({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Uc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=mt(),n=dl(a);n.payload=t,l!=null&&(n.callback=l),t=ml(e,n,a),t!==null&&(ht(t,e,a),fn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=dl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ml(e,n,a),t!==null&&(ht(t,e,a),fn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=dl(l);a.tag=2,t!=null&&(a.callback=t),t=ml(e,a,l),t!==null&&(ht(t,e,l),fn(t,e,l))}};function uo(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Pa(l,a)||!Pa(n,u):!0}function io(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Uc.enqueueReplaceState(t,t.state,null)}function $l(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=j({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}var _u=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function co(e){_u(e)}function ro(e){console.error(e)}function so(e){_u(e)}function Uu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function fo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function wc(e,t,l){return l=dl(l),l.tag=3,l.payload={element:null},l.callback=function(){Uu(e,t)},l}function oo(e){return e=dl(e),e.tag=3,e}function mo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){fo(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){fo(t,l,a),typeof n!="function"&&(El===null?El=new Set([this]):El.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Ph(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&nn(t,l,n,!0),l=Et.current,l!==null){switch(l.tag){case 13:return _t===null?ur():l.alternate===null&&Me===0&&(Me=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===fc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),cr(e,a,n)),!1;case 22:return l.flags|=65536,a===fc?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),cr(e,a,n)),!1}throw Error(s(435,l.tag))}return cr(e,a,n),ur(),!1}if(me)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ac&&(e=Error(s(422),{cause:a}),an(pt(e,l)))):(a!==ac&&(t=Error(s(423),{cause:a}),an(pt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=pt(a,l),n=wc(e.stateNode,a,n),mc(e,n),Me!==4&&(Me=2)),!1;var u=Error(s(520),{cause:a});if(u=pt(u,l),Tn===null?Tn=[u]:Tn.push(u),Me!==4&&(Me=2),t===null)return!0;a=pt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=wc(l.stateNode,a,e),mc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(El===null||!El.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=oo(n),mo(n,e,l,a),mc(l,n),!1}l=l.return}while(l!==null);return!1}var ho=Error(s(461)),qe=!1;function Qe(e,t,l,a){t.child=e===null?ao(t,null,l,a):Na(t,e.child,l,a)}function go(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return Kl(t),a=pc(e,t,l,c,u,n),f=bc(),e!==null&&!qe?(xc(e,t,n),Wt(e,t,n)):(me&&f&&tc(t),t.flags|=1,Qe(e,t,a,n),t.child)}function yo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Ii(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,vo(e,t,u,a,n)):(e=mu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Qc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Pa,l(c,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Qt(u,a),e.ref=t.ref,e.return=t,t.child=e}function vo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Pa(u,a)&&e.ref===t.ref)if(qe=!1,t.pendingProps=a=u,Qc(e,n))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return Lc(e,t,l,a,n)}function po(e,t,l){var a=t.pendingProps,n=a.children,u=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=u!==null?u.baseLanes|l:l,e!==null){for(n=t.child=e.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;t.childLanes=u&~a}else t.childLanes=0,t.child=null;return bo(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pu(t,u!==null?u.cachePool:null),u!==null?yf(t,u):gc(),no(t);else return t.lanes=t.childLanes=536870912,bo(e,t,u!==null?u.baseLanes|l:l,l)}else u!==null?(pu(t,u.cachePool),yf(t,u),yl(),t.memoizedState=null):(e!==null&&pu(t,null),gc(),yl());return Qe(e,t,n,l),t.child}function bo(e,t,l,a){var n=sc();return n=n===null?null:{parent:we._currentValue,pool:n},t.memoizedState={baseLanes:l,cachePool:n},e!==null&&pu(t,null),gc(),no(t),e!==null&&nn(e,t,a,!0),null}function wu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Lc(e,t,l,a,n){return Kl(t),l=pc(e,t,l,a,void 0,n),a=bc(),e!==null&&!qe?(xc(e,t,n),Wt(e,t,n)):(me&&a&&tc(t),t.flags|=1,Qe(e,t,l,n),t.child)}function xo(e,t,l,a,n,u){return Kl(t),t.updateQueue=null,l=pf(t,a,l,n),vf(e),a=bc(),e!==null&&!qe?(xc(e,t,u),Wt(e,t,u)):(me&&a&&tc(t),t.flags|=1,Qe(e,t,l,u),t.child)}function So(e,t,l,a,n){if(Kl(t),t.stateNode===null){var u=ha,c=l.contextType;typeof c=="object"&&c!==null&&(u=$e(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Uc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},oc(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?$e(c):ha,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(_c(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Uc.enqueueReplaceState(u,u.state,null),dn(t,a,u,n),on(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var f=t.memoizedProps,y=$l(l,f);u.props=y;var A=u.context,_=l.contextType;c=ha,typeof _=="object"&&_!==null&&(c=$e(_));var H=l.getDerivedStateFromProps;_=typeof H=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||A!==c)&&io(t,u,a,c),ol=!1;var M=t.memoizedState;u.state=M,dn(t,a,u,n),on(),A=t.memoizedState,f||M!==A||ol?(typeof H=="function"&&(_c(t,l,H,a),A=t.memoizedState),(y=ol||uo(t,l,y,a,M,A,c))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=c,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,dc(e,t),c=t.memoizedProps,_=$l(l,c),u.props=_,H=t.pendingProps,M=u.context,A=l.contextType,y=ha,typeof A=="object"&&A!==null&&(y=$e(A)),f=l.getDerivedStateFromProps,(A=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==H||M!==y)&&io(t,u,a,y),ol=!1,M=t.memoizedState,u.state=M,dn(t,a,u,n),on();var D=t.memoizedState;c!==H||M!==D||ol||e!==null&&e.dependencies!==null&&yu(e.dependencies)?(typeof f=="function"&&(_c(t,l,f,a),D=t.memoizedState),(_=ol||uo(t,l,_,a,M,D,y)||e!==null&&e.dependencies!==null&&yu(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,D,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,D,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),u.props=a,u.state=D,u.context=y,a=_):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,wu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Na(t,e.child,null,n),t.child=Na(t,null,l,n)):Qe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Wt(e,t,n),e}function Eo(e,t,l,a){return ln(),t.flags|=256,Qe(e,t,l,a),t.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(e){return{baseLanes:e,cachePool:rf()}}function qc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=jt),e}function jo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?gl(t):yl(),me){var f=Re,y;if(y=f){e:{for(y=f,f=Ct;y.nodeType!==8;){if(!f){f=null;break e}if(y=Dt(y.nextSibling),y===null){f=null;break e}}f=y}f!==null?(t.memoizedState={dehydrated:f,treeContext:Gl!==null?{id:Zt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},y=st(18,null,null,0),y.stateNode=f,y.return=t,t.child=y,Ie=t,Re=null,y=!0):y=!1}y||Zl(t)}if(f=t.memoizedState,f!==null&&(f=f.dehydrated,f!==null))return Er(f)?t.lanes=32:t.lanes=536870912,null;$t(t)}return f=a.children,a=a.fallback,n?(yl(),n=t.mode,f=Lu({mode:"hidden",children:f},n),a=Yl(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,n=t.child,n.memoizedState=Bc(l),n.childLanes=qc(e,c,l),t.memoizedState=Hc,a):(gl(t),Yc(t,f))}if(y=e.memoizedState,y!==null&&(f=y.dehydrated,f!==null)){if(u)t.flags&256?(gl(t),t.flags&=-257,t=Gc(e,t,l)):t.memoizedState!==null?(yl(),t.child=e.child,t.flags|=128,t=null):(yl(),n=a.fallback,f=t.mode,a=Lu({mode:"visible",children:a.children},f),n=Yl(n,f,l,null),n.flags|=2,a.return=t,n.return=t,a.sibling=n,t.child=a,Na(t,e.child,null,l),a=t.child,a.memoizedState=Bc(l),a.childLanes=qc(e,c,l),t.memoizedState=Hc,t=n);else if(gl(t),Er(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var A=c.dgst;c=A,a=Error(s(419)),a.stack="",a.digest=c,an({value:a,source:null,stack:null}),t=Gc(e,t,l)}else if(qe||nn(e,t,l,!1),c=(l&e.childLanes)!==0,qe||c){if(c=Se,c!==null&&(a=l&-l,a=(a&42)!==0?1:ji(a),a=(a&(c.suspendedLanes|l))!==0?0:a,a!==0&&a!==y.retryLane))throw y.retryLane=a,ma(e,a),ht(c,e,a),ho;f.data==="$?"||ur(),t=Gc(e,t,l)}else f.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Re=Dt(f.nextSibling),Ie=t,me=!0,Ql=null,Ct=!1,e!==null&&(xt[St++]=Zt,xt[St++]=Vt,xt[St++]=Gl,Zt=e.id,Vt=e.overflow,Gl=t),t=Yc(t,a.children),t.flags|=4096);return t}return n?(yl(),n=a.fallback,f=t.mode,y=e.child,A=y.sibling,a=Qt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,A!==null?n=Qt(A,n):(n=Yl(n,f,l,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,a=n,n=t.child,f=e.child.memoizedState,f===null?f=Bc(l):(y=f.cachePool,y!==null?(A=we._currentValue,y=y.parent!==A?{parent:A,pool:A}:y):y=rf(),f={baseLanes:f.baseLanes|l,cachePool:y}),n.memoizedState=f,n.childLanes=qc(e,c,l),t.memoizedState=Hc,a):(gl(t),l=e.child,e=l.sibling,l=Qt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Yc(e,t){return t=Lu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lu(e,t){return e=st(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gc(e,t,l){return Na(t,e.child,null,l),e=Yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function No(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),uc(e.return,t,l)}function Xc(e,t,l,a,n){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n)}function To(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;if(Qe(e,t,a.children,l),a=Le.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&No(e,l,t);else if(e.tag===19)No(e,l,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}a&=1}switch(K(Le,a),n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Cu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Xc(t,!1,n,l,u);break;case"backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Cu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Xc(t,!0,l,null,u);break;case"together":Xc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Sl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(nn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Qc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yu(e)))}function e0(e,t,l){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),fl(t,we,e.memoizedState.cache),ln();break;case 27:case 5:pi(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:fl(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(gl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jo(e,t,l):(gl(t),e=Wt(e,t,l),e!==null?e.sibling:null);gl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(nn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return To(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Le,Le.current),a)break;return null;case 22:case 23:return t.lanes=0,po(e,t,l);case 24:fl(t,we,e.memoizedState.cache)}return Wt(e,t,l)}function Ao(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!Qc(e,l)&&(t.flags&128)===0)return qe=!1,e0(e,t,l);qe=(e.flags&131072)!==0}else qe=!1,me&&(t.flags&1048576)!==0&&ef(t,gu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,n=a._init;if(a=n(a._payload),t.type=a,typeof a=="function")Ii(a)?(e=$l(a,e),t.tag=1,t=So(null,t,a,e,l)):(t.tag=0,t=Lc(null,t,a,e,l));else{if(a!=null){if(n=a.$$typeof,n===G){t.tag=11,t=go(null,t,a,e,l);break e}else if(n===X){t.tag=14,t=yo(null,t,a,e,l);break e}}throw t=Ul(a)||a,Error(s(306,t,""))}}return t;case 0:return Lc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=$l(a,t.pendingProps),So(e,t,a,n,l);case 3:e:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,dc(e,t),dn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,fl(t,we,a),a!==u.cache&&ic(t,[we],l,!0),on(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Eo(e,t,a,l);break e}else if(a!==n){n=pt(Error(s(424)),t),an(n),t=Eo(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Re=Dt(e.firstChild),Ie=t,me=!0,Ql=null,Ct=!0,l=ao(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ln(),a===n){t=Wt(e,t,l);break e}Qe(e,t,a,l)}t=t.child}return t;case 26:return wu(e,t),e===null?(l=Od(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(l=t.type,e=t.pendingProps,a=Wu(ae.current).createElement(l),a[Je]=t,a[Pe]=e,Ve(a,l,e),Be(a),t.stateNode=a):t.memoizedState=Od(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pi(t),e===null&&me&&(a=t.stateNode=Rd(t.type,t.pendingProps,ae.current),Ie=t,Ct=!0,n=Re,Tl(t.type)?(jr=n,Re=Dt(a.firstChild)):Re=n),Qe(e,t,t.pendingProps.children,l),wu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=Re)&&(a=M0(a,t.type,t.pendingProps,Ct),a!==null?(t.stateNode=a,Ie=t,Re=Dt(a.firstChild),Ct=!1,n=!0):n=!1),n||Zl(t)),pi(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,br(n,u)?a=null:c!==null&&br(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=pc(e,t,Kh,null,null,l),Un._currentValue=n),wu(e,t),Qe(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=Re)&&(l=D0(l,t.pendingProps,Ct),l!==null?(t.stateNode=l,Ie=t,Re=null,e=!0):e=!1),e||Zl(t)),null;case 13:return jo(e,t,l);case 4:return je(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Na(t,null,a,l):Qe(e,t,a,l),t.child;case 11:return go(e,t,t.type,t.pendingProps,l);case 7:return Qe(e,t,t.pendingProps,l),t.child;case 8:return Qe(e,t,t.pendingProps.children,l),t.child;case 12:return Qe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,fl(t,t.type,a.value),Qe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Kl(t),n=$e(n),a=a(n),t.flags|=1,Qe(e,t,a,l),t.child;case 14:return yo(e,t,t.type,t.pendingProps,l);case 15:return vo(e,t,t.type,t.pendingProps,l);case 19:return To(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Lu(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Qt(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return po(e,t,l);case 24:return Kl(t),a=$e(we),e===null?(n=sc(),n===null&&(n=Se,u=cc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},oc(t),fl(t,we,n)):((e.lanes&l)!==0&&(dc(e,t),dn(t,null,null,l),on()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),fl(t,we,a)):(a=u.cache,fl(t,we,a),a!==n.cache&&ic(t,[we],l,!0))),Qe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Ft(e){e.flags|=4}function Ro(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wd(t)){if(t=Et.current,t!==null&&((se&4194048)===se?_t!==null:(se&62914560)!==se&&(se&536870912)===0||t!==_t))throw sn=fc,sf;e.flags|=8192}}function Hu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?as():536870912,e.lanes|=t,Ma|=t)}function bn(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Te(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function t0(e,t,l){var a=t.pendingProps;switch(lc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),kt(we),il(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(tn(t)?Ft(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,af())),Te(t),null;case 26:return l=t.memoizedState,e===null?(Ft(t),l!==null?(Te(t),Ro(t,l)):(Te(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Ft(t),Te(t),Ro(t,l)):(Te(t),t.flags&=-16777217):(e.memoizedProps!==a&&Ft(t),Te(t),t.flags&=-16777217),null;case 27:Jn(t),l=ae.current;var n=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Te(t),null}e=I.current,tn(t)?tf(t):(e=Rd(n,a,l),t.stateNode=e,Ft(t))}return Te(t),null;case 5:if(Jn(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Te(t),null}if(e=I.current,tn(t))tf(t);else{switch(n=Wu(ae.current),e){case 1:e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?n.createElement("select",{is:a.is}):n.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?n.createElement(l,{is:a.is}):n.createElement(l)}}e[Je]=t,e[Pe]=a;e:for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}t.stateNode=e;e:switch(Ve(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ft(t)}}return Te(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,tn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ie,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||xd(e.nodeValue,l)),e||Zl(t)}else e=Wu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Te(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=tn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Je]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Te(t),n=!1}else n=af(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?($t(t),t):($t(t),null)}if($t(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool);var u=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),Hu(t,t.updateQueue),Te(t),null;case 4:return il(),e===null&&hr(t.stateNode.containerInfo),Te(t),null;case 10:return kt(t.type),Te(t),null;case 19:if(J(Le),n=t.memoizedState,n===null)return Te(t),null;if(a=(t.flags&128)!==0,u=n.rendering,u===null)if(a)bn(n,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Cu(e),u!==null){for(t.flags|=128,bn(n,!1),e=u.updateQueue,t.updateQueue=e,Hu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ps(l,e),l=l.sibling;return K(Le,Le.current&1|2),t.child}e=e.sibling}n.tail!==null&&zt()>Yu&&(t.flags|=128,a=!0,bn(n,!1),t.lanes=4194304)}else{if(!a)if(e=Cu(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Hu(t,e),bn(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!me)return Te(t),null}else 2*zt()-n.renderingStartTime>Yu&&l!==536870912&&(t.flags|=128,a=!0,bn(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=zt(),t.sibling=null,e=Le.current,K(Le,a?e&1|2:e&1),t):(Te(t),null);case 22:case 23:return $t(t),yc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),l=t.updateQueue,l!==null&&Hu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&J(kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),kt(we),Te(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function l0(e,t){switch(lc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kt(we),il(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Jn(t),null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(Le),null;case 4:return il(),null;case 10:return kt(t.type),null;case 22:case 23:return $t(t),yc(),e!==null&&J(kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kt(we),null;case 25:return null;default:return null}}function Mo(e,t){switch(lc(t),t.tag){case 3:kt(we),il();break;case 26:case 27:case 5:Jn(t);break;case 4:il();break;case 13:$t(t);break;case 19:J(Le);break;case 10:kt(t.type);break;case 22:case 23:$t(t),yc(),e!==null&&J(kl);break;case 24:kt(we)}}function xn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(f){xe(t,t.return,f)}}function vl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,n=t;var y=l,A=f;try{A()}catch(_){xe(n,y,_)}}}a=a.next}while(a!==u)}}catch(_){xe(t,t.return,_)}}function Do(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{gf(t,l)}catch(a){xe(e,e.return,a)}}}function Oo(e,t,l){l.props=$l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){xe(e,t,a)}}function Sn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){xe(e,t,n)}}function Ut(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){xe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){xe(e,t,n)}else l.current=null}function zo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){xe(e,e.return,n)}}function Zc(e,t,l){try{var a=e.stateNode;j0(a,e.type,l,t),a[Pe]=t}catch(n){xe(e,e.return,n)}}function Co(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Co(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.tag===27&&Tl(e.type)||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 Kc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=$u));else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,l),e=e.sibling;e!==null;)Kc(e,t,l),e=e.sibling}function Bu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Bu(e,t,l),e=e.sibling;e!==null;)Bu(e,t,l),e=e.sibling}function _o(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ve(t,a,l),t[Je]=e,t[Pe]=l}catch(u){xe(e,e.return,u)}}var It=!1,ze=!1,kc=!1,Uo=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function a0(e,t){if(e=e.containerInfo,vr=li,e=Qs(e),Vi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,f=-1,y=-1,A=0,_=0,H=e,M=null;t:for(;;){for(var D;H!==l||n!==0&&H.nodeType!==3||(f=c+n),H!==u||a!==0&&H.nodeType!==3||(y=c+a),H.nodeType===3&&(c+=H.nodeValue.length),(D=H.firstChild)!==null;)M=H,H=D;for(;;){if(H===e)break t;if(M===l&&++A===n&&(f=c),M===u&&++_===a&&(y=c),(D=H.nextSibling)!==null)break;H=M,M=H.parentNode}H=D}l=f===-1||y===-1?null:{start:f,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(pr={focusedElem:e,selectionRange:l},li=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,u=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var le=$l(l.type,n,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(le,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){xe(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Sr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function wo(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:pl(e,l),a&4&&xn(5,l);break;case 1:if(pl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){xe(l,l.return,c)}else{var n=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){xe(l,l.return,c)}}a&64&&Do(l),a&512&&Sn(l,l.return);break;case 3:if(pl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{gf(e,t)}catch(c){xe(l,l.return,c)}}break;case 27:t===null&&a&4&&_o(l);case 26:case 5:pl(e,l),t===null&&a&4&&zo(l),a&512&&Sn(l,l.return);break;case 12:pl(e,l);break;case 13:pl(e,l),a&4&&Bo(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=d0.bind(null,l),O0(e,l))));break;case 22:if(a=l.memoizedState!==null||It,!a){t=t!==null&&t.memoizedState!==null||ze,n=It;var u=ze;It=a,(ze=t)&&!u?bl(e,l,(l.subtreeFlags&8772)!==0):pl(e,l),It=n,ze=u}break;case 30:break;default:pl(e,l)}}function Lo(e){var t=e.alternate;t!==null&&(e.alternate=null,Lo(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ai(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ne=null,lt=!1;function Pt(e,t,l){for(l=l.child;l!==null;)Ho(e,t,l),l=l.sibling}function Ho(e,t,l){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(Ga,l)}catch{}switch(l.tag){case 26:ze||Ut(l,t),Pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ze||Ut(l,t);var a=Ne,n=lt;Tl(l.type)&&(Ne=l.stateNode,lt=!1),Pt(e,t,l),On(l.stateNode),Ne=a,lt=n;break;case 5:ze||Ut(l,t);case 6:if(a=Ne,n=lt,Ne=null,Pt(e,t,l),Ne=a,lt=n,Ne!==null)if(lt)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(l.stateNode)}catch(u){xe(l,t,u)}else try{Ne.removeChild(l.stateNode)}catch(u){xe(l,t,u)}break;case 18:Ne!==null&&(lt?(e=Ne,Td(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Bn(e)):Td(Ne,l.stateNode));break;case 4:a=Ne,n=lt,Ne=l.stateNode.containerInfo,lt=!0,Pt(e,t,l),Ne=a,lt=n;break;case 0:case 11:case 14:case 15:ze||vl(2,l,t),ze||vl(4,l,t),Pt(e,t,l);break;case 1:ze||(Ut(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Oo(l,t,a)),Pt(e,t,l);break;case 21:Pt(e,t,l);break;case 22:ze=(a=ze)||l.memoizedState!==null,Pt(e,t,l),ze=a;break;default:Pt(e,t,l)}}function Bo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bn(e)}catch(l){xe(t,t.return,l)}}function n0(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Uo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Uo),t;default:throw Error(s(435,e.tag))}}function Jc(e,t){var l=n0(e);t.forEach(function(a){var n=m0.bind(null,e,a);l.has(a)||(l.add(a),a.then(n,n))})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(Tl(f.type)){Ne=f.stateNode,lt=!1;break e}break;case 5:Ne=f.stateNode,lt=!1;break e;case 3:case 4:Ne=f.stateNode.containerInfo,lt=!0;break e}f=f.return}if(Ne===null)throw Error(s(160));Ho(u,c,n),Ne=null,lt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)qo(t,e),t=t.sibling}var Mt=null;function qo(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),ot(e),a&4&&(vl(3,e,e.return),xn(3,e),vl(5,e,e.return));break;case 1:ft(t,e),ot(e),a&512&&(ze||l===null||Ut(l,l.return)),a&64&&It&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Mt;if(ft(t,e),ot(e),a&512&&(ze||l===null||Ut(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Za]||u[Je]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ve(u,a,l),u[Je]=e,Be(u),a=u;break e;case"link":var c=_d("link","href",n).get(a+(l.href||""));if(c){for(var f=0;f<c.length;f++)if(u=c[f],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(f,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;case"meta":if(c=_d("meta","content",n).get(a+(l.content||""))){for(f=0;f<c.length;f++)if(u=c[f],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(f,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;default:throw Error(s(468,a))}u[Je]=e,Be(u),a=u}e.stateNode=a}else Ud(n,e.type,e.stateNode);else e.stateNode=Cd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Ud(n,e.type,e.stateNode):Cd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),ot(e),a&512&&(ze||l===null||Ut(l,l.return)),l!==null&&a&4&&Zc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),ot(e),a&512&&(ze||l===null||Ut(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch(D){xe(e,e.return,D)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Zc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(kc=!0);break;case 6:if(ft(t,e),ot(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(D){xe(e,e.return,D)}}break;case 3:if(Pu=null,n=Mt,Mt=Fu(t.containerInfo),ft(t,e),Mt=n,ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Bn(t.containerInfo)}catch(D){xe(e,e.return,D)}kc&&(kc=!1,Yo(e));break;case 4:a=Mt,Mt=Fu(e.stateNode.containerInfo),ft(t,e),ot(e),Mt=a;break;case 12:ft(t,e),ot(e);break;case 13:ft(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(er=zt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Jc(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,A=It,_=ze;if(It=A||n,ze=_||y,ft(t,e),ze=_,It=A,ot(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||It||ze||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(u=y.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=y.stateNode;var H=y.memoizedProps.style,M=H!=null&&H.hasOwnProperty("display")?H.display:null;f.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(D){xe(y,y.return,D)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(D){xe(y,y.return,D)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Jc(e,l))));break;case 19:ft(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Jc(e,a)));break;case 30:break;case 21:break;default:ft(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Co(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,u=Vc(e);Bu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ia(c,""),l.flags&=-33);var f=Vc(e);Bu(e,f,c);break;case 3:case 4:var y=l.stateNode.containerInfo,A=Vc(e);Kc(e,A,y);break;default:throw Error(s(161))}}catch(_){xe(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yo(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wo(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Wl(t);break;case 1:Ut(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Oo(t,t.return,l),Wl(t);break;case 27:On(t.stateNode);case 26:case 5:Ut(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function bl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:bl(n,u,l),xn(4,u);break;case 1:if(bl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){xe(a,a.return,A)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)hf(y[n],f)}catch(A){xe(a,a.return,A)}}l&&c&64&&Do(u),Sn(u,u.return);break;case 27:_o(u);case 26:case 5:bl(n,u,l),l&&a===null&&c&4&&zo(u),Sn(u,u.return);break;case 12:bl(n,u,l);break;case 13:bl(n,u,l),l&&c&4&&Bo(n,u);break;case 22:u.memoizedState===null&&bl(n,u,l),Sn(u,u.return);break;case 30:break;default:bl(n,u,l)}t=t.sibling}}function $c(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&un(l))}function Wc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e))}function wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Go(e,t,l,a),t=t.sibling}function Go(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,l,a),n&2048&&xn(9,t);break;case 1:wt(e,t,l,a);break;case 3:wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e)));break;case 12:if(n&2048){wt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,f=u.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){xe(t,t.return,y)}}else wt(e,t,l,a);break;case 13:wt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,l,a):En(e,t):u._visibility&2?wt(e,t,l,a):(u._visibility|=2,Ta(e,t,l,a,(t.subtreeFlags&10256)!==0)),n&2048&&$c(c,t);break;case 24:wt(e,t,l,a),n&2048&&Wc(t.alternate,t);break;default:wt(e,t,l,a)}}function Ta(e,t,l,a,n){for(n=n&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var u=e,c=t,f=l,y=a,A=c.flags;switch(c.tag){case 0:case 11:case 15:Ta(u,c,f,y,n),xn(8,c);break;case 23:break;case 22:var _=c.stateNode;c.memoizedState!==null?_._visibility&2?Ta(u,c,f,y,n):En(u,c):(_._visibility|=2,Ta(u,c,f,y,n)),n&&A&2048&&$c(c.alternate,c);break;case 24:Ta(u,c,f,y,n),n&&A&2048&&Wc(c.alternate,c);break;default:Ta(u,c,f,y,n)}t=t.sibling}}function En(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:En(l,a),n&2048&&$c(a.alternate,a);break;case 24:En(l,a),n&2048&&Wc(a.alternate,a);break;default:En(l,a)}t=t.sibling}}var jn=8192;function Aa(e){if(e.subtreeFlags&jn)for(e=e.child;e!==null;)Xo(e),e=e.sibling}function Xo(e){switch(e.tag){case 26:Aa(e),e.flags&jn&&e.memoizedState!==null&&Q0(Mt,e.memoizedState,e.memoizedProps);break;case 5:Aa(e);break;case 3:case 4:var t=Mt;Mt=Fu(e.stateNode.containerInfo),Aa(e),Mt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=jn,jn=16777216,Aa(e),jn=t):Aa(e));break;default:Aa(e)}}function Qo(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ye=a,Vo(a,e)}Qo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zo(e),e=e.sibling}function Zo(e){switch(e.tag){case 0:case 11:case 15:Nn(e),e.flags&2048&&vl(9,e,e.return);break;case 3:Nn(e);break;case 12:Nn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Nn(e);break;default:Nn(e)}}function qu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ye=a,Vo(a,e)}Qo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),qu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Vo(e,t){for(;Ye!==null;){var l=Ye;switch(l.tag){case 0:case 11:case 15:vl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:un(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ye=a;else e:for(l=e;Ye!==null;){a=Ye;var n=a.sibling,u=a.return;if(Lo(a),a===l){Ye=null;break e}if(n!==null){n.return=u,Ye=n;break e}Ye=u}}}var u0={getCacheForType:function(e){var t=$e(we),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},i0=typeof WeakMap=="function"?WeakMap:Map,he=0,Se=null,ce=null,se=0,ge=0,dt=null,xl=!1,Ra=!1,Fc=!1,el=0,Me=0,Sl=0,Fl=0,Ic=0,jt=0,Ma=0,Tn=null,at=null,Pc=!1,er=0,Yu=1/0,Gu=null,El=null,Ze=0,jl=null,Da=null,Oa=0,tr=0,lr=null,Ko=null,An=0,ar=null;function mt(){if((he&2)!==0&&se!==0)return se&-se;if(U.T!==null){var e=va;return e!==0?e:fr()}return is()}function ko(){jt===0&&(jt=(se&536870912)===0||me?ls():536870912);var e=Et.current;return e!==null&&(e.flags|=32),jt}function ht(e,t,l){(e===Se&&(ge===2||ge===9)||e.cancelPendingCommit!==null)&&(za(e,0),Nl(e,se,jt,!1)),Qa(e,l),((he&2)===0||e!==Se)&&(e===Se&&((he&2)===0&&(Fl|=l),Me===4&&Nl(e,se,jt,!1)),Lt(e))}function Jo(e,t,l){if((he&6)!==0)throw Error(s(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Xa(e,t),n=a?s0(e,t):ir(e,t,!0),u=a;do{if(n===0){Ra&&!a&&Nl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!c0(l)){n=ir(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;n=Tn;var y=f.current.memoizedState.isDehydrated;if(y&&(za(f,c).flags|=256),c=ir(f,c,!1),c!==2){if(Fc&&!y){f.errorRecoveryDisabledLanes|=u,Fl|=u,n=4;break e}u=at,at=n,u!==null&&(at===null?at=u:at.push.apply(at,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){za(e,0),Nl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Nl(a,t,jt,!xl);break e;case 2:at=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=er+300-zt(),10<n)){if(Nl(a,t,jt,!xl),In(a,0,!0)!==0)break e;a.timeoutHandle=jd($o.bind(null,a,l,at,Gu,Pc,t,jt,Fl,Ma,xl,u,2,-0,0),n);break e}$o(a,l,at,Gu,Pc,t,jt,Fl,Ma,xl,u,0,-0,0)}}break}while(!0);Lt(e)}function $o(e,t,l,a,n,u,c,f,y,A,_,H,M,D){if(e.timeoutHandle=-1,H=t.subtreeFlags,(H&8192||(H&16785408)===16785408)&&(_n={stylesheets:null,count:0,unsuspend:X0},Xo(t),H=Z0(),H!==null)){e.cancelPendingCommit=H(ld.bind(null,e,t,u,l,a,n,c,f,y,_,1,M,D)),Nl(e,u,c,!A);return}ld(e,t,u,l,a,n,c,f,y)}function c0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!rt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Nl(e,t,l,a){t&=~Ic,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ct(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&ns(e,l,t)}function Xu(){return(he&6)===0?(Rn(0),!1):!0}function nr(){if(ce!==null){if(ge===0)var e=ce.return;else e=ce,Kt=Vl=null,Sc(e),ja=null,vn=0,e=ce;for(;e!==null;)Mo(e.alternate,e),e=e.return;ce=null}}function za(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,T0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),nr(),Se=e,ce=l=Qt(e.current,null),se=t,ge=0,dt=null,xl=!1,Ra=Xa(e,t),Fc=!1,Ma=jt=Ic=Fl=Sl=Me=0,at=Tn=null,Pc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ct(a),u=1<<n;t|=e[n],a&=~u}return el=t,fu(),l}function Wo(e,t){ue=null,U.H=Du,t===rn||t===bu?(t=df(),ge=3):t===sf?(t=df(),ge=4):ge=t===ho?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,dt=t,ce===null&&(Me=1,Uu(e,pt(t,e.current)))}function Fo(){var e=U.H;return U.H=Du,e===null?Du:e}function Io(){var e=U.A;return U.A=u0,e}function ur(){Me=4,xl||(se&4194048)!==se&&Et.current!==null||(Ra=!0),(Sl&134217727)===0&&(Fl&134217727)===0||Se===null||Nl(Se,se,jt,!1)}function ir(e,t,l){var a=he;he|=2;var n=Fo(),u=Io();(Se!==e||se!==t)&&(Gu=null,za(e,t)),t=!1;var c=Me;e:do try{if(ge!==0&&ce!==null){var f=ce,y=dt;switch(ge){case 8:nr(),c=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var A=ge;if(ge=0,dt=null,Ca(e,f,y,A),l&&Ra){c=0;break e}break;default:A=ge,ge=0,dt=null,Ca(e,f,y,A)}}r0(),c=Me;break}catch(_){Wo(e,_)}while(!0);return t&&e.shellSuspendCounter++,Kt=Vl=null,he=a,U.H=n,U.A=u,ce===null&&(Se=null,se=0,fu()),c}function r0(){for(;ce!==null;)Po(ce)}function s0(e,t){var l=he;he|=2;var a=Fo(),n=Io();Se!==e||se!==t?(Gu=null,Yu=zt()+500,za(e,t)):Ra=Xa(e,t);e:do try{if(ge!==0&&ce!==null){t=ce;var u=dt;t:switch(ge){case 1:ge=0,dt=null,Ca(e,t,u,1);break;case 2:case 9:if(ff(u)){ge=0,dt=null,ed(t);break}t=function(){ge!==2&&ge!==9||Se!==e||(ge=7),Lt(e)},u.then(t,t);break e;case 3:ge=7;break e;case 4:ge=5;break e;case 7:ff(u)?(ge=0,dt=null,ed(t)):(ge=0,dt=null,Ca(e,t,u,7));break;case 5:var c=null;switch(ce.tag){case 26:c=ce.memoizedState;case 5:case 27:var f=ce;if(!c||wd(c)){ge=0,dt=null;var y=f.sibling;if(y!==null)ce=y;else{var A=f.return;A!==null?(ce=A,Qu(A)):ce=null}break t}}ge=0,dt=null,Ca(e,t,u,5);break;case 6:ge=0,dt=null,Ca(e,t,u,6);break;case 8:nr(),Me=6;break e;default:throw Error(s(462))}}f0();break}catch(_){Wo(e,_)}while(!0);return Kt=Vl=null,U.H=a,U.A=n,he=l,ce!==null?0:(Se=null,se=0,fu(),Me)}function f0(){for(;ce!==null&&!Cm();)Po(ce)}function Po(e){var t=Ao(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Qu(e):ce=t}function ed(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=xo(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=xo(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:Sc(t);default:Mo(l,t),t=ce=Ps(t,el),t=Ao(l,t,el)}e.memoizedProps=e.pendingProps,t===null?Qu(e):ce=t}function Ca(e,t,l,a){Kt=Vl=null,Sc(t),ja=null,vn=0;var n=t.return;try{if(Ph(e,n,t,l,se)){Me=1,Uu(e,pt(l,e.current)),ce=null;return}}catch(u){if(n!==null)throw ce=n,u;Me=1,Uu(e,pt(l,e.current)),ce=null;return}t.flags&32768?(me||a===1?e=!0:Ra||(se&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Et.current,a!==null&&a.tag===13&&(a.flags|=16384))),td(t,e)):Qu(t)}function Qu(e){var t=e;do{if((t.flags&32768)!==0){td(t,xl);return}e=t.return;var l=t0(t.alternate,t,el);if(l!==null){ce=l;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Me===0&&(Me=5)}function td(e,t){do{var l=l0(e.alternate,e);if(l!==null){l.flags&=32767,ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=l}while(e!==null);Me=6,ce=null}function ld(e,t,l,a,n,u,c,f,y){e.cancelPendingCommit=null;do Zu();while(Ze!==0);if((he&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Wi,Xm(e,l,u,c,f,y),e===Se&&(ce=Se=null,se=0),Da=t,jl=e,Oa=l,tr=u,lr=n,Ko=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,h0($n,function(){return cd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,n=k.p,k.p=2,c=he,he|=4;try{a0(e,t,l)}finally{he=c,k.p=n,U.T=a}}Ze=1,ad(),nd(),ud()}}function ad(){if(Ze===1){Ze=0;var e=jl,t=Da,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var a=k.p;k.p=2;var n=he;he|=4;try{qo(t,e);var u=pr,c=Qs(e.containerInfo),f=u.focusedElem,y=u.selectionRange;if(c!==f&&f&&f.ownerDocument&&Xs(f.ownerDocument.documentElement,f)){if(y!==null&&Vi(f)){var A=y.start,_=y.end;if(_===void 0&&(_=A),"selectionStart"in f)f.selectionStart=A,f.selectionEnd=Math.min(_,f.value.length);else{var H=f.ownerDocument||document,M=H&&H.defaultView||window;if(M.getSelection){var D=M.getSelection(),le=f.textContent.length,P=Math.min(y.start,le),pe=y.end===void 0?P:Math.min(y.end,le);!D.extend&&P>pe&&(c=pe,pe=P,P=c);var E=Gs(f,P),x=Gs(f,pe);if(E&&x&&(D.rangeCount!==1||D.anchorNode!==E.node||D.anchorOffset!==E.offset||D.focusNode!==x.node||D.focusOffset!==x.offset)){var N=H.createRange();N.setStart(E.node,E.offset),D.removeAllRanges(),P>pe?(D.addRange(N),D.extend(x.node,x.offset)):(N.setEnd(x.node,x.offset),D.addRange(N))}}}}for(H=[],D=f;D=D.parentNode;)D.nodeType===1&&H.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<H.length;f++){var L=H[f];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}li=!!vr,pr=vr=null}finally{he=n,k.p=a,U.T=l}}e.current=t,Ze=2}}function nd(){if(Ze===2){Ze=0;var e=jl,t=Da,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var a=k.p;k.p=2;var n=he;he|=4;try{wo(e,t.alternate,t)}finally{he=n,k.p=a,U.T=l}}Ze=3}}function ud(){if(Ze===4||Ze===3){Ze=0,_m();var e=jl,t=Da,l=Oa,a=Ko;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Da=jl=null,id(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),Ni(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(Ga,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,n=k.p,k.p=2,U.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];u(f.value,{componentStack:f.stack})}}finally{U.T=t,k.p=n}}(Oa&3)!==0&&Zu(),Lt(e),n=e.pendingLanes,(l&4194090)!==0&&(n&42)!==0?e===ar?An++:(An=0,ar=e):An=0,Rn(0)}}function id(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,un(t)))}function Zu(e){return ad(),nd(),ud(),cd()}function cd(){if(Ze!==5)return!1;var e=jl,t=tr;tr=0;var l=Ni(Oa),a=U.T,n=k.p;try{k.p=32>l?32:l,U.T=null,l=lr,lr=null;var u=jl,c=Oa;if(Ze=0,Da=jl=null,Oa=0,(he&6)!==0)throw Error(s(331));var f=he;if(he|=4,Zo(u.current),Go(u,u.current,c,l),he=f,Rn(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(Ga,u)}catch{}return!0}finally{k.p=n,U.T=a,id(e,t)}}function rd(e,t,l){t=pt(l,t),t=wc(e.stateNode,t,2),e=ml(e,t,2),e!==null&&(Qa(e,2),Lt(e))}function xe(e,t,l){if(e.tag===3)rd(e,e,l);else for(;t!==null;){if(t.tag===3){rd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=pt(l,e),l=oo(2),a=ml(t,l,2),a!==null&&(mo(l,a,t,e),Qa(a,2),Lt(a));break}}t=t.return}}function cr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new i0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Fc=!0,n.add(l),e=o0.bind(null,e,t,l),t.then(e,e))}function o0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Se===e&&(se&l)===l&&(Me===4||Me===3&&(se&62914560)===se&&300>zt()-er?(he&2)===0&&za(e,0):Ic|=l,Ma===se&&(Ma=0)),Lt(e)}function sd(e,t){t===0&&(t=as()),e=ma(e,t),e!==null&&(Qa(e,t),Lt(e))}function d0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),sd(e,l)}function m0(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),sd(e,l)}function h0(e,t){return xi(e,t)}var Vu=null,_a=null,rr=!1,Ku=!1,sr=!1,Il=0;function Lt(e){e!==_a&&e.next===null&&(_a===null?Vu=_a=e:_a=_a.next=e),Ku=!0,rr||(rr=!0,y0())}function Rn(e,t){if(!sr&&Ku){sr=!0;do for(var l=!1,a=Vu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ct(42|e)+1)-1,u&=n&~(c&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,md(a,u))}else u=se,u=In(a,a===Se?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Xa(a,u)||(l=!0,md(a,u));a=a.next}while(l);sr=!1}}function g0(){fd()}function fd(){Ku=rr=!1;var e=0;Il!==0&&(N0()&&(e=Il),Il=0);for(var t=zt(),l=null,a=Vu;a!==null;){var n=a.next,u=od(a,t);u===0?(a.next=null,l===null?Vu=n:l.next=n,n===null&&(_a=l)):(l=a,(e!==0||(u&3)!==0)&&(Ku=!0)),a=n}Rn(e)}function od(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-ct(u),f=1<<c,y=n[c];y===-1?((f&l)===0||(f&a)!==0)&&(n[c]=Gm(f,t)):y<=t&&(e.expiredLanes|=f),u&=~f}if(t=Se,l=se,l=In(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ge===2||ge===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Si(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Xa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Si(a),Ni(l)){case 2:case 8:l=es;break;case 32:l=$n;break;case 268435456:l=ts;break;default:l=$n}return a=dd.bind(null,e),l=xi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Si(a),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Zu()&&e.callbackNode!==l)return null;var a=se;return a=In(e,e===Se?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Jo(e,a,t),od(e,zt()),e.callbackNode!=null&&e.callbackNode===l?dd.bind(null,e):null)}function md(e,t){if(Zu())return null;Jo(e,t,!0)}function y0(){A0(function(){(he&6)!==0?xi(Pr,g0):fd()})}function fr(){return Il===0&&(Il=ls()),Il}function hd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:au(""+e)}function gd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function v0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=hd((n[Pe]||null).action),c=a.submitter;c&&(t=(t=c[Pe]||null)?hd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var f=new cu("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Il!==0){var y=c?gd(n,c):new FormData(n);Oc(l,{pending:!0,data:y,method:n.method,action:u},null,y)}}else typeof u=="function"&&(f.preventDefault(),y=c?gd(n,c):new FormData(n),Oc(l,{pending:!0,data:y,method:n.method,action:u},u,y))},currentTarget:n}]})}}for(var or=0;or<$i.length;or++){var dr=$i[or],p0=dr.toLowerCase(),b0=dr[0].toUpperCase()+dr.slice(1);Rt(p0,"on"+b0)}Rt(Ks,"onAnimationEnd"),Rt(ks,"onAnimationIteration"),Rt(Js,"onAnimationStart"),Rt("dblclick","onDoubleClick"),Rt("focusin","onFocus"),Rt("focusout","onBlur"),Rt(Lh,"onTransitionRun"),Rt(Hh,"onTransitionStart"),Rt(Bh,"onTransitionCancel"),Rt($s,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="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(" "),x0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mn));function yd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var f=a[c],y=f.instance,A=f.currentTarget;if(f=f.listener,y!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=A;try{u(n)}catch(_){_u(_)}n.currentTarget=null,u=y}else for(c=0;c<a.length;c++){if(f=a[c],y=f.instance,A=f.currentTarget,f=f.listener,y!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=A;try{u(n)}catch(_){_u(_)}n.currentTarget=null,u=y}}}}function re(e,t){var l=t[Ti];l===void 0&&(l=t[Ti]=new Set);var a=e+"__bubble";l.has(a)||(vd(t,e,2,!1),l.add(a))}function mr(e,t,l){var a=0;t&&(a|=4),vd(l,e,a,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function hr(e){if(!e[ku]){e[ku]=!0,rs.forEach(function(l){l!=="selectionchange"&&(x0.has(l)||mr(l,!1,e),mr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,mr("selectionchange",!1,t))}}function vd(e,t,l,a){switch(Gd(t)){case 2:var n=k0;break;case 8:n=J0;break;default:n=Mr}l=n.bind(null,t,l,e),n=void 0,!Li||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function gr(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===n)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;f!==null;){if(c=ea(f),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=u=c;continue e}f=f.parentNode}}a=a.return}Es(function(){var A=u,_=Ui(l),H=[];e:{var M=Ws.get(e);if(M!==void 0){var D=cu,le=e;switch(e){case"keypress":if(uu(l)===0)break e;case"keydown":case"keyup":D=hh;break;case"focusin":le="focus",D=Yi;break;case"focusout":le="blur",D=Yi;break;case"beforeblur":case"afterblur":D=Yi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Ts;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=lh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=vh;break;case Ks:case ks:case Js:D=uh;break;case $s:D=bh;break;case"scroll":case"scrollend":D=eh;break;case"wheel":D=Sh;break;case"copy":case"cut":case"paste":D=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Rs;break;case"toggle":case"beforetoggle":D=jh}var P=(t&4)!==0,pe=!P&&(e==="scroll"||e==="scrollend"),E=P?M!==null?M+"Capture":null:M;P=[];for(var x=A,N;x!==null;){var L=x;if(N=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||N===null||E===null||(L=Ka(x,E),L!=null&&P.push(Dn(x,L,N))),pe)break;x=x.return}0<P.length&&(M=new D(M,le,null,l,_),H.push({event:M,listeners:P}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",M&&l!==_i&&(le=l.relatedTarget||l.fromElement)&&(ea(le)||le[Pl]))break e;if((D||M)&&(M=_.window===_?_:(M=_.ownerDocument)?M.defaultView||M.parentWindow:window,D?(le=l.relatedTarget||l.toElement,D=A,le=le?ea(le):null,le!==null&&(pe=g(le),P=le.tag,le!==pe||P!==5&&P!==27&&P!==6)&&(le=null)):(D=null,le=A),D!==le)){if(P=Ts,L="onMouseLeave",E="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(P=Rs,L="onPointerLeave",E="onPointerEnter",x="pointer"),pe=D==null?M:Va(D),N=le==null?M:Va(le),M=new P(L,x+"leave",D,l,_),M.target=pe,M.relatedTarget=N,L=null,ea(_)===A&&(P=new P(E,x+"enter",le,l,_),P.target=N,P.relatedTarget=pe,L=P),pe=L,D&&le)t:{for(P=D,E=le,x=0,N=P;N;N=Ua(N))x++;for(N=0,L=E;L;L=Ua(L))N++;for(;0<x-N;)P=Ua(P),x--;for(;0<N-x;)E=Ua(E),N--;for(;x--;){if(P===E||E!==null&&P===E.alternate)break t;P=Ua(P),E=Ua(E)}P=null}else P=null;D!==null&&pd(H,M,D,P,!1),le!==null&&pe!==null&&pd(H,pe,le,P,!0)}}e:{if(M=A?Va(A):window,D=M.nodeName&&M.nodeName.toLowerCase(),D==="select"||D==="input"&&M.type==="file")var $=ws;else if(_s(M))if(Ls)$=_h;else{$=zh;var ie=Oh}else D=M.nodeName,!D||D.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?A&&Ci(A.elementType)&&($=ws):$=Ch;if($&&($=$(e,A))){Us(H,$,l,_);break e}ie&&ie(e,M,A),e==="focusout"&&A&&M.type==="number"&&A.memoizedProps.value!=null&&zi(M,"number",M.value)}switch(ie=A?Va(A):window,e){case"focusin":(_s(ie)||ie.contentEditable==="true")&&(fa=ie,Ki=A,en=null);break;case"focusout":en=Ki=fa=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Zs(H,l,_);break;case"selectionchange":if(wh)break;case"keydown":case"keyup":Zs(H,l,_)}var W;if(Xi)e:{switch(e){case"compositionstart":var ee="onCompositionStart";break e;case"compositionend":ee="onCompositionEnd";break e;case"compositionupdate":ee="onCompositionUpdate";break e}ee=void 0}else sa?zs(e,l)&&(ee="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ee="onCompositionStart");ee&&(Ms&&l.locale!=="ko"&&(sa||ee!=="onCompositionStart"?ee==="onCompositionEnd"&&sa&&(W=js()):(sl=_,Hi="value"in sl?sl.value:sl.textContent,sa=!0)),ie=Ju(A,ee),0<ie.length&&(ee=new As(ee,e,null,l,_),H.push({event:ee,listeners:ie}),W?ee.data=W:(W=Cs(l),W!==null&&(ee.data=W)))),(W=Th?Ah(e,l):Rh(e,l))&&(ee=Ju(A,"onBeforeInput"),0<ee.length&&(ie=new As("onBeforeInput","beforeinput",null,l,_),H.push({event:ie,listeners:ee}),ie.data=W)),v0(H,e,A,l,_)}yd(H,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ju(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ka(e,l),n!=null&&a.unshift(Dn(e,n,u)),n=Ka(e,t),n!=null&&a.push(Dn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Ua(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var f=l,y=f.alternate,A=f.stateNode;if(f=f.tag,y!==null&&y===a)break;f!==5&&f!==26&&f!==27||A===null||(y=A,n?(A=Ka(l,u),A!=null&&c.unshift(Dn(l,A,y))):n||(A=Ka(l,u),A!=null&&c.push(Dn(l,A,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var S0=/\r\n?/g,E0=/\u0000|\uFFFD/g;function bd(e){return(typeof e=="string"?e:""+e).replace(S0,`
`).replace(E0,"")}function xd(e,t){return t=bd(t),bd(e)===t}function $u(){}function ve(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":eu(e,"class",a);break;case"tabIndex":eu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":eu(e,l,a);break;case"style":xs(e,a,u);break;case"data":if(t!=="object"){eu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=au(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&ve(e,t,"name",n.name,n,null),ve(e,t,"formEncType",n.formEncType,n,null),ve(e,t,"formMethod",n.formMethod,n,null),ve(e,t,"formTarget",n.formTarget,n,null)):(ve(e,t,"encType",n.encType,n,null),ve(e,t,"method",n.method,n,null),ve(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=au(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$u);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=au(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":re("beforetoggle",e),re("toggle",e),Pn(e,"popover",a);break;case"xlinkActuate":Gt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Gt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Gt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Gt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Gt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Gt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Pn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Im.get(l)||l,Pn(e,l,a))}}function yr(e,t,l,a,n,u){switch(l){case"style":xs(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ss.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Pe]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Pn(e,l,a)}}}function Ve(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ve(e,t,u,c,l,null)}}n&&ve(e,t,"srcSet",l.srcSet,l,null),a&&ve(e,t,"src",l.src,l,null);return;case"input":re("invalid",e);var f=u=c=n=null,y=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var _=l[a];if(_!=null)switch(a){case"name":n=_;break;case"type":c=_;break;case"checked":y=_;break;case"defaultChecked":A=_;break;case"value":u=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,t));break;default:ve(e,t,a,_,l,null)}}ys(e,u,f,y,A,c,n,!1),tu(e);return;case"select":re("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:ve(e,t,n,f,l,null)}t=u,l=c,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":re("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(f=l[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:ve(e,t,c,f,l,null)}ps(e,a,n,u),tu(e);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ve(e,t,y,a,l,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<Mn.length;a++)re(Mn[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ve(e,t,A,a,l,null)}return;default:if(Ci(t)){for(_ in l)l.hasOwnProperty(_)&&(a=l[_],a!==void 0&&yr(e,t,_,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&ve(e,t,f,a,l,null))}function j0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,f=null,y=null,A=null,_=null;for(D in l){var H=l[D];if(l.hasOwnProperty(D)&&H!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":y=H;default:a.hasOwnProperty(D)||ve(e,t,D,null,a,H)}}for(var M in a){var D=a[M];if(H=l[M],a.hasOwnProperty(M)&&(D!=null||H!=null))switch(M){case"type":u=D;break;case"name":n=D;break;case"checked":A=D;break;case"defaultChecked":_=D;break;case"value":c=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:D!==H&&ve(e,t,M,D,a,H)}}Oi(e,c,f,y,A,_,u,n);return;case"select":D=c=f=M=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":D=y;default:a.hasOwnProperty(u)||ve(e,t,u,null,a,y)}for(n in a)if(u=a[n],y=l[n],a.hasOwnProperty(n)&&(u!=null||y!=null))switch(n){case"value":M=u;break;case"defaultValue":f=u;break;case"multiple":c=u;default:u!==y&&ve(e,t,n,u,a,y)}t=f,l=c,a=D,M!=null?ua(e,!!l,M,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":D=M=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:ve(e,t,f,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":M=n;break;case"defaultValue":D=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&ve(e,t,c,n,a,u)}vs(e,M,D);return;case"option":for(var le in l)if(M=l[le],l.hasOwnProperty(le)&&M!=null&&!a.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:ve(e,t,le,null,a,M)}for(y in a)if(M=a[y],D=l[y],a.hasOwnProperty(y)&&M!==D&&(M!=null||D!=null))switch(y){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:ve(e,t,y,M,a,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)M=l[P],l.hasOwnProperty(P)&&M!=null&&!a.hasOwnProperty(P)&&ve(e,t,P,null,a,M);for(A in a)if(M=a[A],D=l[A],a.hasOwnProperty(A)&&M!==D&&(M!=null||D!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:ve(e,t,A,M,a,D)}return;default:if(Ci(t)){for(var pe in l)M=l[pe],l.hasOwnProperty(pe)&&M!==void 0&&!a.hasOwnProperty(pe)&&yr(e,t,pe,void 0,a,M);for(_ in a)M=a[_],D=l[_],!a.hasOwnProperty(_)||M===D||M===void 0&&D===void 0||yr(e,t,_,M,a,D);return}}for(var E in l)M=l[E],l.hasOwnProperty(E)&&M!=null&&!a.hasOwnProperty(E)&&ve(e,t,E,null,a,M);for(H in a)M=a[H],D=l[H],!a.hasOwnProperty(H)||M===D||M==null&&D==null||ve(e,t,H,M,a,D)}var vr=null,pr=null;function Wu(e){return e.nodeType===9?e:e.ownerDocument}function Sd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ed(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function br(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xr=null;function N0(){var e=window.event;return e&&e.type==="popstate"?e===xr?!1:(xr=e,!0):(xr=null,!1)}var jd=typeof setTimeout=="function"?setTimeout:void 0,T0=typeof clearTimeout=="function"?clearTimeout:void 0,Nd=typeof Promise=="function"?Promise:void 0,A0=typeof queueMicrotask=="function"?queueMicrotask:typeof Nd<"u"?function(e){return Nd.resolve(null).then(e).catch(R0)}:jd;function R0(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function Td(e,t){var l=t,a=0,n=0;do{var u=l.nextSibling;if(e.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(0<a&&8>a){l=a;var c=e.ownerDocument;if(l&1&&On(c.documentElement),l&2&&On(c.body),l&4)for(l=c.head,On(l),c=l.firstChild;c;){var f=c.nextSibling,y=c.nodeName;c[Za]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=f}}if(n===0){e.removeChild(u),Bn(t);return}n--}else l==="$"||l==="$?"||l==="$!"?n++:a=l.charCodeAt(0)-48;else a=0;l=u}while(l);Bn(t)}function Sr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Sr(l),Ai(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function M0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Za])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Dt(e.nextSibling),e===null)break}return null}function D0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Dt(e.nextSibling),e===null))return null;return e}function Er(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function O0(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Dt(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==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var jr=null;function Ad(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function Rd(e,t,l){switch(t=Wu(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ai(e)}var Nt=new Map,Md=new Set;function Fu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var tl=k.d;k.d={f:z0,r:C0,D:_0,C:U0,L:w0,m:L0,X:B0,S:H0,M:q0};function z0(){var e=tl.f(),t=Xu();return e||t}function C0(e){var t=ta(e);t!==null&&t.tag===5&&t.type==="form"?kf(t):tl.r(e)}var wa=typeof document>"u"?null:document;function Dd(e,t,l){var a=wa;if(a&&typeof t=="string"&&t){var n=vt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Md.has(n)||(Md.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ve(t,"link",e),Be(t),a.head.appendChild(t)))}}function _0(e){tl.D(e),Dd("dns-prefetch",e,null)}function U0(e,t){tl.C(e,t),Dd("preconnect",e,t)}function w0(e,t,l){tl.L(e,t,l);var a=wa;if(a&&e&&t){var n='link[rel="preload"][as="'+vt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+vt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+vt(l.imageSizes)+'"]')):n+='[href="'+vt(e)+'"]';var u=n;switch(t){case"style":u=La(e);break;case"script":u=Ha(e)}Nt.has(u)||(e=j({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Nt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(zn(u))||t==="script"&&a.querySelector(Cn(u))||(t=a.createElement("link"),Ve(t,"link",e),Be(t),a.head.appendChild(t)))}}function L0(e,t){tl.m(e,t);var l=wa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+vt(a)+'"][href="'+vt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ha(e)}if(!Nt.has(u)&&(e=j({rel:"modulepreload",href:e},t),Nt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Cn(u)))return}a=l.createElement("link"),Ve(a,"link",e),Be(a),l.head.appendChild(a)}}}function H0(e,t,l){tl.S(e,t,l);var a=wa;if(a&&e){var n=la(a).hoistableStyles,u=La(e);t=t||"default";var c=n.get(u);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(zn(u)))f.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Nt.get(u))&&Nr(e,l);var y=c=a.createElement("link");Be(y),Ve(y,"link",e),y._p=new Promise(function(A,_){y.onload=A,y.onerror=_}),y.addEventListener("load",function(){f.loading|=1}),y.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Iu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(u,c)}}}function B0(e,t){tl.X(e,t);var l=wa;if(l&&e){var a=la(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(e=j({src:e,async:!0},t),(t=Nt.get(n))&&Tr(e,t),u=l.createElement("script"),Be(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function q0(e,t){tl.M(e,t);var l=wa;if(l&&e){var a=la(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(e=j({src:e,async:!0,type:"module"},t),(t=Nt.get(n))&&Tr(e,t),u=l.createElement("script"),Be(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Od(e,t,l,a){var n=(n=ae.current)?Fu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=La(l.href),l=la(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=La(l.href);var u=la(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(zn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Nt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Nt.set(e,l),u||Y0(n,e,l,c.state))),t&&a===null)throw Error(s(528,""));return c}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(l),l=la(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function La(e){return'href="'+vt(e)+'"'}function zn(e){return'link[rel="stylesheet"]['+e+"]"}function zd(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Y0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ve(t,"link",l),Be(t),e.head.appendChild(t))}function Ha(e){return'[src="'+vt(e)+'"]'}function Cn(e){return"script[async]"+e}function Cd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+vt(l.href)+'"]');if(a)return t.instance=a,Be(a),a;var n=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Be(a),Ve(a,"style",n),Iu(a,l.precedence,e),t.instance=a;case"stylesheet":n=La(l.href);var u=e.querySelector(zn(n));if(u)return t.state.loading|=4,t.instance=u,Be(u),u;a=zd(l),(n=Nt.get(n))&&Nr(a,n),u=(e.ownerDocument||e).createElement("link"),Be(u);var c=u;return c._p=new Promise(function(f,y){c.onload=f,c.onerror=y}),Ve(u,"link",a),t.state.loading|=4,Iu(u,l.precedence,e),t.instance=u;case"script":return u=Ha(l.src),(n=e.querySelector(Cn(u)))?(t.instance=n,Be(n),n):(a=l,(n=Nt.get(u))&&(a=j({},l),Tr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Be(n),Ve(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Iu(a,l.precedence,e));return t.instance}function Iu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Nr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Tr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pu=null;function _d(e,t,l){if(Pu===null){var a=new Map,n=Pu=new Map;n.set(l,a)}else n=Pu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Za]||u[Je]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(u):a.set(c,[u])}}return a}function Ud(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function G0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function wd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var _n=null;function X0(){}function Q0(e,t,l){if(_n===null)throw Error(s(475));var a=_n;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=La(l.href),u=e.querySelector(zn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=ei.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=u,Be(u);return}u=e.ownerDocument||e,l=zd(l),(n=Nt.get(n))&&Nr(l,n),u=u.createElement("link"),Be(u);var c=u;c._p=new Promise(function(f,y){c.onload=f,c.onerror=y}),Ve(u,"link",l),t.instance=u}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=ei.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Z0(){if(_n===null)throw Error(s(475));var e=_n;return e.stylesheets&&e.count===0&&Ar(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&Ar(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function ei(){if(this.count--,this.count===0){if(this.stylesheets)Ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ti=null;function Ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ti=new Map,t.forEach(V0,e),ti=null,ei.call(e))}function V0(e,t){if(!(t.state.loading&4)){var l=ti.get(e);if(l)var a=l.get(null);else{l=new Map,ti.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=ei.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Un={$$typeof:O,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function K0(e,t,l,a,n,u,c,f){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function Ld(e,t,l,a,n,u,c,f,y,A,_,H){return e=new K0(e,t,l,c,f,y,A,H),t=1,u===!0&&(t|=24),u=st(3,null,null,t),e.current=u,u.stateNode=e,t=cc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},oc(u),e}function Hd(e){return e?(e=ha,e):ha}function Bd(e,t,l,a,n,u){n=Hd(n),a.context===null?a.context=n:a.pendingContext=n,a=dl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=ml(e,a,t),l!==null&&(ht(l,e,t),fn(l,e,t))}function qd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Rr(e,t){qd(e,t),(e=e.alternate)&&qd(e,t)}function Yd(e){if(e.tag===13){var t=ma(e,67108864);t!==null&&ht(t,e,67108864),Rr(e,67108864)}}var li=!0;function k0(e,t,l,a){var n=U.T;U.T=null;var u=k.p;try{k.p=2,Mr(e,t,l,a)}finally{k.p=u,U.T=n}}function J0(e,t,l,a){var n=U.T;U.T=null;var u=k.p;try{k.p=8,Mr(e,t,l,a)}finally{k.p=u,U.T=n}}function Mr(e,t,l,a){if(li){var n=Dr(a);if(n===null)gr(e,t,a,ai,l),Xd(e,a);else if(W0(n,e,t,l,a))a.stopPropagation();else if(Xd(e,a),t&4&&-1<$0.indexOf(e)){for(;n!==null;){var u=ta(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=wl(u.pendingLanes);if(c!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var y=1<<31-ct(c);f.entanglements[1]|=y,c&=~y}Lt(u),(he&6)===0&&(Yu=zt()+500,Rn(0))}}break;case 13:f=ma(u,2),f!==null&&ht(f,u,2),Xu(),Rr(u,2)}if(u=Dr(a),u===null&&gr(e,t,a,ai,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else gr(e,t,a,null,l)}}function Dr(e){return e=Ui(e),Or(e)}var ai=null;function Or(e){if(ai=null,e=ea(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ai=e,null}function Gd(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Um()){case Pr:return 2;case es:return 8;case $n:case wm:return 32;case ts:return 268435456;default:return 32}default:return 32}}var zr=!1,Al=null,Rl=null,Ml=null,wn=new Map,Ln=new Map,Dl=[],$0="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".split(" ");function Xd(e,t){switch(e){case"focusin":case"focusout":Al=null;break;case"dragenter":case"dragleave":Rl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ln.delete(t.pointerId)}}function Hn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ta(t),t!==null&&Yd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function W0(e,t,l,a,n){switch(t){case"focusin":return Al=Hn(Al,e,t,l,a,n),!0;case"dragenter":return Rl=Hn(Rl,e,t,l,a,n),!0;case"mouseover":return Ml=Hn(Ml,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return wn.set(u,Hn(wn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Ln.set(u,Hn(Ln.get(u)||null,e,t,l,a,n)),!0}return!1}function Qd(e){var t=ea(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,Qm(e.priority,function(){if(l.tag===13){var a=mt();a=ji(a);var n=ma(l,a);n!==null&&ht(n,l,a),Rr(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Dr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);_i=a,l.target.dispatchEvent(a),_i=null}else return t=ta(l),t!==null&&Yd(t),e.blockedOn=l,!1;t.shift()}return!0}function Zd(e,t,l){ni(e)&&l.delete(t)}function F0(){zr=!1,Al!==null&&ni(Al)&&(Al=null),Rl!==null&&ni(Rl)&&(Rl=null),Ml!==null&&ni(Ml)&&(Ml=null),wn.forEach(Zd),Ln.forEach(Zd)}function ui(e,t){e.blockedOn===t&&(e.blockedOn=null,zr||(zr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,F0)))}var ii=null;function Vd(e){ii!==e&&(ii=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ii===e&&(ii=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Or(a||l)===null)continue;break}var u=ta(l);u!==null&&(e.splice(t,3),t-=3,Oc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Bn(e){function t(y){return ui(y,e)}Al!==null&&ui(Al,e),Rl!==null&&ui(Rl,e),Ml!==null&&ui(Ml,e),wn.forEach(t),Ln.forEach(t);for(var l=0;l<Dl.length;l++){var a=Dl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Dl.length&&(l=Dl[0],l.blockedOn===null);)Qd(l),l.blockedOn===null&&Dl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[Pe]||null;if(typeof u=="function")c||Vd(l);else if(c){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Pe]||null)f=c.formAction;else if(Or(n)!==null)continue}else f=c.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Vd(l)}}}function Cr(e){this._internalRoot=e}ci.prototype.render=Cr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=mt();Bd(l,a,e,t,null,null)},ci.prototype.unmount=Cr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bd(e.current,2,null,e,null,null),Xu(),t[Pl]=null}};function ci(e){this._internalRoot=e}ci.prototype.unstable_scheduleHydration=function(e){if(e){var t=is();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Dl.length&&t!==0&&t<Dl[l].priority;l++);Dl.splice(l,0,e),l===0&&Qd(e)}};var Kd=d.version;if(Kd!=="19.1.0")throw Error(s(527,Kd,"19.1.0"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var I0={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ri=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ri.isDisabled&&ri.supportsFiber)try{Ga=ri.inject(I0),it=ri}catch{}}return Yn.createRoot=function(e,t){if(!m(e))throw Error(s(299));var l=!1,a="",n=co,u=ro,c=so,f=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(f=t.unstable_transitionCallbacks)),t=Ld(e,1,!1,null,null,l,a,n,u,c,f,null),e[Pl]=t.current,hr(e),new Cr(t)},Yn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(s(299));var a=!1,n="",u=co,c=ro,f=so,y=null,A=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(y=l.unstable_transitionCallbacks),l.formState!==void 0&&(A=l.formState)),t=Ld(e,1,!0,t,l??null,a,n,u,c,f,y,A),t.context=Hd(null),l=t.current,a=mt(),a=ji(a),n=dl(a),n.callback=null,ml(l,n,a),l=a,t.current.lanes=l,Qa(t,l),Lt(t),e[Pl]=t.current,hr(e),new ci(t)},Yn.version="19.1.0",Yn}var lm;function sg(){if(lm)return wr.exports;lm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(d){console.error(d)}}return i(),wr.exports=rg(),wr.exports}var fg=sg();const og=gm(fg);var Gn={},am;function dg(){if(am)return Gn;am=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.parse=p,Gn.serialize=h;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,d=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,m=Object.prototype.toString,g=(()=>{const T=function(){};return T.prototype=Object.create(null),T})();function p(T,q){const w=new g,Q=T.length;if(Q<2)return w;const Z=(q==null?void 0:q.decode)||j;let z=0;do{const V=T.indexOf("=",z);if(V===-1)break;const O=T.indexOf(";",z),G=O===-1?Q:O;if(V>G){z=T.lastIndexOf(";",V-1)+1;continue}const B=R(T,z,V),F=v(T,V,B),X=T.slice(B,F);if(w[X]===void 0){let de=R(T,V+1,G),Ee=v(T,G,de);const Fe=Z(T.slice(de,Ee));w[X]=Fe}z=G+1}while(z<Q);return w}function R(T,q,w){do{const Q=T.charCodeAt(q);if(Q!==32&&Q!==9)return q}while(++q<w);return w}function v(T,q,w){for(;q>w;){const Q=T.charCodeAt(--q);if(Q!==32&&Q!==9)return q+1}return w}function h(T,q,w){const Q=(w==null?void 0:w.encode)||encodeURIComponent;if(!i.test(T))throw new TypeError(`argument name is invalid: ${T}`);const Z=Q(q);if(!d.test(Z))throw new TypeError(`argument val is invalid: ${q}`);let z=T+"="+Z;if(!w)return z;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);z+="; Max-Age="+w.maxAge}if(w.domain){if(!o.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);z+="; Domain="+w.domain}if(w.path){if(!s.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);z+="; Path="+w.path}if(w.expires){if(!C(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);z+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(z+="; HttpOnly"),w.secure&&(z+="; Secure"),w.partitioned&&(z+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":z+="; Priority=Low";break;case"medium":z+="; Priority=Medium";break;case"high":z+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":z+="; SameSite=Strict";break;case"lax":z+="; SameSite=Lax";break;case"none":z+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return z}function j(T){if(T.indexOf("%")===-1)return T;try{return decodeURIComponent(T)}catch{return T}}function C(T){return m.call(T)==="[object Date]"}return Gn}dg();var nm="popstate";function mg(i={}){function d(s,m){let{pathname:g,search:p,hash:R}=s.location;return Qr("",{pathname:g,search:p,hash:R},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function o(s,m){return typeof m=="string"?m:Zn(m)}return gg(d,o,null,i)}function Ae(i,d){if(i===!1||i===null||typeof i>"u")throw new Error(d)}function Bt(i,d){if(!i){typeof console<"u"&&console.warn(d);try{throw new Error(d)}catch{}}}function hg(){return Math.random().toString(36).substring(2,10)}function um(i,d){return{usr:i.state,key:i.key,idx:d}}function Qr(i,d,o=null,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof d=="string"?qa(d):d,state:o,key:d&&d.key||s||hg()}}function Zn({pathname:i="/",search:d="",hash:o=""}){return d&&d!=="?"&&(i+=d.charAt(0)==="?"?d:"?"+d),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function qa(i){let d={};if(i){let o=i.indexOf("#");o>=0&&(d.hash=i.substring(o),i=i.substring(0,o));let s=i.indexOf("?");s>=0&&(d.search=i.substring(s),i=i.substring(0,s)),i&&(d.pathname=i)}return d}function gg(i,d,o,s={}){let{window:m=document.defaultView,v5Compat:g=!1}=s,p=m.history,R="POP",v=null,h=j();h==null&&(h=0,p.replaceState({...p.state,idx:h},""));function j(){return(p.state||{idx:null}).idx}function C(){R="POP";let Z=j(),z=Z==null?null:Z-h;h=Z,v&&v({action:R,location:Q.location,delta:z})}function T(Z,z){R="PUSH";let V=Qr(Q.location,Z,z);h=j()+1;let O=um(V,h),G=Q.createHref(V);try{p.pushState(O,"",G)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;m.location.assign(G)}g&&v&&v({action:R,location:Q.location,delta:1})}function q(Z,z){R="REPLACE";let V=Qr(Q.location,Z,z);h=j();let O=um(V,h),G=Q.createHref(V);p.replaceState(O,"",G),g&&v&&v({action:R,location:Q.location,delta:0})}function w(Z){return yg(Z)}let Q={get action(){return R},get location(){return i(m,p)},listen(Z){if(v)throw new Error("A history only accepts one active listener");return m.addEventListener(nm,C),v=Z,()=>{m.removeEventListener(nm,C),v=null}},createHref(Z){return d(m,Z)},createURL:w,encodeLocation(Z){let z=w(Z);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:T,replace:q,go(Z){return p.go(Z)}};return Q}function yg(i,d=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(o,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:Zn(i);return s=s.replace(/ $/,"%20"),!d&&s.startsWith("//")&&(s=o+s),new URL(s,o)}function ym(i,d,o="/"){return vg(i,d,o,!1)}function vg(i,d,o,s){let m=typeof d=="string"?qa(d):d,g=nl(m.pathname||"/",o);if(g==null)return null;let p=vm(i);pg(p);let R=null;for(let v=0;R==null&&v<p.length;++v){let h=Dg(g);R=Rg(p[v],h,s)}return R}function vm(i,d=[],o=[],s=""){let m=(g,p,R)=>{let v={relativePath:R===void 0?g.path||"":R,caseSensitive:g.caseSensitive===!0,childrenIndex:p,route:g};v.relativePath.startsWith("/")&&(Ae(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length));let h=al([s,v.relativePath]),j=o.concat(v);g.children&&g.children.length>0&&(Ae(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),vm(g.children,d,j,h)),!(g.path==null&&!g.index)&&d.push({path:h,score:Tg(h,g.index),routesMeta:j})};return i.forEach((g,p)=>{var R;if(g.path===""||!((R=g.path)!=null&&R.includes("?")))m(g,p);else for(let v of pm(g.path))m(g,p,v)}),d}function pm(i){let d=i.split("/");if(d.length===0)return[];let[o,...s]=d,m=o.endsWith("?"),g=o.replace(/\?$/,"");if(s.length===0)return m?[g,""]:[g];let p=pm(s.join("/")),R=[];return R.push(...p.map(v=>v===""?g:[g,v].join("/"))),m&&R.push(...p),R.map(v=>i.startsWith("/")&&v===""?"/":v)}function pg(i){i.sort((d,o)=>d.score!==o.score?o.score-d.score:Ag(d.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var bg=/^:[\w-]+$/,xg=3,Sg=2,Eg=1,jg=10,Ng=-2,im=i=>i==="*";function Tg(i,d){let o=i.split("/"),s=o.length;return o.some(im)&&(s+=Ng),d&&(s+=Sg),o.filter(m=>!im(m)).reduce((m,g)=>m+(bg.test(g)?xg:g===""?Eg:jg),s)}function Ag(i,d){return i.length===d.length&&i.slice(0,-1).every((s,m)=>s===d[m])?i[i.length-1]-d[d.length-1]:0}function Rg(i,d,o=!1){let{routesMeta:s}=i,m={},g="/",p=[];for(let R=0;R<s.length;++R){let v=s[R],h=R===s.length-1,j=g==="/"?d:d.slice(g.length)||"/",C=mi({path:v.relativePath,caseSensitive:v.caseSensitive,end:h},j),T=v.route;if(!C&&h&&o&&!s[s.length-1].route.index&&(C=mi({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},j)),!C)return null;Object.assign(m,C.params),p.push({params:m,pathname:al([g,C.pathname]),pathnameBase:_g(al([g,C.pathnameBase])),route:T}),C.pathnameBase!=="/"&&(g=al([g,C.pathnameBase]))}return p}function mi(i,d){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,s]=Mg(i.path,i.caseSensitive,i.end),m=d.match(o);if(!m)return null;let g=m[0],p=g.replace(/(.)\/+$/,"$1"),R=m.slice(1);return{params:s.reduce((h,{paramName:j,isOptional:C},T)=>{if(j==="*"){let w=R[T]||"";p=g.slice(0,g.length-w.length).replace(/(.)\/+$/,"$1")}const q=R[T];return C&&!q?h[j]=void 0:h[j]=(q||"").replace(/%2F/g,"/"),h},{}),pathname:g,pathnameBase:p,pattern:i}}function Mg(i,d=!1,o=!0){Bt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,R,v)=>(s.push({paramName:R,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(s.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,d?void 0:"i"),s]}function Dg(i){try{return i.split("/").map(d=>decodeURIComponent(d).replace(/\//g,"%2F")).join("/")}catch(d){return Bt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${d}).`),i}}function nl(i,d){if(d==="/")return i;if(!i.toLowerCase().startsWith(d.toLowerCase()))return null;let o=d.endsWith("/")?d.length-1:d.length,s=i.charAt(o);return s&&s!=="/"?null:i.slice(o)||"/"}function Og(i,d="/"){let{pathname:o,search:s="",hash:m=""}=typeof i=="string"?qa(i):i;return{pathname:o?o.startsWith("/")?o:zg(o,d):d,search:Ug(s),hash:wg(m)}}function zg(i,d){let o=d.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?o.length>1&&o.pop():m!=="."&&o.push(m)}),o.length>1?o.join("/"):"/"}function qr(i,d,o,s){return`Cannot include a '${i}' character in a manually specified \`to.${d}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cg(i){return i.filter((d,o)=>o===0||d.route.path&&d.route.path.length>0)}function bm(i){let d=Cg(i);return d.map((o,s)=>s===d.length-1?o.pathname:o.pathnameBase)}function xm(i,d,o,s=!1){let m;typeof i=="string"?m=qa(i):(m={...i},Ae(!m.pathname||!m.pathname.includes("?"),qr("?","pathname","search",m)),Ae(!m.pathname||!m.pathname.includes("#"),qr("#","pathname","hash",m)),Ae(!m.search||!m.search.includes("#"),qr("#","search","hash",m)));let g=i===""||m.pathname==="",p=g?"/":m.pathname,R;if(p==null)R=o;else{let C=d.length-1;if(!s&&p.startsWith("..")){let T=p.split("/");for(;T[0]==="..";)T.shift(),C-=1;m.pathname=T.join("/")}R=C>=0?d[C]:"/"}let v=Og(m,R),h=p&&p!=="/"&&p.endsWith("/"),j=(g||p===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(h||j)&&(v.pathname+="/"),v}var al=i=>i.join("/").replace(/\/\/+/g,"/"),_g=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Ug=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,wg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function Lg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var Sm=["POST","PUT","PATCH","DELETE"];new Set(Sm);var Hg=["GET",...Sm];new Set(Hg);var Ya=S.createContext(null);Ya.displayName="DataRouter";var hi=S.createContext(null);hi.displayName="DataRouterState";var Em=S.createContext({isTransitioning:!1});Em.displayName="ViewTransition";var Bg=S.createContext(new Map);Bg.displayName="Fetchers";var qg=S.createContext(null);qg.displayName="Await";var qt=S.createContext(null);qt.displayName="Navigation";var Vn=S.createContext(null);Vn.displayName="Location";var ul=S.createContext({outlet:null,matches:[],isDataRoute:!1});ul.displayName="Route";var Kr=S.createContext(null);Kr.displayName="RouteError";function Yg(i,{relative:d}={}){Ae(Kn(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=S.useContext(qt),{hash:m,pathname:g,search:p}=kn(i,{relative:d}),R=g;return o!=="/"&&(R=g==="/"?o:al([o,g])),s.createHref({pathname:R,search:p,hash:m})}function Kn(){return S.useContext(Vn)!=null}function Cl(){return Ae(Kn(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Vn).location}var jm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nm(i){S.useContext(qt).static||S.useLayoutEffect(i)}function Gg(){let{isDataRoute:i}=S.useContext(ul);return i?ey():Xg()}function Xg(){Ae(Kn(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(Ya),{basename:d,navigator:o}=S.useContext(qt),{matches:s}=S.useContext(ul),{pathname:m}=Cl(),g=JSON.stringify(bm(s)),p=S.useRef(!1);return Nm(()=>{p.current=!0}),S.useCallback((v,h={})=>{if(Bt(p.current,jm),!p.current)return;if(typeof v=="number"){o.go(v);return}let j=xm(v,JSON.parse(g),m,h.relative==="path");i==null&&d!=="/"&&(j.pathname=j.pathname==="/"?d:al([d,j.pathname])),(h.replace?o.replace:o.push)(j,h.state,h)},[d,o,g,m,i])}S.createContext(null);function kn(i,{relative:d}={}){let{matches:o}=S.useContext(ul),{pathname:s}=Cl(),m=JSON.stringify(bm(o));return S.useMemo(()=>xm(i,JSON.parse(m),s,d==="path"),[i,m,s,d])}function Qg(i,d){return Tm(i,d)}function Tm(i,d,o,s){var z;Ae(Kn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=S.useContext(qt),{matches:g}=S.useContext(ul),p=g[g.length-1],R=p?p.params:{},v=p?p.pathname:"/",h=p?p.pathnameBase:"/",j=p&&p.route;{let V=j&&j.path||"";Am(v,!j||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${V}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let C=Cl(),T;if(d){let V=typeof d=="string"?qa(d):d;Ae(h==="/"||((z=V.pathname)==null?void 0:z.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${V.pathname}" was given in the \`location\` prop.`),T=V}else T=C;let q=T.pathname||"/",w=q;if(h!=="/"){let V=h.replace(/^\//,"").split("/");w="/"+q.replace(/^\//,"").split("/").slice(V.length).join("/")}let Q=ym(i,{pathname:w});Bt(j||Q!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),Bt(Q==null||Q[Q.length-1].route.element!==void 0||Q[Q.length-1].route.Component!==void 0||Q[Q.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Z=Jg(Q&&Q.map(V=>Object.assign({},V,{params:Object.assign({},R,V.params),pathname:al([h,m.encodeLocation?m.encodeLocation(V.pathname).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?h:al([h,m.encodeLocation?m.encodeLocation(V.pathnameBase).pathname:V.pathnameBase])})),g,o,s);return d&&Z?S.createElement(Vn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},Z):Z}function Zg(){let i=Pg(),d=Lg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:s},g={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:g},"ErrorBoundary")," or"," ",S.createElement("code",{style:g},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},d),o?S.createElement("pre",{style:m},o):null,p)}var Vg=S.createElement(Zg,null),Kg=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,d){return d.location!==i.location||d.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:d.error,location:d.location,revalidation:i.revalidation||d.revalidation}}componentDidCatch(i,d){console.error("React Router caught the following error during render",i,d)}render(){return this.state.error!==void 0?S.createElement(ul.Provider,{value:this.props.routeContext},S.createElement(Kr.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kg({routeContext:i,match:d,children:o}){let s=S.useContext(Ya);return s&&s.static&&s.staticContext&&(d.route.errorElement||d.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=d.route.id),S.createElement(ul.Provider,{value:i},o)}function Jg(i,d=[],o=null,s=null){if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(d.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let m=i,g=o==null?void 0:o.errors;if(g!=null){let v=m.findIndex(h=>h.route.id&&(g==null?void 0:g[h.route.id])!==void 0);Ae(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(g).join(",")}`),m=m.slice(0,Math.min(m.length,v+1))}let p=!1,R=-1;if(o)for(let v=0;v<m.length;v++){let h=m[v];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(R=v),h.route.id){let{loaderData:j,errors:C}=o,T=h.route.loader&&!j.hasOwnProperty(h.route.id)&&(!C||C[h.route.id]===void 0);if(h.route.lazy||T){p=!0,R>=0?m=m.slice(0,R+1):m=[m[0]];break}}}return m.reduceRight((v,h,j)=>{let C,T=!1,q=null,w=null;o&&(C=g&&h.route.id?g[h.route.id]:void 0,q=h.route.errorElement||Vg,p&&(R<0&&j===0?(Am("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,w=null):R===j&&(T=!0,w=h.route.hydrateFallbackElement||null)));let Q=d.concat(m.slice(0,j+1)),Z=()=>{let z;return C?z=q:T?z=w:h.route.Component?z=S.createElement(h.route.Component,null):h.route.element?z=h.route.element:z=v,S.createElement(kg,{match:h,routeContext:{outlet:v,matches:Q,isDataRoute:o!=null},children:z})};return o&&(h.route.ErrorBoundary||h.route.errorElement||j===0)?S.createElement(Kg,{location:o.location,revalidation:o.revalidation,component:q,error:C,children:Z(),routeContext:{outlet:null,matches:Q,isDataRoute:!0}}):Z()},null)}function kr(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function $g(i){let d=S.useContext(Ya);return Ae(d,kr(i)),d}function Wg(i){let d=S.useContext(hi);return Ae(d,kr(i)),d}function Fg(i){let d=S.useContext(ul);return Ae(d,kr(i)),d}function Jr(i){let d=Fg(i),o=d.matches[d.matches.length-1];return Ae(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function Ig(){return Jr("useRouteId")}function Pg(){var s;let i=S.useContext(Kr),d=Wg("useRouteError"),o=Jr("useRouteError");return i!==void 0?i:(s=d.errors)==null?void 0:s[o]}function ey(){let{router:i}=$g("useNavigate"),d=Jr("useNavigate"),o=S.useRef(!1);return Nm(()=>{o.current=!0}),S.useCallback(async(m,g={})=>{Bt(o.current,jm),o.current&&(typeof m=="number"?i.navigate(m):await i.navigate(m,{fromRouteId:d,...g}))},[i,d])}var cm={};function Am(i,d,o){!d&&!cm[i]&&(cm[i]=!0,Bt(!1,o))}S.memo(ty);function ty({routes:i,future:d,state:o}){return Tm(i,void 0,o,d)}function Tt(i){Ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ly({basename:i="/",children:d=null,location:o,navigationType:s="POP",navigator:m,static:g=!1}){Ae(!Kn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),R=S.useMemo(()=>({basename:p,navigator:m,static:g,future:{}}),[p,m,g]);typeof o=="string"&&(o=qa(o));let{pathname:v="/",search:h="",hash:j="",state:C=null,key:T="default"}=o,q=S.useMemo(()=>{let w=nl(v,p);return w==null?null:{location:{pathname:w,search:h,hash:j,state:C,key:T},navigationType:s}},[p,v,h,j,C,T,s]);return Bt(q!=null,`<Router basename="${p}"> is not able to match the URL "${v}${h}${j}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:S.createElement(qt.Provider,{value:R},S.createElement(Vn.Provider,{children:d,value:q}))}function ay({children:i,location:d}){return Qg(Zr(i),d)}function Zr(i,d=[]){let o=[];return S.Children.forEach(i,(s,m)=>{if(!S.isValidElement(s))return;let g=[...d,m];if(s.type===S.Fragment){o.push.apply(o,Zr(s.props.children,g));return}Ae(s.type===Tt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ae(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||g.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Zr(s.props.children,g)),o.push(p)}),o}var fi="get",oi="application/x-www-form-urlencoded";function gi(i){return i!=null&&typeof i.tagName=="string"}function ny(i){return gi(i)&&i.tagName.toLowerCase()==="button"}function uy(i){return gi(i)&&i.tagName.toLowerCase()==="form"}function iy(i){return gi(i)&&i.tagName.toLowerCase()==="input"}function cy(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function ry(i,d){return i.button===0&&(!d||d==="_self")&&!cy(i)}var si=null;function sy(){if(si===null)try{new FormData(document.createElement("form"),0),si=!1}catch{si=!0}return si}var fy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yr(i){return i!=null&&!fy.has(i)?(Bt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oi}"`),null):i}function oy(i,d){let o,s,m,g,p;if(uy(i)){let R=i.getAttribute("action");s=R?nl(R,d):null,o=i.getAttribute("method")||fi,m=Yr(i.getAttribute("enctype"))||oi,g=new FormData(i)}else if(ny(i)||iy(i)&&(i.type==="submit"||i.type==="image")){let R=i.form;if(R==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||R.getAttribute("action");if(s=v?nl(v,d):null,o=i.getAttribute("formmethod")||R.getAttribute("method")||fi,m=Yr(i.getAttribute("formenctype"))||Yr(R.getAttribute("enctype"))||oi,g=new FormData(R,i),!sy()){let{name:h,type:j,value:C}=i;if(j==="image"){let T=h?`${h}.`:"";g.append(`${T}x`,"0"),g.append(`${T}y`,"0")}else h&&g.append(h,C)}}else{if(gi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=fi,s=null,m=oi,p=i}return g&&m==="text/plain"&&(p=g,g=void 0),{action:s,method:o.toLowerCase(),encType:m,formData:g,body:p}}function $r(i,d){if(i===!1||i===null||typeof i>"u")throw new Error(d)}async function dy(i,d){if(i.id in d)return d[i.id];try{let o=await import(i.module);return d[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function my(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function hy(i,d,o){let s=await Promise.all(i.map(async m=>{let g=d.routes[m.route.id];if(g){let p=await dy(g,o);return p.links?p.links():[]}return[]}));return py(s.flat(1).filter(my).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function rm(i,d,o,s,m,g){let p=(v,h)=>o[h]?v.route.id!==o[h].route.id:!0,R=(v,h)=>{var j;return o[h].pathname!==v.pathname||((j=o[h].route.path)==null?void 0:j.endsWith("*"))&&o[h].params["*"]!==v.params["*"]};return g==="assets"?d.filter((v,h)=>p(v,h)||R(v,h)):g==="data"?d.filter((v,h)=>{var C;let j=s.routes[v.route.id];if(!j||!j.hasLoader)return!1;if(p(v,h)||R(v,h))return!0;if(v.route.shouldRevalidate){let T=v.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((C=o[0])==null?void 0:C.params)||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function gy(i,d,{includeHydrateFallback:o}={}){return yy(i.map(s=>{let m=d.routes[s.route.id];if(!m)return[];let g=[m.module];return m.clientActionModule&&(g=g.concat(m.clientActionModule)),m.clientLoaderModule&&(g=g.concat(m.clientLoaderModule)),o&&m.hydrateFallbackModule&&(g=g.concat(m.hydrateFallbackModule)),m.imports&&(g=g.concat(m.imports)),g}).flat(1))}function yy(i){return[...new Set(i)]}function vy(i){let d={},o=Object.keys(i).sort();for(let s of o)d[s]=i[s];return d}function py(i,d){let o=new Set;return new Set(d),i.reduce((s,m)=>{let g=JSON.stringify(vy(m));return o.has(g)||(o.add(g),s.push({key:g,link:m})),s},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var by=new Set([100,101,204,205]);function xy(i,d){let o=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o.pathname==="/"?o.pathname="_root.data":d&&nl(o.pathname,d)==="/"?o.pathname=`${d.replace(/\/$/,"")}/_root.data`:o.pathname=`${o.pathname.replace(/\/$/,"")}.data`,o}function Rm(){let i=S.useContext(Ya);return $r(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Sy(){let i=S.useContext(hi);return $r(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Wr=S.createContext(void 0);Wr.displayName="FrameworkContext";function Mm(){let i=S.useContext(Wr);return $r(i,"You must render this element inside a <HydratedRouter> element"),i}function Ey(i,d){let o=S.useContext(Wr),[s,m]=S.useState(!1),[g,p]=S.useState(!1),{onFocus:R,onBlur:v,onMouseEnter:h,onMouseLeave:j,onTouchStart:C}=d,T=S.useRef(null);S.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let Q=z=>{z.forEach(V=>{p(V.isIntersecting)})},Z=new IntersectionObserver(Q,{threshold:.5});return T.current&&Z.observe(T.current),()=>{Z.disconnect()}}},[i]),S.useEffect(()=>{if(s){let Q=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(Q)}}},[s]);let q=()=>{m(!0)},w=()=>{m(!1),p(!1)};return o?i!=="intent"?[g,T,{}]:[g,T,{onFocus:Xn(R,q),onBlur:Xn(v,w),onMouseEnter:Xn(h,q),onMouseLeave:Xn(j,w),onTouchStart:Xn(C,q)}]:[!1,T,{}]}function Xn(i,d){return o=>{i&&i(o),o.defaultPrevented||d(o)}}function jy({page:i,...d}){let{router:o}=Rm(),s=S.useMemo(()=>ym(o.routes,i,o.basename),[o.routes,i,o.basename]);return s?S.createElement(Ty,{page:i,matches:s,...d}):null}function Ny(i){let{manifest:d,routeModules:o}=Mm(),[s,m]=S.useState([]);return S.useEffect(()=>{let g=!1;return hy(i,d,o).then(p=>{g||m(p)}),()=>{g=!0}},[i,d,o]),s}function Ty({page:i,matches:d,...o}){let s=Cl(),{manifest:m,routeModules:g}=Mm(),{basename:p}=Rm(),{loaderData:R,matches:v}=Sy(),h=S.useMemo(()=>rm(i,d,v,m,s,"data"),[i,d,v,m,s]),j=S.useMemo(()=>rm(i,d,v,m,s,"assets"),[i,d,v,m,s]),C=S.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let w=new Set,Q=!1;if(d.forEach(z=>{var O;let V=m.routes[z.route.id];!V||!V.hasLoader||(!h.some(G=>G.route.id===z.route.id)&&z.route.id in R&&((O=g[z.route.id])!=null&&O.shouldRevalidate)||V.hasClientLoader?Q=!0:w.add(z.route.id))}),w.size===0)return[];let Z=xy(i,p);return Q&&w.size>0&&Z.searchParams.set("_routes",d.filter(z=>w.has(z.route.id)).map(z=>z.route.id).join(",")),[Z.pathname+Z.search]},[p,R,s,m,h,d,i,g]),T=S.useMemo(()=>gy(j,m),[j,m]),q=Ny(j);return S.createElement(S.Fragment,null,C.map(w=>S.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...o})),T.map(w=>S.createElement("link",{key:w,rel:"modulepreload",href:w,...o})),q.map(({key:w,link:Q})=>S.createElement("link",{key:w,...Q})))}function Ay(...i){return d=>{i.forEach(o=>{typeof o=="function"?o(d):o!=null&&(o.current=d)})}}var Dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dm&&(window.__reactRouterVersion="7.6.2")}catch{}function Ry({basename:i,children:d,window:o}){let s=S.useRef();s.current==null&&(s.current=mg({window:o,v5Compat:!0}));let m=s.current,[g,p]=S.useState({action:m.action,location:m.location}),R=S.useCallback(v=>{S.startTransition(()=>p(v))},[p]);return S.useLayoutEffect(()=>m.listen(R),[m,R]),S.createElement(ly,{basename:i,children:d,location:g.location,navigationType:g.action,navigator:m})}var Om=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ot=S.forwardRef(function({onClick:d,discover:o="render",prefetch:s="none",relative:m,reloadDocument:g,replace:p,state:R,target:v,to:h,preventScrollReset:j,viewTransition:C,...T},q){let{basename:w}=S.useContext(qt),Q=typeof h=="string"&&Om.test(h),Z,z=!1;if(typeof h=="string"&&Q&&(Z=h,Dm))try{let Ee=new URL(window.location.href),Fe=h.startsWith("//")?new URL(Ee.protocol+h):new URL(h),gt=nl(Fe.pathname,w);Fe.origin===Ee.origin&&gt!=null?h=gt+Fe.search+Fe.hash:z=!0}catch{Bt(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let V=Yg(h,{relative:m}),[O,G,B]=Ey(s,T),F=zy(h,{replace:p,state:R,target:v,preventScrollReset:j,relative:m,viewTransition:C});function X(Ee){d&&d(Ee),Ee.defaultPrevented||F(Ee)}let de=S.createElement("a",{...T,...B,href:Z||V,onClick:z||g?d:X,ref:Ay(q,G),target:v,"data-discover":!Q&&o==="render"?"true":void 0});return O&&!Q?S.createElement(S.Fragment,null,de,S.createElement(jy,{page:V})):de});Ot.displayName="Link";var My=S.forwardRef(function({"aria-current":d="page",caseSensitive:o=!1,className:s="",end:m=!1,style:g,to:p,viewTransition:R,children:v,...h},j){let C=kn(p,{relative:h.relative}),T=Cl(),q=S.useContext(hi),{navigator:w,basename:Q}=S.useContext(qt),Z=q!=null&&Ly(C)&&R===!0,z=w.encodeLocation?w.encodeLocation(C).pathname:C.pathname,V=T.pathname,O=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;o||(V=V.toLowerCase(),O=O?O.toLowerCase():null,z=z.toLowerCase()),O&&Q&&(O=nl(O,Q)||O);const G=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let B=V===z||!m&&V.startsWith(z)&&V.charAt(G)==="/",F=O!=null&&(O===z||!m&&O.startsWith(z)&&O.charAt(z.length)==="/"),X={isActive:B,isPending:F,isTransitioning:Z},de=B?d:void 0,Ee;typeof s=="function"?Ee=s(X):Ee=[s,B?"active":null,F?"pending":null,Z?"transitioning":null].filter(Boolean).join(" ");let Fe=typeof g=="function"?g(X):g;return S.createElement(Ot,{...h,"aria-current":de,className:Ee,ref:j,style:Fe,to:p,viewTransition:R},typeof v=="function"?v(X):v)});My.displayName="NavLink";var Dy=S.forwardRef(({discover:i="render",fetcherKey:d,navigate:o,reloadDocument:s,replace:m,state:g,method:p=fi,action:R,onSubmit:v,relative:h,preventScrollReset:j,viewTransition:C,...T},q)=>{let w=Uy(),Q=wy(R,{relative:h}),Z=p.toLowerCase()==="get"?"get":"post",z=typeof R=="string"&&Om.test(R),V=O=>{if(v&&v(O),O.defaultPrevented)return;O.preventDefault();let G=O.nativeEvent.submitter,B=(G==null?void 0:G.getAttribute("formmethod"))||p;w(G||O.currentTarget,{fetcherKey:d,method:B,navigate:o,replace:m,state:g,relative:h,preventScrollReset:j,viewTransition:C})};return S.createElement("form",{ref:q,method:Z,action:Q,onSubmit:s?v:V,...T,"data-discover":!z&&i==="render"?"true":void 0})});Dy.displayName="Form";function Oy(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function zm(i){let d=S.useContext(Ya);return Ae(d,Oy(i)),d}function zy(i,{target:d,replace:o,state:s,preventScrollReset:m,relative:g,viewTransition:p}={}){let R=Gg(),v=Cl(),h=kn(i,{relative:g});return S.useCallback(j=>{if(ry(j,d)){j.preventDefault();let C=o!==void 0?o:Zn(v)===Zn(h);R(i,{replace:C,state:s,preventScrollReset:m,relative:g,viewTransition:p})}},[v,R,h,o,s,d,i,m,g,p])}var Cy=0,_y=()=>`__${String(++Cy)}__`;function Uy(){let{router:i}=zm("useSubmit"),{basename:d}=S.useContext(qt),o=Ig();return S.useCallback(async(s,m={})=>{let{action:g,method:p,encType:R,formData:v,body:h}=oy(s,d);if(m.navigate===!1){let j=m.fetcherKey||_y();await i.fetch(j,o,m.action||g,{preventScrollReset:m.preventScrollReset,formData:v,body:h,formMethod:m.method||p,formEncType:m.encType||R,flushSync:m.flushSync})}else await i.navigate(m.action||g,{preventScrollReset:m.preventScrollReset,formData:v,body:h,formMethod:m.method||p,formEncType:m.encType||R,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,d,o])}function wy(i,{relative:d}={}){let{basename:o}=S.useContext(qt),s=S.useContext(ul);Ae(s,"useFormAction must be used inside a RouteContext");let[m]=s.matches.slice(-1),g={...kn(i||".",{relative:d})},p=Cl();if(i==null){g.search=p.search;let R=new URLSearchParams(g.search),v=R.getAll("index");if(v.some(j=>j==="")){R.delete("index"),v.filter(C=>C).forEach(C=>R.append("index",C));let j=R.toString();g.search=j?`?${j}`:""}}return(!i||i===".")&&m.route.index&&(g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(g.pathname=g.pathname==="/"?o:al([o,g.pathname])),Zn(g)}function Ly(i,d={}){let o=S.useContext(Em);Ae(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=zm("useViewTransitionState"),m=kn(i,{relative:d.relative});if(!o.isTransitioning)return!1;let g=nl(o.currentLocation.pathname,s)||o.currentLocation.pathname,p=nl(o.nextLocation.pathname,s)||o.nextLocation.pathname;return mi(m.pathname,p)!=null||mi(m.pathname,g)!=null}[...by];const Hy="inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-slate-50 disabled:opacity-60 disabled:cursor-not-allowed",sm={primary:"bg-green-600 text-white hover:bg-green-700 focus:ring-green-500",secondary:"bg-white text-slate-700 border border-slate-300 hover:bg-slate-50 focus:ring-slate-400",ghost:"bg-transparent hover:bg-slate-100 border border-transparent",nav:"bg-white/10 text-white border border-white/30 hover:bg-white/20 focus:ring-white"};function Ue({variant:i="primary",className:d="",...o}){const s=sm[i]||sm.primary;return r.jsx("button",{className:`${Hy} ${s} ${d}`,...o})}const By=({onLogout:i})=>{const[d,o]=S.useState(!1),s=Cl(),m=()=>o(!d),g=()=>o(!1),p=R=>`px-2 py-1 rounded-md text-sm transition hover:bg-white/10 ${s.pathname===R?"bg-white/20 font-semibold":""}`;return r.jsx("nav",{className:"bg-gradient-to-r from-green-700 to-green-600 text-white p-4 shadow",children:r.jsxs("div",{className:"flex items-center justify-between gap-4",children:[r.jsxs("div",{className:"font-bold text-xl flex items-center gap-2",children:[r.jsx("span",{children:"⚡"}),r.jsx("span",{children:"EVSE"})]}),r.jsxs("ul",{className:`flex-col md:flex-row md:flex gap-2 md:gap-4 ${d?"flex":"hidden"} md:!flex`,children:[r.jsx("li",{children:r.jsx(Ot,{className:p("/dashboard"),to:"/dashboard",onClick:g,children:"Início"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/settings"),to:"/settings",onClick:g,children:"Definições"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/electrical-network"),to:"/electrical-network",onClick:g,children:"Rede Elétrica"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/security"),to:"/security",onClick:g,children:"Segurança"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/connectivity"),to:"/connectivity",onClick:g,children:"Conectividade"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/load-balancing"),to:"/load-balancing",onClick:g,children:"Balanceador"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/meters"),to:"/meters",onClick:g,children:"Contadores"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/ocpp"),to:"/ocpp",onClick:g,children:"OCPP"})}),r.jsx("li",{children:r.jsx(Ot,{className:p("/scheduler"),to:"/scheduler",onClick:g,children:"Agendamento"})}),i&&r.jsx("li",{className:"md:hidden border-t border-white/20 mt-2 pt-2",children:r.jsx(Ue,{variant:"nav",className:"w-full justify-center",onClick:()=>{g(),i()},children:"Sair"})})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[i&&r.jsx(Ue,{variant:"nav",className:"hidden md:inline-flex px-3 py-1 text-sm",onClick:i,children:"Sair"}),r.jsx("button",{className:"md:hidden text-3xl",onClick:m,children:"☰"})]})]})})};function nt({title:i,children:d,wide:o=!1}){return r.jsx("div",{className:"min-h-screen bg-slate-100",children:r.jsx("div",{className:`mx-auto px-3 sm:px-4 py-4 sm:py-6 ${o?"max-w-6xl":"max-w-3xl"}`,children:r.jsxs("div",{className:"bg-white rounded-none sm:rounded-lg shadow-sm border border-slate-200 p-4 sm:p-6",children:[r.jsx("h1",{className:"text-xl sm:text-2xl font-bold mb-4 sm:mb-5",children:i}),d]})})})}function He({type:i="info",children:d}){const o="p-2 mb-2 rounded text-sm",s={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-gray-200 text-gray-800",warning:"bg-yellow-400 text-black"};return r.jsx("div",{className:`${o} ${s[i]||s.info}`,children:d})}const yi="",Fr="evseAuth";let Ba="";if(typeof window<"u"){const i=window.sessionStorage.getItem(Fr);i&&(Ba=i)}function qy(i,d){Ba=btoa(`${i}:${d}`),typeof window<"u"&&window.sessionStorage.setItem(Fr,Ba)}function di(){Ba="",typeof window<"u"&&window.sessionStorage.removeItem(Fr)}function vi(i=!0){const d={};return Ba&&(d.Authorization=`Basic ${Ba}`),i&&(d["Content-Type"]="application/json"),d}function Ir(i,d,o){throw(i.status===401||i.status===403)&&di(),new Error(`${d} ${o} failed (HTTP ${i.status})`)}async function Xe(i){const d=await fetch(`${yi}${i}`,{headers:vi(!1)});return d.ok?await d.json():Ir(d,"GET",i)}async function At(i,d){const o=await fetch(`${yi}${i}`,{method:"POST",headers:vi(!0),body:d!==void 0?JSON.stringify(d):void 0});return o.ok?await o.text():Ir(o,"POST",i)}async function fm(i){const d=await fetch(`${yi}${i}`,{method:"DELETE",headers:vi(!1)});return d.ok?await d.text():Ir(d,"DELETE",i)}async function Yy(i=0){const d=await fetch(`${yi}/api/v1/log?index=${i}`,{headers:vi(!1)});if(!d.ok)throw new Error("Failed to fetch logs");return await d.text()}function De({title:i,actions:d,children:o,className:s=""}){return r.jsxs("section",{className:`bg-white rounded-lg shadow-sm border border-slate-200 p-4 ${s}`,children:[(i||d)&&r.jsxs("header",{className:"mb-3 flex items-center justify-between gap-2",children:[i&&r.jsx("h2",{className:"text-lg font-semibold",children:i}),d&&r.jsx("div",{className:"flex gap-2",children:d})]}),o]})}function Yt({label:i="A carregar..."}){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-6 text-sm text-gray-500 gap-2",children:[r.jsx("div",{className:"w-6 h-6 border-2 border-slate-300 border-t-green-600 rounded-full animate-spin"}),i&&r.jsx("span",{children:i})]})}const Gy="/api/v1/dashboard",Xy="/api/v1/meters/live?source=GRID",Qy=15e3,om=()=>{const[i,d]=S.useState({status:"Ativo",chargers:[],energyConsumed:0,chargingTime:0,alerts:[],errors:[]}),[o,s]=S.useState(null),[m,g]=S.useState(""),[p,R]=S.useState(""),[v,h]=S.useState(null),[j,C]=S.useState(!0),T=S.useMemo(()=>[{label:"L1",idx:0},{label:"L2",idx:1},{label:"L3",idx:2}],[]),q=S.useMemo(()=>o!=null&&o.watt?o.watt.reduce((O,G)=>O+(Number.isFinite(G)?G:0),0):0,[o]),w=S.useMemo(()=>{var O;return(O=i==null?void 0:i.chargers)!=null&&O.length?i.chargers.reduce((G,B)=>G+(Number.isFinite(B.power)?B.power:0),0):0},[i]),Q=S.useMemo(()=>{var O;return(O=i==null?void 0:i.chargers)!=null&&O.length?i.chargers.filter(G=>{const B=(G.status||"").toString().toLowerCase();return B&&B!=="offline"&&!B.includes("falha")}).length:0},[i]),Z=async()=>{try{const O=await Xe(Gy);d(O),g(""),h(new Date)}catch(O){console.error("Erro ao buscar /dashboard:",O),g("Erro ao obter os dados do dashboard")}},z=async()=>{try{const O=await Xe(Xy),G=((O==null?void 0:O.meters)||[]).find(B=>(B.source||"GRID").toUpperCase()==="GRID");s(G||null),R(""),h(new Date)}catch(O){console.warn("Leituras do meter indisponíveis:",O),s(null),R("Não foi possível ler os contadores agora")}};S.useEffect(()=>{let O=!1;(async()=>{try{await Promise.all([Z(),z()])}finally{O||C(!1)}})();const B=setInterval(()=>{Z(),z()},Qy);return()=>{O=!0,clearInterval(B)}},[]);const V=()=>{const O=(i.status||"").toString().toLowerCase();return O.includes("erro")||O.includes("falha")?"bg-red-600 text-white":O.includes("standby")||O.includes("inativo")?"bg-yellow-500 text-black":"bg-green-600 text-white"};return r.jsxs(nt,{title:"Visão Geral",wide:!0,children:[m&&r.jsx(He,{type:"error",children:m}),p&&r.jsx(He,{type:"warning",children:p}),j?r.jsx(Yt,{label:"A carregar dados do sistema..."}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsx("span",{className:"text-sm text-gray-500",children:"Estado do sistema:"}),r.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold ${V()}`,children:i.status}),r.jsxs("span",{className:"text-xs text-gray-500",children:[Q," carregador(es) ativos"]})]}),r.jsxs("div",{className:"text-xs text-gray-500",children:["Última atualização:"," ",v?v.toLocaleTimeString():"—",(m||p)&&r.jsx("span",{className:"ml-2 text-red-600 font-semibold",children:"⚠ Dados possivelmente desatualizados"})]})]}),r.jsxs("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-2 xl:grid-cols-4 mb-8",children:[r.jsxs(De,{title:"Potência Rede (GRID)",children:[r.jsxs("p",{className:"text-2xl font-bold",children:[Number.isFinite(q)?q.toFixed(0):0," ",r.jsx("span",{className:"text-base font-normal text-gray-500",children:"W"})]}),r.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Energia total:"," ",(o==null?void 0:o.totalEnergy)!=null?o.totalEnergy.toFixed(1):0," ","kWh"]})]}),r.jsxs(De,{title:"Potência EVSE",children:[r.jsxs("p",{className:"text-2xl font-bold",children:[w.toFixed?w.toFixed(0):w," ",r.jsx("span",{className:"text-base font-normal text-gray-500",children:"W"})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Soma da potência de todos os carregadores."})]}),r.jsxs(De,{title:"Consumo da Sessão",children:[r.jsxs("p",{className:"text-2xl font-bold",children:[i.energyConsumed.toFixed?i.energyConsumed.toFixed(1):i.energyConsumed," ",r.jsx("span",{className:"text-base font-normal text-gray-500",children:"kWh"})]}),r.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Tempo de carregamento: ",i.chargingTime," minutos"]})]}),r.jsxs(De,{title:"Frequência da Rede",children:[r.jsxs("p",{className:"text-2xl font-bold",children:[(o==null?void 0:o.frequency)!=null?o.frequency.toFixed(2):0," ",r.jsx("span",{className:"text-base font-normal text-gray-500",children:"Hz"})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Medida pelo contador de rede configurado."})]})]}),r.jsxs("div",{className:"grid gap-6 md:grid-cols-2 mb-8",children:[r.jsxs(De,{children:[r.jsx("h2",{className:"text-lg font-semibold mb-3",children:"Alertas"}),i.alerts.length===0?r.jsx("p",{className:"text-sm text-gray-500",children:"Sem alertas no momento."}):r.jsx("ul",{className:"space-y-2",children:i.alerts.map((O,G)=>r.jsxs("li",{className:"p-2 bg-yellow-400 text-black rounded text-sm flex items-center gap-2",children:[r.jsx("span",{children:"⚠️"}),r.jsx("span",{children:O})]},G))}),r.jsx("h2",{className:"text-lg font-semibold mt-5 mb-3",children:"Erros da EVSE"}),i.errors.length===0?r.jsxs("div",{className:"p-2 bg-green-500 text-white rounded text-sm flex items-center gap-2",children:[r.jsx("span",{children:"✅"}),r.jsx("span",{children:"Nenhum erro ativo"})]}):r.jsx("ul",{className:"space-y-2",children:i.errors.map((O,G)=>r.jsxs("li",{className:"p-2 bg-red-600 text-white rounded text-sm flex items-center gap-2",children:[r.jsx("span",{children:"❗"}),r.jsx("span",{children:O})]},G))})]}),r.jsxs(De,{title:"Leituras do GRID (por fase)",children:[r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"min-w-full border border-gray-300 text-left text-sm",children:[r.jsx("thead",{className:"bg-gray-50",children:r.jsxs("tr",{children:[r.jsx("th",{className:"border-b p-2",children:"Fase"}),r.jsx("th",{className:"border-b p-2",children:"Tensão (V)"}),r.jsx("th",{className:"border-b p-2",children:"Corrente (A)"}),r.jsx("th",{className:"border-b p-2",children:"Potência (W)"})]})}),r.jsx("tbody",{children:T.map(({label:O,idx:G})=>{var B,F,X;return r.jsxs("tr",{className:"odd:bg-white even:bg-gray-50",children:[r.jsx("td",{className:"border-b p-2 font-medium",children:O}),r.jsx("td",{className:"border-b p-2",children:((B=o==null?void 0:o.vrms)==null?void 0:B[G])!=null?o.vrms[G].toFixed(1):"-"}),r.jsx("td",{className:"border-b p-2",children:((F=o==null?void 0:o.irms)==null?void 0:F[G])!=null?o.irms[G].toFixed(1):"-"}),r.jsx("td",{className:"border-b p-2",children:((X=o==null?void 0:o.watt)==null?void 0:X[G])!=null?o.watt[G].toFixed?o.watt[G].toFixed(0):o.watt[G]:"-"})]},O)})})]})}),!o&&r.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Sem dados do GRID disponíveis no momento."})]})]}),r.jsx(De,{title:"Carregadores",children:i.chargers.length===0?r.jsx("p",{className:"text-sm text-gray-500",children:"Nenhum carregador configurado."}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"min-w-full border border-gray-300 text-left text-sm table-auto",children:[r.jsx("thead",{className:"bg-gray-50",children:r.jsxs("tr",{children:[r.jsx("th",{className:"border-b p-2",children:"ID"}),r.jsx("th",{className:"border-b p-2",children:"Estado"}),r.jsx("th",{className:"border-b p-2",children:"Corrente (A)"}),r.jsx("th",{className:"border-b p-2",children:"Potência (W)"})]})}),r.jsx("tbody",{children:i.chargers.map(O=>r.jsxs("tr",{className:"odd:bg-white even:bg-gray-50",children:[r.jsx("td",{className:"border-b p-2",children:O.id}),r.jsx("td",{className:"border-b p-2",children:r.jsxs("span",{className:`px-2 py-0.5 rounded-full text-xs inline-flex items-center gap-2 ${(O.status||"").toString().toLowerCase()==="ativo"?"bg-green-100 text-green-800":"bg-gray-200 text-gray-800"}`,children:[r.jsx("span",{className:`w-2 h-2 rounded-full ${(O.status||"").toString().toLowerCase()==="ativo"?"bg-green-500":"bg-gray-400"}`}),O.status]})}),r.jsx("td",{className:"border-b p-2",children:O.current}),r.jsx("td",{className:"border-b p-2",children:O.power})]},O.id))})]})})})]})]})};function Qn({children:i,className:d=""}){return r.jsx("h2",{className:`text-xl font-semibold mt-4 mb-2 ${d}`,children:i})}const Ht=(i,d,o,s=d)=>{const m=Number.isFinite(i)?i:parseInt(i,10);return Number.isFinite(m)?Math.max(d,Math.min(o,m)):s},Zy=()=>{const[i,d]=S.useState(32),[o,s]=S.useState("32"),[m,g]=S.useState("0"),[p,R]=S.useState("0"),[v,h]=S.useState("0"),[j,C]=S.useState("60"),[T,q]=S.useState(""),[w,Q]=S.useState(""),[Z,z]=S.useState(!0),V=async()=>{q(""),Q(""),z(!0);try{const B=await Xe("/api/v1/config/settings");typeof B.maxCurrentLimit=="number"&&d(B.maxCurrentLimit),typeof B.currentLimit=="number"&&s(String(B.currentLimit)),typeof B.powerLimit=="number"&&g(String(B.powerLimit)),typeof B.energyLimit=="number"&&R(String(B.energyLimit)),typeof B.chargingTimeLimit=="number"&&h(String(B.chargingTimeLimit)),typeof B.temperatureLimit=="number"&&C(String(B.temperatureLimit))}catch{Q("Erro ao obter as configurações")}finally{z(!1)}};S.useEffect(()=>{V()},[]);const O=async B=>{B.preventDefault(),q(""),Q("");const F={currentLimit:Ht(o,0,i,0),powerLimit:Ht(m,0,999999,0),energyLimit:Ht(p,0,999999,0),chargingTimeLimit:Ht(v,0,999999,0),temperatureLimit:Ht(j,0,120,60)};try{await At("/api/v1/config/settings",F),q("Alterações guardadas com sucesso!"),s(String(F.currentLimit)),g(String(F.powerLimit)),R(String(F.energyLimit)),h(String(F.chargingTimeLimit)),C(String(F.temperatureLimit))}catch{Q("Erro ao guardar alterações.")}},G="border border-gray-300 rounded px-3 py-2 w-full";return r.jsxs(nt,{title:"Definições de Energia",children:[T&&r.jsx(He,{type:"success",children:T}),w&&r.jsx(He,{type:"error",children:w}),Z?r.jsx(Yt,{}):r.jsx(De,{children:r.jsxs("form",{className:"flex flex-col gap-6",onSubmit:O,children:[r.jsx(Qn,{children:"Limites de Corrente e Potência"}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"currentLimit",children:"Limite de Corrente (A):"}),r.jsx("input",{id:"currentLimit",type:"number",className:G,value:o,onChange:B=>s(B.target.value),onBlur:()=>s(String(Ht(o,0,i,0))),max:i,min:0}),r.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Máximo permitido pelo equipamento: ",i," A"]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"powerLimit",children:"Limite de Potência (W):"}),r.jsx("input",{id:"powerLimit",type:"number",className:G,value:m,onChange:B=>g(B.target.value),onBlur:()=>g(String(Ht(m,0,999999,0))),min:0})]}),r.jsx(Qn,{className:"mt-2",children:"Limites de Energia / Tempo / Temperatura"}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"energyLimit",children:"Limite de Energia (kWh):"}),r.jsx("input",{id:"energyLimit",type:"number",className:G,value:p,onChange:B=>R(B.target.value),onBlur:()=>R(String(Ht(p,0,999999,0))),min:0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"chargingTimeLimit",children:"Tempo Máximo de Carregamento (min):"}),r.jsx("input",{id:"chargingTimeLimit",type:"number",className:G,value:v,onChange:B=>h(B.target.value),onBlur:()=>h(String(Ht(v,0,999999,0))),min:0})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"temperatureLimit",children:"Temperatura Máxima (°C):"}),r.jsx("input",{id:"temperatureLimit",type:"number",className:G,value:j,onChange:B=>C(B.target.value),onBlur:()=>C(String(Ht(j,0,120,60))),min:0})]}),r.jsx("div",{className:"mt-2",children:r.jsx(Ue,{type:"submit",children:"Guardar"})})]})})]})},Vy=[{value:"open",label:"Sem autorização"},{value:"local",label:"RFID local"},{value:"ocpp",label:"RFID via OCPP"}],Ky=()=>{const[i,d]=S.useState("open"),[o,s]=S.useState([]),[m,g]=S.useState([]),[p,R]=S.useState(""),[v,h]=S.useState(""),[j,C]=S.useState(""),[T,q]=S.useState(!0),w=async()=>{try{const X=await Xe("/api/v1/config/auth-mode");X!=null&&X.mode&&d(X.mode)}catch(X){console.error(X),C("Erro ao buscar modo de autenticação.")}},Q=async()=>{try{await At("/api/v1/config/auth-mode",{mode:i}),h("Modo de autorização atualizado!")}catch(X){console.error(X),C("Erro ao salvar modo de autorização.")}},Z=async()=>{try{const X=await Xe("/api/v1/config/users");s(X.users||[])}catch(X){console.error(X),C("Erro ao buscar utilizadores.")}},z=async()=>{try{const X=await Xe("/api/v1/config/tags");g(X.tags||[])}catch(X){console.error(X),C("Erro ao buscar tags.")}},V=async X=>{X.preventDefault();try{await At("/api/v1/config/tags/register"),h("Modo de registo ativado. Passe o cartão no leitor...")}catch(de){console.error(de),C("Erro ao ativar modo de registo.")}},O=async()=>{if(p.trim())try{await At("/api/v1/config/users",p),h("Utilizador adicionado com sucesso!"),R(""),Z()}catch(X){console.error(X),C("Erro ao adicionar utilizador.")}},G=async X=>{try{await fm(`/api/v1/config/users?username=${encodeURIComponent(X)}`),h("Utilizador removido com sucesso!"),Z()}catch(de){console.error(de),C("Erro ao remover utilizador.")}},B=async X=>{try{await fm(`/api/v1/config/tags?tag=${encodeURIComponent(X)}`),h("Tag removida com sucesso!"),z()}catch(de){console.error(de),C("Erro ao remover tag.")}};S.useEffect(()=>{(async()=>{try{await Promise.all([w(),Z(),z()])}finally{q(!1)}})()},[]);const F=i==="local";return T?r.jsx(nt,{title:"Segurança",children:r.jsx(Yt,{})}):r.jsxs(nt,{title:"Segurança",children:[v&&r.jsx(He,{type:"success",children:v}),j&&r.jsx(He,{type:"error",children:j}),r.jsx(De,{title:"Modo de Autorização",className:"mb-6",children:r.jsxs("div",{className:"flex flex-col gap-3 max-w-md",children:[r.jsx("select",{className:"border border-gray-300 rounded px-3 py-2",value:i,onChange:X=>d(X.target.value),children:Vy.map(X=>r.jsx("option",{value:X.value,children:X.label},X.value))}),r.jsx(Ue,{onClick:Q,className:"w-fit",children:"Guardar"}),r.jsxs("p",{className:"text-sm text-gray-600",children:[i==="open"&&"Sem autenticação: qualquer utilizador pode iniciar carga.",i==="local"&&"RFID Local: validação contra a lista armazenada no dispositivo.",i==="ocpp"&&"RFID via OCPP: validação remota no servidor (CSMS). Configure em “OCPP”."]})]})}),r.jsx(De,{title:"Adicionar Cartões",className:`mb-6 ${F?"":"opacity-50 pointer-events-none select-none"}`,children:r.jsxs("form",{className:"flex flex-col gap-2",onSubmit:V,children:[r.jsx(Ue,{type:"submit",variant:"secondary",className:"w-fit",children:"Iniciar Registo"}),!F&&r.jsx("p",{className:"text-sm text-gray-600",children:"Disponível apenas no modo “RFID Local”."})]})}),r.jsxs(De,{title:"Tags Registadas",className:`mb-6 ${F?"":"opacity-50 pointer-events-none select-none"}`,children:[m.length===0?r.jsx("p",{className:"text-gray-500",children:"Nenhuma tag registrada."}):r.jsxs("table",{className:"min-w-full border border-gray-300 text-left table-auto text-sm",children:[r.jsx("thead",{className:"bg-gray-100",children:r.jsxs("tr",{children:[r.jsx("th",{className:"border-b p-2 font-medium text-gray-700",children:"Tag"}),r.jsx("th",{className:"border-b p-2 font-medium text-gray-700",children:"Ações"})]})}),r.jsx("tbody",{children:m.map((X,de)=>r.jsxs("tr",{className:"hover:bg-gray-50",children:[r.jsx("td",{className:"border-b p-2",children:X}),r.jsx("td",{className:"border-b p-2",children:r.jsx(Ue,{type:"button",variant:"ghost",className:"text-red-600 px-2 py-1",onClick:()=>B(X),children:"Remover"})})]},de))})]}),!F&&r.jsx("p",{className:"text-sm text-gray-600 mt-2",children:"Gestão de tags apenas no modo “RFID Local”."})]}),r.jsxs(De,{title:"Utilizadores",className:"mb-6",children:[r.jsx("div",{className:"overflow-x-auto mb-4",children:r.jsxs("table",{className:"min-w-full border border-gray-300 text-left table-auto text-sm",children:[r.jsx("thead",{className:"bg-gray-100",children:r.jsxs("tr",{children:[r.jsx("th",{className:"border-b p-2 font-medium text-gray-700",children:"Nome de Utilizador"}),r.jsx("th",{className:"border-b p-2 font-medium text-gray-700",children:"Ações"})]})}),r.jsx("tbody",{children:o.map((X,de)=>r.jsxs("tr",{className:"hover:bg-gray-50",children:[r.jsx("td",{className:"border-b p-2",children:X.username}),r.jsx("td",{className:"border-b p-2",children:r.jsx(Ue,{type:"button",variant:"ghost",className:"text-red-600 px-2 py-1",onClick:()=>G(X.username),children:"Remover"})})]},de))})]})}),r.jsxs("div",{className:"mt-2 max-w-md",children:[r.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full mb-2",value:p,onChange:X=>R(X.target.value),placeholder:"Digite o nome de utilizador"}),r.jsx(Ue,{className:"w-full",onClick:O,children:"Adicionar Novo Utilizador"})]})]})]})},dm="mqtt.plixin.com",mm=1883,ky=()=>{const[i,d]=S.useState(!0),[o,s]=S.useState({enabled:!1,ssid:"",password:""}),[m,g]=S.useState(""),[p,R]=S.useState({enabled:!1,host:dm,port:mm,username:"",password:"",topic:"",periodicity:30}),[v,h]=S.useState("");S.useEffect(()=>{(async()=>{try{const q=await Xe("/api/v1/config/wifi");s(q)}catch(q){console.error("Erro ao carregar configurações Wi-Fi:",q)}try{const q=await Xe("/api/v1/config/mqtt");R(w=>{var Q;return{...w,...q,host:(Q=q==null?void 0:q.host)!=null&&Q.trim()?q.host:w.host,port:typeof(q==null?void 0:q.port)=="number"?q.port:w.port,periodicity:typeof(q==null?void 0:q.periodicity)=="number"?q.periodicity:w.periodicity}})}catch(q){console.error("Erro ao carregar configurações MQTT:",q)}d(!1)})()},[]);const j=async()=>{try{await At("/api/v1/config/wifi",o),g("Alterações guardadas com sucesso!")}catch{g("Erro ao guardar alterações.")}},C=async()=>{var T;try{const q={...p,host:(T=p.host)!=null&&T.trim()?p.host:dm,port:p.port??mm,periodicity:p.periodicity??30};await At("/api/v1/config/mqtt",q),h("Alterações guardadas com sucesso!")}catch{h("Erro ao guardar alterações.")}};return r.jsx(nt,{title:"Conectividade",children:i?r.jsx(Yt,{}):r.jsxs(r.Fragment,{children:[m&&r.jsx(He,{type:m.startsWith("Erro")?"error":"success",children:m}),r.jsx(De,{title:"Configuração Wi-Fi",className:"mb-6",children:r.jsxs("form",{className:"flex flex-col gap-4",onSubmit:T=>{T.preventDefault(),j()},children:[r.jsx("div",{children:r.jsxs("label",{className:"flex items-center gap-2",children:["Ativar WIFI",r.jsx("input",{type:"checkbox",checked:o.enabled,onChange:T=>s({...o,enabled:T.target.checked})})]})}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"wifi-ssid",children:"SSID:"}),r.jsx("input",{id:"wifi-ssid",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${o.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:o.ssid,onChange:T=>s({...o,ssid:T.target.value}),disabled:!o.enabled})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"wifi-password",children:"Palavra-passe:"}),r.jsx("input",{id:"wifi-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${o.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:o.password,onChange:T=>s({...o,password:T.target.value}),disabled:!o.enabled})]}),r.jsx("div",{children:r.jsx(Ue,{type:"submit",children:"Guardar"})})]})}),v&&r.jsx(He,{type:v.startsWith("Erro")?"error":"success",children:v}),r.jsx(De,{title:"Ligação à Cloud (MQTT)",children:r.jsxs("form",{className:"flex flex-col gap-4",onSubmit:T=>{T.preventDefault(),C()},children:[r.jsx("div",{children:r.jsxs("label",{className:"flex items-center gap-2",children:["Ativar",r.jsx("input",{type:"checkbox",checked:p.enabled,onChange:T=>R({...p,enabled:T.target.checked})})]})}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"mqtt-username",children:"Utilizador:"}),r.jsx("input",{id:"mqtt-username",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.username,onChange:T=>R({...p,username:T.target.value}),disabled:!p.enabled})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"mqtt-password",children:"Palavra-passe:"}),r.jsx("input",{id:"mqtt-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.password,onChange:T=>R({...p,password:T.target.value}),disabled:!p.enabled})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"mqtt-topic",children:"Tópico:"}),r.jsx("input",{id:"mqtt-topic",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.topic,onChange:T=>R({...p,topic:T.target.value}),disabled:!p.enabled})]}),r.jsx("div",{children:r.jsx(Ue,{type:"submit",children:"Guardar"})})]})})]})})},Jy=()=>{const[i,d]=S.useState(null),[o,s]=S.useState(!0),[m,g]=S.useState({enabled:!1,url:"",chargeBoxId:""}),[p,R]=S.useState("");S.useEffect(()=>{(async()=>{try{const C=await Xe("/api/v1/ocpp");d(C)}catch{}try{const C=await Xe("/api/v1/config/ocpp");g(C)}catch{}s(!1)})()},[]);const v=async()=>{R("");try{await At("/api/v1/config/ocpp",m),R("Alterações guardadas com sucesso!")}catch{R("Erro ao guardar alterações.")}};if(o)return r.jsx(nt,{title:"OCPP",children:r.jsx(Yt,{})});const h=p.startsWith("Erro");return r.jsxs(nt,{title:"OCPP",children:[p&&r.jsx(He,{type:h?"error":"success",children:p}),r.jsx(De,{title:"Configuração OCPP",children:r.jsxs("form",{className:"flex flex-col gap-4",onSubmit:j=>{j.preventDefault(),v()},children:[r.jsx("div",{children:r.jsxs("label",{className:"flex items-center gap-2",children:["Ativar OCPP",r.jsx("input",{type:"checkbox",checked:m.enabled,onChange:j=>g({...m,enabled:j.target.checked})})]})}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"ocpp-url",children:"Servidor:"}),r.jsx("input",{id:"ocpp-url",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:m.url,onChange:j=>g({...m,url:j.target.value}),disabled:!m.enabled})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"ocpp-id",children:"Charge Box ID:"}),r.jsx("input",{id:"ocpp-id",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:m.chargeBoxId,onChange:j=>g({...m,chargeBoxId:j.target.value}),disabled:!m.enabled})]}),r.jsx("div",{children:r.jsx(Ue,{type:"submit",children:"Guardar"})})]})}),i&&r.jsx(De,{title:"Estado da Ligação",className:"mt-4",children:r.jsxs("div",{className:"text-sm text-gray-700 space-y-1",children:[r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Estado:"})," ",i.connected?"Ligado":"Desligado"]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Servidor:"})," ",i.server||"-"]}),r.jsxs("div",{children:[r.jsx("span",{className:"font-medium",children:"Charge ID:"})," ",i.charge_id||"-"]})]})})]})};function $y(){const[i,d]=S.useState(!0),[o,s]=S.useState(""),[m,g]=S.useState(""),[p,R]=S.useState({earthFault:!1,rcm:!1});S.useEffect(()=>{(async()=>{try{const j=await Xe("/api/v1/config/settings");j.security&&R(j.security)}catch(j){console.error("Erro ao carregar configurações:",j),g("Erro ao carregar configurações.")}finally{d(!1)}})()},[]);const v=async()=>{s(""),g("");try{await At("/api/v1/config/settings",{security:p}),s("Alterações guardadas com sucesso!")}catch(h){console.error("Erro ao salvar configuração:",h),g("Erro ao guardar alterações.")}};return r.jsxs(nt,{title:"Segurança Elétrica",children:[o&&r.jsx(He,{type:"success",children:o}),m&&r.jsx(He,{type:"error",children:m}),i?r.jsx(Yt,{}):r.jsx(De,{title:"Proteção de Segurança Elétrica",children:r.jsxs("form",{className:"flex flex-col gap-4",onSubmit:h=>{h.preventDefault(),v()},children:[r.jsxs("div",{children:[r.jsxs("label",{className:"flex items-center gap-2",children:["Detecção de Falha de Aterramento",r.jsx("input",{type:"checkbox",checked:p.earthFault,onChange:h=>R({...p,earthFault:h.target.checked})})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Desliga o carregamento em caso de falha de isolamento/terra."})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"flex items-center gap-2",children:["Proteção RCM",r.jsx("input",{type:"checkbox",checked:p.rcm,onChange:h=>R({...p,rcm:h.target.checked})})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Monitorização de corrente residual (proteção adicional contra fugas)."})]}),r.jsx("div",{children:r.jsx(Ue,{type:"submit",children:"Guardar"})})]})})]})}const Wy=["NENHUM","ORNO-513","ORNO-516","ORNO-526","DTS-6619","DDS-661","EA-777","DTS-024M","MONO-ZIGBEE","TRIF-ZIGBEE"],Fy=["NENHUM","IC ADE","ORNO-513","ORNO-516","ORNO-526","DTS-6619","DDS-661","EA-777","DTS-024M"];function Iy(){const[i,d]=S.useState(!0),[o,s]=S.useState(""),[m,g]=S.useState(""),[p,R]=S.useState("NENHUM"),[v,h]=S.useState("NENHUM");S.useEffect(()=>{(async()=>{try{const T=await Xe("/api/v1/config/meters");T!=null&&T.gridmeter&&R(T.gridmeter),T!=null&&T.evsemeter&&h(T.evsemeter)}catch(T){console.error("Erro ao carregar configurações:",T),g("Falha ao carregar configurações.")}finally{d(!1)}})()},[]);const j=async()=>{s(""),g("");try{await At("/api/v1/config/meters",{gridmeter:p,evsemeter:v}),s("Alterações guardadas com sucesso!")}catch(C){console.error("Erro ao guardar configuração:",C),g("Erro ao guardar alterações.")}};return r.jsxs(nt,{title:"Configuração de Contadores",children:[o&&r.jsx(He,{type:"success",children:o}),m&&r.jsx(He,{type:"error",children:m}),i?r.jsx(Yt,{}):r.jsx(De,{children:r.jsxs("form",{className:"flex flex-col gap-6",onSubmit:C=>{C.preventDefault(),j()},children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Contador de Rede"}),r.jsx("label",{className:"block mb-1",children:"Modelo de Contador de Rede:"}),r.jsx("select",{value:p,onChange:C=>R(C.target.value),className:"border border-gray-300 rounded px-3 py-2 w-full",children:Wy.map(C=>r.jsx("option",{value:C,children:C},C))})]}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Contador EVSE"}),r.jsx("label",{className:"block mb-1",children:"Modelo de Contador EVSE:"}),r.jsx("select",{value:v,onChange:C=>h(C.target.value),className:"border border-gray-300 rounded px-3 py-2 w-full",children:Fy.map(C=>r.jsx("option",{value:C,children:C},C))})]}),r.jsx("div",{children:r.jsx(Ue,{type:"submit",children:"Guardar"})})]})})]})}const ll=(i,d,o,s)=>{const m=Number.isFinite(i)?i:parseInt(i,10);return Number.isFinite(m)?Math.min(o,Math.max(d,m)):s};function Py(){const[i,d]=S.useState(!0),[o,s]=S.useState(""),[m,g]=S.useState(""),[p,R]=S.useState(!1),[v,h]=S.useState(!1),[j,C]=S.useState({enabled:!1,gridLimit:{enabled:!1,maxImportA:"32"},pv:{enabled:!1,maxImportW:"0"}}),[T,q]=S.useState({linkEnabled:!1,linkMode:"MASTER",linkSelfId:"0"});S.useEffect(()=>{(async()=>{var V,O,G,B;try{const F=await Xe("/api/v1/config/loadbalancing");F&&C({enabled:!!F.enabled,gridLimit:{enabled:!!((V=F.gridLimit)!=null&&V.enabled),maxImportA:String(Number.isFinite((O=F.gridLimit)==null?void 0:O.maxImportA)?F.gridLimit.maxImportA:32)},pv:{enabled:!!((G=F.pv)!=null&&G.enabled),maxImportW:String(Number.isFinite((B=F.pv)==null?void 0:B.maxImportW)?F.pv.maxImportW:0)}});const X=await Xe("/api/v1/config/link");X&&q({linkEnabled:!!X.linkEnabled,linkMode:X.linkMode||"MASTER",linkSelfId:String(Number.isFinite(X.linkSelfId)?X.linkSelfId:0)})}catch(F){console.error("Erro ao carregar configurações:",F),g("Erro ao carregar configurações")}finally{d(!1)}})()},[]);const w=()=>{s(""),g("")},Q=async()=>{w(),R(!0);try{await At("/api/v1/config/loadbalancing",{enabled:j.enabled,gridLimit:{enabled:j.gridLimit.enabled,maxImportA:ll(j.gridLimit.maxImportA,6,100,32)},pv:{enabled:j.pv.enabled,maxImportW:ll(j.pv.maxImportW,0,1e5,0)}}),s("Configuração de balanceamento guardada com sucesso!"),C(z=>({...z,gridLimit:{...z.gridLimit,maxImportA:String(ll(z.gridLimit.maxImportA,6,100,32))},pv:{...z.pv,maxImportW:String(ll(z.pv.maxImportW,0,1e5,0))}}))}catch(z){console.error("Erro ao salvar balanceamento:",z),g("Erro ao guardar balanceamento.")}finally{R(!1)}},Z=async()=>{w(),h(!0);try{await At("/api/v1/config/link",{linkEnabled:T.linkEnabled,linkMode:T.linkMode,linkSelfId:ll(T.linkSelfId,0,254,0)}),s("Configuração do Link guardada com sucesso!"),q(z=>({...z,linkSelfId:String(ll(z.linkSelfId,0,254,0))}))}catch(z){console.error("Erro ao salvar link:",z),g("Erro ao guardar configuração do Link.")}finally{h(!1)}};return i?r.jsx(nt,{title:"Configurações de Balanceamento",children:r.jsx(Yt,{})}):r.jsxs(nt,{title:"Configurações de Balanceamento",children:[o&&r.jsx(He,{type:"success",children:o}),m&&r.jsx(He,{type:"error",children:m}),r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsxs(De,{title:"Load Balancer",children:[r.jsxs("label",{className:"flex items-center gap-2 mb-4",children:[r.jsx("input",{type:"checkbox",checked:j.enabled,onChange:z=>C({...j,enabled:z.target.checked})}),"Ativar Load Balancer"]}),r.jsxs("div",{className:"border rounded p-3 mb-4",children:[r.jsx("div",{className:"font-medium mb-2",children:"Grid Limit"}),r.jsxs("label",{className:"flex items-center gap-2 mb-2",children:[r.jsx("input",{type:"checkbox",checked:j.gridLimit.enabled,onChange:z=>C({...j,gridLimit:{...j.gridLimit,enabled:z.target.checked}})}),"Ativar limite de importação da rede"]}),r.jsxs("label",{className:"block",children:["Max Import (A):",r.jsx("input",{type:"number",min:6,max:100,className:"border px-2 py-1 ml-2 w-24 rounded",value:j.gridLimit.maxImportA,onChange:z=>C({...j,gridLimit:{...j.gridLimit,maxImportA:z.target.value}}),onBlur:()=>C(z=>({...z,gridLimit:{...z.gridLimit,maxImportA:String(ll(z.gridLimit.maxImportA,6,100,32))}})),disabled:!j.gridLimit.enabled})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Limita a corrente total importada da rede (A)."})]}),r.jsxs("div",{className:"border rounded p-3",children:[r.jsx("div",{className:"font-medium mb-2",children:"PV Optimizer"}),r.jsxs("label",{className:"flex items-center gap-2 mb-2",children:[r.jsx("input",{type:"checkbox",checked:j.pv.enabled,onChange:z=>C({...j,pv:{...j.pv,enabled:z.target.checked}})}),"Ativar otimização por PV"]}),r.jsxs("label",{className:"block",children:["Max Import (W):",r.jsx("input",{type:"number",min:0,max:1e5,className:"border px-2 py-1 ml-2 w-32 rounded",value:j.pv.maxImportW,onChange:z=>C({...j,pv:{...j.pv,maxImportW:z.target.value}}),onBlur:()=>C(z=>({...z,pv:{...z.pv,maxImportW:String(ll(z.pv.maxImportW,0,1e5,0))}})),disabled:!j.pv.enabled})]}),r.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Define quanta potência da rede pode ser usada durante a carga.",r.jsx("br",{}),"0W = apenas PV (sem importar potência da rede, sempre que possível)."]})]}),r.jsx("div",{className:"mt-4",children:r.jsx(Ue,{type:"button",onClick:Q,disabled:p||v,children:p?"A guardar...":"Guardar Load Balancer"})})]}),r.jsxs(De,{title:"Configuração do Link EVSE",children:[r.jsxs("label",{className:"flex items-center gap-2 mb-2",children:[r.jsx("input",{type:"checkbox",checked:T.linkEnabled,onChange:z=>q({...T,linkEnabled:z.target.checked})}),"Habilitar Link"]}),r.jsxs("div",{className:"mb-2",children:[r.jsx("label",{className:"mr-2",children:"Modo:"}),r.jsxs("select",{value:T.linkMode,onChange:z=>q({...T,linkMode:z.target.value}),className:"border px-2 py-1 rounded",children:[r.jsx("option",{value:"MASTER",children:"MASTER"}),r.jsx("option",{value:"SLAVE",children:"SLAVE"})]})]}),r.jsxs("label",{className:"block",children:["ID do Dispositivo:",r.jsx("input",{type:"number",min:0,max:254,className:"border px-2 py-1 ml-2 w-24 rounded",value:T.linkSelfId,onChange:z=>q({...T,linkSelfId:z.target.value}),onBlur:()=>q(z=>({...z,linkSelfId:String(ll(z.linkSelfId,0,254,0))}))})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Use IDs únicos quando tiver vários dispositivos ligados no mesmo barramento (RS485, CAN, etc.)."}),r.jsx("div",{className:"mt-4",children:r.jsx(Ue,{type:"button",onClick:Z,disabled:p||v,children:v?"A guardar...":"Guardar Link"})})]})]})]})}const hm=[{startTime:"08:00",endTime:"18:00",endIs24:!1,currentA:"32"}],Gr="border border-gray-300 rounded px-3 py-2 w-full",Xr="bg-gray-200 text-gray-500 cursor-not-allowed",zl=(i,d,o)=>{const s=Number.isFinite(i)?i:parseInt(i,10);return Number.isFinite(s)?Math.max(d,Math.min(o,s)):d},ev=(i,d)=>{const o=(i==null?void 0:i.endTime)==="24:00";return{startTime:(i==null?void 0:i.startTime)||"00:00",endTime:o?"23:59":(i==null?void 0:i.endTime)||"23:59",endIs24:o,currentA:String(zl((i==null?void 0:i.currentA)??16,6,d))}};function tv(){var V;const[i,d]=S.useState(!0),[o,s]=S.useState(""),[m,g]=S.useState(""),[p,R]=S.useState(32),[v,h]=S.useState({enabled:!1,windows:hm,allowedNow:!0,currentLimitNowA:0}),j=async()=>{d(!0),g("");try{const[O,G]=await Promise.all([Xe("/api/v1/config/scheduler"),Xe("/api/v1/config/settings")]),B=typeof(G==null?void 0:G.maxCurrentLimit)=="number"&&G.maxCurrentLimit>0?G.maxCurrentLimit:32;R(B);const F=Array.isArray(O==null?void 0:O.windows)&&O.windows.length?O.windows.map(X=>ev(X,B)):hm.map(X=>({...X,currentA:String(zl(X.currentA,6,B))}));h(X=>({...X,enabled:!!(O!=null&&O.enabled),windows:F,allowedNow:!!(O!=null&&O.allowedNow),currentLimitNowA:typeof(O==null?void 0:O.currentLimitNowA)=="number"?zl(O.currentLimitNowA,0,B):X.currentLimitNowA??0}))}catch(O){console.error("Erro ao carregar scheduler/settings:",O),g("Erro ao carregar configurações de agendamento.")}finally{d(!1)}};S.useEffect(()=>{j()},[]);const C=S.useMemo(()=>{if(!v.enabled)return{ok:!0};if(!Array.isArray(v.windows)||v.windows.length===0)return{ok:!1,msg:"Adiciona pelo menos uma janela."};if(v.windows.length>4)return{ok:!1,msg:"Máximo de 4 janelas."};for(let O=0;O<v.windows.length;O++){const G=v.windows[O];if(!G.startTime)return{ok:!1,msg:`Janela #${O+1}: startTime inválido.`};if(!G.endTime&&!G.endIs24)return{ok:!1,msg:`Janela #${O+1}: endTime inválido.`};const B=zl(G.currentA,6,p);if(B<6||B>p)return{ok:!1,msg:`Janela #${O+1}: corrente inválida (6–${p}A).`}}return{ok:!0}},[v.enabled,v.windows,p]),T=async()=>{if(s(""),g(""),!C.ok){g(C.msg||"Configuração inválida.");return}try{const O=v.enabled?{enabled:!0,mode:"daily_multi",windows:(v.windows||[]).slice(0,4).map(G=>({startTime:G.startTime||"00:00",endTime:G.endIs24?"24:00":G.endTime||"23:59",currentA:zl(G.currentA,6,p)}))}:{enabled:!1};await At("/api/v1/config/scheduler",O),s("Alterações guardadas com sucesso!"),await j()}catch(O){console.error("Erro ao guardar scheduler:",O),g("Erro ao guardar alterações.")}},q=O=>{O.preventDefault(),T()},w=()=>{h(O=>({...O,windows:[...O.windows||[],{startTime:"00:00",endTime:"23:59",endIs24:!1,currentA:String(zl(16,6,p))}].slice(0,4)}))},Q=O=>{h(G=>({...G,windows:(G.windows||[]).filter((B,F)=>F!==O)}))},Z=(O,G)=>{h(B=>({...B,windows:(B.windows||[]).map((F,X)=>X===O?{...F,...G}:F)}))},z=!v.enabled;return r.jsxs(nt,{title:"Agendamento de Carga",children:[o&&r.jsx(He,{type:"success",children:o}),m&&r.jsx(He,{type:"error",children:m}),i?r.jsx(Yt,{}):r.jsx(De,{children:r.jsxs("form",{className:"flex flex-col gap-6",onSubmit:q,children:[r.jsx(Qn,{children:"Estado atual"}),r.jsxs("div",{className:"p-3 border rounded bg-gray-50",children:[r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[r.jsx("span",{className:"font-semibold",children:"Estado atual:"}),r.jsx("span",{className:"px-3 py-1 rounded text-sm "+(v.allowedNow?"bg-green-600 text-white":"bg-red-600 text-white"),children:v.allowedNow?"Carga permitida neste momento":"Carga bloqueada neste momento"})]}),v.enabled&&r.jsxs("p",{className:"mt-2 text-sm text-gray-600",children:["Corrente ativa agora: ",v.currentLimitNowA?`${v.currentLimitNowA}A`:"—"," ",r.jsx("br",{}),"(Fora de qualquer janela → bloqueado)"]}),r.jsxs("p",{className:"mt-2 text-xs text-gray-500",children:["Corrente máxima do equipamento: ",r.jsxs("span",{className:"font-semibold",children:[p,"A"]})]})]}),r.jsx(Qn,{children:"Configuração"}),r.jsxs("div",{children:[r.jsxs("label",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"checkbox",checked:v.enabled,onChange:O=>h({...v,enabled:O.target.checked})}),"Ativar agendamento de carga"]}),r.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"Se desativado, o agendamento não limita a sessão (sempre permitido, se não houver outros bloqueios)."})]}),r.jsxs("div",{className:z?"opacity-50 select-none":"",children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx(Qn,{className:"m-0",children:"Janelas de carga"}),r.jsx(Ue,{type:"button",variant:"secondary",onClick:w,disabled:z||(((V=v.windows)==null?void 0:V.length)||0)>=4,className:"w-fit",children:"+ Adicionar janela"})]}),r.jsx("div",{className:"flex flex-col gap-3 mt-2",children:(v.windows||[]).map((O,G)=>{var F;const B=z;return r.jsxs("div",{className:"p-3 border rounded flex flex-col gap-3",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1 text-sm font-medium",children:"Início"}),r.jsx("input",{type:"time",className:`${Gr} ${B?Xr:""}`,value:O.startTime,onChange:X=>Z(G,{startTime:X.target.value}),disabled:B})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1 text-sm font-medium",children:"Fim"}),r.jsx("input",{type:"time",className:`${Gr} ${B||O.endIs24?Xr:""}`,value:O.endTime,onChange:X=>Z(G,{endTime:X.target.value}),disabled:B||O.endIs24}),O.endIs24&&r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Fim = 24:00 (normalizado no backend)"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1 text-sm font-medium",children:"Corrente (A)"}),r.jsx("input",{type:"number",min:6,max:p,step:1,className:`${Gr} ${B?Xr:""}`,value:O.currentA,onChange:X=>Z(G,{currentA:X.target.value}),onBlur:()=>Z(G,{currentA:String(zl(O.currentA,6,p))}),disabled:B}),r.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Intervalo: 6–",p,"A"]})]})]}),r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsxs("p",{className:"text-sm text-gray-600",children:["Janela #",G+1,": ",O.startTime," → ",O.endIs24?"24:00":O.endTime," |"," ",zl(O.currentA,6,p),"A"]}),r.jsx(Ue,{type:"button",variant:"ghost",className:"text-red-600 px-2 py-1",onClick:()=>Q(G),disabled:z||(((F=v.windows)==null?void 0:F.length)||0)<=1,children:"Remover"})]})]},G)})}),r.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Máximo de 4 janelas. Se houver sobreposição, a wallbox aplica a corrente mais baixa (segurança).",r.jsx("br",{}),"Fora de todas as janelas: carga bloqueada."]})]}),r.jsx("div",{className:"mt-2",children:r.jsx(Ue,{type:"submit",children:"Guardar"})})]})})]})}function lv(){const[i,d]=S.useState(""),[o,s]=S.useState(""),[m,g]=S.useState(!0),p=async()=>{g(!0),s("");try{const R=await Yy();d(R)}catch{s("Erro ao carregar logs.")}finally{g(!1)}};return S.useEffect(()=>{p()},[]),r.jsxs(nt,{title:"Registos do Sistema",children:[o&&r.jsx(He,{type:"error",children:o}),r.jsxs(De,{title:"Logs",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3 text-xs text-gray-500",children:[r.jsx("span",{children:"Mostrando os registos mais recentes."}),r.jsx(Ue,{type:"button",variant:"secondary",onClick:p,disabled:m,children:"Recarregar"})]}),m?r.jsx(Yt,{label:"A carregar logs..."}):r.jsx("pre",{className:"bg-white border border-gray-200 p-3 rounded max-h-96 overflow-auto text-xs",children:i||"Sem dados."})]})]})}function av({setAuthData:i,externalError:d}){const[o,s]=S.useState(""),[m,g]=S.useState(""),[p,R]=S.useState("");S.useEffect(()=>{d&&R(d)},[d]);const v=h=>{h.preventDefault(),!o||!m?R("Preencha ambos os campos."):(R(""),i({user:o,pass:m}))};return r.jsxs(nt,{title:"Início de Sessão",children:[p&&r.jsx(He,{type:"error",children:p}),r.jsxs("form",{className:"flex flex-col gap-4",onSubmit:v,children:[r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"user",children:"Utilizador:"}),r.jsx("input",{id:"user",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:o,onChange:h=>s(h.target.value)})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block mb-1",htmlFor:"pass",children:"Palavra-passe:"}),r.jsx("input",{id:"pass",type:"password",className:"border border-gray-300 rounded px-3 py-2 w-full",value:m,onChange:h=>g(h.target.value)})]}),r.jsx("div",{className:"mt-2",children:r.jsx(Ue,{className:"w-full",type:"submit",children:"Entrar"})})]})]})}const nv=()=>{const[i,d]=S.useState(()=>typeof window>"u"?!1:!!window.sessionStorage.getItem("evseAuth")),[o,s]=S.useState(!0),[m,g]=S.useState("");S.useEffect(()=>{(async()=>{if(!i){s(!1);return}try{await Xe("/api/v1/dashboard")}catch(h){console.error("Sessão anterior inválida, a limpar credenciais",h),di(),d(!1),g("")}finally{s(!1)}})()},[]);const p=async({user:v,pass:h})=>{try{qy(v,h),await Xe("/api/v1/dashboard"),d(!0),g("")}catch(j){console.error("Falha no login:",j),di(),d(!1),g("Credenciais inválidas ou EVSE inacessível.")}},R=()=>{di(),d(!1),g("")};return o?r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-slate-100",children:r.jsx("span",{className:"text-sm text-gray-500",children:"A verificar sessão..."})}):i?r.jsxs(Ry,{children:[r.jsx(By,{onLogout:R}),r.jsxs(ay,{children:[r.jsx(Tt,{path:"/",element:r.jsx(om,{})}),r.jsx(Tt,{path:"/dashboard",element:r.jsx(om,{})}),r.jsx(Tt,{path:"/settings",element:r.jsx(Zy,{})}),r.jsx(Tt,{path:"/security",element:r.jsx(Ky,{})}),r.jsx(Tt,{path:"/connectivity",element:r.jsx(ky,{})}),r.jsx(Tt,{path:"/electrical-network",element:r.jsx($y,{})}),r.jsx(Tt,{path:"/load-balancing",element:r.jsx(Py,{})}),r.jsx(Tt,{path:"/meters",element:r.jsx(Iy,{})}),r.jsx(Tt,{path:"/ocpp",element:r.jsx(Jy,{})}),r.jsx(Tt,{path:"/scheduler",element:r.jsx(tv,{})}),r.jsx(Tt,{path:"/logs",element:r.jsx(lv,{})})]})]}):r.jsx(av,{setAuthData:p,externalError:m})};og.createRoot(document.getElementById("root")).render(r.jsx(ag.StrictMode,{children:r.jsx(nv,{})}));
