@mukulaggarwal/pacman 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,71 +0,0 @@
1
- (function(){const M=document.createElement("link").relList;if(M&&M.supports&&M.supports("modulepreload"))return;for(const U of document.querySelectorAll('link[rel="modulepreload"]'))v(U);new MutationObserver(U=>{for(const L of U)if(L.type==="childList")for(const B of L.addedNodes)B.tagName==="LINK"&&B.rel==="modulepreload"&&v(B)}).observe(document,{childList:!0,subtree:!0});function O(U){const L={};return U.integrity&&(L.integrity=U.integrity),U.referrerPolicy&&(L.referrerPolicy=U.referrerPolicy),U.crossOrigin==="use-credentials"?L.credentials="include":U.crossOrigin==="anonymous"?L.credentials="omit":L.credentials="same-origin",L}function v(U){if(U.ep)return;U.ep=!0;const L=O(U);fetch(U.href,L)}})();function Xd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ds={exports:{}},An={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Nd;function fv(){if(Nd)return An;Nd=1;var r=Symbol.for("react.transitional.element"),M=Symbol.for("react.fragment");function O(v,U,L){var B=null;if(L!==void 0&&(B=""+L),U.key!==void 0&&(B=""+U.key),"key"in U){L={};for(var k in U)k!=="key"&&(L[k]=U[k])}else L=U;return U=L.ref,{$$typeof:r,type:v,key:B,ref:U!==void 0?U:null,props:L}}return An.Fragment=M,An.jsx=O,An.jsxs=O,An}var Ed;function dv(){return Ed||(Ed=1,ds.exports=fv()),ds.exports}var u=dv(),ms={exports:{}},J={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var zd;function mv(){if(zd)return J;zd=1;var r=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),B=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),X=Symbol.iterator;function de(o){return o===null||typeof o!="object"?null:(o=X&&o[X]||o["@@iterator"],typeof o=="function"?o:null)}var je={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ge=Object.assign,he={};function oe(o,m,N){this.props=o,this.context=m,this.refs=he,this.updater=N||je}oe.prototype.isReactComponent={},oe.prototype.setState=function(o,m){if(typeof o!="object"&&typeof o!="function"&&o!=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,o,m,"setState")},oe.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function W(){}W.prototype=oe.prototype;function F(o,m,N){this.props=o,this.context=m,this.refs=he,this.updater=N||je}var ce=F.prototype=new W;ce.constructor=F,ge(ce,oe.prototype),ce.isPureReactComponent=!0;var me=Array.isArray;function Ee(){}var Q={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ze(o,m,N){var C=N.ref;return{$$typeof:r,type:o,key:m,ref:C!==void 0?C:null,props:N}}function ll(o,m){return ze(o.type,m,o.props)}function Fe(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}function Qe(o){var m={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(N){return m[N]})}var $e=/\/+/g;function rl(o,m){return typeof o=="object"&&o!==null&&o.key!=null?Qe(""+o.key):m.toString(36)}function Ie(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(Ee,Ee):(o.status="pending",o.then(function(m){o.status==="pending"&&(o.status="fulfilled",o.value=m)},function(m){o.status==="pending"&&(o.status="rejected",o.reason=m)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function j(o,m,N,C,K){var D=typeof o;(D==="undefined"||D==="boolean")&&(o=null);var I=!1;if(o===null)I=!0;else switch(D){case"bigint":case"string":case"number":I=!0;break;case"object":switch(o.$$typeof){case r:case M:I=!0;break;case V:return I=o._init,j(I(o._payload),m,N,C,K)}}if(I)return K=K(o),I=C===""?"."+rl(o,0):C,me(K)?(N="",I!=null&&(N=I.replace($e,"$&/")+"/"),j(K,m,N,"",function(Oa){return Oa})):K!=null&&(Fe(K)&&(K=ll(K,N+(K.key==null||o&&o.key===K.key?"":(""+K.key).replace($e,"$&/")+"/")+I)),m.push(K)),1;I=0;var Pe=C===""?".":C+":";if(me(o))for(var De=0;De<o.length;De++)C=o[De],D=Pe+rl(C,De),I+=j(C,m,N,D,K);else if(De=de(o),typeof De=="function")for(o=De.call(o),De=0;!(C=o.next()).done;)C=C.value,D=Pe+rl(C,De++),I+=j(C,m,N,D,K);else if(D==="object"){if(typeof o.then=="function")return j(Ie(o),m,N,C,K);throw m=String(o),Error("Objects are not valid as a React child (found: "+(m==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":m)+"). If you meant to render a collection of children, use an array instead.")}return I}function _(o,m,N){if(o==null)return o;var C=[],K=0;return j(o,C,"","",function(D){return m.call(N,D,K++)}),C}function b(o){if(o._status===-1){var m=o._result;m=m(),m.then(function(N){(o._status===0||o._status===-1)&&(o._status=1,o._result=N)},function(N){(o._status===0||o._status===-1)&&(o._status=2,o._result=N)}),o._status===-1&&(o._status=0,o._result=m)}if(o._status===1)return o._result.default;throw o._result}var R=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},p={map:_,forEach:function(o,m,N){_(o,function(){m.apply(this,arguments)},N)},count:function(o){var m=0;return _(o,function(){m++}),m},toArray:function(o){return _(o,function(m){return m})||[]},only:function(o){if(!Fe(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};return J.Activity=H,J.Children=p,J.Component=oe,J.Fragment=O,J.Profiler=U,J.PureComponent=F,J.StrictMode=v,J.Suspense=G,J.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,J.__COMPILER_RUNTIME={__proto__:null,c:function(o){return Q.H.useMemoCache(o)}},J.cache=function(o){return function(){return o.apply(null,arguments)}},J.cacheSignal=function(){return null},J.cloneElement=function(o,m,N){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var C=ge({},o.props),K=o.key;if(m!=null)for(D in m.key!==void 0&&(K=""+m.key),m)!ee.call(m,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&m.ref===void 0||(C[D]=m[D]);var D=arguments.length-2;if(D===1)C.children=N;else if(1<D){for(var I=Array(D),Pe=0;Pe<D;Pe++)I[Pe]=arguments[Pe+2];C.children=I}return ze(o.type,K,C)},J.createContext=function(o){return o={$$typeof:B,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:L,_context:o},o},J.createElement=function(o,m,N){var C,K={},D=null;if(m!=null)for(C in m.key!==void 0&&(D=""+m.key),m)ee.call(m,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(K[C]=m[C]);var I=arguments.length-2;if(I===1)K.children=N;else if(1<I){for(var Pe=Array(I),De=0;De<I;De++)Pe[De]=arguments[De+2];K.children=Pe}if(o&&o.defaultProps)for(C in I=o.defaultProps,I)K[C]===void 0&&(K[C]=I[C]);return ze(o,D,K)},J.createRef=function(){return{current:null}},J.forwardRef=function(o){return{$$typeof:k,render:o}},J.isValidElement=Fe,J.lazy=function(o){return{$$typeof:V,_payload:{_status:-1,_result:o},_init:b}},J.memo=function(o,m){return{$$typeof:A,type:o,compare:m===void 0?null:m}},J.startTransition=function(o){var m=Q.T,N={};Q.T=N;try{var C=o(),K=Q.S;K!==null&&K(N,C),typeof C=="object"&&C!==null&&typeof C.then=="function"&&C.then(Ee,R)}catch(D){R(D)}finally{m!==null&&N.types!==null&&(m.types=N.types),Q.T=m}},J.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},J.use=function(o){return Q.H.use(o)},J.useActionState=function(o,m,N){return Q.H.useActionState(o,m,N)},J.useCallback=function(o,m){return Q.H.useCallback(o,m)},J.useContext=function(o){return Q.H.useContext(o)},J.useDebugValue=function(){},J.useDeferredValue=function(o,m){return Q.H.useDeferredValue(o,m)},J.useEffect=function(o,m){return Q.H.useEffect(o,m)},J.useEffectEvent=function(o){return Q.H.useEffectEvent(o)},J.useId=function(){return Q.H.useId()},J.useImperativeHandle=function(o,m,N){return Q.H.useImperativeHandle(o,m,N)},J.useInsertionEffect=function(o,m){return Q.H.useInsertionEffect(o,m)},J.useLayoutEffect=function(o,m){return Q.H.useLayoutEffect(o,m)},J.useMemo=function(o,m){return Q.H.useMemo(o,m)},J.useOptimistic=function(o,m){return Q.H.useOptimistic(o,m)},J.useReducer=function(o,m,N){return Q.H.useReducer(o,m,N)},J.useRef=function(o){return Q.H.useRef(o)},J.useState=function(o){return Q.H.useState(o)},J.useSyncExternalStore=function(o,m,N){return Q.H.useSyncExternalStore(o,m,N)},J.useTransition=function(){return Q.H.useTransition()},J.version="19.2.4",J}var Md;function Ss(){return Md||(Md=1,ms.exports=mv()),ms.exports}var ue=Ss();const hv=Xd(ue);var hs={exports:{}},Nn={},vs={exports:{}},ys={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Cd;function vv(){return Cd||(Cd=1,(function(r){function M(j,_){var b=j.length;j.push(_);e:for(;0<b;){var R=b-1>>>1,p=j[R];if(0<U(p,_))j[R]=_,j[b]=p,b=R;else break e}}function O(j){return j.length===0?null:j[0]}function v(j){if(j.length===0)return null;var _=j[0],b=j.pop();if(b!==_){j[0]=b;e:for(var R=0,p=j.length,o=p>>>1;R<o;){var m=2*(R+1)-1,N=j[m],C=m+1,K=j[C];if(0>U(N,b))C<p&&0>U(K,N)?(j[R]=K,j[C]=b,R=C):(j[R]=N,j[m]=b,R=m);else if(C<p&&0>U(K,b))j[R]=K,j[C]=b,R=C;else break e}}return _}function U(j,_){var b=j.sortIndex-_.sortIndex;return b!==0?b:j.id-_.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var L=performance;r.unstable_now=function(){return L.now()}}else{var B=Date,k=B.now();r.unstable_now=function(){return B.now()-k}}var G=[],A=[],V=1,H=null,X=3,de=!1,je=!1,ge=!1,he=!1,oe=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ce(j){for(var _=O(A);_!==null;){if(_.callback===null)v(A);else if(_.startTime<=j)v(A),_.sortIndex=_.expirationTime,M(G,_);else break;_=O(A)}}function me(j){if(ge=!1,ce(j),!je)if(O(G)!==null)je=!0,Ee||(Ee=!0,Qe());else{var _=O(A);_!==null&&Ie(me,_.startTime-j)}}var Ee=!1,Q=-1,ee=5,ze=-1;function ll(){return he?!0:!(r.unstable_now()-ze<ee)}function Fe(){if(he=!1,Ee){var j=r.unstable_now();ze=j;var _=!0;try{e:{je=!1,ge&&(ge=!1,W(Q),Q=-1),de=!0;var b=X;try{l:{for(ce(j),H=O(G);H!==null&&!(H.expirationTime>j&&ll());){var R=H.callback;if(typeof R=="function"){H.callback=null,X=H.priorityLevel;var p=R(H.expirationTime<=j);if(j=r.unstable_now(),typeof p=="function"){H.callback=p,ce(j),_=!0;break l}H===O(G)&&v(G),ce(j)}else v(G);H=O(G)}if(H!==null)_=!0;else{var o=O(A);o!==null&&Ie(me,o.startTime-j),_=!1}}break e}finally{H=null,X=b,de=!1}_=void 0}}finally{_?Qe():Ee=!1}}}var Qe;if(typeof F=="function")Qe=function(){F(Fe)};else if(typeof MessageChannel<"u"){var $e=new MessageChannel,rl=$e.port2;$e.port1.onmessage=Fe,Qe=function(){rl.postMessage(null)}}else Qe=function(){oe(Fe,0)};function Ie(j,_){Q=oe(function(){j(r.unstable_now())},_)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(j){j.callback=null},r.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<j?Math.floor(1e3/j):5},r.unstable_getCurrentPriorityLevel=function(){return X},r.unstable_next=function(j){switch(X){case 1:case 2:case 3:var _=3;break;default:_=X}var b=X;X=_;try{return j()}finally{X=b}},r.unstable_requestPaint=function(){he=!0},r.unstable_runWithPriority=function(j,_){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var b=X;X=j;try{return _()}finally{X=b}},r.unstable_scheduleCallback=function(j,_,b){var R=r.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?R+b:R):b=R,j){case 1:var p=-1;break;case 2:p=250;break;case 5:p=1073741823;break;case 4:p=1e4;break;default:p=5e3}return p=b+p,j={id:V++,callback:_,priorityLevel:j,startTime:b,expirationTime:p,sortIndex:-1},b>R?(j.sortIndex=b,M(A,j),O(G)===null&&j===O(A)&&(ge?(W(Q),Q=-1):ge=!0,Ie(me,b-R))):(j.sortIndex=p,M(G,j),je||de||(je=!0,Ee||(Ee=!0,Qe()))),j},r.unstable_shouldYield=ll,r.unstable_wrapCallback=function(j){var _=X;return function(){var b=X;X=_;try{return j.apply(this,arguments)}finally{X=b}}}})(ys)),ys}var Od;function yv(){return Od||(Od=1,vs.exports=vv()),vs.exports}var gs={exports:{}},We={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var _d;function gv(){if(_d)return We;_d=1;var r=Ss();function M(G){var A="https://react.dev/errors/"+G;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var V=2;V<arguments.length;V++)A+="&args[]="+encodeURIComponent(arguments[V])}return"Minified React error #"+G+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function O(){}var v={d:{f:O,r:function(){throw Error(M(522))},D:O,C:O,L:O,m:O,X:O,S:O,M:O},p:0,findDOMNode:null},U=Symbol.for("react.portal");function L(G,A,V){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:H==null?null:""+H,children:G,containerInfo:A,implementation:V}}var B=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(G,A){if(G==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return We.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,We.createPortal=function(G,A){var V=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(M(299));return L(G,A,null,V)},We.flushSync=function(G){var A=B.T,V=v.p;try{if(B.T=null,v.p=2,G)return G()}finally{B.T=A,v.p=V,v.d.f()}},We.preconnect=function(G,A){typeof G=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,v.d.C(G,A))},We.prefetchDNS=function(G){typeof G=="string"&&v.d.D(G)},We.preinit=function(G,A){if(typeof G=="string"&&A&&typeof A.as=="string"){var V=A.as,H=k(V,A.crossOrigin),X=typeof A.integrity=="string"?A.integrity:void 0,de=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;V==="style"?v.d.S(G,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:H,integrity:X,fetchPriority:de}):V==="script"&&v.d.X(G,{crossOrigin:H,integrity:X,fetchPriority:de,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},We.preinitModule=function(G,A){if(typeof G=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var V=k(A.as,A.crossOrigin);v.d.M(G,{crossOrigin:V,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&v.d.M(G)},We.preload=function(G,A){if(typeof G=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var V=A.as,H=k(V,A.crossOrigin);v.d.L(G,V,{crossOrigin:H,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},We.preloadModule=function(G,A){if(typeof G=="string")if(A){var V=k(A.as,A.crossOrigin);v.d.m(G,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:V,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else v.d.m(G)},We.requestFormReset=function(G){v.d.r(G)},We.unstable_batchedUpdates=function(G,A){return G(A)},We.useFormState=function(G,A,V){return B.H.useFormState(G,A,V)},We.useFormStatus=function(){return B.H.useHostTransitionStatus()},We.version="19.2.4",We}var Dd;function pv(){if(Dd)return gs.exports;Dd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(M){console.error(M)}}return r(),gs.exports=gv(),gs.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Ud;function bv(){if(Ud)return Nn;Ud=1;var r=yv(),M=Ss(),O=pv();function v(e){var l="https://react.dev/errors/"+e;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)l+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function U(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function L(e){var l=e,t=e;if(e.alternate)for(;l.return;)l=l.return;else{e=l;do l=e,(l.flags&4098)!==0&&(t=l.return),e=l.return;while(e)}return l.tag===3?t:null}function B(e){if(e.tag===13){var l=e.memoizedState;if(l===null&&(e=e.alternate,e!==null&&(l=e.memoizedState)),l!==null)return l.dehydrated}return null}function k(e){if(e.tag===31){var l=e.memoizedState;if(l===null&&(e=e.alternate,e!==null&&(l=e.memoizedState)),l!==null)return l.dehydrated}return null}function G(e){if(L(e)!==e)throw Error(v(188))}function A(e){var l=e.alternate;if(!l){if(l=L(e),l===null)throw Error(v(188));return l!==e?null:e}for(var t=e,a=l;;){var n=t.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){t=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===t)return G(n),e;if(i===a)return G(n),l;i=i.sibling}throw Error(v(188))}if(t.return!==a.return)t=n,a=i;else{for(var c=!1,s=n.child;s;){if(s===t){c=!0,t=n,a=i;break}if(s===a){c=!0,a=n,t=i;break}s=s.sibling}if(!c){for(s=i.child;s;){if(s===t){c=!0,t=i,a=n;break}if(s===a){c=!0,a=i,t=n;break}s=s.sibling}if(!c)throw Error(v(189))}}if(t.alternate!==a)throw Error(v(190))}if(t.tag!==3)throw Error(v(188));return t.stateNode.current===t?e:l}function V(e){var l=e.tag;if(l===5||l===26||l===27||l===6)return e;for(e=e.child;e!==null;){if(l=V(e),l!==null)return l;e=e.sibling}return null}var H=Object.assign,X=Symbol.for("react.element"),de=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),ge=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ze=Symbol.for("react.activity"),ll=Symbol.for("react.memo_cache_sentinel"),Fe=Symbol.iterator;function Qe(e){return e===null||typeof e!="object"?null:(e=Fe&&e[Fe]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Symbol.for("react.client.reference");function rl(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ge:return"Fragment";case oe:return"Profiler";case he:return"StrictMode";case me:return"Suspense";case Ee:return"SuspenseList";case ze:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case je:return"Portal";case F:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case ce:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return l=e.displayName||null,l!==null?l:rl(e.type)||"Memo";case ee:l=e._payload,e=e._init;try{return rl(e(l))}catch{}}return null}var Ie=Array.isArray,j=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b={pending:!1,data:null,method:null,action:null},R=[],p=-1;function o(e){return{current:e}}function m(e){0>p||(e.current=R[p],R[p]=null,p--)}function N(e,l){p++,R[p]=e.current,e.current=l}var C=o(null),K=o(null),D=o(null),I=o(null);function Pe(e,l){switch(N(D,l),N(K,e),N(C,null),l.nodeType){case 9:case 11:e=(e=l.documentElement)&&(e=e.namespaceURI)?Jf(e):0;break;default:if(e=l.tagName,l=l.namespaceURI)l=Jf(l),e=Ff(l,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}m(C),N(C,e)}function De(){m(C),m(K),m(D)}function Oa(e){e.memoizedState!==null&&N(I,e);var l=C.current,t=Ff(l,e.type);l!==t&&(N(K,e),N(C,t))}function Cn(e){K.current===e&&(m(C),m(K)),I.current===e&&(m(I),Sn._currentValue=b)}var Ji,js;function zt(e){if(Ji===void 0)try{throw Error()}catch(t){var l=t.stack.trim().match(/\n( *(at )?)/);Ji=l&&l[1]||"",js=-1<t.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ji+e+js}var Fi=!1;function Wi(e,l){if(!e||Fi)return"";Fi=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(x){var S=x}Reflect.construct(e,[],z)}else{try{z.call()}catch(x){S=x}e.call(z.prototype)}}else{try{throw Error()}catch(x){S=x}(z=e())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(x){if(x&&S&&typeof x.stack=="string")return[x.stack,S.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],s=i[1];if(c&&s){var f=c.split(`
44
- `),g=s.split(`
45
- `);for(n=a=0;a<f.length&&!f[a].includes("DetermineComponentFrameRoot");)a++;for(;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;if(a===f.length||n===g.length)for(a=f.length-1,n=g.length-1;1<=a&&0<=n&&f[a]!==g[n];)n--;for(;1<=a&&0<=n;a--,n--)if(f[a]!==g[n]){if(a!==1||n!==1)do if(a--,n--,0>n||f[a]!==g[n]){var T=`
46
- `+f[a].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),T}while(1<=a&&0<=n);break}}}finally{Fi=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?zt(t):""}function Ld(e,l){switch(e.tag){case 26:case 27:case 5:return zt(e.type);case 16:return zt("Lazy");case 13:return e.child!==l&&l!==null?zt("Suspense Fallback"):zt("Suspense");case 19:return zt("SuspenseList");case 0:case 15:return Wi(e.type,!1);case 11:return Wi(e.type.render,!1);case 1:return Wi(e.type,!0);case 31:return zt("Activity");default:return""}}function Ts(e){try{var l="",t=null;do l+=Ld(e,t),t=e,e=e.return;while(e);return l}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var $i=Object.prototype.hasOwnProperty,Ii=r.unstable_scheduleCallback,Pi=r.unstable_cancelCallback,wd=r.unstable_shouldYield,Zd=r.unstable_requestPaint,ol=r.unstable_now,kd=r.unstable_getCurrentPriorityLevel,As=r.unstable_ImmediatePriority,Ns=r.unstable_UserBlockingPriority,On=r.unstable_NormalPriority,Vd=r.unstable_LowPriority,Es=r.unstable_IdlePriority,Kd=r.log,Jd=r.unstable_setDisableYieldValue,_a=null,fl=null;function tt(e){if(typeof Kd=="function"&&Jd(e),fl&&typeof fl.setStrictMode=="function")try{fl.setStrictMode(_a,e)}catch{}}var dl=Math.clz32?Math.clz32:$d,Fd=Math.log,Wd=Math.LN2;function $d(e){return e>>>=0,e===0?32:31-(Fd(e)/Wd|0)|0}var _n=256,Dn=262144,Un=4194304;function Mt(e){var l=e&42;if(l!==0)return l;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 Rn(e,l,t){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~i,a!==0?n=Mt(a):(c&=s,c!==0?n=Mt(c):t||(t=s&~e,t!==0&&(n=Mt(t))))):(s=a&~i,s!==0?n=Mt(s):c!==0?n=Mt(c):t||(t=a&~e,t!==0&&(n=Mt(t)))),n===0?0:l!==0&&l!==n&&(l&i)===0&&(i=n&-n,t=l&-l,i>=t||i===32&&(t&4194048)!==0)?l:n}function Da(e,l){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&l)===0}function Id(e,l){switch(e){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 zs(){var e=Un;return Un<<=1,(Un&62914560)===0&&(Un=4194304),e}function eu(e){for(var l=[],t=0;31>t;t++)l.push(e);return l}function Ua(e,l){e.pendingLanes|=l,l!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pd(e,l,t,a,n,i){var c=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var s=e.entanglements,f=e.expirationTimes,g=e.hiddenUpdates;for(t=c&~t;0<t;){var T=31-dl(t),z=1<<T;s[T]=0,f[T]=-1;var S=g[T];if(S!==null)for(g[T]=null,T=0;T<S.length;T++){var x=S[T];x!==null&&(x.lane&=-536870913)}t&=~z}a!==0&&Ms(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~l))}function Ms(e,l,t){e.pendingLanes|=l,e.suspendedLanes&=~l;var a=31-dl(l);e.entangledLanes|=l,e.entanglements[a]=e.entanglements[a]|1073741824|t&261930}function Cs(e,l){var t=e.entangledLanes|=l;for(e=e.entanglements;t;){var a=31-dl(t),n=1<<a;n&l|e[a]&l&&(e[a]|=l),t&=~n}}function Os(e,l){var t=l&-l;return t=(t&42)!==0?1:lu(t),(t&(e.suspendedLanes|l))!==0?0:t}function lu(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 tu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _s(){var e=_.p;return e!==0?e:(e=window.event,e===void 0?32:pd(e.type))}function Ds(e,l){var t=_.p;try{return _.p=e,l()}finally{_.p=t}}var at=Math.random().toString(36).slice(2),Ze="__reactFiber$"+at,tl="__reactProps$"+at,Vt="__reactContainer$"+at,au="__reactEvents$"+at,em="__reactListeners$"+at,lm="__reactHandles$"+at,Us="__reactResources$"+at,Ra="__reactMarker$"+at;function nu(e){delete e[Ze],delete e[tl],delete e[au],delete e[em],delete e[lm]}function Kt(e){var l=e[Ze];if(l)return l;for(var t=e.parentNode;t;){if(l=t[Vt]||t[Ze]){if(t=l.alternate,l.child!==null||t!==null&&t.child!==null)for(e=td(e);e!==null;){if(t=e[Ze])return t;e=td(e)}return l}e=t,t=e.parentNode}return null}function Jt(e){if(e=e[Ze]||e[Vt]){var l=e.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return e}return null}function Ba(e){var l=e.tag;if(l===5||l===26||l===27||l===6)return e.stateNode;throw Error(v(33))}function Ft(e){var l=e[Us];return l||(l=e[Us]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Le(e){e[Ra]=!0}var Rs=new Set,Bs={};function Ct(e,l){Wt(e,l),Wt(e+"Capture",l)}function Wt(e,l){for(Bs[e]=l,e=0;e<l.length;e++)Rs.add(l[e])}var tm=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]*$"),Hs={},Gs={};function am(e){return $i.call(Gs,e)?!0:$i.call(Hs,e)?!1:tm.test(e)?Gs[e]=!0:(Hs[e]=!0,!1)}function Bn(e,l,t){if(am(l))if(t===null)e.removeAttribute(l);else{switch(typeof t){case"undefined":case"function":case"symbol":e.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(l);return}}e.setAttribute(l,""+t)}}function Hn(e,l,t){if(t===null)e.removeAttribute(l);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttribute(l,""+t)}}function Gl(e,l,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.setAttributeNS(l,t,""+a)}}function Sl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qs(e){var l=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function nm(e,l,t){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,l);if(!e.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,l,{configurable:!0,get:function(){return n.call(this)},set:function(c){t=""+c,i.call(this,c)}}),Object.defineProperty(e,l,{enumerable:a.enumerable}),{getValue:function(){return t},setValue:function(c){t=""+c},stopTracking:function(){e._valueTracker=null,delete e[l]}}}}function iu(e){if(!e._valueTracker){var l=qs(e)?"checked":"value";e._valueTracker=nm(e,l,""+e[l])}}function Ys(e){if(!e)return!1;var l=e._valueTracker;if(!l)return!0;var t=l.getValue(),a="";return e&&(a=qs(e)?e.checked?"true":"false":e.value),e=a,e!==t?(l.setValue(e),!0):!1}function Gn(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 im=/[\n"\\]/g;function xl(e){return e.replace(im,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function uu(e,l,t,a,n,i,c,s){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),l!=null?c==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+Sl(l)):e.value!==""+Sl(l)&&(e.value=""+Sl(l)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),l!=null?cu(e,c,Sl(l)):t!=null?cu(e,c,Sl(t)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Sl(s):e.removeAttribute("name")}function Xs(e,l,t,a,n,i,c,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),l!=null||t!=null){if(!(i!=="submit"&&i!=="reset"||l!=null)){iu(e);return}t=t!=null?""+Sl(t):"",l=l!=null?""+Sl(l):t,s||l===e.value||(e.value=l),e.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),iu(e)}function cu(e,l,t){l==="number"&&Gn(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function $t(e,l,t,a){if(e=e.options,l){l={};for(var n=0;n<t.length;n++)l["$"+t[n]]=!0;for(t=0;t<e.length;t++)n=l.hasOwnProperty("$"+e[t].value),e[t].selected!==n&&(e[t].selected=n),n&&a&&(e[t].defaultSelected=!0)}else{for(t=""+Sl(t),l=null,n=0;n<e.length;n++){if(e[n].value===t){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}l!==null||e[n].disabled||(l=e[n])}l!==null&&(l.selected=!0)}}function Qs(e,l,t){if(l!=null&&(l=""+Sl(l),l!==e.value&&(e.value=l),t==null)){e.defaultValue!==l&&(e.defaultValue=l);return}e.defaultValue=t!=null?""+Sl(t):""}function Ls(e,l,t,a){if(l==null){if(a!=null){if(t!=null)throw Error(v(92));if(Ie(a)){if(1<a.length)throw Error(v(93));a=a[0]}t=a}t==null&&(t=""),l=t}t=Sl(l),e.defaultValue=t,a=e.textContent,a===t&&a!==""&&a!==null&&(e.value=a),iu(e)}function It(e,l){if(l){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=l;return}}e.textContent=l}var um=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 ws(e,l,t){var a=l.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?a?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="":a?e.setProperty(l,t):typeof t!="number"||t===0||um.has(l)?l==="float"?e.cssFloat=t:e[l]=(""+t).trim():e[l]=t+"px"}function Zs(e,l,t){if(l!=null&&typeof l!="object")throw Error(v(62));if(e=e.style,t!=null){for(var a in t)!t.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&t[n]!==a&&ws(e,n,a)}else for(var i in l)l.hasOwnProperty(i)&&ws(e,i,l[i])}function su(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 cm=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"]]),sm=/^[\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 qn(e){return sm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ql(){}var ru=null;function ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pt=null,ea=null;function ks(e){var l=Jt(e);if(l&&(e=l.stateNode)){var t=e[tl]||null;e:switch(e=l.stateNode,l.type){case"input":if(uu(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),l=t.name,t.type==="radio"&&l!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+xl(""+l)+'"][type="radio"]'),l=0;l<t.length;l++){var a=t[l];if(a!==e&&a.form===e.form){var n=a[tl]||null;if(!n)throw Error(v(90));uu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<t.length;l++)a=t[l],a.form===e.form&&Ys(a)}break e;case"textarea":Qs(e,t.value,t.defaultValue);break e;case"select":l=t.value,l!=null&&$t(e,!!t.multiple,l,!1)}}}var fu=!1;function Vs(e,l,t){if(fu)return e(l,t);fu=!0;try{var a=e(l);return a}finally{if(fu=!1,(Pt!==null||ea!==null)&&(Ni(),Pt&&(l=Pt,e=ea,ea=Pt=null,ks(l),e)))for(l=0;l<e.length;l++)ks(e[l])}}function Ha(e,l){var t=e.stateNode;if(t===null)return null;var a=t[tl]||null;if(a===null)return null;t=a[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(v(231,l,typeof t));return t}var Yl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),du=!1;if(Yl)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){du=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{du=!1}var nt=null,mu=null,Yn=null;function Ks(){if(Yn)return Yn;var e,l=mu,t=l.length,a,n="value"in nt?nt.value:nt.textContent,i=n.length;for(e=0;e<t&&l[e]===n[e];e++);var c=t-e;for(a=1;a<=c&&l[t-a]===n[i-a];a++);return Yn=n.slice(e,1<a?1-a:void 0)}function Xn(e){var l=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&l===13&&(e=13)):e=l,e===10&&(e=13),32<=e||e===13?e:0}function Qn(){return!0}function Js(){return!1}function al(e){function l(t,a,n,i,c){this._reactName=t,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qn:Js,this.isPropagationStopped=Js,this}return H(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Qn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Qn)},persist:function(){},isPersistent:Qn}),l}var Ot={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=al(Ot),qa=H({},Ot,{view:0,detail:0}),rm=al(qa),hu,vu,Ya,wn=H({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gu,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!==Ya&&(Ya&&e.type==="mousemove"?(hu=e.screenX-Ya.screenX,vu=e.screenY-Ya.screenY):vu=hu=0,Ya=e),hu)},movementY:function(e){return"movementY"in e?e.movementY:vu}}),Fs=al(wn),om=H({},wn,{dataTransfer:0}),fm=al(om),dm=H({},qa,{relatedTarget:0}),yu=al(dm),mm=H({},Ot,{animationName:0,elapsedTime:0,pseudoElement:0}),hm=al(mm),vm=H({},Ot,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ym=al(vm),gm=H({},Ot,{data:0}),Ws=al(gm),pm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bm={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"},Sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xm(e){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(e):(e=Sm[e])?!!l[e]:!1}function gu(){return xm}var jm=H({},qa,{key:function(e){if(e.key){var l=pm[e.key]||e.key;if(l!=="Unidentified")return l}return e.type==="keypress"?(e=Xn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gu,charCode:function(e){return e.type==="keypress"?Xn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tm=al(jm),Am=H({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$s=al(Am),Nm=H({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gu}),Em=al(Nm),zm=H({},Ot,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mm=al(zm),Cm=H({},wn,{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}),Om=al(Cm),_m=H({},Ot,{newState:0,oldState:0}),Dm=al(_m),Um=[9,13,27,32],pu=Yl&&"CompositionEvent"in window,Xa=null;Yl&&"documentMode"in document&&(Xa=document.documentMode);var Rm=Yl&&"TextEvent"in window&&!Xa,Is=Yl&&(!pu||Xa&&8<Xa&&11>=Xa),Ps=" ",er=!1;function lr(e,l){switch(e){case"keyup":return Um.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var la=!1;function Bm(e,l){switch(e){case"compositionend":return tr(l);case"keypress":return l.which!==32?null:(er=!0,Ps);case"textInput":return e=l.data,e===Ps&&er?null:e;default:return null}}function Hm(e,l){if(la)return e==="compositionend"||!pu&&lr(e,l)?(e=Ks(),Yn=mu=nt=null,la=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Is&&l.locale!=="ko"?null:l.data;default:return null}}var Gm={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 ar(e){var l=e&&e.nodeName&&e.nodeName.toLowerCase();return l==="input"?!!Gm[e.type]:l==="textarea"}function nr(e,l,t,a){Pt?ea?ea.push(a):ea=[a]:Pt=a,l=Di(l,"onChange"),0<l.length&&(t=new Ln("onChange","change",null,t,a),e.push({event:t,listeners:l}))}var Qa=null,La=null;function qm(e){Lf(e,0)}function Zn(e){var l=Ba(e);if(Ys(l))return e}function ir(e,l){if(e==="change")return l}var ur=!1;if(Yl){var bu;if(Yl){var Su="oninput"in document;if(!Su){var cr=document.createElement("div");cr.setAttribute("oninput","return;"),Su=typeof cr.oninput=="function"}bu=Su}else bu=!1;ur=bu&&(!document.documentMode||9<document.documentMode)}function sr(){Qa&&(Qa.detachEvent("onpropertychange",rr),La=Qa=null)}function rr(e){if(e.propertyName==="value"&&Zn(La)){var l=[];nr(l,La,e,ou(e)),Vs(qm,l)}}function Ym(e,l,t){e==="focusin"?(sr(),Qa=l,La=t,Qa.attachEvent("onpropertychange",rr)):e==="focusout"&&sr()}function Xm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zn(La)}function Qm(e,l){if(e==="click")return Zn(l)}function Lm(e,l){if(e==="input"||e==="change")return Zn(l)}function wm(e,l){return e===l&&(e!==0||1/e===1/l)||e!==e&&l!==l}var ml=typeof Object.is=="function"?Object.is:wm;function wa(e,l){if(ml(e,l))return!0;if(typeof e!="object"||e===null||typeof l!="object"||l===null)return!1;var t=Object.keys(e),a=Object.keys(l);if(t.length!==a.length)return!1;for(a=0;a<t.length;a++){var n=t[a];if(!$i.call(l,n)||!ml(e[n],l[n]))return!1}return!0}function or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,l){var t=or(e);e=0;for(var a;t;){if(t.nodeType===3){if(a=e+t.textContent.length,e<=l&&a>=l)return{node:t,offset:l-e};e=a}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=or(t)}}function dr(e,l){return e&&l?e===l?!0:e&&e.nodeType===3?!1:l&&l.nodeType===3?dr(e,l.parentNode):"contains"in e?e.contains(l):e.compareDocumentPosition?!!(e.compareDocumentPosition(l)&16):!1:!1}function mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var l=Gn(e.document);l instanceof e.HTMLIFrameElement;){try{var t=typeof l.contentWindow.location.href=="string"}catch{t=!1}if(t)e=l.contentWindow;else break;l=Gn(e.document)}return l}function xu(e){var l=e&&e.nodeName&&e.nodeName.toLowerCase();return l&&(l==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||l==="textarea"||e.contentEditable==="true")}var Zm=Yl&&"documentMode"in document&&11>=document.documentMode,ta=null,ju=null,Za=null,Tu=!1;function hr(e,l,t){var a=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Tu||ta==null||ta!==Gn(a)||(a=ta,"selectionStart"in a&&xu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Za&&wa(Za,a)||(Za=a,a=Di(ju,"onSelect"),0<a.length&&(l=new Ln("onSelect","select",null,l,t),e.push({event:l,listeners:a}),l.target=ta)))}function _t(e,l){var t={};return t[e.toLowerCase()]=l.toLowerCase(),t["Webkit"+e]="webkit"+l,t["Moz"+e]="moz"+l,t}var aa={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionrun:_t("Transition","TransitionRun"),transitionstart:_t("Transition","TransitionStart"),transitioncancel:_t("Transition","TransitionCancel"),transitionend:_t("Transition","TransitionEnd")},Au={},vr={};Yl&&(vr=document.createElement("div").style,"AnimationEvent"in window||(delete aa.animationend.animation,delete aa.animationiteration.animation,delete aa.animationstart.animation),"TransitionEvent"in window||delete aa.transitionend.transition);function Dt(e){if(Au[e])return Au[e];if(!aa[e])return e;var l=aa[e],t;for(t in l)if(l.hasOwnProperty(t)&&t in vr)return Au[e]=l[t];return e}var yr=Dt("animationend"),gr=Dt("animationiteration"),pr=Dt("animationstart"),km=Dt("transitionrun"),Vm=Dt("transitionstart"),Km=Dt("transitioncancel"),br=Dt("transitionend"),Sr=new Map,Nu="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(" ");Nu.push("scrollEnd");function Ol(e,l){Sr.set(e,l),Ct(l,[e])}var kn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=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(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jl=[],na=0,Eu=0;function Vn(){for(var e=na,l=Eu=na=0;l<e;){var t=jl[l];jl[l++]=null;var a=jl[l];jl[l++]=null;var n=jl[l];jl[l++]=null;var i=jl[l];if(jl[l++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&xr(t,n,i)}}function Kn(e,l,t,a){jl[na++]=e,jl[na++]=l,jl[na++]=t,jl[na++]=a,Eu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function zu(e,l,t,a){return Kn(e,l,t,a),Jn(e)}function Ut(e,l){return Kn(e,null,null,l),Jn(e)}function xr(e,l,t){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t);for(var n=!1,i=e.return;i!==null;)i.childLanes|=t,a=i.alternate,a!==null&&(a.childLanes|=t),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&l!==null&&(n=31-dl(t),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[l]:a.push(l),l.lane=t|536870912),i):null}function Jn(e){if(50<mn)throw mn=0,Hc=null,Error(v(185));for(var l=e.return;l!==null;)e=l,l=e.return;return e.tag===3?e.stateNode:null}var ia={};function Jm(e,l,t,a){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hl(e,l,t,a){return new Jm(e,l,t,a)}function Mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xl(e,l){var t=e.alternate;return t===null?(t=hl(e.tag,l,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=l,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&65011712,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function jr(e,l){e.flags&=65011714;var t=e.alternate;return t===null?(e.childLanes=0,e.lanes=l,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),e}function Fn(e,l,t,a,n,i){var c=0;if(a=e,typeof e=="function")Mu(e)&&(c=1);else if(typeof e=="string")c=Ph(e,t,C.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ze:return e=hl(31,t,l,n),e.elementType=ze,e.lanes=i,e;case ge:return Rt(t.children,n,i,l);case he:c=8,n|=24;break;case oe:return e=hl(12,t,l,n|2),e.elementType=oe,e.lanes=i,e;case me:return e=hl(13,t,l,n),e.elementType=me,e.lanes=i,e;case Ee:return e=hl(19,t,l,n),e.elementType=Ee,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:c=10;break e;case W:c=9;break e;case ce:c=11;break e;case Q:c=14;break e;case ee:c=16,a=null;break e}c=29,t=Error(v(130,e===null?"null":typeof e,"")),a=null}return l=hl(c,t,l,n),l.elementType=e,l.type=a,l.lanes=i,l}function Rt(e,l,t,a){return e=hl(7,e,a,l),e.lanes=t,e}function Cu(e,l,t){return e=hl(6,e,null,l),e.lanes=t,e}function Tr(e){var l=hl(18,null,null,0);return l.stateNode=e,l}function Ou(e,l,t){return l=hl(4,e.children!==null?e.children:[],e.key,l),l.lanes=t,l.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},l}var Ar=new WeakMap;function Tl(e,l){if(typeof e=="object"&&e!==null){var t=Ar.get(e);return t!==void 0?t:(l={value:e,source:l,stack:Ts(l)},Ar.set(e,l),l)}return{value:e,source:l,stack:Ts(l)}}var ua=[],ca=0,Wn=null,ka=0,Al=[],Nl=0,it=null,Ul=1,Rl="";function Ql(e,l){ua[ca++]=ka,ua[ca++]=Wn,Wn=e,ka=l}function Nr(e,l,t){Al[Nl++]=Ul,Al[Nl++]=Rl,Al[Nl++]=it,it=e;var a=Ul;e=Rl;var n=32-dl(a)-1;a&=~(1<<n),t+=1;var i=32-dl(l)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ul=1<<32-dl(l)+n|t<<n|a,Rl=i+e}else Ul=1<<i|t<<n|a,Rl=e}function _u(e){e.return!==null&&(Ql(e,1),Nr(e,1,0))}function Du(e){for(;e===Wn;)Wn=ua[--ca],ua[ca]=null,ka=ua[--ca],ua[ca]=null;for(;e===it;)it=Al[--Nl],Al[Nl]=null,Rl=Al[--Nl],Al[Nl]=null,Ul=Al[--Nl],Al[Nl]=null}function Er(e,l){Al[Nl++]=Ul,Al[Nl++]=Rl,Al[Nl++]=it,Ul=l.id,Rl=l.overflow,it=e}var ke=null,Te=null,ie=!1,ut=null,El=!1,Uu=Error(v(519));function ct(e){var l=Error(v(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(Tl(l,e)),Uu}function zr(e){var l=e.stateNode,t=e.type,a=e.memoizedProps;switch(l[Ze]=e,l[tl]=a,t){case"dialog":te("cancel",l),te("close",l);break;case"iframe":case"object":case"embed":te("load",l);break;case"video":case"audio":for(t=0;t<vn.length;t++)te(vn[t],l);break;case"source":te("error",l);break;case"img":case"image":case"link":te("error",l),te("load",l);break;case"details":te("toggle",l);break;case"input":te("invalid",l),Xs(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":te("invalid",l);break;case"textarea":te("invalid",l),Ls(l,a.value,a.defaultValue,a.children)}t=a.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||l.textContent===""+t||a.suppressHydrationWarning===!0||Vf(l.textContent,t)?(a.popover!=null&&(te("beforetoggle",l),te("toggle",l)),a.onScroll!=null&&te("scroll",l),a.onScrollEnd!=null&&te("scrollend",l),a.onClick!=null&&(l.onclick=ql),l=!0):l=!1,l||ct(e,!0)}function Mr(e){for(ke=e.return;ke;)switch(ke.tag){case 5:case 31:case 13:El=!1;return;case 27:case 3:El=!0;return;default:ke=ke.return}}function sa(e){if(e!==ke)return!1;if(!ie)return Mr(e),ie=!0,!1;var l=e.tag,t;if((t=l!==3&&l!==27)&&((t=l===5)&&(t=e.type,t=!(t!=="form"&&t!=="button")||$c(e.type,e.memoizedProps)),t=!t),t&&Te&&ct(e),Mr(e),l===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(v(317));Te=ld(e)}else if(l===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(v(317));Te=ld(e)}else l===27?(l=Te,xt(e.type)?(e=ts,ts=null,Te=e):Te=l):Te=ke?Ml(e.stateNode.nextSibling):null;return!0}function Bt(){Te=ke=null,ie=!1}function Ru(){var e=ut;return e!==null&&(cl===null?cl=e:cl.push.apply(cl,e),ut=null),e}function Va(e){ut===null?ut=[e]:ut.push(e)}var Bu=o(null),Ht=null,Ll=null;function st(e,l,t){N(Bu,l._currentValue),l._currentValue=t}function wl(e){e._currentValue=Bu.current,m(Bu)}function Hu(e,l,t){for(;e!==null;){var a=e.alternate;if((e.childLanes&l)!==l?(e.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),e===t)break;e=e.return}}function Gu(e,l,t,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=n;for(var f=0;f<l.length;f++)if(s.context===l[f]){i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Hu(i.return,t,e),a||(c=null);break e}i=s.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(v(341));c.lanes|=t,i=c.alternate,i!==null&&(i.lanes|=t),Hu(c,t,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ra(e,l,t,a){e=null;for(var n=l,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(v(387));if(c=c.memoizedProps,c!==null){var s=n.type;ml(n.pendingProps.value,c.value)||(e!==null?e.push(s):e=[s])}}else if(n===I.current){if(c=n.alternate,c===null)throw Error(v(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Sn):e=[Sn])}n=n.return}e!==null&&Gu(l,e,t,a),l.flags|=262144}function $n(e){for(e=e.firstContext;e!==null;){if(!ml(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gt(e){Ht=e,Ll=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Cr(Ht,e)}function In(e,l){return Ht===null&&Gt(e),Cr(e,l)}function Cr(e,l){var t=l._currentValue;if(l={context:l,memoizedValue:t,next:null},Ll===null){if(e===null)throw Error(v(308));Ll=l,e.dependencies={lanes:0,firstContext:l},e.flags|=524288}else Ll=Ll.next=l;return t}var Fm=typeof AbortController<"u"?AbortController:function(){var e=[],l=this.signal={aborted:!1,addEventListener:function(t,a){e.push(a)}};this.abort=function(){l.aborted=!0,e.forEach(function(t){return t()})}},Wm=r.unstable_scheduleCallback,$m=r.unstable_NormalPriority,He={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qu(){return{controller:new Fm,data:new Map,refCount:0}}function Ka(e){e.refCount--,e.refCount===0&&Wm($m,function(){e.controller.abort()})}var Ja=null,Yu=0,oa=0,fa=null;function Im(e,l){if(Ja===null){var t=Ja=[];Yu=0,oa=Lc(),fa={status:"pending",value:void 0,then:function(a){t.push(a)}}}return Yu++,l.then(Or,Or),l}function Or(){if(--Yu===0&&Ja!==null){fa!==null&&(fa.status="fulfilled");var e=Ja;Ja=null,oa=0,fa=null;for(var l=0;l<e.length;l++)(0,e[l])()}}function Pm(e,l){var t=[],a={status:"pending",value:null,reason:null,then:function(n){t.push(n)}};return e.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<t.length;n++)(0,t[n])(l)},function(n){for(a.status="rejected",a.reason=n,n=0;n<t.length;n++)(0,t[n])(void 0)}),a}var _r=j.S;j.S=function(e,l){yf=ol(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Im(e,l),_r!==null&&_r(e,l)};var qt=o(null);function Xu(){var e=qt.current;return e!==null?e:xe.pooledCache}function Pn(e,l){l===null?N(qt,qt.current):N(qt,l.pool)}function Dr(){var e=Xu();return e===null?null:{parent:He._currentValue,pool:e}}var da=Error(v(460)),Qu=Error(v(474)),ei=Error(v(542)),li={then:function(){}};function Ur(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rr(e,l,t){switch(t=e[t],t===void 0?e.push(l):t!==l&&(l.then(ql,ql),l=t),l.status){case"fulfilled":return l.value;case"rejected":throw e=l.reason,Hr(e),e;default:if(typeof l.status=="string")l.then(ql,ql);else{if(e=xe,e!==null&&100<e.shellSuspendCounter)throw Error(v(482));e=l,e.status="pending",e.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw e=l.reason,Hr(e),e}throw Xt=l,da}}function Yt(e){try{var l=e._init;return l(e._payload)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Xt=t,da):t}}var Xt=null;function Br(){if(Xt===null)throw Error(v(459));var e=Xt;return Xt=null,e}function Hr(e){if(e===da||e===ei)throw Error(v(483))}var ma=null,Fa=0;function ti(e){var l=Fa;return Fa+=1,ma===null&&(ma=[]),Rr(ma,e,l)}function Wa(e,l){l=l.props.ref,e.ref=l!==void 0?l:null}function ai(e,l){throw l.$$typeof===X?Error(v(525)):(e=Object.prototype.toString.call(l),Error(v(31,e==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":e)))}function Gr(e){function l(h,d){if(e){var y=h.deletions;y===null?(h.deletions=[d],h.flags|=16):y.push(d)}}function t(h,d){if(!e)return null;for(;d!==null;)l(h,d),d=d.sibling;return null}function a(h){for(var d=new Map;h!==null;)h.key!==null?d.set(h.key,h):d.set(h.index,h),h=h.sibling;return d}function n(h,d){return h=Xl(h,d),h.index=0,h.sibling=null,h}function i(h,d,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<d?(h.flags|=67108866,d):y):(h.flags|=67108866,d)):(h.flags|=1048576,d)}function c(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function s(h,d,y,E){return d===null||d.tag!==6?(d=Cu(y,h.mode,E),d.return=h,d):(d=n(d,y),d.return=h,d)}function f(h,d,y,E){var w=y.type;return w===ge?T(h,d,y.props.children,E,y.key):d!==null&&(d.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ee&&Yt(w)===d.type)?(d=n(d,y.props),Wa(d,y),d.return=h,d):(d=Fn(y.type,y.key,y.props,null,h.mode,E),Wa(d,y),d.return=h,d)}function g(h,d,y,E){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=Ou(y,h.mode,E),d.return=h,d):(d=n(d,y.children||[]),d.return=h,d)}function T(h,d,y,E,w){return d===null||d.tag!==7?(d=Rt(y,h.mode,E,w),d.return=h,d):(d=n(d,y),d.return=h,d)}function z(h,d,y){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Cu(""+d,h.mode,y),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case de:return y=Fn(d.type,d.key,d.props,null,h.mode,y),Wa(y,d),y.return=h,y;case je:return d=Ou(d,h.mode,y),d.return=h,d;case ee:return d=Yt(d),z(h,d,y)}if(Ie(d)||Qe(d))return d=Rt(d,h.mode,y,null),d.return=h,d;if(typeof d.then=="function")return z(h,ti(d),y);if(d.$$typeof===F)return z(h,In(h,d),y);ai(h,d)}return null}function S(h,d,y,E){var w=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return w!==null?null:s(h,d,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case de:return y.key===w?f(h,d,y,E):null;case je:return y.key===w?g(h,d,y,E):null;case ee:return y=Yt(y),S(h,d,y,E)}if(Ie(y)||Qe(y))return w!==null?null:T(h,d,y,E,null);if(typeof y.then=="function")return S(h,d,ti(y),E);if(y.$$typeof===F)return S(h,d,In(h,y),E);ai(h,y)}return null}function x(h,d,y,E,w){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return h=h.get(y)||null,s(d,h,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case de:return h=h.get(E.key===null?y:E.key)||null,f(d,h,E,w);case je:return h=h.get(E.key===null?y:E.key)||null,g(d,h,E,w);case ee:return E=Yt(E),x(h,d,y,E,w)}if(Ie(E)||Qe(E))return h=h.get(y)||null,T(d,h,E,w,null);if(typeof E.then=="function")return x(h,d,y,ti(E),w);if(E.$$typeof===F)return x(h,d,y,In(d,E),w);ai(d,E)}return null}function q(h,d,y,E){for(var w=null,se=null,Y=d,P=d=0,ne=null;Y!==null&&P<y.length;P++){Y.index>P?(ne=Y,Y=null):ne=Y.sibling;var re=S(h,Y,y[P],E);if(re===null){Y===null&&(Y=ne);break}e&&Y&&re.alternate===null&&l(h,Y),d=i(re,d,P),se===null?w=re:se.sibling=re,se=re,Y=ne}if(P===y.length)return t(h,Y),ie&&Ql(h,P),w;if(Y===null){for(;P<y.length;P++)Y=z(h,y[P],E),Y!==null&&(d=i(Y,d,P),se===null?w=Y:se.sibling=Y,se=Y);return ie&&Ql(h,P),w}for(Y=a(Y);P<y.length;P++)ne=x(Y,h,P,y[P],E),ne!==null&&(e&&ne.alternate!==null&&Y.delete(ne.key===null?P:ne.key),d=i(ne,d,P),se===null?w=ne:se.sibling=ne,se=ne);return e&&Y.forEach(function(Et){return l(h,Et)}),ie&&Ql(h,P),w}function Z(h,d,y,E){if(y==null)throw Error(v(151));for(var w=null,se=null,Y=d,P=d=0,ne=null,re=y.next();Y!==null&&!re.done;P++,re=y.next()){Y.index>P?(ne=Y,Y=null):ne=Y.sibling;var Et=S(h,Y,re.value,E);if(Et===null){Y===null&&(Y=ne);break}e&&Y&&Et.alternate===null&&l(h,Y),d=i(Et,d,P),se===null?w=Et:se.sibling=Et,se=Et,Y=ne}if(re.done)return t(h,Y),ie&&Ql(h,P),w;if(Y===null){for(;!re.done;P++,re=y.next())re=z(h,re.value,E),re!==null&&(d=i(re,d,P),se===null?w=re:se.sibling=re,se=re);return ie&&Ql(h,P),w}for(Y=a(Y);!re.done;P++,re=y.next())re=x(Y,h,P,re.value,E),re!==null&&(e&&re.alternate!==null&&Y.delete(re.key===null?P:re.key),d=i(re,d,P),se===null?w=re:se.sibling=re,se=re);return e&&Y.forEach(function(ov){return l(h,ov)}),ie&&Ql(h,P),w}function Se(h,d,y,E){if(typeof y=="object"&&y!==null&&y.type===ge&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case de:e:{for(var w=y.key;d!==null;){if(d.key===w){if(w=y.type,w===ge){if(d.tag===7){t(h,d.sibling),E=n(d,y.props.children),E.return=h,h=E;break e}}else if(d.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ee&&Yt(w)===d.type){t(h,d.sibling),E=n(d,y.props),Wa(E,y),E.return=h,h=E;break e}t(h,d);break}else l(h,d);d=d.sibling}y.type===ge?(E=Rt(y.props.children,h.mode,E,y.key),E.return=h,h=E):(E=Fn(y.type,y.key,y.props,null,h.mode,E),Wa(E,y),E.return=h,h=E)}return c(h);case je:e:{for(w=y.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){t(h,d.sibling),E=n(d,y.children||[]),E.return=h,h=E;break e}else{t(h,d);break}else l(h,d);d=d.sibling}E=Ou(y,h.mode,E),E.return=h,h=E}return c(h);case ee:return y=Yt(y),Se(h,d,y,E)}if(Ie(y))return q(h,d,y,E);if(Qe(y)){if(w=Qe(y),typeof w!="function")throw Error(v(150));return y=w.call(y),Z(h,d,y,E)}if(typeof y.then=="function")return Se(h,d,ti(y),E);if(y.$$typeof===F)return Se(h,d,In(h,y),E);ai(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,d!==null&&d.tag===6?(t(h,d.sibling),E=n(d,y),E.return=h,h=E):(t(h,d),E=Cu(y,h.mode,E),E.return=h,h=E),c(h)):t(h,d)}return function(h,d,y,E){try{Fa=0;var w=Se(h,d,y,E);return ma=null,w}catch(Y){if(Y===da||Y===ei)throw Y;var se=hl(29,Y,null,h.mode);return se.lanes=E,se.return=h,se}finally{}}}var Qt=Gr(!0),qr=Gr(!1),rt=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wu(e,l){e=e.updateQueue,l.updateQueue===e&&(l.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ot(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ft(e,l,t){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(fe&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=Jn(e),xr(e,null,t),l}return Kn(e,a,l,t),Jn(e)}function $a(e,l,t){if(l=l.updateQueue,l!==null&&(l=l.shared,(t&4194048)!==0)){var a=l.lanes;a&=e.pendingLanes,t|=a,l.lanes=t,Cs(e,t)}}function Zu(e,l){var t=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,t===a)){var n=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var c={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,t=t.next}while(t!==null);i===null?n=i=l:i=i.next=l}else n=i=l;t={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=l:e.next=l,t.lastBaseUpdate=l}var ku=!1;function Ia(){if(ku){var e=fa;if(e!==null)throw e}}function Pa(e,l,t,a){ku=!1;var n=e.updateQueue;rt=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var f=s,g=f.next;f.next=null,c===null?i=g:c.next=g,c=f;var T=e.alternate;T!==null&&(T=T.updateQueue,s=T.lastBaseUpdate,s!==c&&(s===null?T.firstBaseUpdate=g:s.next=g,T.lastBaseUpdate=f))}if(i!==null){var z=n.baseState;c=0,T=g=f=null,s=i;do{var S=s.lane&-536870913,x=S!==s.lane;if(x?(ae&S)===S:(a&S)===S){S!==0&&S===oa&&(ku=!0),T!==null&&(T=T.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var q=e,Z=s;S=l;var Se=t;switch(Z.tag){case 1:if(q=Z.payload,typeof q=="function"){z=q.call(Se,z,S);break e}z=q;break e;case 3:q.flags=q.flags&-65537|128;case 0:if(q=Z.payload,S=typeof q=="function"?q.call(Se,z,S):q,S==null)break e;z=H({},z,S);break e;case 2:rt=!0}}S=s.callback,S!==null&&(e.flags|=64,x&&(e.flags|=8192),x=n.callbacks,x===null?n.callbacks=[S]:x.push(S))}else x={lane:S,tag:s.tag,payload:s.payload,callback:s.callback,next:null},T===null?(g=T=x,f=z):T=T.next=x,c|=S;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;x=s,s=x.next,x.next=null,n.lastBaseUpdate=x,n.shared.pending=null}}while(!0);T===null&&(f=z),n.baseState=f,n.firstBaseUpdate=g,n.lastBaseUpdate=T,i===null&&(n.shared.lanes=0),yt|=c,e.lanes=c,e.memoizedState=z}}function Yr(e,l){if(typeof e!="function")throw Error(v(191,e));e.call(l)}function Xr(e,l){var t=e.callbacks;if(t!==null)for(e.callbacks=null,e=0;e<t.length;e++)Yr(t[e],l)}var ha=o(null),ni=o(0);function Qr(e,l){e=Il,N(ni,e),N(ha,l),Il=e|l.baseLanes}function Vu(){N(ni,Il),N(ha,ha.current)}function Ku(){Il=ni.current,m(ha),m(ni)}var vl=o(null),zl=null;function dt(e){var l=e.alternate;N(Ue,Ue.current&1),N(vl,e),zl===null&&(l===null||ha.current!==null||l.memoizedState!==null)&&(zl=e)}function Ju(e){N(Ue,Ue.current),N(vl,e),zl===null&&(zl=e)}function Lr(e){e.tag===22?(N(Ue,Ue.current),N(vl,e),zl===null&&(zl=e)):mt()}function mt(){N(Ue,Ue.current),N(vl,vl.current)}function yl(e){m(vl),zl===e&&(zl=null),m(Ue)}var Ue=o(0);function ii(e){for(var l=e;l!==null;){if(l.tag===13){var t=l.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||es(t)||ls(t)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break;for(;l.sibling===null;){if(l.return===null||l.return===e)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Zl=0,$=null,pe=null,Ge=null,ui=!1,va=!1,Lt=!1,ci=0,en=0,ya=null,eh=0;function Ce(){throw Error(v(321))}function Fu(e,l){if(l===null)return!1;for(var t=0;t<l.length&&t<e.length;t++)if(!ml(e[t],l[t]))return!1;return!0}function Wu(e,l,t,a,n,i){return Zl=i,$=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,j.H=e===null||e.memoizedState===null?Eo:fc,Lt=!1,i=t(a,n),Lt=!1,va&&(i=Zr(l,t,a,n)),wr(e),i}function wr(e){j.H=an;var l=pe!==null&&pe.next!==null;if(Zl=0,Ge=pe=$=null,ui=!1,en=0,ya=null,l)throw Error(v(300));e===null||qe||(e=e.dependencies,e!==null&&$n(e)&&(qe=!0))}function Zr(e,l,t,a){$=e;var n=0;do{if(va&&(ya=null),en=0,va=!1,25<=n)throw Error(v(301));if(n+=1,Ge=pe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}j.H=zo,i=l(t,a)}while(va);return i}function lh(){var e=j.H,l=e.useState()[0];return l=typeof l.then=="function"?ln(l):l,e=e.useState()[0],(pe!==null?pe.memoizedState:null)!==e&&($.flags|=1024),l}function $u(){var e=ci!==0;return ci=0,e}function Iu(e,l,t){l.updateQueue=e.updateQueue,l.flags&=-2053,e.lanes&=~t}function Pu(e){if(ui){for(e=e.memoizedState;e!==null;){var l=e.queue;l!==null&&(l.pending=null),e=e.next}ui=!1}Zl=0,Ge=pe=$=null,va=!1,en=ci=0,ya=null}function el(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?$.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Re(){if(pe===null){var e=$.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var l=Ge===null?$.memoizedState:Ge.next;if(l!==null)Ge=l,pe=e;else{if(e===null)throw $.alternate===null?Error(v(467)):Error(v(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},Ge===null?$.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ln(e){var l=en;return en+=1,ya===null&&(ya=[]),e=Rr(ya,e,l),l=$,(Ge===null?l.memoizedState:Ge.next)===null&&(l=l.alternate,j.H=l===null||l.memoizedState===null?Eo:fc),e}function ri(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ln(e);if(e.$$typeof===F)return Ve(e)}throw Error(v(438,String(e)))}function ec(e){var l=null,t=$.updateQueue;if(t!==null&&(l=t.memoCache),l==null){var a=$.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),t===null&&(t=si(),$.updateQueue=t),t.memoCache=l,t=l.data[l.index],t===void 0)for(t=l.data[l.index]=Array(e),a=0;a<e;a++)t[a]=ll;return l.index++,t}function kl(e,l){return typeof l=="function"?l(e):l}function oi(e){var l=Re();return lc(l,pe,e)}function lc(e,l,t){var a=e.queue;if(a===null)throw Error(v(311));a.lastRenderedReducer=t;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}l.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{l=n.next;var s=c=null,f=null,g=l,T=!1;do{var z=g.lane&-536870913;if(z!==g.lane?(ae&z)===z:(Zl&z)===z){var S=g.revertLane;if(S===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),z===oa&&(T=!0);else if((Zl&S)===S){g=g.next,S===oa&&(T=!0);continue}else z={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},f===null?(s=f=z,c=i):f=f.next=z,$.lanes|=S,yt|=S;z=g.action,Lt&&t(i,z),i=g.hasEagerState?g.eagerState:t(i,z)}else S={lane:z,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},f===null?(s=f=S,c=i):f=f.next=S,$.lanes|=z,yt|=z;g=g.next}while(g!==null&&g!==l);if(f===null?c=i:f.next=s,!ml(i,e.memoizedState)&&(qe=!0,T&&(t=fa,t!==null)))throw t;e.memoizedState=i,e.baseState=c,e.baseQueue=f,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function tc(e){var l=Re(),t=l.queue;if(t===null)throw Error(v(311));t.lastRenderedReducer=e;var a=t.dispatch,n=t.pending,i=l.memoizedState;if(n!==null){t.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);ml(i,l.memoizedState)||(qe=!0),l.memoizedState=i,l.baseQueue===null&&(l.baseState=i),t.lastRenderedState=i}return[i,a]}function kr(e,l,t){var a=$,n=Re(),i=ie;if(i){if(t===void 0)throw Error(v(407));t=t()}else t=l();var c=!ml((pe||n).memoizedState,t);if(c&&(n.memoizedState=t,qe=!0),n=n.queue,ic(Jr.bind(null,a,n,e),[e]),n.getSnapshot!==l||c||Ge!==null&&Ge.memoizedState.tag&1){if(a.flags|=2048,ga(9,{destroy:void 0},Kr.bind(null,a,n,t,l),null),xe===null)throw Error(v(349));i||(Zl&127)!==0||Vr(a,l,t)}return t}function Vr(e,l,t){e.flags|=16384,e={getSnapshot:l,value:t},l=$.updateQueue,l===null?(l=si(),$.updateQueue=l,l.stores=[e]):(t=l.stores,t===null?l.stores=[e]:t.push(e))}function Kr(e,l,t,a){l.value=t,l.getSnapshot=a,Fr(l)&&Wr(e)}function Jr(e,l,t){return t(function(){Fr(l)&&Wr(e)})}function Fr(e){var l=e.getSnapshot;e=e.value;try{var t=l();return!ml(e,t)}catch{return!0}}function Wr(e){var l=Ut(e,2);l!==null&&sl(l,e,2)}function ac(e){var l=el();if(typeof e=="function"){var t=e;if(e=t(),Lt){tt(!0);try{t()}finally{tt(!1)}}}return l.memoizedState=l.baseState=e,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:e},l}function $r(e,l,t,a){return e.baseState=t,lc(e,pe,typeof a=="function"?a:kl)}function th(e,l,t,a,n){if(mi(e))throw Error(v(485));if(e=l.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};j.T!==null?t(!0):i.isTransition=!1,a(i),t=l.pending,t===null?(i.next=l.pending=i,Ir(l,i)):(i.next=t.next,l.pending=t.next=i)}}function Ir(e,l){var t=l.action,a=l.payload,n=e.state;if(l.isTransition){var i=j.T,c={};j.T=c;try{var s=t(n,a),f=j.S;f!==null&&f(c,s),Pr(e,l,s)}catch(g){nc(e,l,g)}finally{i!==null&&c.types!==null&&(i.types=c.types),j.T=i}}else try{i=t(n,a),Pr(e,l,i)}catch(g){nc(e,l,g)}}function Pr(e,l,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(a){eo(e,l,a)},function(a){return nc(e,l,a)}):eo(e,l,t)}function eo(e,l,t){l.status="fulfilled",l.value=t,lo(l),e.state=t,l=e.pending,l!==null&&(t=l.next,t===l?e.pending=null:(t=t.next,l.next=t,Ir(e,t)))}function nc(e,l,t){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=t,lo(l),l=l.next;while(l!==a)}e.action=null}function lo(e){e=e.listeners;for(var l=0;l<e.length;l++)(0,e[l])()}function to(e,l){return l}function ao(e,l){if(ie){var t=xe.formState;if(t!==null){e:{var a=$;if(ie){if(Te){l:{for(var n=Te,i=El;n.nodeType!==8;){if(!i){n=null;break l}if(n=Ml(n.nextSibling),n===null){n=null;break l}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Te=Ml(n.nextSibling),a=n.data==="F!";break e}}ct(a)}a=!1}a&&(l=t[0])}}return t=el(),t.memoizedState=t.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:l},t.queue=a,t=To.bind(null,$,a),a.dispatch=t,a=ac(!1),i=oc.bind(null,$,!1,a.queue),a=el(),n={state:l,dispatch:null,action:e,pending:null},a.queue=n,t=th.bind(null,$,n,i,t),n.dispatch=t,a.memoizedState=e,[l,t,!1]}function no(e){var l=Re();return io(l,pe,e)}function io(e,l,t){if(l=lc(e,l,to)[0],e=oi(kl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=ln(l)}catch(c){throw c===da?ei:c}else a=l;l=Re();var n=l.queue,i=n.dispatch;return t!==l.memoizedState&&($.flags|=2048,ga(9,{destroy:void 0},ah.bind(null,n,t),null)),[a,i,e]}function ah(e,l){e.action=l}function uo(e){var l=Re(),t=pe;if(t!==null)return io(l,t,e);Re(),l=l.memoizedState,t=Re();var a=t.queue.dispatch;return t.memoizedState=e,[l,a,!1]}function ga(e,l,t,a){return e={tag:e,create:t,deps:a,inst:l,next:null},l=$.updateQueue,l===null&&(l=si(),$.updateQueue=l),t=l.lastEffect,t===null?l.lastEffect=e.next=e:(a=t.next,t.next=e,e.next=a,l.lastEffect=e),e}function co(){return Re().memoizedState}function fi(e,l,t,a){var n=el();$.flags|=e,n.memoizedState=ga(1|l,{destroy:void 0},t,a===void 0?null:a)}function di(e,l,t,a){var n=Re();a=a===void 0?null:a;var i=n.memoizedState.inst;pe!==null&&a!==null&&Fu(a,pe.memoizedState.deps)?n.memoizedState=ga(l,i,t,a):($.flags|=e,n.memoizedState=ga(1|l,i,t,a))}function so(e,l){fi(8390656,8,e,l)}function ic(e,l){di(2048,8,e,l)}function nh(e){$.flags|=4;var l=$.updateQueue;if(l===null)l=si(),$.updateQueue=l,l.events=[e];else{var t=l.events;t===null?l.events=[e]:t.push(e)}}function ro(e){var l=Re().memoizedState;return nh({ref:l,nextImpl:e}),function(){if((fe&2)!==0)throw Error(v(440));return l.impl.apply(void 0,arguments)}}function oo(e,l){return di(4,2,e,l)}function fo(e,l){return di(4,4,e,l)}function mo(e,l){if(typeof l=="function"){e=e();var t=l(e);return function(){typeof t=="function"?t():l(null)}}if(l!=null)return e=e(),l.current=e,function(){l.current=null}}function ho(e,l,t){t=t!=null?t.concat([e]):null,di(4,4,mo.bind(null,l,e),t)}function uc(){}function vo(e,l){var t=Re();l=l===void 0?null:l;var a=t.memoizedState;return l!==null&&Fu(l,a[1])?a[0]:(t.memoizedState=[e,l],e)}function yo(e,l){var t=Re();l=l===void 0?null:l;var a=t.memoizedState;if(l!==null&&Fu(l,a[1]))return a[0];if(a=e(),Lt){tt(!0);try{e()}finally{tt(!1)}}return t.memoizedState=[a,l],a}function cc(e,l,t){return t===void 0||(Zl&1073741824)!==0&&(ae&261930)===0?e.memoizedState=l:(e.memoizedState=t,e=pf(),$.lanes|=e,yt|=e,t)}function go(e,l,t,a){return ml(t,l)?t:ha.current!==null?(e=cc(e,t,a),ml(e,l)||(qe=!0),e):(Zl&42)===0||(Zl&1073741824)!==0&&(ae&261930)===0?(qe=!0,e.memoizedState=t):(e=pf(),$.lanes|=e,yt|=e,l)}function po(e,l,t,a,n){var i=_.p;_.p=i!==0&&8>i?i:8;var c=j.T,s={};j.T=s,oc(e,!1,l,t);try{var f=n(),g=j.S;if(g!==null&&g(s,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var T=Pm(f,a);tn(e,l,T,bl(e))}else tn(e,l,a,bl(e))}catch(z){tn(e,l,{then:function(){},status:"rejected",reason:z},bl())}finally{_.p=i,c!==null&&s.types!==null&&(c.types=s.types),j.T=c}}function ih(){}function sc(e,l,t,a){if(e.tag!==5)throw Error(v(476));var n=bo(e).queue;po(e,n,l,b,t===null?ih:function(){return So(e),t(a)})}function bo(e){var l=e.memoizedState;if(l!==null)return l;l={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:b},next:null};var t={};return l.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:t},next:null},e.memoizedState=l,e=e.alternate,e!==null&&(e.memoizedState=l),l}function So(e){var l=bo(e);l.next===null&&(l=e.alternate.memoizedState),tn(e,l.next.queue,{},bl())}function rc(){return Ve(Sn)}function xo(){return Re().memoizedState}function jo(){return Re().memoizedState}function uh(e){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var t=bl();e=ot(t);var a=ft(l,e,t);a!==null&&(sl(a,l,t),$a(a,l,t)),l={cache:qu()},e.payload=l;return}l=l.return}}function ch(e,l,t){var a=bl();t={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},mi(e)?Ao(l,t):(t=zu(e,l,t,a),t!==null&&(sl(t,e,a),No(t,l,a)))}function To(e,l,t){var a=bl();tn(e,l,t,a)}function tn(e,l,t,a){var n={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(mi(e))Ao(l,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=l.lastRenderedReducer,i!==null))try{var c=l.lastRenderedState,s=i(c,t);if(n.hasEagerState=!0,n.eagerState=s,ml(s,c))return Kn(e,l,n,0),xe===null&&Vn(),!1}catch{}finally{}if(t=zu(e,l,n,a),t!==null)return sl(t,e,a),No(t,l,a),!0}return!1}function oc(e,l,t,a){if(a={lane:2,revertLane:Lc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mi(e)){if(l)throw Error(v(479))}else l=zu(e,t,a,2),l!==null&&sl(l,e,2)}function mi(e){var l=e.alternate;return e===$||l!==null&&l===$}function Ao(e,l){va=ui=!0;var t=e.pending;t===null?l.next=l:(l.next=t.next,t.next=l),e.pending=l}function No(e,l,t){if((t&4194048)!==0){var a=l.lanes;a&=e.pendingLanes,t|=a,l.lanes=t,Cs(e,t)}}var an={readContext:Ve,use:ri,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};an.useEffectEvent=Ce;var Eo={readContext:Ve,use:ri,useCallback:function(e,l){return el().memoizedState=[e,l===void 0?null:l],e},useContext:Ve,useEffect:so,useImperativeHandle:function(e,l,t){t=t!=null?t.concat([e]):null,fi(4194308,4,mo.bind(null,l,e),t)},useLayoutEffect:function(e,l){return fi(4194308,4,e,l)},useInsertionEffect:function(e,l){fi(4,2,e,l)},useMemo:function(e,l){var t=el();l=l===void 0?null:l;var a=e();if(Lt){tt(!0);try{e()}finally{tt(!1)}}return t.memoizedState=[a,l],a},useReducer:function(e,l,t){var a=el();if(t!==void 0){var n=t(l);if(Lt){tt(!0);try{t(l)}finally{tt(!1)}}}else n=l;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=ch.bind(null,$,e),[a.memoizedState,e]},useRef:function(e){var l=el();return e={current:e},l.memoizedState=e},useState:function(e){e=ac(e);var l=e.queue,t=To.bind(null,$,l);return l.dispatch=t,[e.memoizedState,t]},useDebugValue:uc,useDeferredValue:function(e,l){var t=el();return cc(t,e,l)},useTransition:function(){var e=ac(!1);return e=po.bind(null,$,e.queue,!0,!1),el().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,l,t){var a=$,n=el();if(ie){if(t===void 0)throw Error(v(407));t=t()}else{if(t=l(),xe===null)throw Error(v(349));(ae&127)!==0||Vr(a,l,t)}n.memoizedState=t;var i={value:t,getSnapshot:l};return n.queue=i,so(Jr.bind(null,a,i,e),[e]),a.flags|=2048,ga(9,{destroy:void 0},Kr.bind(null,a,i,t,l),null),t},useId:function(){var e=el(),l=xe.identifierPrefix;if(ie){var t=Rl,a=Ul;t=(a&~(1<<32-dl(a)-1)).toString(32)+t,l="_"+l+"R_"+t,t=ci++,0<t&&(l+="H"+t.toString(32)),l+="_"}else t=eh++,l="_"+l+"r_"+t.toString(32)+"_";return e.memoizedState=l},useHostTransitionStatus:rc,useFormState:ao,useActionState:ao,useOptimistic:function(e){var l=el();l.memoizedState=l.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=t,l=oc.bind(null,$,!0,t),t.dispatch=l,[e,l]},useMemoCache:ec,useCacheRefresh:function(){return el().memoizedState=uh.bind(null,$)},useEffectEvent:function(e){var l=el(),t={impl:e};return l.memoizedState=t,function(){if((fe&2)!==0)throw Error(v(440));return t.impl.apply(void 0,arguments)}}},fc={readContext:Ve,use:ri,useCallback:vo,useContext:Ve,useEffect:ic,useImperativeHandle:ho,useInsertionEffect:oo,useLayoutEffect:fo,useMemo:yo,useReducer:oi,useRef:co,useState:function(){return oi(kl)},useDebugValue:uc,useDeferredValue:function(e,l){var t=Re();return go(t,pe.memoizedState,e,l)},useTransition:function(){var e=oi(kl)[0],l=Re().memoizedState;return[typeof e=="boolean"?e:ln(e),l]},useSyncExternalStore:kr,useId:xo,useHostTransitionStatus:rc,useFormState:no,useActionState:no,useOptimistic:function(e,l){var t=Re();return $r(t,pe,e,l)},useMemoCache:ec,useCacheRefresh:jo};fc.useEffectEvent=ro;var zo={readContext:Ve,use:ri,useCallback:vo,useContext:Ve,useEffect:ic,useImperativeHandle:ho,useInsertionEffect:oo,useLayoutEffect:fo,useMemo:yo,useReducer:tc,useRef:co,useState:function(){return tc(kl)},useDebugValue:uc,useDeferredValue:function(e,l){var t=Re();return pe===null?cc(t,e,l):go(t,pe.memoizedState,e,l)},useTransition:function(){var e=tc(kl)[0],l=Re().memoizedState;return[typeof e=="boolean"?e:ln(e),l]},useSyncExternalStore:kr,useId:xo,useHostTransitionStatus:rc,useFormState:uo,useActionState:uo,useOptimistic:function(e,l){var t=Re();return pe!==null?$r(t,pe,e,l):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:ec,useCacheRefresh:jo};zo.useEffectEvent=ro;function dc(e,l,t,a){l=e.memoizedState,t=t(a,l),t=t==null?l:H({},l,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var mc={enqueueSetState:function(e,l,t){e=e._reactInternals;var a=bl(),n=ot(a);n.payload=l,t!=null&&(n.callback=t),l=ft(e,n,a),l!==null&&(sl(l,e,a),$a(l,e,a))},enqueueReplaceState:function(e,l,t){e=e._reactInternals;var a=bl(),n=ot(a);n.tag=1,n.payload=l,t!=null&&(n.callback=t),l=ft(e,n,a),l!==null&&(sl(l,e,a),$a(l,e,a))},enqueueForceUpdate:function(e,l){e=e._reactInternals;var t=bl(),a=ot(t);a.tag=2,l!=null&&(a.callback=l),l=ft(e,a,t),l!==null&&(sl(l,e,t),$a(l,e,t))}};function Mo(e,l,t,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):l.prototype&&l.prototype.isPureReactComponent?!wa(t,a)||!wa(n,i):!0}function Co(e,l,t,a){e=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(t,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(t,a),l.state!==e&&mc.enqueueReplaceState(l,l.state,null)}function wt(e,l){var t=l;if("ref"in l){t={};for(var a in l)a!=="ref"&&(t[a]=l[a])}if(e=e.defaultProps){t===l&&(t=H({},t));for(var n in e)t[n]===void 0&&(t[n]=e[n])}return t}function Oo(e){kn(e)}function _o(e){console.error(e)}function Do(e){kn(e)}function hi(e,l){try{var t=e.onUncaughtError;t(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function Uo(e,l,t){try{var a=e.onCaughtError;a(t.value,{componentStack:t.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function hc(e,l,t){return t=ot(t),t.tag=3,t.payload={element:null},t.callback=function(){hi(e,l)},t}function Ro(e){return e=ot(e),e.tag=3,e}function Bo(e,l,t,a){var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Uo(l,t,a)}}var c=t.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Uo(l,t,a),typeof n!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function sh(e,l,t,a,n){if(t.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=t.alternate,l!==null&&ra(l,t,n,!0),t=vl.current,t!==null){switch(t.tag){case 31:case 13:return zl===null?Ei():t.alternate===null&&Oe===0&&(Oe=3),t.flags&=-257,t.flags|=65536,t.lanes=n,a===li?t.flags|=16384:(l=t.updateQueue,l===null?t.updateQueue=new Set([a]):l.add(a),Yc(e,a,n)),!1;case 22:return t.flags|=65536,a===li?t.flags|=16384:(l=t.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},t.updateQueue=l):(t=l.retryQueue,t===null?l.retryQueue=new Set([a]):t.add(a)),Yc(e,a,n)),!1}throw Error(v(435,t.tag))}return Yc(e,a,n),Ei(),!1}if(ie)return l=vl.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==Uu&&(e=Error(v(422),{cause:a}),Va(Tl(e,t)))):(a!==Uu&&(l=Error(v(423),{cause:a}),Va(Tl(l,t))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Tl(a,t),n=hc(e.stateNode,a,n),Zu(e,n),Oe!==4&&(Oe=2)),!1;var i=Error(v(520),{cause:a});if(i=Tl(i,t),dn===null?dn=[i]:dn.push(i),Oe!==4&&(Oe=2),l===null)return!0;a=Tl(a,t),t=l;do{switch(t.tag){case 3:return t.flags|=65536,e=n&-n,t.lanes|=e,e=hc(t.stateNode,a,e),Zu(t,e),!1;case 1:if(l=t.type,i=t.stateNode,(t.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(gt===null||!gt.has(i))))return t.flags|=65536,n&=-n,t.lanes|=n,n=Ro(n),Bo(n,e,t,a),Zu(t,n),!1}t=t.return}while(t!==null);return!1}var vc=Error(v(461)),qe=!1;function Ke(e,l,t,a){l.child=e===null?qr(l,null,t,a):Qt(l,e.child,t,a)}function Ho(e,l,t,a,n){t=t.render;var i=l.ref;if("ref"in a){var c={};for(var s in a)s!=="ref"&&(c[s]=a[s])}else c=a;return Gt(l),a=Wu(e,l,t,c,i,n),s=$u(),e!==null&&!qe?(Iu(e,l,n),Vl(e,l,n)):(ie&&s&&_u(l),l.flags|=1,Ke(e,l,a,n),l.child)}function Go(e,l,t,a,n){if(e===null){var i=t.type;return typeof i=="function"&&!Mu(i)&&i.defaultProps===void 0&&t.compare===null?(l.tag=15,l.type=i,qo(e,l,i,a,n)):(e=Fn(t.type,null,a,l,l.mode,n),e.ref=l.ref,e.return=l,l.child=e)}if(i=e.child,!Tc(e,n)){var c=i.memoizedProps;if(t=t.compare,t=t!==null?t:wa,t(c,a)&&e.ref===l.ref)return Vl(e,l,n)}return l.flags|=1,e=Xl(i,a),e.ref=l.ref,e.return=l,l.child=e}function qo(e,l,t,a,n){if(e!==null){var i=e.memoizedProps;if(wa(i,a)&&e.ref===l.ref)if(qe=!1,l.pendingProps=a=i,Tc(e,n))(e.flags&131072)!==0&&(qe=!0);else return l.lanes=e.lanes,Vl(e,l,n)}return yc(e,l,t,a,n)}function Yo(e,l,t,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(i=i!==null?i.baseLanes|t:t,e!==null){for(a=l.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,l.child=null;return Xo(e,l,i,t,a)}if((t&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pn(l,i!==null?i.cachePool:null),i!==null?Qr(l,i):Vu(),Lr(l);else return a=l.lanes=536870912,Xo(e,l,i!==null?i.baseLanes|t:t,t,a)}else i!==null?(Pn(l,i.cachePool),Qr(l,i),mt(),l.memoizedState=null):(e!==null&&Pn(l,null),Vu(),mt());return Ke(e,l,n,t),l.child}function nn(e,l){return e!==null&&e.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Xo(e,l,t,a,n){var i=Xu();return i=i===null?null:{parent:He._currentValue,pool:i},l.memoizedState={baseLanes:t,cachePool:i},e!==null&&Pn(l,null),Vu(),Lr(l),e!==null&&ra(e,l,a,!0),l.childLanes=n,null}function vi(e,l){return l=gi({mode:l.mode,children:l.children},e.mode),l.ref=e.ref,e.child=l,l.return=e,l}function Qo(e,l,t){return Qt(l,e.child,null,t),e=vi(l,l.pendingProps),e.flags|=2,yl(l),l.memoizedState=null,e}function rh(e,l,t){var a=l.pendingProps,n=(l.flags&128)!==0;if(l.flags&=-129,e===null){if(ie){if(a.mode==="hidden")return e=vi(l,a),l.lanes=536870912,nn(null,e);if(Ju(l),(e=Te)?(e=ed(e,El),e=e!==null&&e.data==="&"?e:null,e!==null&&(l.memoizedState={dehydrated:e,treeContext:it!==null?{id:Ul,overflow:Rl}:null,retryLane:536870912,hydrationErrors:null},t=Tr(e),t.return=l,l.child=t,ke=l,Te=null)):e=null,e===null)throw ct(l);return l.lanes=536870912,null}return vi(l,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Ju(l),n)if(l.flags&256)l.flags&=-257,l=Qo(e,l,t);else if(l.memoizedState!==null)l.child=e.child,l.flags|=128,l=null;else throw Error(v(558));else if(qe||ra(e,l,t,!1),n=(t&e.childLanes)!==0,qe||n){if(a=xe,a!==null&&(c=Os(a,t),c!==0&&c!==i.retryLane))throw i.retryLane=c,Ut(e,c),sl(a,e,c),vc;Ei(),l=Qo(e,l,t)}else e=i.treeContext,Te=Ml(c.nextSibling),ke=l,ie=!0,ut=null,El=!1,e!==null&&Er(l,e),l=vi(l,a),l.flags|=4096;return l}return e=Xl(e.child,{mode:a.mode,children:a.children}),e.ref=l.ref,l.child=e,e.return=l,e}function yi(e,l){var t=l.ref;if(t===null)e!==null&&e.ref!==null&&(l.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(v(284));(e===null||e.ref!==t)&&(l.flags|=4194816)}}function yc(e,l,t,a,n){return Gt(l),t=Wu(e,l,t,a,void 0,n),a=$u(),e!==null&&!qe?(Iu(e,l,n),Vl(e,l,n)):(ie&&a&&_u(l),l.flags|=1,Ke(e,l,t,n),l.child)}function Lo(e,l,t,a,n,i){return Gt(l),l.updateQueue=null,t=Zr(l,a,t,n),wr(e),a=$u(),e!==null&&!qe?(Iu(e,l,i),Vl(e,l,i)):(ie&&a&&_u(l),l.flags|=1,Ke(e,l,t,i),l.child)}function wo(e,l,t,a,n){if(Gt(l),l.stateNode===null){var i=ia,c=t.contextType;typeof c=="object"&&c!==null&&(i=Ve(c)),i=new t(a,i),l.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=mc,l.stateNode=i,i._reactInternals=l,i=l.stateNode,i.props=a,i.state=l.memoizedState,i.refs={},Lu(l),c=t.contextType,i.context=typeof c=="object"&&c!==null?Ve(c):ia,i.state=l.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(dc(l,t,c,a),i.state=l.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&mc.enqueueReplaceState(i,i.state,null),Pa(l,a,i,n),Ia(),i.state=l.memoizedState),typeof i.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(e===null){i=l.stateNode;var s=l.memoizedProps,f=wt(t,s);i.props=f;var g=i.context,T=t.contextType;c=ia,typeof T=="object"&&T!==null&&(c=Ve(T));var z=t.getDerivedStateFromProps;T=typeof z=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=l.pendingProps!==s,T||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||g!==c)&&Co(l,i,a,c),rt=!1;var S=l.memoizedState;i.state=S,Pa(l,a,i,n),Ia(),g=l.memoizedState,s||S!==g||rt?(typeof z=="function"&&(dc(l,t,z,a),g=l.memoizedState),(f=rt||Mo(l,t,f,a,S,g,c))?(T||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(l.flags|=4194308)):(typeof i.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=g),i.props=a,i.state=g,i.context=c,a=f):(typeof i.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{i=l.stateNode,wu(e,l),c=l.memoizedProps,T=wt(t,c),i.props=T,z=l.pendingProps,S=i.context,g=t.contextType,f=ia,typeof g=="object"&&g!==null&&(f=Ve(g)),s=t.getDerivedStateFromProps,(g=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==z||S!==f)&&Co(l,i,a,f),rt=!1,S=l.memoizedState,i.state=S,Pa(l,a,i,n),Ia();var x=l.memoizedState;c!==z||S!==x||rt||e!==null&&e.dependencies!==null&&$n(e.dependencies)?(typeof s=="function"&&(dc(l,t,s,a),x=l.memoizedState),(T=rt||Mo(l,t,T,a,S,x,f)||e!==null&&e.dependencies!==null&&$n(e.dependencies))?(g||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,x,f),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,x,f)),typeof i.componentDidUpdate=="function"&&(l.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=x),i.props=a,i.state=x,i.context=f,a=T):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=1024),a=!1)}return i=a,yi(e,l),a=(l.flags&128)!==0,i||a?(i=l.stateNode,t=a&&typeof t.getDerivedStateFromError!="function"?null:i.render(),l.flags|=1,e!==null&&a?(l.child=Qt(l,e.child,null,n),l.child=Qt(l,null,t,n)):Ke(e,l,t,n),l.memoizedState=i.state,e=l.child):e=Vl(e,l,n),e}function Zo(e,l,t,a){return Bt(),l.flags|=256,Ke(e,l,t,a),l.child}var gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(e){return{baseLanes:e,cachePool:Dr()}}function bc(e,l,t){return e=e!==null?e.childLanes&~t:0,l&&(e|=pl),e}function ko(e,l,t){var a=l.pendingProps,n=!1,i=(l.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),c&&(n=!0,l.flags&=-129),c=(l.flags&32)!==0,l.flags&=-33,e===null){if(ie){if(n?dt(l):mt(),(e=Te)?(e=ed(e,El),e=e!==null&&e.data!=="&"?e:null,e!==null&&(l.memoizedState={dehydrated:e,treeContext:it!==null?{id:Ul,overflow:Rl}:null,retryLane:536870912,hydrationErrors:null},t=Tr(e),t.return=l,l.child=t,ke=l,Te=null)):e=null,e===null)throw ct(l);return ls(e)?l.lanes=32:l.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(mt(),n=l.mode,s=gi({mode:"hidden",children:s},n),a=Rt(a,n,t,null),s.return=l,a.return=l,s.sibling=a,l.child=s,a=l.child,a.memoizedState=pc(t),a.childLanes=bc(e,c,t),l.memoizedState=gc,nn(null,a)):(dt(l),Sc(l,s))}var f=e.memoizedState;if(f!==null&&(s=f.dehydrated,s!==null)){if(i)l.flags&256?(dt(l),l.flags&=-257,l=xc(e,l,t)):l.memoizedState!==null?(mt(),l.child=e.child,l.flags|=128,l=null):(mt(),s=a.fallback,n=l.mode,a=gi({mode:"visible",children:a.children},n),s=Rt(s,n,t,null),s.flags|=2,a.return=l,s.return=l,a.sibling=s,l.child=a,Qt(l,e.child,null,t),a=l.child,a.memoizedState=pc(t),a.childLanes=bc(e,c,t),l.memoizedState=gc,l=nn(null,a));else if(dt(l),ls(s)){if(c=s.nextSibling&&s.nextSibling.dataset,c)var g=c.dgst;c=g,a=Error(v(419)),a.stack="",a.digest=c,Va({value:a,source:null,stack:null}),l=xc(e,l,t)}else if(qe||ra(e,l,t,!1),c=(t&e.childLanes)!==0,qe||c){if(c=xe,c!==null&&(a=Os(c,t),a!==0&&a!==f.retryLane))throw f.retryLane=a,Ut(e,a),sl(c,e,a),vc;es(s)||Ei(),l=xc(e,l,t)}else es(s)?(l.flags|=192,l.child=e.child,l=null):(e=f.treeContext,Te=Ml(s.nextSibling),ke=l,ie=!0,ut=null,El=!1,e!==null&&Er(l,e),l=Sc(l,a.children),l.flags|=4096);return l}return n?(mt(),s=a.fallback,n=l.mode,f=e.child,g=f.sibling,a=Xl(f,{mode:"hidden",children:a.children}),a.subtreeFlags=f.subtreeFlags&65011712,g!==null?s=Xl(g,s):(s=Rt(s,n,t,null),s.flags|=2),s.return=l,a.return=l,a.sibling=s,l.child=a,nn(null,a),a=l.child,s=e.child.memoizedState,s===null?s=pc(t):(n=s.cachePool,n!==null?(f=He._currentValue,n=n.parent!==f?{parent:f,pool:f}:n):n=Dr(),s={baseLanes:s.baseLanes|t,cachePool:n}),a.memoizedState=s,a.childLanes=bc(e,c,t),l.memoizedState=gc,nn(e.child,a)):(dt(l),t=e.child,e=t.sibling,t=Xl(t,{mode:"visible",children:a.children}),t.return=l,t.sibling=null,e!==null&&(c=l.deletions,c===null?(l.deletions=[e],l.flags|=16):c.push(e)),l.child=t,l.memoizedState=null,t)}function Sc(e,l){return l=gi({mode:"visible",children:l},e.mode),l.return=e,e.child=l}function gi(e,l){return e=hl(22,e,null,l),e.lanes=0,e}function xc(e,l,t){return Qt(l,e.child,null,t),e=Sc(l,l.pendingProps.children),e.flags|=2,l.memoizedState=null,e}function Vo(e,l,t){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l),Hu(e.return,l,t)}function jc(e,l,t,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:t,tailMode:n,treeForkCount:i}:(c.isBackwards=l,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=t,c.tailMode=n,c.treeForkCount=i)}function Ko(e,l,t){var a=l.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Ue.current,s=(c&2)!==0;if(s?(c=c&1|2,l.flags|=128):c&=1,N(Ue,c),Ke(e,l,a,t),a=ie?ka:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=l.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vo(e,t,l);else if(e.tag===19)Vo(e,t,l);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===l)break e;for(;e.sibling===null;){if(e.return===null||e.return===l)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(t=l.child,n=null;t!==null;)e=t.alternate,e!==null&&ii(e)===null&&(n=t),t=t.sibling;t=n,t===null?(n=l.child,l.child=null):(n=t.sibling,t.sibling=null),jc(l,!1,n,t,i,a);break;case"backwards":case"unstable_legacy-backwards":for(t=null,n=l.child,l.child=null;n!==null;){if(e=n.alternate,e!==null&&ii(e)===null){l.child=n;break}e=n.sibling,n.sibling=t,t=n,n=e}jc(l,!0,t,null,i,a);break;case"together":jc(l,!1,null,null,void 0,a);break;default:l.memoizedState=null}return l.child}function Vl(e,l,t){if(e!==null&&(l.dependencies=e.dependencies),yt|=l.lanes,(t&l.childLanes)===0)if(e!==null){if(ra(e,l,t,!1),(t&l.childLanes)===0)return null}else return null;if(e!==null&&l.child!==e.child)throw Error(v(153));if(l.child!==null){for(e=l.child,t=Xl(e,e.pendingProps),l.child=t,t.return=l;e.sibling!==null;)e=e.sibling,t=t.sibling=Xl(e,e.pendingProps),t.return=l;t.sibling=null}return l.child}function Tc(e,l){return(e.lanes&l)!==0?!0:(e=e.dependencies,!!(e!==null&&$n(e)))}function oh(e,l,t){switch(l.tag){case 3:Pe(l,l.stateNode.containerInfo),st(l,He,e.memoizedState.cache),Bt();break;case 27:case 5:Oa(l);break;case 4:Pe(l,l.stateNode.containerInfo);break;case 10:st(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Ju(l),null;break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(dt(l),l.flags|=128,null):(t&l.child.childLanes)!==0?ko(e,l,t):(dt(l),e=Vl(e,l,t),e!==null?e.sibling:null);dt(l);break;case 19:var n=(e.flags&128)!==0;if(a=(t&l.childLanes)!==0,a||(ra(e,l,t,!1),a=(t&l.childLanes)!==0),n){if(a)return Ko(e,l,t);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),N(Ue,Ue.current),a)break;return null;case 22:return l.lanes=0,Yo(e,l,t,l.pendingProps);case 24:st(l,He,e.memoizedState.cache)}return Vl(e,l,t)}function Jo(e,l,t){if(e!==null)if(e.memoizedProps!==l.pendingProps)qe=!0;else{if(!Tc(e,t)&&(l.flags&128)===0)return qe=!1,oh(e,l,t);qe=(e.flags&131072)!==0}else qe=!1,ie&&(l.flags&1048576)!==0&&Nr(l,ka,l.index);switch(l.lanes=0,l.tag){case 16:e:{var a=l.pendingProps;if(e=Yt(l.elementType),l.type=e,typeof e=="function")Mu(e)?(a=wt(e,a),l.tag=1,l=wo(null,l,e,a,t)):(l.tag=0,l=yc(null,l,e,a,t));else{if(e!=null){var n=e.$$typeof;if(n===ce){l.tag=11,l=Ho(null,l,e,a,t);break e}else if(n===Q){l.tag=14,l=Go(null,l,e,a,t);break e}}throw l=rl(e)||e,Error(v(306,l,""))}}return l;case 0:return yc(e,l,l.type,l.pendingProps,t);case 1:return a=l.type,n=wt(a,l.pendingProps),wo(e,l,a,n,t);case 3:e:{if(Pe(l,l.stateNode.containerInfo),e===null)throw Error(v(387));a=l.pendingProps;var i=l.memoizedState;n=i.element,wu(e,l),Pa(l,a,null,t);var c=l.memoizedState;if(a=c.cache,st(l,He,a),a!==i.cache&&Gu(l,[He],t,!0),Ia(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},l.updateQueue.baseState=i,l.memoizedState=i,l.flags&256){l=Zo(e,l,a,t);break e}else if(a!==n){n=Tl(Error(v(424)),l),Va(n),l=Zo(e,l,a,t);break e}else{switch(e=l.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Te=Ml(e.firstChild),ke=l,ie=!0,ut=null,El=!0,t=qr(l,null,a,t),l.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(Bt(),a===n){l=Vl(e,l,t);break e}Ke(e,l,a,t)}l=l.child}return l;case 26:return yi(e,l),e===null?(t=ud(l.type,null,l.pendingProps,null))?l.memoizedState=t:ie||(t=l.type,e=l.pendingProps,a=Ui(D.current).createElement(t),a[Ze]=l,a[tl]=e,Je(a,t,e),Le(a),l.stateNode=a):l.memoizedState=ud(l.type,e.memoizedProps,l.pendingProps,e.memoizedState),null;case 27:return Oa(l),e===null&&ie&&(a=l.stateNode=ad(l.type,l.pendingProps,D.current),ke=l,El=!0,n=Te,xt(l.type)?(ts=n,Te=Ml(a.firstChild)):Te=n),Ke(e,l,l.pendingProps.children,t),yi(e,l),e===null&&(l.flags|=4194304),l.child;case 5:return e===null&&ie&&((n=a=Te)&&(a=Xh(a,l.type,l.pendingProps,El),a!==null?(l.stateNode=a,ke=l,Te=Ml(a.firstChild),El=!1,n=!0):n=!1),n||ct(l)),Oa(l),n=l.type,i=l.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,$c(n,i)?a=null:c!==null&&$c(n,c)&&(l.flags|=32),l.memoizedState!==null&&(n=Wu(e,l,lh,null,null,t),Sn._currentValue=n),yi(e,l),Ke(e,l,a,t),l.child;case 6:return e===null&&ie&&((e=t=Te)&&(t=Qh(t,l.pendingProps,El),t!==null?(l.stateNode=t,ke=l,Te=null,e=!0):e=!1),e||ct(l)),null;case 13:return ko(e,l,t);case 4:return Pe(l,l.stateNode.containerInfo),a=l.pendingProps,e===null?l.child=Qt(l,null,a,t):Ke(e,l,a,t),l.child;case 11:return Ho(e,l,l.type,l.pendingProps,t);case 7:return Ke(e,l,l.pendingProps,t),l.child;case 8:return Ke(e,l,l.pendingProps.children,t),l.child;case 12:return Ke(e,l,l.pendingProps.children,t),l.child;case 10:return a=l.pendingProps,st(l,l.type,a.value),Ke(e,l,a.children,t),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,Gt(l),n=Ve(n),a=a(n),l.flags|=1,Ke(e,l,a,t),l.child;case 14:return Go(e,l,l.type,l.pendingProps,t);case 15:return qo(e,l,l.type,l.pendingProps,t);case 19:return Ko(e,l,t);case 31:return rh(e,l,t);case 22:return Yo(e,l,t,l.pendingProps);case 24:return Gt(l),a=Ve(He),e===null?(n=Xu(),n===null&&(n=xe,i=qu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=t),n=i),l.memoizedState={parent:a,cache:n},Lu(l),st(l,He,n)):((e.lanes&t)!==0&&(wu(e,l),Pa(l,null,null,t),Ia()),n=e.memoizedState,i=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),st(l,He,a)):(a=i.cache,st(l,He,a),a!==n.cache&&Gu(l,[He],t,!0))),Ke(e,l,l.pendingProps.children,t),l.child;case 29:throw l.pendingProps}throw Error(v(156,l.tag))}function Kl(e){e.flags|=4}function Ac(e,l,t,a,n){if((l=(e.mode&32)!==0)&&(l=!1),l){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(jf())e.flags|=8192;else throw Xt=li,Qu}else e.flags&=-16777217}function Fo(e,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fd(l))if(jf())e.flags|=8192;else throw Xt=li,Qu}function pi(e,l){l!==null&&(e.flags|=4),e.flags&16384&&(l=e.tag!==22?zs():536870912,e.lanes|=l,xa|=l)}function un(e,l){if(!ie)switch(e.tailMode){case"hidden":l=e.tail;for(var t=null;l!==null;)l.alternate!==null&&(t=l),l=l.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?l||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ae(e){var l=e.alternate!==null&&e.alternate.child===e.child,t=0,a=0;if(l)for(var n=e.child;n!==null;)t|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)t|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=t,l}function fh(e,l,t){var a=l.pendingProps;switch(Du(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(l),null;case 1:return Ae(l),null;case 3:return t=l.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),wl(He),De(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(e===null||e.child===null)&&(sa(l)?Kl(l):e===null||e.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Ru())),Ae(l),null;case 26:var n=l.type,i=l.memoizedState;return e===null?(Kl(l),i!==null?(Ae(l),Fo(l,i)):(Ae(l),Ac(l,n,null,a,t))):i?i!==e.memoizedState?(Kl(l),Ae(l),Fo(l,i)):(Ae(l),l.flags&=-16777217):(e=e.memoizedProps,e!==a&&Kl(l),Ae(l),Ac(l,n,e,a,t)),null;case 27:if(Cn(l),t=D.current,n=l.type,e!==null&&l.stateNode!=null)e.memoizedProps!==a&&Kl(l);else{if(!a){if(l.stateNode===null)throw Error(v(166));return Ae(l),null}e=C.current,sa(l)?zr(l):(e=ad(n,a,t),l.stateNode=e,Kl(l))}return Ae(l),null;case 5:if(Cn(l),n=l.type,e!==null&&l.stateNode!=null)e.memoizedProps!==a&&Kl(l);else{if(!a){if(l.stateNode===null)throw Error(v(166));return Ae(l),null}if(i=C.current,sa(l))zr(l);else{var c=Ui(D.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Ze]=l,i[tl]=a;e:for(c=l.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}l.stateNode=i;e:switch(Je(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Kl(l)}}return Ae(l),Ac(l,l.type,e===null?null:e.memoizedProps,l.pendingProps,t),null;case 6:if(e&&l.stateNode!=null)e.memoizedProps!==a&&Kl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(v(166));if(e=D.current,sa(l)){if(e=l.stateNode,t=l.memoizedProps,a=null,n=ke,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ze]=l,e=!!(e.nodeValue===t||a!==null&&a.suppressHydrationWarning===!0||Vf(e.nodeValue,t)),e||ct(l,!0)}else e=Ui(e).createTextNode(a),e[Ze]=l,l.stateNode=e}return Ae(l),null;case 31:if(t=l.memoizedState,e===null||e.memoizedState!==null){if(a=sa(l),t!==null){if(e===null){if(!a)throw Error(v(318));if(e=l.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(v(557));e[Ze]=l}else Bt(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Ae(l),e=!1}else t=Ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return l.flags&256?(yl(l),l):(yl(l),null);if((l.flags&128)!==0)throw Error(v(558))}return Ae(l),null;case 13:if(a=l.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=sa(l),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(v(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(v(317));n[Ze]=l}else Bt(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Ae(l),n=!1}else n=Ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(yl(l),l):(yl(l),null)}return yl(l),(l.flags&128)!==0?(l.lanes=t,l):(t=a!==null,e=e!==null&&e.memoizedState!==null,t&&(a=l.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),t!==e&&t&&(l.child.flags|=8192),pi(l,l.updateQueue),Ae(l),null);case 4:return De(),e===null&&Vc(l.stateNode.containerInfo),Ae(l),null;case 10:return wl(l.type),Ae(l),null;case 19:if(m(Ue),a=l.memoizedState,a===null)return Ae(l),null;if(n=(l.flags&128)!==0,i=a.rendering,i===null)if(n)un(a,!1);else{if(Oe!==0||e!==null&&(e.flags&128)!==0)for(e=l.child;e!==null;){if(i=ii(e),i!==null){for(l.flags|=128,un(a,!1),e=i.updateQueue,l.updateQueue=e,pi(l,e),l.subtreeFlags=0,e=t,t=l.child;t!==null;)jr(t,e),t=t.sibling;return N(Ue,Ue.current&1|2),ie&&Ql(l,a.treeForkCount),l.child}e=e.sibling}a.tail!==null&&ol()>Ti&&(l.flags|=128,n=!0,un(a,!1),l.lanes=4194304)}else{if(!n)if(e=ii(i),e!==null){if(l.flags|=128,n=!0,e=e.updateQueue,l.updateQueue=e,pi(l,e),un(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ie)return Ae(l),null}else 2*ol()-a.renderingStartTime>Ti&&t!==536870912&&(l.flags|=128,n=!0,un(a,!1),l.lanes=4194304);a.isBackwards?(i.sibling=l.child,l.child=i):(e=a.last,e!==null?e.sibling=i:l.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ol(),e.sibling=null,t=Ue.current,N(Ue,n?t&1|2:t&1),ie&&Ql(l,a.treeForkCount),e):(Ae(l),null);case 22:case 23:return yl(l),Ku(),a=l.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(t&536870912)!==0&&(l.flags&128)===0&&(Ae(l),l.subtreeFlags&6&&(l.flags|=8192)):Ae(l),t=l.updateQueue,t!==null&&pi(l,t.retryQueue),t=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==t&&(l.flags|=2048),e!==null&&m(qt),null;case 24:return t=null,e!==null&&(t=e.memoizedState.cache),l.memoizedState.cache!==t&&(l.flags|=2048),wl(He),Ae(l),null;case 25:return null;case 30:return null}throw Error(v(156,l.tag))}function dh(e,l){switch(Du(l),l.tag){case 1:return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 3:return wl(He),De(),e=l.flags,(e&65536)!==0&&(e&128)===0?(l.flags=e&-65537|128,l):null;case 26:case 27:case 5:return Cn(l),null;case 31:if(l.memoizedState!==null){if(yl(l),l.alternate===null)throw Error(v(340));Bt()}return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 13:if(yl(l),e=l.memoizedState,e!==null&&e.dehydrated!==null){if(l.alternate===null)throw Error(v(340));Bt()}return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 19:return m(Ue),null;case 4:return De(),null;case 10:return wl(l.type),null;case 22:case 23:return yl(l),Ku(),e!==null&&m(qt),e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 24:return wl(He),null;case 25:return null;default:return null}}function Wo(e,l){switch(Du(l),l.tag){case 3:wl(He),De();break;case 26:case 27:case 5:Cn(l);break;case 4:De();break;case 31:l.memoizedState!==null&&yl(l);break;case 13:yl(l);break;case 19:m(Ue);break;case 10:wl(l.type);break;case 22:case 23:yl(l),Ku(),e!==null&&m(qt);break;case 24:wl(He)}}function cn(e,l){try{var t=l.updateQueue,a=t!==null?t.lastEffect:null;if(a!==null){var n=a.next;t=n;do{if((t.tag&e)===e){a=void 0;var i=t.create,c=t.inst;a=i(),c.destroy=a}t=t.next}while(t!==n)}}catch(s){ye(l,l.return,s)}}function ht(e,l,t){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,s=c.destroy;if(s!==void 0){c.destroy=void 0,n=l;var f=t,g=s;try{g()}catch(T){ye(n,f,T)}}}a=a.next}while(a!==i)}}catch(T){ye(l,l.return,T)}}function $o(e){var l=e.updateQueue;if(l!==null){var t=e.stateNode;try{Xr(l,t)}catch(a){ye(e,e.return,a)}}}function Io(e,l,t){t.props=wt(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(a){ye(e,l,a)}}function sn(e,l){try{var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof t=="function"?e.refCleanup=t(a):t.current=a}}catch(n){ye(e,l,n)}}function Bl(e,l){var t=e.ref,a=e.refCleanup;if(t!==null)if(typeof a=="function")try{a()}catch(n){ye(e,l,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(n){ye(e,l,n)}else t.current=null}function Po(e){var l=e.type,t=e.memoizedProps,a=e.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":t.autoFocus&&a.focus();break e;case"img":t.src?a.src=t.src:t.srcSet&&(a.srcset=t.srcSet)}}catch(n){ye(e,e.return,n)}}function Nc(e,l,t){try{var a=e.stateNode;Rh(a,e.type,t,l),a[tl]=l}catch(n){ye(e,e.return,n)}}function ef(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xt(e.type)||e.tag===4}function Ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ef(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&&xt(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 zc(e,l,t){var a=e.tag;if(a===5||a===6)e=e.stateNode,l?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(e,l):(l=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.appendChild(e),t=t._reactRootContainer,t!=null||l.onclick!==null||(l.onclick=ql));else if(a!==4&&(a===27&&xt(e.type)&&(t=e.stateNode,l=null),e=e.child,e!==null))for(zc(e,l,t),e=e.sibling;e!==null;)zc(e,l,t),e=e.sibling}function bi(e,l,t){var a=e.tag;if(a===5||a===6)e=e.stateNode,l?t.insertBefore(e,l):t.appendChild(e);else if(a!==4&&(a===27&&xt(e.type)&&(t=e.stateNode),e=e.child,e!==null))for(bi(e,l,t),e=e.sibling;e!==null;)bi(e,l,t),e=e.sibling}function lf(e){var l=e.stateNode,t=e.memoizedProps;try{for(var a=e.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);Je(l,a,t),l[Ze]=e,l[tl]=t}catch(i){ye(e,e.return,i)}}var Jl=!1,Ye=!1,Mc=!1,tf=typeof WeakSet=="function"?WeakSet:Set,we=null;function mh(e,l){if(e=e.containerInfo,Fc=Xi,e=mr(e),xu(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var a=t.getSelection&&t.getSelection();if(a&&a.rangeCount!==0){t=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var c=0,s=-1,f=-1,g=0,T=0,z=e,S=null;l:for(;;){for(var x;z!==t||n!==0&&z.nodeType!==3||(s=c+n),z!==i||a!==0&&z.nodeType!==3||(f=c+a),z.nodeType===3&&(c+=z.nodeValue.length),(x=z.firstChild)!==null;)S=z,z=x;for(;;){if(z===e)break l;if(S===t&&++g===n&&(s=c),S===i&&++T===a&&(f=c),(x=z.nextSibling)!==null)break;z=S,S=z.parentNode}z=x}t=s===-1||f===-1?null:{start:s,end:f}}else t=null}t=t||{start:0,end:0}}else t=null;for(Wc={focusedElem:e,selectionRange:t},Xi=!1,we=l;we!==null;)if(l=we,e=l.child,(l.subtreeFlags&1028)!==0&&e!==null)e.return=l,we=e;else for(;we!==null;){switch(l=we,i=l.alternate,e=l.flags,l.tag){case 0:if((e&4)!==0&&(e=l.updateQueue,e=e!==null?e.events:null,e!==null))for(t=0;t<e.length;t++)n=e[t],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,t=l,n=i.memoizedProps,i=i.memoizedState,a=t.stateNode;try{var q=wt(t.type,n);e=a.getSnapshotBeforeUpdate(q,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(Z){ye(t,t.return,Z)}}break;case 3:if((e&1024)!==0){if(e=l.stateNode.containerInfo,t=e.nodeType,t===9)Pc(e);else if(t===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pc(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(v(163))}if(e=l.sibling,e!==null){e.return=l.return,we=e;break}we=l.return}}function af(e,l,t){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Wl(e,t),a&4&&cn(5,t);break;case 1:if(Wl(e,t),a&4)if(e=t.stateNode,l===null)try{e.componentDidMount()}catch(c){ye(t,t.return,c)}else{var n=wt(t.type,l.memoizedProps);l=l.memoizedState;try{e.componentDidUpdate(n,l,e.__reactInternalSnapshotBeforeUpdate)}catch(c){ye(t,t.return,c)}}a&64&&$o(t),a&512&&sn(t,t.return);break;case 3:if(Wl(e,t),a&64&&(e=t.updateQueue,e!==null)){if(l=null,t.child!==null)switch(t.child.tag){case 27:case 5:l=t.child.stateNode;break;case 1:l=t.child.stateNode}try{Xr(e,l)}catch(c){ye(t,t.return,c)}}break;case 27:l===null&&a&4&&lf(t);case 26:case 5:Wl(e,t),l===null&&a&4&&Po(t),a&512&&sn(t,t.return);break;case 12:Wl(e,t);break;case 31:Wl(e,t),a&4&&cf(e,t);break;case 13:Wl(e,t),a&4&&sf(e,t),a&64&&(e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(t=jh.bind(null,t),Lh(e,t))));break;case 22:if(a=t.memoizedState!==null||Jl,!a){l=l!==null&&l.memoizedState!==null||Ye,n=Jl;var i=Ye;Jl=a,(Ye=l)&&!i?$l(e,t,(t.subtreeFlags&8772)!==0):Wl(e,t),Jl=n,Ye=i}break;case 30:break;default:Wl(e,t)}}function nf(e){var l=e.alternate;l!==null&&(e.alternate=null,nf(l)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(l=e.stateNode,l!==null&&nu(l)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ne=null,nl=!1;function Fl(e,l,t){for(t=t.child;t!==null;)uf(e,l,t),t=t.sibling}function uf(e,l,t){if(fl&&typeof fl.onCommitFiberUnmount=="function")try{fl.onCommitFiberUnmount(_a,t)}catch{}switch(t.tag){case 26:Ye||Bl(t,l),Fl(e,l,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:Ye||Bl(t,l);var a=Ne,n=nl;xt(t.type)&&(Ne=t.stateNode,nl=!1),Fl(e,l,t),gn(t.stateNode),Ne=a,nl=n;break;case 5:Ye||Bl(t,l);case 6:if(a=Ne,n=nl,Ne=null,Fl(e,l,t),Ne=a,nl=n,Ne!==null)if(nl)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(t.stateNode)}catch(i){ye(t,l,i)}else try{Ne.removeChild(t.stateNode)}catch(i){ye(t,l,i)}break;case 18:Ne!==null&&(nl?(e=Ne,If(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.stateNode),Ca(e)):If(Ne,t.stateNode));break;case 4:a=Ne,n=nl,Ne=t.stateNode.containerInfo,nl=!0,Fl(e,l,t),Ne=a,nl=n;break;case 0:case 11:case 14:case 15:ht(2,t,l),Ye||ht(4,t,l),Fl(e,l,t);break;case 1:Ye||(Bl(t,l),a=t.stateNode,typeof a.componentWillUnmount=="function"&&Io(t,l,a)),Fl(e,l,t);break;case 21:Fl(e,l,t);break;case 22:Ye=(a=Ye)||t.memoizedState!==null,Fl(e,l,t),Ye=a;break;default:Fl(e,l,t)}}function cf(e,l){if(l.memoizedState===null&&(e=l.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ca(e)}catch(t){ye(l,l.return,t)}}}function sf(e,l){if(l.memoizedState===null&&(e=l.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ca(e)}catch(t){ye(l,l.return,t)}}function hh(e){switch(e.tag){case 31:case 13:case 19:var l=e.stateNode;return l===null&&(l=e.stateNode=new tf),l;case 22:return e=e.stateNode,l=e._retryCache,l===null&&(l=e._retryCache=new tf),l;default:throw Error(v(435,e.tag))}}function Si(e,l){var t=hh(e);l.forEach(function(a){if(!t.has(a)){t.add(a);var n=Th.bind(null,e,a);a.then(n,n)}})}function il(e,l){var t=l.deletions;if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],i=e,c=l,s=c;e:for(;s!==null;){switch(s.tag){case 27:if(xt(s.type)){Ne=s.stateNode,nl=!1;break e}break;case 5:Ne=s.stateNode,nl=!1;break e;case 3:case 4:Ne=s.stateNode.containerInfo,nl=!0;break e}s=s.return}if(Ne===null)throw Error(v(160));uf(i,c,n),Ne=null,nl=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)rf(l,e),l=l.sibling}var _l=null;function rf(e,l){var t=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:il(l,e),ul(e),a&4&&(ht(3,e,e.return),cn(3,e),ht(5,e,e.return));break;case 1:il(l,e),ul(e),a&512&&(Ye||t===null||Bl(t,t.return)),a&64&&Jl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=t===null?a:t.concat(a))));break;case 26:var n=_l;if(il(l,e),ul(e),a&512&&(Ye||t===null||Bl(t,t.return)),a&4){var i=t!==null?t.memoizedState:null;if(a=e.memoizedState,t===null)if(a===null)if(e.stateNode===null){e:{a=e.type,t=e.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Ra]||i[Ze]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Je(i,a,t),i[Ze]=e,Le(i),a=i;break e;case"link":var c=rd("link","href",n).get(a+(t.href||""));if(c){for(var s=0;s<c.length;s++)if(i=c[s],i.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&i.getAttribute("rel")===(t.rel==null?null:t.rel)&&i.getAttribute("title")===(t.title==null?null:t.title)&&i.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){c.splice(s,1);break l}}i=n.createElement(a),Je(i,a,t),n.head.appendChild(i);break;case"meta":if(c=rd("meta","content",n).get(a+(t.content||""))){for(s=0;s<c.length;s++)if(i=c[s],i.getAttribute("content")===(t.content==null?null:""+t.content)&&i.getAttribute("name")===(t.name==null?null:t.name)&&i.getAttribute("property")===(t.property==null?null:t.property)&&i.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&i.getAttribute("charset")===(t.charSet==null?null:t.charSet)){c.splice(s,1);break l}}i=n.createElement(a),Je(i,a,t),n.head.appendChild(i);break;default:throw Error(v(468,a))}i[Ze]=e,Le(i),a=i}e.stateNode=a}else od(n,e.type,e.stateNode);else e.stateNode=sd(n,a,e.memoizedProps);else i!==a?(i===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):i.count--,a===null?od(n,e.type,e.stateNode):sd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Nc(e,e.memoizedProps,t.memoizedProps)}break;case 27:il(l,e),ul(e),a&512&&(Ye||t===null||Bl(t,t.return)),t!==null&&a&4&&Nc(e,e.memoizedProps,t.memoizedProps);break;case 5:if(il(l,e),ul(e),a&512&&(Ye||t===null||Bl(t,t.return)),e.flags&32){n=e.stateNode;try{It(n,"")}catch(q){ye(e,e.return,q)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Nc(e,n,t!==null?t.memoizedProps:n)),a&1024&&(Mc=!0);break;case 6:if(il(l,e),ul(e),a&4){if(e.stateNode===null)throw Error(v(162));a=e.memoizedProps,t=e.stateNode;try{t.nodeValue=a}catch(q){ye(e,e.return,q)}}break;case 3:if(Hi=null,n=_l,_l=Ri(l.containerInfo),il(l,e),_l=n,ul(e),a&4&&t!==null&&t.memoizedState.isDehydrated)try{Ca(l.containerInfo)}catch(q){ye(e,e.return,q)}Mc&&(Mc=!1,of(e));break;case 4:a=_l,_l=Ri(e.stateNode.containerInfo),il(l,e),ul(e),_l=a;break;case 12:il(l,e),ul(e);break;case 31:il(l,e),ul(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Si(e,a)));break;case 13:il(l,e),ul(e),e.child.flags&8192&&e.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&(ji=ol()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Si(e,a)));break;case 22:n=e.memoizedState!==null;var f=t!==null&&t.memoizedState!==null,g=Jl,T=Ye;if(Jl=g||n,Ye=T||f,il(l,e),Ye=T,Jl=g,ul(e),a&8192)e:for(l=e.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(t===null||f||Jl||Ye||Zt(e)),t=null,l=e;;){if(l.tag===5||l.tag===26){if(t===null){f=t=l;try{if(i=f.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{s=f.stateNode;var z=f.memoizedProps.style,S=z!=null&&z.hasOwnProperty("display")?z.display:null;s.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(q){ye(f,f.return,q)}}}else if(l.tag===6){if(t===null){f=l;try{f.stateNode.nodeValue=n?"":f.memoizedProps}catch(q){ye(f,f.return,q)}}}else if(l.tag===18){if(t===null){f=l;try{var x=f.stateNode;n?Pf(x,!0):Pf(f.stateNode,!1)}catch(q){ye(f,f.return,q)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===e)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break e;for(;l.sibling===null;){if(l.return===null||l.return===e)break e;t===l&&(t=null),l=l.return}t===l&&(t=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=e.updateQueue,a!==null&&(t=a.retryQueue,t!==null&&(a.retryQueue=null,Si(e,t))));break;case 19:il(l,e),ul(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Si(e,a)));break;case 30:break;case 21:break;default:il(l,e),ul(e)}}function ul(e){var l=e.flags;if(l&2){try{for(var t,a=e.return;a!==null;){if(ef(a)){t=a;break}a=a.return}if(t==null)throw Error(v(160));switch(t.tag){case 27:var n=t.stateNode,i=Ec(e);bi(e,i,n);break;case 5:var c=t.stateNode;t.flags&32&&(It(c,""),t.flags&=-33);var s=Ec(e);bi(e,s,c);break;case 3:case 4:var f=t.stateNode.containerInfo,g=Ec(e);zc(e,g,f);break;default:throw Error(v(161))}}catch(T){ye(e,e.return,T)}e.flags&=-3}l&4096&&(e.flags&=-4097)}function of(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var l=e;of(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),e=e.sibling}}function Wl(e,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)af(e,l.alternate,l),l=l.sibling}function Zt(e){for(e=e.child;e!==null;){var l=e;switch(l.tag){case 0:case 11:case 14:case 15:ht(4,l,l.return),Zt(l);break;case 1:Bl(l,l.return);var t=l.stateNode;typeof t.componentWillUnmount=="function"&&Io(l,l.return,t),Zt(l);break;case 27:gn(l.stateNode);case 26:case 5:Bl(l,l.return),Zt(l);break;case 22:l.memoizedState===null&&Zt(l);break;case 30:Zt(l);break;default:Zt(l)}e=e.sibling}}function $l(e,l,t){for(t=t&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=e,i=l,c=i.flags;switch(i.tag){case 0:case 11:case 15:$l(n,i,t),cn(4,i);break;case 1:if($l(n,i,t),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(g){ye(a,a.return,g)}if(a=i,n=a.updateQueue,n!==null){var s=a.stateNode;try{var f=n.shared.hiddenCallbacks;if(f!==null)for(n.shared.hiddenCallbacks=null,n=0;n<f.length;n++)Yr(f[n],s)}catch(g){ye(a,a.return,g)}}t&&c&64&&$o(i),sn(i,i.return);break;case 27:lf(i);case 26:case 5:$l(n,i,t),t&&a===null&&c&4&&Po(i),sn(i,i.return);break;case 12:$l(n,i,t);break;case 31:$l(n,i,t),t&&c&4&&cf(n,i);break;case 13:$l(n,i,t),t&&c&4&&sf(n,i);break;case 22:i.memoizedState===null&&$l(n,i,t),sn(i,i.return);break;case 30:break;default:$l(n,i,t)}l=l.sibling}}function Cc(e,l){var t=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),e=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),e!==t&&(e!=null&&e.refCount++,t!=null&&Ka(t))}function Oc(e,l){e=null,l.alternate!==null&&(e=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==e&&(l.refCount++,e!=null&&Ka(e))}function Dl(e,l,t,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)ff(e,l,t,a),l=l.sibling}function ff(e,l,t,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Dl(e,l,t,a),n&2048&&cn(9,l);break;case 1:Dl(e,l,t,a);break;case 3:Dl(e,l,t,a),n&2048&&(e=null,l.alternate!==null&&(e=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==e&&(l.refCount++,e!=null&&Ka(e)));break;case 12:if(n&2048){Dl(e,l,t,a),e=l.stateNode;try{var i=l.memoizedProps,c=i.id,s=i.onPostCommit;typeof s=="function"&&s(c,l.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(f){ye(l,l.return,f)}}else Dl(e,l,t,a);break;case 31:Dl(e,l,t,a);break;case 13:Dl(e,l,t,a);break;case 23:break;case 22:i=l.stateNode,c=l.alternate,l.memoizedState!==null?i._visibility&2?Dl(e,l,t,a):rn(e,l):i._visibility&2?Dl(e,l,t,a):(i._visibility|=2,pa(e,l,t,a,(l.subtreeFlags&10256)!==0||!1)),n&2048&&Cc(c,l);break;case 24:Dl(e,l,t,a),n&2048&&Oc(l.alternate,l);break;default:Dl(e,l,t,a)}}function pa(e,l,t,a,n){for(n=n&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var i=e,c=l,s=t,f=a,g=c.flags;switch(c.tag){case 0:case 11:case 15:pa(i,c,s,f,n),cn(8,c);break;case 23:break;case 22:var T=c.stateNode;c.memoizedState!==null?T._visibility&2?pa(i,c,s,f,n):rn(i,c):(T._visibility|=2,pa(i,c,s,f,n)),n&&g&2048&&Cc(c.alternate,c);break;case 24:pa(i,c,s,f,n),n&&g&2048&&Oc(c.alternate,c);break;default:pa(i,c,s,f,n)}l=l.sibling}}function rn(e,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var t=e,a=l,n=a.flags;switch(a.tag){case 22:rn(t,a),n&2048&&Cc(a.alternate,a);break;case 24:rn(t,a),n&2048&&Oc(a.alternate,a);break;default:rn(t,a)}l=l.sibling}}var on=8192;function ba(e,l,t){if(e.subtreeFlags&on)for(e=e.child;e!==null;)df(e,l,t),e=e.sibling}function df(e,l,t){switch(e.tag){case 26:ba(e,l,t),e.flags&on&&e.memoizedState!==null&&ev(t,_l,e.memoizedState,e.memoizedProps);break;case 5:ba(e,l,t);break;case 3:case 4:var a=_l;_l=Ri(e.stateNode.containerInfo),ba(e,l,t),_l=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=on,on=16777216,ba(e,l,t),on=a):ba(e,l,t));break;default:ba(e,l,t)}}function mf(e){var l=e.alternate;if(l!==null&&(e=l.child,e!==null)){l.child=null;do l=e.sibling,e.sibling=null,e=l;while(e!==null)}}function fn(e){var l=e.deletions;if((e.flags&16)!==0){if(l!==null)for(var t=0;t<l.length;t++){var a=l[t];we=a,vf(a,e)}mf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hf(e),e=e.sibling}function hf(e){switch(e.tag){case 0:case 11:case 15:fn(e),e.flags&2048&&ht(9,e,e.return);break;case 3:fn(e);break;case 12:fn(e);break;case 22:var l=e.stateNode;e.memoizedState!==null&&l._visibility&2&&(e.return===null||e.return.tag!==13)?(l._visibility&=-3,xi(e)):fn(e);break;default:fn(e)}}function xi(e){var l=e.deletions;if((e.flags&16)!==0){if(l!==null)for(var t=0;t<l.length;t++){var a=l[t];we=a,vf(a,e)}mf(e)}for(e=e.child;e!==null;){switch(l=e,l.tag){case 0:case 11:case 15:ht(8,l,l.return),xi(l);break;case 22:t=l.stateNode,t._visibility&2&&(t._visibility&=-3,xi(l));break;default:xi(l)}e=e.sibling}}function vf(e,l){for(;we!==null;){var t=we;switch(t.tag){case 0:case 11:case 15:ht(8,t,l);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var a=t.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ka(t.memoizedState.cache)}if(a=t.child,a!==null)a.return=t,we=a;else e:for(t=e;we!==null;){a=we;var n=a.sibling,i=a.return;if(nf(a),a===t){we=null;break e}if(n!==null){n.return=i,we=n;break e}we=i}}}var vh={getCacheForType:function(e){var l=Ve(He),t=l.data.get(e);return t===void 0&&(t=e(),l.data.set(e,t)),t},cacheSignal:function(){return Ve(He).controller.signal}},yh=typeof WeakMap=="function"?WeakMap:Map,fe=0,xe=null,le=null,ae=0,ve=0,gl=null,vt=!1,Sa=!1,_c=!1,Il=0,Oe=0,yt=0,kt=0,Dc=0,pl=0,xa=0,dn=null,cl=null,Uc=!1,ji=0,yf=0,Ti=1/0,Ai=null,gt=null,Xe=0,pt=null,ja=null,Pl=0,Rc=0,Bc=null,gf=null,mn=0,Hc=null;function bl(){return(fe&2)!==0&&ae!==0?ae&-ae:j.T!==null?Lc():_s()}function pf(){if(pl===0)if((ae&536870912)===0||ie){var e=Dn;Dn<<=1,(Dn&3932160)===0&&(Dn=262144),pl=e}else pl=536870912;return e=vl.current,e!==null&&(e.flags|=32),pl}function sl(e,l,t){(e===xe&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),bt(e,ae,pl,!1)),Ua(e,t),((fe&2)===0||e!==xe)&&(e===xe&&((fe&2)===0&&(kt|=t),Oe===4&&bt(e,ae,pl,!1)),Hl(e))}function bf(e,l,t){if((fe&6)!==0)throw Error(v(327));var a=!t&&(l&127)===0&&(l&e.expiredLanes)===0||Da(e,l),n=a?bh(e,l):qc(e,l,!0),i=a;do{if(n===0){Sa&&!a&&bt(e,l,0,!1);break}else{if(t=e.current.alternate,i&&!gh(t)){n=qc(e,l,!1),i=!1;continue}if(n===2){if(i=l,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){l=c;e:{var s=e;n=dn;var f=s.current.memoizedState.isDehydrated;if(f&&(Ta(s,c).flags|=256),c=qc(s,c,!1),c!==2){if(_c&&!f){s.errorRecoveryDisabledLanes|=i,kt|=i,n=4;break e}i=cl,cl=n,i!==null&&(cl===null?cl=i:cl.push.apply(cl,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Ta(e,0),bt(e,l,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(v(345));case 4:if((l&4194048)!==l)break;case 6:bt(a,l,pl,!vt);break e;case 2:cl=null;break;case 3:case 5:break;default:throw Error(v(329))}if((l&62914560)===l&&(n=ji+300-ol(),10<n)){if(bt(a,l,pl,!vt),Rn(a,0,!0)!==0)break e;Pl=l,a.timeoutHandle=Wf(Sf.bind(null,a,t,cl,Ai,Uc,l,pl,kt,xa,vt,i,"Throttled",-0,0),n);break e}Sf(a,t,cl,Ai,Uc,l,pl,kt,xa,vt,i,null,-0,0)}}break}while(!0);Hl(e)}function Sf(e,l,t,a,n,i,c,s,f,g,T,z,S,x){if(e.timeoutHandle=-1,z=l.subtreeFlags,z&8192||(z&16785408)===16785408){z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ql},df(l,i,z);var q=(i&62914560)===i?ji-ol():(i&4194048)===i?yf-ol():0;if(q=lv(z,q),q!==null){Pl=i,e.cancelPendingCommit=q(Mf.bind(null,e,l,i,t,a,n,c,s,f,T,z,null,S,x)),bt(e,i,c,!g);return}}Mf(e,l,i,t,a,n,c,s,f)}function gh(e){for(var l=e;;){var t=l.tag;if((t===0||t===11||t===15)&&l.flags&16384&&(t=l.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var a=0;a<t.length;a++){var n=t[a],i=n.getSnapshot;n=n.value;try{if(!ml(i(),n))return!1}catch{return!1}}if(t=l.child,l.subtreeFlags&16384&&t!==null)t.return=l,l=t;else{if(l===e)break;for(;l.sibling===null;){if(l.return===null||l.return===e)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function bt(e,l,t,a){l&=~Dc,l&=~kt,e.suspendedLanes|=l,e.pingedLanes&=~l,a&&(e.warmLanes|=l),a=e.expirationTimes;for(var n=l;0<n;){var i=31-dl(n),c=1<<i;a[i]=-1,n&=~c}t!==0&&Ms(e,t,l)}function Ni(){return(fe&6)===0?(hn(0),!1):!0}function Gc(){if(le!==null){if(ve===0)var e=le.return;else e=le,Ll=Ht=null,Pu(e),ma=null,Fa=0,e=le;for(;e!==null;)Wo(e.alternate,e),e=e.return;le=null}}function Ta(e,l){var t=e.timeoutHandle;t!==-1&&(e.timeoutHandle=-1,Gh(t)),t=e.cancelPendingCommit,t!==null&&(e.cancelPendingCommit=null,t()),Pl=0,Gc(),xe=e,le=t=Xl(e.current,null),ae=l,ve=0,gl=null,vt=!1,Sa=Da(e,l),_c=!1,xa=pl=Dc=kt=yt=Oe=0,cl=dn=null,Uc=!1,(l&8)!==0&&(l|=l&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=l;0<a;){var n=31-dl(a),i=1<<n;l|=e[n],a&=~i}return Il=l,Vn(),t}function xf(e,l){$=null,j.H=an,l===da||l===ei?(l=Br(),ve=3):l===Qu?(l=Br(),ve=4):ve=l===vc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,gl=l,le===null&&(Oe=1,hi(e,Tl(l,e.current)))}function jf(){var e=vl.current;return e===null?!0:(ae&4194048)===ae?zl===null:(ae&62914560)===ae||(ae&536870912)!==0?e===zl:!1}function Tf(){var e=j.H;return j.H=an,e===null?an:e}function Af(){var e=j.A;return j.A=vh,e}function Ei(){Oe=4,vt||(ae&4194048)!==ae&&vl.current!==null||(Sa=!0),(yt&134217727)===0&&(kt&134217727)===0||xe===null||bt(xe,ae,pl,!1)}function qc(e,l,t){var a=fe;fe|=2;var n=Tf(),i=Af();(xe!==e||ae!==l)&&(Ai=null,Ta(e,l)),l=!1;var c=Oe;e:do try{if(ve!==0&&le!==null){var s=le,f=gl;switch(ve){case 8:Gc(),c=6;break e;case 3:case 2:case 9:case 6:vl.current===null&&(l=!0);var g=ve;if(ve=0,gl=null,Aa(e,s,f,g),t&&Sa){c=0;break e}break;default:g=ve,ve=0,gl=null,Aa(e,s,f,g)}}ph(),c=Oe;break}catch(T){xf(e,T)}while(!0);return l&&e.shellSuspendCounter++,Ll=Ht=null,fe=a,j.H=n,j.A=i,le===null&&(xe=null,ae=0,Vn()),c}function ph(){for(;le!==null;)Nf(le)}function bh(e,l){var t=fe;fe|=2;var a=Tf(),n=Af();xe!==e||ae!==l?(Ai=null,Ti=ol()+500,Ta(e,l)):Sa=Da(e,l);e:do try{if(ve!==0&&le!==null){l=le;var i=gl;l:switch(ve){case 1:ve=0,gl=null,Aa(e,l,i,1);break;case 2:case 9:if(Ur(i)){ve=0,gl=null,Ef(l);break}l=function(){ve!==2&&ve!==9||xe!==e||(ve=7),Hl(e)},i.then(l,l);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Ur(i)?(ve=0,gl=null,Ef(l)):(ve=0,gl=null,Aa(e,l,i,7));break;case 5:var c=null;switch(le.tag){case 26:c=le.memoizedState;case 5:case 27:var s=le;if(c?fd(c):s.stateNode.complete){ve=0,gl=null;var f=s.sibling;if(f!==null)le=f;else{var g=s.return;g!==null?(le=g,zi(g)):le=null}break l}}ve=0,gl=null,Aa(e,l,i,5);break;case 6:ve=0,gl=null,Aa(e,l,i,6);break;case 8:Gc(),Oe=6;break e;default:throw Error(v(462))}}Sh();break}catch(T){xf(e,T)}while(!0);return Ll=Ht=null,j.H=a,j.A=n,fe=t,le!==null?0:(xe=null,ae=0,Vn(),Oe)}function Sh(){for(;le!==null&&!wd();)Nf(le)}function Nf(e){var l=Jo(e.alternate,e,Il);e.memoizedProps=e.pendingProps,l===null?zi(e):le=l}function Ef(e){var l=e,t=l.alternate;switch(l.tag){case 15:case 0:l=Lo(t,l,l.pendingProps,l.type,void 0,ae);break;case 11:l=Lo(t,l,l.pendingProps,l.type.render,l.ref,ae);break;case 5:Pu(l);default:Wo(t,l),l=le=jr(l,Il),l=Jo(t,l,Il)}e.memoizedProps=e.pendingProps,l===null?zi(e):le=l}function Aa(e,l,t,a){Ll=Ht=null,Pu(l),ma=null,Fa=0;var n=l.return;try{if(sh(e,n,l,t,ae)){Oe=1,hi(e,Tl(t,e.current)),le=null;return}}catch(i){if(n!==null)throw le=n,i;Oe=1,hi(e,Tl(t,e.current)),le=null;return}l.flags&32768?(ie||a===1?e=!0:Sa||(ae&536870912)!==0?e=!1:(vt=e=!0,(a===2||a===9||a===3||a===6)&&(a=vl.current,a!==null&&a.tag===13&&(a.flags|=16384))),zf(l,e)):zi(l)}function zi(e){var l=e;do{if((l.flags&32768)!==0){zf(l,vt);return}e=l.return;var t=fh(l.alternate,l,Il);if(t!==null){le=t;return}if(l=l.sibling,l!==null){le=l;return}le=l=e}while(l!==null);Oe===0&&(Oe=5)}function zf(e,l){do{var t=dh(e.alternate,e);if(t!==null){t.flags&=32767,le=t;return}if(t=e.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!l&&(e=e.sibling,e!==null)){le=e;return}le=e=t}while(e!==null);Oe=6,le=null}function Mf(e,l,t,a,n,i,c,s,f){e.cancelPendingCommit=null;do Mi();while(Xe!==0);if((fe&6)!==0)throw Error(v(327));if(l!==null){if(l===e.current)throw Error(v(177));if(i=l.lanes|l.childLanes,i|=Eu,Pd(e,t,i,c,s,f),e===xe&&(le=xe=null,ae=0),ja=l,pt=e,Pl=t,Rc=i,Bc=n,gf=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ah(On,function(){return Uf(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,n=_.p,_.p=2,c=fe,fe|=4;try{mh(e,l,t)}finally{fe=c,_.p=n,j.T=a}}Xe=1,Cf(),Of(),_f()}}function Cf(){if(Xe===1){Xe=0;var e=pt,l=ja,t=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||t){t=j.T,j.T=null;var a=_.p;_.p=2;var n=fe;fe|=4;try{rf(l,e);var i=Wc,c=mr(e.containerInfo),s=i.focusedElem,f=i.selectionRange;if(c!==s&&s&&s.ownerDocument&&dr(s.ownerDocument.documentElement,s)){if(f!==null&&xu(s)){var g=f.start,T=f.end;if(T===void 0&&(T=g),"selectionStart"in s)s.selectionStart=g,s.selectionEnd=Math.min(T,s.value.length);else{var z=s.ownerDocument||document,S=z&&z.defaultView||window;if(S.getSelection){var x=S.getSelection(),q=s.textContent.length,Z=Math.min(f.start,q),Se=f.end===void 0?Z:Math.min(f.end,q);!x.extend&&Z>Se&&(c=Se,Se=Z,Z=c);var h=fr(s,Z),d=fr(s,Se);if(h&&d&&(x.rangeCount!==1||x.anchorNode!==h.node||x.anchorOffset!==h.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)){var y=z.createRange();y.setStart(h.node,h.offset),x.removeAllRanges(),Z>Se?(x.addRange(y),x.extend(d.node,d.offset)):(y.setEnd(d.node,d.offset),x.addRange(y))}}}}for(z=[],x=s;x=x.parentNode;)x.nodeType===1&&z.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<z.length;s++){var E=z[s];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Xi=!!Fc,Wc=Fc=null}finally{fe=n,_.p=a,j.T=t}}e.current=l,Xe=2}}function Of(){if(Xe===2){Xe=0;var e=pt,l=ja,t=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||t){t=j.T,j.T=null;var a=_.p;_.p=2;var n=fe;fe|=4;try{af(e,l.alternate,l)}finally{fe=n,_.p=a,j.T=t}}Xe=3}}function _f(){if(Xe===4||Xe===3){Xe=0,Zd();var e=pt,l=ja,t=Pl,a=gf;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Xe=5:(Xe=0,ja=pt=null,Df(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(gt=null),tu(t),l=l.stateNode,fl&&typeof fl.onCommitFiberRoot=="function")try{fl.onCommitFiberRoot(_a,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=j.T,n=_.p,_.p=2,j.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var s=a[c];i(s.value,{componentStack:s.stack})}}finally{j.T=l,_.p=n}}(Pl&3)!==0&&Mi(),Hl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?e===Hc?mn++:(mn=0,Hc=e):mn=0,hn(0)}}function Df(e,l){(e.pooledCacheLanes&=l)===0&&(l=e.pooledCache,l!=null&&(e.pooledCache=null,Ka(l)))}function Mi(){return Cf(),Of(),_f(),Uf()}function Uf(){if(Xe!==5)return!1;var e=pt,l=Rc;Rc=0;var t=tu(Pl),a=j.T,n=_.p;try{_.p=32>t?32:t,j.T=null,t=Bc,Bc=null;var i=pt,c=Pl;if(Xe=0,ja=pt=null,Pl=0,(fe&6)!==0)throw Error(v(331));var s=fe;if(fe|=4,hf(i.current),ff(i,i.current,c,t),fe=s,hn(0,!1),fl&&typeof fl.onPostCommitFiberRoot=="function")try{fl.onPostCommitFiberRoot(_a,i)}catch{}return!0}finally{_.p=n,j.T=a,Df(e,l)}}function Rf(e,l,t){l=Tl(t,l),l=hc(e.stateNode,l,2),e=ft(e,l,2),e!==null&&(Ua(e,2),Hl(e))}function ye(e,l,t){if(e.tag===3)Rf(e,e,t);else for(;l!==null;){if(l.tag===3){Rf(l,e,t);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(gt===null||!gt.has(a))){e=Tl(t,e),t=Ro(2),a=ft(l,t,2),a!==null&&(Bo(t,a,l,e),Ua(a,2),Hl(a));break}}l=l.return}}function Yc(e,l,t){var a=e.pingCache;if(a===null){a=e.pingCache=new yh;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(t)||(_c=!0,n.add(t),e=xh.bind(null,e,l,t),l.then(e,e))}function xh(e,l,t){var a=e.pingCache;a!==null&&a.delete(l),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,xe===e&&(ae&t)===t&&(Oe===4||Oe===3&&(ae&62914560)===ae&&300>ol()-ji?(fe&2)===0&&Ta(e,0):Dc|=t,xa===ae&&(xa=0)),Hl(e)}function Bf(e,l){l===0&&(l=zs()),e=Ut(e,l),e!==null&&(Ua(e,l),Hl(e))}function jh(e){var l=e.memoizedState,t=0;l!==null&&(t=l.retryLane),Bf(e,t)}function Th(e,l){var t=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(t=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(v(314))}a!==null&&a.delete(l),Bf(e,t)}function Ah(e,l){return Ii(e,l)}var Ci=null,Na=null,Xc=!1,Oi=!1,Qc=!1,St=0;function Hl(e){e!==Na&&e.next===null&&(Na===null?Ci=Na=e:Na=Na.next=e),Oi=!0,Xc||(Xc=!0,Eh())}function hn(e,l){if(!Qc&&Oi){Qc=!0;do for(var t=!1,a=Ci;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,s=a.pingedLanes;i=(1<<31-dl(42|e)+1)-1,i&=n&~(c&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(t=!0,Yf(a,i))}else i=ae,i=Rn(a,a===xe?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Da(a,i)||(t=!0,Yf(a,i));a=a.next}while(t);Qc=!1}}function Nh(){Hf()}function Hf(){Oi=Xc=!1;var e=0;St!==0&&Hh()&&(e=St);for(var l=ol(),t=null,a=Ci;a!==null;){var n=a.next,i=Gf(a,l);i===0?(a.next=null,t===null?Ci=n:t.next=n,n===null&&(Na=t)):(t=a,(e!==0||(i&3)!==0)&&(Oi=!0)),a=n}Xe!==0&&Xe!==5||hn(e),St!==0&&(St=0)}function Gf(e,l){for(var t=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-dl(i),s=1<<c,f=n[c];f===-1?((s&t)===0||(s&a)!==0)&&(n[c]=Id(s,l)):f<=l&&(e.expiredLanes|=s),i&=~s}if(l=xe,t=ae,t=Rn(e,e===l?t:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,t===0||e===l&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Pi(a),e.callbackNode=null,e.callbackPriority=0;if((t&3)===0||Da(e,t)){if(l=t&-t,l===e.callbackPriority)return l;switch(a!==null&&Pi(a),tu(t)){case 2:case 8:t=Ns;break;case 32:t=On;break;case 268435456:t=Es;break;default:t=On}return a=qf.bind(null,e),t=Ii(t,a),e.callbackPriority=l,e.callbackNode=t,l}return a!==null&&a!==null&&Pi(a),e.callbackPriority=2,e.callbackNode=null,2}function qf(e,l){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Mi()&&e.callbackNode!==t)return null;var a=ae;return a=Rn(e,e===xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(bf(e,a,l),Gf(e,ol()),e.callbackNode!=null&&e.callbackNode===t?qf.bind(null,e):null)}function Yf(e,l){if(Mi())return null;bf(e,l,!0)}function Eh(){qh(function(){(fe&6)!==0?Ii(As,Nh):Hf()})}function Lc(){if(St===0){var e=oa;e===0&&(e=_n,_n<<=1,(_n&261888)===0&&(_n=256)),St=e}return St}function Xf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qn(""+e)}function Qf(e,l){var t=l.ownerDocument.createElement("input");return t.name=l.name,t.value=l.value,e.id&&t.setAttribute("form",e.id),l.parentNode.insertBefore(t,l),e=new FormData(e),t.parentNode.removeChild(t),e}function zh(e,l,t,a,n){if(l==="submit"&&t&&t.stateNode===n){var i=Xf((n[tl]||null).action),c=a.submitter;c&&(l=(l=c[tl]||null)?Xf(l.formAction):c.getAttribute("formAction"),l!==null&&(i=l,c=null));var s=new Ln("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(St!==0){var f=c?Qf(n,c):new FormData(n);sc(t,{pending:!0,data:f,method:n.method,action:i},null,f)}}else typeof i=="function"&&(s.preventDefault(),f=c?Qf(n,c):new FormData(n),sc(t,{pending:!0,data:f,method:n.method,action:i},i,f))},currentTarget:n}]})}}for(var wc=0;wc<Nu.length;wc++){var Zc=Nu[wc],Mh=Zc.toLowerCase(),Ch=Zc[0].toUpperCase()+Zc.slice(1);Ol(Mh,"on"+Ch)}Ol(yr,"onAnimationEnd"),Ol(gr,"onAnimationIteration"),Ol(pr,"onAnimationStart"),Ol("dblclick","onDoubleClick"),Ol("focusin","onFocus"),Ol("focusout","onBlur"),Ol(km,"onTransitionRun"),Ol(Vm,"onTransitionStart"),Ol(Km,"onTransitionCancel"),Ol(br,"onTransitionEnd"),Wt("onMouseEnter",["mouseout","mouseover"]),Wt("onMouseLeave",["mouseout","mouseover"]),Wt("onPointerEnter",["pointerout","pointerover"]),Wt("onPointerLeave",["pointerout","pointerover"]),Ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vn="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(" "),Oh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vn));function Lf(e,l){l=(l&4)!==0;for(var t=0;t<e.length;t++){var a=e[t],n=a.event;a=a.listeners;e:{var i=void 0;if(l)for(var c=a.length-1;0<=c;c--){var s=a[c],f=s.instance,g=s.currentTarget;if(s=s.listener,f!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=g;try{i(n)}catch(T){kn(T)}n.currentTarget=null,i=f}else for(c=0;c<a.length;c++){if(s=a[c],f=s.instance,g=s.currentTarget,s=s.listener,f!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=g;try{i(n)}catch(T){kn(T)}n.currentTarget=null,i=f}}}}function te(e,l){var t=l[au];t===void 0&&(t=l[au]=new Set);var a=e+"__bubble";t.has(a)||(wf(l,e,2,!1),t.add(a))}function kc(e,l,t){var a=0;l&&(a|=4),wf(t,e,a,l)}var _i="_reactListening"+Math.random().toString(36).slice(2);function Vc(e){if(!e[_i]){e[_i]=!0,Rs.forEach(function(t){t!=="selectionchange"&&(Oh.has(t)||kc(t,!1,e),kc(t,!0,e))});var l=e.nodeType===9?e:e.ownerDocument;l===null||l[_i]||(l[_i]=!0,kc("selectionchange",!1,l))}}function wf(e,l,t,a){switch(pd(l)){case 2:var n=nv;break;case 8:n=iv;break;default:n=cs}t=n.bind(null,l,t,e),n=void 0,!du||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(l,t,{capture:!0,passive:n}):e.addEventListener(l,t,!0):n!==void 0?e.addEventListener(l,t,{passive:n}):e.addEventListener(l,t,!1)}function Kc(e,l,t,a,n){var i=a;if((l&1)===0&&(l&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var s=a.stateNode.containerInfo;if(s===n)break;if(c===4)for(c=a.return;c!==null;){var f=c.tag;if((f===3||f===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;s!==null;){if(c=Kt(s),c===null)return;if(f=c.tag,f===5||f===6||f===26||f===27){a=i=c;continue e}s=s.parentNode}}a=a.return}Vs(function(){var g=i,T=ou(t),z=[];e:{var S=Sr.get(e);if(S!==void 0){var x=Ln,q=e;switch(e){case"keypress":if(Xn(t)===0)break e;case"keydown":case"keyup":x=Tm;break;case"focusin":q="focus",x=yu;break;case"focusout":q="blur",x=yu;break;case"beforeblur":case"afterblur":x=yu;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Fs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=fm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Em;break;case yr:case gr:case pr:x=hm;break;case br:x=Mm;break;case"scroll":case"scrollend":x=rm;break;case"wheel":x=Om;break;case"copy":case"cut":case"paste":x=ym;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=$s;break;case"toggle":case"beforetoggle":x=Dm}var Z=(l&4)!==0,Se=!Z&&(e==="scroll"||e==="scrollend"),h=Z?S!==null?S+"Capture":null:S;Z=[];for(var d=g,y;d!==null;){var E=d;if(y=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||y===null||h===null||(E=Ha(d,h),E!=null&&Z.push(yn(d,E,y))),Se)break;d=d.return}0<Z.length&&(S=new x(S,q,null,t,T),z.push({event:S,listeners:Z}))}}if((l&7)===0){e:{if(S=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",S&&t!==ru&&(q=t.relatedTarget||t.fromElement)&&(Kt(q)||q[Vt]))break e;if((x||S)&&(S=T.window===T?T:(S=T.ownerDocument)?S.defaultView||S.parentWindow:window,x?(q=t.relatedTarget||t.toElement,x=g,q=q?Kt(q):null,q!==null&&(Se=L(q),Z=q.tag,q!==Se||Z!==5&&Z!==27&&Z!==6)&&(q=null)):(x=null,q=g),x!==q)){if(Z=Fs,E="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(Z=$s,E="onPointerLeave",h="onPointerEnter",d="pointer"),Se=x==null?S:Ba(x),y=q==null?S:Ba(q),S=new Z(E,d+"leave",x,t,T),S.target=Se,S.relatedTarget=y,E=null,Kt(T)===g&&(Z=new Z(h,d+"enter",q,t,T),Z.target=y,Z.relatedTarget=Se,E=Z),Se=E,x&&q)l:{for(Z=_h,h=x,d=q,y=0,E=h;E;E=Z(E))y++;E=0;for(var w=d;w;w=Z(w))E++;for(;0<y-E;)h=Z(h),y--;for(;0<E-y;)d=Z(d),E--;for(;y--;){if(h===d||d!==null&&h===d.alternate){Z=h;break l}h=Z(h),d=Z(d)}Z=null}else Z=null;x!==null&&Zf(z,S,x,Z,!1),q!==null&&Se!==null&&Zf(z,Se,q,Z,!0)}}e:{if(S=g?Ba(g):window,x=S.nodeName&&S.nodeName.toLowerCase(),x==="select"||x==="input"&&S.type==="file")var se=ir;else if(ar(S))if(ur)se=Lm;else{se=Xm;var Y=Ym}else x=S.nodeName,!x||x.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?g&&su(g.elementType)&&(se=ir):se=Qm;if(se&&(se=se(e,g))){nr(z,se,t,T);break e}Y&&Y(e,S,g),e==="focusout"&&g&&S.type==="number"&&g.memoizedProps.value!=null&&cu(S,"number",S.value)}switch(Y=g?Ba(g):window,e){case"focusin":(ar(Y)||Y.contentEditable==="true")&&(ta=Y,ju=g,Za=null);break;case"focusout":Za=ju=ta=null;break;case"mousedown":Tu=!0;break;case"contextmenu":case"mouseup":case"dragend":Tu=!1,hr(z,t,T);break;case"selectionchange":if(Zm)break;case"keydown":case"keyup":hr(z,t,T)}var P;if(pu)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else la?lr(e,t)&&(ne="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(ne="onCompositionStart");ne&&(Is&&t.locale!=="ko"&&(la||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&la&&(P=Ks()):(nt=T,mu="value"in nt?nt.value:nt.textContent,la=!0)),Y=Di(g,ne),0<Y.length&&(ne=new Ws(ne,e,null,t,T),z.push({event:ne,listeners:Y}),P?ne.data=P:(P=tr(t),P!==null&&(ne.data=P)))),(P=Rm?Bm(e,t):Hm(e,t))&&(ne=Di(g,"onBeforeInput"),0<ne.length&&(Y=new Ws("onBeforeInput","beforeinput",null,t,T),z.push({event:Y,listeners:ne}),Y.data=P)),zh(z,e,g,t,T)}Lf(z,l)})}function yn(e,l,t){return{instance:e,listener:l,currentTarget:t}}function Di(e,l){for(var t=l+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ha(e,t),n!=null&&a.unshift(yn(e,n,i)),n=Ha(e,l),n!=null&&a.push(yn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function _h(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(e,l,t,a,n){for(var i=l._reactName,c=[];t!==null&&t!==a;){var s=t,f=s.alternate,g=s.stateNode;if(s=s.tag,f!==null&&f===a)break;s!==5&&s!==26&&s!==27||g===null||(f=g,n?(g=Ha(t,i),g!=null&&c.unshift(yn(t,g,f))):n||(g=Ha(t,i),g!=null&&c.push(yn(t,g,f)))),t=t.return}c.length!==0&&e.push({event:l,listeners:c})}var Dh=/\r\n?/g,Uh=/\u0000|\uFFFD/g;function kf(e){return(typeof e=="string"?e:""+e).replace(Dh,`
49
- `).replace(Uh,"")}function Vf(e,l){return l=kf(l),kf(e)===l}function be(e,l,t,a,n,i){switch(t){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||It(e,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&It(e,""+a);break;case"className":Hn(e,"class",a);break;case"tabIndex":Hn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Hn(e,t,a);break;case"style":Zs(e,a,i);break;case"data":if(l!=="object"){Hn(e,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||t!=="href")){e.removeAttribute(t);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(t);break}a=qn(""+a),e.setAttribute(t,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(t==="formAction"?(l!=="input"&&be(e,l,"name",n.name,n,null),be(e,l,"formEncType",n.formEncType,n,null),be(e,l,"formMethod",n.formMethod,n,null),be(e,l,"formTarget",n.formTarget,n,null)):(be(e,l,"encType",n.encType,n,null),be(e,l,"method",n.method,n,null),be(e,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(t);break}a=qn(""+a),e.setAttribute(t,a);break;case"onClick":a!=null&&(e.onclick=ql);break;case"onScroll":a!=null&&te("scroll",e);break;case"onScrollEnd":a!=null&&te("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(v(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(v(60));e.innerHTML=t}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}t=qn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(t,""+a):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":a===!0?e.setAttribute(t,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(t,a):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(t,a):e.removeAttribute(t);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(t):e.setAttribute(t,a);break;case"popover":te("beforetoggle",e),te("toggle",e),Bn(e,"popover",a);break;case"xlinkActuate":Gl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Gl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Gl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Gl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Gl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Gl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Gl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Gl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Gl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Bn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=cm.get(t)||t,Bn(e,t,a))}}function Jc(e,l,t,a,n,i){switch(t){case"style":Zs(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(v(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(v(60));e.innerHTML=t}}break;case"children":typeof a=="string"?It(e,a):(typeof a=="number"||typeof a=="bigint")&&It(e,""+a);break;case"onScroll":a!=null&&te("scroll",e);break;case"onScrollEnd":a!=null&&te("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ql);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bs.hasOwnProperty(t))e:{if(t[0]==="o"&&t[1]==="n"&&(n=t.endsWith("Capture"),l=t.slice(2,n?t.length-7:void 0),i=e[tl]||null,i=i!=null?i[t]:null,typeof i=="function"&&e.removeEventListener(l,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(l,a,n);break e}t in e?e[t]=a:a===!0?e.setAttribute(t,""):Bn(e,t,a)}}}function Je(e,l,t){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":te("error",e),te("load",e);var a=!1,n=!1,i;for(i in t)if(t.hasOwnProperty(i)){var c=t[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(v(137,l));default:be(e,l,i,c,t,null)}}n&&be(e,l,"srcSet",t.srcSet,t,null),a&&be(e,l,"src",t.src,t,null);return;case"input":te("invalid",e);var s=i=c=n=null,f=null,g=null;for(a in t)if(t.hasOwnProperty(a)){var T=t[a];if(T!=null)switch(a){case"name":n=T;break;case"type":c=T;break;case"checked":f=T;break;case"defaultChecked":g=T;break;case"value":i=T;break;case"defaultValue":s=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(v(137,l));break;default:be(e,l,a,T,t,null)}}Xs(e,i,s,f,g,c,n,!1);return;case"select":te("invalid",e),a=c=i=null;for(n in t)if(t.hasOwnProperty(n)&&(s=t[n],s!=null))switch(n){case"value":i=s;break;case"defaultValue":c=s;break;case"multiple":a=s;default:be(e,l,n,s,t,null)}l=i,t=c,e.multiple=!!a,l!=null?$t(e,!!a,l,!1):t!=null&&$t(e,!!a,t,!0);return;case"textarea":te("invalid",e),i=n=a=null;for(c in t)if(t.hasOwnProperty(c)&&(s=t[c],s!=null))switch(c){case"value":a=s;break;case"defaultValue":n=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(v(91));break;default:be(e,l,c,s,t,null)}Ls(e,a,n,i);return;case"option":for(f in t)if(t.hasOwnProperty(f)&&(a=t[f],a!=null))switch(f){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:be(e,l,f,a,t,null)}return;case"dialog":te("beforetoggle",e),te("toggle",e),te("cancel",e),te("close",e);break;case"iframe":case"object":te("load",e);break;case"video":case"audio":for(a=0;a<vn.length;a++)te(vn[a],e);break;case"image":te("error",e),te("load",e);break;case"details":te("toggle",e);break;case"embed":case"source":case"link":te("error",e),te("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(g in t)if(t.hasOwnProperty(g)&&(a=t[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(v(137,l));default:be(e,l,g,a,t,null)}return;default:if(su(l)){for(T in t)t.hasOwnProperty(T)&&(a=t[T],a!==void 0&&Jc(e,l,T,a,t,void 0));return}}for(s in t)t.hasOwnProperty(s)&&(a=t[s],a!=null&&be(e,l,s,a,t,null))}function Rh(e,l,t,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,s=null,f=null,g=null,T=null;for(x in t){var z=t[x];if(t.hasOwnProperty(x)&&z!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":f=z;default:a.hasOwnProperty(x)||be(e,l,x,null,a,z)}}for(var S in a){var x=a[S];if(z=t[S],a.hasOwnProperty(S)&&(x!=null||z!=null))switch(S){case"type":i=x;break;case"name":n=x;break;case"checked":g=x;break;case"defaultChecked":T=x;break;case"value":c=x;break;case"defaultValue":s=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(v(137,l));break;default:x!==z&&be(e,l,S,x,a,z)}}uu(e,c,s,f,g,T,i,n);return;case"select":x=c=s=S=null;for(i in t)if(f=t[i],t.hasOwnProperty(i)&&f!=null)switch(i){case"value":break;case"multiple":x=f;default:a.hasOwnProperty(i)||be(e,l,i,null,a,f)}for(n in a)if(i=a[n],f=t[n],a.hasOwnProperty(n)&&(i!=null||f!=null))switch(n){case"value":S=i;break;case"defaultValue":s=i;break;case"multiple":c=i;default:i!==f&&be(e,l,n,i,a,f)}l=s,t=c,a=x,S!=null?$t(e,!!t,S,!1):!!a!=!!t&&(l!=null?$t(e,!!t,l,!0):$t(e,!!t,t?[]:"",!1));return;case"textarea":x=S=null;for(s in t)if(n=t[s],t.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:be(e,l,s,null,a,n)}for(c in a)if(n=a[c],i=t[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":S=n;break;case"defaultValue":x=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(v(91));break;default:n!==i&&be(e,l,c,n,a,i)}Qs(e,S,x);return;case"option":for(var q in t)if(S=t[q],t.hasOwnProperty(q)&&S!=null&&!a.hasOwnProperty(q))switch(q){case"selected":e.selected=!1;break;default:be(e,l,q,null,a,S)}for(f in a)if(S=a[f],x=t[f],a.hasOwnProperty(f)&&S!==x&&(S!=null||x!=null))switch(f){case"selected":e.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:be(e,l,f,S,a,x)}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 Z in t)S=t[Z],t.hasOwnProperty(Z)&&S!=null&&!a.hasOwnProperty(Z)&&be(e,l,Z,null,a,S);for(g in a)if(S=a[g],x=t[g],a.hasOwnProperty(g)&&S!==x&&(S!=null||x!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(v(137,l));break;default:be(e,l,g,S,a,x)}return;default:if(su(l)){for(var Se in t)S=t[Se],t.hasOwnProperty(Se)&&S!==void 0&&!a.hasOwnProperty(Se)&&Jc(e,l,Se,void 0,a,S);for(T in a)S=a[T],x=t[T],!a.hasOwnProperty(T)||S===x||S===void 0&&x===void 0||Jc(e,l,T,S,a,x);return}}for(var h in t)S=t[h],t.hasOwnProperty(h)&&S!=null&&!a.hasOwnProperty(h)&&be(e,l,h,null,a,S);for(z in a)S=a[z],x=t[z],!a.hasOwnProperty(z)||S===x||S==null&&x==null||be(e,l,z,S,a,x)}function Kf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bh(){if(typeof performance.getEntriesByType=="function"){for(var e=0,l=0,t=performance.getEntriesByType("resource"),a=0;a<t.length;a++){var n=t[a],i=n.transferSize,c=n.initiatorType,s=n.duration;if(i&&s&&Kf(c)){for(c=0,s=n.responseEnd,a+=1;a<t.length;a++){var f=t[a],g=f.startTime;if(g>s)break;var T=f.transferSize,z=f.initiatorType;T&&Kf(z)&&(f=f.responseEnd,c+=T*(f<s?1:(s-g)/(f-g)))}if(--a,l+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return l/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Fc=null,Wc=null;function Ui(e){return e.nodeType===9?e:e.ownerDocument}function Jf(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 Ff(e,l){if(e===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&l==="foreignObject"?0:e}function $c(e,l){return e==="textarea"||e==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Ic=null;function Hh(){var e=window.event;return e&&e.type==="popstate"?e===Ic?!1:(Ic=e,!0):(Ic=null,!1)}var Wf=typeof setTimeout=="function"?setTimeout:void 0,Gh=typeof clearTimeout=="function"?clearTimeout:void 0,$f=typeof Promise=="function"?Promise:void 0,qh=typeof queueMicrotask=="function"?queueMicrotask:typeof $f<"u"?function(e){return $f.resolve(null).then(e).catch(Yh)}:Wf;function Yh(e){setTimeout(function(){throw e})}function xt(e){return e==="head"}function If(e,l){var t=l,a=0;do{var n=t.nextSibling;if(e.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"||t==="/&"){if(a===0){e.removeChild(n),Ca(l);return}a--}else if(t==="$"||t==="$?"||t==="$~"||t==="$!"||t==="&")a++;else if(t==="html")gn(e.ownerDocument.documentElement);else if(t==="head"){t=e.ownerDocument.head,gn(t);for(var i=t.firstChild;i;){var c=i.nextSibling,s=i.nodeName;i[Ra]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||t.removeChild(i),i=c}}else t==="body"&&gn(e.ownerDocument.body);t=n}while(t);Ca(l)}function Pf(e,l){var t=e;e=0;do{var a=t.nextSibling;if(t.nodeType===1?l?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",t.getAttribute("style")===""&&t.removeAttribute("style")):t.nodeType===3&&(l?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),a&&a.nodeType===8)if(t=a.data,t==="/$"){if(e===0)break;e--}else t!=="$"&&t!=="$?"&&t!=="$~"&&t!=="$!"||e++;t=a}while(t)}function Pc(e){var l=e.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var t=l;switch(l=l.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Pc(t),nu(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}e.removeChild(t)}}function Xh(e,l,t,a){for(;e.nodeType===1;){var n=t;if(e.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ra])switch(l){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(l==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ml(e.nextSibling),e===null)break}return null}function Qh(e,l,t){if(l==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ml(e.nextSibling),e===null))return null;return e}function ed(e,l){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ml(e.nextSibling),e===null))return null;return e}function es(e){return e.data==="$?"||e.data==="$~"}function ls(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lh(e,l){var t=e.ownerDocument;if(e.data==="$~")e._reactRetry=l;else if(e.data!=="$?"||t.readyState!=="loading")l();else{var a=function(){l(),t.removeEventListener("DOMContentLoaded",a)};t.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ml(e){for(;e!=null;e=e.nextSibling){var l=e.nodeType;if(l===1||l===3)break;if(l===8){if(l=e.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return e}var ts=null;function ld(e){e=e.nextSibling;for(var l=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"||t==="/&"){if(l===0)return Ml(e.nextSibling);l--}else t!=="$"&&t!=="$!"&&t!=="$?"&&t!=="$~"&&t!=="&"||l++}e=e.nextSibling}return null}function td(e){e=e.previousSibling;for(var l=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"){if(l===0)return e;l--}else t!=="/$"&&t!=="/&"||l++}e=e.previousSibling}return null}function ad(e,l,t){switch(l=Ui(t),e){case"html":if(e=l.documentElement,!e)throw Error(v(452));return e;case"head":if(e=l.head,!e)throw Error(v(453));return e;case"body":if(e=l.body,!e)throw Error(v(454));return e;default:throw Error(v(451))}}function gn(e){for(var l=e.attributes;l.length;)e.removeAttributeNode(l[0]);nu(e)}var Cl=new Map,nd=new Set;function Ri(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var et=_.d;_.d={f:wh,r:Zh,D:kh,C:Vh,L:Kh,m:Jh,X:Wh,S:Fh,M:$h};function wh(){var e=et.f(),l=Ni();return e||l}function Zh(e){var l=Jt(e);l!==null&&l.tag===5&&l.type==="form"?So(l):et.r(e)}var Ea=typeof document>"u"?null:document;function id(e,l,t){var a=Ea;if(a&&typeof l=="string"&&l){var n=xl(l);n='link[rel="'+e+'"][href="'+n+'"]',typeof t=="string"&&(n+='[crossorigin="'+t+'"]'),nd.has(n)||(nd.add(n),e={rel:e,crossOrigin:t,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),Je(l,"link",e),Le(l),a.head.appendChild(l)))}}function kh(e){et.D(e),id("dns-prefetch",e,null)}function Vh(e,l){et.C(e,l),id("preconnect",e,l)}function Kh(e,l,t){et.L(e,l,t);var a=Ea;if(a&&e&&l){var n='link[rel="preload"][as="'+xl(l)+'"]';l==="image"&&t&&t.imageSrcSet?(n+='[imagesrcset="'+xl(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(n+='[imagesizes="'+xl(t.imageSizes)+'"]')):n+='[href="'+xl(e)+'"]';var i=n;switch(l){case"style":i=za(e);break;case"script":i=Ma(e)}Cl.has(i)||(e=H({rel:"preload",href:l==="image"&&t&&t.imageSrcSet?void 0:e,as:l},t),Cl.set(i,e),a.querySelector(n)!==null||l==="style"&&a.querySelector(pn(i))||l==="script"&&a.querySelector(bn(i))||(l=a.createElement("link"),Je(l,"link",e),Le(l),a.head.appendChild(l)))}}function Jh(e,l){et.m(e,l);var t=Ea;if(t&&e){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+xl(a)+'"][href="'+xl(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ma(e)}if(!Cl.has(i)&&(e=H({rel:"modulepreload",href:e},l),Cl.set(i,e),t.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(bn(i)))return}a=t.createElement("link"),Je(a,"link",e),Le(a),t.head.appendChild(a)}}}function Fh(e,l,t){et.S(e,l,t);var a=Ea;if(a&&e){var n=Ft(a).hoistableStyles,i=za(e);l=l||"default";var c=n.get(i);if(!c){var s={loading:0,preload:null};if(c=a.querySelector(pn(i)))s.loading=5;else{e=H({rel:"stylesheet",href:e,"data-precedence":l},t),(t=Cl.get(i))&&as(e,t);var f=c=a.createElement("link");Le(f),Je(f,"link",e),f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),f.addEventListener("load",function(){s.loading|=1}),f.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Bi(c,l,a)}c={type:"stylesheet",instance:c,count:1,state:s},n.set(i,c)}}}function Wh(e,l){et.X(e,l);var t=Ea;if(t&&e){var a=Ft(t).hoistableScripts,n=Ma(e),i=a.get(n);i||(i=t.querySelector(bn(n)),i||(e=H({src:e,async:!0},l),(l=Cl.get(n))&&ns(e,l),i=t.createElement("script"),Le(i),Je(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function $h(e,l){et.M(e,l);var t=Ea;if(t&&e){var a=Ft(t).hoistableScripts,n=Ma(e),i=a.get(n);i||(i=t.querySelector(bn(n)),i||(e=H({src:e,async:!0,type:"module"},l),(l=Cl.get(n))&&ns(e,l),i=t.createElement("script"),Le(i),Je(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function ud(e,l,t,a){var n=(n=D.current)?Ri(n):null;if(!n)throw Error(v(446));switch(e){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(l=za(t.href),t=Ft(n).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){e=za(t.href);var i=Ft(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(pn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Cl.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},Cl.set(e,t),i||Ih(n,e,t,c.state))),l&&a===null)throw Error(v(528,""));return c}if(l&&a!==null)throw Error(v(529,""));return null;case"script":return l=t.async,t=t.src,typeof t=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ma(t),t=Ft(n).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(v(444,e))}}function za(e){return'href="'+xl(e)+'"'}function pn(e){return'link[rel="stylesheet"]['+e+"]"}function cd(e){return H({},e,{"data-precedence":e.precedence,precedence:null})}function Ih(e,l,t,a){e.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=e.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),Je(l,"link",t),Le(l),e.head.appendChild(l))}function Ma(e){return'[src="'+xl(e)+'"]'}function bn(e){return"script[async]"+e}function sd(e,l,t){if(l.count++,l.instance===null)switch(l.type){case"style":var a=e.querySelector('style[data-href~="'+xl(t.href)+'"]');if(a)return l.instance=a,Le(a),a;var n=H({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Le(a),Je(a,"style",n),Bi(a,t.precedence,e),l.instance=a;case"stylesheet":n=za(t.href);var i=e.querySelector(pn(n));if(i)return l.state.loading|=4,l.instance=i,Le(i),i;a=cd(t),(n=Cl.get(n))&&as(a,n),i=(e.ownerDocument||e).createElement("link"),Le(i);var c=i;return c._p=new Promise(function(s,f){c.onload=s,c.onerror=f}),Je(i,"link",a),l.state.loading|=4,Bi(i,t.precedence,e),l.instance=i;case"script":return i=Ma(t.src),(n=e.querySelector(bn(i)))?(l.instance=n,Le(n),n):(a=t,(n=Cl.get(i))&&(a=H({},t),ns(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Le(n),Je(n,"link",a),e.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(v(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Bi(a,t.precedence,e));return l.instance}function Bi(e,l,t){for(var a=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var s=a[c];if(s.dataset.precedence===l)i=s;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(l=t.nodeType===9?t.head:t,l.insertBefore(e,l.firstChild))}function as(e,l){e.crossOrigin==null&&(e.crossOrigin=l.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=l.referrerPolicy),e.title==null&&(e.title=l.title)}function ns(e,l){e.crossOrigin==null&&(e.crossOrigin=l.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=l.referrerPolicy),e.integrity==null&&(e.integrity=l.integrity)}var Hi=null;function rd(e,l,t){if(Hi===null){var a=new Map,n=Hi=new Map;n.set(t,a)}else n=Hi,a=n.get(t),a||(a=new Map,n.set(t,a));if(a.has(e))return a;for(a.set(e,null),t=t.getElementsByTagName(e),n=0;n<t.length;n++){var i=t[n];if(!(i[Ra]||i[Ze]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(l)||"";c=e+c;var s=a.get(c);s?s.push(i):a.set(c,[i])}}return a}function od(e,l,t){e=e.ownerDocument||e,e.head.insertBefore(t,l==="title"?e.querySelector("head > title"):null)}function Ph(e,l,t){if(t===1||l.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return e=l.disabled,typeof l.precedence=="string"&&e==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function fd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ev(e,l,t,a){if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=za(a.href),i=l.querySelector(pn(n));if(i){l=i._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(e.count++,e=Gi.bind(e),l.then(e,e)),t.state.loading|=4,t.instance=i,Le(i);return}i=l.ownerDocument||l,a=cd(a),(n=Cl.get(n))&&as(a,n),i=i.createElement("link"),Le(i);var c=i;c._p=new Promise(function(s,f){c.onload=s,c.onerror=f}),Je(i,"link",a),t.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(t,l),(l=t.state.preload)&&(t.state.loading&3)===0&&(e.count++,t=Gi.bind(e),l.addEventListener("load",t),l.addEventListener("error",t))}}var is=0;function lv(e,l){return e.stylesheets&&e.count===0&&Yi(e,e.stylesheets),0<e.count||0<e.imgCount?function(t){var a=setTimeout(function(){if(e.stylesheets&&Yi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+l);0<e.imgBytes&&is===0&&(is=62500*Bh());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>is?50:800)+l);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Gi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qi=null;function Yi(e,l){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qi=new Map,l.forEach(tv,e),qi=null,Gi.call(e))}function tv(e,l){if(!(l.state.loading&4)){var t=qi.get(e);if(t)var a=t.get(null);else{t=new Map,qi.set(e,t);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(t.set(c.dataset.precedence,c),a=c)}a&&t.set(null,a)}n=l.instance,c=n.getAttribute("data-precedence"),i=t.get(c)||a,i===a&&t.set(null,n),t.set(c,n),this.count++,a=Gi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),l.state.loading|=4}}var Sn={$$typeof:F,Provider:null,Consumer:null,_currentValue:b,_currentValue2:b,_threadCount:0};function av(e,l,t,a,n,i,c,s,f){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eu(0),this.hiddenUpdates=eu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function dd(e,l,t,a,n,i,c,s,f,g,T,z){return e=new av(e,l,t,c,f,g,T,z,s),l=1,i===!0&&(l|=24),i=hl(3,null,null,l),e.current=i,i.stateNode=e,l=qu(),l.refCount++,e.pooledCache=l,l.refCount++,i.memoizedState={element:a,isDehydrated:t,cache:l},Lu(i),e}function md(e){return e?(e=ia,e):ia}function hd(e,l,t,a,n,i){n=md(n),a.context===null?a.context=n:a.pendingContext=n,a=ot(l),a.payload={element:t},i=i===void 0?null:i,i!==null&&(a.callback=i),t=ft(e,a,l),t!==null&&(sl(t,e,l),$a(t,e,l))}function vd(e,l){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<l?t:l}}function us(e,l){vd(e,l),(e=e.alternate)&&vd(e,l)}function yd(e){if(e.tag===13||e.tag===31){var l=Ut(e,67108864);l!==null&&sl(l,e,67108864),us(e,67108864)}}function gd(e){if(e.tag===13||e.tag===31){var l=bl();l=lu(l);var t=Ut(e,l);t!==null&&sl(t,e,l),us(e,l)}}var Xi=!0;function nv(e,l,t,a){var n=j.T;j.T=null;var i=_.p;try{_.p=2,cs(e,l,t,a)}finally{_.p=i,j.T=n}}function iv(e,l,t,a){var n=j.T;j.T=null;var i=_.p;try{_.p=8,cs(e,l,t,a)}finally{_.p=i,j.T=n}}function cs(e,l,t,a){if(Xi){var n=ss(a);if(n===null)Kc(e,l,a,Qi,t),bd(e,a);else if(cv(n,e,l,t,a))a.stopPropagation();else if(bd(e,a),l&4&&-1<uv.indexOf(e)){for(;n!==null;){var i=Jt(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Mt(i.pendingLanes);if(c!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;c;){var f=1<<31-dl(c);s.entanglements[1]|=f,c&=~f}Hl(i),(fe&6)===0&&(Ti=ol()+500,hn(0))}}break;case 31:case 13:s=Ut(i,2),s!==null&&sl(s,i,2),Ni(),us(i,2)}if(i=ss(a),i===null&&Kc(e,l,a,Qi,t),i===n)break;n=i}n!==null&&a.stopPropagation()}else Kc(e,l,a,null,t)}}function ss(e){return e=ou(e),rs(e)}var Qi=null;function rs(e){if(Qi=null,e=Kt(e),e!==null){var l=L(e);if(l===null)e=null;else{var t=l.tag;if(t===13){if(e=B(l),e!==null)return e;e=null}else if(t===31){if(e=k(l),e!==null)return e;e=null}else if(t===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;e=null}else l!==e&&(e=null)}}return Qi=e,null}function pd(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(kd()){case As:return 2;case Ns:return 8;case On:case Vd:return 32;case Es:return 268435456;default:return 32}default:return 32}}var os=!1,jt=null,Tt=null,At=null,xn=new Map,jn=new Map,Nt=[],uv="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 bd(e,l){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":xn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":jn.delete(l.pointerId)}}function Tn(e,l,t,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:l,domEventName:t,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},l!==null&&(l=Jt(l),l!==null&&yd(l)),e):(e.eventSystemFlags|=a,l=e.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),e)}function cv(e,l,t,a,n){switch(l){case"focusin":return jt=Tn(jt,e,l,t,a,n),!0;case"dragenter":return Tt=Tn(Tt,e,l,t,a,n),!0;case"mouseover":return At=Tn(At,e,l,t,a,n),!0;case"pointerover":var i=n.pointerId;return xn.set(i,Tn(xn.get(i)||null,e,l,t,a,n)),!0;case"gotpointercapture":return i=n.pointerId,jn.set(i,Tn(jn.get(i)||null,e,l,t,a,n)),!0}return!1}function Sd(e){var l=Kt(e.target);if(l!==null){var t=L(l);if(t!==null){if(l=t.tag,l===13){if(l=B(t),l!==null){e.blockedOn=l,Ds(e.priority,function(){gd(t)});return}}else if(l===31){if(l=k(t),l!==null){e.blockedOn=l,Ds(e.priority,function(){gd(t)});return}}else if(l===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Li(e){if(e.blockedOn!==null)return!1;for(var l=e.targetContainers;0<l.length;){var t=ss(e.nativeEvent);if(t===null){t=e.nativeEvent;var a=new t.constructor(t.type,t);ru=a,t.target.dispatchEvent(a),ru=null}else return l=Jt(t),l!==null&&yd(l),e.blockedOn=t,!1;l.shift()}return!0}function xd(e,l,t){Li(e)&&t.delete(l)}function sv(){os=!1,jt!==null&&Li(jt)&&(jt=null),Tt!==null&&Li(Tt)&&(Tt=null),At!==null&&Li(At)&&(At=null),xn.forEach(xd),jn.forEach(xd)}function wi(e,l){e.blockedOn===l&&(e.blockedOn=null,os||(os=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,sv)))}var Zi=null;function jd(e){Zi!==e&&(Zi=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Zi===e&&(Zi=null);for(var l=0;l<e.length;l+=3){var t=e[l],a=e[l+1],n=e[l+2];if(typeof a!="function"){if(rs(a||t)===null)continue;break}var i=Jt(t);i!==null&&(e.splice(l,3),l-=3,sc(i,{pending:!0,data:n,method:t.method,action:a},a,n))}}))}function Ca(e){function l(f){return wi(f,e)}jt!==null&&wi(jt,e),Tt!==null&&wi(Tt,e),At!==null&&wi(At,e),xn.forEach(l),jn.forEach(l);for(var t=0;t<Nt.length;t++){var a=Nt[t];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Nt.length&&(t=Nt[0],t.blockedOn===null);)Sd(t),t.blockedOn===null&&Nt.shift();if(t=(e.ownerDocument||e).$$reactFormReplay,t!=null)for(a=0;a<t.length;a+=3){var n=t[a],i=t[a+1],c=n[tl]||null;if(typeof i=="function")c||jd(t);else if(c){var s=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[tl]||null)s=c.formAction;else if(rs(n)!==null)continue}else s=c.action;typeof s=="function"?t[a+1]=s:(t.splice(a,3),a-=3),jd(t)}}}function Td(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function l(){n!==null&&(n(),n=null),a||setTimeout(t,20)}function t(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(t,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),n!==null&&(n(),n=null)}}}function fs(e){this._internalRoot=e}ki.prototype.render=fs.prototype.render=function(e){var l=this._internalRoot;if(l===null)throw Error(v(409));var t=l.current,a=bl();hd(t,a,e,l,null,null)},ki.prototype.unmount=fs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var l=e.containerInfo;hd(e.current,2,null,e,null,null),Ni(),l[Vt]=null}};function ki(e){this._internalRoot=e}ki.prototype.unstable_scheduleHydration=function(e){if(e){var l=_s();e={blockedOn:null,target:e,priority:l};for(var t=0;t<Nt.length&&l!==0&&l<Nt[t].priority;t++);Nt.splice(t,0,e),t===0&&Sd(e)}};var Ad=M.version;if(Ad!=="19.2.4")throw Error(v(527,Ad,"19.2.4"));_.findDOMNode=function(e){var l=e._reactInternals;if(l===void 0)throw typeof e.render=="function"?Error(v(188)):(e=Object.keys(e).join(","),Error(v(268,e)));return e=A(l),e=e!==null?V(e):null,e=e===null?null:e.stateNode,e};var rv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{_a=Vi.inject(rv),fl=Vi}catch{}}return Nn.createRoot=function(e,l){if(!U(e))throw Error(v(299));var t=!1,a="",n=Oo,i=_o,c=Do;return l!=null&&(l.unstable_strictMode===!0&&(t=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError)),l=dd(e,1,!1,null,null,t,a,null,n,i,c,Td),e[Vt]=l.current,Vc(e),new fs(l)},Nn.hydrateRoot=function(e,l,t){if(!U(e))throw Error(v(299));var a=!1,n="",i=Oo,c=_o,s=Do,f=null;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&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.formState!==void 0&&(f=t.formState)),l=dd(e,1,!0,l,t??null,a,n,f,i,c,s,Td),l.context=md(null),t=l.current,a=bl(),a=lu(a),n=ot(a),n.callback=null,ft(t,n,a),t=a,l.current.lanes=t,Ua(l,t),Hl(l),e[Vt]=l.current,Vc(e),new ki(l)},Nn.version="19.2.4",Nn}var Rd;function Sv(){if(Rd)return hs.exports;Rd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(M){console.error(M)}}return r(),hs.exports=bv(),hs.exports}var xv=Sv();const jv=Xd(xv),Tv=[{accentClass:"ghost-red",color:"#FF1744",title:"Thread Overload",problem:"Tired of replying to the same questions across dozens of Slack threads, emails, and docs? Context is scattered everywhere and you're the bottleneck.",solutionTitle:"Auto-reply in Slack with the right project context",solutionDetail:"Replies land in-thread with the docs, notes, and decisions Pac-Man has already saved for that project."},{accentClass:"ghost-pink",color:"#FF80AB",animationDelay:"0.5s",title:"Knowledge Loss",problem:"When you're on PTO or leave the company, your team struggles with the institutional knowledge you've built. Tedious handover docs go stale on day one.",solutionTitle:"Keep institutional knowledge available when people are out",solutionDetail:"Pac-Man keeps context structured, current, and ready for the next teammate instead of trapped in someone else’s head."},{accentClass:"ghost-cyan",color:"#00E5FF",animationDelay:"1s",title:"Context Confusion",problem:"Is Claude or Codex mixing project-level context against each other? Giving answers about Project A when you're asking about Project B?",solutionTitle:"Isolate context by project so answers stay grounded",solutionDetail:"Each workspace gets its own context boundary, so project memory does not leak across teams or threads."},{accentClass:"ghost-orange",color:"#FFAB40",animationDelay:"1.5s",title:"Decision Archaeology",problem:"Can't remember why a decision was made? The rationale is buried across Slack threads, PR comments, commit messages, and meeting notes that nobody can find.",solutionTitle:"Surface the why behind past decisions on demand",solutionDetail:"Pac-Man connects discussions, commits, and notes so the reasoning behind old calls is searchable when it matters."}];function Av({color:r,style:M}){return u.jsx("div",{className:"ghost-icon",style:M,children:u.jsxs("svg",{viewBox:"0 0 64 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ghost-svg",children:[u.jsx("path",{d:"M32 4C17.088 4 5 16.088 5 31v29l6-8 7 8 7-8 7 8 7-8 7 8 7-8 6 8V31C59 16.088 46.912 4 32 4z",fill:r,opacity:"0.9"}),u.jsx("ellipse",{cx:"23",cy:"28",rx:"6",ry:"7",fill:"white"}),u.jsx("ellipse",{cx:"41",cy:"28",rx:"6",ry:"7",fill:"white"}),u.jsx("ellipse",{cx:"25",cy:"29",rx:"3",ry:"3.5",fill:"#111"}),u.jsx("ellipse",{cx:"43",cy:"29",rx:"3",ry:"3.5",fill:"#111"})]})})}function Nv(){return u.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:"var(--pac-yellow)",boxShadow:"0 0 6px var(--pac-yellow-glow)",verticalAlign:"middle",flexShrink:0}})}function Ev({onStart:r}){return u.jsxs("div",{className:"landing",children:[u.jsxs("div",{className:"landing-hero",children:[u.jsxs("div",{className:"pac-scene",children:[u.jsx("span",{className:"pac-trail-dot eaten"}),u.jsx("span",{className:"pac-trail-dot eaten"}),u.jsx("span",{className:"pac-trail-dot eaten"}),u.jsx("div",{className:"pacman-char"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot power"})]}),u.jsx("h1",{className:"landing-brand",children:"PACMAN"}),u.jsx("p",{className:"landing-subtitle",children:"Personal Assistant Context Manager"}),u.jsx("p",{className:"landing-tagline",children:"Feed your AI the context it craves. Chomp through scattered knowledge, swallow integrations whole, and power up your workflow."})]}),u.jsxs("div",{className:"ghost-section",children:[u.jsx("h2",{className:"section-heading",children:"These ghosts haunting your workflow?"}),u.jsx("div",{className:"ghost-grid",children:Tv.map(M=>u.jsxs("div",{className:`ghost-card ${M.accentClass}`,children:[u.jsxs("div",{className:"ghost-card-top",children:[u.jsx(Av,{color:M.color,style:{animationDelay:M.animationDelay}}),u.jsxs("div",{className:"ghost-card-copy",children:[u.jsx("h3",{children:M.title}),u.jsx("p",{className:"ghost-problem",children:M.problem})]})]}),u.jsxs("div",{className:"ghost-solution",children:[u.jsxs("div",{className:"ghost-solution-kicker",children:[u.jsx(Nv,{}),u.jsx("span",{children:"Pac-Man fix"})]}),u.jsx("p",{className:"ghost-solution-title",children:M.solutionTitle}),u.jsx("p",{className:"ghost-solution-detail",children:M.solutionDetail})]})]},M.title))})]}),u.jsxs("div",{className:"comparison-section",children:[u.jsx("h2",{className:"section-heading",children:"Pac-Man eats the confusion"}),u.jsxs("div",{className:"comparison-grid",children:[u.jsxs("div",{className:"comparison-card before",children:[u.jsx("span",{className:"comparison-label",children:"BEFORE"}),u.jsxs("div",{className:"mock-chat",children:[u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar user",children:"N"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsx("div",{className:"mock-msg-name",style:{color:"var(--text-primary)"},children:"Nick"}),u.jsxs("div",{className:"mock-msg-text",children:[u.jsx("span",{style:{color:"var(--ghost-cyan)"},children:"@Personal Assistant"})," ","who is our biggest competitor based on our study"]})]})]}),u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar bot",children:"PA"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsxs("div",{className:"mock-msg-name",style:{color:"var(--text-secondary)"},children:["Personal Assistant ",u.jsx("span",{className:"badge",children:"APP"})]}),u.jsxs("div",{className:"mock-msg-text dim",children:["I can't answer confidently from the current context.",u.jsx("br",{}),u.jsx("br",{}),"Missing context: Could not determine which project the Slack thread is asking about.",u.jsx("br",{}),u.jsx("br",{}),"Best escalation path: Mukul."]})]})]})]})]}),u.jsx("div",{className:"comparison-arrow",children:u.jsxs("div",{className:"comparison-arrow-inner",children:[u.jsx("div",{className:"pacman-char pacman-char-small"}),u.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--pac-yellow)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("polyline",{points:"9 18 15 12 9 6"})})]})}),u.jsxs("div",{className:"comparison-card after",children:[u.jsx("span",{className:"comparison-label",children:"AFTER"}),u.jsxs("div",{className:"mock-chat",children:[u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar user",children:"N"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsx("div",{className:"mock-msg-name",style:{color:"var(--text-primary)"},children:"Nick"}),u.jsxs("div",{className:"mock-msg-text",children:[u.jsx("span",{style:{color:"var(--ghost-cyan)"},children:"@Personal Assistant"})," ","who is our biggest competitor based on our study"]})]})]}),u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar bot",children:"PA"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsxs("div",{className:"mock-msg-name",style:{color:"var(--text-secondary)"},children:["Personal Assistant ",u.jsx("span",{className:"badge",children:"APP"})]}),u.jsxs("div",{className:"mock-msg-text bright",children:["Based on our competitive landscape research, ",u.jsx("strong",{children:"CrowdRiff"})," is identified as our biggest competitor. They have raised $11.1M and are the closest pure-play for travel UGC. Other notable players include Emplifi, Flowbox, Social Native, and Taggbox..."]})]})]})]})]})]})]}),u.jsxs("div",{className:"landing-cta",children:[u.jsxs("button",{className:"btn-start",onClick:r,children:[u.jsx("div",{className:"pacman-char pacman-char-small"}),"Start Setup"]}),u.jsx("p",{style:{marginTop:"1rem",fontSize:"0.75rem",color:"var(--text-dim)",fontFamily:"var(--font-mono)"},children:"5 steps · ~3 minutes · fully reversible"})]})]})}const zv="https://optimus.mem2ai.com/v1/events/counters";function Ki(r,M){r&&fetch(zv,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_id:r,event_name:M})}).then(O=>O.json()).then(O=>console.log(`[track] ${M}:`,O)).catch(O=>console.warn(`[track] ${M} failed:`,O))}const Mv=[{value:"software-engineer",label:"Software Engineer",desc:"Code reviews, architecture, debugging",color:"#6366f1"},{value:"product-manager",label:"Product Manager",desc:"Roadmaps, specs, stakeholder alignment",color:"#a855f7"},{value:"engineering-manager",label:"Engineering Manager",desc:"Team health, delivery, hiring",color:"#14b8a6"},{value:"devops",label:"DevOps Engineer",desc:"Infrastructure, CI/CD, monitoring",color:"#f97316"}],Cv=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Ov({state:r,update:M,onNext:O}){const v=r.email.trim(),U=r.name.trim(),L=Cv.test(v);return ue.useEffect(()=>{fetch(`/api/responsibilities/${r.profileType}`).then(B=>B.json()).then(B=>{B.responsibilities&&M({responsibilities:B.responsibilities})}).catch(()=>{})},[r.profileType]),u.jsxs("div",{className:"step-content",children:[u.jsx("h1",{children:"Meet your assistant"}),u.jsx("h2",{children:"A few details so Pac-Man knows what to chomp"}),u.jsxs("div",{className:"form-card",children:[u.jsxs("div",{className:"form-row",style:{marginBottom:"1rem"},children:[u.jsxs("div",{className:"form-field",children:[u.jsx("label",{className:"field-label",children:"Your name"}),u.jsx("input",{type:"text",value:r.name,onChange:B=>M({name:B.target.value}),placeholder:"Jane Smith"})]}),u.jsxs("div",{className:"form-field",children:[u.jsx("label",{className:"field-label",children:"Email"}),u.jsx("input",{type:"email",value:r.email,onChange:B=>M({email:B.target.value}),placeholder:"jane@company.com",required:!0,"aria-invalid":!!v&&!L}),v&&!L&&u.jsx("span",{className:"field-error",children:"Enter a valid work email to continue."})]})]}),u.jsxs("div",{className:"form-field",children:[u.jsx("label",{className:"field-label",children:"Assistant name"}),u.jsx("input",{type:"text",value:r.assistantName,onChange:B=>M({assistantName:B.target.value}),placeholder:"Atlas"})]})]}),u.jsxs("div",{className:"form-section",children:[u.jsx("label",{className:"field-label",children:"Your role"}),u.jsx("div",{className:"profile-grid",children:Mv.map(B=>u.jsxs("div",{className:`profile-card ${r.profileType===B.value?"selected":""}`,onClick:()=>M({profileType:B.value}),children:[u.jsx("div",{className:"profile-indicator",style:{background:B.color}}),u.jsxs("div",{className:"profile-info",children:[u.jsx("span",{className:"profile-name",children:B.label}),u.jsx("span",{className:"profile-desc",children:B.desc})]})]},B.value))})]}),u.jsx("div",{className:"btn-group",children:u.jsx("button",{className:"btn-primary",onClick:()=>{Ki(r.email,"onboarding_started"),O()},disabled:!U||!L,children:"Continue"})})]})}const Bd={"software-engineer":{ids:["slack","github"],message:"Slack and GitHub are recommended for Software Engineers — stay on top of PRs, code reviews, and team discussions."},"product-manager":{ids:["gdrive","slack"],message:"Google Drive and Slack are recommended for Product Managers — sync roadmaps, specs, and stakeholder threads."},"engineering-manager":{ids:["slack","github"],message:"Slack and GitHub are recommended for Engineering Managers — track team activity, delivery, and discussions."},devops:{ids:["github","gitlab"],message:"GitHub and GitLab are recommended for DevOps Engineers — monitor pipelines, infra changes, and incidents."}},_e=r=>u.jsx("code",{style:{display:"inline-block",background:"var(--bg-inset)",color:"var(--pac-yellow)",borderRadius:4,padding:"1px 7px",fontSize:"0.76rem",fontFamily:"var(--font-mono)",margin:"0 3px 3px 0",border:"1px solid rgba(255, 215, 0, 0.12)"},children:r},r),Be=r=>u.jsx("strong",{style:{color:"var(--text-primary)"},children:r}),Me=r=>u.jsx("li",{style:{marginBottom:"0.5rem"},children:r}),En=r=>u.jsx("ol",{style:{paddingLeft:"1.1rem",margin:0,lineHeight:1.7,color:"var(--text-secondary)",fontSize:"0.83rem"},children:r}),_v=[{id:"slack",name:"Slack",desc:"Connect a shared Slack channel for instant project-aware replies",color:"#4A154B",initials:"Sl",fields:[{key:"botToken",label:"Bot Token",placeholder:"xoxb-...",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[Me(u.jsxs(u.Fragment,{children:["Go to ",Be("api.slack.com/apps")," → Create New App → From scratch"]})),Me(u.jsxs(u.Fragment,{children:["Under ",Be("Socket Mode")," enable Socket Mode, create an app token with scope ",_e("connections:write"),", and copy the ",Be("App-Level Token")," (starts with ",_e("xapp-"),")"]})),Me(u.jsxs(u.Fragment,{children:["Under ",Be("OAuth & Permissions")," add bot scopes: ",_e("channels:history")," ",_e("channels:read")," ",_e("groups:history")," ",_e("groups:read")," ",_e("im:history")," ",_e("app_mentions:read")," ",_e("chat:write")]})),Me(u.jsxs(u.Fragment,{children:["Under ",Be("Event Subscriptions")," enable bot events: ",_e("message.channels")," and/or ",_e("message.groups")," plus ",_e("app_mention")]})),Me(u.jsxs(u.Fragment,{children:["Click ",Be("Install to Workspace")," and copy the ",Be("Bot User OAuth Token")," (starts with ",_e("xoxb-"),")"]})),Me(u.jsxs(u.Fragment,{children:["Invite the bot to any channel: ",_e("/invite @YourAppName")]}))]}))},{id:"gmail",name:"Gmail",desc:"Pull email thread summaries into your context",color:"#EA4335",initials:"Gm",fields:[{key:"clientId",label:"Client ID",placeholder:"your-client-id.apps.googleusercontent.com"},{key:"clientSecret",label:"Client Secret",placeholder:"your-client-secret",type:"password"},{key:"refreshToken",label:"Refresh Token",placeholder:"your-refresh-token",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[Me(u.jsx(u.Fragment,{children:"Use the same Google Cloud project from your Storage setup, or create a new one"})),Me(u.jsxs(u.Fragment,{children:["Enable the ",Be("Gmail API")," in ",Be("APIs & Services → Library")]})),Me(u.jsxs(u.Fragment,{children:["Go to ",Be("developers.google.com/oauthplayground")," → settings gear → check ",Be("Use your own OAuth credentials")," → enter Client ID & Secret"]})),Me(u.jsxs(u.Fragment,{children:["In Step 1 select ",_e("https://www.googleapis.com/auth/gmail.readonly")," → Authorise APIs"]})),Me(u.jsxs(u.Fragment,{children:["In Step 2 click ",Be("Exchange authorisation code for tokens")," → copy the ",Be("Refresh token")]}))]}))},{id:"github",name:"GitHub",desc:"Track your commits, PRs, issues, and all comments",color:"#24292F",initials:"GH",fields:[{key:"token",label:"Personal Access Token",placeholder:"ghp_...",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[Me(u.jsxs(u.Fragment,{children:["Go to ",Be("github.com → Settings → Developer settings → Personal access tokens → Tokens (classic)")]})),Me(u.jsxs(u.Fragment,{children:["Click ",Be("Generate new token (classic)")]})),Me(u.jsxs(u.Fragment,{children:["Select scopes — ",_e("repo")," ",_e("read:user")," ",_e("user:email")," ",_e("notifications")]})),Me(u.jsxs(u.Fragment,{children:["Click ",Be("Generate token")," and copy it"]}))]}))},{id:"gitlab",name:"GitLab",desc:"Sync MRs, issues, and activity events",color:"#FC6D26",initials:"GL",fields:[{key:"token",label:"Personal Access Token",placeholder:"glpat-...",type:"password"},{key:"baseUrl",label:"Base URL",placeholder:"https://gitlab.com/api/v4",optional:!0}],steps:En(u.jsxs(u.Fragment,{children:[Me(u.jsxs(u.Fragment,{children:["Go to ",Be("gitlab.com → User Settings → Access Tokens")]})),Me(u.jsxs(u.Fragment,{children:["Create a token with scopes: ",_e("read_api")," ",_e("read_repository")]})),Me(u.jsx(u.Fragment,{children:"Copy the token (shown only once)"})),Me(u.jsx(u.Fragment,{children:"If self-hosted, enter your API base URL"}))]}))},{id:"gdrive",name:"Google Drive",desc:"Extract content from documents in your Drive",color:"#4285F4",initials:"GD",fields:[{key:"clientId",label:"Client ID",placeholder:"your-client-id.apps.googleusercontent.com"},{key:"clientSecret",label:"Client Secret",placeholder:"your-client-secret",type:"password"},{key:"refreshToken",label:"Refresh Token",placeholder:"your-refresh-token",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[Me(u.jsx(u.Fragment,{children:"Reuse the Client ID and Secret from the Storage step if you already set up Google Drive storage"})),Me(u.jsxs(u.Fragment,{children:["Go to ",Be("developers.google.com/oauthplayground")," → settings → ",Be("Use your own OAuth credentials")]})),Me(u.jsxs(u.Fragment,{children:["In Step 1 select ",_e("https://www.googleapis.com/auth/drive.readonly")," → Authorise"]})),Me(u.jsxs(u.Fragment,{children:["In Step 2 click ",Be("Exchange authorisation code for tokens")," → copy the ",Be("Refresh token")]}))]}))},{id:"gchat",name:"Google Chat",desc:"Sync space messages into your context",color:"#00AC47",initials:"GC",fields:[],comingSoon:!0,steps:null}];function Hd(r){const M=r.trim().replace(/[\\/]+$/,"");if(!M)return"";const v=(M.split(/[\\/]/).filter(Boolean).pop()??"").replace(/\.[^.]+$/,"").replace(/[-_]+/g," ").replace(/\s+/g," ").trim();return v?v.replace(/\b\w/g,U=>U.toUpperCase()):""}function Dv({state:r,update:M,onNext:O,onPrev:v}){const[U,L]=ue.useState(null),[B,k]=ue.useState({}),[G,A]=ue.useState({}),[V,H]=ue.useState(null),[X,de]=ue.useState(""),je=Bd[r.profileType]||Bd["software-engineer"],ge=b=>je.ids.includes(b),he=b=>r.integrations.includes(b),oe=b=>r.integrationCredentials[b]??{},W=b=>{k(R=>({...R,[b]:"idle"})),A(R=>({...R,[b]:""})),L(b)},F=b=>{const R={integrations:r.integrations.filter(p=>p!==b),integrationCredentials:{...r.integrationCredentials,[b]:{}}};b==="slack"&&Object.assign(R,{slackAppToken:"",slackChannelId:"",slackChannelName:"",slackReviewerUserId:"",slackReviewerDisplayName:r.name,slackReviewMode:"auto_send",slackGenerationEnabled:!0,slackDefaultProvider:"openai",slackDefaultModel:r.openAIModel||"gpt-4.1-mini"}),M(R),k(p=>({...p,[b]:"idle"})),A(p=>({...p,[b]:""})),L(null)},ce=(b,R,p)=>{k(o=>({...o,[b]:"idle"})),M({integrationCredentials:{...r.integrationCredentials,[b]:{...oe(b),[R]:p}}})},me=(b,R)=>{R!=null&&R.invalidateValidation&&k(p=>({...p,slack:"idle"})),M(b)},Ee=b=>{var p;if(b.id==="slack")return!!((p=oe("slack").botToken)!=null&&p.trim()&&r.slackAppToken.trim());const R=oe(b.id);return b.fields.filter(o=>!o.optional).every(o=>(R[o.key]??"").trim()!=="")},Q=b=>b==="slack"?"Connecting to Slack API, verifying socket mode & provider keys":b==="github"?"Authenticating with GitHub and checking token scopes":b==="gitlab"?"Authenticating with GitLab and verifying access":b==="gmail"?"Verifying Gmail API credentials and refresh token":b==="gdrive"?"Checking Google Drive API access":"Verifying credentials",ee=async b=>{k(R=>({...R,[b.id]:"validating"})),A(R=>({...R,[b.id]:Q(b.id)}));try{if(b.id==="slack"){const m=await(await fetch("/api/validate-slack-runtime",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({botToken:oe("slack").botToken,appToken:r.slackAppToken,generationEnabled:r.slackGenerationEnabled,providers:{openai:{apiKey:r.openAIApiKey,model:r.openAIModel},anthropic:{apiKey:r.anthropicApiKey,model:r.anthropicModel}}})})).json();if(!m.valid){k(N=>({...N,slack:"invalid"})),A(N=>({...N,slack:m.error??"Slack validation failed"}));return}me({slackReviewerDisplayName:r.name}),k(N=>({...N,slack:"valid"})),A(N=>({...N,slack:m.info??"Slack connected"}));return}const p=await(await fetch("/api/validate-integration",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:b.id,credentials:oe(b.id)})})).json();p.valid?(k(o=>({...o,[b.id]:"valid"})),A(o=>({...o,[b.id]:p.info??""}))):(k(o=>({...o,[b.id]:"invalid"})),A(o=>({...o,[b.id]:p.error??"Validation failed"})))}catch(R){k(p=>({...p,[b.id]:"invalid"})),A(p=>({...p,[b.id]:String(R)}))}},ze=b=>{const R=B[b.id]??"idle";if(b.id!=="slack")return R==="valid";const p=!r.slackGenerationEnabled||(r.slackDefaultProvider==="openai"?!!r.openAIApiKey.trim()&&!!r.openAIModel.trim():!!r.anthropicApiKey.trim()&&!!r.anthropicModel.trim());return R==="valid"&&p},ll=()=>(B.slack??"idle")!=="valid"?"Validate Slack first":r.slackGenerationEnabled&&r.slackDefaultProvider==="openai"&&!r.openAIApiKey.trim()?"Add an OpenAI API key or disable draft generation":r.slackGenerationEnabled&&r.slackDefaultProvider==="anthropic"&&!r.anthropicApiKey.trim()?"Add a Claude API key or disable draft generation":"",Fe=b=>{he(b)||(M({integrations:[...r.integrations,b]}),Ki(r.email,`integration_${b}_connected`)),L(null)},Qe=()=>{M({localFolders:[...r.localFolders,{path:"",project:""}]})},$e=(b,R)=>{const p=[...r.localFolders];p[b]={...p[b],...R},M({localFolders:p})},rl=b=>{M({localFolders:r.localFolders.filter((R,p)=>p!==b)})},Ie=async b=>{var p,o;H(b),de("");const R=performance.now();try{const m=await fetch("/api/pick-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultPath:((p=r.localFolders[b])==null?void 0:p.path)||r.localPath,purpose:"local-source"})});if(!m.ok)throw new Error(`Server returned ${m.status}`);const N=await m.json();if(N.error)throw new Error(N.error);if(console.info(`[onboarding] local source picker resolved in ${Math.round(performance.now()-R)}ms`),!N.cancelled&&N.path){const C=((o=r.localFolders[b])==null?void 0:o.project.trim())??"";$e(b,{path:N.path,...C?{}:{project:Hd(N.path)}})}}catch(m){const N=m instanceof Error?m.message:String(m);de(N||"Could not open folder picker. Make sure the backend is running (pacman init)."),setTimeout(()=>de(""),5e3)}finally{H(null)}},j=[...new Set(r.localFolders.map(b=>b.project).filter(Boolean))],_=r.integrations.length;return u.jsxs("div",{className:"step-content",children:[u.jsxs("div",{className:"integration-section-header",children:[u.jsxs("div",{children:[u.jsx("h1",{style:{marginBottom:"0.25rem"},children:"Integrations"}),u.jsx("h2",{style:{margin:0},children:"Feed Pac-Man your tools and documents"})]}),_>0&&u.jsxs("span",{className:"integration-count",children:[_," connected"]})]}),u.jsxs("div",{className:"recommendation-banner",children:[u.jsx("div",{className:"pacman-char pacman-char-small"}),u.jsx("span",{children:je.message})]}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.625rem",marginBottom:"0.5rem"},children:_v.map(b=>{const R=he(b.id),p=U===b.id,o=B[b.id]??"idle",m=G[b.id]??"",N=Ee(b)&&o!=="validating",C=ze(b),K=ge(b.id);return u.jsxs("div",{style:{borderRadius:"var(--radius)",border:`1px solid ${R?"rgba(0, 255, 136, 0.15)":p?"var(--border-hover)":"var(--border)"}`,background:R?"linear-gradient(to right, rgba(0, 255, 136, 0.03), var(--bg-surface))":p?"var(--bg-surface)":"var(--bg-input)",overflow:"hidden",transition:"border-color 0.2s"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1.25rem"},children:[u.jsx("div",{style:{width:40,height:40,borderRadius:"var(--radius-sm)",background:b.color,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:"0.75rem",fontFamily:"var(--font-mono)",color:"#fff",flexShrink:0,opacity:b.comingSoon?.35:1},children:b.initials}),u.jsxs("div",{style:{flex:1},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[u.jsx("span",{style:{color:"var(--text-primary)",fontWeight:600,fontSize:"0.9rem"},children:b.name}),R&&u.jsx("span",{style:{fontSize:"0.7rem",background:"var(--success-subtle)",color:"var(--success)",padding:"1px 8px",borderRadius:99,fontWeight:600},children:"Connected"}),K&&!R&&u.jsx("span",{className:"recommended-badge",children:"RECOMMENDED"}),b.comingSoon&&u.jsx("span",{style:{fontSize:"0.7rem",background:"var(--bg-elevated)",color:"var(--text-dim)",padding:"1px 8px",borderRadius:99},children:"Coming soon"})]}),u.jsx("div",{style:{color:"var(--text-dim)",fontSize:"0.78rem",marginTop:"2px"},children:b.desc})]}),!b.comingSoon&&u.jsx("div",{style:{display:"flex",gap:"0.5rem",flexShrink:0},children:R?u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>W(b.id),style:Gd,children:"Edit"}),u.jsx("button",{onClick:()=>F(b.id),style:{...Gd,color:"var(--error)",borderColor:"rgba(255, 68, 102, 0.2)"},children:"Disconnect"})]}):u.jsx("button",{onClick:()=>W(b.id),style:{...Uv,background:p?"var(--pac-yellow-dim)":"var(--bg-elevated)",borderColor:p?"var(--pac-yellow)":"var(--border)",color:p?"var(--pac-yellow)":"var(--text-secondary)"},children:p?"Setting up...":"+ Connect"})})]}),p&&u.jsxs("div",{style:{borderTop:"1px solid var(--border)",padding:"1.25rem"},children:[u.jsxs("div",{style:{background:"var(--bg-inset)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1.25rem"},children:[u.jsx("p",{style:{color:"var(--text-muted)",fontSize:"0.7rem",fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:"0.625rem"},children:"Setup steps"}),b.steps]}),u.jsx("div",{style:{display:"grid",gridTemplateColumns:b.fields.length>1?"1fr 1fr":"1fr",gap:"0.75rem",marginBottom:b.id==="slack"?"0.75rem":"1rem"},children:b.fields.map(D=>u.jsxs("div",{children:[u.jsxs("label",{style:{display:"block",fontSize:"0.78rem",color:"var(--text-muted)",marginBottom:"0.3rem",fontWeight:500},children:[D.label,D.optional&&u.jsx("span",{style:{color:"var(--text-dim)"},children:" — optional"})]}),u.jsx("input",{type:D.type??"text",value:oe(b.id)[D.key]??"",onChange:I=>ce(b.id,D.key,I.target.value),placeholder:D.placeholder,style:{marginBottom:0,fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",borderColor:"var(--border)"}})]},D.key))}),b.id==="slack"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{style:{marginBottom:"0.75rem"},children:[u.jsx("label",{style:lt,children:"Socket Mode App Token"}),u.jsx("input",{type:"password",value:r.slackAppToken,onChange:D=>me({slackAppToken:D.target.value},{invalidateValidation:!0}),placeholder:"xapp-...",style:zn})]}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem",marginBottom:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Monitored Channels"}),u.jsx("div",{style:ps,children:"Any channel where the bot is added"})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Escalation Owner"}),u.jsx("div",{style:ps,children:r.name||"Configured user"})]})]}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem",marginBottom:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Reply Mode"}),u.jsx("div",{style:ps,children:"Auto reply"})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Default Provider"}),u.jsxs("select",{value:r.slackDefaultProvider,onChange:D=>{const I=D.target.value;me({slackDefaultProvider:I,slackDefaultModel:I==="openai"?r.openAIModel:r.anthropicModel})},style:Rv,children:[u.jsx("option",{value:"openai",children:"OpenAI"}),u.jsx("option",{value:"anthropic",children:"Claude / Anthropic"})]})]})]}),u.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.55rem",marginBottom:"0.9rem",fontSize:"0.82rem",color:"var(--text-secondary)"},children:[u.jsx("input",{type:"checkbox",checked:r.slackGenerationEnabled,onChange:D=>me({slackGenerationEnabled:D.target.checked},{invalidateValidation:!0})}),"Enable real-time draft generation"]}),u.jsxs("div",{style:{background:"var(--bg-inset)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"0.9rem",marginBottom:"0.9rem"},children:[u.jsx("div",{style:{color:"var(--text-primary)",fontSize:"0.82rem",fontWeight:600,marginBottom:"0.6rem"},children:"Model providers"}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem",marginBottom:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"OpenAI API Key"}),u.jsx("input",{type:"password",value:r.openAIApiKey,onChange:D=>me({openAIApiKey:D.target.value},{invalidateValidation:!0}),placeholder:"sk-...",style:zn})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"OpenAI Model"}),u.jsx("input",{value:r.openAIModel,onChange:D=>me({openAIModel:D.target.value,...r.slackDefaultProvider==="openai"?{slackDefaultModel:D.target.value}:{}},{invalidateValidation:!0}),placeholder:"gpt-4.1-mini",style:zn})]})]}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Claude API Key"}),u.jsx("input",{type:"password",value:r.anthropicApiKey,onChange:D=>me({anthropicApiKey:D.target.value},{invalidateValidation:!0}),placeholder:"sk-ant-...",style:zn})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Claude Model"}),u.jsx("input",{value:r.anthropicModel,onChange:D=>me({anthropicModel:D.target.value,...r.slackDefaultProvider==="anthropic"?{slackDefaultModel:D.target.value}:{}},{invalidateValidation:!0}),placeholder:"claude-3-7-sonnet-latest",style:zn})]})]})]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem"},children:[u.jsxs("div",{style:{fontSize:"0.82rem",flex:1},children:[o==="idle"&&u.jsx("span",{style:{color:"var(--text-dim)"},children:"Enter credentials and validate to connect"}),o==="validating"&&u.jsxs("span",{style:{color:"var(--pac-yellow)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[u.jsxs("span",{className:"validation-dots",children:[u.jsx("span",{className:"pac-trail-dot",style:{width:5,height:5}}),u.jsx("span",{className:"pac-trail-dot",style:{width:5,height:5}}),u.jsx("span",{className:"pac-trail-dot",style:{width:5,height:5}})]}),m||"Validating credentials..."]}),o==="valid"&&u.jsxs("span",{style:{color:"var(--success)"},children:[m,b.id==="slack"&&ll()?` · ${ll()}`:""]}),o==="invalid"&&u.jsx("span",{style:{color:"var(--error)"},children:m})]}),u.jsxs("div",{style:{display:"flex",gap:"0.5rem",flexShrink:0},children:[u.jsx("button",{onClick:()=>ee(b),disabled:!N,style:{...qd,background:N?"var(--pac-yellow-dim)":"var(--bg-inset)",color:N?"var(--pac-yellow)":"var(--text-dim)",borderColor:N?"rgba(255, 215, 0, 0.25)":"var(--border)",cursor:N?"pointer":"not-allowed"},children:o==="validating"?"Validating...":"Validate"}),u.jsx("button",{onClick:()=>Fe(b.id),disabled:!C,style:{...qd,background:C?"var(--success-dim)":"var(--bg-inset)",color:C?"var(--success)":"var(--text-dim)",borderColor:C?"rgba(0, 255, 136, 0.25)":"var(--border)",cursor:C?"pointer":"not-allowed",fontWeight:700},children:"Save"})]})]})]})]},b.id)})}),u.jsxs("div",{className:"folder-section",children:[u.jsxs("div",{className:"folder-section-title",children:[u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--pac-yellow)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M22 19a2 2 0 01-2 2H4a2 2 0 01-2-2V5a2 2 0 012-2h5l2 3h9a2 2 0 012 2z"})}),"Local Context Sources"]}),u.jsx("p",{className:"folder-section-desc",children:"Point Pac-Man at local folders to chomp for context. Tag each folder with a project name — multiple folders can share the same project."}),r.localFolders.length>0&&u.jsx("div",{className:"folder-list",children:r.localFolders.map((b,R)=>u.jsxs("div",{className:"folder-row",children:[u.jsx("input",{type:"text",value:b.path,onChange:p=>$e(R,{path:p.target.value}),onBlur:()=>{!b.project.trim()&&b.path.trim()&&$e(R,{project:Hd(b.path)})},placeholder:"/path/to/folder",style:{background:"var(--bg-inset)"}}),u.jsx("button",{type:"button",className:"btn-browse",onClick:()=>Ie(R),disabled:V===R,children:V===R?"Opening...":"Browse"}),u.jsx("input",{type:"text",value:b.project,onChange:p=>$e(R,{project:p.target.value}),placeholder:"Project tag",list:"project-suggestions",style:{background:"var(--bg-inset)"}}),u.jsx("button",{type:"button",className:"btn-remove",onClick:()=>rl(R),title:"Remove",children:"×"})]},R))}),j.length>0&&u.jsx("datalist",{id:"project-suggestions",children:j.map(b=>u.jsx("option",{value:b},b))}),u.jsx("button",{type:"button",className:"btn-add-folder",onClick:Qe,children:"+ Add Folder"}),V!==null&&!X&&u.jsx("span",{className:"field-hint",style:{marginTop:"0.75rem"},children:"Opening your file manager. The native folder picker can take a moment to appear the first time."}),X&&u.jsx("p",{style:{color:"var(--error)",fontSize:"0.78rem",marginTop:"0.75rem"},children:X})]}),u.jsxs("div",{className:"btn-group",children:[u.jsx("button",{className:"btn-secondary",onClick:v,children:"Back"}),u.jsx("button",{className:"btn-primary",onClick:O,children:"Continue"})]})]})}const Gd={background:"none",border:"1px solid var(--border)",borderRadius:6,padding:"5px 12px",color:"var(--text-dim)",fontSize:"0.78rem",cursor:"pointer",fontWeight:500},Uv={border:"1px solid",borderRadius:6,padding:"5px 14px",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s"},qd={border:"1px solid",borderRadius:6,padding:"6px 16px",fontSize:"0.8rem",fontWeight:600,transition:"all 0.15s"},lt={display:"block",fontSize:"0.78rem",color:"var(--text-muted)",marginBottom:"0.3rem",fontWeight:500},zn={marginBottom:0,fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",borderColor:"var(--border)"},Rv={width:"100%",fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:8},ps={width:"100%",fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:8,minHeight:40,display:"flex",alignItems:"center"};function Bv({state:r,update:M,onNext:O,onPrev:v}){const[U,L]=ue.useState({}),[B,k]=ue.useState(""),[G,A]=ue.useState(!0),[V,H]=ue.useState(""),[X,de]=ue.useState(null),[je,ge]=ue.useState(""),[he,oe]=ue.useState(new Set),[W,F]=ue.useState(new Set),ce=ue.useRef(null);ue.useEffect(()=>{let p=!1;return A(!0),H(""),fetch("/api/project-structure-preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileType:r.profileType,name:r.name,assistantName:r.assistantName,responsibilities:r.responsibilities,localFolders:r.localFolders,integrations:r.integrations})}).then(async o=>{const m=await o.json();if(!o.ok)throw new Error(m.error??"Failed to load project structure preview");return m}).then(o=>{if(p)return;const m=o.files??{};L(m),M({templateFiles:m,inferredProjects:o.projects??[],projectInference:o.inference??null});const N=Object.keys(m);F(new Set);const C=(o.projects??[]).map(D=>`projects/${D.slug}.md`).find(D=>m[D]!==void 0);k(D=>D&&m[D]!==void 0?D:C??N[0]??"");const K=new Set;for(const D of N){const I=D.indexOf("/");I!==-1&&K.add(D.substring(0,I))}oe(K)}).catch(o=>{p||H(o instanceof Error?o.message:"Failed to load project structure preview")}).finally(()=>{p||A(!1)}),()=>{p=!0}},[r.profileType,r.name,r.assistantName,r.responsibilities,r.localFolders,r.integrations]),ue.useEffect(()=>{X&&ce.current&&ce.current.focus()},[X]);const me=p=>{const o={...U,[B]:p};L(o),M({templateFiles:o})},Ee=p=>{const o=p.split("/");return o[o.length-1]},Q=p=>p.endsWith(".md")?"M":p.endsWith(".json")?"J":p.endsWith(".yaml")||p.endsWith(".yml")?"Y":"F",ee=p=>p.split(`
50
- `).length,ze=p=>`projects/${p.slug}.md`,Fe=(()=>{const p=new Map,o=[];for(const m of Object.keys(U).sort()){const N=m.indexOf("/");if(N===-1)o.push(m);else{const C=m.substring(0,N);p.has(C)||p.set(C,[]),p.get(C).push(m)}}for(const m of W)p.has(m)||p.set(m,[]);return{folders:[...p.keys()].sort(),folderFiles:p,rootFiles:o}})(),Qe=p=>{oe(o=>{const m=new Set(o);return m.has(p)?m.delete(p):m.add(p),m})},$e=()=>{const p=je.trim();if(!p||!X){de(null),ge("");return}if(X.type==="folder"){const o=p.replace(/[/\\]/g,"");if(!o)return;F(m=>new Set(m).add(o)),oe(m=>new Set(m).add(o))}else{const o=p.includes(".")?p:`${p}.md`,m=X.parent?`${X.parent}/${o}`:o;if(U[m]!==void 0)k(m);else{const N=o.replace(/\.\w+$/,"").replace(/[-_]/g," "),C=N.charAt(0).toUpperCase()+N.slice(1),K={...U,[m]:`# ${C}
51
-
52
- `};L(K),M({templateFiles:K}),k(m),X.parent&&(F(D=>{const I=new Set(D);return I.delete(X.parent),I}),oe(D=>new Set(D).add(X.parent)))}}de(null),ge("")},rl=(p,o)=>{o.stopPropagation();const m={...U};if(delete m[p],L(m),M({templateFiles:m}),B===p){const N=Object.keys(m);k(N.length>0?N[0]:"")}},Ie=(p,o)=>{o.stopPropagation();const m={...U};for(const N of Object.keys(m))N.startsWith(`${p}/`)&&delete m[N];if(L(m),M({templateFiles:m}),F(N=>{const C=new Set(N);return C.delete(p),C}),B.startsWith(`${p}/`)){const N=Object.keys(m);k(N.length>0?N[0]:"")}},j=p=>{p.key==="Enter"?(p.preventDefault(),$e()):p.key==="Escape"&&(de(null),ge(""))},_=()=>u.jsxs("div",{className:"template-create-input",children:[(X==null?void 0:X.parent)&&u.jsxs("span",{className:"template-create-prefix",children:[X.parent,"/"]}),u.jsx("input",{ref:ce,type:"text",className:"template-create-field",value:je,onChange:p=>ge(p.target.value),onKeyDown:j,onBlur:$e,placeholder:(X==null?void 0:X.type)==="folder"?"folder name":"filename.md"})]}),b=(p,o=!1)=>u.jsxs("button",{className:`template-file-tab ${B===p?"active":""} ${o?"indented":""}`,onClick:()=>k(p),title:p,children:[u.jsx("span",{className:`template-file-icon icon-${Q(p).toLowerCase()}`,children:Q(p)}),u.jsx("span",{className:"template-file-name",children:Ee(p)}),u.jsxs("span",{className:"template-file-lines",children:[ee(U[p]),"L"]}),u.jsx("span",{className:"template-item-delete",onClick:m=>rl(p,m),title:"Delete file",children:"×"})]},p),R=p=>{const o=he.has(p),m=Fe.folderFiles.get(p)||[];return u.jsxs("div",{className:"template-folder-group",children:[u.jsxs("div",{className:"template-folder-row",children:[u.jsxs("button",{className:"template-folder-tab",onClick:()=>Qe(p),children:[u.jsx("span",{className:"template-folder-arrow",children:o?"▾":"▸"}),u.jsx("span",{className:"template-file-icon icon-folder",children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"currentColor",children:u.jsx("path",{d:"M1.75 1A1.75 1.75 0 000 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0016 13.25V4.75A1.75 1.75 0 0014.25 3H7.5a.25.25 0 01-.2-.1l-.9-1.2A1.75 1.75 0 004.98 1H1.75z"})})}),u.jsx("span",{className:"template-file-name",children:p}),u.jsx("span",{className:"template-file-lines",children:m.length})]}),u.jsx("span",{className:"template-folder-action template-folder-add",onClick:N=>{N.stopPropagation(),de({type:"file",parent:p}),ge(""),oe(C=>new Set(C).add(p))},title:`New file in ${p}/`,children:"+"}),u.jsx("span",{className:"template-folder-action template-item-delete",onClick:N=>Ie(p,N),title:"Delete folder",children:"×"})]}),o&&u.jsxs("div",{className:"template-folder-children",children:[m.map(N=>b(N,!0)),(X==null?void 0:X.type)==="file"&&X.parent===p&&_(),m.length===0&&!X&&u.jsx("div",{className:"template-folder-empty",children:"Empty folder"})]})]},p)};return u.jsxs("div",{className:"step-content",children:[u.jsx("h1",{children:"Confirm Project Structure"}),u.jsx("h2",{children:r.inferredProjects.length>0?`Pac-Man grouped your sources into ${r.inferredProjects.length} project(s). Review the structure and tighten the generated context below.`:"Review the base workspace template below and confirm how Pac-Man should organize your context."}),r.projectInference&&u.jsxs("div",{className:"project-structure-banner",children:[u.jsx("strong",{children:r.projectInference.strategy==="ollama"?`Local LLM: ${r.projectInference.model??"Ollama"}`:"Local inference"}),u.jsx("span",{children:r.projectInference.note})]}),r.inferredProjects.length>0&&u.jsx("div",{className:"project-structure-grid",children:r.inferredProjects.map(p=>{const o=ze(p);return u.jsxs("button",{type:"button",className:`project-structure-card ${B===o?"active":""}`,onClick:()=>k(o),children:[u.jsxs("div",{className:"project-structure-card-top",children:[u.jsx("strong",{children:p.name}),u.jsxs("span",{children:[p.sourceFolders.length," source",p.sourceFolders.length===1?"":"s"]})]}),u.jsx("p",{children:p.summary}),u.jsxs("div",{className:"project-structure-meta",children:[u.jsx("span",{className:"project-structure-chip",children:p.primaryFocus}),p.connectedIntegrations.slice(0,2).map(m=>u.jsx("span",{className:"project-structure-chip muted",children:m},m))]})]},p.slug)})}),u.jsxs("div",{className:"template-preview",children:[G&&u.jsxs("div",{className:"template-loading",children:[u.jsx("div",{className:"template-spinner"}),u.jsx("span",{children:"Generating project structure..."})]}),V&&u.jsx("div",{className:"template-error",children:V}),!G&&!V&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"template-sidebar",children:[u.jsxs("div",{className:"template-sidebar-header",children:[u.jsx("span",{children:"Files"}),u.jsxs("div",{className:"template-sidebar-actions",children:[u.jsx("button",{className:"template-action-btn",onClick:()=>de({type:"file",parent:null}),title:"New file",children:u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),u.jsx("polyline",{points:"14 2 14 8 20 8"}),u.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"12"}),u.jsx("line",{x1:"9",y1:"15",x2:"15",y2:"15"})]})}),u.jsx("button",{className:"template-action-btn",onClick:()=>de({type:"folder",parent:null}),title:"New folder",children:u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M22 19a2 2 0 01-2 2H4a2 2 0 01-2-2V5a2 2 0 012-2h5l2 3h9a2 2 0 012 2z"}),u.jsx("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),u.jsx("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})})]})]}),Fe.folders.map(p=>R(p)),Fe.rootFiles.map(p=>b(p)),X&&X.parent===null&&_()]}),u.jsx("div",{className:"template-editor",children:B&&U[B]!==void 0?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"template-editor-header",children:[u.jsx("span",{className:"template-editor-path",children:B}),u.jsx("span",{className:"template-editor-badge",children:"editable"})]}),u.jsxs("div",{className:"template-editor-body",children:[u.jsx("div",{className:"template-line-numbers",children:U[B].split(`
53
- `).map((p,o)=>u.jsx("span",{children:o+1},o))}),u.jsx("textarea",{className:"template-textarea",value:U[B],onChange:p=>me(p.target.value),spellCheck:!1})]})]}):u.jsx("div",{className:"template-empty-editor",children:"Select a file to edit"})})]})]}),u.jsxs("div",{className:"btn-group",children:[u.jsx("button",{className:"btn-secondary",onClick:v,children:"Back"}),u.jsx("button",{className:"btn-primary",onClick:O,children:"Continue"})]})]})}function Hv({state:r,update:M,onNext:O,onPrev:v}){const[U,L]=ue.useState(r.gdriveFolderId?"complete":"idle"),[B,k]=ue.useState(""),[G,A]=ue.useState(!1),[V,H]=ue.useState(!1),[X,de]=ue.useState(!1),[je,ge]=ue.useState(""),he=ue.useRef(null);ue.useEffect(()=>()=>{he.current&&clearInterval(he.current)},[]);const oe=async()=>{de(!0),ge("");const Q=performance.now();try{const ee=await fetch("/api/pick-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultPath:r.localPath,purpose:"storage"})});if(!ee.ok)throw new Error(`Server returned ${ee.status}`);const ze=await ee.json();if(ze.error)throw new Error(ze.error);console.info(`[onboarding] storage picker resolved in ${Math.round(performance.now()-Q)}ms`),!ze.cancelled&&ze.path&&M({localPath:ze.path})}catch(ee){const ze=ee instanceof Error?ee.message:String(ee);ge(ze||"Could not open the file manager right now.")}finally{de(!1)}},W=async()=>{if(!r.gdriveClientId.trim()||!r.gdriveClientSecret.trim()){k("Client ID and Client Secret are required.");return}A(!0),k(""),L("pending");try{const ee=await(await fetch("/api/gdrive/auth-start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:r.gdriveClientId,clientSecret:r.gdriveClientSecret})})).json();if(!ee.authUrl)throw new Error(ee.error||"Failed to start auth");window.open(ee.authUrl,"_blank"),he.current=setInterval(async()=>{try{const ll=await(await fetch("/api/gdrive/auth-status")).json();ll.status==="authenticated"?(clearInterval(he.current),L("authenticated"),A(!1)):ll.status==="error"&&(clearInterval(he.current),L("error"),k(ll.error||"Authentication failed"),A(!1))}catch{}},2e3)}catch(Q){L("error"),k(String(Q)),A(!1)}},F=async()=>{H(!0),k("");try{const ee=await(await fetch("/api/gdrive/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({folderName:r.gdriveFolderName||"Personal Assistant",parentFolderName:r.gdriveFolderParent.trim()||""})})).json();if(ee.error)throw new Error(ee.error);M({gdriveFolderId:ee.folderId,gdriveFolderName:ee.folderName,gdriveFolderPath:ee.folderPath,gdriveRefreshToken:ee.refreshToken}),L("complete")}catch(Q){k(String(Q))}finally{H(!1)}},ce=()=>{M({gdriveFolderId:"",gdriveFolderPath:""}),L("authenticated"),k("")},me=()=>{he.current&&clearInterval(he.current),L("idle"),k(""),A(!1),M({gdriveFolderId:"",gdriveFolderName:"Personal Assistant",gdriveFolderParent:"",gdriveFolderPath:"",gdriveRefreshToken:""})},Ee=r.storageMode==="local"?r.localPath.trim().length>0:U==="complete";return u.jsxs("div",{className:"step-content",children:[u.jsx("h1",{children:"Storage"}),u.jsx("h2",{children:"Where should your context be stored?"}),u.jsxs("div",{className:"radio-group",children:[u.jsxs("div",{className:`radio-item ${r.storageMode==="local"?"selected":""}`,onClick:()=>M({storageMode:"local"}),children:[u.jsx("strong",{children:"Local Workspace"}),u.jsx("br",{}),u.jsx("small",{children:"Files stored on this machine"})]}),u.jsxs("div",{className:`radio-item ${r.storageMode==="gdrive"?"selected":""}`,onClick:()=>M({storageMode:"gdrive"}),children:[u.jsx("strong",{children:"Google Drive"}),u.jsx("br",{}),u.jsx("small",{children:"Files stored in your Drive folder"})]})]}),r.storageMode==="local"&&u.jsxs("div",{style:{marginBottom:"1.25rem"},children:[u.jsx("label",{className:"field-label",children:"Storage path"}),u.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[u.jsx("input",{type:"text",value:r.localPath,onChange:Q=>M({localPath:Q.target.value}),placeholder:".personal-assistant",style:{flex:1,marginBottom:0}}),u.jsx("button",{className:"btn-secondary",onClick:oe,disabled:X,style:{whiteSpace:"nowrap",flexShrink:0},children:X?"Opening...":"Browse"})]}),u.jsx("span",{className:"field-hint",children:X?"Opening your file manager. The first launch can take a moment while the OS starts the native picker.":"Click Browse to open a folder picker, or type a path directly (relative or absolute)."}),je&&u.jsx("span",{className:"field-error",children:je})]}),r.storageMode==="gdrive"&&u.jsxs("div",{style:{marginBottom:"1.25rem"},children:[(U==="idle"||U==="pending"||U==="error")&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{style:{background:"var(--bg-surface)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1.25rem",fontSize:"0.85rem",color:"var(--text-secondary)",lineHeight:"1.6"},children:[u.jsx("p",{style:{color:"var(--text-primary)",fontWeight:600,marginBottom:"0.75rem"},children:"How to get your Client ID and Secret"}),u.jsx("p",{style:{marginBottom:"0.5rem"},children:"No credentials are bundled with this app. You create your own in Google Cloud — it takes about 5 minutes and gives you full control over your own quota and data."}),u.jsxs("ol",{style:{paddingLeft:"1.25rem",margin:"0.75rem 0"},children:[u.jsxs("li",{style:{marginBottom:"0.4rem"},children:["Go to ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"console.cloud.google.com"}),' → create a new project (any name, e.g. "Personal Assistant")']}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:[u.jsx("strong",{style:{color:"var(--text-primary)"},children:"APIs & Services → Library"})," → search for ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Google Drive API"})," → Enable"]}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:[u.jsx("strong",{style:{color:"var(--text-primary)"},children:"APIs & Services → OAuth consent screen"})," ","→ User type: External → fill in app name and email → add scope"," ",u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 4px",borderRadius:3},children:".../auth/drive.file"})," ","→ add your email as a test user → Save."," ",u.jsx("strong",{style:{color:"var(--warning)"},children:'Your email must be in this list or Google will block the login with "Access denied — app not verified".'})]}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:[u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Credentials → Create Credentials → OAuth client ID"})," ","→ Application type:"," ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Web application"})]}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:["Under ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Authorized redirect URIs"})," add exactly:"," ",u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 4px",borderRadius:3},children:"http://localhost:3847/api/gdrive/callback"})]}),u.jsxs("li",{children:["Click ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Create"})," and copy the Client ID and Client Secret shown."]})]}),u.jsxs("p",{style:{color:"var(--text-dim)",fontSize:"0.8rem"},children:["The refresh token obtained during this flow is saved locally to"," ",u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 3px",borderRadius:3},children:"profile/storage.json"})," ","— the sync daemon will use it automatically on future runs."]})]}),u.jsxs("div",{className:"banner-warning",style:{marginBottom:"1.25rem"},children:["Getting ",u.jsx("strong",{children:'"Access blocked: app not verified"'}),"? Your Google account must be added as a test user. Go to"," ",u.jsx("strong",{children:"OAuth consent screen → Test users → Add users"})," and add your email, then try connecting again. You do not need to publish or verify the app for personal use."]}),u.jsx("label",{className:"field-label",children:"Client ID"}),u.jsx("input",{type:"text",value:r.gdriveClientId,onChange:Q=>M({gdriveClientId:Q.target.value}),placeholder:"your-client-id.apps.googleusercontent.com",disabled:U==="pending"}),u.jsx("label",{className:"field-label",children:"Client Secret"}),u.jsx("input",{type:"password",value:r.gdriveClientSecret,onChange:Q=>M({gdriveClientSecret:Q.target.value}),placeholder:"your-client-secret",disabled:U==="pending"}),U==="idle"&&u.jsx("button",{className:"btn-primary",onClick:W,disabled:G,children:"Connect Google Drive"}),U==="pending"&&u.jsx("p",{style:{color:"var(--warning)",fontSize:"0.9rem"},children:"Waiting for Google authentication — complete it in the browser tab that just opened..."}),U==="error"&&u.jsxs("div",{style:{marginTop:"0.5rem"},children:[u.jsx("p",{style:{color:"var(--error)",fontSize:"0.9rem",marginBottom:"0.5rem"},children:B}),u.jsx("button",{className:"btn-secondary",onClick:me,children:"Try Again"})]})]}),U==="authenticated"&&u.jsxs("div",{style:{background:"var(--bg-surface)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1rem"},children:[u.jsx("p",{style:{color:"var(--success)",fontSize:"0.9rem",marginBottom:"1rem"},children:"Google account connected. Now configure where the folder will be created."}),u.jsx("label",{className:"field-label",children:"Folder name"}),u.jsx("input",{type:"text",value:r.gdriveFolderName,onChange:Q=>M({gdriveFolderName:Q.target.value}),placeholder:"Personal Assistant"}),u.jsxs("label",{className:"field-label",children:["Parent folder in My Drive"," ",u.jsx("span",{style:{color:"var(--text-dim)",fontWeight:400},children:"(optional — leave empty for root)"})]}),u.jsx("input",{type:"text",value:r.gdriveFolderParent,onChange:Q=>M({gdriveFolderParent:Q.target.value}),placeholder:"e.g. Work"}),u.jsx("span",{className:"field-hint",style:{marginTop:"-0.5rem",marginBottom:"1rem"},children:"If this folder doesn't exist in your Drive it will be created automatically."}),u.jsxs("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[u.jsx("button",{className:"btn-primary",onClick:F,disabled:V||!r.gdriveFolderName.trim(),children:V?"Creating...":"Create Folder"}),u.jsx("button",{className:"btn-secondary",onClick:me,style:{fontSize:"0.85rem"},children:"Start Over"})]}),B&&u.jsx("p",{style:{color:"var(--error)",fontSize:"0.9rem",marginTop:"0.75rem"},children:B})]}),U==="complete"&&u.jsxs("div",{style:{background:"var(--success-subtle)",border:"1px solid rgba(34, 197, 94, 0.2)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1rem"},children:[u.jsx("p",{style:{color:"var(--success)",fontSize:"0.9rem",marginBottom:"0.75rem",fontWeight:600},children:"Folder created in Google Drive"}),u.jsxs("div",{style:{fontSize:"0.875rem",color:"var(--text-secondary)",lineHeight:"1.8"},children:[u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Name: "}),u.jsx("strong",{style:{color:"var(--text-primary)"},children:r.gdriveFolderName})]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Location: "}),u.jsx("strong",{style:{color:"var(--text-primary)"},children:r.gdriveFolderPath})]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Folder ID: "}),u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 4px",borderRadius:3,fontSize:"0.8rem",color:"var(--text-secondary)"},children:r.gdriveFolderId})]})]}),u.jsx("button",{className:"btn-secondary",onClick:ce,style:{marginTop:"0.75rem",fontSize:"0.85rem"},children:"Change location"})]})]}),u.jsx("div",{className:"banner-warning",style:{marginBottom:"1.5rem"},children:"Do not delete, move, or rename the folder structure created by this setup. Claude and the sync daemon rely on the exact file and folder layout to load and update your context. Deleting files will result in lost context that cannot be automatically recovered."}),u.jsxs("div",{className:"btn-group",children:[u.jsx("button",{className:"btn-secondary",onClick:v,children:"Back"}),u.jsx("button",{className:"btn-primary",onClick:()=>{Ki(r.email,`storage_${r.storageMode}_configured`),O()},disabled:!Ee,children:"Continue"})]})]})}function Gv({state:r,onPrev:M,onSaved:O}){const[v,U]=ue.useState("saving"),[L,B]=ue.useState(""),[k,G]=ue.useState(0);ue.useEffect(()=>{if(v!=="saving")return;const V=qv(r);fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)}).then(H=>H.json()).then(H=>{H.success?(Ki(r.email,"onboarding_completed"),O(),U("saved")):(U("error"),B(H.error||"Failed to save configuration"))}).catch(H=>{U("error"),B(String(H))})},[k]);const A=()=>{U("saving"),B(""),G(V=>V+1)};return v==="saving"?u.jsx("div",{className:"step-content",children:u.jsxs("div",{className:"saving-overlay",children:[u.jsx("div",{className:"pacman-char"}),u.jsxs("div",{className:"saving-dots",children:[u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"})]}),u.jsx("p",{className:"saving-text",children:"Pac-Man is saving your configuration..."})]})}):v==="error"?u.jsx("div",{className:"step-content",children:u.jsxs("div",{style:{textAlign:"center",padding:"3rem 0"},children:[u.jsx("div",{style:{width:72,height:72,borderRadius:"50%",background:"var(--error-subtle)",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1.5rem",fontSize:"2rem"},children:"!"}),u.jsx("h1",{children:"Save Failed"}),u.jsx("p",{style:{color:"var(--error)",marginTop:"0.75rem",fontSize:"0.9rem"},children:L}),u.jsxs("p",{style:{color:"var(--text-muted)",marginTop:"1rem",fontSize:"0.85rem"},children:["Try running ",u.jsx("code",{style:{background:"var(--bg-surface)",padding:"2px 6px",borderRadius:4,border:"1px solid var(--border)"},children:"pacman init"})," from the command line instead."]}),u.jsxs("div",{className:"btn-group",style:{justifyContent:"center",marginTop:"1.5rem"},children:[u.jsx("button",{className:"btn-secondary",onClick:M,children:"Go Back"}),u.jsx("button",{className:"btn-primary",onClick:A,children:"Retry"})]})]})}):u.jsxs("div",{className:"success step-content",children:[u.jsx("div",{className:"success-icon",children:u.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("polyline",{points:"20 6 9 17 4 12"})})}),u.jsx("h1",{children:"Setup Complete"}),u.jsxs("div",{className:"pac-celebration",children:[u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("div",{className:"pacman-char pacman-char-small"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"})]}),u.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"1rem",lineHeight:1.6,marginBottom:"0.5rem"},children:["Your personal assistant context has been initialized.",u.jsx("br",{}),"Here's how to start using Pac-Man:"]}),u.jsxs("div",{className:"instructions-grid",children:[u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"var(--maze-wall)"},children:"CC"}),u.jsx("h4",{children:"Claude Code"}),u.jsx("p",{children:"Install the MCP server for Claude Code"}),u.jsx("code",{className:"cmd",children:`pacman claude install
54
- pacman mcp claude install`})]}),u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"#24292F"},children:"CX"}),u.jsx("h4",{children:"Codex"}),u.jsx("p",{children:"Install the MCP server for Codex"}),u.jsx("code",{className:"cmd",children:`pacman codex install
55
- pacman mcp codex install`})]}),u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"#4A154B"},children:"Sl"}),u.jsx("h4",{children:"Slack Listener"}),u.jsx("p",{children:"Start real-time Slack replies"}),u.jsx("code",{className:"cmd",children:"pacman slack listen"})]}),u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"var(--ghost-orange)"},children:"DM"}),u.jsx("h4",{children:"Sync Daemon"}),u.jsx("p",{children:"Start the context sync daemon"}),u.jsx("code",{className:"cmd",children:"pacman daemon"})]})]}),u.jsxs("div",{style:{background:"var(--bg-surface)",border:"1px solid var(--border)",borderRadius:"var(--radius)",padding:"1.25rem",textAlign:"left",marginTop:"1rem"},children:[u.jsx("h4",{style:{fontFamily:"var(--font-display)",fontSize:"0.78rem",fontWeight:600,color:"var(--pac-yellow)",marginBottom:"0.75rem",letterSpacing:"0.03em"},children:"Example Usage"}),u.jsx("div",{className:"code-block",style:{marginTop:0,background:"var(--bg-inset)"},children:`# Start assistant for a project in Claude Code
56
- /pacman start my-project
57
-
58
- # Ask Codex to load your context
59
- "Load my Pac-Man context for my-project"
60
-
61
- # Manually sync context now
62
- pacman sync now
63
-
64
- # Check sync status
65
- pacman sync status
66
-
67
- # List all configured projects
68
- pacman project list
69
-
70
- # Search your context
71
- pacman context search "deployment process"`})]}),u.jsx("div",{style:{marginTop:"1.5rem",padding:"1rem",background:"var(--pac-yellow-dim)",border:"1px solid rgba(255, 215, 0, 0.15)",borderRadius:"var(--radius-sm)",textAlign:"left"},children:u.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"0.82rem",lineHeight:1.7},children:[u.jsx("strong",{style:{color:"var(--pac-yellow)"},children:"Pro tips:"})," ","Restart Claude Code or Codex after installing the MCP server. Make sure"," ",u.jsx("code",{style:{background:"var(--bg-surface)",padding:"0 5px",borderRadius:4,border:"1px solid var(--border)"},children:"pacman"})," ","is available globally. For local repo testing, run:"," ",u.jsx("code",{style:{background:"var(--bg-surface)",padding:"2px 6px",borderRadius:4,display:"inline-block",marginTop:"0.3rem",border:"1px solid var(--border)"},children:"pnpm setup && source ~/.zshrc && cd packages/cli && pnpm link --global"})]})})]})}function qv(r){var M;return{user:{name:r.name,email:r.email,assistantName:r.assistantName,profileType:r.profileType,responsibilities:r.responsibilities},storage:r.storageMode==="local"?{mode:"local",workspacePath:r.localPath}:{mode:"gdrive",folderId:r.gdriveFolderId,folderName:r.gdriveFolderName,cachePath:`${r.localPath||".personal-assistant"}/cache`,credentials:{clientId:r.gdriveClientId,clientSecret:r.gdriveClientSecret,refreshToken:r.gdriveRefreshToken}},templateFiles:r.templateFiles,integrations:r.integrations.map(O=>({type:O,enabled:!0,credentials:r.integrationCredentials[O]??{}})),activeProject:(M=r.inferredProjects[0])==null?void 0:M.slug,localFolders:r.localFolders.filter(O=>O.path.trim()),inferredProjects:r.inferredProjects,sync:{dailySyncTime:r.syncTime,timezone:r.timezone,manualSyncEnabled:r.manualSync,asyncUpdateEnabled:r.asyncUpdate},slackRuntime:r.integrations.includes("slack")?{enabled:!0,transport:"socket_mode",appToken:r.slackAppToken,reviewMode:r.slackReviewMode,generationEnabled:r.slackGenerationEnabled,defaultProvider:r.slackGenerationEnabled?r.slackDefaultProvider:void 0,defaultModel:r.slackGenerationEnabled?r.slackDefaultModel:void 0,channelMappings:[]}:void 0,providers:r.integrations.includes("slack")&&(r.openAIApiKey||r.anthropicApiKey)?{...r.openAIApiKey?{openai:{apiKey:r.openAIApiKey,model:r.openAIModel}}:{},...r.anthropicApiKey?{anthropic:{apiKey:r.anthropicApiKey,model:r.anthropicModel}}:{}}:void 0}}const Qd={name:"",email:"",assistantName:"Atlas",profileType:"software-engineer",responsibilities:[],templateFiles:{},storageMode:"local",localPath:".personal-assistant",gdriveClientId:"",gdriveClientSecret:"",gdriveFolderId:"",gdriveFolderName:"Personal Assistant",gdriveFolderParent:"",gdriveFolderPath:"",gdriveRefreshToken:"",integrations:[],integrationCredentials:{},localFolders:[],inferredProjects:[],projectInference:null,slackAppToken:"",slackChannelId:"",slackChannelName:"",slackReviewerUserId:"",slackReviewerDisplayName:"",slackReviewMode:"auto_send",slackGenerationEnabled:!0,slackDefaultProvider:"openai",slackDefaultModel:"gpt-4.1-mini",openAIApiKey:"",openAIModel:"gpt-4.1-mini",anthropicApiKey:"",anthropicModel:"claude-3-7-sonnet-latest",syncTime:"08:00",timezone:"America/New_York",manualSync:!0,asyncUpdate:!0},bs=["Identity","Integrations","Project Structure","Storage","Complete"],Mn=bs.length,xs="pacman.onboarding.v1",Yv={"software-engineer":"Software Engineer","product-manager":"Product Manager","engineering-manager":"Engineering Manager",devops:"DevOps Engineer"},Xv={slack:"Slack",gmail:"Gmail",github:"GitHub",gitlab:"GitLab",gdrive:"Google Drive",gchat:"Google Chat"};function Qv(r){return Math.max(0,Math.min(r,Mn))}function Yd(){if(typeof window>"u")return null;try{const r=window.localStorage.getItem(xs);if(!r)return null;const M=JSON.parse(r);return!M||typeof M!="object"||typeof M.step!="number"||!M.state?null:{step:Qv(M.step),state:{...Qd,...M.state}}}catch{return null}}function Lv(r,M){typeof window>"u"||window.localStorage.setItem(xs,JSON.stringify({step:r,state:M}))}function wv(){typeof window>"u"||window.localStorage.removeItem(xs)}function Zv(r){return Xv[r]??r}function kv(r){return Yv[r]??r}function Vv(r){const M=r.trim();if(!M)return"Not set";const O=M.split(/[\\/]/).filter(Boolean);return O.length<=2?M:`.../${O.slice(-2).join("/")}`}function Kv(){const[r,M]=ue.useState(()=>{var W;return((W=Yd())==null?void 0:W.step)??0}),[O,v]=ue.useState(()=>{var W;return((W=Yd())==null?void 0:W.state)??Qd}),[U,L]=ue.useState(!1),B=W=>{v(F=>({...F,...W}))},k=()=>M(W=>Math.min(W+1,Mn)),G=()=>M(W=>Math.max(W-1,1)),A=()=>M(1),V=r>=1&&r<=4,H=r===5?4:Math.max(1,Math.min(r,4)),X=W=>W<=H,de=W=>{X(W)&&M(W)};ue.useEffect(()=>{Lv(r,O)},[O,r]);const je=ue.useMemo(()=>{const W=O.localFolders.length>0?O.localFolders.slice(0,3).map(ce=>`${ce.project||"Unassigned"}: ${Vv(ce.path)}`):["No local folders tagged yet"],F=O.inferredProjects.length>0?O.inferredProjects.slice(0,3).map(ce=>`${ce.name} (${ce.sourceFolders.length} source${ce.sourceFolders.length===1?"":"s"})`):["Projects will appear after source analysis"];return[{step:0,label:"Homepage",lines:["Overview: Pac-Man onboarding landing page","Use this to revisit the product framing and onboarding promise","Edit path: jump back here from any later step"]},{step:1,label:"Identity",lines:[`Name: ${O.name.trim()||"Not set"}`,`Email: ${O.email.trim()||"Required"}`,`Role: ${kv(O.profileType)}`,`Assistant: ${O.assistantName.trim()||"Atlas"}`]},{step:2,label:"Integrations",lines:[`Connected: ${O.integrations.length>0?O.integrations.map(Zv).join(", "):"None yet"}`,`Folders: ${O.localFolders.length}`,...W]},{step:3,label:"Project Structure",lines:[`Projects: ${O.inferredProjects.length||0}`,...O.projectInference?[`Inference: ${O.projectInference.strategy==="ollama"?O.projectInference.model??"Ollama":"Local heuristic"}`]:["Inference: Waiting for preview"],`Files ready: ${Object.keys(O.templateFiles).length}`,...F]},{step:4,label:"Storage",lines:O.storageMode==="local"?["Mode: Local workspace",`Path: ${O.localPath.trim()||"Not set"}`]:["Mode: Google Drive",`Folder: ${O.gdriveFolderName.trim()||"Not set"}`,`Location: ${O.gdriveFolderPath.trim()||"Pending"}`]}]},[O]),ge=r>=1&&r<=4,he=r-1,oe=(W=!1)=>u.jsxs("div",{className:`onboarding-summary-panel ${W?"mobile":"desktop"}`,children:[u.jsxs("div",{className:"onboarding-summary-header",children:[u.jsxs("div",{children:[u.jsx("span",{className:"onboarding-summary-kicker",children:"Saved Choices"}),u.jsx("h3",{children:"Review and edit your setup"})]}),u.jsxs("span",{className:"onboarding-summary-count",children:[H," of 4 ready"]})]}),u.jsx("div",{className:"onboarding-summary-list",children:je.map(F=>{const ce=F.step===0?!0:X(F.step),me=r===F.step;return u.jsxs("button",{type:"button",className:`onboarding-summary-card ${me?"current":""}`,onClick:()=>de(F.step),disabled:!ce,children:[u.jsxs("div",{className:"onboarding-summary-card-top",children:[u.jsxs("div",{className:"onboarding-summary-card-title",children:[u.jsx("span",{className:"onboarding-summary-step",children:F.step}),u.jsxs("div",{children:[u.jsx("strong",{children:F.label}),u.jsx("span",{children:me?"Current step":ce?"Edit step":"Locked until earlier steps are complete"})]})]}),u.jsx("span",{className:"onboarding-summary-action",children:ce?"Edit":"Locked"})]}),u.jsx("div",{className:"onboarding-summary-lines",children:F.lines.slice(0,W?3:4).map(Ee=>u.jsx("span",{children:Ee},Ee))})]},F.label)})})]});return u.jsx("div",{className:`container ${V?"container-with-sidebar":""}`,children:u.jsxs("div",{className:`onboarding-shell ${V?"with-summary":""}`,children:[u.jsxs("div",{className:"onboarding-main",children:[ge&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"step-header",children:[u.jsxs("div",{className:"step-meta",children:[u.jsxs("span",{className:"step-counter",children:[r," / ",Mn-1]}),u.jsx("span",{className:"step-name",children:bs[he]})]}),u.jsx("div",{className:"progress-track",children:u.jsx("div",{className:"progress-fill",style:{width:`${he/(Mn-2)*100}%`}})})]}),u.jsx("div",{className:"pac-progress",style:{"--eaten-width":`${he/(Mn-2)*100}%`},children:bs.slice(0,-1).map((W,F)=>{const ce=F+1,me=X(ce);return u.jsxs("button",{type:"button",className:`pac-progress-step ${F<he?"eaten":F===he?"current":""} ${me?"clickable":"locked"}`,onClick:()=>de(ce),disabled:!me,children:[F===he?u.jsx("div",{className:"pacman-char pacman-char-small"}):u.jsx("div",{className:"pac-dot"}),u.jsx("span",{className:"pac-step-label",children:W})]},W)})})]}),V&&u.jsxs("div",{className:"onboarding-summary-mobile-wrap",children:[u.jsxs("button",{type:"button",className:"onboarding-summary-toggle",onClick:()=>L(W=>!W),children:[u.jsx("span",{children:U?"Hide your selections":"Review your selections"}),u.jsx("span",{children:U?"−":"+"})]}),U&&oe(!0)]}),r===0&&u.jsx(Ev,{onStart:A}),r===1&&u.jsx(Ov,{state:O,update:B,onNext:k}),r===2&&u.jsx(Dv,{state:O,update:B,onNext:k,onPrev:G}),r===3&&u.jsx(Bv,{state:O,update:B,onNext:k,onPrev:G}),r===4&&u.jsx(Hv,{state:O,update:B,onNext:k,onPrev:G}),r===5&&u.jsx(Gv,{state:O,onPrev:()=>M(4),onSaved:()=>wv()})]}),V&&u.jsx("aside",{className:"onboarding-summary-sidebar",children:oe(!1)})]})})}jv.createRoot(document.getElementById("root")).render(u.jsx(hv.StrictMode,{children:u.jsx(Kv,{})}));