(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const y of d)if(y.type==="childList")for(const E of y.addedNodes)E.tagName==="LINK"&&E.rel==="modulepreload"&&r(E)}).observe(document,{childList:!0,subtree:!0});function o(d){const y={};return d.integrity&&(y.integrity=d.integrity),d.referrerPolicy&&(y.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?y.credentials="include":d.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function r(d){if(d.ep)return;d.ep=!0;const y=o(d);fetch(d.href,y)}})();function Jd(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var xf={exports:{}},zu={};/**
 * @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 _d;function Uv(){if(_d)return zu;_d=1;var c=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(r,d,y){var E=null;if(y!==void 0&&(E=""+y),d.key!==void 0&&(E=""+d.key),"key"in d){y={};for(var N in d)N!=="key"&&(y[N]=d[N])}else y=d;return d=y.ref,{$$typeof:c,type:r,key:E,ref:d!==void 0?d:null,props:y}}return zu.Fragment=s,zu.jsx=o,zu.jsxs=o,zu}var jd;function Hv(){return jd||(jd=1,xf.exports=Uv()),xf.exports}var v=Hv(),Ef={exports:{}},et={};/**
 * @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 Cd;function Bv(){if(Cd)return et;Cd=1;var c=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),E=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),q=Symbol.iterator;function M(g){return g===null||typeof g!="object"?null:(g=q&&g[q]||g["@@iterator"],typeof g=="function"?g:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,L={};function Z(g,B,Q){this.props=g,this.context=B,this.refs=L,this.updater=Q||w}Z.prototype.isReactComponent={},Z.prototype.setState=function(g,B){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,B,"setState")},Z.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function C(){}C.prototype=Z.prototype;function Y(g,B,Q){this.props=g,this.context=B,this.refs=L,this.updater=Q||w}var P=Y.prototype=new C;P.constructor=Y,H(P,Z.prototype),P.isPureReactComponent=!0;var ct=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},Dt=Object.prototype.hasOwnProperty;function At(g,B,Q,G,J,ft){return Q=ft.ref,{$$typeof:c,type:g,key:B,ref:Q!==void 0?Q:null,props:ft}}function zt(g,B){return At(g.type,B,void 0,void 0,void 0,g.props)}function bt(g){return typeof g=="object"&&g!==null&&g.$$typeof===c}function Jt(g){var B={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(Q){return B[Q]})}var se=/\/+/g;function Xt(g,B){return typeof g=="object"&&g!==null&&g.key!=null?Jt(""+g.key):B.toString(36)}function xl(){}function El(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(xl,xl):(g.status="pending",g.then(function(B){g.status==="pending"&&(g.status="fulfilled",g.value=B)},function(B){g.status==="pending"&&(g.status="rejected",g.reason=B)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function Qt(g,B,Q,G,J){var ft=typeof g;(ft==="undefined"||ft==="boolean")&&(g=null);var tt=!1;if(g===null)tt=!0;else switch(ft){case"bigint":case"string":case"number":tt=!0;break;case"object":switch(g.$$typeof){case c:case s:tt=!0;break;case O:return tt=g._init,Qt(tt(g._payload),B,Q,G,J)}}if(tt)return J=J(g),tt=G===""?"."+Xt(g,0):G,ct(J)?(Q="",tt!=null&&(Q=tt.replace(se,"$&/")+"/"),Qt(J,B,Q,"",function($e){return $e})):J!=null&&(bt(J)&&(J=zt(J,Q+(J.key==null||g&&g.key===J.key?"":(""+J.key).replace(se,"$&/")+"/")+tt)),B.push(J)),1;tt=0;var te=G===""?".":G+":";if(ct(g))for(var St=0;St<g.length;St++)G=g[St],ft=te+Xt(G,St),tt+=Qt(G,B,Q,ft,J);else if(St=M(g),typeof St=="function")for(g=St.call(g),St=0;!(G=g.next()).done;)G=G.value,ft=te+Xt(G,St++),tt+=Qt(G,B,Q,ft,J);else if(ft==="object"){if(typeof g.then=="function")return Qt(El(g),B,Q,G,J);throw B=String(g),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return tt}function _(g,B,Q){if(g==null)return g;var G=[],J=0;return Qt(g,G,"","",function(ft){return B.call(Q,ft,J++)}),G}function X(g){if(g._status===-1){var B=g._result;B=B(),B.then(function(Q){(g._status===0||g._status===-1)&&(g._status=1,g._result=Q)},function(Q){(g._status===0||g._status===-1)&&(g._status=2,g._result=Q)}),g._status===-1&&(g._status=0,g._result=B)}if(g._status===1)return g._result.default;throw g._result}var W=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function yt(){}return et.Children={map:_,forEach:function(g,B,Q){_(g,function(){B.apply(this,arguments)},Q)},count:function(g){var B=0;return _(g,function(){B++}),B},toArray:function(g){return _(g,function(B){return B})||[]},only:function(g){if(!bt(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},et.Component=Z,et.Fragment=o,et.Profiler=d,et.PureComponent=Y,et.StrictMode=r,et.Suspense=b,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,et.__COMPILER_RUNTIME={__proto__:null,c:function(g){return I.H.useMemoCache(g)}},et.cache=function(g){return function(){return g.apply(null,arguments)}},et.cloneElement=function(g,B,Q){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var G=H({},g.props),J=g.key,ft=void 0;if(B!=null)for(tt in B.ref!==void 0&&(ft=void 0),B.key!==void 0&&(J=""+B.key),B)!Dt.call(B,tt)||tt==="key"||tt==="__self"||tt==="__source"||tt==="ref"&&B.ref===void 0||(G[tt]=B[tt]);var tt=arguments.length-2;if(tt===1)G.children=Q;else if(1<tt){for(var te=Array(tt),St=0;St<tt;St++)te[St]=arguments[St+2];G.children=te}return At(g.type,J,void 0,void 0,ft,G)},et.createContext=function(g){return g={$$typeof:E,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:y,_context:g},g},et.createElement=function(g,B,Q){var G,J={},ft=null;if(B!=null)for(G in B.key!==void 0&&(ft=""+B.key),B)Dt.call(B,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(J[G]=B[G]);var tt=arguments.length-2;if(tt===1)J.children=Q;else if(1<tt){for(var te=Array(tt),St=0;St<tt;St++)te[St]=arguments[St+2];J.children=te}if(g&&g.defaultProps)for(G in tt=g.defaultProps,tt)J[G]===void 0&&(J[G]=tt[G]);return At(g,ft,void 0,void 0,null,J)},et.createRef=function(){return{current:null}},et.forwardRef=function(g){return{$$typeof:N,render:g}},et.isValidElement=bt,et.lazy=function(g){return{$$typeof:O,_payload:{_status:-1,_result:g},_init:X}},et.memo=function(g,B){return{$$typeof:h,type:g,compare:B===void 0?null:B}},et.startTransition=function(g){var B=I.T,Q={};I.T=Q;try{var G=g(),J=I.S;J!==null&&J(Q,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(yt,W)}catch(ft){W(ft)}finally{I.T=B}},et.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},et.use=function(g){return I.H.use(g)},et.useActionState=function(g,B,Q){return I.H.useActionState(g,B,Q)},et.useCallback=function(g,B){return I.H.useCallback(g,B)},et.useContext=function(g){return I.H.useContext(g)},et.useDebugValue=function(){},et.useDeferredValue=function(g,B){return I.H.useDeferredValue(g,B)},et.useEffect=function(g,B,Q){var G=I.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return G.useEffect(g,B)},et.useId=function(){return I.H.useId()},et.useImperativeHandle=function(g,B,Q){return I.H.useImperativeHandle(g,B,Q)},et.useInsertionEffect=function(g,B){return I.H.useInsertionEffect(g,B)},et.useLayoutEffect=function(g,B){return I.H.useLayoutEffect(g,B)},et.useMemo=function(g,B){return I.H.useMemo(g,B)},et.useOptimistic=function(g,B){return I.H.useOptimistic(g,B)},et.useReducer=function(g,B,Q){return I.H.useReducer(g,B,Q)},et.useRef=function(g){return I.H.useRef(g)},et.useState=function(g){return I.H.useState(g)},et.useSyncExternalStore=function(g,B,Q){return I.H.useSyncExternalStore(g,B,Q)},et.useTransition=function(){return I.H.useTransition()},et.version="19.1.0",et}var Ud;function _f(){return Ud||(Ud=1,Ef.exports=Bv()),Ef.exports}var z=_f();const qv=Jd(z);var Tf={exports:{}},Mu={},Af={exports:{}},Rf={};/**
 * @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 Hd;function Yv(){return Hd||(Hd=1,function(c){function s(_,X){var W=_.length;_.push(X);t:for(;0<W;){var yt=W-1>>>1,g=_[yt];if(0<d(g,X))_[yt]=X,_[W]=g,W=yt;else break t}}function o(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var X=_[0],W=_.pop();if(W!==X){_[0]=W;t:for(var yt=0,g=_.length,B=g>>>1;yt<B;){var Q=2*(yt+1)-1,G=_[Q],J=Q+1,ft=_[J];if(0>d(G,W))J<g&&0>d(ft,G)?(_[yt]=ft,_[J]=W,yt=J):(_[yt]=G,_[Q]=W,yt=Q);else if(J<g&&0>d(ft,W))_[yt]=ft,_[J]=W,yt=J;else break t}}return X}function d(_,X){var W=_.sortIndex-X.sortIndex;return W!==0?W:_.id-X.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var E=Date,N=E.now();c.unstable_now=function(){return E.now()-N}}var b=[],h=[],O=1,q=null,M=3,w=!1,H=!1,L=!1,Z=!1,C=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function ct(_){for(var X=o(h);X!==null;){if(X.callback===null)r(h);else if(X.startTime<=_)r(h),X.sortIndex=X.expirationTime,s(b,X);else break;X=o(h)}}function I(_){if(L=!1,ct(_),!H)if(o(b)!==null)H=!0,Dt||(Dt=!0,Xt());else{var X=o(h);X!==null&&Qt(I,X.startTime-_)}}var Dt=!1,At=-1,zt=5,bt=-1;function Jt(){return Z?!0:!(c.unstable_now()-bt<zt)}function se(){if(Z=!1,Dt){var _=c.unstable_now();bt=_;var X=!0;try{t:{H=!1,L&&(L=!1,Y(At),At=-1),w=!0;var W=M;try{e:{for(ct(_),q=o(b);q!==null&&!(q.expirationTime>_&&Jt());){var yt=q.callback;if(typeof yt=="function"){q.callback=null,M=q.priorityLevel;var g=yt(q.expirationTime<=_);if(_=c.unstable_now(),typeof g=="function"){q.callback=g,ct(_),X=!0;break e}q===o(b)&&r(b),ct(_)}else r(b);q=o(b)}if(q!==null)X=!0;else{var B=o(h);B!==null&&Qt(I,B.startTime-_),X=!1}}break t}finally{q=null,M=W,w=!1}X=void 0}}finally{X?Xt():Dt=!1}}}var Xt;if(typeof P=="function")Xt=function(){P(se)};else if(typeof MessageChannel<"u"){var xl=new MessageChannel,El=xl.port2;xl.port1.onmessage=se,Xt=function(){El.postMessage(null)}}else Xt=function(){C(se,0)};function Qt(_,X){At=C(function(){_(c.unstable_now())},X)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(_){_.callback=null},c.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):zt=0<_?Math.floor(1e3/_):5},c.unstable_getCurrentPriorityLevel=function(){return M},c.unstable_next=function(_){switch(M){case 1:case 2:case 3:var X=3;break;default:X=M}var W=M;M=X;try{return _()}finally{M=W}},c.unstable_requestPaint=function(){Z=!0},c.unstable_runWithPriority=function(_,X){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var W=M;M=_;try{return X()}finally{M=W}},c.unstable_scheduleCallback=function(_,X,W){var yt=c.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?yt+W:yt):W=yt,_){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=W+g,_={id:O++,callback:X,priorityLevel:_,startTime:W,expirationTime:g,sortIndex:-1},W>yt?(_.sortIndex=W,s(h,_),o(b)===null&&_===o(h)&&(L?(Y(At),At=-1):L=!0,Qt(I,W-yt))):(_.sortIndex=g,s(b,_),H||w||(H=!0,Dt||(Dt=!0,Xt()))),_},c.unstable_shouldYield=Jt,c.unstable_wrapCallback=function(_){var X=M;return function(){var W=M;M=X;try{return _.apply(this,arguments)}finally{M=W}}}}(Rf)),Rf}var Bd;function wv(){return Bd||(Bd=1,Af.exports=Yv()),Af.exports}var Of={exports:{}},Kt={};/**
 * @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 qd;function Lv(){if(qd)return Kt;qd=1;var c=_f();function s(b){var h="https://react.dev/errors/"+b;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)h+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+b+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(s(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function y(b,h,O){var q=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:q==null?null:""+q,children:b,containerInfo:h,implementation:O}}var E=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function N(b,h){if(b==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Kt.createPortal=function(b,h){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(s(299));return y(b,h,null,O)},Kt.flushSync=function(b){var h=E.T,O=r.p;try{if(E.T=null,r.p=2,b)return b()}finally{E.T=h,r.p=O,r.d.f()}},Kt.preconnect=function(b,h){typeof b=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(b,h))},Kt.prefetchDNS=function(b){typeof b=="string"&&r.d.D(b)},Kt.preinit=function(b,h){if(typeof b=="string"&&h&&typeof h.as=="string"){var O=h.as,q=N(O,h.crossOrigin),M=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;O==="style"?r.d.S(b,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:q,integrity:M,fetchPriority:w}):O==="script"&&r.d.X(b,{crossOrigin:q,integrity:M,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Kt.preinitModule=function(b,h){if(typeof b=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var O=N(h.as,h.crossOrigin);r.d.M(b,{crossOrigin:O,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(b)},Kt.preload=function(b,h){if(typeof b=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var O=h.as,q=N(O,h.crossOrigin);r.d.L(b,O,{crossOrigin:q,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})}},Kt.preloadModule=function(b,h){if(typeof b=="string")if(h){var O=N(h.as,h.crossOrigin);r.d.m(b,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:O,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(b)},Kt.requestFormReset=function(b){r.d.r(b)},Kt.unstable_batchedUpdates=function(b,h){return b(h)},Kt.useFormState=function(b,h,O){return E.H.useFormState(b,h,O)},Kt.useFormStatus=function(){return E.H.useHostTransitionStatus()},Kt.version="19.1.0",Kt}var Yd;function Gv(){if(Yd)return Of.exports;Yd=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(s){console.error(s)}}return c(),Of.exports=Lv(),Of.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 wd;function Xv(){if(wd)return Mu;wd=1;var c=wv(),s=_f(),o=Gv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function y(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function E(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function N(t){if(y(t)!==t)throw Error(r(188))}function b(t){var e=t.alternate;if(!e){if(e=y(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var u=l.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===l)return N(u),t;if(n===a)return N(u),e;n=n.sibling}throw Error(r(188))}if(l.return!==a.return)l=u,a=n;else{for(var i=!1,f=u.child;f;){if(f===l){i=!0,l=u,a=n;break}if(f===a){i=!0,a=u,l=n;break}f=f.sibling}if(!i){for(f=n.child;f;){if(f===l){i=!0,l=n,a=u;break}if(f===a){i=!0,a=n,l=u;break}f=f.sibling}if(!i)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function h(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=h(t),e!==null)return e;t=t.sibling}return null}var O=Object.assign,q=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),Y=Symbol.for("react.consumer"),P=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),Dt=Symbol.for("react.suspense_list"),At=Symbol.for("react.memo"),zt=Symbol.for("react.lazy"),bt=Symbol.for("react.activity"),Jt=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function Xt(t){return t===null||typeof t!="object"?null:(t=se&&t[se]||t["@@iterator"],typeof t=="function"?t:null)}var xl=Symbol.for("react.client.reference");function El(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===xl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case Z:return"Profiler";case L:return"StrictMode";case I:return"Suspense";case Dt:return"SuspenseList";case bt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case P:return(t.displayName||"Context")+".Provider";case Y:return(t._context.displayName||"Context")+".Consumer";case ct:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case At:return e=t.displayName||null,e!==null?e:El(t.type)||"Memo";case zt:e=t._payload,t=t._init;try{return El(t(e))}catch{}}return null}var Qt=Array.isArray,_=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},yt=[],g=-1;function B(t){return{current:t}}function Q(t){0>g||(t.current=yt[g],yt[g]=null,g--)}function G(t,e){g++,yt[g]=t.current,t.current=e}var J=B(null),ft=B(null),tt=B(null),te=B(null);function St(t,e){switch(G(tt,e),G(ft,t),G(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?nd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=nd(e),t=id(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(J),G(J,t)}function $e(){Q(J),Q(ft),Q(tt)}function ni(t){t.memoizedState!==null&&G(te,t);var e=J.current,l=id(e,t.type);e!==l&&(G(ft,t),G(J,l))}function Bu(t){ft.current===t&&(Q(J),Q(ft)),te.current===t&&(Q(te),Eu._currentValue=W)}var ii=Object.prototype.hasOwnProperty,ci=c.unstable_scheduleCallback,fi=c.unstable_cancelCallback,dh=c.unstable_shouldYield,hh=c.unstable_requestPaint,Te=c.unstable_now,mh=c.unstable_getCurrentPriorityLevel,Yf=c.unstable_ImmediatePriority,wf=c.unstable_UserBlockingPriority,qu=c.unstable_NormalPriority,vh=c.unstable_LowPriority,Lf=c.unstable_IdlePriority,yh=c.log,gh=c.unstable_setDisableYieldValue,Da=null,ee=null;function We(t){if(typeof yh=="function"&&gh(t),ee&&typeof ee.setStrictMode=="function")try{ee.setStrictMode(Da,t)}catch{}}var le=Math.clz32?Math.clz32:Sh,ph=Math.log,bh=Math.LN2;function Sh(t){return t>>>=0,t===0?32:31-(ph(t)/bh|0)|0}var Yu=256,wu=4194304;function Tl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Lu(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var u=0,n=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var f=a&134217727;return f!==0?(a=f&~n,a!==0?u=Tl(a):(i&=f,i!==0?u=Tl(i):l||(l=f&~t,l!==0&&(u=Tl(l))))):(f=a&~n,f!==0?u=Tl(f):i!==0?u=Tl(i):l||(l=a&~t,l!==0&&(u=Tl(l)))),u===0?0:e!==0&&e!==u&&(e&n)===0&&(n=u&-u,l=e&-e,n>=l||n===32&&(l&4194048)!==0)?e:u}function _a(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function xh(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Gf(){var t=Yu;return Yu<<=1,(Yu&4194048)===0&&(Yu=256),t}function Xf(){var t=wu;return wu<<=1,(wu&62914560)===0&&(wu=4194304),t}function ri(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function ja(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Eh(t,e,l,a,u,n){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var f=t.entanglements,m=t.expirationTimes,T=t.hiddenUpdates;for(l=i&~l;0<l;){var D=31-le(l),U=1<<D;f[D]=0,m[D]=-1;var A=T[D];if(A!==null)for(T[D]=null,D=0;D<A.length;D++){var R=A[D];R!==null&&(R.lane&=-536870913)}l&=~U}a!==0&&Qf(t,a,0),n!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=n&~(i&~e))}function Qf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-le(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&4194090}function Zf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-le(l),u=1<<a;u&e|t[a]&e&&(t[a]|=e),l&=~u}}function si(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function oi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Vf(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Rd(t.type))}function Th(t,e){var l=X.p;try{return X.p=t,e()}finally{X.p=l}}var Fe=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Fe,$t="__reactProps$"+Fe,Ql="__reactContainer$"+Fe,di="__reactEvents$"+Fe,Ah="__reactListeners$"+Fe,Rh="__reactHandles$"+Fe,Kf="__reactResources$"+Fe,Ca="__reactMarker$"+Fe;function hi(t){delete t[Zt],delete t[$t],delete t[di],delete t[Ah],delete t[Rh]}function Zl(t){var e=t[Zt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Ql]||l[Zt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=sd(t);t!==null;){if(l=t[Zt])return l;t=sd(t)}return e}t=l,l=t.parentNode}return null}function Vl(t){if(t=t[Zt]||t[Ql]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Ua(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Kl(t){var e=t[Kf];return e||(e=t[Kf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ht(t){t[Ca]=!0}var Jf=new Set,kf={};function Al(t,e){Jl(t,e),Jl(t+"Capture",e)}function Jl(t,e){for(kf[t]=e,t=0;t<e.length;t++)Jf.add(e[t])}var Oh=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]*$"),$f={},Wf={};function zh(t){return ii.call(Wf,t)?!0:ii.call($f,t)?!1:Oh.test(t)?Wf[t]=!0:($f[t]=!0,!1)}function Gu(t,e,l){if(zh(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Xu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function _e(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}var mi,Ff;function kl(t){if(mi===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);mi=e&&e[1]||"",Ff=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+mi+t+Ff}var vi=!1;function yi(t,e){if(!t||vi)return"";vi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(R){var A=R}Reflect.construct(t,[],U)}else{try{U.call()}catch(R){A=R}t.call(U.prototype)}}else{try{throw Error()}catch(R){A=R}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(R){if(R&&A&&typeof R.stack=="string")return[R.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),i=n[0],f=n[1];if(i&&f){var m=i.split(`
`),T=f.split(`
`);for(u=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(a===m.length||u===T.length)for(a=m.length-1,u=T.length-1;1<=a&&0<=u&&m[a]!==T[u];)u--;for(;1<=a&&0<=u;a--,u--)if(m[a]!==T[u]){if(a!==1||u!==1)do if(a--,u--,0>u||m[a]!==T[u]){var D=`
`+m[a].replace(" at new "," at ");return t.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",t.displayName)),D}while(1<=a&&0<=u);break}}}finally{vi=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?kl(l):""}function Mh(t){switch(t.tag){case 26:case 27:case 5:return kl(t.type);case 16:return kl("Lazy");case 13:return kl("Suspense");case 19:return kl("SuspenseList");case 0:case 15:return yi(t.type,!1);case 11:return yi(t.type.render,!1);case 1:return yi(t.type,!0);case 31:return kl("Activity");default:return""}}function Pf(t){try{var e="";do e+=Mh(t),t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function If(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Nh(t){var e=If(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,n=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Qu(t){t._valueTracker||(t._valueTracker=Nh(t))}function tr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=If(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Zu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Dh=/[\n"\\]/g;function de(t){return t.replace(Dh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gi(t,e,l,a,u,n,i,f){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+oe(e)):t.value!==""+oe(e)&&(t.value=""+oe(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?pi(t,i,oe(e)):l!=null?pi(t,i,oe(l)):a!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+oe(f):t.removeAttribute("name")}function er(t,e,l,a,u,n,i,f){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),e!=null||l!=null){if(!(n!=="submit"&&n!=="reset"||e!=null))return;l=l!=null?""+oe(l):"",e=e!=null?""+oe(e):l,f||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i)}function pi(t,e,l){e==="number"&&Zu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function $l(t,e,l,a){if(t=t.options,e){e={};for(var u=0;u<l.length;u++)e["$"+l[u]]=!0;for(l=0;l<t.length;l++)u=e.hasOwnProperty("$"+t[l].value),t[l].selected!==u&&(t[l].selected=u),u&&a&&(t[l].defaultSelected=!0)}else{for(l=""+oe(l),e=null,u=0;u<t.length;u++){if(t[u].value===l){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function lr(t,e,l){if(e!=null&&(e=""+oe(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+oe(l):""}function ar(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(Qt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=oe(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a)}function Wl(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var _h=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 ur(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||_h.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function nr(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var u in e)a=e[u],e.hasOwnProperty(u)&&l[u]!==a&&ur(t,u,a)}else for(var n in e)e.hasOwnProperty(n)&&ur(t,n,e[n])}function bi(t){if(t.indexOf("-")===-1)return!1;switch(t){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 jh=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"]]),Ch=/^[\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 Vu(t){return Ch.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Si=null;function xi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fl=null,Pl=null;function ir(t){var e=Vl(t);if(e&&(t=e.stateNode)){var l=t[$t]||null;t:switch(t=e.stateNode,e.type){case"input":if(gi(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+de(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var u=a[$t]||null;if(!u)throw Error(r(90));gi(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&tr(a)}break t;case"textarea":lr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&$l(t,!!l.multiple,e,!1)}}}var Ei=!1;function cr(t,e,l){if(Ei)return t(e,l);Ei=!0;try{var a=t(e);return a}finally{if(Ei=!1,(Fl!==null||Pl!==null)&&(_n(),Fl&&(e=Fl,t=Pl,Pl=Fl=null,ir(e),t)))for(e=0;e<t.length;e++)ir(t[e])}}function Ha(t,e){var l=t.stateNode;if(l===null)return null;var a=l[$t]||null;if(a===null)return null;l=a[e];t:switch(e){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var je=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ti=!1;if(je)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){Ti=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{Ti=!1}var Pe=null,Ai=null,Ku=null;function fr(){if(Ku)return Ku;var t,e=Ai,l=e.length,a,u="value"in Pe?Pe.value:Pe.textContent,n=u.length;for(t=0;t<l&&e[t]===u[t];t++);var i=l-t;for(a=1;a<=i&&e[l-a]===u[n-a];a++);return Ku=u.slice(t,1<a?1-a:void 0)}function Ju(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ku(){return!0}function rr(){return!1}function Wt(t){function e(l,a,u,n,i){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(l=t[f],this[f]=l?l(n):n[f]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?ku:rr,this.isPropagationStopped=rr,this}return O(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ku)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ku)},persist:function(){},isPersistent:ku}),e}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$u=Wt(Rl),qa=O({},Rl,{view:0,detail:0}),Uh=Wt(qa),Ri,Oi,Ya,Wu=O({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mi,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ya&&(Ya&&t.type==="mousemove"?(Ri=t.screenX-Ya.screenX,Oi=t.screenY-Ya.screenY):Oi=Ri=0,Ya=t),Ri)},movementY:function(t){return"movementY"in t?t.movementY:Oi}}),sr=Wt(Wu),Hh=O({},Wu,{dataTransfer:0}),Bh=Wt(Hh),qh=O({},qa,{relatedTarget:0}),zi=Wt(qh),Yh=O({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),wh=Wt(Yh),Lh=O({},Rl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Gh=Wt(Lh),Xh=O({},Rl,{data:0}),or=Wt(Xh),Qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zh={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"},Vh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kh(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Vh[t])?!!e[t]:!1}function Mi(){return Kh}var Jh=O({},qa,{key:function(t){if(t.key){var e=Qh[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ju(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Zh[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mi,charCode:function(t){return t.type==="keypress"?Ju(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ju(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),kh=Wt(Jh),$h=O({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dr=Wt($h),Wh=O({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mi}),Fh=Wt(Wh),Ph=O({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ih=Wt(Ph),tm=O({},Wu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),em=Wt(tm),lm=O({},Rl,{newState:0,oldState:0}),am=Wt(lm),um=[9,13,27,32],Ni=je&&"CompositionEvent"in window,wa=null;je&&"documentMode"in document&&(wa=document.documentMode);var nm=je&&"TextEvent"in window&&!wa,hr=je&&(!Ni||wa&&8<wa&&11>=wa),mr=" ",vr=!1;function yr(t,e){switch(t){case"keyup":return um.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Il=!1;function im(t,e){switch(t){case"compositionend":return gr(e);case"keypress":return e.which!==32?null:(vr=!0,mr);case"textInput":return t=e.data,t===mr&&vr?null:t;default:return null}}function cm(t,e){if(Il)return t==="compositionend"||!Ni&&yr(t,e)?(t=fr(),Ku=Ai=Pe=null,Il=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return hr&&e.locale!=="ko"?null:e.data;default:return null}}var fm={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 pr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!fm[t.type]:e==="textarea"}function br(t,e,l,a){Fl?Pl?Pl.push(a):Pl=[a]:Fl=a,e=qn(e,"onChange"),0<e.length&&(l=new $u("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var La=null,Ga=null;function rm(t){td(t,0)}function Fu(t){var e=Ua(t);if(tr(e))return t}function Sr(t,e){if(t==="change")return e}var xr=!1;if(je){var Di;if(je){var _i="oninput"in document;if(!_i){var Er=document.createElement("div");Er.setAttribute("oninput","return;"),_i=typeof Er.oninput=="function"}Di=_i}else Di=!1;xr=Di&&(!document.documentMode||9<document.documentMode)}function Tr(){La&&(La.detachEvent("onpropertychange",Ar),Ga=La=null)}function Ar(t){if(t.propertyName==="value"&&Fu(Ga)){var e=[];br(e,Ga,t,xi(t)),cr(rm,e)}}function sm(t,e,l){t==="focusin"?(Tr(),La=e,Ga=l,La.attachEvent("onpropertychange",Ar)):t==="focusout"&&Tr()}function om(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Fu(Ga)}function dm(t,e){if(t==="click")return Fu(e)}function hm(t,e){if(t==="input"||t==="change")return Fu(e)}function mm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ae=typeof Object.is=="function"?Object.is:mm;function Xa(t,e){if(ae(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!ii.call(e,u)||!ae(t[u],e[u]))return!1}return!0}function Rr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Or(t,e){var l=Rr(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Rr(l)}}function zr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Mr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Zu(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Zu(t.document)}return e}function ji(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var vm=je&&"documentMode"in document&&11>=document.documentMode,ta=null,Ci=null,Qa=null,Ui=!1;function Nr(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ui||ta==null||ta!==Zu(a)||(a=ta,"selectionStart"in a&&ji(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}),Qa&&Xa(Qa,a)||(Qa=a,a=qn(Ci,"onSelect"),0<a.length&&(e=new $u("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=ta)))}function Ol(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ea={animationend:Ol("Animation","AnimationEnd"),animationiteration:Ol("Animation","AnimationIteration"),animationstart:Ol("Animation","AnimationStart"),transitionrun:Ol("Transition","TransitionRun"),transitionstart:Ol("Transition","TransitionStart"),transitioncancel:Ol("Transition","TransitionCancel"),transitionend:Ol("Transition","TransitionEnd")},Hi={},Dr={};je&&(Dr=document.createElement("div").style,"AnimationEvent"in window||(delete ea.animationend.animation,delete ea.animationiteration.animation,delete ea.animationstart.animation),"TransitionEvent"in window||delete ea.transitionend.transition);function zl(t){if(Hi[t])return Hi[t];if(!ea[t])return t;var e=ea[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Dr)return Hi[t]=e[l];return t}var _r=zl("animationend"),jr=zl("animationiteration"),Cr=zl("animationstart"),ym=zl("transitionrun"),gm=zl("transitionstart"),pm=zl("transitioncancel"),Ur=zl("transitionend"),Hr=new Map,Bi="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(" ");Bi.push("scrollEnd");function Se(t,e){Hr.set(t,e),Al(e,[t])}var Br=new WeakMap;function he(t,e){if(typeof t=="object"&&t!==null){var l=Br.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Pf(e)},Br.set(t,e),e)}return{value:t,source:e,stack:Pf(e)}}var me=[],la=0,qi=0;function Pu(){for(var t=la,e=qi=la=0;e<t;){var l=me[e];me[e++]=null;var a=me[e];me[e++]=null;var u=me[e];me[e++]=null;var n=me[e];if(me[e++]=null,a!==null&&u!==null){var i=a.pending;i===null?u.next=u:(u.next=i.next,i.next=u),a.pending=u}n!==0&&qr(l,u,n)}}function Iu(t,e,l,a){me[la++]=t,me[la++]=e,me[la++]=l,me[la++]=a,qi|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Yi(t,e,l,a){return Iu(t,e,l,a),tn(t)}function aa(t,e){return Iu(t,null,null,e),tn(t)}function qr(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var u=!1,n=t.return;n!==null;)n.childLanes|=l,a=n.alternate,a!==null&&(a.childLanes|=l),n.tag===22&&(t=n.stateNode,t===null||t._visibility&1||(u=!0)),t=n,n=n.return;return t.tag===3?(n=t.stateNode,u&&e!==null&&(u=31-le(l),t=n.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=l|536870912),n):null}function tn(t){if(50<mu)throw mu=0,Zc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ua={};function bm(t,e,l,a){this.tag=t,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=e,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 ue(t,e,l,a){return new bm(t,e,l,a)}function wi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ce(t,e){var l=t.alternate;return l===null?(l=ue(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Yr(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function en(t,e,l,a,u,n){var i=0;if(a=t,typeof t=="function")wi(t)&&(i=1);else if(typeof t=="string")i=xv(t,l,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case bt:return t=ue(31,l,e,u),t.elementType=bt,t.lanes=n,t;case H:return Ml(l.children,u,n,e);case L:i=8,u|=24;break;case Z:return t=ue(12,l,e,u|2),t.elementType=Z,t.lanes=n,t;case I:return t=ue(13,l,e,u),t.elementType=I,t.lanes=n,t;case Dt:return t=ue(19,l,e,u),t.elementType=Dt,t.lanes=n,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case C:case P:i=10;break t;case Y:i=9;break t;case ct:i=11;break t;case At:i=14;break t;case zt:i=16,a=null;break t}i=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=ue(i,l,e,u),e.elementType=t,e.type=a,e.lanes=n,e}function Ml(t,e,l,a){return t=ue(7,t,a,e),t.lanes=l,t}function Li(t,e,l){return t=ue(6,t,null,e),t.lanes=l,t}function Gi(t,e,l){return e=ue(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var na=[],ia=0,ln=null,an=0,ve=[],ye=0,Nl=null,Ue=1,He="";function Dl(t,e){na[ia++]=an,na[ia++]=ln,ln=t,an=e}function wr(t,e,l){ve[ye++]=Ue,ve[ye++]=He,ve[ye++]=Nl,Nl=t;var a=Ue;t=He;var u=32-le(a)-1;a&=~(1<<u),l+=1;var n=32-le(e)+u;if(30<n){var i=u-u%5;n=(a&(1<<i)-1).toString(32),a>>=i,u-=i,Ue=1<<32-le(e)+u|l<<u|a,He=n+t}else Ue=1<<n|l<<u|a,He=t}function Xi(t){t.return!==null&&(Dl(t,1),wr(t,1,0))}function Qi(t){for(;t===ln;)ln=na[--ia],na[ia]=null,an=na[--ia],na[ia]=null;for(;t===Nl;)Nl=ve[--ye],ve[ye]=null,He=ve[--ye],ve[ye]=null,Ue=ve[--ye],ve[ye]=null}var kt=null,Rt=null,st=!1,_l=null,Ae=!1,Zi=Error(r(519));function jl(t){var e=Error(r(418,""));throw Ka(he(e,t)),Zi}function Lr(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Zt]=t,e[$t]=a,l){case"dialog":nt("cancel",e),nt("close",e);break;case"iframe":case"object":case"embed":nt("load",e);break;case"video":case"audio":for(l=0;l<yu.length;l++)nt(yu[l],e);break;case"source":nt("error",e);break;case"img":case"image":case"link":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"input":nt("invalid",e),er(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Qu(e);break;case"select":nt("invalid",e);break;case"textarea":nt("invalid",e),ar(e,a.value,a.defaultValue,a.children),Qu(e)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||ud(e.textContent,l)?(a.popover!=null&&(nt("beforetoggle",e),nt("toggle",e)),a.onScroll!=null&&nt("scroll",e),a.onScrollEnd!=null&&nt("scrollend",e),a.onClick!=null&&(e.onclick=Yn),e=!0):e=!1,e||jl(t)}function Gr(t){for(kt=t.return;kt;)switch(kt.tag){case 5:case 13:Ae=!1;return;case 27:case 3:Ae=!0;return;default:kt=kt.return}}function Za(t){if(t!==kt)return!1;if(!st)return Gr(t),st=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||cf(t.type,t.memoizedProps)),l=!l),l&&Rt&&jl(t),Gr(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(l=t.data,l==="/$"){if(e===0){Rt=Ee(t.nextSibling);break t}e--}else l!=="$"&&l!=="$!"&&l!=="$?"||e++;t=t.nextSibling}Rt=null}}else e===27?(e=Rt,ml(t.type)?(t=of,of=null,Rt=t):Rt=e):Rt=kt?Ee(t.stateNode.nextSibling):null;return!0}function Va(){Rt=kt=null,st=!1}function Xr(){var t=_l;return t!==null&&(It===null?It=t:It.push.apply(It,t),_l=null),t}function Ka(t){_l===null?_l=[t]:_l.push(t)}var Vi=B(null),Cl=null,Be=null;function Ie(t,e,l){G(Vi,e._currentValue),e._currentValue=l}function qe(t){t._currentValue=Vi.current,Q(Vi)}function Ki(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Ji(t,e,l,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var n=u.dependencies;if(n!==null){var i=u.child;n=n.firstContext;t:for(;n!==null;){var f=n;n=u;for(var m=0;m<e.length;m++)if(f.context===e[m]){n.lanes|=l,f=n.alternate,f!==null&&(f.lanes|=l),Ki(n.return,l,t),a||(i=null);break t}n=f.next}}else if(u.tag===18){if(i=u.return,i===null)throw Error(r(341));i.lanes|=l,n=i.alternate,n!==null&&(n.lanes|=l),Ki(i,l,t),i=null}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===t){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}}function Ja(t,e,l,a){t=null;for(var u=e,n=!1;u!==null;){if(!n){if((u.flags&524288)!==0)n=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var i=u.alternate;if(i===null)throw Error(r(387));if(i=i.memoizedProps,i!==null){var f=u.type;ae(u.pendingProps.value,i.value)||(t!==null?t.push(f):t=[f])}}else if(u===te.current){if(i=u.alternate,i===null)throw Error(r(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Eu):t=[Eu])}u=u.return}t!==null&&Ji(e,t,l,a),e.flags|=262144}function un(t){for(t=t.firstContext;t!==null;){if(!ae(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ul(t){Cl=t,Be=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Vt(t){return Qr(Cl,t)}function nn(t,e){return Cl===null&&Ul(t),Qr(t,e)}function Qr(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Be===null){if(t===null)throw Error(r(308));Be=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Be=Be.next=e;return l}var Sm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},xm=c.unstable_scheduleCallback,Em=c.unstable_NormalPriority,Ct={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ki(){return{controller:new Sm,data:new Map,refCount:0}}function ka(t){t.refCount--,t.refCount===0&&xm(Em,function(){t.controller.abort()})}var $a=null,$i=0,ca=0,fa=null;function Tm(t,e){if($a===null){var l=$a=[];$i=0,ca=Fc(),fa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return $i++,e.then(Zr,Zr),e}function Zr(){if(--$i===0&&$a!==null){fa!==null&&(fa.status="fulfilled");var t=$a;$a=null,ca=0,fa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Am(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<l.length;u++)(0,l[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Vr=_.S;_.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&Tm(t,e),Vr!==null&&Vr(t,e)};var Hl=B(null);function Wi(){var t=Hl.current;return t!==null?t:pt.pooledCache}function cn(t,e){e===null?G(Hl,Hl.current):G(Hl,e.pool)}function Kr(){var t=Wi();return t===null?null:{parent:Ct._currentValue,pool:t}}var Wa=Error(r(460)),Jr=Error(r(474)),fn=Error(r(542)),Fi={then:function(){}};function kr(t){return t=t.status,t==="fulfilled"||t==="rejected"}function rn(){}function $r(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(rn,rn),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Fr(t),t;default:if(typeof e.status=="string")e.then(rn,rn);else{if(t=pt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Fr(t),t}throw Fa=e,Wa}}var Fa=null;function Wr(){if(Fa===null)throw Error(r(459));var t=Fa;return Fa=null,t}function Fr(t){if(t===Wa||t===fn)throw Error(r(483))}var tl=!1;function Pi(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ii(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function el(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ll(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(ot&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=tn(t),qr(t,null,l),e}return Iu(t,a,e,l),tn(t)}function Pa(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Zf(t,l)}}function tc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,n=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,l=l.next}while(l!==null);n===null?u=n=e:n=n.next=e}else u=n=e;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var ec=!1;function Ia(){if(ec){var t=fa;if(t!==null)throw t}}function tu(t,e,l,a){ec=!1;var u=t.updateQueue;tl=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,f=u.shared.pending;if(f!==null){u.shared.pending=null;var m=f,T=m.next;m.next=null,i===null?n=T:i.next=T,i=m;var D=t.alternate;D!==null&&(D=D.updateQueue,f=D.lastBaseUpdate,f!==i&&(f===null?D.firstBaseUpdate=T:f.next=T,D.lastBaseUpdate=m))}if(n!==null){var U=u.baseState;i=0,D=T=m=null,f=n;do{var A=f.lane&-536870913,R=A!==f.lane;if(R?(it&A)===A:(a&A)===A){A!==0&&A===ca&&(ec=!0),D!==null&&(D=D.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var F=t,k=f;A=e;var vt=l;switch(k.tag){case 1:if(F=k.payload,typeof F=="function"){U=F.call(vt,U,A);break t}U=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=k.payload,A=typeof F=="function"?F.call(vt,U,A):F,A==null)break t;U=O({},U,A);break t;case 2:tl=!0}}A=f.callback,A!==null&&(t.flags|=64,R&&(t.flags|=8192),R=u.callbacks,R===null?u.callbacks=[A]:R.push(A))}else R={lane:A,tag:f.tag,payload:f.payload,callback:f.callback,next:null},D===null?(T=D=R,m=U):D=D.next=R,i|=A;if(f=f.next,f===null){if(f=u.shared.pending,f===null)break;R=f,f=R.next,R.next=null,u.lastBaseUpdate=R,u.shared.pending=null}}while(!0);D===null&&(m=U),u.baseState=m,u.firstBaseUpdate=T,u.lastBaseUpdate=D,n===null&&(u.shared.lanes=0),sl|=i,t.lanes=i,t.memoizedState=U}}function Pr(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Ir(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Pr(l[t],e)}var ra=B(null),sn=B(0);function ts(t,e){t=Ze,G(sn,t),G(ra,e),Ze=t|e.baseLanes}function lc(){G(sn,Ze),G(ra,ra.current)}function ac(){Ze=sn.current,Q(ra),Q(sn)}var al=0,lt=null,ht=null,_t=null,on=!1,sa=!1,Bl=!1,dn=0,eu=0,oa=null,Rm=0;function Mt(){throw Error(r(321))}function uc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ae(t[l],e[l]))return!1;return!0}function nc(t,e,l,a,u,n){return al=n,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?qs:Ys,Bl=!1,n=l(a,u),Bl=!1,sa&&(n=ls(e,l,a,u)),es(t),n}function es(t){_.H=pn;var e=ht!==null&&ht.next!==null;if(al=0,_t=ht=lt=null,on=!1,eu=0,oa=null,e)throw Error(r(300));t===null||Bt||(t=t.dependencies,t!==null&&un(t)&&(Bt=!0))}function ls(t,e,l,a){lt=t;var u=0;do{if(sa&&(oa=null),eu=0,sa=!1,25<=u)throw Error(r(301));if(u+=1,_t=ht=null,t.updateQueue!=null){var n=t.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}_.H=jm,n=e(l,a)}while(sa);return n}function Om(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?lu(e):e,t=t.useState()[0],(ht!==null?ht.memoizedState:null)!==t&&(lt.flags|=1024),e}function ic(){var t=dn!==0;return dn=0,t}function cc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function fc(t){if(on){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}on=!1}al=0,_t=ht=lt=null,sa=!1,eu=dn=0,oa=null}function Ft(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?lt.memoizedState=_t=t:_t=_t.next=t,_t}function jt(){if(ht===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=ht.next;var e=_t===null?lt.memoizedState:_t.next;if(e!==null)_t=e,ht=t;else{if(t===null)throw lt.alternate===null?Error(r(467)):Error(r(310));ht=t,t={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},_t===null?lt.memoizedState=_t=t:_t=_t.next=t}return _t}function rc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lu(t){var e=eu;return eu+=1,oa===null&&(oa=[]),t=$r(oa,t,e),e=lt,(_t===null?e.memoizedState:_t.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?qs:Ys),t}function hn(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return lu(t);if(t.$$typeof===P)return Vt(t)}throw Error(r(438,String(t)))}function sc(t){var e=null,l=lt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=lt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=rc(),lt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Jt;return e.index++,l}function Ye(t,e){return typeof e=="function"?e(t):e}function mn(t){var e=jt();return oc(e,ht,t)}function oc(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var u=t.baseQueue,n=a.pending;if(n!==null){if(u!==null){var i=u.next;u.next=n.next,n.next=i}e.baseQueue=u=n,a.pending=null}if(n=t.baseState,u===null)t.memoizedState=n;else{e=u.next;var f=i=null,m=null,T=e,D=!1;do{var U=T.lane&-536870913;if(U!==T.lane?(it&U)===U:(al&U)===U){var A=T.revertLane;if(A===0)m!==null&&(m=m.next={lane:0,revertLane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),U===ca&&(D=!0);else if((al&A)===A){T=T.next,A===ca&&(D=!0);continue}else U={lane:0,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(f=m=U,i=n):m=m.next=U,lt.lanes|=A,sl|=A;U=T.action,Bl&&l(n,U),n=T.hasEagerState?T.eagerState:l(n,U)}else A={lane:U,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(f=m=A,i=n):m=m.next=A,lt.lanes|=U,sl|=U;T=T.next}while(T!==null&&T!==e);if(m===null?i=n:m.next=f,!ae(n,t.memoizedState)&&(Bt=!0,D&&(l=fa,l!==null)))throw l;t.memoizedState=n,t.baseState=i,t.baseQueue=m,a.lastRenderedState=n}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function dc(t){var e=jt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,u=l.pending,n=e.memoizedState;if(u!==null){l.pending=null;var i=u=u.next;do n=t(n,i.action),i=i.next;while(i!==u);ae(n,e.memoizedState)||(Bt=!0),e.memoizedState=n,e.baseQueue===null&&(e.baseState=n),l.lastRenderedState=n}return[n,a]}function as(t,e,l){var a=lt,u=jt(),n=st;if(n){if(l===void 0)throw Error(r(407));l=l()}else l=e();var i=!ae((ht||u).memoizedState,l);i&&(u.memoizedState=l,Bt=!0),u=u.queue;var f=is.bind(null,a,u,t);if(au(2048,8,f,[t]),u.getSnapshot!==e||i||_t!==null&&_t.memoizedState.tag&1){if(a.flags|=2048,da(9,vn(),ns.bind(null,a,u,l,e),null),pt===null)throw Error(r(349));n||(al&124)!==0||us(a,e,l)}return l}function us(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=lt.updateQueue,e===null?(e=rc(),lt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function ns(t,e,l,a){e.value=l,e.getSnapshot=a,cs(e)&&fs(t)}function is(t,e,l){return l(function(){cs(e)&&fs(t)})}function cs(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ae(t,l)}catch{return!0}}function fs(t){var e=aa(t,2);e!==null&&re(e,t,2)}function hc(t){var e=Ft();if(typeof t=="function"){var l=t;if(t=l(),Bl){We(!0);try{l()}finally{We(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ye,lastRenderedState:t},e}function rs(t,e,l,a){return t.baseState=l,oc(t,ht,typeof a=="function"?a:Ye)}function zm(t,e,l,a,u){if(gn(t))throw Error(r(485));if(t=e.action,t!==null){var n={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};_.T!==null?l(!0):n.isTransition=!1,a(n),l=e.pending,l===null?(n.next=e.pending=n,ss(e,n)):(n.next=l.next,e.pending=l.next=n)}}function ss(t,e){var l=e.action,a=e.payload,u=t.state;if(e.isTransition){var n=_.T,i={};_.T=i;try{var f=l(u,a),m=_.S;m!==null&&m(i,f),os(t,e,f)}catch(T){mc(t,e,T)}finally{_.T=n}}else try{n=l(u,a),os(t,e,n)}catch(T){mc(t,e,T)}}function os(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ds(t,e,a)},function(a){return mc(t,e,a)}):ds(t,e,l)}function ds(t,e,l){e.status="fulfilled",e.value=l,hs(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,ss(t,l)))}function mc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,hs(e),e=e.next;while(e!==a)}t.action=null}function hs(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ms(t,e){return e}function vs(t,e){if(st){var l=pt.formState;if(l!==null){t:{var a=lt;if(st){if(Rt){e:{for(var u=Rt,n=Ae;u.nodeType!==8;){if(!n){u=null;break e}if(u=Ee(u.nextSibling),u===null){u=null;break e}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Rt=Ee(u.nextSibling),a=u.data==="F!";break t}}jl(a)}a=!1}a&&(e=l[0])}}return l=Ft(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:e},l.queue=a,l=Us.bind(null,lt,a),a.dispatch=l,a=hc(!1),n=bc.bind(null,lt,!1,a.queue),a=Ft(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,l=zm.bind(null,lt,u,n,l),u.dispatch=l,a.memoizedState=t,[e,l,!1]}function ys(t){var e=jt();return gs(e,ht,t)}function gs(t,e,l){if(e=oc(t,e,ms)[0],t=mn(Ye)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=lu(e)}catch(i){throw i===Wa?fn:i}else a=e;e=jt();var u=e.queue,n=u.dispatch;return l!==e.memoizedState&&(lt.flags|=2048,da(9,vn(),Mm.bind(null,u,l),null)),[a,n,t]}function Mm(t,e){t.action=e}function ps(t){var e=jt(),l=ht;if(l!==null)return gs(e,l,t);jt(),e=e.memoizedState,l=jt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function da(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=lt.updateQueue,e===null&&(e=rc(),lt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function vn(){return{destroy:void 0,resource:void 0}}function bs(){return jt().memoizedState}function yn(t,e,l,a){var u=Ft();a=a===void 0?null:a,lt.flags|=t,u.memoizedState=da(1|e,vn(),l,a)}function au(t,e,l,a){var u=jt();a=a===void 0?null:a;var n=u.memoizedState.inst;ht!==null&&a!==null&&uc(a,ht.memoizedState.deps)?u.memoizedState=da(e,n,l,a):(lt.flags|=t,u.memoizedState=da(1|e,n,l,a))}function Ss(t,e){yn(8390656,8,t,e)}function xs(t,e){au(2048,8,t,e)}function Es(t,e){return au(4,2,t,e)}function Ts(t,e){return au(4,4,t,e)}function As(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Rs(t,e,l){l=l!=null?l.concat([t]):null,au(4,4,As.bind(null,e,t),l)}function vc(){}function Os(t,e){var l=jt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&uc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function zs(t,e){var l=jt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&uc(e,a[1]))return a[0];if(a=t(),Bl){We(!0);try{t()}finally{We(!1)}}return l.memoizedState=[a,e],a}function yc(t,e,l){return l===void 0||(al&1073741824)!==0?t.memoizedState=e:(t.memoizedState=l,t=_o(),lt.lanes|=t,sl|=t,l)}function Ms(t,e,l,a){return ae(l,e)?l:ra.current!==null?(t=yc(t,l,a),ae(t,e)||(Bt=!0),t):(al&42)===0?(Bt=!0,t.memoizedState=l):(t=_o(),lt.lanes|=t,sl|=t,e)}function Ns(t,e,l,a,u){var n=X.p;X.p=n!==0&&8>n?n:8;var i=_.T,f={};_.T=f,bc(t,!1,e,l);try{var m=u(),T=_.S;if(T!==null&&T(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var D=Am(m,a);uu(t,e,D,fe(t))}else uu(t,e,a,fe(t))}catch(U){uu(t,e,{then:function(){},status:"rejected",reason:U},fe())}finally{X.p=n,_.T=i}}function Nm(){}function gc(t,e,l,a){if(t.tag!==5)throw Error(r(476));var u=Ds(t).queue;Ns(t,u,e,W,l===null?Nm:function(){return _s(t),l(a)})}function Ds(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ye,lastRenderedState:W},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ye,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function _s(t){var e=Ds(t).next.queue;uu(t,e,{},fe())}function pc(){return Vt(Eu)}function js(){return jt().memoizedState}function Cs(){return jt().memoizedState}function Dm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=fe();t=el(l);var a=ll(e,t,l);a!==null&&(re(a,e,l),Pa(a,e,l)),e={cache:ki()},t.payload=e;return}e=e.return}}function _m(t,e,l){var a=fe();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},gn(t)?Hs(e,l):(l=Yi(t,e,l,a),l!==null&&(re(l,t,a),Bs(l,e,a)))}function Us(t,e,l){var a=fe();uu(t,e,l,a)}function uu(t,e,l,a){var u={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(gn(t))Hs(e,u);else{var n=t.alternate;if(t.lanes===0&&(n===null||n.lanes===0)&&(n=e.lastRenderedReducer,n!==null))try{var i=e.lastRenderedState,f=n(i,l);if(u.hasEagerState=!0,u.eagerState=f,ae(f,i))return Iu(t,e,u,0),pt===null&&Pu(),!1}catch{}finally{}if(l=Yi(t,e,u,a),l!==null)return re(l,t,a),Bs(l,e,a),!0}return!1}function bc(t,e,l,a){if(a={lane:2,revertLane:Fc(),action:a,hasEagerState:!1,eagerState:null,next:null},gn(t)){if(e)throw Error(r(479))}else e=Yi(t,l,a,2),e!==null&&re(e,t,2)}function gn(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function Hs(t,e){sa=on=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Bs(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Zf(t,l)}}var pn={readContext:Vt,use:hn,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt,useHostTransitionStatus:Mt,useFormState:Mt,useActionState:Mt,useOptimistic:Mt,useMemoCache:Mt,useCacheRefresh:Mt},qs={readContext:Vt,use:hn,useCallback:function(t,e){return Ft().memoizedState=[t,e===void 0?null:e],t},useContext:Vt,useEffect:Ss,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,yn(4194308,4,As.bind(null,e,t),l)},useLayoutEffect:function(t,e){return yn(4194308,4,t,e)},useInsertionEffect:function(t,e){yn(4,2,t,e)},useMemo:function(t,e){var l=Ft();e=e===void 0?null:e;var a=t();if(Bl){We(!0);try{t()}finally{We(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=Ft();if(l!==void 0){var u=l(e);if(Bl){We(!0);try{l(e)}finally{We(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=_m.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=Ft();return t={current:t},e.memoizedState=t},useState:function(t){t=hc(t);var e=t.queue,l=Us.bind(null,lt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:vc,useDeferredValue:function(t,e){var l=Ft();return yc(l,t,e)},useTransition:function(){var t=hc(!1);return t=Ns.bind(null,lt,t.queue,!0,!1),Ft().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=lt,u=Ft();if(st){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),pt===null)throw Error(r(349));(it&124)!==0||us(a,e,l)}u.memoizedState=l;var n={value:l,getSnapshot:e};return u.queue=n,Ss(is.bind(null,a,n,t),[t]),a.flags|=2048,da(9,vn(),ns.bind(null,a,n,l,e),null),l},useId:function(){var t=Ft(),e=pt.identifierPrefix;if(st){var l=He,a=Ue;l=(a&~(1<<32-le(a)-1)).toString(32)+l,e="«"+e+"R"+l,l=dn++,0<l&&(e+="H"+l.toString(32)),e+="»"}else l=Rm++,e="«"+e+"r"+l.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:pc,useFormState:vs,useActionState:vs,useOptimistic:function(t){var e=Ft();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=bc.bind(null,lt,!0,l),l.dispatch=e,[t,e]},useMemoCache:sc,useCacheRefresh:function(){return Ft().memoizedState=Dm.bind(null,lt)}},Ys={readContext:Vt,use:hn,useCallback:Os,useContext:Vt,useEffect:xs,useImperativeHandle:Rs,useInsertionEffect:Es,useLayoutEffect:Ts,useMemo:zs,useReducer:mn,useRef:bs,useState:function(){return mn(Ye)},useDebugValue:vc,useDeferredValue:function(t,e){var l=jt();return Ms(l,ht.memoizedState,t,e)},useTransition:function(){var t=mn(Ye)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:lu(t),e]},useSyncExternalStore:as,useId:js,useHostTransitionStatus:pc,useFormState:ys,useActionState:ys,useOptimistic:function(t,e){var l=jt();return rs(l,ht,t,e)},useMemoCache:sc,useCacheRefresh:Cs},jm={readContext:Vt,use:hn,useCallback:Os,useContext:Vt,useEffect:xs,useImperativeHandle:Rs,useInsertionEffect:Es,useLayoutEffect:Ts,useMemo:zs,useReducer:dc,useRef:bs,useState:function(){return dc(Ye)},useDebugValue:vc,useDeferredValue:function(t,e){var l=jt();return ht===null?yc(l,t,e):Ms(l,ht.memoizedState,t,e)},useTransition:function(){var t=dc(Ye)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:lu(t),e]},useSyncExternalStore:as,useId:js,useHostTransitionStatus:pc,useFormState:ps,useActionState:ps,useOptimistic:function(t,e){var l=jt();return ht!==null?rs(l,ht,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:sc,useCacheRefresh:Cs},ha=null,nu=0;function bn(t){var e=nu;return nu+=1,ha===null&&(ha=[]),$r(ha,t,e)}function iu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Sn(t,e){throw e.$$typeof===q?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ws(t){var e=t._init;return e(t._payload)}function Ls(t){function e(S,p){if(t){var x=S.deletions;x===null?(S.deletions=[p],S.flags|=16):x.push(p)}}function l(S,p){if(!t)return null;for(;p!==null;)e(S,p),p=p.sibling;return null}function a(S){for(var p=new Map;S!==null;)S.key!==null?p.set(S.key,S):p.set(S.index,S),S=S.sibling;return p}function u(S,p){return S=Ce(S,p),S.index=0,S.sibling=null,S}function n(S,p,x){return S.index=x,t?(x=S.alternate,x!==null?(x=x.index,x<p?(S.flags|=67108866,p):x):(S.flags|=67108866,p)):(S.flags|=1048576,p)}function i(S){return t&&S.alternate===null&&(S.flags|=67108866),S}function f(S,p,x,j){return p===null||p.tag!==6?(p=Li(x,S.mode,j),p.return=S,p):(p=u(p,x),p.return=S,p)}function m(S,p,x,j){var V=x.type;return V===H?D(S,p,x.props.children,j,x.key):p!==null&&(p.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===zt&&ws(V)===p.type)?(p=u(p,x.props),iu(p,x),p.return=S,p):(p=en(x.type,x.key,x.props,null,S.mode,j),iu(p,x),p.return=S,p)}function T(S,p,x,j){return p===null||p.tag!==4||p.stateNode.containerInfo!==x.containerInfo||p.stateNode.implementation!==x.implementation?(p=Gi(x,S.mode,j),p.return=S,p):(p=u(p,x.children||[]),p.return=S,p)}function D(S,p,x,j,V){return p===null||p.tag!==7?(p=Ml(x,S.mode,j,V),p.return=S,p):(p=u(p,x),p.return=S,p)}function U(S,p,x){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Li(""+p,S.mode,x),p.return=S,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case M:return x=en(p.type,p.key,p.props,null,S.mode,x),iu(x,p),x.return=S,x;case w:return p=Gi(p,S.mode,x),p.return=S,p;case zt:var j=p._init;return p=j(p._payload),U(S,p,x)}if(Qt(p)||Xt(p))return p=Ml(p,S.mode,x,null),p.return=S,p;if(typeof p.then=="function")return U(S,bn(p),x);if(p.$$typeof===P)return U(S,nn(S,p),x);Sn(S,p)}return null}function A(S,p,x,j){var V=p!==null?p.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return V!==null?null:f(S,p,""+x,j);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case M:return x.key===V?m(S,p,x,j):null;case w:return x.key===V?T(S,p,x,j):null;case zt:return V=x._init,x=V(x._payload),A(S,p,x,j)}if(Qt(x)||Xt(x))return V!==null?null:D(S,p,x,j,null);if(typeof x.then=="function")return A(S,p,bn(x),j);if(x.$$typeof===P)return A(S,p,nn(S,x),j);Sn(S,x)}return null}function R(S,p,x,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return S=S.get(x)||null,f(p,S,""+j,V);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case M:return S=S.get(j.key===null?x:j.key)||null,m(p,S,j,V);case w:return S=S.get(j.key===null?x:j.key)||null,T(p,S,j,V);case zt:var at=j._init;return j=at(j._payload),R(S,p,x,j,V)}if(Qt(j)||Xt(j))return S=S.get(x)||null,D(p,S,j,V,null);if(typeof j.then=="function")return R(S,p,x,bn(j),V);if(j.$$typeof===P)return R(S,p,x,nn(p,j),V);Sn(p,j)}return null}function F(S,p,x,j){for(var V=null,at=null,K=p,$=p=0,Yt=null;K!==null&&$<x.length;$++){K.index>$?(Yt=K,K=null):Yt=K.sibling;var rt=A(S,K,x[$],j);if(rt===null){K===null&&(K=Yt);break}t&&K&&rt.alternate===null&&e(S,K),p=n(rt,p,$),at===null?V=rt:at.sibling=rt,at=rt,K=Yt}if($===x.length)return l(S,K),st&&Dl(S,$),V;if(K===null){for(;$<x.length;$++)K=U(S,x[$],j),K!==null&&(p=n(K,p,$),at===null?V=K:at.sibling=K,at=K);return st&&Dl(S,$),V}for(K=a(K);$<x.length;$++)Yt=R(K,S,$,x[$],j),Yt!==null&&(t&&Yt.alternate!==null&&K.delete(Yt.key===null?$:Yt.key),p=n(Yt,p,$),at===null?V=Yt:at.sibling=Yt,at=Yt);return t&&K.forEach(function(bl){return e(S,bl)}),st&&Dl(S,$),V}function k(S,p,x,j){if(x==null)throw Error(r(151));for(var V=null,at=null,K=p,$=p=0,Yt=null,rt=x.next();K!==null&&!rt.done;$++,rt=x.next()){K.index>$?(Yt=K,K=null):Yt=K.sibling;var bl=A(S,K,rt.value,j);if(bl===null){K===null&&(K=Yt);break}t&&K&&bl.alternate===null&&e(S,K),p=n(bl,p,$),at===null?V=bl:at.sibling=bl,at=bl,K=Yt}if(rt.done)return l(S,K),st&&Dl(S,$),V;if(K===null){for(;!rt.done;$++,rt=x.next())rt=U(S,rt.value,j),rt!==null&&(p=n(rt,p,$),at===null?V=rt:at.sibling=rt,at=rt);return st&&Dl(S,$),V}for(K=a(K);!rt.done;$++,rt=x.next())rt=R(K,S,$,rt.value,j),rt!==null&&(t&&rt.alternate!==null&&K.delete(rt.key===null?$:rt.key),p=n(rt,p,$),at===null?V=rt:at.sibling=rt,at=rt);return t&&K.forEach(function(Cv){return e(S,Cv)}),st&&Dl(S,$),V}function vt(S,p,x,j){if(typeof x=="object"&&x!==null&&x.type===H&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case M:t:{for(var V=x.key;p!==null;){if(p.key===V){if(V=x.type,V===H){if(p.tag===7){l(S,p.sibling),j=u(p,x.props.children),j.return=S,S=j;break t}}else if(p.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===zt&&ws(V)===p.type){l(S,p.sibling),j=u(p,x.props),iu(j,x),j.return=S,S=j;break t}l(S,p);break}else e(S,p);p=p.sibling}x.type===H?(j=Ml(x.props.children,S.mode,j,x.key),j.return=S,S=j):(j=en(x.type,x.key,x.props,null,S.mode,j),iu(j,x),j.return=S,S=j)}return i(S);case w:t:{for(V=x.key;p!==null;){if(p.key===V)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){l(S,p.sibling),j=u(p,x.children||[]),j.return=S,S=j;break t}else{l(S,p);break}else e(S,p);p=p.sibling}j=Gi(x,S.mode,j),j.return=S,S=j}return i(S);case zt:return V=x._init,x=V(x._payload),vt(S,p,x,j)}if(Qt(x))return F(S,p,x,j);if(Xt(x)){if(V=Xt(x),typeof V!="function")throw Error(r(150));return x=V.call(x),k(S,p,x,j)}if(typeof x.then=="function")return vt(S,p,bn(x),j);if(x.$$typeof===P)return vt(S,p,nn(S,x),j);Sn(S,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,p!==null&&p.tag===6?(l(S,p.sibling),j=u(p,x),j.return=S,S=j):(l(S,p),j=Li(x,S.mode,j),j.return=S,S=j),i(S)):l(S,p)}return function(S,p,x,j){try{nu=0;var V=vt(S,p,x,j);return ha=null,V}catch(K){if(K===Wa||K===fn)throw K;var at=ue(29,K,null,S.mode);return at.lanes=j,at.return=S,at}finally{}}}var ma=Ls(!0),Gs=Ls(!1),ge=B(null),Re=null;function ul(t){var e=t.alternate;G(Ut,Ut.current&1),G(ge,t),Re===null&&(e===null||ra.current!==null||e.memoizedState!==null)&&(Re=t)}function Xs(t){if(t.tag===22){if(G(Ut,Ut.current),G(ge,t),Re===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Re=t)}}else nl()}function nl(){G(Ut,Ut.current),G(ge,ge.current)}function we(t){Q(ge),Re===t&&(Re=null),Q(Ut)}var Ut=B(0);function xn(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||sf(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Sc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:O({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var xc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=fe(),u=el(a);u.payload=e,l!=null&&(u.callback=l),e=ll(t,u,a),e!==null&&(re(e,t,a),Pa(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=fe(),u=el(a);u.tag=1,u.payload=e,l!=null&&(u.callback=l),e=ll(t,u,a),e!==null&&(re(e,t,a),Pa(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=fe(),a=el(l);a.tag=2,e!=null&&(a.callback=e),e=ll(t,a,l),e!==null&&(re(e,t,l),Pa(e,t,l))}};function Qs(t,e,l,a,u,n,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,n,i):e.prototype&&e.prototype.isPureReactComponent?!Xa(l,a)||!Xa(u,n):!0}function Zs(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&xc.enqueueReplaceState(e,e.state,null)}function ql(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=O({},l));for(var u in t)l[u]===void 0&&(l[u]=t[u])}return l}var En=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Vs(t){En(t)}function Ks(t){console.error(t)}function Js(t){En(t)}function Tn(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function ks(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ec(t,e,l){return l=el(l),l.tag=3,l.payload={element:null},l.callback=function(){Tn(t,e)},l}function $s(t){return t=el(t),t.tag=3,t}function Ws(t,e,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;t.payload=function(){return u(n)},t.callback=function(){ks(e,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){ks(e,l,a),typeof u!="function"&&(ol===null?ol=new Set([this]):ol.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Cm(t,e,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Ja(e,l,u,!0),l=ge.current,l!==null){switch(l.tag){case 13:return Re===null?Kc():l.alternate===null&&Ot===0&&(Ot=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===Fi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),kc(t,a,u)),!1;case 22:return l.flags|=65536,a===Fi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),kc(t,a,u)),!1}throw Error(r(435,l.tag))}return kc(t,a,u),Kc(),!1}if(st)return e=ge.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Zi&&(t=Error(r(422),{cause:a}),Ka(he(t,l)))):(a!==Zi&&(e=Error(r(423),{cause:a}),Ka(he(e,l))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=he(a,l),u=Ec(t.stateNode,a,u),tc(t,u),Ot!==4&&(Ot=2)),!1;var n=Error(r(520),{cause:a});if(n=he(n,l),hu===null?hu=[n]:hu.push(n),Ot!==4&&(Ot=2),e===null)return!0;a=he(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=u&-u,l.lanes|=t,t=Ec(l.stateNode,a,t),tc(l,t),!1;case 1:if(e=l.type,n=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(ol===null||!ol.has(n))))return l.flags|=65536,u&=-u,l.lanes|=u,u=$s(u),Ws(u,t,l,a),tc(l,u),!1}l=l.return}while(l!==null);return!1}var Fs=Error(r(461)),Bt=!1;function wt(t,e,l,a){e.child=t===null?Gs(e,null,l,a):ma(e,t.child,l,a)}function Ps(t,e,l,a,u){l=l.render;var n=e.ref;if("ref"in a){var i={};for(var f in a)f!=="ref"&&(i[f]=a[f])}else i=a;return Ul(e),a=nc(t,e,l,i,n,u),f=ic(),t!==null&&!Bt?(cc(t,e,u),Le(t,e,u)):(st&&f&&Xi(e),e.flags|=1,wt(t,e,a,u),e.child)}function Is(t,e,l,a,u){if(t===null){var n=l.type;return typeof n=="function"&&!wi(n)&&n.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=n,to(t,e,n,a,u)):(t=en(l.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(n=t.child,!Dc(t,u)){var i=n.memoizedProps;if(l=l.compare,l=l!==null?l:Xa,l(i,a)&&t.ref===e.ref)return Le(t,e,u)}return e.flags|=1,t=Ce(n,a),t.ref=e.ref,t.return=e,e.child=t}function to(t,e,l,a,u){if(t!==null){var n=t.memoizedProps;if(Xa(n,a)&&t.ref===e.ref)if(Bt=!1,e.pendingProps=a=n,Dc(t,u))(t.flags&131072)!==0&&(Bt=!0);else return e.lanes=t.lanes,Le(t,e,u)}return Tc(t,e,l,a,u)}function eo(t,e,l){var a=e.pendingProps,u=a.children,n=t!==null?t.memoizedState:null;if(a.mode==="hidden"){if((e.flags&128)!==0){if(a=n!==null?n.baseLanes|l:l,t!==null){for(u=e.child=t.child,n=0;u!==null;)n=n|u.lanes|u.childLanes,u=u.sibling;e.childLanes=n&~a}else e.childLanes=0,e.child=null;return lo(t,e,a,l)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&cn(e,n!==null?n.cachePool:null),n!==null?ts(e,n):lc(),Xs(e);else return e.lanes=e.childLanes=536870912,lo(t,e,n!==null?n.baseLanes|l:l,l)}else n!==null?(cn(e,n.cachePool),ts(e,n),nl(),e.memoizedState=null):(t!==null&&cn(e,null),lc(),nl());return wt(t,e,u,l),e.child}function lo(t,e,l,a){var u=Wi();return u=u===null?null:{parent:Ct._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&cn(e,null),lc(),Xs(e),t!==null&&Ja(t,e,a,!0),null}function An(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Tc(t,e,l,a,u){return Ul(e),l=nc(t,e,l,a,void 0,u),a=ic(),t!==null&&!Bt?(cc(t,e,u),Le(t,e,u)):(st&&a&&Xi(e),e.flags|=1,wt(t,e,l,u),e.child)}function ao(t,e,l,a,u,n){return Ul(e),e.updateQueue=null,l=ls(e,a,l,u),es(t),a=ic(),t!==null&&!Bt?(cc(t,e,n),Le(t,e,n)):(st&&a&&Xi(e),e.flags|=1,wt(t,e,l,n),e.child)}function uo(t,e,l,a,u){if(Ul(e),e.stateNode===null){var n=ua,i=l.contextType;typeof i=="object"&&i!==null&&(n=Vt(i)),n=new l(a,n),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=xc,e.stateNode=n,n._reactInternals=e,n=e.stateNode,n.props=a,n.state=e.memoizedState,n.refs={},Pi(e),i=l.contextType,n.context=typeof i=="object"&&i!==null?Vt(i):ua,n.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Sc(e,l,i,a),n.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&xc.enqueueReplaceState(n,n.state,null),tu(e,a,n,u),Ia(),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){n=e.stateNode;var f=e.memoizedProps,m=ql(l,f);n.props=m;var T=n.context,D=l.contextType;i=ua,typeof D=="object"&&D!==null&&(i=Vt(D));var U=l.getDerivedStateFromProps;D=typeof U=="function"||typeof n.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,D||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(f||T!==i)&&Zs(e,n,a,i),tl=!1;var A=e.memoizedState;n.state=A,tu(e,a,n,u),Ia(),T=e.memoizedState,f||A!==T||tl?(typeof U=="function"&&(Sc(e,l,U,a),T=e.memoizedState),(m=tl||Qs(e,l,m,a,A,T,i))?(D||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(e.flags|=4194308)):(typeof n.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=T),n.props=a,n.state=T,n.context=i,a=m):(typeof n.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{n=e.stateNode,Ii(t,e),i=e.memoizedProps,D=ql(l,i),n.props=D,U=e.pendingProps,A=n.context,T=l.contextType,m=ua,typeof T=="object"&&T!==null&&(m=Vt(T)),f=l.getDerivedStateFromProps,(T=typeof f=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==U||A!==m)&&Zs(e,n,a,m),tl=!1,A=e.memoizedState,n.state=A,tu(e,a,n,u),Ia();var R=e.memoizedState;i!==U||A!==R||tl||t!==null&&t.dependencies!==null&&un(t.dependencies)?(typeof f=="function"&&(Sc(e,l,f,a),R=e.memoizedState),(D=tl||Qs(e,l,D,a,A,R,m)||t!==null&&t.dependencies!==null&&un(t.dependencies))?(T||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,R,m),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,R,m)),typeof n.componentDidUpdate=="function"&&(e.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=R),n.props=a,n.state=R,n.context=m,a=D):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),a=!1)}return n=a,An(t,e),a=(e.flags&128)!==0,n||a?(n=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:n.render(),e.flags|=1,t!==null&&a?(e.child=ma(e,t.child,null,u),e.child=ma(e,null,l,u)):wt(t,e,l,u),e.memoizedState=n.state,t=e.child):t=Le(t,e,u),t}function no(t,e,l,a){return Va(),e.flags|=256,wt(t,e,l,a),e.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(t){return{baseLanes:t,cachePool:Kr()}}function Oc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=pe),t}function io(t,e,l){var a=e.pendingProps,u=!1,n=(e.flags&128)!==0,i;if((i=n)||(i=t!==null&&t.memoizedState===null?!1:(Ut.current&2)!==0),i&&(u=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(st){if(u?ul(e):nl(),st){var f=Rt,m;if(m=f){t:{for(m=f,f=Ae;m.nodeType!==8;){if(!f){f=null;break t}if(m=Ee(m.nextSibling),m===null){f=null;break t}}f=m}f!==null?(e.memoizedState={dehydrated:f,treeContext:Nl!==null?{id:Ue,overflow:He}:null,retryLane:536870912,hydrationErrors:null},m=ue(18,null,null,0),m.stateNode=f,m.return=e,e.child=m,kt=e,Rt=null,m=!0):m=!1}m||jl(e)}if(f=e.memoizedState,f!==null&&(f=f.dehydrated,f!==null))return sf(f)?e.lanes=32:e.lanes=536870912,null;we(e)}return f=a.children,a=a.fallback,u?(nl(),u=e.mode,f=Rn({mode:"hidden",children:f},u),a=Ml(a,u,l,null),f.return=e,a.return=e,f.sibling=a,e.child=f,u=e.child,u.memoizedState=Rc(l),u.childLanes=Oc(t,i,l),e.memoizedState=Ac,a):(ul(e),zc(e,f))}if(m=t.memoizedState,m!==null&&(f=m.dehydrated,f!==null)){if(n)e.flags&256?(ul(e),e.flags&=-257,e=Mc(t,e,l)):e.memoizedState!==null?(nl(),e.child=t.child,e.flags|=128,e=null):(nl(),u=a.fallback,f=e.mode,a=Rn({mode:"visible",children:a.children},f),u=Ml(u,f,l,null),u.flags|=2,a.return=e,u.return=e,a.sibling=u,e.child=a,ma(e,t.child,null,l),a=e.child,a.memoizedState=Rc(l),a.childLanes=Oc(t,i,l),e.memoizedState=Ac,e=u);else if(ul(e),sf(f)){if(i=f.nextSibling&&f.nextSibling.dataset,i)var T=i.dgst;i=T,a=Error(r(419)),a.stack="",a.digest=i,Ka({value:a,source:null,stack:null}),e=Mc(t,e,l)}else if(Bt||Ja(t,e,l,!1),i=(l&t.childLanes)!==0,Bt||i){if(i=pt,i!==null&&(a=l&-l,a=(a&42)!==0?1:si(a),a=(a&(i.suspendedLanes|l))!==0?0:a,a!==0&&a!==m.retryLane))throw m.retryLane=a,aa(t,a),re(i,t,a),Fs;f.data==="$?"||Kc(),e=Mc(t,e,l)}else f.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Rt=Ee(f.nextSibling),kt=e,st=!0,_l=null,Ae=!1,t!==null&&(ve[ye++]=Ue,ve[ye++]=He,ve[ye++]=Nl,Ue=t.id,He=t.overflow,Nl=e),e=zc(e,a.children),e.flags|=4096);return e}return u?(nl(),u=a.fallback,f=e.mode,m=t.child,T=m.sibling,a=Ce(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,T!==null?u=Ce(T,u):(u=Ml(u,f,l,null),u.flags|=2),u.return=e,a.return=e,a.sibling=u,e.child=a,a=u,u=e.child,f=t.child.memoizedState,f===null?f=Rc(l):(m=f.cachePool,m!==null?(T=Ct._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=Kr(),f={baseLanes:f.baseLanes|l,cachePool:m}),u.memoizedState=f,u.childLanes=Oc(t,i,l),e.memoizedState=Ac,a):(ul(e),l=t.child,t=l.sibling,l=Ce(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function zc(t,e){return e=Rn({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Rn(t,e){return t=ue(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Mc(t,e,l){return ma(e,t.child,null,l),t=zc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function co(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Ki(t.return,e,l)}function Nc(t,e,l,a,u){var n=t.memoizedState;n===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u}:(n.isBackwards=e,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=l,n.tailMode=u)}function fo(t,e,l){var a=e.pendingProps,u=a.revealOrder,n=a.tail;if(wt(t,e,a.children,l),a=Ut.current,(a&2)!==0)a=a&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&co(t,l,e);else if(t.tag===19)co(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}switch(G(Ut,a),u){case"forwards":for(l=e.child,u=null;l!==null;)t=l.alternate,t!==null&&xn(t)===null&&(u=l),l=l.sibling;l=u,l===null?(u=e.child,e.child=null):(u=l.sibling,l.sibling=null),Nc(e,!1,u,l,n);break;case"backwards":for(l=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&xn(t)===null){e.child=u;break}t=u.sibling,u.sibling=l,l=u,u=t}Nc(e,!0,l,null,n);break;case"together":Nc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Le(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),sl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ja(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=Ce(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ce(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Dc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&un(t)))}function Um(t,e,l){switch(e.tag){case 3:St(e,e.stateNode.containerInfo),Ie(e,Ct,t.memoizedState.cache),Va();break;case 27:case 5:ni(e);break;case 4:St(e,e.stateNode.containerInfo);break;case 10:Ie(e,e.type,e.memoizedProps.value);break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ul(e),e.flags|=128,null):(l&e.child.childLanes)!==0?io(t,e,l):(ul(e),t=Le(t,e,l),t!==null?t.sibling:null);ul(e);break;case 19:var u=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Ja(t,e,l,!1),a=(l&e.childLanes)!==0),u){if(a)return fo(t,e,l);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),G(Ut,Ut.current),a)break;return null;case 22:case 23:return e.lanes=0,eo(t,e,l);case 24:Ie(e,Ct,t.memoizedState.cache)}return Le(t,e,l)}function ro(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Bt=!0;else{if(!Dc(t,l)&&(e.flags&128)===0)return Bt=!1,Um(t,e,l);Bt=(t.flags&131072)!==0}else Bt=!1,st&&(e.flags&1048576)!==0&&wr(e,an,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var a=e.elementType,u=a._init;if(a=u(a._payload),e.type=a,typeof a=="function")wi(a)?(t=ql(a,t),e.tag=1,e=uo(null,e,a,t,l)):(e.tag=0,e=Tc(null,e,a,t,l));else{if(a!=null){if(u=a.$$typeof,u===ct){e.tag=11,e=Ps(null,e,a,t,l);break t}else if(u===At){e.tag=14,e=Is(null,e,a,t,l);break t}}throw e=El(a)||a,Error(r(306,e,""))}}return e;case 0:return Tc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,u=ql(a,e.pendingProps),uo(t,e,a,u,l);case 3:t:{if(St(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var n=e.memoizedState;u=n.element,Ii(t,e),tu(e,a,null,l);var i=e.memoizedState;if(a=i.cache,Ie(e,Ct,a),a!==n.cache&&Ji(e,[Ct],l,!0),Ia(),a=i.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=n,e.memoizedState=n,e.flags&256){e=no(t,e,a,l);break t}else if(a!==u){u=he(Error(r(424)),e),Ka(u),e=no(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Rt=Ee(t.firstChild),kt=e,st=!0,_l=null,Ae=!0,l=Gs(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Va(),a===u){e=Le(t,e,l);break t}wt(t,e,a,l)}e=e.child}return e;case 26:return An(t,e),t===null?(l=md(e.type,null,e.pendingProps,null))?e.memoizedState=l:st||(l=e.type,t=e.pendingProps,a=wn(tt.current).createElement(l),a[Zt]=e,a[$t]=t,Gt(a,l,t),Ht(a),e.stateNode=a):e.memoizedState=md(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ni(e),t===null&&st&&(a=e.stateNode=od(e.type,e.pendingProps,tt.current),kt=e,Ae=!0,u=Rt,ml(e.type)?(of=u,Rt=Ee(a.firstChild)):Rt=u),wt(t,e,e.pendingProps.children,l),An(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&st&&((u=a=Rt)&&(a=fv(a,e.type,e.pendingProps,Ae),a!==null?(e.stateNode=a,kt=e,Rt=Ee(a.firstChild),Ae=!1,u=!0):u=!1),u||jl(e)),ni(e),u=e.type,n=e.pendingProps,i=t!==null?t.memoizedProps:null,a=n.children,cf(u,n)?a=null:i!==null&&cf(u,i)&&(e.flags|=32),e.memoizedState!==null&&(u=nc(t,e,Om,null,null,l),Eu._currentValue=u),An(t,e),wt(t,e,a,l),e.child;case 6:return t===null&&st&&((t=l=Rt)&&(l=rv(l,e.pendingProps,Ae),l!==null?(e.stateNode=l,kt=e,Rt=null,t=!0):t=!1),t||jl(e)),null;case 13:return io(t,e,l);case 4:return St(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ma(e,null,a,l):wt(t,e,a,l),e.child;case 11:return Ps(t,e,e.type,e.pendingProps,l);case 7:return wt(t,e,e.pendingProps,l),e.child;case 8:return wt(t,e,e.pendingProps.children,l),e.child;case 12:return wt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Ie(e,e.type,a.value),wt(t,e,a.children,l),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,Ul(e),u=Vt(u),a=a(u),e.flags|=1,wt(t,e,a,l),e.child;case 14:return Is(t,e,e.type,e.pendingProps,l);case 15:return to(t,e,e.type,e.pendingProps,l);case 19:return fo(t,e,l);case 31:return a=e.pendingProps,l=e.mode,a={mode:a.mode,children:a.children},t===null?(l=Rn(a,l),l.ref=e.ref,e.child=l,l.return=e,e=l):(l=Ce(t.child,a),l.ref=e.ref,e.child=l,l.return=e,e=l),e;case 22:return eo(t,e,l);case 24:return Ul(e),a=Vt(Ct),t===null?(u=Wi(),u===null&&(u=pt,n=ki(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=l),u=n),e.memoizedState={parent:a,cache:u},Pi(e),Ie(e,Ct,u)):((t.lanes&l)!==0&&(Ii(t,e),tu(e,null,null,l),Ia()),u=t.memoizedState,n=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Ie(e,Ct,a)):(a=n.cache,Ie(e,Ct,a),a!==u.cache&&Ji(e,[Ct],l,!0))),wt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Ge(t){t.flags|=4}function so(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!bd(e)){if(e=ge.current,e!==null&&((it&4194048)===it?Re!==null:(it&62914560)!==it&&(it&536870912)===0||e!==Re))throw Fa=Fi,Jr;t.flags|=8192}}function On(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Xf():536870912,t.lanes|=e,pa|=e)}function cu(t,e){if(!st)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Et(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var u=t.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Hm(t,e,l){var a=e.pendingProps;switch(Qi(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(e),null;case 1:return Et(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),qe(Ct),$e(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Za(e)?Ge(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Xr())),Et(e),null;case 26:return l=e.memoizedState,t===null?(Ge(e),l!==null?(Et(e),so(e,l)):(Et(e),e.flags&=-16777217)):l?l!==t.memoizedState?(Ge(e),Et(e),so(e,l)):(Et(e),e.flags&=-16777217):(t.memoizedProps!==a&&Ge(e),Et(e),e.flags&=-16777217),null;case 27:Bu(e),l=tt.current;var u=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Ge(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Et(e),null}t=J.current,Za(e)?Lr(e):(t=od(u,a,l),e.stateNode=t,Ge(e))}return Et(e),null;case 5:if(Bu(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Ge(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Et(e),null}if(t=J.current,Za(e))Lr(e);else{switch(u=wn(tt.current),t){case 1:t=u.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=u.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":t=u.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?t.multiple=!0:a.size&&(t.size=a.size);break;default:t=typeof a.is=="string"?u.createElement(l,{is:a.is}):u.createElement(l)}}t[Zt]=e,t[$t]=a;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)t.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=t;t:switch(Gt(t,l,a),l){case"button":case"input":case"select":case"textarea":t=!!a.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&Ge(e)}}return Et(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Ge(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=tt.current,Za(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,u=kt,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[Zt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||ud(t.nodeValue,l)),t||jl(e)}else t=wn(t).createTextNode(a),t[Zt]=e,e.stateNode=t}return Et(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Za(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[Zt]=e}else Va(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Et(e),u=!1}else u=Xr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(we(e),e):(we(e),null)}if(we(e),(e.flags&128)!==0)return e.lanes=l,e;if(l=a!==null,t=t!==null&&t.memoizedState!==null,l){a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var n=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)}return l!==t&&l&&(e.child.flags|=8192),On(e,e.updateQueue),Et(e),null;case 4:return $e(),t===null&&ef(e.stateNode.containerInfo),Et(e),null;case 10:return qe(e.type),Et(e),null;case 19:if(Q(Ut),u=e.memoizedState,u===null)return Et(e),null;if(a=(e.flags&128)!==0,n=u.rendering,n===null)if(a)cu(u,!1);else{if(Ot!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(n=xn(t),n!==null){for(e.flags|=128,cu(u,!1),t=n.updateQueue,e.updateQueue=t,On(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Yr(l,t),l=l.sibling;return G(Ut,Ut.current&1|2),e.child}t=t.sibling}u.tail!==null&&Te()>Nn&&(e.flags|=128,a=!0,cu(u,!1),e.lanes=4194304)}else{if(!a)if(t=xn(n),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,On(e,t),cu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!st)return Et(e),null}else 2*Te()-u.renderingStartTime>Nn&&l!==536870912&&(e.flags|=128,a=!0,cu(u,!1),e.lanes=4194304);u.isBackwards?(n.sibling=e.child,e.child=n):(t=u.last,t!==null?t.sibling=n:e.child=n,u.last=n)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Te(),e.sibling=null,t=Ut.current,G(Ut,a?t&1|2:t&1),e):(Et(e),null);case 22:case 23:return we(e),ac(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Et(e),e.subtreeFlags&6&&(e.flags|=8192)):Et(e),l=e.updateQueue,l!==null&&On(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&Q(Hl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),qe(Ct),Et(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Bm(t,e){switch(Qi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return qe(Ct),$e(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Bu(e),null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Va()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Ut),null;case 4:return $e(),null;case 10:return qe(e.type),null;case 22:case 23:return we(e),ac(),t!==null&&Q(Hl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return qe(Ct),null;case 25:return null;default:return null}}function oo(t,e){switch(Qi(e),e.tag){case 3:qe(Ct),$e();break;case 26:case 27:case 5:Bu(e);break;case 4:$e();break;case 13:we(e);break;case 19:Q(Ut);break;case 10:qe(e.type);break;case 22:case 23:we(e),ac(),t!==null&&Q(Hl);break;case 24:qe(Ct)}}function fu(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&t)===t){a=void 0;var n=l.create,i=l.inst;a=n(),i.destroy=a}l=l.next}while(l!==u)}}catch(f){gt(e,e.return,f)}}function il(t,e,l){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var n=u.next;a=n;do{if((a.tag&t)===t){var i=a.inst,f=i.destroy;if(f!==void 0){i.destroy=void 0,u=e;var m=l,T=f;try{T()}catch(D){gt(u,m,D)}}}a=a.next}while(a!==n)}}catch(D){gt(e,e.return,D)}}function ho(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Ir(e,l)}catch(a){gt(t,t.return,a)}}}function mo(t,e,l){l.props=ql(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){gt(t,e,a)}}function ru(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(u){gt(t,e,u)}}function Oe(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){gt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){gt(t,e,u)}else l.current=null}function vo(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){gt(t,t.return,u)}}function _c(t,e,l){try{var a=t.stateNode;av(a,t.type,l,e),a[$t]=e}catch(u){gt(t,t.return,u)}}function yo(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ml(t.type)||t.tag===4}function jc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||yo(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ml(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Cc(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Yn));else if(a!==4&&(a===27&&ml(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Cc(t,e,l),t=t.sibling;t!==null;)Cc(t,e,l),t=t.sibling}function zn(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&ml(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(zn(t,e,l),t=t.sibling;t!==null;)zn(t,e,l),t=t.sibling}function go(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);Gt(e,a,l),e[Zt]=t,e[$t]=l}catch(n){gt(t,t.return,n)}}var Xe=!1,Nt=!1,Uc=!1,po=typeof WeakSet=="function"?WeakSet:Set,qt=null;function qm(t,e){if(t=t.containerInfo,uf=Vn,t=Mr(t),ji(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{l.nodeType,n.nodeType}catch{l=null;break t}var i=0,f=-1,m=-1,T=0,D=0,U=t,A=null;e:for(;;){for(var R;U!==l||u!==0&&U.nodeType!==3||(f=i+u),U!==n||a!==0&&U.nodeType!==3||(m=i+a),U.nodeType===3&&(i+=U.nodeValue.length),(R=U.firstChild)!==null;)A=U,U=R;for(;;){if(U===t)break e;if(A===l&&++T===u&&(f=i),A===n&&++D===a&&(m=i),(R=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=R}l=f===-1||m===-1?null:{start:f,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(nf={focusedElem:t,selectionRange:l},Vn=!1,qt=e;qt!==null;)if(e=qt,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,qt=t;else for(;qt!==null;){switch(e=qt,n=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&n!==null){t=void 0,l=e,u=n.memoizedProps,n=n.memoizedState,a=l.stateNode;try{var F=ql(l.type,u,l.elementType===l.type);t=a.getSnapshotBeforeUpdate(F,n),a.__reactInternalSnapshotBeforeUpdate=t}catch(k){gt(l,l.return,k)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)rf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":rf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,qt=t;break}qt=e.return}}function bo(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:cl(t,l),a&4&&fu(5,l);break;case 1:if(cl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){gt(l,l.return,i)}else{var u=ql(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){gt(l,l.return,i)}}a&64&&ho(l),a&512&&ru(l,l.return);break;case 3:if(cl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Ir(t,e)}catch(i){gt(l,l.return,i)}}break;case 27:e===null&&a&4&&go(l);case 26:case 5:cl(t,l),e===null&&a&4&&vo(l),a&512&&ru(l,l.return);break;case 12:cl(t,l);break;case 13:cl(t,l),a&4&&Eo(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Km.bind(null,l),sv(t,l))));break;case 22:if(a=l.memoizedState!==null||Xe,!a){e=e!==null&&e.memoizedState!==null||Nt,u=Xe;var n=Nt;Xe=a,(Nt=e)&&!n?fl(t,l,(l.subtreeFlags&8772)!==0):cl(t,l),Xe=u,Nt=n}break;case 30:break;default:cl(t,l)}}function So(t){var e=t.alternate;e!==null&&(t.alternate=null,So(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&hi(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var xt=null,Pt=!1;function Qe(t,e,l){for(l=l.child;l!==null;)xo(t,e,l),l=l.sibling}function xo(t,e,l){if(ee&&typeof ee.onCommitFiberUnmount=="function")try{ee.onCommitFiberUnmount(Da,l)}catch{}switch(l.tag){case 26:Nt||Oe(l,e),Qe(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Nt||Oe(l,e);var a=xt,u=Pt;ml(l.type)&&(xt=l.stateNode,Pt=!1),Qe(t,e,l),pu(l.stateNode),xt=a,Pt=u;break;case 5:Nt||Oe(l,e);case 6:if(a=xt,u=Pt,xt=null,Qe(t,e,l),xt=a,Pt=u,xt!==null)if(Pt)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(l.stateNode)}catch(n){gt(l,e,n)}else try{xt.removeChild(l.stateNode)}catch(n){gt(l,e,n)}break;case 18:xt!==null&&(Pt?(t=xt,rd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ou(t)):rd(xt,l.stateNode));break;case 4:a=xt,u=Pt,xt=l.stateNode.containerInfo,Pt=!0,Qe(t,e,l),xt=a,Pt=u;break;case 0:case 11:case 14:case 15:Nt||il(2,l,e),Nt||il(4,l,e),Qe(t,e,l);break;case 1:Nt||(Oe(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&mo(l,e,a)),Qe(t,e,l);break;case 21:Qe(t,e,l);break;case 22:Nt=(a=Nt)||l.memoizedState!==null,Qe(t,e,l),Nt=a;break;default:Qe(t,e,l)}}function Eo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ou(t)}catch(l){gt(e,e.return,l)}}function Ym(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new po),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new po),e;default:throw Error(r(435,t.tag))}}function Hc(t,e){var l=Ym(t);e.forEach(function(a){var u=Jm.bind(null,t,a);l.has(a)||(l.add(a),a.then(u,u))})}function ne(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],n=t,i=e,f=i;t:for(;f!==null;){switch(f.tag){case 27:if(ml(f.type)){xt=f.stateNode,Pt=!1;break t}break;case 5:xt=f.stateNode,Pt=!1;break t;case 3:case 4:xt=f.stateNode.containerInfo,Pt=!0;break t}f=f.return}if(xt===null)throw Error(r(160));xo(n,i,u),xt=null,Pt=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)To(e,t),e=e.sibling}var xe=null;function To(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ne(e,t),ie(t),a&4&&(il(3,t,t.return),fu(3,t),il(5,t,t.return));break;case 1:ne(e,t),ie(t),a&512&&(Nt||l===null||Oe(l,l.return)),a&64&&Xe&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=xe;if(ne(e,t),ie(t),a&512&&(Nt||l===null||Oe(l,l.return)),a&4){var n=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,u=u.ownerDocument||u;e:switch(a){case"title":n=u.getElementsByTagName("title")[0],(!n||n[Ca]||n[Zt]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(a),u.head.insertBefore(n,u.querySelector("head > title"))),Gt(n,a,l),n[Zt]=t,Ht(n),a=n;break t;case"link":var i=gd("link","href",u).get(a+(l.href||""));if(i){for(var f=0;f<i.length;f++)if(n=i[f],n.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&n.getAttribute("rel")===(l.rel==null?null:l.rel)&&n.getAttribute("title")===(l.title==null?null:l.title)&&n.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(f,1);break e}}n=u.createElement(a),Gt(n,a,l),u.head.appendChild(n);break;case"meta":if(i=gd("meta","content",u).get(a+(l.content||""))){for(f=0;f<i.length;f++)if(n=i[f],n.getAttribute("content")===(l.content==null?null:""+l.content)&&n.getAttribute("name")===(l.name==null?null:l.name)&&n.getAttribute("property")===(l.property==null?null:l.property)&&n.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&n.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(f,1);break e}}n=u.createElement(a),Gt(n,a,l),u.head.appendChild(n);break;default:throw Error(r(468,a))}n[Zt]=t,Ht(n),a=n}t.stateNode=a}else pd(u,t.type,t.stateNode);else t.stateNode=yd(u,a,t.memoizedProps);else n!==a?(n===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):n.count--,a===null?pd(u,t.type,t.stateNode):yd(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&_c(t,t.memoizedProps,l.memoizedProps)}break;case 27:ne(e,t),ie(t),a&512&&(Nt||l===null||Oe(l,l.return)),l!==null&&a&4&&_c(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ne(e,t),ie(t),a&512&&(Nt||l===null||Oe(l,l.return)),t.flags&32){u=t.stateNode;try{Wl(u,"")}catch(R){gt(t,t.return,R)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,_c(t,u,l!==null?l.memoizedProps:u)),a&1024&&(Uc=!0);break;case 6:if(ne(e,t),ie(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(R){gt(t,t.return,R)}}break;case 3:if(Xn=null,u=xe,xe=Ln(e.containerInfo),ne(e,t),xe=u,ie(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ou(e.containerInfo)}catch(R){gt(t,t.return,R)}Uc&&(Uc=!1,Ao(t));break;case 4:a=xe,xe=Ln(t.stateNode.containerInfo),ne(e,t),ie(t),xe=a;break;case 12:ne(e,t),ie(t);break;case 13:ne(e,t),ie(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gc=Te()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Hc(t,a)));break;case 22:u=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,T=Xe,D=Nt;if(Xe=T||u,Nt=D||m,ne(e,t),Nt=D,Xe=T,ie(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(l===null||m||Xe||Nt||Yl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(n=m.stateNode,u)i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{f=m.stateNode;var U=m.memoizedProps.style,A=U!=null&&U.hasOwnProperty("display")?U.display:null;f.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(R){gt(m,m.return,R)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(R){gt(m,m.return,R)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Hc(t,l))));break;case 19:ne(e,t),ie(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Hc(t,a)));break;case 30:break;case 21:break;default:ne(e,t),ie(t)}}function ie(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(yo(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var u=l.stateNode,n=jc(t);zn(t,n,u);break;case 5:var i=l.stateNode;l.flags&32&&(Wl(i,""),l.flags&=-33);var f=jc(t);zn(t,f,i);break;case 3:case 4:var m=l.stateNode.containerInfo,T=jc(t);Cc(t,T,m);break;default:throw Error(r(161))}}catch(D){gt(t,t.return,D)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ao(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ao(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function cl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)bo(t,e.alternate,e),e=e.sibling}function Yl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:il(4,e,e.return),Yl(e);break;case 1:Oe(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&mo(e,e.return,l),Yl(e);break;case 27:pu(e.stateNode);case 26:case 5:Oe(e,e.return),Yl(e);break;case 22:e.memoizedState===null&&Yl(e);break;case 30:Yl(e);break;default:Yl(e)}t=t.sibling}}function fl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,n=e,i=n.flags;switch(n.tag){case 0:case 11:case 15:fl(u,n,l),fu(4,n);break;case 1:if(fl(u,n,l),a=n,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){gt(a,a.return,T)}if(a=n,u=a.updateQueue,u!==null){var f=a.stateNode;try{var m=u.shared.hiddenCallbacks;if(m!==null)for(u.shared.hiddenCallbacks=null,u=0;u<m.length;u++)Pr(m[u],f)}catch(T){gt(a,a.return,T)}}l&&i&64&&ho(n),ru(n,n.return);break;case 27:go(n);case 26:case 5:fl(u,n,l),l&&a===null&&i&4&&vo(n),ru(n,n.return);break;case 12:fl(u,n,l);break;case 13:fl(u,n,l),l&&i&4&&Eo(u,n);break;case 22:n.memoizedState===null&&fl(u,n,l),ru(n,n.return);break;case 30:break;default:fl(u,n,l)}e=e.sibling}}function Bc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ka(l))}function qc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ka(t))}function ze(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ro(t,e,l,a),e=e.sibling}function Ro(t,e,l,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:ze(t,e,l,a),u&2048&&fu(9,e);break;case 1:ze(t,e,l,a);break;case 3:ze(t,e,l,a),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ka(t)));break;case 12:if(u&2048){ze(t,e,l,a),t=e.stateNode;try{var n=e.memoizedProps,i=n.id,f=n.onPostCommit;typeof f=="function"&&f(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){gt(e,e.return,m)}}else ze(t,e,l,a);break;case 13:ze(t,e,l,a);break;case 23:break;case 22:n=e.stateNode,i=e.alternate,e.memoizedState!==null?n._visibility&2?ze(t,e,l,a):su(t,e):n._visibility&2?ze(t,e,l,a):(n._visibility|=2,va(t,e,l,a,(e.subtreeFlags&10256)!==0)),u&2048&&Bc(i,e);break;case 24:ze(t,e,l,a),u&2048&&qc(e.alternate,e);break;default:ze(t,e,l,a)}}function va(t,e,l,a,u){for(u=u&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var n=t,i=e,f=l,m=a,T=i.flags;switch(i.tag){case 0:case 11:case 15:va(n,i,f,m,u),fu(8,i);break;case 23:break;case 22:var D=i.stateNode;i.memoizedState!==null?D._visibility&2?va(n,i,f,m,u):su(n,i):(D._visibility|=2,va(n,i,f,m,u)),u&&T&2048&&Bc(i.alternate,i);break;case 24:va(n,i,f,m,u),u&&T&2048&&qc(i.alternate,i);break;default:va(n,i,f,m,u)}e=e.sibling}}function su(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,u=a.flags;switch(a.tag){case 22:su(l,a),u&2048&&Bc(a.alternate,a);break;case 24:su(l,a),u&2048&&qc(a.alternate,a);break;default:su(l,a)}e=e.sibling}}var ou=8192;function ya(t){if(t.subtreeFlags&ou)for(t=t.child;t!==null;)Oo(t),t=t.sibling}function Oo(t){switch(t.tag){case 26:ya(t),t.flags&ou&&t.memoizedState!==null&&Tv(xe,t.memoizedState,t.memoizedProps);break;case 5:ya(t);break;case 3:case 4:var e=xe;xe=Ln(t.stateNode.containerInfo),ya(t),xe=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=ou,ou=16777216,ya(t),ou=e):ya(t));break;default:ya(t)}}function zo(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function du(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];qt=a,No(a,t)}zo(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mo(t),t=t.sibling}function Mo(t){switch(t.tag){case 0:case 11:case 15:du(t),t.flags&2048&&il(9,t,t.return);break;case 3:du(t);break;case 12:du(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Mn(t)):du(t);break;default:du(t)}}function Mn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];qt=a,No(a,t)}zo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:il(8,e,e.return),Mn(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Mn(e));break;default:Mn(e)}t=t.sibling}}function No(t,e){for(;qt!==null;){var l=qt;switch(l.tag){case 0:case 11:case 15:il(8,l,e);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:ka(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,qt=a;else t:for(l=t;qt!==null;){a=qt;var u=a.sibling,n=a.return;if(So(a),a===l){qt=null;break t}if(u!==null){u.return=n,qt=u;break t}qt=n}}}var wm={getCacheForType:function(t){var e=Vt(Ct),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l}},Lm=typeof WeakMap=="function"?WeakMap:Map,ot=0,pt=null,ut=null,it=0,dt=0,ce=null,rl=!1,ga=!1,Yc=!1,Ze=0,Ot=0,sl=0,wl=0,wc=0,pe=0,pa=0,hu=null,It=null,Lc=!1,Gc=0,Nn=1/0,Dn=null,ol=null,Lt=0,dl=null,ba=null,Sa=0,Xc=0,Qc=null,Do=null,mu=0,Zc=null;function fe(){if((ot&2)!==0&&it!==0)return it&-it;if(_.T!==null){var t=ca;return t!==0?t:Fc()}return Vf()}function _o(){pe===0&&(pe=(it&536870912)===0||st?Gf():536870912);var t=ge.current;return t!==null&&(t.flags|=32),pe}function re(t,e,l){(t===pt&&(dt===2||dt===9)||t.cancelPendingCommit!==null)&&(xa(t,0),hl(t,it,pe,!1)),ja(t,l),((ot&2)===0||t!==pt)&&(t===pt&&((ot&2)===0&&(wl|=l),Ot===4&&hl(t,it,pe,!1)),Me(t))}function jo(t,e,l){if((ot&6)!==0)throw Error(r(327));var a=!l&&(e&124)===0&&(e&t.expiredLanes)===0||_a(t,e),u=a?Qm(t,e):Jc(t,e,!0),n=a;do{if(u===0){ga&&!a&&hl(t,e,0,!1);break}else{if(l=t.current.alternate,n&&!Gm(l)){u=Jc(t,e,!1),n=!1;continue}if(u===2){if(n=e,t.errorRecoveryDisabledLanes&n)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var f=t;u=hu;var m=f.current.memoizedState.isDehydrated;if(m&&(xa(f,i).flags|=256),i=Jc(f,i,!1),i!==2){if(Yc&&!m){f.errorRecoveryDisabledLanes|=n,wl|=n,u=4;break t}n=It,It=u,n!==null&&(It===null?It=n:It.push.apply(It,n))}u=i}if(n=!1,u!==2)continue}}if(u===1){xa(t,0),hl(t,e,0,!0);break}t:{switch(a=t,n=u,n){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:hl(a,e,pe,!rl);break t;case 2:It=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Gc+300-Te(),10<u)){if(hl(a,e,pe,!rl),Lu(a,0,!0)!==0)break t;a.timeoutHandle=cd(Co.bind(null,a,l,It,Dn,Lc,e,pe,wl,pa,rl,n,2,-0,0),u);break t}Co(a,l,It,Dn,Lc,e,pe,wl,pa,rl,n,0,-0,0)}}break}while(!0);Me(t)}function Co(t,e,l,a,u,n,i,f,m,T,D,U,A,R){if(t.timeoutHandle=-1,U=e.subtreeFlags,(U&8192||(U&16785408)===16785408)&&(xu={stylesheets:null,count:0,unsuspend:Ev},Oo(e),U=Av(),U!==null)){t.cancelPendingCommit=U(Lo.bind(null,t,e,n,l,a,u,i,f,m,D,1,A,R)),hl(t,n,i,!T);return}Lo(t,e,n,l,a,u,i,f,m)}function Gm(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],n=u.getSnapshot;u=u.value;try{if(!ae(n(),u))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function hl(t,e,l,a){e&=~wc,e&=~wl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var n=31-le(u),i=1<<n;a[n]=-1,u&=~i}l!==0&&Qf(t,l,e)}function _n(){return(ot&6)===0?(vu(0),!1):!0}function Vc(){if(ut!==null){if(dt===0)var t=ut.return;else t=ut,Be=Cl=null,fc(t),ha=null,nu=0,t=ut;for(;t!==null;)oo(t.alternate,t),t=t.return;ut=null}}function xa(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,nv(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Vc(),pt=t,ut=l=Ce(t.current,null),it=e,dt=0,ce=null,rl=!1,ga=_a(t,e),Yc=!1,pa=pe=wc=wl=sl=Ot=0,It=hu=null,Lc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-le(a),n=1<<u;e|=t[u],a&=~n}return Ze=e,Pu(),l}function Uo(t,e){lt=null,_.H=pn,e===Wa||e===fn?(e=Wr(),dt=3):e===Jr?(e=Wr(),dt=4):dt=e===Fs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ce=e,ut===null&&(Ot=1,Tn(t,he(e,t.current)))}function Ho(){var t=_.H;return _.H=pn,t===null?pn:t}function Bo(){var t=_.A;return _.A=wm,t}function Kc(){Ot=4,rl||(it&4194048)!==it&&ge.current!==null||(ga=!0),(sl&134217727)===0&&(wl&134217727)===0||pt===null||hl(pt,it,pe,!1)}function Jc(t,e,l){var a=ot;ot|=2;var u=Ho(),n=Bo();(pt!==t||it!==e)&&(Dn=null,xa(t,e)),e=!1;var i=Ot;t:do try{if(dt!==0&&ut!==null){var f=ut,m=ce;switch(dt){case 8:Vc(),i=6;break t;case 3:case 2:case 9:case 6:ge.current===null&&(e=!0);var T=dt;if(dt=0,ce=null,Ea(t,f,m,T),l&&ga){i=0;break t}break;default:T=dt,dt=0,ce=null,Ea(t,f,m,T)}}Xm(),i=Ot;break}catch(D){Uo(t,D)}while(!0);return e&&t.shellSuspendCounter++,Be=Cl=null,ot=a,_.H=u,_.A=n,ut===null&&(pt=null,it=0,Pu()),i}function Xm(){for(;ut!==null;)qo(ut)}function Qm(t,e){var l=ot;ot|=2;var a=Ho(),u=Bo();pt!==t||it!==e?(Dn=null,Nn=Te()+500,xa(t,e)):ga=_a(t,e);t:do try{if(dt!==0&&ut!==null){e=ut;var n=ce;e:switch(dt){case 1:dt=0,ce=null,Ea(t,e,n,1);break;case 2:case 9:if(kr(n)){dt=0,ce=null,Yo(e);break}e=function(){dt!==2&&dt!==9||pt!==t||(dt=7),Me(t)},n.then(e,e);break t;case 3:dt=7;break t;case 4:dt=5;break t;case 7:kr(n)?(dt=0,ce=null,Yo(e)):(dt=0,ce=null,Ea(t,e,n,7));break;case 5:var i=null;switch(ut.tag){case 26:i=ut.memoizedState;case 5:case 27:var f=ut;if(!i||bd(i)){dt=0,ce=null;var m=f.sibling;if(m!==null)ut=m;else{var T=f.return;T!==null?(ut=T,jn(T)):ut=null}break e}}dt=0,ce=null,Ea(t,e,n,5);break;case 6:dt=0,ce=null,Ea(t,e,n,6);break;case 8:Vc(),Ot=6;break t;default:throw Error(r(462))}}Zm();break}catch(D){Uo(t,D)}while(!0);return Be=Cl=null,_.H=a,_.A=u,ot=l,ut!==null?0:(pt=null,it=0,Pu(),Ot)}function Zm(){for(;ut!==null&&!dh();)qo(ut)}function qo(t){var e=ro(t.alternate,t,Ze);t.memoizedProps=t.pendingProps,e===null?jn(t):ut=e}function Yo(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=ao(l,e,e.pendingProps,e.type,void 0,it);break;case 11:e=ao(l,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:fc(e);default:oo(l,e),e=ut=Yr(e,Ze),e=ro(l,e,Ze)}t.memoizedProps=t.pendingProps,e===null?jn(t):ut=e}function Ea(t,e,l,a){Be=Cl=null,fc(e),ha=null,nu=0;var u=e.return;try{if(Cm(t,u,e,l,it)){Ot=1,Tn(t,he(l,t.current)),ut=null;return}}catch(n){if(u!==null)throw ut=u,n;Ot=1,Tn(t,he(l,t.current)),ut=null;return}e.flags&32768?(st||a===1?t=!0:ga||(it&536870912)!==0?t=!1:(rl=t=!0,(a===2||a===9||a===3||a===6)&&(a=ge.current,a!==null&&a.tag===13&&(a.flags|=16384))),wo(e,t)):jn(e)}function jn(t){var e=t;do{if((e.flags&32768)!==0){wo(e,rl);return}t=e.return;var l=Hm(e.alternate,e,Ze);if(l!==null){ut=l;return}if(e=e.sibling,e!==null){ut=e;return}ut=e=t}while(e!==null);Ot===0&&(Ot=5)}function wo(t,e){do{var l=Bm(t.alternate,t);if(l!==null){l.flags&=32767,ut=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ut=t;return}ut=t=l}while(t!==null);Ot=6,ut=null}function Lo(t,e,l,a,u,n,i,f,m){t.cancelPendingCommit=null;do Cn();while(Lt!==0);if((ot&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(n=e.lanes|e.childLanes,n|=qi,Eh(t,l,n,i,f,m),t===pt&&(ut=pt=null,it=0),ba=e,dl=t,Sa=l,Xc=n,Qc=u,Do=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,km(qu,function(){return Vo(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,u=X.p,X.p=2,i=ot,ot|=4;try{qm(t,e,l)}finally{ot=i,X.p=u,_.T=a}}Lt=1,Go(),Xo(),Qo()}}function Go(){if(Lt===1){Lt=0;var t=dl,e=ba,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=X.p;X.p=2;var u=ot;ot|=4;try{To(e,t);var n=nf,i=Mr(t.containerInfo),f=n.focusedElem,m=n.selectionRange;if(i!==f&&f&&f.ownerDocument&&zr(f.ownerDocument.documentElement,f)){if(m!==null&&ji(f)){var T=m.start,D=m.end;if(D===void 0&&(D=T),"selectionStart"in f)f.selectionStart=T,f.selectionEnd=Math.min(D,f.value.length);else{var U=f.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var R=A.getSelection(),F=f.textContent.length,k=Math.min(m.start,F),vt=m.end===void 0?k:Math.min(m.end,F);!R.extend&&k>vt&&(i=vt,vt=k,k=i);var S=Or(f,k),p=Or(f,vt);if(S&&p&&(R.rangeCount!==1||R.anchorNode!==S.node||R.anchorOffset!==S.offset||R.focusNode!==p.node||R.focusOffset!==p.offset)){var x=U.createRange();x.setStart(S.node,S.offset),R.removeAllRanges(),k>vt?(R.addRange(x),R.extend(p.node,p.offset)):(x.setEnd(p.node,p.offset),R.addRange(x))}}}}for(U=[],R=f;R=R.parentNode;)R.nodeType===1&&U.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<U.length;f++){var j=U[f];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Vn=!!uf,nf=uf=null}finally{ot=u,X.p=a,_.T=l}}t.current=e,Lt=2}}function Xo(){if(Lt===2){Lt=0;var t=dl,e=ba,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=X.p;X.p=2;var u=ot;ot|=4;try{bo(t,e.alternate,e)}finally{ot=u,X.p=a,_.T=l}}Lt=3}}function Qo(){if(Lt===4||Lt===3){Lt=0,hh();var t=dl,e=ba,l=Sa,a=Do;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Lt=5:(Lt=0,ba=dl=null,Zo(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(ol=null),oi(l),e=e.stateNode,ee&&typeof ee.onCommitFiberRoot=="function")try{ee.onCommitFiberRoot(Da,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=_.T,u=X.p,X.p=2,_.T=null;try{for(var n=t.onRecoverableError,i=0;i<a.length;i++){var f=a[i];n(f.value,{componentStack:f.stack})}}finally{_.T=e,X.p=u}}(Sa&3)!==0&&Cn(),Me(t),u=t.pendingLanes,(l&4194090)!==0&&(u&42)!==0?t===Zc?mu++:(mu=0,Zc=t):mu=0,vu(0)}}function Zo(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ka(e)))}function Cn(t){return Go(),Xo(),Qo(),Vo()}function Vo(){if(Lt!==5)return!1;var t=dl,e=Xc;Xc=0;var l=oi(Sa),a=_.T,u=X.p;try{X.p=32>l?32:l,_.T=null,l=Qc,Qc=null;var n=dl,i=Sa;if(Lt=0,ba=dl=null,Sa=0,(ot&6)!==0)throw Error(r(331));var f=ot;if(ot|=4,Mo(n.current),Ro(n,n.current,i,l),ot=f,vu(0,!1),ee&&typeof ee.onPostCommitFiberRoot=="function")try{ee.onPostCommitFiberRoot(Da,n)}catch{}return!0}finally{X.p=u,_.T=a,Zo(t,e)}}function Ko(t,e,l){e=he(l,e),e=Ec(t.stateNode,e,2),t=ll(t,e,2),t!==null&&(ja(t,2),Me(t))}function gt(t,e,l){if(t.tag===3)Ko(t,t,l);else for(;e!==null;){if(e.tag===3){Ko(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ol===null||!ol.has(a))){t=he(l,t),l=$s(2),a=ll(e,l,2),a!==null&&(Ws(l,a,e,t),ja(a,2),Me(a));break}}e=e.return}}function kc(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Lm;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(l)||(Yc=!0,u.add(l),t=Vm.bind(null,t,e,l),e.then(t,t))}function Vm(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,pt===t&&(it&l)===l&&(Ot===4||Ot===3&&(it&62914560)===it&&300>Te()-Gc?(ot&2)===0&&xa(t,0):wc|=l,pa===it&&(pa=0)),Me(t)}function Jo(t,e){e===0&&(e=Xf()),t=aa(t,e),t!==null&&(ja(t,e),Me(t))}function Km(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Jo(t,l)}function Jm(t,e){var l=0;switch(t.tag){case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),Jo(t,l)}function km(t,e){return ci(t,e)}var Un=null,Ta=null,$c=!1,Hn=!1,Wc=!1,Ll=0;function Me(t){t!==Ta&&t.next===null&&(Ta===null?Un=Ta=t:Ta=Ta.next=t),Hn=!0,$c||($c=!0,Wm())}function vu(t,e){if(!Wc&&Hn){Wc=!0;do for(var l=!1,a=Un;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var i=a.suspendedLanes,f=a.pingedLanes;n=(1<<31-le(42|t)+1)-1,n&=u&~(i&~f),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(l=!0,Fo(a,n))}else n=it,n=Lu(a,a===pt?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||_a(a,n)||(l=!0,Fo(a,n));a=a.next}while(l);Wc=!1}}function $m(){ko()}function ko(){Hn=$c=!1;var t=0;Ll!==0&&(uv()&&(t=Ll),Ll=0);for(var e=Te(),l=null,a=Un;a!==null;){var u=a.next,n=$o(a,e);n===0?(a.next=null,l===null?Un=u:l.next=u,u===null&&(Ta=l)):(l=a,(t!==0||(n&3)!==0)&&(Hn=!0)),a=u}vu(t)}function $o(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,n=t.pendingLanes&-62914561;0<n;){var i=31-le(n),f=1<<i,m=u[i];m===-1?((f&l)===0||(f&a)!==0)&&(u[i]=xh(f,e)):m<=e&&(t.expiredLanes|=f),n&=~f}if(e=pt,l=it,l=Lu(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(dt===2||dt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&fi(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||_a(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&fi(a),oi(l)){case 2:case 8:l=wf;break;case 32:l=qu;break;case 268435456:l=Lf;break;default:l=qu}return a=Wo.bind(null,t),l=ci(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&fi(a),t.callbackPriority=2,t.callbackNode=null,2}function Wo(t,e){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Cn()&&t.callbackNode!==l)return null;var a=it;return a=Lu(t,t===pt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(jo(t,a,e),$o(t,Te()),t.callbackNode!=null&&t.callbackNode===l?Wo.bind(null,t):null)}function Fo(t,e){if(Cn())return null;jo(t,e,!0)}function Wm(){iv(function(){(ot&6)!==0?ci(Yf,$m):ko()})}function Fc(){return Ll===0&&(Ll=Gf()),Ll}function Po(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vu(""+t)}function Io(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Fm(t,e,l,a,u){if(e==="submit"&&l&&l.stateNode===u){var n=Po((u[$t]||null).action),i=a.submitter;i&&(e=(e=i[$t]||null)?Po(e.formAction):i.getAttribute("formAction"),e!==null&&(n=e,i=null));var f=new $u("action","action",null,a,u);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ll!==0){var m=i?Io(u,i):new FormData(u);gc(l,{pending:!0,data:m,method:u.method,action:n},null,m)}}else typeof n=="function"&&(f.preventDefault(),m=i?Io(u,i):new FormData(u),gc(l,{pending:!0,data:m,method:u.method,action:n},n,m))},currentTarget:u}]})}}for(var Pc=0;Pc<Bi.length;Pc++){var Ic=Bi[Pc],Pm=Ic.toLowerCase(),Im=Ic[0].toUpperCase()+Ic.slice(1);Se(Pm,"on"+Im)}Se(_r,"onAnimationEnd"),Se(jr,"onAnimationIteration"),Se(Cr,"onAnimationStart"),Se("dblclick","onDoubleClick"),Se("focusin","onFocus"),Se("focusout","onBlur"),Se(ym,"onTransitionRun"),Se(gm,"onTransitionStart"),Se(pm,"onTransitionCancel"),Se(Ur,"onTransitionEnd"),Jl("onMouseEnter",["mouseout","mouseover"]),Jl("onMouseLeave",["mouseout","mouseover"]),Jl("onPointerEnter",["pointerout","pointerover"]),Jl("onPointerLeave",["pointerout","pointerover"]),Al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Al("onBeforeInput",["compositionend","keypress","textInput","paste"]),Al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yu="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(" "),tv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yu));function td(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],u=a.event;a=a.listeners;t:{var n=void 0;if(e)for(var i=a.length-1;0<=i;i--){var f=a[i],m=f.instance,T=f.currentTarget;if(f=f.listener,m!==n&&u.isPropagationStopped())break t;n=f,u.currentTarget=T;try{n(u)}catch(D){En(D)}u.currentTarget=null,n=m}else for(i=0;i<a.length;i++){if(f=a[i],m=f.instance,T=f.currentTarget,f=f.listener,m!==n&&u.isPropagationStopped())break t;n=f,u.currentTarget=T;try{n(u)}catch(D){En(D)}u.currentTarget=null,n=m}}}}function nt(t,e){var l=e[di];l===void 0&&(l=e[di]=new Set);var a=t+"__bubble";l.has(a)||(ed(e,t,2,!1),l.add(a))}function tf(t,e,l){var a=0;e&&(a|=4),ed(l,t,a,e)}var Bn="_reactListening"+Math.random().toString(36).slice(2);function ef(t){if(!t[Bn]){t[Bn]=!0,Jf.forEach(function(l){l!=="selectionchange"&&(tv.has(l)||tf(l,!1,t),tf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Bn]||(e[Bn]=!0,tf("selectionchange",!1,e))}}function ed(t,e,l,a){switch(Rd(e)){case 2:var u=zv;break;case 8:u=Mv;break;default:u=yf}l=u.bind(null,e,l,t),u=void 0,!Ti||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,l,{capture:!0,passive:u}):t.addEventListener(e,l,!0):u!==void 0?t.addEventListener(e,l,{passive:u}):t.addEventListener(e,l,!1)}function lf(t,e,l,a,u){var n=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var f=a.stateNode.containerInfo;if(f===u)break;if(i===4)for(i=a.return;i!==null;){var m=i.tag;if((m===3||m===4)&&i.stateNode.containerInfo===u)return;i=i.return}for(;f!==null;){if(i=Zl(f),i===null)return;if(m=i.tag,m===5||m===6||m===26||m===27){a=n=i;continue t}f=f.parentNode}}a=a.return}cr(function(){var T=n,D=xi(l),U=[];t:{var A=Hr.get(t);if(A!==void 0){var R=$u,F=t;switch(t){case"keypress":if(Ju(l)===0)break t;case"keydown":case"keyup":R=kh;break;case"focusin":F="focus",R=zi;break;case"focusout":F="blur",R=zi;break;case"beforeblur":case"afterblur":R=zi;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Bh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=Fh;break;case _r:case jr:case Cr:R=wh;break;case Ur:R=Ih;break;case"scroll":case"scrollend":R=Uh;break;case"wheel":R=em;break;case"copy":case"cut":case"paste":R=Gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=dr;break;case"toggle":case"beforetoggle":R=am}var k=(e&4)!==0,vt=!k&&(t==="scroll"||t==="scrollend"),S=k?A!==null?A+"Capture":null:A;k=[];for(var p=T,x;p!==null;){var j=p;if(x=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||x===null||S===null||(j=Ha(p,S),j!=null&&k.push(gu(p,j,x))),vt)break;p=p.return}0<k.length&&(A=new R(A,F,null,l,D),U.push({event:A,listeners:k}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",R=t==="mouseout"||t==="pointerout",A&&l!==Si&&(F=l.relatedTarget||l.fromElement)&&(Zl(F)||F[Ql]))break t;if((R||A)&&(A=D.window===D?D:(A=D.ownerDocument)?A.defaultView||A.parentWindow:window,R?(F=l.relatedTarget||l.toElement,R=T,F=F?Zl(F):null,F!==null&&(vt=y(F),k=F.tag,F!==vt||k!==5&&k!==27&&k!==6)&&(F=null)):(R=null,F=T),R!==F)){if(k=sr,j="onMouseLeave",S="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(k=dr,j="onPointerLeave",S="onPointerEnter",p="pointer"),vt=R==null?A:Ua(R),x=F==null?A:Ua(F),A=new k(j,p+"leave",R,l,D),A.target=vt,A.relatedTarget=x,j=null,Zl(D)===T&&(k=new k(S,p+"enter",F,l,D),k.target=x,k.relatedTarget=vt,j=k),vt=j,R&&F)e:{for(k=R,S=F,p=0,x=k;x;x=Aa(x))p++;for(x=0,j=S;j;j=Aa(j))x++;for(;0<p-x;)k=Aa(k),p--;for(;0<x-p;)S=Aa(S),x--;for(;p--;){if(k===S||S!==null&&k===S.alternate)break e;k=Aa(k),S=Aa(S)}k=null}else k=null;R!==null&&ld(U,A,R,k,!1),F!==null&&vt!==null&&ld(U,vt,F,k,!0)}}t:{if(A=T?Ua(T):window,R=A.nodeName&&A.nodeName.toLowerCase(),R==="select"||R==="input"&&A.type==="file")var V=Sr;else if(pr(A))if(xr)V=hm;else{V=om;var at=sm}else R=A.nodeName,!R||R.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?T&&bi(T.elementType)&&(V=Sr):V=dm;if(V&&(V=V(t,T))){br(U,V,l,D);break t}at&&at(t,A,T),t==="focusout"&&T&&A.type==="number"&&T.memoizedProps.value!=null&&pi(A,"number",A.value)}switch(at=T?Ua(T):window,t){case"focusin":(pr(at)||at.contentEditable==="true")&&(ta=at,Ci=T,Qa=null);break;case"focusout":Qa=Ci=ta=null;break;case"mousedown":Ui=!0;break;case"contextmenu":case"mouseup":case"dragend":Ui=!1,Nr(U,l,D);break;case"selectionchange":if(vm)break;case"keydown":case"keyup":Nr(U,l,D)}var K;if(Ni)t:{switch(t){case"compositionstart":var $="onCompositionStart";break t;case"compositionend":$="onCompositionEnd";break t;case"compositionupdate":$="onCompositionUpdate";break t}$=void 0}else Il?yr(t,l)&&($="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&($="onCompositionStart");$&&(hr&&l.locale!=="ko"&&(Il||$!=="onCompositionStart"?$==="onCompositionEnd"&&Il&&(K=fr()):(Pe=D,Ai="value"in Pe?Pe.value:Pe.textContent,Il=!0)),at=qn(T,$),0<at.length&&($=new or($,t,null,l,D),U.push({event:$,listeners:at}),K?$.data=K:(K=gr(l),K!==null&&($.data=K)))),(K=nm?im(t,l):cm(t,l))&&($=qn(T,"onBeforeInput"),0<$.length&&(at=new or("onBeforeInput","beforeinput",null,l,D),U.push({event:at,listeners:$}),at.data=K)),Fm(U,t,T,l,D)}td(U,e)})}function gu(t,e,l){return{instance:t,listener:e,currentTarget:l}}function qn(t,e){for(var l=e+"Capture",a=[];t!==null;){var u=t,n=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=Ha(t,l),u!=null&&a.unshift(gu(t,u,n)),u=Ha(t,e),u!=null&&a.push(gu(t,u,n))),t.tag===3)return a;t=t.return}return[]}function Aa(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ld(t,e,l,a,u){for(var n=e._reactName,i=[];l!==null&&l!==a;){var f=l,m=f.alternate,T=f.stateNode;if(f=f.tag,m!==null&&m===a)break;f!==5&&f!==26&&f!==27||T===null||(m=T,u?(T=Ha(l,n),T!=null&&i.unshift(gu(l,T,m))):u||(T=Ha(l,n),T!=null&&i.push(gu(l,T,m)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var ev=/\r\n?/g,lv=/\u0000|\uFFFD/g;function ad(t){return(typeof t=="string"?t:""+t).replace(ev,`
`).replace(lv,"")}function ud(t,e){return e=ad(e),ad(t)===e}function Yn(){}function mt(t,e,l,a,u,n){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Wl(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Wl(t,""+a);break;case"className":Xu(t,"class",a);break;case"tabIndex":Xu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(t,l,a);break;case"style":nr(t,a,n);break;case"data":if(e!=="object"){Xu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Vu(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.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 n=="function"&&(l==="formAction"?(e!=="input"&&mt(t,e,"name",u.name,u,null),mt(t,e,"formEncType",u.formEncType,u,null),mt(t,e,"formMethod",u.formMethod,u,null),mt(t,e,"formTarget",u.formTarget,u,null)):(mt(t,e,"encType",u.encType,u,null),mt(t,e,"method",u.method,u,null),mt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Vu(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Yn);break;case"onScroll":a!=null&&nt("scroll",t);break;case"onScrollEnd":a!=null&&nt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}l=Vu(""+a),t.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"?t.setAttribute(l,""+a):t.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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":nt("beforetoggle",t),nt("toggle",t),Gu(t,"popover",a);break;case"xlinkActuate":_e(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":_e(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":_e(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":_e(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":_e(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":_e(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":_e(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":_e(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":_e(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Gu(t,"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=jh.get(l)||l,Gu(t,l,a))}}function af(t,e,l,a,u,n){switch(l){case"style":nr(t,a,n);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Wl(t,a):(typeof a=="number"||typeof a=="bigint")&&Wl(t,""+a);break;case"onScroll":a!=null&&nt("scroll",t);break;case"onScrollEnd":a!=null&&nt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kf.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),e=l.slice(2,u?l.length-7:void 0),n=t[$t]||null,n=n!=null?n[l]:null,typeof n=="function"&&t.removeEventListener(e,n,u),typeof a=="function")){typeof n!="function"&&n!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,u);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Gu(t,l,a)}}}function Gt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",t),nt("load",t);var a=!1,u=!1,n;for(n in l)if(l.hasOwnProperty(n)){var i=l[n];if(i!=null)switch(n){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:mt(t,e,n,i,l,null)}}u&&mt(t,e,"srcSet",l.srcSet,l,null),a&&mt(t,e,"src",l.src,l,null);return;case"input":nt("invalid",t);var f=n=i=u=null,m=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":u=D;break;case"type":i=D;break;case"checked":m=D;break;case"defaultChecked":T=D;break;case"value":n=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:mt(t,e,a,D,l,null)}}er(t,n,f,m,T,i,u,!1),Qu(t);return;case"select":nt("invalid",t),a=i=n=null;for(u in l)if(l.hasOwnProperty(u)&&(f=l[u],f!=null))switch(u){case"value":n=f;break;case"defaultValue":i=f;break;case"multiple":a=f;default:mt(t,e,u,f,l,null)}e=n,l=i,t.multiple=!!a,e!=null?$l(t,!!a,e,!1):l!=null&&$l(t,!!a,l,!0);return;case"textarea":nt("invalid",t),n=u=a=null;for(i in l)if(l.hasOwnProperty(i)&&(f=l[i],f!=null))switch(i){case"value":a=f;break;case"defaultValue":u=f;break;case"children":n=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:mt(t,e,i,f,l,null)}ar(t,a,u,n),Qu(t);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:mt(t,e,m,a,l,null)}return;case"dialog":nt("beforetoggle",t),nt("toggle",t),nt("cancel",t),nt("close",t);break;case"iframe":case"object":nt("load",t);break;case"video":case"audio":for(a=0;a<yu.length;a++)nt(yu[a],t);break;case"image":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"embed":case"source":case"link":nt("error",t),nt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:mt(t,e,T,a,l,null)}return;default:if(bi(e)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&af(t,e,D,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&mt(t,e,f,a,l,null))}function av(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,n=null,i=null,f=null,m=null,T=null,D=null;for(R in l){var U=l[R];if(l.hasOwnProperty(R)&&U!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":m=U;default:a.hasOwnProperty(R)||mt(t,e,R,null,a,U)}}for(var A in a){var R=a[A];if(U=l[A],a.hasOwnProperty(A)&&(R!=null||U!=null))switch(A){case"type":n=R;break;case"name":u=R;break;case"checked":T=R;break;case"defaultChecked":D=R;break;case"value":i=R;break;case"defaultValue":f=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,e));break;default:R!==U&&mt(t,e,A,R,a,U)}}gi(t,i,f,m,T,D,n,u);return;case"select":R=i=f=A=null;for(n in l)if(m=l[n],l.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":R=m;default:a.hasOwnProperty(n)||mt(t,e,n,null,a,m)}for(u in a)if(n=a[u],m=l[u],a.hasOwnProperty(u)&&(n!=null||m!=null))switch(u){case"value":A=n;break;case"defaultValue":f=n;break;case"multiple":i=n;default:n!==m&&mt(t,e,u,n,a,m)}e=f,l=i,a=R,A!=null?$l(t,!!l,A,!1):!!a!=!!l&&(e!=null?$l(t,!!l,e,!0):$l(t,!!l,l?[]:"",!1));return;case"textarea":R=A=null;for(f in l)if(u=l[f],l.hasOwnProperty(f)&&u!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:mt(t,e,f,null,a,u)}for(i in a)if(u=a[i],n=l[i],a.hasOwnProperty(i)&&(u!=null||n!=null))switch(i){case"value":A=u;break;case"defaultValue":R=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==n&&mt(t,e,i,u,a,n)}lr(t,A,R);return;case"option":for(var F in l)if(A=l[F],l.hasOwnProperty(F)&&A!=null&&!a.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:mt(t,e,F,null,a,A)}for(m in a)if(A=a[m],R=l[m],a.hasOwnProperty(m)&&A!==R&&(A!=null||R!=null))switch(m){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:mt(t,e,m,A,a,R)}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 k in l)A=l[k],l.hasOwnProperty(k)&&A!=null&&!a.hasOwnProperty(k)&&mt(t,e,k,null,a,A);for(T in a)if(A=a[T],R=l[T],a.hasOwnProperty(T)&&A!==R&&(A!=null||R!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,e));break;default:mt(t,e,T,A,a,R)}return;default:if(bi(e)){for(var vt in l)A=l[vt],l.hasOwnProperty(vt)&&A!==void 0&&!a.hasOwnProperty(vt)&&af(t,e,vt,void 0,a,A);for(D in a)A=a[D],R=l[D],!a.hasOwnProperty(D)||A===R||A===void 0&&R===void 0||af(t,e,D,A,a,R);return}}for(var S in l)A=l[S],l.hasOwnProperty(S)&&A!=null&&!a.hasOwnProperty(S)&&mt(t,e,S,null,a,A);for(U in a)A=a[U],R=l[U],!a.hasOwnProperty(U)||A===R||A==null&&R==null||mt(t,e,U,A,a,R)}var uf=null,nf=null;function wn(t){return t.nodeType===9?t:t.ownerDocument}function nd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function id(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function cf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ff=null;function uv(){var t=window.event;return t&&t.type==="popstate"?t===ff?!1:(ff=t,!0):(ff=null,!1)}var cd=typeof setTimeout=="function"?setTimeout:void 0,nv=typeof clearTimeout=="function"?clearTimeout:void 0,fd=typeof Promise=="function"?Promise:void 0,iv=typeof queueMicrotask=="function"?queueMicrotask:typeof fd<"u"?function(t){return fd.resolve(null).then(t).catch(cv)}:cd;function cv(t){setTimeout(function(){throw t})}function ml(t){return t==="head"}function rd(t,e){var l=e,a=0,u=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(0<a&&8>a){l=a;var i=t.ownerDocument;if(l&1&&pu(i.documentElement),l&2&&pu(i.body),l&4)for(l=i.head,pu(l),i=l.firstChild;i;){var f=i.nextSibling,m=i.nodeName;i[Ca]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=f}}if(u===0){t.removeChild(n),Ou(e);return}u--}else l==="$"||l==="$?"||l==="$!"?u++:a=l.charCodeAt(0)-48;else a=0;l=n}while(l);Ou(e)}function rf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":rf(l),hi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function fv(t,e,l,a){for(;t.nodeType===1;){var u=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ca])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(n=t.getAttribute("rel"),n==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(n!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(n=t.getAttribute("src"),(n!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===n)return t}else return t;if(t=Ee(t.nextSibling),t===null)break}return null}function rv(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ee(t.nextSibling),t===null))return null;return t}function sf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function sv(t,e){var l=t.ownerDocument;if(t.data!=="$?"||l.readyState==="complete")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ee(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var of=null;function sd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(e===0)return t;e--}else l==="/$"&&e++}t=t.previousSibling}return null}function od(t,e,l){switch(e=wn(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function pu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);hi(t)}var be=new Map,dd=new Set;function Ln(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ve=X.d;X.d={f:ov,r:dv,D:hv,C:mv,L:vv,m:yv,X:pv,S:gv,M:bv};function ov(){var t=Ve.f(),e=_n();return t||e}function dv(t){var e=Vl(t);e!==null&&e.tag===5&&e.type==="form"?_s(e):Ve.r(t)}var Ra=typeof document>"u"?null:document;function hd(t,e,l){var a=Ra;if(a&&typeof e=="string"&&e){var u=de(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),dd.has(u)||(dd.add(u),t={rel:t,crossOrigin:l,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),Gt(e,"link",t),Ht(e),a.head.appendChild(e)))}}function hv(t){Ve.D(t),hd("dns-prefetch",t,null)}function mv(t,e){Ve.C(t,e),hd("preconnect",t,e)}function vv(t,e,l){Ve.L(t,e,l);var a=Ra;if(a&&t&&e){var u='link[rel="preload"][as="'+de(e)+'"]';e==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+de(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+de(l.imageSizes)+'"]')):u+='[href="'+de(t)+'"]';var n=u;switch(e){case"style":n=Oa(t);break;case"script":n=za(t)}be.has(n)||(t=O({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),be.set(n,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(bu(n))||e==="script"&&a.querySelector(Su(n))||(e=a.createElement("link"),Gt(e,"link",t),Ht(e),a.head.appendChild(e)))}}function yv(t,e){Ve.m(t,e);var l=Ra;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+de(a)+'"][href="'+de(t)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=za(t)}if(!be.has(n)&&(t=O({rel:"modulepreload",href:t},e),be.set(n,t),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Su(n)))return}a=l.createElement("link"),Gt(a,"link",t),Ht(a),l.head.appendChild(a)}}}function gv(t,e,l){Ve.S(t,e,l);var a=Ra;if(a&&t){var u=Kl(a).hoistableStyles,n=Oa(t);e=e||"default";var i=u.get(n);if(!i){var f={loading:0,preload:null};if(i=a.querySelector(bu(n)))f.loading=5;else{t=O({rel:"stylesheet",href:t,"data-precedence":e},l),(l=be.get(n))&&df(t,l);var m=i=a.createElement("link");Ht(m),Gt(m,"link",t),m._p=new Promise(function(T,D){m.onload=T,m.onerror=D}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Gn(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:f},u.set(n,i)}}}function pv(t,e){Ve.X(t,e);var l=Ra;if(l&&t){var a=Kl(l).hoistableScripts,u=za(t),n=a.get(u);n||(n=l.querySelector(Su(u)),n||(t=O({src:t,async:!0},e),(e=be.get(u))&&hf(t,e),n=l.createElement("script"),Ht(n),Gt(n,"link",t),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function bv(t,e){Ve.M(t,e);var l=Ra;if(l&&t){var a=Kl(l).hoistableScripts,u=za(t),n=a.get(u);n||(n=l.querySelector(Su(u)),n||(t=O({src:t,async:!0,type:"module"},e),(e=be.get(u))&&hf(t,e),n=l.createElement("script"),Ht(n),Gt(n,"link",t),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function md(t,e,l,a){var u=(u=tt.current)?Ln(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Oa(l.href),l=Kl(u).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Oa(l.href);var n=Kl(u).hoistableStyles,i=n.get(t);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(t,i),(n=u.querySelector(bu(t)))&&!n._p&&(i.instance=n,i.state.loading=5),be.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},be.set(t,l),n||Sv(u,t,l,i.state))),e&&a===null)throw Error(r(528,""));return i}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=za(l),l=Kl(u).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Oa(t){return'href="'+de(t)+'"'}function bu(t){return'link[rel="stylesheet"]['+t+"]"}function vd(t){return O({},t,{"data-precedence":t.precedence,precedence:null})}function Sv(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Gt(e,"link",l),Ht(e),t.head.appendChild(e))}function za(t){return'[src="'+de(t)+'"]'}function Su(t){return"script[async]"+t}function yd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+de(l.href)+'"]');if(a)return e.instance=a,Ht(a),a;var u=O({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ht(a),Gt(a,"style",u),Gn(a,l.precedence,t),e.instance=a;case"stylesheet":u=Oa(l.href);var n=t.querySelector(bu(u));if(n)return e.state.loading|=4,e.instance=n,Ht(n),n;a=vd(l),(u=be.get(u))&&df(a,u),n=(t.ownerDocument||t).createElement("link"),Ht(n);var i=n;return i._p=new Promise(function(f,m){i.onload=f,i.onerror=m}),Gt(n,"link",a),e.state.loading|=4,Gn(n,l.precedence,t),e.instance=n;case"script":return n=za(l.src),(u=t.querySelector(Su(n)))?(e.instance=u,Ht(u),u):(a=l,(u=be.get(n))&&(a=O({},l),hf(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ht(u),Gt(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Gn(a,l.precedence,t));return e.instance}function Gn(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,n=u,i=0;i<a.length;i++){var f=a[i];if(f.dataset.precedence===e)n=f;else if(n!==u)break}n?n.parentNode.insertBefore(t,n.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function df(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function hf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Xn=null;function gd(t,e,l){if(Xn===null){var a=new Map,u=Xn=new Map;u.set(l,a)}else u=Xn,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),u=0;u<l.length;u++){var n=l[u];if(!(n[Ca]||n[Zt]||t==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(e)||"";i=t+i;var f=a.get(i);f?f.push(n):a.set(i,[n])}}return a}function pd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function xv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function bd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var xu=null;function Ev(){}function Tv(t,e,l){if(xu===null)throw Error(r(475));var a=xu;if(e.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var u=Oa(l.href),n=t.querySelector(bu(u));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(a.count++,a=Qn.bind(a),t.then(a,a)),e.state.loading|=4,e.instance=n,Ht(n);return}n=t.ownerDocument||t,l=vd(l),(u=be.get(u))&&df(l,u),n=n.createElement("link"),Ht(n);var i=n;i._p=new Promise(function(f,m){i.onload=f,i.onerror=m}),Gt(n,"link",l),e.instance=n}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(a.count++,e=Qn.bind(a),t.addEventListener("load",e),t.addEventListener("error",e))}}function Av(){if(xu===null)throw Error(r(475));var t=xu;return t.stylesheets&&t.count===0&&mf(t,t.stylesheets),0<t.count?function(e){var l=setTimeout(function(){if(t.stylesheets&&mf(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(l)}}:null}function Qn(){if(this.count--,this.count===0){if(this.stylesheets)mf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Zn=null;function mf(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zn=new Map,e.forEach(Rv,t),Zn=null,Qn.call(t))}function Rv(t,e){if(!(e.state.loading&4)){var l=Zn.get(t);if(l)var a=l.get(null);else{l=new Map,Zn.set(t,l);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var i=u[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}u=e.instance,i=u.getAttribute("data-precedence"),n=l.get(i)||a,n===a&&l.set(null,u),l.set(i,u),this.count++,a=Qn.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),n?n.parentNode.insertBefore(u,n.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Eu={$$typeof:P,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Ov(t,e,l,a,u,n,i,f){this.tag=1,this.containerInfo=t,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=ri(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ri(0),this.hiddenUpdates=ri(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function Sd(t,e,l,a,u,n,i,f,m,T,D,U){return t=new Ov(t,e,l,i,f,m,T,U),e=1,n===!0&&(e|=24),n=ue(3,null,null,e),t.current=n,n.stateNode=t,e=ki(),e.refCount++,t.pooledCache=e,e.refCount++,n.memoizedState={element:a,isDehydrated:l,cache:e},Pi(n),t}function xd(t){return t?(t=ua,t):ua}function Ed(t,e,l,a,u,n){u=xd(u),a.context===null?a.context=u:a.pendingContext=u,a=el(e),a.payload={element:l},n=n===void 0?null:n,n!==null&&(a.callback=n),l=ll(t,a,e),l!==null&&(re(l,t,e),Pa(l,t,e))}function Td(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function vf(t,e){Td(t,e),(t=t.alternate)&&Td(t,e)}function Ad(t){if(t.tag===13){var e=aa(t,67108864);e!==null&&re(e,t,67108864),vf(t,67108864)}}var Vn=!0;function zv(t,e,l,a){var u=_.T;_.T=null;var n=X.p;try{X.p=2,yf(t,e,l,a)}finally{X.p=n,_.T=u}}function Mv(t,e,l,a){var u=_.T;_.T=null;var n=X.p;try{X.p=8,yf(t,e,l,a)}finally{X.p=n,_.T=u}}function yf(t,e,l,a){if(Vn){var u=gf(a);if(u===null)lf(t,e,a,Kn,l),Od(t,a);else if(Dv(u,t,e,l,a))a.stopPropagation();else if(Od(t,a),e&4&&-1<Nv.indexOf(t)){for(;u!==null;){var n=Vl(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Tl(n.pendingLanes);if(i!==0){var f=n;for(f.pendingLanes|=2,f.entangledLanes|=2;i;){var m=1<<31-le(i);f.entanglements[1]|=m,i&=~m}Me(n),(ot&6)===0&&(Nn=Te()+500,vu(0))}}break;case 13:f=aa(n,2),f!==null&&re(f,n,2),_n(),vf(n,2)}if(n=gf(a),n===null&&lf(t,e,a,Kn,l),n===u)break;u=n}u!==null&&a.stopPropagation()}else lf(t,e,a,null,l)}}function gf(t){return t=xi(t),pf(t)}var Kn=null;function pf(t){if(Kn=null,t=Zl(t),t!==null){var e=y(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=E(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Kn=t,null}function Rd(t){switch(t){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(mh()){case Yf:return 2;case wf:return 8;case qu:case vh:return 32;case Lf:return 268435456;default:return 32}default:return 32}}var bf=!1,vl=null,yl=null,gl=null,Tu=new Map,Au=new Map,pl=[],Nv="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 Od(t,e){switch(t){case"focusin":case"focusout":vl=null;break;case"dragenter":case"dragleave":yl=null;break;case"mouseover":case"mouseout":gl=null;break;case"pointerover":case"pointerout":Tu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Au.delete(e.pointerId)}}function Ru(t,e,l,a,u,n){return t===null||t.nativeEvent!==n?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:n,targetContainers:[u]},e!==null&&(e=Vl(e),e!==null&&Ad(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Dv(t,e,l,a,u){switch(e){case"focusin":return vl=Ru(vl,t,e,l,a,u),!0;case"dragenter":return yl=Ru(yl,t,e,l,a,u),!0;case"mouseover":return gl=Ru(gl,t,e,l,a,u),!0;case"pointerover":var n=u.pointerId;return Tu.set(n,Ru(Tu.get(n)||null,t,e,l,a,u)),!0;case"gotpointercapture":return n=u.pointerId,Au.set(n,Ru(Au.get(n)||null,t,e,l,a,u)),!0}return!1}function zd(t){var e=Zl(t.target);if(e!==null){var l=y(e);if(l!==null){if(e=l.tag,e===13){if(e=E(l),e!==null){t.blockedOn=e,Th(t.priority,function(){if(l.tag===13){var a=fe();a=si(a);var u=aa(l,a);u!==null&&re(u,l,a),vf(l,a)}});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Jn(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=gf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Si=a,l.target.dispatchEvent(a),Si=null}else return e=Vl(l),e!==null&&Ad(e),t.blockedOn=l,!1;e.shift()}return!0}function Md(t,e,l){Jn(t)&&l.delete(e)}function _v(){bf=!1,vl!==null&&Jn(vl)&&(vl=null),yl!==null&&Jn(yl)&&(yl=null),gl!==null&&Jn(gl)&&(gl=null),Tu.forEach(Md),Au.forEach(Md)}function kn(t,e){t.blockedOn===e&&(t.blockedOn=null,bf||(bf=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,_v)))}var $n=null;function Nd(t){$n!==t&&($n=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){$n===t&&($n=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(pf(a||l)===null)continue;break}var n=Vl(l);n!==null&&(t.splice(e,3),e-=3,gc(n,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function Ou(t){function e(m){return kn(m,t)}vl!==null&&kn(vl,t),yl!==null&&kn(yl,t),gl!==null&&kn(gl,t),Tu.forEach(e),Au.forEach(e);for(var l=0;l<pl.length;l++){var a=pl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<pl.length&&(l=pl[0],l.blockedOn===null);)zd(l),l.blockedOn===null&&pl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],n=l[a+1],i=u[$t]||null;if(typeof n=="function")i||Nd(l);else if(i){var f=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[$t]||null)f=i.formAction;else if(pf(u)!==null)continue}else f=i.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Nd(l)}}}function Sf(t){this._internalRoot=t}Wn.prototype.render=Sf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=fe();Ed(l,a,t,e,null,null)},Wn.prototype.unmount=Sf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ed(t.current,2,null,t,null,null),_n(),e[Ql]=null}};function Wn(t){this._internalRoot=t}Wn.prototype.unstable_scheduleHydration=function(t){if(t){var e=Vf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<pl.length&&e!==0&&e<pl[l].priority;l++);pl.splice(l,0,t),l===0&&zd(t)}};var Dd=s.version;if(Dd!=="19.1.0")throw Error(r(527,Dd,"19.1.0"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=b(e),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var jv={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fn.isDisabled&&Fn.supportsFiber)try{Da=Fn.inject(jv),ee=Fn}catch{}}return Mu.createRoot=function(t,e){if(!d(t))throw Error(r(299));var l=!1,a="",u=Vs,n=Ks,i=Js,f=null;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(n=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(f=e.unstable_transitionCallbacks)),e=Sd(t,1,!1,null,null,l,a,u,n,i,f,null),t[Ql]=e.current,ef(t),new Sf(e)},Mu.hydrateRoot=function(t,e,l){if(!d(t))throw Error(r(299));var a=!1,u="",n=Vs,i=Ks,f=Js,m=null,T=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(m=l.unstable_transitionCallbacks),l.formState!==void 0&&(T=l.formState)),e=Sd(t,1,!0,e,l??null,a,u,n,i,f,m,T),e.context=xd(null),l=e.current,a=fe(),a=si(a),u=el(a),u.callback=null,ll(l,u,a),l=a,e.current.lanes=l,ja(e,l),Me(e),t[Ql]=e.current,ef(t),new Wn(e)},Mu.version="19.1.0",Mu}var Ld;function Qv(){if(Ld)return Tf.exports;Ld=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(s){console.error(s)}}return c(),Tf.exports=Xv(),Tf.exports}var Zv=Qv();const Vv=Jd(Zv);var Nu={},Gd;function Kv(){if(Gd)return Nu;Gd=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.parse=E,Nu.serialize=h;const c=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\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,r=/^[\u0020-\u003A\u003D-\u007E]*$/,d=Object.prototype.toString,y=(()=>{const M=function(){};return M.prototype=Object.create(null),M})();function E(M,w){const H=new y,L=M.length;if(L<2)return H;const Z=(w==null?void 0:w.decode)||O;let C=0;do{const Y=M.indexOf("=",C);if(Y===-1)break;const P=M.indexOf(";",C),ct=P===-1?L:P;if(Y>ct){C=M.lastIndexOf(";",Y-1)+1;continue}const I=N(M,C,Y),Dt=b(M,Y,I),At=M.slice(I,Dt);if(H[At]===void 0){let zt=N(M,Y+1,ct),bt=b(M,ct,zt);const Jt=Z(M.slice(zt,bt));H[At]=Jt}C=ct+1}while(C<L);return H}function N(M,w,H){do{const L=M.charCodeAt(w);if(L!==32&&L!==9)return w}while(++w<H);return H}function b(M,w,H){for(;w>H;){const L=M.charCodeAt(--w);if(L!==32&&L!==9)return w+1}return H}function h(M,w,H){const L=(H==null?void 0:H.encode)||encodeURIComponent;if(!c.test(M))throw new TypeError(`argument name is invalid: ${M}`);const Z=L(w);if(!s.test(Z))throw new TypeError(`argument val is invalid: ${w}`);let C=M+"="+Z;if(!H)return C;if(H.maxAge!==void 0){if(!Number.isInteger(H.maxAge))throw new TypeError(`option maxAge is invalid: ${H.maxAge}`);C+="; Max-Age="+H.maxAge}if(H.domain){if(!o.test(H.domain))throw new TypeError(`option domain is invalid: ${H.domain}`);C+="; Domain="+H.domain}if(H.path){if(!r.test(H.path))throw new TypeError(`option path is invalid: ${H.path}`);C+="; Path="+H.path}if(H.expires){if(!q(H.expires)||!Number.isFinite(H.expires.valueOf()))throw new TypeError(`option expires is invalid: ${H.expires}`);C+="; Expires="+H.expires.toUTCString()}if(H.httpOnly&&(C+="; HttpOnly"),H.secure&&(C+="; Secure"),H.partitioned&&(C+="; Partitioned"),H.priority)switch(typeof H.priority=="string"?H.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${H.priority}`)}if(H.sameSite)switch(typeof H.sameSite=="string"?H.sameSite.toLowerCase():H.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${H.sameSite}`)}return C}function O(M){if(M.indexOf("%")===-1)return M;try{return decodeURIComponent(M)}catch{return M}}function q(M){return d.call(M)==="[object Date]"}return Nu}Kv();var Xd="popstate";function Jv(c={}){function s(r,d){let{pathname:y,search:E,hash:N}=r.location;return Nf("",{pathname:y,search:E,hash:N},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function o(r,d){return typeof d=="string"?d:_u(d)}return $v(s,o,null,c)}function Tt(c,s){if(c===!1||c===null||typeof c>"u")throw new Error(s)}function Ne(c,s){if(!c){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function kv(){return Math.random().toString(36).substring(2,10)}function Qd(c,s){return{usr:c.state,key:c.key,idx:s}}function Nf(c,s,o=null,r){return{pathname:typeof c=="string"?c:c.pathname,search:"",hash:"",...typeof s=="string"?Ma(s):s,state:o,key:s&&s.key||r||kv()}}function _u({pathname:c="/",search:s="",hash:o=""}){return s&&s!=="?"&&(c+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(c+=o.charAt(0)==="#"?o:"#"+o),c}function Ma(c){let s={};if(c){let o=c.indexOf("#");o>=0&&(s.hash=c.substring(o),c=c.substring(0,o));let r=c.indexOf("?");r>=0&&(s.search=c.substring(r),c=c.substring(0,r)),c&&(s.pathname=c)}return s}function $v(c,s,o,r={}){let{window:d=document.defaultView,v5Compat:y=!1}=r,E=d.history,N="POP",b=null,h=O();h==null&&(h=0,E.replaceState({...E.state,idx:h},""));function O(){return(E.state||{idx:null}).idx}function q(){N="POP";let Z=O(),C=Z==null?null:Z-h;h=Z,b&&b({action:N,location:L.location,delta:C})}function M(Z,C){N="PUSH";let Y=Nf(L.location,Z,C);h=O()+1;let P=Qd(Y,h),ct=L.createHref(Y);try{E.pushState(P,"",ct)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;d.location.assign(ct)}y&&b&&b({action:N,location:L.location,delta:1})}function w(Z,C){N="REPLACE";let Y=Nf(L.location,Z,C);h=O();let P=Qd(Y,h),ct=L.createHref(Y);E.replaceState(P,"",ct),y&&b&&b({action:N,location:L.location,delta:0})}function H(Z){return Wv(Z)}let L={get action(){return N},get location(){return c(d,E)},listen(Z){if(b)throw new Error("A history only accepts one active listener");return d.addEventListener(Xd,q),b=Z,()=>{d.removeEventListener(Xd,q),b=null}},createHref(Z){return s(d,Z)},createURL:H,encodeLocation(Z){let C=H(Z);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:M,replace:w,go(Z){return E.go(Z)}};return L}function Wv(c,s=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(o,"No window.location.(origin|href) available to create URL");let r=typeof c=="string"?c:_u(c);return r=r.replace(/ $/,"%20"),!s&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function kd(c,s,o="/"){return Fv(c,s,o,!1)}function Fv(c,s,o,r){let d=typeof s=="string"?Ma(s):s,y=Je(d.pathname||"/",o);if(y==null)return null;let E=$d(c);Pv(E);let N=null;for(let b=0;N==null&&b<E.length;++b){let h=ry(y);N=cy(E[b],h,r)}return N}function $d(c,s=[],o=[],r=""){let d=(y,E,N)=>{let b={relativePath:N===void 0?y.path||"":N,caseSensitive:y.caseSensitive===!0,childrenIndex:E,route:y};b.relativePath.startsWith("/")&&(Tt(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length));let h=Ke([r,b.relativePath]),O=o.concat(b);y.children&&y.children.length>0&&(Tt(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),$d(y.children,s,O,h)),!(y.path==null&&!y.index)&&s.push({path:h,score:ny(h,y.index),routesMeta:O})};return c.forEach((y,E)=>{var N;if(y.path===""||!((N=y.path)!=null&&N.includes("?")))d(y,E);else for(let b of Wd(y.path))d(y,E,b)}),s}function Wd(c){let s=c.split("/");if(s.length===0)return[];let[o,...r]=s,d=o.endsWith("?"),y=o.replace(/\?$/,"");if(r.length===0)return d?[y,""]:[y];let E=Wd(r.join("/")),N=[];return N.push(...E.map(b=>b===""?y:[y,b].join("/"))),d&&N.push(...E),N.map(b=>c.startsWith("/")&&b===""?"/":b)}function Pv(c){c.sort((s,o)=>s.score!==o.score?o.score-s.score:iy(s.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var Iv=/^:[\w-]+$/,ty=3,ey=2,ly=1,ay=10,uy=-2,Zd=c=>c==="*";function ny(c,s){let o=c.split("/"),r=o.length;return o.some(Zd)&&(r+=uy),s&&(r+=ey),o.filter(d=>!Zd(d)).reduce((d,y)=>d+(Iv.test(y)?ty:y===""?ly:ay),r)}function iy(c,s){return c.length===s.length&&c.slice(0,-1).every((r,d)=>r===s[d])?c[c.length-1]-s[s.length-1]:0}function cy(c,s,o=!1){let{routesMeta:r}=c,d={},y="/",E=[];for(let N=0;N<r.length;++N){let b=r[N],h=N===r.length-1,O=y==="/"?s:s.slice(y.length)||"/",q=ei({path:b.relativePath,caseSensitive:b.caseSensitive,end:h},O),M=b.route;if(!q&&h&&o&&!r[r.length-1].route.index&&(q=ei({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},O)),!q)return null;Object.assign(d,q.params),E.push({params:d,pathname:Ke([y,q.pathname]),pathnameBase:hy(Ke([y,q.pathnameBase])),route:M}),q.pathnameBase!=="/"&&(y=Ke([y,q.pathnameBase]))}return E}function ei(c,s){typeof c=="string"&&(c={path:c,caseSensitive:!1,end:!0});let[o,r]=fy(c.path,c.caseSensitive,c.end),d=s.match(o);if(!d)return null;let y=d[0],E=y.replace(/(.)\/+$/,"$1"),N=d.slice(1);return{params:r.reduce((h,{paramName:O,isOptional:q},M)=>{if(O==="*"){let H=N[M]||"";E=y.slice(0,y.length-H.length).replace(/(.)\/+$/,"$1")}const w=N[M];return q&&!w?h[O]=void 0:h[O]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:y,pathnameBase:E,pattern:c}}function fy(c,s=!1,o=!0){Ne(c==="*"||!c.endsWith("*")||c.endsWith("/*"),`Route path "${c}" will be treated as if it were "${c.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${c.replace(/\*$/,"/*")}".`);let r=[],d="^"+c.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(E,N,b)=>(r.push({paramName:N,isOptional:b!=null}),b?"/?([^\\/]+)?":"/([^\\/]+)"));return c.endsWith("*")?(r.push({paramName:"*"}),d+=c==="*"||c==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":c!==""&&c!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),r]}function ry(c){try{return c.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Ne(!1,`The URL path "${c}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),c}}function Je(c,s){if(s==="/")return c;if(!c.toLowerCase().startsWith(s.toLowerCase()))return null;let o=s.endsWith("/")?s.length-1:s.length,r=c.charAt(o);return r&&r!=="/"?null:c.slice(o)||"/"}function sy(c,s="/"){let{pathname:o,search:r="",hash:d=""}=typeof c=="string"?Ma(c):c;return{pathname:o?o.startsWith("/")?o:oy(o,s):s,search:my(r),hash:vy(d)}}function oy(c,s){let o=s.replace(/\/+$/,"").split("/");return c.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function zf(c,s,o,r){return`Cannot include a '${c}' character in a manually specified \`to.${s}\` field [${JSON.stringify(r)}].  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 dy(c){return c.filter((s,o)=>o===0||s.route.path&&s.route.path.length>0)}function Fd(c){let s=dy(c);return s.map((o,r)=>r===s.length-1?o.pathname:o.pathnameBase)}function Pd(c,s,o,r=!1){let d;typeof c=="string"?d=Ma(c):(d={...c},Tt(!d.pathname||!d.pathname.includes("?"),zf("?","pathname","search",d)),Tt(!d.pathname||!d.pathname.includes("#"),zf("#","pathname","hash",d)),Tt(!d.search||!d.search.includes("#"),zf("#","search","hash",d)));let y=c===""||d.pathname==="",E=y?"/":d.pathname,N;if(E==null)N=o;else{let q=s.length-1;if(!r&&E.startsWith("..")){let M=E.split("/");for(;M[0]==="..";)M.shift(),q-=1;d.pathname=M.join("/")}N=q>=0?s[q]:"/"}let b=sy(d,N),h=E&&E!=="/"&&E.endsWith("/"),O=(y||E===".")&&o.endsWith("/");return!b.pathname.endsWith("/")&&(h||O)&&(b.pathname+="/"),b}var Ke=c=>c.join("/").replace(/\/\/+/g,"/"),hy=c=>c.replace(/\/+$/,"").replace(/^\/*/,"/"),my=c=>!c||c==="?"?"":c.startsWith("?")?c:"?"+c,vy=c=>!c||c==="#"?"":c.startsWith("#")?c:"#"+c;function yy(c){return c!=null&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.internal=="boolean"&&"data"in c}var Id=["POST","PUT","PATCH","DELETE"];new Set(Id);var gy=["GET",...Id];new Set(gy);var Na=z.createContext(null);Na.displayName="DataRouter";var ai=z.createContext(null);ai.displayName="DataRouterState";var th=z.createContext({isTransitioning:!1});th.displayName="ViewTransition";var py=z.createContext(new Map);py.displayName="Fetchers";var by=z.createContext(null);by.displayName="Await";var De=z.createContext(null);De.displayName="Navigation";var Cu=z.createContext(null);Cu.displayName="Location";var ke=z.createContext({outlet:null,matches:[],isDataRoute:!1});ke.displayName="Route";var jf=z.createContext(null);jf.displayName="RouteError";function Sy(c,{relative:s}={}){Tt(Uu(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=z.useContext(De),{hash:d,pathname:y,search:E}=Hu(c,{relative:s}),N=y;return o!=="/"&&(N=y==="/"?o:Ke([o,y])),r.createHref({pathname:N,search:E,hash:d})}function Uu(){return z.useContext(Cu)!=null}function Xl(){return Tt(Uu(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(Cu).location}var eh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lh(c){z.useContext(De).static||z.useLayoutEffect(c)}function xy(){let{isDataRoute:c}=z.useContext(ke);return c?Uy():Ey()}function Ey(){Tt(Uu(),"useNavigate() may be used only in the context of a <Router> component.");let c=z.useContext(Na),{basename:s,navigator:o}=z.useContext(De),{matches:r}=z.useContext(ke),{pathname:d}=Xl(),y=JSON.stringify(Fd(r)),E=z.useRef(!1);return lh(()=>{E.current=!0}),z.useCallback((b,h={})=>{if(Ne(E.current,eh),!E.current)return;if(typeof b=="number"){o.go(b);return}let O=Pd(b,JSON.parse(y),d,h.relative==="path");c==null&&s!=="/"&&(O.pathname=O.pathname==="/"?s:Ke([s,O.pathname])),(h.replace?o.replace:o.push)(O,h.state,h)},[s,o,y,d,c])}z.createContext(null);function Hu(c,{relative:s}={}){let{matches:o}=z.useContext(ke),{pathname:r}=Xl(),d=JSON.stringify(Fd(o));return z.useMemo(()=>Pd(c,JSON.parse(d),r,s==="path"),[c,d,r,s])}function Ty(c,s){return ah(c,s)}function ah(c,s,o,r){var C;Tt(Uu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=z.useContext(De),{matches:y}=z.useContext(ke),E=y[y.length-1],N=E?E.params:{},b=E?E.pathname:"/",h=E?E.pathnameBase:"/",O=E&&E.route;{let Y=O&&O.path||"";uh(b,!O||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${b}" (under <Route path="${Y}">) 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="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let q=Xl(),M;if(s){let Y=typeof s=="string"?Ma(s):s;Tt(h==="/"||((C=Y.pathname)==null?void 0:C.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 "${Y.pathname}" was given in the \`location\` prop.`),M=Y}else M=q;let w=M.pathname||"/",H=w;if(h!=="/"){let Y=h.replace(/^\//,"").split("/");H="/"+w.replace(/^\//,"").split("/").slice(Y.length).join("/")}let L=kd(c,{pathname:H});Ne(O||L!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Ne(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.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=My(L&&L.map(Y=>Object.assign({},Y,{params:Object.assign({},N,Y.params),pathname:Ke([h,d.encodeLocation?d.encodeLocation(Y.pathname).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?h:Ke([h,d.encodeLocation?d.encodeLocation(Y.pathnameBase).pathname:Y.pathnameBase])})),y,o,r);return s&&Z?z.createElement(Cu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},Z):Z}function Ay(){let c=Cy(),s=yy(c)?`${c.status} ${c.statusText}`:c instanceof Error?c.message:JSON.stringify(c),o=c instanceof Error?c.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},y={padding:"2px 4px",backgroundColor:r},E=null;return console.error("Error handled by React Router default ErrorBoundary:",c),E=z.createElement(z.Fragment,null,z.createElement("p",null,"💿 Hey developer 👋"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:y},"ErrorBoundary")," or"," ",z.createElement("code",{style:y},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},s),o?z.createElement("pre",{style:d},o):null,E)}var Ry=z.createElement(Ay,null),Oy=class extends z.Component{constructor(c){super(c),this.state={location:c.location,revalidation:c.revalidation,error:c.error}}static getDerivedStateFromError(c){return{error:c}}static getDerivedStateFromProps(c,s){return s.location!==c.location||s.revalidation!=="idle"&&c.revalidation==="idle"?{error:c.error,location:c.location,revalidation:c.revalidation}:{error:c.error!==void 0?c.error:s.error,location:s.location,revalidation:c.revalidation||s.revalidation}}componentDidCatch(c,s){console.error("React Router caught the following error during render",c,s)}render(){return this.state.error!==void 0?z.createElement(ke.Provider,{value:this.props.routeContext},z.createElement(jf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zy({routeContext:c,match:s,children:o}){let r=z.useContext(Na);return r&&r.static&&r.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=s.route.id),z.createElement(ke.Provider,{value:c},o)}function My(c,s=[],o=null,r=null){if(c==null){if(!o)return null;if(o.errors)c=o.matches;else if(s.length===0&&!o.initialized&&o.matches.length>0)c=o.matches;else return null}let d=c,y=o==null?void 0:o.errors;if(y!=null){let b=d.findIndex(h=>h.route.id&&(y==null?void 0:y[h.route.id])!==void 0);Tt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),d=d.slice(0,Math.min(d.length,b+1))}let E=!1,N=-1;if(o)for(let b=0;b<d.length;b++){let h=d[b];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(N=b),h.route.id){let{loaderData:O,errors:q}=o,M=h.route.loader&&!O.hasOwnProperty(h.route.id)&&(!q||q[h.route.id]===void 0);if(h.route.lazy||M){E=!0,N>=0?d=d.slice(0,N+1):d=[d[0]];break}}}return d.reduceRight((b,h,O)=>{let q,M=!1,w=null,H=null;o&&(q=y&&h.route.id?y[h.route.id]:void 0,w=h.route.errorElement||Ry,E&&(N<0&&O===0?(uh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,H=null):N===O&&(M=!0,H=h.route.hydrateFallbackElement||null)));let L=s.concat(d.slice(0,O+1)),Z=()=>{let C;return q?C=w:M?C=H:h.route.Component?C=z.createElement(h.route.Component,null):h.route.element?C=h.route.element:C=b,z.createElement(zy,{match:h,routeContext:{outlet:b,matches:L,isDataRoute:o!=null},children:C})};return o&&(h.route.ErrorBoundary||h.route.errorElement||O===0)?z.createElement(Oy,{location:o.location,revalidation:o.revalidation,component:w,error:q,children:Z(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):Z()},null)}function Cf(c){return`${c} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ny(c){let s=z.useContext(Na);return Tt(s,Cf(c)),s}function Dy(c){let s=z.useContext(ai);return Tt(s,Cf(c)),s}function _y(c){let s=z.useContext(ke);return Tt(s,Cf(c)),s}function Uf(c){let s=_y(c),o=s.matches[s.matches.length-1];return Tt(o.route.id,`${c} can only be used on routes that contain a unique "id"`),o.route.id}function jy(){return Uf("useRouteId")}function Cy(){var r;let c=z.useContext(jf),s=Dy("useRouteError"),o=Uf("useRouteError");return c!==void 0?c:(r=s.errors)==null?void 0:r[o]}function Uy(){let{router:c}=Ny("useNavigate"),s=Uf("useNavigate"),o=z.useRef(!1);return lh(()=>{o.current=!0}),z.useCallback(async(d,y={})=>{Ne(o.current,eh),o.current&&(typeof d=="number"?c.navigate(d):await c.navigate(d,{fromRouteId:s,...y}))},[c,s])}var Vd={};function uh(c,s,o){!s&&!Vd[c]&&(Vd[c]=!0,Ne(!1,o))}z.memo(Hy);function Hy({routes:c,future:s,state:o}){return ah(c,void 0,o,s)}function Gl(c){Tt(!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 By({basename:c="/",children:s=null,location:o,navigationType:r="POP",navigator:d,static:y=!1}){Tt(!Uu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let E=c.replace(/^\/*/,"/"),N=z.useMemo(()=>({basename:E,navigator:d,static:y,future:{}}),[E,d,y]);typeof o=="string"&&(o=Ma(o));let{pathname:b="/",search:h="",hash:O="",state:q=null,key:M="default"}=o,w=z.useMemo(()=>{let H=Je(b,E);return H==null?null:{location:{pathname:H,search:h,hash:O,state:q,key:M},navigationType:r}},[E,b,h,O,q,M,r]);return Ne(w!=null,`<Router basename="${E}"> is not able to match the URL "${b}${h}${O}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:z.createElement(De.Provider,{value:N},z.createElement(Cu.Provider,{children:s,value:w}))}function qy({children:c,location:s}){return Ty(Df(c),s)}function Df(c,s=[]){let o=[];return z.Children.forEach(c,(r,d)=>{if(!z.isValidElement(r))return;let y=[...s,d];if(r.type===z.Fragment){o.push.apply(o,Df(r.props.children,y));return}Tt(r.type===Gl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Tt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let E={id:r.props.id||y.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(E.children=Df(r.props.children,y)),o.push(E)}),o}var In="get",ti="application/x-www-form-urlencoded";function ui(c){return c!=null&&typeof c.tagName=="string"}function Yy(c){return ui(c)&&c.tagName.toLowerCase()==="button"}function wy(c){return ui(c)&&c.tagName.toLowerCase()==="form"}function Ly(c){return ui(c)&&c.tagName.toLowerCase()==="input"}function Gy(c){return!!(c.metaKey||c.altKey||c.ctrlKey||c.shiftKey)}function Xy(c,s){return c.button===0&&(!s||s==="_self")&&!Gy(c)}var Pn=null;function Qy(){if(Pn===null)try{new FormData(document.createElement("form"),0),Pn=!1}catch{Pn=!0}return Pn}var Zy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mf(c){return c!=null&&!Zy.has(c)?(Ne(!1,`"${c}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ti}"`),null):c}function Vy(c,s){let o,r,d,y,E;if(wy(c)){let N=c.getAttribute("action");r=N?Je(N,s):null,o=c.getAttribute("method")||In,d=Mf(c.getAttribute("enctype"))||ti,y=new FormData(c)}else if(Yy(c)||Ly(c)&&(c.type==="submit"||c.type==="image")){let N=c.form;if(N==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=c.getAttribute("formaction")||N.getAttribute("action");if(r=b?Je(b,s):null,o=c.getAttribute("formmethod")||N.getAttribute("method")||In,d=Mf(c.getAttribute("formenctype"))||Mf(N.getAttribute("enctype"))||ti,y=new FormData(N,c),!Qy()){let{name:h,type:O,value:q}=c;if(O==="image"){let M=h?`${h}.`:"";y.append(`${M}x`,"0"),y.append(`${M}y`,"0")}else h&&y.append(h,q)}}else{if(ui(c))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=In,r=null,d=ti,E=c}return y&&d==="text/plain"&&(E=y,y=void 0),{action:r,method:o.toLowerCase(),encType:d,formData:y,body:E}}function Hf(c,s){if(c===!1||c===null||typeof c>"u")throw new Error(s)}async function Ky(c,s){if(c.id in s)return s[c.id];try{let o=await import(c.module);return s[c.id]=o,o}catch(o){return console.error(`Error loading route module \`${c.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Jy(c){return c==null?!1:c.href==null?c.rel==="preload"&&typeof c.imageSrcSet=="string"&&typeof c.imageSizes=="string":typeof c.rel=="string"&&typeof c.href=="string"}async function ky(c,s,o){let r=await Promise.all(c.map(async d=>{let y=s.routes[d.route.id];if(y){let E=await Ky(y,o);return E.links?E.links():[]}return[]}));return Py(r.flat(1).filter(Jy).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Kd(c,s,o,r,d,y){let E=(b,h)=>o[h]?b.route.id!==o[h].route.id:!0,N=(b,h)=>{var O;return o[h].pathname!==b.pathname||((O=o[h].route.path)==null?void 0:O.endsWith("*"))&&o[h].params["*"]!==b.params["*"]};return y==="assets"?s.filter((b,h)=>E(b,h)||N(b,h)):y==="data"?s.filter((b,h)=>{var q;let O=r.routes[b.route.id];if(!O||!O.hasLoader)return!1;if(E(b,h)||N(b,h))return!0;if(b.route.shouldRevalidate){let M=b.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((q=o[0])==null?void 0:q.params)||{},nextUrl:new URL(c,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof M=="boolean")return M}return!0}):[]}function $y(c,s,{includeHydrateFallback:o}={}){return Wy(c.map(r=>{let d=s.routes[r.route.id];if(!d)return[];let y=[d.module];return d.clientActionModule&&(y=y.concat(d.clientActionModule)),d.clientLoaderModule&&(y=y.concat(d.clientLoaderModule)),o&&d.hydrateFallbackModule&&(y=y.concat(d.hydrateFallbackModule)),d.imports&&(y=y.concat(d.imports)),y}).flat(1))}function Wy(c){return[...new Set(c)]}function Fy(c){let s={},o=Object.keys(c).sort();for(let r of o)s[r]=c[r];return s}function Py(c,s){let o=new Set;return new Set(s),c.reduce((r,d)=>{let y=JSON.stringify(Fy(d));return o.has(y)||(o.add(y),r.push({key:y,link:d})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Iy=new Set([100,101,204,205]);function t0(c,s){let o=typeof c=="string"?new URL(c,typeof window>"u"?"server://singlefetch/":window.location.origin):c;return o.pathname==="/"?o.pathname="_root.data":s&&Je(o.pathname,s)==="/"?o.pathname=`${s.replace(/\/$/,"")}/_root.data`:o.pathname=`${o.pathname.replace(/\/$/,"")}.data`,o}function nh(){let c=z.useContext(Na);return Hf(c,"You must render this element inside a <DataRouterContext.Provider> element"),c}function e0(){let c=z.useContext(ai);return Hf(c,"You must render this element inside a <DataRouterStateContext.Provider> element"),c}var Bf=z.createContext(void 0);Bf.displayName="FrameworkContext";function ih(){let c=z.useContext(Bf);return Hf(c,"You must render this element inside a <HydratedRouter> element"),c}function l0(c,s){let o=z.useContext(Bf),[r,d]=z.useState(!1),[y,E]=z.useState(!1),{onFocus:N,onBlur:b,onMouseEnter:h,onMouseLeave:O,onTouchStart:q}=s,M=z.useRef(null);z.useEffect(()=>{if(c==="render"&&E(!0),c==="viewport"){let L=C=>{C.forEach(Y=>{E(Y.isIntersecting)})},Z=new IntersectionObserver(L,{threshold:.5});return M.current&&Z.observe(M.current),()=>{Z.disconnect()}}},[c]),z.useEffect(()=>{if(r){let L=setTimeout(()=>{E(!0)},100);return()=>{clearTimeout(L)}}},[r]);let w=()=>{d(!0)},H=()=>{d(!1),E(!1)};return o?c!=="intent"?[y,M,{}]:[y,M,{onFocus:Du(N,w),onBlur:Du(b,H),onMouseEnter:Du(h,w),onMouseLeave:Du(O,H),onTouchStart:Du(q,w)}]:[!1,M,{}]}function Du(c,s){return o=>{c&&c(o),o.defaultPrevented||s(o)}}function a0({page:c,...s}){let{router:o}=nh(),r=z.useMemo(()=>kd(o.routes,c,o.basename),[o.routes,c,o.basename]);return r?z.createElement(n0,{page:c,matches:r,...s}):null}function u0(c){let{manifest:s,routeModules:o}=ih(),[r,d]=z.useState([]);return z.useEffect(()=>{let y=!1;return ky(c,s,o).then(E=>{y||d(E)}),()=>{y=!0}},[c,s,o]),r}function n0({page:c,matches:s,...o}){let r=Xl(),{manifest:d,routeModules:y}=ih(),{basename:E}=nh(),{loaderData:N,matches:b}=e0(),h=z.useMemo(()=>Kd(c,s,b,d,r,"data"),[c,s,b,d,r]),O=z.useMemo(()=>Kd(c,s,b,d,r,"assets"),[c,s,b,d,r]),q=z.useMemo(()=>{if(c===r.pathname+r.search+r.hash)return[];let H=new Set,L=!1;if(s.forEach(C=>{var P;let Y=d.routes[C.route.id];!Y||!Y.hasLoader||(!h.some(ct=>ct.route.id===C.route.id)&&C.route.id in N&&((P=y[C.route.id])!=null&&P.shouldRevalidate)||Y.hasClientLoader?L=!0:H.add(C.route.id))}),H.size===0)return[];let Z=t0(c,E);return L&&H.size>0&&Z.searchParams.set("_routes",s.filter(C=>H.has(C.route.id)).map(C=>C.route.id).join(",")),[Z.pathname+Z.search]},[E,N,r,d,h,s,c,y]),M=z.useMemo(()=>$y(O,d),[O,d]),w=u0(O);return z.createElement(z.Fragment,null,q.map(H=>z.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...o})),M.map(H=>z.createElement("link",{key:H,rel:"modulepreload",href:H,...o})),w.map(({key:H,link:L})=>z.createElement("link",{key:H,...L})))}function i0(...c){return s=>{c.forEach(o=>{typeof o=="function"?o(s):o!=null&&(o.current=s)})}}var ch=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ch&&(window.__reactRouterVersion="7.6.2")}catch{}function c0({basename:c,children:s,window:o}){let r=z.useRef();r.current==null&&(r.current=Jv({window:o,v5Compat:!0}));let d=r.current,[y,E]=z.useState({action:d.action,location:d.location}),N=z.useCallback(b=>{z.startTransition(()=>E(b))},[E]);return z.useLayoutEffect(()=>d.listen(N),[d,N]),z.createElement(By,{basename:c,children:s,location:y.location,navigationType:y.action,navigator:d})}var fh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sl=z.forwardRef(function({onClick:s,discover:o="render",prefetch:r="none",relative:d,reloadDocument:y,replace:E,state:N,target:b,to:h,preventScrollReset:O,viewTransition:q,...M},w){let{basename:H}=z.useContext(De),L=typeof h=="string"&&fh.test(h),Z,C=!1;if(typeof h=="string"&&L&&(Z=h,ch))try{let bt=new URL(window.location.href),Jt=h.startsWith("//")?new URL(bt.protocol+h):new URL(h),se=Je(Jt.pathname,H);Jt.origin===bt.origin&&se!=null?h=se+Jt.search+Jt.hash:C=!0}catch{Ne(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Y=Sy(h,{relative:d}),[P,ct,I]=l0(r,M),Dt=o0(h,{replace:E,state:N,target:b,preventScrollReset:O,relative:d,viewTransition:q});function At(bt){s&&s(bt),bt.defaultPrevented||Dt(bt)}let zt=z.createElement("a",{...M,...I,href:Z||Y,onClick:C||y?s:At,ref:i0(w,ct),target:b,"data-discover":!L&&o==="render"?"true":void 0});return P&&!L?z.createElement(z.Fragment,null,zt,z.createElement(a0,{page:Y})):zt});Sl.displayName="Link";var f0=z.forwardRef(function({"aria-current":s="page",caseSensitive:o=!1,className:r="",end:d=!1,style:y,to:E,viewTransition:N,children:b,...h},O){let q=Hu(E,{relative:h.relative}),M=Xl(),w=z.useContext(ai),{navigator:H,basename:L}=z.useContext(De),Z=w!=null&&y0(q)&&N===!0,C=H.encodeLocation?H.encodeLocation(q).pathname:q.pathname,Y=M.pathname,P=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;o||(Y=Y.toLowerCase(),P=P?P.toLowerCase():null,C=C.toLowerCase()),P&&L&&(P=Je(P,L)||P);const ct=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let I=Y===C||!d&&Y.startsWith(C)&&Y.charAt(ct)==="/",Dt=P!=null&&(P===C||!d&&P.startsWith(C)&&P.charAt(C.length)==="/"),At={isActive:I,isPending:Dt,isTransitioning:Z},zt=I?s:void 0,bt;typeof r=="function"?bt=r(At):bt=[r,I?"active":null,Dt?"pending":null,Z?"transitioning":null].filter(Boolean).join(" ");let Jt=typeof y=="function"?y(At):y;return z.createElement(Sl,{...h,"aria-current":zt,className:bt,ref:O,style:Jt,to:E,viewTransition:N},typeof b=="function"?b(At):b)});f0.displayName="NavLink";var r0=z.forwardRef(({discover:c="render",fetcherKey:s,navigate:o,reloadDocument:r,replace:d,state:y,method:E=In,action:N,onSubmit:b,relative:h,preventScrollReset:O,viewTransition:q,...M},w)=>{let H=m0(),L=v0(N,{relative:h}),Z=E.toLowerCase()==="get"?"get":"post",C=typeof N=="string"&&fh.test(N),Y=P=>{if(b&&b(P),P.defaultPrevented)return;P.preventDefault();let ct=P.nativeEvent.submitter,I=(ct==null?void 0:ct.getAttribute("formmethod"))||E;H(ct||P.currentTarget,{fetcherKey:s,method:I,navigate:o,replace:d,state:y,relative:h,preventScrollReset:O,viewTransition:q})};return z.createElement("form",{ref:w,method:Z,action:L,onSubmit:r?b:Y,...M,"data-discover":!C&&c==="render"?"true":void 0})});r0.displayName="Form";function s0(c){return`${c} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function rh(c){let s=z.useContext(Na);return Tt(s,s0(c)),s}function o0(c,{target:s,replace:o,state:r,preventScrollReset:d,relative:y,viewTransition:E}={}){let N=xy(),b=Xl(),h=Hu(c,{relative:y});return z.useCallback(O=>{if(Xy(O,s)){O.preventDefault();let q=o!==void 0?o:_u(b)===_u(h);N(c,{replace:q,state:r,preventScrollReset:d,relative:y,viewTransition:E})}},[b,N,h,o,r,s,c,d,y,E])}var d0=0,h0=()=>`__${String(++d0)}__`;function m0(){let{router:c}=rh("useSubmit"),{basename:s}=z.useContext(De),o=jy();return z.useCallback(async(r,d={})=>{let{action:y,method:E,encType:N,formData:b,body:h}=Vy(r,s);if(d.navigate===!1){let O=d.fetcherKey||h0();await c.fetch(O,o,d.action||y,{preventScrollReset:d.preventScrollReset,formData:b,body:h,formMethod:d.method||E,formEncType:d.encType||N,flushSync:d.flushSync})}else await c.navigate(d.action||y,{preventScrollReset:d.preventScrollReset,formData:b,body:h,formMethod:d.method||E,formEncType:d.encType||N,replace:d.replace,state:d.state,fromRouteId:o,flushSync:d.flushSync,viewTransition:d.viewTransition})},[c,s,o])}function v0(c,{relative:s}={}){let{basename:o}=z.useContext(De),r=z.useContext(ke);Tt(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),y={...Hu(c||".",{relative:s})},E=Xl();if(c==null){y.search=E.search;let N=new URLSearchParams(y.search),b=N.getAll("index");if(b.some(O=>O==="")){N.delete("index"),b.filter(q=>q).forEach(q=>N.append("index",q));let O=N.toString();y.search=O?`?${O}`:""}}return(!c||c===".")&&d.route.index&&(y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(y.pathname=y.pathname==="/"?o:Ke([o,y.pathname])),_u(y)}function y0(c,s={}){let o=z.useContext(th);Tt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rh("useViewTransitionState"),d=Hu(c,{relative:s.relative});if(!o.isTransitioning)return!1;let y=Je(o.currentLocation.pathname,r)||o.currentLocation.pathname,E=Je(o.nextLocation.pathname,r)||o.nextLocation.pathname;return ei(d.pathname,E)!=null||ei(d.pathname,y)!=null}[...Iy];const g0=()=>{const[c,s]=z.useState(!1),o=()=>{s(!c)},r=()=>{s(!1)};return v.jsx("nav",{className:"bg-gradient-to-r from-green-700 to-green-600 text-white p-4 shadow",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("div",{className:"font-bold text-xl",children:"EVSE"}),v.jsxs("ul",{className:`flex-col md:flex-row md:flex gap-4 ${c?"flex":"hidden"} md:!flex`,children:[v.jsx("li",{children:v.jsx(Sl,{className:"hover:underline",to:"/dashboard",onClick:r,children:"Dashboard"})}),v.jsx("li",{children:v.jsx(Sl,{className:"hover:underline",to:"/settings",onClick:r,children:"Settings"})}),v.jsx("li",{children:v.jsx(Sl,{className:"hover:underline",to:"/security",onClick:r,children:"Security"})}),v.jsx("li",{children:v.jsx(Sl,{className:"hover:underline",to:"/connectivity",onClick:r,children:"Connectivity"})}),v.jsx("li",{children:v.jsx(Sl,{className:"hover:underline",to:"/ocpp",onClick:r,children:"OCPP"})}),v.jsx("li",{children:v.jsx(Sl,{className:"hover:underline",to:"/electrical-network",onClick:r,children:"Rede Elétrica"})})]}),v.jsx("button",{className:"md:hidden text-3xl",onClick:o,children:"☰"})]})})},p0=()=>{const[c,s]=z.useState({status:"Ativo",chargers:[{id:3,status:"Erro",current:0,power:0}],energyConsumed:0,chargingTime:0,alerts:[]}),o=async()=>{try{const r=await fetch("/api/v1/dashboard");if(r.ok){const d=await r.json();s(d)}else alert("Erro ao obter os dados do dashboard")}catch(r){console.error("Erro ao buscar dados do dashboard:",r),alert("Erro de conexão")}};return z.useEffect(()=>{o()},[]),v.jsxs("div",{className:"max-w-3xl mx-auto p-5",children:[v.jsx("h1",{className:"text-2xl font-bold mb-5",children:"Visão Geral"}),v.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[v.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[v.jsx("h3",{children:"Status do Sistema"}),v.jsx("p",{children:c.status})]}),v.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[v.jsx("h3",{children:"Consumo de Energia"}),v.jsxs("p",{children:[c.energyConsumed," kWh"]})]}),v.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[v.jsx("h3",{children:"Tempo de Carregamento"}),v.jsxs("p",{children:[c.chargingTime," minutos"]})]})]}),v.jsxs("div",{className:"mb-6",children:[v.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Alertas"}),v.jsx("ul",{children:c.alerts.map((r,d)=>v.jsx("li",{className:"p-2 bg-red-500 text-white rounded mb-2",children:v.jsxs("span",{children:["⚠️ ",r]})},d))})]}),v.jsxs("div",{children:[v.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Carregadores"}),v.jsxs("table",{className:"min-w-full border border-gray-300 text-left",children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{className:"border-b p-2",children:"ID"}),v.jsx("th",{className:"border-b p-2",children:"Status"}),v.jsx("th",{className:"border-b p-2",children:"Corrente (A)"}),v.jsx("th",{className:"border-b p-2",children:"Potência (W)"})]})}),v.jsx("tbody",{children:c.chargers.map(r=>v.jsxs("tr",{children:[v.jsx("td",{className:"border-b p-2",children:r.id}),v.jsx("td",{className:"border-b p-2",children:r.status}),v.jsx("td",{className:"border-b p-2",children:r.current}),v.jsx("td",{className:"border-b p-2",children:r.power})]},r.id))})]})]})]})},b0=()=>{const[c,s]=z.useState(32),[o,r]=z.useState(0),[d,y]=z.useState(0),[E,N]=z.useState(0),[b,h]=z.useState(60),O=async()=>{const C=await fetch("/api/v1/config/settings");if(C.ok){const Y=await C.json();s(Y.currentLimit),r(Y.powerLimit),y(Y.energyLimit),N(Y.chargingTimeLimit),h(Y.temperatureLimit)}else alert("Erro ao obter as configurações")};z.useEffect(()=>{O()},[]);const q=C=>s(C.target.value),M=C=>r(C.target.value),w=C=>y(C.target.value),H=C=>N(C.target.value),L=C=>h(C.target.value),Z=async()=>{(await fetch("/api/v1/config/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentLimit:c,powerLimit:o,energyLimit:d,chargingTimeLimit:E,temperatureLimit:b})})).ok?alert("Configurações de energia atualizadas com sucesso!"):alert("Erro ao atualizar configurações")};return v.jsxs("div",{children:[v.jsxs("label",{children:["Current Limit:",v.jsx("input",{type:"number",value:c,onChange:q})]}),v.jsx("br",{}),v.jsxs("label",{children:["Power Limit:",v.jsx("input",{type:"number",value:o,onChange:M})]}),v.jsx("br",{}),v.jsxs("label",{children:["Energy Limit:",v.jsx("input",{type:"number",value:d,onChange:w})]}),v.jsx("br",{}),v.jsxs("label",{children:["Charging Time Limit:",v.jsx("input",{type:"number",value:E,onChange:H})]}),v.jsx("br",{}),v.jsxs("label",{children:["Temperature Limit:",v.jsx("input",{type:"number",value:b,onChange:L})]}),v.jsx("br",{}),v.jsx("button",{onClick:Z,children:"Save Settings"})]})},S0=()=>{const[c,s]=z.useState(!1),[o,r]=z.useState({RFID:!1,App:!1,Password:!0}),[d,y]=z.useState([{username:"admin"},{username:"user1"}]),E=h=>{r({...o,[h]:!o[h]})},N=h=>{y([...d,{username:h}])},b=h=>{y(d.filter(O=>O.username!==h))};return v.jsxs("div",{className:"max-w-xl mx-auto p-5 bg-white rounded shadow",children:[v.jsx("h1",{className:"text-2xl font-bold mb-5 text-center",children:"Segurança"}),v.jsxs("div",{className:"mb-5",children:[v.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Métodos de Autorização"}),v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsxs("label",{className:"flex items-center gap-2",children:["RFID",v.jsx("input",{type:"checkbox",checked:o.RFID,onChange:()=>E("RFID")})]}),v.jsxs("label",{className:"flex items-center gap-2",children:["Aplicativo",v.jsx("input",{type:"checkbox",checked:o.App,onChange:()=>E("App")})]}),v.jsxs("label",{className:"flex items-center gap-2",children:["Senha",v.jsx("input",{type:"checkbox",checked:o.Password,onChange:()=>E("Password")})]})]})]}),v.jsxs("div",{className:"overflow-x-auto mb-5",children:[v.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Utilizador"}),v.jsxs("table",{className:"min-w-full border border-gray-300 text-left table-auto",children:[v.jsx("thead",{className:"bg-gray-100",children:v.jsxs("tr",{children:[v.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Nome de Usuário"}),v.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Ações"})]})}),v.jsx("tbody",{children:d.map((h,O)=>v.jsxs("tr",{className:"hover:bg-gray-50",children:[v.jsx("td",{className:"border-b p-2 text-sm",children:h.username}),v.jsx("td",{className:"border-b p-2 text-sm text-red-600",children:v.jsx("button",{onClick:()=>b(h.username),children:"Remover"})})]},O))})]}),v.jsx("div",{className:"mt-4",children:v.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded",onClick:()=>N("newuser"),children:"Adicionar Novo Usuário"})})]})]})},sh="";let x0="";function oh(c=!0){const s={Authorization:`Basic ${x0}`};return c&&(s["Content-Type"]="application/json"),s}async function ju(c){const s=await fetch(`${sh}${c}`,{headers:oh(!1)});if(!s.ok)throw new Error(`GET ${c} failed`);return await s.json()}async function li(c,s){const o=await fetch(`${sh}${c}`,{method:"POST",headers:oh(),body:JSON.stringify(s)});if(!o.ok)throw new Error(`POST ${c} failed`);return await o.text()}function qf({title:c,children:s}){return v.jsxs("div",{className:"max-w-3xl mx-auto p-5 bg-white rounded shadow",children:[v.jsx("h1",{className:"text-2xl font-bold mb-5",children:c}),s]})}const E0=()=>{const[c,s]=z.useState(!0),[o,r]=z.useState({enabled:!1,ssid:"",password:""}),[d,y]=z.useState(""),[E,N]=z.useState({enabled:!1,host:"",port:1883,username:"",password:"",topic:""}),[b,h]=z.useState("");z.useEffect(()=>{(async()=>{try{const w=await ju("/api/v1/config/wifi");r(w)}catch(w){console.error("Erro ao carregar configurações Wi-Fi:",w)}try{const w=await ju("/api/v1/config/mqtt");N(w)}catch(w){console.error("Erro ao carregar configurações MQTT:",w)}s(!1)})()},[]);const O=async()=>{try{await li("/api/v1/config/wifi",o),y("Configuração Wi-Fi gravada!")}catch{y("Erro ao gravar Wi-Fi.")}},q=async()=>{try{await li("/api/v1/config/mqtt",E),h("Configuração MQTT gravada!")}catch{h("Erro ao gravar MQTT.")}};return v.jsx(qf,{title:"Conectividade",children:c?v.jsx("p",{children:"A carregar..."}):v.jsxs(v.Fragment,{children:[v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"Status Atual"}),v.jsxs("div",{children:[v.jsxs("p",{children:["Wi-Fi: ",o.enabled?"Ativo":"Inativo"," (",o.ssid,")"]}),v.jsxs("p",{children:["MQTT: ",E.enabled?"Ativo":"Inativo"," - ",E.host,":",E.port]})]}),v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"Configuração Wi-Fi"}),d&&v.jsx("div",{className:"p-2 bg-gray-200 rounded mb-2",children:d}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:M=>{M.preventDefault(),O()},children:[v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"wifi-ssid",children:"SSID:"}),v.jsx("input",{id:"wifi-ssid",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:o.ssid,onChange:M=>r({...o,ssid:M.target.value})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"wifi-password",children:"Palavra-passe:"}),v.jsx("input",{id:"wifi-password",type:"password",className:"border border-gray-300 rounded px-3 py-2 w-full",value:o.password,onChange:M=>r({...o,password:M.target.value})})]}),v.jsx("div",{children:v.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]}),v.jsx("h2",{className:"text-xl font-semibold mt-6",children:"Configuração MQTT"}),b&&v.jsx("div",{className:"p-2 bg-gray-200 rounded mb-2",children:b}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:M=>{M.preventDefault(),q()},children:[v.jsx("div",{children:v.jsxs("label",{className:"flex items-center gap-2",children:["Ativar MQTT",v.jsx("input",{type:"checkbox",checked:E.enabled,onChange:M=>N({...E,enabled:M.target.checked})})]})}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"mqtt-host",children:"Host:"}),v.jsx("input",{id:"mqtt-host",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.host,onChange:M=>N({...E,host:M.target.value})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"mqtt-port",children:"Porta:"}),v.jsx("input",{id:"mqtt-port",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.port,onChange:M=>N({...E,port:parseInt(M.target.value||0)})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"mqtt-username",children:"Utilizador:"}),v.jsx("input",{id:"mqtt-username",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.username,onChange:M=>N({...E,username:M.target.value})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"mqtt-password",children:"Palavra-passe:"}),v.jsx("input",{id:"mqtt-password",type:"password",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.password,onChange:M=>N({...E,password:M.target.value})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"mqtt-topic",children:"Tópico:"}),v.jsx("input",{id:"mqtt-topic",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.topic,onChange:M=>N({...E,topic:M.target.value})})]}),v.jsx("div",{children:v.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})},T0=()=>{const[c,s]=z.useState(null),[o,r]=z.useState(!0),[d,y]=z.useState({url:"",chargeBoxId:"",certificate:"",privateKey:""}),[E,N]=z.useState("");z.useEffect(()=>{(async()=>{try{const O=await ju("/api/v1/ocpp");s(O)}catch{}try{const O=await ju("/api/v1/config/ocpp");y(O)}catch{}r(!1)})()},[]);const b=async()=>{N("");try{await li("/api/v1/config/ocpp",d),N("Configuração gravada com sucesso!")}catch{N("Erro ao gravar configuração.")}};return v.jsx(qf,{title:"OCPP",children:o?v.jsx("p",{children:"A carregar..."}):v.jsxs(v.Fragment,{children:[c&&v.jsxs("div",{children:[v.jsxs("p",{children:["Versão: ",c.ocpp_version]}),v.jsxs("p",{children:["Status: ",c.status]})]}),E&&v.jsx("div",{className:"p-2 mb-2 bg-gray-200 rounded",children:E}),v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:h=>{h.preventDefault(),b()},children:[v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"ocpp-url",children:"Servidor:"}),v.jsx("input",{id:"ocpp-url",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:d.url,onChange:h=>y({...d,url:h.target.value})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"ocpp-id",children:"Charge Box ID:"}),v.jsx("input",{id:"ocpp-id",type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:d.chargeBoxId,onChange:h=>y({...d,chargeBoxId:h.target.value})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"ocpp-cert",children:"Certificado:"}),v.jsx("textarea",{id:"ocpp-cert",className:"border border-gray-300 rounded px-3 py-2 w-full",value:d.certificate,onChange:h=>y({...d,certificate:h.target.value})})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"ocpp-key",children:"Chave Privada:"}),v.jsx("textarea",{id:"ocpp-key",className:"border border-gray-300 rounded px-3 py-2 w-full",value:d.privateKey,onChange:h=>y({...d,privateKey:h.target.value})})]}),v.jsx("div",{children:v.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})};function A0(){const[c,s]=z.useState(!0),[o,r]=z.useState(""),[d,y]=z.useState(""),[E,N]=z.useState({voltage:"0",current:"0",quality:"0"}),[b,h]=z.useState(!1),[O,q]=z.useState({earthFault:!1,rcm:!1}),[M,w]=z.useState({enabled:!1,currentLimit:0}),[H,L]=z.useState({capacity:0,useSolar:!1,handleExcess:!1});z.useEffect(()=>{(async()=>{try{const Y=await ju("/api/v1/config/electrical");Y.monitor&&N(Y.monitor),Y.alerts!==void 0&&h(Y.alerts),Y.security&&q(Y.security),Y.loadBalancing&&w(Y.loadBalancing),Y.solar&&L(Y.solar)}catch(Y){console.error("Erro ao carregar configurações:",Y)}finally{s(!1)}})()},[]);const Z=async()=>{r(""),y("");try{await li("/api/v1/config/electrical",{monitor:E,alerts:b,security:O,loadBalancing:M,solar:H}),r("Configuração gravada com sucesso!")}catch(C){console.error("Erro ao salvar configuração:",C),y("Erro ao gravar configuração.")}};return v.jsxs(qf,{title:"Rede Elétrica",children:[o&&v.jsx("div",{className:"p-2 mb-2 bg-green-600 text-white rounded",children:o}),d&&v.jsx("div",{className:"p-2 mb-2 bg-red-600 text-white rounded",children:d}),c?v.jsx("p",{children:"A carregar..."}):v.jsxs("form",{className:"flex flex-col gap-4",onSubmit:C=>{C.preventDefault(),Z()},children:[v.jsx("h2",{className:"text-xl font-semibold",children:"Monitoramento da Rede Elétrica"}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",children:"Tensão de Entrada (V):"}),v.jsx("input",{type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.voltage,disabled:!0})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",children:"Corrente de Entrada (A):"}),v.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.current,disabled:!0})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",children:"Qualidade de Energia:"}),v.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:E.quality,disabled:!0})]}),v.jsx("div",{children:v.jsxs("label",{className:"flex items-center gap-2",children:["Alertas de Falha na Rede",v.jsx("input",{type:"checkbox",checked:b,onChange:C=>h(C.target.checked)})]})}),v.jsx("h2",{className:"text-xl font-semibold",children:"Proteção de Segurança Elétrica"}),v.jsx("div",{children:v.jsxs("label",{className:"flex items-center gap-2",children:["Detecção de Falha de Aterramento",v.jsx("input",{type:"checkbox",checked:O.earthFault,onChange:C=>q({...O,earthFault:C.target.checked})})]})}),v.jsx("div",{children:v.jsxs("label",{className:"flex items-center gap-2",children:["Proteção RCM",v.jsx("input",{type:"checkbox",checked:O.rcm,onChange:C=>q({...O,rcm:C.target.checked})})]})}),v.jsx("h2",{className:"text-xl font-semibold",children:"Balanceamento de Carga"}),v.jsx("div",{children:v.jsxs("label",{className:"flex items-center gap-2",children:["Habilitar Balanceamento de Carga",v.jsx("input",{type:"checkbox",checked:M.enabled,onChange:C=>w({...M,enabled:C.target.checked})})]})}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"lb-current",children:"Limite de Corrente (A):"}),v.jsx("input",{id:"lb-current",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:M.currentLimit,onChange:C=>w({...M,currentLimit:C.target.value})})]}),v.jsx("h2",{className:"text-xl font-semibold",children:"Energia Solar"}),v.jsxs("div",{children:[v.jsx("label",{className:"block mb-1",htmlFor:"solar-capacity",children:"Capacidade Solar (kW):"}),v.jsx("input",{id:"solar-capacity",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:H.capacity,onChange:C=>L({...H,capacity:C.target.value})})]}),v.jsx("div",{children:v.jsxs("label",{className:"flex items-center gap-2",children:["Direcionar Energia Solar para o EVSE",v.jsx("input",{type:"checkbox",checked:H.useSolar,onChange:C=>L({...H,useSolar:C.target.checked})})]})}),v.jsx("div",{children:v.jsxs("label",{className:"flex items-center gap-2",children:["Gerenciamento de Excesso de Energia Solar",v.jsx("input",{type:"checkbox",checked:H.handleExcess,onChange:C=>L({...H,handleExcess:C.target.checked})})]})}),v.jsx("div",{children:v.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}const R0=()=>v.jsxs(c0,{children:[v.jsx(g0,{}),"  ",v.jsxs(qy,{children:[v.jsx(Gl,{path:"/dashboard",element:v.jsx(p0,{})}),v.jsx(Gl,{path:"/settings",element:v.jsx(b0,{})}),v.jsx(Gl,{path:"/security",element:v.jsx(S0,{})}),v.jsx(Gl,{path:"/connectivity",element:v.jsx(E0,{})}),v.jsx(Gl,{path:"/ocpp",element:v.jsx(T0,{})}),v.jsx(Gl,{path:"/electrical-network",element:v.jsx(A0,{})})]})]});Vv.createRoot(document.getElementById("root")).render(v.jsx(qv.StrictMode,{children:v.jsx(R0,{})}));
