| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();function rh(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var nc={exports:{}},Wn={};/**
- * @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 Lm;function Tp(){if(Lm)return Wn;Lm=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function r(c,d,m){var y=null;if(m!==void 0&&(y=""+m),d.key!==void 0&&(y=""+d.key),"key"in d){m={};for(var v in d)v!=="key"&&(m[v]=d[v])}else m=d;return d=m.ref,{$$typeof:i,type:c,key:y,ref:d!==void 0?d:null,props:m}}return Wn.Fragment=s,Wn.jsx=r,Wn.jsxs=r,Wn}var Hm;function Np(){return Hm||(Hm=1,nc.exports=Tp()),nc.exports}var f=Np(),ic={exports:{}},In={},uc={exports:{}},sc={};/**
- * @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 km;function jp(){return km||(km=1,(function(i){function s(R,K){var ae=R.length;R.push(K);e:for(;0<ae;){var Te=ae-1>>>1,we=R[Te];if(0<d(we,K))R[Te]=K,R[ae]=we,ae=Te;else break e}}function r(R){return R.length===0?null:R[0]}function c(R){if(R.length===0)return null;var K=R[0],ae=R.pop();if(ae!==K){R[0]=ae;e:for(var Te=0,we=R.length,T=we>>>1;Te<T;){var G=2*(Te+1)-1,J=R[G],I=G+1,ce=R[I];if(0>d(J,ae))I<we&&0>d(ce,J)?(R[Te]=ce,R[I]=ae,Te=I):(R[Te]=J,R[G]=ae,Te=G);else if(I<we&&0>d(ce,ae))R[Te]=ce,R[I]=ae,Te=I;else break e}}return K}function d(R,K){var ae=R.sortIndex-K.sortIndex;return ae!==0?ae:R.id-K.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var y=Date,v=y.now();i.unstable_now=function(){return y.now()-v}}var g=[],p=[],b=1,x=null,j=3,M=!1,D=!1,L=!1,Y=!1,B=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function Q(R){for(var K=r(p);K!==null;){if(K.callback===null)c(p);else if(K.startTime<=R)c(p),K.sortIndex=K.expirationTime,s(g,K);else break;K=r(p)}}function Z(R){if(L=!1,Q(R),!D)if(r(g)!==null)D=!0,$||($=!0,se());else{var K=r(p);K!==null&&Be(Z,K.startTime-R)}}var $=!1,X=-1,F=5,le=-1;function V(){return Y?!0:!(i.unstable_now()-le<F)}function ee(){if(Y=!1,$){var R=i.unstable_now();le=R;var K=!0;try{e:{D=!1,L&&(L=!1,k(X),X=-1),M=!0;var ae=j;try{t:{for(Q(R),x=r(g);x!==null&&!(x.expirationTime>R&&V());){var Te=x.callback;if(typeof Te=="function"){x.callback=null,j=x.priorityLevel;var we=Te(x.expirationTime<=R);if(R=i.unstable_now(),typeof we=="function"){x.callback=we,Q(R),K=!0;break t}x===r(g)&&c(g),Q(R)}else c(g);x=r(g)}if(x!==null)K=!0;else{var T=r(p);T!==null&&Be(Z,T.startTime-R),K=!1}}break e}finally{x=null,j=ae,M=!1}K=void 0}}finally{K?se():$=!1}}}var se;if(typeof w=="function")se=function(){w(ee)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ce=Ue.port2;Ue.port1.onmessage=ee,se=function(){Ce.postMessage(null)}}else se=function(){B(ee,0)};function Be(R,K){X=B(function(){R(i.unstable_now())},K)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<R?Math.floor(1e3/R):5},i.unstable_getCurrentPriorityLevel=function(){return j},i.unstable_next=function(R){switch(j){case 1:case 2:case 3:var K=3;break;default:K=j}var ae=j;j=K;try{return R()}finally{j=ae}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(R,K){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ae=j;j=R;try{return K()}finally{j=ae}},i.unstable_scheduleCallback=function(R,K,ae){var Te=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Te+ae:Te):ae=Te,R){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=ae+we,R={id:b++,callback:K,priorityLevel:R,startTime:ae,expirationTime:we,sortIndex:-1},ae>Te?(R.sortIndex=ae,s(p,R),r(g)===null&&R===r(p)&&(L?(k(X),X=-1):L=!0,Be(Z,ae-Te))):(R.sortIndex=we,s(g,R),D||M||(D=!0,$||($=!0,se()))),R},i.unstable_shouldYield=V,i.unstable_wrapCallback=function(R){var K=j;return function(){var ae=j;j=K;try{return R.apply(this,arguments)}finally{j=ae}}}})(sc)),sc}var qm;function Ap(){return qm||(qm=1,uc.exports=jp()),uc.exports}var rc={exports:{}},re={};/**
- * @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 Ym;function Cp(){if(Ym)return re;Ym=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),j=Symbol.iterator;function M(T){return T===null||typeof T!="object"?null:(T=j&&T[j]||T["@@iterator"],typeof T=="function"?T:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,Y={};function B(T,G,J){this.props=T,this.context=G,this.refs=Y,this.updater=J||D}B.prototype.isReactComponent={},B.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,G,"setState")},B.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function k(){}k.prototype=B.prototype;function w(T,G,J){this.props=T,this.context=G,this.refs=Y,this.updater=J||D}var Q=w.prototype=new k;Q.constructor=w,L(Q,B.prototype),Q.isPureReactComponent=!0;var Z=Array.isArray;function $(){}var X={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function le(T,G,J){var I=J.ref;return{$$typeof:i,type:T,key:G,ref:I!==void 0?I:null,props:J}}function V(T,G){return le(T.type,G,T.props)}function ee(T){return typeof T=="object"&&T!==null&&T.$$typeof===i}function se(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(J){return G[J]})}var Ue=/\/+/g;function Ce(T,G){return typeof T=="object"&&T!==null&&T.key!=null?se(""+T.key):G.toString(36)}function Be(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then($,$):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function R(T,G,J,I,ce){var de=typeof T;(de==="undefined"||de==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(de){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case i:case s:Se=!0;break;case b:return Se=T._init,R(Se(T._payload),G,J,I,ce)}}if(Se)return ce=ce(T),Se=I===""?"."+Ce(T,0):I,Z(ce)?(J="",Se!=null&&(J=Se.replace(Ue,"$&/")+"/"),R(ce,G,J,"",function(ln){return ln})):ce!=null&&(ee(ce)&&(ce=V(ce,J+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(Ue,"$&/")+"/")+Se)),G.push(ce)),1;Se=0;var lt=I===""?".":I+":";if(Z(T))for(var qe=0;qe<T.length;qe++)I=T[qe],de=lt+Ce(I,qe),Se+=R(I,G,J,de,ce);else if(qe=M(T),typeof qe=="function")for(T=qe.call(T),qe=0;!(I=T.next()).done;)I=I.value,de=lt+Ce(I,qe++),Se+=R(I,G,J,de,ce);else if(de==="object"){if(typeof T.then=="function")return R(Be(T),G,J,I,ce);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(T,G,J){if(T==null)return T;var I=[],ce=0;return R(T,I,"","",function(de){return G.call(J,de,ce++)}),I}function ae(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(J){(T._status===0||T._status===-1)&&(T._status=1,T._result=J)},function(J){(T._status===0||T._status===-1)&&(T._status=2,T._result=J)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var Te=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},we={map:K,forEach:function(T,G,J){K(T,function(){G.apply(this,arguments)},J)},count:function(T){var G=0;return K(T,function(){G++}),G},toArray:function(T){return K(T,function(G){return G})||[]},only:function(T){if(!ee(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return re.Activity=x,re.Children=we,re.Component=B,re.Fragment=r,re.Profiler=d,re.PureComponent=w,re.StrictMode=c,re.Suspense=g,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,re.__COMPILER_RUNTIME={__proto__:null,c:function(T){return X.H.useMemoCache(T)}},re.cache=function(T){return function(){return T.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(T,G,J){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var I=L({},T.props),ce=T.key;if(G!=null)for(de in G.key!==void 0&&(ce=""+G.key),G)!F.call(G,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&G.ref===void 0||(I[de]=G[de]);var de=arguments.length-2;if(de===1)I.children=J;else if(1<de){for(var Se=Array(de),lt=0;lt<de;lt++)Se[lt]=arguments[lt+2];I.children=Se}return le(T.type,ce,I)},re.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},re.createElement=function(T,G,J){var I,ce={},de=null;if(G!=null)for(I in G.key!==void 0&&(de=""+G.key),G)F.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ce[I]=G[I]);var Se=arguments.length-2;if(Se===1)ce.children=J;else if(1<Se){for(var lt=Array(Se),qe=0;qe<Se;qe++)lt[qe]=arguments[qe+2];ce.children=lt}if(T&&T.defaultProps)for(I in Se=T.defaultProps,Se)ce[I]===void 0&&(ce[I]=Se[I]);return le(T,de,ce)},re.createRef=function(){return{current:null}},re.forwardRef=function(T){return{$$typeof:v,render:T}},re.isValidElement=ee,re.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:ae}},re.memo=function(T,G){return{$$typeof:p,type:T,compare:G===void 0?null:G}},re.startTransition=function(T){var G=X.T,J={};X.T=J;try{var I=T(),ce=X.S;ce!==null&&ce(J,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then($,Te)}catch(de){Te(de)}finally{G!==null&&J.types!==null&&(G.types=J.types),X.T=G}},re.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},re.use=function(T){return X.H.use(T)},re.useActionState=function(T,G,J){return X.H.useActionState(T,G,J)},re.useCallback=function(T,G){return X.H.useCallback(T,G)},re.useContext=function(T){return X.H.useContext(T)},re.useDebugValue=function(){},re.useDeferredValue=function(T,G){return X.H.useDeferredValue(T,G)},re.useEffect=function(T,G){return X.H.useEffect(T,G)},re.useEffectEvent=function(T){return X.H.useEffectEvent(T)},re.useId=function(){return X.H.useId()},re.useImperativeHandle=function(T,G,J){return X.H.useImperativeHandle(T,G,J)},re.useInsertionEffect=function(T,G){return X.H.useInsertionEffect(T,G)},re.useLayoutEffect=function(T,G){return X.H.useLayoutEffect(T,G)},re.useMemo=function(T,G){return X.H.useMemo(T,G)},re.useOptimistic=function(T,G){return X.H.useOptimistic(T,G)},re.useReducer=function(T,G,J){return X.H.useReducer(T,G,J)},re.useRef=function(T){return X.H.useRef(T)},re.useState=function(T){return X.H.useState(T)},re.useSyncExternalStore=function(T,G,J){return X.H.useSyncExternalStore(T,G,J)},re.useTransition=function(){return X.H.useTransition()},re.version="19.2.3",re}var Gm;function jc(){return Gm||(Gm=1,rc.exports=Cp()),rc.exports}var cc={exports:{}},tt={};/**
- * @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 Xm;function wp(){if(Xm)return tt;Xm=1;var i=jc();function s(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(s(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(g,p,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:g,containerInfo:p,implementation:b}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,tt.createPortal=function(g,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(s(299));return m(g,p,null,b)},tt.flushSync=function(g){var p=y.T,b=c.p;try{if(y.T=null,c.p=2,g)return g()}finally{y.T=p,c.p=b,c.d.f()}},tt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(g,p))},tt.prefetchDNS=function(g){typeof g=="string"&&c.d.D(g)},tt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,x=v(b,p.crossOrigin),j=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?c.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:j,fetchPriority:M}):b==="script"&&c.d.X(g,{crossOrigin:x,integrity:j,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=v(p.as,p.crossOrigin);c.d.M(g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(g)},tt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,x=v(b,p.crossOrigin);c.d.L(g,b,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=v(p.as,p.crossOrigin);c.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(g)},tt.requestFormReset=function(g){c.d.r(g)},tt.unstable_batchedUpdates=function(g,p){return g(p)},tt.useFormState=function(g,p,b){return y.H.useFormState(g,p,b)},tt.useFormStatus=function(){return y.H.useHostTransitionStatus()},tt.version="19.2.3",tt}var Qm;function zp(){if(Qm)return cc.exports;Qm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),cc.exports=wp(),cc.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 Vm;function Mp(){if(Vm)return In;Vm=1;var i=Ap(),s=jc(),r=zp();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(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 v(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 g(e){if(m(e)!==e)throw Error(c(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var u=n.alternate;if(u===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===a)return g(n),e;if(u===l)return g(n),t;u=u.sibling}throw Error(c(188))}if(a.return!==l.return)a=n,l=u;else{for(var o=!1,h=n.child;h;){if(h===a){o=!0,a=n,l=u;break}if(h===l){o=!0,l=n,a=u;break}h=h.sibling}if(!o){for(h=u.child;h;){if(h===a){o=!0,a=u,l=n;break}if(h===l){o=!0,l=u,a=n;break}h=h.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,j=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),w=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case B:return"Profiler";case Y:return"StrictMode";case Z:return"Suspense";case $:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case w:return e.displayName||"Context";case k:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var Be=Array.isArray,R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Te=[],we=-1;function T(e){return{current:e}}function G(e){0>we||(e.current=Te[we],Te[we]=null,we--)}function J(e,t){we++,Te[we]=e.current,e.current=t}var I=T(null),ce=T(null),de=T(null),Se=T(null);function lt(e,t){switch(J(de,t),J(ce,e),J(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?um(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=um(t),e=sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(I),J(I,e)}function qe(){G(I),G(ce),G(de)}function ln(e){e.memoizedState!==null&&J(Se,e);var t=I.current,a=sm(t,e.type);t!==a&&(J(ce,e),J(I,a))}function ci(e){ce.current===e&&(G(I),G(ce)),Se.current===e&&(G(Se),Kn._currentValue=ae)}var qu,Dc;function Va(e){if(qu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);qu=t&&t[1]||"",Dc=-1<a.stack.indexOf(`
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
- `+qu+e+Dc}var Yu=!1;function Gu(e,t){if(!e||Yu)return"";Yu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(O){var z=O}Reflect.construct(e,[],q)}else{try{q.call()}catch(O){z=O}e.call(q.prototype)}}else{try{throw Error()}catch(O){z=O}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(O){if(O&&z&&typeof O.stack=="string")return[O.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),o=u[0],h=u[1];if(o&&h){var S=o.split(`
- `),C=h.split(`
- `);for(n=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;n<C.length&&!C[n].includes("DetermineComponentFrameRoot");)n++;if(l===S.length||n===C.length)for(l=S.length-1,n=C.length-1;1<=l&&0<=n&&S[l]!==C[n];)n--;for(;1<=l&&0<=n;l--,n--)if(S[l]!==C[n]){if(l!==1||n!==1)do if(l--,n--,0>n||S[l]!==C[n]){var U=`
- `+S[l].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=l&&0<=n);break}}}finally{Yu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Va(a):""}function t0(e,t){switch(e.tag){case 26:case 27:case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return e.child!==t&&t!==null?Va("Suspense Fallback"):Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return Gu(e.type,!1);case 11:return Gu(e.type.render,!1);case 1:return Gu(e.type,!0);case 31:return Va("Activity");default:return""}}function Uc(e){try{var t="",a=null;do t+=t0(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
- Error generating stack: `+l.message+`
- `+l.stack}}var Xu=Object.prototype.hasOwnProperty,Qu=i.unstable_scheduleCallback,Vu=i.unstable_cancelCallback,a0=i.unstable_shouldYield,l0=i.unstable_requestPaint,mt=i.unstable_now,n0=i.unstable_getCurrentPriorityLevel,Bc=i.unstable_ImmediatePriority,Lc=i.unstable_UserBlockingPriority,oi=i.unstable_NormalPriority,i0=i.unstable_LowPriority,Hc=i.unstable_IdlePriority,u0=i.log,s0=i.unstable_setDisableYieldValue,nn=null,ht=null;function pa(e){if(typeof u0=="function"&&s0(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(nn,e)}catch{}}var yt=Math.clz32?Math.clz32:o0,r0=Math.log,c0=Math.LN2;function o0(e){return e>>>=0,e===0?32:31-(r0(e)/c0|0)|0}var fi=256,di=262144,mi=4194304;function Za(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 hi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~u,l!==0?n=Za(l):(o&=h,o!==0?n=Za(o):a||(a=h&~e,a!==0&&(n=Za(a))))):(h=l&~u,h!==0?n=Za(h):o!==0?n=Za(o):a||(a=l&~e,a!==0&&(n=Za(a)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:n}function un(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function f0(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 kc(){var e=mi;return mi<<=1,(mi&62914560)===0&&(mi=4194304),e}function Zu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function sn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function d0(e,t,a,l,n,u){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var h=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(a=o&~a;0<a;){var U=31-yt(a),q=1<<U;h[U]=0,S[U]=-1;var z=C[U];if(z!==null)for(C[U]=null,U=0;U<z.length;U++){var O=z[U];O!==null&&(O.lane&=-536870913)}a&=~q}l!==0&&qc(e,l,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function qc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-yt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Yc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-yt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Gc(e,t){var a=t&-t;return a=(a&42)!==0?1:Ku(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ku(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 Ju(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xc(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:zm(e.type))}function Qc(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var ga=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ga,ut="__reactProps$"+ga,hl="__reactContainer$"+ga,$u="__reactEvents$"+ga,m0="__reactListeners$"+ga,h0="__reactHandles$"+ga,Vc="__reactResources$"+ga,rn="__reactMarker$"+ga;function Fu(e){delete e[Fe],delete e[ut],delete e[$u],delete e[m0],delete e[h0]}function yl(e){var t=e[Fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hl]||a[Fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hm(e);e!==null;){if(a=e[Fe])return a;e=hm(e)}return t}e=a,a=e.parentNode}return null}function pl(e){if(e=e[Fe]||e[hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function cn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function gl(e){var t=e[Vc];return t||(t=e[Vc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[rn]=!0}var Zc=new Set,Kc={};function Ka(e,t){vl(e,t),vl(e+"Capture",t)}function vl(e,t){for(Kc[e]=t,e=0;e<t.length;e++)Zc.add(t[e])}var y0=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]*$"),Jc={},$c={};function p0(e){return Xu.call($c,e)?!0:Xu.call(Jc,e)?!1:y0.test(e)?$c[e]=!0:(Jc[e]=!0,!1)}function yi(e,t,a){if(p0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function pi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Vt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function g0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wu(e){if(!e._valueTracker){var t=Fc(e)?"checked":"value";e._valueTracker=g0(e,t,""+e[t])}}function Wc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Fc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function gi(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 v0=/[\n"\\]/g;function Nt(e){return e.replace(v0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Iu(e,t,a,l,n,u,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Pu(e,o,Tt(t)):a!=null?Pu(e,o,Tt(a)):l!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Tt(h):e.removeAttribute("name")}function Ic(e,t,a,l,n,u,o,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Wu(e);return}a=a!=null?""+Tt(a):"",t=t!=null?""+Tt(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Wu(e)}function Pu(e,t,a){t==="number"&&gi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Tt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Pc(e,t,a){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Tt(a):""}function eo(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(c(92));if(Be(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Tt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Wu(e)}function bl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var x0=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 to(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||x0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ao(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&to(e,n,l)}else for(var u in t)t.hasOwnProperty(u)&&to(e,u,t[u])}function es(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 b0=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"]]),S0=/^[\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 vi(e){return S0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var ts=null;function as(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,El=null;function lo(e){var t=pl(e);if(t&&(e=t.stateNode)){var a=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Iu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Nt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ut]||null;if(!n)throw Error(c(90));Iu(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Wc(l)}break e;case"textarea":Pc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&xl(e,!!a.multiple,t,!1)}}}var ls=!1;function no(e,t,a){if(ls)return e(t,a);ls=!0;try{var l=e(t);return l}finally{if(ls=!1,(Sl!==null||El!==null)&&(iu(),Sl&&(t=Sl,e=El,El=Sl=null,lo(t),e)))for(t=0;t<e.length;t++)lo(e[t])}}function on(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ut]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ns=!1;if(Kt)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){ns=!0}}),window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{ns=!1}var va=null,is=null,xi=null;function io(){if(xi)return xi;var e,t=is,a=t.length,l,n="value"in va?va.value:va.textContent,u=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[u-l];l++);return xi=n.slice(e,1<l?1-l:void 0)}function bi(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 Si(){return!0}function uo(){return!1}function st(e){function t(a,l,n,u,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Si:uo,this.isPropagationStopped=uo,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Si)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),t}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ei=st(Ja),dn=x({},Ja,{view:0,detail:0}),E0=st(dn),us,ss,mn,_i=x({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cs,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!==mn&&(mn&&e.type==="mousemove"?(us=e.screenX-mn.screenX,ss=e.screenY-mn.screenY):ss=us=0,mn=e),us)},movementY:function(e){return"movementY"in e?e.movementY:ss}}),so=st(_i),_0=x({},_i,{dataTransfer:0}),T0=st(_0),N0=x({},dn,{relatedTarget:0}),rs=st(N0),j0=x({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),A0=st(j0),C0=x({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w0=st(C0),z0=x({},Ja,{data:0}),ro=st(z0),M0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O0={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"},R0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=R0[e])?!!t[e]:!1}function cs(){return D0}var U0=x({},dn,{key:function(e){if(e.key){var t=M0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cs,charCode:function(e){return e.type==="keypress"?bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),B0=st(U0),L0=x({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),co=st(L0),H0=x({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cs}),k0=st(H0),q0=x({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=st(q0),G0=x({},_i,{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}),X0=st(G0),Q0=x({},Ja,{newState:0,oldState:0}),V0=st(Q0),Z0=[9,13,27,32],os=Kt&&"CompositionEvent"in window,hn=null;Kt&&"documentMode"in document&&(hn=document.documentMode);var K0=Kt&&"TextEvent"in window&&!hn,oo=Kt&&(!os||hn&&8<hn&&11>=hn),fo=" ",mo=!1;function ho(e,t){switch(e){case"keyup":return Z0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _l=!1;function J0(e,t){switch(e){case"compositionend":return yo(t);case"keypress":return t.which!==32?null:(mo=!0,fo);case"textInput":return e=t.data,e===fo&&mo?null:e;default:return null}}function $0(e,t){if(_l)return e==="compositionend"||!os&&ho(e,t)?(e=io(),xi=is=va=null,_l=!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 oo&&t.locale!=="ko"?null:t.data;default:return null}}var F0={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 po(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!F0[e.type]:t==="textarea"}function go(e,t,a,l){Sl?El?El.push(l):El=[l]:Sl=l,t=du(t,"onChange"),0<t.length&&(a=new Ei("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var yn=null,pn=null;function W0(e){em(e,0)}function Ti(e){var t=cn(e);if(Wc(t))return e}function vo(e,t){if(e==="change")return t}var xo=!1;if(Kt){var fs;if(Kt){var ds="oninput"in document;if(!ds){var bo=document.createElement("div");bo.setAttribute("oninput","return;"),ds=typeof bo.oninput=="function"}fs=ds}else fs=!1;xo=fs&&(!document.documentMode||9<document.documentMode)}function So(){yn&&(yn.detachEvent("onpropertychange",Eo),pn=yn=null)}function Eo(e){if(e.propertyName==="value"&&Ti(pn)){var t=[];go(t,pn,e,as(e)),no(W0,t)}}function I0(e,t,a){e==="focusin"?(So(),yn=t,pn=a,yn.attachEvent("onpropertychange",Eo)):e==="focusout"&&So()}function P0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ti(pn)}function ey(e,t){if(e==="click")return Ti(t)}function ty(e,t){if(e==="input"||e==="change")return Ti(t)}function ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:ay;function gn(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!Xu.call(t,n)||!pt(e[n],t[n]))return!1}return!0}function _o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function To(e,t){var a=_o(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_o(a)}}function No(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?No(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=gi(e.document)}return t}function ms(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 ly=Kt&&"documentMode"in document&&11>=document.documentMode,Tl=null,hs=null,vn=null,ys=!1;function Ao(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ys||Tl==null||Tl!==gi(l)||(l=Tl,"selectionStart"in l&&ms(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vn&&gn(vn,l)||(vn=l,l=du(hs,"onSelect"),0<l.length&&(t=new Ei("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Tl)))}function $a(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Nl={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},ps={},Co={};Kt&&(Co=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function Fa(e){if(ps[e])return ps[e];if(!Nl[e])return e;var t=Nl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Co)return ps[e]=t[a];return e}var wo=Fa("animationend"),zo=Fa("animationiteration"),Mo=Fa("animationstart"),ny=Fa("transitionrun"),iy=Fa("transitionstart"),uy=Fa("transitioncancel"),Oo=Fa("transitionend"),Ro=new Map,gs="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(" ");gs.push("scrollEnd");function Bt(e,t){Ro.set(e,t),Ka(t,[e])}var Ni=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)},jt=[],jl=0,vs=0;function ji(){for(var e=jl,t=vs=jl=0;t<e;){var a=jt[t];jt[t++]=null;var l=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var u=jt[t];if(jt[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}u!==0&&Do(a,n,u)}}function Ai(e,t,a,l){jt[jl++]=e,jt[jl++]=t,jt[jl++]=a,jt[jl++]=l,vs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function xs(e,t,a,l){return Ai(e,t,a,l),Ci(e)}function Wa(e,t){return Ai(e,null,null,t),Ci(e)}function Do(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-yt(a),e=u.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),u):null}function Ci(e){if(50<qn)throw qn=0,Cr=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Al={};function sy(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,a,l){return new sy(e,t,a,l)}function bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var a=e.alternate;return a===null?(a=gt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Uo(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wi(e,t,a,l,n,u){var o=0;if(l=e,typeof e=="function")bs(e)&&(o=1);else if(typeof e=="string")o=dp(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=gt(31,a,t,n),e.elementType=le,e.lanes=u,e;case L:return Ia(a.children,n,u,t);case Y:o=8,n|=24;break;case B:return e=gt(12,a,t,n|2),e.elementType=B,e.lanes=u,e;case Z:return e=gt(13,a,t,n),e.elementType=Z,e.lanes=u,e;case $:return e=gt(19,a,t,n),e.elementType=$,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:o=10;break e;case k:o=9;break e;case Q:o=11;break e;case X:o=14;break e;case F:o=16,l=null;break e}o=29,a=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=gt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=u,t}function Ia(e,t,a,l){return e=gt(7,e,l,t),e.lanes=a,e}function Ss(e,t,a){return e=gt(6,e,null,t),e.lanes=a,e}function Bo(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Es(e,t,a){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lo=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var a=Lo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Uc(t)},Lo.set(e,t),t)}return{value:e,source:t,stack:Uc(t)}}var Cl=[],wl=0,zi=null,xn=0,Ct=[],wt=0,xa=null,qt=1,Yt="";function $t(e,t){Cl[wl++]=xn,Cl[wl++]=zi,zi=e,xn=t}function Ho(e,t,a){Ct[wt++]=qt,Ct[wt++]=Yt,Ct[wt++]=xa,xa=e;var l=qt;e=Yt;var n=32-yt(l)-1;l&=~(1<<n),a+=1;var u=32-yt(t)+n;if(30<u){var o=n-n%5;u=(l&(1<<o)-1).toString(32),l>>=o,n-=o,qt=1<<32-yt(t)+n|a<<n|l,Yt=u+e}else qt=1<<u|a<<n|l,Yt=e}function _s(e){e.return!==null&&($t(e,1),Ho(e,1,0))}function Ts(e){for(;e===zi;)zi=Cl[--wl],Cl[wl]=null,xn=Cl[--wl],Cl[wl]=null;for(;e===xa;)xa=Ct[--wt],Ct[wt]=null,Yt=Ct[--wt],Ct[wt]=null,qt=Ct[--wt],Ct[wt]=null}function ko(e,t){Ct[wt++]=qt,Ct[wt++]=Yt,Ct[wt++]=xa,qt=t.id,Yt=t.overflow,xa=e}var We=null,Me=null,ge=!1,ba=null,zt=!1,Ns=Error(c(519));function Sa(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bn(At(t,e)),Ns}function qo(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Fe]=e,t[ut]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Gn.length;a++)he(Gn[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Ic(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),eo(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||nm(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||Sa(e,!0)}function Yo(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:zt=!1;return;case 27:case 3:zt=!0;return;default:We=We.return}}function zl(e){if(e!==We)return!1;if(!ge)return Yo(e),ge=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Xr(e.type,e.memoizedProps)),a=!a),a&&Me&&Sa(e),Yo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Me=mm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Me=mm(e)}else t===27?(t=Me,Ua(e.type)?(e=Jr,Jr=null,Me=e):Me=t):Me=We?Ot(e.stateNode.nextSibling):null;return!0}function Pa(){Me=We=null,ge=!1}function js(){var e=ba;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),ba=null),e}function bn(e){ba===null?ba=[e]:ba.push(e)}var As=T(null),el=null,Ft=null;function Ea(e,t,a){J(As,t._currentValue),t._currentValue=a}function Wt(e){e._currentValue=As.current,G(As)}function Cs(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ws(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var o=n.child;u=u.firstContext;e:for(;u!==null;){var h=u;u=n;for(var S=0;S<t.length;S++)if(h.context===t[S]){u.lanes|=a,h=u.alternate,h!==null&&(h.lanes|=a),Cs(u.return,a,e),l||(o=null);break e}u=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=a,u=o.alternate,u!==null&&(u.lanes|=a),Cs(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Ml(e,t,a,l){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=n.type;pt(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===Se.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Kn):e=[Kn])}n=n.return}e!==null&&ws(t,e,a,l),t.flags|=262144}function Mi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){el=e,Ft=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Go(el,e)}function Oi(e,t){return el===null&&tl(e),Go(e,t)}function Go(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ft===null){if(e===null)throw Error(c(308));Ft=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ft=Ft.next=t;return a}var ry=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},cy=i.unstable_scheduleCallback,oy=i.unstable_NormalPriority,Xe={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zs(){return{controller:new ry,data:new Map,refCount:0}}function Sn(e){e.refCount--,e.refCount===0&&cy(oy,function(){e.controller.abort()})}var En=null,Ms=0,Ol=0,Rl=null;function fy(e,t){if(En===null){var a=En=[];Ms=0,Ol=Dr(),Rl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ms++,t.then(Xo,Xo),t}function Xo(){if(--Ms===0&&En!==null){Rl!==null&&(Rl.status="fulfilled");var e=En;En=null,Ol=0,Rl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dy(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Qo=R.S;R.S=function(e,t){Cd=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fy(e,t),Qo!==null&&Qo(e,t)};var al=T(null);function Os(){var e=al.current;return e!==null?e:ze.pooledCache}function Ri(e,t){t===null?J(al,al.current):J(al,t.pool)}function Vo(){var e=Os();return e===null?null:{parent:Xe._currentValue,pool:e}}var Dl=Error(c(460)),Rs=Error(c(474)),Di=Error(c(542)),Ui={then:function(){}};function Zo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ko(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Zt,Zt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$o(e),e}throw nl=t,Dl}}function ll(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(nl=a,Dl):a}}var nl=null;function Jo(){if(nl===null)throw Error(c(459));var e=nl;return nl=null,e}function $o(e){if(e===Dl||e===Di)throw Error(c(483))}var Ul=null,_n=0;function Bi(e){var t=_n;return _n+=1,Ul===null&&(Ul=[]),Ko(Ul,e,t)}function Tn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Li(e,t){throw t.$$typeof===j?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Fo(e){function t(N,_){if(e){var A=N.deletions;A===null?(N.deletions=[_],N.flags|=16):A.push(_)}}function a(N,_){if(!e)return null;for(;_!==null;)t(N,_),_=_.sibling;return null}function l(N){for(var _=new Map;N!==null;)N.key!==null?_.set(N.key,N):_.set(N.index,N),N=N.sibling;return _}function n(N,_){return N=Jt(N,_),N.index=0,N.sibling=null,N}function u(N,_,A){return N.index=A,e?(A=N.alternate,A!==null?(A=A.index,A<_?(N.flags|=67108866,_):A):(N.flags|=67108866,_)):(N.flags|=1048576,_)}function o(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function h(N,_,A,H){return _===null||_.tag!==6?(_=Ss(A,N.mode,H),_.return=N,_):(_=n(_,A),_.return=N,_)}function S(N,_,A,H){var te=A.type;return te===L?U(N,_,A.props.children,H,A.key):_!==null&&(_.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===F&&ll(te)===_.type)?(_=n(_,A.props),Tn(_,A),_.return=N,_):(_=wi(A.type,A.key,A.props,null,N.mode,H),Tn(_,A),_.return=N,_)}function C(N,_,A,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==A.containerInfo||_.stateNode.implementation!==A.implementation?(_=Es(A,N.mode,H),_.return=N,_):(_=n(_,A.children||[]),_.return=N,_)}function U(N,_,A,H,te){return _===null||_.tag!==7?(_=Ia(A,N.mode,H,te),_.return=N,_):(_=n(_,A),_.return=N,_)}function q(N,_,A){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Ss(""+_,N.mode,A),_.return=N,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case M:return A=wi(_.type,_.key,_.props,null,N.mode,A),Tn(A,_),A.return=N,A;case D:return _=Es(_,N.mode,A),_.return=N,_;case F:return _=ll(_),q(N,_,A)}if(Be(_)||se(_))return _=Ia(_,N.mode,A,null),_.return=N,_;if(typeof _.then=="function")return q(N,Bi(_),A);if(_.$$typeof===w)return q(N,Oi(N,_),A);Li(N,_)}return null}function z(N,_,A,H){var te=_!==null?_.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return te!==null?null:h(N,_,""+A,H);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case M:return A.key===te?S(N,_,A,H):null;case D:return A.key===te?C(N,_,A,H):null;case F:return A=ll(A),z(N,_,A,H)}if(Be(A)||se(A))return te!==null?null:U(N,_,A,H,null);if(typeof A.then=="function")return z(N,_,Bi(A),H);if(A.$$typeof===w)return z(N,_,Oi(N,A),H);Li(N,A)}return null}function O(N,_,A,H,te){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return N=N.get(A)||null,h(_,N,""+H,te);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case M:return N=N.get(H.key===null?A:H.key)||null,S(_,N,H,te);case D:return N=N.get(H.key===null?A:H.key)||null,C(_,N,H,te);case F:return H=ll(H),O(N,_,A,H,te)}if(Be(H)||se(H))return N=N.get(A)||null,U(_,N,H,te,null);if(typeof H.then=="function")return O(N,_,A,Bi(H),te);if(H.$$typeof===w)return O(N,_,A,Oi(_,H),te);Li(_,H)}return null}function W(N,_,A,H){for(var te=null,ve=null,P=_,fe=_=0,pe=null;P!==null&&fe<A.length;fe++){P.index>fe?(pe=P,P=null):pe=P.sibling;var xe=z(N,P,A[fe],H);if(xe===null){P===null&&(P=pe);break}e&&P&&xe.alternate===null&&t(N,P),_=u(xe,_,fe),ve===null?te=xe:ve.sibling=xe,ve=xe,P=pe}if(fe===A.length)return a(N,P),ge&&$t(N,fe),te;if(P===null){for(;fe<A.length;fe++)P=q(N,A[fe],H),P!==null&&(_=u(P,_,fe),ve===null?te=P:ve.sibling=P,ve=P);return ge&&$t(N,fe),te}for(P=l(P);fe<A.length;fe++)pe=O(P,N,fe,A[fe],H),pe!==null&&(e&&pe.alternate!==null&&P.delete(pe.key===null?fe:pe.key),_=u(pe,_,fe),ve===null?te=pe:ve.sibling=pe,ve=pe);return e&&P.forEach(function(qa){return t(N,qa)}),ge&&$t(N,fe),te}function ne(N,_,A,H){if(A==null)throw Error(c(151));for(var te=null,ve=null,P=_,fe=_=0,pe=null,xe=A.next();P!==null&&!xe.done;fe++,xe=A.next()){P.index>fe?(pe=P,P=null):pe=P.sibling;var qa=z(N,P,xe.value,H);if(qa===null){P===null&&(P=pe);break}e&&P&&qa.alternate===null&&t(N,P),_=u(qa,_,fe),ve===null?te=qa:ve.sibling=qa,ve=qa,P=pe}if(xe.done)return a(N,P),ge&&$t(N,fe),te;if(P===null){for(;!xe.done;fe++,xe=A.next())xe=q(N,xe.value,H),xe!==null&&(_=u(xe,_,fe),ve===null?te=xe:ve.sibling=xe,ve=xe);return ge&&$t(N,fe),te}for(P=l(P);!xe.done;fe++,xe=A.next())xe=O(P,N,fe,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&P.delete(xe.key===null?fe:xe.key),_=u(xe,_,fe),ve===null?te=xe:ve.sibling=xe,ve=xe);return e&&P.forEach(function(_p){return t(N,_p)}),ge&&$t(N,fe),te}function Ae(N,_,A,H){if(typeof A=="object"&&A!==null&&A.type===L&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case M:e:{for(var te=A.key;_!==null;){if(_.key===te){if(te=A.type,te===L){if(_.tag===7){a(N,_.sibling),H=n(_,A.props.children),H.return=N,N=H;break e}}else if(_.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===F&&ll(te)===_.type){a(N,_.sibling),H=n(_,A.props),Tn(H,A),H.return=N,N=H;break e}a(N,_);break}else t(N,_);_=_.sibling}A.type===L?(H=Ia(A.props.children,N.mode,H,A.key),H.return=N,N=H):(H=wi(A.type,A.key,A.props,null,N.mode,H),Tn(H,A),H.return=N,N=H)}return o(N);case D:e:{for(te=A.key;_!==null;){if(_.key===te)if(_.tag===4&&_.stateNode.containerInfo===A.containerInfo&&_.stateNode.implementation===A.implementation){a(N,_.sibling),H=n(_,A.children||[]),H.return=N,N=H;break e}else{a(N,_);break}else t(N,_);_=_.sibling}H=Es(A,N.mode,H),H.return=N,N=H}return o(N);case F:return A=ll(A),Ae(N,_,A,H)}if(Be(A))return W(N,_,A,H);if(se(A)){if(te=se(A),typeof te!="function")throw Error(c(150));return A=te.call(A),ne(N,_,A,H)}if(typeof A.then=="function")return Ae(N,_,Bi(A),H);if(A.$$typeof===w)return Ae(N,_,Oi(N,A),H);Li(N,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,_!==null&&_.tag===6?(a(N,_.sibling),H=n(_,A),H.return=N,N=H):(a(N,_),H=Ss(A,N.mode,H),H.return=N,N=H),o(N)):a(N,_)}return function(N,_,A,H){try{_n=0;var te=Ae(N,_,A,H);return Ul=null,te}catch(P){if(P===Dl||P===Di)throw P;var ve=gt(29,P,null,N.mode);return ve.lanes=H,ve.return=N,ve}finally{}}}var il=Fo(!0),Wo=Fo(!1),_a=!1;function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Us(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 Ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(be&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Ci(e),Do(e,null,a),t}return Ai(e,l,t,a),Ci(e)}function Nn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Yc(e,a)}}function Bs(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?n=u=o:u=u.next=o,a=a.next}while(a!==null);u===null?n=u=t:u=u.next=t}else n=u=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Ls=!1;function jn(){if(Ls){var e=Rl;if(e!==null)throw e}}function An(e,t,a,l){Ls=!1;var n=e.updateQueue;_a=!1;var u=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var S=h,C=S.next;S.next=null,o===null?u=C:o.next=C,o=S;var U=e.alternate;U!==null&&(U=U.updateQueue,h=U.lastBaseUpdate,h!==o&&(h===null?U.firstBaseUpdate=C:h.next=C,U.lastBaseUpdate=S))}if(u!==null){var q=n.baseState;o=0,U=C=S=null,h=u;do{var z=h.lane&-536870913,O=z!==h.lane;if(O?(ye&z)===z:(l&z)===z){z!==0&&z===Ol&&(Ls=!0),U!==null&&(U=U.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,ne=h;z=t;var Ae=a;switch(ne.tag){case 1:if(W=ne.payload,typeof W=="function"){q=W.call(Ae,q,z);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ne.payload,z=typeof W=="function"?W.call(Ae,q,z):W,z==null)break e;q=x({},q,z);break e;case 2:_a=!0}}z=h.callback,z!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[z]:O.push(z))}else O={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},U===null?(C=U=O,S=q):U=U.next=O,o|=z;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;O=h,h=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);U===null&&(S=q),n.baseState=S,n.firstBaseUpdate=C,n.lastBaseUpdate=U,u===null&&(n.shared.lanes=0),za|=o,e.lanes=o,e.memoizedState=q}}function Io(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Po(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Io(a[e],t)}var Bl=T(null),Hi=T(0);function ef(e,t){e=ua,J(Hi,e),J(Bl,t),ua=e|t.baseLanes}function Hs(){J(Hi,ua),J(Bl,Bl.current)}function ks(){ua=Hi.current,G(Bl),G(Hi)}var vt=T(null),Mt=null;function ja(e){var t=e.alternate;J(Ye,Ye.current&1),J(vt,e),Mt===null&&(t===null||Bl.current!==null||t.memoizedState!==null)&&(Mt=e)}function qs(e){J(Ye,Ye.current),J(vt,e),Mt===null&&(Mt=e)}function tf(e){e.tag===22?(J(Ye,Ye.current),J(vt,e),Mt===null&&(Mt=e)):Aa()}function Aa(){J(Ye,Ye.current),J(vt,vt.current)}function xt(e){G(vt),Mt===e&&(Mt=null),G(Ye)}var Ye=T(0);function ki(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Zr(a)||Kr(a)))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 It=0,oe=null,Ne=null,Qe=null,qi=!1,Ll=!1,ul=!1,Yi=0,Cn=0,Hl=null,my=0;function He(){throw Error(c(321))}function Ys(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!pt(e[a],t[a]))return!1;return!0}function Gs(e,t,a,l,n,u){return It=u,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?kf:lr,ul=!1,u=a(l,n),ul=!1,Ll&&(u=lf(t,a,l,n)),af(e),u}function af(e){R.H=Mn;var t=Ne!==null&&Ne.next!==null;if(It=0,Qe=Ne=oe=null,qi=!1,Cn=0,Hl=null,t)throw Error(c(300));e===null||Ve||(e=e.dependencies,e!==null&&Mi(e)&&(Ve=!0))}function lf(e,t,a,l){oe=e;var n=0;do{if(Ll&&(Hl=null),Cn=0,Ll=!1,25<=n)throw Error(c(301));if(n+=1,Qe=Ne=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=qf,u=t(a,l)}while(Ll);return u}function hy(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?wn(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(oe.flags|=1024),t}function Xs(){var e=Yi!==0;return Yi=0,e}function Qs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Vs(e){if(qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qi=!1}It=0,Qe=Ne=oe=null,Ll=!1,Cn=Yi=0,Hl=null}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?oe.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(Ne===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Qe===null?oe.memoizedState:Qe.next;if(t!==null)Qe=t,Ne=e;else{if(e===null)throw oe.alternate===null?Error(c(467)):Error(c(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Qe===null?oe.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wn(e){var t=Cn;return Cn+=1,Hl===null&&(Hl=[]),e=Ko(Hl,e,t),t=oe,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?kf:lr),e}function Xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wn(e);if(e.$$typeof===w)return Ie(e)}throw Error(c(438,String(e)))}function Zs(e){var t=null,a=oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Gi(),oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=V;return t.index++,a}function Pt(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Ge();return Ks(t,Ne,e)}function Ks(e,t,a){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var n=e.baseQueue,u=l.pending;if(u!==null){if(n!==null){var o=n.next;n.next=u.next,u.next=o}t.baseQueue=n=u,l.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var h=o=null,S=null,C=t,U=!1;do{var q=C.lane&-536870913;if(q!==C.lane?(ye&q)===q:(It&q)===q){var z=C.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),q===Ol&&(U=!0);else if((It&z)===z){C=C.next,z===Ol&&(U=!0);continue}else q={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(h=S=q,o=u):S=S.next=q,oe.lanes|=z,za|=z;q=C.action,ul&&a(u,q),u=C.hasEagerState?C.eagerState:a(u,q)}else z={lane:q,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(h=S=z,o=u):S=S.next=z,oe.lanes|=q,za|=q;C=C.next}while(C!==null&&C!==t);if(S===null?o=u:S.next=h,!pt(u,e.memoizedState)&&(Ve=!0,U&&(a=Rl,a!==null)))throw a;e.memoizedState=u,e.baseState=o,e.baseQueue=S,l.lastRenderedState=u}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Js(e){var t=Ge(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,u=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do u=e(u,o.action),o=o.next;while(o!==n);pt(u,t.memoizedState)||(Ve=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function nf(e,t,a){var l=oe,n=Ge(),u=ge;if(u){if(a===void 0)throw Error(c(407));a=a()}else a=t();var o=!pt((Ne||n).memoizedState,a);if(o&&(n.memoizedState=a,Ve=!0),n=n.queue,Ws(rf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,kl(9,{destroy:void 0},sf.bind(null,l,n,a,t),null),ze===null)throw Error(c(349));u||(It&127)!==0||uf(l,t,a)}return a}function uf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=oe.updateQueue,t===null?(t=Gi(),oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function sf(e,t,a,l){t.value=a,t.getSnapshot=l,cf(t)&&of(e)}function rf(e,t,a){return a(function(){cf(t)&&of(e)})}function cf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!pt(e,a)}catch{return!0}}function of(e){var t=Wa(e,2);t!==null&&dt(t,e,2)}function $s(e){var t=nt();if(typeof e=="function"){var a=e;if(e=a(),ul){pa(!0);try{a()}finally{pa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function ff(e,t,a,l){return e.baseState=a,Ks(e,Ne,typeof l=="function"?l:Pt)}function yy(e,t,a,l,n){if(Ki(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};R.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,df(t,u)):(u.next=a.next,t.pending=a.next=u)}}function df(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var u=R.T,o={};R.T=o;try{var h=a(n,l),S=R.S;S!==null&&S(o,h),mf(e,t,h)}catch(C){Fs(e,t,C)}finally{u!==null&&o.types!==null&&(u.types=o.types),R.T=u}}else try{u=a(n,l),mf(e,t,u)}catch(C){Fs(e,t,C)}}function mf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){hf(e,t,l)},function(l){return Fs(e,t,l)}):hf(e,t,a)}function hf(e,t,a){t.status="fulfilled",t.value=a,yf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,df(e,a)))}function Fs(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,yf(t),t=t.next;while(t!==l)}e.action=null}function yf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pf(e,t){return t}function gf(e,t){if(ge){var a=ze.formState;if(a!==null){e:{var l=oe;if(ge){if(Me){t:{for(var n=Me,u=zt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Ot(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Me=Ot(n.nextSibling),l=n.data==="F!";break e}}Sa(l)}l=!1}l&&(t=a[0])}}return a=nt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pf,lastRenderedState:t},a.queue=l,a=Bf.bind(null,oe,l),l.dispatch=a,l=$s(!1),u=ar.bind(null,oe,!1,l.queue),l=nt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=yy.bind(null,oe,n,u,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function vf(e){var t=Ge();return xf(t,Ne,e)}function xf(e,t,a){if(t=Ks(e,t,pf)[0],e=Qi(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=wn(t)}catch(o){throw o===Dl?Di:o}else l=t;t=Ge();var n=t.queue,u=n.dispatch;return a!==t.memoizedState&&(oe.flags|=2048,kl(9,{destroy:void 0},py.bind(null,n,a),null)),[l,u,e]}function py(e,t){e.action=t}function bf(e){var t=Ge(),a=Ne;if(a!==null)return xf(t,a,e);Ge(),t=t.memoizedState,a=Ge();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function kl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Gi(),oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Sf(){return Ge().memoizedState}function Vi(e,t,a,l){var n=nt();oe.flags|=e,n.memoizedState=kl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Zi(e,t,a,l){var n=Ge();l=l===void 0?null:l;var u=n.memoizedState.inst;Ne!==null&&l!==null&&Ys(l,Ne.memoizedState.deps)?n.memoizedState=kl(t,u,a,l):(oe.flags|=e,n.memoizedState=kl(1|t,u,a,l))}function Ef(e,t){Vi(8390656,8,e,t)}function Ws(e,t){Zi(2048,8,e,t)}function gy(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=Gi(),oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function _f(e){var t=Ge().memoizedState;return gy({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Tf(e,t){return Zi(4,2,e,t)}function Nf(e,t){return Zi(4,4,e,t)}function jf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Af(e,t,a){a=a!=null?a.concat([e]):null,Zi(4,4,jf.bind(null,t,e),a)}function Is(){}function Cf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Ys(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function wf(e,t){var a=Ge();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Ys(t,l[1]))return l[0];if(l=e(),ul){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[l,t],l}function Ps(e,t,a){return a===void 0||(It&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=zd(),oe.lanes|=e,za|=e,a)}function zf(e,t,a,l){return pt(a,t)?a:Bl.current!==null?(e=Ps(e,a,l),pt(e,t)||(Ve=!0),e):(It&42)===0||(It&1073741824)!==0&&(ye&261930)===0?(Ve=!0,e.memoizedState=a):(e=zd(),oe.lanes|=e,za|=e,t)}function Mf(e,t,a,l,n){var u=K.p;K.p=u!==0&&8>u?u:8;var o=R.T,h={};R.T=h,ar(e,!1,t,a);try{var S=n(),C=R.S;if(C!==null&&C(h,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=dy(S,l);zn(e,t,U,Et(e))}else zn(e,t,l,Et(e))}catch(q){zn(e,t,{then:function(){},status:"rejected",reason:q},Et())}finally{K.p=u,o!==null&&h.types!==null&&(o.types=h.types),R.T=o}}function vy(){}function er(e,t,a,l){if(e.tag!==5)throw Error(c(476));var n=Of(e).queue;Mf(e,n,t,ae,a===null?vy:function(){return Rf(e),a(l)})}function Of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rf(e){var t=Of(e);t.next===null&&(t=e.alternate.memoizedState),zn(e,t.next.queue,{},Et())}function tr(){return Ie(Kn)}function Df(){return Ge().memoizedState}function Uf(){return Ge().memoizedState}function xy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Ta(a);var l=Na(t,e,a);l!==null&&(dt(l,t,a),Nn(l,t,a)),t={cache:zs()},e.payload=t;return}t=t.return}}function by(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Lf(t,a):(a=xs(e,t,a,l),a!==null&&(dt(a,e,l),Hf(a,t,l)))}function Bf(e,t,a){var l=Et();zn(e,t,a,l)}function zn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Lf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,h=u(o,a);if(n.hasEagerState=!0,n.eagerState=h,pt(h,o))return Ai(e,t,n,0),ze===null&&ji(),!1}catch{}finally{}if(a=xs(e,t,n,l),a!==null)return dt(a,e,l),Hf(a,t,l),!0}return!1}function ar(e,t,a,l){if(l={lane:2,revertLane:Dr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(c(479))}else t=xs(e,a,l,2),t!==null&&dt(t,e,2)}function Ki(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Lf(e,t){Ll=qi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Hf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Yc(e,a)}}var Mn={readContext:Ie,use:Xi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Mn.useEffectEvent=He;var kf={readContext:Ie,use:Xi,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Ef,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vi(4194308,4,jf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){Vi(4,2,e,t)},useMemo:function(e,t){var a=nt();t=t===void 0?null:t;var l=e();if(ul){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=nt();if(a!==void 0){var n=a(t);if(ul){pa(!0);try{a(t)}finally{pa(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=by.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=$s(e);var t=e.queue,a=Bf.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Is,useDeferredValue:function(e,t){var a=nt();return Ps(a,e,t)},useTransition:function(){var e=$s(!1);return e=Mf.bind(null,oe,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=oe,n=nt();if(ge){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),ze===null)throw Error(c(349));(ye&127)!==0||uf(l,t,a)}n.memoizedState=a;var u={value:a,getSnapshot:t};return n.queue=u,Ef(rf.bind(null,l,u,e),[e]),l.flags|=2048,kl(9,{destroy:void 0},sf.bind(null,l,u,a,t),null),a},useId:function(){var e=nt(),t=ze.identifierPrefix;if(ge){var a=Yt,l=qt;a=(l&~(1<<32-yt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Yi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=my++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tr,useFormState:gf,useActionState:gf,useOptimistic:function(e){var t=nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ar.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Zs,useCacheRefresh:function(){return nt().memoizedState=xy.bind(null,oe)},useEffectEvent:function(e){var t=nt(),a={impl:e};return t.memoizedState=a,function(){if((be&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},lr={readContext:Ie,use:Xi,useCallback:Cf,useContext:Ie,useEffect:Ws,useImperativeHandle:Af,useInsertionEffect:Tf,useLayoutEffect:Nf,useMemo:wf,useReducer:Qi,useRef:Sf,useState:function(){return Qi(Pt)},useDebugValue:Is,useDeferredValue:function(e,t){var a=Ge();return zf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Qi(Pt)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wn(e),t]},useSyncExternalStore:nf,useId:Df,useHostTransitionStatus:tr,useFormState:vf,useActionState:vf,useOptimistic:function(e,t){var a=Ge();return ff(a,Ne,e,t)},useMemoCache:Zs,useCacheRefresh:Uf};lr.useEffectEvent=_f;var qf={readContext:Ie,use:Xi,useCallback:Cf,useContext:Ie,useEffect:Ws,useImperativeHandle:Af,useInsertionEffect:Tf,useLayoutEffect:Nf,useMemo:wf,useReducer:Js,useRef:Sf,useState:function(){return Js(Pt)},useDebugValue:Is,useDeferredValue:function(e,t){var a=Ge();return Ne===null?Ps(a,e,t):zf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Js(Pt)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wn(e),t]},useSyncExternalStore:nf,useId:Df,useHostTransitionStatus:tr,useFormState:bf,useActionState:bf,useOptimistic:function(e,t){var a=Ge();return Ne!==null?ff(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Zs,useCacheRefresh:Uf};qf.useEffectEvent=_f;function nr(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ir={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ta(l);n.payload=t,a!=null&&(n.callback=a),t=Na(e,n,l),t!==null&&(dt(t,e,l),Nn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ta(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Na(e,n,l),t!==null&&(dt(t,e,l),Nn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Ta(a);l.tag=2,t!=null&&(l.callback=t),t=Na(e,l,a),t!==null&&(dt(t,e,a),Nn(t,e,a))}};function Yf(e,t,a,l,n,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,o):t.prototype&&t.prototype.isPureReactComponent?!gn(a,l)||!gn(n,u):!0}function Gf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ir.enqueueReplaceState(t,t.state,null)}function sl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function Xf(e){Ni(e)}function Qf(e){console.error(e)}function Vf(e){Ni(e)}function Ji(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Zf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ur(e,t,a){return a=Ta(a),a.tag=3,a.payload={element:null},a.callback=function(){Ji(e,t)},a}function Kf(e){return e=Ta(e),e.tag=3,e}function Jf(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var u=l.value;e.payload=function(){return n(u)},e.callback=function(){Zf(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Zf(t,a,l),typeof n!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Sy(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ml(t,a,n,!0),a=vt.current,a!==null){switch(a.tag){case 31:case 13:return Mt===null?uu():a.alternate===null&&ke===0&&(ke=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Ui?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Mr(e,l,n)),!1;case 22:return a.flags|=65536,l===Ui?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Mr(e,l,n)),!1}throw Error(c(435,a.tag))}return Mr(e,l,n),uu(),!1}if(ge)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Ns&&(e=Error(c(422),{cause:l}),bn(At(e,a)))):(l!==Ns&&(t=Error(c(423),{cause:l}),bn(At(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=At(l,a),n=ur(e.stateNode,l,n),Bs(e,n),ke!==4&&(ke=2)),!1;var u=Error(c(520),{cause:l});if(u=At(u,a),kn===null?kn=[u]:kn.push(u),ke!==4&&(ke=2),t===null)return!0;l=At(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=ur(a.stateNode,l,e),Bs(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ma===null||!Ma.has(u))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Kf(n),Jf(n,e,a,l),Bs(a,n),!1}a=a.return}while(a!==null);return!1}var sr=Error(c(461)),Ve=!1;function Pe(e,t,a,l){t.child=e===null?Wo(t,null,a,l):il(t,e.child,a,l)}function $f(e,t,a,l,n){a=a.render;var u=t.ref;if("ref"in l){var o={};for(var h in l)h!=="ref"&&(o[h]=l[h])}else o=l;return tl(t),l=Gs(e,t,a,o,u,n),h=Xs(),e!==null&&!Ve?(Qs(e,t,n),ea(e,t,n)):(ge&&h&&_s(t),t.flags|=1,Pe(e,t,l,n),t.child)}function Ff(e,t,a,l,n){if(e===null){var u=a.type;return typeof u=="function"&&!bs(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,Wf(e,t,u,l,n)):(e=wi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!yr(e,n)){var o=u.memoizedProps;if(a=a.compare,a=a!==null?a:gn,a(o,l)&&e.ref===t.ref)return ea(e,t,n)}return t.flags|=1,e=Jt(u,l),e.ref=t.ref,e.return=t,t.child=e}function Wf(e,t,a,l,n){if(e!==null){var u=e.memoizedProps;if(gn(u,l)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=l=u,yr(e,n))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,ea(e,t,n)}return rr(e,t,a,l,n)}function If(e,t,a,l){var n=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~u}else l=0,t.child=null;return Pf(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ri(t,u!==null?u.cachePool:null),u!==null?ef(t,u):Hs(),tf(t);else return l=t.lanes=536870912,Pf(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(Ri(t,u.cachePool),ef(t,u),Aa(),t.memoizedState=null):(e!==null&&Ri(t,null),Hs(),Aa());return Pe(e,t,n,a),t.child}function On(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pf(e,t,a,l,n){var u=Os();return u=u===null?null:{parent:Xe._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Ri(t,null),Hs(),tf(t),e!==null&&Ml(e,t,l,!0),t.childLanes=n,null}function $i(e,t){return t=Wi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ed(e,t,a){return il(t,e.child,null,a),e=$i(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Ey(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(l.mode==="hidden")return e=$i(t,l),t.lanes=536870912,On(null,e);if(qs(t),(e=Me)?(e=dm(e,zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},a=Bo(e),a.return=t,t.child=a,We=t,Me=null)):e=null,e===null)throw Sa(t);return t.lanes=536870912,null}return $i(t,l)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(qs(t),n)if(t.flags&256)t.flags&=-257,t=ed(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ve||Ml(e,t,a,!1),n=(a&e.childLanes)!==0,Ve||n){if(l=ze,l!==null&&(o=Gc(l,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,Wa(e,o),dt(l,e,o),sr;uu(),t=ed(e,t,a)}else e=u.treeContext,Me=Ot(o.nextSibling),We=t,ge=!0,ba=null,zt=!1,e!==null&&ko(t,e),t=$i(t,l),t.flags|=4096;return t}return e=Jt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function rr(e,t,a,l,n){return tl(t),a=Gs(e,t,a,l,void 0,n),l=Xs(),e!==null&&!Ve?(Qs(e,t,n),ea(e,t,n)):(ge&&l&&_s(t),t.flags|=1,Pe(e,t,a,n),t.child)}function td(e,t,a,l,n,u){return tl(t),t.updateQueue=null,a=lf(t,l,a,n),af(e),l=Xs(),e!==null&&!Ve?(Qs(e,t,u),ea(e,t,u)):(ge&&l&&_s(t),t.flags|=1,Pe(e,t,a,u),t.child)}function ad(e,t,a,l,n){if(tl(t),t.stateNode===null){var u=Al,o=a.contextType;typeof o=="object"&&o!==null&&(u=Ie(o)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ir,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Ds(t),o=a.contextType,u.context=typeof o=="object"&&o!==null?Ie(o):Al,u.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(nr(t,a,o,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&ir.enqueueReplaceState(u,u.state,null),An(t,l,u,n),jn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var h=t.memoizedProps,S=sl(a,h);u.props=S;var C=u.context,U=a.contextType;o=Al,typeof U=="object"&&U!==null&&(o=Ie(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||C!==o)&&Gf(t,u,l,o),_a=!1;var z=t.memoizedState;u.state=z,An(t,l,u,n),jn(),C=t.memoizedState,h||z!==C||_a?(typeof q=="function"&&(nr(t,a,q,l),C=t.memoizedState),(S=_a||Yf(t,a,S,l,z,C,o))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=C),u.props=l,u.state=C,u.context=o,l=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Us(e,t),o=t.memoizedProps,U=sl(a,o),u.props=U,q=t.pendingProps,z=u.context,C=a.contextType,S=Al,typeof C=="object"&&C!==null&&(S=Ie(C)),h=a.getDerivedStateFromProps,(C=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==q||z!==S)&&Gf(t,u,l,S),_a=!1,z=t.memoizedState,u.state=z,An(t,l,u,n),jn();var O=t.memoizedState;o!==q||z!==O||_a||e!==null&&e.dependencies!==null&&Mi(e.dependencies)?(typeof h=="function"&&(nr(t,a,h,l),O=t.memoizedState),(U=_a||Yf(t,a,U,l,z,O,S)||e!==null&&e.dependencies!==null&&Mi(e.dependencies))?(C||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,O,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,O,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),u.props=l,u.state=O,u.context=S,l=U):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Fi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=il(t,e.child,null,n),t.child=il(t,null,a,n)):Pe(e,t,a,n),t.memoizedState=u.state,e=t.child):e=ea(e,t,n),e}function ld(e,t,a,l){return Pa(),t.flags|=256,Pe(e,t,a,l),t.child}var cr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function or(e){return{baseLanes:e,cachePool:Vo()}}function fr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=St),e}function nd(e,t,a){var l=t.pendingProps,n=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(n?ja(t):Aa(),(e=Me)?(e=dm(e,zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},a=Bo(e),a.return=t,t.child=a,We=t,Me=null)):e=null,e===null)throw Sa(t);return Kr(e)?t.lanes=32:t.lanes=536870912,null}var h=l.children;return l=l.fallback,n?(Aa(),n=t.mode,h=Wi({mode:"hidden",children:h},n),l=Ia(l,n,a,null),h.return=t,l.return=t,h.sibling=l,t.child=h,l=t.child,l.memoizedState=or(a),l.childLanes=fr(e,o,a),t.memoizedState=cr,On(null,l)):(ja(t),dr(t,h))}var S=e.memoizedState;if(S!==null&&(h=S.dehydrated,h!==null)){if(u)t.flags&256?(ja(t),t.flags&=-257,t=mr(e,t,a)):t.memoizedState!==null?(Aa(),t.child=e.child,t.flags|=128,t=null):(Aa(),h=l.fallback,n=t.mode,l=Wi({mode:"visible",children:l.children},n),h=Ia(h,n,a,null),h.flags|=2,l.return=t,h.return=t,l.sibling=h,t.child=l,il(t,e.child,null,a),l=t.child,l.memoizedState=or(a),l.childLanes=fr(e,o,a),t.memoizedState=cr,t=On(null,l));else if(ja(t),Kr(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var C=o.dgst;o=C,l=Error(c(419)),l.stack="",l.digest=o,bn({value:l,source:null,stack:null}),t=mr(e,t,a)}else if(Ve||Ml(e,t,a,!1),o=(a&e.childLanes)!==0,Ve||o){if(o=ze,o!==null&&(l=Gc(o,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,Wa(e,l),dt(o,e,l),sr;Zr(h)||uu(),t=mr(e,t,a)}else Zr(h)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Me=Ot(h.nextSibling),We=t,ge=!0,ba=null,zt=!1,e!==null&&ko(t,e),t=dr(t,l.children),t.flags|=4096);return t}return n?(Aa(),h=l.fallback,n=t.mode,S=e.child,C=S.sibling,l=Jt(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,C!==null?h=Jt(C,h):(h=Ia(h,n,a,null),h.flags|=2),h.return=t,l.return=t,l.sibling=h,t.child=l,On(null,l),l=t.child,h=e.child.memoizedState,h===null?h=or(a):(n=h.cachePool,n!==null?(S=Xe._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=Vo(),h={baseLanes:h.baseLanes|a,cachePool:n}),l.memoizedState=h,l.childLanes=fr(e,o,a),t.memoizedState=cr,On(e.child,l)):(ja(t),a=e.child,e=a.sibling,a=Jt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function dr(e,t){return t=Wi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wi(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function mr(e,t,a){return il(t,e.child,null,a),e=dr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function id(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Cs(e.return,t,a)}function hr(e,t,a,l,n,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=u)}function ud(e,t,a){var l=t.pendingProps,n=l.revealOrder,u=l.tail;l=l.children;var o=Ye.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,J(Ye,o),Pe(e,t,l,a),l=ge?xn:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&id(e,a,t);else if(e.tag===19)id(e,a,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(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&ki(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),hr(t,!1,n,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ki(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}hr(t,!0,a,null,u,l);break;case"together":hr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ml(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=Jt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Jt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function yr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mi(e)))}function _y(e,t,a){switch(t.tag){case 3:lt(t,t.stateNode.containerInfo),Ea(t,Xe,e.memoizedState.cache),Pa();break;case 27:case 5:ln(t);break;case 4:lt(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qs(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ja(t),t.flags|=128,null):(a&t.child.childLanes)!==0?nd(e,t,a):(ja(t),e=ea(e,t,a),e!==null?e.sibling:null);ja(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ml(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return ud(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(Ye,Ye.current),l)break;return null;case 22:return t.lanes=0,If(e,t,a,t.pendingProps);case 24:Ea(t,Xe,e.memoizedState.cache)}return ea(e,t,a)}function sd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!yr(e,a)&&(t.flags&128)===0)return Ve=!1,_y(e,t,a);Ve=(e.flags&131072)!==0}else Ve=!1,ge&&(t.flags&1048576)!==0&&Ho(t,xn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ll(t.elementType),t.type=e,typeof e=="function")bs(e)?(l=sl(e,l),t.tag=1,t=ad(null,t,e,l,a)):(t.tag=0,t=rr(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===Q){t.tag=11,t=$f(null,t,e,l,a);break e}else if(n===X){t.tag=14,t=Ff(null,t,e,l,a);break e}}throw t=Ce(e)||e,Error(c(306,t,""))}}return t;case 0:return rr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=sl(l,t.pendingProps),ad(e,t,l,n,a);case 3:e:{if(lt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var u=t.memoizedState;n=u.element,Us(e,t),An(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Ea(t,Xe,l),l!==u.cache&&ws(t,[Xe],a,!0),jn(),l=o.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ld(e,t,l,a);break e}else if(l!==n){n=At(Error(c(424)),t),bn(n),t=ld(e,t,l,a);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(Me=Ot(e.firstChild),We=t,ge=!0,ba=null,zt=!0,a=Wo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Pa(),l===n){t=ea(e,t,a);break e}Pe(e,t,l,a)}t=t.child}return t;case 26:return Fi(e,t),e===null?(a=vm(t.type,null,t.pendingProps,null))?t.memoizedState=a:ge||(a=t.type,e=t.pendingProps,l=mu(de.current).createElement(a),l[Fe]=t,l[ut]=e,et(l,a,e),Je(l),t.stateNode=l):t.memoizedState=vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ln(t),e===null&&ge&&(l=t.stateNode=ym(t.type,t.pendingProps,de.current),We=t,zt=!0,n=Me,Ua(t.type)?(Jr=n,Me=Ot(l.firstChild)):Me=n),Pe(e,t,t.pendingProps.children,a),Fi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((n=l=Me)&&(l=Py(l,t.type,t.pendingProps,zt),l!==null?(t.stateNode=l,We=t,Me=Ot(l.firstChild),zt=!1,n=!0):n=!1),n||Sa(t)),ln(t),n=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,l=u.children,Xr(n,u)?l=null:o!==null&&Xr(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Gs(e,t,hy,null,null,a),Kn._currentValue=n),Fi(e,t),Pe(e,t,l,a),t.child;case 6:return e===null&&ge&&((e=a=Me)&&(a=ep(a,t.pendingProps,zt),a!==null?(t.stateNode=a,We=t,Me=null,e=!0):e=!1),e||Sa(t)),null;case 13:return nd(e,t,a);case 4:return lt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=il(t,null,l,a):Pe(e,t,l,a),t.child;case 11:return $f(e,t,t.type,t.pendingProps,a);case 7:return Pe(e,t,t.pendingProps,a),t.child;case 8:return Pe(e,t,t.pendingProps.children,a),t.child;case 12:return Pe(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ea(t,t.type,l.value),Pe(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,tl(t),n=Ie(n),l=l(n),t.flags|=1,Pe(e,t,l,a),t.child;case 14:return Ff(e,t,t.type,t.pendingProps,a);case 15:return Wf(e,t,t.type,t.pendingProps,a);case 19:return ud(e,t,a);case 31:return Ey(e,t,a);case 22:return If(e,t,a,t.pendingProps);case 24:return tl(t),l=Ie(Xe),e===null?(n=Os(),n===null&&(n=ze,u=zs(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=a),n=u),t.memoizedState={parent:l,cache:n},Ds(t),Ea(t,Xe,n)):((e.lanes&a)!==0&&(Us(e,t),An(t,null,null,a),jn()),n=e.memoizedState,u=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ea(t,Xe,l)):(l=u.cache,Ea(t,Xe,l),l!==n.cache&&ws(t,[Xe],a,!0))),Pe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ta(e){e.flags|=4}function pr(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Dd())e.flags|=8192;else throw nl=Ui,Rs}else e.flags&=-16777217}function rd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_m(t))if(Dd())e.flags|=8192;else throw nl=Ui,Rs}function Ii(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kc():536870912,e.lanes|=t,Xl|=t)}function Rn(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Ty(e,t,a){var l=t.pendingProps;switch(Ts(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(Xe),qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(zl(t)?ta(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,js())),Oe(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(ta(t),u!==null?(Oe(t),rd(t,u)):(Oe(t),pr(t,n,null,l,a))):u?u!==e.memoizedState?(ta(t),Oe(t),rd(t,u)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ta(t),Oe(t),pr(t,n,e,l,a)),null;case 27:if(ci(t),a=de.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ta(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Oe(t),null}e=I.current,zl(t)?qo(t):(e=ym(n,l,a),t.stateNode=e,ta(t))}return Oe(t),null;case 5:if(ci(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ta(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Oe(t),null}if(u=I.current,zl(t))qo(t);else{var o=mu(de.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}u[Fe]=t,u[ut]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(et(u,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ta(t)}}return Oe(t),pr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ta(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=de.current,zl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=We,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||nm(e.nodeValue,a)),e||Sa(t,!0)}else e=mu(e).createTextNode(l),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=zl(t),a!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Fe]=t}else Pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else a=js(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=zl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[Fe]=t}else Pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=js(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ii(t,t.updateQueue),Oe(t),null);case 4:return qe(),e===null&&Hr(t.stateNode.containerInfo),Oe(t),null;case 10:return Wt(t.type),Oe(t),null;case 19:if(G(Ye),l=t.memoizedState,l===null)return Oe(t),null;if(n=(t.flags&128)!==0,u=l.rendering,u===null)if(n)Rn(l,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ki(e),u!==null){for(t.flags|=128,Rn(l,!1),e=u.updateQueue,t.updateQueue=e,Ii(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Uo(a,e),a=a.sibling;return J(Ye,Ye.current&1|2),ge&&$t(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&mt()>lu&&(t.flags|=128,n=!0,Rn(l,!1),t.lanes=4194304)}else{if(!n)if(e=ki(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ii(t,e),Rn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!ge)return Oe(t),null}else 2*mt()-l.renderingStartTime>lu&&a!==536870912&&(t.flags|=128,n=!0,Rn(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=mt(),e.sibling=null,a=Ye.current,J(Ye,n?a&1|2:a&1),ge&&$t(t,l.treeForkCount),e):(Oe(t),null);case 22:case 23:return xt(t),ks(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),a=t.updateQueue,a!==null&&Ii(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&G(al),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(Xe),Oe(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Ny(e,t){switch(Ts(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(Xe),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ci(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(c(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Ye),null;case 4:return qe(),null;case 10:return Wt(t.type),null;case 22:case 23:return xt(t),ks(),e!==null&&G(al),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(Xe),null;case 25:return null;default:return null}}function cd(e,t){switch(Ts(t),t.tag){case 3:Wt(Xe),qe();break;case 26:case 27:case 5:ci(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:G(Ye);break;case 10:Wt(t.type);break;case 22:case 23:xt(t),ks(),e!==null&&G(al);break;case 24:Wt(Xe)}}function Dn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var u=a.create,o=a.inst;l=u(),o.destroy=l}a=a.next}while(a!==n)}}catch(h){_e(t,t.return,h)}}function Ca(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&e)===e){var o=l.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var S=a,C=h;try{C()}catch(U){_e(n,S,U)}}}l=l.next}while(l!==u)}}catch(U){_e(t,t.return,U)}}function od(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Po(t,a)}catch(l){_e(e,e.return,l)}}}function fd(e,t,a){a.props=sl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){_e(e,t,l)}}function Un(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){_e(e,t,n)}}function Gt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){_e(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){_e(e,t,n)}else a.current=null}function dd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){_e(e,e.return,n)}}function gr(e,t,a){try{var l=e.stateNode;Ky(l,e.type,a,t),l[ut]=t}catch(n){_e(e,e.return,n)}}function md(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ua(e.type)||e.tag===4}function vr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||md(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&&Ua(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 xr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Zt));else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(xr(e,t,a),e=e.sibling;e!==null;)xr(e,t,a),e=e.sibling}function Pi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pi(e,t,a),e=e.sibling;e!==null;)Pi(e,t,a),e=e.sibling}function hd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);et(t,l,a),t[Fe]=e,t[ut]=a}catch(u){_e(e,e.return,u)}}var aa=!1,Ze=!1,br=!1,yd=typeof WeakSet=="function"?WeakSet:Set,$e=null;function jy(e,t){if(e=e.containerInfo,Yr=bu,e=jo(e),ms(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var o=0,h=-1,S=-1,C=0,U=0,q=e,z=null;t:for(;;){for(var O;q!==a||n!==0&&q.nodeType!==3||(h=o+n),q!==u||l!==0&&q.nodeType!==3||(S=o+l),q.nodeType===3&&(o+=q.nodeValue.length),(O=q.firstChild)!==null;)z=q,q=O;for(;;){if(q===e)break t;if(z===a&&++C===n&&(h=o),z===u&&++U===l&&(S=o),(O=q.nextSibling)!==null)break;q=z,z=q.parentNode}q=O}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Gr={focusedElem:e,selectionRange:a},bu=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,u=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(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,n=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var W=sl(a.type,n);e=l.getSnapshotBeforeUpdate(W,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ne){_e(a,a.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Vr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vr(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function pd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:na(e,a),l&4&&Dn(5,a);break;case 1:if(na(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){_e(a,a.return,o)}else{var n=sl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){_e(a,a.return,o)}}l&64&&od(a),l&512&&Un(a,a.return);break;case 3:if(na(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Po(e,t)}catch(o){_e(a,a.return,o)}}break;case 27:t===null&&l&4&&hd(a);case 26:case 5:na(e,a),t===null&&l&4&&dd(a),l&512&&Un(a,a.return);break;case 12:na(e,a);break;case 31:na(e,a),l&4&&xd(e,a);break;case 13:na(e,a),l&4&&bd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Uy.bind(null,a),tp(e,a))));break;case 22:if(l=a.memoizedState!==null||aa,!l){t=t!==null&&t.memoizedState!==null||Ze,n=aa;var u=Ze;aa=l,(Ze=t)&&!u?ia(e,a,(a.subtreeFlags&8772)!==0):na(e,a),aa=n,Ze=u}break;case 30:break;default:na(e,a)}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fu(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 De=null,rt=!1;function la(e,t,a){for(a=a.child;a!==null;)vd(e,t,a),a=a.sibling}function vd(e,t,a){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(nn,a)}catch{}switch(a.tag){case 26:Ze||Gt(a,t),la(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ze||Gt(a,t);var l=De,n=rt;Ua(a.type)&&(De=a.stateNode,rt=!1),la(e,t,a),Qn(a.stateNode),De=l,rt=n;break;case 5:Ze||Gt(a,t);case 6:if(l=De,n=rt,De=null,la(e,t,a),De=l,rt=n,De!==null)if(rt)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(a.stateNode)}catch(u){_e(a,t,u)}else try{De.removeChild(a.stateNode)}catch(u){_e(a,t,u)}break;case 18:De!==null&&(rt?(e=De,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wl(e)):om(De,a.stateNode));break;case 4:l=De,n=rt,De=a.stateNode.containerInfo,rt=!0,la(e,t,a),De=l,rt=n;break;case 0:case 11:case 14:case 15:Ca(2,a,t),Ze||Ca(4,a,t),la(e,t,a);break;case 1:Ze||(Gt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&fd(a,t,l)),la(e,t,a);break;case 21:la(e,t,a);break;case 22:Ze=(l=Ze)||a.memoizedState!==null,la(e,t,a),Ze=l;break;default:la(e,t,a)}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wl(e)}catch(a){_e(t,t.return,a)}}}function bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wl(e)}catch(a){_e(t,t.return,a)}}function Ay(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yd),t;default:throw Error(c(435,e.tag))}}function eu(e,t){var a=Ay(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=By.bind(null,e,l);l.then(n,n)}})}function ct(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],u=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(Ua(h.type)){De=h.stateNode,rt=!1;break e}break;case 5:De=h.stateNode,rt=!1;break e;case 3:case 4:De=h.stateNode.containerInfo,rt=!0;break e}h=h.return}if(De===null)throw Error(c(160));vd(u,o,n),De=null,rt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sd(t,e),t=t.sibling}var Lt=null;function Sd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ct(t,e),ot(e),l&4&&(Ca(3,e,e.return),Dn(3,e),Ca(5,e,e.return));break;case 1:ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),l&64&&aa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Lt;if(ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":u=n.getElementsByTagName("title")[0],(!u||u[rn]||u[Fe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(l),n.head.insertBefore(u,n.querySelector("head > title"))),et(u,l,a),u[Fe]=e,Je(u),l=u;break e;case"link":var o=Sm("link","href",n).get(l+(a.href||""));if(o){for(var h=0;h<o.length;h++)if(u=o[h],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(h,1);break t}}u=n.createElement(l),et(u,l,a),n.head.appendChild(u);break;case"meta":if(o=Sm("meta","content",n).get(l+(a.content||""))){for(h=0;h<o.length;h++)if(u=o[h],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(h,1);break t}}u=n.createElement(l),et(u,l,a),n.head.appendChild(u);break;default:throw Error(c(468,l))}u[Fe]=e,Je(u),l=u}e.stateNode=l}else Em(n,e.type,e.stateNode);else e.stateNode=bm(n,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?Em(n,e.type,e.stateNode):bm(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&gr(e,e.memoizedProps,a.memoizedProps)}break;case 27:ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),a!==null&&l&4&&gr(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ct(t,e),ot(e),l&512&&(Ze||a===null||Gt(a,a.return)),e.flags&32){n=e.stateNode;try{bl(n,"")}catch(W){_e(e,e.return,W)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,gr(e,n,a!==null?a.memoizedProps:n)),l&1024&&(br=!0);break;case 6:if(ct(t,e),ot(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(W){_e(e,e.return,W)}}break;case 3:if(pu=null,n=Lt,Lt=hu(t.containerInfo),ct(t,e),Lt=n,ot(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Wl(t.containerInfo)}catch(W){_e(e,e.return,W)}br&&(br=!1,Ed(e));break;case 4:l=Lt,Lt=hu(e.stateNode.containerInfo),ct(t,e),ot(e),Lt=l;break;case 12:ct(t,e),ot(e);break;case 31:ct(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,eu(e,l)));break;case 13:ct(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(au=mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,eu(e,l)));break;case 22:n=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,C=aa,U=Ze;if(aa=C||n,Ze=U||S,ct(t,e),Ze=U,aa=C,ot(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||S||aa||Ze||rl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(u=S.stateNode,n)o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=S.stateNode;var q=S.memoizedProps.style,z=q!=null&&q.hasOwnProperty("display")?q.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){_e(S,S.return,W)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(W){_e(S,S.return,W)}}}else if(t.tag===18){if(a===null){S=t;try{var O=S.stateNode;n?fm(O,!0):fm(S.stateNode,!1)}catch(W){_e(S,S.return,W)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,eu(e,a))));break;case 19:ct(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,eu(e,l)));break;case 30:break;case 21:break;default:ct(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(md(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var n=a.stateNode,u=vr(e);Pi(e,u,n);break;case 5:var o=a.stateNode;a.flags&32&&(bl(o,""),a.flags&=-33);var h=vr(e);Pi(e,h,o);break;case 3:case 4:var S=a.stateNode.containerInfo,C=vr(e);xr(e,C,S);break;default:throw Error(c(161))}}catch(U){_e(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ed(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ed(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pd(e,t.alternate,t),t=t.sibling}function rl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ca(4,t,t.return),rl(t);break;case 1:Gt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&fd(t,t.return,a),rl(t);break;case 27:Qn(t.stateNode);case 26:case 5:Gt(t,t.return),rl(t);break;case 22:t.memoizedState===null&&rl(t);break;case 30:rl(t);break;default:rl(t)}e=e.sibling}}function ia(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,u=t,o=u.flags;switch(u.tag){case 0:case 11:case 15:ia(n,u,a),Dn(4,u);break;case 1:if(ia(n,u,a),l=u,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(C){_e(l,l.return,C)}if(l=u,n=l.updateQueue,n!==null){var h=l.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Io(S[n],h)}catch(C){_e(l,l.return,C)}}a&&o&64&&od(u),Un(u,u.return);break;case 27:hd(u);case 26:case 5:ia(n,u,a),a&&l===null&&o&4&&dd(u),Un(u,u.return);break;case 12:ia(n,u,a);break;case 31:ia(n,u,a),a&&o&4&&xd(n,u);break;case 13:ia(n,u,a),a&&o&4&&bd(n,u);break;case 22:u.memoizedState===null&&ia(n,u,a),Un(u,u.return);break;case 30:break;default:ia(n,u,a)}t=t.sibling}}function Sr(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Sn(a))}function Er(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sn(e))}function Ht(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_d(e,t,a,l),t=t.sibling}function _d(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,a,l),n&2048&&Dn(9,t);break;case 1:Ht(e,t,a,l);break;case 3:Ht(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sn(e)));break;case 12:if(n&2048){Ht(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,o=u.id,h=u.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){_e(t,t.return,S)}}else Ht(e,t,a,l);break;case 31:Ht(e,t,a,l);break;case 13:Ht(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,o=t.alternate,t.memoizedState!==null?u._visibility&2?Ht(e,t,a,l):Bn(e,t):u._visibility&2?Ht(e,t,a,l):(u._visibility|=2,ql(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Sr(o,t);break;case 24:Ht(e,t,a,l),n&2048&&Er(t.alternate,t);break;default:Ht(e,t,a,l)}}function ql(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,o=t,h=a,S=l,C=o.flags;switch(o.tag){case 0:case 11:case 15:ql(u,o,h,S,n),Dn(8,o);break;case 23:break;case 22:var U=o.stateNode;o.memoizedState!==null?U._visibility&2?ql(u,o,h,S,n):Bn(u,o):(U._visibility|=2,ql(u,o,h,S,n)),n&&C&2048&&Sr(o.alternate,o);break;case 24:ql(u,o,h,S,n),n&&C&2048&&Er(o.alternate,o);break;default:ql(u,o,h,S,n)}t=t.sibling}}function Bn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Bn(a,l),n&2048&&Sr(l.alternate,l);break;case 24:Bn(a,l),n&2048&&Er(l.alternate,l);break;default:Bn(a,l)}t=t.sibling}}var Ln=8192;function Yl(e,t,a){if(e.subtreeFlags&Ln)for(e=e.child;e!==null;)Td(e,t,a),e=e.sibling}function Td(e,t,a){switch(e.tag){case 26:Yl(e,t,a),e.flags&Ln&&e.memoizedState!==null&&mp(a,Lt,e.memoizedState,e.memoizedProps);break;case 5:Yl(e,t,a);break;case 3:case 4:var l=Lt;Lt=hu(e.stateNode.containerInfo),Yl(e,t,a),Lt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ln,Ln=16777216,Yl(e,t,a),Ln=l):Yl(e,t,a));break;default:Yl(e,t,a)}}function Nd(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 Hn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Ad(l,e)}Nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jd(e),e=e.sibling}function jd(e){switch(e.tag){case 0:case 11:case 15:Hn(e),e.flags&2048&&Ca(9,e,e.return);break;case 3:Hn(e);break;case 12:Hn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tu(e)):Hn(e);break;default:Hn(e)}}function tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,Ad(l,e)}Nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ca(8,t,t.return),tu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,tu(t));break;default:tu(t)}e=e.sibling}}function Ad(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:Ca(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Sn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,$e=l;else e:for(a=e;$e!==null;){l=$e;var n=l.sibling,u=l.return;if(gd(l),l===a){$e=null;break e}if(n!==null){n.return=u,$e=n;break e}$e=u}}}var Cy={getCacheForType:function(e){var t=Ie(Xe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ie(Xe).controller.signal}},wy=typeof WeakMap=="function"?WeakMap:Map,be=0,ze=null,me=null,ye=0,Ee=0,bt=null,wa=!1,Gl=!1,_r=!1,ua=0,ke=0,za=0,cl=0,Tr=0,St=0,Xl=0,kn=null,ft=null,Nr=!1,au=0,Cd=0,lu=1/0,nu=null,Ma=null,Ke=0,Oa=null,Ql=null,sa=0,jr=0,Ar=null,wd=null,qn=0,Cr=null;function Et(){return(be&2)!==0&&ye!==0?ye&-ye:R.T!==null?Dr():Xc()}function zd(){if(St===0)if((ye&536870912)===0||ge){var e=di;di<<=1,(di&3932160)===0&&(di=262144),St=e}else St=536870912;return e=vt.current,e!==null&&(e.flags|=32),St}function dt(e,t,a){(e===ze&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Vl(e,0),Ra(e,ye,St,!1)),sn(e,a),((be&2)===0||e!==ze)&&(e===ze&&((be&2)===0&&(cl|=a),ke===4&&Ra(e,ye,St,!1)),Xt(e))}function Md(e,t,a){if((be&6)!==0)throw Error(c(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||un(e,t),n=l?Oy(e,t):zr(e,t,!0),u=l;do{if(n===0){Gl&&!l&&Ra(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!zy(a)){n=zr(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var h=e;n=kn;var S=h.current.memoizedState.isDehydrated;if(S&&(Vl(h,o).flags|=256),o=zr(h,o,!1),o!==2){if(_r&&!S){h.errorRecoveryDisabledLanes|=u,cl|=u,n=4;break e}u=ft,ft=n,u!==null&&(ft===null?ft=u:ft.push.apply(ft,u))}n=o}if(u=!1,n!==2)continue}}if(n===1){Vl(e,0),Ra(e,t,0,!0);break}e:{switch(l=e,u=n,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Ra(l,t,St,!wa);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=au+300-mt(),10<n)){if(Ra(l,t,St,!wa),hi(l,0,!0)!==0)break e;sa=t,l.timeoutHandle=rm(Od.bind(null,l,a,ft,nu,Nr,t,St,cl,Xl,wa,u,"Throttled",-0,0),n);break e}Od(l,a,ft,nu,Nr,t,St,cl,Xl,wa,u,null,-0,0)}}break}while(!0);Xt(e)}function Od(e,t,a,l,n,u,o,h,S,C,U,q,z,O){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},Td(t,u,q);var W=(u&62914560)===u?au-mt():(u&4194048)===u?Cd-mt():0;if(W=hp(q,W),W!==null){sa=u,e.cancelPendingCommit=W(qd.bind(null,e,t,u,a,l,n,o,h,S,U,q,null,z,O)),Ra(e,u,o,!C);return}}qd(e,t,u,a,l,n,o,h,S)}function zy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],u=n.getSnapshot;n=n.value;try{if(!pt(u(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ra(e,t,a,l){t&=~Tr,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var u=31-yt(n),o=1<<u;l[u]=-1,n&=~o}a!==0&&qc(e,a,t)}function iu(){return(be&6)===0?(Yn(0),!1):!0}function wr(){if(me!==null){if(Ee===0)var e=me.return;else e=me,Ft=el=null,Vs(e),Ul=null,_n=0,e=me;for(;e!==null;)cd(e.alternate,e),e=e.return;me=null}}function Vl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Fy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),sa=0,wr(),ze=e,me=a=Jt(e.current,null),ye=t,Ee=0,bt=null,wa=!1,Gl=un(e,t),_r=!1,Xl=St=Tr=cl=za=ke=0,ft=kn=null,Nr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-yt(l),u=1<<n;t|=e[n],l&=~u}return ua=t,ji(),a}function Rd(e,t){oe=null,R.H=Mn,t===Dl||t===Di?(t=Jo(),Ee=3):t===Rs?(t=Jo(),Ee=4):Ee=t===sr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,me===null&&(ke=1,Ji(e,At(t,e.current)))}function Dd(){var e=vt.current;return e===null?!0:(ye&4194048)===ye?Mt===null:(ye&62914560)===ye||(ye&536870912)!==0?e===Mt:!1}function Ud(){var e=R.H;return R.H=Mn,e===null?Mn:e}function Bd(){var e=R.A;return R.A=Cy,e}function uu(){ke=4,wa||(ye&4194048)!==ye&&vt.current!==null||(Gl=!0),(za&134217727)===0&&(cl&134217727)===0||ze===null||Ra(ze,ye,St,!1)}function zr(e,t,a){var l=be;be|=2;var n=Ud(),u=Bd();(ze!==e||ye!==t)&&(nu=null,Vl(e,t)),t=!1;var o=ke;e:do try{if(Ee!==0&&me!==null){var h=me,S=bt;switch(Ee){case 8:wr(),o=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var C=Ee;if(Ee=0,bt=null,Zl(e,h,S,C),a&&Gl){o=0;break e}break;default:C=Ee,Ee=0,bt=null,Zl(e,h,S,C)}}My(),o=ke;break}catch(U){Rd(e,U)}while(!0);return t&&e.shellSuspendCounter++,Ft=el=null,be=l,R.H=n,R.A=u,me===null&&(ze=null,ye=0,ji()),o}function My(){for(;me!==null;)Ld(me)}function Oy(e,t){var a=be;be|=2;var l=Ud(),n=Bd();ze!==e||ye!==t?(nu=null,lu=mt()+500,Vl(e,t)):Gl=un(e,t);e:do try{if(Ee!==0&&me!==null){t=me;var u=bt;t:switch(Ee){case 1:Ee=0,bt=null,Zl(e,t,u,1);break;case 2:case 9:if(Zo(u)){Ee=0,bt=null,Hd(t);break}t=function(){Ee!==2&&Ee!==9||ze!==e||(Ee=7),Xt(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Zo(u)?(Ee=0,bt=null,Hd(t)):(Ee=0,bt=null,Zl(e,t,u,7));break;case 5:var o=null;switch(me.tag){case 26:o=me.memoizedState;case 5:case 27:var h=me;if(o?_m(o):h.stateNode.complete){Ee=0,bt=null;var S=h.sibling;if(S!==null)me=S;else{var C=h.return;C!==null?(me=C,su(C)):me=null}break t}}Ee=0,bt=null,Zl(e,t,u,5);break;case 6:Ee=0,bt=null,Zl(e,t,u,6);break;case 8:wr(),ke=6;break e;default:throw Error(c(462))}}Ry();break}catch(U){Rd(e,U)}while(!0);return Ft=el=null,R.H=l,R.A=n,be=a,me!==null?0:(ze=null,ye=0,ji(),ke)}function Ry(){for(;me!==null&&!a0();)Ld(me)}function Ld(e){var t=sd(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?su(e):me=t}function Hd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=td(a,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=td(a,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:Vs(t);default:cd(a,t),t=me=Uo(t,ua),t=sd(a,t,ua)}e.memoizedProps=e.pendingProps,t===null?su(e):me=t}function Zl(e,t,a,l){Ft=el=null,Vs(t),Ul=null,_n=0;var n=t.return;try{if(Sy(e,n,t,a,ye)){ke=1,Ji(e,At(a,e.current)),me=null;return}}catch(u){if(n!==null)throw me=n,u;ke=1,Ji(e,At(a,e.current)),me=null;return}t.flags&32768?(ge||l===1?e=!0:Gl||(ye&536870912)!==0?e=!1:(wa=e=!0,(l===2||l===9||l===3||l===6)&&(l=vt.current,l!==null&&l.tag===13&&(l.flags|=16384))),kd(t,e)):su(t)}function su(e){var t=e;do{if((t.flags&32768)!==0){kd(t,wa);return}e=t.return;var a=Ty(t.alternate,t,ua);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ke===0&&(ke=5)}function kd(e,t){do{var a=Ny(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);ke=6,me=null}function qd(e,t,a,l,n,u,o,h,S){e.cancelPendingCommit=null;do ru();while(Ke!==0);if((be&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(u=t.lanes|t.childLanes,u|=vs,d0(e,a,u,o,h,S),e===ze&&(me=ze=null,ye=0),Ql=t,Oa=e,sa=a,jr=u,Ar=n,wd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ly(oi,function(){return Vd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,n=K.p,K.p=2,o=be,be|=4;try{jy(e,t,a)}finally{be=o,K.p=n,R.T=l}}Ke=1,Yd(),Gd(),Xd()}}function Yd(){if(Ke===1){Ke=0;var e=Oa,t=Ql,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=K.p;K.p=2;var n=be;be|=4;try{Sd(t,e);var u=Gr,o=jo(e.containerInfo),h=u.focusedElem,S=u.selectionRange;if(o!==h&&h&&h.ownerDocument&&No(h.ownerDocument.documentElement,h)){if(S!==null&&ms(h)){var C=S.start,U=S.end;if(U===void 0&&(U=C),"selectionStart"in h)h.selectionStart=C,h.selectionEnd=Math.min(U,h.value.length);else{var q=h.ownerDocument||document,z=q&&q.defaultView||window;if(z.getSelection){var O=z.getSelection(),W=h.textContent.length,ne=Math.min(S.start,W),Ae=S.end===void 0?ne:Math.min(S.end,W);!O.extend&&ne>Ae&&(o=Ae,Ae=ne,ne=o);var N=To(h,ne),_=To(h,Ae);if(N&&_&&(O.rangeCount!==1||O.anchorNode!==N.node||O.anchorOffset!==N.offset||O.focusNode!==_.node||O.focusOffset!==_.offset)){var A=q.createRange();A.setStart(N.node,N.offset),O.removeAllRanges(),ne>Ae?(O.addRange(A),O.extend(_.node,_.offset)):(A.setEnd(_.node,_.offset),O.addRange(A))}}}}for(q=[],O=h;O=O.parentNode;)O.nodeType===1&&q.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<q.length;h++){var H=q[h];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}bu=!!Yr,Gr=Yr=null}finally{be=n,K.p=l,R.T=a}}e.current=t,Ke=2}}function Gd(){if(Ke===2){Ke=0;var e=Oa,t=Ql,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=K.p;K.p=2;var n=be;be|=4;try{pd(e,t.alternate,t)}finally{be=n,K.p=l,R.T=a}}Ke=3}}function Xd(){if(Ke===4||Ke===3){Ke=0,l0();var e=Oa,t=Ql,a=sa,l=wd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,Ql=Oa=null,Qd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ma=null),Ju(a),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(nn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,n=K.p,K.p=2,R.T=null;try{for(var u=e.onRecoverableError,o=0;o<l.length;o++){var h=l[o];u(h.value,{componentStack:h.stack})}}finally{R.T=t,K.p=n}}(sa&3)!==0&&ru(),Xt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Cr?qn++:(qn=0,Cr=e):qn=0,Yn(0)}}function Qd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Sn(t)))}function ru(){return Yd(),Gd(),Xd(),Vd()}function Vd(){if(Ke!==5)return!1;var e=Oa,t=jr;jr=0;var a=Ju(sa),l=R.T,n=K.p;try{K.p=32>a?32:a,R.T=null,a=Ar,Ar=null;var u=Oa,o=sa;if(Ke=0,Ql=Oa=null,sa=0,(be&6)!==0)throw Error(c(331));var h=be;if(be|=4,jd(u.current),_d(u,u.current,o,a),be=h,Yn(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(nn,u)}catch{}return!0}finally{K.p=n,R.T=l,Qd(e,t)}}function Zd(e,t,a){t=At(a,t),t=ur(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(sn(e,2),Xt(e))}function _e(e,t,a){if(e.tag===3)Zd(e,e,a);else for(;t!==null;){if(t.tag===3){Zd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ma===null||!Ma.has(l))){e=At(a,e),a=Kf(2),l=Na(t,a,2),l!==null&&(Jf(a,l,t,e),sn(l,2),Xt(l));break}}t=t.return}}function Mr(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new wy;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(_r=!0,n.add(a),e=Dy.bind(null,e,t,a),t.then(e,e))}function Dy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ze===e&&(ye&a)===a&&(ke===4||ke===3&&(ye&62914560)===ye&&300>mt()-au?(be&2)===0&&Vl(e,0):Tr|=a,Xl===ye&&(Xl=0)),Xt(e)}function Kd(e,t){t===0&&(t=kc()),e=Wa(e,t),e!==null&&(sn(e,t),Xt(e))}function Uy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Kd(e,a)}function By(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),Kd(e,a)}function Ly(e,t){return Qu(e,t)}var cu=null,Kl=null,Or=!1,ou=!1,Rr=!1,Da=0;function Xt(e){e!==Kl&&e.next===null&&(Kl===null?cu=Kl=e:Kl=Kl.next=e),ou=!0,Or||(Or=!0,ky())}function Yn(e,t){if(!Rr&&ou){Rr=!0;do for(var a=!1,l=cu;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var u=0;else{var o=l.suspendedLanes,h=l.pingedLanes;u=(1<<31-yt(42|e)+1)-1,u&=n&~(o&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Wd(l,u))}else u=ye,u=hi(l,l===ze?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||un(l,u)||(a=!0,Wd(l,u));l=l.next}while(a);Rr=!1}}function Hy(){Jd()}function Jd(){ou=Or=!1;var e=0;Da!==0&&$y()&&(e=Da);for(var t=mt(),a=null,l=cu;l!==null;){var n=l.next,u=$d(l,t);u===0?(l.next=null,a===null?cu=n:a.next=n,n===null&&(Kl=a)):(a=l,(e!==0||(u&3)!==0)&&(ou=!0)),l=n}Ke!==0&&Ke!==5||Yn(e),Da!==0&&(Da=0)}function $d(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-yt(u),h=1<<o,S=n[o];S===-1?((h&a)===0||(h&l)!==0)&&(n[o]=f0(h,t)):S<=t&&(e.expiredLanes|=h),u&=~h}if(t=ze,a=ye,a=hi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Vu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||un(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Vu(l),Ju(a)){case 2:case 8:a=Lc;break;case 32:a=oi;break;case 268435456:a=Hc;break;default:a=oi}return l=Fd.bind(null,e),a=Qu(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Vu(l),e.callbackPriority=2,e.callbackNode=null,2}function Fd(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ru()&&e.callbackNode!==a)return null;var l=ye;return l=hi(e,e===ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Md(e,l,t),$d(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Fd.bind(null,e):null)}function Wd(e,t){if(ru())return null;Md(e,t,!0)}function ky(){Wy(function(){(be&6)!==0?Qu(Bc,Hy):Jd()})}function Dr(){if(Da===0){var e=Ol;e===0&&(e=fi,fi<<=1,(fi&261888)===0&&(fi=256)),Da=e}return Da}function Id(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function Pd(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function qy(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var u=Id((n[ut]||null).action),o=l.submitter;o&&(t=(t=o[ut]||null)?Id(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var h=new Ei("action","action",null,l,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Da!==0){var S=o?Pd(n,o):new FormData(n);er(a,{pending:!0,data:S,method:n.method,action:u},null,S)}}else typeof u=="function"&&(h.preventDefault(),S=o?Pd(n,o):new FormData(n),er(a,{pending:!0,data:S,method:n.method,action:u},u,S))},currentTarget:n}]})}}for(var Ur=0;Ur<gs.length;Ur++){var Br=gs[Ur],Yy=Br.toLowerCase(),Gy=Br[0].toUpperCase()+Br.slice(1);Bt(Yy,"on"+Gy)}Bt(wo,"onAnimationEnd"),Bt(zo,"onAnimationIteration"),Bt(Mo,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(ny,"onTransitionRun"),Bt(iy,"onTransitionStart"),Bt(uy,"onTransitionCancel"),Bt(Oo,"onTransitionEnd"),vl("onMouseEnter",["mouseout","mouseover"]),vl("onMouseLeave",["mouseout","mouseover"]),vl("onPointerEnter",["pointerout","pointerover"]),vl("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gn="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(" "),Xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gn));function em(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var o=l.length-1;0<=o;o--){var h=l[o],S=h.instance,C=h.currentTarget;if(h=h.listener,S!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=C;try{u(n)}catch(U){Ni(U)}n.currentTarget=null,u=S}else for(o=0;o<l.length;o++){if(h=l[o],S=h.instance,C=h.currentTarget,h=h.listener,S!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=C;try{u(n)}catch(U){Ni(U)}n.currentTarget=null,u=S}}}}function he(e,t){var a=t[$u];a===void 0&&(a=t[$u]=new Set);var l=e+"__bubble";a.has(l)||(tm(t,e,2,!1),a.add(l))}function Lr(e,t,a){var l=0;t&&(l|=4),tm(a,e,l,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[fu]){e[fu]=!0,Zc.forEach(function(a){a!=="selectionchange"&&(Xy.has(a)||Lr(a,!1,e),Lr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Lr("selectionchange",!1,t))}}function tm(e,t,a,l){switch(zm(t)){case 2:var n=gp;break;case 8:n=vp;break;default:n=Pr}a=n.bind(null,t,a,e),n=void 0,!ns||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function kr(e,t,a,l,n){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var h=l.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=l.return;o!==null;){var S=o.tag;if((S===3||S===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=yl(h),o===null)return;if(S=o.tag,S===5||S===6||S===26||S===27){l=u=o;continue e}h=h.parentNode}}l=l.return}no(function(){var C=u,U=as(a),q=[];e:{var z=Ro.get(e);if(z!==void 0){var O=Ei,W=e;switch(e){case"keypress":if(bi(a)===0)break e;case"keydown":case"keyup":O=B0;break;case"focusin":W="focus",O=rs;break;case"focusout":W="blur",O=rs;break;case"beforeblur":case"afterblur":O=rs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=so;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=T0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=k0;break;case wo:case zo:case Mo:O=A0;break;case Oo:O=Y0;break;case"scroll":case"scrollend":O=E0;break;case"wheel":O=X0;break;case"copy":case"cut":case"paste":O=w0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=co;break;case"toggle":case"beforetoggle":O=V0}var ne=(t&4)!==0,Ae=!ne&&(e==="scroll"||e==="scrollend"),N=ne?z!==null?z+"Capture":null:z;ne=[];for(var _=C,A;_!==null;){var H=_;if(A=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||A===null||N===null||(H=on(_,N),H!=null&&ne.push(Xn(_,H,A))),Ae)break;_=_.return}0<ne.length&&(z=new O(z,W,null,a,U),q.push({event:z,listeners:ne}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",z&&a!==ts&&(W=a.relatedTarget||a.fromElement)&&(yl(W)||W[hl]))break e;if((O||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,O?(W=a.relatedTarget||a.toElement,O=C,W=W?yl(W):null,W!==null&&(Ae=m(W),ne=W.tag,W!==Ae||ne!==5&&ne!==27&&ne!==6)&&(W=null)):(O=null,W=C),O!==W)){if(ne=so,H="onMouseLeave",N="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(ne=co,H="onPointerLeave",N="onPointerEnter",_="pointer"),Ae=O==null?z:cn(O),A=W==null?z:cn(W),z=new ne(H,_+"leave",O,a,U),z.target=Ae,z.relatedTarget=A,H=null,yl(U)===C&&(ne=new ne(N,_+"enter",W,a,U),ne.target=A,ne.relatedTarget=Ae,H=ne),Ae=H,O&&W)t:{for(ne=Qy,N=O,_=W,A=0,H=N;H;H=ne(H))A++;H=0;for(var te=_;te;te=ne(te))H++;for(;0<A-H;)N=ne(N),A--;for(;0<H-A;)_=ne(_),H--;for(;A--;){if(N===_||_!==null&&N===_.alternate){ne=N;break t}N=ne(N),_=ne(_)}ne=null}else ne=null;O!==null&&am(q,z,O,ne,!1),W!==null&&Ae!==null&&am(q,Ae,W,ne,!0)}}e:{if(z=C?cn(C):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var ve=vo;else if(po(z))if(xo)ve=ty;else{ve=P0;var P=I0}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&es(C.elementType)&&(ve=vo):ve=ey;if(ve&&(ve=ve(e,C))){go(q,ve,a,U);break e}P&&P(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Pu(z,"number",z.value)}switch(P=C?cn(C):window,e){case"focusin":(po(P)||P.contentEditable==="true")&&(Tl=P,hs=C,vn=null);break;case"focusout":vn=hs=Tl=null;break;case"mousedown":ys=!0;break;case"contextmenu":case"mouseup":case"dragend":ys=!1,Ao(q,a,U);break;case"selectionchange":if(ly)break;case"keydown":case"keyup":Ao(q,a,U)}var fe;if(os)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 _l?ho(e,a)&&(pe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(pe="onCompositionStart");pe&&(oo&&a.locale!=="ko"&&(_l||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&_l&&(fe=io()):(va=U,is="value"in va?va.value:va.textContent,_l=!0)),P=du(C,pe),0<P.length&&(pe=new ro(pe,e,null,a,U),q.push({event:pe,listeners:P}),fe?pe.data=fe:(fe=yo(a),fe!==null&&(pe.data=fe)))),(fe=K0?J0(e,a):$0(e,a))&&(pe=du(C,"onBeforeInput"),0<pe.length&&(P=new ro("onBeforeInput","beforeinput",null,a,U),q.push({event:P,listeners:pe}),P.data=fe)),qy(q,e,C,a,U)}em(q,t)})}function Xn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function du(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=on(e,a),n!=null&&l.unshift(Xn(e,n,u)),n=on(e,t),n!=null&&l.push(Xn(e,n,u))),e.tag===3)return l;e=e.return}return[]}function Qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,a,l,n){for(var u=t._reactName,o=[];a!==null&&a!==l;){var h=a,S=h.alternate,C=h.stateNode;if(h=h.tag,S!==null&&S===l)break;h!==5&&h!==26&&h!==27||C===null||(S=C,n?(C=on(a,u),C!=null&&o.unshift(Xn(a,C,S))):n||(C=on(a,u),C!=null&&o.push(Xn(a,C,S)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var Vy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(Vy,`
- `).replace(Zy,"")}function nm(e,t){return t=lm(t),lm(e)===t}function je(e,t,a,l,n,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||bl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&bl(e,""+l);break;case"className":pi(e,"class",l);break;case"tabIndex":pi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(e,a,l);break;case"style":ao(e,l,u);break;case"data":if(t!=="object"){pi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&je(e,t,"name",n.name,n,null),je(e,t,"formEncType",n.formEncType,n,null),je(e,t,"formMethod",n.formMethod,n,null),je(e,t,"formTarget",n.formTarget,n,null)):(je(e,t,"encType",n.encType,n,null),je(e,t,"method",n.method,n,null),je(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Zt);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=vi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),yi(e,"popover",l);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":yi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=b0.get(a)||a,yi(e,a,l))}}function qr(e,t,a,l,n,u){switch(a){case"style":ao(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof l=="string"?bl(e,l):(typeof l=="number"||typeof l=="bigint")&&bl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),u=e[ut]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):yi(e,a,l)}}}function et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,u;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];if(o!=null)switch(u){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:je(e,t,u,o,a,null)}}n&&je(e,t,"srcSet",a.srcSet,a,null),l&&je(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var h=u=o=n=null,S=null,C=null;for(l in a)if(a.hasOwnProperty(l)){var U=a[l];if(U!=null)switch(l){case"name":n=U;break;case"type":o=U;break;case"checked":S=U;break;case"defaultChecked":C=U;break;case"value":u=U;break;case"defaultValue":h=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:je(e,t,l,U,a,null)}}Ic(e,u,h,S,C,o,n,!1);return;case"select":he("invalid",e),l=o=u=null;for(n in a)if(a.hasOwnProperty(n)&&(h=a[n],h!=null))switch(n){case"value":u=h;break;case"defaultValue":o=h;break;case"multiple":l=h;default:je(e,t,n,h,a,null)}t=u,a=o,e.multiple=!!l,t!=null?xl(e,!!l,t,!1):a!=null&&xl(e,!!l,a,!0);return;case"textarea":he("invalid",e),u=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(h=a[o],h!=null))switch(o){case"value":l=h;break;case"defaultValue":n=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:je(e,t,o,h,a,null)}eo(e,l,n,u);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:je(e,t,S,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Gn.length;l++)he(Gn[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(C in a)if(a.hasOwnProperty(C)&&(l=a[C],l!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:je(e,t,C,l,a,null)}return;default:if(es(t)){for(U in a)a.hasOwnProperty(U)&&(l=a[U],l!==void 0&&qr(e,t,U,l,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(l=a[h],l!=null&&je(e,t,h,l,a,null))}function Ky(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,o=null,h=null,S=null,C=null,U=null;for(O in a){var q=a[O];if(a.hasOwnProperty(O)&&q!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=q;default:l.hasOwnProperty(O)||je(e,t,O,null,l,q)}}for(var z in l){var O=l[z];if(q=a[z],l.hasOwnProperty(z)&&(O!=null||q!=null))switch(z){case"type":u=O;break;case"name":n=O;break;case"checked":C=O;break;case"defaultChecked":U=O;break;case"value":o=O;break;case"defaultValue":h=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,t));break;default:O!==q&&je(e,t,z,O,l,q)}}Iu(e,o,h,S,C,U,u,n);return;case"select":O=o=h=z=null;for(u in a)if(S=a[u],a.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":O=S;default:l.hasOwnProperty(u)||je(e,t,u,null,l,S)}for(n in l)if(u=l[n],S=a[n],l.hasOwnProperty(n)&&(u!=null||S!=null))switch(n){case"value":z=u;break;case"defaultValue":h=u;break;case"multiple":o=u;default:u!==S&&je(e,t,n,u,l,S)}t=h,a=o,l=O,z!=null?xl(e,!!a,z,!1):!!l!=!!a&&(t!=null?xl(e,!!a,t,!0):xl(e,!!a,a?[]:"",!1));return;case"textarea":O=z=null;for(h in a)if(n=a[h],a.hasOwnProperty(h)&&n!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:je(e,t,h,null,l,n)}for(o in l)if(n=l[o],u=a[o],l.hasOwnProperty(o)&&(n!=null||u!=null))switch(o){case"value":z=n;break;case"defaultValue":O=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==u&&je(e,t,o,n,l,u)}Pc(e,z,O);return;case"option":for(var W in a)if(z=a[W],a.hasOwnProperty(W)&&z!=null&&!l.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:je(e,t,W,null,l,z)}for(S in l)if(z=l[S],O=a[S],l.hasOwnProperty(S)&&z!==O&&(z!=null||O!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:je(e,t,S,z,l,O)}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 ne in a)z=a[ne],a.hasOwnProperty(ne)&&z!=null&&!l.hasOwnProperty(ne)&&je(e,t,ne,null,l,z);for(C in l)if(z=l[C],O=a[C],l.hasOwnProperty(C)&&z!==O&&(z!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:je(e,t,C,z,l,O)}return;default:if(es(t)){for(var Ae in a)z=a[Ae],a.hasOwnProperty(Ae)&&z!==void 0&&!l.hasOwnProperty(Ae)&&qr(e,t,Ae,void 0,l,z);for(U in l)z=l[U],O=a[U],!l.hasOwnProperty(U)||z===O||z===void 0&&O===void 0||qr(e,t,U,z,l,O);return}}for(var N in a)z=a[N],a.hasOwnProperty(N)&&z!=null&&!l.hasOwnProperty(N)&&je(e,t,N,null,l,z);for(q in l)z=l[q],O=a[q],!l.hasOwnProperty(q)||z===O||z==null&&O==null||je(e,t,q,z,l,O)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],u=n.transferSize,o=n.initiatorType,h=n.duration;if(u&&h&&im(o)){for(o=0,h=n.responseEnd,l+=1;l<a.length;l++){var S=a[l],C=S.startTime;if(C>h)break;var U=S.transferSize,q=S.initiatorType;U&&im(q)&&(S=S.responseEnd,o+=U*(S<h?1:(h-C)/(S-C)))}if(--l,t+=8*(u+o)/(n.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 Yr=null,Gr=null;function mu(e){return e.nodeType===9?e:e.ownerDocument}function um(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 sm(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 Qr=null;function $y(){var e=window.event;return e&&e.type==="popstate"?e===Qr?!1:(Qr=e,!0):(Qr=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,Wy=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(Iy)}:rm;function Iy(e){setTimeout(function(){throw e})}function Ua(e){return e==="head"}function om(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Wl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Qn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Qn(a);for(var u=a.firstChild;u;){var o=u.nextSibling,h=u.nodeName;u[rn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=o}}else a==="body"&&Qn(e.ownerDocument.body);a=n}while(a);Wl(t)}function fm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Vr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Vr(a),Fu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Py(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[rn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Ot(e.nextSibling),e===null)break}return null}function ep(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ot(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ot(e.nextSibling),e===null))return null;return e}function Zr(e){return e.data==="$?"||e.data==="$~"}function Kr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ot(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 mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ot(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function hm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ym(e,t,a){switch(t=mu(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Qn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fu(e)}var Rt=new Map,pm=new Set;function hu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ra=K.d;K.d={f:ap,r:lp,D:np,C:ip,L:up,m:sp,X:cp,S:rp,M:op};function ap(){var e=ra.f(),t=iu();return e||t}function lp(e){var t=pl(e);t!==null&&t.tag===5&&t.type==="form"?Rf(t):ra.r(e)}var Jl=typeof document>"u"?null:document;function gm(e,t,a){var l=Jl;if(l&&typeof t=="string"&&t){var n=Nt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),pm.has(n)||(pm.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function np(e){ra.D(e),gm("dns-prefetch",e,null)}function ip(e,t){ra.C(e,t),gm("preconnect",e,t)}function up(e,t,a){ra.L(e,t,a);var l=Jl;if(l&&e&&t){var n='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Nt(a.imageSizes)+'"]')):n+='[href="'+Nt(e)+'"]';var u=n;switch(t){case"style":u=$l(e);break;case"script":u=Fl(e)}Rt.has(u)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Rt.set(u,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Vn(u))||t==="script"&&l.querySelector(Zn(u))||(t=l.createElement("link"),et(t,"link",e),Je(t),l.head.appendChild(t)))}}function sp(e,t){ra.m(e,t);var a=Jl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Nt(l)+'"][href="'+Nt(e)+'"]',u=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Fl(e)}if(!Rt.has(u)&&(e=x({rel:"modulepreload",href:e},t),Rt.set(u,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zn(u)))return}l=a.createElement("link"),et(l,"link",e),Je(l),a.head.appendChild(l)}}}function rp(e,t,a){ra.S(e,t,a);var l=Jl;if(l&&e){var n=gl(l).hoistableStyles,u=$l(e);t=t||"default";var o=n.get(u);if(!o){var h={loading:0,preload:null};if(o=l.querySelector(Vn(u)))h.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Rt.get(u))&&$r(e,a);var S=o=l.createElement("link");Je(S),et(S,"link",e),S._p=new Promise(function(C,U){S.onload=C,S.onerror=U}),S.addEventListener("load",function(){h.loading|=1}),S.addEventListener("error",function(){h.loading|=2}),h.loading|=4,yu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(u,o)}}}function cp(e,t){ra.X(e,t);var a=Jl;if(a&&e){var l=gl(a).hoistableScripts,n=Fl(e),u=l.get(n);u||(u=a.querySelector(Zn(n)),u||(e=x({src:e,async:!0},t),(t=Rt.get(n))&&Fr(e,t),u=a.createElement("script"),Je(u),et(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function op(e,t){ra.M(e,t);var a=Jl;if(a&&e){var l=gl(a).hoistableScripts,n=Fl(e),u=l.get(n);u||(u=a.querySelector(Zn(n)),u||(e=x({src:e,async:!0,type:"module"},t),(t=Rt.get(n))&&Fr(e,t),u=a.createElement("script"),Je(u),et(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function vm(e,t,a,l){var n=(n=de.current)?hu(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=$l(a.href),a=gl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=$l(a.href);var u=gl(n).hoistableStyles,o=u.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=n.querySelector(Vn(e)))&&!u._p&&(o.instance=u,o.state.loading=5),Rt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Rt.set(e,a),u||fp(n,e,a,o.state))),t&&l===null)throw Error(c(528,""));return o}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fl(a),a=gl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function $l(e){return'href="'+Nt(e)+'"'}function Vn(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function fp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),et(t,"link",a),Je(t),e.head.appendChild(t))}function Fl(e){return'[src="'+Nt(e)+'"]'}function Zn(e){return"script[async]"+e}function bm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var n=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),et(l,"style",n),yu(l,a.precedence,e),t.instance=l;case"stylesheet":n=$l(a.href);var u=e.querySelector(Vn(n));if(u)return t.state.loading|=4,t.instance=u,Je(u),u;l=xm(a),(n=Rt.get(n))&&$r(l,n),u=(e.ownerDocument||e).createElement("link"),Je(u);var o=u;return o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),et(u,"link",l),t.state.loading|=4,yu(u,a.precedence,e),t.instance=u;case"script":return u=Fl(a.src),(n=e.querySelector(Zn(u)))?(t.instance=n,Je(n),n):(l=a,(n=Rt.get(u))&&(l=x({},a),Fr(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Je(n),et(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,yu(l,a.precedence,e));return t.instance}function yu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,u=n,o=0;o<l.length;o++){var h=l[o];if(h.dataset.precedence===t)u=h;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,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 Fr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pu=null;function Sm(e,t,a){if(pu===null){var l=new Map,n=pu=new Map;n.set(a,l)}else n=pu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var u=a[n];if(!(u[rn]||u[Fe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(t)||"";o=e+o;var h=l.get(o);h?h.push(u):l.set(o,[u])}}return l}function Em(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function dp(e,t,a){if(a===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 _m(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=$l(l.href),u=t.querySelector(Vn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=gu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Je(u);return}u=t.ownerDocument||t,l=xm(l),(n=Rt.get(n))&&$r(l,n),u=u.createElement("link"),Je(u);var o=u;o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),et(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=gu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Wr=0;function hp(e,t){return e.stylesheets&&e.count===0&&xu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Wr===0&&(Wr=62500*Jy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Wr?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function gu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vu=null;function xu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vu=new Map,t.forEach(yp,e),vu=null,gu.call(e))}function yp(e,t){if(!(t.state.loading&4)){var a=vu.get(e);if(a)var l=a.get(null);else{a=new Map,vu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var o=n[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),u=a.get(o)||l,u===l&&a.set(null,n),a.set(o,n),this.count++,l=gu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Kn={$$typeof:w,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function pp(e,t,a,l,n,u,o,h,S){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=Zu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zu(0),this.hiddenUpdates=Zu(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Tm(e,t,a,l,n,u,o,h,S,C,U,q){return e=new pp(e,t,a,o,S,C,U,q,h),t=1,u===!0&&(t|=24),u=gt(3,null,null,t),e.current=u,u.stateNode=e,t=zs(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Ds(u),e}function Nm(e){return e?(e=Al,e):Al}function jm(e,t,a,l,n,u){n=Nm(n),l.context===null?l.context=n:l.pendingContext=n,l=Ta(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Na(e,l,t),a!==null&&(dt(a,e,t),Nn(a,e,t))}function Am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ir(e,t){Am(e,t),(e=e.alternate)&&Am(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&dt(t,e,67108864),Ir(e,67108864)}}function wm(e){if(e.tag===13||e.tag===31){var t=Et();t=Ku(t);var a=Wa(e,t);a!==null&&dt(a,e,t),Ir(e,t)}}var bu=!0;function gp(e,t,a,l){var n=R.T;R.T=null;var u=K.p;try{K.p=2,Pr(e,t,a,l)}finally{K.p=u,R.T=n}}function vp(e,t,a,l){var n=R.T;R.T=null;var u=K.p;try{K.p=8,Pr(e,t,a,l)}finally{K.p=u,R.T=n}}function Pr(e,t,a,l){if(bu){var n=ec(l);if(n===null)kr(e,t,l,Su,a),Mm(e,l);else if(bp(n,e,t,a,l))l.stopPropagation();else if(Mm(e,l),t&4&&-1<xp.indexOf(e)){for(;n!==null;){var u=pl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=Za(u.pendingLanes);if(o!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var S=1<<31-yt(o);h.entanglements[1]|=S,o&=~S}Xt(u),(be&6)===0&&(lu=mt()+500,Yn(0))}}break;case 31:case 13:h=Wa(u,2),h!==null&&dt(h,u,2),iu(),Ir(u,2)}if(u=ec(l),u===null&&kr(e,t,l,Su,a),u===n)break;n=u}n!==null&&l.stopPropagation()}else kr(e,t,l,null,a)}}function ec(e){return e=as(e),tc(e)}var Su=null;function tc(e){if(Su=null,e=yl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Su=e,null}function zm(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(n0()){case Bc:return 2;case Lc:return 8;case oi:case i0:return 32;case Hc:return 268435456;default:return 32}default:return 32}}var ac=!1,Ba=null,La=null,Ha=null,Jn=new Map,$n=new Map,ka=[],xp="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 Mm(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$n.delete(t.pointerId)}}function Fn(e,t,a,l,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[n]},t!==null&&(t=pl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function bp(e,t,a,l,n){switch(t){case"focusin":return Ba=Fn(Ba,e,t,a,l,n),!0;case"dragenter":return La=Fn(La,e,t,a,l,n),!0;case"mouseover":return Ha=Fn(Ha,e,t,a,l,n),!0;case"pointerover":var u=n.pointerId;return Jn.set(u,Fn(Jn.get(u)||null,e,t,a,l,n)),!0;case"gotpointercapture":return u=n.pointerId,$n.set(u,Fn($n.get(u)||null,e,t,a,l,n)),!0}return!1}function Om(e){var t=yl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Qc(e.priority,function(){wm(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Qc(e.priority,function(){wm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ec(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);ts=l,a.target.dispatchEvent(l),ts=null}else return t=pl(a),t!==null&&Cm(t),e.blockedOn=a,!1;t.shift()}return!0}function Rm(e,t,a){Eu(e)&&a.delete(t)}function Sp(){ac=!1,Ba!==null&&Eu(Ba)&&(Ba=null),La!==null&&Eu(La)&&(La=null),Ha!==null&&Eu(Ha)&&(Ha=null),Jn.forEach(Rm),$n.forEach(Rm)}function _u(e,t){e.blockedOn===t&&(e.blockedOn=null,ac||(ac=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Sp)))}var Tu=null;function Dm(e){Tu!==e&&(Tu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Tu===e&&(Tu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(tc(l||a)===null)continue;break}var u=pl(a);u!==null&&(e.splice(t,3),t-=3,er(u,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Wl(e){function t(S){return _u(S,e)}Ba!==null&&_u(Ba,e),La!==null&&_u(La,e),Ha!==null&&_u(Ha,e),Jn.forEach(t),$n.forEach(t);for(var a=0;a<ka.length;a++){var l=ka[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ka.length&&(a=ka[0],a.blockedOn===null);)Om(a),a.blockedOn===null&&ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],u=a[l+1],o=n[ut]||null;if(typeof u=="function")o||Dm(a);else if(o){var h=null;if(u&&u.hasAttribute("formAction")){if(n=u,o=u[ut]||null)h=o.formAction;else if(tc(n)!==null)continue}else h=o.action;typeof h=="function"?a[l+1]=h:(a.splice(l,3),l-=3),Dm(a)}}}function Um(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function lc(e){this._internalRoot=e}Nu.prototype.render=lc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,l=Et();jm(a,l,e,t,null,null)},Nu.prototype.unmount=lc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jm(e.current,2,null,e,null,null),iu(),t[hl]=null}};function Nu(e){this._internalRoot=e}Nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ka.length&&t!==0&&t<ka[a].priority;a++);ka.splice(a,0,e),a===0&&Om(e)}};var Bm=s.version;if(Bm!=="19.2.3")throw Error(c(527,Bm,"19.2.3"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Ep={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ju.isDisabled&&ju.supportsFiber)try{nn=ju.inject(Ep),ht=ju}catch{}}return In.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,l="",n=Xf,u=Qf,o=Vf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Tm(e,1,!1,null,null,a,l,null,n,u,o,Um),e[hl]=t.current,Hr(e),new lc(t)},In.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var l=!1,n="",u=Xf,o=Qf,h=Vf,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Tm(e,1,!0,t,a??null,l,n,S,u,o,h,Um),t.context=Nm(null),a=t.current,l=Et(),l=Ku(l),n=Ta(l),n.callback=null,Na(a,n,l),a=l,t.current.lanes=a,sn(t,a),Xt(t),e[hl]=t.current,Hr(e),new Nu(t)},In.version="19.2.3",In}var Zm;function Op(){if(Zm)return ic.exports;Zm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),ic.exports=Mp(),ic.exports}var Rp=Op();const Dp=rh(Rp);var E=jc();const Re=rh(E),Up="/assets/no_image-DuvbomyT.png";function Xa(i){return Intl.NumberFormat("es-ES",{style:"currency",currency:"CLP",unitDisplay:"long"}).format(i)}const Bp=({product:i,onAdd:s})=>f.jsxs("div",{className:"group bg-[#2a201c] rounded-xl overflow-hidden border border-white/5 flex flex-col h-full shadow-md hover:border-white/10 transition-colors",children:[f.jsxs("div",{className:"aspect-square w-full relative overflow-hidden bg-gray-800",children:[f.jsx("div",{className:"absolute inset-0 bg-cover bg-center transition-transform duration-500 group-hover:scale-110",style:{backgroundImage:`url("${i.image||Up}")`}}),i.badges&&i.badges.length>0&&f.jsx("div",{className:"absolute top-2 left-2 flex flex-col gap-1 z-10 pointer-events-none",children:i.badges.map((r,c)=>f.jsx("span",{className:`${r.color} text-white text-[10px] font-bold px-2 py-0.5 rounded uppercase tracking-wide shadow-sm w-fit`,children:r.text},`${r.text}-${c}`))})]}),f.jsxs("div",{className:"p-3 flex flex-col flex-1",children:[f.jsx("h3",{className:"text-white font-bold text-lg leading-tight mb-1",children:i.name}),f.jsx("p",{className:"text-gray-400 text-xs line-clamp-2 mb-3 leading-relaxed",children:i.description}),f.jsxs("div",{className:"mt-auto flex items-center justify-between",children:[f.jsxs("span",{className:"text-white font-bold text-lg",children:["$",Xa(i.price)]}),f.jsx("button",{onClick:()=>s(i),className:"size-8 rounded-lg bg-primary flex items-center justify-center text-white hover:bg-orange-600 active:bg-orange-700 transition-colors shadow-lg shadow-primary/20",children:f.jsx("span",{className:"material-symbols-outlined text-lg",children:"add"})})]})]})]});function Lp(i,s=500){const[r,c]=E.useState(i);return E.useEffect(()=>{const d=setTimeout(()=>{c(i)},s);return()=>{clearTimeout(d)}},[i,s]),r}function fa(i){return Array.isArray?Array.isArray(i):fh(i)==="[object Array]"}function Hp(i){if(typeof i=="string")return i;let s=i+"";return s=="0"&&1/i==-1/0?"-0":s}function kp(i){return i==null?"":Hp(i)}function Qt(i){return typeof i=="string"}function ch(i){return typeof i=="number"}function qp(i){return i===!0||i===!1||Yp(i)&&fh(i)=="[object Boolean]"}function oh(i){return typeof i=="object"}function Yp(i){return oh(i)&&i!==null}function _t(i){return i!=null}function oc(i){return!i.trim().length}function fh(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Gp="Incorrect 'index' type",Xp=i=>`Invalid value for key ${i}`,Qp=i=>`Pattern length exceeds max of ${i}.`,Vp=i=>`Missing ${i} property in key`,Zp=i=>`Property 'weight' in key '${i}' must be a positive integer`,Km=Object.prototype.hasOwnProperty;class Kp{constructor(s){this._keys=[],this._keyMap={};let r=0;s.forEach(c=>{let d=dh(c);this._keys.push(d),this._keyMap[d.id]=d,r+=d.weight}),this._keys.forEach(c=>{c.weight/=r})}get(s){return this._keyMap[s]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function dh(i){let s=null,r=null,c=null,d=1,m=null;if(Qt(i)||fa(i))c=i,s=Jm(i),r=hc(i);else{if(!Km.call(i,"name"))throw new Error(Vp("name"));const y=i.name;if(c=y,Km.call(i,"weight")&&(d=i.weight,d<=0))throw new Error(Zp(y));s=Jm(y),r=hc(y),m=i.getFn}return{path:s,id:r,weight:d,src:c,getFn:m}}function Jm(i){return fa(i)?i:i.split(".")}function hc(i){return fa(i)?i.join("."):i}function Jp(i,s){let r=[],c=!1;const d=(m,y,v)=>{if(_t(m))if(!y[v])r.push(m);else{let g=y[v];const p=m[g];if(!_t(p))return;if(v===y.length-1&&(Qt(p)||ch(p)||qp(p)))r.push(kp(p));else if(fa(p)){c=!0;for(let b=0,x=p.length;b<x;b+=1)d(p[b],y,v+1)}else y.length&&d(p,y,v+1)}};return d(i,Qt(s)?s.split("."):s,0),c?r:r[0]}const $p={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Fp={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(i,s)=>i.score===s.score?i.idx<s.idx?-1:1:i.score<s.score?-1:1},Wp={location:0,threshold:.6,distance:100},Ip={useExtendedSearch:!1,getFn:Jp,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ue={...Fp,...$p,...Wp,...Ip};const Pp=/[^ ]+/g;function eg(i=1,s=3){const r=new Map,c=Math.pow(10,s);return{get(d){const m=d.match(Pp).length;if(r.has(m))return r.get(m);const y=1/Math.pow(m,.5*i),v=parseFloat(Math.round(y*c)/c);return r.set(m,v),v},clear(){r.clear()}}}class Ac{constructor({getFn:s=ue.getFn,fieldNormWeight:r=ue.fieldNormWeight}={}){this.norm=eg(r,3),this.getFn=s,this.isCreated=!1,this.setIndexRecords()}setSources(s=[]){this.docs=s}setIndexRecords(s=[]){this.records=s}setKeys(s=[]){this.keys=s,this._keysMap={},s.forEach((r,c)=>{this._keysMap[r.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Qt(this.docs[0])?this.docs.forEach((s,r)=>{this._addString(s,r)}):this.docs.forEach((s,r)=>{this._addObject(s,r)}),this.norm.clear())}add(s){const r=this.size();Qt(s)?this._addString(s,r):this._addObject(s,r)}removeAt(s){this.records.splice(s,1);for(let r=s,c=this.size();r<c;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(s,r){return s[this._keysMap[r]]}size(){return this.records.length}_addString(s,r){if(!_t(s)||oc(s))return;let c={v:s,i:r,n:this.norm.get(s)};this.records.push(c)}_addObject(s,r){let c={i:r,$:{}};this.keys.forEach((d,m)=>{let y=d.getFn?d.getFn(s):this.getFn(s,d.path);if(_t(y)){if(fa(y)){let v=[];const g=[{nestedArrIndex:-1,value:y}];for(;g.length;){const{nestedArrIndex:p,value:b}=g.pop();if(_t(b))if(Qt(b)&&!oc(b)){let x={v:b,i:p,n:this.norm.get(b)};v.push(x)}else fa(b)&&b.forEach((x,j)=>{g.push({nestedArrIndex:j,value:x})})}c.$[m]=v}else if(Qt(y)&&!oc(y)){let v={v:y,n:this.norm.get(y)};c.$[m]=v}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function mh(i,s,{getFn:r=ue.getFn,fieldNormWeight:c=ue.fieldNormWeight}={}){const d=new Ac({getFn:r,fieldNormWeight:c});return d.setKeys(i.map(dh)),d.setSources(s),d.create(),d}function tg(i,{getFn:s=ue.getFn,fieldNormWeight:r=ue.fieldNormWeight}={}){const{keys:c,records:d}=i,m=new Ac({getFn:s,fieldNormWeight:r});return m.setKeys(c),m.setIndexRecords(d),m}function Au(i,{errors:s=0,currentLocation:r=0,expectedLocation:c=0,distance:d=ue.distance,ignoreLocation:m=ue.ignoreLocation}={}){const y=s/i.length;if(m)return y;const v=Math.abs(c-r);return d?y+v/d:v?1:y}function ag(i=[],s=ue.minMatchCharLength){let r=[],c=-1,d=-1,m=0;for(let y=i.length;m<y;m+=1){let v=i[m];v&&c===-1?c=m:!v&&c!==-1&&(d=m-1,d-c+1>=s&&r.push([c,d]),c=-1)}return i[m-1]&&m-c>=s&&r.push([c,m-1]),r}const ol=32;function lg(i,s,r,{location:c=ue.location,distance:d=ue.distance,threshold:m=ue.threshold,findAllMatches:y=ue.findAllMatches,minMatchCharLength:v=ue.minMatchCharLength,includeMatches:g=ue.includeMatches,ignoreLocation:p=ue.ignoreLocation}={}){if(s.length>ol)throw new Error(Qp(ol));const b=s.length,x=i.length,j=Math.max(0,Math.min(c,x));let M=m,D=j;const L=v>1||g,Y=L?Array(x):[];let B;for(;(B=i.indexOf(s,D))>-1;){let X=Au(s,{currentLocation:B,expectedLocation:j,distance:d,ignoreLocation:p});if(M=Math.min(X,M),D=B+b,L){let F=0;for(;F<b;)Y[B+F]=1,F+=1}}D=-1;let k=[],w=1,Q=b+x;const Z=1<<b-1;for(let X=0;X<b;X+=1){let F=0,le=Q;for(;F<le;)Au(s,{errors:X,currentLocation:j+le,expectedLocation:j,distance:d,ignoreLocation:p})<=M?F=le:Q=le,le=Math.floor((Q-F)/2+F);Q=le;let V=Math.max(1,j-le+1),ee=y?x:Math.min(j+le,x)+b,se=Array(ee+2);se[ee+1]=(1<<X)-1;for(let Ce=ee;Ce>=V;Ce-=1){let Be=Ce-1,R=r[i.charAt(Be)];if(L&&(Y[Be]=+!!R),se[Ce]=(se[Ce+1]<<1|1)&R,X&&(se[Ce]|=(k[Ce+1]|k[Ce])<<1|1|k[Ce+1]),se[Ce]&Z&&(w=Au(s,{errors:X,currentLocation:Be,expectedLocation:j,distance:d,ignoreLocation:p}),w<=M)){if(M=w,D=Be,D<=j)break;V=Math.max(1,2*j-D)}}if(Au(s,{errors:X+1,currentLocation:j,expectedLocation:j,distance:d,ignoreLocation:p})>M)break;k=se}const $={isMatch:D>=0,score:Math.max(.001,w)};if(L){const X=ag(Y,v);X.length?g&&($.indices=X):$.isMatch=!1}return $}function ng(i){let s={};for(let r=0,c=i.length;r<c;r+=1){const d=i.charAt(r);s[d]=(s[d]||0)|1<<c-r-1}return s}const Mu=String.prototype.normalize?(i=>i.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(i=>i);class hh{constructor(s,{location:r=ue.location,threshold:c=ue.threshold,distance:d=ue.distance,includeMatches:m=ue.includeMatches,findAllMatches:y=ue.findAllMatches,minMatchCharLength:v=ue.minMatchCharLength,isCaseSensitive:g=ue.isCaseSensitive,ignoreDiacritics:p=ue.ignoreDiacritics,ignoreLocation:b=ue.ignoreLocation}={}){if(this.options={location:r,threshold:c,distance:d,includeMatches:m,findAllMatches:y,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:p,ignoreLocation:b},s=g?s:s.toLowerCase(),s=p?Mu(s):s,this.pattern=s,this.chunks=[],!this.pattern.length)return;const x=(M,D)=>{this.chunks.push({pattern:M,alphabet:ng(M),startIndex:D})},j=this.pattern.length;if(j>ol){let M=0;const D=j%ol,L=j-D;for(;M<L;)x(this.pattern.substr(M,ol),M),M+=ol;if(D){const Y=j-ol;x(this.pattern.substr(Y),Y)}}else x(this.pattern,0)}searchIn(s){const{isCaseSensitive:r,ignoreDiacritics:c,includeMatches:d}=this.options;if(s=r?s:s.toLowerCase(),s=c?Mu(s):s,this.pattern===s){let L={isMatch:!0,score:0};return d&&(L.indices=[[0,s.length-1]]),L}const{location:m,distance:y,threshold:v,findAllMatches:g,minMatchCharLength:p,ignoreLocation:b}=this.options;let x=[],j=0,M=!1;this.chunks.forEach(({pattern:L,alphabet:Y,startIndex:B})=>{const{isMatch:k,score:w,indices:Q}=lg(s,L,Y,{location:m+B,distance:y,threshold:v,findAllMatches:g,minMatchCharLength:p,includeMatches:d,ignoreLocation:b});k&&(M=!0),j+=w,k&&Q&&(x=[...x,...Q])});let D={isMatch:M,score:M?j/this.chunks.length:1};return M&&d&&(D.indices=x),D}}class Qa{constructor(s){this.pattern=s}static isMultiMatch(s){return $m(s,this.multiRegex)}static isSingleMatch(s){return $m(s,this.singleRegex)}search(){}}function $m(i,s){const r=i.match(s);return r?r[1]:null}class ig extends Qa{constructor(s){super(s)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(s){const r=s===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class ug extends Qa{constructor(s){super(s)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(s){const c=s.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,s.length-1]}}}class sg extends Qa{constructor(s){super(s)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(s){const r=s.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class rg extends Qa{constructor(s){super(s)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(s){const r=!s.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,s.length-1]}}}class cg extends Qa{constructor(s){super(s)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(s){const r=s.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[s.length-this.pattern.length,s.length-1]}}}class og extends Qa{constructor(s){super(s)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(s){const r=!s.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,s.length-1]}}}class yh extends Qa{constructor(s,{location:r=ue.location,threshold:c=ue.threshold,distance:d=ue.distance,includeMatches:m=ue.includeMatches,findAllMatches:y=ue.findAllMatches,minMatchCharLength:v=ue.minMatchCharLength,isCaseSensitive:g=ue.isCaseSensitive,ignoreDiacritics:p=ue.ignoreDiacritics,ignoreLocation:b=ue.ignoreLocation}={}){super(s),this._bitapSearch=new hh(s,{location:r,threshold:c,distance:d,includeMatches:m,findAllMatches:y,minMatchCharLength:v,isCaseSensitive:g,ignoreDiacritics:p,ignoreLocation:b})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(s){return this._bitapSearch.searchIn(s)}}class ph extends Qa{constructor(s){super(s)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(s){let r=0,c;const d=[],m=this.pattern.length;for(;(c=s.indexOf(this.pattern,r))>-1;)r=c+m,d.push([c,r-1]);const y=!!d.length;return{isMatch:y,score:y?0:1,indices:d}}}const yc=[ig,ph,sg,rg,og,cg,ug,yh],Fm=yc.length,fg=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dg="|";function mg(i,s={}){return i.split(dg).map(r=>{let c=r.trim().split(fg).filter(m=>m&&!!m.trim()),d=[];for(let m=0,y=c.length;m<y;m+=1){const v=c[m];let g=!1,p=-1;for(;!g&&++p<Fm;){const b=yc[p];let x=b.isMultiMatch(v);x&&(d.push(new b(x,s)),g=!0)}if(!g)for(p=-1;++p<Fm;){const b=yc[p];let x=b.isSingleMatch(v);if(x){d.push(new b(x,s));break}}}return d})}const hg=new Set([yh.type,ph.type]);class yg{constructor(s,{isCaseSensitive:r=ue.isCaseSensitive,ignoreDiacritics:c=ue.ignoreDiacritics,includeMatches:d=ue.includeMatches,minMatchCharLength:m=ue.minMatchCharLength,ignoreLocation:y=ue.ignoreLocation,findAllMatches:v=ue.findAllMatches,location:g=ue.location,threshold:p=ue.threshold,distance:b=ue.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:c,includeMatches:d,minMatchCharLength:m,findAllMatches:v,ignoreLocation:y,location:g,threshold:p,distance:b},s=r?s:s.toLowerCase(),s=c?Mu(s):s,this.pattern=s,this.query=mg(this.pattern,this.options)}static condition(s,r){return r.useExtendedSearch}searchIn(s){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:c,isCaseSensitive:d,ignoreDiacritics:m}=this.options;s=d?s:s.toLowerCase(),s=m?Mu(s):s;let y=0,v=[],g=0;for(let p=0,b=r.length;p<b;p+=1){const x=r[p];v.length=0,y=0;for(let j=0,M=x.length;j<M;j+=1){const D=x[j],{isMatch:L,indices:Y,score:B}=D.search(s);if(L){if(y+=1,g+=B,c){const k=D.constructor.type;hg.has(k)?v=[...v,...Y]:v.push(Y)}}else{g=0,y=0,v.length=0;break}}if(y){let j={isMatch:!0,score:g/y};return c&&(j.indices=v),j}}return{isMatch:!1,score:1}}}const pc=[];function pg(...i){pc.push(...i)}function gc(i,s){for(let r=0,c=pc.length;r<c;r+=1){let d=pc[r];if(d.condition(i,s))return new d(i,s)}return new hh(i,s)}const Ou={AND:"$and",OR:"$or"},vc={PATH:"$path",PATTERN:"$val"},xc=i=>!!(i[Ou.AND]||i[Ou.OR]),gg=i=>!!i[vc.PATH],vg=i=>!fa(i)&&oh(i)&&!xc(i),Wm=i=>({[Ou.AND]:Object.keys(i).map(s=>({[s]:i[s]}))});function gh(i,s,{auto:r=!0}={}){const c=d=>{let m=Object.keys(d);const y=gg(d);if(!y&&m.length>1&&!xc(d))return c(Wm(d));if(vg(d)){const g=y?d[vc.PATH]:m[0],p=y?d[vc.PATTERN]:d[g];if(!Qt(p))throw new Error(Xp(g));const b={keyId:hc(g),pattern:p};return r&&(b.searcher=gc(p,s)),b}let v={children:[],operator:m[0]};return m.forEach(g=>{const p=d[g];fa(p)&&p.forEach(b=>{v.children.push(c(b))})}),v};return xc(i)||(i=Wm(i)),c(i)}function xg(i,{ignoreFieldNorm:s=ue.ignoreFieldNorm}){i.forEach(r=>{let c=1;r.matches.forEach(({key:d,norm:m,score:y})=>{const v=d?d.weight:null;c*=Math.pow(y===0&&v?Number.EPSILON:y,(v||1)*(s?1:m))}),r.score=c})}function bg(i,s){const r=i.matches;s.matches=[],_t(r)&&r.forEach(c=>{if(!_t(c.indices)||!c.indices.length)return;const{indices:d,value:m}=c;let y={indices:d,value:m};c.key&&(y.key=c.key.src),c.idx>-1&&(y.refIndex=c.idx),s.matches.push(y)})}function Sg(i,s){s.score=i.score}function Eg(i,s,{includeMatches:r=ue.includeMatches,includeScore:c=ue.includeScore}={}){const d=[];return r&&d.push(bg),c&&d.push(Sg),i.map(m=>{const{idx:y}=m,v={item:s[y],refIndex:y};return d.length&&d.forEach(g=>{g(m,v)}),v})}class Il{constructor(s,r={},c){this.options={...ue,...r},this.options.useExtendedSearch,this._keyStore=new Kp(this.options.keys),this.setCollection(s,c)}setCollection(s,r){if(this._docs=s,r&&!(r instanceof Ac))throw new Error(Gp);this._myIndex=r||mh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(s){_t(s)&&(this._docs.push(s),this._myIndex.add(s))}remove(s=()=>!1){const r=[];for(let c=0,d=this._docs.length;c<d;c+=1){const m=this._docs[c];s(m,c)&&(this.removeAt(c),c-=1,d-=1,r.push(m))}return r}removeAt(s){this._docs.splice(s,1),this._myIndex.removeAt(s)}getIndex(){return this._myIndex}search(s,{limit:r=-1}={}){const{includeMatches:c,includeScore:d,shouldSort:m,sortFn:y,ignoreFieldNorm:v}=this.options;let g=Qt(s)?Qt(this._docs[0])?this._searchStringList(s):this._searchObjectList(s):this._searchLogical(s);return xg(g,{ignoreFieldNorm:v}),m&&g.sort(y),ch(r)&&r>-1&&(g=g.slice(0,r)),Eg(g,this._docs,{includeMatches:c,includeScore:d})}_searchStringList(s){const r=gc(s,this.options),{records:c}=this._myIndex,d=[];return c.forEach(({v:m,i:y,n:v})=>{if(!_t(m))return;const{isMatch:g,score:p,indices:b}=r.searchIn(m);g&&d.push({item:m,idx:y,matches:[{score:p,value:m,norm:v,indices:b}]})}),d}_searchLogical(s){const r=gh(s,this.options),c=(v,g,p)=>{if(!v.children){const{keyId:x,searcher:j}=v,M=this._findMatches({key:this._keyStore.get(x),value:this._myIndex.getValueForItemAtKeyId(g,x),searcher:j});return M&&M.length?[{idx:p,item:g,matches:M}]:[]}const b=[];for(let x=0,j=v.children.length;x<j;x+=1){const M=v.children[x],D=c(M,g,p);if(D.length)b.push(...D);else if(v.operator===Ou.AND)return[]}return b},d=this._myIndex.records,m={},y=[];return d.forEach(({$:v,i:g})=>{if(_t(v)){let p=c(r,v,g);p.length&&(m[g]||(m[g]={idx:g,item:v,matches:[]},y.push(m[g])),p.forEach(({matches:b})=>{m[g].matches.push(...b)}))}}),y}_searchObjectList(s){const r=gc(s,this.options),{keys:c,records:d}=this._myIndex,m=[];return d.forEach(({$:y,i:v})=>{if(!_t(y))return;let g=[];c.forEach((p,b)=>{g.push(...this._findMatches({key:p,value:y[b],searcher:r}))}),g.length&&m.push({idx:v,item:y,matches:g})}),m}_findMatches({key:s,value:r,searcher:c}){if(!_t(r))return[];let d=[];if(fa(r))r.forEach(({v:m,i:y,n:v})=>{if(!_t(m))return;const{isMatch:g,score:p,indices:b}=c.searchIn(m);g&&d.push({score:p,key:s,value:m,idx:y,norm:v,indices:b})});else{const{v:m,n:y}=r,{isMatch:v,score:g,indices:p}=c.searchIn(m);v&&d.push({score:g,key:s,value:m,norm:y,indices:p})}return d}}Il.version="7.1.0";Il.createIndex=mh;Il.parseIndex=tg;Il.config=ue;Il.parseQuery=gh;pg(yg);const _g=(i,s,r=.5)=>{const[c,d]=E.useState(""),m=E.useMemo(()=>new Il(i,{keys:s,threshold:r,ignoreLocation:!0,minMatchCharLength:2}),[i,s,r]),y=E.useMemo(()=>c?m.search(c).map(v=>v.item):i,[m,c,i]);return{query:c,setQuery:d,results:y}};var Tg={};const ha=Tg.DEVELOP?"https://menu.fu.do/klein/qr-menu":"http://localhost:6001",Ng=[{id:"1",sender:"system",text:"Initiating connection...",timestamp:"18:04"}],vh=i=>{localStorage.setItem("token",i)},Pl=()=>localStorage.getItem("token"),jg=async(i,s)=>await(await fetch(`${ha}/api/users/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,pin:s})})).json(),Du=async()=>(await fetch(`${ha}/api/users/guest`,{method:"GET",headers:{"Content-Type":"application/json"}})).json(),Ag=async i=>await(await fetch(`${ha}/api/users/user`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`}})).json(),Cg=async i=>{const s=i?Pl():(await Du()).data.token;return await(await fetch(`${ha}/api/products?status=1`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${s}`}})).json()},wg=async(i,s)=>{const r=s?Pl():(await Du()).data.token;return await(await fetch(`${ha}/api/orders/send`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(i)})).json()},zg=async(i,s)=>{const r=s?Pl():(await Du()).data.token;return await(await fetch(`${ha}/api/products/table/${i}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`}})).json()},xh=async(i,s)=>{const r=i?Pl():(await Du()).data.token;return await(await fetch(`${ha}/api/orders/billing`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({table:s,payment:"Efectivo"})})).json()},bh=E.createContext(void 0),Mg=({children:i})=>{const[s,r]=E.useState(!1),[c,d]=E.useState(),[m,y]=E.useState(0),[v,g]=E.useState(""),p=E.useCallback((M,D)=>{D&&!D.token&&(D.token=Pl()),r(M),d(D),y(D?D.reward_progress:0),g(D?D.token:"")},[]),b=E.useCallback(M=>{g(M)},[]),x=E.useCallback(M=>{y(M)},[]),j=E.useMemo(()=>({isLogged:s,user:c,token:v,setIsLoggedIn:p,promoPercent:m,setPromoPercent:x,setToken:b}),[s,c,v,p,m,x,b]);return f.jsx(bh.Provider,{value:j,children:i})},Dt=()=>E.useContext(bh);function Og(i){return i.map(s=>{const r={...s};if(r.badges=[],r.type==="Cervezas"&&r.description){const m=/IBU\s*:?\s*(\d+(?:\.\d+)?)/i.exec(r.description);m&&r.badges.push({text:"IBU "+m[1],color:"bg-black/60 backdrop-blur"});const v=/(\d+(?:[\.,]\d+)?)\s*(?:º|grados)/i.exec(r.description);if(v){let g=v[1].replace(".",",");g.includes(",")||(g+=",0"),r.badges.push({text:`${g}º`,color:"bg-black/60 backdrop-blur"})}}return["Pizza Medianas","Pizzas Familiares","Sandwich de Autor"].includes(s.type)&&(r.description.toLowerCase().includes("veggie")||r.description.toLowerCase().includes("vegetarian")||r.description.toLowerCase().includes("vegan")||r.name.toLowerCase().includes("veggie")||r.name.toLowerCase().includes("vegetarian")||r.name.toLowerCase().includes("vegan"))&&r.badges.push({text:"VEGGIE",color:"bg-green-600"}),r})}const Sh=E.createContext(void 0),Rg=({children:i})=>{const[s,r]=E.useState(!0),[c,d]=E.useState("Cargando..."),m=(y,v="Cargando...")=>{r(y),setTimeout(()=>{d(v)},y?0:2e3)};return f.jsxs(Sh.Provider,{value:{isLoading:s,setIsLoading:m},children:[f.jsx("div",{children:f.jsx("div",{className:`fixed inset-0 z-50 flex items-center justify-center bg-background-dark/60 backdrop-blur-sm pointer-events-none transition-opacity duration-300 opacity-0 ${s?"opacity-100":"opacity-0"}`,children:f.jsxs("div",{className:"flex flex-col items-center justify-center w-full h-full",children:[f.jsxs("div",{className:"animate-spin relative not-first:animate-spin flex justify-center space-x-8 h-12 w-full max-w-xsrounded-xl",children:[f.jsx("div",{className:"h-2 w-2 rounded-full bg-white"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white -translate-y-19"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white translate-y-19"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white absolute left-1/2 top-1/2 -translate-y-1/2"}),f.jsx("div",{className:"h-2 w-2 rounded-full bg-white"})]}),f.jsx("div",{className:"text-white text-center text-md font-display translate-y-25",children:c})]})})}),i]})},ai=()=>E.useContext(Sh),Eh=E.createContext(void 0),Dg=({children:i})=>{const[s,r]=E.useState([]),[c,d]=E.useState(void 0),m=E.useCallback((...p)=>{const b=s.filter(x=>p.some(j=>j.id===x.id));return b.forEach(x=>x.quantity=0),b.map(x=>{const j={...x};return j.quantity=p.filter(M=>M.id===x.id).reduce((M,D)=>M+D.quantity,0),j})},[s]),y=E.useCallback((p,b)=>{const x=s.map(j=>j.id===p?{...j,price:b}:j);r(x)},[s]),v=E.useCallback(p=>{const b=s.filter(x=>x.id!==p);r(b)},[s]),g=E.useMemo(()=>({products:s,setProducts:r,table:c,setTable:d,getItems:m,updateProduct:y,removeProduct:v}),[s,r,c,d,m,y,v]);return f.jsx(Eh.Provider,{value:g,children:i})},li=()=>E.useContext(Eh),Ug=({onAddProduct:i})=>{const[s,r]=E.useState(""),[c,d]=E.useState([]),[m,y]=E.useState("All Items"),{products:v,setProducts:g}=li(),{setQuery:p,results:b}=_g(v,["name","description"],.5),x=Lp(s,500),{setIsLoading:j}=ai(),{isLogged:M}=Dt(),D=E.useRef(null),L=B=>{r(B)},Y=B=>{const k=D.current;k&&k.animate([{filter:"blur(0px)"},{filter:"blur(5px)"},{filter:"blur(0px)"}],{duration:100,fill:"forwards"}),setTimeout(()=>{y(B)},50)};return E.useEffect(()=>{p(x)},[x]),E.useEffect(()=>{(async()=>{if(v.length>0)return;j(!0,"Cargando Productos...");const k=await Cg(M),w=k.data.products;if(k.success){const Q=Og(w);g(Q);const Z=w.reduce(($,X)=>($.includes(X.type)||$.push(X.type),$),[]);d(Z),v.length>0&&setTimeout(()=>{j(!1)},1e3)}})()},[]),f.jsxs("section",{className:"flex-1 bg-background-dark overflow-y-auto relative flex flex-col z-10 h-full",children:[f.jsxs("div",{className:"sticky top-0 z-20 bg-background-dark/95 backdrop-blur-sm border-b border-white/5 px-4 py-4",children:[f.jsx("div",{className:"flex justify-between items-end mb-4",children:f.jsxs("div",{children:[f.jsx("h2",{className:"text-white text-2xl font-bold leading-tight",children:"Tienes Sed?"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Cervezas locales de corte artesanal"})]})}),f.jsxs("div",{className:"relative mb-4 group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 group-focus-within:text-primary transition-colors",children:"search"})}),f.jsx("input",{className:"block w-full pl-10 pr-3 py-2.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary sm:text-sm transition-all shadow-sm",placeholder:"Busca lo que quieras...",type:"text",onChange:B=>L(B.target.value)})]}),f.jsxs("div",{className:"flex gap-3 overflow-x-auto scrollbar-hide pb-1",children:[f.jsx("button",{className:"px-5 py-2 rounded-full text-white text-sm font-medium whitespace-nowrap shadow-lg"+(m==="All Items"?" bg-primary shadow-primary/20":" bg-[#2a201c] hover:bg-[#3a2c26]"),onClick:()=>Y("All Items"),children:"All Items"}),c.map(B=>f.jsx("button",{className:"px-5 py-2 rounded-full bg-[#2a201c] text-gray-300 text-sm font-medium whitespace-nowrap border border-white/5"+(m===B?" bg-primary shadow-primary/20":" hover:bg-[#3a2c26]"),onClick:()=>Y(B),children:B},B))]})]}),f.jsx("div",{ref:D,className:"p-4 grid grid-cols-2 gap-4 pb-28",children:b?b.map(B=>{if(m==="All Items"||B.type===m)return f.jsx(Bp,{product:B,onAdd:i},B.id)}):"No se encontraron productos"})]})},Im=`${ha}/api/chat`;class Bg{constructor(){this.socket=null,this.messageHandler=null,this.errorHandler=null,this.closeHandler=null,this.mentionHandler=null}connect(s){this.socket&&this.socket.close();const c=`${ha.replace(/^http/,"ws")}/api/chat/ws?token=${encodeURIComponent(s)}`;return this.socket=new WebSocket(c),this.socket.onopen=()=>{console.log("WebSocket conectado")},this.socket.onmessage=d=>{try{const m=JSON.parse(d.data);if(m.type==="ping"){this.send({type:"pong"});return}if(m.type==="mention"){this.mentionHandler&&this.mentionHandler(m.username);return}this.messageHandler&&this.messageHandler(m)}catch(m){console.error("Error al parsear mensaje del WS:",m)}},this.socket.onerror=d=>{console.error("WebSocket error:",d),this.errorHandler&&this.errorHandler(d)},this.socket.onclose=()=>{console.log("WebSocket desconectado"),this.closeHandler&&this.closeHandler()},!0}send(s){this.socket&&this.socket.readyState===WebSocket.OPEN?this.socket.send(JSON.stringify(s)):console.warn("No se pudo enviar el mensaje: WebSocket no conectado.")}join(s){this.send({type:"join",username:s})}sendMessage(s,r){this.send({type:"message",username:s,message:r})}sendAiMessage(s,r){this.send({type:"ai_message",username:s,message:r})}sendMention(s,r){this.send({type:"mention",username:r})}leave(s){this.send({type:"leave",username:s}),setTimeout(()=>{this.disconnect()},3e3)}disconnect(){this.socket&&(this.socket.close(),this.socket=null)}onMessage(s){this.messageHandler=s}onError(s){this.errorHandler=s}onClose(s){this.closeHandler=s}onMention(s){this.mentionHandler=s}async getConnectedUsers(s,r){var y;const c=new URL(`${Im}/users`);r&&c.searchParams.append("q",r);const d=await fetch(c.toString(),{headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"}});if(!d.ok)throw new Error("Error fetching users");const m=await d.json();return((y=m.data)==null?void 0:y.users)||m.data||[]}async getOnlineCount(s){var d;const r=await fetch(`${Im}/onlines`,{headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"}});if(!r.ok)throw new Error("Error fetching count");return((d=(await r.json()).data)==null?void 0:d.count)||0}async mention(s){this.send({type:"mention",username:s})}}const at=new Bg;function _h(i){var s,r,c="";if(typeof i=="string"||typeof i=="number")c+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(s=0;s<d;s++)i[s]&&(r=_h(i[s]))&&(c&&(c+=" "),c+=r)}else for(r in i)i[r]&&(c&&(c+=" "),c+=r);return c}function fl(){for(var i,s,r=0,c="",d=arguments.length;r<d;r++)(i=arguments[r])&&(s=_h(i))&&(c&&(c+=" "),c+=s);return c}function Lg(i){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",s.firstChild?s.insertBefore(r,s.firstChild):s.appendChild(r),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i))}Lg(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
- `);var ni=i=>typeof i=="number"&&!isNaN(i),dl=i=>typeof i=="string",da=i=>typeof i=="function",Hg=i=>dl(i)||ni(i),bc=i=>dl(i)||da(i)?i:null,kg=(i,s)=>i===!1||ni(i)&&i>0?i:s,Sc=i=>E.isValidElement(i)||dl(i)||da(i)||ni(i);function qg(i,s,r=300){let{scrollHeight:c,style:d}=i;requestAnimationFrame(()=>{d.minHeight="initial",d.height=c+"px",d.transition=`all ${r}ms`,requestAnimationFrame(()=>{d.height="0",d.padding="0",d.margin="0",setTimeout(s,r)})})}function Yg({enter:i,exit:s,appendPosition:r=!1,collapse:c=!0,collapseDuration:d=300}){return function({children:m,position:y,preventExitTransition:v,done:g,nodeRef:p,isIn:b,playToast:x}){let j=r?`${i}--${y}`:i,M=r?`${s}--${y}`:s,D=E.useRef(0);return E.useLayoutEffect(()=>{let L=p.current,Y=j.split(" "),B=k=>{k.target===p.current&&(x(),L.removeEventListener("animationend",B),L.removeEventListener("animationcancel",B),D.current===0&&k.type!=="animationcancel"&&L.classList.remove(...Y))};L.classList.add(...Y),L.addEventListener("animationend",B),L.addEventListener("animationcancel",B)},[]),E.useEffect(()=>{let L=p.current,Y=()=>{L.removeEventListener("animationend",Y),c?qg(L,g,d):g()};b||(v?Y():(D.current=1,L.className+=` ${M}`,L.addEventListener("animationend",Y)))},[b]),Re.createElement(Re.Fragment,null,m)}}function Pm(i,s){return{content:Th(i.content,i.props),containerId:i.props.containerId,id:i.props.toastId,theme:i.props.theme,type:i.props.type,data:i.props.data||{},isLoading:i.props.isLoading,icon:i.props.icon,reason:i.removalReason,status:s}}function Th(i,s,r=!1){return E.isValidElement(i)&&!dl(i.type)?E.cloneElement(i,{closeToast:s.closeToast,toastProps:s,data:s.data,isPaused:r}):da(i)?i({closeToast:s.closeToast,toastProps:s,data:s.data,isPaused:r}):i}function Gg({closeToast:i,theme:s,ariaLabel:r="close"}){return Re.createElement("button",{className:`Toastify__close-button Toastify__close-button--${s}`,type:"button",onClick:c=>{c.stopPropagation(),i(!0)},"aria-label":r},Re.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Re.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Xg({delay:i,isRunning:s,closeToast:r,type:c="default",hide:d,className:m,controlledProgress:y,progress:v,rtl:g,isIn:p,theme:b}){let x=d||y&&v===0,j={animationDuration:`${i}ms`,animationPlayState:s?"running":"paused"};y&&(j.transform=`scaleX(${v})`);let M=fl("Toastify__progress-bar",y?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${b}`,`Toastify__progress-bar--${c}`,{"Toastify__progress-bar--rtl":g}),D=da(m)?m({rtl:g,type:c,defaultClassName:M}):fl(M,m),L={[y&&v>=1?"onTransitionEnd":"onAnimationEnd"]:y&&v<1?null:()=>{p&&r()}};return Re.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},Re.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${b} Toastify__progress-bar--${c}`}),Re.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:D,style:j,...L}))}var Qg=1,Nh=()=>`${Qg++}`;function Vg(i,s,r){let c=1,d=0,m=[],y=[],v=s,g=new Map,p=new Set,b=k=>(p.add(k),()=>p.delete(k)),x=()=>{y=Array.from(g.values()),p.forEach(k=>k())},j=({containerId:k,toastId:w,updateId:Q})=>{let Z=k?k!==i:i!==1,$=g.has(w)&&Q==null;return Z||$},M=(k,w)=>{g.forEach(Q=>{var Z;(w==null||w===Q.props.toastId)&&((Z=Q.toggle)==null||Z.call(Q,k))})},D=k=>{var w,Q;(Q=(w=k.props)==null?void 0:w.onClose)==null||Q.call(w,k.removalReason),k.isActive=!1},L=k=>{if(k==null)g.forEach(D);else{let w=g.get(k);w&&D(w)}x()},Y=()=>{d-=m.length,m=[]},B=k=>{var w,Q;let{toastId:Z,updateId:$}=k.props,X=$==null;k.staleId&&g.delete(k.staleId),k.isActive=!0,g.set(Z,k),x(),r(Pm(k,X?"added":"updated")),X&&((Q=(w=k.props).onOpen)==null||Q.call(w))};return{id:i,props:v,observe:b,toggle:M,removeToast:L,toasts:g,clearQueue:Y,buildToast:(k,w)=>{if(j(w))return;let{toastId:Q,updateId:Z,data:$,staleId:X,delay:F}=w,le=Z==null;le&&d++;let V={...v,style:v.toastStyle,key:c++,...Object.fromEntries(Object.entries(w).filter(([se,Ue])=>Ue!=null)),toastId:Q,updateId:Z,data:$,isIn:!1,className:bc(w.className||v.toastClassName),progressClassName:bc(w.progressClassName||v.progressClassName),autoClose:w.isLoading?!1:kg(w.autoClose,v.autoClose),closeToast(se){g.get(Q).removalReason=se,L(Q)},deleteToast(){let se=g.get(Q);if(se!=null){if(r(Pm(se,"removed")),g.delete(Q),d--,d<0&&(d=0),m.length>0){B(m.shift());return}x()}}};V.closeButton=v.closeButton,w.closeButton===!1||Sc(w.closeButton)?V.closeButton=w.closeButton:w.closeButton===!0&&(V.closeButton=Sc(v.closeButton)?v.closeButton:!0);let ee={content:k,props:V,staleId:X};v.limit&&v.limit>0&&d>v.limit&&le?m.push(ee):ni(F)?setTimeout(()=>{B(ee)},F):B(ee)},setProps(k){v=k},setToggle:(k,w)=>{let Q=g.get(k);Q&&(Q.toggle=w)},isToastActive:k=>{var w;return(w=g.get(k))==null?void 0:w.isActive},getSnapshot:()=>y}}var it=new Map,ei=[],Ec=new Set,Zg=i=>Ec.forEach(s=>s(i)),jh=()=>it.size>0;function Kg(){ei.forEach(i=>Ch(i.content,i.options)),ei=[]}var Jg=(i,{containerId:s})=>{var r;return(r=it.get(s||1))==null?void 0:r.toasts.get(i)};function Ah(i,s){var r;if(s)return!!((r=it.get(s))!=null&&r.isToastActive(i));let c=!1;return it.forEach(d=>{d.isToastActive(i)&&(c=!0)}),c}function $g(i){if(!jh()){ei=ei.filter(s=>i!=null&&s.options.toastId!==i);return}if(i==null||Hg(i))it.forEach(s=>{s.removeToast(i)});else if(i&&("containerId"in i||"id"in i)){let s=it.get(i.containerId);s?s.removeToast(i.id):it.forEach(r=>{r.removeToast(i.id)})}}var Fg=(i={})=>{it.forEach(s=>{s.props.limit&&(!i.containerId||s.id===i.containerId)&&s.clearQueue()})};function Ch(i,s){Sc(i)&&(jh()||ei.push({content:i,options:s}),it.forEach(r=>{r.buildToast(i,s)}))}function Wg(i){var s;(s=it.get(i.containerId||1))==null||s.setToggle(i.id,i.fn)}function wh(i,s){it.forEach(r=>{(s==null||!(s!=null&&s.containerId)||(s==null?void 0:s.containerId)===r.id)&&r.toggle(i,s==null?void 0:s.id)})}function Ig(i){let s=i.containerId||1;return{subscribe(r){let c=Vg(s,i,Zg);it.set(s,c);let d=c.observe(r);return Kg(),()=>{d(),it.delete(s)}},setProps(r){var c;(c=it.get(s))==null||c.setProps(r)},getSnapshot(){var r;return(r=it.get(s))==null?void 0:r.getSnapshot()}}}function Pg(i){return Ec.add(i),()=>{Ec.delete(i)}}function ev(i){return i&&(dl(i.toastId)||ni(i.toastId))?i.toastId:Nh()}function ii(i,s){return Ch(i,s),s.toastId}function Uu(i,s){return{...s,type:s&&s.type||i,toastId:ev(s)}}function Bu(i){return(s,r)=>ii(s,Uu(i,r))}function ie(i,s){return ii(i,Uu("default",s))}ie.loading=(i,s)=>ii(i,Uu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...s}));function tv(i,{pending:s,error:r,success:c},d){let m;s&&(m=dl(s)?ie.loading(s,d):ie.loading(s.render,{...d,...s}));let y={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},v=(p,b,x)=>{if(b==null){ie.dismiss(m);return}let j={type:p,...y,...d,data:x},M=dl(b)?{render:b}:b;return m?ie.update(m,{...j,...M}):ie(M.render,{...j,...M}),x},g=da(i)?i():i;return g.then(p=>v("success",c,p)).catch(p=>v("error",r,p)),g}ie.promise=tv;ie.success=Bu("success");ie.info=Bu("info");ie.error=Bu("error");ie.warning=Bu("warning");ie.warn=ie.warning;ie.dark=(i,s)=>ii(i,Uu("default",{theme:"dark",...s}));function av(i){$g(i)}ie.dismiss=av;ie.clearWaitingQueue=Fg;ie.isActive=Ah;ie.update=(i,s={})=>{let r=Jg(i,s);if(r){let{props:c,content:d}=r,m={delay:100,...c,...s,toastId:s.toastId||i,updateId:Nh()};m.toastId!==i&&(m.staleId=i);let y=m.render||d;delete m.render,ii(y,m)}};ie.done=i=>{ie.update(i,{progress:1})};ie.onChange=Pg;ie.play=i=>wh(!0,i);ie.pause=i=>wh(!1,i);function lv(i){var s;let{subscribe:r,getSnapshot:c,setProps:d}=E.useRef(Ig(i)).current;d(i);let m=(s=E.useSyncExternalStore(r,c,c))==null?void 0:s.slice();function y(v){if(!m)return[];let g=new Map;return i.newestOnTop&&m.reverse(),m.forEach(p=>{let{position:b}=p.props;g.has(b)||g.set(b,[]),g.get(b).push(p)}),Array.from(g,p=>v(p[0],p[1]))}return{getToastToRender:y,isToastActive:Ah,count:m==null?void 0:m.length}}function nv(i){let[s,r]=E.useState(!1),[c,d]=E.useState(!1),m=E.useRef(null),y=E.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:v,pauseOnHover:g,closeToast:p,onClick:b,closeOnClick:x}=i;Wg({id:i.toastId,containerId:i.containerId,fn:r}),E.useEffect(()=>{if(i.pauseOnFocusLoss)return j(),()=>{M()}},[i.pauseOnFocusLoss]);function j(){document.hasFocus()||B(),window.addEventListener("focus",Y),window.addEventListener("blur",B)}function M(){window.removeEventListener("focus",Y),window.removeEventListener("blur",B)}function D(X){if(i.draggable===!0||i.draggable===X.pointerType){k();let F=m.current;y.canCloseOnClick=!0,y.canDrag=!0,F.style.transition="none",i.draggableDirection==="x"?(y.start=X.clientX,y.removalDistance=F.offsetWidth*(i.draggablePercent/100)):(y.start=X.clientY,y.removalDistance=F.offsetHeight*(i.draggablePercent===80?i.draggablePercent*1.5:i.draggablePercent)/100)}}function L(X){let{top:F,bottom:le,left:V,right:ee}=m.current.getBoundingClientRect();X.nativeEvent.type!=="touchend"&&i.pauseOnHover&&X.clientX>=V&&X.clientX<=ee&&X.clientY>=F&&X.clientY<=le?B():Y()}function Y(){r(!0)}function B(){r(!1)}function k(){y.didMove=!1,document.addEventListener("pointermove",Q),document.addEventListener("pointerup",Z)}function w(){document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",Z)}function Q(X){let F=m.current;if(y.canDrag&&F){y.didMove=!0,s&&B(),i.draggableDirection==="x"?y.delta=X.clientX-y.start:y.delta=X.clientY-y.start,y.start!==X.clientX&&(y.canCloseOnClick=!1);let le=i.draggableDirection==="x"?`${y.delta}px, var(--y)`:`0, calc(${y.delta}px + var(--y))`;F.style.transform=`translate3d(${le},0)`,F.style.opacity=`${1-Math.abs(y.delta/y.removalDistance)}`}}function Z(){w();let X=m.current;if(y.canDrag&&y.didMove&&X){if(y.canDrag=!1,Math.abs(y.delta)>y.removalDistance){d(!0),i.closeToast(!0),i.collapseAll();return}X.style.transition="transform 0.2s, opacity 0.2s",X.style.removeProperty("transform"),X.style.removeProperty("opacity")}}let $={onPointerDown:D,onPointerUp:L};return v&&g&&($.onMouseEnter=B,i.stacked||($.onMouseLeave=Y)),x&&($.onClick=X=>{b&&b(X),y.canCloseOnClick&&p(!0)}),{playToast:Y,pauseToast:B,isRunning:s,preventExitTransition:c,toastRef:m,eventHandlers:$}}var iv=typeof window<"u"?E.useLayoutEffect:E.useEffect,Lu=({theme:i,type:s,isLoading:r,...c})=>Re.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:i==="colored"?"currentColor":`var(--toastify-icon-color-${s})`,...c});function uv(i){return Re.createElement(Lu,{...i},Re.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function sv(i){return Re.createElement(Lu,{...i},Re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function rv(i){return Re.createElement(Lu,{...i},Re.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function cv(i){return Re.createElement(Lu,{...i},Re.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function ov(){return Re.createElement("div",{className:"Toastify__spinner"})}var _c={info:sv,warning:uv,success:rv,error:cv,spinner:ov},fv=i=>i in _c;function dv({theme:i,type:s,isLoading:r,icon:c}){let d=null,m={theme:i,type:s};return c===!1||(da(c)?d=c({...m,isLoading:r}):E.isValidElement(c)?d=E.cloneElement(c,m):r?d=_c.spinner():fv(s)&&(d=_c[s](m))),d}var mv=i=>{let{isRunning:s,preventExitTransition:r,toastRef:c,eventHandlers:d,playToast:m}=nv(i),{closeButton:y,children:v,autoClose:g,onClick:p,type:b,hideProgressBar:x,closeToast:j,transition:M,position:D,className:L,style:Y,progressClassName:B,updateId:k,role:w,progress:Q,rtl:Z,toastId:$,deleteToast:X,isIn:F,isLoading:le,closeOnClick:V,theme:ee,ariaLabel:se}=i,Ue=fl("Toastify__toast",`Toastify__toast-theme--${ee}`,`Toastify__toast--${b}`,{"Toastify__toast--rtl":Z},{"Toastify__toast--close-on-click":V}),Ce=da(L)?L({rtl:Z,position:D,type:b,defaultClassName:Ue}):fl(Ue,L),Be=dv(i),R=!!Q||!g,K={closeToast:j,type:b,theme:ee},ae=null;return y===!1||(da(y)?ae=y(K):E.isValidElement(y)?ae=E.cloneElement(y,K):ae=Gg(K)),Re.createElement(M,{isIn:F,done:X,position:D,preventExitTransition:r,nodeRef:c,playToast:m},Re.createElement("div",{id:$,tabIndex:0,onClick:p,"data-in":F,className:Ce,...d,style:Y,ref:c,...F&&{role:w,"aria-label":se}},Be!=null&&Re.createElement("div",{className:fl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!le})},Be),Th(v,i,!s),ae,!i.customProgressBar&&Re.createElement(Xg,{...k&&!R?{key:`p-${k}`}:{},rtl:Z,theme:ee,delay:g,isRunning:s,isIn:F,closeToast:j,hide:x,type:b,className:B,controlledProgress:R,progress:Q||0})))},hv=(i,s=!1)=>({enter:`Toastify--animate Toastify__${i}-enter`,exit:`Toastify--animate Toastify__${i}-exit`,appendPosition:s}),yv=Yg(hv("bounce",!0)),pv={position:"top-right",transition:yv,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:i=>i.altKey&&i.code==="KeyT"};function gv(i){let s={...pv,...i},r=i.stacked,[c,d]=E.useState(!0),m=E.useRef(null),{getToastToRender:y,isToastActive:v,count:g}=lv(s),{className:p,style:b,rtl:x,containerId:j,hotKeys:M}=s;function D(Y){let B=fl("Toastify__toast-container",`Toastify__toast-container--${Y}`,{"Toastify__toast-container--rtl":x});return da(p)?p({position:Y,rtl:x,defaultClassName:B}):fl(B,bc(p))}function L(){r&&(d(!0),ie.play())}return iv(()=>{var Y;if(r){let B=m.current.querySelectorAll('[data-in="true"]'),k=12,w=(Y=s.position)==null?void 0:Y.includes("top"),Q=0,Z=0;Array.from(B).reverse().forEach(($,X)=>{let F=$;F.classList.add("Toastify__toast--stacked"),X>0&&(F.dataset.collapsed=`${c}`),F.dataset.pos||(F.dataset.pos=w?"top":"bot");let le=Q*(c?.2:1)+(c?0:k*X);F.style.setProperty("--y",`${w?le:le*-1}px`),F.style.setProperty("--g",`${k}`),F.style.setProperty("--s",`${1-(c?Z:0)}`),Q+=F.offsetHeight,Z+=.025})}},[c,g,r]),E.useEffect(()=>{function Y(B){var k;let w=m.current;M(B)&&((k=w.querySelector('[tabIndex="0"]'))==null||k.focus(),d(!1),ie.pause()),B.key==="Escape"&&(document.activeElement===w||w!=null&&w.contains(document.activeElement))&&(d(!0),ie.play())}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[M]),Re.createElement("section",{ref:m,className:"Toastify",id:j,onMouseEnter:()=>{r&&(d(!1),ie.pause())},onMouseLeave:L,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":s["aria-label"]},y((Y,B)=>{let k=B.length?{...b}:{...b,pointerEvents:"none"};return Re.createElement("div",{tabIndex:-1,className:D(Y),"data-stacked":r,style:k,key:`c-${Y}`},B.map(({content:w,props:Q})=>Re.createElement(mv,{...Q,stacked:r,collapseAll:L,isIn:v(Q.toastId,Q.containerId),key:`t-${Q.key}`},w)))}))}const zh=E.createContext(void 0),vv=(i,s)=>`${i.name.split(" ")[0].toLowerCase()}_${s}`,xv=({children:i})=>{const[s,r]=E.useState([]),[c,d]=E.useState([]),[m,y]=E.useState(0),[v,g]=E.useState(!1),[p,b]=E.useState(null),[x,j]=E.useState(null),{isLogged:M,user:D,token:L}=Dt(),{table:Y}=li();E.useEffect(()=>(at.onMessage(V=>{r(ee=>[...ee,V]),V.type==="join"&&V.username?(d(ee=>Array.from(new Set([...ee,V.username]))),y(ee=>ee+1)):V.type==="leave"&&V.username&&(d(ee=>ee.filter(se=>se!==V.username)),y(ee=>Math.max(0,ee-1)))}),at.onError(()=>{b("Error de conexión en el WebSocket."),g(!1)}),at.onClose(()=>{g(!1)}),at.onMention(V=>{console.log("mencion",V),V===x&&ie.info("has sido mencionado en el chat",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"dark",toastId:`mention-${Date.now()}`})}),()=>{at.disconnect()}),[]);const B=E.useCallback(async()=>{try{const V=await at.getConnectedUsers(L),ee=await at.getOnlineCount(L);d(V),y(ee)}catch(V){console.error("Error refreshing users",V)}},[L]),k=E.useCallback(()=>{try{b(null),console.log(D);const V=at.connect(L);if(!V){b("Error de conexión en el WebSocket."),console.log("connect fail",V),g(!1);return}const ee=vv(D,Y);j(ee),console.log("connect",V),g(V),B(),setTimeout(()=>{at.join(ee)},500)}catch(V){b(V.message||"Error al conectar"),g(!1)}},[B,D]),w=E.useCallback(()=>{x&&v&&at.leave(x),console.log("Username",x),console.log("IsConnected",v),at.disconnect(),g(!1),r([]),j(null)},[x]),Q=E.useCallback(V=>{D&&at.sendMessage(x,V)},[D,x]),Z=E.useCallback(async V=>{D&&at.sendAiMessage(x,V)},[D,x]),$=E.useCallback(V=>{at.join(V),j(V)},[]),X=E.useCallback(async()=>await at.getConnectedUsers(L),[L]),F=E.useCallback(V=>{at.mention(V)},[]);E.useEffect(()=>{!M&&v&&w()},[M]);const le=E.useMemo(()=>({username:x,messages:s,onlineUsers:c,onlineCount:m,isConnected:v,error:p,connectChat:k,disconnectChat:w,sendMessage:Q,sendAiMessage:Z,mentionUser:F,joinRoom:$,refreshUsers:B,getUsers:X}),[x,s,c,F,m,v,p,k,w,Q,Z,$,B,X]);return f.jsx(zh.Provider,{value:le,children:i})},bv=()=>{const i=E.useContext(zh);if(i===void 0)throw new Error("useChat debe ser usado dentro de un ChatProvider");return i},eh=["text-red-600","text-green-600","text-blue-600","text-yellow-600","text-purple-600","text-pink-600","text-orange-600","text-cyan-600","text-sky-600","text-lime-600","text-emerald-600","text-teal-600","text-indigo-600"],Sv=i=>{const s=Math.abs(i.split("").reduce((r,c)=>r+c.charCodeAt(0),0))%eh.length;return eh[s]},Ev=({onBrowseMenu:i})=>{const{username:s,messages:r,sendMessage:c,sendAiMessage:d,connectChat:m,onlineCount:y,isConnected:v,getUsers:g,mentionUser:p}=bv(),{user:b}=Dt(),[x,j]=E.useState(""),[M,D]=E.useState(!1),[L,Y]=E.useState(""),[B,k]=E.useState([]),w=E.useRef(null),Q=E.useRef(null);E.useEffect(()=>{v||m()},[]),E.useEffect(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight)},[r]),E.useEffect(()=>{const V=r[r.length-1];V&&V.type==="mentioned"&&V.username===s&&ie.info("has sido mencionado en el chat",{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"dark",toastId:`mention-${Date.now()}`})},[r,s]),E.useEffect(()=>{M&&g().then(V=>{V.push("IAKlein"),V=V.filter(ee=>ee!==s),k(V)})},[M,g]);const Z=E.useMemo(()=>r.filter(V=>!["mentioned","ping","pong"].includes(V.type)).map((V,ee)=>{const se=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});let Ue=V.username||"Unknown",Ce=V.message||"",Be=!1,R=!1;switch(V.type){case"join":Ue="system",Ce=`${V.username} se ha conectado al chat`,Be=!0;break;case"leave":Ue="system",Ce=`${V.username} se ha desconectado del chat`,Be=!0;break;case"ai_message":Ue="ai",R=!0;break}return{id:ee,timestamp:se,sender:Ue,text:Ce,isSystem:Be,isAi:R}}),[r]),$=V=>{const ee=V.target.value;j(ee);const se=ee.split(" ").pop();se&&se.startsWith("@")?(Y(se.slice(1)),D(!0)):D(!1)},X=V=>{var se;const ee=x.split(" ");ee.pop(),ee.push(`@${V} `),j(ee.join(" ")),D(!1),(se=Q.current)==null||se.focus()},F=V=>{if(V.preventDefault(),!x.trim())return;c(x.trim());const ee=x.match(/@(\w+)/g);console.log("menciones",ee),ee&&ee.forEach(se=>{const Ue=se.substring(1);Ue==="IAKlein"?(d(x.trim()),console.log("enviar",x.trim())):Ue!==s&&(p(Ue),console.log("mencion",Ue))}),j(""),D(!1)},le=B.filter(V=>V.toLowerCase().includes(L.toLowerCase()));return f.jsxs("section",{className:"absolute inset-0 bg-terminal-bg flex flex-col z-0",children:[f.jsx("div",{className:"absolute inset-0 scanlines z-10 opacity-30 pointer-events-none"}),f.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-[#1a1a1a] border-b border-[#333] z-20 shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:`size-2 rounded-full ${v?"bg-green-500":"bg-red-500"} animate-pulse-fast`}),f.jsxs("h3",{className:"text-terminal-text tracking-widest text-xs uppercase font-bold",children:[v?"ONLINE":"OFFLINE"," (",y,")"]})]}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("button",{onClick:i,className:"text-terminal-text text-sm cursor-pointer hover:text-white transition-colors flex items-center gap-1 font-bold",children:[f.jsx("span",{className:"material-symbols-outlined text-base",children:"storefront"}),f.jsx("span",{children:"Browse Menu"})]}),f.jsx("span",{className:"text-[#666] text-xs font-mono",children:"v2.4.0"})]})]}),f.jsxs("div",{ref:w,className:"flex-1 overflow-y-auto p-4 space-y-3 font-mono text-sm z-0 relative pb-18",children:[Z.map(V=>f.jsx("div",{className:"flex gap-3 group",children:f.jsxs("div",{className:"flex-1 break-words",children:[f.jsxs("span",{className:"text-primary font-bold text-xs mr-2",children:["[",V.timestamp,"]"]}),V.isSystem?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-white font-bold mr-1",children:"<System>"}),f.jsx("span",{className:"text-gray-300",children:V.text})]}):V.isAi?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-terminal-text font-bold mr-1",children:"<@IAKlein>"}),f.jsx("span",{className:"text-white",children:V.text})]}):f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:`${Sv(V.sender)} font-bold mr-1`,children:["<",V.sender,">"]}),f.jsx("span",{className:"text-white",children:V.text.split(" ").map((ee,se)=>ee.startsWith("@")?f.jsxs("span",{className:"text-yellow-400 font-bold",children:[ee," "]},se):ee+" ")})]})]})},V.id)),!v&&r.length>0&&f.jsx("div",{className:"text-red-500 font-bold text-xs mt-2",children:"> CONNECTION LOST. RECONNECTING..."})]}),M&&le.length>0&&f.jsxs("div",{className:"absolute bottom-16 left-4 bg-[#0d0d0d] border border-[#333] w-48 max-h-40 overflow-y-auto z-30 shadow-lg",children:[f.jsx("div",{className:"text-xs text-gray-500 px-2 py-1 border-b border-[#333]",children:"SUGGESTIONS"}),le.map(V=>f.jsxs("button",{type:"button",onClick:()=>X(V),className:"w-full text-left px-3 py-2 text-terminal-text hover:bg-[#222] hover:text-white text-sm font-mono transition-colors",children:["@",V]},V))]}),f.jsx("form",{className:"absolute bottom-0 left-0 right-0 p-2 bg-[#1a1a1a] z-20 shrink-0 pb-18",onSubmit:F,children:f.jsxs("div",{className:"flex w-full items-center rounded bg-black border border-[#333] px-3 py-2",children:[f.jsx("span",{className:"text-primary font-bold mr-2",children:">"}),f.jsx("input",{ref:Q,value:x,onChange:$,className:"flex-1 bg-transparent border-none text-white font-mono text-sm focus:ring-0 focus:outline-none placeholder:text-gray-600 p-0",placeholder:v?"Type command... use @ to mention":"Connecting...",autoFocus:!0,disabled:!v}),f.jsx("button",{type:"submit",className:`text-terminal-text hover:text-white transition-colors ${v?"":"opacity-50 cursor-not-allowed"}`,disabled:!v,children:f.jsx("span",{className:"material-symbols-outlined text-lg",children:"send"})})]})})]})},Mh=E.createContext(void 0),Cc=()=>{const i=E.useContext(Mh);if(!i)throw new Error("useConfirm debe ser usado dentro de un ConfirmProvider");return i},_v=({children:i})=>{var g,p;const[s,r]=E.useState(!1),[c,d]=E.useState({message:"",icon:""}),m=E.useRef(()=>{}),y=E.useCallback((b,x,j)=>(d({message:b,icon:x,options:j}),r(!0),new Promise(M=>{m.current=M})),[]),v=b=>{r(!1),m.current(b)};return f.jsxs(Mh.Provider,{value:{confirm:y},children:[i,s&&f.jsxs("div",{"aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center px-4",role:"dialog",children:[f.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm transition-opacity",onClick:()=>v(!1)}),f.jsxs("div",{className:"relative bg-[#201512] rounded-2xl border border-white/10 shadow-2xl w-full max-w-xs transform transition-all p-6 overflow-hidden animate-in fade-in zoom-in duration-200",children:[f.jsx("div",{className:"flex justify-center mb-4",children:f.jsx("div",{className:"bg-[#a33f1e]/20 p-3 rounded-full",children:f.jsx("span",{className:"material-symbols-outlined text-[#a33f1e] text-3xl select-none",children:c.icon})})}),f.jsx("p",{className:"text-white text-lg font-bold text-center mb-6 font-display leading-tight",children:c.message}),f.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[f.jsx("button",{onClick:()=>v(!1),className:"flex items-center justify-center px-4 py-3 rounded-xl border border-white/20 text-white font-semibold text-sm hover:bg-white/5 transition-colors active:scale-95",children:((g=c.options)==null?void 0:g.cancelText)||"No"}),f.jsx("button",{onClick:()=>v(!0),className:"flex items-center justify-center px-4 py-3 rounded-xl bg-[#a33f1e] text-white font-semibold text-sm shadow-lg shadow-red-900/20 hover:bg-[#8f3322] transition-colors active:scale-95",children:((p=c.options)==null?void 0:p.confirmText)||"Sí"})]})]})]})]})};/**
- * react-router v7.12.0
- *
- * Copyright (c) Remix Software Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE.md file in the root directory of this source tree.
- *
- * @license MIT
- */var th="popstate";function Tv(i={}){function s(c,d){let{pathname:m,search:y,hash:v}=c.location;return Tc("",{pathname:m,search:y,hash:v},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:ti(d)}return jv(s,r,null,i)}function Le(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function kt(i,s){if(!i){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Nv(){return Math.random().toString(36).substring(2,10)}function ah(i,s){return{usr:i.state,key:i.key,idx:s}}function Tc(i,s,r=null,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof s=="string"?en(s):s,state:r,key:s&&s.key||c||Nv()}}function ti({pathname:i="/",search:s="",hash:r=""}){return s&&s!=="?"&&(i+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function en(i){let s={};if(i){let r=i.indexOf("#");r>=0&&(s.hash=i.substring(r),i=i.substring(0,r));let c=i.indexOf("?");c>=0&&(s.search=i.substring(c),i=i.substring(0,c)),i&&(s.pathname=i)}return s}function jv(i,s,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,v="POP",g=null,p=b();p==null&&(p=0,y.replaceState({...y.state,idx:p},""));function b(){return(y.state||{idx:null}).idx}function x(){v="POP";let Y=b(),B=Y==null?null:Y-p;p=Y,g&&g({action:v,location:L.location,delta:B})}function j(Y,B){v="PUSH";let k=Tc(L.location,Y,B);p=b()+1;let w=ah(k,p),Q=L.createHref(k);try{y.pushState(w,"",Q)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;d.location.assign(Q)}m&&g&&g({action:v,location:L.location,delta:1})}function M(Y,B){v="REPLACE";let k=Tc(L.location,Y,B);p=b();let w=ah(k,p),Q=L.createHref(k);y.replaceState(w,"",Q),m&&g&&g({action:v,location:L.location,delta:0})}function D(Y){return Av(Y)}let L={get action(){return v},get location(){return i(d,y)},listen(Y){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(th,x),g=Y,()=>{d.removeEventListener(th,x),g=null}},createHref(Y){return s(d,Y)},createURL:D,encodeLocation(Y){let B=D(Y);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:j,replace:M,go(Y){return y.go(Y)}};return L}function Av(i,s=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Le(r,"No window.location.(origin|href) available to create URL");let c=typeof i=="string"?i:ti(i);return c=c.replace(/ $/,"%20"),!s&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Oh(i,s,r="/"){return Cv(i,s,r,!1)}function Cv(i,s,r,c){let d=typeof s=="string"?en(s):s,m=ma(d.pathname||"/",r);if(m==null)return null;let y=Rh(i);wv(y);let v=null;for(let g=0;v==null&&g<y.length;++g){let p=qv(m);v=Hv(y[g],p,c)}return v}function Rh(i,s=[],r=[],c="",d=!1){let m=(y,v,g=d,p)=>{let b={relativePath:p===void 0?y.path||"":p,caseSensitive:y.caseSensitive===!0,childrenIndex:v,route:y};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(c)&&g)return;Le(b.relativePath.startsWith(c),`Absolute route path "${b.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(c.length)}let x=ca([c,b.relativePath]),j=r.concat(b);y.children&&y.children.length>0&&(Le(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Rh(y.children,s,j,x,g)),!(y.path==null&&!y.index)&&s.push({path:x,score:Bv(x,y.index),routesMeta:j})};return i.forEach((y,v)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))m(y,v);else for(let p of Dh(y.path))m(y,v,!0,p)}),s}function Dh(i){let s=i.split("/");if(s.length===0)return[];let[r,...c]=s,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=Dh(c.join("/")),v=[];return v.push(...y.map(g=>g===""?m:[m,g].join("/"))),d&&v.push(...y),v.map(g=>i.startsWith("/")&&g===""?"/":g)}function wv(i){i.sort((s,r)=>s.score!==r.score?r.score-s.score:Lv(s.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var zv=/^:[\w-]+$/,Mv=3,Ov=2,Rv=1,Dv=10,Uv=-2,lh=i=>i==="*";function Bv(i,s){let r=i.split("/"),c=r.length;return r.some(lh)&&(c+=Uv),s&&(c+=Ov),r.filter(d=>!lh(d)).reduce((d,m)=>d+(zv.test(m)?Mv:m===""?Rv:Dv),c)}function Lv(i,s){return i.length===s.length&&i.slice(0,-1).every((c,d)=>c===s[d])?i[i.length-1]-s[s.length-1]:0}function Hv(i,s,r=!1){let{routesMeta:c}=i,d={},m="/",y=[];for(let v=0;v<c.length;++v){let g=c[v],p=v===c.length-1,b=m==="/"?s:s.slice(m.length)||"/",x=Ru({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},b),j=g.route;if(!x&&p&&r&&!c[c.length-1].route.index&&(x=Ru({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!x)return null;Object.assign(d,x.params),y.push({params:d,pathname:ca([m,x.pathname]),pathnameBase:Qv(ca([m,x.pathnameBase])),route:j}),x.pathnameBase!=="/"&&(m=ca([m,x.pathnameBase]))}return y}function Ru(i,s){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,c]=kv(i.path,i.caseSensitive,i.end),d=s.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),v=d.slice(1);return{params:c.reduce((p,{paramName:b,isOptional:x},j)=>{if(b==="*"){let D=v[j]||"";y=m.slice(0,m.length-D.length).replace(/(.)\/+$/,"$1")}const M=v[j];return x&&!M?p[b]=void 0:p[b]=(M||"").replace(/%2F/g,"/"),p},{}),pathname:m,pathnameBase:y,pattern:i}}function kv(i,s=!1,r=!0){kt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let c=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,v,g)=>(c.push({paramName:v,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(c.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),c]}function qv(i){try{return i.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return kt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),i}}function ma(i,s){if(s==="/")return i;if(!i.toLowerCase().startsWith(s.toLowerCase()))return null;let r=s.endsWith("/")?s.length-1:s.length,c=i.charAt(r);return c&&c!=="/"?null:i.slice(r)||"/"}var Uh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yv=i=>Uh.test(i);function Gv(i,s="/"){let{pathname:r,search:c="",hash:d=""}=typeof i=="string"?en(i):i,m;if(r)if(Yv(r))m=r;else{if(r.includes("//")){let y=r;r=r.replace(/\/\/+/g,"/"),kt(!1,`Pathnames cannot have embedded double slashes - normalizing ${y} -> ${r}`)}r.startsWith("/")?m=nh(r.substring(1),"/"):m=nh(r,s)}else m=s;return{pathname:m,search:Vv(c),hash:Zv(d)}}function nh(i,s){let r=s.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function fc(i,s,r,c){return`Cannot include a '${i}' character in a manually specified \`to.${s}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Xv(i){return i.filter((s,r)=>r===0||s.route.path&&s.route.path.length>0)}function Bh(i){let s=Xv(i);return s.map((r,c)=>c===s.length-1?r.pathname:r.pathnameBase)}function Lh(i,s,r,c=!1){let d;typeof i=="string"?d=en(i):(d={...i},Le(!d.pathname||!d.pathname.includes("?"),fc("?","pathname","search",d)),Le(!d.pathname||!d.pathname.includes("#"),fc("#","pathname","hash",d)),Le(!d.search||!d.search.includes("#"),fc("#","search","hash",d)));let m=i===""||d.pathname==="",y=m?"/":d.pathname,v;if(y==null)v=r;else{let x=s.length-1;if(!c&&y.startsWith("..")){let j=y.split("/");for(;j[0]==="..";)j.shift(),x-=1;d.pathname=j.join("/")}v=x>=0?s[x]:"/"}let g=Gv(d,v),p=y&&y!=="/"&&y.endsWith("/"),b=(m||y===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||b)&&(g.pathname+="/"),g}var ca=i=>i.join("/").replace(/\/\/+/g,"/"),Qv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Vv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Zv=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Kv=class{constructor(i,s,r,c=!1){this.status=i,this.statusText=s||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Jv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function $v(i){return i.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Hh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kh(i,s){let r=i;if(typeof r!="string"||!Uh.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(Hh)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),v=ma(y.pathname,s);y.origin===m.origin&&v!=null?r=v+y.search+y.hash:d=!0}catch{kt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qh=["POST","PUT","PATCH","DELETE"];new Set(qh);var Fv=["GET",...qh];new Set(Fv);var tn=E.createContext(null);tn.displayName="DataRouter";var Hu=E.createContext(null);Hu.displayName="DataRouterState";var Wv=E.createContext(!1),Yh=E.createContext({isTransitioning:!1});Yh.displayName="ViewTransition";var Iv=E.createContext(new Map);Iv.displayName="Fetchers";var Pv=E.createContext(null);Pv.displayName="Await";var Ut=E.createContext(null);Ut.displayName="Navigation";var ui=E.createContext(null);ui.displayName="Location";var ya=E.createContext({outlet:null,matches:[],isDataRoute:!1});ya.displayName="Route";var wc=E.createContext(null);wc.displayName="RouteError";var Gh="REACT_ROUTER_ERROR",ex="REDIRECT",tx="ROUTE_ERROR_RESPONSE";function ax(i){if(i.startsWith(`${Gh}:${ex}:{`))try{let s=JSON.parse(i.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function lx(i){if(i.startsWith(`${Gh}:${tx}:{`))try{let s=JSON.parse(i.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Kv(s.status,s.statusText,s.data)}catch{}}function nx(i,{relative:s}={}){Le(si(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=E.useContext(Ut),{hash:d,pathname:m,search:y}=ri(i,{relative:s}),v=m;return r!=="/"&&(v=m==="/"?r:ca([r,m])),c.createHref({pathname:v,search:y,hash:d})}function si(){return E.useContext(ui)!=null}function ml(){return Le(si(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ui).location}var Xh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qh(i){E.useContext(Ut).static||E.useLayoutEffect(i)}function an(){let{isDataRoute:i}=E.useContext(ya);return i?gx():ix()}function ix(){Le(si(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(tn),{basename:s,navigator:r}=E.useContext(Ut),{matches:c}=E.useContext(ya),{pathname:d}=ml(),m=JSON.stringify(Bh(c)),y=E.useRef(!1);return Qh(()=>{y.current=!0}),E.useCallback((g,p={})=>{if(kt(y.current,Xh),!y.current)return;if(typeof g=="number"){r.go(g);return}let b=Lh(g,JSON.parse(m),d,p.relative==="path");i==null&&s!=="/"&&(b.pathname=b.pathname==="/"?s:ca([s,b.pathname])),(p.replace?r.replace:r.push)(b,p.state,p)},[s,r,m,d,i])}E.createContext(null);function ri(i,{relative:s}={}){let{matches:r}=E.useContext(ya),{pathname:c}=ml(),d=JSON.stringify(Bh(r));return E.useMemo(()=>Lh(i,JSON.parse(d),c,s==="path"),[i,d,c,s])}function ux(i,s){return Vh(i,s)}function Vh(i,s,r,c,d){var k;Le(si(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=E.useContext(Ut),{matches:y}=E.useContext(ya),v=y[y.length-1],g=v?v.params:{},p=v?v.pathname:"/",b=v?v.pathnameBase:"/",x=v&&v.route;{let w=x&&x.path||"";Kh(p,!x||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
- Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let j=ml(),M;if(s){let w=typeof s=="string"?en(s):s;Le(b==="/"||((k=w.pathname)==null?void 0:k.startsWith(b)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${w.pathname}" was given in the \`location\` prop.`),M=w}else M=j;let D=M.pathname||"/",L=D;if(b!=="/"){let w=b.replace(/^\//,"").split("/");L="/"+D.replace(/^\//,"").split("/").slice(w.length).join("/")}let Y=Oh(i,{pathname:L});kt(x||Y!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),kt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=fx(Y&&Y.map(w=>Object.assign({},w,{params:Object.assign({},g,w.params),pathname:ca([b,m.encodeLocation?m.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?b:ca([b,m.encodeLocation?m.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),y,r,c,d);return s&&B?E.createElement(ui.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},B):B}function sx(){let i=px(),s=Jv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:m},"ErrorBoundary")," or"," ",E.createElement("code",{style:m},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},s),r?E.createElement("pre",{style:d},r):null,y)}var rx=E.createElement(sx,null),Zh=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,s){return s.location!==i.location||s.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:s.error,location:s.location,revalidation:i.revalidation||s.revalidation}}componentDidCatch(i,s){this.props.onError?this.props.onError(i,s):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=lx(i.digest);r&&(i=r)}let s=i!==void 0?E.createElement(ya.Provider,{value:this.props.routeContext},E.createElement(wc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(cx,{error:i},s):s}};Zh.contextType=Wv;var dc=new WeakMap;function cx({children:i,error:s}){let{basename:r}=E.useContext(Ut);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let c=ax(s.digest);if(c){let d=dc.get(s);if(d)throw d;let m=kh(c.location,r);if(Hh&&!dc.get(s))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw dc.set(s,y),y}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function ox({routeContext:i,match:s,children:r}){let c=E.useContext(tn);return c&&c.static&&c.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=s.route.id),E.createElement(ya.Provider,{value:i},r)}function fx(i,s=[],r=null,c=null,d=null){if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(s.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,y=r==null?void 0:r.errors;if(y!=null){let b=m.findIndex(x=>x.route.id&&(y==null?void 0:y[x.route.id])!==void 0);Le(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,b+1))}let v=!1,g=-1;if(r)for(let b=0;b<m.length;b++){let x=m[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=b),x.route.id){let{loaderData:j,errors:M}=r,D=x.route.loader&&!j.hasOwnProperty(x.route.id)&&(!M||M[x.route.id]===void 0);if(x.route.lazy||D){v=!0,g>=0?m=m.slice(0,g+1):m=[m[0]];break}}}let p=r&&c?(b,x)=>{var j,M;c(b,{location:r.location,params:((M=(j=r.matches)==null?void 0:j[0])==null?void 0:M.params)??{},unstable_pattern:$v(r.matches),errorInfo:x})}:void 0;return m.reduceRight((b,x,j)=>{let M,D=!1,L=null,Y=null;r&&(M=y&&x.route.id?y[x.route.id]:void 0,L=x.route.errorElement||rx,v&&(g<0&&j===0?(Kh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,Y=null):g===j&&(D=!0,Y=x.route.hydrateFallbackElement||null)));let B=s.concat(m.slice(0,j+1)),k=()=>{let w;return M?w=L:D?w=Y:x.route.Component?w=E.createElement(x.route.Component,null):x.route.element?w=x.route.element:w=b,E.createElement(ox,{match:x,routeContext:{outlet:b,matches:B,isDataRoute:r!=null},children:w})};return r&&(x.route.ErrorBoundary||x.route.errorElement||j===0)?E.createElement(Zh,{location:r.location,revalidation:r.revalidation,component:L,error:M,children:k(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:p}):k()},null)}function zc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dx(i){let s=E.useContext(tn);return Le(s,zc(i)),s}function mx(i){let s=E.useContext(Hu);return Le(s,zc(i)),s}function hx(i){let s=E.useContext(ya);return Le(s,zc(i)),s}function Mc(i){let s=hx(i),r=s.matches[s.matches.length-1];return Le(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function yx(){return Mc("useRouteId")}function px(){var c;let i=E.useContext(wc),s=mx("useRouteError"),r=Mc("useRouteError");return i!==void 0?i:(c=s.errors)==null?void 0:c[r]}function gx(){let{router:i}=dx("useNavigate"),s=Mc("useNavigate"),r=E.useRef(!1);return Qh(()=>{r.current=!0}),E.useCallback(async(d,m={})=>{kt(r.current,Xh),r.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:s,...m}))},[i,s])}var ih={};function Kh(i,s,r){!s&&!ih[i]&&(ih[i]=!0,kt(!1,r))}E.memo(vx);function vx({routes:i,future:s,state:r,onError:c}){return Vh(i,void 0,r,c,s)}function Ya(i){Le(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function xx({basename:i="/",children:s=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){Le(!si(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=i.replace(/^\/*/,"/"),g=E.useMemo(()=>({basename:v,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[v,d,m,y]);typeof r=="string"&&(r=en(r));let{pathname:p="/",search:b="",hash:x="",state:j=null,key:M="default"}=r,D=E.useMemo(()=>{let L=ma(p,v);return L==null?null:{location:{pathname:L,search:b,hash:x,state:j,key:M},navigationType:c}},[v,p,b,x,j,M,c]);return kt(D!=null,`<Router basename="${v}"> is not able to match the URL "${p}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:E.createElement(Ut.Provider,{value:g},E.createElement(ui.Provider,{children:s,value:D}))}function bx({children:i,location:s}){return ux(Nc(i),s)}function Nc(i,s=[]){let r=[];return E.Children.forEach(i,(c,d)=>{if(!E.isValidElement(c))return;let m=[...s,d];if(c.type===E.Fragment){r.push.apply(r,Nc(c.props.children,m));return}Le(c.type===Ya,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=Nc(c.props.children,m)),r.push(y)}),r}var wu="get",zu="application/x-www-form-urlencoded";function ku(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Sx(i){return ku(i)&&i.tagName.toLowerCase()==="button"}function Ex(i){return ku(i)&&i.tagName.toLowerCase()==="form"}function _x(i){return ku(i)&&i.tagName.toLowerCase()==="input"}function Tx(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Nx(i,s){return i.button===0&&(!s||s==="_self")&&!Tx(i)}var Cu=null;function jx(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var Ax=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mc(i){return i!=null&&!Ax.has(i)?(kt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):i}function Cx(i,s){let r,c,d,m,y;if(Ex(i)){let v=i.getAttribute("action");c=v?ma(v,s):null,r=i.getAttribute("method")||wu,d=mc(i.getAttribute("enctype"))||zu,m=new FormData(i)}else if(Sx(i)||_x(i)&&(i.type==="submit"||i.type==="image")){let v=i.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||v.getAttribute("action");if(c=g?ma(g,s):null,r=i.getAttribute("formmethod")||v.getAttribute("method")||wu,d=mc(i.getAttribute("formenctype"))||mc(v.getAttribute("enctype"))||zu,m=new FormData(v,i),!jx()){let{name:p,type:b,value:x}=i;if(b==="image"){let j=p?`${p}.`:"";m.append(`${j}x`,"0"),m.append(`${j}y`,"0")}else p&&m.append(p,x)}}else{if(ku(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=wu,c=null,d=zu,y=i}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Oc(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function wx(i,s,r,c){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:s&&ma(d.pathname,s)==="/"?d.pathname=`${s.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function zx(i,s){if(i.id in s)return s[i.id];try{let r=await import(i.module);return s[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mx(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Ox(i,s,r){let c=await Promise.all(i.map(async d=>{let m=s.routes[d.route.id];if(m){let y=await zx(m,r);return y.links?y.links():[]}return[]}));return Bx(c.flat(1).filter(Mx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function uh(i,s,r,c,d,m){let y=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,v=(g,p)=>{var b;return r[p].pathname!==g.pathname||((b=r[p].route.path)==null?void 0:b.endsWith("*"))&&r[p].params["*"]!==g.params["*"]};return m==="assets"?s.filter((g,p)=>y(g,p)||v(g,p)):m==="data"?s.filter((g,p)=>{var x;let b=c.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(y(g,p)||v(g,p))return!0;if(g.route.shouldRevalidate){let j=g.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((x=r[0])==null?void 0:x.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof j=="boolean")return j}return!0}):[]}function Rx(i,s,{includeHydrateFallback:r}={}){return Dx(i.map(c=>{let d=s.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function Dx(i){return[...new Set(i)]}function Ux(i){let s={},r=Object.keys(i).sort();for(let c of r)s[c]=i[c];return s}function Bx(i,s){let r=new Set;return new Set(s),i.reduce((c,d)=>{let m=JSON.stringify(Ux(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function Jh(){let i=E.useContext(tn);return Oc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Lx(){let i=E.useContext(Hu);return Oc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Rc=E.createContext(void 0);Rc.displayName="FrameworkContext";function $h(){let i=E.useContext(Rc);return Oc(i,"You must render this element inside a <HydratedRouter> element"),i}function Hx(i,s){let r=E.useContext(Rc),[c,d]=E.useState(!1),[m,y]=E.useState(!1),{onFocus:v,onBlur:g,onMouseEnter:p,onMouseLeave:b,onTouchStart:x}=s,j=E.useRef(null);E.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let L=B=>{B.forEach(k=>{y(k.isIntersecting)})},Y=new IntersectionObserver(L,{threshold:.5});return j.current&&Y.observe(j.current),()=>{Y.disconnect()}}},[i]),E.useEffect(()=>{if(c){let L=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(L)}}},[c]);let M=()=>{d(!0)},D=()=>{d(!1),y(!1)};return r?i!=="intent"?[m,j,{}]:[m,j,{onFocus:Pn(v,M),onBlur:Pn(g,D),onMouseEnter:Pn(p,M),onMouseLeave:Pn(b,D),onTouchStart:Pn(x,M)}]:[!1,j,{}]}function Pn(i,s){return r=>{i&&i(r),r.defaultPrevented||s(r)}}function kx({page:i,...s}){let{router:r}=Jh(),c=E.useMemo(()=>Oh(r.routes,i,r.basename),[r.routes,i,r.basename]);return c?E.createElement(Yx,{page:i,matches:c,...s}):null}function qx(i){let{manifest:s,routeModules:r}=$h(),[c,d]=E.useState([]);return E.useEffect(()=>{let m=!1;return Ox(i,s,r).then(y=>{m||d(y)}),()=>{m=!0}},[i,s,r]),c}function Yx({page:i,matches:s,...r}){let c=ml(),{future:d,manifest:m,routeModules:y}=$h(),{basename:v}=Jh(),{loaderData:g,matches:p}=Lx(),b=E.useMemo(()=>uh(i,s,p,m,c,"data"),[i,s,p,m,c]),x=E.useMemo(()=>uh(i,s,p,m,c,"assets"),[i,s,p,m,c]),j=E.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let L=new Set,Y=!1;if(s.forEach(k=>{var Q;let w=m.routes[k.route.id];!w||!w.hasLoader||(!b.some(Z=>Z.route.id===k.route.id)&&k.route.id in g&&((Q=y[k.route.id])!=null&&Q.shouldRevalidate)||w.hasClientLoader?Y=!0:L.add(k.route.id))}),L.size===0)return[];let B=wx(i,v,d.unstable_trailingSlashAwareDataRequests,"data");return Y&&L.size>0&&B.searchParams.set("_routes",s.filter(k=>L.has(k.route.id)).map(k=>k.route.id).join(",")),[B.pathname+B.search]},[v,d.unstable_trailingSlashAwareDataRequests,g,c,m,b,s,i,y]),M=E.useMemo(()=>Rx(x,m),[x,m]),D=qx(x);return E.createElement(E.Fragment,null,j.map(L=>E.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...r})),M.map(L=>E.createElement("link",{key:L,rel:"modulepreload",href:L,...r})),D.map(({key:L,link:Y})=>E.createElement("link",{key:L,nonce:r.nonce,...Y})))}function Gx(...i){return s=>{i.forEach(r=>{typeof r=="function"?r(s):r!=null&&(r.current=s)})}}var Xx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xx&&(window.__reactRouterVersion="7.12.0")}catch{}function Qx({basename:i,children:s,unstable_useTransitions:r,window:c}){let d=E.useRef();d.current==null&&(d.current=Tv({window:c,v5Compat:!0}));let m=d.current,[y,v]=E.useState({action:m.action,location:m.location}),g=E.useCallback(p=>{r===!1?v(p):E.startTransition(()=>v(p))},[r]);return E.useLayoutEffect(()=>m.listen(g),[m,g]),E.createElement(xx,{basename:i,children:s,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var Fh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oa=E.forwardRef(function({onClick:s,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,state:v,target:g,to:p,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:j,...M},D){let{basename:L,unstable_useTransitions:Y}=E.useContext(Ut),B=typeof p=="string"&&Fh.test(p),k=kh(p,L);p=k.to;let w=nx(p,{relative:d}),[Q,Z,$]=Hx(c,M),X=Jx(p,{replace:y,state:v,target:g,preventScrollReset:b,relative:d,viewTransition:x,unstable_defaultShouldRevalidate:j,unstable_useTransitions:Y});function F(V){s&&s(V),V.defaultPrevented||X(V)}let le=E.createElement("a",{...M,...$,href:k.absoluteURL||w,onClick:k.isExternal||m?s:F,ref:Gx(D,Z),target:g,"data-discover":!B&&r==="render"?"true":void 0});return Q&&!B?E.createElement(E.Fragment,null,le,E.createElement(kx,{page:w})):le});oa.displayName="Link";var Vx=E.forwardRef(function({"aria-current":s="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:v,children:g,...p},b){let x=ri(y,{relative:p.relative}),j=ml(),M=E.useContext(Hu),{navigator:D,basename:L}=E.useContext(Ut),Y=M!=null&&Px(x)&&v===!0,B=D.encodeLocation?D.encodeLocation(x).pathname:x.pathname,k=j.pathname,w=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;r||(k=k.toLowerCase(),w=w?w.toLowerCase():null,B=B.toLowerCase()),w&&L&&(w=ma(w,L)||w);const Q=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let Z=k===B||!d&&k.startsWith(B)&&k.charAt(Q)==="/",$=w!=null&&(w===B||!d&&w.startsWith(B)&&w.charAt(B.length)==="/"),X={isActive:Z,isPending:$,isTransitioning:Y},F=Z?s:void 0,le;typeof c=="function"?le=c(X):le=[c,Z?"active":null,$?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let V=typeof m=="function"?m(X):m;return E.createElement(oa,{...p,"aria-current":F,className:le,ref:b,style:V,to:y,viewTransition:v},typeof g=="function"?g(X):g)});Vx.displayName="NavLink";var Zx=E.forwardRef(({discover:i="render",fetcherKey:s,navigate:r,reloadDocument:c,replace:d,state:m,method:y=wu,action:v,onSubmit:g,relative:p,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:j,...M},D)=>{let{unstable_useTransitions:L}=E.useContext(Ut),Y=Wx(),B=Ix(v,{relative:p}),k=y.toLowerCase()==="get"?"get":"post",w=typeof v=="string"&&Fh.test(v),Q=Z=>{if(g&&g(Z),Z.defaultPrevented)return;Z.preventDefault();let $=Z.nativeEvent.submitter,X=($==null?void 0:$.getAttribute("formmethod"))||y,F=()=>Y($||Z.currentTarget,{fetcherKey:s,method:X,navigate:r,replace:d,state:m,relative:p,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:j});L&&r!==!1?E.startTransition(()=>F()):F()};return E.createElement("form",{ref:D,method:k,action:B,onSubmit:c?g:Q,...M,"data-discover":!w&&i==="render"?"true":void 0})});Zx.displayName="Form";function Kx(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wh(i){let s=E.useContext(tn);return Le(s,Kx(i)),s}function Jx(i,{target:s,replace:r,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:v,unstable_useTransitions:g}={}){let p=an(),b=ml(),x=ri(i,{relative:m});return E.useCallback(j=>{if(Nx(j,s)){j.preventDefault();let M=r!==void 0?r:ti(b)===ti(x),D=()=>p(i,{replace:M,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:v});g?E.startTransition(()=>D()):D()}},[b,p,x,r,c,s,i,d,m,y,v,g])}var $x=0,Fx=()=>`__${String(++$x)}__`;function Wx(){let{router:i}=Wh("useSubmit"),{basename:s}=E.useContext(Ut),r=yx(),c=i.fetch,d=i.navigate;return E.useCallback(async(m,y={})=>{let{action:v,method:g,encType:p,formData:b,body:x}=Cx(m,s);if(y.navigate===!1){let j=y.fetcherKey||Fx();await c(j,r,y.action||v,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:b,body:x,formMethod:y.method||g,formEncType:y.encType||p,flushSync:y.flushSync})}else await d(y.action||v,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:b,body:x,formMethod:y.method||g,formEncType:y.encType||p,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,s,r])}function Ix(i,{relative:s}={}){let{basename:r}=E.useContext(Ut),c=E.useContext(ya);Le(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...ri(i||".",{relative:s})},y=ml();if(i==null){m.search=y.search;let v=new URLSearchParams(m.search),g=v.getAll("index");if(g.some(b=>b==="")){v.delete("index"),g.filter(x=>x).forEach(x=>v.append("index",x));let b=v.toString();m.search=b?`?${b}`:""}}return(!i||i===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:ca([r,m.pathname])),ti(m)}function Px(i,{relative:s}={}){let r=E.useContext(Yh);Le(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Wh("useViewTransitionState"),d=ri(i,{relative:s});if(!r.isTransitioning)return!1;let m=ma(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=ma(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Ru(d.pathname,y)!=null||Ru(d.pathname,m)!=null}const eb=({icon:i,title:s,subtitle:r,type:c,onClick:d,to:m,needLogin:y,inDevelopment:v})=>{const g=an(),{isLogged:p}=Dt(),b=()=>{if(v){g("/coming-soon");return}if(y&&!p){ie("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}c===0?d&&d():c===1&&m&&g(m)};return f.jsxs("button",{onClick:b,className:"group flex items-center gap-4 p-4 rounded-xl hover:bg-white/5 transition-colors active:bg-white/10 w-full text-left",children:[f.jsx("div",{className:"h-10 w-10 rounded-full bg-surface-dark flex items-center justify-center border border-white/5 group-hover:border-primary/50 group-hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-gray-300 group-hover:text-primary",children:i})}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-base font-bold text-gray-100",children:s}),f.jsx("span",{className:"text-xs text-gray-500",children:r})]})]})},tb=({isOpen:i,onClose:s})=>{const[r,c]=E.useState(!1),[d,m]=E.useState(!1),{isLogged:y,user:v,setIsLoggedIn:g}=Dt(),{table:p}=li(),{confirm:b}=Cc(),{setIsLoading:x}=ai(),j=async()=>{if(!await b("¿Seguro que quieres pedir la cuenta?","receipt_long"))return;m(!1),x(!0,"Llamando a tu garzón...");const L=await xh(y,p);L.success?(x(!1),ie("La factura ha sido impresa correctamente",{type:"success",autoClose:2e3})):alert(L.message)};E.useEffect(()=>{if(i){c(!0);const D=setTimeout(()=>m(!0),10);return()=>clearTimeout(D)}else{m(!1);const D=setTimeout(()=>c(!1),300);return()=>clearTimeout(D)}},[i]);const M=()=>{g(!1),vh("")};return r?f.jsxs("div",{className:"fixed inset-0 z-50 flex h-full w-full",children:[f.jsx("div",{className:`absolute inset-0 bg-[#0f0a08]/60 backdrop-blur-sm transition-opacity duration-300 ${d?"opacity-100":"opacity-0"}`,onClick:s}),f.jsxs("div",{className:`relative z-50 h-full w-[85%] max-w-85 bg-background-dark text-white shadow-2xl rounded-r-3xl flex flex-col border-r border-white/5 transform transition-transform duration-300 ease-out ${d?"translate-x-0":"-translate-x-full"}`,children:[f.jsxs("div",{className:"px-6 pt-12 pb-6 border-b border-white/5 flex items-center justify-between shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"h-12 w-12 rounded-full overflow-hidden border-2 border-gray-600/50 shadow-lg shadow-primary/20 bg-surface-dark flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-gray-400 text-3xl",children:"account_circle"})}),y&&f.jsx("div",{className:"absolute bottom-0 right-0 h-3 w-3 bg-green-500 border-2 border-background-dark rounded-full"})]}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:`${y?"text-primary":"text-gray-400 "} text-xs font-medium tracking-wider uppercase`,children:y?"En Linea":"ESTADO: DESCONECTADO"}),f.jsx("span",{className:"text-xl font-bold leading-tight",children:y?`Hola, ${v==null?void 0:v.name}`:"Bienvenido"})]})]}),f.jsx("button",{onClick:s,className:"text-gray-400 hover:text-white p-2 rounded-full hover:bg-white/10 transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"close"})})]}),f.jsxs("div",{className:"flex-1 overflow-y-auto py-8 px-4 flex flex-col gap-6 scrollbar-hide",children:[f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest",children:y?"Sesión":"Acceso"}),y?f.jsx("button",{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl bg-primary text-white font-bold shadow-lg shadow-primary/25 active:scale-[0.98] transition-all",onClick:M,children:" Cerrar Sesión"}):f.jsxs(f.Fragment,{children:[f.jsxs(oa,{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl bg-primary text-white font-bold shadow-lg shadow-primary/25 active:scale-[0.98] transition-all",to:"/login",children:[f.jsx("span",{className:"material-symbols-outlined",children:"login"}),f.jsx("span",{children:"Iniciar Sesión"})]}),f.jsxs(oa,{className:"flex items-center justify-center gap-2 py-4 px-6 rounded-2xl border-2 border-primary text-primary font-bold active:scale-[0.98] transition-all",to:"/register",children:[f.jsx("span",{className:"material-symbols-outlined",children:"person_add"}),f.jsx("span",{children:"Registrarse"})]})]})]}),f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest",children:"Acciones Rápidas"}),f.jsx("button",{className:"group relative w-full overflow-hidden rounded-2xl bg-[#a33f1e] p-1 shadow-[0_8px_20px_-6px_rgba(163,63,30,0.5)] transition-all active:scale-[0.97]",onClick:j,children:f.jsxs("div",{className:"relative w-full h-full bg-[#a33f1e] rounded-[0.9rem] border-t border-white/20 border-b overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-linear-to-br from-white/10 via-transparent to-black/10 pointer-events-none"}),f.jsxs("div",{className:"relative z-10 flex items-center gap-5 p-5",children:[f.jsx("div",{className:"h-14 w-14 rounded-xl bg-black/20 backdrop-blur-sm border border-white/10 flex items-center justify-center shadow-inner text-[#ffdac1]",children:f.jsx("span",{className:"material-symbols-outlined text-3xl drop-shadow-sm",children:"receipt_long"})}),f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-xl font-bold leading-none text-white tracking-tight drop-shadow-md",children:"Solicitar Cuenta"}),f.jsx("span",{className:"text-xs text-white/80 font-medium mt-1.5 tracking-wide",children:"Ver desglose y pagar"})]}),f.jsx("span",{className:"material-symbols-outlined ml-auto text-white/60 group-hover:text-white group-hover:translate-x-1 transition-all text-2xl",children:"arrow_forward"})]})]})}),f.jsxs(oa,{className:"group relative flex items-center gap-4 p-4 rounded-xl bg-[#252525]/40 backdrop-blur-md border border-white/5 hover:bg-white/5 hover:border-white/10 transition-all active:bg-white/10",to:"/summary",children:[f.jsx("div",{className:"h-10 w-10 rounded-lg bg-surface-dark/80 flex items-center justify-center border border-white/5 shadow-sm",children:f.jsx("span",{className:"material-symbols-outlined text-gray-300 text-[1.35rem]",children:"list_alt"})}),f.jsxs("div",{className:"flex flex-col z-10",children:[f.jsx("span",{className:"text-[0.95rem] font-bold text-gray-100 tracking-tight",children:"Consumo Actual"}),f.jsx("span",{className:"text-[11px] text-gray-500 font-medium tracking-wide uppercase",children:"Pedidos de la mesa"})]}),f.jsx("span",{className:"material-symbols-outlined ml-auto text-gray-600 group-hover:text-gray-400 transition-colors text-xl",children:"chevron_right"})]})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("p",{className:"px-4 text-xs font-bold text-gray-500 uppercase tracking-widest mt-2",children:"Navegación"}),[{icon:"checkroom",title:"Indumentaria",subtitle:"Merch oficial IRC",type:1,to:"/coming-soon"},{icon:"calendar_month",title:"Coordinar Banquetes",subtitle:"Reservas especiales",type:1,to:"/coming-soon"},{icon:"reviews",title:"Evaluar Servicio",subtitle:"Tu opinión nos ayuda",type:1,to:"/coming-soon"}].map(D=>f.jsx(eb,{...D},D.title))]})]}),f.jsxs("div",{className:"mt-auto px-6 py-8 border-t border-white/5 bg-[#1a100c]",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2 opacity-60",children:[f.jsx("span",{className:"material-symbols-outlined text-primary text-lg",children:"local_bar"}),f.jsx("span",{className:"font-bold text-sm tracking-widest uppercase",children:"Camilo Klein IRC"})]}),f.jsx("p",{className:"text-xs text-gray-600 font-mono",children:"v2.0.0 • Build 326"})]})]})]}):null},ab=99887766,lb=836295738,nb=i=>(parseInt(i.split("").reverse().join(""),12)^lb)-ab;function Ih(){let s=new URLSearchParams(window.location.search).get("table");return s||(s=sessionStorage.getItem("table")),s?(sessionStorage.setItem("table",s),Number(nb(s))):-1}const ib=({isOpen:i,onClose:s,items:r})=>i?f.jsxs("div",{className:"fixed inset-0 z-60 flex items-center justify-center px-4",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[f.jsx("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm transition-opacity",onClick:s}),f.jsxs("div",{className:"relative w-full max-w-sm overflow-hidden rounded-2xl bg-[#201512] border border-white/10 shadow-2xl transition-all",children:[f.jsxs("div",{className:"p-6 pb-2",children:[f.jsx("div",{className:"flex items-center justify-center mb-5",children:f.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-orange-500/10 ring-1 ring-orange-500/20",children:f.jsx("span",{className:"material-symbols-outlined text-orange-400",style:{fontSize:"24px"},children:"notifications_active"})})}),f.jsxs("div",{className:"text-center",children:[f.jsx("h3",{className:"text-xl font-bold leading-6 text-white",id:"modal-title",children:"Actualizacion de Productos"}),f.jsx("p",{className:"mt-2 text-sm text-gray-400",children:"El precio y disponibilidad de los productos en tu carrito han cambiado."})]})]}),f.jsx("div",{className:"px-5 py-4 space-y-3 max-h-[40vh] overflow-y-auto no-scrollbar",children:r.map(c=>f.jsx(ub,{item:c},c.product.id))}),f.jsx("div",{className:"bg-[#201512] px-5 pb-6 pt-2",children:f.jsx("button",{type:"button",onClick:s,className:"inline-flex w-full justify-center rounded-xl bg-[#a33f1e] px-3 py-3.5 text-sm font-bold text-white shadow-sm hover:bg-[#8f3619] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#a33f1e] transition-colors",children:"Entendido"})})]})]}):null,ub=({item:i})=>{const s=i.newPrice>i.oldPrice,r=s?"text-red-500":"text-green-500",c=s?"arrow_upward":"arrow_downward";return i.isAvailable?f.jsxs("div",{className:"flex items-center gap-3 rounded-xl bg-white/5 p-3 ring-1 ring-white/10",children:[f.jsx("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-lg bg-gray-800",children:f.jsx("div",{className:"h-full w-full bg-cover bg-center",style:{backgroundImage:`url("${i.product.image}")`}})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-bold text-white truncate",children:i.product.name}),f.jsxs("div",{className:"mt-1 flex items-baseline gap-2",children:[f.jsxs("span",{className:"text-xs text-gray-500 line-through",children:["$",Xa(i.oldPrice)]}),f.jsxs("span",{className:`flex items-center text-sm font-bold ${r}`,children:["$",Xa(i.newPrice),f.jsx("span",{className:"material-symbols-outlined ml-0.5",style:{fontSize:"16px"},children:c})]})]})]})]}):f.jsxs("div",{className:"relative flex items-center gap-3 rounded-xl bg-white/5 p-3 ring-1 ring-white/10 opacity-60 grayscale",children:[f.jsx("div",{className:"h-12 w-12 shrink-0 overflow-hidden rounded-lg bg-gray-800",children:f.jsx("div",{className:"h-full w-full bg-cover bg-center",style:{backgroundImage:`url("${i.product.image}")`}})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-bold text-white truncate",children:i.product.name}),f.jsx("span",{className:"mt-1 inline-flex items-center rounded bg-gray-700/50 px-1.5 py-0.5 text-[10px] font-medium text-gray-200 ring-1 ring-inset ring-gray-500/20",children:"No disponible por ahora"})]})]})},sb=({isOpen:i,onClose:s,cartItems:r,onUpdateQuantity:c,onClear:d})=>{const[m,y]=E.useState(!1),{user:v,isLogged:g,setPromoPercent:p}=Dt(),[b,x]=E.useState([]),{table:j,setTable:M,updateProduct:D,removeProduct:L}=li(),{setIsLoading:Y}=ai(),B=an(),{confirm:k}=Cc(),w=async Z=>{if(!await k("¿Seguro que quieres enviar el pedido?","send",{confirmText:"Enviar",cancelText:"No, regresar"}))return;if(r.length===0){ie("No tienes productos en tu carrito",{type:"warning",autoClose:2e3});return}Y(!0,"Enviando pedido...");const X={customerId:(v==null?void 0:v.id)||0,table:j,items:r.map(le=>({id:le.id,price:le.price,quantity:le.quantity,comment:""})),totalAmount:Q,orderDate:new Date().toISOString()},F=await wg(X,g);if(Y(!1),F.success){if(!("new_progress"in F.data)){x(F.data);for(const le of F.data)le.isAvailable?D(le.product.id,le.newPrice):L(le.product.id);return}ie("Pedido enviado correctamente",{type:"success",autoClose:2e3}),p(F.data.new_progress),s(),d()}else alert(F.message)};E.useEffect(()=>{if(i)y(!0);else{const Z=setTimeout(()=>y(!1),300);return()=>clearTimeout(Z)}},[i]),E.useEffect(()=>{const Z=Ih();if(Z===-1){B("/no-table");return}M(Z)},[]);const Q=r.reduce((Z,$)=>Z+$.price*$.quantity,0);return m?f.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col justify-end",children:[f.jsx(ib,{isOpen:b.length>0,onClose:()=>x([]),items:b}),f.jsx("div",{className:`absolute inset-0 bg-background-dark/60 backdrop-blur-md transition-opacity duration-300 ${i?"opacity-100":"opacity-0"}`,onClick:s}),f.jsxs("div",{className:`relative z-50 flex flex-col w-full max-w-md mx-auto bg-background-light dark:bg-background-dark rounded-t-3xl h-[94vh] shadow-2xl border-t border-white/5 ring-1 ring-white/10 transform transition-transform duration-300 ease-out ${i?"translate-y-0":"translate-y-full"}`,children:[f.jsx("div",{className:"flex flex-col items-center pt-3 pb-2 shrink-0 w-full cursor-grab active:cursor-grabbing hover:opacity-80 transition-opacity",onClick:s,children:f.jsx("div",{className:"h-1 w-10 rounded-full bg-gray-300 dark:bg-[#54413b]"})}),f.jsxs("div",{className:"flex items-center px-6 pb-4 pt-1 justify-between shrink-0",children:[f.jsx("button",{onClick:s,className:"group flex items-center justify-center size-10 rounded-full bg-gray-200 dark:bg-white/5 hover:bg-gray-300 dark:hover:bg-white/10 transition-all active:scale-95",children:f.jsx("span",{className:"material-symbols-outlined text-gray-700 dark:text-white group-hover:rotate-90 transition-transform duration-300",style:{fontSize:"24px"},children:"close"})}),f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("h2",{className:"text-gray-900 dark:text-white text-lg font-bold leading-none tracking-tight",children:"Pedidos Express"}),f.jsxs("span",{className:"text-xs text-primary font-medium mt-1 tracking-wider uppercase",children:["Mesa #",j]})]}),f.jsx("button",{onClick:d,className:"text-[#b9a49d] hover:text-primary text-sm font-bold leading-normal tracking-wide transition-colors",children:"Clear"})]}),f.jsx("div",{className:"flex-1 overflow-y-auto no-scrollbar px-5 pb-40",children:r.length===0?f.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[f.jsx("span",{className:"material-symbols-outlined text-6xl mb-4 opacity-50",children:"shopping_cart_off"}),f.jsx("p",{children:"Your cart is empty."})]}):f.jsx("div",{className:"flex flex-col gap-4 mt-2",children:r.map(Z=>f.jsxs("div",{className:"group relative flex gap-4 bg-white dark:bg-[#2a1d18] p-3 rounded-2xl shadow-sm border border-gray-100 dark:border-white/5 hover:border-primary/30 transition-colors",children:[f.jsxs("div",{className:"shrink-0 relative",children:[f.jsx("div",{className:"bg-center bg-no-repeat bg-cover rounded-xl size-20 shadow-inner",style:{backgroundImage:`url("${Z.image}")`}}),Z.quantity>1&&f.jsxs("div",{className:"absolute -top-2 -left-2 bg-primary text-white text-[10px] font-bold px-1.5 py-0.5 rounded-md shadow-sm",children:["x",Z.quantity]})]}),f.jsxs("div",{className:"flex flex-1 flex-col justify-between py-0.5",children:[f.jsxs("div",{className:"flex justify-between items-start gap-2",children:[f.jsx("h3",{className:"text-gray-900 dark:text-white text-base font-bold leading-tight",children:Z.name}),f.jsxs("p",{className:"text-gray-900 dark:text-white font-bold text-base",children:["$",Xa(Z.price*Z.quantity)]})]}),f.jsxs("p",{className:"text-gray-500 dark:text-[#b9a49d] text-xs font-medium",children:["$",Xa(Z.price)," / unidad"]}),f.jsx("div",{className:"flex items-end justify-between mt-2",children:f.jsxs("div",{className:"flex items-center gap-1 bg-gray-100 dark:bg-[#181311] rounded-lg p-1 border border-transparent dark:border-white/5",children:[f.jsx("button",{onClick:()=>c(Z.id,-1),className:"size-7 flex items-center justify-center rounded-md bg-white dark:bg-[#2f1f1a] text-gray-600 dark:text-gray-300 shadow-sm hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"remove"})}),f.jsx("input",{className:"w-8 text-center bg-transparent text-sm font-bold text-gray-900 dark:text-white border-none focus:ring-0 p-0",readOnly:!0,type:"number",value:Z.quantity}),f.jsx("button",{onClick:()=>c(Z.id,1),className:"size-7 flex items-center justify-center rounded-md bg-white dark:bg-[#2f1f1a] text-gray-600 dark:text-gray-300 shadow-sm hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"add"})})]})})]})]},Z.id))})}),f.jsxs("div",{className:"absolute bottom-0 left-0 w-full bg-background-light/95 dark:bg-background-dark/95 backdrop-blur-md border-t border-gray-200 dark:border-white/5 z-20 pb-8 pt-4 px-6 rounded-t-2xl shadow-[0_-10px_40px_-15px_rgba(0,0,0,0.5)]",children:[f.jsx("div",{className:"flex justify-between items-end mb-4",children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-gray-500 dark:text-[#b9a49d] text-xs font-bold uppercase tracking-wider mb-1",children:"Total a pagar"}),f.jsx("div",{className:"flex items-baseline gap-1",children:f.jsxs("span",{className:"text-3xl font-bold text-gray-900 dark:text-white tracking-tighter",children:["$",Xa(Q)]})})]})}),f.jsxs("button",{onClick:w,className:"relative w-full group overflow-hidden bg-primary text-white rounded-xl p-4 shadow-lg shadow-primary/25 transition-all active:scale-[0.98]",children:[f.jsx("div",{className:"absolute inset-0 bg-white/20 translate-y-full group-hover:translate-y-0 transition-transform duration-300 ease-out"}),f.jsxs("div",{className:"relative flex items-center justify-center gap-3",children:[f.jsx("span",{className:"font-bold text-lg tracking-wide",children:"Finalizar Pedido"}),f.jsx("span",{className:"material-symbols-outlined animate-pulse",children:"arrow_forward"})]})]})]})]})]}):null};function rb({setIsSidebarOpen:i,setIsCartOpen:s,totalItems:r}){return f.jsxs("header",{className:"flex items-center bg-background-dark p-4 pb-2 justify-between border-b border-white/10 z-20 shrink-0",children:[f.jsx("button",{onClick:()=>i(!0),className:"text-white flex size-12 shrink-0 items-center justify-start cursor-pointer hover:text-primary transition-colors",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"menu"})}),f.jsx("h2",{className:"text-white text-lg font-bold leading-tight tracking-[-0.015em] flex-1 text-center",children:"Pedidos Express"}),f.jsxs("button",{onClick:()=>s(!0),className:"text-white flex size-12 shrink-0 items-center justify-end relative hover:text-primary transition-colors",children:[f.jsx("span",{className:"material-symbols-outlined text-2xl",children:"shopping_cart"}),r>0&&f.jsx("span",{className:"absolute top-2 right-1 bg-primary text-white text-[10px] font-bold px-1.5 py-0.5 rounded-full ring-2 ring-background-dark",children:r})]})]})}var Ga=(i=>(i.SHOP="SHOP",i.CHAT="CHAT",i))(Ga||{});function sh({activeTab:i,setActiveTab:s,tab:r,tabName:c,icon:d,needLogin:m,inDevelopment:y}){const{isLogged:v}=Dt(),g=an(),p=()=>{if(y){g("/coming-soon");return}if(m&&!v){ie("Debes estar logueado para acceder a esta sección",{type:"error"}),g("/login");return}s(r)};return f.jsxs("button",{onClick:p,className:`flex flex-col items-center justify-center w-full h-full transition-colors ${i===r?"text-primary":"text-gray-400 hover:text-white"}`,children:[f.jsx("span",{className:`material-symbols-outlined text-2xl ${i===r?"fill-1":"fill-0"}`,children:d}),f.jsx("span",{className:"text-xs font-medium mt-1",children:c})]})}function cb({activeTab:i,setActiveTab:s}){return f.jsx("nav",{className:"bg-background-dark border-t border-white/10 p-2 z-30 sticky bottom-0 shrink-0",children:f.jsxs("div",{className:"flex justify-around items-center h-14",children:[f.jsx(sh,{setActiveTab:s,tab:Ga.SHOP,activeTab:i,tabName:"Tienda",icon:"store"}),f.jsx(sh,{setActiveTab:s,tab:Ga.CHAT,activeTab:i,tabName:"Chat",icon:"chat",needLogin:!0})]})})}function ob({active:i}){const{promoPercent:s}=Dt();return i&&f.jsxs("div",{className:"bg-[#8f3322] px-4 py-2 flex items-center justify-between z-20 shrink-0 shadow-lg border-b border-[#602014]",children:[f.jsxs("div",{className:"flex flex-col flex-1 mr-4",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("span",{className:"material-symbols-outlined text-white text-lg font-bold",children:"celebration"}),f.jsxs("span",{className:"text-white text-xs font-bold uppercase tracking-wider drop-shadow-sm",children:[s??0,"% para tu cerveza gratis!"]})]}),f.jsx("div",{className:"w-full bg-black/30 h-1.5 rounded-full overflow-hidden",children:f.jsx("div",{className:"bg-[#fcd34d] h-full rounded-full shadow-[0_0_8px_rgba(252,211,77,0.6)] animate-pulse",style:{width:`${s??0}%`}})})]}),f.jsx("button",{className:"bg-[#1f1f1f] text-[#FFB800] border border-[#FFB800]/20 text-[10px] font-black uppercase px-3 py-1.5 rounded shadow-md active:scale-95 transition-transform hover:bg-[#000000]",children:"Reclamar"})]})}function Ph(){return f.jsxs("header",{className:"flex items-center bg-background-dark p-4 pb-2 justify-between border-b border-white/10 z-20 shrink-0",children:[f.jsx(oa,{className:"text-white flex size-12 shrink-0 items-center justify-start cursor-pointer",to:"/",children:f.jsx("span",{className:"material-symbols-outlined text-3xl",children:"chevron_left"})}),f.jsx("h2",{className:"text-white text-lg font-bold leading-tight tracking-[-0.015em] flex-1 text-center",children:"Registro Pedidos Express"}),f.jsx("div",{className:"size-12 shrink-0"})]})}function fb(){const{setIsLoggedIn:i}=Dt(),s=an(),r=async c=>{c.preventDefault();const d=c.currentTarget.querySelector("input#email").value,m=c.currentTarget.querySelector("input#pin").value;if(!d){ie("El email no puede estar vacío",{type:"error"});return}if(!m){ie("El pin no puede estar vacío",{type:"error"});return}if(m.length!==4){ie("El pin debe tener 4 dígitos",{type:"error"});return}const y=await jg(d,m);if(y.success===!1){ie(y.message,{type:"error"});return}vh(y.data.token),i(!0,y.data),s("/")};return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(Ph,{}),f.jsx("main",{className:"bg-background-dark font-display antialiased h-screen flex flex-col items-center justify-center p-6",children:f.jsxs("div",{className:"w-full max-w-sm flex flex-col items-center space-y-8",children:[f.jsxs("div",{className:"text-center space-y-2",children:[f.jsx("div",{className:"size-20 bg-primary rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg shadow-primary/20",children:f.jsx("span",{className:"material-symbols-outlined text-white text-5xl",children:"sports_bar"})}),f.jsx("h1",{className:"text-white text-3xl font-bold tracking-tight",children:"Pedidos Express"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Brewery & Artisan Slices"})]}),f.jsxs("form",{className:"w-full space-y-5",onSubmit:r,children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-gray-400 text-xs font-semibold uppercase tracking-wider mb-2 ml-1",htmlFor:"email",children:"Email"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl",children:"mail"})}),f.jsx("input",{className:"block w-full pl-10 pr-4 py-3 border border-white/10 rounded-xl bg-[#2a201c] text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all shadow-sm",id:"email",placeholder:"your@email.com",type:"email"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-gray-400 text-xs font-semibold uppercase tracking-wider mb-2 ml-1",htmlFor:"pin",children:"4-Digit PIN"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl",children:"lock"})}),f.jsx("input",{className:"block w-full pl-10 pr-4 py-3 border border-white/10 rounded-xl bg-[#2a201c] text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all shadow-sm tracking-[0.5em] font-mono",id:"pin",inputMode:"numeric",maxLength:4,placeholder:"••••",type:"password"})]})]})]}),f.jsxs("button",{className:"w-full bg-primary hover:bg-[#b84a26] text-white font-bold py-4 mt-30 rounded-xl shadow-lg shadow-primary/20 transition-all active:scale-[0.98] flex items-center justify-center gap-2",type:"submit",children:["Iniciar Sesión",f.jsx("span",{className:"material-symbols-outlined text-xl",children:"arrow_forward"})]})]}),f.jsxs("div",{className:"text-center space-y-2",children:[f.jsx("p",{className:"text-gray-400 text-sm",children:"¿No tienes una cuenta?"}),f.jsx(oa,{className:"text-primary font-bold hover:underline",to:"/register",children:"Crear cuenta"})]})]})})]})}function db(){return f.jsxs("div",{className:"bg-background-dark font-display antialiased overflow-hidden h-screen flex flex-col",children:[f.jsx(Ph,{}),f.jsx("main",{className:"bg-background-dark font-display antialiased h-screen flex flex-col items-center justify-center p-6",children:f.jsxs("section",{className:"flex-1 bg-background-dark overflow-y-auto relative flex flex-col z-10 p-6",children:[f.jsxs("div",{className:"mb-8 text-center",children:[f.jsx("div",{className:"inline-flex items-center justify-center size-16 bg-primary/20 rounded-2xl mb-4",children:f.jsx("span",{className:"material-symbols-outlined text-primary text-4xl",children:"person_add"})}),f.jsx("h1",{className:"text-white text-2xl font-bold mb-2",children:"Únete a la comunidad"}),f.jsx("p",{className:"text-gray-400 text-sm",children:"Regístrate para pedir tus cervezas y pizzas favoritas."})]}),f.jsxs("form",{className:"space-y-6 max-w-md mx-auto w-full",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"Email"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"mail"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"ejemplo@correo.com",type:"email"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"Nombre Completo"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"person"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"Tu nombre y apellido",type:"text"})]})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"text-gray-300 text-sm font-medium ml-1",children:"RUT"}),f.jsxs("div",{className:"relative group",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:f.jsx("span",{className:"material-symbols-outlined text-gray-500 text-xl group-focus-within:text-primary transition-colors",children:"fingerprint"})}),f.jsx("input",{className:"block w-full pl-11 pr-4 py-3.5 border border-white/10 rounded-xl leading-5 bg-[#2a201c] text-gray-100 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all",placeholder:"12.345.678-9",type:"text"})]})]})]}),f.jsxs("div",{className:"flex items-start gap-3 px-1 mt-4",children:[f.jsx("div",{className:"flex items-center h-5",children:f.jsx("input",{className:"w-5 h-5 rounded border-white/10 bg-[#2a201c] text-primary focus:ring-primary focus:ring-offset-0 focus:ring-offset-transparent cursor-pointer",id:"terms",type:"checkbox"})}),f.jsx("label",{className:"text-sm text-gray-300 leading-snug cursor-pointer select-none",htmlFor:"terms",children:"Confirmo que tengo 18 años o más y acepto los términos de distribución de bebidas alcohólicas."})]}),f.jsx("button",{className:"w-full bg-primary hover:bg-orange-800 text-white font-bold py-4 rounded-xl shadow-lg shadow-primary/20 transition-all active:scale-[0.98] mt-2",type:"submit",children:"Registrarse"}),f.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[f.jsx("p",{className:"text-center text-gray-500 text-sm mt-6",children:"¿Ya tienes una cuenta?"}),f.jsx(oa,{className:"text-primary font-semibold hover:underline",to:"/login",children:"Inicia sesión"})]})]})]})})]})}const mb=({product:i})=>f.jsxs("div",{className:"flex gap-4 bg-card-dark p-4 rounded-2xl border border-white/5 shadow-xl",children:[f.jsx("div",{className:"shrink-0",children:f.jsx("div",{className:"bg-center bg-cover rounded-xl size-16 ring-1 ring-white/10",style:{backgroundImage:`url("${i.image}")`}})}),f.jsxs("div",{className:"flex-1 flex flex-col justify-center",children:[f.jsxs("div",{className:"flex justify-between items-start",children:[f.jsx("h3",{className:"text-white font-bold text-lg leading-tight",children:i.name}),f.jsxs("span",{className:"text-white font-bold",children:["$",i.price.toFixed(2)]})]}),f.jsx("div",{className:"flex justify-between items-center mt-1",children:f.jsxs("p",{className:"text-[#b9a49d] text-sm",children:[i.quantity," ",i.quantity===1?"unidad":"unidades"," x $",i.price.toFixed(2)]})})]})]}),hb=({total:i})=>f.jsx("div",{className:"mt-8 space-y-3 py-6 border-t border-dashed border-white/10",children:f.jsxs("div",{className:"flex justify-between items-center text-sm",children:[f.jsx("span",{className:"text-[#b9a49d] font-medium",children:"Total"}),f.jsxs("span",{className:"text-white font-bold",children:["$",Xa(i)]})]})}),yb=({total:i,onBack:s,onRequestBill:r})=>f.jsxs("div",{className:"absolute bottom-0 left-0 w-full bg-background-dark/80 backdrop-blur-xl border-t border-white/10 px-6 pt-6 pb-10 space-y-4",children:[f.jsx("div",{className:"flex justify-between items-end",children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"text-[#b9a49d] text-xs font-bold uppercase tracking-widest mb-1",children:"Total Acumulado"}),f.jsxs("span",{className:"text-4xl font-bold text-white tracking-tighter",children:["$",Xa(i)]})]})}),f.jsxs("div",{className:"flex gap-3",children:[f.jsx("button",{onClick:s,className:"flex-1 bg-white/5 text-white font-bold py-4 rounded-xl border border-white/10 active:scale-95 transition-all",children:"Volver"}),f.jsxs("button",{onClick:r,className:"flex-2 bg-primary text-white font-bold py-4 rounded-xl shadow-lg shadow-primary/20 active:scale-95 transition-all flex items-center justify-center gap-2",children:["Solicitar Cuenta",f.jsx("span",{className:"material-symbols-outlined text-[20px]",children:"receipt_long"})]})]})]}),pb=()=>{const[i,s]=E.useState(0),[r,c]=E.useState([]),{getItems:d,table:m,setTable:y}=li(),{isLogged:v}=Dt(),{setIsLoading:g}=ai(),{confirm:p}=Cc(),b=an(),x=async()=>{if(!await p("¿Seguro que quieres pedir la cuenta?","receipt_long"))return;g(!0,"Llamando a tu garzón...");const M=await xh(v,m);M.success?(g(!1),ie("Tu garzon vendra enseguida, por favor espera",{type:"success",autoClose:2e3})):alert(M.message)};return E.useEffect(()=>{(async()=>{g(!0,"Cargando Historial...");let j=m;if(!j){if(j=Ih(),j===-1){b("/no-table");return}y(j)}let M=await zg(j,v),D;M&&M.success?D=M.data:b("/");const L=d(...D);c(L),s(L.reduce((Y,B)=>Y+B.price*B.quantity,0)),g(!1)})()},[]),f.jsxs("div",{className:"bg-background-dark font-display selection:bg-primary selection:text-white overflow-hidden h-screen w-full flex flex-col relative",children:[f.jsx("div",{className:"fixed inset-0 z-0 opacity-20 pointer-events-none",children:f.jsx("div",{className:"absolute inset-0 bg-linear-to-b from-primary/20 to-transparent"})}),f.jsx("header",{className:"relative z-10 shrink-0 px-6 pt-12 pb-6",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("button",{onClick:()=>{history.back()},className:"flex items-center justify-center size-10 rounded-full bg-white/5 border border-white/10 active:scale-90 transition-transform",children:f.jsx("span",{className:"material-symbols-outlined text-white",children:"chevron_left"})}),f.jsxs("div",{children:[f.jsxs("h1",{className:"text-white text-2xl font-bold tracking-tight",children:["Mesa #",m]}),f.jsx("p",{className:"text-primary font-medium text-sm uppercase tracking-widest",children:"Consumo Actual"})]})]})}),f.jsxs("main",{className:"relative z-10 flex-1 overflow-y-auto no-scrollbar px-6 pb-80",children:[f.jsx("div",{className:"space-y-4",children:r.map(j=>f.jsx(mb,{product:j},j.id))}),f.jsx(hb,{total:i})]}),f.jsx("div",{className:"relative z-20",children:f.jsx(yb,{total:i,points:50,onBack:()=>b("/"),onRequestBill:()=>x()})})]})};function gb(){return f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",children:[f.jsx("div",{className:"absolute inset-0 bg-qr-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-full blur-3xl animate-pulse"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[12rem]! text-surface-dark leading-none drop-shadow-2xl w-max h-max",children:"table_restaurant"}),f.jsx("div",{className:"absolute -top-4 -right-4 bg-background-dark rounded-full p-2 ring-4 ring-background-dark shadow-xl",children:f.jsx("span",{className:"material-symbols-outlined text-6xl text-primary",children:"question_mark"})}),f.jsx("div",{className:"w-32 h-4 bg-black/40 blur-lg rounded-full -mt-4"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-5 max-w-80 animate-in slide-in-from-bottom-8 fade-in duration-1000",children:[f.jsx("h1",{className:"text-3xl md:text-4xl font-display font-bold text-white tracking-tight leading-tight",children:"Mesa no Encontrada"}),f.jsxs("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:["No pudimos identificar tu ubicación. Para realizar tu pedido, por favor ",f.jsx("strong",{className:"text-primary font-medium",children:"escanea nuevamente"})," el código QR situado en tu mesa."]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]})}const vb=()=>f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",style:{minHeight:"max(884px, 100dvh)",overscrollBehavior:"none"},children:[f.jsx("div",{className:"absolute inset-0 bg-bubbles-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/20 rounded-full blur-3xl"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[11rem] text-surface-dark leading-none drop-shadow-2xl",style:{fontVariationSettings:"'FILL' 1, 'wght' 200"},children:"propane_tank"}),f.jsx("div",{className:"absolute -bottom-2 -right-2 bg-background-dark rounded-full p-3 ring-4 ring-background-dark shadow-xl flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-4xl text-primary",children:"construction"})}),f.jsx("div",{className:"absolute top-10 right-0 w-3 h-3 bg-primary/40 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-4 right-8 w-2 h-2 bg-primary/30 rounded-full blur-[1px]"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-6 max-w-85",children:[f.jsxs("h1",{className:"text-3xl md:text-4xl font-display font-bold text-white tracking-tight leading-tight",children:["Estamos Cocinando ",f.jsx("br",{})," ",f.jsx("span",{className:"text-primary",children:"Algo Nuevo"})]}),f.jsx("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:"Esta sección está en desarrollo para mejorar tu experiencia en Pedidos Express. Vuelve pronto para ver las novedades."}),f.jsxs("button",{onClick:()=>{history.back()},className:"mt-4 inline-flex items-center gap-2 px-6 py-3 rounded-full bg-surface-dark/50 border border-white/10 hover:bg-surface-dark hover:border-primary/50 text-white transition-all duration-300 group backdrop-blur-sm",children:[f.jsx("span",{className:"material-symbols-outlined text-sm transition-transform group-hover:-translate-x-1",children:"arrow_back"}),f.jsx("span",{children:"Volver atrás"})]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]}),xb=()=>f.jsxs("div",{className:"bg-background-dark text-white h-screen w-full flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary selection:text-white font-body",style:{minHeight:"max(884px, 100dvh)",overscrollBehavior:"none"},children:[f.jsx("div",{className:"absolute inset-0 bg-bubbles-pattern z-0 opacity-100 pointer-events-none"}),f.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-background-dark via-background-dark/95 to-background-dark/80 z-0 pointer-events-none"}),f.jsxs("main",{className:"relative z-10 w-full max-w-md mx-auto px-8 flex flex-col items-center text-center justify-center h-full",children:[f.jsxs("div",{className:"relative w-72 h-72 flex items-center justify-center mb-10",children:[f.jsx("div",{className:"absolute inset-0 bg-primary/20 rounded-full blur-3xl"}),f.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[f.jsx("span",{className:"material-symbols-outlined text-[11rem] text-surface-dark leading-none drop-shadow-2xl",style:{fontVariationSettings:"'FILL' 0, 'wght' 200"},children:"sports_bar"}),f.jsx("div",{className:"absolute -bottom-2 -right-2 bg-background-dark rounded-full p-3 ring-4 ring-background-dark shadow-xl flex items-center justify-center",children:f.jsx("span",{className:"material-symbols-outlined text-4xl text-primary font-bold",children:"broken_image"})}),f.jsx("div",{className:"absolute top-10 right-10 w-3 h-3 bg-primary/40 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-4 right-16 w-2 h-2 bg-primary/30 rounded-full blur-[1px]"}),f.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-primary/10 text-6xl font-display font-bold select-none pointer-events-none",children:"?"})]})]}),f.jsxs("div",{className:"flex flex-col items-center space-y-6 max-w-85",children:[f.jsx("h1",{className:"text-6xl md:text-7xl font-display font-bold text-primary tracking-tighter leading-none",children:"404"}),f.jsx("h2",{className:"text-2xl md:text-3xl font-display font-medium text-white tracking-tight leading-tight",children:"Página no Encontrada"}),f.jsx("p",{className:"text-gray-400 text-lg leading-relaxed font-light",children:"Parece que esta ronda no existe o se ha agotado. Verifica la dirección o vuelve a la barra principal."}),f.jsxs(oa,{to:"/",className:"mt-4 px-8 py-3 bg-primary hover:bg-primary/90 text-background-dark font-bold rounded-full transition-colors duration-200 shadow-lg shadow-primary/20 flex items-center gap-2",children:[f.jsx("span",{className:"material-symbols-outlined text-xl",children:"home"}),"Volver al Inicio"]})]})]}),f.jsx("div",{className:"h-6 w-full absolute bottom-0"})]}),bb=({children:i})=>f.jsxs(Mg,{children:[f.jsx(gv,{}),f.jsx(Qx,{children:f.jsx(Rg,{children:f.jsx(Dg,{children:f.jsx(_v,{children:f.jsx(xv,{children:i})})})})})]}),Sb=()=>{const[i,s]=E.useState(Ga.SHOP),[r,c]=E.useState(!1),[d,m]=E.useState(!1),[y,v]=E.useState([]),{isLogged:g}=Dt(),[p,b]=E.useState(Ng),{setIsLoading:x}=ai(),{setIsLoggedIn:j}=Dt(),M=()=>{const w=Math.random();w<.2?(ie("Sabias que puedes obtener 1 cerveza gratis de cada 10?🥳"),ie("Solo registrandote😯")):w<.4?(ie("que estaran conversando en el chat global?🫢"),ie("Averigualo registrandote🥳🥳")):w<.6?(ie("¿Sediento? Tu próxima cerveza podría ser gratis. 🍺"),ie("Regístrate y empieza a sumar.")):w<.8?(ie("El chat global está que arde. 🔥"),ie("No te quedes fuera, regístrate ahora.")):(ie("Estás a 20 segundos de tu primera cerveza gratis. ⏱️"),ie("Crea tu cuenta ahora."))},D=w=>{v(Q=>Q.find($=>$.id===w.id)?Q.map($=>$.id===w.id?{...$,quantity:$.quantity+1}:$):[...Q,{...w,quantity:1}]),ie(`Se agrego ${w.name} a tu carrito.`,{type:"success",position:"top-center",autoClose:2e3})},L=(w,Q)=>{v(Z=>Z.map($=>{if($.id===w){const X=$.quantity+Q;return{...$,quantity:X}}return $}).filter($=>$.quantity>0))},Y=()=>v([]),B=async w=>{const Q=await Ag(w);return Q.success&&j(!0,Q.data),Q.success};E.useEffect(()=>{(async()=>{if(!g){let Q=!1;x(!0,"Iniciando sesión...");const Z=Pl();Z&&(Q=await B(Z)),Q||M(),x(!1)}})()},[]);const k=y.reduce((w,Q)=>w+Q.quantity,0);return f.jsxs("div",{className:"relative h-screen flex flex-col overflow-hidden bg-background-dark font-display",children:[f.jsx(rb,{setIsSidebarOpen:c,setIsCartOpen:m,totalItems:k}),f.jsx(ob,{active:i===Ga.SHOP&&g}),f.jsxs("main",{className:"flex-1 relative flex flex-col h-full overflow-hidden",children:[i===Ga.SHOP&&f.jsx(Ug,{onAddProduct:D}),i===Ga.CHAT&&f.jsx(Ev,{onBrowseMenu:()=>s(Ga.SHOP)})]}),f.jsx(cb,{activeTab:i,setActiveTab:s}),f.jsx(tb,{isOpen:r,onClose:()=>c(!1)}),f.jsx(sb,{isOpen:d,onClose:()=>m(!1),cartItems:y,onUpdateQuantity:L,onClear:Y})]})},Eb=()=>f.jsx(bb,{children:f.jsxs(bx,{children:[f.jsx(Ya,{path:"/",element:f.jsx(Sb,{})}),f.jsx(Ya,{path:"/login",element:f.jsx(fb,{})}),f.jsx(Ya,{path:"/register",element:f.jsx(db,{})}),f.jsx(Ya,{path:"/summary",element:f.jsx(pb,{})}),f.jsx(Ya,{path:"/no-table",element:f.jsx(gb,{})}),f.jsx(Ya,{path:"/coming-soon",element:f.jsx(vb,{})}),f.jsx(Ya,{path:"*",element:f.jsx(xb,{})})]})}),e0=document.getElementById("root");if(!e0)throw new Error("Could not find root element to mount to");const _b=Dp.createRoot(e0);_b.render(f.jsx(Eb,{}));
|