12 lines
333 KiB
JavaScript
12 lines
333 KiB
JavaScript
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function r(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=r(f);fetch(f.href,d)}})();function n0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var bc={exports:{}},ni={};var nm;function l0(){if(nm)return ni;nm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:l,type:c,key:h,ref:f!==void 0?f:null,props:d}}return ni.Fragment=u,ni.jsx=r,ni.jsxs=r,ni}var lm;function i0(){return lm||(lm=1,bc.exports=l0()),bc.exports}var g=i0(),xc={exports:{}},re={};var im;function u0(){if(im)return re;im=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),_=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=_&&w[_]||w["@@iterator"],typeof w=="function"?w:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,D={};function k(w,H,Q){this.props=w,this.context=H,this.refs=D,this.updater=Q||Y}k.prototype.isReactComponent={},k.prototype.setState=function(w,H){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,H,"setState")},k.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=k.prototype;function Z(w,H,Q){this.props=w,this.context=H,this.refs=D,this.updater=Q||Y}var P=Z.prototype=new G;P.constructor=Z,q(P,k.prototype),P.isPureReactComponent=!0;var ae=Array.isArray;function te(){}var I={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function we(w,H,Q){var V=Q.ref;return{$$typeof:l,type:w,key:H,ref:V!==void 0?V:null,props:Q}}function Ze(w,H){return we(w.type,H,w.props)}function ne(w){return typeof w=="object"&&w!==null&&w.$$typeof===l}function ge(w){var H={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(Q){return H[Q]})}var Xt=/\/+/g;function mt(w,H){return typeof w=="object"&&w!==null&&w.key!=null?ge(""+w.key):H.toString(36)}function Ke(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(te,te):(w.status="pending",w.then(function(H){w.status==="pending"&&(w.status="fulfilled",w.value=H)},function(H){w.status==="pending"&&(w.status="rejected",w.reason=H)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,H,Q,V,ue){var oe=typeof w;(oe==="undefined"||oe==="boolean")&&(w=null);var ie=!1;if(w===null)ie=!0;else switch(oe){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(w.$$typeof){case l:case u:ie=!0;break;case S:return ie=w._init,M(ie(w._payload),H,Q,V,ue)}}if(ie)return ue=ue(w),ie=V===""?"."+mt(w,0):V,ae(ue)?(Q="",ie!=null&&(Q=ie.replace(Xt,"$&/")+"/"),M(ue,H,Q,"",function(Vt){return Vt})):ue!=null&&(ne(ue)&&(ue=Ze(ue,Q+(ue.key==null||w&&w.key===ue.key?"":(""+ue.key).replace(Xt,"$&/")+"/")+ie)),H.push(ue)),1;ie=0;var Je=V===""?".":V+":";if(ae(w))for(var De=0;De<w.length;De++)V=w[De],oe=Je+mt(V,De),ie+=M(V,H,Q,oe,ue);else if(De=z(w),typeof De=="function")for(w=De.call(w),De=0;!(V=w.next()).done;)V=V.value,oe=Je+mt(V,De++),ie+=M(V,H,Q,oe,ue);else if(oe==="object"){if(typeof w.then=="function")return M(Ke(w),H,Q,V,ue);throw H=String(w),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ie}function X(w,H,Q){if(w==null)return w;var V=[],ue=0;return M(w,V,"","",function(oe){return H.call(Q,oe,ue++)}),V}function B(w){if(w._status===-1){var H=w._result;H=H(),H.then(function(Q){(w._status===0||w._status===-1)&&(w._status=1,w._result=Q)},function(Q){(w._status===0||w._status===-1)&&(w._status=2,w._result=Q)}),w._status===-1&&(w._status=0,w._result=H)}if(w._status===1)return w._result.default;throw w._result}var xe=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Ee={map:X,forEach:function(w,H,Q){X(w,function(){H.apply(this,arguments)},Q)},count:function(w){var H=0;return X(w,function(){H++}),H},toArray:function(w){return X(w,function(H){return H})||[]},only:function(w){if(!ne(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return re.Activity=x,re.Children=Ee,re.Component=k,re.Fragment=r,re.Profiler=f,re.PureComponent=Z,re.StrictMode=c,re.Suspense=y,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,re.__COMPILER_RUNTIME={__proto__:null,c:function(w){return I.H.useMemoCache(w)}},re.cache=function(w){return function(){return w.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(w,H,Q){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var V=q({},w.props),ue=w.key;if(H!=null)for(oe in H.key!==void 0&&(ue=""+H.key),H)!K.call(H,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&H.ref===void 0||(V[oe]=H[oe]);var oe=arguments.length-2;if(oe===1)V.children=Q;else if(1<oe){for(var ie=Array(oe),Je=0;Je<oe;Je++)ie[Je]=arguments[Je+2];V.children=ie}return we(w.type,ue,V)},re.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},re.createElement=function(w,H,Q){var V,ue={},oe=null;if(H!=null)for(V in H.key!==void 0&&(oe=""+H.key),H)K.call(H,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(ue[V]=H[V]);var ie=arguments.length-2;if(ie===1)ue.children=Q;else if(1<ie){for(var Je=Array(ie),De=0;De<ie;De++)Je[De]=arguments[De+2];ue.children=Je}if(w&&w.defaultProps)for(V in ie=w.defaultProps,ie)ue[V]===void 0&&(ue[V]=ie[V]);return we(w,oe,ue)},re.createRef=function(){return{current:null}},re.forwardRef=function(w){return{$$typeof:p,render:w}},re.isValidElement=ne,re.lazy=function(w){return{$$typeof:S,_payload:{_status:-1,_result:w},_init:B}},re.memo=function(w,H){return{$$typeof:v,type:w,compare:H===void 0?null:H}},re.startTransition=function(w){var H=I.T,Q={};I.T=Q;try{var V=w(),ue=I.S;ue!==null&&ue(Q,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(te,xe)}catch(oe){xe(oe)}finally{H!==null&&Q.types!==null&&(H.types=Q.types),I.T=H}},re.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},re.use=function(w){return I.H.use(w)},re.useActionState=function(w,H,Q){return I.H.useActionState(w,H,Q)},re.useCallback=function(w,H){return I.H.useCallback(w,H)},re.useContext=function(w){return I.H.useContext(w)},re.useDebugValue=function(){},re.useDeferredValue=function(w,H){return I.H.useDeferredValue(w,H)},re.useEffect=function(w,H){return I.H.useEffect(w,H)},re.useEffectEvent=function(w){return I.H.useEffectEvent(w)},re.useId=function(){return I.H.useId()},re.useImperativeHandle=function(w,H,Q){return I.H.useImperativeHandle(w,H,Q)},re.useInsertionEffect=function(w,H){return I.H.useInsertionEffect(w,H)},re.useLayoutEffect=function(w,H){return I.H.useLayoutEffect(w,H)},re.useMemo=function(w,H){return I.H.useMemo(w,H)},re.useOptimistic=function(w,H){return I.H.useOptimistic(w,H)},re.useReducer=function(w,H,Q){return I.H.useReducer(w,H,Q)},re.useRef=function(w){return I.H.useRef(w)},re.useState=function(w){return I.H.useState(w)},re.useSyncExternalStore=function(w,H,Q){return I.H.useSyncExternalStore(w,H,Q)},re.useTransition=function(){return I.H.useTransition()},re.version="19.2.4",re}var um;function Qc(){return um||(um=1,xc.exports=u0()),xc.exports}var O=Qc();const Lu=n0(O);var Sc={exports:{}},li={},Ec={exports:{}},wc={};var rm;function r0(){return rm||(rm=1,(function(l){function u(M,X){var B=M.length;M.push(X);e:for(;0<B;){var xe=B-1>>>1,Ee=M[xe];if(0<f(Ee,X))M[xe]=X,M[B]=Ee,B=xe;else break e}}function r(M){return M.length===0?null:M[0]}function c(M){if(M.length===0)return null;var X=M[0],B=M.pop();if(B!==X){M[0]=B;e:for(var xe=0,Ee=M.length,w=Ee>>>1;xe<w;){var H=2*(xe+1)-1,Q=M[H],V=H+1,ue=M[V];if(0>f(Q,B))V<Ee&&0>f(ue,Q)?(M[xe]=ue,M[V]=B,xe=V):(M[xe]=Q,M[H]=B,xe=H);else if(V<Ee&&0>f(ue,B))M[xe]=ue,M[V]=B,xe=V;else break e}}return X}function f(M,X){var B=M.sortIndex-X.sortIndex;return B!==0?B:M.id-X.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();l.unstable_now=function(){return h.now()-p}}var y=[],v=[],S=1,x=null,_=3,z=!1,Y=!1,q=!1,D=!1,k=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function P(M){for(var X=r(v);X!==null;){if(X.callback===null)c(v);else if(X.startTime<=M)c(v),X.sortIndex=X.expirationTime,u(y,X);else break;X=r(v)}}function ae(M){if(q=!1,P(M),!Y)if(r(y)!==null)Y=!0,te||(te=!0,ge());else{var X=r(v);X!==null&&Ke(ae,X.startTime-M)}}var te=!1,I=-1,K=5,we=-1;function Ze(){return D?!0:!(l.unstable_now()-we<K)}function ne(){if(D=!1,te){var M=l.unstable_now();we=M;var X=!0;try{e:{Y=!1,q&&(q=!1,G(I),I=-1),z=!0;var B=_;try{t:{for(P(M),x=r(y);x!==null&&!(x.expirationTime>M&&Ze());){var xe=x.callback;if(typeof xe=="function"){x.callback=null,_=x.priorityLevel;var Ee=xe(x.expirationTime<=M);if(M=l.unstable_now(),typeof Ee=="function"){x.callback=Ee,P(M),X=!0;break t}x===r(y)&&c(y),P(M)}else c(y);x=r(y)}if(x!==null)X=!0;else{var w=r(v);w!==null&&Ke(ae,w.startTime-M),X=!1}}break e}finally{x=null,_=B,z=!1}X=void 0}}finally{X?ge():te=!1}}}var ge;if(typeof Z=="function")ge=function(){Z(ne)};else if(typeof MessageChannel<"u"){var Xt=new MessageChannel,mt=Xt.port2;Xt.port1.onmessage=ne,ge=function(){mt.postMessage(null)}}else ge=function(){k(ne,0)};function Ke(M,X){I=k(function(){M(l.unstable_now())},X)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(M){M.callback=null},l.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<M?Math.floor(1e3/M):5},l.unstable_getCurrentPriorityLevel=function(){return _},l.unstable_next=function(M){switch(_){case 1:case 2:case 3:var X=3;break;default:X=_}var B=_;_=X;try{return M()}finally{_=B}},l.unstable_requestPaint=function(){D=!0},l.unstable_runWithPriority=function(M,X){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var B=_;_=M;try{return X()}finally{_=B}},l.unstable_scheduleCallback=function(M,X,B){var xe=l.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?xe+B:xe):B=xe,M){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=B+Ee,M={id:S++,callback:X,priorityLevel:M,startTime:B,expirationTime:Ee,sortIndex:-1},B>xe?(M.sortIndex=B,u(v,M),r(y)===null&&M===r(v)&&(q?(G(I),I=-1):q=!0,Ke(ae,B-xe))):(M.sortIndex=Ee,u(y,M),Y||z||(Y=!0,te||(te=!0,ge()))),M},l.unstable_shouldYield=Ze,l.unstable_wrapCallback=function(M){var X=_;return function(){var B=_;_=X;try{return M.apply(this,arguments)}finally{_=B}}}})(wc)),wc}var sm;function s0(){return sm||(sm=1,Ec.exports=r0()),Ec.exports}var Tc={exports:{}},nt={};var cm;function c0(){if(cm)return nt;cm=1;var l=Qc();function u(y){var v="https://react.dev/errors/"+y;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)v+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+v+" 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(u(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,v,S){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:x==null?null:""+x,children:y,containerInfo:v,implementation:S}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,v){if(y==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,nt.createPortal=function(y,v){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(u(299));return d(y,v,null,S)},nt.flushSync=function(y){var v=h.T,S=c.p;try{if(h.T=null,c.p=2,y)return y()}finally{h.T=v,c.p=S,c.d.f()}},nt.preconnect=function(y,v){typeof y=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(y,v))},nt.prefetchDNS=function(y){typeof y=="string"&&c.d.D(y)},nt.preinit=function(y,v){if(typeof y=="string"&&v&&typeof v.as=="string"){var S=v.as,x=p(S,v.crossOrigin),_=typeof v.integrity=="string"?v.integrity:void 0,z=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;S==="style"?c.d.S(y,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:x,integrity:_,fetchPriority:z}):S==="script"&&c.d.X(y,{crossOrigin:x,integrity:_,fetchPriority:z,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},nt.preinitModule=function(y,v){if(typeof y=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var S=p(v.as,v.crossOrigin);c.d.M(y,{crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(y)},nt.preload=function(y,v){if(typeof y=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var S=v.as,x=p(S,v.crossOrigin);c.d.L(y,S,{crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},nt.preloadModule=function(y,v){if(typeof y=="string")if(v){var S=p(v.as,v.crossOrigin);c.d.m(y,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(y)},nt.requestFormReset=function(y){c.d.r(y)},nt.unstable_batchedUpdates=function(y,v){return y(v)},nt.useFormState=function(y,v,S){return h.H.useFormState(y,v,S)},nt.useFormStatus=function(){return h.H.useHostTransitionStatus()},nt.version="19.2.4",nt}var om;function o0(){if(om)return Tc.exports;om=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Tc.exports=c0(),Tc.exports}var fm;function f0(){if(fm)return li;fm=1;var l=s0(),u=Qc(),r=o0();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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(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 h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===a)return y(i),e;if(s===n)return y(i),t;s=s.sibling}throw Error(c(188))}if(a.return!==n.return)a=i,n=s;else{for(var o=!1,m=i.child;m;){if(m===a){o=!0,a=i,n=s;break}if(m===n){o=!0,n=i,a=s;break}m=m.sibling}if(!o){for(m=s.child;m;){if(m===a){o=!0,a=s,n=i;break}if(m===n){o=!0,n=s,a=i;break}m=m.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==n)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),we=Symbol.for("react.activity"),Ze=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ge(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Xt=Symbol.for("react.client.reference");function mt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case k:return"Profiler";case D:return"StrictMode";case ae:return"Suspense";case te:return"SuspenseList";case we:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case Z:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return t=e.displayName||null,t!==null?t:mt(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return mt(e(t))}catch{}}return null}var Ke=Array.isArray,M=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},xe=[],Ee=-1;function w(e){return{current:e}}function H(e){0>Ee||(e.current=xe[Ee],xe[Ee]=null,Ee--)}function Q(e,t){Ee++,xe[Ee]=e.current,e.current=t}var V=w(null),ue=w(null),oe=w(null),ie=w(null);function Je(e,t){switch(Q(oe,t),Q(ue,e),Q(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nh(t),e=jh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(V),Q(V,e)}function De(){H(V),H(ue),H(oe)}function Vt(e){e.memoizedState!==null&&Q(ie,e);var t=V.current,a=jh(t,e.type);t!==a&&(Q(ue,e),Q(V,a))}function Sa(e){ue.current===e&&(H(V),H(ue)),ie.current===e&&(H(ie),Il._currentValue=B)}var Ea,eo;function Wa(e){if(Ea===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ea=t&&t[1]||"",eo=-1<a.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+Ea+e+eo}var ar=!1;function nr(e,t){if(!e||ar)return"";ar=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(C){var A=C}Reflect.construct(e,[],L)}else{try{L.call()}catch(C){A=C}e.call(L.prototype)}}else{try{throw Error()}catch(C){A=C}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(C){if(C&&A&&typeof C.stack=="string")return[C.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),o=s[0],m=s[1];if(o&&m){var b=o.split(`
|
|
`),j=m.split(`
|
|
`);for(i=n=0;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;for(;i<j.length&&!j[i].includes("DetermineComponentFrameRoot");)i++;if(n===b.length||i===j.length)for(n=b.length-1,i=j.length-1;1<=n&&0<=i&&b[n]!==j[i];)i--;for(;1<=n&&0<=i;n--,i--)if(b[n]!==j[i]){if(n!==1||i!==1)do if(n--,i--,0>i||b[n]!==j[i]){var R=`
|
|
`+b[n].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=n&&0<=i);break}}}finally{ar=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function _y(e,t){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return e.child!==t&&t!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return nr(e.type,!1);case 11:return nr(e.type.render,!1);case 1:return nr(e.type,!0);case 31:return Wa("Activity");default:return""}}function to(e){try{var t="",a=null;do t+=_y(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var lr=Object.prototype.hasOwnProperty,ir=l.unstable_scheduleCallback,ur=l.unstable_cancelCallback,Uy=l.unstable_shouldYield,Hy=l.unstable_requestPaint,yt=l.unstable_now,Ly=l.unstable_getCurrentPriorityLevel,ao=l.unstable_ImmediatePriority,no=l.unstable_UserBlockingPriority,xi=l.unstable_NormalPriority,qy=l.unstable_LowPriority,lo=l.unstable_IdlePriority,By=l.log,Yy=l.unstable_setDisableYieldValue,fl=null,gt=null;function wa(e){if(typeof By=="function"&&Yy(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(fl,e)}catch{}}var pt=Math.clz32?Math.clz32:Gy,ky=Math.log,Qy=Math.LN2;function Gy(e){return e>>>=0,e===0?32:31-(ky(e)/Qy|0)|0}var Si=256,Ei=262144,wi=4194304;function $a(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 Ti(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~s,n!==0?i=$a(n):(o&=m,o!==0?i=$a(o):a||(a=m&~e,a!==0&&(i=$a(a))))):(m=n&~s,m!==0?i=$a(m):o!==0?i=$a(o):a||(a=n&~e,a!==0&&(i=$a(a)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:i}function dl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xy(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 io(){var e=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),e}function rr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vy(e,t,a,n,i,s){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 m=e.entanglements,b=e.expirationTimes,j=e.hiddenUpdates;for(a=o&~a;0<a;){var R=31-pt(a),L=1<<R;m[R]=0,b[R]=-1;var A=j[R];if(A!==null)for(j[R]=null,R=0;R<A.length;R++){var C=A[R];C!==null&&(C.lane&=-536870913)}a&=~L}n!==0&&uo(e,n,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function uo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-pt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function ro(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-pt(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function so(e,t){var a=t&-t;return a=(a&42)!==0?1:sr(a),(a&(e.suspendedLanes|t))!==0?0:a}function sr(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 cr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function co(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Wh(e.type))}function oo(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Ta=Math.random().toString(36).slice(2),Pe="__reactFiber$"+Ta,rt="__reactProps$"+Ta,bn="__reactContainer$"+Ta,or="__reactEvents$"+Ta,Zy="__reactListeners$"+Ta,Ky="__reactHandles$"+Ta,fo="__reactResources$"+Ta,ml="__reactMarker$"+Ta;function fr(e){delete e[Pe],delete e[rt],delete e[or],delete e[Zy],delete e[Ky]}function xn(e){var t=e[Pe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[Pe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=_h(e);e!==null;){if(a=e[Pe])return a;e=_h(e)}return t}e=a,a=e.parentNode}return null}function Sn(e){if(e=e[Pe]||e[bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function En(e){var t=e[fo];return t||(t=e[fo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[ml]=!0}var ho=new Set,mo={};function Pa(e,t){wn(e,t),wn(e+"Capture",t)}function wn(e,t){for(mo[e]=t,e=0;e<t.length;e++)ho.add(t[e])}var Jy=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]*$"),yo={},go={};function Fy(e){return lr.call(go,e)?!0:lr.call(yo,e)?!1:Jy.test(e)?go[e]=!0:(yo[e]=!0,!1)}function Oi(e,t,a){if(Fy(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ni(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 Pt(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function po(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wy(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){if(!e._valueTracker){var t=po(e)?"checked":"value";e._valueTracker=Wy(e,t,""+e[t])}}function vo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=po(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function ji(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 $y=/[\n"\\]/g;function At(e){return e.replace($y,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hr(e,t,a,n,i,s,o,m){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=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?mr(e,o,jt(t)):a!=null?mr(e,o,jt(a)):n!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+jt(m):e.removeAttribute("name")}function bo(e,t,a,n,i,s,o,m){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){dr(e);return}a=a!=null?""+jt(a):"",t=t!=null?""+jt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),dr(e)}function mr(e,t,a){t==="number"&&ji(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Tn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+jt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function xo(e,t,a){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+jt(a):""}function So(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(Ke(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=jt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),dr(e)}function On(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Py=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 Eo(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Py.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function wo(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&Eo(e,i,n)}else for(var s in t)t.hasOwnProperty(s)&&Eo(e,s,t[s])}function yr(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 Iy=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"]]),eg=/^[\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 Ai(e){return eg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var gr=null;function pr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nn=null,jn=null;function To(e){var t=Sn(e);if(t&&(e=t.stateNode)){var a=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(hr(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="'+At(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[rt]||null;if(!i)throw Error(c(90));hr(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&vo(n)}break e;case"textarea":xo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Tn(e,!!a.multiple,t,!1)}}}var vr=!1;function Oo(e,t,a){if(vr)return e(t,a);vr=!0;try{var n=e(t);return n}finally{if(vr=!1,(Nn!==null||jn!==null)&&(yu(),Nn&&(t=Nn,e=jn,jn=Nn=null,To(t),e)))for(t=0;t<e.length;t++)To(e[t])}}function gl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[rt]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(ea)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){br=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{br=!1}var Oa=null,xr=null,Ci=null;function No(){if(Ci)return Ci;var e,t=xr,a=t.length,n,i="value"in Oa?Oa.value:Oa.textContent,s=i.length;for(e=0;e<a&&t[e]===i[e];e++);var o=a-e;for(n=1;n<=o&&t[a-n]===i[s-n];n++);return Ci=i.slice(e,1<n?1-n:void 0)}function Mi(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 Di(){return!0}function jo(){return!1}function st(e){function t(a,n,i,s,o){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(s):s[m]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Di:jo,this.isPropagationStopped=jo,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=Di)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Di)},persist:function(){},isPersistent:Di}),t}var Ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zi=st(Ia),vl=x({},Ia,{view:0,detail:0}),tg=st(vl),Sr,Er,bl,Ri=x({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tr,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!==bl&&(bl&&e.type==="mousemove"?(Sr=e.screenX-bl.screenX,Er=e.screenY-bl.screenY):Er=Sr=0,bl=e),Sr)},movementY:function(e){return"movementY"in e?e.movementY:Er}}),Ao=st(Ri),ag=x({},Ri,{dataTransfer:0}),ng=st(ag),lg=x({},vl,{relatedTarget:0}),wr=st(lg),ig=x({},Ia,{animationName:0,elapsedTime:0,pseudoElement:0}),ug=st(ig),rg=x({},Ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sg=st(rg),cg=x({},Ia,{data:0}),Co=st(cg),og={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fg={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"},dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dg[e])?!!t[e]:!1}function Tr(){return hg}var mg=x({},vl,{key:function(e){if(e.key){var t=og[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tr,charCode:function(e){return e.type==="keypress"?Mi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yg=st(mg),gg=x({},Ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mo=st(gg),pg=x({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tr}),vg=st(pg),bg=x({},Ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),xg=st(bg),Sg=x({},Ri,{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}),Eg=st(Sg),wg=x({},Ia,{newState:0,oldState:0}),Tg=st(wg),Og=[9,13,27,32],Or=ea&&"CompositionEvent"in window,xl=null;ea&&"documentMode"in document&&(xl=document.documentMode);var Ng=ea&&"TextEvent"in window&&!xl,Do=ea&&(!Or||xl&&8<xl&&11>=xl),zo=" ",Ro=!1;function _o(e,t){switch(e){case"keyup":return Og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var An=!1;function jg(e,t){switch(e){case"compositionend":return Uo(t);case"keypress":return t.which!==32?null:(Ro=!0,zo);case"textInput":return e=t.data,e===zo&&Ro?null:e;default:return null}}function Ag(e,t){if(An)return e==="compositionend"||!Or&&_o(e,t)?(e=No(),Ci=xr=Oa=null,An=!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 Do&&t.locale!=="ko"?null:t.data;default:return null}}var Cg={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 Ho(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cg[e.type]:t==="textarea"}function Lo(e,t,a,n){Nn?jn?jn.push(n):jn=[n]:Nn=n,t=Eu(t,"onChange"),0<t.length&&(a=new zi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Sl=null,El=null;function Mg(e){xh(e,0)}function _i(e){var t=yl(e);if(vo(t))return e}function qo(e,t){if(e==="change")return t}var Bo=!1;if(ea){var Nr;if(ea){var jr="oninput"in document;if(!jr){var Yo=document.createElement("div");Yo.setAttribute("oninput","return;"),jr=typeof Yo.oninput=="function"}Nr=jr}else Nr=!1;Bo=Nr&&(!document.documentMode||9<document.documentMode)}function ko(){Sl&&(Sl.detachEvent("onpropertychange",Qo),El=Sl=null)}function Qo(e){if(e.propertyName==="value"&&_i(El)){var t=[];Lo(t,El,e,pr(e)),Oo(Mg,t)}}function Dg(e,t,a){e==="focusin"?(ko(),Sl=t,El=a,Sl.attachEvent("onpropertychange",Qo)):e==="focusout"&&ko()}function zg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _i(El)}function Rg(e,t){if(e==="click")return _i(t)}function _g(e,t){if(e==="input"||e==="change")return _i(t)}function Ug(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Ug;function wl(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!lr.call(t,i)||!vt(e[i],t[i]))return!1}return!0}function Go(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xo(e,t){var a=Go(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Go(a)}}function Vo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ji(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=ji(e.document)}return t}function Ar(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 Hg=ea&&"documentMode"in document&&11>=document.documentMode,Cn=null,Cr=null,Tl=null,Mr=!1;function Ko(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Mr||Cn==null||Cn!==ji(n)||(n=Cn,"selectionStart"in n&&Ar(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Tl&&wl(Tl,n)||(Tl=n,n=Eu(Cr,"onSelect"),0<n.length&&(t=new zi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Cn)))}function en(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Mn={animationend:en("Animation","AnimationEnd"),animationiteration:en("Animation","AnimationIteration"),animationstart:en("Animation","AnimationStart"),transitionrun:en("Transition","TransitionRun"),transitionstart:en("Transition","TransitionStart"),transitioncancel:en("Transition","TransitionCancel"),transitionend:en("Transition","TransitionEnd")},Dr={},Jo={};ea&&(Jo=document.createElement("div").style,"AnimationEvent"in window||(delete Mn.animationend.animation,delete Mn.animationiteration.animation,delete Mn.animationstart.animation),"TransitionEvent"in window||delete Mn.transitionend.transition);function tn(e){if(Dr[e])return Dr[e];if(!Mn[e])return e;var t=Mn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Jo)return Dr[e]=t[a];return e}var Fo=tn("animationend"),Wo=tn("animationiteration"),$o=tn("animationstart"),Lg=tn("transitionrun"),qg=tn("transitionstart"),Bg=tn("transitioncancel"),Po=tn("transitionend"),Io=new Map,zr="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(" ");zr.push("scrollEnd");function Bt(e,t){Io.set(e,t),Pa(t,[e])}var Ui=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)},Ct=[],Dn=0,Rr=0;function Hi(){for(var e=Dn,t=Rr=Dn=0;t<e;){var a=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var i=Ct[t];Ct[t++]=null;var s=Ct[t];if(Ct[t++]=null,n!==null&&i!==null){var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}s!==0&&ef(a,i,s)}}function Li(e,t,a,n){Ct[Dn++]=e,Ct[Dn++]=t,Ct[Dn++]=a,Ct[Dn++]=n,Rr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function _r(e,t,a,n){return Li(e,t,a,n),qi(e)}function an(e,t){return Li(e,null,null,t),qi(e)}function ef(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,s=e.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-pt(a),e=s.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),s):null}function qi(e){if(50<Zl)throw Zl=0,Gs=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zn={};function Yg(e,t,a,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,n){return new Yg(e,t,a,n)}function Ur(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ta(e,t){var a=e.alternate;return a===null?(a=bt(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 tf(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 Bi(e,t,a,n,i,s){var o=0;if(n=e,typeof e=="function")Ur(e)&&(o=1);else if(typeof e=="string")o=Vp(e,a,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case we:return e=bt(31,a,t,i),e.elementType=we,e.lanes=s,e;case q:return nn(a.children,i,s,t);case D:o=8,i|=24;break;case k:return e=bt(12,a,t,i|2),e.elementType=k,e.lanes=s,e;case ae:return e=bt(13,a,t,i),e.elementType=ae,e.lanes=s,e;case te:return e=bt(19,a,t,i),e.elementType=te,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:o=10;break e;case G:o=9;break e;case P:o=11;break e;case I:o=14;break e;case K:o=16,n=null;break e}o=29,a=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=bt(o,a,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function nn(e,t,a,n){return e=bt(7,e,n,t),e.lanes=a,e}function Hr(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function af(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Lr(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nf=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var a=nf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:to(t)},nf.set(e,t),t)}return{value:e,source:t,stack:to(t)}}var Rn=[],_n=0,Yi=null,Ol=0,Dt=[],zt=0,Na=null,Zt=1,Kt="";function aa(e,t){Rn[_n++]=Ol,Rn[_n++]=Yi,Yi=e,Ol=t}function lf(e,t,a){Dt[zt++]=Zt,Dt[zt++]=Kt,Dt[zt++]=Na,Na=e;var n=Zt;e=Kt;var i=32-pt(n)-1;n&=~(1<<i),a+=1;var s=32-pt(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Zt=1<<32-pt(t)+i|a<<i|n,Kt=s+e}else Zt=1<<s|a<<i|n,Kt=e}function qr(e){e.return!==null&&(aa(e,1),lf(e,1,0))}function Br(e){for(;e===Yi;)Yi=Rn[--_n],Rn[_n]=null,Ol=Rn[--_n],Rn[_n]=null;for(;e===Na;)Na=Dt[--zt],Dt[zt]=null,Kt=Dt[--zt],Dt[zt]=null,Zt=Dt[--zt],Dt[zt]=null}function uf(e,t){Dt[zt++]=Zt,Dt[zt++]=Kt,Dt[zt++]=Na,Zt=t.id,Kt=t.overflow,Na=e}var Ie=null,ze=null,pe=!1,ja=null,Rt=!1,Yr=Error(c(519));function Aa(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nl(Mt(t,e)),Yr}function rf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Pe]=e,t[rt]=n,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<Jl.length;a++)he(Jl[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),bo(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),So(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Th(t.textContent,a)?(n.popover!=null&&(he("beforetoggle",t),he("toggle",t)),n.onScroll!=null&&he("scroll",t),n.onScrollEnd!=null&&he("scrollend",t),n.onClick!=null&&(t.onclick=It),t=!0):t=!1,t||Aa(e,!0)}function sf(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:Ie=Ie.return}}function Un(e){if(e!==Ie)return!1;if(!pe)return sf(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||lc(e.type,e.memoizedProps)),a=!a),a&&ze&&Aa(e),sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));ze=Rh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));ze=Rh(e)}else t===27?(t=ze,Qa(e.type)?(e=cc,cc=null,ze=e):ze=t):ze=Ie?Ut(e.stateNode.nextSibling):null;return!0}function ln(){ze=Ie=null,pe=!1}function kr(){var e=ja;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),ja=null),e}function Nl(e){ja===null?ja=[e]:ja.push(e)}var Qr=w(null),un=null,na=null;function Ca(e,t,a){Q(Qr,t._currentValue),t._currentValue=a}function la(e){e._currentValue=Qr.current,H(Qr)}function Gr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Xr(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;e:for(;s!==null;){var m=s;s=i;for(var b=0;b<t.length;b++)if(m.context===t[b]){s.lanes|=a,m=s.alternate,m!==null&&(m.lanes|=a),Gr(s.return,a,e),n||(o=null);break e}s=m.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(c(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),Gr(o,a,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Hn(e,t,a,n){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var m=i.type;vt(i.pendingProps.value,o.value)||(e!==null?e.push(m):e=[m])}}else if(i===ie.current){if(o=i.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Il):e=[Il])}i=i.return}e!==null&&Xr(t,e,a,n),t.flags|=262144}function ki(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rn(e){un=e,na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function et(e){return cf(un,e)}function Qi(e,t){return un===null&&rn(e),cf(e,t)}function cf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},na===null){if(e===null)throw Error(c(308));na=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else na=na.next=t;return a}var kg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Qg=l.unstable_scheduleCallback,Gg=l.unstable_NormalPriority,Ye={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vr(){return{controller:new kg,data:new Map,refCount:0}}function jl(e){e.refCount--,e.refCount===0&&Qg(Gg,function(){e.controller.abort()})}var Al=null,Zr=0,Ln=0,qn=null;function Xg(e,t){if(Al===null){var a=Al=[];Zr=0,Ln=Fs(),qn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Zr++,t.then(of,of),t}function of(){if(--Zr===0&&Al!==null){qn!==null&&(qn.status="fulfilled");var e=Al;Al=null,Ln=0,qn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vg(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var ff=M.S;M.S=function(e,t){Jd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xg(e,t),ff!==null&&ff(e,t)};var sn=w(null);function Kr(){var e=sn.current;return e!==null?e:Me.pooledCache}function Gi(e,t){t===null?Q(sn,sn.current):Q(sn,t.pool)}function df(){var e=Kr();return e===null?null:{parent:Ye._currentValue,pool:e}}var Bn=Error(c(460)),Jr=Error(c(474)),Xi=Error(c(542)),Vi={then:function(){}};function hf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(It,It),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e;default:if(typeof t.status=="string")t.then(It,It);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e}throw on=t,Bn}}function cn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(on=a,Bn):a}}var on=null;function yf(){if(on===null)throw Error(c(459));var e=on;return on=null,e}function gf(e){if(e===Bn||e===Xi)throw Error(c(483))}var Yn=null,Cl=0;function Zi(e){var t=Cl;return Cl+=1,Yn===null&&(Yn=[]),mf(Yn,e,t)}function Ml(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ki(e,t){throw t.$$typeof===_?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function pf(e){function t(T,E){if(e){var N=T.deletions;N===null?(T.deletions=[E],T.flags|=16):N.push(E)}}function a(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function n(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function i(T,E){return T=ta(T,E),T.index=0,T.sibling=null,T}function s(T,E,N){return T.index=N,e?(N=T.alternate,N!==null?(N=N.index,N<E?(T.flags|=67108866,E):N):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function o(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,E,N,U){return E===null||E.tag!==6?(E=Hr(N,T.mode,U),E.return=T,E):(E=i(E,N),E.return=T,E)}function b(T,E,N,U){var ee=N.type;return ee===q?R(T,E,N.props.children,U,N.key):E!==null&&(E.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===K&&cn(ee)===E.type)?(E=i(E,N.props),Ml(E,N),E.return=T,E):(E=Bi(N.type,N.key,N.props,null,T.mode,U),Ml(E,N),E.return=T,E)}function j(T,E,N,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==N.containerInfo||E.stateNode.implementation!==N.implementation?(E=Lr(N,T.mode,U),E.return=T,E):(E=i(E,N.children||[]),E.return=T,E)}function R(T,E,N,U,ee){return E===null||E.tag!==7?(E=nn(N,T.mode,U,ee),E.return=T,E):(E=i(E,N),E.return=T,E)}function L(T,E,N){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Hr(""+E,T.mode,N),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case z:return N=Bi(E.type,E.key,E.props,null,T.mode,N),Ml(N,E),N.return=T,N;case Y:return E=Lr(E,T.mode,N),E.return=T,E;case K:return E=cn(E),L(T,E,N)}if(Ke(E)||ge(E))return E=nn(E,T.mode,N,null),E.return=T,E;if(typeof E.then=="function")return L(T,Zi(E),N);if(E.$$typeof===Z)return L(T,Qi(T,E),N);Ki(T,E)}return null}function A(T,E,N,U){var ee=E!==null?E.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ee!==null?null:m(T,E,""+N,U);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case z:return N.key===ee?b(T,E,N,U):null;case Y:return N.key===ee?j(T,E,N,U):null;case K:return N=cn(N),A(T,E,N,U)}if(Ke(N)||ge(N))return ee!==null?null:R(T,E,N,U,null);if(typeof N.then=="function")return A(T,E,Zi(N),U);if(N.$$typeof===Z)return A(T,E,Qi(T,N),U);Ki(T,N)}return null}function C(T,E,N,U,ee){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return T=T.get(N)||null,m(E,T,""+U,ee);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return T=T.get(U.key===null?N:U.key)||null,b(E,T,U,ee);case Y:return T=T.get(U.key===null?N:U.key)||null,j(E,T,U,ee);case K:return U=cn(U),C(T,E,N,U,ee)}if(Ke(U)||ge(U))return T=T.get(N)||null,R(E,T,U,ee,null);if(typeof U.then=="function")return C(T,E,N,Zi(U),ee);if(U.$$typeof===Z)return C(T,E,N,Qi(E,U),ee);Ki(E,U)}return null}function J(T,E,N,U){for(var ee=null,ve=null,$=E,ce=E=0,ye=null;$!==null&&ce<N.length;ce++){$.index>ce?(ye=$,$=null):ye=$.sibling;var be=A(T,$,N[ce],U);if(be===null){$===null&&($=ye);break}e&&$&&be.alternate===null&&t(T,$),E=s(be,E,ce),ve===null?ee=be:ve.sibling=be,ve=be,$=ye}if(ce===N.length)return a(T,$),pe&&aa(T,ce),ee;if($===null){for(;ce<N.length;ce++)$=L(T,N[ce],U),$!==null&&(E=s($,E,ce),ve===null?ee=$:ve.sibling=$,ve=$);return pe&&aa(T,ce),ee}for($=n($);ce<N.length;ce++)ye=C($,T,ce,N[ce],U),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?ce:ye.key),E=s(ye,E,ce),ve===null?ee=ye:ve.sibling=ye,ve=ye);return e&&$.forEach(function(Ka){return t(T,Ka)}),pe&&aa(T,ce),ee}function le(T,E,N,U){if(N==null)throw Error(c(151));for(var ee=null,ve=null,$=E,ce=E=0,ye=null,be=N.next();$!==null&&!be.done;ce++,be=N.next()){$.index>ce?(ye=$,$=null):ye=$.sibling;var Ka=A(T,$,be.value,U);if(Ka===null){$===null&&($=ye);break}e&&$&&Ka.alternate===null&&t(T,$),E=s(Ka,E,ce),ve===null?ee=Ka:ve.sibling=Ka,ve=Ka,$=ye}if(be.done)return a(T,$),pe&&aa(T,ce),ee;if($===null){for(;!be.done;ce++,be=N.next())be=L(T,be.value,U),be!==null&&(E=s(be,E,ce),ve===null?ee=be:ve.sibling=be,ve=be);return pe&&aa(T,ce),ee}for($=n($);!be.done;ce++,be=N.next())be=C($,T,ce,be.value,U),be!==null&&(e&&be.alternate!==null&&$.delete(be.key===null?ce:be.key),E=s(be,E,ce),ve===null?ee=be:ve.sibling=be,ve=be);return e&&$.forEach(function(a0){return t(T,a0)}),pe&&aa(T,ce),ee}function Ce(T,E,N,U){if(typeof N=="object"&&N!==null&&N.type===q&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case z:e:{for(var ee=N.key;E!==null;){if(E.key===ee){if(ee=N.type,ee===q){if(E.tag===7){a(T,E.sibling),U=i(E,N.props.children),U.return=T,T=U;break e}}else if(E.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===K&&cn(ee)===E.type){a(T,E.sibling),U=i(E,N.props),Ml(U,N),U.return=T,T=U;break e}a(T,E);break}else t(T,E);E=E.sibling}N.type===q?(U=nn(N.props.children,T.mode,U,N.key),U.return=T,T=U):(U=Bi(N.type,N.key,N.props,null,T.mode,U),Ml(U,N),U.return=T,T=U)}return o(T);case Y:e:{for(ee=N.key;E!==null;){if(E.key===ee)if(E.tag===4&&E.stateNode.containerInfo===N.containerInfo&&E.stateNode.implementation===N.implementation){a(T,E.sibling),U=i(E,N.children||[]),U.return=T,T=U;break e}else{a(T,E);break}else t(T,E);E=E.sibling}U=Lr(N,T.mode,U),U.return=T,T=U}return o(T);case K:return N=cn(N),Ce(T,E,N,U)}if(Ke(N))return J(T,E,N,U);if(ge(N)){if(ee=ge(N),typeof ee!="function")throw Error(c(150));return N=ee.call(N),le(T,E,N,U)}if(typeof N.then=="function")return Ce(T,E,Zi(N),U);if(N.$$typeof===Z)return Ce(T,E,Qi(T,N),U);Ki(T,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,E!==null&&E.tag===6?(a(T,E.sibling),U=i(E,N),U.return=T,T=U):(a(T,E),U=Hr(N,T.mode,U),U.return=T,T=U),o(T)):a(T,E)}return function(T,E,N,U){try{Cl=0;var ee=Ce(T,E,N,U);return Yn=null,ee}catch($){if($===Bn||$===Xi)throw $;var ve=bt(29,$,null,T.mode);return ve.lanes=U,ve.return=T,ve}}}var fn=pf(!0),vf=pf(!1),Ma=!1;function Fr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wr(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 Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Se&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=qi(e),ef(e,null,a),t}return Li(e,n,t,a),qi(e)}function Dl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ro(e,a)}}function $r(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?i=s=t:s=s.next=t}else i=s=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Pr=!1;function zl(){if(Pr){var e=qn;if(e!==null)throw e}}function Rl(e,t,a,n){Pr=!1;var i=e.updateQueue;Ma=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,m=i.shared.pending;if(m!==null){i.shared.pending=null;var b=m,j=b.next;b.next=null,o===null?s=j:o.next=j,o=b;var R=e.alternate;R!==null&&(R=R.updateQueue,m=R.lastBaseUpdate,m!==o&&(m===null?R.firstBaseUpdate=j:m.next=j,R.lastBaseUpdate=b))}if(s!==null){var L=i.baseState;o=0,R=j=b=null,m=s;do{var A=m.lane&-536870913,C=A!==m.lane;if(C?(me&A)===A:(n&A)===A){A!==0&&A===Ln&&(Pr=!0),R!==null&&(R=R.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var J=e,le=m;A=t;var Ce=a;switch(le.tag){case 1:if(J=le.payload,typeof J=="function"){L=J.call(Ce,L,A);break e}L=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=le.payload,A=typeof J=="function"?J.call(Ce,L,A):J,A==null)break e;L=x({},L,A);break e;case 2:Ma=!0}}A=m.callback,A!==null&&(e.flags|=64,C&&(e.flags|=8192),C=i.callbacks,C===null?i.callbacks=[A]:C.push(A))}else C={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},R===null?(j=R=C,b=L):R=R.next=C,o|=A;if(m=m.next,m===null){if(m=i.shared.pending,m===null)break;C=m,m=C.next,C.next=null,i.lastBaseUpdate=C,i.shared.pending=null}}while(!0);R===null&&(b=L),i.baseState=b,i.firstBaseUpdate=j,i.lastBaseUpdate=R,s===null&&(i.shared.lanes=0),La|=o,e.lanes=o,e.memoizedState=L}}function bf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function xf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)bf(a[e],t)}var kn=w(null),Ji=w(0);function Sf(e,t){e=ha,Q(Ji,e),Q(kn,t),ha=e|t.baseLanes}function Ir(){Q(Ji,ha),Q(kn,kn.current)}function es(){ha=Ji.current,H(kn),H(Ji)}var xt=w(null),_t=null;function Ra(e){var t=e.alternate;Q(qe,qe.current&1),Q(xt,e),_t===null&&(t===null||kn.current!==null||t.memoizedState!==null)&&(_t=e)}function ts(e){Q(qe,qe.current),Q(xt,e),_t===null&&(_t=e)}function Ef(e){e.tag===22?(Q(qe,qe.current),Q(xt,e),_t===null&&(_t=e)):_a()}function _a(){Q(qe,qe.current),Q(xt,xt.current)}function St(e){H(xt),_t===e&&(_t=null),H(qe)}var qe=w(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||rc(a)||sc(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 ia=0,se=null,je=null,ke=null,Wi=!1,Qn=!1,dn=!1,$i=0,_l=0,Gn=null,Zg=0;function He(){throw Error(c(321))}function as(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vt(e[a],t[a]))return!1;return!0}function ns(e,t,a,n,i,s){return ia=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?id:vs,dn=!1,s=a(n,i),dn=!1,Qn&&(s=Tf(t,a,n,i)),wf(e),s}function wf(e){M.H=Ll;var t=je!==null&&je.next!==null;if(ia=0,ke=je=se=null,Wi=!1,_l=0,Gn=null,t)throw Error(c(300));e===null||Qe||(e=e.dependencies,e!==null&&ki(e)&&(Qe=!0))}function Tf(e,t,a,n){se=e;var i=0;do{if(Qn&&(Gn=null),_l=0,Qn=!1,25<=i)throw Error(c(301));if(i+=1,ke=je=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}M.H=ud,s=t(a,n)}while(Qn);return s}function Kg(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Ul(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(se.flags|=1024),t}function ls(){var e=$i!==0;return $i=0,e}function is(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function us(e){if(Wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wi=!1}ia=0,ke=je=se=null,Qn=!1,_l=$i=0,Gn=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?se.memoizedState=ke=e:ke=ke.next=e,ke}function Be(){if(je===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=ke===null?se.memoizedState:ke.next;if(t!==null)ke=t,je=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},ke===null?se.memoizedState=ke=e:ke=ke.next=e}return ke}function Pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ul(e){var t=_l;return _l+=1,Gn===null&&(Gn=[]),e=mf(Gn,e,t),t=se,(ke===null?t.memoizedState:ke.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?id:vs),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ul(e);if(e.$$typeof===Z)return et(e)}throw Error(c(438,String(e)))}function rs(e){var t=null,a=se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=se.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Pi(),se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Ze;return t.index++,a}function ua(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=Be();return ss(t,je,e)}function ss(e,t,a){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var i=e.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}t.baseQueue=i=s,n.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var m=o=null,b=null,j=t,R=!1;do{var L=j.lane&-536870913;if(L!==j.lane?(me&L)===L:(ia&L)===L){var A=j.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),L===Ln&&(R=!0);else if((ia&A)===A){j=j.next,A===Ln&&(R=!0);continue}else L={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},b===null?(m=b=L,o=s):b=b.next=L,se.lanes|=A,La|=A;L=j.action,dn&&a(s,L),s=j.hasEagerState?j.eagerState:a(s,L)}else A={lane:L,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},b===null?(m=b=A,o=s):b=b.next=A,se.lanes|=L,La|=L;j=j.next}while(j!==null&&j!==t);if(b===null?o=s:b.next=m,!vt(s,e.memoizedState)&&(Qe=!0,R&&(a=qn,a!==null)))throw a;e.memoizedState=s,e.baseState=o,e.baseQueue=b,n.lastRenderedState=s}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function cs(e){var t=Be(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,s=t.memoizedState;if(i!==null){a.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);vt(s,t.memoizedState)||(Qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,n]}function Of(e,t,a){var n=se,i=Be(),s=pe;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=t();var o=!vt((je||i).memoizedState,a);if(o&&(i.memoizedState=a,Qe=!0),i=i.queue,ds(Af.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,Xn(9,{destroy:void 0},jf.bind(null,n,i,a,t),null),Me===null)throw Error(c(349));s||(ia&127)!==0||Nf(n,t,a)}return a}function Nf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=se.updateQueue,t===null?(t=Pi(),se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function jf(e,t,a,n){t.value=a,t.getSnapshot=n,Cf(t)&&Mf(e)}function Af(e,t,a){return a(function(){Cf(t)&&Mf(e)})}function Cf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vt(e,a)}catch{return!0}}function Mf(e){var t=an(e,2);t!==null&&ht(t,e,2)}function os(e){var t=it();if(typeof e=="function"){var a=e;if(e=a(),dn){wa(!0);try{a()}finally{wa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function Df(e,t,a,n){return e.baseState=a,ss(e,je,typeof n=="function"?n:ua)}function Jg(e,t,a,n,i){if(nu(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};M.T!==null?a(!0):s.isTransition=!1,n(s),a=t.pending,a===null?(s.next=t.pending=s,zf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function zf(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var s=M.T,o={};M.T=o;try{var m=a(i,n),b=M.S;b!==null&&b(o,m),Rf(e,t,m)}catch(j){fs(e,t,j)}finally{s!==null&&o.types!==null&&(s.types=o.types),M.T=s}}else try{s=a(i,n),Rf(e,t,s)}catch(j){fs(e,t,j)}}function Rf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){_f(e,t,n)},function(n){return fs(e,t,n)}):_f(e,t,a)}function _f(e,t,a){t.status="fulfilled",t.value=a,Uf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,zf(e,a)))}function fs(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Uf(t),t=t.next;while(t!==n)}e.action=null}function Uf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Hf(e,t){return t}function Lf(e,t){if(pe){var a=Me.formState;if(a!==null){e:{var n=se;if(pe){if(ze){t:{for(var i=ze,s=Rt;i.nodeType!==8;){if(!s){i=null;break t}if(i=Ut(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){ze=Ut(i.nextSibling),n=i.data==="F!";break e}}Aa(n)}n=!1}n&&(t=a[0])}}return a=it(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hf,lastRenderedState:t},a.queue=n,a=ad.bind(null,se,n),n.dispatch=a,n=os(!1),s=ps.bind(null,se,!1,n.queue),n=it(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=Jg.bind(null,se,i,s,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function qf(e){var t=Be();return Bf(t,je,e)}function Bf(e,t,a){if(t=ss(e,t,Hf)[0],e=eu(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ul(t)}catch(o){throw o===Bn?Xi:o}else n=t;t=Be();var i=t.queue,s=i.dispatch;return a!==t.memoizedState&&(se.flags|=2048,Xn(9,{destroy:void 0},Fg.bind(null,i,a),null)),[n,s,e]}function Fg(e,t){e.action=t}function Yf(e){var t=Be(),a=je;if(a!==null)return Bf(t,a,e);Be(),t=t.memoizedState,a=Be();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Xn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=se.updateQueue,t===null&&(t=Pi(),se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function kf(){return Be().memoizedState}function tu(e,t,a,n){var i=it();se.flags|=e,i.memoizedState=Xn(1|t,{destroy:void 0},a,n===void 0?null:n)}function au(e,t,a,n){var i=Be();n=n===void 0?null:n;var s=i.memoizedState.inst;je!==null&&n!==null&&as(n,je.memoizedState.deps)?i.memoizedState=Xn(t,s,a,n):(se.flags|=e,i.memoizedState=Xn(1|t,s,a,n))}function Qf(e,t){tu(8390656,8,e,t)}function ds(e,t){au(2048,8,e,t)}function Wg(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Pi(),se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Gf(e){var t=Be().memoizedState;return Wg({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Xf(e,t){return au(4,2,e,t)}function Vf(e,t){return au(4,4,e,t)}function Zf(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 Kf(e,t,a){a=a!=null?a.concat([e]):null,au(4,4,Zf.bind(null,t,e),a)}function hs(){}function Jf(e,t){var a=Be();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&as(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Ff(e,t){var a=Be();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&as(t,n[1]))return n[0];if(n=e(),dn){wa(!0);try{e()}finally{wa(!1)}}return a.memoizedState=[n,t],n}function ms(e,t,a){return a===void 0||(ia&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Wd(),se.lanes|=e,La|=e,a)}function Wf(e,t,a,n){return vt(a,t)?a:kn.current!==null?(e=ms(e,a,n),vt(e,t)||(Qe=!0),e):(ia&42)===0||(ia&1073741824)!==0&&(me&261930)===0?(Qe=!0,e.memoizedState=a):(e=Wd(),se.lanes|=e,La|=e,t)}function $f(e,t,a,n,i){var s=X.p;X.p=s!==0&&8>s?s:8;var o=M.T,m={};M.T=m,ps(e,!1,t,a);try{var b=i(),j=M.S;if(j!==null&&j(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Vg(b,n);Hl(e,t,R,Tt(e))}else Hl(e,t,n,Tt(e))}catch(L){Hl(e,t,{then:function(){},status:"rejected",reason:L},Tt())}finally{X.p=s,o!==null&&m.types!==null&&(o.types=m.types),M.T=o}}function $g(){}function ys(e,t,a,n){if(e.tag!==5)throw Error(c(476));var i=Pf(e).queue;$f(e,i,t,B,a===null?$g:function(){return If(e),a(n)})}function Pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:B},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function If(e){var t=Pf(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},Tt())}function gs(){return et(Il)}function ed(){return Be().memoizedState}function td(){return Be().memoizedState}function Pg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Tt();e=Da(a);var n=za(t,e,a);n!==null&&(ht(n,t,a),Dl(n,t,a)),t={cache:Vr()},e.payload=t;return}t=t.return}}function Ig(e,t,a){var n=Tt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},nu(e)?nd(t,a):(a=_r(e,t,a,n),a!==null&&(ht(a,e,n),ld(a,t,n)))}function ad(e,t,a){var n=Tt();Hl(e,t,a,n)}function Hl(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(nu(e))nd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,m=s(o,a);if(i.hasEagerState=!0,i.eagerState=m,vt(m,o))return Li(e,t,i,0),Me===null&&Hi(),!1}catch{}if(a=_r(e,t,i,n),a!==null)return ht(a,e,n),ld(a,t,n),!0}return!1}function ps(e,t,a,n){if(n={lane:2,revertLane:Fs(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nu(e)){if(t)throw Error(c(479))}else t=_r(e,a,n,2),t!==null&&ht(t,e,2)}function nu(e){var t=e.alternate;return e===se||t!==null&&t===se}function nd(e,t){Qn=Wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ld(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ro(e,a)}}var Ll={readContext:et,use:Ii,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};Ll.useEffectEvent=He;var id={readContext:et,use:Ii,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Qf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,tu(4194308,4,Zf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){tu(4,2,e,t)},useMemo:function(e,t){var a=it();t=t===void 0?null:t;var n=e();if(dn){wa(!0);try{e()}finally{wa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=it();if(a!==void 0){var i=a(t);if(dn){wa(!0);try{a(t)}finally{wa(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Ig.bind(null,se,e),[n.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=os(e);var t=e.queue,a=ad.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:hs,useDeferredValue:function(e,t){var a=it();return ms(a,e,t)},useTransition:function(){var e=os(!1);return e=$f.bind(null,se,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=se,i=it();if(pe){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),Me===null)throw Error(c(349));(me&127)!==0||Nf(n,t,a)}i.memoizedState=a;var s={value:a,getSnapshot:t};return i.queue=s,Qf(Af.bind(null,n,s,e),[e]),n.flags|=2048,Xn(9,{destroy:void 0},jf.bind(null,n,s,a,t),null),a},useId:function(){var e=it(),t=Me.identifierPrefix;if(pe){var a=Kt,n=Zt;a=(n&~(1<<32-pt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=$i++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Zg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gs,useFormState:Lf,useActionState:Lf,useOptimistic:function(e){var t=it();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ps.bind(null,se,!0,a),a.dispatch=t,[e,t]},useMemoCache:rs,useCacheRefresh:function(){return it().memoizedState=Pg.bind(null,se)},useEffectEvent:function(e){var t=it(),a={impl:e};return t.memoizedState=a,function(){if((Se&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},vs={readContext:et,use:Ii,useCallback:Jf,useContext:et,useEffect:ds,useImperativeHandle:Kf,useInsertionEffect:Xf,useLayoutEffect:Vf,useMemo:Ff,useReducer:eu,useRef:kf,useState:function(){return eu(ua)},useDebugValue:hs,useDeferredValue:function(e,t){var a=Be();return Wf(a,je.memoizedState,e,t)},useTransition:function(){var e=eu(ua)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Ul(e),t]},useSyncExternalStore:Of,useId:ed,useHostTransitionStatus:gs,useFormState:qf,useActionState:qf,useOptimistic:function(e,t){var a=Be();return Df(a,je,e,t)},useMemoCache:rs,useCacheRefresh:td};vs.useEffectEvent=Gf;var ud={readContext:et,use:Ii,useCallback:Jf,useContext:et,useEffect:ds,useImperativeHandle:Kf,useInsertionEffect:Xf,useLayoutEffect:Vf,useMemo:Ff,useReducer:cs,useRef:kf,useState:function(){return cs(ua)},useDebugValue:hs,useDeferredValue:function(e,t){var a=Be();return je===null?ms(a,e,t):Wf(a,je.memoizedState,e,t)},useTransition:function(){var e=cs(ua)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Ul(e),t]},useSyncExternalStore:Of,useId:ed,useHostTransitionStatus:gs,useFormState:Yf,useActionState:Yf,useOptimistic:function(e,t){var a=Be();return je!==null?Df(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:rs,useCacheRefresh:td};ud.useEffectEvent=Gf;function bs(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var xs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Tt(),i=Da(n);i.payload=t,a!=null&&(i.callback=a),t=za(e,i,n),t!==null&&(ht(t,e,n),Dl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Tt(),i=Da(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=za(e,i,n),t!==null&&(ht(t,e,n),Dl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Tt(),n=Da(a);n.tag=2,t!=null&&(n.callback=t),t=za(e,n,a),t!==null&&(ht(t,e,a),Dl(t,e,a))}};function rd(e,t,a,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!wl(a,n)||!wl(i,s):!0}function sd(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function hn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function cd(e){Ui(e)}function od(e){console.error(e)}function fd(e){Ui(e)}function lu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function dd(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ss(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){lu(e,t)},a}function hd(e){return e=Da(e),e.tag=3,e}function md(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var s=n.value;e.payload=function(){return i(s)},e.callback=function(){dd(t,a,n)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){dd(t,a,n),typeof i!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function ep(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Hn(t,a,i,!0),a=xt.current,a!==null){switch(a.tag){case 31:case 13:return _t===null?gu():a.alternate===null&&Le===0&&(Le=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===Vi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Zs(e,n,i)),!1;case 22:return a.flags|=65536,n===Vi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Zs(e,n,i)),!1}throw Error(c(435,a.tag))}return Zs(e,n,i),gu(),!1}if(pe)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==Yr&&(e=Error(c(422),{cause:n}),Nl(Mt(e,a)))):(n!==Yr&&(t=Error(c(423),{cause:n}),Nl(Mt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Mt(n,a),i=Ss(e.stateNode,n,i),$r(e,i),Le!==4&&(Le=2)),!1;var s=Error(c(520),{cause:n});if(s=Mt(s,a),Vl===null?Vl=[s]:Vl.push(s),Le!==4&&(Le=2),t===null)return!0;n=Mt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Ss(a.stateNode,n,e),$r(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(qa===null||!qa.has(s))))return a.flags|=65536,i&=-i,a.lanes|=i,i=hd(i),md(i,e,a,n),$r(a,i),!1}a=a.return}while(a!==null);return!1}var Es=Error(c(461)),Qe=!1;function tt(e,t,a,n){t.child=e===null?vf(t,null,a,n):fn(t,e.child,a,n)}function yd(e,t,a,n,i){a=a.render;var s=t.ref;if("ref"in n){var o={};for(var m in n)m!=="ref"&&(o[m]=n[m])}else o=n;return rn(t),n=ns(e,t,a,o,s,i),m=ls(),e!==null&&!Qe?(is(e,t,i),ra(e,t,i)):(pe&&m&&qr(t),t.flags|=1,tt(e,t,n,i),t.child)}function gd(e,t,a,n,i){if(e===null){var s=a.type;return typeof s=="function"&&!Ur(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,pd(e,t,s,n,i)):(e=Bi(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Ms(e,i)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:wl,a(o,n)&&e.ref===t.ref)return ra(e,t,i)}return t.flags|=1,e=ta(s,n),e.ref=t.ref,e.return=t,t.child=e}function pd(e,t,a,n,i){if(e!==null){var s=e.memoizedProps;if(wl(s,n)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=n=s,Ms(e,i))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,ra(e,t,i)}return ws(e,t,a,n,i)}function vd(e,t,a,n){var i=n.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~s}else n=0,t.child=null;return bd(e,t,s,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Gi(t,s!==null?s.cachePool:null),s!==null?Sf(t,s):Ir(),Ef(t);else return n=t.lanes=536870912,bd(e,t,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(Gi(t,s.cachePool),Sf(t,s),_a(),t.memoizedState=null):(e!==null&&Gi(t,null),Ir(),_a());return tt(e,t,i,a),t.child}function ql(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bd(e,t,a,n,i){var s=Kr();return s=s===null?null:{parent:Ye._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Gi(t,null),Ir(),Ef(t),e!==null&&Hn(e,t,n,!0),t.childLanes=i,null}function iu(e,t){return t=ru({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xd(e,t,a){return fn(t,e.child,null,a),e=iu(t,t.pendingProps),e.flags|=2,St(t),t.memoizedState=null,e}function tp(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(n.mode==="hidden")return e=iu(t,n),t.lanes=536870912,ql(null,e);if(ts(t),(e=ze)?(e=zh(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:Zt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},a=af(e),a.return=t,t.child=a,Ie=t,ze=null)):e=null,e===null)throw Aa(t);return t.lanes=536870912,null}return iu(t,n)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(ts(t),i)if(t.flags&256)t.flags&=-257,t=xd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Qe||Hn(e,t,a,!1),i=(a&e.childLanes)!==0,Qe||i){if(n=Me,n!==null&&(o=so(n,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,an(e,o),ht(n,e,o),Es;gu(),t=xd(e,t,a)}else e=s.treeContext,ze=Ut(o.nextSibling),Ie=t,pe=!0,ja=null,Rt=!1,e!==null&&uf(t,e),t=iu(t,n),t.flags|=4096;return t}return e=ta(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uu(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 ws(e,t,a,n,i){return rn(t),a=ns(e,t,a,n,void 0,i),n=ls(),e!==null&&!Qe?(is(e,t,i),ra(e,t,i)):(pe&&n&&qr(t),t.flags|=1,tt(e,t,a,i),t.child)}function Sd(e,t,a,n,i,s){return rn(t),t.updateQueue=null,a=Tf(t,n,a,i),wf(e),n=ls(),e!==null&&!Qe?(is(e,t,s),ra(e,t,s)):(pe&&n&&qr(t),t.flags|=1,tt(e,t,a,s),t.child)}function Ed(e,t,a,n,i){if(rn(t),t.stateNode===null){var s=zn,o=a.contextType;typeof o=="object"&&o!==null&&(s=et(o)),s=new a(n,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=xs,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},Fr(t),o=a.contextType,s.context=typeof o=="object"&&o!==null?et(o):zn,s.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(bs(t,a,o,n),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&xs.enqueueReplaceState(s,s.state,null),Rl(t,n,s,i),zl(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){s=t.stateNode;var m=t.memoizedProps,b=hn(a,m);s.props=b;var j=s.context,R=a.contextType;o=zn,typeof R=="object"&&R!==null&&(o=et(R));var L=a.getDerivedStateFromProps;R=typeof L=="function"||typeof s.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,R||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(m||j!==o)&&sd(t,s,n,o),Ma=!1;var A=t.memoizedState;s.state=A,Rl(t,n,s,i),zl(),j=t.memoizedState,m||A!==j||Ma?(typeof L=="function"&&(bs(t,a,L,n),j=t.memoizedState),(b=Ma||rd(t,a,b,n,A,j,o))?(R||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=j),s.props=n,s.state=j,s.context=o,n=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Wr(e,t),o=t.memoizedProps,R=hn(a,o),s.props=R,L=t.pendingProps,A=s.context,j=a.contextType,b=zn,typeof j=="object"&&j!==null&&(b=et(j)),m=a.getDerivedStateFromProps,(j=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==L||A!==b)&&sd(t,s,n,b),Ma=!1,A=t.memoizedState,s.state=A,Rl(t,n,s,i),zl();var C=t.memoizedState;o!==L||A!==C||Ma||e!==null&&e.dependencies!==null&&ki(e.dependencies)?(typeof m=="function"&&(bs(t,a,m,n),C=t.memoizedState),(R=Ma||rd(t,a,R,n,A,C,b)||e!==null&&e.dependencies!==null&&ki(e.dependencies))?(j||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,C,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,C,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=C),s.props=n,s.state=C,s.context=b,n=R):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return s=n,uu(e,t),n=(t.flags&128)!==0,s||n?(s=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&n?(t.child=fn(t,e.child,null,i),t.child=fn(t,null,a,i)):tt(e,t,a,i),t.memoizedState=s.state,e=t.child):e=ra(e,t,i),e}function wd(e,t,a,n){return ln(),t.flags|=256,tt(e,t,a,n),t.child}var Ts={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Os(e){return{baseLanes:e,cachePool:df()}}function Ns(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=wt),e}function Td(e,t,a){var n=t.pendingProps,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(i?Ra(t):_a(),(e=ze)?(e=zh(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Na!==null?{id:Zt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},a=af(e),a.return=t,t.child=a,Ie=t,ze=null)):e=null,e===null)throw Aa(t);return sc(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,i?(_a(),i=t.mode,m=ru({mode:"hidden",children:m},i),n=nn(n,i,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Os(a),n.childLanes=Ns(e,o,a),t.memoizedState=Ts,ql(null,n)):(Ra(t),js(t,m))}var b=e.memoizedState;if(b!==null&&(m=b.dehydrated,m!==null)){if(s)t.flags&256?(Ra(t),t.flags&=-257,t=As(e,t,a)):t.memoizedState!==null?(_a(),t.child=e.child,t.flags|=128,t=null):(_a(),m=n.fallback,i=t.mode,n=ru({mode:"visible",children:n.children},i),m=nn(m,i,a,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,fn(t,e.child,null,a),n=t.child,n.memoizedState=Os(a),n.childLanes=Ns(e,o,a),t.memoizedState=Ts,t=ql(null,n));else if(Ra(t),sc(m)){if(o=m.nextSibling&&m.nextSibling.dataset,o)var j=o.dgst;o=j,n=Error(c(419)),n.stack="",n.digest=o,Nl({value:n,source:null,stack:null}),t=As(e,t,a)}else if(Qe||Hn(e,t,a,!1),o=(a&e.childLanes)!==0,Qe||o){if(o=Me,o!==null&&(n=so(o,a),n!==0&&n!==b.retryLane))throw b.retryLane=n,an(e,n),ht(o,e,n),Es;rc(m)||gu(),t=As(e,t,a)}else rc(m)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,ze=Ut(m.nextSibling),Ie=t,pe=!0,ja=null,Rt=!1,e!==null&&uf(t,e),t=js(t,n.children),t.flags|=4096);return t}return i?(_a(),m=n.fallback,i=t.mode,b=e.child,j=b.sibling,n=ta(b,{mode:"hidden",children:n.children}),n.subtreeFlags=b.subtreeFlags&65011712,j!==null?m=ta(j,m):(m=nn(m,i,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,ql(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Os(a):(i=m.cachePool,i!==null?(b=Ye._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=df(),m={baseLanes:m.baseLanes|a,cachePool:i}),n.memoizedState=m,n.childLanes=Ns(e,o,a),t.memoizedState=Ts,ql(e.child,n)):(Ra(t),a=e.child,e=a.sibling,a=ta(a,{mode:"visible",children:n.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 js(e,t){return t=ru({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ru(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function As(e,t,a){return fn(t,e.child,null,a),e=js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Od(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Gr(e.return,t,a)}function Cs(e,t,a,n,i,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=a,o.tailMode=i,o.treeForkCount=s)}function Nd(e,t,a){var n=t.pendingProps,i=n.revealOrder,s=n.tail;n=n.children;var o=qe.current,m=(o&2)!==0;if(m?(o=o&1|2,t.flags|=128):o&=1,Q(qe,o),tt(e,t,n,a),n=pe?Ol:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Od(e,a,t);else if(e.tag===19)Od(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(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Fi(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Cs(t,!1,i,a,s,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fi(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Cs(t,!0,a,null,s,n);break;case"together":Cs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ra(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Hn(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=ta(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ta(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ms(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ki(e)))}function ap(e,t,a){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),Ca(t,Ye,e.memoizedState.cache),ln();break;case 27:case 5:Vt(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ts(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ra(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Td(e,t,a):(Ra(t),e=ra(e,t,a),e!==null?e.sibling:null);Ra(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Hn(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return Nd(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(qe,qe.current),n)break;return null;case 22:return t.lanes=0,vd(e,t,a,t.pendingProps);case 24:Ca(t,Ye,e.memoizedState.cache)}return ra(e,t,a)}function jd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Ms(e,a)&&(t.flags&128)===0)return Qe=!1,ap(e,t,a);Qe=(e.flags&131072)!==0}else Qe=!1,pe&&(t.flags&1048576)!==0&&lf(t,Ol,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=cn(t.elementType),t.type=e,typeof e=="function")Ur(e)?(n=hn(e,n),t.tag=1,t=Ed(null,t,e,n,a)):(t.tag=0,t=ws(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===P){t.tag=11,t=yd(null,t,e,n,a);break e}else if(i===I){t.tag=14,t=gd(null,t,e,n,a);break e}}throw t=mt(e)||e,Error(c(306,t,""))}}return t;case 0:return ws(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=hn(n,t.pendingProps),Ed(e,t,n,i,a);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var s=t.memoizedState;i=s.element,Wr(e,t),Rl(t,n,null,a);var o=t.memoizedState;if(n=o.cache,Ca(t,Ye,n),n!==s.cache&&Xr(t,[Ye],a,!0),zl(),n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=wd(e,t,n,a);break e}else if(n!==i){i=Mt(Error(c(424)),t),Nl(i),t=wd(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ze=Ut(e.firstChild),Ie=t,pe=!0,ja=null,Rt=!0,a=vf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ln(),n===i){t=ra(e,t,a);break e}tt(e,t,n,a)}t=t.child}return t;case 26:return uu(e,t),e===null?(a=qh(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,n=wu(oe.current).createElement(a),n[Pe]=t,n[rt]=e,at(n,a,e),Fe(n),t.stateNode=n):t.memoizedState=qh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vt(t),e===null&&pe&&(n=t.stateNode=Uh(t.type,t.pendingProps,oe.current),Ie=t,Rt=!0,i=ze,Qa(t.type)?(cc=i,ze=Ut(n.firstChild)):ze=i),tt(e,t,t.pendingProps.children,a),uu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((i=n=ze)&&(n=zp(n,t.type,t.pendingProps,Rt),n!==null?(t.stateNode=n,Ie=t,ze=Ut(n.firstChild),Rt=!1,i=!0):i=!1),i||Aa(t)),Vt(t),i=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,n=s.children,lc(i,s)?n=null:o!==null&&lc(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ns(e,t,Kg,null,null,a),Il._currentValue=i),uu(e,t),tt(e,t,n,a),t.child;case 6:return e===null&&pe&&((e=a=ze)&&(a=Rp(a,t.pendingProps,Rt),a!==null?(t.stateNode=a,Ie=t,ze=null,e=!0):e=!1),e||Aa(t)),null;case 13:return Td(e,t,a);case 4:return Je(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fn(t,null,n,a):tt(e,t,n,a),t.child;case 11:return yd(e,t,t.type,t.pendingProps,a);case 7:return tt(e,t,t.pendingProps,a),t.child;case 8:return tt(e,t,t.pendingProps.children,a),t.child;case 12:return tt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Ca(t,t.type,n.value),tt(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,rn(t),i=et(i),n=n(i),t.flags|=1,tt(e,t,n,a),t.child;case 14:return gd(e,t,t.type,t.pendingProps,a);case 15:return pd(e,t,t.type,t.pendingProps,a);case 19:return Nd(e,t,a);case 31:return tp(e,t,a);case 22:return vd(e,t,a,t.pendingProps);case 24:return rn(t),n=et(Ye),e===null?(i=Kr(),i===null&&(i=Me,s=Vr(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=a),i=s),t.memoizedState={parent:n,cache:i},Fr(t),Ca(t,Ye,i)):((e.lanes&a)!==0&&(Wr(e,t),Rl(t,null,null,a),zl()),i=e.memoizedState,s=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ca(t,Ye,n)):(n=s.cache,Ca(t,Ye,n),n!==i.cache&&Xr(t,[Ye],a,!0))),tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function sa(e){e.flags|=4}function Ds(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(eh())e.flags|=8192;else throw on=Vi,Jr}else e.flags&=-16777217}function Ad(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gh(t))if(eh())e.flags|=8192;else throw on=Vi,Jr}function su(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?io():536870912,e.lanes|=t,Jn|=t)}function Bl(e,t){if(!pe)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 n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function np(e,t,a){var n=t.pendingProps;switch(Br(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),la(Ye),De(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Un(t)?sa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kr())),Re(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(sa(t),s!==null?(Re(t),Ad(t,s)):(Re(t),Ds(t,i,null,n,a))):s?s!==e.memoizedState?(sa(t),Re(t),Ad(t,s)):(Re(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&sa(t),Re(t),Ds(t,i,e,n,a)),null;case 27:if(Sa(t),a=oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&sa(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Re(t),null}e=V.current,Un(t)?rf(t):(e=Uh(i,n,a),t.stateNode=e,sa(t))}return Re(t),null;case 5:if(Sa(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&sa(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Re(t),null}if(s=V.current,Un(t))rf(t);else{var o=wu(oe.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?o.createElement(i,{is:n.is}):o.createElement(i)}}s[Pe]=t,s[rt]=n;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.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=s;e:switch(at(s,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&sa(t)}}return Re(t),Ds(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&sa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,Un(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=Ie,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Th(e.nodeValue,a)),e||Aa(t,!0)}else e=wu(e).createTextNode(n),e[Pe]=t,t.stateNode=e}return Re(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Un(t),a!==null){if(e===null){if(!n)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Pe]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),e=!1}else a=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(St(t),t):(St(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Re(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Un(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[Pe]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),i=!1}else i=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(St(t),t):(St(t),null)}return St(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),su(t,t.updateQueue),Re(t),null);case 4:return De(),e===null&&Is(t.stateNode.containerInfo),Re(t),null;case 10:return la(t.type),Re(t),null;case 19:if(H(qe),n=t.memoizedState,n===null)return Re(t),null;if(i=(t.flags&128)!==0,s=n.rendering,s===null)if(i)Bl(n,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Fi(e),s!==null){for(t.flags|=128,Bl(n,!1),e=s.updateQueue,t.updateQueue=e,su(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)tf(a,e),a=a.sibling;return Q(qe,qe.current&1|2),pe&&aa(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&yt()>hu&&(t.flags|=128,i=!0,Bl(n,!1),t.lanes=4194304)}else{if(!i)if(e=Fi(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,su(t,e),Bl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!pe)return Re(t),null}else 2*yt()-n.renderingStartTime>hu&&a!==536870912&&(t.flags|=128,i=!0,Bl(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(e=n.last,e!==null?e.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=yt(),e.sibling=null,a=qe.current,Q(qe,i?a&1|2:a&1),pe&&aa(t,n.treeForkCount),e):(Re(t),null);case 22:case 23:return St(t),es(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),a=t.updateQueue,a!==null&&su(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&H(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),la(Ye),Re(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function lp(e,t){switch(Br(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return la(Ye),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Sa(t),null;case 31:if(t.memoizedState!==null){if(St(t),t.alternate===null)throw Error(c(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(St(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(qe),null;case 4:return De(),null;case 10:return la(t.type),null;case 22:case 23:return St(t),es(),e!==null&&H(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return la(Ye),null;case 25:return null;default:return null}}function Cd(e,t){switch(Br(t),t.tag){case 3:la(Ye),De();break;case 26:case 27:case 5:Sa(t);break;case 4:De();break;case 31:t.memoizedState!==null&&St(t);break;case 13:St(t);break;case 19:H(qe);break;case 10:la(t.type);break;case 22:case 23:St(t),es(),e!==null&&H(sn);break;case 24:la(Ye)}}function Yl(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var s=a.create,o=a.inst;n=s(),o.destroy=n}a=a.next}while(a!==i)}}catch(m){Oe(t,t.return,m)}}function Ua(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&e)===e){var o=n.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,i=t;var b=a,j=m;try{j()}catch(R){Oe(i,b,R)}}}n=n.next}while(n!==s)}}catch(R){Oe(t,t.return,R)}}function Md(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{xf(t,a)}catch(n){Oe(e,e.return,n)}}}function Dd(e,t,a){a.props=hn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Oe(e,t,n)}}function kl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){Oe(e,t,i)}}function Jt(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Oe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Oe(e,t,i)}else a.current=null}function zd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){Oe(e,e.return,i)}}function zs(e,t,a){try{var n=e.stateNode;Np(n,e.type,a,t),n[rt]=t}catch(i){Oe(e,e.return,i)}}function Rd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rd(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&&Qa(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 _s(e,t,a){var n=e.tag;if(n===5||n===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=It));else if(n!==4&&(n===27&&Qa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(_s(e,t,a),e=e.sibling;e!==null;)_s(e,t,a),e=e.sibling}function cu(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Qa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(cu(e,t,a),e=e.sibling;e!==null;)cu(e,t,a),e=e.sibling}function _d(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);at(t,n,a),t[Pe]=e,t[rt]=a}catch(s){Oe(e,e.return,s)}}var ca=!1,Ge=!1,Us=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,We=null;function ip(e,t){if(e=e.containerInfo,ac=Mu,e=Zo(e),Ar(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var o=0,m=-1,b=-1,j=0,R=0,L=e,A=null;t:for(;;){for(var C;L!==a||i!==0&&L.nodeType!==3||(m=o+i),L!==s||n!==0&&L.nodeType!==3||(b=o+n),L.nodeType===3&&(o+=L.nodeValue.length),(C=L.firstChild)!==null;)A=L,L=C;for(;;){if(L===e)break t;if(A===a&&++j===i&&(m=o),A===s&&++R===n&&(b=o),(C=L.nextSibling)!==null)break;L=A,A=L.parentNode}L=C}a=m===-1||b===-1?null:{start:m,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(nc={focusedElem:e,selectionRange:a},Mu=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,s=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++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,i=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var J=hn(a.type,i);e=n.getSnapshotBeforeUpdate(J,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(le){Oe(a,a.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)uc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uc(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,We=e;break}We=t.return}}function Hd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:fa(e,a),n&4&&Yl(5,a);break;case 1:if(fa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Oe(a,a.return,o)}else{var i=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Oe(a,a.return,o)}}n&64&&Md(a),n&512&&kl(a,a.return);break;case 3:if(fa(e,a),n&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{xf(e,t)}catch(o){Oe(a,a.return,o)}}break;case 27:t===null&&n&4&&_d(a);case 26:case 5:fa(e,a),t===null&&n&4&&zd(a),n&512&&kl(a,a.return);break;case 12:fa(e,a);break;case 31:fa(e,a),n&4&&Bd(e,a);break;case 13:fa(e,a),n&4&&Yd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=mp.bind(null,a),_p(e,a))));break;case 22:if(n=a.memoizedState!==null||ca,!n){t=t!==null&&t.memoizedState!==null||Ge,i=ca;var s=Ge;ca=n,(Ge=t)&&!s?da(e,a,(a.subtreeFlags&8772)!==0):fa(e,a),ca=i,Ge=s}break;case 30:break;default:fa(e,a)}}function Ld(e){var t=e.alternate;t!==null&&(e.alternate=null,Ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fr(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 _e=null,ct=!1;function oa(e,t,a){for(a=a.child;a!==null;)qd(e,t,a),a=a.sibling}function qd(e,t,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:Ge||Jt(a,t),oa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ge||Jt(a,t);var n=_e,i=ct;Qa(a.type)&&(_e=a.stateNode,ct=!1),oa(e,t,a),Wl(a.stateNode),_e=n,ct=i;break;case 5:Ge||Jt(a,t);case 6:if(n=_e,i=ct,_e=null,oa(e,t,a),_e=n,ct=i,_e!==null)if(ct)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(a.stateNode)}catch(s){Oe(a,t,s)}else try{_e.removeChild(a.stateNode)}catch(s){Oe(a,t,s)}break;case 18:_e!==null&&(ct?(e=_e,Mh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),al(e)):Mh(_e,a.stateNode));break;case 4:n=_e,i=ct,_e=a.stateNode.containerInfo,ct=!0,oa(e,t,a),_e=n,ct=i;break;case 0:case 11:case 14:case 15:Ua(2,a,t),Ge||Ua(4,a,t),oa(e,t,a);break;case 1:Ge||(Jt(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Dd(a,t,n)),oa(e,t,a);break;case 21:oa(e,t,a);break;case 22:Ge=(n=Ge)||a.memoizedState!==null,oa(e,t,a),Ge=n;break;default:oa(e,t,a)}}function Bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{al(e)}catch(a){Oe(t,t.return,a)}}}function Yd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{al(e)}catch(a){Oe(t,t.return,a)}}function up(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ud),t;default:throw Error(c(435,e.tag))}}function ou(e,t){var a=up(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=yp.bind(null,e,n);n.then(i,i)}})}function ot(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],s=e,o=t,m=o;e:for(;m!==null;){switch(m.tag){case 27:if(Qa(m.type)){_e=m.stateNode,ct=!1;break e}break;case 5:_e=m.stateNode,ct=!1;break e;case 3:case 4:_e=m.stateNode.containerInfo,ct=!0;break e}m=m.return}if(_e===null)throw Error(c(160));qd(s,o,i),_e=null,ct=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kd(t,e),t=t.sibling}var Yt=null;function kd(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ot(t,e),ft(e),n&4&&(Ua(3,e,e.return),Yl(3,e),Ua(5,e,e.return));break;case 1:ot(t,e),ft(e),n&512&&(Ge||a===null||Jt(a,a.return)),n&64&&ca&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=Yt;if(ot(t,e),ft(e),n&512&&(Ge||a===null||Jt(a,a.return)),n&4){var s=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":s=i.getElementsByTagName("title")[0],(!s||s[ml]||s[Pe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(n),i.head.insertBefore(s,i.querySelector("head > title"))),at(s,n,a),s[Pe]=e,Fe(s),n=s;break e;case"link":var o=kh("link","href",i).get(n+(a.href||""));if(o){for(var m=0;m<o.length;m++)if(s=o[m],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(m,1);break t}}s=i.createElement(n),at(s,n,a),i.head.appendChild(s);break;case"meta":if(o=kh("meta","content",i).get(n+(a.content||""))){for(m=0;m<o.length;m++)if(s=o[m],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(m,1);break t}}s=i.createElement(n),at(s,n,a),i.head.appendChild(s);break;default:throw Error(c(468,n))}s[Pe]=e,Fe(s),n=s}e.stateNode=n}else Qh(i,e.type,e.stateNode);else e.stateNode=Yh(i,n,e.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?Qh(i,e.type,e.stateNode):Yh(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&zs(e,e.memoizedProps,a.memoizedProps)}break;case 27:ot(t,e),ft(e),n&512&&(Ge||a===null||Jt(a,a.return)),a!==null&&n&4&&zs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ot(t,e),ft(e),n&512&&(Ge||a===null||Jt(a,a.return)),e.flags&32){i=e.stateNode;try{On(i,"")}catch(J){Oe(e,e.return,J)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,zs(e,i,a!==null?a.memoizedProps:i)),n&1024&&(Us=!0);break;case 6:if(ot(t,e),ft(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(J){Oe(e,e.return,J)}}break;case 3:if(Nu=null,i=Yt,Yt=Tu(t.containerInfo),ot(t,e),Yt=i,ft(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{al(t.containerInfo)}catch(J){Oe(e,e.return,J)}Us&&(Us=!1,Qd(e));break;case 4:n=Yt,Yt=Tu(e.stateNode.containerInfo),ot(t,e),ft(e),Yt=n;break;case 12:ot(t,e),ft(e);break;case 31:ot(t,e),ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 13:ot(t,e),ft(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(du=yt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 22:i=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,j=ca,R=Ge;if(ca=j||i,Ge=R||b,ot(t,e),Ge=R,ca=j,ft(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||b||ca||Ge||mn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(s=b.stateNode,i)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=b.stateNode;var L=b.memoizedProps.style,A=L!=null&&L.hasOwnProperty("display")?L.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(J){Oe(b,b.return,J)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(J){Oe(b,b.return,J)}}}else if(t.tag===18){if(a===null){b=t;try{var C=b.stateNode;i?Dh(C,!0):Dh(b.stateNode,!1)}catch(J){Oe(b,b.return,J)}}}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}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,ou(e,a))));break;case 19:ot(t,e),ft(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 30:break;case 21:break;default:ot(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Rd(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var i=a.stateNode,s=Rs(e);cu(e,s,i);break;case 5:var o=a.stateNode;a.flags&32&&(On(o,""),a.flags&=-33);var m=Rs(e);cu(e,m,o);break;case 3:case 4:var b=a.stateNode.containerInfo,j=Rs(e);_s(e,j,b);break;default:throw Error(c(161))}}catch(R){Oe(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hd(e,t.alternate,t),t=t.sibling}function mn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),mn(t);break;case 1:Jt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Dd(t,t.return,a),mn(t);break;case 27:Wl(t.stateNode);case 26:case 5:Jt(t,t.return),mn(t);break;case 22:t.memoizedState===null&&mn(t);break;case 30:mn(t);break;default:mn(t)}e=e.sibling}}function da(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:da(i,s,a),Yl(4,s);break;case 1:if(da(i,s,a),n=s,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(j){Oe(n,n.return,j)}if(n=s,i=n.updateQueue,i!==null){var m=n.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)bf(b[i],m)}catch(j){Oe(n,n.return,j)}}a&&o&64&&Md(s),kl(s,s.return);break;case 27:_d(s);case 26:case 5:da(i,s,a),a&&n===null&&o&4&&zd(s),kl(s,s.return);break;case 12:da(i,s,a);break;case 31:da(i,s,a),a&&o&4&&Bd(i,s);break;case 13:da(i,s,a),a&&o&4&&Yd(i,s);break;case 22:s.memoizedState===null&&da(i,s,a),kl(s,s.return);break;case 30:break;default:da(i,s,a)}t=t.sibling}}function Hs(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&&jl(a))}function Ls(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jl(e))}function kt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gd(e,t,a,n),t=t.sibling}function Gd(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:kt(e,t,a,n),i&2048&&Yl(9,t);break;case 1:kt(e,t,a,n);break;case 3:kt(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jl(e)));break;case 12:if(i&2048){kt(e,t,a,n),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,m=s.onPostCommit;typeof m=="function"&&m(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Oe(t,t.return,b)}}else kt(e,t,a,n);break;case 31:kt(e,t,a,n);break;case 13:kt(e,t,a,n);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?kt(e,t,a,n):Ql(e,t):s._visibility&2?kt(e,t,a,n):(s._visibility|=2,Vn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Hs(o,t);break;case 24:kt(e,t,a,n),i&2048&&Ls(t.alternate,t);break;default:kt(e,t,a,n)}}function Vn(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,m=a,b=n,j=o.flags;switch(o.tag){case 0:case 11:case 15:Vn(s,o,m,b,i),Yl(8,o);break;case 23:break;case 22:var R=o.stateNode;o.memoizedState!==null?R._visibility&2?Vn(s,o,m,b,i):Ql(s,o):(R._visibility|=2,Vn(s,o,m,b,i)),i&&j&2048&&Hs(o.alternate,o);break;case 24:Vn(s,o,m,b,i),i&&j&2048&&Ls(o.alternate,o);break;default:Vn(s,o,m,b,i)}t=t.sibling}}function Ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:Ql(a,n),i&2048&&Hs(n.alternate,n);break;case 24:Ql(a,n),i&2048&&Ls(n.alternate,n);break;default:Ql(a,n)}t=t.sibling}}var Gl=8192;function Zn(e,t,a){if(e.subtreeFlags&Gl)for(e=e.child;e!==null;)Xd(e,t,a),e=e.sibling}function Xd(e,t,a){switch(e.tag){case 26:Zn(e,t,a),e.flags&Gl&&e.memoizedState!==null&&Zp(a,Yt,e.memoizedState,e.memoizedProps);break;case 5:Zn(e,t,a);break;case 3:case 4:var n=Yt;Yt=Tu(e.stateNode.containerInfo),Zn(e,t,a),Yt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Gl,Gl=16777216,Zn(e,t,a),Gl=n):Zn(e,t,a));break;default:Zn(e,t,a)}}function Vd(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 Xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];We=n,Kd(n,e)}Vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zd(e),e=e.sibling}function Zd(e){switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Xl(e);break;case 12:Xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):Xl(e);break;default:Xl(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];We=n,Kd(n,e)}Vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),fu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function Kd(e,t){for(;We!==null;){var a=We;switch(a.tag){case 0:case 11:case 15:Ua(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:jl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,We=n;else e:for(a=e;We!==null;){n=We;var i=n.sibling,s=n.return;if(Ld(n),n===a){We=null;break e}if(i!==null){i.return=s,We=i;break e}We=s}}}var rp={getCacheForType:function(e){var t=et(Ye),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return et(Ye).controller.signal}},sp=typeof WeakMap=="function"?WeakMap:Map,Se=0,Me=null,de=null,me=0,Te=0,Et=null,Ha=!1,Kn=!1,qs=!1,ha=0,Le=0,La=0,yn=0,Bs=0,wt=0,Jn=0,Vl=null,dt=null,Ys=!1,du=0,Jd=0,hu=1/0,mu=null,qa=null,Xe=0,Ba=null,Fn=null,ma=0,ks=0,Qs=null,Fd=null,Zl=0,Gs=null;function Tt(){return(Se&2)!==0&&me!==0?me&-me:M.T!==null?Fs():co()}function Wd(){if(wt===0)if((me&536870912)===0||pe){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),wt=e}else wt=536870912;return e=xt.current,e!==null&&(e.flags|=32),wt}function ht(e,t,a){(e===Me&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Wn(e,0),Ya(e,me,wt,!1)),hl(e,a),((Se&2)===0||e!==Me)&&(e===Me&&((Se&2)===0&&(yn|=a),Le===4&&Ya(e,me,wt,!1)),Ft(e))}function $d(e,t,a){if((Se&6)!==0)throw Error(c(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||dl(e,t),i=n?fp(e,t):Vs(e,t,!0),s=n;do{if(i===0){Kn&&!n&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!cp(a)){i=Vs(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var m=e;i=Vl;var b=m.current.memoizedState.isDehydrated;if(b&&(Wn(m,o).flags|=256),o=Vs(m,o,!1),o!==2){if(qs&&!b){m.errorRecoveryDisabledLanes|=s,yn|=s,i=4;break e}s=dt,dt=i,s!==null&&(dt===null?dt=s:dt.push.apply(dt,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){Wn(e,0),Ya(e,t,0,!0);break}e:{switch(n=e,s=i,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Ya(n,t,wt,!Ha);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=du+300-yt(),10<i)){if(Ya(n,t,wt,!Ha),Ti(n,0,!0)!==0)break e;ma=t,n.timeoutHandle=Ah(Pd.bind(null,n,a,dt,mu,Ys,t,wt,yn,Jn,Ha,s,"Throttled",-0,0),i);break e}Pd(n,a,dt,mu,Ys,t,wt,yn,Jn,Ha,s,null,-0,0)}}break}while(!0);Ft(e)}function Pd(e,t,a,n,i,s,o,m,b,j,R,L,A,C){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It},Xd(t,s,L);var J=(s&62914560)===s?du-yt():(s&4194048)===s?Jd-yt():0;if(J=Kp(L,J),J!==null){ma=s,e.cancelPendingCommit=J(uh.bind(null,e,t,s,a,n,i,o,m,b,R,L,null,A,C)),Ya(e,s,o,!j);return}}uh(e,t,s,a,n,i,o,m,b)}function cp(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 n=0;n<a.length;n++){var i=a[n],s=i.getSnapshot;i=i.value;try{if(!vt(s(),i))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 Ya(e,t,a,n){t&=~Bs,t&=~yn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var s=31-pt(i),o=1<<s;n[s]=-1,i&=~o}a!==0&&uo(e,a,t)}function yu(){return(Se&6)===0?(Kl(0),!1):!0}function Xs(){if(de!==null){if(Te===0)var e=de.return;else e=de,na=un=null,us(e),Yn=null,Cl=0,e=de;for(;e!==null;)Cd(e.alternate,e),e=e.return;de=null}}function Wn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Cp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ma=0,Xs(),Me=e,de=a=ta(e.current,null),me=t,Te=0,Et=null,Ha=!1,Kn=dl(e,t),qs=!1,Jn=wt=Bs=yn=La=Le=0,dt=Vl=null,Ys=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-pt(n),s=1<<i;t|=e[i],n&=~s}return ha=t,Hi(),a}function Id(e,t){se=null,M.H=Ll,t===Bn||t===Xi?(t=yf(),Te=3):t===Jr?(t=yf(),Te=4):Te=t===Es?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(Le=1,lu(e,Mt(t,e.current)))}function eh(){var e=xt.current;return e===null?!0:(me&4194048)===me?_t===null:(me&62914560)===me||(me&536870912)!==0?e===_t:!1}function th(){var e=M.H;return M.H=Ll,e===null?Ll:e}function ah(){var e=M.A;return M.A=rp,e}function gu(){Le=4,Ha||(me&4194048)!==me&&xt.current!==null||(Kn=!0),(La&134217727)===0&&(yn&134217727)===0||Me===null||Ya(Me,me,wt,!1)}function Vs(e,t,a){var n=Se;Se|=2;var i=th(),s=ah();(Me!==e||me!==t)&&(mu=null,Wn(e,t)),t=!1;var o=Le;e:do try{if(Te!==0&&de!==null){var m=de,b=Et;switch(Te){case 8:Xs(),o=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var j=Te;if(Te=0,Et=null,$n(e,m,b,j),a&&Kn){o=0;break e}break;default:j=Te,Te=0,Et=null,$n(e,m,b,j)}}op(),o=Le;break}catch(R){Id(e,R)}while(!0);return t&&e.shellSuspendCounter++,na=un=null,Se=n,M.H=i,M.A=s,de===null&&(Me=null,me=0,Hi()),o}function op(){for(;de!==null;)nh(de)}function fp(e,t){var a=Se;Se|=2;var n=th(),i=ah();Me!==e||me!==t?(mu=null,hu=yt()+500,Wn(e,t)):Kn=dl(e,t);e:do try{if(Te!==0&&de!==null){t=de;var s=Et;t:switch(Te){case 1:Te=0,Et=null,$n(e,t,s,1);break;case 2:case 9:if(hf(s)){Te=0,Et=null,lh(t);break}t=function(){Te!==2&&Te!==9||Me!==e||(Te=7),Ft(e)},s.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:hf(s)?(Te=0,Et=null,lh(t)):(Te=0,Et=null,$n(e,t,s,7));break;case 5:var o=null;switch(de.tag){case 26:o=de.memoizedState;case 5:case 27:var m=de;if(o?Gh(o):m.stateNode.complete){Te=0,Et=null;var b=m.sibling;if(b!==null)de=b;else{var j=m.return;j!==null?(de=j,pu(j)):de=null}break t}}Te=0,Et=null,$n(e,t,s,5);break;case 6:Te=0,Et=null,$n(e,t,s,6);break;case 8:Xs(),Le=6;break e;default:throw Error(c(462))}}dp();break}catch(R){Id(e,R)}while(!0);return na=un=null,M.H=n,M.A=i,Se=a,de!==null?0:(Me=null,me=0,Hi(),Le)}function dp(){for(;de!==null&&!Uy();)nh(de)}function nh(e){var t=jd(e.alternate,e,ha);e.memoizedProps=e.pendingProps,t===null?pu(e):de=t}function lh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Sd(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Sd(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:us(t);default:Cd(a,t),t=de=tf(t,ha),t=jd(a,t,ha)}e.memoizedProps=e.pendingProps,t===null?pu(e):de=t}function $n(e,t,a,n){na=un=null,us(t),Yn=null,Cl=0;var i=t.return;try{if(ep(e,i,t,a,me)){Le=1,lu(e,Mt(a,e.current)),de=null;return}}catch(s){if(i!==null)throw de=i,s;Le=1,lu(e,Mt(a,e.current)),de=null;return}t.flags&32768?(pe||n===1?e=!0:Kn||(me&536870912)!==0?e=!1:(Ha=e=!0,(n===2||n===9||n===3||n===6)&&(n=xt.current,n!==null&&n.tag===13&&(n.flags|=16384))),ih(t,e)):pu(t)}function pu(e){var t=e;do{if((t.flags&32768)!==0){ih(t,Ha);return}e=t.return;var a=np(t.alternate,t,ha);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Le===0&&(Le=5)}function ih(e,t){do{var a=lp(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Le=6,de=null}function uh(e,t,a,n,i,s,o,m,b){e.cancelPendingCommit=null;do vu();while(Xe!==0);if((Se&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=Rr,Vy(e,a,s,o,m,b),e===Me&&(de=Me=null,me=0),Fn=t,Ba=e,ma=a,ks=s,Qs=i,Fd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gp(xi,function(){return fh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null,i=X.p,X.p=2,o=Se,Se|=4;try{ip(e,t,a)}finally{Se=o,X.p=i,M.T=n}}Xe=1,rh(),sh(),ch()}}function rh(){if(Xe===1){Xe=0;var e=Ba,t=Fn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var n=X.p;X.p=2;var i=Se;Se|=4;try{kd(t,e);var s=nc,o=Zo(e.containerInfo),m=s.focusedElem,b=s.selectionRange;if(o!==m&&m&&m.ownerDocument&&Vo(m.ownerDocument.documentElement,m)){if(b!==null&&Ar(m)){var j=b.start,R=b.end;if(R===void 0&&(R=j),"selectionStart"in m)m.selectionStart=j,m.selectionEnd=Math.min(R,m.value.length);else{var L=m.ownerDocument||document,A=L&&L.defaultView||window;if(A.getSelection){var C=A.getSelection(),J=m.textContent.length,le=Math.min(b.start,J),Ce=b.end===void 0?le:Math.min(b.end,J);!C.extend&&le>Ce&&(o=Ce,Ce=le,le=o);var T=Xo(m,le),E=Xo(m,Ce);if(T&&E&&(C.rangeCount!==1||C.anchorNode!==T.node||C.anchorOffset!==T.offset||C.focusNode!==E.node||C.focusOffset!==E.offset)){var N=L.createRange();N.setStart(T.node,T.offset),C.removeAllRanges(),le>Ce?(C.addRange(N),C.extend(E.node,E.offset)):(N.setEnd(E.node,E.offset),C.addRange(N))}}}}for(L=[],C=m;C=C.parentNode;)C.nodeType===1&&L.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<L.length;m++){var U=L[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Mu=!!ac,nc=ac=null}finally{Se=i,X.p=n,M.T=a}}e.current=t,Xe=2}}function sh(){if(Xe===2){Xe=0;var e=Ba,t=Fn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var n=X.p;X.p=2;var i=Se;Se|=4;try{Hd(e,t.alternate,t)}finally{Se=i,X.p=n,M.T=a}}Xe=3}}function ch(){if(Xe===4||Xe===3){Xe=0,Hy();var e=Ba,t=Fn,a=ma,n=Fd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,Fn=Ba=null,oh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(qa=null),cr(a),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(fl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=M.T,i=X.p,X.p=2,M.T=null;try{for(var s=e.onRecoverableError,o=0;o<n.length;o++){var m=n[o];s(m.value,{componentStack:m.stack})}}finally{M.T=t,X.p=i}}(ma&3)!==0&&vu(),Ft(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===Gs?Zl++:(Zl=0,Gs=e):Zl=0,Kl(0)}}function oh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,jl(t)))}function vu(){return rh(),sh(),ch(),fh()}function fh(){if(Xe!==5)return!1;var e=Ba,t=ks;ks=0;var a=cr(ma),n=M.T,i=X.p;try{X.p=32>a?32:a,M.T=null,a=Qs,Qs=null;var s=Ba,o=ma;if(Xe=0,Fn=Ba=null,ma=0,(Se&6)!==0)throw Error(c(331));var m=Se;if(Se|=4,Zd(s.current),Gd(s,s.current,o,a),Se=m,Kl(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(fl,s)}catch{}return!0}finally{X.p=i,M.T=n,oh(e,t)}}function dh(e,t,a){t=Mt(a,t),t=Ss(e.stateNode,t,2),e=za(e,t,2),e!==null&&(hl(e,2),Ft(e))}function Oe(e,t,a){if(e.tag===3)dh(e,e,a);else for(;t!==null;){if(t.tag===3){dh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qa===null||!qa.has(n))){e=Mt(a,e),a=hd(2),n=za(t,a,2),n!==null&&(md(a,n,t,e),hl(n,2),Ft(n));break}}t=t.return}}function Zs(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new sp;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(qs=!0,i.add(a),e=hp.bind(null,e,t,a),t.then(e,e))}function hp(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Me===e&&(me&a)===a&&(Le===4||Le===3&&(me&62914560)===me&&300>yt()-du?(Se&2)===0&&Wn(e,0):Bs|=a,Jn===me&&(Jn=0)),Ft(e)}function hh(e,t){t===0&&(t=io()),e=an(e,t),e!==null&&(hl(e,t),Ft(e))}function mp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),hh(e,a)}function yp(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),hh(e,a)}function gp(e,t){return ir(e,t)}var bu=null,Pn=null,Ks=!1,xu=!1,Js=!1,ka=0;function Ft(e){e!==Pn&&e.next===null&&(Pn===null?bu=Pn=e:Pn=Pn.next=e),xu=!0,Ks||(Ks=!0,vp())}function Kl(e,t){if(!Js&&xu){Js=!0;do for(var a=!1,n=bu;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var s=0;else{var o=n.suspendedLanes,m=n.pingedLanes;s=(1<<31-pt(42|e)+1)-1,s&=i&~(o&~m),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,ph(n,s))}else s=me,s=Ti(n,n===Me?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||dl(n,s)||(a=!0,ph(n,s));n=n.next}while(a);Js=!1}}function pp(){mh()}function mh(){xu=Ks=!1;var e=0;ka!==0&&Ap()&&(e=ka);for(var t=yt(),a=null,n=bu;n!==null;){var i=n.next,s=yh(n,t);s===0?(n.next=null,a===null?bu=i:a.next=i,i===null&&(Pn=a)):(a=n,(e!==0||(s&3)!==0)&&(xu=!0)),n=i}Xe!==0&&Xe!==5||Kl(e),ka!==0&&(ka=0)}function yh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-pt(s),m=1<<o,b=i[o];b===-1?((m&a)===0||(m&n)!==0)&&(i[o]=Xy(m,t)):b<=t&&(e.expiredLanes|=m),s&=~m}if(t=Me,a=me,a=Ti(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ur(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||dl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&ur(n),cr(a)){case 2:case 8:a=no;break;case 32:a=xi;break;case 268435456:a=lo;break;default:a=xi}return n=gh.bind(null,e),a=ir(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&ur(n),e.callbackPriority=2,e.callbackNode=null,2}function gh(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vu()&&e.callbackNode!==a)return null;var n=me;return n=Ti(e,e===Me?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:($d(e,n,t),yh(e,yt()),e.callbackNode!=null&&e.callbackNode===a?gh.bind(null,e):null)}function ph(e,t){if(vu())return null;$d(e,t,!0)}function vp(){Mp(function(){(Se&6)!==0?ir(ao,pp):mh()})}function Fs(){if(ka===0){var e=Ln;e===0&&(e=Si,Si<<=1,(Si&261888)===0&&(Si=256)),ka=e}return ka}function vh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ai(""+e)}function bh(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 bp(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var s=vh((i[rt]||null).action),o=n.submitter;o&&(t=(t=o[rt]||null)?vh(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var m=new zi("action","action",null,n,i);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(ka!==0){var b=o?bh(i,o):new FormData(i);ys(a,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(m.preventDefault(),b=o?bh(i,o):new FormData(i),ys(a,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var Ws=0;Ws<zr.length;Ws++){var $s=zr[Ws],xp=$s.toLowerCase(),Sp=$s[0].toUpperCase()+$s.slice(1);Bt(xp,"on"+Sp)}Bt(Fo,"onAnimationEnd"),Bt(Wo,"onAnimationIteration"),Bt($o,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Lg,"onTransitionRun"),Bt(qg,"onTransitionStart"),Bt(Bg,"onTransitionCancel"),Bt(Po,"onTransitionEnd"),wn("onMouseEnter",["mouseout","mouseover"]),wn("onMouseLeave",["mouseout","mouseover"]),wn("onPointerEnter",["pointerout","pointerover"]),wn("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jl="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(" "),Ep=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function xh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var m=n[o],b=m.instance,j=m.currentTarget;if(m=m.listener,b!==s&&i.isPropagationStopped())break e;s=m,i.currentTarget=j;try{s(i)}catch(R){Ui(R)}i.currentTarget=null,s=b}else for(o=0;o<n.length;o++){if(m=n[o],b=m.instance,j=m.currentTarget,m=m.listener,b!==s&&i.isPropagationStopped())break e;s=m,i.currentTarget=j;try{s(i)}catch(R){Ui(R)}i.currentTarget=null,s=b}}}}function he(e,t){var a=t[or];a===void 0&&(a=t[or]=new Set);var n=e+"__bubble";a.has(n)||(Sh(t,e,2,!1),a.add(n))}function Ps(e,t,a){var n=0;t&&(n|=4),Sh(a,e,n,t)}var Su="_reactListening"+Math.random().toString(36).slice(2);function Is(e){if(!e[Su]){e[Su]=!0,ho.forEach(function(a){a!=="selectionchange"&&(Ep.has(a)||Ps(a,!1,e),Ps(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Su]||(t[Su]=!0,Ps("selectionchange",!1,t))}}function Sh(e,t,a,n){switch(Wh(t)){case 2:var i=Wp;break;case 8:i=$p;break;default:i=mc}a=i.bind(null,t,a,e),i=void 0,!br||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function ec(e,t,a,n,i){var s=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var m=n.stateNode.containerInfo;if(m===i)break;if(o===4)for(o=n.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;m!==null;){if(o=xn(m),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){n=s=o;continue e}m=m.parentNode}}n=n.return}Oo(function(){var j=s,R=pr(a),L=[];e:{var A=Io.get(e);if(A!==void 0){var C=zi,J=e;switch(e){case"keypress":if(Mi(a)===0)break e;case"keydown":case"keyup":C=yg;break;case"focusin":J="focus",C=wr;break;case"focusout":J="blur",C=wr;break;case"beforeblur":case"afterblur":C=wr;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":C=Ao;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=ng;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=vg;break;case Fo:case Wo:case $o:C=ug;break;case Po:C=xg;break;case"scroll":case"scrollend":C=tg;break;case"wheel":C=Eg;break;case"copy":case"cut":case"paste":C=sg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Mo;break;case"toggle":case"beforetoggle":C=Tg}var le=(t&4)!==0,Ce=!le&&(e==="scroll"||e==="scrollend"),T=le?A!==null?A+"Capture":null:A;le=[];for(var E=j,N;E!==null;){var U=E;if(N=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||N===null||T===null||(U=gl(E,T),U!=null&&le.push(Fl(E,U,N))),Ce)break;E=E.return}0<le.length&&(A=new C(A,J,null,a,R),L.push({event:A,listeners:le}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",A&&a!==gr&&(J=a.relatedTarget||a.fromElement)&&(xn(J)||J[bn]))break e;if((C||A)&&(A=R.window===R?R:(A=R.ownerDocument)?A.defaultView||A.parentWindow:window,C?(J=a.relatedTarget||a.toElement,C=j,J=J?xn(J):null,J!==null&&(Ce=d(J),le=J.tag,J!==Ce||le!==5&&le!==27&&le!==6)&&(J=null)):(C=null,J=j),C!==J)){if(le=Ao,U="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(le=Mo,U="onPointerLeave",T="onPointerEnter",E="pointer"),Ce=C==null?A:yl(C),N=J==null?A:yl(J),A=new le(U,E+"leave",C,a,R),A.target=Ce,A.relatedTarget=N,U=null,xn(R)===j&&(le=new le(T,E+"enter",J,a,R),le.target=N,le.relatedTarget=Ce,U=le),Ce=U,C&&J)t:{for(le=wp,T=C,E=J,N=0,U=T;U;U=le(U))N++;U=0;for(var ee=E;ee;ee=le(ee))U++;for(;0<N-U;)T=le(T),N--;for(;0<U-N;)E=le(E),U--;for(;N--;){if(T===E||E!==null&&T===E.alternate){le=T;break t}T=le(T),E=le(E)}le=null}else le=null;C!==null&&Eh(L,A,C,le,!1),J!==null&&Ce!==null&&Eh(L,Ce,J,le,!0)}}e:{if(A=j?yl(j):window,C=A.nodeName&&A.nodeName.toLowerCase(),C==="select"||C==="input"&&A.type==="file")var ve=qo;else if(Ho(A))if(Bo)ve=_g;else{ve=zg;var $=Dg}else C=A.nodeName,!C||C.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?j&&yr(j.elementType)&&(ve=qo):ve=Rg;if(ve&&(ve=ve(e,j))){Lo(L,ve,a,R);break e}$&&$(e,A,j),e==="focusout"&&j&&A.type==="number"&&j.memoizedProps.value!=null&&mr(A,"number",A.value)}switch($=j?yl(j):window,e){case"focusin":(Ho($)||$.contentEditable==="true")&&(Cn=$,Cr=j,Tl=null);break;case"focusout":Tl=Cr=Cn=null;break;case"mousedown":Mr=!0;break;case"contextmenu":case"mouseup":case"dragend":Mr=!1,Ko(L,a,R);break;case"selectionchange":if(Hg)break;case"keydown":case"keyup":Ko(L,a,R)}var ce;if(Or)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else An?_o(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Do&&a.locale!=="ko"&&(An||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&An&&(ce=No()):(Oa=R,xr="value"in Oa?Oa.value:Oa.textContent,An=!0)),$=Eu(j,ye),0<$.length&&(ye=new Co(ye,e,null,a,R),L.push({event:ye,listeners:$}),ce?ye.data=ce:(ce=Uo(a),ce!==null&&(ye.data=ce)))),(ce=Ng?jg(e,a):Ag(e,a))&&(ye=Eu(j,"onBeforeInput"),0<ye.length&&($=new Co("onBeforeInput","beforeinput",null,a,R),L.push({event:$,listeners:ye}),$.data=ce)),bp(L,e,j,a,R)}xh(L,t)})}function Fl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Eu(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=gl(e,a),i!=null&&n.unshift(Fl(e,i,s)),i=gl(e,t),i!=null&&n.push(Fl(e,i,s))),e.tag===3)return n;e=e.return}return[]}function wp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Eh(e,t,a,n,i){for(var s=t._reactName,o=[];a!==null&&a!==n;){var m=a,b=m.alternate,j=m.stateNode;if(m=m.tag,b!==null&&b===n)break;m!==5&&m!==26&&m!==27||j===null||(b=j,i?(j=gl(a,s),j!=null&&o.unshift(Fl(a,j,b))):i||(j=gl(a,s),j!=null&&o.push(Fl(a,j,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var Tp=/\r\n?/g,Op=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(Tp,`
|
|
`).replace(Op,"")}function Th(e,t){return t=wh(t),wh(e)===t}function Ae(e,t,a,n,i,s){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||On(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&On(e,""+n);break;case"className":Ni(e,"class",n);break;case"tabIndex":Ni(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ni(e,a,n);break;case"style":wo(e,n,s);break;case"data":if(t!=="object"){Ni(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ai(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="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 s=="function"&&(a==="formAction"?(t!=="input"&&Ae(e,t,"name",i.name,i,null),Ae(e,t,"formEncType",i.formEncType,i,null),Ae(e,t,"formMethod",i.formMethod,i,null),Ae(e,t,"formTarget",i.formTarget,i,null)):(Ae(e,t,"encType",i.encType,i,null),Ae(e,t,"method",i.method,i,null),Ae(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ai(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=It);break;case"onScroll":n!=null&&he("scroll",e);break;case"onScrollEnd":n!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Ai(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":he("beforetoggle",e),he("toggle",e),Oi(e,"popover",n);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Oi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Iy.get(a)||a,Oi(e,a,n))}}function tc(e,t,a,n,i,s){switch(a){case"style":wo(e,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof n=="string"?On(e,n):(typeof n=="number"||typeof n=="bigint")&&On(e,""+n);break;case"onScroll":n!=null&&he("scroll",e);break;case"onScrollEnd":n!=null&&he("scrollend",e);break;case"onClick":n!=null&&(e.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mo.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),s=e[rt]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof n=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Oi(e,a,n)}}}function at(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 n=!1,i=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ae(e,t,s,o,a,null)}}i&&Ae(e,t,"srcSet",a.srcSet,a,null),n&&Ae(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var m=s=o=i=null,b=null,j=null;for(n in a)if(a.hasOwnProperty(n)){var R=a[n];if(R!=null)switch(n){case"name":i=R;break;case"type":o=R;break;case"checked":b=R;break;case"defaultChecked":j=R;break;case"value":s=R;break;case"defaultValue":m=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,t));break;default:Ae(e,t,n,R,a,null)}}bo(e,s,m,b,j,o,i,!1);return;case"select":he("invalid",e),n=o=s=null;for(i in a)if(a.hasOwnProperty(i)&&(m=a[i],m!=null))switch(i){case"value":s=m;break;case"defaultValue":o=m;break;case"multiple":n=m;default:Ae(e,t,i,m,a,null)}t=s,a=o,e.multiple=!!n,t!=null?Tn(e,!!n,t,!1):a!=null&&Tn(e,!!n,a,!0);return;case"textarea":he("invalid",e),s=i=n=null;for(o in a)if(a.hasOwnProperty(o)&&(m=a[o],m!=null))switch(o){case"value":n=m;break;case"defaultValue":i=m;break;case"children":s=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:Ae(e,t,o,m,a,null)}So(e,n,i,s);return;case"option":for(b in a)a.hasOwnProperty(b)&&(n=a[b],n!=null)&&(b==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Ae(e,t,b,n,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(n=0;n<Jl.length;n++)he(Jl[n],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(j in a)if(a.hasOwnProperty(j)&&(n=a[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ae(e,t,j,n,a,null)}return;default:if(yr(t)){for(R in a)a.hasOwnProperty(R)&&(n=a[R],n!==void 0&&tc(e,t,R,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&Ae(e,t,m,n,a,null))}function Np(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,m=null,b=null,j=null,R=null;for(C in a){var L=a[C];if(a.hasOwnProperty(C)&&L!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":b=L;default:n.hasOwnProperty(C)||Ae(e,t,C,null,n,L)}}for(var A in n){var C=n[A];if(L=a[A],n.hasOwnProperty(A)&&(C!=null||L!=null))switch(A){case"type":s=C;break;case"name":i=C;break;case"checked":j=C;break;case"defaultChecked":R=C;break;case"value":o=C;break;case"defaultValue":m=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,t));break;default:C!==L&&Ae(e,t,A,C,n,L)}}hr(e,o,m,b,j,R,s,i);return;case"select":C=o=m=A=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":C=b;default:n.hasOwnProperty(s)||Ae(e,t,s,null,n,b)}for(i in n)if(s=n[i],b=a[i],n.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":A=s;break;case"defaultValue":m=s;break;case"multiple":o=s;default:s!==b&&Ae(e,t,i,s,n,b)}t=m,a=o,n=C,A!=null?Tn(e,!!a,A,!1):!!n!=!!a&&(t!=null?Tn(e,!!a,t,!0):Tn(e,!!a,a?[]:"",!1));return;case"textarea":C=A=null;for(m in a)if(i=a[m],a.hasOwnProperty(m)&&i!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,null,n,i)}for(o in n)if(i=n[o],s=a[o],n.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case"value":A=i;break;case"defaultValue":C=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==s&&Ae(e,t,o,i,n,s)}xo(e,A,C);return;case"option":for(var J in a)A=a[J],a.hasOwnProperty(J)&&A!=null&&!n.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Ae(e,t,J,null,n,A));for(b in n)A=n[b],C=a[b],n.hasOwnProperty(b)&&A!==C&&(A!=null||C!=null)&&(b==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ae(e,t,b,A,n,C));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 le in a)A=a[le],a.hasOwnProperty(le)&&A!=null&&!n.hasOwnProperty(le)&&Ae(e,t,le,null,n,A);for(j in n)if(A=n[j],C=a[j],n.hasOwnProperty(j)&&A!==C&&(A!=null||C!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:Ae(e,t,j,A,n,C)}return;default:if(yr(t)){for(var Ce in a)A=a[Ce],a.hasOwnProperty(Ce)&&A!==void 0&&!n.hasOwnProperty(Ce)&&tc(e,t,Ce,void 0,n,A);for(R in n)A=n[R],C=a[R],!n.hasOwnProperty(R)||A===C||A===void 0&&C===void 0||tc(e,t,R,A,n,C);return}}for(var T in a)A=a[T],a.hasOwnProperty(T)&&A!=null&&!n.hasOwnProperty(T)&&Ae(e,t,T,null,n,A);for(L in n)A=n[L],C=a[L],!n.hasOwnProperty(L)||A===C||A==null&&C==null||Ae(e,t,L,A,n,C)}function Oh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],s=i.transferSize,o=i.initiatorType,m=i.duration;if(s&&m&&Oh(o)){for(o=0,m=i.responseEnd,n+=1;n<a.length;n++){var b=a[n],j=b.startTime;if(j>m)break;var R=b.transferSize,L=b.initiatorType;R&&Oh(L)&&(b=b.responseEnd,o+=R*(b<m?1:(m-j)/(b-j)))}if(--n,t+=8*(s+o)/(i.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 ac=null,nc=null;function wu(e){return e.nodeType===9?e:e.ownerDocument}function Nh(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 jh(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 lc(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 ic=null;function Ap(){var e=window.event;return e&&e.type==="popstate"?e===ic?!1:(ic=e,!0):(ic=null,!1)}var Ah=typeof setTimeout=="function"?setTimeout:void 0,Cp=typeof clearTimeout=="function"?clearTimeout:void 0,Ch=typeof Promise=="function"?Promise:void 0,Mp=typeof queueMicrotask=="function"?queueMicrotask:typeof Ch<"u"?function(e){return Ch.resolve(null).then(e).catch(Dp)}:Ah;function Dp(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function Mh(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),al(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Wl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Wl(a);for(var s=a.firstChild;s;){var o=s.nextSibling,m=s.nodeName;s[ml]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&Wl(e.ownerDocument.body);a=i}while(a);al(t)}function Dh(e,t){var a=e;e=0;do{var n=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||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function uc(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":uc(a),fr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function zp(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[ml])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function Rp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ut(e.nextSibling),e===null))return null;return e}function zh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ut(e.nextSibling),e===null))return null;return e}function rc(e){return e.data==="$?"||e.data==="$~"}function sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _p(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var cc=null;function Rh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ut(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function _h(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 Uh(e,t,a){switch(t=wu(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 Wl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fr(e)}var Ht=new Map,Hh=new Set;function Tu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ya=X.d;X.d={f:Up,r:Hp,D:Lp,C:qp,L:Bp,m:Yp,X:Qp,S:kp,M:Gp};function Up(){var e=ya.f(),t=yu();return e||t}function Hp(e){var t=Sn(e);t!==null&&t.tag===5&&t.type==="form"?If(t):ya.r(e)}var In=typeof document>"u"?null:document;function Lh(e,t,a){var n=In;if(n&&typeof t=="string"&&t){var i=At(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),Hh.has(i)||(Hh.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),at(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Lp(e){ya.D(e),Lh("dns-prefetch",e,null)}function qp(e,t){ya.C(e,t),Lh("preconnect",e,t)}function Bp(e,t,a){ya.L(e,t,a);var n=In;if(n&&e&&t){var i='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+At(a.imageSizes)+'"]')):i+='[href="'+At(e)+'"]';var s=i;switch(t){case"style":s=el(e);break;case"script":s=tl(e)}Ht.has(s)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ht.set(s,e),n.querySelector(i)!==null||t==="style"&&n.querySelector($l(s))||t==="script"&&n.querySelector(Pl(s))||(t=n.createElement("link"),at(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Yp(e,t){ya.m(e,t);var a=In;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+At(n)+'"][href="'+At(e)+'"]',s=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=tl(e)}if(!Ht.has(s)&&(e=x({rel:"modulepreload",href:e},t),Ht.set(s,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pl(s)))return}n=a.createElement("link"),at(n,"link",e),Fe(n),a.head.appendChild(n)}}}function kp(e,t,a){ya.S(e,t,a);var n=In;if(n&&e){var i=En(n).hoistableStyles,s=el(e);t=t||"default";var o=i.get(s);if(!o){var m={loading:0,preload:null};if(o=n.querySelector($l(s)))m.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ht.get(s))&&oc(e,a);var b=o=n.createElement("link");Fe(b),at(b,"link",e),b._p=new Promise(function(j,R){b.onload=j,b.onerror=R}),b.addEventListener("load",function(){m.loading|=1}),b.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Ou(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:m},i.set(s,o)}}}function Qp(e,t){ya.X(e,t);var a=In;if(a&&e){var n=En(a).hoistableScripts,i=tl(e),s=n.get(i);s||(s=a.querySelector(Pl(i)),s||(e=x({src:e,async:!0},t),(t=Ht.get(i))&&fc(e,t),s=a.createElement("script"),Fe(s),at(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(i,s))}}function Gp(e,t){ya.M(e,t);var a=In;if(a&&e){var n=En(a).hoistableScripts,i=tl(e),s=n.get(i);s||(s=a.querySelector(Pl(i)),s||(e=x({src:e,async:!0,type:"module"},t),(t=Ht.get(i))&&fc(e,t),s=a.createElement("script"),Fe(s),at(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(i,s))}}function qh(e,t,a,n){var i=(i=oe.current)?Tu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=el(a.href),a=En(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=el(a.href);var s=En(i).hoistableStyles,o=s.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=i.querySelector($l(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Ht.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},Ht.set(e,a),s||Xp(i,e,a,o.state))),t&&n===null)throw Error(c(528,""));return o}if(t&&n!==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=tl(a),a=En(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function el(e){return'href="'+At(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function Bh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Xp(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),at(t,"link",a),Fe(t),e.head.appendChild(t))}function tl(e){return'[src="'+At(e)+'"]'}function Pl(e){return"script[async]"+e}function Yh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(n)return t.instance=n,Fe(n),n;var i=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Fe(n),at(n,"style",i),Ou(n,a.precedence,e),t.instance=n;case"stylesheet":i=el(a.href);var s=e.querySelector($l(i));if(s)return t.state.loading|=4,t.instance=s,Fe(s),s;n=Bh(a),(i=Ht.get(i))&&oc(n,i),s=(e.ownerDocument||e).createElement("link"),Fe(s);var o=s;return o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),at(s,"link",n),t.state.loading|=4,Ou(s,a.precedence,e),t.instance=s;case"script":return s=tl(a.src),(i=e.querySelector(Pl(s)))?(t.instance=i,Fe(i),i):(n=a,(i=Ht.get(s))&&(n=x({},a),fc(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),Fe(i),at(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Ou(n,a.precedence,e));return t.instance}function Ou(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,s=i,o=0;o<n.length;o++){var m=n[o];if(m.dataset.precedence===t)s=m;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nu=null;function kh(e,t,a){if(Nu===null){var n=new Map,i=Nu=new Map;i.set(a,n)}else i=Nu,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var s=a[i];if(!(s[ml]||s[Pe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var m=n.get(o);m?m.push(s):n.set(o,[s])}}return n}function Qh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Vp(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 Gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Zp(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=el(n.href),s=t.querySelector($l(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ju.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Fe(s);return}s=t.ownerDocument||t,n=Bh(n),(i=Ht.get(i))&&oc(n,i),s=s.createElement("link"),Fe(s);var o=s;o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),at(s,"link",n),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ju.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var dc=0;function Kp(e,t){return e.stylesheets&&e.count===0&&Cu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Cu(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&dc===0&&(dc=62500*jp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Cu(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>dc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Au=null;function Cu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Au=new Map,t.forEach(Jp,e),Au=null,ju.call(e))}function Jp(e,t){if(!(t.state.loading&4)){var a=Au.get(e);if(a)var n=a.get(null);else{a=new Map,Au.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),n=o)}n&&a.set(null,n)}i=t.instance,o=i.getAttribute("data-precedence"),s=a.get(o)||n,s===n&&a.set(null,i),a.set(o,i),this.count++,n=ju.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Il={$$typeof:Z,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Fp(e,t,a,n,i,s,o,m,b){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=rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.hiddenUpdates=rr(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Xh(e,t,a,n,i,s,o,m,b,j,R,L){return e=new Fp(e,t,a,o,b,j,R,L,m),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=Vr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:t},Fr(s),e}function Vh(e){return e?(e=zn,e):zn}function Zh(e,t,a,n,i,s){i=Vh(i),n.context===null?n.context=i:n.pendingContext=i,n=Da(t),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=za(e,n,t),a!==null&&(ht(a,e,t),Dl(a,e,t))}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hc(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function Jh(e){if(e.tag===13||e.tag===31){var t=an(e,67108864);t!==null&&ht(t,e,67108864),hc(e,67108864)}}function Fh(e){if(e.tag===13||e.tag===31){var t=Tt();t=sr(t);var a=an(e,t);a!==null&&ht(a,e,t),hc(e,t)}}var Mu=!0;function Wp(e,t,a,n){var i=M.T;M.T=null;var s=X.p;try{X.p=2,mc(e,t,a,n)}finally{X.p=s,M.T=i}}function $p(e,t,a,n){var i=M.T;M.T=null;var s=X.p;try{X.p=8,mc(e,t,a,n)}finally{X.p=s,M.T=i}}function mc(e,t,a,n){if(Mu){var i=yc(n);if(i===null)ec(e,t,n,Du,a),$h(e,n);else if(Ip(i,e,t,a,n))n.stopPropagation();else if($h(e,n),t&4&&-1<Pp.indexOf(e)){for(;i!==null;){var s=Sn(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=$a(s.pendingLanes);if(o!==0){var m=s;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var b=1<<31-pt(o);m.entanglements[1]|=b,o&=~b}Ft(s),(Se&6)===0&&(hu=yt()+500,Kl(0))}}break;case 31:case 13:m=an(s,2),m!==null&&ht(m,s,2),yu(),hc(s,2)}if(s=yc(n),s===null&&ec(e,t,n,Du,a),s===i)break;i=s}i!==null&&n.stopPropagation()}else ec(e,t,n,null,a)}}function yc(e){return e=pr(e),gc(e)}var Du=null;function gc(e){if(Du=null,e=xn(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=p(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 Du=e,null}function Wh(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(Ly()){case ao:return 2;case no:return 8;case xi:case qy:return 32;case lo:return 268435456;default:return 32}default:return 32}}var pc=!1,Ga=null,Xa=null,Va=null,ei=new Map,ti=new Map,Za=[],Pp="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 $h(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Xa=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function ai(e,t,a,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Sn(t),t!==null&&Jh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ip(e,t,a,n,i){switch(t){case"focusin":return Ga=ai(Ga,e,t,a,n,i),!0;case"dragenter":return Xa=ai(Xa,e,t,a,n,i),!0;case"mouseover":return Va=ai(Va,e,t,a,n,i),!0;case"pointerover":var s=i.pointerId;return ei.set(s,ai(ei.get(s)||null,e,t,a,n,i)),!0;case"gotpointercapture":return s=i.pointerId,ti.set(s,ai(ti.get(s)||null,e,t,a,n,i)),!0}return!1}function Ph(e){var t=xn(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,oo(e.priority,function(){Fh(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,oo(e.priority,function(){Fh(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 zu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=yc(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);gr=n,a.target.dispatchEvent(n),gr=null}else return t=Sn(a),t!==null&&Jh(t),e.blockedOn=a,!1;t.shift()}return!0}function Ih(e,t,a){zu(e)&&a.delete(t)}function e0(){pc=!1,Ga!==null&&zu(Ga)&&(Ga=null),Xa!==null&&zu(Xa)&&(Xa=null),Va!==null&&zu(Va)&&(Va=null),ei.forEach(Ih),ti.forEach(Ih)}function Ru(e,t){e.blockedOn===t&&(e.blockedOn=null,pc||(pc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,e0)))}var _u=null;function em(e){_u!==e&&(_u=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){_u===e&&(_u=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(gc(n||a)===null)continue;break}var s=Sn(a);s!==null&&(e.splice(t,3),t-=3,ys(s,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function al(e){function t(b){return Ru(b,e)}Ga!==null&&Ru(Ga,e),Xa!==null&&Ru(Xa,e),Va!==null&&Ru(Va,e),ei.forEach(t),ti.forEach(t);for(var a=0;a<Za.length;a++){var n=Za[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Za.length&&(a=Za[0],a.blockedOn===null);)Ph(a),a.blockedOn===null&&Za.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],s=a[n+1],o=i[rt]||null;if(typeof s=="function")o||em(a);else if(o){var m=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[rt]||null)m=o.formAction;else if(gc(i)!==null)continue}else m=o.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),em(a)}}}function tm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function vc(e){this._internalRoot=e}Uu.prototype.render=vc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=Tt();Zh(a,n,e,t,null,null)},Uu.prototype.unmount=vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zh(e.current,2,null,e,null,null),yu(),t[bn]=null}};function Uu(e){this._internalRoot=e}Uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=co();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Za.length&&t!==0&&t<Za[a].priority;a++);Za.splice(a,0,e),a===0&&Ph(e)}};var am=u.version;if(am!=="19.2.4")throw Error(c(527,am,"19.2.4"));X.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=v(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var t0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hu.isDisabled&&Hu.supportsFiber)try{fl=Hu.inject(t0),gt=Hu}catch{}}return li.createRoot=function(e,t){if(!f(e))throw Error(c(299));var a=!1,n="",i=cd,s=od,o=fd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Xh(e,1,!1,null,null,a,n,null,i,s,o,tm),e[bn]=t.current,Is(e),new vc(t)},li.hydrateRoot=function(e,t,a){if(!f(e))throw Error(c(299));var n=!1,i="",s=cd,o=od,m=fd,b=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=Xh(e,1,!0,t,a??null,n,i,b,s,o,m,tm),t.context=Vh(null),a=t.current,n=Tt(),n=sr(n),i=Da(n),i.callback=null,za(a,i,n),a=n,t.current.lanes=a,hl(t,a),Ft(t),e[bn]=t.current,Is(e),new Uu(t)},li.version="19.2.4",li}var dm;function d0(){if(dm)return Sc.exports;dm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Sc.exports=f0(),Sc.exports}var h0=d0();var hm="popstate";function m0(l={}){function u(c,f){let{pathname:d,search:h,hash:p}=c.location;return Dc("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(c,f){return typeof f=="string"?f:oi(f)}return g0(u,r,null,l)}function Ue(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function Lt(l,u){if(!l){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function y0(){return Math.random().toString(36).substring(2,10)}function mm(l,u){return{usr:l.state,key:l.key,idx:u}}function Dc(l,u,r=null,c){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof u=="string"?il(u):u,state:r,key:u&&u.key||c||y0()}}function oi({pathname:l="/",search:u="",hash:r=""}){return u&&u!=="?"&&(l+=u.charAt(0)==="?"?u:"?"+u),r&&r!=="#"&&(l+=r.charAt(0)==="#"?r:"#"+r),l}function il(l){let u={};if(l){let r=l.indexOf("#");r>=0&&(u.hash=l.substring(r),l=l.substring(0,r));let c=l.indexOf("?");c>=0&&(u.search=l.substring(c),l=l.substring(0,c)),l&&(u.pathname=l)}return u}function g0(l,u,r,c={}){let{window:f=document.defaultView,v5Compat:d=!1}=c,h=f.history,p="POP",y=null,v=S();v==null&&(v=0,h.replaceState({...h.state,idx:v},""));function S(){return(h.state||{idx:null}).idx}function x(){p="POP";let D=S(),k=D==null?null:D-v;v=D,y&&y({action:p,location:q.location,delta:k})}function _(D,k){p="PUSH";let G=Dc(q.location,D,k);v=S()+1;let Z=mm(G,v),P=q.createHref(G);try{h.pushState(Z,"",P)}catch(ae){if(ae instanceof DOMException&&ae.name==="DataCloneError")throw ae;f.location.assign(P)}d&&y&&y({action:p,location:q.location,delta:1})}function z(D,k){p="REPLACE";let G=Dc(q.location,D,k);v=S();let Z=mm(G,v),P=q.createHref(G);h.replaceState(Z,"",P),d&&y&&y({action:p,location:q.location,delta:0})}function Y(D){return p0(D)}let q={get action(){return p},get location(){return l(f,h)},listen(D){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(hm,x),y=D,()=>{f.removeEventListener(hm,x),y=null}},createHref(D){return u(f,D)},createURL:Y,encodeLocation(D){let k=Y(D);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:_,replace:z,go(D){return h.go(D)}};return q}function p0(l,u=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(r,"No window.location.(origin|href) available to create URL");let c=typeof l=="string"?l:oi(l);return c=c.replace(/ $/,"%20"),!u&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Gm(l,u,r="/"){return v0(l,u,r,!1)}function v0(l,u,r,c){let f=typeof u=="string"?il(u):u,d=ba(f.pathname||"/",r);if(d==null)return null;let h=Xm(l);b0(h);let p=null;for(let y=0;p==null&&y<h.length;++y){let v=M0(d);p=A0(h[y],v,c)}return p}function Xm(l,u=[],r=[],c="",f=!1){let d=(h,p,y=f,v)=>{let S={relativePath:v===void 0?h.path||"":v,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(c)&&y)return;Ue(S.relativePath.startsWith(c),`Absolute route path "${S.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(c.length)}let x=va([c,S.relativePath]),_=r.concat(S);h.children&&h.children.length>0&&(Ue(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Xm(h.children,u,_,x,y)),!(h.path==null&&!h.index)&&u.push({path:x,score:N0(x,h.index),routesMeta:_})};return l.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let y of Vm(h.path))d(h,p,!0,y)}),u}function Vm(l){let u=l.split("/");if(u.length===0)return[];let[r,...c]=u,f=r.endsWith("?"),d=r.replace(/\?$/,"");if(c.length===0)return f?[d,""]:[d];let h=Vm(c.join("/")),p=[];return p.push(...h.map(y=>y===""?d:[d,y].join("/"))),f&&p.push(...h),p.map(y=>l.startsWith("/")&&y===""?"/":y)}function b0(l){l.sort((u,r)=>u.score!==r.score?r.score-u.score:j0(u.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var x0=/^:[\w-]+$/,S0=3,E0=2,w0=1,T0=10,O0=-2,ym=l=>l==="*";function N0(l,u){let r=l.split("/"),c=r.length;return r.some(ym)&&(c+=O0),u&&(c+=E0),r.filter(f=>!ym(f)).reduce((f,d)=>f+(x0.test(d)?S0:d===""?w0:T0),c)}function j0(l,u){return l.length===u.length&&l.slice(0,-1).every((c,f)=>c===u[f])?l[l.length-1]-u[u.length-1]:0}function A0(l,u,r=!1){let{routesMeta:c}=l,f={},d="/",h=[];for(let p=0;p<c.length;++p){let y=c[p],v=p===c.length-1,S=d==="/"?u:u.slice(d.length)||"/",x=Zu({path:y.relativePath,caseSensitive:y.caseSensitive,end:v},S),_=y.route;if(!x&&v&&r&&!c[c.length-1].route.index&&(x=Zu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},S)),!x)return null;Object.assign(f,x.params),h.push({params:f,pathname:va([d,x.pathname]),pathnameBase:_0(va([d,x.pathnameBase])),route:_}),x.pathnameBase!=="/"&&(d=va([d,x.pathnameBase]))}return h}function Zu(l,u){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[r,c]=C0(l.path,l.caseSensitive,l.end),f=u.match(r);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:c.reduce((v,{paramName:S,isOptional:x},_)=>{if(S==="*"){let Y=p[_]||"";h=d.slice(0,d.length-Y.length).replace(/(.)\/+$/,"$1")}const z=p[_];return x&&!z?v[S]=void 0:v[S]=(z||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:h,pattern:l}}function C0(l,u=!1,r=!0){Lt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let c=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,y)=>(c.push({paramName:p,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),c]}function M0(l){try{return l.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Lt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),l}}function ba(l,u){if(u==="/")return l;if(!l.toLowerCase().startsWith(u.toLowerCase()))return null;let r=u.endsWith("/")?u.length-1:u.length,c=l.charAt(r);return c&&c!=="/"?null:l.slice(r)||"/"}var D0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function z0(l,u="/"){let{pathname:r,search:c="",hash:f=""}=typeof l=="string"?il(l):l,d;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?d=gm(r.substring(1),"/"):d=gm(r,u)):d=u,{pathname:d,search:U0(c),hash:H0(f)}}function gm(l,u){let r=u.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?r.length>1&&r.pop():f!=="."&&r.push(f)}),r.length>1?r.join("/"):"/"}function Oc(l,u,r,c){return`Cannot include a '${l}' character in a manually specified \`to.${u}\` 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 R0(l){return l.filter((u,r)=>r===0||u.route.path&&u.route.path.length>0)}function Gc(l){let u=R0(l);return u.map((r,c)=>c===u.length-1?r.pathname:r.pathnameBase)}function Xc(l,u,r,c=!1){let f;typeof l=="string"?f=il(l):(f={...l},Ue(!f.pathname||!f.pathname.includes("?"),Oc("?","pathname","search",f)),Ue(!f.pathname||!f.pathname.includes("#"),Oc("#","pathname","hash",f)),Ue(!f.search||!f.search.includes("#"),Oc("#","search","hash",f)));let d=l===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=r;else{let x=u.length-1;if(!c&&h.startsWith("..")){let _=h.split("/");for(;_[0]==="..";)_.shift(),x-=1;f.pathname=_.join("/")}p=x>=0?u[x]:"/"}let y=z0(f,p),v=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&r.endsWith("/");return!y.pathname.endsWith("/")&&(v||S)&&(y.pathname+="/"),y}var va=l=>l.join("/").replace(/\/\/+/g,"/"),_0=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),U0=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,H0=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,L0=class{constructor(l,u,r,c=!1){this.status=l,this.statusText=u||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function q0(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function B0(l){return l.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Zm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Km(l,u){let r=l;if(typeof r!="string"||!D0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,f=!1;if(Zm)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),p=ba(h.pathname,u);h.origin===d.origin&&p!=null?r=p+h.search+h.hash:f=!0}catch{Lt(!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:f,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Jm=["POST","PUT","PATCH","DELETE"];new Set(Jm);var Y0=["GET",...Jm];new Set(Y0);var ul=O.createContext(null);ul.displayName="DataRouter";var $u=O.createContext(null);$u.displayName="DataRouterState";var k0=O.createContext(!1),Fm=O.createContext({isTransitioning:!1});Fm.displayName="ViewTransition";var Q0=O.createContext(new Map);Q0.displayName="Fetchers";var G0=O.createContext(null);G0.displayName="Await";var Nt=O.createContext(null);Nt.displayName="Navigation";var pi=O.createContext(null);pi.displayName="Location";var Gt=O.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Vc=O.createContext(null);Vc.displayName="RouteError";var Wm="REACT_ROUTER_ERROR",X0="REDIRECT",V0="ROUTE_ERROR_RESPONSE";function Z0(l){if(l.startsWith(`${Wm}:${X0}:{`))try{let u=JSON.parse(l.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function K0(l){if(l.startsWith(`${Wm}:${V0}:{`))try{let u=JSON.parse(l.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new L0(u.status,u.statusText,u.data)}catch{}}function J0(l,{relative:u}={}){Ue(rl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=O.useContext(Nt),{hash:f,pathname:d,search:h}=vi(l,{relative:u}),p=d;return r!=="/"&&(p=d==="/"?r:va([r,d])),c.createHref({pathname:p,search:h,hash:f})}function rl(){return O.useContext(pi)!=null}function $t(){return Ue(rl(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(pi).location}var $m="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Pm(l){O.useContext(Nt).static||O.useLayoutEffect(l)}function sl(){let{isDataRoute:l}=O.useContext(Gt);return l?cv():F0()}function F0(){Ue(rl(),"useNavigate() may be used only in the context of a <Router> component.");let l=O.useContext(ul),{basename:u,navigator:r}=O.useContext(Nt),{matches:c}=O.useContext(Gt),{pathname:f}=$t(),d=JSON.stringify(Gc(c)),h=O.useRef(!1);return Pm(()=>{h.current=!0}),O.useCallback((y,v={})=>{if(Lt(h.current,$m),!h.current)return;if(typeof y=="number"){r.go(y);return}let S=Xc(y,JSON.parse(d),f,v.relative==="path");l==null&&u!=="/"&&(S.pathname=S.pathname==="/"?u:va([u,S.pathname])),(v.replace?r.replace:r.push)(S,v.state,v)},[u,r,d,f,l])}var W0=O.createContext(null);function $0(l){let u=O.useContext(Gt).outlet;return O.useMemo(()=>u&&O.createElement(W0.Provider,{value:l},u),[u,l])}function vi(l,{relative:u}={}){let{matches:r}=O.useContext(Gt),{pathname:c}=$t(),f=JSON.stringify(Gc(r));return O.useMemo(()=>Xc(l,JSON.parse(f),c,u==="path"),[l,f,c,u])}function P0(l,u){return Im(l,u)}function Im(l,u,r,c,f){Ue(rl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=O.useContext(Nt),{matches:h}=O.useContext(Gt),p=h[h.length-1],y=p?p.params:{},v=p?p.pathname:"/",S=p?p.pathnameBase:"/",x=p&&p.route;{let G=x&&x.path||"";ty(v,!x||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${G}">) 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="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let _=$t(),z;if(u){let G=typeof u=="string"?il(u):u;Ue(S==="/"||G.pathname?.startsWith(S),`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 "${S}" but pathname "${G.pathname}" was given in the \`location\` prop.`),z=G}else z=_;let Y=z.pathname||"/",q=Y;if(S!=="/"){let G=S.replace(/^\//,"").split("/");q="/"+Y.replace(/^\//,"").split("/").slice(G.length).join("/")}let D=Gm(l,{pathname:q});Lt(x||D!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),Lt(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.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 k=nv(D&&D.map(G=>Object.assign({},G,{params:Object.assign({},y,G.params),pathname:va([S,d.encodeLocation?d.encodeLocation(G.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?S:va([S,d.encodeLocation?d.encodeLocation(G.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),h,r,c,f);return u&&k?O.createElement(pi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},k):k}function I0(){let l=sv(),u=q0(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),r=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:d},"ErrorBoundary")," or"," ",O.createElement("code",{style:d},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},u),r?O.createElement("pre",{style:f},r):null,h)}var ev=O.createElement(I0,null),ey=class extends O.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,u){return u.location!==l.location||u.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:u.error,location:u.location,revalidation:l.revalidation||u.revalidation}}componentDidCatch(l,u){this.props.onError?this.props.onError(l,u):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const r=K0(l.digest);r&&(l=r)}let u=l!==void 0?O.createElement(Gt.Provider,{value:this.props.routeContext},O.createElement(Vc.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?O.createElement(tv,{error:l},u):u}};ey.contextType=k0;var Nc=new WeakMap;function tv({children:l,error:u}){let{basename:r}=O.useContext(Nt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=Z0(u.digest);if(c){let f=Nc.get(u);if(f)throw f;let d=Km(c.location,r);if(Zm&&!Nc.get(u))if(d.isExternal||c.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:c.replace}));throw Nc.set(u,h),h}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return l}function av({routeContext:l,match:u,children:r}){let c=O.useContext(ul);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),O.createElement(Gt.Provider,{value:l},r)}function nv(l,u=[],r=null,c=null,f=null){if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let d=l,h=r?.errors;if(h!=null){let S=d.findIndex(x=>x.route.id&&h?.[x.route.id]!==void 0);Ue(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,y=-1;if(r)for(let S=0;S<d.length;S++){let x=d[S];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(y=S),x.route.id){let{loaderData:_,errors:z}=r,Y=x.route.loader&&!_.hasOwnProperty(x.route.id)&&(!z||z[x.route.id]===void 0);if(x.route.lazy||Y){p=!0,y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}let v=r&&c?(S,x)=>{c(S,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:B0(r.matches),errorInfo:x})}:void 0;return d.reduceRight((S,x,_)=>{let z,Y=!1,q=null,D=null;r&&(z=h&&x.route.id?h[x.route.id]:void 0,q=x.route.errorElement||ev,p&&(y<0&&_===0?(ty("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Y=!0,D=null):y===_&&(Y=!0,D=x.route.hydrateFallbackElement||null)));let k=u.concat(d.slice(0,_+1)),G=()=>{let Z;return z?Z=q:Y?Z=D:x.route.Component?Z=O.createElement(x.route.Component,null):x.route.element?Z=x.route.element:Z=S,O.createElement(av,{match:x,routeContext:{outlet:S,matches:k,isDataRoute:r!=null},children:Z})};return r&&(x.route.ErrorBoundary||x.route.errorElement||_===0)?O.createElement(ey,{location:r.location,revalidation:r.revalidation,component:q,error:z,children:G(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:v}):G()},null)}function Zc(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lv(l){let u=O.useContext(ul);return Ue(u,Zc(l)),u}function iv(l){let u=O.useContext($u);return Ue(u,Zc(l)),u}function uv(l){let u=O.useContext(Gt);return Ue(u,Zc(l)),u}function Kc(l){let u=uv(l),r=u.matches[u.matches.length-1];return Ue(r.route.id,`${l} can only be used on routes that contain a unique "id"`),r.route.id}function rv(){return Kc("useRouteId")}function sv(){let l=O.useContext(Vc),u=iv("useRouteError"),r=Kc("useRouteError");return l!==void 0?l:u.errors?.[r]}function cv(){let{router:l}=lv("useNavigate"),u=Kc("useNavigate"),r=O.useRef(!1);return Pm(()=>{r.current=!0}),O.useCallback(async(f,d={})=>{Lt(r.current,$m),r.current&&(typeof f=="number"?await l.navigate(f):await l.navigate(f,{fromRouteId:u,...d}))},[l,u])}var pm={};function ty(l,u,r){!u&&!pm[l]&&(pm[l]=!0,Lt(!1,r))}O.memo(ov);function ov({routes:l,future:u,state:r,onError:c}){return Im(l,void 0,r,c,u)}function Qu({to:l,replace:u,state:r,relative:c}){Ue(rl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=O.useContext(Nt);Lt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=O.useContext(Gt),{pathname:h}=$t(),p=sl(),y=Xc(l,Gc(d),h,c==="path"),v=JSON.stringify(y);return O.useEffect(()=>{p(JSON.parse(v),{replace:u,state:r,relative:c})},[p,v,c,u,r]),null}function fv(l){return $0(l.context)}function Wt(l){Ue(!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 dv({basename:l="/",children:u=null,location:r,navigationType:c="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){Ue(!rl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),y=O.useMemo(()=>({basename:p,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[p,f,d,h]);typeof r=="string"&&(r=il(r));let{pathname:v="/",search:S="",hash:x="",state:_=null,key:z="default"}=r,Y=O.useMemo(()=>{let q=ba(v,p);return q==null?null:{location:{pathname:q,search:S,hash:x,state:_,key:z},navigationType:c}},[p,v,S,x,_,z,c]);return Lt(Y!=null,`<Router basename="${p}"> is not able to match the URL "${v}${S}${x}" because it does not start with the basename, so the <Router> won't render anything.`),Y==null?null:O.createElement(Nt.Provider,{value:y},O.createElement(pi.Provider,{children:u,value:Y}))}function hv({children:l,location:u}){return P0(zc(l),u)}function zc(l,u=[]){let r=[];return O.Children.forEach(l,(c,f)=>{if(!O.isValidElement(c))return;let d=[...u,f];if(c.type===O.Fragment){r.push.apply(r,zc(c.props.children,d));return}Ue(c.type===Wt,`[${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>`),Ue(!c.props.index||!c.props.children,"An index route cannot have child routes.");let h={id:c.props.id||d.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&&(h.children=zc(c.props.children,d)),r.push(h)}),r}var Gu="get",Xu="application/x-www-form-urlencoded";function Pu(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function mv(l){return Pu(l)&&l.tagName.toLowerCase()==="button"}function yv(l){return Pu(l)&&l.tagName.toLowerCase()==="form"}function gv(l){return Pu(l)&&l.tagName.toLowerCase()==="input"}function pv(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function vv(l,u){return l.button===0&&(!u||u==="_self")&&!pv(l)}function Rc(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((u,r)=>{let c=l[r];return u.concat(Array.isArray(c)?c.map(f=>[r,f]):[[r,c]])},[]))}function bv(l,u){let r=Rc(l);return u&&u.forEach((c,f)=>{r.has(f)||u.getAll(f).forEach(d=>{r.append(f,d)})}),r}var qu=null;function xv(){if(qu===null)try{new FormData(document.createElement("form"),0),qu=!1}catch{qu=!0}return qu}var Sv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jc(l){return l!=null&&!Sv.has(l)?(Lt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xu}"`),null):l}function Ev(l,u){let r,c,f,d,h;if(yv(l)){let p=l.getAttribute("action");c=p?ba(p,u):null,r=l.getAttribute("method")||Gu,f=jc(l.getAttribute("enctype"))||Xu,d=new FormData(l)}else if(mv(l)||gv(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=l.getAttribute("formaction")||p.getAttribute("action");if(c=y?ba(y,u):null,r=l.getAttribute("formmethod")||p.getAttribute("method")||Gu,f=jc(l.getAttribute("formenctype"))||jc(p.getAttribute("enctype"))||Xu,d=new FormData(p,l),!xv()){let{name:v,type:S,value:x}=l;if(S==="image"){let _=v?`${v}.`:"";d.append(`${_}x`,"0"),d.append(`${_}y`,"0")}else v&&d.append(v,x)}}else{if(Pu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Gu,c=null,f=Xu,h=l}return d&&f==="text/plain"&&(h=d,d=void 0),{action:c,method:r.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Jc(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function wv(l,u,r,c){let f=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return r?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:u&&ba(f.pathname,u)==="/"?f.pathname=`${u.replace(/\/$/,"")}/_root.${c}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${c}`,f}async function Tv(l,u){if(l.id in u)return u[l.id];try{let r=await import(l.module);return u[l.id]=r,r}catch(r){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ov(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Nv(l,u,r){let c=await Promise.all(l.map(async f=>{let d=u.routes[f.route.id];if(d){let h=await Tv(d,r);return h.links?h.links():[]}return[]}));return Mv(c.flat(1).filter(Ov).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function vm(l,u,r,c,f,d){let h=(y,v)=>r[v]?y.route.id!==r[v].route.id:!0,p=(y,v)=>r[v].pathname!==y.pathname||r[v].route.path?.endsWith("*")&&r[v].params["*"]!==y.params["*"];return d==="assets"?u.filter((y,v)=>h(y,v)||p(y,v)):d==="data"?u.filter((y,v)=>{let S=c.routes[y.route.id];if(!S||!S.hasLoader)return!1;if(h(y,v)||p(y,v))return!0;if(y.route.shouldRevalidate){let x=y.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function jv(l,u,{includeHydrateFallback:r}={}){return Av(l.map(c=>{let f=u.routes[c.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),r&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function Av(l){return[...new Set(l)]}function Cv(l){let u={},r=Object.keys(l).sort();for(let c of r)u[c]=l[c];return u}function Mv(l,u){let r=new Set;return new Set(u),l.reduce((c,f)=>{let d=JSON.stringify(Cv(f));return r.has(d)||(r.add(d),c.push({key:d,link:f})),c},[])}function ay(){let l=O.useContext(ul);return Jc(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Dv(){let l=O.useContext($u);return Jc(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Fc=O.createContext(void 0);Fc.displayName="FrameworkContext";function ny(){let l=O.useContext(Fc);return Jc(l,"You must render this element inside a <HydratedRouter> element"),l}function zv(l,u){let r=O.useContext(Fc),[c,f]=O.useState(!1),[d,h]=O.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:v,onMouseLeave:S,onTouchStart:x}=u,_=O.useRef(null);O.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let q=k=>{k.forEach(G=>{h(G.isIntersecting)})},D=new IntersectionObserver(q,{threshold:.5});return _.current&&D.observe(_.current),()=>{D.disconnect()}}},[l]),O.useEffect(()=>{if(c){let q=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(q)}}},[c]);let z=()=>{f(!0)},Y=()=>{f(!1),h(!1)};return r?l!=="intent"?[d,_,{}]:[d,_,{onFocus:ii(p,z),onBlur:ii(y,Y),onMouseEnter:ii(v,z),onMouseLeave:ii(S,Y),onTouchStart:ii(x,z)}]:[!1,_,{}]}function ii(l,u){return r=>{l&&l(r),r.defaultPrevented||u(r)}}function Rv({page:l,...u}){let{router:r}=ay(),c=O.useMemo(()=>Gm(r.routes,l,r.basename),[r.routes,l,r.basename]);return c?O.createElement(Uv,{page:l,matches:c,...u}):null}function _v(l){let{manifest:u,routeModules:r}=ny(),[c,f]=O.useState([]);return O.useEffect(()=>{let d=!1;return Nv(l,u,r).then(h=>{d||f(h)}),()=>{d=!0}},[l,u,r]),c}function Uv({page:l,matches:u,...r}){let c=$t(),{future:f,manifest:d,routeModules:h}=ny(),{basename:p}=ay(),{loaderData:y,matches:v}=Dv(),S=O.useMemo(()=>vm(l,u,v,d,c,"data"),[l,u,v,d,c]),x=O.useMemo(()=>vm(l,u,v,d,c,"assets"),[l,u,v,d,c]),_=O.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let q=new Set,D=!1;if(u.forEach(G=>{let Z=d.routes[G.route.id];!Z||!Z.hasLoader||(!S.some(P=>P.route.id===G.route.id)&&G.route.id in y&&h[G.route.id]?.shouldRevalidate||Z.hasClientLoader?D=!0:q.add(G.route.id))}),q.size===0)return[];let k=wv(l,p,f.unstable_trailingSlashAwareDataRequests,"data");return D&&q.size>0&&k.searchParams.set("_routes",u.filter(G=>q.has(G.route.id)).map(G=>G.route.id).join(",")),[k.pathname+k.search]},[p,f.unstable_trailingSlashAwareDataRequests,y,c,d,S,u,l,h]),z=O.useMemo(()=>jv(x,d),[x,d]),Y=_v(x);return O.createElement(O.Fragment,null,_.map(q=>O.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...r})),z.map(q=>O.createElement("link",{key:q,rel:"modulepreload",href:q,...r})),Y.map(({key:q,link:D})=>O.createElement("link",{key:q,nonce:r.nonce,...D,crossOrigin:D.crossOrigin??r.crossOrigin})))}function Hv(...l){return u=>{l.forEach(r=>{typeof r=="function"?r(u):r!=null&&(r.current=u)})}}var Lv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lv&&(window.__reactRouterVersion="7.13.0")}catch{}function qv({basename:l,children:u,unstable_useTransitions:r,window:c}){let f=O.useRef();f.current==null&&(f.current=m0({window:c,v5Compat:!0}));let d=f.current,[h,p]=O.useState({action:d.action,location:d.location}),y=O.useCallback(v=>{r===!1?p(v):O.startTransition(()=>p(v))},[r]);return O.useLayoutEffect(()=>d.listen(y),[d,y]),O.createElement(dv,{basename:l,children:u,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:r})}var ly=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pa=O.forwardRef(function({onClick:u,discover:r="render",prefetch:c="none",relative:f,reloadDocument:d,replace:h,state:p,target:y,to:v,preventScrollReset:S,viewTransition:x,unstable_defaultShouldRevalidate:_,...z},Y){let{basename:q,unstable_useTransitions:D}=O.useContext(Nt),k=typeof v=="string"&&ly.test(v),G=Km(v,q);v=G.to;let Z=J0(v,{relative:f}),[P,ae,te]=zv(c,z),I=Qv(v,{replace:h,state:p,target:y,preventScrollReset:S,relative:f,viewTransition:x,unstable_defaultShouldRevalidate:_,unstable_useTransitions:D});function K(Ze){u&&u(Ze),Ze.defaultPrevented||I(Ze)}let we=O.createElement("a",{...z,...te,href:G.absoluteURL||Z,onClick:G.isExternal||d?u:K,ref:Hv(Y,ae),target:y,"data-discover":!k&&r==="render"?"true":void 0});return P&&!k?O.createElement(O.Fragment,null,we,O.createElement(Rv,{page:Z})):we});pa.displayName="Link";var Bv=O.forwardRef(function({"aria-current":u="page",caseSensitive:r=!1,className:c="",end:f=!1,style:d,to:h,viewTransition:p,children:y,...v},S){let x=vi(h,{relative:v.relative}),_=$t(),z=O.useContext($u),{navigator:Y,basename:q}=O.useContext(Nt),D=z!=null&&Jv(x)&&p===!0,k=Y.encodeLocation?Y.encodeLocation(x).pathname:x.pathname,G=_.pathname,Z=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(G=G.toLowerCase(),Z=Z?Z.toLowerCase():null,k=k.toLowerCase()),Z&&q&&(Z=ba(Z,q)||Z);const P=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let ae=G===k||!f&&G.startsWith(k)&&G.charAt(P)==="/",te=Z!=null&&(Z===k||!f&&Z.startsWith(k)&&Z.charAt(k.length)==="/"),I={isActive:ae,isPending:te,isTransitioning:D},K=ae?u:void 0,we;typeof c=="function"?we=c(I):we=[c,ae?"active":null,te?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let Ze=typeof d=="function"?d(I):d;return O.createElement(pa,{...v,"aria-current":K,className:we,ref:S,style:Ze,to:h,viewTransition:p},typeof y=="function"?y(I):y)});Bv.displayName="NavLink";var Yv=O.forwardRef(({discover:l="render",fetcherKey:u,navigate:r,reloadDocument:c,replace:f,state:d,method:h=Gu,action:p,onSubmit:y,relative:v,preventScrollReset:S,viewTransition:x,unstable_defaultShouldRevalidate:_,...z},Y)=>{let{unstable_useTransitions:q}=O.useContext(Nt),D=Zv(),k=Kv(p,{relative:v}),G=h.toLowerCase()==="get"?"get":"post",Z=typeof p=="string"&&ly.test(p),P=ae=>{if(y&&y(ae),ae.defaultPrevented)return;ae.preventDefault();let te=ae.nativeEvent.submitter,I=te?.getAttribute("formmethod")||h,K=()=>D(te||ae.currentTarget,{fetcherKey:u,method:I,navigate:r,replace:f,state:d,relative:v,preventScrollReset:S,viewTransition:x,unstable_defaultShouldRevalidate:_});q&&r!==!1?O.startTransition(()=>K()):K()};return O.createElement("form",{ref:Y,method:G,action:k,onSubmit:c?y:P,...z,"data-discover":!Z&&l==="render"?"true":void 0})});Yv.displayName="Form";function kv(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function iy(l){let u=O.useContext(ul);return Ue(u,kv(l)),u}function Qv(l,{target:u,replace:r,state:c,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let v=sl(),S=$t(),x=vi(l,{relative:d});return O.useCallback(_=>{if(vv(_,u)){_.preventDefault();let z=r!==void 0?r:oi(S)===oi(x),Y=()=>v(l,{replace:z,state:c,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});y?O.startTransition(()=>Y()):Y()}},[S,v,x,r,c,u,l,f,d,h,p,y])}function Gv(l){Lt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=O.useRef(Rc(l)),r=O.useRef(!1),c=$t(),f=O.useMemo(()=>bv(c.search,r.current?null:u.current),[c.search]),d=sl(),h=O.useCallback((p,y)=>{const v=Rc(typeof p=="function"?p(new URLSearchParams(f)):p);r.current=!0,d("?"+v,y)},[d,f]);return[f,h]}var Xv=0,Vv=()=>`__${String(++Xv)}__`;function Zv(){let{router:l}=iy("useSubmit"),{basename:u}=O.useContext(Nt),r=rv(),c=l.fetch,f=l.navigate;return O.useCallback(async(d,h={})=>{let{action:p,method:y,encType:v,formData:S,body:x}=Ev(d,u);if(h.navigate===!1){let _=h.fetcherKey||Vv();await c(_,r,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:x,formMethod:h.method||y,formEncType:h.encType||v,flushSync:h.flushSync})}else await f(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:x,formMethod:h.method||y,formEncType:h.encType||v,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,f,u,r])}function Kv(l,{relative:u}={}){let{basename:r}=O.useContext(Nt),c=O.useContext(Gt);Ue(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),d={...vi(l||".",{relative:u})},h=$t();if(l==null){d.search=h.search;let p=new URLSearchParams(d.search),y=p.getAll("index");if(y.some(S=>S==="")){p.delete("index"),y.filter(x=>x).forEach(x=>p.append("index",x));let S=p.toString();d.search=S?`?${S}`:""}}return(!l||l===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:va([r,d.pathname])),oi(d)}function Jv(l,{relative:u}={}){let r=O.useContext(Fm);Ue(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=iy("useViewTransitionState"),f=vi(l,{relative:u});if(!r.isTransitioning)return!1;let d=ba(r.currentLocation.pathname,c)||r.currentLocation.pathname,h=ba(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Zu(f.pathname,h)!=null||Zu(f.pathname,d)!=null}var Iu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fv={setTimeout:(l,u)=>setTimeout(l,u),clearTimeout:l=>clearTimeout(l),setInterval:(l,u)=>setInterval(l,u),clearInterval:l=>clearInterval(l)},Wv=class{#e=Fv;#a=!1;setTimeoutProvider(l){this.#e=l}setTimeout(l,u){return this.#e.setTimeout(l,u)}clearTimeout(l){this.#e.clearTimeout(l)}setInterval(l,u){return this.#e.setInterval(l,u)}clearInterval(l){this.#e.clearInterval(l)}},_c=new Wv;function $v(l){setTimeout(l,0)}var er=typeof window>"u"||"Deno"in globalThis;function Qt(){}function Pv(l,u){return typeof l=="function"?l(u):l}function Iv(l){return typeof l=="number"&&l>=0&&l!==1/0}function eb(l,u){return Math.max(l+(u||0)-Date.now(),0)}function Uc(l,u){return typeof l=="function"?l(u):l}function tb(l,u){return typeof l=="function"?l(u):l}function bm(l,u){const{type:r="all",exact:c,fetchStatus:f,predicate:d,queryKey:h,stale:p}=l;if(h){if(c){if(u.queryHash!==Wc(h,u.options))return!1}else if(!di(u.queryKey,h))return!1}if(r!=="all"){const y=u.isActive();if(r==="active"&&!y||r==="inactive"&&y)return!1}return!(typeof p=="boolean"&&u.isStale()!==p||f&&f!==u.state.fetchStatus||d&&!d(u))}function xm(l,u){const{exact:r,status:c,predicate:f,mutationKey:d}=l;if(d){if(!u.options.mutationKey)return!1;if(r){if(fi(u.options.mutationKey)!==fi(d))return!1}else if(!di(u.options.mutationKey,d))return!1}return!(c&&u.state.status!==c||f&&!f(u))}function Wc(l,u){return(u?.queryKeyHashFn||fi)(l)}function fi(l){return JSON.stringify(l,(u,r)=>Hc(r)?Object.keys(r).sort().reduce((c,f)=>(c[f]=r[f],c),{}):r)}function di(l,u){return l===u?!0:typeof l!=typeof u?!1:l&&u&&typeof l=="object"&&typeof u=="object"?Object.keys(u).every(r=>di(l[r],u[r])):!1}var ab=Object.prototype.hasOwnProperty;function uy(l,u,r=0){if(l===u)return l;if(r>500)return u;const c=Sm(l)&&Sm(u);if(!c&&!(Hc(l)&&Hc(u)))return u;const d=(c?l:Object.keys(l)).length,h=c?u:Object.keys(u),p=h.length,y=c?new Array(p):{};let v=0;for(let S=0;S<p;S++){const x=c?S:h[S],_=l[x],z=u[x];if(_===z){y[x]=_,(c?S<d:ab.call(l,x))&&v++;continue}if(_===null||z===null||typeof _!="object"||typeof z!="object"){y[x]=z;continue}const Y=uy(_,z,r+1);y[x]=Y,Y===_&&v++}return d===p&&v===d?l:y}function Sm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Hc(l){if(!Em(l))return!1;const u=l.constructor;if(u===void 0)return!0;const r=u.prototype;return!(!Em(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Em(l){return Object.prototype.toString.call(l)==="[object Object]"}function nb(l){return new Promise(u=>{_c.setTimeout(u,l)})}function lb(l,u,r){return typeof r.structuralSharing=="function"?r.structuralSharing(l,u):r.structuralSharing!==!1?uy(l,u):u}function ib(l,u,r=0){const c=[...l,u];return r&&c.length>r?c.slice(1):c}function ub(l,u,r=0){const c=[u,...l];return r&&c.length>r?c.slice(0,-1):c}var $c=Symbol();function ry(l,u){return!l.queryFn&&u?.initialPromise?()=>u.initialPromise:!l.queryFn||l.queryFn===$c?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function rb(l,u,r){let c=!1,f;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(f??=u(),c||(c=!0,f.aborted?r():f.addEventListener("abort",r,{once:!0})),f)}),l}var sb=class extends Iu{#e;#a;#t;constructor(){super(),this.#t=l=>{if(!er&&window.addEventListener){const u=()=>l();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#a||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(l){this.#t=l,this.#a?.(),this.#a=l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(l){this.#e!==l&&(this.#e=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(u=>{u(l)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},sy=new sb;function cb(){let l,u;const r=new Promise((f,d)=>{l=f,u=d});r.status="pending",r.catch(()=>{});function c(f){Object.assign(r,f),delete r.resolve,delete r.reject}return r.resolve=f=>{c({status:"fulfilled",value:f}),l(f)},r.reject=f=>{c({status:"rejected",reason:f}),u(f)},r}var ob=$v;function fb(){let l=[],u=0,r=p=>{p()},c=p=>{p()},f=ob;const d=p=>{u?l.push(p):f(()=>{r(p)})},h=()=>{const p=l;l=[],p.length&&f(()=>{c(()=>{p.forEach(y=>{r(y)})})})};return{batch:p=>{let y;u++;try{y=p()}finally{u--,u||h()}return y},batchCalls:p=>(...y)=>{d(()=>{p(...y)})},schedule:d,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{c=p},setScheduler:p=>{f=p}}}var ut=fb(),db=class extends Iu{#e=!0;#a;#t;constructor(){super(),this.#t=l=>{if(!er&&window.addEventListener){const u=()=>l(!0),r=()=>l(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#a||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(l){this.#t=l,this.#a?.(),this.#a=l(this.setOnline.bind(this))}setOnline(l){this.#e!==l&&(this.#e=l,this.listeners.forEach(r=>{r(l)}))}isOnline(){return this.#e}},Ku=new db;function hb(l){return Math.min(1e3*2**l,3e4)}function cy(l){return(l??"online")==="online"?Ku.isOnline():!0}var Lc=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function oy(l){let u=!1,r=0,c;const f=cb(),d=()=>f.status!=="pending",h=q=>{if(!d()){const D=new Lc(q);_(D),l.onCancel?.(D)}},p=()=>{u=!0},y=()=>{u=!1},v=()=>sy.isFocused()&&(l.networkMode==="always"||Ku.isOnline())&&l.canRun(),S=()=>cy(l.networkMode)&&l.canRun(),x=q=>{d()||(c?.(),f.resolve(q))},_=q=>{d()||(c?.(),f.reject(q))},z=()=>new Promise(q=>{c=D=>{(d()||v())&&q(D)},l.onPause?.()}).then(()=>{c=void 0,d()||l.onContinue?.()}),Y=()=>{if(d())return;let q;const D=r===0?l.initialPromise:void 0;try{q=D??l.fn()}catch(k){q=Promise.reject(k)}Promise.resolve(q).then(x).catch(k=>{if(d())return;const G=l.retry??(er?0:3),Z=l.retryDelay??hb,P=typeof Z=="function"?Z(r,k):Z,ae=G===!0||typeof G=="number"&&r<G||typeof G=="function"&&G(r,k);if(u||!ae){_(k);return}r++,l.onFail?.(r,k),nb(P).then(()=>v()?void 0:z()).then(()=>{u?_(k):Y()})})};return{promise:f,status:()=>f.status,cancel:h,continue:()=>(c?.(),f),cancelRetry:p,continueRetry:y,canStart:S,start:()=>(S()?Y():z().then(Y),f)}}var fy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Iv(this.gcTime)&&(this.#e=_c.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(er?1/0:300*1e3))}clearGcTimeout(){this.#e&&(_c.clearTimeout(this.#e),this.#e=void 0)}},mb=class extends fy{#e;#a;#t;#l;#n;#u;#r;constructor(l){super(),this.#r=!1,this.#u=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#l=l.client,this.#t=this.#l.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#e=Tm(this.options),this.state=l.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(l){if(this.options={...this.#u,...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=Tm(this.options);u.data!==void 0&&(this.setState(wm(u.data,u.dataUpdatedAt)),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(l,u){const r=lb(this.state.data,l,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),r}setState(l,u){this.#i({type:"setState",state:l,setStateOptions:u})}cancel(l){const u=this.#n?.promise;return this.#n?.cancel(l),u?u.then(Qt).catch(Qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(l=>tb(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$c||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Uc(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!eb(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(u=>u!==l),this.observers.length||(this.#n&&(this.#r?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(l,u){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(l&&this.setOptions(l),!this.options.queryFn){const p=this.observers.find(y=>y.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,c=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#r=!0,r.signal)})},f=()=>{const p=ry(this.options,u),v=(()=>{const S={client:this.#l,queryKey:this.queryKey,meta:this.meta};return c(S),S})();return this.#r=!1,this.options.persister?this.options.persister(p,v,this):p(v)},h=(()=>{const p={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:f};return c(p),p})();this.options.behavior?.onFetch(h,this),this.#a=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta}),this.#n=oy({initialPromise:u?.initialPromise,fn:h.fetchFn,onCancel:p=>{p instanceof Lc&&p.revert&&this.setState({...this.#a,fetchStatus:"idle"}),r.abort()},onFail:(p,y)=>{this.#i({type:"failed",failureCount:p,error:y})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const p=await this.#n.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#t.config.onSuccess?.(p,this),this.#t.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof Lc){if(p.silent)return this.#n.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#i({type:"error",error:p}),this.#t.config.onError?.(p,this),this.#t.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#i(l){const u=r=>{switch(l.type){case"failed":return{...r,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yb(r.data,this.options),fetchMeta:l.meta??null};case"success":const c={...r,...wm(l.data,l.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#a=l.manual?c:void 0,c;case"error":const f=l.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...l.state}}};this.state=u(this.state),ut.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:l})})}};function yb(l,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cy(u.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function wm(l,u){return{data:l,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Tm(l){const u=typeof l.initialData=="function"?l.initialData():l.initialData,r=u!==void 0,c=r?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function Om(l){return{onFetch:(u,r)=>{const c=u.options,f=u.fetchOptions?.meta?.fetchMore?.direction,d=u.state.data?.pages||[],h=u.state.data?.pageParams||[];let p={pages:[],pageParams:[]},y=0;const v=async()=>{let S=!1;const x=Y=>{rb(Y,()=>u.signal,()=>S=!0)},_=ry(u.options,u.fetchOptions),z=async(Y,q,D)=>{if(S)return Promise.reject();if(q==null&&Y.pages.length)return Promise.resolve(Y);const G=(()=>{const te={client:u.client,queryKey:u.queryKey,pageParam:q,direction:D?"backward":"forward",meta:u.options.meta};return x(te),te})(),Z=await _(G),{maxPages:P}=u.options,ae=D?ub:ib;return{pages:ae(Y.pages,Z,P),pageParams:ae(Y.pageParams,q,P)}};if(f&&d.length){const Y=f==="backward",q=Y?gb:Nm,D={pages:d,pageParams:h},k=q(c,D);p=await z(D,k,Y)}else{const Y=l??d.length;do{const q=y===0?h[0]??c.initialPageParam:Nm(c,p);if(y>0&&q==null)break;p=await z(p,q),y++}while(y<Y)}return p};u.options.persister?u.fetchFn=()=>u.options.persister?.(v,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},r):u.fetchFn=v}}}function Nm(l,{pages:u,pageParams:r}){const c=u.length-1;return u.length>0?l.getNextPageParam(u[c],u,r[c],r):void 0}function gb(l,{pages:u,pageParams:r}){return u.length>0?l.getPreviousPageParam?.(u[0],u,r[0],r):void 0}var pb=class extends fy{#e;#a;#t;#l;constructor(l){super(),this.#e=l.client,this.mutationId=l.mutationId,this.#t=l.mutationCache,this.#a=[],this.state=l.state||vb(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#a.includes(l)||(this.#a.push(l),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#a=this.#a.filter(u=>u!==l),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#a.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(l){const u=()=>{this.#n({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=oy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,r):Promise.reject(new Error("No mutationFn found")),onFail:(d,h)=>{this.#n({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#n({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const c=this.state.status==="pending",f=!this.#l.canStart();try{if(c)u();else{this.#n({type:"pending",variables:l,isPaused:f}),this.#t.config.onMutate&&await this.#t.config.onMutate(l,this,r);const h=await this.options.onMutate?.(l,r);h!==this.state.context&&this.#n({type:"pending",context:h,variables:l,isPaused:f})}const d=await this.#l.start();return await this.#t.config.onSuccess?.(d,l,this.state.context,this,r),await this.options.onSuccess?.(d,l,this.state.context,r),await this.#t.config.onSettled?.(d,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(d,null,l,this.state.context,r),this.#n({type:"success",data:d}),d}catch(d){try{await this.#t.config.onError?.(d,l,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onError?.(d,l,this.state.context,r)}catch(h){Promise.reject(h)}try{await this.#t.config.onSettled?.(void 0,d,this.state.variables,this.state.context,this,r)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,d,l,this.state.context,r)}catch(h){Promise.reject(h)}throw this.#n({type:"error",error:d}),d}finally{this.#t.runNext(this)}}#n(l){const u=r=>{switch(l.type){case"failed":return{...r,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...r,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:l.error,failureCount:r.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=u(this.state),ut.batch(()=>{this.#a.forEach(r=>{r.onMutationUpdate(l)}),this.#t.notify({mutation:this,type:"updated",action:l})})}};function vb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bb=class extends Iu{constructor(l={}){super(),this.config=l,this.#e=new Set,this.#a=new Map,this.#t=0}#e;#a;#t;build(l,u,r){const c=new pb({client:l,mutationCache:this,mutationId:++this.#t,options:l.defaultMutationOptions(u),state:r});return this.add(c),c}add(l){this.#e.add(l);const u=Bu(l);if(typeof u=="string"){const r=this.#a.get(u);r?r.push(l):this.#a.set(u,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#e.delete(l)){const u=Bu(l);if(typeof u=="string"){const r=this.#a.get(u);if(r)if(r.length>1){const c=r.indexOf(l);c!==-1&&r.splice(c,1)}else r[0]===l&&this.#a.delete(u)}}this.notify({type:"removed",mutation:l})}canRun(l){const u=Bu(l);if(typeof u=="string"){const c=this.#a.get(u)?.find(f=>f.state.status==="pending");return!c||c===l}else return!0}runNext(l){const u=Bu(l);return typeof u=="string"?this.#a.get(u)?.find(c=>c!==l&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ut.batch(()=>{this.#e.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#e.clear(),this.#a.clear()})}getAll(){return Array.from(this.#e)}find(l){const u={exact:!0,...l};return this.getAll().find(r=>xm(u,r))}findAll(l={}){return this.getAll().filter(u=>xm(l,u))}notify(l){ut.batch(()=>{this.listeners.forEach(u=>{u(l)})})}resumePausedMutations(){const l=this.getAll().filter(u=>u.state.isPaused);return ut.batch(()=>Promise.all(l.map(u=>u.continue().catch(Qt))))}};function Bu(l){return l.options.scope?.id}var xb=class extends Iu{constructor(l={}){super(),this.config=l,this.#e=new Map}#e;build(l,u,r){const c=u.queryKey,f=u.queryHash??Wc(c,u);let d=this.get(f);return d||(d=new mb({client:l,queryKey:c,queryHash:f,options:l.defaultQueryOptions(u),state:r,defaultOptions:l.getQueryDefaults(c)}),this.add(d)),d}add(l){this.#e.has(l.queryHash)||(this.#e.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const u=this.#e.get(l.queryHash);u&&(l.destroy(),u===l&&this.#e.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){ut.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#e.get(l)}getAll(){return[...this.#e.values()]}find(l){const u={exact:!0,...l};return this.getAll().find(r=>bm(u,r))}findAll(l={}){const u=this.getAll();return Object.keys(l).length>0?u.filter(r=>bm(l,r)):u}notify(l){ut.batch(()=>{this.listeners.forEach(u=>{u(l)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Sb=class{#e;#a;#t;#l;#n;#u;#r;#i;constructor(l={}){this.#e=l.queryCache||new xb,this.#a=l.mutationCache||new bb,this.#t=l.defaultOptions||{},this.#l=new Map,this.#n=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=sy.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Ku.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(l){return this.#e.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#a.findAll({...l,status:"pending"}).length}getQueryData(l){const u=this.defaultQueryOptions({queryKey:l});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(l){const u=this.defaultQueryOptions(l),r=this.#e.build(this,u),c=r.state.data;return c===void 0?this.fetchQuery(l):(l.revalidateIfStale&&r.isStaleByTime(Uc(u.staleTime,r))&&this.prefetchQuery(u),Promise.resolve(c))}getQueriesData(l){return this.#e.findAll(l).map(({queryKey:u,state:r})=>{const c=r.data;return[u,c]})}setQueryData(l,u,r){const c=this.defaultQueryOptions({queryKey:l}),d=this.#e.get(c.queryHash)?.state.data,h=Pv(u,d);if(h!==void 0)return this.#e.build(this,c).setData(h,{...r,manual:!0})}setQueriesData(l,u,r){return ut.batch(()=>this.#e.findAll(l).map(({queryKey:c})=>[c,this.setQueryData(c,u,r)]))}getQueryState(l){const u=this.defaultQueryOptions({queryKey:l});return this.#e.get(u.queryHash)?.state}removeQueries(l){const u=this.#e;ut.batch(()=>{u.findAll(l).forEach(r=>{u.remove(r)})})}resetQueries(l,u){const r=this.#e;return ut.batch(()=>(r.findAll(l).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...l},u)))}cancelQueries(l,u={}){const r={revert:!0,...u},c=ut.batch(()=>this.#e.findAll(l).map(f=>f.cancel(r)));return Promise.all(c).then(Qt).catch(Qt)}invalidateQueries(l,u={}){return ut.batch(()=>(this.#e.findAll(l).forEach(r=>{r.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},u)))}refetchQueries(l,u={}){const r={...u,cancelRefetch:u.cancelRefetch??!0},c=ut.batch(()=>this.#e.findAll(l).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let d=f.fetch(void 0,r);return r.throwOnError||(d=d.catch(Qt)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(Qt)}fetchQuery(l){const u=this.defaultQueryOptions(l);u.retry===void 0&&(u.retry=!1);const r=this.#e.build(this,u);return r.isStaleByTime(Uc(u.staleTime,r))?r.fetch(u):Promise.resolve(r.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(Qt).catch(Qt)}fetchInfiniteQuery(l){return l.behavior=Om(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(Qt).catch(Qt)}ensureInfiniteQueryData(l){return l.behavior=Om(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Ku.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#a}getDefaultOptions(){return this.#t}setDefaultOptions(l){this.#t=l}setQueryDefaults(l,u){this.#l.set(fi(l),{queryKey:l,defaultOptions:u})}getQueryDefaults(l){const u=[...this.#l.values()],r={};return u.forEach(c=>{di(l,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(l,u){this.#n.set(fi(l),{mutationKey:l,defaultOptions:u})}getMutationDefaults(l){const u=[...this.#n.values()],r={};return u.forEach(c=>{di(l,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(l){if(l._defaulted)return l;const u={...this.#t.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return u.queryHash||(u.queryHash=Wc(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===$c&&(u.enabled=!1),u}defaultMutationOptions(l){return l?._defaulted?l:{...this.#t.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#e.clear(),this.#a.clear()}},Eb=O.createContext(void 0),wb=({client:l,children:u})=>(O.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),g.jsx(Eb.Provider,{value:l,children:u}));const jm=l=>{let u;const r=new Set,c=(v,S)=>{const x=typeof v=="function"?v(u):v;if(!Object.is(x,u)){const _=u;u=S??(typeof x!="object"||x===null)?x:Object.assign({},u,x),r.forEach(z=>z(u,_))}},f=()=>u,p={setState:c,getState:f,getInitialState:()=>y,subscribe:v=>(r.add(v),()=>r.delete(v))},y=u=l(c,f,p);return p},Tb=(l=>l?jm(l):jm),Ob=l=>l;function Nb(l,u=Ob){const r=Lu.useSyncExternalStore(l.subscribe,Lu.useCallback(()=>u(l.getState()),[l,u]),Lu.useCallback(()=>u(l.getInitialState()),[l,u]));return Lu.useDebugValue(r),r}const Am=l=>{const u=Tb(l),r=c=>Nb(u,c);return Object.assign(r,u),r},dy=(l=>l?Am(l):Am);function jb(l,u){let r;try{r=l()}catch{return}return{getItem:f=>{var d;const h=y=>y===null?null:JSON.parse(y,void 0),p=(d=r.getItem(f))!=null?d:null;return p instanceof Promise?p.then(h):h(p)},setItem:(f,d)=>r.setItem(f,JSON.stringify(d,void 0)),removeItem:f=>r.removeItem(f)}}const qc=l=>u=>{try{const r=l(u);return r instanceof Promise?r:{then(c){return qc(c)(r)},catch(c){return this}}}catch(r){return{then(c){return this},catch(c){return qc(c)(r)}}}},Ab=(l,u)=>(r,c,f)=>{let d={storage:jb(()=>localStorage),partialize:D=>D,version:0,merge:(D,k)=>({...k,...D}),...u},h=!1,p=0;const y=new Set,v=new Set;let S=d.storage;if(!S)return l((...D)=>{console.warn(`[zustand persist middleware] Unable to update item '${d.name}', the given storage is currently unavailable.`),r(...D)},c,f);const x=()=>{const D=d.partialize({...c()});return S.setItem(d.name,{state:D,version:d.version})},_=f.setState;f.setState=(D,k)=>(_(D,k),x());const z=l((...D)=>(r(...D),x()),c,f);f.getInitialState=()=>z;let Y;const q=()=>{var D,k;if(!S)return;const G=++p;h=!1,y.forEach(P=>{var ae;return P((ae=c())!=null?ae:z)});const Z=((k=d.onRehydrateStorage)==null?void 0:k.call(d,(D=c())!=null?D:z))||void 0;return qc(S.getItem.bind(S))(d.name).then(P=>{if(P)if(typeof P.version=="number"&&P.version!==d.version){if(d.migrate){const ae=d.migrate(P.state,P.version);return ae instanceof Promise?ae.then(te=>[!0,te]):[!0,ae]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,P.state];return[!1,void 0]}).then(P=>{var ae;if(G!==p)return;const[te,I]=P;if(Y=d.merge(I,(ae=c())!=null?ae:z),r(Y,!0),te)return x()}).then(()=>{G===p&&(Z?.(Y,void 0),Y=c(),h=!0,v.forEach(P=>P(Y)))}).catch(P=>{G===p&&Z?.(void 0,P)})};return f.persist={setOptions:D=>{d={...d,...D},D.storage&&(S=D.storage)},clearStorage:()=>{S?.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>q(),hasHydrated:()=>h,onHydrate:D=>(y.add(D),()=>{y.delete(D)}),onFinishHydration:D=>(v.add(D),()=>{v.delete(D)})},d.skipHydration||q(),Y||z},Cb=Ab,Mb="https://api.todo.donovankelly.xyz/api",ui="https://api.todo.donovankelly.xyz";class Db{token=null;setToken(u){this.token=u}async fetch(u,r={}){const c={"Content-Type":"application/json",...r.headers};this.token&&(c.Authorization=`Bearer ${this.token}`);const f=await fetch(`${Mb}${u}`,{...r,headers:c,credentials:"include"});if(!f.ok){const d=await f.json().catch(()=>({error:"Unknown error"}));throw new Error(d.error||d.details||"Request failed")}return f.json()}async login(u,r){const c=await fetch(`${ui}/api/auth/sign-in/email`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,password:r}),credentials:"include"});if(!c.ok){const f=await c.json().catch(()=>({message:"Login failed"}));throw new Error(f.message||"Login failed")}return c.json()}async logout(){await fetch(`${ui}/api/auth/sign-out`,{method:"POST",credentials:"include"})}async getSession(){try{const u=await fetch(`${ui}/api/auth/get-session`,{credentials:"include"});return u.ok?u.json():null}catch{return null}}async validateInvite(u){const r=await fetch(`${ui}/auth/invite/${u}`);if(!r.ok){const c=await r.json().catch(()=>({error:"Invalid invite"}));throw new Error(c.error)}return r.json()}async acceptInvite(u,r){const c=await fetch(`${ui}/auth/invite/${u}/accept`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:r})});if(!c.ok){const f=await c.json().catch(()=>({error:"Failed to accept invite"}));throw new Error(f.error)}}async getProjects(){return this.fetch("/projects")}async getProject(u){return this.fetch(`/projects/${u}`)}async createProject(u){return this.fetch("/projects",{method:"POST",body:JSON.stringify(u)})}async updateProject(u,r){return this.fetch(`/projects/${u}`,{method:"PATCH",body:JSON.stringify(r)})}async deleteProject(u){await this.fetch(`/projects/${u}`,{method:"DELETE"})}async createSection(u,r){return this.fetch(`/projects/${u}/sections`,{method:"POST",body:JSON.stringify(r)})}async updateSection(u,r,c){return this.fetch(`/projects/${u}/sections/${r}`,{method:"PATCH",body:JSON.stringify(c)})}async deleteSection(u,r){await this.fetch(`/projects/${u}/sections/${r}`,{method:"DELETE"})}async getTasks(u){const r=new URLSearchParams;u&&Object.entries(u).forEach(([f,d])=>{d!==void 0&&r.set(f,String(d))});const c=r.toString();return this.fetch(`/tasks${c?`?${c}`:""}`)}async getTask(u){return this.fetch(`/tasks/${u}`)}async createTask(u){return this.fetch("/tasks",{method:"POST",body:JSON.stringify(u)})}async updateTask(u,r){return this.fetch(`/tasks/${u}`,{method:"PATCH",body:JSON.stringify(r)})}async deleteTask(u){await this.fetch(`/tasks/${u}`,{method:"DELETE"})}async getLabels(){return this.fetch("/labels")}async createLabel(u){return this.fetch("/labels",{method:"POST",body:JSON.stringify(u)})}async updateLabel(u,r){return this.fetch(`/labels/${u}`,{method:"PATCH",body:JSON.stringify(r)})}async deleteLabel(u){await this.fetch(`/labels/${u}`,{method:"DELETE"})}async getComments(u){return this.fetch(`/comments/task/${u}`)}async createComment(u){return this.fetch("/comments",{method:"POST",body:JSON.stringify(u)})}async deleteComment(u){await this.fetch(`/comments/${u}`,{method:"DELETE"})}async getUsers(){return this.fetch("/admin/users")}async updateUserRole(u,r){await this.fetch(`/admin/users/${u}/role`,{method:"PATCH",body:JSON.stringify({role:r})})}async deleteUser(u){await this.fetch(`/admin/users/${u}`,{method:"DELETE"})}async createInvite(u){return this.fetch("/admin/invites",{method:"POST",body:JSON.stringify(u)})}async getInvites(){return this.fetch("/admin/invites")}async deleteInvite(u){await this.fetch(`/admin/invites/${u}`,{method:"DELETE"})}}const $e=new Db,bi=dy()(Cb((l,u)=>({user:null,isLoading:!0,isAuthenticated:!1,setUser:r=>l({user:r,isAuthenticated:!!r,isLoading:!1}),login:async(r,c)=>{l({isLoading:!0});try{await $e.login(r,c);const f=await $e.getSession();if(f?.user)l({user:f.user,isAuthenticated:!0,isLoading:!1});else throw new Error("Failed to get session")}catch(f){throw l({isLoading:!1}),f}},logout:async()=>{try{await $e.logout()}finally{l({user:null,isAuthenticated:!1})}},checkSession:async()=>{l({isLoading:!0});try{const r=await $e.getSession();r?.user?l({user:r.user,isAuthenticated:!0,isLoading:!1}):l({user:null,isAuthenticated:!1,isLoading:!1})}catch{l({user:null,isAuthenticated:!1,isLoading:!1})}}}),{name:"auth-storage",partialize:l=>({user:l.user})}));const hy=(...l)=>l.filter((u,r,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===r).join(" ").trim();const zb=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Rb=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,r,c)=>c?c.toUpperCase():r.toLowerCase());const Cm=l=>{const u=Rb(l);return u.charAt(0).toUpperCase()+u.slice(1)};var _b={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ub=l=>{for(const u in l)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};const Hb=O.forwardRef(({color:l="currentColor",size:u=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:f="",children:d,iconNode:h,...p},y)=>O.createElement("svg",{ref:y,..._b,width:u,height:u,stroke:l,strokeWidth:c?Number(r)*24/Number(u):r,className:hy("lucide",f),...!d&&!Ub(p)&&{"aria-hidden":"true"},...p},[...h.map(([v,S])=>O.createElement(v,S)),...Array.isArray(d)?d:[d]]));const lt=(l,u)=>{const r=O.forwardRef(({className:c,...f},d)=>O.createElement(Hb,{ref:d,iconNode:u,className:hy(`lucide-${zb(Cm(l))}`,`lucide-${l}`,c),...f}));return r.displayName=Cm(l),r};const Lb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],my=lt("calendar-days",Lb);const qb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],hi=lt("calendar",qb);const Bb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],yy=lt("check",Bb);const Yb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mm=lt("chevron-down",Yb);const kb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Bc=lt("chevron-right",kb);const Qb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Gb=lt("copy",Qb);const Xb=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Vb=lt("ellipsis",Xb);const Zb=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],Kb=lt("flag",Zb);const Jb=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Yc=lt("inbox",Jb);const Fb=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Wb=lt("log-out",Fb);const $b=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Pb=lt("mail",$b);const Ib=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ju=lt("plus",Ib);const e1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],t1=lt("settings",e1);const a1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],n1=lt("tag",a1);const l1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Dm=lt("trash-2",l1);const i1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],u1=lt("users",i1);function gy(l){var u,r,c="";if(typeof l=="string"||typeof l=="number")c+=l;else if(typeof l=="object")if(Array.isArray(l)){var f=l.length;for(u=0;u<f;u++)l[u]&&(r=gy(l[u]))&&(c&&(c+=" "),c+=r)}else for(r in l)l[r]&&(c&&(c+=" "),c+=r);return c}function r1(){for(var l,u,r=0,c="",f=arguments.length;r<f;r++)(l=arguments[r])&&(u=gy(l))&&(c&&(c+=" "),c+=u);return c}const s1=(l,u)=>{const r=new Array(l.length+u.length);for(let c=0;c<l.length;c++)r[c]=l[c];for(let c=0;c<u.length;c++)r[l.length+c]=u[c];return r},c1=(l,u)=>({classGroupId:l,validator:u}),py=(l=new Map,u=null,r)=>({nextPart:l,validators:u,classGroupId:r}),Fu="-",zm=[],o1="arbitrary..",f1=l=>{const u=h1(l),{conflictingClassGroups:r,conflictingClassGroupModifiers:c}=l;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return d1(h);const p=h.split(Fu),y=p[0]===""&&p.length>1?1:0;return vy(p,y,u)},getConflictingClassGroupIds:(h,p)=>{if(p){const y=c[h],v=r[h];return y?v?s1(v,y):y:v||zm}return r[h]||zm}}},vy=(l,u,r)=>{if(l.length-u===0)return r.classGroupId;const f=l[u],d=r.nextPart.get(f);if(d){const v=vy(l,u+1,d);if(v)return v}const h=r.validators;if(h===null)return;const p=u===0?l.join(Fu):l.slice(u).join(Fu),y=h.length;for(let v=0;v<y;v++){const S=h[v];if(S.validator(p))return S.classGroupId}},d1=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const u=l.slice(1,-1),r=u.indexOf(":"),c=u.slice(0,r);return c?o1+c:void 0})(),h1=l=>{const{theme:u,classGroups:r}=l;return m1(r,u)},m1=(l,u)=>{const r=py();for(const c in l){const f=l[c];Pc(f,r,c,u)}return r},Pc=(l,u,r,c)=>{const f=l.length;for(let d=0;d<f;d++){const h=l[d];y1(h,u,r,c)}},y1=(l,u,r,c)=>{if(typeof l=="string"){g1(l,u,r);return}if(typeof l=="function"){p1(l,u,r,c);return}v1(l,u,r,c)},g1=(l,u,r)=>{const c=l===""?u:by(u,l);c.classGroupId=r},p1=(l,u,r,c)=>{if(b1(l)){Pc(l(c),u,r,c);return}u.validators===null&&(u.validators=[]),u.validators.push(c1(r,l))},v1=(l,u,r,c)=>{const f=Object.entries(l),d=f.length;for(let h=0;h<d;h++){const[p,y]=f[h];Pc(y,by(u,p),r,c)}},by=(l,u)=>{let r=l;const c=u.split(Fu),f=c.length;for(let d=0;d<f;d++){const h=c[d];let p=r.nextPart.get(h);p||(p=py(),r.nextPart.set(h,p)),r=p}return r},b1=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,x1=l=>{if(l<1)return{get:()=>{},set:()=>{}};let u=0,r=Object.create(null),c=Object.create(null);const f=(d,h)=>{r[d]=h,u++,u>l&&(u=0,c=r,r=Object.create(null))};return{get(d){let h=r[d];if(h!==void 0)return h;if((h=c[d])!==void 0)return f(d,h),h},set(d,h){d in r?r[d]=h:f(d,h)}}},kc="!",Rm=":",S1=[],_m=(l,u,r,c,f)=>({modifiers:l,hasImportantModifier:u,baseClassName:r,maybePostfixModifierPosition:c,isExternal:f}),E1=l=>{const{prefix:u,experimentalParseClassName:r}=l;let c=f=>{const d=[];let h=0,p=0,y=0,v;const S=f.length;for(let q=0;q<S;q++){const D=f[q];if(h===0&&p===0){if(D===Rm){d.push(f.slice(y,q)),y=q+1;continue}if(D==="/"){v=q;continue}}D==="["?h++:D==="]"?h--:D==="("?p++:D===")"&&p--}const x=d.length===0?f:f.slice(y);let _=x,z=!1;x.endsWith(kc)?(_=x.slice(0,-1),z=!0):x.startsWith(kc)&&(_=x.slice(1),z=!0);const Y=v&&v>y?v-y:void 0;return _m(d,z,_,Y)};if(u){const f=u+Rm,d=c;c=h=>h.startsWith(f)?d(h.slice(f.length)):_m(S1,!1,h,void 0,!0)}if(r){const f=c;c=d=>r({className:d,parseClassName:f})}return c},w1=l=>{const u=new Map;return l.orderSensitiveModifiers.forEach((r,c)=>{u.set(r,1e6+c)}),r=>{const c=[];let f=[];for(let d=0;d<r.length;d++){const h=r[d],p=h[0]==="[",y=u.has(h);p||y?(f.length>0&&(f.sort(),c.push(...f),f=[]),c.push(h)):f.push(h)}return f.length>0&&(f.sort(),c.push(...f)),c}},T1=l=>({cache:x1(l.cacheSize),parseClassName:E1(l),sortModifiers:w1(l),...f1(l)}),O1=/\s+/,N1=(l,u)=>{const{parseClassName:r,getClassGroupId:c,getConflictingClassGroupIds:f,sortModifiers:d}=u,h=[],p=l.trim().split(O1);let y="";for(let v=p.length-1;v>=0;v-=1){const S=p[v],{isExternal:x,modifiers:_,hasImportantModifier:z,baseClassName:Y,maybePostfixModifierPosition:q}=r(S);if(x){y=S+(y.length>0?" "+y:y);continue}let D=!!q,k=c(D?Y.substring(0,q):Y);if(!k){if(!D){y=S+(y.length>0?" "+y:y);continue}if(k=c(Y),!k){y=S+(y.length>0?" "+y:y);continue}D=!1}const G=_.length===0?"":_.length===1?_[0]:d(_).join(":"),Z=z?G+kc:G,P=Z+k;if(h.indexOf(P)>-1)continue;h.push(P);const ae=f(k,D);for(let te=0;te<ae.length;++te){const I=ae[te];h.push(Z+I)}y=S+(y.length>0?" "+y:y)}return y},j1=(...l)=>{let u=0,r,c,f="";for(;u<l.length;)(r=l[u++])&&(c=xy(r))&&(f&&(f+=" "),f+=c);return f},xy=l=>{if(typeof l=="string")return l;let u,r="";for(let c=0;c<l.length;c++)l[c]&&(u=xy(l[c]))&&(r&&(r+=" "),r+=u);return r},A1=(l,...u)=>{let r,c,f,d;const h=y=>{const v=u.reduce((S,x)=>x(S),l());return r=T1(v),c=r.cache.get,f=r.cache.set,d=p,p(y)},p=y=>{const v=c(y);if(v)return v;const S=N1(y,r);return f(y,S),S};return d=h,(...y)=>d(j1(...y))},C1=[],Ve=l=>{const u=r=>r[l]||C1;return u.isThemeGetter=!0,u},Sy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ey=/^\((?:(\w[\w-]*):)?(.+)\)$/i,M1=/^\d+\/\d+$/,D1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,R1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nl=l=>M1.test(l),fe=l=>!!l&&!Number.isNaN(Number(l)),Ja=l=>!!l&&Number.isInteger(Number(l)),Ac=l=>l.endsWith("%")&&fe(l.slice(0,-1)),ga=l=>D1.test(l),H1=()=>!0,L1=l=>z1.test(l)&&!R1.test(l),wy=()=>!1,q1=l=>_1.test(l),B1=l=>U1.test(l),Y1=l=>!F(l)&&!W(l),k1=l=>cl(l,Ny,wy),F=l=>Sy.test(l),gn=l=>cl(l,jy,L1),Cc=l=>cl(l,Z1,fe),Um=l=>cl(l,Ty,wy),Q1=l=>cl(l,Oy,B1),Yu=l=>cl(l,Ay,q1),W=l=>Ey.test(l),ri=l=>ol(l,jy),G1=l=>ol(l,K1),Hm=l=>ol(l,Ty),X1=l=>ol(l,Ny),V1=l=>ol(l,Oy),ku=l=>ol(l,Ay,!0),cl=(l,u,r)=>{const c=Sy.exec(l);return c?c[1]?u(c[1]):r(c[2]):!1},ol=(l,u,r=!1)=>{const c=Ey.exec(l);return c?c[1]?u(c[1]):r:!1},Ty=l=>l==="position"||l==="percentage",Oy=l=>l==="image"||l==="url",Ny=l=>l==="length"||l==="size"||l==="bg-size",jy=l=>l==="length",Z1=l=>l==="number",K1=l=>l==="family-name",Ay=l=>l==="shadow",J1=()=>{const l=Ve("color"),u=Ve("font"),r=Ve("text"),c=Ve("font-weight"),f=Ve("tracking"),d=Ve("leading"),h=Ve("breakpoint"),p=Ve("container"),y=Ve("spacing"),v=Ve("radius"),S=Ve("shadow"),x=Ve("inset-shadow"),_=Ve("text-shadow"),z=Ve("drop-shadow"),Y=Ve("blur"),q=Ve("perspective"),D=Ve("aspect"),k=Ve("ease"),G=Ve("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ae=()=>[...P(),W,F],te=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],K=()=>[W,F,y],we=()=>[nl,"full","auto",...K()],Ze=()=>[Ja,"none","subgrid",W,F],ne=()=>["auto",{span:["full",Ja,W,F]},Ja,W,F],ge=()=>[Ja,"auto",W,F],Xt=()=>["auto","min","max","fr",W,F],mt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ke=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...K()],X=()=>[nl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],B=()=>[l,W,F],xe=()=>[...P(),Hm,Um,{position:[W,F]}],Ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",X1,k1,{size:[W,F]}],H=()=>[Ac,ri,gn],Q=()=>["","none","full",v,W,F],V=()=>["",fe,ri,gn],ue=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[fe,Ac,Hm,Um],Je=()=>["","none",Y,W,F],De=()=>["none",fe,W,F],Vt=()=>["none",fe,W,F],Sa=()=>[fe,W,F],Ea=()=>[nl,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ga],breakpoint:[ga],color:[H1],container:[ga],"drop-shadow":[ga],ease:["in","out","in-out"],font:[Y1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ga],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ga],shadow:[ga],spacing:["px",fe],text:[ga],"text-shadow":[ga],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nl,F,W,D]}],container:["container"],columns:[{columns:[fe,F,W,p]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ae()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:we()}],"inset-x":[{"inset-x":we()}],"inset-y":[{"inset-y":we()}],start:[{start:we()}],end:[{end:we()}],top:[{top:we()}],right:[{right:we()}],bottom:[{bottom:we()}],left:[{left:we()}],visibility:["visible","invisible","collapse"],z:[{z:[Ja,"auto",W,F]}],basis:[{basis:[nl,"full","auto",p,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[fe,nl,"auto","initial","none",F]}],grow:[{grow:["",fe,W,F]}],shrink:[{shrink:["",fe,W,F]}],order:[{order:[Ja,"first","last","none",W,F]}],"grid-cols":[{"grid-cols":Ze()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":Ze()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Xt()}],"auto-rows":[{"auto-rows":Xt()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...mt(),"normal"]}],"justify-items":[{"justify-items":[...Ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ke()]}],"align-content":[{content:["normal",...mt()]}],"align-items":[{items:[...Ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":mt()}],"place-items":[{"place-items":[...Ke(),"baseline"]}],"place-self":[{"place-self":["auto",...Ke()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[p,"screen",...X()]}],"min-w":[{"min-w":[p,"screen","none",...X()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[h]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,ri,gn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,W,Cc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ac,F]}],"font-family":[{font:[G1,F,u]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[f,W,F]}],"line-clamp":[{"line-clamp":[fe,"none",W,Cc]}],leading:[{leading:[d,...K()]}],"list-image":[{"list-image":["none",W,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[fe,"from-font","auto",W,gn]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[fe,"auto",W,F]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:xe()}],"bg-repeat":[{bg:Ee()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ja,W,F],radial:["",W,F],conic:[Ja,W,F]},V1,Q1]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[fe,W,F]}],"outline-w":[{outline:["",fe,ri,gn]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",S,ku,Yu]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",x,ku,Yu]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[fe,gn]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",_,ku,Yu]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[fe,W,F]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[W,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xe()}],"mask-repeat":[{mask:Ee()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,F]}],filter:[{filter:["","none",W,F]}],blur:[{blur:Je()}],brightness:[{brightness:[fe,W,F]}],contrast:[{contrast:[fe,W,F]}],"drop-shadow":[{"drop-shadow":["","none",z,ku,Yu]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",fe,W,F]}],"hue-rotate":[{"hue-rotate":[fe,W,F]}],invert:[{invert:["",fe,W,F]}],saturate:[{saturate:[fe,W,F]}],sepia:[{sepia:["",fe,W,F]}],"backdrop-filter":[{"backdrop-filter":["","none",W,F]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[fe,W,F]}],"backdrop-contrast":[{"backdrop-contrast":[fe,W,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",fe,W,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[fe,W,F]}],"backdrop-invert":[{"backdrop-invert":["",fe,W,F]}],"backdrop-opacity":[{"backdrop-opacity":[fe,W,F]}],"backdrop-saturate":[{"backdrop-saturate":[fe,W,F]}],"backdrop-sepia":[{"backdrop-sepia":["",fe,W,F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[fe,"initial",W,F]}],ease:[{ease:["linear","initial",k,W,F]}],delay:[{delay:[fe,W,F]}],animate:[{animate:["none",G,W,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,W,F]}],"perspective-origin":[{"perspective-origin":ae()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:Vt()}],"scale-x":[{"scale-x":Vt()}],"scale-y":[{"scale-y":Vt()}],"scale-z":[{"scale-z":Vt()}],"scale-3d":["scale-3d"],skew:[{skew:Sa()}],"skew-x":[{"skew-x":Sa()}],"skew-y":[{"skew-y":Sa()}],transform:[{transform:[W,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:ae()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ea()}],"translate-x":[{"translate-x":Ea()}],"translate-y":[{"translate-y":Ea()}],"translate-z":[{"translate-z":Ea()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,F]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,F]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[fe,ri,gn,Cc]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},F1=A1(J1);function Ot(...l){return F1(r1(l))}function W1(l){if(!l)return"";const u=new Date(l),r=new Date,c=new Date(r.getFullYear(),r.getMonth(),r.getDate()),f=new Date(c);f.setDate(f.getDate()+1);const d=new Date(u.getFullYear(),u.getMonth(),u.getDate());if(d.getTime()===c.getTime())return"Today";if(d.getTime()===f.getTime())return"Tomorrow";const h=new Date(c);if(h.setDate(h.getDate()-1),d.getTime()===h.getTime())return"Yesterday";const p=new Date(c);return p.setDate(p.getDate()+7),d>c&&d<p?u.toLocaleDateString("en-US",{weekday:"long"}):u.getFullYear()===r.getFullYear()?u.toLocaleDateString("en-US",{month:"short",day:"numeric"}):u.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function $1(l){if(!l)return!1;const u=new Date(l),r=new Date;return r.setHours(0,0,0,0),u<r}function Vu(l){switch(l){case"p1":return"#ef4444";case"p2":return"#f59e0b";case"p3":return"#3b82f6";default:return"#6b7280"}}const vn=dy((l,u)=>({tasks:[],projects:[],labels:[],isLoading:!1,selectedTask:null,activeProjectId:null,activeView:"inbox",fetchTasks:async r=>{l({isLoading:!0});try{const c=await $e.getTasks(r);l({tasks:c,isLoading:!1})}catch(c){console.error("Failed to fetch tasks:",c),l({isLoading:!1})}},fetchProjects:async()=>{try{const r=await $e.getProjects();l({projects:r})}catch(r){console.error("Failed to fetch projects:",r)}},fetchLabels:async()=>{try{const r=await $e.getLabels();l({labels:r})}catch(r){console.error("Failed to fetch labels:",r)}},createTask:async r=>{const c=await $e.createTask(r);return l(f=>({tasks:[c,...f.tasks]})),c},updateTask:async(r,c)=>{const f=await $e.updateTask(r,c);l(d=>({tasks:d.tasks.map(h=>h.id===r?{...h,...f}:h),selectedTask:d.selectedTask?.id===r?{...d.selectedTask,...f}:d.selectedTask}))},deleteTask:async r=>{await $e.deleteTask(r),l(c=>({tasks:c.tasks.filter(f=>f.id!==r),selectedTask:c.selectedTask?.id===r?null:c.selectedTask}))},toggleComplete:async r=>{const c=u().tasks.find(d=>d.id===r);if(!c)return;const f=await $e.updateTask(r,{isCompleted:!c.isCompleted});l(d=>({tasks:d.tasks.map(h=>h.id===r?{...h,isCompleted:!c.isCompleted,completedAt:f.completedAt}:h)}))},setSelectedTask:r=>l({selectedTask:r}),setActiveProject:r=>l({activeProjectId:r}),setActiveView:r=>l({activeView:r})}));function P1(){const l=$t(),u=sl(),{user:r,logout:c}=bi(),{projects:f,labels:d}=vn(),[h,p]=O.useState(!0),[y,v]=O.useState(!0),S=async()=>{await c(),u("/login")};f.find(z=>z.isInbox);const x=f.filter(z=>!z.isInbox),_=[{path:"/inbox",icon:Yc,label:"Inbox",color:"#3b82f6"},{path:"/today",icon:hi,label:"Today",color:"#22c55e"},{path:"/upcoming",icon:my,label:"Upcoming",color:"#8b5cf6"}];return g.jsxs("aside",{className:"w-64 h-screen bg-gray-50 border-r border-gray-200 flex flex-col",children:[g.jsx("div",{className:"p-4 border-b border-gray-200",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white text-sm font-medium",children:r?.name?.charAt(0).toUpperCase()}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("p",{className:"text-sm font-medium text-gray-900 truncate",children:r?.name}),g.jsx("p",{className:"text-xs text-gray-500 truncate",children:r?.email})]})]})}),g.jsxs("nav",{className:"flex-1 overflow-y-auto p-2",children:[g.jsx("div",{className:"space-y-1",children:_.map(z=>g.jsxs(pa,{to:z.path,className:Ot("flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors",l.pathname===z.path?"bg-blue-50 text-blue-600":"text-gray-700 hover:bg-gray-100"),children:[g.jsx(z.icon,{className:"w-4 h-4",style:{color:z.color}}),g.jsx("span",{children:z.label})]},z.path))}),g.jsxs("div",{className:"mt-6",children:[g.jsxs("button",{onClick:()=>p(!h),className:"w-full flex items-center justify-between px-3 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider hover:text-gray-700",children:[g.jsx("span",{children:"Projects"}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(pa,{to:"/projects/new",className:"p-1 hover:bg-gray-200 rounded",onClick:z=>z.stopPropagation(),children:g.jsx(Ju,{className:"w-3 h-3"})}),h?g.jsx(Mm,{className:"w-3 h-3"}):g.jsx(Bc,{className:"w-3 h-3"})]})]}),h&&g.jsx("div",{className:"mt-1 space-y-1",children:x.map(z=>g.jsxs(pa,{to:`/project/${z.id}`,className:Ot("flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors",l.pathname===`/project/${z.id}`?"bg-blue-50 text-blue-600":"text-gray-700 hover:bg-gray-100"),children:[g.jsx("span",{className:"w-3 h-3 rounded",style:{backgroundColor:z.color}}),g.jsx("span",{className:"truncate",children:z.name})]},z.id))})]}),g.jsxs("div",{className:"mt-6",children:[g.jsxs("button",{onClick:()=>v(!y),className:"w-full flex items-center justify-between px-3 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider hover:text-gray-700",children:[g.jsx("span",{children:"Labels"}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(pa,{to:"/labels/new",className:"p-1 hover:bg-gray-200 rounded",onClick:z=>z.stopPropagation(),children:g.jsx(Ju,{className:"w-3 h-3"})}),y?g.jsx(Mm,{className:"w-3 h-3"}):g.jsx(Bc,{className:"w-3 h-3"})]})]}),y&&d.length>0&&g.jsx("div",{className:"mt-1 space-y-1",children:d.map(z=>g.jsxs(pa,{to:`/label/${z.id}`,className:Ot("flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors",l.pathname===`/label/${z.id}`?"bg-blue-50 text-blue-600":"text-gray-700 hover:bg-gray-100"),children:[g.jsx(n1,{className:"w-3 h-3",style:{color:z.color}}),g.jsx("span",{className:"truncate",children:z.name}),z.taskCount!==void 0&&z.taskCount>0&&g.jsx("span",{className:"ml-auto text-xs text-gray-400",children:z.taskCount})]},z.id))})]})]}),g.jsxs("div",{className:"p-2 border-t border-gray-200",children:[r?.role==="admin"&&g.jsxs(pa,{to:"/admin",className:"flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100",children:[g.jsx(t1,{className:"w-4 h-4"}),g.jsx("span",{children:"Admin"})]}),g.jsxs("button",{onClick:S,className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100",children:[g.jsx(Wb,{className:"w-4 h-4"}),g.jsx("span",{children:"Sign out"})]})]})]})}function I1(){const{isAuthenticated:l,isLoading:u}=bi(),{fetchProjects:r,fetchLabels:c}=vn();return O.useEffect(()=>{l&&(r(),c())},[l]),u?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full mx-auto"}),g.jsx("p",{className:"mt-4 text-gray-600",children:"Loading..."})]})}):l?g.jsxs("div",{className:"flex h-screen bg-white",children:[g.jsx(P1,{}),g.jsx("main",{className:"flex-1 overflow-y-auto p-8",children:g.jsx(fv,{})})]}):g.jsx(Qu,{to:"/login",replace:!0})}function ex(){const[l,u]=O.useState(""),[r,c]=O.useState(""),[f,d]=O.useState(""),[h,p]=O.useState(!1),y=sl(),{login:v}=bi(),S=async x=>{x.preventDefault(),d(""),p(!0);try{await v(l,r),y("/inbox")}catch(_){d(_ instanceof Error?_.message:"Login failed")}finally{p(!1)}};return g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4",children:g.jsxs("div",{className:"max-w-md w-full",children:[g.jsxs("div",{className:"text-center mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Todo App"}),g.jsx("p",{className:"mt-2 text-gray-600",children:"Sign in to your account"})]}),g.jsx("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-8",children:g.jsxs("form",{onSubmit:S,className:"space-y-6",children:[f&&g.jsx("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-600",children:f}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:"Email"}),g.jsx("input",{id:"email",type:"email",value:l,onChange:x=>u(x.target.value),required:!0,autoComplete:"email",className:"input",placeholder:"you@example.com"})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-1",children:"Password"}),g.jsx("input",{id:"password",type:"password",value:r,onChange:x=>c(x.target.value),required:!0,autoComplete:"current-password",className:"input",placeholder:"••••••••"})]}),g.jsx("button",{type:"submit",disabled:h,className:"w-full btn btn-primary py-2.5",children:h?"Signing in...":"Sign in"})]})}),g.jsx("p",{className:"mt-6 text-center text-sm text-gray-500",children:"This app is invite-only. Contact an admin for access."})]})})}function tx(){const[l]=Gv(),u=sl(),r=l.get("token"),[c,f]=O.useState(null),[d,h]=O.useState(""),[p,y]=O.useState(""),[v,S]=O.useState(""),[x,_]=O.useState(!0),[z,Y]=O.useState(!1);O.useEffect(()=>{if(!r){S("Invalid invite link"),_(!1);return}$e.validateInvite(r).then(f).catch(D=>S(D.message)).finally(()=>_(!1))},[r]);const q=async D=>{if(D.preventDefault(),S(""),d.length<8){S("Password must be at least 8 characters");return}if(d!==p){S("Passwords do not match");return}Y(!0);try{await $e.acceptInvite(r,d),u("/login?setup=success")}catch(k){S(k instanceof Error?k.message:"Failed to create account")}finally{Y(!1)}};return x?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full mx-auto"}),g.jsx("p",{className:"mt-4 text-gray-600",children:"Validating invite..."})]})}):v&&!c?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4",children:g.jsx("div",{className:"max-w-md w-full text-center",children:g.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-8",children:[g.jsx("div",{className:"text-red-500 text-5xl mb-4",children:"😕"}),g.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Invalid Invite"}),g.jsx("p",{className:"mt-2 text-gray-600",children:v}),g.jsx(pa,{to:"/login",className:"mt-6 inline-block btn btn-primary",children:"Go to Login"})]})})}):g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4",children:g.jsxs("div",{className:"max-w-md w-full",children:[g.jsxs("div",{className:"text-center mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Welcome!"}),g.jsx("p",{className:"mt-2 text-gray-600",children:"Set up your account to get started"})]}),g.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-8",children:[g.jsxs("div",{className:"mb-6 p-4 bg-blue-50 rounded-lg",children:[g.jsx("p",{className:"text-sm text-blue-800",children:g.jsx("strong",{children:c?.name})}),g.jsx("p",{className:"text-sm text-blue-600",children:c?.email})]}),g.jsxs("form",{onSubmit:q,className:"space-y-6",children:[v&&g.jsx("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-600",children:v}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-1",children:"Create password"}),g.jsx("input",{id:"password",type:"password",value:d,onChange:D=>h(D.target.value),required:!0,minLength:8,className:"input",placeholder:"At least 8 characters"})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"confirmPassword",className:"block text-sm font-medium text-gray-700 mb-1",children:"Confirm password"}),g.jsx("input",{id:"confirmPassword",type:"password",value:p,onChange:D=>y(D.target.value),required:!0,className:"input",placeholder:"Confirm your password"})]}),g.jsx("button",{type:"submit",disabled:z,className:"w-full btn btn-primary py-2.5",children:z?"Creating account...":"Create account"})]})]})]})})}function mi({task:l,onClick:u,showProject:r=!1}){const[c,f]=O.useState(!1),{toggleComplete:d}=vn(),h=async y=>{y.stopPropagation(),await d(l.id)},p=!l.isCompleted&&$1(l.dueDate);return g.jsxs("div",{className:Ot("group flex items-start gap-3 px-3 py-2 rounded-lg transition-colors cursor-pointer","hover:bg-gray-50",l.isCompleted&&"opacity-60"),onClick:u,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[g.jsx("button",{onClick:h,className:Ot("mt-0.5 flex-shrink-0 w-5 h-5 rounded-full border-2 flex items-center justify-center transition-colors",l.isCompleted?"bg-gray-400 border-gray-400":"border-gray-300 hover:border-gray-400"),style:{borderColor:l.isCompleted?void 0:Vu(l.priority)},children:l.isCompleted&&g.jsx(yy,{className:"w-3 h-3 text-white"})}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("p",{className:Ot("text-sm text-gray-900",l.isCompleted&&"line-through text-gray-500"),children:l.title}),l.description&&g.jsx("p",{className:"text-xs text-gray-500 mt-0.5 line-clamp-1",children:l.description}),g.jsxs("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[l.dueDate&&g.jsxs("span",{className:Ot("inline-flex items-center gap-1 text-xs",p?"text-red-500":"text-gray-500"),children:[g.jsx(hi,{className:"w-3 h-3"}),W1(l.dueDate),l.dueTime&&` ${l.dueTime}`]}),r&&l.project&&g.jsxs("span",{className:"text-xs text-gray-500 flex items-center gap-1",children:[g.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:l.project.color}}),l.project.name]}),l.taskLabels&&l.taskLabels.length>0&&g.jsxs("div",{className:"flex gap-1",children:[l.taskLabels.slice(0,2).map(({label:y})=>g.jsx("span",{className:"px-1.5 py-0.5 text-xs rounded",style:{backgroundColor:`${y.color}20`,color:y.color},children:y.name},y.id)),l.taskLabels.length>2&&g.jsxs("span",{className:"text-xs text-gray-400",children:["+",l.taskLabels.length-2]})]}),l.subtasks&&l.subtasks.length>0&&g.jsxs("span",{className:"text-xs text-gray-500 flex items-center gap-1",children:[g.jsx(Bc,{className:"w-3 h-3"}),l.subtasks.filter(y=>y.isCompleted).length,"/",l.subtasks.length]})]})]}),l.priority!=="p4"&&g.jsx(Kb,{className:"w-4 h-4 flex-shrink-0",style:{color:Vu(l.priority)},fill:Vu(l.priority)}),c&&g.jsx("button",{className:"p-1 text-gray-400 hover:text-gray-600 rounded",children:g.jsx(Vb,{className:"w-4 h-4"})})]})}function Ic({projectId:l,sectionId:u,parentId:r,onClose:c,autoFocus:f=!1}){const[d,h]=O.useState(f),[p,y]=O.useState(""),[v,S]=O.useState(""),[x,_]=O.useState(""),[z,Y]=O.useState("p4"),[q,D]=O.useState(!1),k=O.useRef(null),{createTask:G,projects:Z}=vn();O.useEffect(()=>{d&&k.current&&k.current.focus()},[d]);const P=async te=>{if(te.preventDefault(),!(!p.trim()||q)){D(!0);try{await G({title:p.trim(),description:v.trim()||void 0,projectId:l,sectionId:u,parentId:r,dueDate:x||void 0,priority:z}),y(""),S(""),_(""),Y("p4"),c&&(c(),h(!1))}catch(I){console.error("Failed to create task:",I)}finally{D(!1)}}},ae=()=>{h(!1),y(""),S(""),_(""),Y("p4"),c?.()};return d?g.jsxs("form",{onSubmit:P,className:"border border-gray-200 rounded-lg p-3 bg-white shadow-sm",children:[g.jsx("input",{ref:k,type:"text",value:p,onChange:te=>y(te.target.value),placeholder:"Task name",className:"w-full text-sm font-medium text-gray-900 placeholder-gray-400 border-none outline-none"}),g.jsx("textarea",{value:v,onChange:te=>S(te.target.value),placeholder:"Description",rows:2,className:"w-full mt-2 text-sm text-gray-600 placeholder-gray-400 border-none outline-none resize-none"}),g.jsxs("div",{className:"flex items-center gap-2 mt-3 flex-wrap",children:[g.jsxs("div",{className:"relative",children:[g.jsx("input",{type:"date",value:x,onChange:te=>_(te.target.value),className:"absolute inset-0 opacity-0 cursor-pointer"}),g.jsxs("button",{type:"button",className:Ot("inline-flex items-center gap-1.5 px-2 py-1 text-xs rounded border transition-colors",x?"border-blue-200 bg-blue-50 text-blue-600":"border-gray-200 text-gray-500 hover:bg-gray-50"),children:[g.jsx(hi,{className:"w-3.5 h-3.5"}),x?new Date(x).toLocaleDateString():"Due date"]})]}),g.jsxs("select",{value:z,onChange:te=>Y(te.target.value),className:"appearance-none px-2 py-1 text-xs rounded border border-gray-200 bg-white cursor-pointer hover:bg-gray-50",style:{color:Vu(z)},children:[g.jsx("option",{value:"p1",children:"Priority 1"}),g.jsx("option",{value:"p2",children:"Priority 2"}),g.jsx("option",{value:"p3",children:"Priority 3"}),g.jsx("option",{value:"p4",children:"Priority 4"})]}),!l&&Z.length>0&&g.jsx("select",{className:"appearance-none px-2 py-1 text-xs rounded border border-gray-200 bg-white cursor-pointer hover:bg-gray-50 text-gray-600",children:Z.map(te=>g.jsx("option",{value:te.id,children:te.isInbox?"📥 Inbox":te.name},te.id))})]}),g.jsxs("div",{className:"flex items-center justify-end gap-2 mt-4 pt-3 border-t border-gray-100",children:[g.jsx("button",{type:"button",onClick:ae,className:"px-3 py-1.5 text-sm text-gray-600 hover:bg-gray-100 rounded transition-colors",children:"Cancel"}),g.jsx("button",{type:"submit",disabled:!p.trim()||q,className:Ot("px-3 py-1.5 text-sm font-medium rounded transition-colors",p.trim()&&!q?"bg-blue-600 text-white hover:bg-blue-700":"bg-gray-100 text-gray-400 cursor-not-allowed"),children:q?"Adding...":"Add task"})]})]}):g.jsxs("button",{onClick:()=>h(!0),className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-gray-500 hover:text-blue-600 rounded-lg hover:bg-gray-50 transition-colors",children:[g.jsx(Ju,{className:"w-4 h-4"}),g.jsx("span",{children:"Add task"})]})}function ax(){const{tasks:l,projects:u,isLoading:r,fetchTasks:c,setSelectedTask:f}=vn(),d=u.find(h=>h.isInbox);return O.useEffect(()=>{d&&c({projectId:d.id,completed:!1})},[d?.id]),g.jsxs("div",{className:"max-w-3xl mx-auto",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx(Yc,{className:"w-6 h-6 text-blue-500"}),g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Inbox"})]}),g.jsx("div",{className:"space-y-1",children:r?g.jsx("div",{className:"text-center py-12 text-gray-500",children:"Loading tasks..."}):l.length===0?g.jsxs("div",{className:"text-center py-12",children:[g.jsx(Yc,{className:"w-12 h-12 text-gray-300 mx-auto mb-4"}),g.jsx("p",{className:"text-gray-500",children:"Your inbox is empty"}),g.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"Add a task to get started"})]}):l.map(h=>g.jsx(mi,{task:h,onClick:()=>f(h)},h.id))}),g.jsx("div",{className:"mt-4",children:g.jsx(Ic,{projectId:d?.id})})]})}function nx(){const{tasks:l,isLoading:u,fetchTasks:r,setSelectedTask:c}=vn();O.useEffect(()=>{r({today:!0,completed:!1})},[]);const d=new Date().toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"}),h=l.filter(y=>{if(!y.dueDate)return!1;const v=new Date(y.dueDate);v.setHours(0,0,0,0);const S=new Date;return S.setHours(0,0,0,0),v<S}),p=l.filter(y=>{if(!y.dueDate)return!1;const v=new Date(y.dueDate);v.setHours(0,0,0,0);const S=new Date;return S.setHours(0,0,0,0),v.getTime()===S.getTime()});return g.jsxs("div",{className:"max-w-3xl mx-auto",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx(hi,{className:"w-6 h-6 text-green-500"}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Today"}),g.jsx("p",{className:"text-sm text-gray-500",children:d})]})]}),u?g.jsx("div",{className:"text-center py-12 text-gray-500",children:"Loading tasks..."}):g.jsxs(g.Fragment,{children:[h.length>0&&g.jsxs("div",{className:"mb-6",children:[g.jsxs("h2",{className:"text-sm font-semibold text-red-600 mb-2 flex items-center gap-2",children:[g.jsx("span",{children:"Overdue"}),g.jsx("span",{className:"bg-red-100 text-red-600 px-2 py-0.5 rounded-full text-xs",children:h.length})]}),g.jsx("div",{className:"space-y-1 bg-red-50 rounded-lg p-2",children:h.map(y=>g.jsx(mi,{task:y,onClick:()=>c(y),showProject:!0},y.id))})]}),g.jsx("div",{children:p.length===0&&h.length===0?g.jsxs("div",{className:"text-center py-12",children:[g.jsx(hi,{className:"w-12 h-12 text-gray-300 mx-auto mb-4"}),g.jsx("p",{className:"text-gray-500",children:"No tasks for today"}),g.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"Enjoy your day! 🎉"})]}):g.jsx("div",{className:"space-y-1",children:p.map(y=>g.jsx(mi,{task:y,onClick:()=>c(y),showProject:!0},y.id))})})]}),g.jsx("div",{className:"mt-4",children:g.jsx(Ic,{})})]})}const Cy=6048e5,lx=864e5,Lm=Symbol.for("constructDateFrom");function xa(l,u){return typeof l=="function"?l(u):l&&typeof l=="object"&&Lm in l?l[Lm](u):l instanceof Date?new l.constructor(u):new Date(u)}function qt(l,u){return xa(u||l,l)}function ix(l,u,r){const c=qt(l,r?.in);return isNaN(u)?xa(l,NaN):(u&&c.setDate(c.getDate()+u),c)}let ux={};function tr(){return ux}function yi(l,u){const r=tr(),c=u?.weekStartsOn??u?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,f=qt(l,u?.in),d=f.getDay(),h=(d<c?7:0)+d-c;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f}function Wu(l,u){return yi(l,{...u,weekStartsOn:1})}function My(l,u){const r=qt(l,u?.in),c=r.getFullYear(),f=xa(r,0);f.setFullYear(c+1,0,4),f.setHours(0,0,0,0);const d=Wu(f),h=xa(r,0);h.setFullYear(c,0,4),h.setHours(0,0,0,0);const p=Wu(h);return r.getTime()>=d.getTime()?c+1:r.getTime()>=p.getTime()?c:c-1}function qm(l){const u=qt(l),r=new Date(Date.UTC(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()));return r.setUTCFullYear(u.getFullYear()),+l-+r}function Dy(l,...u){const r=xa.bind(null,u.find(c=>typeof c=="object"));return u.map(r)}function gi(l,u){const r=qt(l,u?.in);return r.setHours(0,0,0,0),r}function rx(l,u,r){const[c,f]=Dy(r?.in,l,u),d=gi(c),h=gi(f),p=+d-qm(d),y=+h-qm(h);return Math.round((p-y)/lx)}function sx(l,u){const r=My(l,u),c=xa(l,0);return c.setFullYear(r,0,4),c.setHours(0,0,0,0),Wu(c)}function cx(l,u,r){const[c,f]=Dy(r?.in,l,u);return+gi(c)==+gi(f)}function ox(l){return l instanceof Date||typeof l=="object"&&Object.prototype.toString.call(l)==="[object Date]"}function fx(l){return!(!ox(l)&&typeof l!="number"||isNaN(+qt(l)))}function dx(l,u){const r=qt(l,u?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const hx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mx=(l,u,r)=>{let c;const f=hx[l];return typeof f=="string"?c=f:u===1?c=f.one:c=f.other.replace("{{count}}",u.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+c:c+" ago":c};function Mc(l){return(u={})=>{const r=u.width?String(u.width):l.defaultWidth;return l.formats[r]||l.formats[l.defaultWidth]}}const yx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},px={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vx={date:Mc({formats:yx,defaultWidth:"full"}),time:Mc({formats:gx,defaultWidth:"full"}),dateTime:Mc({formats:px,defaultWidth:"full"})},bx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xx=(l,u,r,c)=>bx[l];function si(l){return(u,r)=>{const c=r?.context?String(r.context):"standalone";let f;if(c==="formatting"&&l.formattingValues){const h=l.defaultFormattingWidth||l.defaultWidth,p=r?.width?String(r.width):h;f=l.formattingValues[p]||l.formattingValues[h]}else{const h=l.defaultWidth,p=r?.width?String(r.width):l.defaultWidth;f=l.values[p]||l.values[h]}const d=l.argumentCallback?l.argumentCallback(u):u;return f[d]}}const Sx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ex={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ox={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Nx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jx=(l,u)=>{const r=Number(l),c=r%100;if(c>20||c<10)switch(c%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ax={ordinalNumber:jx,era:si({values:Sx,defaultWidth:"wide"}),quarter:si({values:Ex,defaultWidth:"wide",argumentCallback:l=>l-1}),month:si({values:wx,defaultWidth:"wide"}),day:si({values:Tx,defaultWidth:"wide"}),dayPeriod:si({values:Ox,defaultWidth:"wide",formattingValues:Nx,defaultFormattingWidth:"wide"})};function ci(l){return(u,r={})=>{const c=r.width,f=c&&l.matchPatterns[c]||l.matchPatterns[l.defaultMatchWidth],d=u.match(f);if(!d)return null;const h=d[0],p=c&&l.parsePatterns[c]||l.parsePatterns[l.defaultParseWidth],y=Array.isArray(p)?Mx(p,x=>x.test(h)):Cx(p,x=>x.test(h));let v;v=l.valueCallback?l.valueCallback(y):y,v=r.valueCallback?r.valueCallback(v):v;const S=u.slice(h.length);return{value:v,rest:S}}}function Cx(l,u){for(const r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&u(l[r]))return r}function Mx(l,u){for(let r=0;r<l.length;r++)if(u(l[r]))return r}function Dx(l){return(u,r={})=>{const c=u.match(l.matchPattern);if(!c)return null;const f=c[0],d=u.match(l.parsePattern);if(!d)return null;let h=l.valueCallback?l.valueCallback(d[0]):d[0];h=r.valueCallback?r.valueCallback(h):h;const p=u.slice(f.length);return{value:h,rest:p}}}const zx=/^(\d+)(th|st|nd|rd)?/i,Rx=/\d+/i,_x={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ux={any:[/^b/i,/^(a|c)/i]},Hx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Lx={any:[/1/i,/2/i,/3/i,/4/i]},qx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kx={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xx={ordinalNumber:Dx({matchPattern:zx,parsePattern:Rx,valueCallback:l=>parseInt(l,10)}),era:ci({matchPatterns:_x,defaultMatchWidth:"wide",parsePatterns:Ux,defaultParseWidth:"any"}),quarter:ci({matchPatterns:Hx,defaultMatchWidth:"wide",parsePatterns:Lx,defaultParseWidth:"any",valueCallback:l=>l+1}),month:ci({matchPatterns:qx,defaultMatchWidth:"wide",parsePatterns:Bx,defaultParseWidth:"any"}),day:ci({matchPatterns:Yx,defaultMatchWidth:"wide",parsePatterns:kx,defaultParseWidth:"any"}),dayPeriod:ci({matchPatterns:Qx,defaultMatchWidth:"any",parsePatterns:Gx,defaultParseWidth:"any"})},Vx={code:"en-US",formatDistance:mx,formatLong:vx,formatRelative:xx,localize:Ax,match:Xx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zx(l,u){const r=qt(l,u?.in);return rx(r,dx(r))+1}function Kx(l,u){const r=qt(l,u?.in),c=+Wu(r)-+sx(r);return Math.round(c/Cy)+1}function zy(l,u){const r=qt(l,u?.in),c=r.getFullYear(),f=tr(),d=u?.firstWeekContainsDate??u?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,h=xa(u?.in||l,0);h.setFullYear(c+1,0,d),h.setHours(0,0,0,0);const p=yi(h,u),y=xa(u?.in||l,0);y.setFullYear(c,0,d),y.setHours(0,0,0,0);const v=yi(y,u);return+r>=+p?c+1:+r>=+v?c:c-1}function Jx(l,u){const r=tr(),c=u?.firstWeekContainsDate??u?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,f=zy(l,u),d=xa(u?.in||l,0);return d.setFullYear(f,0,c),d.setHours(0,0,0,0),yi(d,u)}function Fx(l,u){const r=qt(l,u?.in),c=+yi(r,u)-+Jx(r,u);return Math.round(c/Cy)+1}function Ne(l,u){const r=l<0?"-":"",c=Math.abs(l).toString().padStart(u,"0");return r+c}const Fa={y(l,u){const r=l.getFullYear(),c=r>0?r:1-r;return Ne(u==="yy"?c%100:c,u.length)},M(l,u){const r=l.getMonth();return u==="M"?String(r+1):Ne(r+1,2)},d(l,u){return Ne(l.getDate(),u.length)},a(l,u){const r=l.getHours()/12>=1?"pm":"am";switch(u){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(l,u){return Ne(l.getHours()%12||12,u.length)},H(l,u){return Ne(l.getHours(),u.length)},m(l,u){return Ne(l.getMinutes(),u.length)},s(l,u){return Ne(l.getSeconds(),u.length)},S(l,u){const r=u.length,c=l.getMilliseconds(),f=Math.trunc(c*Math.pow(10,r-3));return Ne(f,u.length)}},ll={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Bm={G:function(l,u,r){const c=l.getFullYear()>0?1:0;switch(u){case"G":case"GG":case"GGG":return r.era(c,{width:"abbreviated"});case"GGGGG":return r.era(c,{width:"narrow"});default:return r.era(c,{width:"wide"})}},y:function(l,u,r){if(u==="yo"){const c=l.getFullYear(),f=c>0?c:1-c;return r.ordinalNumber(f,{unit:"year"})}return Fa.y(l,u)},Y:function(l,u,r,c){const f=zy(l,c),d=f>0?f:1-f;if(u==="YY"){const h=d%100;return Ne(h,2)}return u==="Yo"?r.ordinalNumber(d,{unit:"year"}):Ne(d,u.length)},R:function(l,u){const r=My(l);return Ne(r,u.length)},u:function(l,u){const r=l.getFullYear();return Ne(r,u.length)},Q:function(l,u,r){const c=Math.ceil((l.getMonth()+1)/3);switch(u){case"Q":return String(c);case"QQ":return Ne(c,2);case"Qo":return r.ordinalNumber(c,{unit:"quarter"});case"QQQ":return r.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(c,{width:"narrow",context:"formatting"});default:return r.quarter(c,{width:"wide",context:"formatting"})}},q:function(l,u,r){const c=Math.ceil((l.getMonth()+1)/3);switch(u){case"q":return String(c);case"qq":return Ne(c,2);case"qo":return r.ordinalNumber(c,{unit:"quarter"});case"qqq":return r.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(c,{width:"narrow",context:"standalone"});default:return r.quarter(c,{width:"wide",context:"standalone"})}},M:function(l,u,r){const c=l.getMonth();switch(u){case"M":case"MM":return Fa.M(l,u);case"Mo":return r.ordinalNumber(c+1,{unit:"month"});case"MMM":return r.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(c,{width:"narrow",context:"formatting"});default:return r.month(c,{width:"wide",context:"formatting"})}},L:function(l,u,r){const c=l.getMonth();switch(u){case"L":return String(c+1);case"LL":return Ne(c+1,2);case"Lo":return r.ordinalNumber(c+1,{unit:"month"});case"LLL":return r.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(c,{width:"narrow",context:"standalone"});default:return r.month(c,{width:"wide",context:"standalone"})}},w:function(l,u,r,c){const f=Fx(l,c);return u==="wo"?r.ordinalNumber(f,{unit:"week"}):Ne(f,u.length)},I:function(l,u,r){const c=Kx(l);return u==="Io"?r.ordinalNumber(c,{unit:"week"}):Ne(c,u.length)},d:function(l,u,r){return u==="do"?r.ordinalNumber(l.getDate(),{unit:"date"}):Fa.d(l,u)},D:function(l,u,r){const c=Zx(l);return u==="Do"?r.ordinalNumber(c,{unit:"dayOfYear"}):Ne(c,u.length)},E:function(l,u,r){const c=l.getDay();switch(u){case"E":case"EE":case"EEE":return r.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(c,{width:"short",context:"formatting"});default:return r.day(c,{width:"wide",context:"formatting"})}},e:function(l,u,r,c){const f=l.getDay(),d=(f-c.weekStartsOn+8)%7||7;switch(u){case"e":return String(d);case"ee":return Ne(d,2);case"eo":return r.ordinalNumber(d,{unit:"day"});case"eee":return r.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(f,{width:"short",context:"formatting"});default:return r.day(f,{width:"wide",context:"formatting"})}},c:function(l,u,r,c){const f=l.getDay(),d=(f-c.weekStartsOn+8)%7||7;switch(u){case"c":return String(d);case"cc":return Ne(d,u.length);case"co":return r.ordinalNumber(d,{unit:"day"});case"ccc":return r.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(f,{width:"narrow",context:"standalone"});case"cccccc":return r.day(f,{width:"short",context:"standalone"});default:return r.day(f,{width:"wide",context:"standalone"})}},i:function(l,u,r){const c=l.getDay(),f=c===0?7:c;switch(u){case"i":return String(f);case"ii":return Ne(f,u.length);case"io":return r.ordinalNumber(f,{unit:"day"});case"iii":return r.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(c,{width:"short",context:"formatting"});default:return r.day(c,{width:"wide",context:"formatting"})}},a:function(l,u,r){const f=l.getHours()/12>=1?"pm":"am";switch(u){case"a":case"aa":return r.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(f,{width:"narrow",context:"formatting"});default:return r.dayPeriod(f,{width:"wide",context:"formatting"})}},b:function(l,u,r){const c=l.getHours();let f;switch(c===12?f=ll.noon:c===0?f=ll.midnight:f=c/12>=1?"pm":"am",u){case"b":case"bb":return r.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(f,{width:"narrow",context:"formatting"});default:return r.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(l,u,r){const c=l.getHours();let f;switch(c>=17?f=ll.evening:c>=12?f=ll.afternoon:c>=4?f=ll.morning:f=ll.night,u){case"B":case"BB":case"BBB":return r.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(f,{width:"narrow",context:"formatting"});default:return r.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(l,u,r){if(u==="ho"){let c=l.getHours()%12;return c===0&&(c=12),r.ordinalNumber(c,{unit:"hour"})}return Fa.h(l,u)},H:function(l,u,r){return u==="Ho"?r.ordinalNumber(l.getHours(),{unit:"hour"}):Fa.H(l,u)},K:function(l,u,r){const c=l.getHours()%12;return u==="Ko"?r.ordinalNumber(c,{unit:"hour"}):Ne(c,u.length)},k:function(l,u,r){let c=l.getHours();return c===0&&(c=24),u==="ko"?r.ordinalNumber(c,{unit:"hour"}):Ne(c,u.length)},m:function(l,u,r){return u==="mo"?r.ordinalNumber(l.getMinutes(),{unit:"minute"}):Fa.m(l,u)},s:function(l,u,r){return u==="so"?r.ordinalNumber(l.getSeconds(),{unit:"second"}):Fa.s(l,u)},S:function(l,u){return Fa.S(l,u)},X:function(l,u,r){const c=l.getTimezoneOffset();if(c===0)return"Z";switch(u){case"X":return km(c);case"XXXX":case"XX":return pn(c);default:return pn(c,":")}},x:function(l,u,r){const c=l.getTimezoneOffset();switch(u){case"x":return km(c);case"xxxx":case"xx":return pn(c);default:return pn(c,":")}},O:function(l,u,r){const c=l.getTimezoneOffset();switch(u){case"O":case"OO":case"OOO":return"GMT"+Ym(c,":");default:return"GMT"+pn(c,":")}},z:function(l,u,r){const c=l.getTimezoneOffset();switch(u){case"z":case"zz":case"zzz":return"GMT"+Ym(c,":");default:return"GMT"+pn(c,":")}},t:function(l,u,r){const c=Math.trunc(+l/1e3);return Ne(c,u.length)},T:function(l,u,r){return Ne(+l,u.length)}};function Ym(l,u=""){const r=l>0?"-":"+",c=Math.abs(l),f=Math.trunc(c/60),d=c%60;return d===0?r+String(f):r+String(f)+u+Ne(d,2)}function km(l,u){return l%60===0?(l>0?"-":"+")+Ne(Math.abs(l)/60,2):pn(l,u)}function pn(l,u=""){const r=l>0?"-":"+",c=Math.abs(l),f=Ne(Math.trunc(c/60),2),d=Ne(c%60,2);return r+f+u+d}const Qm=(l,u)=>{switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});default:return u.date({width:"full"})}},Ry=(l,u)=>{switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});default:return u.time({width:"full"})}},Wx=(l,u)=>{const r=l.match(/(P+)(p+)?/)||[],c=r[1],f=r[2];if(!f)return Qm(l,u);let d;switch(c){case"P":d=u.dateTime({width:"short"});break;case"PP":d=u.dateTime({width:"medium"});break;case"PPP":d=u.dateTime({width:"long"});break;default:d=u.dateTime({width:"full"});break}return d.replace("{{date}}",Qm(c,u)).replace("{{time}}",Ry(f,u))},$x={p:Ry,P:Wx},Px=/^D+$/,Ix=/^Y+$/,eS=["D","DD","YY","YYYY"];function tS(l){return Px.test(l)}function aS(l){return Ix.test(l)}function nS(l,u,r){const c=lS(l,u,r);if(console.warn(c),eS.includes(l))throw new RangeError(c)}function lS(l,u,r){const c=l[0]==="Y"?"years":"days of the month";return`Use \`${l.toLowerCase()}\` instead of \`${l}\` (in \`${u}\`) for formatting ${c} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const iS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rS=/^'([^]*?)'?$/,sS=/''/g,cS=/[a-zA-Z]/;function oS(l,u,r){const c=tr(),f=c.locale??Vx,d=c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,h=c.weekStartsOn??c.locale?.options?.weekStartsOn??0,p=qt(l,r?.in);if(!fx(p))throw new RangeError("Invalid time value");let y=u.match(uS).map(S=>{const x=S[0];if(x==="p"||x==="P"){const _=$x[x];return _(S,f.formatLong)}return S}).join("").match(iS).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const x=S[0];if(x==="'")return{isToken:!1,value:fS(S)};if(Bm[x])return{isToken:!0,value:S};if(x.match(cS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:S}});f.localize.preprocessor&&(y=f.localize.preprocessor(p,y));const v={firstWeekContainsDate:d,weekStartsOn:h,locale:f};return y.map(S=>{if(!S.isToken)return S.value;const x=S.value;(aS(x)||tS(x))&&nS(x,u,String(l));const _=Bm[x[0]];return _(p,x,f.localize,v)}).join("")}function fS(l){const u=l.match(rS);return u?u[1].replace(sS,"'"):l}function dS(){const{tasks:l,isLoading:u,fetchTasks:r,setSelectedTask:c}=vn();O.useEffect(()=>{r({upcoming:!0,completed:!1})},[]);const f=O.useMemo(()=>{const h=[],p=gi(new Date);for(let y=0;y<7;y++){const v=ix(p,y);let S;y===0?S="Today":y===1?S="Tomorrow":S=oS(v,"EEEE, MMM d");const x=l.filter(_=>_.dueDate?cx(new Date(_.dueDate),v):!1);h.push({date:v,label:S,tasks:x})}return h},[l]),d=l.filter(h=>!h.dueDate);return g.jsxs("div",{className:"max-w-3xl mx-auto",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx(my,{className:"w-6 h-6 text-purple-500"}),g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Upcoming"})]}),u?g.jsx("div",{className:"text-center py-12 text-gray-500",children:"Loading tasks..."}):g.jsxs("div",{className:"space-y-6",children:[f.map(({date:h,label:p,tasks:y})=>g.jsxs("div",{children:[g.jsxs("h2",{className:"text-sm font-semibold text-gray-700 mb-2 sticky top-0 bg-white py-2",children:[p,y.length>0&&g.jsxs("span",{className:"ml-2 text-gray-400 font-normal",children:[y.length," task",y.length!==1?"s":""]})]}),y.length>0?g.jsx("div",{className:"space-y-1",children:y.map(v=>g.jsx(mi,{task:v,onClick:()=>c(v),showProject:!0},v.id))}):g.jsx("div",{className:"py-4 text-center text-sm text-gray-400 border border-dashed border-gray-200 rounded-lg",children:"No tasks scheduled"})]},h.toISOString())),d.length>0&&g.jsxs("div",{children:[g.jsxs("h2",{className:"text-sm font-semibold text-gray-700 mb-2",children:["No date",g.jsxs("span",{className:"ml-2 text-gray-400 font-normal",children:[d.length," task",d.length!==1?"s":""]})]}),g.jsx("div",{className:"space-y-1",children:d.map(h=>g.jsx(mi,{task:h,onClick:()=>c(h),showProject:!0},h.id))})]})]}),g.jsx("div",{className:"mt-6",children:g.jsx(Ic,{})})]})}function hS(){const{user:l}=bi(),[u,r]=O.useState([]),[c,f]=O.useState([]),[d,h]=O.useState(!0),[p,y]=O.useState("users"),[v,S]=O.useState(!1),[x,_]=O.useState(""),[z,Y]=O.useState(""),[q,D]=O.useState(""),[k,G]=O.useState(""),[Z,P]=O.useState(!1);O.useEffect(()=>{ae()},[]);const ae=async()=>{h(!0);try{const[ne,ge]=await Promise.all([$e.getUsers(),$e.getInvites()]);r(ne),f(ge)}catch(ne){console.error("Failed to load admin data:",ne)}finally{h(!1)}},te=async ne=>{ne.preventDefault(),D("");try{const ge=await $e.createInvite({email:x,name:z});G(ge.setupUrl),f([ge,...c])}catch(ge){D(ge instanceof Error?ge.message:"Failed to create invite")}},I=()=>{navigator.clipboard.writeText(k),P(!0),setTimeout(()=>P(!1),2e3)},K=async ne=>{if(confirm("Are you sure you want to delete this user?"))try{await $e.deleteUser(ne),r(u.filter(ge=>ge.id!==ne))}catch(ge){console.error("Failed to delete user:",ge)}},we=async ne=>{try{await $e.deleteInvite(ne),f(c.filter(ge=>ge.id!==ne))}catch(ge){console.error("Failed to delete invite:",ge)}},Ze=()=>{S(!1),_(""),Y(""),D(""),G("")};return l?.role!=="admin"?g.jsx("div",{className:"text-center py-12",children:g.jsx("p",{className:"text-red-500",children:"Access denied. Admin only."})}):g.jsxs("div",{className:"max-w-4xl mx-auto",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Admin"}),g.jsxs("div",{className:"flex gap-4 border-b border-gray-200 mb-6",children:[g.jsxs("button",{onClick:()=>y("users"),className:Ot("pb-3 px-1 text-sm font-medium border-b-2 transition-colors",p==="users"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700"),children:[g.jsx(u1,{className:"w-4 h-4 inline mr-2"}),"Users (",u.length,")"]}),g.jsxs("button",{onClick:()=>y("invites"),className:Ot("pb-3 px-1 text-sm font-medium border-b-2 transition-colors",p==="invites"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700"),children:[g.jsx(Pb,{className:"w-4 h-4 inline mr-2"}),"Invites (",c.filter(ne=>ne.status==="pending").length," pending)"]})]}),d?g.jsx("div",{className:"text-center py-12 text-gray-500",children:"Loading..."}):p==="users"?g.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:g.jsxs("table",{className:"w-full",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-gray-200 text-left text-sm text-gray-500",children:[g.jsx("th",{className:"px-4 py-3 font-medium",children:"Name"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Email"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Role"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Joined"}),g.jsx("th",{className:"px-4 py-3"})]})}),g.jsx("tbody",{children:u.map(ne=>g.jsxs("tr",{className:"border-b border-gray-100 last:border-0",children:[g.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900",children:ne.name}),g.jsx("td",{className:"px-4 py-3 text-sm text-gray-600",children:ne.email}),g.jsx("td",{className:"px-4 py-3",children:g.jsx("span",{className:Ot("px-2 py-1 text-xs rounded-full",ne.role==="admin"?"bg-purple-100 text-purple-700":ne.role==="service"?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-700"),children:ne.role})}),g.jsx("td",{className:"px-4 py-3 text-sm text-gray-500",children:new Date(ne.createdAt).toLocaleDateString()}),g.jsx("td",{className:"px-4 py-3",children:ne.id!==l?.id&&ne.role!=="service"&&g.jsx("button",{onClick:()=>K(ne.id),className:"p-1 text-gray-400 hover:text-red-500",children:g.jsx(Dm,{className:"w-4 h-4"})})})]},ne.id))})]})}):g.jsxs("div",{children:[v?g.jsxs("div",{className:"mb-6 p-4 bg-gray-50 rounded-lg border border-gray-200",children:[g.jsx("h3",{className:"font-medium text-gray-900 mb-4",children:"Invite New User"}),k?g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-green-600 mb-2",children:"✓ Invite created! Share this link:"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("input",{type:"text",value:k,readOnly:!0,className:"input flex-1 text-sm bg-white"}),g.jsx("button",{onClick:I,className:"btn btn-secondary",children:Z?g.jsx(yy,{className:"w-4 h-4"}):g.jsx(Gb,{className:"w-4 h-4"})})]}),g.jsx("button",{onClick:Ze,className:"mt-3 text-sm text-gray-500 hover:text-gray-700",children:"Create another invite"})]}):g.jsxs("form",{onSubmit:te,className:"space-y-4",children:[q&&g.jsx("p",{className:"text-sm text-red-500",children:q}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Name"}),g.jsx("input",{type:"text",value:z,onChange:ne=>Y(ne.target.value),required:!0,className:"input",placeholder:"John Doe"})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email"}),g.jsx("input",{type:"email",value:x,onChange:ne=>_(ne.target.value),required:!0,className:"input",placeholder:"john@example.com"})]})]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("button",{type:"submit",className:"btn btn-primary",children:"Send Invite"}),g.jsx("button",{type:"button",onClick:Ze,className:"btn btn-secondary",children:"Cancel"})]})]})]}):g.jsxs("button",{onClick:()=>S(!0),className:"mb-4 btn btn-primary",children:[g.jsx(Ju,{className:"w-4 h-4"}),"Invite User"]}),g.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:g.jsxs("table",{className:"w-full",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-gray-200 text-left text-sm text-gray-500",children:[g.jsx("th",{className:"px-4 py-3 font-medium",children:"Name"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Email"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),g.jsx("th",{className:"px-4 py-3 font-medium",children:"Expires"}),g.jsx("th",{className:"px-4 py-3"})]})}),g.jsx("tbody",{children:c.length===0?g.jsx("tr",{children:g.jsx("td",{colSpan:5,className:"px-4 py-8 text-center text-gray-500",children:"No invites yet"})}):c.map(ne=>g.jsxs("tr",{className:"border-b border-gray-100 last:border-0",children:[g.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900",children:ne.name}),g.jsx("td",{className:"px-4 py-3 text-sm text-gray-600",children:ne.email}),g.jsx("td",{className:"px-4 py-3",children:g.jsx("span",{className:Ot("px-2 py-1 text-xs rounded-full",ne.status==="accepted"?"bg-green-100 text-green-700":ne.status==="expired"?"bg-red-100 text-red-700":"bg-yellow-100 text-yellow-700"),children:ne.status})}),g.jsx("td",{className:"px-4 py-3 text-sm text-gray-500",children:new Date(ne.expiresAt).toLocaleDateString()}),g.jsx("td",{className:"px-4 py-3",children:ne.status==="pending"&&g.jsx("button",{onClick:()=>we(ne.id),className:"p-1 text-gray-400 hover:text-red-500",children:g.jsx(Dm,{className:"w-4 h-4"})})})]},ne.id))})]})})]})]})}const mS=new Sb({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}});function yS(){const{checkSession:l,isLoading:u,isAuthenticated:r}=bi();return O.useEffect(()=>{l()},[]),u?g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full mx-auto"}),g.jsx("p",{className:"mt-4 text-gray-600",children:"Loading..."})]})}):g.jsxs(hv,{children:[g.jsx(Wt,{path:"/login",element:r?g.jsx(Qu,{to:"/inbox",replace:!0}):g.jsx(ex,{})}),g.jsx(Wt,{path:"/setup",element:g.jsx(tx,{})}),g.jsxs(Wt,{element:g.jsx(I1,{}),children:[g.jsx(Wt,{path:"/inbox",element:g.jsx(ax,{})}),g.jsx(Wt,{path:"/today",element:g.jsx(nx,{})}),g.jsx(Wt,{path:"/upcoming",element:g.jsx(dS,{})}),g.jsx(Wt,{path:"/admin",element:g.jsx(hS,{})}),g.jsx(Wt,{path:"/",element:g.jsx(Qu,{to:"/inbox",replace:!0})})]}),g.jsx(Wt,{path:"*",element:g.jsx(Qu,{to:"/inbox",replace:!0})})]})}function gS(){return g.jsx(wb,{client:mS,children:g.jsx(qv,{children:g.jsx(yS,{})})})}h0.createRoot(document.getElementById("root")).render(g.jsx(O.StrictMode,{children:g.jsx(gS,{})}));
|