(function(){const q=document.createElement("link").relList;if(q&&q.supports&&q.supports("modulepreload"))return;for(const z of document.querySelectorAll('link[rel="modulepreload"]'))x(z);new MutationObserver(z=>{for(const U of z)if(U.type==="childList")for(const F of U.addedNodes)F.tagName==="LINK"&&F.rel==="modulepreload"&&x(F)}).observe(document,{childList:!0,subtree:!0});function L(z){const U={};return z.integrity&&(U.integrity=z.integrity),z.referrerPolicy&&(U.referrerPolicy=z.referrerPolicy),z.crossOrigin==="use-credentials"?U.credentials="include":z.crossOrigin==="anonymous"?U.credentials="omit":U.credentials="same-origin",U}function x(z){if(z.ep)return;z.ep=!0;const U=L(z);fetch(z.href,U)}})();var so={exports:{}},Ns={};/**
 * @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 ex;function jh(){if(ex)return Ns;ex=1;var C=Symbol.for("react.transitional.element"),q=Symbol.for("react.fragment");function L(x,z,U){var F=null;if(U!==void 0&&(F=""+U),z.key!==void 0&&(F=""+z.key),"key"in z){U={};for(var P in z)P!=="key"&&(U[P]=z[P])}else U=z;return z=U.ref,{$$typeof:C,type:x,key:F,ref:z!==void 0?z:null,props:U}}return Ns.Fragment=q,Ns.jsx=L,Ns.jsxs=L,Ns}var tx;function Nh(){return tx||(tx=1,so.exports=jh()),so.exports}var n=Nh(),io={exports:{}},ie={};/**
 * @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 lx;function wh(){if(lx)return ie;lx=1;var C=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),F=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),le=Symbol.iterator;function Se(u){return u===null||typeof u!="object"?null:(u=le&&u[le]||u["@@iterator"],typeof u=="function"?u:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ce=Object.assign,ge={};function ye(u,j,O){this.props=u,this.context=j,this.refs=ge,this.updater=O||R}ye.prototype.isReactComponent={},ye.prototype.setState=function(u,j){if(typeof u!="object"&&typeof u!="function"&&u!=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,u,j,"setState")},ye.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function G(){}G.prototype=ye.prototype;function B(u,j,O){this.props=u,this.context=j,this.refs=ge,this.updater=O||R}var ee=B.prototype=new G;ee.constructor=B,ce(ee,ye.prototype),ee.isPureReactComponent=!0;var Ce=Array.isArray;function H(){}var ae={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function De(u,j,O){var Q=O.ref;return{$$typeof:C,type:u,key:j,ref:Q!==void 0?Q:null,props:O}}function xt(u,j){return De(u.type,j,u.props)}function Ie(u){return typeof u=="object"&&u!==null&&u.$$typeof===C}function Ae(u){var j={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(O){return j[O]})}var dt=/\/+/g;function k(u,j){return typeof u=="object"&&u!==null&&u.key!=null?Ae(""+u.key):j.toString(36)}function se(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(H,H):(u.status="pending",u.then(function(j){u.status==="pending"&&(u.status="fulfilled",u.value=j)},function(j){u.status==="pending"&&(u.status="rejected",u.reason=j)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function y(u,j,O,Q,te){var oe=typeof u;(oe==="undefined"||oe==="boolean")&&(u=null);var me=!1;if(u===null)me=!0;else switch(oe){case"bigint":case"string":case"number":me=!0;break;case"object":switch(u.$$typeof){case C:case q:me=!0;break;case V:return me=u._init,y(me(u._payload),j,O,Q,te)}}if(me)return te=te(u),me=Q===""?"."+k(u,0):Q,Ce(te)?(O="",me!=null&&(O=me.replace(dt,"$&/")+"/"),y(te,j,O,"",function(Tt){return Tt})):te!=null&&(Ie(te)&&(te=xt(te,O+(te.key==null||u&&u.key===te.key?"":(""+te.key).replace(dt,"$&/")+"/")+me)),j.push(te)),1;me=0;var Be=Q===""?".":Q+":";if(Ce(u))for(var Te=0;Te<u.length;Te++)Q=u[Te],oe=Be+k(Q,Te),me+=y(Q,j,O,oe,te);else if(Te=Se(u),typeof Te=="function")for(u=Te.call(u),Te=0;!(Q=u.next()).done;)Q=Q.value,oe=Be+k(Q,Te++),me+=y(Q,j,O,oe,te);else if(oe==="object"){if(typeof u.then=="function")return y(se(u),j,O,Q,te);throw j=String(u),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return me}function M(u,j,O){if(u==null)return u;var Q=[],te=0;return y(u,Q,"","",function(oe){return j.call(O,oe,te++)}),Q}function J(u){if(u._status===-1){var j=u._result;j=j(),j.then(function(O){(u._status===0||u._status===-1)&&(u._status=1,u._result=O)},function(O){(u._status===0||u._status===-1)&&(u._status=2,u._result=O)}),u._status===-1&&(u._status=0,u._result=j)}if(u._status===1)return u._result.default;throw u._result}var ne=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},ve={map:M,forEach:function(u,j,O){M(u,function(){j.apply(this,arguments)},O)},count:function(u){var j=0;return M(u,function(){j++}),j},toArray:function(u){return M(u,function(j){return j})||[]},only:function(u){if(!Ie(u))throw Error("React.Children.only expected to receive a single React element child.");return u}};return ie.Activity=D,ie.Children=ve,ie.Component=ye,ie.Fragment=L,ie.Profiler=z,ie.PureComponent=B,ie.StrictMode=x,ie.Suspense=E,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,ie.__COMPILER_RUNTIME={__proto__:null,c:function(u){return ae.H.useMemoCache(u)}},ie.cache=function(u){return function(){return u.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(u,j,O){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var Q=ce({},u.props),te=u.key;if(j!=null)for(oe in j.key!==void 0&&(te=""+j.key),j)!K.call(j,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&j.ref===void 0||(Q[oe]=j[oe]);var oe=arguments.length-2;if(oe===1)Q.children=O;else if(1<oe){for(var me=Array(oe),Be=0;Be<oe;Be++)me[Be]=arguments[Be+2];Q.children=me}return De(u.type,te,Q)},ie.createContext=function(u){return u={$$typeof:F,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:U,_context:u},u},ie.createElement=function(u,j,O){var Q,te={},oe=null;if(j!=null)for(Q in j.key!==void 0&&(oe=""+j.key),j)K.call(j,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(te[Q]=j[Q]);var me=arguments.length-2;if(me===1)te.children=O;else if(1<me){for(var Be=Array(me),Te=0;Te<me;Te++)Be[Te]=arguments[Te+2];te.children=Be}if(u&&u.defaultProps)for(Q in me=u.defaultProps,me)te[Q]===void 0&&(te[Q]=me[Q]);return De(u,oe,te)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(u){return{$$typeof:P,render:u}},ie.isValidElement=Ie,ie.lazy=function(u){return{$$typeof:V,_payload:{_status:-1,_result:u},_init:J}},ie.memo=function(u,j){return{$$typeof:b,type:u,compare:j===void 0?null:j}},ie.startTransition=function(u){var j=ae.T,O={};ae.T=O;try{var Q=u(),te=ae.S;te!==null&&te(O,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(H,ne)}catch(oe){ne(oe)}finally{j!==null&&O.types!==null&&(j.types=O.types),ae.T=j}},ie.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},ie.use=function(u){return ae.H.use(u)},ie.useActionState=function(u,j,O){return ae.H.useActionState(u,j,O)},ie.useCallback=function(u,j){return ae.H.useCallback(u,j)},ie.useContext=function(u){return ae.H.useContext(u)},ie.useDebugValue=function(){},ie.useDeferredValue=function(u,j){return ae.H.useDeferredValue(u,j)},ie.useEffect=function(u,j){return ae.H.useEffect(u,j)},ie.useEffectEvent=function(u){return ae.H.useEffectEvent(u)},ie.useId=function(){return ae.H.useId()},ie.useImperativeHandle=function(u,j,O){return ae.H.useImperativeHandle(u,j,O)},ie.useInsertionEffect=function(u,j){return ae.H.useInsertionEffect(u,j)},ie.useLayoutEffect=function(u,j){return ae.H.useLayoutEffect(u,j)},ie.useMemo=function(u,j){return ae.H.useMemo(u,j)},ie.useOptimistic=function(u,j){return ae.H.useOptimistic(u,j)},ie.useReducer=function(u,j,O){return ae.H.useReducer(u,j,O)},ie.useRef=function(u){return ae.H.useRef(u)},ie.useState=function(u){return ae.H.useState(u)},ie.useSyncExternalStore=function(u,j,O){return ae.H.useSyncExternalStore(u,j,O)},ie.useTransition=function(){return ae.H.useTransition()},ie.version="19.2.6",ie}var ax;function po(){return ax||(ax=1,io.exports=wh()),io.exports}var w=po(),co={exports:{}},ws={},ro={exports:{}},oo={};/**
 * @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 nx;function Sh(){return nx||(nx=1,(function(C){function q(y,M){var J=y.length;y.push(M);e:for(;0<J;){var ne=J-1>>>1,ve=y[ne];if(0<z(ve,M))y[ne]=M,y[J]=ve,J=ne;else break e}}function L(y){return y.length===0?null:y[0]}function x(y){if(y.length===0)return null;var M=y[0],J=y.pop();if(J!==M){y[0]=J;e:for(var ne=0,ve=y.length,u=ve>>>1;ne<u;){var j=2*(ne+1)-1,O=y[j],Q=j+1,te=y[Q];if(0>z(O,J))Q<ve&&0>z(te,O)?(y[ne]=te,y[Q]=J,ne=Q):(y[ne]=O,y[j]=J,ne=j);else if(Q<ve&&0>z(te,J))y[ne]=te,y[Q]=J,ne=Q;else break e}}return M}function z(y,M){var J=y.sortIndex-M.sortIndex;return J!==0?J:y.id-M.id}if(C.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var U=performance;C.unstable_now=function(){return U.now()}}else{var F=Date,P=F.now();C.unstable_now=function(){return F.now()-P}}var E=[],b=[],V=1,D=null,le=3,Se=!1,R=!1,ce=!1,ge=!1,ye=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function ee(y){for(var M=L(b);M!==null;){if(M.callback===null)x(b);else if(M.startTime<=y)x(b),M.sortIndex=M.expirationTime,q(E,M);else break;M=L(b)}}function Ce(y){if(ce=!1,ee(y),!R)if(L(E)!==null)R=!0,H||(H=!0,Ae());else{var M=L(b);M!==null&&se(Ce,M.startTime-y)}}var H=!1,ae=-1,K=5,De=-1;function xt(){return ge?!0:!(C.unstable_now()-De<K)}function Ie(){if(ge=!1,H){var y=C.unstable_now();De=y;var M=!0;try{e:{R=!1,ce&&(ce=!1,G(ae),ae=-1),Se=!0;var J=le;try{t:{for(ee(y),D=L(E);D!==null&&!(D.expirationTime>y&&xt());){var ne=D.callback;if(typeof ne=="function"){D.callback=null,le=D.priorityLevel;var ve=ne(D.expirationTime<=y);if(y=C.unstable_now(),typeof ve=="function"){D.callback=ve,ee(y),M=!0;break t}D===L(E)&&x(E),ee(y)}else x(E);D=L(E)}if(D!==null)M=!0;else{var u=L(b);u!==null&&se(Ce,u.startTime-y),M=!1}}break e}finally{D=null,le=J,Se=!1}M=void 0}}finally{M?Ae():H=!1}}}var Ae;if(typeof B=="function")Ae=function(){B(Ie)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,k=dt.port2;dt.port1.onmessage=Ie,Ae=function(){k.postMessage(null)}}else Ae=function(){ye(Ie,0)};function se(y,M){ae=ye(function(){y(C.unstable_now())},M)}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(y){y.callback=null},C.unstable_forceFrameRate=function(y){0>y||125<y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<y?Math.floor(1e3/y):5},C.unstable_getCurrentPriorityLevel=function(){return le},C.unstable_next=function(y){switch(le){case 1:case 2:case 3:var M=3;break;default:M=le}var J=le;le=M;try{return y()}finally{le=J}},C.unstable_requestPaint=function(){ge=!0},C.unstable_runWithPriority=function(y,M){switch(y){case 1:case 2:case 3:case 4:case 5:break;default:y=3}var J=le;le=y;try{return M()}finally{le=J}},C.unstable_scheduleCallback=function(y,M,J){var ne=C.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ne+J:ne):J=ne,y){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=J+ve,y={id:V++,callback:M,priorityLevel:y,startTime:J,expirationTime:ve,sortIndex:-1},J>ne?(y.sortIndex=J,q(b,y),L(E)===null&&y===L(b)&&(ce?(G(ae),ae=-1):ce=!0,se(Ce,J-ne))):(y.sortIndex=ve,q(E,y),R||Se||(R=!0,H||(H=!0,Ae()))),y},C.unstable_shouldYield=xt,C.unstable_wrapCallback=function(y){var M=le;return function(){var J=le;le=M;try{return y.apply(this,arguments)}finally{le=J}}}})(oo)),oo}var sx;function Ah(){return sx||(sx=1,ro.exports=Sh()),ro.exports}var uo={exports:{}},ot={};/**
 * @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 ix;function Ch(){if(ix)return ot;ix=1;var C=po();function q(E){var b="https://react.dev/errors/"+E;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var V=2;V<arguments.length;V++)b+="&args[]="+encodeURIComponent(arguments[V])}return"Minified React error #"+E+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function L(){}var x={d:{f:L,r:function(){throw Error(q(522))},D:L,C:L,L,m:L,X:L,S:L,M:L},p:0,findDOMNode:null},z=Symbol.for("react.portal");function U(E,b,V){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:D==null?null:""+D,children:E,containerInfo:b,implementation:V}}var F=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function P(E,b){if(E==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,ot.createPortal=function(E,b){var V=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(q(299));return U(E,b,null,V)},ot.flushSync=function(E){var b=F.T,V=x.p;try{if(F.T=null,x.p=2,E)return E()}finally{F.T=b,x.p=V,x.d.f()}},ot.preconnect=function(E,b){typeof E=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,x.d.C(E,b))},ot.prefetchDNS=function(E){typeof E=="string"&&x.d.D(E)},ot.preinit=function(E,b){if(typeof E=="string"&&b&&typeof b.as=="string"){var V=b.as,D=P(V,b.crossOrigin),le=typeof b.integrity=="string"?b.integrity:void 0,Se=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;V==="style"?x.d.S(E,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:D,integrity:le,fetchPriority:Se}):V==="script"&&x.d.X(E,{crossOrigin:D,integrity:le,fetchPriority:Se,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},ot.preinitModule=function(E,b){if(typeof E=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var V=P(b.as,b.crossOrigin);x.d.M(E,{crossOrigin:V,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&x.d.M(E)},ot.preload=function(E,b){if(typeof E=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var V=b.as,D=P(V,b.crossOrigin);x.d.L(E,V,{crossOrigin:D,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},ot.preloadModule=function(E,b){if(typeof E=="string")if(b){var V=P(b.as,b.crossOrigin);x.d.m(E,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:V,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else x.d.m(E)},ot.requestFormReset=function(E){x.d.r(E)},ot.unstable_batchedUpdates=function(E,b){return E(b)},ot.useFormState=function(E,b,V){return F.H.useFormState(E,b,V)},ot.useFormStatus=function(){return F.H.useHostTransitionStatus()},ot.version="19.2.6",ot}var cx;function Eh(){if(cx)return uo.exports;cx=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(q){console.error(q)}}return C(),uo.exports=Ch(),uo.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 rx;function kh(){if(rx)return ws;rx=1;var C=Ah(),q=po(),L=Eh();function x(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function F(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function P(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function E(e){if(U(e)!==e)throw Error(x(188))}function b(e){var t=e.alternate;if(!t){if(t=U(e),t===null)throw Error(x(188));return t!==e?null:e}for(var l=e,a=t;;){var s=l.return;if(s===null)break;var i=s.alternate;if(i===null){if(a=s.return,a!==null){l=a;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===l)return E(s),e;if(i===a)return E(s),t;i=i.sibling}throw Error(x(188))}if(l.return!==a.return)l=s,a=i;else{for(var c=!1,r=s.child;r;){if(r===l){c=!0,l=s,a=i;break}if(r===a){c=!0,a=s,l=i;break}r=r.sibling}if(!c){for(r=i.child;r;){if(r===l){c=!0,l=i,a=s;break}if(r===a){c=!0,a=i,l=s;break}r=r.sibling}if(!c)throw Error(x(189))}}if(l.alternate!==a)throw Error(x(190))}if(l.tag!==3)throw Error(x(188));return l.stateNode.current===l?e:t}function V(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=V(e),t!==null)return t;e=e.sibling}return null}var D=Object.assign,le=Symbol.for("react.element"),Se=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),B=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),xt=Symbol.for("react.memo_cache_sentinel"),Ie=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=Ie&&e[Ie]||e["@@iterator"],typeof e=="function"?e:null)}var dt=Symbol.for("react.client.reference");function k(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===dt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ce:return"Fragment";case ye:return"Profiler";case ge:return"StrictMode";case Ce:return"Suspense";case H:return"SuspenseList";case De:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case B:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:k(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return k(e(t))}catch{}}return null}var se=Array.isArray,y=q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=L.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ne=[],ve=-1;function u(e){return{current:e}}function j(e){0>ve||(e.current=ne[ve],ne[ve]=null,ve--)}function O(e,t){ve++,ne[ve]=e.current,e.current=t}var Q=u(null),te=u(null),oe=u(null),me=u(null);function Be(e,t){switch(O(oe,t),O(te,e),O(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?wf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=wf(t),e=Sf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(Q),O(Q,e)}function Te(){j(Q),j(te),j(oe)}function Tt(e){e.memoizedState!==null&&O(me,e);var t=Q.current,l=Sf(t,e.type);t!==l&&(O(te,e),O(Q,l))}function al(e){te.current===e&&(j(Q),j(te)),me.current===e&&(j(me),bs._currentValue=J)}var nl,oa;function Mt(e){if(nl===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);nl=t&&t[1]||"",oa=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+nl+e+oa}var El=!1;function _(e,t){if(!e||El)return"";El=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(v){var g=v}Reflect.construct(e,[],A)}else{try{A.call()}catch(v){g=v}e.call(A.prototype)}}else{try{throw Error()}catch(v){g=v}(A=e())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(v){if(v&&g&&typeof v.stack=="string")return[v.stack,g.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],r=i[1];if(c&&r){var o=c.split(`
`),p=r.split(`
`);for(s=a=0;a<o.length&&!o[a].includes("DetermineComponentFrameRoot");)a++;for(;s<p.length&&!p[s].includes("DetermineComponentFrameRoot");)s++;if(a===o.length||s===p.length)for(a=o.length-1,s=p.length-1;1<=a&&0<=s&&o[a]!==p[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==p[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==p[s]){var N=`
`+o[a].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=a&&0<=s);break}}}finally{El=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Mt(l):""}function Le(e,t){switch(e.tag){case 26:case 27:case 5:return Mt(e.type);case 16:return Mt("Lazy");case 13:return e.child!==t&&t!==null?Mt("Suspense Fallback"):Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 15:return _(e.type,!1);case 11:return _(e.type.render,!1);case 1:return _(e.type,!0);case 31:return Mt("Activity");default:return""}}function Qe(e){try{var t="",l=null;do t+=Le(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var mt=Object.prototype.hasOwnProperty,Da=C.unstable_scheduleCallback,da=C.unstable_cancelCallback,Es=C.unstable_shouldYield,wn=C.unstable_requestPaint,rt=C.unstable_now,ks=C.unstable_getCurrentPriorityLevel,Sn=C.unstable_ImmediatePriority,Ft=C.unstable_UserBlockingPriority,Kt=C.unstable_NormalPriority,Ra=C.unstable_LowPriority,Ts=C.unstable_IdlePriority,Ms=C.log,zs=C.unstable_setDisableYieldValue,sl=null,at=null;function Jt(e){if(typeof Ms=="function"&&zs(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(sl,e)}catch{}}var Pe=Math.clz32?Math.clz32:Os,_s=Math.log,An=Math.LN2;function Os(e){return e>>>=0,e===0?32:31-(_s(e)/An|0)|0}var kl=256,ua=262144,Tl=4194304;function Lt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function il(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var s=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=a&134217727;return r!==0?(a=r&~i,a!==0?s=Lt(a):(c&=r,c!==0?s=Lt(c):l||(l=r&~e,l!==0&&(s=Lt(l))))):(r=a&~i,r!==0?s=Lt(r):c!==0?s=Lt(c):l||(l=a&~e,l!==0&&(s=Lt(l)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:s}function Ml(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Cn(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function En(){var e=Tl;return Tl<<=1,(Tl&62914560)===0&&(Tl=4194304),e}function fa(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function zl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kn(e,t,l,a,s,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var r=e.entanglements,o=e.expirationTimes,p=e.hiddenUpdates;for(l=c&~l;0<l;){var N=31-Pe(l),A=1<<N;r[N]=0,o[N]=-1;var g=p[N];if(g!==null)for(p[N]=null,N=0;N<g.length;N++){var v=g[N];v!==null&&(v.lane&=-536870913)}l&=~A}a!==0&&Tn(e,a,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Tn(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Pe(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ua(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Pe(l),s=1<<a;s&t|e[a]&t&&(e[a]|=t),l&=~s}}function Mn(e,t){var l=t&-t;return l=(l&42)!==0?1:xa(l),(l&(e.suspendedLanes|t))!==0?0:l}function xa(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ha(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qa(){var e=M.p;return e!==0?e:(e=window.event,e===void 0?32:Ff(e.type))}function _l(e,t){var l=M.p;try{return M.p=e,t()}finally{M.p=l}}var zt=Math.random().toString(36).slice(2),et="__reactFiber$"+zt,Fe="__reactProps$"+zt,Yt="__reactContainer$"+zt,Ol="__reactEvents$"+zt,Ds="__reactListeners$"+zt,ma="__reactHandles$"+zt,Ba="__reactResources$"+zt,Gt="__reactMarker$"+zt;function Dl(e){delete e[et],delete e[Fe],delete e[Ol],delete e[Ds],delete e[ma]}function Rl(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Yt]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=zf(e);e!==null;){if(l=e[et])return l;e=zf(e)}return t}e=l,l=e.parentNode}return null}function $t(e){if(e=e[et]||e[Yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ul(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(x(33))}function cl(e){var t=e[Ba];return t||(t=e[Ba]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Xe(e){e[Gt]=!0}var zn=new Set,ha={};function Wt(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(ha[e]=t,e=0;e<t.length;e++)zn.add(t[e])}var Wi=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]*$"),Rs={},He={};function Ii(e){return mt.call(He,e)?!0:mt.call(Rs,e)?!1:Wi.test(e)?He[e]=!0:(Rs[e]=!0,!1)}function pa(e,t,l){if(Ii(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function La(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Qt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Us(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pi(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _n(e){if(!e._valueTracker){var t=Us(e)?"checked":"value";e._valueTracker=Pi(e,t,""+e[t])}}function On(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Us(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ya(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ec=/[\n"\\]/g;function ut(e){return e.replace(ec,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ga(e,t,l,a,s,i,c,r){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ht(t)):e.value!==""+ht(t)&&(e.value=""+ht(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Qa(e,c,ht(t)):l!=null?Qa(e,c,ht(l)):a!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+ht(r):e.removeAttribute("name")}function Dn(e,t,l,a,s,i,c,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){_n(e);return}l=l!=null?""+ht(l):"",t=t!=null?""+ht(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=r?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),_n(e)}function Qa(e,t,l){t==="number"&&Ya(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function rl(e,t,l,a){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&a&&(e[l].defaultSelected=!0)}else{for(l=""+ht(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function d(e,t,l){if(t!=null&&(t=""+ht(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+ht(l):""}function T(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(x(92));if(se(a)){if(1<a.length)throw Error(x(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=ht(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),_n(e)}function Y(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var I=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 ql(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||I.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function vo(e,t,l){if(t!=null&&typeof t!="object")throw Error(x(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&l[s]!==a&&ql(e,s,a)}else for(var i in t)t.hasOwnProperty(i)&&ql(e,i,t[i])}function tc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gx=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"]]),bx=/^[\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 Hs(e){return bx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ol(){}var lc=null;function ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xa=null,Va=null;function jo(e){var t=$t(e);if(t&&(e=t.stateNode)){var l=e[Fe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ga(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ut(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var s=a[Fe]||null;if(!s)throw Error(x(90));Ga(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&On(a)}break e;case"textarea":d(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&rl(e,!!l.multiple,t,!1)}}}var nc=!1;function No(e,t,l){if(nc)return e(t,l);nc=!0;try{var a=e(t);return a}finally{if(nc=!1,(Xa!==null||Va!==null)&&(Si(),Xa&&(t=Xa,e=Va,Va=Xa=null,jo(t),e)))for(t=0;t<e.length;t++)jo(e[t])}}function Rn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Fe]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(x(231,t,typeof l));return l}var dl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sc=!1;if(dl)try{var Un={};Object.defineProperty(Un,"passive",{get:function(){sc=!0}}),window.addEventListener("test",Un,Un),window.removeEventListener("test",Un,Un)}catch{sc=!1}var Bl=null,ic=null,qs=null;function wo(){if(qs)return qs;var e,t=ic,l=t.length,a,s="value"in Bl?Bl.value:Bl.textContent,i=s.length;for(e=0;e<l&&t[e]===s[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===s[i-a];a++);return qs=s.slice(e,1<a?1-a:void 0)}function Bs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ls(){return!0}function So(){return!1}function pt(e){function t(l,a,s,i,c){this._reactName=l,this._targetInst=s,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ls:So,this.isPropagationStopped=So,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ls)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),t}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ys=pt(ga),Hn=D({},ga,{view:0,detail:0}),yx=pt(Hn),cc,rc,qn,Gs=D({},Hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qn&&(qn&&e.type==="mousemove"?(cc=e.screenX-qn.screenX,rc=e.screenY-qn.screenY):rc=cc=0,qn=e),cc)},movementY:function(e){return"movementY"in e?e.movementY:rc}}),Ao=pt(Gs),vx=D({},Gs,{dataTransfer:0}),jx=pt(vx),Nx=D({},Hn,{relatedTarget:0}),oc=pt(Nx),wx=D({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),Sx=pt(wx),Ax=D({},ga,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cx=pt(Ax),Ex=D({},ga,{data:0}),Co=pt(Ex),kx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tx={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"},Mx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mx[e])?!!t[e]:!1}function dc(){return zx}var _x=D({},Hn,{key:function(e){if(e.key){var t=kx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?Bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ox=pt(_x),Dx=D({},Gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eo=pt(Dx),Rx=D({},Hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),Ux=pt(Rx),Hx=D({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),qx=pt(Hx),Bx=D({},Gs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lx=pt(Bx),Yx=D({},ga,{newState:0,oldState:0}),Gx=pt(Yx),Qx=[9,13,27,32],uc=dl&&"CompositionEvent"in window,Bn=null;dl&&"documentMode"in document&&(Bn=document.documentMode);var Xx=dl&&"TextEvent"in window&&!Bn,ko=dl&&(!uc||Bn&&8<Bn&&11>=Bn),To=" ",Mo=!1;function zo(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _o(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Za=!1;function Vx(e,t){switch(e){case"compositionend":return _o(t);case"keypress":return t.which!==32?null:(Mo=!0,To);case"textInput":return e=t.data,e===To&&Mo?null:e;default:return null}}function Zx(e,t){if(Za)return e==="compositionend"||!uc&&zo(e,t)?(e=wo(),qs=ic=Bl=null,Za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ko&&t.locale!=="ko"?null:t.data;default:return null}}var Fx={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 Oo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fx[e.type]:t==="textarea"}function Do(e,t,l,a){Xa?Va?Va.push(a):Va=[a]:Xa=a,t=zi(t,"onChange"),0<t.length&&(l=new Ys("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ln=null,Yn=null;function Kx(e){gf(e,0)}function Qs(e){var t=Ul(e);if(On(t))return e}function Ro(e,t){if(e==="change")return t}var Uo=!1;if(dl){var fc;if(dl){var xc="oninput"in document;if(!xc){var Ho=document.createElement("div");Ho.setAttribute("oninput","return;"),xc=typeof Ho.oninput=="function"}fc=xc}else fc=!1;Uo=fc&&(!document.documentMode||9<document.documentMode)}function qo(){Ln&&(Ln.detachEvent("onpropertychange",Bo),Yn=Ln=null)}function Bo(e){if(e.propertyName==="value"&&Qs(Yn)){var t=[];Do(t,Yn,e,ac(e)),No(Kx,t)}}function Jx(e,t,l){e==="focusin"?(qo(),Ln=t,Yn=l,Ln.attachEvent("onpropertychange",Bo)):e==="focusout"&&qo()}function $x(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(Yn)}function Wx(e,t){if(e==="click")return Qs(t)}function Ix(e,t){if(e==="input"||e==="change")return Qs(t)}function Px(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Px;function Gn(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var s=l[a];if(!mt.call(t,s)||!Nt(e[s],t[s]))return!1}return!0}function Lo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yo(e,t){var l=Lo(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Lo(l)}}function Go(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Go(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ya(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ya(e.document)}return t}function mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var em=dl&&"documentMode"in document&&11>=document.documentMode,Fa=null,hc=null,Qn=null,pc=!1;function Xo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;pc||Fa==null||Fa!==Ya(a)||(a=Fa,"selectionStart"in a&&mc(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}),Qn&&Gn(Qn,a)||(Qn=a,a=zi(hc,"onSelect"),0<a.length&&(t=new Ys("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Fa)))}function ba(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ka={animationend:ba("Animation","AnimationEnd"),animationiteration:ba("Animation","AnimationIteration"),animationstart:ba("Animation","AnimationStart"),transitionrun:ba("Transition","TransitionRun"),transitionstart:ba("Transition","TransitionStart"),transitioncancel:ba("Transition","TransitionCancel"),transitionend:ba("Transition","TransitionEnd")},gc={},Vo={};dl&&(Vo=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function ya(e){if(gc[e])return gc[e];if(!Ka[e])return e;var t=Ka[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Vo)return gc[e]=t[l];return e}var Zo=ya("animationend"),Fo=ya("animationiteration"),Ko=ya("animationstart"),tm=ya("transitionrun"),lm=ya("transitionstart"),am=ya("transitioncancel"),Jo=ya("transitionend"),$o=new Map,bc="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(" ");bc.push("scrollEnd");function Xt(e,t){$o.set(e,t),Wt(t,[e])}var Xs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_t=[],Ja=0,yc=0;function Vs(){for(var e=Ja,t=yc=Ja=0;t<e;){var l=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var s=_t[t];_t[t++]=null;var i=_t[t];if(_t[t++]=null,a!==null&&s!==null){var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}i!==0&&Wo(l,s,i)}}function Zs(e,t,l,a){_t[Ja++]=e,_t[Ja++]=t,_t[Ja++]=l,_t[Ja++]=a,yc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function vc(e,t,l,a){return Zs(e,t,l,a),Fs(e)}function va(e,t){return Zs(e,null,null,t),Fs(e)}function Wo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var s=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(s=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,s&&t!==null&&(s=31-Pe(l),e=i.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=l|536870912),i):null}function Fs(e){if(50<us)throw us=0,Tr=null,Error(x(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $a={};function nm(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,l,a){return new nm(e,t,l,a)}function jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ul(e,t){var l=e.alternate;return l===null?(l=wt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Io(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ks(e,t,l,a,s,i){var c=0;if(a=e,typeof e=="function")jc(e)&&(c=1);else if(typeof e=="string")c=oh(e,l,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case De:return e=wt(31,l,t,s),e.elementType=De,e.lanes=i,e;case ce:return ja(l.children,s,i,t);case ge:c=8,s|=24;break;case ye:return e=wt(12,l,t,s|2),e.elementType=ye,e.lanes=i,e;case Ce:return e=wt(13,l,t,s),e.elementType=Ce,e.lanes=i,e;case H:return e=wt(19,l,t,s),e.elementType=H,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:c=10;break e;case G:c=9;break e;case ee:c=11;break e;case ae:c=14;break e;case K:c=16,a=null;break e}c=29,l=Error(x(130,e===null?"null":typeof e,"")),a=null}return t=wt(c,l,t,s),t.elementType=e,t.type=a,t.lanes=i,t}function ja(e,t,l,a){return e=wt(7,e,a,t),e.lanes=l,e}function Nc(e,t,l){return e=wt(6,e,null,t),e.lanes=l,e}function Po(e){var t=wt(18,null,null,0);return t.stateNode=e,t}function wc(e,t,l){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ed=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var l=ed.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Qe(t)},ed.set(e,t),t)}return{value:e,source:t,stack:Qe(t)}}var Wa=[],Ia=0,Js=null,Xn=0,Dt=[],Rt=0,Ll=null,It=1,Pt="";function fl(e,t){Wa[Ia++]=Xn,Wa[Ia++]=Js,Js=e,Xn=t}function td(e,t,l){Dt[Rt++]=It,Dt[Rt++]=Pt,Dt[Rt++]=Ll,Ll=e;var a=It;e=Pt;var s=32-Pe(a)-1;a&=~(1<<s),l+=1;var i=32-Pe(t)+s;if(30<i){var c=s-s%5;i=(a&(1<<c)-1).toString(32),a>>=c,s-=c,It=1<<32-Pe(t)+s|l<<s|a,Pt=i+e}else It=1<<i|l<<s|a,Pt=e}function Sc(e){e.return!==null&&(fl(e,1),td(e,1,0))}function Ac(e){for(;e===Js;)Js=Wa[--Ia],Wa[Ia]=null,Xn=Wa[--Ia],Wa[Ia]=null;for(;e===Ll;)Ll=Dt[--Rt],Dt[Rt]=null,Pt=Dt[--Rt],Dt[Rt]=null,It=Dt[--Rt],Dt[Rt]=null}function ld(e,t){Dt[Rt++]=It,Dt[Rt++]=Pt,Dt[Rt++]=Ll,It=t.id,Pt=t.overflow,Ll=e}var nt=null,Re=null,be=!1,Yl=null,Ut=!1,Cc=Error(x(519));function Gl(e){var t=Error(x(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vn(Ot(t,e)),Cc}function ad(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[Fe]=a,l){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(l=0;l<xs.length;l++)xe(xs[l],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Dn(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),T(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||jf(t.textContent,l)?(a.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),a.onScroll!=null&&xe("scroll",t),a.onScrollEnd!=null&&xe("scrollend",t),a.onClick!=null&&(t.onclick=ol),t=!0):t=!1,t||Gl(e,!0)}function nd(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:nt=nt.return}}function Pa(e){if(e!==nt)return!1;if(!be)return nd(e),be=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Xr(e.type,e.memoizedProps)),l=!l),l&&Re&&Gl(e),nd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));Re=Mf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));Re=Mf(e)}else t===27?(t=Re,la(e.type)?(e=Jr,Jr=null,Re=e):Re=t):Re=nt?qt(e.stateNode.nextSibling):null;return!0}function Na(){Re=nt=null,be=!1}function Ec(){var e=Yl;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Yl=null),e}function Vn(e){Yl===null?Yl=[e]:Yl.push(e)}var kc=u(null),wa=null,xl=null;function Ql(e,t,l){O(kc,t._currentValue),t._currentValue=l}function ml(e){e._currentValue=kc.current,j(kc)}function Tc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Mc(e,t,l,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var i=s.dependencies;if(i!==null){var c=s.child;i=i.firstContext;e:for(;i!==null;){var r=i;i=s;for(var o=0;o<t.length;o++)if(r.context===t[o]){i.lanes|=l,r=i.alternate,r!==null&&(r.lanes|=l),Tc(i.return,l,e),a||(c=null);break e}i=r.next}}else if(s.tag===18){if(c=s.return,c===null)throw Error(x(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),Tc(c,l,e),c=null}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===e){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}}function en(e,t,l,a){e=null;for(var s=t,i=!1;s!==null;){if(!i){if((s.flags&524288)!==0)i=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var c=s.alternate;if(c===null)throw Error(x(387));if(c=c.memoizedProps,c!==null){var r=s.type;Nt(s.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(s===me.current){if(c=s.alternate,c===null)throw Error(x(387));c.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(bs):e=[bs])}s=s.return}e!==null&&Mc(t,e,l,a),t.flags|=262144}function $s(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){wa=e,xl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return sd(wa,e)}function Ws(e,t){return wa===null&&Sa(e),sd(e,t)}function sd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},xl===null){if(e===null)throw Error(x(308));xl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xl=xl.next=t;return l}var sm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},im=C.unstable_scheduleCallback,cm=C.unstable_NormalPriority,Ke={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zc(){return{controller:new sm,data:new Map,refCount:0}}function Zn(e){e.refCount--,e.refCount===0&&im(cm,function(){e.controller.abort()})}var Fn=null,_c=0,tn=0,ln=null;function rm(e,t){if(Fn===null){var l=Fn=[];_c=0,tn=Rr(),ln={status:"pending",value:void 0,then:function(a){l.push(a)}}}return _c++,t.then(id,id),t}function id(){if(--_c===0&&Fn!==null){ln!==null&&(ln.status="fulfilled");var e=Fn;Fn=null,tn=0,ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function om(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),a}var cd=y.S;y.S=function(e,t){Xu=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&rm(e,t),cd!==null&&cd(e,t)};var Aa=u(null);function Oc(){var e=Aa.current;return e!==null?e:Oe.pooledCache}function Is(e,t){t===null?O(Aa,Aa.current):O(Aa,t.pool)}function rd(){var e=Oc();return e===null?null:{parent:Ke._currentValue,pool:e}}var an=Error(x(460)),Dc=Error(x(474)),Ps=Error(x(542)),ei={then:function(){}};function od(e){return e=e.status,e==="fulfilled"||e==="rejected"}function dd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ol,ol),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e;default:if(typeof t.status=="string")t.then(ol,ol);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(x(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e}throw Ea=t,an}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ea=l,an):l}}var Ea=null;function ud(){if(Ea===null)throw Error(x(459));var e=Ea;return Ea=null,e}function fd(e){if(e===an||e===Ps)throw Error(x(483))}var nn=null,Kn=0;function ti(e){var t=Kn;return Kn+=1,nn===null&&(nn=[]),dd(nn,e,t)}function Jn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function li(e,t){throw t.$$typeof===le?Error(x(525)):(e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xd(e){function t(m,f){if(e){var h=m.deletions;h===null?(m.deletions=[f],m.flags|=16):h.push(f)}}function l(m,f){if(!e)return null;for(;f!==null;)t(m,f),f=f.sibling;return null}function a(m){for(var f=new Map;m!==null;)m.key!==null?f.set(m.key,m):f.set(m.index,m),m=m.sibling;return f}function s(m,f){return m=ul(m,f),m.index=0,m.sibling=null,m}function i(m,f,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<f?(m.flags|=67108866,f):h):(m.flags|=67108866,f)):(m.flags|=1048576,f)}function c(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function r(m,f,h,S){return f===null||f.tag!==6?(f=Nc(h,m.mode,S),f.return=m,f):(f=s(f,h),f.return=m,f)}function o(m,f,h,S){var $=h.type;return $===ce?N(m,f,h.props.children,S,h.key):f!==null&&(f.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===K&&Ca($)===f.type)?(f=s(f,h.props),Jn(f,h),f.return=m,f):(f=Ks(h.type,h.key,h.props,null,m.mode,S),Jn(f,h),f.return=m,f)}function p(m,f,h,S){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=wc(h,m.mode,S),f.return=m,f):(f=s(f,h.children||[]),f.return=m,f)}function N(m,f,h,S,$){return f===null||f.tag!==7?(f=ja(h,m.mode,S,$),f.return=m,f):(f=s(f,h),f.return=m,f)}function A(m,f,h){if(typeof f=="string"&&f!==""||typeof f=="number"||typeof f=="bigint")return f=Nc(""+f,m.mode,h),f.return=m,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Se:return h=Ks(f.type,f.key,f.props,null,m.mode,h),Jn(h,f),h.return=m,h;case R:return f=wc(f,m.mode,h),f.return=m,f;case K:return f=Ca(f),A(m,f,h)}if(se(f)||Ae(f))return f=ja(f,m.mode,h,null),f.return=m,f;if(typeof f.then=="function")return A(m,ti(f),h);if(f.$$typeof===B)return A(m,Ws(m,f),h);li(m,f)}return null}function g(m,f,h,S){var $=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return $!==null?null:r(m,f,""+h,S);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Se:return h.key===$?o(m,f,h,S):null;case R:return h.key===$?p(m,f,h,S):null;case K:return h=Ca(h),g(m,f,h,S)}if(se(h)||Ae(h))return $!==null?null:N(m,f,h,S,null);if(typeof h.then=="function")return g(m,f,ti(h),S);if(h.$$typeof===B)return g(m,f,Ws(m,h),S);li(m,h)}return null}function v(m,f,h,S,$){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(h)||null,r(f,m,""+S,$);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Se:return m=m.get(S.key===null?h:S.key)||null,o(f,m,S,$);case R:return m=m.get(S.key===null?h:S.key)||null,p(f,m,S,$);case K:return S=Ca(S),v(m,f,h,S,$)}if(se(S)||Ae(S))return m=m.get(h)||null,N(f,m,S,$,null);if(typeof S.then=="function")return v(m,f,h,ti(S),$);if(S.$$typeof===B)return v(m,f,h,Ws(f,S),$);li(f,S)}return null}function X(m,f,h,S){for(var $=null,je=null,Z=f,ue=f=0,pe=null;Z!==null&&ue<h.length;ue++){Z.index>ue?(pe=Z,Z=null):pe=Z.sibling;var Ne=g(m,Z,h[ue],S);if(Ne===null){Z===null&&(Z=pe);break}e&&Z&&Ne.alternate===null&&t(m,Z),f=i(Ne,f,ue),je===null?$=Ne:je.sibling=Ne,je=Ne,Z=pe}if(ue===h.length)return l(m,Z),be&&fl(m,ue),$;if(Z===null){for(;ue<h.length;ue++)Z=A(m,h[ue],S),Z!==null&&(f=i(Z,f,ue),je===null?$=Z:je.sibling=Z,je=Z);return be&&fl(m,ue),$}for(Z=a(Z);ue<h.length;ue++)pe=v(Z,m,ue,h[ue],S),pe!==null&&(e&&pe.alternate!==null&&Z.delete(pe.key===null?ue:pe.key),f=i(pe,f,ue),je===null?$=pe:je.sibling=pe,je=pe);return e&&Z.forEach(function(ca){return t(m,ca)}),be&&fl(m,ue),$}function W(m,f,h,S){if(h==null)throw Error(x(151));for(var $=null,je=null,Z=f,ue=f=0,pe=null,Ne=h.next();Z!==null&&!Ne.done;ue++,Ne=h.next()){Z.index>ue?(pe=Z,Z=null):pe=Z.sibling;var ca=g(m,Z,Ne.value,S);if(ca===null){Z===null&&(Z=pe);break}e&&Z&&ca.alternate===null&&t(m,Z),f=i(ca,f,ue),je===null?$=ca:je.sibling=ca,je=ca,Z=pe}if(Ne.done)return l(m,Z),be&&fl(m,ue),$;if(Z===null){for(;!Ne.done;ue++,Ne=h.next())Ne=A(m,Ne.value,S),Ne!==null&&(f=i(Ne,f,ue),je===null?$=Ne:je.sibling=Ne,je=Ne);return be&&fl(m,ue),$}for(Z=a(Z);!Ne.done;ue++,Ne=h.next())Ne=v(Z,m,ue,Ne.value,S),Ne!==null&&(e&&Ne.alternate!==null&&Z.delete(Ne.key===null?ue:Ne.key),f=i(Ne,f,ue),je===null?$=Ne:je.sibling=Ne,je=Ne);return e&&Z.forEach(function(vh){return t(m,vh)}),be&&fl(m,ue),$}function _e(m,f,h,S){if(typeof h=="object"&&h!==null&&h.type===ce&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Se:e:{for(var $=h.key;f!==null;){if(f.key===$){if($=h.type,$===ce){if(f.tag===7){l(m,f.sibling),S=s(f,h.props.children),S.return=m,m=S;break e}}else if(f.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===K&&Ca($)===f.type){l(m,f.sibling),S=s(f,h.props),Jn(S,h),S.return=m,m=S;break e}l(m,f);break}else t(m,f);f=f.sibling}h.type===ce?(S=ja(h.props.children,m.mode,S,h.key),S.return=m,m=S):(S=Ks(h.type,h.key,h.props,null,m.mode,S),Jn(S,h),S.return=m,m=S)}return c(m);case R:e:{for($=h.key;f!==null;){if(f.key===$)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){l(m,f.sibling),S=s(f,h.children||[]),S.return=m,m=S;break e}else{l(m,f);break}else t(m,f);f=f.sibling}S=wc(h,m.mode,S),S.return=m,m=S}return c(m);case K:return h=Ca(h),_e(m,f,h,S)}if(se(h))return X(m,f,h,S);if(Ae(h)){if($=Ae(h),typeof $!="function")throw Error(x(150));return h=$.call(h),W(m,f,h,S)}if(typeof h.then=="function")return _e(m,f,ti(h),S);if(h.$$typeof===B)return _e(m,f,Ws(m,h),S);li(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,f!==null&&f.tag===6?(l(m,f.sibling),S=s(f,h),S.return=m,m=S):(l(m,f),S=Nc(h,m.mode,S),S.return=m,m=S),c(m)):l(m,f)}return function(m,f,h,S){try{Kn=0;var $=_e(m,f,h,S);return nn=null,$}catch(Z){if(Z===an||Z===Ps)throw Z;var je=wt(29,Z,null,m.mode);return je.lanes=S,je.return=m,je}finally{}}}var ka=xd(!0),md=xd(!1),Xl=!1;function Rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(we&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Fs(e),Wo(e,null,l),t}return Zs(e,a,t,l),Fs(e)}function $n(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ua(e,l)}}function Hc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var s=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?s=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?s=i=t:i=i.next=t}else s=i=t;l={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var qc=!1;function Wn(){if(qc){var e=ln;if(e!==null)throw e}}function In(e,t,l,a){qc=!1;var s=e.updateQueue;Xl=!1;var i=s.firstBaseUpdate,c=s.lastBaseUpdate,r=s.shared.pending;if(r!==null){s.shared.pending=null;var o=r,p=o.next;o.next=null,c===null?i=p:c.next=p,c=o;var N=e.alternate;N!==null&&(N=N.updateQueue,r=N.lastBaseUpdate,r!==c&&(r===null?N.firstBaseUpdate=p:r.next=p,N.lastBaseUpdate=o))}if(i!==null){var A=s.baseState;c=0,N=p=o=null,r=i;do{var g=r.lane&-536870913,v=g!==r.lane;if(v?(he&g)===g:(a&g)===g){g!==0&&g===tn&&(qc=!0),N!==null&&(N=N.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var X=e,W=r;g=t;var _e=l;switch(W.tag){case 1:if(X=W.payload,typeof X=="function"){A=X.call(_e,A,g);break e}A=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=W.payload,g=typeof X=="function"?X.call(_e,A,g):X,g==null)break e;A=D({},A,g);break e;case 2:Xl=!0}}g=r.callback,g!==null&&(e.flags|=64,v&&(e.flags|=8192),v=s.callbacks,v===null?s.callbacks=[g]:v.push(g))}else v={lane:g,tag:r.tag,payload:r.payload,callback:r.callback,next:null},N===null?(p=N=v,o=A):N=N.next=v,c|=g;if(r=r.next,r===null){if(r=s.shared.pending,r===null)break;v=r,r=v.next,v.next=null,s.lastBaseUpdate=v,s.shared.pending=null}}while(!0);N===null&&(o=A),s.baseState=o,s.firstBaseUpdate=p,s.lastBaseUpdate=N,i===null&&(s.shared.lanes=0),Wl|=c,e.lanes=c,e.memoizedState=A}}function hd(e,t){if(typeof e!="function")throw Error(x(191,e));e.call(t)}function pd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)hd(l[e],t)}var sn=u(null),ai=u(0);function gd(e,t){e=wl,O(ai,e),O(sn,t),wl=e|t.baseLanes}function Bc(){O(ai,wl),O(sn,sn.current)}function Lc(){wl=ai.current,j(sn),j(ai)}var St=u(null),Ht=null;function Fl(e){var t=e.alternate;O(Ve,Ve.current&1),O(St,e),Ht===null&&(t===null||sn.current!==null||t.memoizedState!==null)&&(Ht=e)}function Yc(e){O(Ve,Ve.current),O(St,e),Ht===null&&(Ht=e)}function bd(e){e.tag===22?(O(Ve,Ve.current),O(St,e),Ht===null&&(Ht=e)):Kl()}function Kl(){O(Ve,Ve.current),O(St,St.current)}function At(e){j(St),Ht===e&&(Ht=null),j(Ve)}var Ve=u(0);function ni(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Fr(l)||Kr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hl=0,de=null,Me=null,Je=null,si=!1,cn=!1,Ta=!1,ii=0,Pn=0,rn=null,dm=0;function Ye(){throw Error(x(321))}function Gc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Nt(e[l],t[l]))return!1;return!0}function Qc(e,t,l,a,s,i){return hl=i,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,y.H=e===null||e.memoizedState===null?tu:nr,Ta=!1,i=l(a,s),Ta=!1,cn&&(i=vd(t,l,a,s)),yd(e),i}function yd(e){y.H=ls;var t=Me!==null&&Me.next!==null;if(hl=0,Je=Me=de=null,si=!1,Pn=0,rn=null,t)throw Error(x(300));e===null||$e||(e=e.dependencies,e!==null&&$s(e)&&($e=!0))}function vd(e,t,l,a){de=e;var s=0;do{if(cn&&(rn=null),Pn=0,cn=!1,25<=s)throw Error(x(301));if(s+=1,Je=Me=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}y.H=lu,i=t(l,a)}while(cn);return i}function um(){var e=y.H,t=e.useState()[0];return t=typeof t.then=="function"?es(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(de.flags|=1024),t}function Xc(){var e=ii!==0;return ii=0,e}function Vc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Zc(e){if(si){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}si=!1}hl=0,Je=Me=de=null,cn=!1,Pn=ii=0,rn=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?de.memoizedState=Je=e:Je=Je.next=e,Je}function Ze(){if(Me===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Je===null?de.memoizedState:Je.next;if(t!==null)Je=t,Me=e;else{if(e===null)throw de.alternate===null?Error(x(467)):Error(x(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Je===null?de.memoizedState=Je=e:Je=Je.next=e}return Je}function ci(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function es(e){var t=Pn;return Pn+=1,rn===null&&(rn=[]),e=dd(rn,e,t),t=de,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,y.H=t===null||t.memoizedState===null?tu:nr),e}function ri(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return es(e);if(e.$$typeof===B)return st(e)}throw Error(x(438,String(e)))}function Fc(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=de.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ci(),de.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=xt;return t.index++,l}function pl(e,t){return typeof t=="function"?t(e):t}function oi(e){var t=Ze();return Kc(t,Me,e)}function Kc(e,t,l){var a=e.queue;if(a===null)throw Error(x(311));a.lastRenderedReducer=l;var s=e.baseQueue,i=a.pending;if(i!==null){if(s!==null){var c=s.next;s.next=i.next,i.next=c}t.baseQueue=s=i,a.pending=null}if(i=e.baseState,s===null)e.memoizedState=i;else{t=s.next;var r=c=null,o=null,p=t,N=!1;do{var A=p.lane&-536870913;if(A!==p.lane?(he&A)===A:(hl&A)===A){var g=p.revertLane;if(g===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),A===tn&&(N=!0);else if((hl&g)===g){p=p.next,g===tn&&(N=!0);continue}else A={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},o===null?(r=o=A,c=i):o=o.next=A,de.lanes|=g,Wl|=g;A=p.action,Ta&&l(i,A),i=p.hasEagerState?p.eagerState:l(i,A)}else g={lane:A,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},o===null?(r=o=g,c=i):o=o.next=g,de.lanes|=A,Wl|=A;p=p.next}while(p!==null&&p!==t);if(o===null?c=i:o.next=r,!Nt(i,e.memoizedState)&&($e=!0,N&&(l=ln,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=o,a.lastRenderedState=i}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Jc(e){var t=Ze(),l=t.queue;if(l===null)throw Error(x(311));l.lastRenderedReducer=e;var a=l.dispatch,s=l.pending,i=t.memoizedState;if(s!==null){l.pending=null;var c=s=s.next;do i=e(i,c.action),c=c.next;while(c!==s);Nt(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function jd(e,t,l){var a=de,s=Ze(),i=be;if(i){if(l===void 0)throw Error(x(407));l=l()}else l=t();var c=!Nt((Me||s).memoizedState,l);if(c&&(s.memoizedState=l,$e=!0),s=s.queue,Ic(Sd.bind(null,a,s,e),[e]),s.getSnapshot!==t||c||Je!==null&&Je.memoizedState.tag&1){if(a.flags|=2048,on(9,{destroy:void 0},wd.bind(null,a,s,l,t),null),Oe===null)throw Error(x(349));i||(hl&127)!==0||Nd(a,t,l)}return l}function Nd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=ci(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function wd(e,t,l,a){t.value=l,t.getSnapshot=a,Ad(t)&&Cd(e)}function Sd(e,t,l){return l(function(){Ad(t)&&Cd(e)})}function Ad(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Nt(e,l)}catch{return!0}}function Cd(e){var t=va(e,2);t!==null&&jt(t,e,2)}function $c(e){var t=ft();if(typeof e=="function"){var l=e;if(e=l(),Ta){Jt(!0);try{l()}finally{Jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function Ed(e,t,l,a){return e.baseState=l,Kc(e,Me,typeof a=="function"?a:pl)}function fm(e,t,l,a,s){if(fi(e))throw Error(x(485));if(e=t.action,e!==null){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};y.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,kd(t,i)):(i.next=l.next,t.pending=l.next=i)}}function kd(e,t){var l=t.action,a=t.payload,s=e.state;if(t.isTransition){var i=y.T,c={};y.T=c;try{var r=l(s,a),o=y.S;o!==null&&o(c,r),Td(e,t,r)}catch(p){Wc(e,t,p)}finally{i!==null&&c.types!==null&&(i.types=c.types),y.T=i}}else try{i=l(s,a),Td(e,t,i)}catch(p){Wc(e,t,p)}}function Td(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Md(e,t,a)},function(a){return Wc(e,t,a)}):Md(e,t,l)}function Md(e,t,l){t.status="fulfilled",t.value=l,zd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,kd(e,l)))}function Wc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,zd(t),t=t.next;while(t!==a)}e.action=null}function zd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _d(e,t){return t}function Od(e,t){if(be){var l=Oe.formState;if(l!==null){e:{var a=de;if(be){if(Re){t:{for(var s=Re,i=Ut;s.nodeType!==8;){if(!i){s=null;break t}if(s=qt(s.nextSibling),s===null){s=null;break t}}i=s.data,s=i==="F!"||i==="F"?s:null}if(s){Re=qt(s.nextSibling),a=s.data==="F!";break e}}Gl(a)}a=!1}a&&(t=l[0])}}return l=ft(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:t},l.queue=a,l=Id.bind(null,de,a),a.dispatch=l,a=$c(!1),i=ar.bind(null,de,!1,a.queue),a=ft(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,l=fm.bind(null,de,s,i,l),s.dispatch=l,a.memoizedState=e,[t,l,!1]}function Dd(e){var t=Ze();return Rd(t,Me,e)}function Rd(e,t,l){if(t=Kc(e,t,_d)[0],e=oi(pl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=es(t)}catch(c){throw c===an?Ps:c}else a=t;t=Ze();var s=t.queue,i=s.dispatch;return l!==t.memoizedState&&(de.flags|=2048,on(9,{destroy:void 0},xm.bind(null,s,l),null)),[a,i,e]}function xm(e,t){e.action=t}function Ud(e){var t=Ze(),l=Me;if(l!==null)return Rd(t,l,e);Ze(),t=t.memoizedState,l=Ze();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function on(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=ci(),de.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Hd(){return Ze().memoizedState}function di(e,t,l,a){var s=ft();de.flags|=e,s.memoizedState=on(1|t,{destroy:void 0},l,a===void 0?null:a)}function ui(e,t,l,a){var s=Ze();a=a===void 0?null:a;var i=s.memoizedState.inst;Me!==null&&a!==null&&Gc(a,Me.memoizedState.deps)?s.memoizedState=on(t,i,l,a):(de.flags|=e,s.memoizedState=on(1|t,i,l,a))}function qd(e,t){di(8390656,8,e,t)}function Ic(e,t){ui(2048,8,e,t)}function mm(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=ci(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Bd(e){var t=Ze().memoizedState;return mm({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(x(440));return t.impl.apply(void 0,arguments)}}function Ld(e,t){return ui(4,2,e,t)}function Yd(e,t){return ui(4,4,e,t)}function Gd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qd(e,t,l){l=l!=null?l.concat([e]):null,ui(4,4,Gd.bind(null,t,e),l)}function Pc(){}function Xd(e,t){var l=Ze();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Gc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Vd(e,t){var l=Ze();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Gc(t,a[1]))return a[0];if(a=e(),Ta){Jt(!0);try{e()}finally{Jt(!1)}}return l.memoizedState=[a,t],a}function er(e,t,l){return l===void 0||(hl&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Zu(),de.lanes|=e,Wl|=e,l)}function Zd(e,t,l,a){return Nt(l,t)?l:sn.current!==null?(e=er(e,l,a),Nt(e,t)||($e=!0),e):(hl&42)===0||(hl&1073741824)!==0&&(he&261930)===0?($e=!0,e.memoizedState=l):(e=Zu(),de.lanes|=e,Wl|=e,t)}function Fd(e,t,l,a,s){var i=M.p;M.p=i!==0&&8>i?i:8;var c=y.T,r={};y.T=r,ar(e,!1,t,l);try{var o=s(),p=y.S;if(p!==null&&p(r,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var N=om(o,a);ts(e,t,N,kt(e))}else ts(e,t,a,kt(e))}catch(A){ts(e,t,{then:function(){},status:"rejected",reason:A},kt())}finally{M.p=i,c!==null&&r.types!==null&&(c.types=r.types),y.T=c}}function hm(){}function tr(e,t,l,a){if(e.tag!==5)throw Error(x(476));var s=Kd(e).queue;Fd(e,s,t,J,l===null?hm:function(){return Jd(e),l(a)})}function Kd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:J},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jd(e){var t=Kd(e);t.next===null&&(t=e.alternate.memoizedState),ts(e,t.next.queue,{},kt())}function lr(){return st(bs)}function $d(){return Ze().memoizedState}function Wd(){return Ze().memoizedState}function pm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=kt();e=Vl(l);var a=Zl(t,e,l);a!==null&&(jt(a,t,l),$n(a,t,l)),t={cache:zc()},e.payload=t;return}t=t.return}}function gm(e,t,l){var a=kt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fi(e)?Pd(t,l):(l=vc(e,t,l,a),l!==null&&(jt(l,e,a),eu(l,t,a)))}function Id(e,t,l){var a=kt();ts(e,t,l,a)}function ts(e,t,l,a){var s={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(fi(e))Pd(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,r=i(c,l);if(s.hasEagerState=!0,s.eagerState=r,Nt(r,c))return Zs(e,t,s,0),Oe===null&&Vs(),!1}catch{}finally{}if(l=vc(e,t,s,a),l!==null)return jt(l,e,a),eu(l,t,a),!0}return!1}function ar(e,t,l,a){if(a={lane:2,revertLane:Rr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fi(e)){if(t)throw Error(x(479))}else t=vc(e,l,a,2),t!==null&&jt(t,e,2)}function fi(e){var t=e.alternate;return e===de||t!==null&&t===de}function Pd(e,t){cn=si=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function eu(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ua(e,l)}}var ls={readContext:st,use:ri,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ls.useEffectEvent=Ye;var tu={readContext:st,use:ri,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:qd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,di(4194308,4,Gd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return di(4194308,4,e,t)},useInsertionEffect:function(e,t){di(4,2,e,t)},useMemo:function(e,t){var l=ft();t=t===void 0?null:t;var a=e();if(Ta){Jt(!0);try{e()}finally{Jt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ft();if(l!==void 0){var s=l(t);if(Ta){Jt(!0);try{l(t)}finally{Jt(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=gm.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=$c(e);var t=e.queue,l=Id.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Pc,useDeferredValue:function(e,t){var l=ft();return er(l,e,t)},useTransition:function(){var e=$c(!1);return e=Fd.bind(null,de,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,s=ft();if(be){if(l===void 0)throw Error(x(407));l=l()}else{if(l=t(),Oe===null)throw Error(x(349));(he&127)!==0||Nd(a,t,l)}s.memoizedState=l;var i={value:l,getSnapshot:t};return s.queue=i,qd(Sd.bind(null,a,i,e),[e]),a.flags|=2048,on(9,{destroy:void 0},wd.bind(null,a,i,l,t),null),l},useId:function(){var e=ft(),t=Oe.identifierPrefix;if(be){var l=Pt,a=It;l=(a&~(1<<32-Pe(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=ii++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=dm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:lr,useFormState:Od,useActionState:Od,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ar.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:Fc,useCacheRefresh:function(){return ft().memoizedState=pm.bind(null,de)},useEffectEvent:function(e){var t=ft(),l={impl:e};return t.memoizedState=l,function(){if((we&2)!==0)throw Error(x(440));return l.impl.apply(void 0,arguments)}}},nr={readContext:st,use:ri,useCallback:Xd,useContext:st,useEffect:Ic,useImperativeHandle:Qd,useInsertionEffect:Ld,useLayoutEffect:Yd,useMemo:Vd,useReducer:oi,useRef:Hd,useState:function(){return oi(pl)},useDebugValue:Pc,useDeferredValue:function(e,t){var l=Ze();return Zd(l,Me.memoizedState,e,t)},useTransition:function(){var e=oi(pl)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:es(e),t]},useSyncExternalStore:jd,useId:$d,useHostTransitionStatus:lr,useFormState:Dd,useActionState:Dd,useOptimistic:function(e,t){var l=Ze();return Ed(l,Me,e,t)},useMemoCache:Fc,useCacheRefresh:Wd};nr.useEffectEvent=Bd;var lu={readContext:st,use:ri,useCallback:Xd,useContext:st,useEffect:Ic,useImperativeHandle:Qd,useInsertionEffect:Ld,useLayoutEffect:Yd,useMemo:Vd,useReducer:Jc,useRef:Hd,useState:function(){return Jc(pl)},useDebugValue:Pc,useDeferredValue:function(e,t){var l=Ze();return Me===null?er(l,e,t):Zd(l,Me.memoizedState,e,t)},useTransition:function(){var e=Jc(pl)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:es(e),t]},useSyncExternalStore:jd,useId:$d,useHostTransitionStatus:lr,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,t){var l=Ze();return Me!==null?Ed(l,Me,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Fc,useCacheRefresh:Wd};lu.useEffectEvent=Bd;function sr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:D({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ir={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=kt(),s=Vl(a);s.payload=t,l!=null&&(s.callback=l),t=Zl(e,s,a),t!==null&&(jt(t,e,a),$n(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=kt(),s=Vl(a);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=Zl(e,s,a),t!==null&&(jt(t,e,a),$n(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=kt(),a=Vl(l);a.tag=2,t!=null&&(a.callback=t),t=Zl(e,a,l),t!==null&&(jt(t,e,l),$n(t,e,l))}};function au(e,t,l,a,s,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!Gn(l,a)||!Gn(s,i):!0}function nu(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&ir.enqueueReplaceState(t,t.state,null)}function Ma(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=D({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function su(e){Xs(e)}function iu(e){console.error(e)}function cu(e){Xs(e)}function xi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ru(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function cr(e,t,l){return l=Vl(l),l.tag=3,l.payload={element:null},l.callback=function(){xi(e,t)},l}function ou(e){return e=Vl(e),e.tag=3,e}function du(e,t,l,a){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var i=a.value;e.payload=function(){return s(i)},e.callback=function(){ru(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){ru(t,l,a),typeof s!="function"&&(Il===null?Il=new Set([this]):Il.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function bm(e,t,l,a,s){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&en(t,l,s,!0),l=St.current,l!==null){switch(l.tag){case 31:case 13:return Ht===null?Ai():l.alternate===null&&Ge===0&&(Ge=3),l.flags&=-257,l.flags|=65536,l.lanes=s,a===ei?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),_r(e,a,s)),!1;case 22:return l.flags|=65536,a===ei?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),_r(e,a,s)),!1}throw Error(x(435,l.tag))}return _r(e,a,s),Ai(),!1}if(be)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Cc&&(e=Error(x(422),{cause:a}),Vn(Ot(e,l)))):(a!==Cc&&(t=Error(x(423),{cause:a}),Vn(Ot(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Ot(a,l),s=cr(e.stateNode,a,s),Hc(e,s),Ge!==4&&(Ge=2)),!1;var i=Error(x(520),{cause:a});if(i=Ot(i,l),ds===null?ds=[i]:ds.push(i),Ge!==4&&(Ge=2),t===null)return!0;a=Ot(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=cr(l.stateNode,a,e),Hc(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Il===null||!Il.has(i))))return l.flags|=65536,s&=-s,l.lanes|=s,s=ou(s),du(s,e,l,a),Hc(l,s),!1}l=l.return}while(l!==null);return!1}var rr=Error(x(461)),$e=!1;function it(e,t,l,a){t.child=e===null?md(t,null,l,a):ka(t,e.child,l,a)}function uu(e,t,l,a,s){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var r in a)r!=="ref"&&(c[r]=a[r])}else c=a;return Sa(t),a=Qc(e,t,l,c,i,s),r=Xc(),e!==null&&!$e?(Vc(e,t,s),gl(e,t,s)):(be&&r&&Sc(t),t.flags|=1,it(e,t,a,s),t.child)}function fu(e,t,l,a,s){if(e===null){var i=l.type;return typeof i=="function"&&!jc(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,xu(e,t,i,a,s)):(e=Ks(l.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!pr(e,s)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:Gn,l(c,a)&&e.ref===t.ref)return gl(e,t,s)}return t.flags|=1,e=ul(i,a),e.ref=t.ref,e.return=t,t.child=e}function xu(e,t,l,a,s){if(e!==null){var i=e.memoizedProps;if(Gn(i,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=i,pr(e,s))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,gl(e,t,s)}return or(e,t,l,a,s)}function mu(e,t,l,a){var s=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~i}else a=0,t.child=null;return hu(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Is(t,i!==null?i.cachePool:null),i!==null?gd(t,i):Bc(),bd(t);else return a=t.lanes=536870912,hu(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Is(t,i.cachePool),gd(t,i),Kl(),t.memoizedState=null):(e!==null&&Is(t,null),Bc(),Kl());return it(e,t,s,l),t.child}function as(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hu(e,t,l,a,s){var i=Oc();return i=i===null?null:{parent:Ke._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Is(t,null),Bc(),bd(t),e!==null&&en(e,t,a,!0),t.childLanes=s,null}function mi(e,t){return t=pi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pu(e,t,l){return ka(t,e.child,null,l),e=mi(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function ym(e,t,l){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(a.mode==="hidden")return e=mi(t,a),t.lanes=536870912,as(null,e);if(Yc(t),(e=Re)?(e=Tf(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ll!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},l=Po(e),l.return=t,t.child=l,nt=t,Re=null)):e=null,e===null)throw Gl(t);return t.lanes=536870912,null}return mi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Yc(t),s)if(t.flags&256)t.flags&=-257,t=pu(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(x(558));else if($e||en(e,t,l,!1),s=(l&e.childLanes)!==0,$e||s){if(a=Oe,a!==null&&(c=Mn(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,va(e,c),jt(a,e,c),rr;Ai(),t=pu(e,t,l)}else e=i.treeContext,Re=qt(c.nextSibling),nt=t,be=!0,Yl=null,Ut=!1,e!==null&&ld(t,e),t=mi(t,a),t.flags|=4096;return t}return e=ul(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(x(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function or(e,t,l,a,s){return Sa(t),l=Qc(e,t,l,a,void 0,s),a=Xc(),e!==null&&!$e?(Vc(e,t,s),gl(e,t,s)):(be&&a&&Sc(t),t.flags|=1,it(e,t,l,s),t.child)}function gu(e,t,l,a,s,i){return Sa(t),t.updateQueue=null,l=vd(t,a,l,s),yd(e),a=Xc(),e!==null&&!$e?(Vc(e,t,i),gl(e,t,i)):(be&&a&&Sc(t),t.flags|=1,it(e,t,l,i),t.child)}function bu(e,t,l,a,s){if(Sa(t),t.stateNode===null){var i=$a,c=l.contextType;typeof c=="object"&&c!==null&&(i=st(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ir,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Rc(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?st(c):$a,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(sr(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&ir.enqueueReplaceState(i,i.state,null),In(t,a,i,s),Wn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var r=t.memoizedProps,o=Ma(l,r);i.props=o;var p=i.context,N=l.contextType;c=$a,typeof N=="object"&&N!==null&&(c=st(N));var A=l.getDerivedStateFromProps;N=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,N||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||p!==c)&&nu(t,i,a,c),Xl=!1;var g=t.memoizedState;i.state=g,In(t,a,i,s),Wn(),p=t.memoizedState,r||g!==p||Xl?(typeof A=="function"&&(sr(t,l,A,a),p=t.memoizedState),(o=Xl||au(t,l,o,a,g,p,c))?(N||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=p),i.props=a,i.state=p,i.context=c,a=o):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Uc(e,t),c=t.memoizedProps,N=Ma(l,c),i.props=N,A=t.pendingProps,g=i.context,p=l.contextType,o=$a,typeof p=="object"&&p!==null&&(o=st(p)),r=l.getDerivedStateFromProps,(p=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==A||g!==o)&&nu(t,i,a,o),Xl=!1,g=t.memoizedState,i.state=g,In(t,a,i,s),Wn();var v=t.memoizedState;c!==A||g!==v||Xl||e!==null&&e.dependencies!==null&&$s(e.dependencies)?(typeof r=="function"&&(sr(t,l,r,a),v=t.memoizedState),(N=Xl||au(t,l,N,a,g,v,o)||e!==null&&e.dependencies!==null&&$s(e.dependencies))?(p||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,v,o),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,v,o)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=v),i.props=a,i.state=v,i.context=o,a=N):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,hi(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=ka(t,e.child,null,s),t.child=ka(t,null,l,s)):it(e,t,l,s),t.memoizedState=i.state,e=t.child):e=gl(e,t,s),e}function yu(e,t,l,a){return Na(),t.flags|=256,it(e,t,l,a),t.child}var dr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ur(e){return{baseLanes:e,cachePool:rd()}}function fr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Et),e}function vu(e,t,l){var a=t.pendingProps,s=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),c&&(s=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(s?Fl(t):Kl(),(e=Re)?(e=Tf(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ll!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},l=Po(e),l.return=t,t.child=l,nt=t,Re=null)):e=null,e===null)throw Gl(t);return Kr(e)?t.lanes=32:t.lanes=536870912,null}var r=a.children;return a=a.fallback,s?(Kl(),s=t.mode,r=pi({mode:"hidden",children:r},s),a=ja(a,s,l,null),r.return=t,a.return=t,r.sibling=a,t.child=r,a=t.child,a.memoizedState=ur(l),a.childLanes=fr(e,c,l),t.memoizedState=dr,as(null,a)):(Fl(t),xr(t,r))}var o=e.memoizedState;if(o!==null&&(r=o.dehydrated,r!==null)){if(i)t.flags&256?(Fl(t),t.flags&=-257,t=mr(e,t,l)):t.memoizedState!==null?(Kl(),t.child=e.child,t.flags|=128,t=null):(Kl(),r=a.fallback,s=t.mode,a=pi({mode:"visible",children:a.children},s),r=ja(r,s,l,null),r.flags|=2,a.return=t,r.return=t,a.sibling=r,t.child=a,ka(t,e.child,null,l),a=t.child,a.memoizedState=ur(l),a.childLanes=fr(e,c,l),t.memoizedState=dr,t=as(null,a));else if(Fl(t),Kr(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var p=c.dgst;c=p,a=Error(x(419)),a.stack="",a.digest=c,Vn({value:a,source:null,stack:null}),t=mr(e,t,l)}else if($e||en(e,t,l,!1),c=(l&e.childLanes)!==0,$e||c){if(c=Oe,c!==null&&(a=Mn(c,l),a!==0&&a!==o.retryLane))throw o.retryLane=a,va(e,a),jt(c,e,a),rr;Fr(r)||Ai(),t=mr(e,t,l)}else Fr(r)?(t.flags|=192,t.child=e.child,t=null):(e=o.treeContext,Re=qt(r.nextSibling),nt=t,be=!0,Yl=null,Ut=!1,e!==null&&ld(t,e),t=xr(t,a.children),t.flags|=4096);return t}return s?(Kl(),r=a.fallback,s=t.mode,o=e.child,p=o.sibling,a=ul(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&65011712,p!==null?r=ul(p,r):(r=ja(r,s,l,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,as(null,a),a=t.child,r=e.child.memoizedState,r===null?r=ur(l):(s=r.cachePool,s!==null?(o=Ke._currentValue,s=s.parent!==o?{parent:o,pool:o}:s):s=rd(),r={baseLanes:r.baseLanes|l,cachePool:s}),a.memoizedState=r,a.childLanes=fr(e,c,l),t.memoizedState=dr,as(e.child,a)):(Fl(t),l=e.child,e=l.sibling,l=ul(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function xr(e,t){return t=pi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function pi(e,t){return e=wt(22,e,null,t),e.lanes=0,e}function mr(e,t,l){return ka(t,e.child,null,l),e=xr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ju(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Tc(e.return,t,l)}function hr(e,t,l,a,s,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:s,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=s,c.treeForkCount=i)}function Nu(e,t,l){var a=t.pendingProps,s=a.revealOrder,i=a.tail;a=a.children;var c=Ve.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,O(Ve,c),it(e,t,a,l),a=be?Xn:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ju(e,l,t);else if(e.tag===19)ju(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&ni(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),hr(t,!1,s,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&ni(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}hr(t,!0,l,null,i,a);break;case"together":hr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function gl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Wl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(en(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,l=ul(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ul(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function pr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&$s(e)))}function vm(e,t,l){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),Ql(t,Ke,e.memoizedState.cache),Na();break;case 27:case 5:Tt(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:Ql(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Fl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?vu(e,t,l):(Fl(t),e=gl(e,t,l),e!==null?e.sibling:null);Fl(t);break;case 19:var s=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(en(e,t,l,!1),a=(l&t.childLanes)!==0),s){if(a)return Nu(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),O(Ve,Ve.current),a)break;return null;case 22:return t.lanes=0,mu(e,t,l,t.pendingProps);case 24:Ql(t,Ke,e.memoizedState.cache)}return gl(e,t,l)}function wu(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!pr(e,l)&&(t.flags&128)===0)return $e=!1,vm(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,be&&(t.flags&1048576)!==0&&td(t,Xn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e=="function")jc(e)?(a=Ma(e,a),t.tag=1,t=bu(null,t,e,a,l)):(t.tag=0,t=or(null,t,e,a,l));else{if(e!=null){var s=e.$$typeof;if(s===ee){t.tag=11,t=uu(null,t,e,a,l);break e}else if(s===ae){t.tag=14,t=fu(null,t,e,a,l);break e}}throw t=k(e)||e,Error(x(306,t,""))}}return t;case 0:return or(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,s=Ma(a,t.pendingProps),bu(e,t,a,s,l);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error(x(387));a=t.pendingProps;var i=t.memoizedState;s=i.element,Uc(e,t),In(t,a,null,l);var c=t.memoizedState;if(a=c.cache,Ql(t,Ke,a),a!==i.cache&&Mc(t,[Ke],l,!0),Wn(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=yu(e,t,a,l);break e}else if(a!==s){s=Ot(Error(x(424)),t),Vn(s),t=yu(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Re=qt(e.firstChild),nt=t,be=!0,Yl=null,Ut=!0,l=md(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Na(),a===s){t=gl(e,t,l);break e}it(e,t,a,l)}t=t.child}return t;case 26:return hi(e,t),e===null?(l=Rf(t.type,null,t.pendingProps,null))?t.memoizedState=l:be||(l=t.type,e=t.pendingProps,a=_i(oe.current).createElement(l),a[et]=t,a[Fe]=e,ct(a,l,e),Xe(a),t.stateNode=a):t.memoizedState=Rf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Tt(t),e===null&&be&&(a=t.stateNode=_f(t.type,t.pendingProps,oe.current),nt=t,Ut=!0,s=Re,la(t.type)?(Jr=s,Re=qt(a.firstChild)):Re=s),it(e,t,t.pendingProps.children,l),hi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((s=a=Re)&&(a=$m(a,t.type,t.pendingProps,Ut),a!==null?(t.stateNode=a,nt=t,Re=qt(a.firstChild),Ut=!1,s=!0):s=!1),s||Gl(t)),Tt(t),s=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Xr(s,i)?a=null:c!==null&&Xr(s,c)&&(t.flags|=32),t.memoizedState!==null&&(s=Qc(e,t,um,null,null,l),bs._currentValue=s),hi(e,t),it(e,t,a,l),t.child;case 6:return e===null&&be&&((e=l=Re)&&(l=Wm(l,t.pendingProps,Ut),l!==null?(t.stateNode=l,nt=t,Re=null,e=!0):e=!1),e||Gl(t)),null;case 13:return vu(e,t,l);case 4:return Be(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ka(t,null,a,l):it(e,t,a,l),t.child;case 11:return uu(e,t,t.type,t.pendingProps,l);case 7:return it(e,t,t.pendingProps,l),t.child;case 8:return it(e,t,t.pendingProps.children,l),t.child;case 12:return it(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Ql(t,t.type,a.value),it(e,t,a.children,l),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Sa(t),s=st(s),a=a(s),t.flags|=1,it(e,t,a,l),t.child;case 14:return fu(e,t,t.type,t.pendingProps,l);case 15:return xu(e,t,t.type,t.pendingProps,l);case 19:return Nu(e,t,l);case 31:return ym(e,t,l);case 22:return mu(e,t,l,t.pendingProps);case 24:return Sa(t),a=st(Ke),e===null?(s=Oc(),s===null&&(s=Oe,i=zc(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=l),s=i),t.memoizedState={parent:a,cache:s},Rc(t),Ql(t,Ke,s)):((e.lanes&l)!==0&&(Uc(e,t),In(t,null,null,l),Wn()),s=e.memoizedState,i=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Ql(t,Ke,a)):(a=i.cache,Ql(t,Ke,a),a!==s.cache&&Mc(t,[Ke],l,!0))),it(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(x(156,t.tag))}function bl(e){e.flags|=4}function gr(e,t,l,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if($u())e.flags|=8192;else throw Ea=ei,Dc}else e.flags&=-16777217}function Su(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lf(t))if($u())e.flags|=8192;else throw Ea=ei,Dc}function gi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?En():536870912,e.lanes|=t,xn|=t)}function ns(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function jm(e,t,l){var a=t.pendingProps;switch(Ac(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ml(Ke),Te(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Pa(t)?bl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ec())),Ue(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(bl(t),i!==null?(Ue(t),Su(t,i)):(Ue(t),gr(t,s,null,a,l))):i?i!==e.memoizedState?(bl(t),Ue(t),Su(t,i)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&bl(t),Ue(t),gr(t,s,e,a,l)),null;case 27:if(al(t),l=oe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(!a){if(t.stateNode===null)throw Error(x(166));return Ue(t),null}e=Q.current,Pa(t)?ad(t):(e=_f(s,a,l),t.stateNode=e,bl(t))}return Ue(t),null;case 5:if(al(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(!a){if(t.stateNode===null)throw Error(x(166));return Ue(t),null}if(i=Q.current,Pa(t))ad(t);else{var c=_i(oe.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(s,{is:a.is}):c.createElement(s)}}i[et]=t,i[Fe]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(ct(i,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&bl(t)}}return Ue(t),gr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&bl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(x(166));if(e=oe.current,Pa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,s=nt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jf(e.nodeValue,l)),e||Gl(t,!0)}else e=_i(e).createTextNode(a),e[et]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Pa(t),l!==null){if(e===null){if(!a)throw Error(x(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(557));e[et]=t}else Na(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=Ec(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(x(558))}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Pa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(x(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(x(317));s[et]=t}else Na(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else s=Ec(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==s&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),gi(t,t.updateQueue),Ue(t),null);case 4:return Te(),e===null&&Br(t.stateNode.containerInfo),Ue(t),null;case 10:return ml(t.type),Ue(t),null;case 19:if(j(Ve),a=t.memoizedState,a===null)return Ue(t),null;if(s=(t.flags&128)!==0,i=a.rendering,i===null)if(s)ns(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ni(e),i!==null){for(t.flags|=128,ns(a,!1),e=i.updateQueue,t.updateQueue=e,gi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Io(l,e),l=l.sibling;return O(Ve,Ve.current&1|2),be&&fl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&rt()>Ni&&(t.flags|=128,s=!0,ns(a,!1),t.lanes=4194304)}else{if(!s)if(e=ni(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,gi(t,e),ns(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!be)return Ue(t),null}else 2*rt()-a.renderingStartTime>Ni&&l!==536870912&&(t.flags|=128,s=!0,ns(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=rt(),e.sibling=null,l=Ve.current,O(Ve,s?l&1|2:l&1),be&&fl(t,a.treeForkCount),e):(Ue(t),null);case 22:case 23:return At(t),Lc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&gi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&j(Aa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ml(Ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(x(156,t.tag))}function Nm(e,t){switch(Ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ml(Ke),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return al(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(x(340));Na()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));Na()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Ve),null;case 4:return Te(),null;case 10:return ml(t.type),null;case 22:case 23:return At(t),Lc(),e!==null&&j(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ml(Ke),null;case 25:return null;default:return null}}function Au(e,t){switch(Ac(t),t.tag){case 3:ml(Ke),Te();break;case 26:case 27:case 5:al(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:j(Ve);break;case 10:ml(t.type);break;case 22:case 23:At(t),Lc(),e!==null&&j(Aa);break;case 24:ml(Ke)}}function ss(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var s=a.next;l=s;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==s)}}catch(r){ke(t,t.return,r)}}function Jl(e,t,l){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var i=s.next;a=i;do{if((a.tag&e)===e){var c=a.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,s=t;var o=l,p=r;try{p()}catch(N){ke(s,o,N)}}}a=a.next}while(a!==i)}}catch(N){ke(t,t.return,N)}}function Cu(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{pd(t,l)}catch(a){ke(e,e.return,a)}}}function Eu(e,t,l){l.props=Ma(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ke(e,t,a)}}function is(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(s){ke(e,t,s)}}function el(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(s){ke(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){ke(e,t,s)}else l.current=null}function ku(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(s){ke(e,e.return,s)}}function br(e,t,l){try{var a=e.stateNode;Xm(a,e.type,l,t),a[Fe]=t}catch(s){ke(e,e.return,s)}}function Tu(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&la(e.type)||e.tag===4}function yr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&la(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ol));else if(a!==4&&(a===27&&la(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(vr(e,t,l),e=e.sibling;e!==null;)vr(e,t,l),e=e.sibling}function bi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&la(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(bi(e,t,l),e=e.sibling;e!==null;)bi(e,t,l),e=e.sibling}function Mu(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ct(t,a,l),t[et]=e,t[Fe]=l}catch(i){ke(e,e.return,i)}}var yl=!1,We=!1,jr=!1,zu=typeof WeakSet=="function"?WeakSet:Set,lt=null;function wm(e,t){if(e=e.containerInfo,Gr=Bi,e=Qo(e),mc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var s=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,r=-1,o=-1,p=0,N=0,A=e,g=null;t:for(;;){for(var v;A!==l||s!==0&&A.nodeType!==3||(r=c+s),A!==i||a!==0&&A.nodeType!==3||(o=c+a),A.nodeType===3&&(c+=A.nodeValue.length),(v=A.firstChild)!==null;)g=A,A=v;for(;;){if(A===e)break t;if(g===l&&++p===s&&(r=c),g===i&&++N===a&&(o=c),(v=A.nextSibling)!==null)break;A=g,g=A.parentNode}A=v}l=r===-1||o===-1?null:{start:r,end:o}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qr={focusedElem:e,selectionRange:l},Bi=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,s=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var X=Ma(l.type,s);e=a.getSnapshotBeforeUpdate(X,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){ke(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Zr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(x(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function _u(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:jl(e,l),a&4&&ss(5,l);break;case 1:if(jl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){ke(l,l.return,c)}else{var s=Ma(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){ke(l,l.return,c)}}a&64&&Cu(l),a&512&&is(l,l.return);break;case 3:if(jl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{pd(e,t)}catch(c){ke(l,l.return,c)}}break;case 27:t===null&&a&4&&Mu(l);case 26:case 5:jl(e,l),t===null&&a&4&&ku(l),a&512&&is(l,l.return);break;case 12:jl(e,l);break;case 31:jl(e,l),a&4&&Ru(e,l);break;case 13:jl(e,l),a&4&&Uu(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=_m.bind(null,l),Im(e,l))));break;case 22:if(a=l.memoizedState!==null||yl,!a){t=t!==null&&t.memoizedState!==null||We,s=yl;var i=We;yl=a,(We=t)&&!i?Nl(e,l,(l.subtreeFlags&8772)!==0):jl(e,l),yl=s,We=i}break;case 30:break;default:jl(e,l)}}function Ou(e){var t=e.alternate;t!==null&&(e.alternate=null,Ou(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Dl(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,gt=!1;function vl(e,t,l){for(l=l.child;l!==null;)Du(e,t,l),l=l.sibling}function Du(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(sl,l)}catch{}switch(l.tag){case 26:We||el(l,t),vl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||el(l,t);var a=qe,s=gt;la(l.type)&&(qe=l.stateNode,gt=!1),vl(e,t,l),hs(l.stateNode),qe=a,gt=s;break;case 5:We||el(l,t);case 6:if(a=qe,s=gt,qe=null,vl(e,t,l),qe=a,gt=s,qe!==null)if(gt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(l.stateNode)}catch(i){ke(l,t,i)}else try{qe.removeChild(l.stateNode)}catch(i){ke(l,t,i)}break;case 18:qe!==null&&(gt?(e=qe,Ef(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),jn(e)):Ef(qe,l.stateNode));break;case 4:a=qe,s=gt,qe=l.stateNode.containerInfo,gt=!0,vl(e,t,l),qe=a,gt=s;break;case 0:case 11:case 14:case 15:Jl(2,l,t),We||Jl(4,l,t),vl(e,t,l);break;case 1:We||(el(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Eu(l,t,a)),vl(e,t,l);break;case 21:vl(e,t,l);break;case 22:We=(a=We)||l.memoizedState!==null,vl(e,t,l),We=a;break;default:vl(e,t,l)}}function Ru(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{jn(e)}catch(l){ke(t,t.return,l)}}}function Uu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jn(e)}catch(l){ke(t,t.return,l)}}function Sm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zu),t;default:throw Error(x(435,e.tag))}}function yi(e,t){var l=Sm(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var s=Om.bind(null,e,a);a.then(s,s)}})}function bt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var s=l[a],i=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(la(r.type)){qe=r.stateNode,gt=!1;break e}break;case 5:qe=r.stateNode,gt=!1;break e;case 3:case 4:qe=r.stateNode.containerInfo,gt=!0;break e}r=r.return}if(qe===null)throw Error(x(160));Du(i,c,s),qe=null,gt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hu(t,e),t=t.sibling}var Vt=null;function Hu(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),yt(e),a&4&&(Jl(3,e,e.return),ss(3,e),Jl(5,e,e.return));break;case 1:bt(t,e),yt(e),a&512&&(We||l===null||el(l,l.return)),a&64&&yl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var s=Vt;if(bt(t,e),yt(e),a&512&&(We||l===null||el(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":i=s.getElementsByTagName("title")[0],(!i||i[Gt]||i[et]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(a),s.head.insertBefore(i,s.querySelector("head > title"))),ct(i,a,l),i[et]=e,Xe(i),a=i;break e;case"link":var c=qf("link","href",s).get(a+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(i=c[r],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(r,1);break t}}i=s.createElement(a),ct(i,a,l),s.head.appendChild(i);break;case"meta":if(c=qf("meta","content",s).get(a+(l.content||""))){for(r=0;r<c.length;r++)if(i=c[r],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(r,1);break t}}i=s.createElement(a),ct(i,a,l),s.head.appendChild(i);break;default:throw Error(x(468,a))}i[et]=e,Xe(i),a=i}e.stateNode=a}else Bf(s,e.type,e.stateNode);else e.stateNode=Hf(s,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Bf(s,e.type,e.stateNode):Hf(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&br(e,e.memoizedProps,l.memoizedProps)}break;case 27:bt(t,e),yt(e),a&512&&(We||l===null||el(l,l.return)),l!==null&&a&4&&br(e,e.memoizedProps,l.memoizedProps);break;case 5:if(bt(t,e),yt(e),a&512&&(We||l===null||el(l,l.return)),e.flags&32){s=e.stateNode;try{Y(s,"")}catch(X){ke(e,e.return,X)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,br(e,s,l!==null?l.memoizedProps:s)),a&1024&&(jr=!0);break;case 6:if(bt(t,e),yt(e),a&4){if(e.stateNode===null)throw Error(x(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(X){ke(e,e.return,X)}}break;case 3:if(Ri=null,s=Vt,Vt=Oi(t.containerInfo),bt(t,e),Vt=s,yt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{jn(t.containerInfo)}catch(X){ke(e,e.return,X)}jr&&(jr=!1,qu(e));break;case 4:a=Vt,Vt=Oi(e.stateNode.containerInfo),bt(t,e),yt(e),Vt=a;break;case 12:bt(t,e),yt(e);break;case 31:bt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,yi(e,a)));break;case 13:bt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ji=rt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,yi(e,a)));break;case 22:s=e.memoizedState!==null;var o=l!==null&&l.memoizedState!==null,p=yl,N=We;if(yl=p||s,We=N||o,bt(t,e),We=N,yl=p,yt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||o||yl||We||za(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){o=l=t;try{if(i=o.stateNode,s)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=o.stateNode;var A=o.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null;r.style.display=g==null||typeof g=="boolean"?"":(""+g).trim()}}catch(X){ke(o,o.return,X)}}}else if(t.tag===6){if(l===null){o=t;try{o.stateNode.nodeValue=s?"":o.memoizedProps}catch(X){ke(o,o.return,X)}}}else if(t.tag===18){if(l===null){o=t;try{var v=o.stateNode;s?kf(v,!0):kf(o.stateNode,!1)}catch(X){ke(o,o.return,X)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,yi(e,l))));break;case 19:bt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,yi(e,a)));break;case 30:break;case 21:break;default:bt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Tu(a)){l=a;break}a=a.return}if(l==null)throw Error(x(160));switch(l.tag){case 27:var s=l.stateNode,i=yr(e);bi(e,i,s);break;case 5:var c=l.stateNode;l.flags&32&&(Y(c,""),l.flags&=-33);var r=yr(e);bi(e,r,c);break;case 3:case 4:var o=l.stateNode.containerInfo,p=yr(e);vr(e,p,o);break;default:throw Error(x(161))}}catch(N){ke(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qu(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_u(e,t.alternate,t),t=t.sibling}function za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jl(4,t,t.return),za(t);break;case 1:el(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Eu(t,t.return,l),za(t);break;case 27:hs(t.stateNode);case 26:case 5:el(t,t.return),za(t);break;case 22:t.memoizedState===null&&za(t);break;case 30:za(t);break;default:za(t)}e=e.sibling}}function Nl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:Nl(s,i,l),ss(4,i);break;case 1:if(Nl(s,i,l),a=i,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(p){ke(a,a.return,p)}if(a=i,s=a.updateQueue,s!==null){var r=a.stateNode;try{var o=s.shared.hiddenCallbacks;if(o!==null)for(s.shared.hiddenCallbacks=null,s=0;s<o.length;s++)hd(o[s],r)}catch(p){ke(a,a.return,p)}}l&&c&64&&Cu(i),is(i,i.return);break;case 27:Mu(i);case 26:case 5:Nl(s,i,l),l&&a===null&&c&4&&ku(i),is(i,i.return);break;case 12:Nl(s,i,l);break;case 31:Nl(s,i,l),l&&c&4&&Ru(s,i);break;case 13:Nl(s,i,l),l&&c&4&&Uu(s,i);break;case 22:i.memoizedState===null&&Nl(s,i,l),is(i,i.return);break;case 30:break;default:Nl(s,i,l)}t=t.sibling}}function Nr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Zn(l))}function wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zn(e))}function Zt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bu(e,t,l,a),t=t.sibling}function Bu(e,t,l,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,l,a),s&2048&&ss(9,t);break;case 1:Zt(e,t,l,a);break;case 3:Zt(e,t,l,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zn(e)));break;case 12:if(s&2048){Zt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,r=i.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(o){ke(t,t.return,o)}}else Zt(e,t,l,a);break;case 31:Zt(e,t,l,a);break;case 13:Zt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Zt(e,t,l,a):cs(e,t):i._visibility&2?Zt(e,t,l,a):(i._visibility|=2,dn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Nr(c,t);break;case 24:Zt(e,t,l,a),s&2048&&wr(t.alternate,t);break;default:Zt(e,t,l,a)}}function dn(e,t,l,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,r=l,o=a,p=c.flags;switch(c.tag){case 0:case 11:case 15:dn(i,c,r,o,s),ss(8,c);break;case 23:break;case 22:var N=c.stateNode;c.memoizedState!==null?N._visibility&2?dn(i,c,r,o,s):cs(i,c):(N._visibility|=2,dn(i,c,r,o,s)),s&&p&2048&&Nr(c.alternate,c);break;case 24:dn(i,c,r,o,s),s&&p&2048&&wr(c.alternate,c);break;default:dn(i,c,r,o,s)}t=t.sibling}}function cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,s=a.flags;switch(a.tag){case 22:cs(l,a),s&2048&&Nr(a.alternate,a);break;case 24:cs(l,a),s&2048&&wr(a.alternate,a);break;default:cs(l,a)}t=t.sibling}}var rs=8192;function un(e,t,l){if(e.subtreeFlags&rs)for(e=e.child;e!==null;)Lu(e,t,l),e=e.sibling}function Lu(e,t,l){switch(e.tag){case 26:un(e,t,l),e.flags&rs&&e.memoizedState!==null&&dh(l,Vt,e.memoizedState,e.memoizedProps);break;case 5:un(e,t,l);break;case 3:case 4:var a=Vt;Vt=Oi(e.stateNode.containerInfo),un(e,t,l),Vt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=rs,rs=16777216,un(e,t,l),rs=a):un(e,t,l));break;default:un(e,t,l)}}function Yu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function os(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];lt=a,Qu(a,e)}Yu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gu(e),e=e.sibling}function Gu(e){switch(e.tag){case 0:case 11:case 15:os(e),e.flags&2048&&Jl(9,e,e.return);break;case 3:os(e);break;case 12:os(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vi(e)):os(e);break;default:os(e)}}function vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];lt=a,Qu(a,e)}Yu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jl(8,t,t.return),vi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,vi(t));break;default:vi(t)}e=e.sibling}}function Qu(e,t){for(;lt!==null;){var l=lt;switch(l.tag){case 0:case 11:case 15:Jl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Zn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,lt=a;else e:for(l=e;lt!==null;){a=lt;var s=a.sibling,i=a.return;if(Ou(a),a===l){lt=null;break e}if(s!==null){s.return=i,lt=s;break e}lt=i}}}var Am={getCacheForType:function(e){var t=st(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return st(Ke).controller.signal}},Cm=typeof WeakMap=="function"?WeakMap:Map,we=0,Oe=null,fe=null,he=0,Ee=0,Ct=null,$l=!1,fn=!1,Sr=!1,wl=0,Ge=0,Wl=0,_a=0,Ar=0,Et=0,xn=0,ds=null,vt=null,Cr=!1,ji=0,Xu=0,Ni=1/0,wi=null,Il=null,tt=0,Pl=null,mn=null,Sl=0,Er=0,kr=null,Vu=null,us=0,Tr=null;function kt(){return(we&2)!==0&&he!==0?he&-he:y.T!==null?Rr():qa()}function Zu(){if(Et===0)if((he&536870912)===0||be){var e=ua;ua<<=1,(ua&3932160)===0&&(ua=262144),Et=e}else Et=536870912;return e=St.current,e!==null&&(e.flags|=32),Et}function jt(e,t,l){(e===Oe&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(hn(e,0),ea(e,he,Et,!1)),zl(e,l),((we&2)===0||e!==Oe)&&(e===Oe&&((we&2)===0&&(_a|=l),Ge===4&&ea(e,he,Et,!1)),tl(e))}function Fu(e,t,l){if((we&6)!==0)throw Error(x(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ml(e,t),s=a?Tm(e,t):zr(e,t,!0),i=a;do{if(s===0){fn&&!a&&ea(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Em(l)){s=zr(e,t,!1),i=!1;continue}if(s===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;s=ds;var o=r.current.memoizedState.isDehydrated;if(o&&(hn(r,c).flags|=256),c=zr(r,c,!1),c!==2){if(Sr&&!o){r.errorRecoveryDisabledLanes|=i,_a|=i,s=4;break e}i=vt,vt=s,i!==null&&(vt===null?vt=i:vt.push.apply(vt,i))}s=c}if(i=!1,s!==2)continue}}if(s===1){hn(e,0),ea(e,t,0,!0);break}e:{switch(a=e,i=s,i){case 0:case 1:throw Error(x(345));case 4:if((t&4194048)!==t)break;case 6:ea(a,t,Et,!$l);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(x(329))}if((t&62914560)===t&&(s=ji+300-rt(),10<s)){if(ea(a,t,Et,!$l),il(a,0,!0)!==0)break e;Sl=t,a.timeoutHandle=Af(Ku.bind(null,a,l,vt,wi,Cr,t,Et,_a,xn,$l,i,"Throttled",-0,0),s);break e}Ku(a,l,vt,wi,Cr,t,Et,_a,xn,$l,i,null,-0,0)}}break}while(!0);tl(e)}function Ku(e,t,l,a,s,i,c,r,o,p,N,A,g,v){if(e.timeoutHandle=-1,A=t.subtreeFlags,A&8192||(A&16785408)===16785408){A={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ol},Lu(t,i,A);var X=(i&62914560)===i?ji-rt():(i&4194048)===i?Xu-rt():0;if(X=uh(A,X),X!==null){Sl=i,e.cancelPendingCommit=X(lf.bind(null,e,t,i,l,a,s,c,r,o,N,A,null,g,v)),ea(e,i,c,!p);return}}lf(e,t,i,l,a,s,c,r,o)}function Em(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var s=l[a],i=s.getSnapshot;s=s.value;try{if(!Nt(i(),s))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ea(e,t,l,a){t&=~Ar,t&=~_a,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var i=31-Pe(s),c=1<<i;a[i]=-1,s&=~c}l!==0&&Tn(e,l,t)}function Si(){return(we&6)===0?(fs(0),!1):!0}function Mr(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,xl=wa=null,Zc(e),nn=null,Kn=0,e=fe;for(;e!==null;)Au(e.alternate,e),e=e.return;fe=null}}function hn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Fm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Sl=0,Mr(),Oe=e,fe=l=ul(e.current,null),he=t,Ee=0,Ct=null,$l=!1,fn=Ml(e,t),Sr=!1,xn=Et=Ar=_a=Wl=Ge=0,vt=ds=null,Cr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Pe(a),i=1<<s;t|=e[s],a&=~i}return wl=t,Vs(),l}function Ju(e,t){de=null,y.H=ls,t===an||t===Ps?(t=ud(),Ee=3):t===Dc?(t=ud(),Ee=4):Ee=t===rr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ct=t,fe===null&&(Ge=1,xi(e,Ot(t,e.current)))}function $u(){var e=St.current;return e===null?!0:(he&4194048)===he?Ht===null:(he&62914560)===he||(he&536870912)!==0?e===Ht:!1}function Wu(){var e=y.H;return y.H=ls,e===null?ls:e}function Iu(){var e=y.A;return y.A=Am,e}function Ai(){Ge=4,$l||(he&4194048)!==he&&St.current!==null||(fn=!0),(Wl&134217727)===0&&(_a&134217727)===0||Oe===null||ea(Oe,he,Et,!1)}function zr(e,t,l){var a=we;we|=2;var s=Wu(),i=Iu();(Oe!==e||he!==t)&&(wi=null,hn(e,t)),t=!1;var c=Ge;e:do try{if(Ee!==0&&fe!==null){var r=fe,o=Ct;switch(Ee){case 8:Mr(),c=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var p=Ee;if(Ee=0,Ct=null,pn(e,r,o,p),l&&fn){c=0;break e}break;default:p=Ee,Ee=0,Ct=null,pn(e,r,o,p)}}km(),c=Ge;break}catch(N){Ju(e,N)}while(!0);return t&&e.shellSuspendCounter++,xl=wa=null,we=a,y.H=s,y.A=i,fe===null&&(Oe=null,he=0,Vs()),c}function km(){for(;fe!==null;)Pu(fe)}function Tm(e,t){var l=we;we|=2;var a=Wu(),s=Iu();Oe!==e||he!==t?(wi=null,Ni=rt()+500,hn(e,t)):fn=Ml(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var i=Ct;t:switch(Ee){case 1:Ee=0,Ct=null,pn(e,t,i,1);break;case 2:case 9:if(od(i)){Ee=0,Ct=null,ef(t);break}t=function(){Ee!==2&&Ee!==9||Oe!==e||(Ee=7),tl(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:od(i)?(Ee=0,Ct=null,ef(t)):(Ee=0,Ct=null,pn(e,t,i,7));break;case 5:var c=null;switch(fe.tag){case 26:c=fe.memoizedState;case 5:case 27:var r=fe;if(c?Lf(c):r.stateNode.complete){Ee=0,Ct=null;var o=r.sibling;if(o!==null)fe=o;else{var p=r.return;p!==null?(fe=p,Ci(p)):fe=null}break t}}Ee=0,Ct=null,pn(e,t,i,5);break;case 6:Ee=0,Ct=null,pn(e,t,i,6);break;case 8:Mr(),Ge=6;break e;default:throw Error(x(462))}}Mm();break}catch(N){Ju(e,N)}while(!0);return xl=wa=null,y.H=a,y.A=s,we=l,fe!==null?0:(Oe=null,he=0,Vs(),Ge)}function Mm(){for(;fe!==null&&!Es();)Pu(fe)}function Pu(e){var t=wu(e.alternate,e,wl);e.memoizedProps=e.pendingProps,t===null?Ci(e):fe=t}function ef(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=gu(l,t,t.pendingProps,t.type,void 0,he);break;case 11:t=gu(l,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Zc(t);default:Au(l,t),t=fe=Io(t,wl),t=wu(l,t,wl)}e.memoizedProps=e.pendingProps,t===null?Ci(e):fe=t}function pn(e,t,l,a){xl=wa=null,Zc(t),nn=null,Kn=0;var s=t.return;try{if(bm(e,s,t,l,he)){Ge=1,xi(e,Ot(l,e.current)),fe=null;return}}catch(i){if(s!==null)throw fe=s,i;Ge=1,xi(e,Ot(l,e.current)),fe=null;return}t.flags&32768?(be||a===1?e=!0:fn||(he&536870912)!==0?e=!1:($l=e=!0,(a===2||a===9||a===3||a===6)&&(a=St.current,a!==null&&a.tag===13&&(a.flags|=16384))),tf(t,e)):Ci(t)}function Ci(e){var t=e;do{if((t.flags&32768)!==0){tf(t,$l);return}e=t.return;var l=jm(t.alternate,t,wl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ge===0&&(Ge=5)}function tf(e,t){do{var l=Nm(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);Ge=6,fe=null}function lf(e,t,l,a,s,i,c,r,o){e.cancelPendingCommit=null;do Ei();while(tt!==0);if((we&6)!==0)throw Error(x(327));if(t!==null){if(t===e.current)throw Error(x(177));if(i=t.lanes|t.childLanes,i|=yc,kn(e,l,i,c,r,o),e===Oe&&(fe=Oe=null,he=0),mn=t,Pl=e,Sl=l,Er=i,kr=s,Vu=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Dm(Kt,function(){return rf(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=y.T,y.T=null,s=M.p,M.p=2,c=we,we|=4;try{wm(e,t,l)}finally{we=c,M.p=s,y.T=a}}tt=1,af(),nf(),sf()}}function af(){if(tt===1){tt=0;var e=Pl,t=mn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=y.T,y.T=null;var a=M.p;M.p=2;var s=we;we|=4;try{Hu(t,e);var i=Qr,c=Qo(e.containerInfo),r=i.focusedElem,o=i.selectionRange;if(c!==r&&r&&r.ownerDocument&&Go(r.ownerDocument.documentElement,r)){if(o!==null&&mc(r)){var p=o.start,N=o.end;if(N===void 0&&(N=p),"selectionStart"in r)r.selectionStart=p,r.selectionEnd=Math.min(N,r.value.length);else{var A=r.ownerDocument||document,g=A&&A.defaultView||window;if(g.getSelection){var v=g.getSelection(),X=r.textContent.length,W=Math.min(o.start,X),_e=o.end===void 0?W:Math.min(o.end,X);!v.extend&&W>_e&&(c=_e,_e=W,W=c);var m=Yo(r,W),f=Yo(r,_e);if(m&&f&&(v.rangeCount!==1||v.anchorNode!==m.node||v.anchorOffset!==m.offset||v.focusNode!==f.node||v.focusOffset!==f.offset)){var h=A.createRange();h.setStart(m.node,m.offset),v.removeAllRanges(),W>_e?(v.addRange(h),v.extend(f.node,f.offset)):(h.setEnd(f.node,f.offset),v.addRange(h))}}}}for(A=[],v=r;v=v.parentNode;)v.nodeType===1&&A.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<A.length;r++){var S=A[r];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Bi=!!Gr,Qr=Gr=null}finally{we=s,M.p=a,y.T=l}}e.current=t,tt=2}}function nf(){if(tt===2){tt=0;var e=Pl,t=mn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=y.T,y.T=null;var a=M.p;M.p=2;var s=we;we|=4;try{_u(e,t.alternate,t)}finally{we=s,M.p=a,y.T=l}}tt=3}}function sf(){if(tt===4||tt===3){tt=0,wn();var e=Pl,t=mn,l=Sl,a=Vu;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,mn=Pl=null,cf(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Il=null),Ha(l),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(sl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=y.T,s=M.p,M.p=2,y.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var r=a[c];i(r.value,{componentStack:r.stack})}}finally{y.T=t,M.p=s}}(Sl&3)!==0&&Ei(),tl(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Tr?us++:(us=0,Tr=e):us=0,fs(0)}}function cf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zn(t)))}function Ei(){return af(),nf(),sf(),rf()}function rf(){if(tt!==5)return!1;var e=Pl,t=Er;Er=0;var l=Ha(Sl),a=y.T,s=M.p;try{M.p=32>l?32:l,y.T=null,l=kr,kr=null;var i=Pl,c=Sl;if(tt=0,mn=Pl=null,Sl=0,(we&6)!==0)throw Error(x(331));var r=we;if(we|=4,Gu(i.current),Bu(i,i.current,c,l),we=r,fs(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(sl,i)}catch{}return!0}finally{M.p=s,y.T=a,cf(e,t)}}function of(e,t,l){t=Ot(l,t),t=cr(e.stateNode,t,2),e=Zl(e,t,2),e!==null&&(zl(e,2),tl(e))}function ke(e,t,l){if(e.tag===3)of(e,e,l);else for(;t!==null;){if(t.tag===3){of(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Il===null||!Il.has(a))){e=Ot(l,e),l=ou(2),a=Zl(t,l,2),a!==null&&(du(l,a,t,e),zl(a,2),tl(a));break}}t=t.return}}function _r(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Cm;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(l)||(Sr=!0,s.add(l),e=zm.bind(null,e,t,l),t.then(e,e))}function zm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Oe===e&&(he&l)===l&&(Ge===4||Ge===3&&(he&62914560)===he&&300>rt()-ji?(we&2)===0&&hn(e,0):Ar|=l,xn===he&&(xn=0)),tl(e)}function df(e,t){t===0&&(t=En()),e=va(e,t),e!==null&&(zl(e,t),tl(e))}function _m(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),df(e,l)}function Om(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(x(314))}a!==null&&a.delete(t),df(e,l)}function Dm(e,t){return Da(e,t)}var ki=null,gn=null,Or=!1,Ti=!1,Dr=!1,ta=0;function tl(e){e!==gn&&e.next===null&&(gn===null?ki=gn=e:gn=gn.next=e),Ti=!0,Or||(Or=!0,Um())}function fs(e,t){if(!Dr&&Ti){Dr=!0;do for(var l=!1,a=ki;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var i=0;else{var c=a.suspendedLanes,r=a.pingedLanes;i=(1<<31-Pe(42|e)+1)-1,i&=s&~(c&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,mf(a,i))}else i=he,i=il(a,a===Oe?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Ml(a,i)||(l=!0,mf(a,i));a=a.next}while(l);Dr=!1}}function Rm(){uf()}function uf(){Ti=Or=!1;var e=0;ta!==0&&Zm()&&(e=ta);for(var t=rt(),l=null,a=ki;a!==null;){var s=a.next,i=ff(a,t);i===0?(a.next=null,l===null?ki=s:l.next=s,s===null&&(gn=l)):(l=a,(e!==0||(i&3)!==0)&&(Ti=!0)),a=s}tt!==0&&tt!==5||fs(e),ta!==0&&(ta=0)}function ff(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-Pe(i),r=1<<c,o=s[c];o===-1?((r&l)===0||(r&a)!==0)&&(s[c]=Cn(r,t)):o<=t&&(e.expiredLanes|=r),i&=~r}if(t=Oe,l=he,l=il(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&da(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ml(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&da(a),Ha(l)){case 2:case 8:l=Ft;break;case 32:l=Kt;break;case 268435456:l=Ts;break;default:l=Kt}return a=xf.bind(null,e),l=Da(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&da(a),e.callbackPriority=2,e.callbackNode=null,2}function xf(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ei()&&e.callbackNode!==l)return null;var a=he;return a=il(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Fu(e,a,t),ff(e,rt()),e.callbackNode!=null&&e.callbackNode===l?xf.bind(null,e):null)}function mf(e,t){if(Ei())return null;Fu(e,t,!0)}function Um(){Km(function(){(we&6)!==0?Da(Sn,Rm):uf()})}function Rr(){if(ta===0){var e=tn;e===0&&(e=kl,kl<<=1,(kl&261888)===0&&(kl=256)),ta=e}return ta}function hf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hs(""+e)}function pf(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Hm(e,t,l,a,s){if(t==="submit"&&l&&l.stateNode===s){var i=hf((s[Fe]||null).action),c=a.submitter;c&&(t=(t=c[Fe]||null)?hf(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var r=new Ys("action","action",null,a,s);e.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ta!==0){var o=c?pf(s,c):new FormData(s);tr(l,{pending:!0,data:o,method:s.method,action:i},null,o)}}else typeof i=="function"&&(r.preventDefault(),o=c?pf(s,c):new FormData(s),tr(l,{pending:!0,data:o,method:s.method,action:i},i,o))},currentTarget:s}]})}}for(var Ur=0;Ur<bc.length;Ur++){var Hr=bc[Ur],qm=Hr.toLowerCase(),Bm=Hr[0].toUpperCase()+Hr.slice(1);Xt(qm,"on"+Bm)}Xt(Zo,"onAnimationEnd"),Xt(Fo,"onAnimationIteration"),Xt(Ko,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(tm,"onTransitionRun"),Xt(lm,"onTransitionStart"),Xt(am,"onTransitionCancel"),Xt(Jo,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),Wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="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(" "),Lm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xs));function gf(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],s=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var r=a[c],o=r.instance,p=r.currentTarget;if(r=r.listener,o!==i&&s.isPropagationStopped())break e;i=r,s.currentTarget=p;try{i(s)}catch(N){Xs(N)}s.currentTarget=null,i=o}else for(c=0;c<a.length;c++){if(r=a[c],o=r.instance,p=r.currentTarget,r=r.listener,o!==i&&s.isPropagationStopped())break e;i=r,s.currentTarget=p;try{i(s)}catch(N){Xs(N)}s.currentTarget=null,i=o}}}}function xe(e,t){var l=t[Ol];l===void 0&&(l=t[Ol]=new Set);var a=e+"__bubble";l.has(a)||(bf(t,e,2,!1),l.add(a))}function qr(e,t,l){var a=0;t&&(a|=4),bf(l,e,a,t)}var Mi="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Mi]){e[Mi]=!0,zn.forEach(function(l){l!=="selectionchange"&&(Lm.has(l)||qr(l,!1,e),qr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mi]||(t[Mi]=!0,qr("selectionchange",!1,t))}}function bf(e,t,l,a){switch(Ff(t)){case 2:var s=mh;break;case 8:s=hh;break;default:s=eo}l=s.bind(null,t,l,e),s=void 0,!sc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function Lr(e,t,l,a,s){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var r=a.stateNode.containerInfo;if(r===s)break;if(c===4)for(c=a.return;c!==null;){var o=c.tag;if((o===3||o===4)&&c.stateNode.containerInfo===s)return;c=c.return}for(;r!==null;){if(c=Rl(r),c===null)return;if(o=c.tag,o===5||o===6||o===26||o===27){a=i=c;continue e}r=r.parentNode}}a=a.return}No(function(){var p=i,N=ac(l),A=[];e:{var g=$o.get(e);if(g!==void 0){var v=Ys,X=e;switch(e){case"keypress":if(Bs(l)===0)break e;case"keydown":case"keyup":v=Ox;break;case"focusin":X="focus",v=oc;break;case"focusout":X="blur",v=oc;break;case"beforeblur":case"afterblur":v=oc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Ao;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Ux;break;case Zo:case Fo:case Ko:v=Sx;break;case Jo:v=qx;break;case"scroll":case"scrollend":v=yx;break;case"wheel":v=Lx;break;case"copy":case"cut":case"paste":v=Cx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Eo;break;case"toggle":case"beforetoggle":v=Gx}var W=(t&4)!==0,_e=!W&&(e==="scroll"||e==="scrollend"),m=W?g!==null?g+"Capture":null:g;W=[];for(var f=p,h;f!==null;){var S=f;if(h=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||h===null||m===null||(S=Rn(f,m),S!=null&&W.push(ms(f,S,h))),_e)break;f=f.return}0<W.length&&(g=new v(g,X,null,l,N),A.push({event:g,listeners:W}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",g&&l!==lc&&(X=l.relatedTarget||l.fromElement)&&(Rl(X)||X[Yt]))break e;if((v||g)&&(g=N.window===N?N:(g=N.ownerDocument)?g.defaultView||g.parentWindow:window,v?(X=l.relatedTarget||l.toElement,v=p,X=X?Rl(X):null,X!==null&&(_e=U(X),W=X.tag,X!==_e||W!==5&&W!==27&&W!==6)&&(X=null)):(v=null,X=p),v!==X)){if(W=Ao,S="onMouseLeave",m="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(W=Eo,S="onPointerLeave",m="onPointerEnter",f="pointer"),_e=v==null?g:Ul(v),h=X==null?g:Ul(X),g=new W(S,f+"leave",v,l,N),g.target=_e,g.relatedTarget=h,S=null,Rl(N)===p&&(W=new W(m,f+"enter",X,l,N),W.target=h,W.relatedTarget=_e,S=W),_e=S,v&&X)t:{for(W=Ym,m=v,f=X,h=0,S=m;S;S=W(S))h++;S=0;for(var $=f;$;$=W($))S++;for(;0<h-S;)m=W(m),h--;for(;0<S-h;)f=W(f),S--;for(;h--;){if(m===f||f!==null&&m===f.alternate){W=m;break t}m=W(m),f=W(f)}W=null}else W=null;v!==null&&yf(A,g,v,W,!1),X!==null&&_e!==null&&yf(A,_e,X,W,!0)}}e:{if(g=p?Ul(p):window,v=g.nodeName&&g.nodeName.toLowerCase(),v==="select"||v==="input"&&g.type==="file")var je=Ro;else if(Oo(g))if(Uo)je=Ix;else{je=$x;var Z=Jx}else v=g.nodeName,!v||v.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?p&&tc(p.elementType)&&(je=Ro):je=Wx;if(je&&(je=je(e,p))){Do(A,je,l,N);break e}Z&&Z(e,g,p),e==="focusout"&&p&&g.type==="number"&&p.memoizedProps.value!=null&&Qa(g,"number",g.value)}switch(Z=p?Ul(p):window,e){case"focusin":(Oo(Z)||Z.contentEditable==="true")&&(Fa=Z,hc=p,Qn=null);break;case"focusout":Qn=hc=Fa=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,Xo(A,l,N);break;case"selectionchange":if(em)break;case"keydown":case"keyup":Xo(A,l,N)}var ue;if(uc)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else Za?zo(e,l)&&(pe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(pe="onCompositionStart");pe&&(ko&&l.locale!=="ko"&&(Za||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&Za&&(ue=wo()):(Bl=N,ic="value"in Bl?Bl.value:Bl.textContent,Za=!0)),Z=zi(p,pe),0<Z.length&&(pe=new Co(pe,e,null,l,N),A.push({event:pe,listeners:Z}),ue?pe.data=ue:(ue=_o(l),ue!==null&&(pe.data=ue)))),(ue=Xx?Vx(e,l):Zx(e,l))&&(pe=zi(p,"onBeforeInput"),0<pe.length&&(Z=new Co("onBeforeInput","beforeinput",null,l,N),A.push({event:Z,listeners:pe}),Z.data=ue)),Hm(A,e,p,l,N)}gf(A,t)})}function ms(e,t,l){return{instance:e,listener:t,currentTarget:l}}function zi(e,t){for(var l=t+"Capture",a=[];e!==null;){var s=e,i=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||i===null||(s=Rn(e,l),s!=null&&a.unshift(ms(e,s,i)),s=Rn(e,t),s!=null&&a.push(ms(e,s,i))),e.tag===3)return a;e=e.return}return[]}function Ym(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yf(e,t,l,a,s){for(var i=t._reactName,c=[];l!==null&&l!==a;){var r=l,o=r.alternate,p=r.stateNode;if(r=r.tag,o!==null&&o===a)break;r!==5&&r!==26&&r!==27||p===null||(o=p,s?(p=Rn(l,i),p!=null&&c.unshift(ms(l,p,o))):s||(p=Rn(l,i),p!=null&&c.push(ms(l,p,o)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Gm=/\r\n?/g,Qm=/\u0000|\uFFFD/g;function vf(e){return(typeof e=="string"?e:""+e).replace(Gm,`
`).replace(Qm,"")}function jf(e,t){return t=vf(t),vf(e)===t}function ze(e,t,l,a,s,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Y(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Y(e,""+a);break;case"className":La(e,"class",a);break;case"tabIndex":La(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":La(e,l,a);break;case"style":vo(e,a,i);break;case"data":if(t!=="object"){La(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Hs(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&ze(e,t,"name",s.name,s,null),ze(e,t,"formEncType",s.formEncType,s,null),ze(e,t,"formMethod",s.formMethod,s,null),ze(e,t,"formTarget",s.formTarget,s,null)):(ze(e,t,"encType",s.encType,s,null),ze(e,t,"method",s.method,s,null),ze(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Hs(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=ol);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(x(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(x(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Hs(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":xe("beforetoggle",e),xe("toggle",e),pa(e,"popover",a);break;case"xlinkActuate":Qt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Qt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Qt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Qt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Qt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Qt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":pa(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=gx.get(l)||l,pa(e,l,a))}}function Yr(e,t,l,a,s,i){switch(l){case"style":vo(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(x(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(x(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Y(e,a):(typeof a=="number"||typeof a=="bigint")&&Y(e,""+a);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ol);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ha.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),i=e[Fe]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,s),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,s);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):pa(e,l,a)}}}function ct(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var a=!1,s=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(x(137,t));default:ze(e,t,i,c,l,null)}}s&&ze(e,t,"srcSet",l.srcSet,l,null),a&&ze(e,t,"src",l.src,l,null);return;case"input":xe("invalid",e);var r=i=c=s=null,o=null,p=null;for(a in l)if(l.hasOwnProperty(a)){var N=l[a];if(N!=null)switch(a){case"name":s=N;break;case"type":c=N;break;case"checked":o=N;break;case"defaultChecked":p=N;break;case"value":i=N;break;case"defaultValue":r=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(x(137,t));break;default:ze(e,t,a,N,l,null)}}Dn(e,i,r,o,p,c,s,!1);return;case"select":xe("invalid",e),a=c=i=null;for(s in l)if(l.hasOwnProperty(s)&&(r=l[s],r!=null))switch(s){case"value":i=r;break;case"defaultValue":c=r;break;case"multiple":a=r;default:ze(e,t,s,r,l,null)}t=i,l=c,e.multiple=!!a,t!=null?rl(e,!!a,t,!1):l!=null&&rl(e,!!a,l,!0);return;case"textarea":xe("invalid",e),i=s=a=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":a=r;break;case"defaultValue":s=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(x(91));break;default:ze(e,t,c,r,l,null)}T(e,a,s,i);return;case"option":for(o in l)if(l.hasOwnProperty(o)&&(a=l[o],a!=null))switch(o){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,o,a,l,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(a=0;a<xs.length;a++)xe(xs[a],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(x(137,t));default:ze(e,t,p,a,l,null)}return;default:if(tc(t)){for(N in l)l.hasOwnProperty(N)&&(a=l[N],a!==void 0&&Yr(e,t,N,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&ze(e,t,r,a,l,null))}function Xm(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,i=null,c=null,r=null,o=null,p=null,N=null;for(v in l){var A=l[v];if(l.hasOwnProperty(v)&&A!=null)switch(v){case"checked":break;case"value":break;case"defaultValue":o=A;default:a.hasOwnProperty(v)||ze(e,t,v,null,a,A)}}for(var g in a){var v=a[g];if(A=l[g],a.hasOwnProperty(g)&&(v!=null||A!=null))switch(g){case"type":i=v;break;case"name":s=v;break;case"checked":p=v;break;case"defaultChecked":N=v;break;case"value":c=v;break;case"defaultValue":r=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(x(137,t));break;default:v!==A&&ze(e,t,g,v,a,A)}}Ga(e,c,r,o,p,N,i,s);return;case"select":v=c=r=g=null;for(i in l)if(o=l[i],l.hasOwnProperty(i)&&o!=null)switch(i){case"value":break;case"multiple":v=o;default:a.hasOwnProperty(i)||ze(e,t,i,null,a,o)}for(s in a)if(i=a[s],o=l[s],a.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case"value":g=i;break;case"defaultValue":r=i;break;case"multiple":c=i;default:i!==o&&ze(e,t,s,i,a,o)}t=r,l=c,a=v,g!=null?rl(e,!!l,g,!1):!!a!=!!l&&(t!=null?rl(e,!!l,t,!0):rl(e,!!l,l?[]:"",!1));return;case"textarea":v=g=null;for(r in l)if(s=l[r],l.hasOwnProperty(r)&&s!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ze(e,t,r,null,a,s)}for(c in a)if(s=a[c],i=l[c],a.hasOwnProperty(c)&&(s!=null||i!=null))switch(c){case"value":g=s;break;case"defaultValue":v=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(x(91));break;default:s!==i&&ze(e,t,c,s,a,i)}d(e,g,v);return;case"option":for(var X in l)if(g=l[X],l.hasOwnProperty(X)&&g!=null&&!a.hasOwnProperty(X))switch(X){case"selected":e.selected=!1;break;default:ze(e,t,X,null,a,g)}for(o in a)if(g=a[o],v=l[o],a.hasOwnProperty(o)&&g!==v&&(g!=null||v!=null))switch(o){case"selected":e.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:ze(e,t,o,g,a,v)}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 W in l)g=l[W],l.hasOwnProperty(W)&&g!=null&&!a.hasOwnProperty(W)&&ze(e,t,W,null,a,g);for(p in a)if(g=a[p],v=l[p],a.hasOwnProperty(p)&&g!==v&&(g!=null||v!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(x(137,t));break;default:ze(e,t,p,g,a,v)}return;default:if(tc(t)){for(var _e in l)g=l[_e],l.hasOwnProperty(_e)&&g!==void 0&&!a.hasOwnProperty(_e)&&Yr(e,t,_e,void 0,a,g);for(N in a)g=a[N],v=l[N],!a.hasOwnProperty(N)||g===v||g===void 0&&v===void 0||Yr(e,t,N,g,a,v);return}}for(var m in l)g=l[m],l.hasOwnProperty(m)&&g!=null&&!a.hasOwnProperty(m)&&ze(e,t,m,null,a,g);for(A in a)g=a[A],v=l[A],!a.hasOwnProperty(A)||g===v||g==null&&v==null||ze(e,t,A,g,a,v)}function Nf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Vm(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var s=l[a],i=s.transferSize,c=s.initiatorType,r=s.duration;if(i&&r&&Nf(c)){for(c=0,r=s.responseEnd,a+=1;a<l.length;a++){var o=l[a],p=o.startTime;if(p>r)break;var N=o.transferSize,A=o.initiatorType;N&&Nf(A)&&(o=o.responseEnd,c+=N*(o<r?1:(r-p)/(o-p)))}if(--a,t+=8*(i+c)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Gr=null,Qr=null;function _i(e){return e.nodeType===9?e:e.ownerDocument}function wf(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sf(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Xr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vr=null;function Zm(){var e=window.event;return e&&e.type==="popstate"?e===Vr?!1:(Vr=e,!0):(Vr=null,!1)}var Af=typeof setTimeout=="function"?setTimeout:void 0,Fm=typeof clearTimeout=="function"?clearTimeout:void 0,Cf=typeof Promise=="function"?Promise:void 0,Km=typeof queueMicrotask=="function"?queueMicrotask:typeof Cf<"u"?function(e){return Cf.resolve(null).then(e).catch(Jm)}:Af;function Jm(e){setTimeout(function(){throw e})}function la(e){return e==="head"}function Ef(e,t){var l=t,a=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(s),jn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")hs(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,hs(l);for(var i=l.firstChild;i;){var c=i.nextSibling,r=i.nodeName;i[Gt]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&hs(e.ownerDocument.body);l=s}while(l);jn(t)}function kf(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Zr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zr(l),Dl(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function $m(e,t,l,a){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Gt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=qt(e.nextSibling),e===null)break}return null}function Wm(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=qt(e.nextSibling),e===null))return null;return e}function Tf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function Fr(e){return e.data==="$?"||e.data==="$~"}function Kr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Im(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jr=null;function Mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function zf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function _f(e,t,l){switch(t=_i(l),e){case"html":if(e=t.documentElement,!e)throw Error(x(452));return e;case"head":if(e=t.head,!e)throw Error(x(453));return e;case"body":if(e=t.body,!e)throw Error(x(454));return e;default:throw Error(x(451))}}function hs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Dl(e)}var Bt=new Map,Of=new Set;function Oi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Al=M.d;M.d={f:Pm,r:eh,D:th,C:lh,L:ah,m:nh,X:ih,S:sh,M:ch};function Pm(){var e=Al.f(),t=Si();return e||t}function eh(e){var t=$t(e);t!==null&&t.tag===5&&t.type==="form"?Jd(t):Al.r(e)}var bn=typeof document>"u"?null:document;function Df(e,t,l){var a=bn;if(a&&typeof t=="string"&&t){var s=ut(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),Of.has(s)||(Of.add(s),e={rel:e,crossOrigin:l,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),ct(t,"link",e),Xe(t),a.head.appendChild(t)))}}function th(e){Al.D(e),Df("dns-prefetch",e,null)}function lh(e,t){Al.C(e,t),Df("preconnect",e,t)}function ah(e,t,l){Al.L(e,t,l);var a=bn;if(a&&e&&t){var s='link[rel="preload"][as="'+ut(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+ut(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+ut(l.imageSizes)+'"]')):s+='[href="'+ut(e)+'"]';var i=s;switch(t){case"style":i=yn(e);break;case"script":i=vn(e)}Bt.has(i)||(e=D({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Bt.set(i,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(ps(i))||t==="script"&&a.querySelector(gs(i))||(t=a.createElement("link"),ct(t,"link",e),Xe(t),a.head.appendChild(t)))}}function nh(e,t){Al.m(e,t);var l=bn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+ut(a)+'"][href="'+ut(e)+'"]',i=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=vn(e)}if(!Bt.has(i)&&(e=D({rel:"modulepreload",href:e},t),Bt.set(i,e),l.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(gs(i)))return}a=l.createElement("link"),ct(a,"link",e),Xe(a),l.head.appendChild(a)}}}function sh(e,t,l){Al.S(e,t,l);var a=bn;if(a&&e){var s=cl(a).hoistableStyles,i=yn(e);t=t||"default";var c=s.get(i);if(!c){var r={loading:0,preload:null};if(c=a.querySelector(ps(i)))r.loading=5;else{e=D({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Bt.get(i))&&$r(e,l);var o=c=a.createElement("link");Xe(o),ct(o,"link",e),o._p=new Promise(function(p,N){o.onload=p,o.onerror=N}),o.addEventListener("load",function(){r.loading|=1}),o.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Di(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:r},s.set(i,c)}}}function ih(e,t){Al.X(e,t);var l=bn;if(l&&e){var a=cl(l).hoistableScripts,s=vn(e),i=a.get(s);i||(i=l.querySelector(gs(s)),i||(e=D({src:e,async:!0},t),(t=Bt.get(s))&&Wr(e,t),i=l.createElement("script"),Xe(i),ct(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(s,i))}}function ch(e,t){Al.M(e,t);var l=bn;if(l&&e){var a=cl(l).hoistableScripts,s=vn(e),i=a.get(s);i||(i=l.querySelector(gs(s)),i||(e=D({src:e,async:!0,type:"module"},t),(t=Bt.get(s))&&Wr(e,t),i=l.createElement("script"),Xe(i),ct(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(s,i))}}function Rf(e,t,l,a){var s=(s=oe.current)?Oi(s):null;if(!s)throw Error(x(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=yn(l.href),l=cl(s).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=yn(l.href);var i=cl(s).hoistableStyles,c=i.get(e);if(c||(s=s.ownerDocument||s,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=s.querySelector(ps(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Bt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Bt.set(e,l),i||rh(s,e,l,c.state))),t&&a===null)throw Error(x(528,""));return c}if(t&&a!==null)throw Error(x(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=vn(l),l=cl(s).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(x(444,e))}}function yn(e){return'href="'+ut(e)+'"'}function ps(e){return'link[rel="stylesheet"]['+e+"]"}function Uf(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function rh(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ct(t,"link",l),Xe(t),e.head.appendChild(t))}function vn(e){return'[src="'+ut(e)+'"]'}function gs(e){return"script[async]"+e}function Hf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+ut(l.href)+'"]');if(a)return t.instance=a,Xe(a),a;var s=D({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Xe(a),ct(a,"style",s),Di(a,l.precedence,e),t.instance=a;case"stylesheet":s=yn(l.href);var i=e.querySelector(ps(s));if(i)return t.state.loading|=4,t.instance=i,Xe(i),i;a=Uf(l),(s=Bt.get(s))&&$r(a,s),i=(e.ownerDocument||e).createElement("link"),Xe(i);var c=i;return c._p=new Promise(function(r,o){c.onload=r,c.onerror=o}),ct(i,"link",a),t.state.loading|=4,Di(i,l.precedence,e),t.instance=i;case"script":return i=vn(l.src),(s=e.querySelector(gs(i)))?(t.instance=s,Xe(s),s):(a=l,(s=Bt.get(i))&&(a=D({},l),Wr(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),Xe(s),ct(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(x(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Di(a,l.precedence,e));return t.instance}function Di(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,i=s,c=0;c<a.length;c++){var r=a[c];if(r.dataset.precedence===t)i=r;else if(i!==s)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function $r(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ri=null;function qf(e,t,l){if(Ri===null){var a=new Map,s=Ri=new Map;s.set(l,a)}else s=Ri,a=s.get(l),a||(a=new Map,s.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var i=l[s];if(!(i[Gt]||i[et]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var r=a.get(c);r?r.push(i):a.set(c,[i])}}return a}function Bf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function oh(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function dh(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=yn(a.href),i=t.querySelector(ps(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ui.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Xe(i);return}i=t.ownerDocument||t,a=Uf(a),(s=Bt.get(s))&&$r(a,s),i=i.createElement("link"),Xe(i);var c=i;c._p=new Promise(function(r,o){c.onload=r,c.onerror=o}),ct(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ui.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ir=0;function uh(e,t){return e.stylesheets&&e.count===0&&qi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&qi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Ir===0&&(Ir=62500*Vm());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Ir?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hi=null;function qi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hi=new Map,t.forEach(fh,e),Hi=null,Ui.call(e))}function fh(e,t){if(!(t.state.loading&4)){var l=Hi.get(e);if(l)var a=l.get(null);else{l=new Map,Hi.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<s.length;i++){var c=s[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}s=t.instance,c=s.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,s),l.set(c,s),this.count++,a=Ui.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),i?i.parentNode.insertBefore(s,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var bs={$$typeof:B,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function xh(e,t,l,a,s,i,c,r,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fa(0),this.hiddenUpdates=fa(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Yf(e,t,l,a,s,i,c,r,o,p,N,A){return e=new xh(e,t,l,c,o,p,N,A,r),t=1,i===!0&&(t|=24),i=wt(3,null,null,t),e.current=i,i.stateNode=e,t=zc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Rc(i),e}function Gf(e){return e?(e=$a,e):$a}function Qf(e,t,l,a,s,i){s=Gf(s),a.context===null?a.context=s:a.pendingContext=s,a=Vl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Zl(e,a,t),l!==null&&(jt(l,e,t),$n(l,e,t))}function Xf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Pr(e,t){Xf(e,t),(e=e.alternate)&&Xf(e,t)}function Vf(e){if(e.tag===13||e.tag===31){var t=va(e,67108864);t!==null&&jt(t,e,67108864),Pr(e,67108864)}}function Zf(e){if(e.tag===13||e.tag===31){var t=kt();t=xa(t);var l=va(e,t);l!==null&&jt(l,e,t),Pr(e,t)}}var Bi=!0;function mh(e,t,l,a){var s=y.T;y.T=null;var i=M.p;try{M.p=2,eo(e,t,l,a)}finally{M.p=i,y.T=s}}function hh(e,t,l,a){var s=y.T;y.T=null;var i=M.p;try{M.p=8,eo(e,t,l,a)}finally{M.p=i,y.T=s}}function eo(e,t,l,a){if(Bi){var s=to(a);if(s===null)Lr(e,t,a,Li,l),Kf(e,a);else if(gh(s,e,t,l,a))a.stopPropagation();else if(Kf(e,a),t&4&&-1<ph.indexOf(e)){for(;s!==null;){var i=$t(s);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Lt(i.pendingLanes);if(c!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var o=1<<31-Pe(c);r.entanglements[1]|=o,c&=~o}tl(i),(we&6)===0&&(Ni=rt()+500,fs(0))}}break;case 31:case 13:r=va(i,2),r!==null&&jt(r,i,2),Si(),Pr(i,2)}if(i=to(a),i===null&&Lr(e,t,a,Li,l),i===s)break;s=i}s!==null&&a.stopPropagation()}else Lr(e,t,a,null,l)}}function to(e){return e=ac(e),lo(e)}var Li=null;function lo(e){if(Li=null,e=Rl(e),e!==null){var t=U(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=F(t),e!==null)return e;e=null}else if(l===31){if(e=P(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Li=e,null}function Ff(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ks()){case Sn:return 2;case Ft:return 8;case Kt:case Ra:return 32;case Ts:return 268435456;default:return 32}default:return 32}}var ao=!1,aa=null,na=null,sa=null,ys=new Map,vs=new Map,ia=[],ph="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 Kf(e,t){switch(e){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(t.pointerId)}}function js(e,t,l,a,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[s]},t!==null&&(t=$t(t),t!==null&&Vf(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function gh(e,t,l,a,s){switch(t){case"focusin":return aa=js(aa,e,t,l,a,s),!0;case"dragenter":return na=js(na,e,t,l,a,s),!0;case"mouseover":return sa=js(sa,e,t,l,a,s),!0;case"pointerover":var i=s.pointerId;return ys.set(i,js(ys.get(i)||null,e,t,l,a,s)),!0;case"gotpointercapture":return i=s.pointerId,vs.set(i,js(vs.get(i)||null,e,t,l,a,s)),!0}return!1}function Jf(e){var t=Rl(e.target);if(t!==null){var l=U(t);if(l!==null){if(t=l.tag,t===13){if(t=F(l),t!==null){e.blockedOn=t,_l(e.priority,function(){Zf(l)});return}}else if(t===31){if(t=P(l),t!==null){e.blockedOn=t,_l(e.priority,function(){Zf(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=to(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);lc=a,l.target.dispatchEvent(a),lc=null}else return t=$t(l),t!==null&&Vf(t),e.blockedOn=l,!1;t.shift()}return!0}function $f(e,t,l){Yi(e)&&l.delete(t)}function bh(){ao=!1,aa!==null&&Yi(aa)&&(aa=null),na!==null&&Yi(na)&&(na=null),sa!==null&&Yi(sa)&&(sa=null),ys.forEach($f),vs.forEach($f)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,ao||(ao=!0,C.unstable_scheduleCallback(C.unstable_NormalPriority,bh)))}var Qi=null;function Wf(e){Qi!==e&&(Qi=e,C.unstable_scheduleCallback(C.unstable_NormalPriority,function(){Qi===e&&(Qi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(lo(a||l)===null)continue;break}var i=$t(l);i!==null&&(e.splice(t,3),t-=3,tr(i,{pending:!0,data:s,method:l.method,action:a},a,s))}}))}function jn(e){function t(o){return Gi(o,e)}aa!==null&&Gi(aa,e),na!==null&&Gi(na,e),sa!==null&&Gi(sa,e),ys.forEach(t),vs.forEach(t);for(var l=0;l<ia.length;l++){var a=ia[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ia.length&&(l=ia[0],l.blockedOn===null);)Jf(l),l.blockedOn===null&&ia.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var s=l[a],i=l[a+1],c=s[Fe]||null;if(typeof i=="function")c||Wf(l);else if(c){var r=null;if(i&&i.hasAttribute("formAction")){if(s=i,c=i[Fe]||null)r=c.formAction;else if(lo(s)!==null)continue}else r=c.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),Wf(l)}}}function If(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return s=c})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function no(e){this._internalRoot=e}Xi.prototype.render=no.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));var l=t.current,a=kt();Qf(l,a,e,t,null,null)},Xi.prototype.unmount=no.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qf(e.current,2,null,e,null,null),Si(),t[Yt]=null}};function Xi(e){this._internalRoot=e}Xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=qa();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ia.length&&t!==0&&t<ia[l].priority;l++);ia.splice(l,0,e),l===0&&Jf(e)}};var Pf=q.version;if(Pf!=="19.2.6")throw Error(x(527,Pf,"19.2.6"));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=b(t),e=e!==null?V(e):null,e=e===null?null:e.stateNode,e};var yh={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:y,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{sl=Vi.inject(yh),at=Vi}catch{}}return ws.createRoot=function(e,t){if(!z(e))throw Error(x(299));var l=!1,a="",s=su,i=iu,c=cu;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Yf(e,1,!1,null,null,l,a,null,s,i,c,If),e[Yt]=t.current,Br(e),new no(t)},ws.hydrateRoot=function(e,t,l){if(!z(e))throw Error(x(299));var a=!1,s="",i=su,c=iu,r=cu,o=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(o=l.formState)),t=Yf(e,1,!0,t,l??null,a,s,o,i,c,r,If),t.context=Gf(null),l=t.current,a=kt(),a=xa(a),s=Vl(a),s.callback=null,Zl(l,s,a),l=a,t.current.lanes=l,zl(t,l),tl(t),e[Yt]=t.current,Br(e),new Xi(t)},ws.version="19.2.6",ws}var ox;function Th(){if(ox)return co.exports;ox=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(q){console.error(q)}}return C(),co.exports=kh(),co.exports}var Mh=Th();/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zh=C=>C.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_h=C=>C.replace(/^([A-Z])|[\s-_]+(\w)/g,(q,L,x)=>x?x.toUpperCase():L.toLowerCase()),dx=C=>{const q=_h(C);return q.charAt(0).toUpperCase()+q.slice(1)},mx=(...C)=>C.filter((q,L,x)=>!!q&&q.trim()!==""&&x.indexOf(q)===L).join(" ").trim(),Oh=C=>{for(const q in C)if(q.startsWith("aria-")||q==="role"||q==="title")return!0};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Dh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rh=w.forwardRef(({color:C="currentColor",size:q=24,strokeWidth:L=2,absoluteStrokeWidth:x,className:z="",children:U,iconNode:F,...P},E)=>w.createElement("svg",{ref:E,...Dh,width:q,height:q,stroke:C,strokeWidth:x?Number(L)*24/Number(q):L,className:mx("lucide",z),...!U&&!Oh(P)&&{"aria-hidden":"true"},...P},[...F.map(([b,V])=>w.createElement(b,V)),...Array.isArray(U)?U:[U]]));/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const re=(C,q)=>{const L=w.forwardRef(({className:x,...z},U)=>w.createElement(Rh,{ref:U,iconNode:q,className:mx(`lucide-${zh(dx(C))}`,`lucide-${C}`,x),...z}));return L.displayName=dx(C),L};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uh=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Hh=re("activity",Uh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Bh=re("arrow-right",qh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lh=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Yh=re("award",Lh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gh=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],go=re("calendar",Gh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qh=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Cs=re("check",Qh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xh=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Vh=re("chevron-left",Xh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ss=re("chevron-right",Zh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ll=re("circle-alert",Fh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kh=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Oa=re("circle-check-big",Kh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jh=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],$h=re("clock",Jh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wh=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],bo=re("credit-card",Wh);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ih=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],ux=re("database",Ih);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ph=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ep=re("eye-off",Ph);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tp=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],hx=re("eye",tp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lp=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ap=re("file-text",lp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const np=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],sp=re("instagram",np);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ip=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],fx=re("key",ip);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cp=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],xo=re("landmark",cp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rp=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Cl=re("leaf",rp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const op=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],dp=re("mail",op);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const up=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Ki=re("map-pin",up);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fp=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],xp=re("menu",fp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mp=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],yo=re("message-circle",mp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hp=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],pp=re("phone",hp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zi=re("plus",gp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bp=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],yp=re("refresh-ccw",bp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vp=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Nn=re("refresh-cw",vp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jp=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Np=re("save",jp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Sp=re("search",wp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ap=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],px=re("send",Ap);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Ep=re("shield-alert",Cp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mo=re("shield-check",kp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],xx=re("shield",Tp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mp=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Ji=re("shopping-bag",Mp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zp=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],ho=re("shopping-cart",zp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _p=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],$i=re("sparkles",_p);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Op=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],fo=re("square-pen",Op);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dp=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Rp=re("terminal",Dp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Up=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Fi=re("trash-2",Up);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hp=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],As=re("upload",Hp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qp=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Bp=re("user",qp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lp=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Yp=re("video",Lp);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ra=re("x",Gp);function Qp({activeTab:C,setActiveTab:q,cartCount:L,onCartClick:x,settings:z}){const[U,F]=w.useState(!1),P=[{id:"home",label:"Home",icon:Cl},{id:"shop",label:"Shop Now",icon:Ji},{id:"cart",label:"Checkout",icon:bo},{id:"consultation",label:"AI Consultation",icon:$i},{id:"booking",label:"Book Appointment",icon:go}];return n.jsxs("header",{id:"header-root",className:"sticky top-0 z-40 w-full border-b border-accent-gold/20 bg-cream-bg/95 backdrop-blur-md",children:[n.jsx("div",{className:"bg-[#05140C] text-stone-300 text-[10px] md:text-[11px] py-2 px-4 border-b border-accent-gold/15 tracking-wide",children:n.jsxs("div",{className:"mx-auto max-w-7xl flex flex-col md:flex-row justify-between items-center gap-2 font-light",children:[n.jsxs("div",{className:"flex items-center space-x-2 truncate max-w-xs md:max-w-md lg:max-w-xl",children:[n.jsx("span",{className:"text-accent-gold font-serif italic hidden lg:inline",children:"Natural. Powerful. Authentic."}),n.jsx("span",{className:"text-stone-600 hidden lg:inline",children:"|"}),n.jsxs("span",{className:"truncate flex items-center gap-1.5",title:z.storeAddress,children:[n.jsx(Ki,{className:"h-3.5 w-3.5 text-accent-gold shrink-0 inline"}),n.jsx("span",{children:z.storeAddress})]})]}),n.jsxs("div",{className:"flex items-center space-x-4 shrink-0",children:[n.jsx("span",{className:"cursor-pointer hover:text-white transition",children:"Track Order"}),n.jsx("span",{className:"text-stone-700",children:"|"}),n.jsxs("span",{children:["Need help? ",n.jsx("a",{href:`tel:${z.storePhone}`,className:"font-semibold text-white hover:text-accent-gold transition ml-1",children:z.storePhone})]})]})]})}),n.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-4 py-4 md:px-8",children:[n.jsxs("div",{id:"brand-logo",className:"flex cursor-pointer items-center space-x-2.5 transition active:scale-95",onClick:()=>{q("home"),F(!1)},children:[n.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-primary-green border border-accent-gold/30 text-accent-gold shadow-xs",children:n.jsx(Cl,{className:"h-5.5 w-5.5 fill-[#134e2c]"})}),n.jsxs("div",{children:[n.jsx("span",{className:"font-serif text-base font-bold tracking-tight text-primary-green uppercase md:text-lg block leading-tight",children:"Mummy Ayofe"}),n.jsx("span",{className:"block text-[9px] tracking-[0.18em] text-[#6B5A43] uppercase font-bold",children:"HERBAL STORE"})]})]}),n.jsx("nav",{id:"desktop-nav",className:"hidden md:flex items-center space-x-8",children:P.map(E=>{const b=E.icon,V=C===E.id;return n.jsxs("button",{id:`nav-${E.id}`,onClick:()=>q(E.id),className:`flex items-center space-x-1.5 py-1 text-sm font-medium tracking-wide transition-all border-b-2 hover:text-primary-green ${V?"border-primary-green text-primary-green font-semibold":"border-transparent text-stone-600 hover:border-accent-gold/50"}`,children:[n.jsx(b,{className:"h-4 w-4 stroke-[1.8]"}),n.jsx("span",{children:E.label})]},E.id)})}),n.jsxs("div",{id:"header-actions",className:"flex items-center space-x-4",children:[n.jsxs("button",{id:"cart-trigger",onClick:x,className:"relative flex h-10 w-10 items-center justify-center rounded-full border border-accent-gold/30 bg-white shadow-xs transition hover:bg-cream-card hover:border-primary-green active:scale-95","aria-label":"Toggle Shopping Cart",children:[n.jsx(Ji,{className:"h-5 w-5 text-primary-green stroke-[1.8]"}),L>0&&n.jsx("span",{id:"cart-badge-count",className:"absolute -top-1 -right-1 flex h-5 w-5 items-center justify-center rounded-full bg-primary-green text-[10px] font-bold text-white ring-2 ring-white",children:L})]}),n.jsx("button",{id:"mobile-menu-btn",onClick:()=>F(!U),className:"flex h-10 w-10 items-center justify-center rounded-full border border-stone-200 bg-white text-stone-700 md:hidden active:scale-95 transition","aria-label":"Toggle Navigation Drawer",children:U?n.jsx(ra,{className:"h-5 w-5"}):n.jsx(xp,{className:"h-5 w-5"})})]})]}),U&&n.jsxs("div",{id:"mobile-nav-backdrop",className:"fixed inset-0 z-50 bg-stone-900/40 backdrop-blur-xs flex justify-start md:hidden overflow-y-auto",children:[n.jsxs("div",{id:"mobile-nav-panel",className:"w-full max-w-[280px] sm:max-w-xs bg-cream-bg min-h-screen h-fit flex flex-col justify-between p-6 border-r border-accent-gold/30 animate-in slide-in-from-left duration-300 shadow-2xl shrink-0",children:[n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-accent-gold/25",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-primary-green border border-accent-gold/30 text-accent-gold",children:n.jsx(Cl,{className:"h-4.5 w-4.5 fill-[#134e2c]"})}),n.jsxs("div",{children:[n.jsx("span",{className:"font-serif text-[13px] font-bold text-primary-green uppercase block leading-tight",children:"Mummy Ayofe"}),n.jsx("span",{className:"block text-[8px] tracking-wider text-[#6B5A43] uppercase font-bold",children:"HERBAL STORE"})]})]}),n.jsx("button",{onClick:()=>F(!1),className:"flex h-8 w-8 items-center justify-center rounded-full border border-stone-200 text-stone-700 hover:bg-white transition cursor-pointer","aria-label":"Close menu",children:n.jsx(ra,{className:"h-4 w-4"})})]}),n.jsxs("div",{className:"flex flex-col space-y-2.5",children:[n.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-[#8A7961] mb-1 px-1",children:"BRAND NAVIGATION"}),P.map(E=>{const b=E.icon,V=C===E.id;return n.jsxs("button",{id:`mobile-nav-${E.id}`,onClick:()=>{q(E.id),F(!1)},className:`flex items-center space-x-3.5 w-full rounded-xl px-4 py-2.5 text-sm font-medium transition-all cursor-pointer ${V?"bg-primary-green text-cream-bg font-semibold":"bg-white border border-accent-gold/15 text-stone-700 hover:bg-cream-card"}`,children:[n.jsx(b,{className:"h-4.5 w-4.5 stroke-[2]"}),n.jsx("span",{children:E.label})]},E.id)})]})]}),n.jsxs("div",{className:"pt-6 border-t border-accent-gold/20 flex flex-col space-y-2 mt-8",children:[n.jsxs("div",{className:"flex items-center justify-center space-x-2 text-stone-500 text-xs",children:[n.jsx(Cl,{className:"h-3.5 w-3.5 text-accent-gold"}),n.jsx("span",{children:"Premium African Botanical Science"})]}),n.jsx("p",{className:"text-center text-[10px] text-stone-400 px-2 line-clamp-2",title:z.storeAddress,children:z.storeAddress})]})]}),n.jsx("div",{className:"flex-grow min-h-full",onClick:()=>F(!1)})]})]})}function Xp({settings:C}){const[q,L]=w.useState(""),[x,z]=w.useState(!1),[U,F]=w.useState({storeAddress:"Plot 24B, Admiralty Way, Lekki Phase 1, Lagos, Nigeria",storePhone:"+234 908 445 1121",storeEmail:"wellness@eweandori.com"});w.useEffect(()=>{C||fetch("/api/settings").then(b=>b.json()).then(b=>{b&&F({storeAddress:b.storeAddress||"Plot 24B, Admiralty Way, Lekki Phase 1, Lagos, Nigeria",storePhone:b.storePhone||"+234 908 445 1121",storeEmail:b.storeEmail||"wellness@eweandori.com"})}).catch(b=>console.error("Error loading settings at footer:",b))},[C]);const P=C||U,E=b=>{b.preventDefault(),q.trim()&&(z(!0),L(""),setTimeout(()=>z(!1),5e3))};return n.jsxs("footer",{id:"footer-root",className:"bg-[#092013] text-stone-300 pt-16 pb-8 border-t-2 border-accent-gold/40",children:[n.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-8 grid grid-cols-1 md:grid-cols-4 gap-12 mb-16",children:[n.jsxs("div",{id:"footer-col-brand",className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-accent-gold text-primary-green border border-accent-gold/20",children:n.jsx(Cl,{className:"h-5 w-5 fill-[#0C301D]"})}),n.jsx("span",{className:"font-serif text-base font-bold tracking-tight text-white uppercase block leading-tight",children:"Mummy Ayofe"}),n.jsx("span",{className:"block text-[9px] tracking-widest text-[#C5A880] uppercase font-bold",children:"HERBAL STORE"})]}),n.jsx("p",{className:"text-stone-400 text-sm leading-relaxed",children:"Bridging ancient West African botanical wisdom with modern holistic wellness rituals. Premium, hand-crafted, entirely organic."}),n.jsxs("div",{className:"flex space-x-3 pt-2",children:[n.jsx("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer",className:"flex h-8 w-8 items-center justify-center rounded-full border border-stone-700 hover:border-accent-gold hover:text-accent-gold transition",children:n.jsx(sp,{className:"h-4 w-4"})}),n.jsx("a",{href:"https://tiktok.com",target:"_blank",rel:"noopener noreferrer",className:"flex h-8 w-8 items-center justify-center rounded-full border border-stone-700 hover:border-accent-gold hover:text-accent-gold transition",children:n.jsx(Yp,{className:"h-4 w-4"})})]})]}),n.jsxs("div",{id:"footer-col-links",className:"space-y-4",children:[n.jsx("h4",{className:"font-display text-white text-xs font-bold tracking-widest uppercase",children:"Wellness Ranges"}),n.jsxs("ul",{className:"space-y-2.5 text-sm text-stone-400",children:[n.jsx("li",{className:"hover:text-accent-gold transition cursor-pointer",children:"Herbal Vitality Teas"}),n.jsx("li",{className:"hover:text-accent-gold transition cursor-pointer",children:"Luxury Beauty & Skincare"}),n.jsx("li",{className:"hover:text-accent-gold transition cursor-pointer",children:"Organic Cold-Pressed Oils"}),n.jsx("li",{className:"hover:text-accent-gold transition cursor-pointer",children:"Purifying Lifestyle Concentrates"})]})]}),n.jsxs("div",{id:"footer-col-contact",className:"space-y-4",children:[n.jsx("h4",{className:"font-display text-white text-xs font-bold tracking-widest uppercase",children:"Lagos Flagship"}),n.jsxs("ul",{className:"space-y-3.5 text-sm text-stone-400",children:[n.jsxs("li",{className:"flex items-start space-x-2.5",children:[n.jsx(Ki,{className:"h-4 w-4 text-accent-gold shrink-0 mt-0.5"}),n.jsx("span",{children:P.storeAddress})]}),n.jsxs("li",{className:"flex items-center space-x-2.5",children:[n.jsx(pp,{className:"h-4 w-4 text-accent-gold shrink-0"}),n.jsx("span",{children:P.storePhone})]}),n.jsxs("li",{className:"flex items-center space-x-2.5",children:[n.jsx(dp,{className:"h-4 w-4 text-accent-gold shrink-0"}),n.jsx("span",{children:P.storeEmail})]})]})]}),n.jsxs("div",{id:"footer-col-newsletter",className:"space-y-4",children:[n.jsx("h4",{className:"font-display text-white text-xs font-bold tracking-widest uppercase",children:"The Wellness Circle"}),n.jsx("p",{className:"text-stone-400 text-sm",children:"Subscribe to receive herbal wisdom, exclusive launches, and traditional lifestyle wellness guides."}),n.jsxs("form",{onSubmit:E,className:"flex flex-col space-y-2",children:[n.jsxs("div",{className:"relative flex rounded-xl overflow-hidden border border-stone-700 focus-within:border-accent-gold bg-[#0e3a24]",children:[n.jsx("input",{type:"email",required:!0,placeholder:"Enter your email",className:"w-full bg-transparent px-3 py-2.5 text-sm text-white placeholder-stone-400 focus:outline-hidden",value:q,onChange:b=>L(b.target.value)}),n.jsx("button",{type:"submit",className:"bg-accent-gold hover:bg-accent-gold/90 text-primary-green px-4 flex items-center justify-center transition active:scale-95","aria-label":"Submit subscriber email",children:n.jsx(px,{className:"h-4 w-4"})})]}),x&&n.jsx("p",{className:"text-accent-gold text-xs font-medium animate-pulse",children:"Welcome to the circle! Check your inbox soon for wellness guides."})]})]})]}),n.jsxs("div",{className:"mx-auto max-w-7xl px-4 md:px-8 pt-8 border-t border-stone-800 text-center space-y-4",children:[n.jsx("div",{id:"compliance-banner",className:"bg-[#0e2d1d] border border-accent-gold/25 rounded-2xl p-4 max-w-4xl mx-auto",children:n.jsxs("p",{className:"text-[11px] md:text-xs text-stone-300 leading-relaxed italic",children:[n.jsx("strong",{children:"COMPLIANCE DISCLAIMER:"})," All Mummy Ayofe Herbal Store natural products are carefully prepared for holistic lifestyle and organic wellness support. Statements about benefits have not been evaluated by clinical regulatory boards. Products are not intended to diagnose, treat, cure, protect, or prevent any acute clinical disease. Individual outcomes and results can vary based on individual metabolic conditions. Let nature heal in harmony."]})}),n.jsxs("p",{className:"text-[11px] text-stone-500 tracking-wide",children:["© ",new Date().getFullYear()," Mummy Ayofe Herbal Store. Handcrafted African Luxury. Made in Nigeria. All Rights Reserved."]})]})]})}const Vp="/src/assets/images/mummy_ayofe_bags_1779911520990.png";function Zp({products:C,categories:q=[],setActiveTab:L,setSelectedProductId:x,onAddToCart:z,settings:U}){let F=(U==null?void 0:U.homepageImage)||"/images/homepage_model.png";F==="/images/model_homepage.jpg"&&(F="/images/homepage_model.png");let P=(U==null?void 0:U.ceoImage)||Vp;P==="/src/assets/images/mummy_ayofe_bags_1779911520990.png"&&(P="/images/ceo_image.png");const[E,b]=w.useState(15),[V,D]=w.useState("12:00 PM"),[le,Se]=w.useState(!1),[R,ce]=w.useState("all"),ge=G=>{localStorage.setItem("ayofe_selected_category",G),L("shop")},ye=G=>{x(G),L("shop")};return n.jsxs("div",{id:"home-view-root",className:"space-y-16 animate-in fade-in duration-300",children:[n.jsxs("section",{id:"hero-banner-area",className:"relative min-h-[85vh] flex items-center bg-[#071F11] text-[#FAF6EE] overflow-hidden py-16 px-4 md:px-8",children:[n.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_70%_30%,#114b28_0%,transparent_65%)] opacity-70"}),n.jsx("div",{className:"absolute top-0 right-0 w-1/2 h-full bg-cover bg-center mix-blend-luminosity opacity-25 hidden lg:block",style:{backgroundImage:"url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&q=80&w=1000')"}}),n.jsxs("div",{className:"relative mx-auto max-w-7xl w-full z-10 grid grid-cols-1 lg:grid-cols-12 gap-12 items-center",children:[n.jsxs("div",{className:"lg:col-span-8 space-y-7",children:[n.jsx("div",{className:"inline-flex items-center space-x-2 bg-[#092918] border border-accent-gold/25 rounded-full px-4 py-1.5 text-[10px] md:text-xs text-accent-gold font-bold tracking-widest uppercase",children:n.jsx("span",{children:"WELCOME TO MUMMY AYOFE HERBAL STORE"})}),n.jsxs("h1",{className:"font-serif text-4xl sm:text-5xl lg:text-7xl font-light leading-[1.12] tracking-tight text-white",children:["Nature’s ",n.jsx("span",{className:"italic font-light text-accent-gold font-serif",children:"Wisdom."})," ",n.jsx("br",{}),n.jsx("span",{className:"font-bold text-accent-gold font-serif",children:"Powerful Results."})]}),n.jsx("p",{className:"text-stone-300 text-sm md:text-base leading-relaxed max-w-2xl font-light",children:"Your trusted source for authentic herbal medicine, body enhancement, kayanmata and spiritual products. Sourced with the highest integrity to promote holistic restoration."}),n.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-4 pt-2",children:[n.jsx("button",{onClick:()=>L("shop"),className:"bg-accent-gold hover:bg-accent-gold/90 text-[#071F11] font-bold text-[11px] tracking-widest uppercase py-4 px-8 rounded-md transition-all active:scale-95 flex items-center justify-center gap-2 shadow-lg",children:n.jsx("span",{children:"Shop Now 🌿"})}),n.jsx("button",{onClick:()=>L("consultation"),className:"bg-transparent border border-[#FAF6EE]/30 hover:bg-[#FAF6EE]/10 hover:border-[#FAF6EE] text-white font-semibold text-[11px] tracking-widest uppercase py-4 px-8 rounded-md transition-all active:scale-95 text-center",children:"AI Consultation ➔"})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6 pt-10 border-t border-stone-800 max-w-4xl text-xs",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"h-9 w-9 rounded-full border border-accent-gold/30 flex items-center justify-center bg-stone-900/40 text-accent-gold shrink-0",children:n.jsx(Cl,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-bold text-white tracking-wide",children:"100% Natural"}),n.jsx("p",{className:"text-[10px] text-stone-400 font-light",children:"Pristine Ingredients"})]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"h-9 w-9 rounded-full border border-accent-gold/30 flex items-center justify-center bg-stone-900/40 text-accent-gold shrink-0",children:n.jsx(Bp,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-bold text-white tracking-wide",children:"Trusted by Thousands"}),n.jsx("p",{className:"text-[10px] text-stone-400 font-light",children:"Happy Patrons"})]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"h-9 w-9 rounded-full border border-accent-gold/30 flex items-center justify-center bg-stone-900/40 text-accent-gold shrink-0",children:n.jsx(xx,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-bold text-white tracking-wide",children:"Discrete & Confidential"}),n.jsx("p",{className:"text-[10px] text-stone-400 font-light",children:"Strict Private Shipping"})]})]})]})]}),n.jsx("div",{className:"lg:col-span-4 flex justify-center lg:justify-end w-full animate-in fade-in-50 slide-in-from-right-10 duration-1000",children:n.jsxs("div",{className:"relative group max-w-sm w-full md:max-w-md lg:max-w-full",children:[n.jsx("div",{className:"absolute -inset-2 bg-gradient-to-tr from-accent-gold/40 to-emerald-800/20 rounded-[36px] blur-xl opacity-40 group-hover:opacity-60 transition duration-700"}),n.jsxs("div",{className:"relative bg-[#092918] border border-accent-gold/35 rounded-[32px] p-3 shadow-2xl overflow-hidden aspect-[4/5] sm:aspect-[1/1] lg:aspect-[4/5] flex items-center justify-center",children:[n.jsx("img",{src:P,alt:"Mummy Ayofe - Founder and CEO of Mummy Ayofe Herbal Store holding official shopping packets",referrerPolicy:"no-referrer",className:"w-full h-full object-cover rounded-[24px] saturate-105 group-hover:scale-[1.03] transition-all duration-750 ease-out"}),n.jsxs("span",{className:"absolute top-6 right-6 bg-primary-green/90 backdrop-blur-sm border border-accent-gold/30 text-accent-gold text-[8.5px] font-mono tracking-widest px-3 py-1 rounded-full z-10 flex items-center gap-1.5 font-bold uppercase",children:[n.jsx("span",{className:"h-2 w-2 rounded-full bg-emerald-400 animate-ping"}),"Active Expert"]}),n.jsxs("div",{className:"absolute bottom-6 left-6 right-6 bg-black/75 backdrop-blur-md border border-accent-gold/25 rounded-2xl p-4 space-y-1 shadow-lg",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsx("span",{className:"text-[9px] font-mono tracking-wider text-accent-gold font-bold uppercase",children:"FOUNDER & HEAD BOTANIST"})}),n.jsx("h3",{className:"font-serif text-lg font-bold text-white tracking-wide",children:"Mummy Ayofe"}),n.jsx("p",{className:"text-[10.5px] text-stone-300 font-light leading-normal",children:"Fusing traditional West African pharmacopeia with clean modern organic extraction standards."})]})]})]})})]})]}),n.jsxs("section",{id:"shop-categories",className:"max-w-7xl mx-auto px-4 md:px-8 space-y-8",children:[n.jsxs("div",{className:"flex flex-col items-center justify-center text-center space-y-2",children:[n.jsxs("div",{className:"flex items-center space-x-3 text-[#8F7C63]",children:[n.jsx("div",{className:"h-px w-10 bg-accent-gold/40"}),n.jsx("span",{className:"text-[10px] uppercase font-bold tracking-widest font-mono",children:"SHOP BY CATEGORY"}),n.jsx("div",{className:"h-px w-10 bg-accent-gold/40"})]}),n.jsx("div",{className:"flex items-center justify-center text-accent-gold mb-1 text-xs",children:"✨ ✦ 🌿 ✦ ✨"})]}),n.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-7 xl:grid-cols-8 gap-4",children:q.map(G=>n.jsxs("div",{onClick:()=>ge(G.id),className:"group bg-white border border-accent-gold/15 rounded-2xl overflow-hidden cursor-pointer shadow-2xs hover:shadow-md hover:border-accent-gold/45 transition duration-300 flex flex-col items-center p-3 text-center space-y-3",children:[n.jsx("div",{className:"aspect-square w-full rounded-xl overflow-hidden bg-stone-50",children:n.jsx("img",{src:G.img,alt:G.label,className:"w-full h-full object-cover group-hover:scale-105 transition duration-500",referrerPolicy:"no-referrer"})}),n.jsxs("div",{className:"flex items-center justify-between w-full px-1",children:[n.jsx("span",{className:"font-serif text-[11.5px] font-bold text-stone-850 truncate shrink-0 pr-1",children:G.label}),n.jsx("span",{className:"text-stone-400 group-hover:text-primary-green transition text-xs font-mono font-bold shrink-0",children:"➔"})]})]},G.id))})]}),n.jsxs("section",{id:"featured-products-activated",className:"max-w-7xl mx-auto px-4 md:px-8 space-y-8",children:[n.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-4 border-b border-accent-gold/15 pb-5",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"flex items-center space-x-2 text-[#8F7C63]",children:[n.jsx("span",{className:"text-[10px] font-mono tracking-widest font-bold uppercase",children:"FEATURED REMEDIES"}),n.jsx("span",{className:"text-accent-gold",children:"•"}),n.jsx("span",{className:"text-[10px] font-serif italic text-accent-gold",children:"Now Fully Active"})]}),n.jsxs("h2",{className:"font-serif text-3xl font-light text-[#0A2917] tracking-tight",children:["Our Signature ",n.jsx("span",{className:"font-serif italic text-accent-gold",children:"Formulations"})]}),n.jsx("p",{className:"text-stone-550 text-xs font-light",children:"Explore active organic inventory and shop target remedies instantly using the classification tabs below."})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 overflow-x-auto pb-1 max-w-full md:max-w-xl lg:max-w-2xl shrink-0",children:[n.jsx("button",{onClick:()=>ce("all"),className:`px-4 py-2 text-xs font-serif font-bold tracking-wide rounded-full border transition-all active:scale-95 whitespace-nowrap cursor-pointer ${R==="all"?"bg-primary-green text-cream-bg border-primary-green shadow-xs":"bg-white border-accent-gold/20 text-stone-600 hover:border-accent-gold hover:text-primary-green"}`,children:"All Remedies"}),q.map(G=>n.jsx("button",{onClick:()=>ce(G.id),className:`px-4 py-2 text-xs font-serif font-bold tracking-wide rounded-full border transition-all active:scale-95 whitespace-nowrap cursor-pointer ${R===G.id?"bg-primary-green text-cream-bg border-primary-green shadow-xs":"bg-white border-accent-gold/20 text-stone-600 hover:border-accent-gold hover:text-primary-green"}`,children:G.label},G.id))]})]}),C.filter(G=>R==="all"||G.category===R).length===0?n.jsxs("div",{className:"text-center py-16 bg-cream-card border border-dashed border-accent-gold/25 rounded-3xl p-8 max-w-md mx-auto",children:[n.jsx("span",{className:"text-[#8F7C63] font-serif text-sm italic block",children:"No Remedies Registered Yet"}),n.jsx("p",{className:"text-stone-500 text-xs font-light mt-1",children:"There are currently no active botanical formulas cataloged under this category segment in the database."})]}):n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:C.filter(G=>R==="all"||G.category===R).slice(0,8).map(G=>n.jsxs("div",{className:"group bg-white border border-accent-gold/15 rounded-3xl p-3 flex flex-col justify-between hover:border-accent-gold/35 shadow-2xs hover:shadow-md transition-all duration-300",children:[n.jsxs("div",{className:"relative aspect-square w-full rounded-2xl overflow-hidden bg-stone-50 cursor-pointer",onClick:()=>{x(G.id),L("shop"),window.scrollTo({top:0,behavior:"smooth"})},children:[n.jsx("img",{src:G.image,alt:G.name,referrerPolicy:"no-referrer",className:"w-full h-full object-cover group-hover:scale-103 transition duration-500"}),G.isBestSeller&&n.jsx("span",{className:"absolute top-2.5 left-2.5 bg-[#7D1E1E] text-white text-[8px] font-bold tracking-widest uppercase px-2 py-0.5 rounded-full shadow-xs z-10",children:"BEST SELLER"}),n.jsxs("span",{className:"absolute bottom-2.5 left-2.5 bg-[#05140C]/90 text-accent-gold text-[8.5px] font-medium tracking-wide px-2 py-0.5 rounded-sm z-10",children:["₦",G.price.toLocaleString()]})]}),n.jsxs("div",{className:"space-y-2.5 pt-3 flex-grow flex flex-col justify-between",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsxs("div",{className:"flex items-center justify-between text-[10px] text-stone-400",children:[n.jsxs("span",{className:"font-mono",children:["IN STOCK: ",G.stock]}),n.jsx("div",{className:"flex items-center gap-0.5 text-amber-500",children:n.jsxs("span",{children:["★ ",G.rating]})})]}),n.jsx("h4",{className:"font-serif text-[12.5px] font-bold text-stone-850 leading-snug cursor-pointer hover:text-primary-green transition line-clamp-2",onClick:()=>{x(G.id),L("shop"),window.scrollTo({top:0,behavior:"smooth"})},children:G.name}),n.jsx("p",{className:"text-stone-550 text-[10.5px] font-light leading-relaxed line-clamp-2",children:G.description})]}),n.jsx("div",{className:"space-y-2 pt-2 border-t border-stone-100",children:n.jsxs("div",{className:"grid grid-cols-2 gap-1.5 pt-1",children:[n.jsx("button",{type:"button",onClick:()=>{z&&z(G,1)},className:"bg-primary-green hover:bg-[#15462c] text-white text-[9.5px] font-bold tracking-wider uppercase py-2 px-1 rounded-lg transition active:scale-95 cursor-pointer text-center",children:"Add to Cart"}),n.jsx("button",{type:"button",onClick:()=>{x(G.id),L("shop"),window.scrollTo({top:0,behavior:"smooth"})},className:"bg-[#FAF7F2] hover:bg-stone-100 border border-accent-gold/25 text-[#8F7C63] text-[9.5px] font-bold tracking-wider uppercase py-2 px-1 rounded-lg transition active:scale-95 cursor-pointer text-center",children:"View Details"})]})})]})]},G.id))})]}),n.jsxs("section",{id:"consultation-products-split",className:"max-w-7xl mx-auto px-4 md:px-8 grid grid-cols-1 lg:grid-cols-12 gap-8",children:[n.jsxs("div",{className:"lg:col-span-6 bg-white border border-accent-gold/20 rounded-3xl p-6 md:p-8 space-y-6 flex flex-col justify-between shadow-2xs hover:border-accent-gold/35 transition duration-300",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsx("span",{className:"text-[10px] font-mono tracking-widest font-bold text-accent-gold uppercase block",children:"AI HERBAL CONSULTATION"}),n.jsxs("h2",{className:"font-serif text-2xl sm:text-3xl font-normal text-primary-green leading-snug",children:["Get Personalised ",n.jsx("br",{}),"Recommendations"]}),n.jsx("p",{className:"text-stone-550 text-xs leading-relaxed font-light",children:"Our AI herbal consultant analyzes your wellness logs, physical requirements, and lifestyle preferences to recommend the best traditional formulations instantly."}),n.jsxs("ul",{className:"space-y-2.5 text-xs text-stone-600 pt-2",children:[n.jsxs("li",{className:"flex items-center gap-2.5",children:[n.jsx("span",{className:"h-5 w-5 rounded-full bg-[#FAF7F2] border border-accent-gold/15 text-primary-green flex items-center justify-center text-[10px] font-bold",children:"✓"}),n.jsx("span",{className:"font-light",children:"24/7 Premium AI Consultation Support"})]}),n.jsxs("li",{className:"flex items-center gap-2.5",children:[n.jsx("span",{className:"h-5 w-5 rounded-full bg-[#FAF7F2] border border-accent-gold/15 text-primary-green flex items-center justify-center text-[10px] font-bold",children:"✓"}),n.jsx("span",{className:"font-light",children:"Personalized Herbal Compound Recipes"})]}),n.jsxs("li",{className:"flex items-center gap-2.5",children:[n.jsx("span",{className:"h-5 w-5 rounded-full bg-[#FAF7F2] border border-accent-gold/15 text-primary-green flex items-center justify-center text-[10px] font-bold",children:"✓"}),n.jsx("span",{className:"font-light",children:"Private, Discrete, & Completely Confidential"})]})]})]}),n.jsxs("div",{className:"bg-[#FAF7F2] border border-accent-gold/15 rounded-2xl p-4 space-y-3.5 relative",children:[n.jsxs("div",{className:"flex items-center gap-2.5 pb-2.5 border-b border-accent-gold/10",children:[n.jsx("div",{className:"h-8 w-8 rounded-full bg-primary-green border border-accent-gold/30 flex items-center justify-center text-accent-gold font-serif text-xs shrink-0",children:"A"}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-[11px] font-bold text-stone-850 block leading-tight",children:"Mummy AYOFE AI"}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"}),n.jsx("span",{className:"text-[8px] text-emerald-700 uppercase font-mono tracking-wider font-semibold",children:"ONLINE ADVISOR"})]})]})]}),n.jsxs("div",{className:"space-y-3 font-sans text-[11px] leading-relaxed",children:[n.jsx("div",{className:"bg-white text-stone-700 rounded-2xl rounded-tl-sm p-3 border border-stone-200/50 max-w-[85%]",children:"Hello, I'm your AI herbal consultant. How can I help you today?"}),n.jsx("div",{className:"bg-[#EAE4DC] text-stone-800 rounded-2xl rounded-tr-sm p-3 ml-auto max-w-[85%] text-right font-medium",children:"I'm looking for something to improve my energy and stamina."}),n.jsxs("div",{className:"bg-white text-stone-700 rounded-2xl rounded-tl-sm p-3 border border-stone-200/50 max-w-[85%] space-y-2",children:[n.jsxs("p",{children:["Based on your needs, I recommend our ",n.jsx("b",{children:"Energy Boost Herbal Formula"})," and organic Ashwagandha Root complex."]}),n.jsxs("button",{type:"button",onClick:()=>ye("prod-1"),className:"bg-primary-green hover:bg-[#15462c] text-white px-3 py-1.5 rounded-lg text-[9px] font-bold tracking-widest uppercase flex items-center gap-1 cursor-pointer",children:[n.jsx("span",{children:"View Recommendation"}),n.jsx(Bh,{className:"h-3 w-3"})]})]})]}),n.jsxs("div",{className:"bg-white border border-[#EAE4DC] flex items-center justify-between rounded-xl px-3 py-2 text-[10px] text-stone-400",children:[n.jsx("span",{children:"Type your traditional blemish or sleep query..."}),n.jsx("span",{className:"text-primary-green text-xs font-bold leading-none",children:"➔"})]})]}),n.jsx("button",{onClick:()=>L("consultation"),className:"w-full bg-primary-green hover:bg-stone-900 text-[#FAF6EE] font-bold py-3 px-5 rounded-md text-[11px] uppercase tracking-widest transition cursor-pointer text-center",children:"Start Consultation"})]}),n.jsxs("div",{className:"lg:col-span-6 bg-white border border-accent-gold/20 rounded-3xl p-6 md:p-8 space-y-6 flex flex-col justify-between shadow-2xs hover:border-accent-gold/35 transition duration-300",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsx("span",{className:"text-[10px] font-mono tracking-widest font-bold text-accent-gold uppercase block",children:"WHY CHOOSE US"}),n.jsxs("h2",{className:"font-serif text-2xl sm:text-3xl font-bold text-primary-green leading-snug",children:["Experience. Knowledge. ",n.jsx("br",{}),"Results."]}),n.jsx("p",{className:"text-stone-550 text-xs leading-relaxed font-light",children:"With decades of traditional knowledge and thousands of certified clinic successes across Africa, we remain passionately committed to your wellness, organic beauty, and emotional peace."}),n.jsxs("ul",{className:"space-y-2.5 text-xs text-stone-600",children:[n.jsxs("li",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-[#8F7C63] font-bold",children:"✓"}),n.jsx("span",{className:"font-serif font-bold text-stone-850",children:"Decades of Authenticated Botanist Knowledge"})]}),n.jsxs("li",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-[#8F7C63] font-bold",children:"✓"}),n.jsx("span",{className:"font-serif font-bold text-stone-850",children:"Safe, Potent, & 100% Organic Recipes"})]}),n.jsxs("li",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-[#8F7C63] font-bold",children:"✓"}),n.jsx("span",{className:"font-serif font-bold text-stone-850",children:"Highest Level of Client Discretion Guaranteed"})]})]})]}),n.jsxs("div",{className:"relative aspect-[16/8] xl:aspect-[16/7] rounded-2xl overflow-hidden border border-accent-gold/15 bg-stone-50",children:[n.jsx("img",{src:F,alt:"Mummy Ayofe Brand Representative - Premium Natural Botanical Wellness",referrerPolicy:"no-referrer",className:"w-full h-full object-cover opacity-95 hover:scale-102 transition duration-500"}),n.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/55 via-transparent to-transparent flex items-end p-4",children:n.jsx("span",{className:"text-[10px] uppercase font-mono tracking-widest text-[#FAF6EE] font-bold font-serif",children:"Mummy Ayofe organic garden curation & botanical beauty"})})]})]})]}),n.jsx("section",{id:"values-grid-ribbon",className:"bg-[#0A2917] text-[#FAF6EE] py-6 border-y border-accent-gold/25",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 md:px-8 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 text-center lg:text-left",children:[n.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-3 px-4",children:[n.jsx("div",{className:"h-10 w-10 rounded-full border border-accent-gold/20 flex items-center justify-center bg-[#071F11] text-accent-gold shrink-0",children:n.jsx(Yh,{className:"h-5 w-5"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-xs font-bold uppercase tracking-wider text-white",children:"Authentic & Tested"}),n.jsx("p",{className:"text-[10px] text-stone-300 font-light mt-0.5",children:"Quality you can rely on"})]})]}),n.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-3 px-4",children:[n.jsx("div",{className:"h-10 w-10 rounded-full border border-accent-gold/20 flex items-center justify-center bg-[#071F11] text-accent-gold shrink-0",children:n.jsx(xx,{className:"h-5 w-5"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-xs font-bold uppercase tracking-wider text-white",children:"Secure Payments"}),n.jsx("p",{className:"text-[10px] text-stone-300 font-light mt-0.5",children:"Powered by Monnify"})]})]}),n.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-3 px-4",children:[n.jsx("div",{className:"h-10 w-10 rounded-full border border-accent-gold/20 flex items-center justify-center bg-[#071F11] text-accent-gold shrink-0",children:n.jsx(Cl,{className:"h-5 w-5"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-xs font-bold uppercase tracking-wider text-white",children:"Discreet Delivery"}),n.jsx("p",{className:"text-[10px] text-stone-300 font-light mt-0.5",children:"Nationwide sealed parcel"})]})]}),n.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-3 px-4",children:[n.jsx("div",{className:"h-10 w-10 rounded-full border border-accent-gold/20 flex items-center justify-center bg-[#071F11] text-accent-gold shrink-0",children:n.jsx(yo,{className:"h-5 w-5"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-xs font-bold uppercase tracking-wider text-white",children:"Private Consultation"}),n.jsx("p",{className:"text-[10px] text-stone-300 font-light mt-0.5",children:"Confidential & Professional"})]})]})]})}),n.jsxs("section",{id:"appointment-choose-us",className:"max-w-7xl mx-auto px-4 md:px-8 grid grid-cols-1 lg:grid-cols-12 gap-8",children:[n.jsxs("div",{className:"lg:col-span-6 bg-white border border-accent-gold/20 rounded-3xl p-6 md:p-8 space-y-6 shadow-2xs hover:border-accent-gold/35 transition duration-300",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx("span",{className:"text-[10px] font-mono tracking-widest font-bold text-accent-gold uppercase block",children:"BOOK AN APPOINTMENT"}),n.jsx("h2",{className:"font-serif text-2xl sm:text-3xl font-normal text-primary-green",children:"Speak with Mummy Ayofe"}),n.jsx("p",{className:"text-stone-500 text-xs leading-relaxed font-light",children:"Book a private one-on-one consultation with Mummy Ayofe for advanced organic remedies and personalized spiritual solutions."})]}),n.jsxs("div",{className:"border border-stone-200/50 rounded-2xl p-4 md:p-5 bg-[#FAF7F2] space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-accent-gold/10",children:[n.jsx("span",{className:"text-[10px] font-mono font-bold uppercase tracking-wider text-stone-400",children:"Select Date & Time"}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("button",{type:"button",className:"h-6 w-6 text-stone-500 hover:text-stone-800 disabled:opacity-30 flex items-center justify-center border border-stone-250 bg-white rounded-md",children:n.jsx(Vh,{className:"h-3 w-3"})}),n.jsx("span",{className:"text-xs font-semibold text-stone-850",children:"May 2025"}),n.jsx("button",{type:"button",className:"h-6 w-6 text-stone-500 hover:text-stone-800 flex items-center justify-center border border-stone-250 bg-white rounded-md",children:n.jsx(Ss,{className:"h-3 w-3"})})]})]}),n.jsxs("div",{className:"space-y-2.5",children:[n.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-[10px] font-medium text-stone-400 uppercase tracking-widest",children:[n.jsx("span",{children:"Sun"}),n.jsx("span",{children:"Mon"}),n.jsx("span",{children:"Tue"}),n.jsx("span",{children:"Wed"}),n.jsx("span",{children:"Thu"}),n.jsx("span",{children:"Fri"}),n.jsx("span",{children:"Sat"})]}),n.jsxs("div",{className:"grid grid-cols-7 gap-1.5 text-center text-xs",children:[n.jsx("span",{className:"py-1 text-stone-200",children:"27"}),n.jsx("span",{className:"py-1 text-stone-200",children:"28"}),n.jsx("span",{className:"py-1 text-stone-200",children:"29"}),n.jsx("span",{className:"py-1 text-stone-200",children:"30"}),[...Array(31)].map((G,B)=>{const ee=B+1,Ce=E===ee;return n.jsx("button",{type:"button",onClick:()=>{b(ee),Se(!1)},className:`py-1 rounded-lg font-mono text-[11px] font-bold text-center transition cursor-pointer ${Ce?"bg-primary-green text-white shadow-sm ring-1 ring-accent-gold":"bg-white hover:bg-stone-105 border border-stone-200/30 text-stone-700"}`,children:ee},ee)})]})]}),n.jsxs("div",{className:"space-y-1.5 pt-2 border-t border-accent-gold/10",children:[n.jsx("span",{className:"block text-[10px] uppercase font-bold tracking-widest text-[#8F7C63]",children:"Available Hours:"}),n.jsx("div",{className:"grid grid-cols-3 gap-2",children:["10:00 AM","12:00 PM","4:00 PM"].map(G=>{const B=V===G;return n.jsx("button",{type:"button",onClick:()=>{D(G),Se(!1)},className:`py-2 rounded-xl text-[10px] font-bold tracking-wider transition uppercase cursor-pointer text-center border ${B?"bg-primary-green border-primary-green text-white":"bg-white border-stone-200 text-stone-700 hover:border-stone-400"}`,children:G},G)})})]}),E&&V&&n.jsx("div",{className:"text-center pt-2",children:n.jsxs("span",{className:"text-[9.5px] font-mono font-bold text-[#8A7861]",children:["Selected Session: May ",E,", 2025 at ",V," (WAT)"]})})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("button",{onClick:()=>{Se(!0),setTimeout(()=>{L("booking"),window.scrollTo({top:0,behavior:"smooth"})},1500)},className:"w-full bg-primary-green hover:bg-[#15462c] text-[#FAF6EE] font-bold py-3.5 px-5 rounded-md text-[11px] tracking-widest uppercase transition cursor-pointer text-center",children:"Book Appointment"}),le&&n.jsx("p",{className:"text-emerald-700 font-semibold text-center text-xs animate-pulse",children:"Excellent choice! Navigating to appointment configuration..."})]})]}),n.jsxs("div",{className:"lg:col-span-6 bg-[#FAF7F2] border border-accent-gold/25 rounded-3xl p-6 md:p-8 space-y-6 flex flex-col justify-between shadow-2xs hover:border-accent-gold/40 transition duration-300",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsx("span",{className:"text-[10px] font-mono tracking-widest font-bold text-[#8F7C63] uppercase block",children:"PREPARING FOR YOUR SESSION"}),n.jsxs("h2",{className:"font-serif text-2xl sm:text-3xl font-light text-primary-green leading-snug",children:["Consultation ",n.jsx("span",{className:"font-serif italic text-accent-gold",children:"Rituals"})]}),n.jsx("p",{className:"text-stone-550 text-xs leading-relaxed font-light",children:"Each session is hosted directly by Mummy Ayofe over interactive video call or discrete audio channels. To ensure optimal guidance, please observe the preparation list."}),n.jsxs("div",{className:"space-y-4 pt-2",children:[n.jsxs("div",{className:"flex gap-3.5",children:[n.jsx("div",{className:"h-7 w-7 rounded-lg bg-white border border-accent-gold/20 flex items-center justify-center font-mono font-bold text-xs text-primary-green shrink-0 shadow-3xs",children:"1"}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-[11.5px] font-bold text-stone-850 leading-tight",children:"Catalog Your Wellness Logs"}),n.jsx("p",{className:"text-[10.5px] text-stone-500 font-light mt-0.5",children:"Note your physical fatigue, sleep patterns, skin logs, or emotional blockages before starting."})]})]}),n.jsxs("div",{className:"flex gap-3.5",children:[n.jsx("div",{className:"h-7 w-7 rounded-lg bg-white border border-accent-gold/20 flex items-center justify-center font-mono font-bold text-xs text-primary-green shrink-0 shadow-3xs",children:"2"}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-[11.5px] font-bold text-stone-850 leading-tight",children:"Private, Silent Environment"}),n.jsx("p",{className:"text-[10.5px] text-stone-500 font-light mt-0.5",children:"Choose a dedicated, discrete location free from secondary background noise for pure transparency."})]})]}),n.jsxs("div",{className:"flex gap-3.5",children:[n.jsx("div",{className:"h-7 w-7 rounded-lg bg-white border border-accent-gold/20 flex items-center justify-center font-mono font-bold text-xs text-primary-green shrink-0 shadow-3xs",children:"3"}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-[11.5px] font-bold text-stone-850 leading-tight",children:"Receive Your Formulations"}),n.jsx("p",{className:"text-[10.5px] text-stone-500 font-light mt-0.5",children:"Following the session, Mummy Ayofe's team will package your personalized remedies for express courier shipping."})]})]})]})]}),n.jsxs("div",{className:"bg-white border border-accent-gold/15 p-4 rounded-xl flex items-center gap-3",children:[n.jsx("div",{className:"h-8 w-8 rounded-full bg-emerald-50 text-emerald-800 flex items-center justify-center text-xs",children:"🔔"}),n.jsxs("p",{className:"text-[10.5px] text-stone-500 font-light",children:["Appointments are held strictly in ",n.jsx("b",{children:"West African Time (WAT)"}),". Please adjust your clock accordingly."]})]})]})]}),n.jsx("section",{id:"trust-stats-footer",className:"bg-[#05140C] text-accent-gold py-10 border-t border-accent-gold/20",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 md:px-8 grid grid-cols-2 md:grid-cols-4 gap-8",children:[n.jsxs("div",{className:"text-center space-y-1",children:[n.jsx("span",{className:"text-2xl sm:text-3.5xl font-serif text-white block",children:"10,000+"}),n.jsx("span",{className:"text-[9px] uppercase tracking-widest text-stone-400 font-mono font-bold block",children:"Happy Customers"})]}),n.jsxs("div",{className:"text-center space-y-1",children:[n.jsx("span",{className:"text-2xl sm:text-3.5xl font-serif text-white block",children:"98%"}),n.jsx("span",{className:"text-[9px] uppercase tracking-widest text-stone-400 font-mono font-bold block",children:"Positive Reviews"})]}),n.jsxs("div",{className:"text-center space-y-1",children:[n.jsx("span",{className:"text-2xl sm:text-3.5xl font-serif text-white block",children:"5+ Years"}),n.jsx("span",{className:"text-[9px] uppercase tracking-widest text-stone-400 font-mono font-bold block",children:"Trusted Experience"})]}),n.jsxs("div",{className:"text-center space-y-1",children:[n.jsx("span",{className:"text-2xl sm:text-3.5xl font-serif text-white block",children:"100%"}),n.jsx("span",{className:"text-[9px] uppercase tracking-widest text-stone-400 font-mono font-bold block",children:"Natural & Safe"})]})]})})]})}function Fp({products:C,categories:q=[],onAddToCart:L,isLoading:x,selectedProductId:z}){const[U,F]=w.useState(""),[P,E]=w.useState("all"),[b,V]=w.useState(null),[D,le]=w.useState(1),[Se,R]=w.useState(!1),ce=[{id:"all",label:"All Products"},...q];w.useEffect(()=>{const B=localStorage.getItem("ayofe_selected_category");B&&(E(B),localStorage.removeItem("ayofe_selected_category"))},[]),w.useEffect(()=>{if(z&&C.length>0){const B=C.find(ee=>ee.id===z);B&&(V(B),le(1))}},[z,C]);const ge=C.filter(B=>{const ee=P==="all"||B.category===P,Ce=B.name.toLowerCase().includes(U.toLowerCase())||B.description.toLowerCase().includes(U.toLowerCase())||B.ingredients.some(H=>H.toLowerCase().includes(U.toLowerCase()));return ee&&Ce}),ye=B=>{const ee=q.find(Ce=>Ce.id===B);return ee?ee.label:"Botanical"},G=B=>{const ee=encodeURIComponent(`Hello Mummy Ayofe Herbal Store! I would like to make an query about your "${B.name}" (₦${B.price.toLocaleString()}). Please send details about its usage and availability.`);window.open(`https://wa.me/2348051234567?text=${ee}`,"_blank")};return n.jsxs("section",{id:"shop-view-root",className:"py-12 px-4 md:px-8 max-w-7xl mx-auto min-h-screen",children:[n.jsxs("div",{id:"shop-filters-header",className:"text-center max-w-3xl mx-auto mb-12",children:[n.jsx("h1",{className:"font-display text-3xl md:text-4xl font-bold text-primary-green tracking-tight mb-3",children:"Explore Our Organic Apothecary"}),n.jsx("p",{className:"text-stone-600 text-sm md:text-base mb-8 font-light",children:"Purified herbal remedies sourced right from sustainable Nigerian farms and refined for your modern daily schedules."}),n.jsxs("div",{className:"relative max-w-xl mx-auto mb-6 shadow-sm rounded-full",children:[n.jsx(Sp,{className:"absolute left-4.5 top-3.5 h-5 w-5 text-stone-400"}),n.jsx("input",{type:"text",placeholder:"Search teas, whipped skin butter, ingredients, benefits...",className:"w-full bg-white border border-accent-gold/25 focus:border-primary-green focus:outline-hidden py-3 pl-12 pr-6 rounded-full text-sm text-stone-800 transition",value:U,onChange:B=>F(B.target.value)})]}),n.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2 pt-2",children:ce.map(B=>n.jsx("button",{onClick:()=>E(B.id),className:`px-4 py-2 text-xs md:text-sm font-medium tracking-wide rounded-full border transition active:scale-95 ${P===B.id?"bg-primary-green text-cream-bg border-primary-green font-semibold shadow-xs":"bg-white border-accent-gold/20 text-stone-600 hover:border-accent-gold hover:text-primary-green"}`,children:B.label},B.id))})]}),x?n.jsxs("div",{className:"flex flex-col items-center justify-center py-24 space-y-3",children:[n.jsx("div",{className:"h-10 w-10 border-4 border-accent-gold border-t-primary-green rounded-full animate-spin"}),n.jsx("span",{className:"text-stone-500 text-sm font-display tracking-widest font-medium animate-pulse",children:"LOADING BOTANICALS..."})]}):ge.length===0?n.jsxs("div",{className:"text-center py-20 bg-cream-card rounded-3xl border border-dashed border-accent-gold/30 p-8 max-w-lg mx-auto",children:[n.jsx(ll,{className:"h-12 w-12 text-accent-gold mx-auto mb-4"}),n.jsx("h3",{className:"font-display font-bold text-stone-800 text-lg mb-1",children:"No Remedies Found"}),n.jsx("p",{className:"text-stone-500 text-sm mb-6 font-light",children:"We couldn't locate any products matching your specific query. Try exploring other keywords."}),n.jsx("button",{onClick:()=>{F(""),E("all")},className:"text-white bg-primary-green hover:bg-[#14482c] px-6 py-2.5 rounded-full text-xs font-semibold tracking-wider uppercase transition shadow-xs",children:"Clear Search"})]}):n.jsx("div",{id:"product-grid",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:ge.map(B=>n.jsxs("div",{id:`prod-card-${B.id}`,className:"group bg-white rounded-3xl overflow-hidden border border-accent-gold/15 hover:border-accent-gold/40 shadow-xs hover:shadow-lg transition-all duration-300 flex flex-col justify-between",children:[n.jsxs("div",{className:"relative aspect-square overflow-hidden bg-stone-100",children:[n.jsx("img",{src:B.image,alt:B.name,referrerPolicy:"no-referrer",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}),B.isBestSeller&&n.jsx("span",{className:"absolute top-4 left-4 bg-[#7D1E1E] text-white text-[9px] font-bold tracking-widest uppercase px-3 py-1 rounded-full shadow-xs",children:"BEST SELLER"}),n.jsx("span",{className:"absolute bottom-4 left-4 bg-primary-green/90 text-[#FDFBF7] text-[9.5px] font-medium tracking-wide px-2.5 py-1 rounded-md",children:ye(B.category)}),B.stock===0&&n.jsx("div",{className:"absolute inset-0 bg-stone-900/60 backdrop-blur-xs flex items-center justify-center",children:n.jsx("span",{className:"bg-white text-stone-800 text-xs font-bold tracking-widest uppercase px-5 py-2.5 rounded-full shadow-md",children:"OUT OF STOCK"})}),B.stock>0&&n.jsxs("div",{className:"absolute inset-0 bg-primary-green/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center space-x-3",children:[n.jsx("button",{onClick:()=>{V(B),le(1)},className:"bg-white hover:bg-cream-card text-primary-green h-11 w-11 rounded-full flex items-center justify-center transition shadow-md hover:scale-105 active:scale-95",title:"Quick View Remedy",children:n.jsx(hx,{className:"h-5 w-5"})}),n.jsx("button",{onClick:()=>{L(B,1),R(!0),setTimeout(()=>R(!1),2e3)},className:"bg-accent-gold hover:bg-[#D4B68D] text-primary-green h-11 w-11 rounded-full flex items-center justify-center transition shadow-md hover:scale-105 active:scale-95",title:"Quick Add to Cart",children:n.jsx(ho,{className:"h-5 w-5"})})]})]}),n.jsxs("div",{className:"p-6 flex-grow flex flex-col justify-between",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsxs("span",{className:"text-stone-400 text-xs font-mono",children:["STOCK: ",B.stock," items"]}),n.jsxs("span",{className:"text-yellow-600 text-xs font-medium",children:["★ ",B.rating," (",B.reviewsCount,")"]})]}),n.jsx("h3",{className:"font-display font-semibold text-lg text-primary-green group-hover:text-[#1a5735] transition leading-snug mb-2",children:B.name}),n.jsx("p",{className:"text-stone-500 text-xs leading-relaxed line-clamp-2 font-light mb-4",children:B.description})]}),n.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-stone-100",children:[n.jsxs("span",{className:"font-display font-medium text-stone-900 text-lg",children:["₦",B.price.toLocaleString()]}),B.stock>0?n.jsx("button",{onClick:()=>{V(B),le(1)},className:"text-xs bg-[#FAF6EE] text-primary-green border border-accent-gold/30 hover:bg-primary-green hover:text-white px-4 py-2 rounded-xl font-medium tracking-wide transition active:scale-95",children:"Refine Options"}):n.jsx("button",{disabled:!0,className:"text-xs bg-stone-100 text-stone-400 px-4 py-2 rounded-xl font-medium cursor-not-allowed",children:"Unavailable"})]})]})]},B.id))}),b&&n.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-stone-900/60 backdrop-blur-md p-4 overflow-y-auto",children:n.jsxs("div",{id:"product-detail-modal",className:"bg-cream-bg rounded-3xl max-w-4xl w-full border border-accent-gold/35 shadow-2xl relative my-8 animate-in zoom-in-95 duration-200",children:[n.jsx("button",{id:"close-modal",onClick:()=>V(null),className:"absolute top-4 right-4 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-white/80 border border-stone-200 text-stone-700 hover:bg-white active:scale-95 transition",children:n.jsx(ra,{className:"h-5 w-5"})}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 max-h-[85vh] overflow-y-auto md:max-h-none",children:[n.jsx("div",{className:"space-y-4 p-6 md:p-8 bg-white flex items-center justify-center md:rounded-l-3xl",children:n.jsx("div",{className:"aspect-square w-full rounded-2xl overflow-hidden shadow-xs border border-accent-gold/10",children:n.jsx("img",{src:b.image,alt:b.name,referrerPolicy:"no-referrer",className:"w-full h-full object-cover"})})}),n.jsxs("div",{className:"p-6 md:p-8 flex flex-col justify-between max-h-[85vh] overflow-y-auto",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center space-x-2 text-stone-500 text-xs mb-2",children:[n.jsx("span",{className:"font-mono bg-cream-card border border-accent-gold/20 px-2.5 py-0.5 rounded-sm",children:ye(b.category).toUpperCase()}),n.jsx("span",{children:"•"}),n.jsxs("span",{children:["In Stock: ",b.stock]})]}),n.jsx("h2",{className:"font-display font-bold text-2xl text-primary-green tracking-tight leading-tight mb-3",children:b.name}),n.jsxs("div",{className:"text-xl font-display font-medium text-stone-900 mb-4",children:["₦",b.price.toLocaleString()]}),n.jsx("p",{className:"text-stone-600 text-xs leading-relaxed font-light mb-6",children:b.description}),n.jsxs("div",{className:"mb-4",children:[n.jsx("h4",{className:"font-display text-xs font-bold uppercase tracking-wider text-primary-green mb-2",children:"Ingredients"}),n.jsx("div",{className:"flex flex-wrap gap-1.5",children:b.ingredients.map((B,ee)=>n.jsx("span",{className:"bg-white border border-accent-gold/15 text-stone-600 text-[11px] px-2.5 py-1 rounded-md",children:B},ee))})]}),n.jsxs("div",{className:"mb-6",children:[n.jsx("h4",{className:"font-display text-xs font-bold uppercase tracking-wider text-primary-green mb-2.5",children:"Botanical Benefits"}),n.jsx("ul",{className:"space-y-1.5 text-xs text-stone-600",children:b.benefits.map((B,ee)=>n.jsxs("li",{className:"flex items-start space-x-2 font-light",children:[n.jsx(Cs,{className:"h-4.5 w-4.5 text-accent-gold shrink-0 mt-0.5"}),n.jsx("span",{children:B})]},ee))})]}),n.jsxs("div",{className:"bg-cream-card border border-accent-gold/15 rounded-xl p-4 mb-6",children:[n.jsx("h4",{className:"font-display text-[11px] font-bold uppercase tracking-wider text-[#7A6446] mb-1.5 flex items-center space-x-1",children:n.jsx("span",{children:"Usage & Ritual Guide"})}),n.jsx("p",{className:"text-stone-600 text-[11px] leading-relaxed font-light",children:b.usageGuide})]})]}),n.jsxs("div",{className:"border-t border-accent-gold/20 pt-6 space-y-3",children:[b.stock>0?n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"flex items-center border border-stone-300 rounded-xl bg-white overflow-hidden h-11 shrink-0",children:[n.jsx("button",{onClick:()=>le(Math.max(1,D-1)),className:"px-3.5 hover:bg-stone-50 text-stone-500 font-bold text-sm transition",children:"-"}),n.jsx("span",{className:"px-3 text-stone-800 text-sm font-semibold",children:D}),n.jsx("button",{onClick:()=>le(Math.min(b.stock,D+1)),className:"px-3.5 hover:bg-stone-50 text-stone-500 font-bold text-sm transition",children:"+"})]}),n.jsx("button",{onClick:()=>{L(b,D),R(!0),setTimeout(()=>{R(!1),V(null)},1e3)},className:"flex-grow bg-primary-green hover:bg-[#15462c] text-cream-bg font-semibold rounded-xl text-xs uppercase tracking-widest h-11 flex items-center justify-center space-x-2 shadow-xs transition active:scale-95",children:Se?n.jsxs(n.Fragment,{children:[n.jsx(Cs,{className:"h-4.5 w-4.5 text-accent-gold"}),n.jsx("span",{children:"Added to Cart!"})]}):n.jsxs(n.Fragment,{children:[n.jsx(ho,{className:"h-4.5 w-4.5"}),n.jsx("span",{children:"Add to Cart"})]})})]}):n.jsx("div",{className:"bg-stone-100 text-stone-500 rounded-xl p-3 text-center text-xs font-mono font-bold",children:"CURRENTLY OUT OF STOCK"}),n.jsxs("button",{onClick:()=>G(b),className:"w-full border border-emerald-600 hover:bg-emerald-50 text-emerald-800 rounded-xl text-[11px] font-bold tracking-widest uppercase h-10 flex items-center justify-center space-x-2 transition",children:[n.jsx(yo,{className:"h-4.5 w-4.5 text-emerald-600 fill-emerald-600/10"}),n.jsx("span",{children:"Inquire via WhatsApp Support"})]})]})]})]})]})})]})}function Kp({onSuggestBooking:C}){const[q,L]=w.useState("+234 908 445 1121");w.useEffect(()=>{fetch("/api/settings").then(R=>R.json()).then(R=>{R&&R.storePhone&&L(R.storePhone)}).catch(R=>console.error(R))},[]);const[x,z]=w.useState([{id:"wel-1",sender:"ai",text:"Ẹ n lẹ! Welcome to the premium Mummcy Ayofe Herbal Care AI consultation sanctuary. I am initialized with ancient West African botanical knowledge and family wisdom. Please let me know your symptoms, skincare challenges, digestive rhythms, or vital energy levels so that I can suggest organic solutions. How are you feeling today?",timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}]),[U,F]=w.useState(""),[P,E]=w.useState(!1),b=w.useRef(null),V=["What organic herbs support acne dry skin barriers?","How do I use Ewé Moringa Tea for premium energy?","Do you have remedies for digestion or bloated stomach?","Are these herbs 100% organic and steroid free?"];w.useEffect(()=>{var R;(R=b.current)==null||R.scrollIntoView({behavior:"smooth"})},[x]);const D=async R=>{if(!R.trim()||P)return;const ce={id:`msg-${Date.now()}`,sender:"user",text:R,timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})};z(ge=>[...ge,ce]),F(""),E(!0);try{const ge=await fetch("/api/gemini/consultation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[...x,ce],consultationType:"wellness"})});if(!ge.ok)throw new Error("Proxy error");const ye=await ge.json();z(G=>[...G,{id:`reply-${Date.now()}`,sender:"ai",text:ye.reply,timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}])}catch(ge){console.error(ge),z(ye=>[...ye,{id:`reply-err-${Date.now()}`,sender:"ai",text:`I am having trouble transmitting the data because premium connections are tight right now, but let me answer briefly based on traditional wisdom:

For premium metabolic vitality and skincare restoration, we recommend our **Ewé Moringa Premium Tea Blend** paired with applying **Ori Luxury Whipped Shea Butter** nightly on clean skin.

Herbal products are intended for general wellness support and individual metabolic results can vary. Please don't hesitate to reach our human medical experts on WhatsApp at ${q} for more custom guidance!`,timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}])}finally{E(!1)}},le=()=>{z([{id:"wel-1",sender:"ai",text:"Ẹ n lẹ! Chat has been cleared. Please specify what wellness topics (skin routine, energetic clarity, traditional herbs) you would like resolved today.",timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}])},Se=()=>{const R=encodeURIComponent("Hello Mummcy Ayofe support! I was just consulting with your AI Wellness Assistant and would like to proceed with human consultation about my lifestyle requirements."),ce=q.replace(/\D/g,"");window.open(`https://wa.me/${ce||"2349084451121"}?text=${R}`,"_blank")};return n.jsxs("section",{id:"consultation-view-root",className:"py-12 px-4 md:px-8 max-w-5xl mx-auto min-h-screen",children:[n.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10",children:[n.jsx("span",{className:"text-[10px] font-bold text-accent-gold uppercase tracking-widest bg-primary-green/15 px-3 py-1 rounded-full",children:"AI-Powered Herbology Guide"}),n.jsx("h1",{className:"font-serif text-3xl md:text-4xl font-normal text-primary-green mt-3.5",children:"Consult Our AI Wellness Sanctuary"}),n.jsx("p",{className:"text-stone-600 text-xs md:text-sm mt-2 font-light",children:"Get instantly matched with West African herbal formulas tailored precisely to your digestive schedules and skin health goals."})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-8",children:[n.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[n.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-2xl p-4.5 text-stone-700 space-y-3",children:[n.jsxs("div",{className:"flex items-center space-x-2 text-amber-800",children:[n.jsx(Ep,{className:"h-5 w-5 shrink-0"}),n.jsx("h4",{className:"text-xs font-bold uppercase tracking-wider",children:"Botanical Safety"})]}),n.jsx("p",{className:"text-[11px] leading-relaxed font-light",children:"Mummcy Ayofe AI does not replace clinical consultation or yield formal medical diagnosis. No products promise cure of chronic clinical illness. Use for premium wellness nourishment only."})]}),n.jsxs("div",{className:"bg-white border border-accent-gold/20 rounded-2xl p-4.5 space-y-3",children:[n.jsx("h4",{className:"font-display text-xs font-bold text-primary-green uppercase tracking-wide",children:"Human Diagnostics"}),n.jsx("p",{className:"text-[11px] text-stone-500 font-light leading-relaxed",children:"Prefer speaking down-to-earth with our lead botanist in our Lagos clinic instead?"}),n.jsxs("button",{onClick:Se,className:"w-full bg-emerald-600 hover:bg-emerald-500 text-white rounded-xl py-2.5 text-xs font-bold tracking-widest uppercase transition flex items-center justify-center space-x-1.5 active:scale-95",children:[n.jsx(yo,{className:"h-4.5 w-4.5 fill-white text-emerald-600"}),n.jsx("span",{children:"WhatsApp Direct"})]}),n.jsxs("button",{onClick:C,className:"w-full bg-cream-card hover:bg-cream-card/80 text-primary-green border border-accent-gold/25 rounded-xl py-2.5 text-xs font-bold tracking-widest uppercase transition flex items-center justify-center space-x-1.5 active:scale-95",children:[n.jsx(go,{className:"h-4 w-4"}),n.jsx("span",{children:"Book Appointment"})]})]})]}),n.jsxs("div",{className:"lg:col-span-3 flex flex-col justify-between bg-white border border-accent-gold/20 rounded-3xl overflow-hidden h-[73vh] shadow-xs",children:[n.jsxs("div",{className:"bg-primary-green text-[#FAF6EE] p-4 flex items-center justify-between border-b border-accent-gold/25",children:[n.jsxs("div",{className:"flex items-center space-x-2.5",children:[n.jsx("div",{className:"h-9 w-9 bg-accent-gold text-primary-green rounded-full flex items-center justify-center",children:n.jsx($i,{className:"h-4.5 w-4.5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-bold tracking-wide text-white uppercase",children:"Mummcy Ayofe Botanist AI"}),n.jsx("span",{className:"text-[9px] text-emerald-400 block font-medium",children:"● ONLINE & NURTURING"})]})]}),n.jsxs("button",{onClick:le,className:"text-[#FAF6EE]/75 hover:text-white transition-all text-[11px] uppercase tracking-wider font-semibold active:scale-95 flex items-center space-x-1",title:"Clear entire logs",children:[n.jsx(Nn,{className:"h-3 w-3"}),n.jsx("span",{children:"Clear"})]})]}),n.jsxs("div",{className:"flex-grow p-4 md:p-6 overflow-y-auto space-y-4 bg-cream-bg/25",children:[x.map(R=>{const ce=R.sender==="user";return n.jsx("div",{className:`flex ${ce?"justify-end animate-in slide-in-from-right-3 duration-200":"justify-start animate-in slide-in-from-left-3 duration-200"}`,children:n.jsxs("div",{className:`max-w-[85%] rounded-2xl px-4 py-3 text-xs md:text-sm shadow-2xs leading-relaxed ${ce?"bg-primary-green text-cream-bg rounded-br-none":"bg-white border border-accent-gold/20 text-[#2C2C2C] rounded-bl-none whitespace-pre-line"}`,children:[n.jsx("div",{children:R.text}),n.jsx("span",{className:`block text-[9px] mt-1.5 ${ce?"text-stone-300 text-right":"text-stone-400"}`,children:R.timestamp})]})},R.id)}),P&&n.jsx("div",{className:"flex justify-start items-center space-x-2",children:n.jsxs("div",{className:"bg-white border border-accent-gold/15 rounded-2xl px-4 py-3 text-xs text-stone-600 flex items-center space-x-2.5",children:[n.jsxs("div",{className:"flex space-x-1",children:[n.jsx("span",{className:"block h-1.5 w-1.5 bg-stone-500 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),n.jsx("span",{className:"block h-1.5 w-1.5 bg-stone-500 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),n.jsx("span",{className:"block h-1.5 w-1.5 bg-stone-500 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]}),n.jsx("span",{className:"italic font-light",children:"Assembling organic guidelines..."})]})}),n.jsx("div",{ref:b})]}),n.jsxs("div",{className:"px-4 py-2 border-t border-stone-100 bg-white",children:[n.jsx("span",{className:"text-[9px] uppercase tracking-widest font-bold text-stone-400 block mb-1.5",children:"Suggested Inquiries:"}),n.jsx("div",{className:"flex flex-wrap gap-1.5",children:V.map((R,ce)=>n.jsx("button",{onClick:()=>D(R),disabled:P,className:"bg-cream-card hover:bg-accent-gold/10 border border-accent-gold/20 text-stone-700 text-[10.5px] px-2.5 py-1 rounded-md transition text-left leading-tight active:scale-95 disabled:opacity-50",children:R},ce))})]}),n.jsxs("form",{onSubmit:R=>{R.preventDefault(),D(U)},className:"p-3 border-t border-accent-gold/20 bg-white flex items-center space-x-2",children:[n.jsx("input",{type:"text",required:!0,disabled:P,placeholder:"Ask about skin dryness, hair repair, energy boosters, pregnancy support...",className:"flex-grow bg-[#FAF8F5] border border-accent-gold/20 focus:outline-hidden focus:border-primary-green px-4 py-2.5 rounded-xl text-xs sm:text-sm text-stone-850",value:U,onChange:R=>F(R.target.value)}),n.jsx("button",{type:"submit",disabled:!U.trim()||P,className:"bg-primary-green hover:bg-[#114026] text-white p-2.5 rounded-xl transition flex items-center justify-center active:scale-95 disabled:opacity-40 shrink-0","aria-label":"Send Consultation input",children:n.jsx(px,{className:"h-4.5 w-4.5"})})]})]})]})]})}function Jp(){const[C,q]=w.useState("wellness"),[L,x]=w.useState(""),[z,U]=w.useState("10:00 AM"),[F,P]=w.useState(""),[E,b]=w.useState(""),[V,D]=w.useState(""),[le,Se]=w.useState(""),[R,ce]=w.useState(!1),[ge,ye]=w.useState(!1),[G,B]=w.useState([]),ee=["09:00 AM","10:00 AM","11:30 AM","01:00 PM","02:30 PM","04:00 PM"],Ce=async()=>{try{const K=await fetch("/api/bookings");if(K.ok){const De=await K.json();B(De.slice(-5).reverse())}}catch(K){console.error("Booking load mismatch",K)}};w.useEffect(()=>{Ce()},[]);const H=async K=>{if(K.preventDefault(),!(!L||!F||!E||!V)){ce(!0),ye(!1);try{(await fetch("/api/bookings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({consultationType:C,date:L,time:z,name:F,phone:E,email:V,details:le})})).ok&&(ye(!0),P(""),b(""),D(""),Se(""),x(""),Ce())}catch(De){console.error("Failed to commit booking:",De)}finally{ce(!1)}}},ae=K=>{switch(K){case"wellness":return"Yoruba Herbal Wellness Consultation";case"product":return"Tailored Product Formulation Matching";case"follow-up":return"Clinique Follow-up & Evaluation";default:return"Botanical Consulting"}};return n.jsxs("section",{id:"booking-view-root",className:"py-12 px-4 md:px-8 max-w-5xl mx-auto min-h-screen",children:[n.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-12",children:[n.jsx("span",{className:"text-[10px] tracking-widest font-bold text-accent-gold uppercase bg-primary-green/10 px-3.5 py-1.5 rounded-full",children:"CLINIC APPOINTMENTS"}),n.jsx("h1",{className:"font-serif text-3xl md:text-4xl font-normal text-primary-green mt-3",children:"Book Your Holistic consultation"}),n.jsx("p",{className:"text-stone-600 text-xs md:text-sm mt-2 font-light",children:"Visit or virtually call our premium flagship Lekki outlet. Get audited by certified skin specialists and Traditional Yoruba Herbal Doctors."})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-10 items-start",children:[n.jsxs("div",{className:"lg:col-span-3 bg-white border border-accent-gold/25 rounded-3xl p-6 md:p-8 shadow-xs",children:[ge&&n.jsxs("div",{className:"mb-6 bg-emerald-50 border border-emerald-300 rounded-2xl p-4 flex items-start space-x-3 text-stone-700 animate-in fade-in duration-300",children:[n.jsx(Oa,{className:"h-6 w-6 text-emerald-600 shrink-0 mt-0.5"}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-display font-bold text-emerald-800 text-sm",children:"Booking Successfully Submitted!"}),n.jsx("p",{className:"text-[11px] leading-relaxed mt-1 font-light",children:"A verification assistant is matching your date inside the Lagos flagship office catalog. You will receive an SMS confirmation log at the phone address provided shortly."})]})]}),n.jsxs("form",{onSubmit:H,className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-wider text-[#8F7C63] mb-2.5",children:"1. Select Consultation Category"}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[{id:"wellness",title:"Wellness Consultation",desc:"Diagnostic evaluation & food therapy guidelines."},{id:"product",title:"Product Formulation",desc:"Selecting and tailoring Whipped skin creams."},{id:"follow-up",title:"Follow-Up Session",desc:"A 20-minute wellness audit to verify bio levels."}].map(K=>n.jsxs("button",{type:"button",onClick:()=>q(K.id),className:`p-4 rounded-2xl text-left border transition active:scale-97 flex flex-col justify-between h-28 ${C===K.id?"bg-primary-green text-cream-bg border-primary-green shadow-xs":"bg-cream-bg/30 border-accent-gold/15 text-stone-700 hover:border-accent-gold"}`,children:[n.jsx("span",{className:"text-xs font-bold font-display leading-tight",children:K.title}),n.jsx("span",{className:`text-[9.5px] leading-relaxed mt-1 font-light ${C===K.id?"text-stone-300":"text-stone-500"}`,children:K.desc})]},K.id))})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-wider text-[#8F7C63] mb-1.5",children:"2. Select Desired Date"}),n.jsx("div",{className:"relative",children:n.jsx("input",{type:"date",required:!0,className:"w-full bg-[#FAF8F5] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-700 focus:outline-hidden focus:border-primary-green",value:L,onChange:K=>x(K.target.value)})})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-wider text-[#8F7C63] mb-1.5",children:"3. Choose Hourly Time Slot"}),n.jsx("select",{className:"w-full bg-[#FAF8F5] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-700 focus:outline-hidden focus:border-primary-green",value:z,onChange:K=>U(K.target.value),children:ee.map((K,De)=>n.jsx("option",{value:K,children:K},De))})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-wider text-[#8F7C63] -mb-1",children:"4. Enter Your Contact Details"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsx("div",{children:n.jsx("input",{type:"text",required:!0,placeholder:"Full Name (e.g. Adebayo Alao)",className:"w-full bg-[#FAF8F5] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750 focus:outline-hidden focus:border-primary-green",value:F,onChange:K=>P(K.target.value)})}),n.jsx("div",{children:n.jsx("input",{type:"tel",required:!0,placeholder:"Phone Number (e.g. +234 803 112 0000)",className:"w-full bg-[#FAF8F5] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750 focus:outline-hidden focus:border-primary-green",value:E,onChange:K=>b(K.target.value)})})]}),n.jsx("div",{children:n.jsx("input",{type:"email",required:!0,placeholder:"Email Address (e.g. adebayo@gmail.com)",className:"w-full bg-[#FAF8F5] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750 focus:outline-hidden focus:border-primary-green",value:V,onChange:K=>D(K.target.value)})}),n.jsx("div",{children:n.jsx("textarea",{placeholder:"Briefly describe your symptoms, skin conditions, dietary targets, or dynamic wellness priorities manually...",rows:4,className:"w-full bg-[#FAF8F5] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750 focus:outline-hidden focus:border-primary-green",value:le,onChange:K=>Se(K.target.value)})})]}),n.jsx("p",{className:"text-[10px] text-stone-400 italic font-light",children:"* By booking, you acknowledge that herbal support plans are auxiliary balancing aids, not strict medical interventions."}),n.jsx("button",{type:"submit",disabled:R,className:"w-full bg-primary-green hover:bg-[#154a2c] text-white font-semibold py-3.5 rounded-xl text-xs uppercase tracking-widest transition active:scale-95 disabled:opacity-50",children:R?"Registering with Clerks...":"Secure My Placement Slot"})]})]}),n.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[n.jsxs("div",{className:"bg-cream-card border border-accent-gold/25 rounded-3xl p-6 space-y-4",children:[n.jsxs("h4",{className:"font-display font-bold text-stone-800 text-sm tracking-wide flex items-center space-x-2",children:[n.jsx($h,{className:"h-4.5 w-4.5 text-accent-gold shrink-0"}),n.jsx("span",{children:"FLAGSHIP CLINIC TIMES"})]}),n.jsxs("div",{className:"space-y-4 text-xs text-stone-600 font-light leading-relaxed",children:[n.jsxs("div",{className:"flex justify-between border-b border-accent-gold/15 pb-2",children:[n.jsx("span",{children:"Monday - Friday"}),n.jsx("span",{className:"font-semibold text-stone-800",children:"08:00 AM - 06:00 PM"})]}),n.jsxs("div",{className:"flex justify-between border-b border-accent-gold/15 pb-2",children:[n.jsx("span",{children:"Saturday Sessions"}),n.jsx("span",{className:"font-semibold text-stone-800",children:"10:00 AM - 04:00 PM"})]}),n.jsxs("div",{className:"flex justify-between pb-1 text-red-700",children:[n.jsx("span",{children:"Sundays Office"}),n.jsx("span",{className:"font-semibold",children:"Closed (Yoruba Herbs R&D)"})]}),n.jsxs("p",{className:"text-[10px] text-stone-400 leading-normal pt-2",children:[n.jsx("strong",{children:"Virtual Consultations:"})," Choose Zoom or Phone call in the notes. We operate nationwide across Nigeria."]})]})]}),G.length>0&&n.jsxs("div",{className:"bg-white border border-accent-gold/15 rounded-3xl p-6.5 space-y-4 shadow-2xs max-h-80 overflow-y-auto",children:[n.jsxs("h4",{className:"font-display font-bold text-stone-800 text-xs tracking-wider uppercase flex items-center space-x-1",children:[n.jsx($i,{className:"h-4 w-4 text-accent-gold"}),n.jsx("span",{children:"Your Booking Slips"})]}),n.jsx("div",{className:"space-y-3",children:G.map(K=>n.jsxs("div",{className:"bg-[#FCFAF6] border border-accent-gold/10 rounded-xl p-3 text-[11px] leading-normal space-y-1",children:[n.jsxs("div",{className:"flex justify-between items-start font-medium text-stone-800",children:[n.jsx("span",{className:"text-primary-green line-clamp-1",children:ae(K.consultationType)}),n.jsx("span",{className:"bg-amber-100 text-amber-800 text-[8px] px-1.5 py-0.5 rounded-sm uppercase tracking-wider font-bold shrink-0",children:K.status})]}),n.jsxs("div",{className:"text-stone-500 font-light",children:["Date: ",n.jsx("strong",{className:"text-stone-700",children:K.date})," at ",n.jsx("strong",{className:"text-stone-700",children:K.time})]}),n.jsxs("div",{className:"text-stone-400 font-mono text-[9px]",children:["Slip: ",K.id.toUpperCase()]})]},K.id))})]})]})]})]})}function $p({products:C,onRefreshProducts:q,categories:L,onRefreshCategories:x,onSettingsSaved:z,settings:U}){var ut,Ga,Dn,Qa,rl;const[F,P]=w.useState(()=>{try{return sessionStorage.getItem("ayofe_admin_session")==="active"}catch{return!1}}),[E,b]=w.useState(""),[V,D]=w.useState(""),le=d=>{d.preventDefault(),D("");const T=E.trim().toLowerCase(),Y=((U==null?void 0:U.adminPassword)||"80512").toLowerCase();if(T===Y){try{sessionStorage.setItem("ayofe_admin_session","active")}catch(I){console.error(I)}P(!0),b("")}else D("Failed Authentication check. Please check Mummy Ayofe keys and try again.")},Se=()=>{try{sessionStorage.removeItem("ayofe_admin_session")}catch(d){console.error(d)}P(!1)},[R,ce]=w.useState("products"),[ge,ye]=w.useState([]),[G,B]=w.useState([]),[ee,Ce]=w.useState([]),[H,ae]=w.useState(null),[K,De]=w.useState(!1),[xt,Ie]=w.useState(!1),[Ae,dt]=w.useState(null),[k,se]=w.useState(()=>{try{const d=localStorage.getItem("mummcy_deploy_checklist");return d?JSON.parse(d):{secrets:!1,products:!0,build:!1,port:!0,ledger:!1}}catch{return{secrets:!1,products:!0,build:!1,port:!0,ledger:!1}}}),y=d=>{se(d),localStorage.setItem("mummcy_deploy_checklist",JSON.stringify(d))},[M,J]=w.useState(""),[ne,ve]=w.useState(!0),[u,j]=w.useState(!0),[O,Q]=w.useState("Sterling Bank PLC"),[te,oe]=w.useState("MUMMCY AYOFE HERBAL CARE LTD"),[me,Be]=w.useState("1024451121"),[Te,Tt]=w.useState(""),[al,nl]=w.useState(""),[oa,Mt]=w.useState(""),[El,_]=w.useState("Plot 24B, Admiralty Way, Lekki Phase 1, Lagos, Nigeria"),[Le,Qe]=w.useState("+234 908 445 1121"),[mt,Da]=w.useState("wellness@eweandori.com"),[da,Es]=w.useState("/images/model_homepage.jpg"),[wn,rt]=w.useState("/images/ceo_image.png"),[ks,Sn]=w.useState("admin"),[Ft,Kt]=w.useState([{id:"lagos-mainland",label:"Lagos Mainland",charge:2e3},{id:"lagos-island",label:"Lagos Island / Lekki",charge:3e3},{id:"abuja-fct",label:"Abuja / FCT Express",charge:4500},{id:"rivers-ph",label:"Rivers State (Port Harcourt)",charge:4e3},{id:"oyo-ibadan",label:"Oyo State (Ibadan)",charge:3e3},{id:"rest-of-nigeria",label:"Rest of Nigeria (Nationwide Shipping)",charge:5500}]),[Ra,Ts]=w.useState(!1),[Ms,zs]=w.useState(!1),[sl,at]=w.useState(null),[Jt,Pe]=w.useState(!1),[_s,An]=w.useState(""),[Os,kl]=w.useState(""),[ua,Tl]=w.useState(5e3),[Lt,il]=w.useState(""),[Ml,Cn]=w.useState(""),[En,fa]=w.useState(""),[zl,kn]=w.useState(""),[Tn,Ua]=w.useState(""),[Mn,xa]=w.useState(10),[Ha,qa]=w.useState(!1),[_l,zt]=w.useState(null),[et,Fe]=w.useState(!1),[Yt,Ol]=w.useState(""),[Ds,ma]=w.useState(""),[Ba,Gt]=w.useState(""),Dl=async(d,T)=>{const Y=new FormData;Y.append("image",d);try{const I=await fetch("/api/upload",{method:"POST",body:Y});if(I.ok){const ql=await I.json();T(ql.url)}else He("Failed to upload image to server.")}catch(I){console.error("Failed to upload file:",I),He("Network error during file upload.")}},[Rl,$t]=w.useState(null),[Ul,cl]=w.useState(""),[Xe,zn]=w.useState(""),ha=async()=>{try{const d=await fetch("/api/orders");if(d.ok){const I=await d.json();ye(I.reverse())}const T=await fetch("/api/bookings");if(T.ok){const I=await T.json();B(I.reverse())}const Y=await fetch("/api/faqs");if(Y.ok){const I=await Y.json();Ce(I)}}catch(d){console.error("Failed to load admin logs.",d)}},Wt=async()=>{De(!0);try{const d=await fetch("/api/setup/status");if(d.ok){const T=await d.json();ae(T),se(Y=>{var I;return{...Y,secrets:T.geminiKeySet,products:(((I=T.counts)==null?void 0:I.products)||0)>0}})}}catch(d){console.error("Failed to load setup diagnostics",d)}finally{De(!1)}},Hl=async()=>{Ie(!0),dt(null);try{const T=await(await fetch("/api/setup/test-gemini",{method:"POST"})).json();dt(T),T.success?(se(Y=>{const I={...Y,secrets:!0};return localStorage.setItem("mummcy_deploy_checklist",JSON.stringify(I)),I}),He("Gemini Handshake succeeded! API connection verified.")):He(`Gemini Handshake failed: ${T.error}`)}catch(d){console.error(d),dt({success:!1,error:d.message||String(d)})}finally{Ie(!1)}},Wi=async()=>{try{const d=await fetch("/api/settings");if(d.ok){const T=await d.json();ve(T.bankEnabled??!0),j(T.monnifyEnabled??!0),Q(T.bankName||"Sterling Bank PLC"),oe(T.accountName||"MUMMCY AYOFE HERBAL CARE LTD"),Be(T.accountNumber||"1024451121"),Tt(T.monnifyApiKey||""),nl(T.monnifyContractCode||""),Mt(T.monnifySecretKey||""),_(T.storeAddress||"Plot 24B, Admiralty Way, Lekki Phase 1, Lagos, Nigeria"),Qe(T.storePhone||"+234 908 445 1121"),Da(T.storeEmail||"wellness@eweandori.com"),Es(T.homepageImage||"/images/model_homepage.jpg"),rt(T.ceoImage==="/src/assets/images/mummy_ayofe_bags_1779911520990.png"?"/images/ceo_image.png":T.ceoImage||"/images/ceo_image.png"),Sn(T.adminPassword||"admin"),T.deliveryLocations&&T.deliveryLocations.length>0&&Kt(T.deliveryLocations)}}catch(d){console.error("Failed to load settings from server:",d)}},Rs=async d=>{d.preventDefault(),zs(!0);try{(await fetch("/api/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bankEnabled:ne,monnifyEnabled:u,bankName:O,accountName:te,accountNumber:me,monnifyApiKey:Te,monnifyContractCode:al,monnifySecretKey:oa,storeAddress:El,storePhone:Le,storeEmail:mt,homepageImage:da,ceoImage:wn,adminPassword:ks,deliveryLocations:Ft})})).ok?(He("Store settings and payment credentials saved successfully!"),z==null||z()):He("Failed to save store configurations.")}catch(T){console.error(T),He("Error saving payment settings.")}finally{zs(!1)}};w.useEffect(()=>{R==="setup"?(Wt(),Wi()):ha()},[R]);const He=d=>{J(d),setTimeout(()=>J(""),4e3)},Ii=async(d,T)=>{try{(await fetch(`/api/orders/${d}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:T})})).ok&&(He(`Order status modified to "${T.toUpperCase()}"`),ha())}catch(Y){console.error(Y)}},pa=async(d,T)=>{try{(await fetch(`/api/bookings/${d}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:T})})).ok&&(He(`Booking slot successfully changed to "${T.toUpperCase()}"`),ha())}catch(Y){console.error(Y)}},La=async d=>{if(confirm("Are you confident about removing this herbal product?"))try{(await fetch(`/api/products/${d}`,{method:"DELETE"})).ok&&(He("Remedy completely deleted."),q())}catch(T){console.error(T)}},Qt=async d=>{d.preventDefault();const T={name:_s,description:Os,price:Number(ua),image:Lt||"https://images.unsplash.com/photo-1620916566398-39f1143ab7be?auto=format&fit=crop&q=80&w=400",category:Ml,ingredients:En.split(",").map(Y=>Y.trim()).filter(Boolean),benefits:zl.split(`
`).map(Y=>Y.trim()).filter(Boolean),usageGuide:Tn,stock:Number(Mn),isBestSeller:Ha};try{if(sl){const Y=await fetch(`/api/products/${sl.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)});if(Y.ok)He("Remedy details updated."),at(null),q();else{const I=await Y.json();He(`Error updating: ${I.error||Y.statusText}`)}}else{const Y=await fetch("/api/products",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)});if(Y.ok)He("Fresh remedy registered."),Pe(!1),q();else{const I=await Y.json();He(`Error saving: ${I.error||Y.statusText}`)}}}catch(Y){console.error(Y),He(`Network error: ${Y.message}`)}},ht=async d=>{if(d.preventDefault(),!Yt.trim())return;const Y={id:Ds.trim()||Yt.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),label:Yt.trim(),img:Ba||"https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&q=80&w=300"};try{_l?(await fetch(`/api/categories/${_l.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)})).ok&&(He("Category metadata updated."),zt(null),x()):(await fetch("/api/categories",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)})).ok&&(He("Fresh dynamic category successfully customized."),Fe(!1),x()),Ol(""),ma(""),Gt("")}catch(I){console.error(I)}},Us=d=>{zt(d),Ol(d.label),ma(d.id),Gt(d.img)},Pi=async d=>{if(confirm("Are you confident about removing this herbal category? This could orphan existing remedies."))try{(await fetch(`/api/categories/${d}`,{method:"DELETE"})).ok&&(He("Category completely removed from Registry."),x())}catch(T){console.error(T)}},_n=d=>{at(d),An(d.name),kl(d.description),Tl(d.price),il(d.image),Cn(d.category),fa(d.ingredients.join(", ")),kn(d.benefits.join(`
`)),Ua(d.usageGuide),xa(d.stock),qa(d.isBestSeller),Pe(!0)},On=()=>{at(null),An(""),kl(""),Tl(8500),il(""),Cn("herbal-teas"),fa("Pure herbs"),kn(`Revitalizes system
Promotes complex skin glow`),Ua("Steep in hot boiling water for 5 minutes."),xa(20),qa(!1),Pe(!0)},Ya=async d=>{const T=[...ee];T[d]={...T[d],question:Ul,answer:Xe};try{(await fetch("/api/faqs",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)})).ok&&(He("FAQ content synchronized successfully."),$t(null),ha())}catch(Y){console.error(Y)}},ec=d=>{$t(d.id),cl(d.question),zn(d.answer)};return F?n.jsxs("section",{id:"admin-view-root",className:"py-12 px-4 md:px-8 max-w-7xl mx-auto min-h-screen animate-in fade-in duration-300",children:[n.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between border-b border-accent-gold/25 pb-6 mb-10 gap-4",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-[10px] font-bold tracking-widest text-[#8F7C63] uppercase block",children:"Mummy Ayofe Flagship Dashboard"}),n.jsx("h1",{className:"font-serif text-3xl font-normal text-primary-green mt-1",children:"Clinical Operations Room"}),n.jsx("p",{className:"text-stone-500 text-xs font-light leading-none mt-1.5",children:"Evaluate orders, authorize local bank transfers, update consultation lists, and fine tune Gemini FAQs."})]}),n.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[R==="products"&&n.jsxs("button",{onClick:On,className:"bg-accent-gold hover:bg-accent-gold/90 text-primary-green font-semibold py-2.5 px-5 rounded-xl text-xs uppercase tracking-widest flex items-center space-x-1.5 active:scale-95 transition cursor-pointer",children:[n.jsx(Zi,{className:"h-4 w-4"}),n.jsx("span",{children:"Add Fresh Remedy"})]}),n.jsx("button",{type:"button",onClick:Se,className:"bg-white hover:bg-stone-50 text-stone-700 border border-stone-250 font-bold py-2.5 px-4 rounded-xl text-[10px] uppercase tracking-widest flex items-center space-x-1 transition cursor-pointer",title:"Lock & Log out of Staff area",children:n.jsx("span",{children:"Lock Portal 🔒"})})]})]}),M&&n.jsxs("div",{className:"bg-emerald-50 text-emerald-800 border-emerald-200 border rounded-2xl p-4 mb-6 text-xs font-medium flex items-center space-x-2 animate-pulse",children:[n.jsx(Oa,{className:"h-5 w-5 text-emerald-600 shrink-0"}),n.jsx("span",{children:M})]}),n.jsx("div",{id:"admin-tabs",className:"flex flex-wrap border-b border-stone-200 mb-8 gap-2",children:[{id:"products",label:"Registry Products",count:C.length,icon:Ji},{id:"orders",label:"Orders Ledger",count:ge.length,icon:ap},{id:"bookings",label:"Clinique Appointments",count:G.length,icon:go},{id:"faqs",label:"AI FAQ Knowledge",count:ee.length,icon:$i},{id:"setup",label:"Deploy & Setup Guide",count:null,icon:mo}].map(d=>{const T=d.icon,Y=R===d.id;return n.jsxs("button",{onClick:()=>ce(d.id),className:`flex items-center space-x-2 px-4 py-3 text-xs md:text-sm font-semibold tracking-wide border-b-2 uppercase transition-all ${Y?"border-primary-green text-primary-green font-bold bg-cream-card/50 rounded-t-xl":"border-transparent text-stone-500 hover:text-primary-green hover:border-accent-gold"}`,children:[n.jsx(T,{className:"h-4.5 w-4.5 stroke-[1.8]"}),n.jsx("span",{children:d.label}),d.count!==null&&n.jsx("span",{className:"bg-stone-100 text-stone-600 h-5 px-1.5 rounded-full flex items-center justify-center font-mono text-[10px]",children:d.count})]},d.id)})}),R==="products"&&n.jsxs("div",{className:"space-y-10",children:[n.jsxs("div",{id:"admin-categories-panel",className:"bg-white border border-accent-gold/20 rounded-3xl p-6 shadow-2xs space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"font-serif text-lg text-primary-green font-normal",children:"Category Management"}),n.jsx("p",{className:"text-stone-500 text-[11px] mt-0.5",children:"Provide a true no-code layout to alter category names, handles, and custom cover images."})]}),n.jsxs("button",{type:"button",onClick:()=>{zt(null),Ol(""),ma(""),Gt(""),Fe(!0)},className:"bg-primary-green hover:bg-[#134E2C] text-cream-bg text-[10px] font-bold uppercase tracking-widest px-4 py-2.5 rounded-xl cursor-pointer transition active:scale-95 duration-150 flex items-center justify-center gap-1.5",children:[n.jsx(Zi,{className:"h-4 w-4"}),n.jsx("span",{children:"Add Category"})]})]}),n.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4",children:L.map(d=>n.jsxs("div",{className:"bg-[#FAF8F5] border border-stone-200/60 rounded-2xl p-3 flex flex-col justify-between space-y-3 group hover:border-accent-gold/45 transition duration-200",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"aspect-square rounded-xl overflow-hidden bg-stone-100",children:n.jsx("img",{src:d.img,alt:d.label,className:"w-full h-full object-cover",referrerPolicy:"no-referrer"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-[12px] font-bold text-stone-800 line-clamp-1",children:d.label}),n.jsxs("span",{className:"text-[9px] font-mono text-stone-400",children:["ID: ",d.id]})]})]}),n.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-stone-200/50",children:[n.jsxs("button",{type:"button",onClick:()=>{Us(d),Fe(!0)},className:"p-1 px-2.5 rounded-lg bg-stone-100 hover:bg-stone-200 text-stone-700 transition flex items-center gap-1 text-[10px] font-semibold",children:[n.jsx(fo,{className:"h-3 w-3"}),n.jsx("span",{children:"Edit"})]}),n.jsx("button",{type:"button",onClick:()=>Pi(d.id),className:"p-1 px-1.5 rounded-lg bg-stone-50 text-stone-400 hover:text-red-700 hover:bg-red-50 transition",title:"Delete category",children:n.jsx(Fi,{className:"h-3.5 w-3.5"})})]})]},d.id))})]}),n.jsxs("div",{id:"tab-products-panel",className:"bg-white border border-accent-gold/20 rounded-3xl overflow-hidden shadow-2xs",children:[n.jsxs("div",{className:"p-6 border-b border-accent-gold/15 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"font-serif text-lg text-primary-green font-normal",children:"Active Formula Catalog"}),n.jsx("p",{className:"text-stone-500 text-[11px] mt-0.5",children:"Refine, edit, stock-up, or decommission active botanical formulas."})]}),n.jsxs("button",{type:"button",onClick:On,className:"bg-accent-gold text-primary-green text-[10px] font-bold uppercase tracking-widest px-5 py-3 rounded-xl cursor-pointer transition active:scale-95 duration-150 flex items-center justify-center gap-1.5 shadow-xs hover:bg-amber-400",children:[n.jsx(Zi,{className:"h-4 w-4"}),n.jsx("span",{children:"Register New Formula"})]})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs border-collapse",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"bg-[#FAF7F2] text-stone-600 border-b border-accent-gold/15 font-bold uppercase tracking-wider text-[10px]",children:[n.jsx("th",{className:"p-4",children:"Remedy Info"}),n.jsx("th",{className:"p-4",children:"Category"}),n.jsx("th",{className:"p-4",children:"Price"}),n.jsx("th",{className:"p-4 text-center",children:"In Stock"}),n.jsx("th",{className:"p-4 text-center",children:"Bestseller"}),n.jsx("th",{className:"p-4 text-right",children:"Actions"})]})}),n.jsx("tbody",{className:"divide-y divide-stone-100",children:C.map(d=>n.jsxs("tr",{className:"hover:bg-cream-bg/35 transition",children:[n.jsx("td",{className:"p-4",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:d.image,alt:d.name,className:"h-10 w-10 object-cover rounded-md",referrerPolicy:"no-referrer"}),n.jsxs("div",{children:[n.jsx("strong",{className:"text-stone-800 font-display text-sm block",children:d.name}),n.jsxs("span",{className:"text-[10px] text-stone-400 font-mono",children:["ID: ",d.id]})]})]})}),n.jsx("td",{className:"p-4 capitalize text-stone-600",children:d.category?d.category.replace("-"," "):"Unspecified"}),n.jsxs("td",{className:"p-4 font-semibold text-stone-850",children:["₦",d.price.toLocaleString()]}),n.jsxs("td",{className:"p-4 font-mono text-center text-stone-700",children:[d.stock," units"]}),n.jsx("td",{className:"p-4 text-center",children:n.jsx("span",{className:`inline-block px-2 py-0.5 rounded-sm text-[9px] uppercase font-bold ${d.isBestSeller?"bg-[#7D1E1E]/10 text-[#7D1E1E]":"bg-stone-100 text-stone-400"}`,children:d.isBestSeller?"YES":"NO"})}),n.jsxs("td",{className:"p-4 text-right space-x-2",children:[n.jsx("button",{onClick:()=>_n(d),className:"p-1 text-stone-500 hover:text-primary-green transition cursor-pointer",title:"Edit parameters",children:n.jsx(fo,{className:"h-4 w-4"})}),n.jsx("button",{onClick:()=>La(d.id),className:"p-1 text-stone-400 hover:text-red-700 transition cursor-pointer",title:"Delete product",children:n.jsx(Fi,{className:"h-4 w-4"})})]})]},d.id))})]})})]})]}),R==="orders"&&n.jsx("div",{id:"tab-orders-panel",className:"space-y-6",children:ge.length===0?n.jsxs("div",{className:"text-center py-16 bg-white border border-accent-gold/20 rounded-3xl p-8 max-w-md mx-auto",children:[n.jsx(ll,{className:"h-10 w-10 text-accent-gold mx-auto mb-3"}),n.jsx("h4",{className:"font-display font-bold text-stone-800 text-base",children:"Ledger Empty"}),n.jsx("p",{className:"text-stone-500 text-xs font-light leading-relaxed mt-1",children:"Currently, no digital transaction orders have been logged in the Sterling / Monnify framework database."})]}):n.jsx("div",{className:"grid grid-cols-1 gap-6",children:ge.map(d=>{var T,Y;return n.jsxs("div",{className:"bg-white border border-accent-gold/20 rounded-3xl p-6 shadow-2xs space-y-4 hover:border-accent-gold/45 transition duration-300",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center pb-3 border-b border-accent-gold/15 gap-2",children:[n.jsxs("div",{className:"space-y-0.5",children:[n.jsx("span",{className:"text-[10px] uppercase font-mono tracking-widest text-[#8F7C63]",children:"ORDER LEDGER RECORD"}),n.jsxs("h3",{className:"font-serif text-lg text-primary-green font-bold flex items-center space-x-1.5",children:[n.jsxs("span",{className:"font-mono text-[#961F1F]",children:["#",d.orderNumber]}),n.jsx("span",{className:"text-stone-400 h-1.5 w-1.5 rounded-full bg-stone-300 block"}),n.jsx("span",{className:"text-stone-700 font-sans text-xs font-light",children:new Date(d.orderDate).toLocaleDateString()})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:`px-3 py-1 text-[9px] uppercase tracking-wider font-bold rounded-full ${d.status==="pending-verification"?"bg-amber-100 text-amber-800 border border-amber-300":d.status==="processing"?"bg-blue-100 text-blue-800":d.status==="dispatched"?"bg-indigo-100 text-indigo-800":"bg-emerald-100 text-emerald-800"}`,children:d.status.replace("-"," ")}),n.jsxs("select",{className:"bg-stone-50 border border-stone-200 text-[10px] rounded-lg px-2 py-1 font-semibold text-stone-700 focus:outline-hidden focus:border-primary-green",value:d.status,onChange:I=>Ii(d.id,I.target.value),children:[n.jsx("option",{value:"pending-verification",children:"Pending Verify"}),n.jsx("option",{value:"processing",children:"Processing"}),n.jsx("option",{value:"dispatched",children:"Dispatched"}),n.jsx("option",{value:"completed",children:"Completed"})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 text-xs",children:[n.jsxs("div",{className:"space-y-2 bg-[#FCFAF6] border border-accent-gold/10 p-4 rounded-2xl",children:[n.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-stone-400",children:"Customer Details"}),n.jsxs("div",{className:"space-y-1",children:[n.jsx("div",{className:"font-bold text-stone-850",children:d.customerName}),n.jsx("div",{className:"text-stone-600",children:d.customerPhone}),n.jsx("div",{className:"text-stone-500 font-light select-all",children:d.customerEmail})]})]}),n.jsxs("div",{className:"space-y-2 bg-[#FCFAF6] border border-accent-gold/10 p-4 rounded-2xl col-span-1 md:col-span-2",children:[n.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-stone-400",children:"Delivery Address Coordinates"}),n.jsxs("p",{className:"text-stone-700 font-light leading-relaxed",children:[d.deliveryAddress||d.deliveryLocation||"No Address Provided"," ",n.jsx("br",{}),n.jsxs("strong",{className:"text-[9.5px] uppercase tracking-widest text-stone-400 font-bold block mt-1",children:["LOGISTICS STATE: ",((T=d.state)==null?void 0:T.toUpperCase())||"N/A"]})]})]})]}),n.jsxs("div",{className:"bg-stone-50/50 rounded-2xl p-4.5 border border-stone-100",children:[n.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-stone-400 block mb-2",children:"Package Items"}),n.jsxs("div",{className:"space-y-2 text-xs",children:[d.items.map((I,ql)=>n.jsxs("div",{className:"flex justify-between font-light",children:[n.jsxs("span",{className:"text-stone-700 font-medium",children:[I.name," ",n.jsxs("span",{className:"font-normal text-stone-400 font-mono text-[10px]",children:["x",I.quantity]})]}),n.jsxs("span",{className:"text-stone-902",children:["₦",(I.price*I.quantity).toLocaleString()]})]},ql)),n.jsxs("div",{className:"flex justify-between text-stone-500 border-t border-dashed border-stone-250 pt-2 text-[11px]",children:[n.jsx("span",{children:"Logistics Cargo Charge"}),n.jsxs("span",{children:["₦",((Y=d.deliveryFee)==null?void 0:Y.toLocaleString())||"0"]})]}),n.jsxs("div",{className:"flex justify-between font-display text-sm font-bold text-primary-green pt-1.5",children:[n.jsx("span",{children:"Grand Cash Amount"}),n.jsxs("span",{children:["₦",d.totalAmount.toLocaleString()]})]})]})]}),d.paymentMethod==="bank-transfer"&&n.jsxs("div",{className:"bg-[#FAF7F2] border border-amber-250 rounded-2xl p-4.5 space-y-3",children:[n.jsx("span",{className:"text-[10px] tracking-widest font-mono text-amber-700 block font-bold",children:"LOCAL BANK TRANSFER PROOF"}),d.paymentProof?n.jsxs("div",{className:"space-y-2",children:[n.jsx("p",{className:"text-[11px] text-stone-605",children:"This transaction receipt screenshot was uploaded by the checkout client from the billing portal. Verify matching cash transfer inside your bank ledger."}),n.jsxs("div",{className:"relative max-w-xs border border-accent-gold/30 rounded-lg overflow-hidden max-h-48 shadow-2xs group cursor-pointer bg-white",children:[n.jsx("img",{src:d.paymentProof,alt:"Transaction attachment proof",className:"w-full object-contain max-h-48 group-hover:scale-101 transition duration-200"}),n.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-stone-900/60 p-2 text-center",children:n.jsx("a",{href:d.paymentProof,download:`Proof_${d.orderNumber}.jpg`,className:"text-white text-[10px] uppercase tracking-wider font-semibold hover:underline",children:"Download High Resolution Proof"})})]})]}):n.jsxs("div",{className:"flex items-center space-x-2 text-red-700 text-[11px] font-medium leading-none",children:[n.jsx(ll,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{children:"Warning: No transaction receipt upload was captured. Proceed with cautious scrutiny."})]})]})]},d.id)})})}),R==="bookings"&&n.jsx("div",{id:"tab-bookings-panel",className:"bg-white border border-accent-gold/20 rounded-3xl overflow-hidden shadow-2xs",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs border-collapse",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"bg-[#FAF7F2] text-stone-600 border-b border-accent-gold/15 font-bold uppercase tracking-wider text-[10px]",children:[n.jsx("th",{className:"p-4",children:"Customer info"}),n.jsx("th",{className:"p-4",children:"Consultation"}),n.jsx("th",{className:"p-4",children:"Date / Time"}),n.jsx("th",{className:"p-4",children:"Patient Request Notes"}),n.jsx("th",{className:"p-4 text-center",children:"Slot Status"}),n.jsx("th",{className:"p-4 text-right",children:"Authorize status"})]})}),n.jsx("tbody",{className:"divide-y divide-stone-150 text-stone-800",children:G.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"p-8 text-center text-stone-400 font-light",children:"Currently no scheduling slots booked. Tell patrons to register in the appointments clinic page."})}):G.map(d=>n.jsxs("tr",{className:"hover:bg-cream-bg/35 transition",children:[n.jsxs("td",{className:"p-4",children:[n.jsx("strong",{className:"text-stone-800 font-bold block",children:d.name}),n.jsx("span",{className:"block text-stone-500 font-mono mt-0.5",children:d.phone}),n.jsx("span",{className:"block text-stone-400 text-[10px] select-all font-light",children:d.email})]}),n.jsx("td",{className:"p-4 capitalize text-stone-700 font-semibold",children:d.consultationType}),n.jsxs("td",{className:"p-4",children:[n.jsx("strong",{className:"text-stone-800 block",children:d.date}),n.jsx("span",{className:"text-stone-500",children:d.time})]}),n.jsx("td",{className:"p-4 font-light max-w-xs truncate",title:d.details,children:d.details||n.jsx("span",{className:"text-stone-400 italic",children:"No notes"})}),n.jsx("td",{className:"p-4 text-center",children:n.jsx("span",{className:`inline-block px-2.5 py-0.5 rounded-full text-[9px] uppercase tracking-wider font-bold ${d.status==="confirmed"?"bg-emerald-100 text-emerald-800":d.status==="completed"?"bg-stone-100 text-stone-505":"bg-amber-100 text-amber-805"}`,children:d.status})}),n.jsx("td",{className:"p-4 text-right space-y-1",children:n.jsxs("div",{className:"flex flex-col sm:flex-row gap-1 items-end justify-end",children:[n.jsx("button",{onClick:()=>pa(d.id,"confirmed"),className:"bg-emerald-600 hover:bg-emerald-500 text-white rounded px-2 py-1 text-[9px] uppercase font-bold text-center tracking-wider transition",children:"Approve"}),n.jsx("button",{onClick:()=>pa(d.id,"completed"),className:"bg-stone-200 hover:bg-stone-300 text-stone-805 rounded px-2 py-1 text-[9px] uppercase font-bold text-center tracking-wider transition",children:"Mark Done"})]})})]},d.id))})]})})}),R==="faqs"&&n.jsxs("div",{id:"tab-faqs-panel",className:"space-y-6",children:[n.jsxs("div",{className:"bg-[#FAF7F2] border border-accent-gold/25 rounded-2xl p-4 text-xs text-stone-700",children:[n.jsx("strong",{children:"GUIDELINE CONTEXT PREVIEW:"})," These preset question records are served immediately to the server-side Gemini AI model prompt. Whenever a customer types an query matching skin conditions or tea dosage guide, Gemini scans these preset pairs to formulate safe, non-medical answers."]}),n.jsx("div",{className:"grid grid-cols-1 gap-4",children:ee.map((d,T)=>n.jsx("div",{className:"bg-white border border-accent-gold/15 rounded-2xl p-5 space-y-3 shadow-2xs hover:border-accent-gold/35 transition",children:Rl===d.id?n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-wider text-stone-400 mb-1",children:"Editing Question"}),n.jsx("input",{type:"text",className:"w-full bg-[#FAF8F5] border border-accent-gold/25 rounded-xl px-3 py-2 text-xs font-semibold text-stone-800",value:Ul,onChange:Y=>cl(Y.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-wider text-stone-400 mb-1",children:"Editing Answer"}),n.jsx("textarea",{rows:3,className:"w-full bg-[#FAF8F5] border border-accent-gold/25 rounded-xl px-3 py-2 text-xs text-stone-800 leading-relaxed font-light",value:Xe,onChange:Y=>zn(Y.target.value)})]}),n.jsxs("div",{className:"flex space-x-2 justify-end",children:[n.jsx("button",{onClick:()=>$t(null),className:"text-xs text-stone-400 hover:text-stone-600 px-3 py-1.5 transition uppercase font-semibold",children:"Abort"}),n.jsx("button",{onClick:()=>Ya(T),className:"bg-primary-green text-white text-xs font-semibold px-4 py-1.5 rounded-lg active:scale-95 transition",children:"Keep Changes"})]})]}):n.jsxs("div",{children:[n.jsxs("div",{className:"flex justify-between items-start mb-2.5",children:[n.jsxs("h4",{className:"font-display font-semibold text-[#8C7A62] text-xs uppercase tracking-wide",children:["Q: ",d.question]}),n.jsx("button",{onClick:()=>ec(d),className:"text-stone-400 hover:text-primary-green transition",title:"Modify FAQ text",children:n.jsx(fo,{className:"h-4 w-4"})})]}),n.jsxs("p",{className:"text-stone-600 text-xs leading-relaxed font-light",children:["A: ",d.answer]})]})},d.id))})]}),R==="setup"&&n.jsxs("div",{id:"tab-setup-panel",className:"space-y-8 animate-in fade-in slide-in-from-bottom duration-300",children:[n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:[n.jsxs("div",{className:"bg-white border border-accent-gold/20 rounded-3xl p-6 shadow-2xs hover:border-accent-gold/40 transition duration-300 flex flex-col justify-between",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"bg-[#FAF7F2] p-2.5 rounded-2xl border border-accent-gold/15",children:n.jsx(fx,{className:"h-5 w-5 text-accent-gold"})}),H!=null&&H.geminiKeySet?n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-emerald-100 text-emerald-800 border border-emerald-250 flex items-center gap-1",children:[n.jsx(Oa,{className:"h-3 w-3"})," Configured"]}):n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-amber-100 text-amber-800 border border-amber-250 flex items-center gap-1",children:[n.jsx(ll,{className:"h-3 w-3 animate-pulse"})," Simulated Mode"]})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-lg text-stone-850 font-bold block",children:"Gemini API Key"}),n.jsx("p",{className:"text-stone-500 text-[11px] leading-relaxed mt-1",children:"Authenticates server-side consultation queries, allowing the AI botanical assistant to access modern models securely."})]}),n.jsx("div",{className:"pt-2",children:H?n.jsxs("div",{className:"space-y-1 bg-stone-50 p-3 rounded-xl border border-stone-105 font-mono text-[10px] text-stone-600",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Environment Key:"}),n.jsx("span",{className:"font-bold text-stone-800",children:"GEMINI_API_KEY"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Format Match:"}),n.jsx("span",{className:H.geminiKeyFormatValid?"text-emerald-700 font-bold":"text-amber-700 font-bold",children:H.geminiKeyFormatValid?"Valid (AIzaSy prefix)":"Simulated Mode"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Model Selection:"}),n.jsx("span",{className:"text-primary-green font-bold",children:"gemini-3.5-flash"})]})]}):n.jsx("div",{className:"h-16 animate-pulse bg-stone-100 rounded-xl"})})]}),n.jsx("div",{className:"pt-4 border-t border-dashed border-stone-100 mt-4",children:n.jsx("button",{onClick:Hl,disabled:xt,className:"w-full bg-primary-green hover:bg-stone-900 cursor-pointer text-[#FAF6EE] font-semibold py-2 px-4 rounded-xl text-[11px] uppercase tracking-widest flex items-center justify-center gap-2 active:scale-95 transition disabled:opacity-50",children:xt?n.jsxs(n.Fragment,{children:[n.jsx(Nn,{className:"h-3 w-3 animate-spin"}),n.jsx("span",{children:"Testing Handshake..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(Hh,{className:"h-3.5 w-3.5"}),n.jsx("span",{children:"Test Gemini Connection"})]})})})]}),n.jsxs("div",{className:"bg-white border border-accent-gold/20 rounded-3xl p-6 shadow-2xs hover:border-accent-gold/40 transition duration-300 flex flex-col justify-between",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"bg-[#FAF7F2] p-2.5 rounded-2xl border border-accent-gold/15",children:n.jsx(ux,{className:"h-5 w-5 text-[#8F7C63]"})}),(H==null?void 0:H.dbStatus)==="connected"?n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-emerald-100 text-emerald-800 border border-emerald-250 flex items-center gap-1",children:[n.jsx(Oa,{className:"h-3 w-3"})," Connect Ok"]}):n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-red-100 text-red-800 border border-red-250 flex items-center gap-1",children:[n.jsx(ll,{className:"h-3 w-3"})," Connect Err"]})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-lg text-stone-850 font-bold block",children:"Database Ledger Storage"}),n.jsx("p",{className:"text-stone-500 text-[11px] leading-relaxed mt-1",children:"Stores orders, consultation slot bookings, product inventories, and customized FAQs with local persistence."})]}),n.jsx("div",{className:"pt-2",children:H?n.jsxs("div",{className:"space-y-1 bg-stone-50 p-3 rounded-xl border border-stone-105 font-mono text-[10px] text-stone-600",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Database Engine:"}),n.jsx("span",{className:"font-bold text-stone-700",children:"JSON DB Engine"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Writability Lock:"}),n.jsx("span",{className:H.dbWritable?"text-emerald-700 font-bold":"text-amber-700 font-bold",children:H.dbWritable?"Verified (R/W Access)":"Read-Only"})]}),n.jsxs("div",{className:"flex justify-between truncate pr-1",children:[n.jsx("span",{children:"Warehouse File:"}),n.jsx("span",{className:"text-stone-500 max-w-[120px] truncate",title:H.dbPath,children:".../db.json"})]})]}):n.jsx("div",{className:"h-16 animate-pulse bg-stone-100 rounded-xl"})})]}),n.jsx("div",{className:"pt-4 border-t border-dashed border-stone-100 mt-4",children:n.jsxs("button",{onClick:Wt,disabled:K,className:"w-full bg-cream-bg hover:bg-cream-card cursor-pointer text-stone-700 border border-accent-gold/20 font-semibold py-2 px-4 rounded-xl text-[11px] uppercase tracking-widest flex items-center justify-center gap-2 active:scale-95 transition disabled:opacity-50",children:[K?n.jsx(Nn,{className:"h-3 w-3 animate-spin text-[#8f7c63]"}):n.jsx(yp,{className:"h-3.5 w-3.5 text-[#8f7c63]"}),n.jsx("span",{children:"Re-Scan Connection"})]})})]}),n.jsxs("div",{className:"bg-white border border-accent-gold/20 rounded-3xl p-6 shadow-2xs hover:border-accent-gold/40 transition duration-300 flex flex-col justify-between",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"bg-[#FAF7F2] p-2.5 rounded-2xl border border-accent-gold/15",children:n.jsx(Rp,{className:"h-5 w-5 text-primary-green"})}),n.jsx("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-blue-100 text-blue-800 border border-blue-250 flex items-center gap-1",children:"Active Cache"})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-lg text-stone-855 font-bold block",children:"Production Environment"}),n.jsx("p",{className:"text-stone-500 text-[11px] leading-relaxed mt-1",children:"System runtime checks and node status. Displays record totals initialized within memory buffers."})]}),n.jsx("div",{className:"pt-2",children:H?n.jsxs("div",{className:"grid grid-cols-2 gap-2 bg-stone-50 p-2.5 rounded-xl border border-stone-105 font-mono text-[9px] text-stone-600",children:[n.jsxs("div",{children:["Products: ",n.jsx("b",{className:"text-[#961F1F] font-bold",children:((ut=H.counts)==null?void 0:ut.products)||0})]}),n.jsxs("div",{children:["Orders: ",n.jsx("b",{className:"text-stone-855 font-bold",children:((Ga=H.counts)==null?void 0:Ga.orders)||0})]}),n.jsxs("div",{children:["Bookings: ",n.jsx("b",{className:"text-stone-855 font-bold",children:((Dn=H.counts)==null?void 0:Dn.bookings)||0})]}),n.jsxs("div",{children:["Knowledge: ",n.jsx("b",{className:"text-stone-855 font-bold",children:((Qa=H.counts)==null?void 0:Qa.faqs)||0})]}),n.jsxs("div",{className:"col-span-2 text-[8px] text-stone-400 mt-1.5 border-t border-stone-200/55 pt-1",children:["ENV: ",H.nodeEnv.toUpperCase()," | TIME: ",new Date(H.serverTime).toLocaleTimeString()]})]}):n.jsx("div",{className:"h-16 animate-pulse bg-stone-100 rounded-xl"})})]}),n.jsx("div",{className:"pt-4 border-t border-dashed border-stone-100 mt-4 text-center",children:n.jsxs("span",{className:"text-[10px] uppercase font-mono tracking-widest text-[#8F7C63] font-bold",children:["DATABASE FILE: ",H!=null&&H.dbSize?(H.dbSize/1024).toFixed(2):"0.00"," KB"]})})]}),n.jsxs("div",{className:"bg-white border border-accent-gold/20 rounded-3xl p-6 shadow-2xs hover:border-accent-gold/40 transition duration-300 flex flex-col justify-between",children:[n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"bg-[#FAF7F2] p-2.5 rounded-2xl border border-accent-gold/15",children:n.jsx(ux,{className:"h-5 w-5 text-emerald-800"})}),(H==null?void 0:H.supabaseStatus)==="connected"?n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-emerald-100 text-emerald-800 border border-emerald-250 flex items-center gap-1",children:[n.jsx(Oa,{className:"h-3 w-3"})," Supabase OK"]}):(H==null?void 0:H.supabaseStatus)==="initialized"?n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-amber-100 text-amber-800 border border-amber-250 flex items-center gap-1",children:[n.jsx(Nn,{className:"h-3 w-3 animate-spin text-amber-600"})," Connecting"]}):(H==null?void 0:H.supabaseStatus)==="not_configured"?n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-amber-50 text-amber-700 border border-amber-200/55 flex items-center gap-1",children:[n.jsx(ll,{className:"h-3 w-3"})," Local Off"]}):n.jsxs("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-bold tracking-wide uppercase bg-red-100 text-red-800 border border-red-200/60 flex items-center gap-1",title:H==null?void 0:H.supabaseError,children:[n.jsx(ll,{className:"h-3 w-3"})," Sync Error"]})]}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-serif text-lg text-stone-850 font-bold block",children:"Supabase Real-Time Sync"}),n.jsx("p",{className:"text-stone-500 text-[11px] leading-relaxed mt-1",children:"Provides dual-sync persistence with Supabase PostgreSQL. Writes replicate in background, while boots pull latest cloud records."})]}),n.jsx("div",{className:"pt-2",children:H?n.jsxs("div",{className:"space-y-1 bg-stone-50 p-2.5 rounded-xl border border-stone-105 font-mono text-[9px] text-stone-600",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Credentials Set:"}),n.jsx("span",{className:"font-bold text-stone-700",children:H.supabaseCredentialsSet?"YES":"NO"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Supabase Client:"}),n.jsx("span",{className:"font-bold text-stone-750",children:H.supabaseClientInitialized?"Running":"Offline / Unloaded"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Sync Type:"}),n.jsx("span",{className:"text-primary-green font-bold",children:"Dual-Sync Cloud"})]})]}):n.jsx("div",{className:"h-16 animate-pulse bg-stone-100 rounded-xl"})})]}),n.jsx("div",{className:"pt-4 border-t border-dashed border-stone-100 mt-4 text-center",children:n.jsx("span",{className:"text-[10px] uppercase font-mono tracking-widest text-[#8F7C63] font-bold",children:"PERSISTENT CLOUD HANDLER"})})]})]}),Ae&&n.jsxs("div",{className:`p-5 rounded-3xl border text-xs leading-relaxed space-y-2 animate-in slide-in-from-top duration-300 ${Ae.success?"bg-emerald-50/70 border-emerald-200 text-emerald-900":"bg-red-50/70 border-red-200 text-red-900"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 font-bold",children:[Ae.success?n.jsx(Oa,{className:"h-5 w-5 text-emerald-600 shrink-0"}):n.jsx(ll,{className:"h-5 w-5 text-red-600 shrink-0"}),n.jsxs("span",{children:["Gemini API Live diagnostics result: ",Ae.success?"FULLY VERIFIED":"VERIFICATION ERROR"]})]}),Ae.success?n.jsxs("div",{className:"space-y-1.5 pl-7",children:[n.jsx("p",{children:"Handshake confirmed that your credentials are authenticated. Simulated loop bypass disabled. API returned:"}),n.jsxs("blockquote",{className:"bg-white/80 border-l-4 border-emerald-500 rounded px-3 py-1.5 font-mono text-[11px] text-stone-850",children:['"',Ae.response,'"']}),n.jsx("p",{className:"text-[10px] text-emerald-700",children:"The consultation AI engine will now dynamically utilize your configured key to suggest therapeutic botanical remedy plans."})]}):n.jsxs("div",{className:"space-y-1.5 pl-7",children:[n.jsx("p",{className:"font-semibold text-red-800",children:"Diagnostic failure report:"}),n.jsx("code",{className:"block bg-white/85 rounded p-3 font-mono text-[10px] text-red-600 overflow-x-auto whitespace-pre-wrap",children:Ae.error}),n.jsxs("p",{className:"text-[10px] text-red-700",children:["How to resolve: Open the ",n.jsx("b",{children:"Settings icon"})," in the AI Studio sidebar, head to ",n.jsx("b",{children:"Secrets"}),", double-check your API key spelling under the ",n.jsx("b",{children:"GEMINI_API_KEY"})," variable name, then run this diagnostic scan again."]})]})]}),n.jsxs("div",{className:"bg-white border border-accent-gold/20 rounded-3xl p-6 md:p-8 space-y-6",children:[n.jsxs("div",{className:"border-b border-accent-gold/15 pb-4",children:[n.jsxs("h3",{className:"font-serif text-xl text-primary-green font-normal flex items-center gap-2",children:[n.jsx(xo,{className:"h-5 w-5 text-accent-gold"}),"Payment Gateway & Local Accounts Controls"]}),n.jsx("p",{className:"text-[11px] text-stone-500 font-light mt-1",children:"Configure which checkout routes are visible to buyers, alter Lagos support dispatch coordinates, and bind Monnify transaction security."})]}),n.jsxs("form",{onSubmit:Rs,className:"space-y-6",children:[n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[n.jsxs("div",{className:"space-y-4 border border-stone-100 rounded-2xl p-5 bg-[#FAF9F6]",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("h4",{className:"font-display font-semibold text-stone-800 text-sm flex items-center gap-2",children:[n.jsx(xo,{className:"h-4.5 w-4.5 text-primary-green"}),"1. Local Bank Transfer Controls"]}),n.jsx("button",{type:"button",onClick:()=>ve(!ne),className:`px-3 py-1 rounded-full text-[10px] font-bold tracking-widest uppercase transition duration-200 ${ne?"bg-emerald-100 text-emerald-800 border border-emerald-300":"bg-stone-200 text-stone-600 border border-stone-300"}`,children:ne?"● Enabled":"○ Disabled"})]}),n.jsx("p",{className:"text-[10px] text-stone-500 leading-normal",children:"Turn on/off bank manual transfers. When buyers select this, we'll display these configured fields & request transfer receipts."}),n.jsxs("div",{className:"space-y-3 pt-2",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Bank Name"}),n.jsx("input",{type:"text",disabled:!ne,value:O,onChange:d=>Q(d.target.value),placeholder:"e.g. Sterling Bank PLC",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750 disabled:opacity-50"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Account Name"}),n.jsx("input",{type:"text",disabled:!ne,value:te,onChange:d=>oe(d.target.value),placeholder:"e.g. MUMMCY AYOFE HERBAL CARE LTD",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750 disabled:opacity-50"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Account Number"}),n.jsx("input",{type:"text",disabled:!ne,value:me,onChange:d=>Be(d.target.value),placeholder:"e.g. 1024451121",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750 font-mono disabled:opacity-50"})]})]})]}),n.jsxs("div",{className:"space-y-4 border border-stone-100 rounded-2xl p-5 bg-[#FCFAF7]",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("h4",{className:"font-display font-semibold text-stone-800 text-sm flex items-center gap-2",children:[n.jsx(bo,{className:"h-4.5 w-4.5 text-[#ea580c]"}),"2. Monnify Gateway Controls"]}),n.jsx("button",{type:"button",onClick:()=>j(!u),className:`px-3 py-1 rounded-full text-[10px] font-bold tracking-widest uppercase transition duration-200 ${u?"bg-emerald-100 text-emerald-800 border border-emerald-300":"bg-stone-200 text-stone-600 border border-stone-300"}`,children:u?"● Enabled":"○ Disabled"})]}),n.jsx("p",{className:"text-[10px] text-stone-500 leading-normal",children:"Turn on/off automated live transactions through Monnify API. When off, clients can only complete orders via manual transfer."}),n.jsxs("div",{className:"space-y-3 pt-2",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Monnify API Key"}),n.jsx("input",{type:"text",disabled:!u,value:Te,onChange:d=>Tt(d.target.value),placeholder:"e.g. MK_PROD_XXXXXXXXXXXXXX",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750 disabled:opacity-50"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Contract Code"}),n.jsx("input",{type:"text",disabled:!u,value:al,onChange:d=>nl(d.target.value),placeholder:"e.g. 1234567890",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750 disabled:opacity-50"})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex justify-between items-center mb-1",children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62]",children:"Secret Key"}),n.jsxs("button",{type:"button",onClick:()=>Ts(!Ra),className:"text-[10px] text-primary-green hover:underline flex items-center gap-1 font-semibold whitespace-nowrap",children:[Ra?n.jsx(ep,{className:"h-3 w-3"}):n.jsx(hx,{className:"h-3 w-3"}),Ra?"Hide Key":"Reveal Key"]})]}),n.jsx("input",{type:Ra?"text":"password",disabled:!u,value:oa,onChange:d=>Mt(d.target.value),placeholder:"••••••••••••••••••••••••••••••••",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750 font-mono disabled:opacity-50"})]})]})]})]}),n.jsxs("div",{className:"space-y-4 border border-stone-100 rounded-2xl p-5 bg-[#FAF9F6] mt-6",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsxs("h4",{className:"font-display font-semibold text-stone-800 text-sm flex items-center gap-2",children:[n.jsx(Ki,{className:"h-4.5 w-4.5 text-primary-green"}),"3. Store Address & Contact Coordinates"]})}),n.jsx("p",{className:"text-[10px] text-stone-500 leading-normal",children:"Customize the physical address, support hotlines, and contact emails instantly. These details are synchronized dynamically with site footers, headers, and consultations."}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 pt-2",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Store Address"}),n.jsx("input",{type:"text",value:El,onChange:d=>_(d.target.value),placeholder:"e.g. Plot 24B, Admiralty Way, Lekki Phase 1, Lagos, Nigeria",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Contact Phone"}),n.jsx("input",{type:"text",value:Le,onChange:d=>Qe(d.target.value),placeholder:"e.g. +234 908 445 1121",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Contact Email"}),n.jsx("input",{type:"email",value:mt,onChange:d=>Da(d.target.value),placeholder:"e.g. wellness@eweandori.com",className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750"})]})]}),n.jsxs("div",{className:"pt-4 mt-4 border-t border-accent-gold/20",children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Homepage Cover Image"}),n.jsx("div",{className:"flex items-center gap-3",children:n.jsxs("div",{className:"relative overflow-hidden inline-block shrink-0",children:[n.jsx("input",{type:"file",className:"absolute inset-0 opacity-0 cursor-pointer z-10",accept:"image/*",onChange:d=>{var Y;const T=(Y=d.target.files)==null?void 0:Y[0];T&&Dl(T,I=>Es(I))}}),n.jsxs("button",{type:"button",className:"bg-stone-100 hover:bg-stone-200 text-stone-700 py-2.5 px-3 rounded-xl text-[10px] font-bold uppercase tracking-widest flex items-center space-x-1.5 transition whitespace-nowrap",children:[n.jsx(As,{className:"h-4 w-4"}),n.jsx("span",{children:"Upload Image"})]})]})}),da&&n.jsx("div",{className:"mt-3 aspect-[21/9] bg-stone-100 rounded-xl overflow-hidden border border-accent-gold/20",children:n.jsx("img",{src:da,alt:"Homepage Cover Preview",className:"w-full h-full object-cover"})})]}),n.jsxs("div",{className:"pt-4 mt-4 border-t border-accent-gold/20",children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"CEO Profile Image"}),n.jsx("div",{className:"flex items-center gap-3",children:n.jsxs("div",{className:"relative overflow-hidden inline-block shrink-0",children:[n.jsx("input",{type:"file",className:"absolute inset-0 opacity-0 cursor-pointer z-10",accept:"image/*",onChange:d=>{var Y;const T=(Y=d.target.files)==null?void 0:Y[0];T&&Dl(T,I=>rt(I))}}),n.jsxs("button",{type:"button",className:"bg-stone-100 hover:bg-stone-200 text-stone-700 py-2.5 px-3 rounded-xl text-[10px] font-bold uppercase tracking-widest flex items-center space-x-1.5 transition whitespace-nowrap",children:[n.jsx(As,{className:"h-4 w-4"}),n.jsx("span",{children:"Upload Image"})]})]})}),wn&&n.jsx("div",{className:"mt-3 aspect-square max-w-[200px] bg-stone-100 rounded-xl overflow-hidden border border-accent-gold/20",children:n.jsx("img",{src:wn,alt:"CEO Cover Preview",className:"w-full h-full object-cover"})})]}),n.jsxs("div",{className:"pt-4 mt-4 border-t border-accent-gold/20",children:[n.jsx("label",{className:"block text-[9px] uppercase tracking-wider font-bold text-[#8C7A62] mb-1",children:"Admin Portal Password"}),n.jsx("p",{className:"text-[10px] text-stone-500 leading-normal mb-2",children:"Change the password required to access this admin portal. Ensure you save your settings below."}),n.jsx("input",{type:"text",required:!0,className:"w-full bg-white border border-accent-gold/20 focus:border-primary-green/50 focus:outline-hidden rounded-xl px-4 py-2.5 text-xs text-stone-750 font-mono",value:ks,onChange:d=>Sn(d.target.value)})]})]}),n.jsxs("div",{className:"space-y-4 border border-stone-100 rounded-2xl p-5 bg-[#FCFAF7] mt-6",children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-accent-gold/10 pb-3",children:[n.jsxs("h4",{className:"font-display font-semibold text-stone-800 text-sm flex items-center gap-2",children:[n.jsx(Ki,{className:"h-4.5 w-4.5 text-primary-green"}),"4. Delivery Channels & Shipping Charges"]}),n.jsxs("button",{type:"button",onClick:()=>{const d=`loc-${Date.now()}`;Kt([...Ft,{id:d,label:"New Location",charge:2500}])},className:"cursor-pointer bg-white border border-primary-green text-primary-green hover:bg-emerald-50 text-[10px] uppercase tracking-wider font-bold px-3 py-1.5 rounded-lg flex items-center gap-1.5 transition active:scale-95",children:[n.jsx(Zi,{className:"h-3.5 w-3.5"}),n.jsx("span",{children:"Add Location Zone"})]})]}),n.jsx("p",{className:"text-[10px] text-stone-500 leading-normal",children:"Configure delivery dispatch targets, regional tariffs, and custom coverage options. Users will see these rates dynamically on checkout calculation sidebars."}),n.jsxs("div",{className:"space-y-2 pt-2 max-h-80 overflow-y-auto",children:[Ft.map((d,T)=>n.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-3 bg-white p-3 border border-stone-100 rounded-xl",children:[n.jsxs("div",{className:"w-full sm:flex-1",children:[n.jsx("label",{className:"text-[9px] font-bold text-stone-400 block mb-0.5 uppercase",children:"Zone Name / Description"}),n.jsx("input",{type:"text",required:!0,value:d.label,onChange:Y=>{const I=[...Ft];I[T].label=Y.target.value,Kt(I)},placeholder:"e.g. Benin City / Edo State",className:"w-full bg-[#FAF9F6] border border-stone-200 focus:border-primary-green/50 focus:outline-hidden rounded-lg px-3 py-1.5 text-xs text-stone-750"})]}),n.jsxs("div",{className:"w-full sm:w-44",children:[n.jsx("label",{className:"text-[9px] font-bold text-stone-400 block mb-0.5 uppercase",children:"Shipping Charge (₦)"}),n.jsx("input",{type:"number",required:!0,value:d.charge,onChange:Y=>{const I=[...Ft];I[T].charge=Number(Y.target.value),Kt(I)},placeholder:"3000",className:"w-full bg-[#FAF9F6] border border-stone-200 focus:border-primary-green/50 focus:outline-hidden rounded-lg px-3 py-1.5 text-xs text-stone-750 font-mono"})]}),n.jsx("button",{type:"button",onClick:()=>{const Y=Ft.filter((I,ql)=>ql!==T);Kt(Y)},className:"cursor-pointer text-stone-400 hover:text-red-700 p-2 border border-dashed border-stone-200 hover:border-red-200 rounded-lg transition shrink-0 mt-3 sm:mt-0",title:"Remove Location",children:n.jsx(Fi,{className:"h-4.5 w-4.5"})})]},d.id||T)),Ft.length===0&&n.jsx("div",{className:"text-center py-6 border border-dashed border-stone-200 rounded-xl text-stone-455 bg-white",children:n.jsx("p",{className:"text-xs font-light",children:"No delivery locations initialized. Add one to begin receiving custom shipping charges."})})]})]}),n.jsx("div",{className:"pt-4 border-t border-dashed border-stone-100 flex justify-end",children:n.jsx("button",{type:"submit",disabled:Ms,className:"bg-primary-green hover:bg-stone-900 cursor-pointer text-[#FAF6EE] font-semibold py-3 px-8 rounded-xl text-xs uppercase tracking-wider flex items-center justify-center gap-2 active:scale-95 transition disabled:opacity-50",children:Ms?n.jsxs(n.Fragment,{children:[n.jsx(Nn,{className:"h-3.5 w-3.5 animate-spin"}),n.jsx("span",{children:"Saving System Settings..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(Np,{className:"h-4 w-4"}),n.jsx("span",{children:"Save Configurations"})]})})})]})]}),n.jsxs("div",{className:"bg-[#FAF7F2] border border-accent-gold/25 rounded-3xl p-6 md:p-8 space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-4 border-b border-accent-gold/15 pb-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"font-serif text-xl text-primary-green font-normal",children:"One-Click Production Setup Checklist"}),n.jsx("p",{className:"text-[11px] text-stone-500 font-light mt-1",children:"Step-by-step checklist of configuring this premium Nigerian traditional wellness registry for live webapp distribution."})]}),n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsxs("div",{className:"text-right",children:[n.jsx("span",{className:"text-[10px] font-mono uppercase tracking-widest text-[#8F7C63] font-bold block",children:"Configuration Sync"}),n.jsxs("span",{className:"font-sans font-bold text-lg text-primary-green",children:[Math.round(Object.values(k).filter(Boolean).length/Object.keys(k).length*100),"% Complete"]})]}),n.jsx("div",{className:"w-24 h-2.5 bg-stone-200 rounded-full overflow-hidden border border-stone-250",children:n.jsx("div",{className:"h-full bg-primary-green transition-all duration-500",style:{width:`${Object.values(k).filter(Boolean).length/Object.keys(k).length*100}%`}})})]})]}),n.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[n.jsxs("div",{className:`p-4 rounded-2xl border transition duration-200 flex items-start gap-4 ${k.secrets?"bg-white border-primary-green/30":"bg-white/60 border-stone-200"}`,children:[n.jsx("input",{type:"checkbox",id:"chk-secrets",className:"h-5 w-5 rounded border-stone-300 text-primary-green focus:ring-primary-green cursor-pointer mt-0.5",checked:k.secrets,onChange:d=>y({...k,secrets:d.target.checked})}),n.jsxs("div",{className:"space-y-1 text-xs",children:[n.jsx("label",{htmlFor:"chk-secrets",className:"font-serif text-[14px] text-stone-850 font-bold block cursor-pointer",children:"1. Configure Secret Environment Variables"}),n.jsxs("p",{className:"text-stone-500 leading-relaxed font-light",children:["Add ",n.jsx("code",{className:"bg-stone-100 px-1 py-0.5 rounded font-mono font-semibold text-[10px]",children:"GEMINI_API_KEY"})," to settings keys. Required for our smart traditional consulting, which leverages deep learning models to answer holistic skincare questions."]}),n.jsxs("div",{className:"flex gap-2 pt-1 font-mono text-[9px]",children:[n.jsx("span",{className:"text-[#8F7C63]",children:"Scope: Secure Server Confidential"}),n.jsx("span",{className:"text-stone-300",children:"|"}),n.jsx("span",{className:"text-secondary-green font-bold",children:"Dynamic fallback active"})]})]})]}),n.jsxs("div",{className:`p-4 rounded-2xl border transition duration-200 flex items-start gap-4 ${k.products?"bg-white border-primary-green/30":"bg-white/60 border-stone-200"}`,children:[n.jsx("input",{type:"checkbox",id:"chk-products",className:"h-5 w-5 rounded border-stone-300 text-primary-green focus:ring-primary-green cursor-pointer mt-0.5",checked:k.products,onChange:d=>y({...k,products:d.target.checked})}),n.jsxs("div",{className:"space-y-1 text-xs",children:[n.jsx("label",{htmlFor:"chk-products",className:"font-serif text-[14px] text-stone-855 font-bold block cursor-pointer",children:"2. Seed Traditional Remedies & FAQs"}),n.jsx("p",{className:"text-stone-500 leading-relaxed font-light",children:"Establish initial inventory records for Moringa teas, Luxury whipped shea butter, and clarified Dongoyaro pure Neem oil inside standard databases so clinical operators see full stock logs immediately."}),n.jsx("div",{className:"flex gap-2 pt-1 font-mono text-[9px] text-[#8F7C63]",children:n.jsxs("span",{children:["Current cache count: ",((rl=H==null?void 0:H.counts)==null?void 0:rl.products)||0," Products initialized"]})})]})]}),n.jsxs("div",{className:`p-4 rounded-2xl border transition duration-200 flex items-start gap-4 ${k.build?"bg-white border-primary-green/30":"bg-white/60 border-stone-200"}`,children:[n.jsx("input",{type:"checkbox",id:"chk-build",className:"h-5 w-5 rounded border-stone-300 text-primary-green focus:ring-primary-green cursor-pointer mt-0.5",checked:k.build,onChange:d=>y({...k,build:d.target.checked})}),n.jsxs("div",{className:"space-y-1 text-xs",children:[n.jsx("label",{htmlFor:"chk-build",className:"font-serif text-[14px] text-stone-855 font-bold block cursor-pointer",children:"3. Compile Application Bundle for Fast Loading"}),n.jsxs("p",{className:"text-stone-500 leading-relaxed font-light",children:["Perform ",n.jsx("code",{className:"bg-stone-100 px-1 py-0.5 rounded font-mono font-semibold text-[10px]",children:"npm run build"}),", translating type configurations into static optimized asset scripts inside the ",n.jsx("code",{className:"bg-stone-100 px-1 py-0.5 rounded font-mono text-[10px]",children:"/dist"})," folder so web patrons load images instantaneously."]}),n.jsxs("div",{className:"flex gap-2 pt-1 font-mono text-[9px]",children:[n.jsx("span",{className:"text-[#8F7C63]",children:"Bundler compiler: esbuild & Vite 6"}),n.jsx("span",{className:"text-stone-300",children:"|"}),n.jsx("span",{className:"text-amber-700 font-bold",children:"Compresses script packages"})]})]})]}),n.jsxs("div",{className:`p-4 rounded-2xl border transition duration-200 flex items-start gap-4 ${k.port?"bg-white border-primary-green/30":"bg-white/60 border-stone-200"}`,children:[n.jsx("input",{type:"checkbox",id:"chk-port",className:"h-5 w-5 rounded border-stone-300 text-primary-green focus:ring-primary-green cursor-pointer mt-0.5",checked:k.port,onChange:d=>y({...k,port:d.target.checked})}),n.jsxs("div",{className:"space-y-1 text-xs",children:[n.jsx("label",{htmlFor:"chk-port",className:"font-serif text-[14px] text-stone-855 font-bold block cursor-pointer",children:"4. Bind Traffic to Ingress Port 3000"}),n.jsxs("p",{className:"text-stone-500 leading-relaxed font-light",children:["Confirm Node server bindings target port ",n.jsx("code",{className:"bg-stone-100 px-1 py-0.5 rounded font-mono font-semibold text-[10px]",children:"3000"})," to receive local web requests and route external traffic via cloud proxies."]}),n.jsx("div",{className:"flex gap-2 pt-1 font-mono text-[9px] text-emerald-700 font-bold",children:n.jsx("span",{children:"Verified: Monitored automatically via app ingress mappings"})})]})]}),n.jsxs("div",{className:`p-4 rounded-2xl border transition duration-200 flex items-start gap-4 ${k.ledger?"bg-white border-primary-green/30":"bg-white/60 border-stone-200"}`,children:[n.jsx("input",{type:"checkbox",id:"chk-ledger",className:"h-5 w-5 rounded border-stone-300 text-primary-green focus:ring-primary-green cursor-pointer mt-0.5",checked:k.ledger,onChange:d=>y({...k,ledger:d.target.checked})}),n.jsxs("div",{className:"space-y-1 text-xs",children:[n.jsx("label",{htmlFor:"chk-ledger",className:"font-serif text-[14px] text-stone-855 font-bold block cursor-pointer",children:"5. Double-Audit Uploaded Bank Transfer Receipts"}),n.jsx("p",{className:"text-stone-500 leading-relaxed font-light",children:"Establish a verification routine for clinical operators. Confirm uploaded bank screenshots match accounts before ticking ledger lines designated for dispatched shipments."}),n.jsx("div",{className:"flex gap-2 pt-1 font-mono text-[9px] text-[#8F7C63]",children:n.jsx("span",{children:"Standard: Mandatory verification protocol"})})]})]})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-3 pt-4 border-t border-accent-gold/15",children:[n.jsxs("button",{type:"button",className:"w-full sm:w-auto bg-primary-green hover:bg-stone-900 cursor-pointer text-[#FAF6EE] font-bold px-6 py-3 rounded-xl uppercase tracking-widest text-[10px] transition active:scale-95 duration-200 flex items-center justify-center gap-2",onClick:()=>{y({secrets:!0,products:!0,build:!0,port:!0,ledger:!0}),He("Pre-flight checklist parameters marked completed!")},children:[n.jsx(Cs,{className:"h-4 w-4"}),n.jsx("span",{children:"Mark All Complete"})]}),n.jsxs("button",{type:"button",className:"w-full sm:w-auto bg-white hover:bg-stone-100 cursor-pointer text-stone-707 border border-stone-250 font-bold px-5 py-3 rounded-xl uppercase tracking-widest text-[10px] transition active:scale-95 duration-200 flex items-center justify-center gap-2",onClick:()=>{var T;const d={secrets:(H==null?void 0:H.geminiKeySet)||!1,products:(((T=H==null?void 0:H.counts)==null?void 0:T.products)||0)>0,build:!1,port:!0,ledger:!1};y(d),He("Pre-flight checklist updated using diagnostic data!")},children:[n.jsx(Nn,{className:"h-3.5 w-3.5"}),n.jsx("span",{children:"Auto-Optimize Pre-Flight Check"})]})]})]}),H&&n.jsxs("div",{className:"bg-[#1C1917] rounded-3xl p-6 border border-stone-800 space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pointer-events-none",children:[n.jsx("span",{className:"text-[10px] font-mono tracking-widest text-stone-500 font-bold",children:"RAW TELEMETRY OUTPUT"}),n.jsx("span",{className:"text-[9px] font-mono text-emerald-500",children:"SYSTEM_NOMINAL_LOCK"})]}),n.jsx("pre",{className:"text-[10px] text-stone-300 font-mono leading-relaxed overflow-x-auto whitespace-pre p-2 bg-stone-950/60 rounded-xl",children:JSON.stringify(H,null,2)})]})]}),Jt&&n.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-stone-900/60 backdrop-blur-md p-4 overflow-y-auto",children:n.jsxs("form",{onSubmit:Qt,className:"bg-cream-bg rounded-3xl border border-accent-gold shadow-2xl max-w-xl w-full max-h-[90vh] overflow-y-auto animate-in zoom-in-95 duration-200",children:[n.jsxs("div",{className:"bg-primary-green p-5 text-white border-b border-accent-gold/25 flex justify-between items-center",children:[n.jsx("h3",{className:"font-serif text-lg font-normal",children:sl?"Revamp Existing Formula":"Register New Botanical Formula"}),n.jsx("button",{type:"button",onClick:()=>Pe(!1),className:"text-[#FAF6EE]/75 hover:text-white transition",children:"[Dismiss]"})]}),n.jsxs("div",{className:"p-6 space-y-4 text-xs",children:[n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Product Name"}),n.jsx("input",{type:"text",required:!0,placeholder:"e.g. Àdùn Gold Cocoa Scrub",className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 text-stone-850",value:_s,onChange:d=>An(d.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Category Range"}),n.jsxs("select",{className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 text-stone-850",value:Ml,onChange:d=>Cn(d.target.value),children:[n.jsx("option",{value:"",disabled:!0,children:"-- Choose Category --"}),L.map(d=>n.jsx("option",{value:d.id,children:d.label},d.id))]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Price (₦ in NGN)"}),n.jsx("input",{type:"number",required:!0,className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 text-stone-850",value:ua,onChange:d=>Tl(Number(d.target.value))})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Total Stock Count"}),n.jsx("input",{type:"number",required:!0,className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 text-stone-850",value:Mn,onChange:d=>xa(Number(d.target.value))})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Product Illustration Cover Image"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"flex items-center gap-2 mb-2"}),n.jsxs("div",{className:"relative flex items-center justify-center p-4 border border-dashed border-stone-300 rounded-xl bg-stone-50/50 hover:bg-stone-50 transition min-h-[90px] cursor-pointer",children:[n.jsx("input",{type:"file",accept:"image/*",className:"absolute inset-0 opacity-0 cursor-pointer",onChange:d=>{var Y;const T=(Y=d.target.files)==null?void 0:Y[0];T&&Dl(T,I=>il(I))}}),n.jsxs("div",{className:"text-center space-y-1",children:[n.jsx(As,{className:"h-5 w-5 text-stone-400 mx-auto"}),n.jsx("span",{className:"text-[10px] text-stone-600 font-medium block",children:"Click to upload raw image"}),n.jsx("span",{className:"text-[8px] text-stone-400 block",children:"PNG, JPG, WEBP (No-Code direct upload)"})]})]})]}),n.jsxs("div",{className:"flex flex-col items-center justify-center border border-stone-200/80 rounded-xl bg-white p-2",children:[n.jsx("span",{className:"text-[9px] text-[#8C7A62] tracking-wider uppercase font-mono mb-1.5 self-start px-1",children:"Cover Preview"}),Lt?n.jsxs("div",{className:"relative h-24 w-full bg-stone-100 rounded-lg overflow-hidden flex items-center justify-center border border-stone-200",children:[n.jsx("img",{src:Lt,alt:"Cover preview",className:"h-full w-full object-cover",referrerPolicy:"no-referrer"}),n.jsx("button",{type:"button",onClick:()=>il(""),className:"absolute top-1 right-1 h-5 w-5 bg-stone-900/60 hover:bg-stone-900 text-white rounded-full flex items-center justify-center transition cursor-pointer",title:"Remove image",children:n.jsx(ra,{className:"h-3 w-3"})})]}):n.jsx("div",{className:"text-center p-4 text-stone-400 border border-dashed border-stone-200 w-full h-24 rounded-lg flex items-center justify-center text-[10px]",children:"No image uploaded/linked"})]})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Detailed Description"}),n.jsx("textarea",{required:!0,rows:2,placeholder:"Summarize the botanical characteristics, origins and target schedules...",className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 text-stone-850 leading-relaxed",value:Os,onChange:d=>kl(d.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Ingredients (Separated by commas)"}),n.jsx("input",{type:"text",placeholder:"100% Moringa, Lemongrass Extract, organic Honey",className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2",value:En,onChange:d=>fa(d.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Botanical Benefits checklist (One per line)"}),n.jsx("textarea",{rows:2,placeholder:`Soothes blemishes organically
Gives premium focus`,className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 leading-relaxed",value:zl,onChange:d=>kn(d.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Usage & Ritual Guide"}),n.jsx("input",{type:"text",placeholder:"Steep 1 tea bag in warm boiling water for 5 minutes.",className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2",value:Tn,onChange:d=>Ua(d.target.value)})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("input",{type:"checkbox",id:"bestseller-chk",className:"h-4 w-4 rounded border-stone-300 text-primary-green focus:ring-primary-green",checked:Ha,onChange:d=>qa(d.target.checked)}),n.jsx("label",{htmlFor:"bestseller-chk",className:"text-stone-700 font-bold uppercase tracking-wider text-[10px] cursor-pointer",children:"Feature as Bestseller on Frontpage"})]})]}),n.jsxs("div",{className:"bg-[#1a1a1a] p-4 flex justify-end space-x-2",children:[n.jsx("button",{type:"button",className:"text-stone-400 hover:text-white px-4 uppercase font-semibold text-xs tracking-wider transition",onClick:()=>Pe(!1),children:"Abort"}),n.jsx("button",{type:"submit",className:"bg-accent-gold text-primary-green font-bold px-6 py-2.5 rounded-xl uppercase tracking-widest text-xs transition active:scale-95 hover:bg-amber-400",children:"Save Formula"})]})]})}),et&&n.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-stone-900/60 backdrop-blur-md p-4 overflow-y-auto",children:n.jsxs("form",{onSubmit:ht,className:"bg-cream-bg rounded-3xl border border-accent-gold shadow-2xl max-w-md w-full max-h-[90vh] overflow-y-auto animate-in zoom-in-95 duration-200",children:[n.jsxs("div",{className:"bg-primary-green p-5 text-white border-b border-accent-gold/25 flex justify-between items-center",children:[n.jsx("h3",{className:"font-serif text-lg font-normal",children:_l?"Alter Class/Category":"Define New Category"}),n.jsx("button",{type:"button",onClick:()=>Fe(!1),className:"text-[#FAF6EE]/75 hover:text-white transition cursor-pointer",children:"[Dismiss]"})]}),n.jsxs("div",{className:"p-6 space-y-4 text-xs",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Category Label/Name"}),n.jsx("input",{type:"text",required:!0,placeholder:"e.g. Therapeutic Cosmetics",className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 text-stone-850",value:Yt,onChange:d=>{if(Ol(d.target.value),!_l){const T=d.target.value.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");ma(T)}}})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Category Slug/ID Handle (URL Safe)"}),n.jsx("input",{type:"text",required:!0,disabled:!!_l,placeholder:"e.g. therapeutic-cosmetics",className:"w-full bg-white border border-stone-200 rounded-xl px-3 py-2 text-stone-850 disabled:bg-stone-100 disabled:text-stone-400 font-mono",value:Ds,onChange:d=>ma(d.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[#8C7A62] uppercase tracking-wider font-mono text-[9px] mb-1",children:"Category Representation Cover Image"}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"relative flex items-center justify-center p-4 border border-dashed border-stone-300 rounded-xl bg-[#FAF8F5]/65 hover:bg-stone-50/70 transition min-h-[90px] cursor-pointer",children:[n.jsx("input",{type:"file",accept:"image/*",className:"absolute inset-0 opacity-0 cursor-pointer",onChange:d=>{var Y;const T=(Y=d.target.files)==null?void 0:Y[0];T&&Dl(T,I=>Gt(I))}}),n.jsxs("div",{className:"text-center space-y-1",children:[n.jsx(As,{className:"h-5 w-5 text-stone-400 mx-auto"}),n.jsx("span",{className:"text-[10px] text-stone-600 font-medium block",children:"Click to upload raw Cover"}),n.jsx("span",{className:"text-[8px] text-stone-400 block",children:"PNG, JPG, WEBP (Direct Dynamic upload)"})]})]}),n.jsxs("div",{className:"border border-stone-200/80 rounded-xl bg-white p-3 flex flex-col items-center",children:[n.jsx("span",{className:"text-[9px] text-[#8C7A62] tracking-wider uppercase font-mono mb-2 self-start font-bold",children:"Category Cover Preview"}),Ba?n.jsxs("div",{className:"relative h-28 w-full bg-stone-150 rounded-lg overflow-hidden flex items-center justify-center border border-stone-200",children:[n.jsx("img",{src:Ba,alt:"Category preview",className:"h-full w-full object-cover",referrerPolicy:"no-referrer"}),n.jsx("button",{type:"button",onClick:()=>Gt(""),className:"absolute top-1.5 right-1.5 h-5.5 w-5.5 bg-stone-900/60 hover:bg-stone-900 text-white rounded-full flex items-center justify-center transition cursor-pointer",children:n.jsx(ra,{className:"h-3.5 w-3.5"})})]}):n.jsx("div",{className:"text-center py-6 text-stone-400 border border-dashed border-stone-250 w-full rounded-lg flex items-center justify-center text-[10px]",children:"No image uploaded/linked"})]})]})]})]}),n.jsxs("div",{className:"bg-[#1a1a1a] p-4 flex justify-end space-x-2",children:[n.jsx("button",{type:"button",className:"text-stone-400 hover:text-white px-4 uppercase font-semibold text-xs tracking-wider transition cursor-pointer",onClick:()=>Fe(!1),children:"Abort"}),n.jsx("button",{type:"submit",className:"bg-accent-gold text-primary-green font-bold px-6 py-2.5 rounded-xl uppercase tracking-widest text-xs transition active:scale-95 hover:bg-amber-400 cursor-pointer",children:"Save Category"})]})]})})]}):n.jsx("div",{id:"admin-auth-gate",className:"min-h-[80vh] flex items-center justify-center p-4 animate-in fade-in duration-300",children:n.jsxs("div",{className:"w-full max-w-md bg-[#0A2013] border-2 border-accent-gold/25 rounded-3xl p-8 space-y-6 text-center text-[#FAF6EE] shadow-2xl relative overflow-hidden",children:[n.jsx("div",{className:"absolute inset-x-0 -top-40 h-80 bg-[radial-gradient(circle_at_center,#114b28_0%,transparent_70%)] opacity-85 pointer-events-none"}),n.jsxs("div",{className:"relative space-y-4",children:[n.jsx("div",{className:"mx-auto h-14 w-14 rounded-full bg-[#103520] border border-accent-gold/45 flex items-center justify-center text-accent-gold shadow-lg",children:n.jsx(fx,{className:"h-6 w-6 stroke-[1.8]"})}),n.jsxs("div",{className:"space-y-1.5",children:[n.jsx("h2",{className:"font-serif text-2xl font-bold tracking-tight text-white uppercase block leading-tight",children:"Staff Portal Gate"}),n.jsx("span",{className:"block text-[9.5px] tracking-[0.2em] text-accent-gold uppercase font-bold",children:"MUMMY AYOFE ADMINISTRATIVE PANEL"})]}),n.jsx("p",{className:"text-stone-300 text-xs font-light leading-relaxed",children:"Verify your traditional botanical credentials. Unlocks recipe lists, pending clinic booking calendars, and customer transaction logs."}),n.jsxs("form",{onSubmit:le,className:"space-y-4 pt-3 text-left",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase font-bold tracking-wider text-accent-gold/80 mb-1.5 font-mono",children:"Administrative Passcode:"}),n.jsx("input",{type:"password",required:!0,autoFocus:!0,placeholder:"••••••••",className:"w-full bg-[#05140C] border-2 border-accent-gold/20 focus:border-accent-gold/75 text-white rounded-xl py-3 px-4 text-center font-mono placeholder-stone-600 focus:outline-hidden transition text-sm font-bold tracking-wider",value:E,onChange:d=>{b(d.target.value),D("")}})]}),V&&n.jsxs("div",{className:"bg-red-950/40 border border-red-500/50 rounded-xl p-3 text-red-200 text-[11px] font-light leading-normal text-center",children:["⚠️ ",V]}),n.jsx("button",{type:"submit",className:"w-full bg-accent-gold hover:bg-accent-gold/90 text-[#071F11] font-bold py-3.5 px-6 rounded-xl text-xs tracking-widest uppercase transition-all active:scale-95 flex items-center justify-center gap-2 cursor-pointer shadow-lg",children:n.jsx("span",{children:"Authorize Login ➔"})})]})]})]})})}function Wp({cart:C,onUpdateQty:q,onRemoveItem:L,onClearCart:x}){const[z,U]=w.useState("cart"),[F,P]=w.useState({bankEnabled:!0,monnifyEnabled:!0,bankName:"Sterling Bank PLC",accountName:"MUMMCY AYOFE HERBAL CARE LTD",accountNumber:"1024451121",storePhone:"+234 908 445 1121"}),[E,b]=w.useState([{id:"lagos-mainland",label:"Lagos Mainland",charge:2005},{id:"lagos-island",label:"Lagos Island / Lekki",charge:3e3},{id:"abuja-fct",label:"Abuja / FCT Express",charge:4505},{id:"rivers-ph",label:"Rivers State (Port Harcourt)",charge:4e3},{id:"oyo-ibadan",label:"Oyo State (Ibadan)",charge:3e3},{id:"rest-of-nigeria",label:"Rest of Nigeria (Nationwide Shipping)",charge:5500}]),[V,D]=w.useState(""),[le,Se]=w.useState(""),[R,ce]=w.useState(""),[ge,ye]=w.useState(""),[G,B]=w.useState("lagos-mainland"),[ee,Ce]=w.useState("monnify");w.useEffect(()=>{fetch("/api/settings").then(_=>_.json()).then(_=>{_&&(P(_),_.deliveryLocations&&_.deliveryLocations.length>0&&(b(_.deliveryLocations),_.deliveryLocations.find(Qe=>Qe.id===G)||B(_.deliveryLocations[0].id)),!_.monnifyEnabled&&_.bankEnabled?Ce("bank-transfer"):_.monnifyEnabled&&!_.bankEnabled&&Ce("monnify"))}).catch(_=>console.error("Error loading checkout settings:",_))},[]);const[H,ae]=w.useState(""),[K,De]=w.useState(""),[xt,Ie]=w.useState(!1),[Ae,dt]=w.useState(""),[k,se]=w.useState(""),[y,M]=w.useState(""),[J,ne]=w.useState(""),[ve,u]=w.useState(!1),[j,O]=w.useState(null),[Q,te]=w.useState(!1),oe=_=>{const Le=E.find(Qe=>Qe.id===_);return Le?Le.charge:5500},me=_=>{const Le=E.find(Qe=>Qe.id===_);return Le?Le.label:"Other States / Direct Shipping"},Be=C.reduce((_,Le)=>_+Le.price*Le.quantity,0),Te=z==="cart"?0:oe(G),Tt=Be+Te,al=_=>{var Qe;const Le=(Qe=_.target.files)==null?void 0:Qe[0];if(Le){De(Le.name);const mt=new FileReader;mt.onloadend=()=>{ae(mt.result)},mt.readAsDataURL(Le)}},nl=async(_=!1)=>{te(!0);const Le={customerName:V,customerEmail:le,customerPhone:R,deliveryAddress:ge,state:G,deliveryFee:Te,paymentMethod:ee,paymentProof:ee==="bank-transfer"?H:void 0,status:ee==="bank-transfer"?"pending-verification":"processing",items:C,totalAmount:Tt};try{const Qe=await fetch("/api/orders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Le)});if(Qe.ok){const mt=await Qe.json();O(mt),U("receipt"),x()}else{const mt=await Qe.json().catch(()=>({}));alert(`Failed to complete order: ${mt.error||"Server validation error. Please verify your item stock or details."}`)}}catch(Qe){console.error("Order submit exception",Qe),alert(`Network error: ${Qe.message||"Failed to communicate with Mummy Ayofe server."}`)}finally{te(!1)}},oa=_=>{if(_.preventDefault(),!V||!le||!R||!ge){alert("Please specify delivery and address coordinates first.");return}if(ee==="bank-transfer"){if(!H&&!window.confirm("You have not uploaded a screenshot of your bank transfer receipt yet. You can still complete your order now and send us the transaction receipt on WhatsApp afterward to speed up delivery. Would you like to proceed?"))return;nl()}else Ie(!0)},Mt=()=>{if(!Ae||!El||!J){alert("Please key in valid card numbers, CVV and card PIN validation.");return}u(!0),setTimeout(()=>{u(!1),Ie(!1),nl(!0)},2e3)},El=y.length>=3;return n.jsxs("section",{id:"cart-checkout-root",className:"py-12 px-4 md:px-8 max-w-6xl mx-auto min-h-screen",children:[n.jsxs("div",{className:"flex items-center justify-center space-x-2 md:space-x-4 mb-12 text-xs md:text-sm",children:[n.jsx("button",{onClick:()=>z!=="receipt"&&U("cart"),className:`font-semibold tracking-wider uppercase transition pb-1 border-b-2 ${z==="cart"?"border-primary-green text-primary-green":"border-transparent text-stone-400"}`,children:"1. Shopping Cart"}),n.jsx(Ss,{className:"h-4 w-4 text-stone-300"}),n.jsx("button",{disabled:C.length===0,onClick:()=>z!=="receipt"&&U("checkout"),className:`font-semibold tracking-wider uppercase transition pb-1 border-b-2 ${z==="checkout"?"border-primary-green text-primary-green":"border-transparent text-stone-400"} disabled:opacity-40`,children:"2. Shipping & Payment"}),n.jsx(Ss,{className:"h-4 w-4 text-stone-300"}),n.jsx("span",{className:`font-semibold tracking-wider uppercase pb-1 text-stone-400 ${z==="receipt"?"text-primary-green font-bold border-b-2 border-primary-green":""}`,children:"3. Order Confirmation"})]}),z==="cart"&&n.jsxs("div",{id:"cart-step-panel",className:"grid grid-cols-1 lg:grid-cols-12 gap-10",children:[n.jsxs("div",{className:"lg:col-span-8 space-y-4",children:[n.jsx("h2",{className:"font-serif text-2xl text-primary-green mb-4",children:"Your Shopping Cart"}),C.length===0?n.jsxs("div",{className:"text-center py-16 bg-white rounded-3xl border border-accent-gold/25 p-8",children:[n.jsx(Ji,{className:"h-10 w-10 text-accent-gold mx-auto mb-3"}),n.jsx("h3",{className:"font-display font-bold text-stone-750 text-base mb-1",children:"Your Cart is Empty"}),n.jsx("p",{className:"text-stone-500 text-xs font-light max-w-sm mx-auto mb-6",children:"You haven't added any products to your shopping cart yet. Feel free to browse our premium oils, remedies, and wellness products."}),n.jsx("a",{href:"#shop",className:"bg-primary-green hover:bg-[#124227] text-white text-xs font-semibold uppercase tracking-wider px-6 py-3 rounded-xl transition",children:"Shop Now"})]}):n.jsxs("div",{className:"space-y-4",children:[C.map(_=>n.jsxs("div",{className:"bg-white border border-accent-gold/15 rounded-2xl p-4.5 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsx("div",{className:"h-14 w-14 rounded-xl overflow-hidden shrink-0 border border-stone-100",children:n.jsx("img",{src:_.image,alt:_.name,className:"w-full h-full object-cover"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"font-display font-semibold text-xs sm:text-sm text-primary-green leading-snug",children:_.name}),n.jsxs("div",{className:"text-xs text-stone-550 mt-1 font-medium",children:["₦",_.price.toLocaleString()]})]})]}),n.jsxs("div",{className:"flex items-center space-x-6",children:[n.jsxs("div",{className:"flex items-center border border-stone-200 rounded-lg overflow-hidden bg-stone-50 h-8 text-xs font-semibold",children:[n.jsx("button",{onClick:()=>q(_.productId,_.quantity-1),className:"px-2.5 py-1 hover:bg-stone-100 transition",children:"-"}),n.jsx("span",{className:"px-2 text-stone-850",children:_.quantity}),n.jsx("button",{onClick:()=>q(_.productId,_.quantity+1),className:"px-2.5 py-1 hover:bg-stone-100 transition",children:"+"})]}),n.jsx("button",{onClick:()=>L(_.productId),className:"text-stone-400 hover:text-red-700 transition",title:"Remove from cart",children:n.jsx(Fi,{className:"h-4.5 w-4.5"})})]})]},_.productId)),n.jsx("button",{onClick:x,className:"text-stone-400 hover:text-stone-700 text-xs tracking-wider uppercase font-semibold transition",children:"Empty Shopping Cart"})]})]}),n.jsx("div",{className:"lg:col-span-4",children:n.jsxs("div",{className:"bg-cream-card border border-accent-gold/25 rounded-3xl p-6 space-y-4",children:[n.jsx("h3",{className:"font-display font-bold text-xs tracking-wider uppercase text-primary-green",children:"Order Summary"}),n.jsxs("div",{className:"space-y-3.5 text-xs text-stone-600 border-b border-accent-gold/15 pb-4",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Subtotal"}),n.jsxs("span",{className:"font-medium text-stone-850",children:["₦",Be.toLocaleString()]})]}),n.jsxs("div",{className:"flex justify-between text-stone-450 italic",children:[n.jsx("span",{children:"Delivery Charge"}),n.jsx("span",{children:"Calculated next step"})]})]}),n.jsxs("div",{className:"flex justify-between font-display text-base font-semibold text-stone-850",children:[n.jsx("span",{children:"Total"}),n.jsxs("span",{children:["₦",Be.toLocaleString()]})]}),n.jsxs("button",{disabled:C.length===0,onClick:()=>U("checkout"),className:"w-full bg-primary-green hover:bg-[#103d24] text-white font-semibold py-3.5 rounded-xl text-xs uppercase tracking-widest transition text-center flex items-center justify-center space-x-2 disabled:opacity-50 active:scale-95",children:[n.jsx("span",{children:"Proceed to Checkout"}),n.jsx(Ss,{className:"h-4 w-4"})]}),n.jsxs("div",{className:"flex items-center space-x-1.5 justify-center text-[10px] text-stone-450 uppercase tracking-wider font-semibold pt-2",children:[n.jsx(mo,{className:"h-4.5 w-4.5 text-accent-gold"}),n.jsx("span",{children:"Fully Secure Checkout"})]})]})})]}),z==="checkout"&&n.jsxs("form",{onSubmit:oa,id:"checkout-form",className:"grid grid-cols-1 lg:grid-cols-12 gap-10",children:[n.jsxs("div",{className:"lg:col-span-7 space-y-6",children:[n.jsx("h2",{className:"font-serif text-2xl text-primary-green",children:"Checkout Details"}),n.jsxs("div",{className:"bg-white border border-accent-gold/15 rounded-3xl p-6.5 space-y-4",children:[n.jsx("h3",{className:"font-display font-bold text-stone-800 text-xs tracking-wider uppercase",children:"1. Delivery Address"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase text-[#8C7A62] mb-1",children:"Receiver Name"}),n.jsx("input",{type:"text",required:!0,placeholder:"e.g. Kolawole Ogunmola",className:"w-full bg-[#FCFAF6] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750",value:V,onChange:_=>D(_.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase text-[#8C7A62] mb-1",children:"Receiver Phone"}),n.jsx("input",{type:"tel",required:!0,placeholder:"e.g. +234 809 334 2211",className:"w-full bg-[#FCFAF6] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750",value:R,onChange:_=>ce(_.target.value)})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase text-[#8C7A62] mb-1",children:"Email Address"}),n.jsx("input",{type:"email",required:!0,placeholder:"e.g. omo@yahoo.com",className:"w-full bg-[#FCFAF6] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750",value:le,onChange:_=>Se(_.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase text-[#8C7A62] mb-1",children:"Street Delivery Address"}),n.jsx("input",{type:"text",required:!0,placeholder:"Street name, house number and local landmark",className:"w-full bg-[#FCFAF6] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750",value:ge,onChange:_=>ye(_.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase text-[#8C7A62] mb-1",children:"Select Shipping Destination"}),n.jsx("select",{className:"w-full bg-[#FCFAF6] border border-accent-gold/20 rounded-xl px-4 py-3 text-xs sm:text-sm text-stone-750",value:G,onChange:_=>B(_.target.value),children:E.map(_=>n.jsxs("option",{value:_.id,children:[_.label," (₦",_.charge.toLocaleString(),")"]},_.id))})]})]}),n.jsxs("div",{className:"bg-white border border-accent-gold/15 rounded-3xl p-6.5 space-y-4",children:[n.jsx("h3",{className:"font-display font-bold text-stone-800 text-xs tracking-wider uppercase",children:"2. Choose Payment Method"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[F.monnifyEnabled&&n.jsxs("button",{type:"button",onClick:()=>Ce("monnify"),className:`p-4 rounded-2xl flex items-center space-x-3 transition duration-200 border text-left h-20 ${ee==="monnify"?"bg-[#FAF7F2] border-primary-green ring-1 ring-primary-green":"bg-white border-stone-200 hover:border-accent-gold"} ${F.bankEnabled?"":"sm:col-span-2"}`,children:[n.jsx("div",{className:"p-2 rounded-xl bg-orange-100 text-[#ea580c]",children:n.jsx(bo,{className:"h-5 w-5"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-xs font-bold text-stone-800 uppercase",children:"Monnify Gateway"}),n.jsx("span",{className:"text-[10px] text-stone-500 block leading-tight mt-0.5",children:"Pay instantly via secure local Card/USSD/Transfer"})]})]}),F.bankEnabled&&n.jsxs("button",{type:"button",onClick:()=>Ce("bank-transfer"),className:`p-4 rounded-2xl flex items-center space-x-3 transition duration-200 border text-left h-20 ${ee==="bank-transfer"?"bg-[#FAF7F2] border-primary-green ring-1 ring-primary-green":"bg-white border-stone-200 hover:border-accent-gold"} ${F.monnifyEnabled?"":"sm:col-span-2"}`,children:[n.jsx("div",{className:"p-2 rounded-xl bg-teal-100 text-teal-800",children:n.jsx(xo,{className:"h-5 w-5"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-xs font-bold text-stone-800 uppercase",children:"Local Bank Transfer"}),n.jsx("span",{className:"text-[10px] text-stone-500 block leading-tight mt-0.5",children:"Manual transfer with transaction proof upload"})]})]})]}),ee==="bank-transfer"&&F.bankEnabled&&n.jsxs("div",{className:"bg-[#FAF8F4] border border-accent-gold/30 rounded-2xl p-4.5 space-y-4 text-stone-700 animate-in slide-in-from-top-3 duration-200",children:[n.jsxs("div",{className:"space-y-1",children:[n.jsx("span",{className:"text-[10px] tracking-widest font-mono text-stone-400 block",children:"DESTINATION BANK ACCOUNT"}),n.jsx("h4",{className:"text-sm font-bold text-stone-805",children:F.bankName}),n.jsxs("div",{className:"flex items-center space-x-2 text-primary-green font-mono text-base font-bold",children:[n.jsx("span",{children:F.accountNumber}),n.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(F.accountNumber),alert("Account number copied successfully!")},className:"text-xs text-[#8C7A62] hover:underline font-sans font-medium hover:text-[#5F513E] lowercase",children:"[copy]"})]}),n.jsxs("div",{className:"text-xs text-stone-600 font-light",children:["Account Name: ",n.jsx("strong",{className:"font-bold text-stone-800",children:F.accountName})]})]}),n.jsxs("div",{className:"pt-3 border-t border-accent-gold/20",children:[n.jsx("label",{className:"block text-[11px] font-bold text-[#8C7A62] mb-1.5 uppercase tracking-wide",children:"Upload Payment Proof Receipt (JPG or PNG)"}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("label",{className:"bg-white hover:bg-cream-card border border-stone-300 rounded-xl px-4 py-2.5 text-xs text-stone-700 font-semibold cursor-pointer flex items-center space-x-2 transition active:scale-95 shadow-2xs shrink-0",children:[n.jsx(As,{className:"h-4 w-4 text-stone-500"}),n.jsx("span",{children:"Select Screenshot"}),n.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:al})]}),n.jsx("span",{className:"text-[11px] text-stone-550 truncate max-w-[200px]",children:K||"No document loaded yet"})]}),H&&n.jsxs("div",{className:"mt-3.5 flex items-center space-x-2 bg-emerald-50 text-emerald-800 border-emerald-200 p-2.5 rounded-lg text-xs leading-none",children:[n.jsx(Cs,{className:"h-4 w-4 text-emerald-600 border shrink-0 bg-white rounded-full p-0.5"}),n.jsx("span",{children:'Proof document stored successfully. Order will submit as "Pending Verification".'})]})]})]})]})]}),n.jsx("div",{className:"lg:col-span-5",children:n.jsxs("div",{className:"bg-cream-card border border-accent-gold/25 rounded-3xl p-6 space-y-4",children:[n.jsx("h3",{className:"font-display font-bold text-xs tracking-wider uppercase text-primary-green",children:"Order Summary"}),n.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto border-b border-accent-gold/15 pb-4",children:C.map(_=>n.jsxs("div",{className:"flex justify-between text-xs text-stone-600 font-light",children:[n.jsxs("span",{children:[_.name," (x",_.quantity,")"]}),n.jsxs("span",{children:["₦",(_.price*_.quantity).toLocaleString()]})]},_.productId))}),n.jsxs("div",{className:"space-y-3.5 text-xs text-stone-600 border-b border-accent-gold/15 pb-4",children:[n.jsxs("div",{className:"flex justify-between",children:[n.jsx("span",{children:"Subtotal"}),n.jsxs("span",{className:"font-medium text-stone-850",children:["₦",Be.toLocaleString()]})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsxs("span",{children:["Delivery fee (",me(G),")"]}),n.jsxs("span",{className:"font-medium text-stone-850",children:["₦",Te.toLocaleString()]})]})]}),n.jsxs("div",{className:"flex justify-between font-display text-base font-semibold text-stone-850",children:[n.jsx("span",{children:"Total Amount"}),n.jsxs("span",{className:"text-[#961F1F]",children:["₦",Tt.toLocaleString()]})]}),n.jsxs("button",{type:"submit",disabled:Q,className:"w-full bg-primary-green hover:bg-[#113a23] text-white font-semibold py-4 rounded-xl text-xs uppercase tracking-widest transition text-center flex items-center justify-center space-x-2 disabled:opacity-50 active:scale-95 shadow-xs",children:[n.jsx("span",{children:ee==="monnify"?"Pay Now":"Place Order"}),n.jsx(Ss,{className:"h-4 w-4"})]}),n.jsxs("div",{className:"flex items-center space-x-1.5 justify-center text-[9.5px] text-stone-450 uppercase tracking-widest font-bold pt-2",children:[n.jsx(mo,{className:"h-4 w-4 text-accent-gold"}),n.jsx("span",{children:"100% Safe & Secure Transaction"})]})]})})]}),z==="receipt"&&j&&n.jsxs("div",{id:"receipt-step-panel",className:"max-w-2xl mx-auto bg-white border border-accent-gold/25 rounded-3xl p-6 md:p-8 space-y-6 shadow-xs animate-in zoom-in-95 duration-200",children:[n.jsxs("div",{className:"text-center space-y-2",children:[n.jsx("div",{className:"h-12 w-12 rounded-full bg-emerald-100 text-emerald-800 mx-auto flex items-center justify-center",children:n.jsx(Cs,{className:"h-6 w-6"})}),n.jsx("h2",{className:"font-serif text-2xl text-primary-green",children:"Order Placed Successfully!"}),n.jsx("p",{className:"text-stone-500 text-xs font-light",children:"Thank you for shopping with Mummy Ayofe. Your order has been recorded and is being prepared."})]}),n.jsxs("div",{className:"bg-cream-bg rounded-2xl p-5 border border-accent-gold/15 space-y-4",children:[n.jsxs("div",{className:"flex justify-between text-xs border-b border-accent-gold/15 pb-2.5",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-stone-455 block",children:"ORDER NUMBER"}),n.jsx("strong",{className:"text-stone-800 font-mono tracking-wider",children:j.orderNumber})]}),n.jsxs("div",{className:"text-right",children:[n.jsx("span",{className:"text-stone-455 block",children:"STATUS"}),n.jsx("span",{className:`inline-block px-2 py-0.5 rounded-sm text-[9px] uppercase tracking-wider font-bold ${j.status==="pending-verification"?"bg-amber-100 text-amber-800":"bg-emerald-100 text-emerald-850"}`,children:j.status})]})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4 text-xs",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-stone-455 block uppercase font-mono text-[9px]",children:"CUSTOMER"}),n.jsx("strong",{className:"text-stone-700",children:j.customerName}),n.jsx("span",{className:"block text-stone-500 font-light mt-0.5",children:j.customerPhone})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-stone-455 block uppercase font-mono text-[9px]",children:"METHOD"}),n.jsx("strong",{className:"text-stone-750 uppercase",children:j.paymentMethod})]})]}),n.jsxs("div",{className:"text-xs",children:[n.jsx("span",{className:"text-stone-455 block uppercase font-mono text-[9px]",children:"DELIVERY ADDRESS"}),n.jsxs("p",{className:"text-stone-700 font-light leading-relaxed",children:[j.deliveryAddress," (",me(j.state),")"]})]}),n.jsxs("div",{className:"border-t border-accent-gold/15 pt-3 space-y-2",children:[n.jsx("span",{className:"text-[9px] uppercase font-mono tracking-widest text-stone-450 block mb-1",children:"Items Summary"}),j.items.map((_,Le)=>n.jsxs("div",{className:"flex justify-between text-xs text-stone-600 font-light",children:[n.jsxs("span",{children:[_.name," (x",_.quantity,")"]}),n.jsxs("span",{children:["₦",(_.price*_.quantity).toLocaleString()]})]},Le)),n.jsxs("div",{className:"flex justify-between text-xs text-stone-550 border-t border-dashed border-stone-200 pt-2 font-mono",children:[n.jsx("span",{children:"Delivery Logistics"}),n.jsxs("span",{children:["₦",j.deliveryFee.toLocaleString()]})]}),n.jsxs("div",{className:"flex justify-between font-display text-sm font-bold text-stone-850 pt-1",children:[n.jsx("span",{children:"Total Charge"}),n.jsxs("span",{children:["₦",j.totalAmount.toLocaleString()]})]})]})]}),n.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-3.5 flex items-start space-x-2 text-stone-700",children:[n.jsx(ll,{className:"h-4.5 w-4.5 text-amber-800 shrink-0 mt-0.5"}),n.jsx("p",{className:"text-[10.5px] font-light leading-relaxed",children:j.paymentMethod==="bank-transfer"?"Our support team in Lagos will confirm your bank transfer shortly. Your order status will be updated once verified by our admin.":"Your payment was successful! Your products will be prepared for delivery within 24 hours."})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-3 pt-2",children:[n.jsx("button",{onClick:()=>U("cart"),className:"flex-grow bg-[#FAF6EE] text-primary-green border border-accent-gold/30 hover:bg-primary-green hover:text-white rounded-xl py-3 text-xs uppercase tracking-widest font-semibold transition text-center duration-300 active:scale-95",children:"Back to Shopping Cart"}),n.jsx("a",{href:`https://wa.me/${(F.storePhone||"2349084451121").replace(/\D/g,"")}?text=Hello%20Mummcy%20Ayofe%20Support%21%2520I%2520just%2520placed%2520order%2520%23${j==null?void 0:j.orderNumber}`,target:"_blank",rel:"noopener noreferrer",className:"flex-grow bg-emerald-600 hover:bg-emerald-500 text-white rounded-xl py-3 text-xs uppercase tracking-widest font-semibold transition text-center block",children:"Dispatch Update via WhatsApp"})]})]}),xt&&n.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-stone-900/60 backdrop-blur-md p-4",children:n.jsxs("div",{className:"bg-[#FAF9F5] rounded-3xl border border-accent-gold max-w-md w-full overflow-hidden shadow-2xl relative animate-in zoom-in-95 duration-200",children:[n.jsxs("div",{className:"bg-[#1e1e1e] p-5 text-white flex items-center justify-between border-b border-accent-gold/25",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("div",{className:"h-6 w-6 rounded-md bg-[#ea580c] text-white flex items-center justify-center font-bold text-[10px]",children:"M"}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-bold leading-none tracking-tight",children:"MONNIFY SECURE WEB"}),n.jsx("span",{className:"text-[8.5px] text-stone-400 block mt-0.5",children:"Pay MUMMCY AYOFE HERBAL CARE"})]})]}),n.jsxs("span",{className:"text-xs font-mono font-bold text-orange-400",children:["₦",Tt.toLocaleString()]})]}),n.jsxs("div",{className:"p-6 space-y-5",children:[n.jsx("div",{className:"bg-yellow-50 text-yellow-800 border-yellow-200 border rounded-xl p-3 text-[10px] leading-relaxed",children:"🚨 This is a simulated premium secure Monnify sandbox testing integration. You can type fictitious credentials to proceed with order testing."}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase font-mono tracking-wider text-stone-500 mb-1",children:"CARD NUMBER"}),n.jsx("input",{type:"text",required:!0,maxLength:19,placeholder:"5399 2144 0021 3321",className:"w-full bg-white border border-stone-200 rounded-xl px-3.5 py-2.5 text-xs text-stone-800 font-mono",value:Ae,onChange:_=>dt(_.target.value)})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase font-mono tracking-wider text-stone-500 mb-1",children:"EXPIRY DATE"}),n.jsx("input",{type:"text",required:!0,placeholder:"MM/YY",className:"w-full bg-white border border-stone-200 rounded-xl px-3.5 py-2.5 text-xs text-stone-850",value:k,onChange:_=>se(_.target.value)})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase font-mono tracking-wider text-stone-500 mb-1",children:"CVV CODE"}),n.jsx("input",{type:"password",required:!0,maxLength:3,placeholder:"•••",className:"w-full bg-white border border-stone-200 rounded-xl px-3.5 py-2.5 text-xs text-stone-855",value:y,onChange:_=>M(_.target.value)})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-[10px] uppercase font-mono tracking-wider text-stone-500 mb-1",children:"CARD PIN"}),n.jsx("input",{type:"password",required:!0,maxLength:4,placeholder:"••••",className:"w-full bg-white border border-stone-200 rounded-xl px-3.5 py-2.5 text-xs text-stone-855",value:J,onChange:_=>ne(_.target.value)})]})]}),n.jsxs("div",{className:"flex justify-between items-center text-[9px] text-stone-400",children:[n.jsx("span",{children:"🔒 PCIDSS COMPLIANT SECURE"}),n.jsx("span",{children:"STERLING MOCK ACQUIRING"})]})]}),n.jsxs("div",{className:"bg-[#181818] p-4 flex items-center justify-between",children:[n.jsx("button",{type:"button",onClick:()=>Ie(!1),className:"text-stone-400 hover:text-white text-xs tracking-wider uppercase font-semibold transition active:scale-95",children:"Cancel payment"}),n.jsx("button",{type:"button",disabled:ve,onClick:Mt,className:"bg-[#ea580c] hover:bg-orange-500 text-white font-semibold px-6 py-2.5 rounded-xl text-xs uppercase tracking-widest transition active:scale-95 disabled:opacity-40",children:ve?"AUTHORIZING...":"CONFIRM &amp; PAY"})]})]})})]})}function Ip(){const C=window.location.pathname==="/admin"?"admin":"home",[q,L]=w.useState(C);w.useEffect(()=>{q==="admin"&&window.location.pathname!=="/admin"?window.history.replaceState(null,"","/admin"):q!=="admin"&&window.location.pathname==="/admin"&&window.history.replaceState(null,"","/")},[q]);const[x,z]=w.useState([]),[U,F]=w.useState([]),[P,E]=w.useState(!0),[b,V]=w.useState(void 0),[D,le]=w.useState([]),[Se,R]=w.useState(!1),[ce,ge]=w.useState(null),ye=(k,se="success")=>{ge({message:k,type:se}),setTimeout(()=>ge(null),4e3)},[G,B]=w.useState({storeAddress:"Plot 24B, Admiralty Way, Lekki Phase 1, Lagos, Nigeria",storePhone:"+234 908 445 1121",storeEmail:"wellness@eweandori.com",homepageImage:"/images/model_homepage.jpg",ceoImage:"/src/assets/images/mummy_ayofe_bags_1779911520990.png",adminPassword:"admin"}),ee=async()=>{try{const k=await fetch("/api/settings");if(k.ok){const se=await k.json();B({storeAddress:se.storeAddress||"Plot 24B, Admiralty Way, Lekki Phase 1, Lagos, Nigeria",storePhone:se.storePhone||"+234 908 445 1121",storeEmail:se.storeEmail||"wellness@eweandori.com",homepageImage:se.homepageImage||"/images/model_homepage.jpg",ceoImage:se.ceoImage||"/src/assets/images/mummy_ayofe_bags_1779911520990.png",adminPassword:se.adminPassword||"admin"})}}catch(k){console.error("Failed to load global active settings:",k)}},Ce=async()=>{try{const k=await fetch("/api/categories");if(k.ok){const se=await k.json();F(se)}}catch(k){console.error("Failed to query botanical categories:",k)}},H=async()=>{E(!0);try{const k=await fetch("/api/products");if(k.ok){const se=await k.json();z(se)}}catch(k){console.error("Failed to query product range:",k),ye("Error communicating with botanical server. Using local backup.","error")}finally{E(!1)}};w.useEffect(()=>{H(),Ce(),ee()},[]),w.useEffect(()=>{const k=localStorage.getItem("ayofe_vessel_cart");if(k)try{le(JSON.parse(k))}catch(se){console.error(se)}},[]);const ae=k=>{le(k),localStorage.setItem("ayofe_vessel_cart",JSON.stringify(k))},K=(k,se=1)=>{const y=[...D],M=y.findIndex(J=>J.productId===k.id);M!==-1?y[M].quantity=Math.min(k.stock,y[M].quantity+se):y.push({productId:k.id,name:k.name,price:k.price,quantity:se,image:k.image}),ae(y),ye(`"${k.name}" added to your shopping cart!`,"success")},De=(k,se)=>{const y=x.find(ne=>ne.id===k),M=y?y.stock:20,J=D.map(ne=>ne.productId===k?{...ne,quantity:Math.max(1,Math.min(M,se))}:ne).filter(ne=>ne.quantity>0);ae(J)},xt=k=>{const se=D.filter(y=>y.productId!==k);ae(se),ye("Product removed from cart.","info")},Ie=()=>{ae([])},Ae=D.reduce((k,se)=>k+se.quantity,0),dt=D.reduce((k,se)=>k+se.price*se.quantity,0);return n.jsxs("div",{id:"app-viewport",className:"flex flex-col min-h-screen bg-cream-bg text-stone-800",children:[n.jsxs("div",{id:"compliance-ribbon",className:"bg-primary-green text-[#FAF6EE] text-[10.5px] py-2 px-4 text-center border-b border-accent-gold/20 tracking-wider uppercase font-semibold flex flex-col sm:flex-row justify-center items-center gap-1 sm:gap-2.5",children:[n.jsx("span",{className:"text-accent-gold font-bold",children:"★ Traditional Botanical Rites"}),n.jsx("span",{children:"Mummy Ayofe Herbal Store remedies support organic wellness complexions. Results vary."})]}),n.jsx(Qp,{activeTab:q,setActiveTab:k=>{L(k),k!=="shop"&&V(void 0),window.scrollTo({top:0,behavior:"smooth"})},cartCount:Ae,onCartClick:()=>R(!0),settings:G}),n.jsxs("main",{id:"main-content",className:"flex-grow",children:[q==="home"&&n.jsx(Zp,{products:x,categories:U,setActiveTab:k=>{L(k),window.scrollTo({top:0,behavior:"smooth"})},setSelectedProductId:V,onAddToCart:K,settings:G}),q==="shop"&&n.jsx(Fp,{products:x,categories:U,onAddToCart:K,isLoading:P,selectedProductId:b}),q==="consultation"&&n.jsx(Kp,{onSuggestBooking:()=>{L("booking"),window.scrollTo({top:0})}}),q==="booking"&&n.jsx(Jp,{}),q==="admin"&&n.jsx($p,{products:x,onRefreshProducts:H,categories:U,onRefreshCategories:Ce,onSettingsSaved:ee,settings:G}),q==="cart"&&n.jsx(Wp,{cart:D,onUpdateQty:De,onRemoveItem:xt,onClearCart:Ie})]}),n.jsx(Xp,{settings:G}),Se&&n.jsx("div",{id:"cart-drawer-backdrop",className:"fixed inset-0 z-50 bg-stone-900/60 backdrop-blur-xs flex justify-end",children:n.jsxs("div",{id:"cart-drawer-panel",className:"w-full max-w-md bg-cream-bg h-full flex flex-col justify-between p-6 border-l border-accent-gold/30 animate-in slide-in-from-right duration-300",children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-accent-gold/25 pb-4",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx(Cl,{className:"h-5 w-5 text-primary-green"}),n.jsxs("h3",{className:"font-serif text-lg text-primary-green font-bold uppercase",children:["Shopping Cart (",Ae,")"]})]}),n.jsx("button",{onClick:()=>R(!1),className:"flex h-8 w-8 items-center justify-center rounded-full border border-stone-200 text-stone-700 hover:bg-white transition",children:n.jsx(ra,{className:"h-4.5 w-4.5"})})]}),n.jsx("div",{className:"flex-grow overflow-y-auto py-4 space-y-4",children:D.length===0?n.jsxs("div",{className:"text-center py-20 space-y-2",children:[n.jsx("span",{className:"text-stone-400 text-3xl block",children:"🛒"}),n.jsx("h4",{className:"font-display font-medium text-stone-700 text-xs uppercase tracking-wider",children:"Your cart is empty"}),n.jsx("p",{className:"text-stone-500 text-[11px] font-light max-w-[200px] mx-auto",children:"Choose traditional skin oils, organic wellness teas, or herbal remedies to begin your wellness journey."})]}):D.map(k=>n.jsxs("div",{className:"flex justify-between items-center bg-white border border-accent-gold/15 p-3 rounded-xl",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("img",{src:k.image,alt:k.name,className:"h-10 w-10 object-cover rounded-md"}),n.jsxs("div",{children:[n.jsx("h5",{className:"font-display font-bold text-xs text-primary-green line-clamp-1 leading-snug",children:k.name}),n.jsxs("span",{className:"text-[10px] text-[#8C7A62] font-semibold block mt-0.5",children:["₦",k.price.toLocaleString()]})]})]}),n.jsxs("div",{className:"flex items-center space-x-3 shrink-0",children:[n.jsxs("div",{className:"flex items-center border border-stone-200 rounded-lg overflow-hidden h-7 text-[11px]",children:[n.jsx("button",{onClick:()=>De(k.productId,k.quantity-1),className:"px-2 hover:bg-stone-100 font-bold",children:"-"}),n.jsx("span",{className:"px-1.5 font-bold",children:k.quantity}),n.jsx("button",{onClick:()=>De(k.productId,k.quantity+1),className:"px-2 hover:bg-stone-100 font-bold",children:"+"})]}),n.jsx("button",{onClick:()=>xt(k.productId),className:"text-stone-400 hover:text-red-700 transition",children:n.jsx(ra,{className:"h-4.5 w-4.5"})})]})]},k.productId))}),n.jsxs("div",{className:"border-t border-accent-gold/25 pt-4 space-y-4",children:[n.jsxs("div",{className:"flex justify-between font-display text-sm font-semibold text-stone-850",children:[n.jsx("span",{children:"Subtotal"}),n.jsxs("span",{children:["₦",dt.toLocaleString()]})]}),n.jsx("p",{className:"text-[10px] text-stone-550 leading-normal italic font-light",children:"* Shipping fees are calculated at checkout."}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("button",{disabled:D.length===0,onClick:()=>{R(!1),L("cart"),window.scrollTo({top:0})},className:"w-full bg-primary-green hover:bg-[#14432a] text-white font-bold py-3 rounded-xl text-xs uppercase tracking-widest transition text-center disabled:opacity-45",children:"Proceed to Checkout"}),n.jsx("button",{onClick:()=>R(!1),className:"w-full text-center text-[10px] tracking-widest font-bold uppercase text-[#8C7A62] hover:text-[#5C4D3A] transition",children:"Continue Shopping"})]})]})]})}),n.jsxs("button",{id:"floating-side-cart",onClick:()=>R(!0),className:"fixed right-0 top-1/2 -translate-y-1/2 z-40 bg-primary-green hover:bg-[#123e24] text-[#FAF6EE] border-l border-y border-accent-gold/45 rounded-l-2xl pl-3 pr-3.5 py-4.5 shadow-xl hover:pl-4.5 transition-all duration-300 group flex flex-col items-center gap-2 cursor-pointer outline-none focus:ring-1 focus:ring-accent-gold/40",title:"View Shopping Vessel",children:[n.jsxs("div",{className:"relative",children:[n.jsx(ho,{className:"h-5.5 w-5.5 text-accent-gold group-hover:rotate-6 transition-transform duration-300"}),Ae>0&&n.jsx("span",{className:"absolute -top-2 -right-2 bg-[#7D1E1E] text-white text-[9px] font-mono font-bold px-1.5 py-0.5 rounded-full min-w-[16px] h-4 flex items-center justify-center shadow-xs border border-white/20 animate-pulse",children:Ae})]}),n.jsx("span",{className:"text-[8px] font-mono tracking-widest font-bold text-accent-gold uppercase select-none mt-1",style:{writingMode:"vertical-rl"},children:"CART"})]}),ce&&n.jsxs("div",{className:"fixed bottom-6 left-6 z-50 max-w-sm w-full bg-[#181818] text-white border border-[#2b2b2b] rounded-2xl p-4.5 shadow-2xl flex items-start space-x-3.5 animate-in slide-in-from-bottom duration-300",children:[ce.type==="success"?n.jsx(Oa,{className:"h-5 w-5 text-emerald-500 shrink-0 mt-0.5"}):ce.type==="error"?n.jsx(ll,{className:"h-5 w-5 text-red-500 shrink-0 mt-0.5"}):n.jsx(Cl,{className:"h-5 w-5 text-accent-gold shrink-0 mt-0.5"}),n.jsx("div",{className:"flex-grow",children:n.jsx("p",{className:"text-xs font-medium leading-relaxed font-sans",children:ce.message})}),n.jsx("button",{onClick:()=>ge(null),className:"text-stone-400 hover:text-white shrink-0",children:n.jsx(ra,{className:"h-4 w-4"})})]})]})}Mh.createRoot(document.getElementById("root")).render(n.jsx(w.StrictMode,{children:n.jsx(Ip,{})}));
