claude-control 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +185 -0
- package/dist/dashboard/assets/index-79TPXaY_.css +1 -0
- package/dist/dashboard/assets/index-B5ykO-IR.js +21 -0
- package/dist/dashboard/index.html +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2765 -0
- package/dist/index.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))o(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const x of h.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&o(x)}).observe(document,{childList:!0,subtree:!0});function f(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(m){if(m.ep)return;m.ep=!0;const h=f(m);fetch(m.href,h)}})();var Mc={exports:{}},Dn={};var t0;function yx(){if(t0)return Dn;t0=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function f(o,m,h){var x=null;if(h!==void 0&&(x=""+h),m.key!==void 0&&(x=""+m.key),"key"in m){h={};for(var S in m)S!=="key"&&(h[S]=m[S])}else h=m;return m=h.ref,{$$typeof:i,type:o,key:x,ref:m!==void 0?m:null,props:h}}return Dn.Fragment=r,Dn.jsx=f,Dn.jsxs=f,Dn}var l0;function bx(){return l0||(l0=1,Mc.exports=yx()),Mc.exports}var s=bx(),Oc={exports:{}},P={};var a0;function jx(){if(a0)return P;a0=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),N=Symbol.iterator;function H(j){return j===null||typeof j!="object"?null:(j=N&&j[N]||j["@@iterator"],typeof j=="function"?j:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,L={};function B(j,U,X){this.props=j,this.context=U,this.refs=L,this.updater=X||q}B.prototype.isReactComponent={},B.prototype.setState=function(j,U){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,U,"setState")},B.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function Z(){}Z.prototype=B.prototype;function K(j,U,X){this.props=j,this.context=U,this.refs=L,this.updater=X||q}var fe=K.prototype=new Z;fe.constructor=K,Y(fe,B.prototype),fe.isPureReactComponent=!0;var xe=Array.isArray;function Se(){}var F={H:null,A:null,T:null,S:null},Ne=Object.prototype.hasOwnProperty;function Me(j,U,X){var V=X.ref;return{$$typeof:i,type:j,key:U,ref:V!==void 0?V:null,props:X}}function ke(j,U){return Me(j.type,U,j.props)}function ht(j){return typeof j=="object"&&j!==null&&j.$$typeof===i}function We(j){var U={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(X){return U[X]})}var Ol=/\/+/g;function qt(j,U){return typeof j=="object"&&j!==null&&j.key!=null?We(""+j.key):U.toString(36)}function At(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(Se,Se):(j.status="pending",j.then(function(U){j.status==="pending"&&(j.status="fulfilled",j.value=U)},function(U){j.status==="pending"&&(j.status="rejected",j.reason=U)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function D(j,U,X,V,I){var le=typeof j;(le==="undefined"||le==="boolean")&&(j=null);var de=!1;if(j===null)de=!0;else switch(le){case"bigint":case"string":case"number":de=!0;break;case"object":switch(j.$$typeof){case i:case r:de=!0;break;case E:return de=j._init,D(de(j._payload),U,X,V,I)}}if(de)return I=I(j),de=V===""?"."+qt(j,0):V,xe(I)?(X="",de!=null&&(X=de.replace(Ol,"$&/")+"/"),D(I,U,X,"",function(La){return La})):I!=null&&(ht(I)&&(I=ke(I,X+(I.key==null||j&&j.key===I.key?"":(""+I.key).replace(Ol,"$&/")+"/")+de)),U.push(I)),1;de=0;var Je=V===""?".":V+":";if(xe(j))for(var Oe=0;Oe<j.length;Oe++)V=j[Oe],le=Je+qt(V,Oe),de+=D(V,U,X,le,I);else if(Oe=H(j),typeof Oe=="function")for(j=Oe.call(j),Oe=0;!(V=j.next()).done;)V=V.value,le=Je+qt(V,Oe++),de+=D(V,U,X,le,I);else if(le==="object"){if(typeof j.then=="function")return D(At(j),U,X,V,I);throw U=String(j),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return de}function G(j,U,X){if(j==null)return j;var V=[],I=0;return D(j,V,"","",function(le){return U.call(X,le,I++)}),V}function W(j){if(j._status===-1){var U=j._result;U=U(),U.then(function(X){(j._status===0||j._status===-1)&&(j._status=1,j._result=X)},function(X){(j._status===0||j._status===-1)&&(j._status=2,j._result=X)}),j._status===-1&&(j._status=0,j._result=U)}if(j._status===1)return j._result.default;throw j._result}var pe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},be={map:G,forEach:function(j,U,X){G(j,function(){U.apply(this,arguments)},X)},count:function(j){var U=0;return G(j,function(){U++}),U},toArray:function(j){return G(j,function(U){return U})||[]},only:function(j){if(!ht(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return P.Activity=b,P.Children=be,P.Component=B,P.Fragment=f,P.Profiler=m,P.PureComponent=K,P.StrictMode=o,P.Suspense=g,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,P.__COMPILER_RUNTIME={__proto__:null,c:function(j){return F.H.useMemoCache(j)}},P.cache=function(j){return function(){return j.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(j,U,X){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var V=Y({},j.props),I=j.key;if(U!=null)for(le in U.key!==void 0&&(I=""+U.key),U)!Ne.call(U,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&U.ref===void 0||(V[le]=U[le]);var le=arguments.length-2;if(le===1)V.children=X;else if(1<le){for(var de=Array(le),Je=0;Je<le;Je++)de[Je]=arguments[Je+2];V.children=de}return Me(j.type,I,V)},P.createContext=function(j){return j={$$typeof:x,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:h,_context:j},j},P.createElement=function(j,U,X){var V,I={},le=null;if(U!=null)for(V in U.key!==void 0&&(le=""+U.key),U)Ne.call(U,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(I[V]=U[V]);var de=arguments.length-2;if(de===1)I.children=X;else if(1<de){for(var Je=Array(de),Oe=0;Oe<de;Oe++)Je[Oe]=arguments[Oe+2];I.children=Je}if(j&&j.defaultProps)for(V in de=j.defaultProps,de)I[V]===void 0&&(I[V]=de[V]);return Me(j,le,I)},P.createRef=function(){return{current:null}},P.forwardRef=function(j){return{$$typeof:S,render:j}},P.isValidElement=ht,P.lazy=function(j){return{$$typeof:E,_payload:{_status:-1,_result:j},_init:W}},P.memo=function(j,U){return{$$typeof:p,type:j,compare:U===void 0?null:U}},P.startTransition=function(j){var U=F.T,X={};F.T=X;try{var V=j(),I=F.S;I!==null&&I(X,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(Se,pe)}catch(le){pe(le)}finally{U!==null&&X.types!==null&&(U.types=X.types),F.T=U}},P.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},P.use=function(j){return F.H.use(j)},P.useActionState=function(j,U,X){return F.H.useActionState(j,U,X)},P.useCallback=function(j,U){return F.H.useCallback(j,U)},P.useContext=function(j){return F.H.useContext(j)},P.useDebugValue=function(){},P.useDeferredValue=function(j,U){return F.H.useDeferredValue(j,U)},P.useEffect=function(j,U){return F.H.useEffect(j,U)},P.useEffectEvent=function(j){return F.H.useEffectEvent(j)},P.useId=function(){return F.H.useId()},P.useImperativeHandle=function(j,U,X){return F.H.useImperativeHandle(j,U,X)},P.useInsertionEffect=function(j,U){return F.H.useInsertionEffect(j,U)},P.useLayoutEffect=function(j,U){return F.H.useLayoutEffect(j,U)},P.useMemo=function(j,U){return F.H.useMemo(j,U)},P.useOptimistic=function(j,U){return F.H.useOptimistic(j,U)},P.useReducer=function(j,U,X){return F.H.useReducer(j,U,X)},P.useRef=function(j){return F.H.useRef(j)},P.useState=function(j){return F.H.useState(j)},P.useSyncExternalStore=function(j,U,X){return F.H.useSyncExternalStore(j,U,X)},P.useTransition=function(){return F.H.useTransition()},P.version="19.2.4",P}var n0;function kc(){return n0||(n0=1,Oc.exports=jx()),Oc.exports}var C=kc(),Dc={exports:{}},_n={},_c={exports:{}},wc={};var u0;function Sx(){return u0||(u0=1,(function(i){function r(D,G){var W=D.length;D.push(G);e:for(;0<W;){var pe=W-1>>>1,be=D[pe];if(0<m(be,G))D[pe]=G,D[W]=be,W=pe;else break e}}function f(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var G=D[0],W=D.pop();if(W!==G){D[0]=W;e:for(var pe=0,be=D.length,j=be>>>1;pe<j;){var U=2*(pe+1)-1,X=D[U],V=U+1,I=D[V];if(0>m(X,W))V<be&&0>m(I,X)?(D[pe]=I,D[V]=W,pe=V):(D[pe]=X,D[U]=W,pe=U);else if(V<be&&0>m(I,W))D[pe]=I,D[V]=W,pe=V;else break e}}return G}function m(D,G){var W=D.sortIndex-G.sortIndex;return W!==0?W:D.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var x=Date,S=x.now();i.unstable_now=function(){return x.now()-S}}var g=[],p=[],E=1,b=null,N=3,H=!1,q=!1,Y=!1,L=!1,B=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function fe(D){for(var G=f(p);G!==null;){if(G.callback===null)o(p);else if(G.startTime<=D)o(p),G.sortIndex=G.expirationTime,r(g,G);else break;G=f(p)}}function xe(D){if(Y=!1,fe(D),!q)if(f(g)!==null)q=!0,Se||(Se=!0,We());else{var G=f(p);G!==null&&At(xe,G.startTime-D)}}var Se=!1,F=-1,Ne=5,Me=-1;function ke(){return L?!0:!(i.unstable_now()-Me<Ne)}function ht(){if(L=!1,Se){var D=i.unstable_now();Me=D;var G=!0;try{e:{q=!1,Y&&(Y=!1,Z(F),F=-1),H=!0;var W=N;try{t:{for(fe(D),b=f(g);b!==null&&!(b.expirationTime>D&&ke());){var pe=b.callback;if(typeof pe=="function"){b.callback=null,N=b.priorityLevel;var be=pe(b.expirationTime<=D);if(D=i.unstable_now(),typeof be=="function"){b.callback=be,fe(D),G=!0;break t}b===f(g)&&o(g),fe(D)}else o(g);b=f(g)}if(b!==null)G=!0;else{var j=f(p);j!==null&&At(xe,j.startTime-D),G=!1}}break e}finally{b=null,N=W,H=!1}G=void 0}}finally{G?We():Se=!1}}}var We;if(typeof K=="function")We=function(){K(ht)};else if(typeof MessageChannel<"u"){var Ol=new MessageChannel,qt=Ol.port2;Ol.port1.onmessage=ht,We=function(){qt.postMessage(null)}}else We=function(){B(ht,0)};function At(D,G){F=B(function(){D(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ne=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(D){switch(N){case 1:case 2:case 3:var G=3;break;default:G=N}var W=N;N=G;try{return D()}finally{N=W}},i.unstable_requestPaint=function(){L=!0},i.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=N;N=D;try{return G()}finally{N=W}},i.unstable_scheduleCallback=function(D,G,W){var pe=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pe+W:pe):W=pe,D){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=W+be,D={id:E++,callback:G,priorityLevel:D,startTime:W,expirationTime:be,sortIndex:-1},W>pe?(D.sortIndex=W,r(p,D),f(g)===null&&D===f(p)&&(Y?(Z(F),F=-1):Y=!0,At(xe,W-pe))):(D.sortIndex=be,r(g,D),q||H||(q=!0,Se||(Se=!0,We()))),D},i.unstable_shouldYield=ke,i.unstable_wrapCallback=function(D){var G=N;return function(){var W=N;N=G;try{return D.apply(this,arguments)}finally{N=W}}}})(wc)),wc}var s0;function Nx(){return s0||(s0=1,_c.exports=Sx()),_c.exports}var Uc={exports:{}},Ke={};var i0;function Ex(){if(i0)return Ke;i0=1;var i=kc();function r(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)p+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(r(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(g,p,E){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:b==null?null:""+b,children:g,containerInfo:p,implementation:E}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function S(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ke.createPortal=function(g,p){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return h(g,p,null,E)},Ke.flushSync=function(g){var p=x.T,E=o.p;try{if(x.T=null,o.p=2,g)return g()}finally{x.T=p,o.p=E,o.d.f()}},Ke.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},Ke.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},Ke.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var E=p.as,b=S(E,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,H=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;E==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:N,fetchPriority:H}):E==="script"&&o.d.X(g,{crossOrigin:b,integrity:N,fetchPriority:H,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ke.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var E=S(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},Ke.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var E=p.as,b=S(E,p.crossOrigin);o.d.L(g,E,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ke.preloadModule=function(g,p){if(typeof g=="string")if(p){var E=S(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},Ke.requestFormReset=function(g){o.d.r(g)},Ke.unstable_batchedUpdates=function(g,p){return g(p)},Ke.useFormState=function(g,p,E){return x.H.useFormState(g,p,E)},Ke.useFormStatus=function(){return x.H.useHostTransitionStatus()},Ke.version="19.2.4",Ke}var c0;function Cx(){if(c0)return Uc.exports;c0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Uc.exports=Ex(),Uc.exports}var r0;function Tx(){if(r0)return _n;r0=1;var i=Nx(),r=kc(),f=Cx();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(h(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return g(n),e;if(u===a)return g(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=u;break}if(d===a){c=!0,a=n,l=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===l){c=!0,l=u,a=n;break}if(d===a){c=!0,a=u,l=n;break}d=d.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,N=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),K=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),ke=Symbol.for("react.memo_cache_sentinel"),ht=Symbol.iterator;function We(e){return e===null||typeof e!="object"?null:(e=ht&&e[ht]||e["@@iterator"],typeof e=="function"?e:null)}var Ol=Symbol.for("react.client.reference");function qt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ol?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case B:return"Profiler";case L:return"StrictMode";case xe:return"Suspense";case Se:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case K:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case fe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:qt(e.type)||"Memo";case Ne:t=e._payload,e=e._init;try{return qt(e(t))}catch{}}return null}var At=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},pe=[],be=-1;function j(e){return{current:e}}function U(e){0>be||(e.current=pe[be],pe[be]=null,be--)}function X(e,t){be++,pe[be]=e.current,e.current=t}var V=j(null),I=j(null),le=j(null),de=j(null);function Je(e,t){switch(X(le,t),X(I,e),X(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ed(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ed(t),e=Cd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(V),X(V,e)}function Oe(){U(V),U(I),U(le)}function La(e){e.memoizedState!==null&&X(de,e);var t=V.current,l=Cd(t,e.type);t!==l&&(X(I,e),X(V,l))}function Gn(e){I.current===e&&(U(V),U(I)),de.current===e&&(U(de),zn._currentValue=W)}var ds,Pc;function Dl(e){if(ds===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ds=t&&t[1]||"",Pc=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ds+e+Pc}var ms=!1;function hs(e,t){if(!e||ms)return"";ms=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(M){var R=M}Reflect.construct(e,[],w)}else{try{w.call()}catch(M){R=M}e.call(w.prototype)}}else{try{throw Error()}catch(M){R=M}(w=e())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(M){if(M&&R&&typeof M.stack=="string")return[M.stack,R.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 u=a.DetermineComponentFrameRoot(),c=u[0],d=u[1];if(c&&d){var v=c.split(`
|
|
4
|
+
`),z=d.split(`
|
|
5
|
+
`);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===z.length)for(a=v.length-1,n=z.length-1;1<=a&&0<=n&&v[a]!==z[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==z[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==z[n]){var O=`
|
|
6
|
+
`+v[a].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=a&&0<=n);break}}}finally{ms=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Dl(l):""}function W0(e,t){switch(e.tag){case 26:case 27:case 5:return Dl(e.type);case 16:return Dl("Lazy");case 13:return e.child!==t&&t!==null?Dl("Suspense Fallback"):Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 15:return hs(e.type,!1);case 11:return hs(e.type.render,!1);case 1:return hs(e.type,!0);case 31:return Dl("Activity");default:return""}}function Ic(e){try{var t="",l=null;do t+=W0(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var xs=Object.prototype.hasOwnProperty,ps=i.unstable_scheduleCallback,gs=i.unstable_cancelCallback,F0=i.unstable_shouldYield,P0=i.unstable_requestPaint,nt=i.unstable_now,I0=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,Xn=i.unstable_NormalPriority,em=i.unstable_LowPriority,lr=i.unstable_IdlePriority,tm=i.log,lm=i.unstable_setDisableYieldValue,qa=null,ut=null;function sl(e){if(typeof tm=="function"&&lm(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(qa,e)}catch{}}var st=Math.clz32?Math.clz32:um,am=Math.log,nm=Math.LN2;function um(e){return e>>>=0,e===0?32:31-(am(e)/nm|0)|0}var Zn=256,Qn=262144,Vn=4194304;function _l(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function kn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=_l(a):(c&=d,c!==0?n=_l(c):l||(l=d&~e,l!==0&&(n=_l(l))))):(d=a&~u,d!==0?n=_l(d):c!==0?n=_l(c):l||(l=a&~e,l!==0&&(n=_l(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ar(){var e=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),e}function vs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function im(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,v=e.expirationTimes,z=e.hiddenUpdates;for(l=c&~l;0<l;){var O=31-st(l),w=1<<O;d[O]=0,v[O]=-1;var R=z[O];if(R!==null)for(z[O]=null,O=0;O<R.length;O++){var M=R[O];M!==null&&(M.lane&=-536870913)}l&=~w}a!==0&&nr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-st(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ur(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-st(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function sr(e,t){var l=t&-t;return l=(l&42)!==0?1:ys(l),(l&(e.suspendedLanes|t))!==0?0:l}function ys(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 bs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ir(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function cr(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var il=Math.random().toString(36).slice(2),Ge="__reactFiber$"+il,Fe="__reactProps$"+il,Pl="__reactContainer$"+il,js="__reactEvents$"+il,cm="__reactListeners$"+il,rm="__reactHandles$"+il,rr="__reactResources$"+il,Xa="__reactMarker$"+il;function Ss(e){delete e[Ge],delete e[Fe],delete e[js],delete e[cm],delete e[rm]}function Il(e){var t=e[Ge];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pl]||l[Ge]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Dd(e);e!==null;){if(l=e[Ge])return l;e=Dd(e)}return t}e=l,l=e.parentNode}return null}function ea(e){if(e=e[Ge]||e[Pl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Za(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ta(e){var t=e[rr];return t||(t=e[rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[Xa]=!0}var or=new Set,fr={};function wl(e,t){la(e,t),la(e+"Capture",t)}function la(e,t){for(fr[e]=t,e=0;e<t.length;e++)or.add(t[e])}var om=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]*$"),dr={},mr={};function fm(e){return xs.call(mr,e)?!0:xs.call(dr,e)?!1:om.test(e)?mr[e]=!0:(dr[e]=!0,!1)}function Kn(e,t,l){if(fm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Jn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Yt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=dm(e,t,""+e[t])}}function xr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function $n(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 mm=/[\n"\\]/g;function pt(e){return e.replace(mm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Es(e,t,l,a,n,u,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Cs(e,c,xt(t)):l!=null?Cs(e,c,xt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+xt(d):e.removeAttribute("name")}function pr(e,t,l,a,n,u,c,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ns(e);return}l=l!=null?""+xt(l):"",t=t!=null?""+xt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ns(e)}function Cs(e,t,l){t==="number"&&$n(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function aa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+xt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function gr(e,t,l){if(t!=null&&(t=""+xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+xt(l):""}function vr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(At(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=xt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ns(e)}function na(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var hm=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 yr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||hm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function br(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&yr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&yr(e,u,t[u])}function Ts(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 xm=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"]]),pm=/^[\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 Wn(e){return pm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gt(){}var As=null;function zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ua=null,sa=null;function jr(e){var t=ea(e);if(t&&(e=t.stateNode)){var l=e[Fe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Es(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+pt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Fe]||null;if(!n)throw Error(o(90));Es(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&xr(a)}break e;case"textarea":gr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&aa(e,!!l.multiple,t,!1)}}}var Rs=!1;function Sr(e,t,l){if(Rs)return e(t,l);Rs=!0;try{var a=e(t);return a}finally{if(Rs=!1,(ua!==null||sa!==null)&&(Bu(),ua&&(t=ua,e=sa,sa=ua=null,jr(t),e)))for(t=0;t<e.length;t++)jr(e[t])}}function Qa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Fe]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ms=!1;if(Xt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Ms=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Ms=!1}var cl=null,Os=null,Fn=null;function Nr(){if(Fn)return Fn;var e,t=Os,l=t.length,a,n="value"in cl?cl.value:cl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return Fn=n.slice(e,1<a?1-a:void 0)}function Pn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function In(){return!0}function Er(){return!1}function Pe(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?In:Er,this.isPropagationStopped=Er,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=In)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eu=Pe(Ul),ka=b({},Ul,{view:0,detail:0}),gm=Pe(ka),Ds,_s,Ka,tu=b({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Us,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!==Ka&&(Ka&&e.type==="mousemove"?(Ds=e.screenX-Ka.screenX,_s=e.screenY-Ka.screenY):_s=Ds=0,Ka=e),Ds)},movementY:function(e){return"movementY"in e?e.movementY:_s}}),Cr=Pe(tu),vm=b({},tu,{dataTransfer:0}),ym=Pe(vm),bm=b({},ka,{relatedTarget:0}),ws=Pe(bm),jm=b({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),Sm=Pe(jm),Nm=b({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Em=Pe(Nm),Cm=b({},Ul,{data:0}),Tr=Pe(Cm),Tm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Am={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"},zm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zm[e])?!!t[e]:!1}function Us(){return Rm}var Mm=b({},ka,{key:function(e){if(e.key){var t=Tm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Am[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Us,charCode:function(e){return e.type==="keypress"?Pn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Om=Pe(Mm),Dm=b({},tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ar=Pe(Dm),_m=b({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Us}),wm=Pe(_m),Um=b({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hm=Pe(Um),Bm=b({},tu,{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}),Lm=Pe(Bm),qm=b({},Ul,{newState:0,oldState:0}),Ym=Pe(qm),Gm=[9,13,27,32],Hs=Xt&&"CompositionEvent"in window,Ja=null;Xt&&"documentMode"in document&&(Ja=document.documentMode);var Xm=Xt&&"TextEvent"in window&&!Ja,zr=Xt&&(!Hs||Ja&&8<Ja&&11>=Ja),Rr=" ",Mr=!1;function Or(e,t){switch(e){case"keyup":return Gm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function Zm(e,t){switch(e){case"compositionend":return Dr(t);case"keypress":return t.which!==32?null:(Mr=!0,Rr);case"textInput":return e=t.data,e===Rr&&Mr?null:e;default:return null}}function Qm(e,t){if(ia)return e==="compositionend"||!Hs&&Or(e,t)?(e=Nr(),Fn=Os=cl=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zr&&t.locale!=="ko"?null:t.data;default:return null}}var Vm={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 _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vm[e.type]:t==="textarea"}function wr(e,t,l,a){ua?sa?sa.push(a):sa=[a]:ua=a,t=Qu(t,"onChange"),0<t.length&&(l=new eu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var $a=null,Wa=null;function km(e){vd(e,0)}function lu(e){var t=Za(e);if(xr(t))return e}function Ur(e,t){if(e==="change")return t}var Hr=!1;if(Xt){var Bs;if(Xt){var Ls="oninput"in document;if(!Ls){var Br=document.createElement("div");Br.setAttribute("oninput","return;"),Ls=typeof Br.oninput=="function"}Bs=Ls}else Bs=!1;Hr=Bs&&(!document.documentMode||9<document.documentMode)}function Lr(){$a&&($a.detachEvent("onpropertychange",qr),Wa=$a=null)}function qr(e){if(e.propertyName==="value"&&lu(Wa)){var t=[];wr(t,Wa,e,zs(e)),Sr(km,t)}}function Km(e,t,l){e==="focusin"?(Lr(),$a=t,Wa=l,$a.attachEvent("onpropertychange",qr)):e==="focusout"&&Lr()}function Jm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lu(Wa)}function $m(e,t){if(e==="click")return lu(t)}function Wm(e,t){if(e==="input"||e==="change")return lu(t)}function Fm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var it=typeof Object.is=="function"?Object.is:Fm;function Fa(e,t){if(it(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!xs.call(t,n)||!it(e[n],t[n]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(e,t){var l=Yr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Yr(l)}}function Xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$n(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=$n(e.document)}return t}function qs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Pm=Xt&&"documentMode"in document&&11>=document.documentMode,ca=null,Ys=null,Pa=null,Gs=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gs||ca==null||ca!==$n(a)||(a=ca,"selectionStart"in a&&qs(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}),Pa&&Fa(Pa,a)||(Pa=a,a=Qu(Ys,"onSelect"),0<a.length&&(t=new eu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ca)))}function Hl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ra={animationend:Hl("Animation","AnimationEnd"),animationiteration:Hl("Animation","AnimationIteration"),animationstart:Hl("Animation","AnimationStart"),transitionrun:Hl("Transition","TransitionRun"),transitionstart:Hl("Transition","TransitionStart"),transitioncancel:Hl("Transition","TransitionCancel"),transitionend:Hl("Transition","TransitionEnd")},Xs={},Vr={};Xt&&(Vr=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Bl(e){if(Xs[e])return Xs[e];if(!ra[e])return e;var t=ra[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Vr)return Xs[e]=t[l];return e}var kr=Bl("animationend"),Kr=Bl("animationiteration"),Jr=Bl("animationstart"),Im=Bl("transitionrun"),eh=Bl("transitionstart"),th=Bl("transitioncancel"),$r=Bl("transitionend"),Wr=new Map,Zs="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(" ");Zs.push("scrollEnd");function zt(e,t){Wr.set(e,t),wl(t,[e])}var au=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gt=[],oa=0,Qs=0;function nu(){for(var e=oa,t=Qs=oa=0;t<e;){var l=gt[t];gt[t++]=null;var a=gt[t];gt[t++]=null;var n=gt[t];gt[t++]=null;var u=gt[t];if(gt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Fr(l,n,u)}}function uu(e,t,l,a){gt[oa++]=e,gt[oa++]=t,gt[oa++]=l,gt[oa++]=a,Qs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Vs(e,t,l,a){return uu(e,t,l,a),su(e)}function Ll(e,t){return uu(e,null,null,t),su(e)}function Fr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-st(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function su(e){if(50<jn)throw jn=0,ec=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function lh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,l,a){return new lh(e,t,l,a)}function ks(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zt(e,t){var l=e.alternate;return l===null?(l=ct(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Pr(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")ks(e)&&(c=1);else if(typeof e=="string")c=ix(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Me:return e=ct(31,l,t,n),e.elementType=Me,e.lanes=u,e;case Y:return ql(l.children,n,u,t);case L:c=8,n|=24;break;case B:return e=ct(12,l,t,n|2),e.elementType=B,e.lanes=u,e;case xe:return e=ct(13,l,t,n),e.elementType=xe,e.lanes=u,e;case Se:return e=ct(19,l,t,n),e.elementType=Se,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:c=10;break e;case Z:c=9;break e;case fe:c=11;break e;case F:c=14;break e;case Ne:c=16,a=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ct(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function ql(e,t,l,a){return e=ct(7,e,a,t),e.lanes=l,e}function Ks(e,t,l){return e=ct(6,e,null,t),e.lanes=l,e}function Ir(e){var t=ct(18,null,null,0);return t.stateNode=e,t}function Js(e,t,l){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eo=new WeakMap;function vt(e,t){if(typeof e=="object"&&e!==null){var l=eo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ic(t)},eo.set(e,t),t)}return{value:e,source:t,stack:Ic(t)}}var da=[],ma=0,cu=null,Ia=0,yt=[],bt=0,rl=null,Dt=1,_t="";function Qt(e,t){da[ma++]=Ia,da[ma++]=cu,cu=e,Ia=t}function to(e,t,l){yt[bt++]=Dt,yt[bt++]=_t,yt[bt++]=rl,rl=e;var a=Dt;e=_t;var n=32-st(a)-1;a&=~(1<<n),l+=1;var u=32-st(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Dt=1<<32-st(t)+n|l<<n|a,_t=u+e}else Dt=1<<u|l<<n|a,_t=e}function $s(e){e.return!==null&&(Qt(e,1),to(e,1,0))}function Ws(e){for(;e===cu;)cu=da[--ma],da[ma]=null,Ia=da[--ma],da[ma]=null;for(;e===rl;)rl=yt[--bt],yt[bt]=null,_t=yt[--bt],yt[bt]=null,Dt=yt[--bt],yt[bt]=null}function lo(e,t){yt[bt++]=Dt,yt[bt++]=_t,yt[bt++]=rl,Dt=t.id,_t=t.overflow,rl=e}var Xe=null,Ee=null,ie=!1,ol=null,jt=!1,Fs=Error(o(519));function fl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw en(vt(t,e)),Fs}function ao(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ge]=e,t[Fe]=a,l){case"dialog":ne("cancel",t),ne("close",t);break;case"iframe":case"object":case"embed":ne("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)ne(Nn[l],t);break;case"source":ne("error",t);break;case"img":case"image":case"link":ne("error",t),ne("load",t);break;case"details":ne("toggle",t);break;case"input":ne("invalid",t),pr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ne("invalid",t);break;case"textarea":ne("invalid",t),vr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Sd(t.textContent,l)?(a.popover!=null&&(ne("beforetoggle",t),ne("toggle",t)),a.onScroll!=null&&ne("scroll",t),a.onScrollEnd!=null&&ne("scrollend",t),a.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||fl(e,!0)}function no(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:jt=!1;return;case 27:case 3:jt=!0;return;default:Xe=Xe.return}}function ha(e){if(e!==Xe)return!1;if(!ie)return no(e),ie=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||xc(e.type,e.memoizedProps)),l=!l),l&&Ee&&fl(e),no(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ee=Od(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ee=Od(e)}else t===27?(t=Ee,Cl(e.type)?(e=bc,bc=null,Ee=e):Ee=t):Ee=Xe?Nt(e.stateNode.nextSibling):null;return!0}function Yl(){Ee=Xe=null,ie=!1}function Ps(){var e=ol;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),ol=null),e}function en(e){ol===null?ol=[e]:ol.push(e)}var Is=j(null),Gl=null,Vt=null;function dl(e,t,l){X(Is,t._currentValue),t._currentValue=l}function kt(e){e._currentValue=Is.current,U(Is)}function ei(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ti(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var v=0;v<t.length;v++)if(d.context===t[v]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),ei(u.return,l,e),a||(c=null);break e}u=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),ei(c,l,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 xa(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var d=n.type;it(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===de.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(zn):e=[zn])}n=n.return}e!==null&&ti(t,e,l,a),t.flags|=262144}function ru(e){for(e=e.firstContext;e!==null;){if(!it(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Gl=e,Vt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ze(e){return uo(Gl,e)}function ou(e,t){return Gl===null&&Xl(e),uo(e,t)}function uo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Vt===null){if(e===null)throw Error(o(308));Vt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vt=Vt.next=t;return l}var ah=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},nh=i.unstable_scheduleCallback,uh=i.unstable_NormalPriority,we={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function li(){return{controller:new ah,data:new Map,refCount:0}}function tn(e){e.refCount--,e.refCount===0&&nh(uh,function(){e.controller.abort()})}var ln=null,ai=0,pa=0,ga=null;function sh(e,t){if(ln===null){var l=ln=[];ai=0,pa=sc(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ai++,t.then(so,so),t}function so(){if(--ai===0&&ln!==null){ga!==null&&(ga.status="fulfilled");var e=ln;ln=null,pa=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ih(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var io=D.S;D.S=function(e,t){kf=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sh(e,t),io!==null&&io(e,t)};var Zl=j(null);function ni(){var e=Zl.current;return e!==null?e:je.pooledCache}function fu(e,t){t===null?X(Zl,Zl.current):X(Zl,t.pool)}function co(){var e=ni();return e===null?null:{parent:we._currentValue,pool:e}}var va=Error(o(460)),ui=Error(o(474)),du=Error(o(542)),mu={then:function(){}};function ro(e){return e=e.status,e==="fulfilled"||e==="rejected"}function oo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Gt,Gt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mo(e),e;default:if(typeof t.status=="string")t.then(Gt,Gt);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mo(e),e}throw Vl=t,va}}function Ql(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vl=l,va):l}}var Vl=null;function fo(){if(Vl===null)throw Error(o(459));var e=Vl;return Vl=null,e}function mo(e){if(e===va||e===du)throw Error(o(483))}var ya=null,an=0;function hu(e){var t=an;return an+=1,ya===null&&(ya=[]),oo(ya,e,t)}function nn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xu(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ho(e){function t(T,y){if(e){var A=T.deletions;A===null?(T.deletions=[y],T.flags|=16):A.push(y)}}function l(T,y){if(!e)return null;for(;y!==null;)t(T,y),y=y.sibling;return null}function a(T){for(var y=new Map;T!==null;)T.key!==null?y.set(T.key,T):y.set(T.index,T),T=T.sibling;return y}function n(T,y){return T=Zt(T,y),T.index=0,T.sibling=null,T}function u(T,y,A){return T.index=A,e?(A=T.alternate,A!==null?(A=A.index,A<y?(T.flags|=67108866,y):A):(T.flags|=67108866,y)):(T.flags|=1048576,y)}function c(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function d(T,y,A,_){return y===null||y.tag!==6?(y=Ks(A,T.mode,_),y.return=T,y):(y=n(y,A),y.return=T,y)}function v(T,y,A,_){var J=A.type;return J===Y?O(T,y,A.props.children,_,A.key):y!==null&&(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Ne&&Ql(J)===y.type)?(y=n(y,A.props),nn(y,A),y.return=T,y):(y=iu(A.type,A.key,A.props,null,T.mode,_),nn(y,A),y.return=T,y)}function z(T,y,A,_){return y===null||y.tag!==4||y.stateNode.containerInfo!==A.containerInfo||y.stateNode.implementation!==A.implementation?(y=Js(A,T.mode,_),y.return=T,y):(y=n(y,A.children||[]),y.return=T,y)}function O(T,y,A,_,J){return y===null||y.tag!==7?(y=ql(A,T.mode,_,J),y.return=T,y):(y=n(y,A),y.return=T,y)}function w(T,y,A){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Ks(""+y,T.mode,A),y.return=T,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case H:return A=iu(y.type,y.key,y.props,null,T.mode,A),nn(A,y),A.return=T,A;case q:return y=Js(y,T.mode,A),y.return=T,y;case Ne:return y=Ql(y),w(T,y,A)}if(At(y)||We(y))return y=ql(y,T.mode,A,null),y.return=T,y;if(typeof y.then=="function")return w(T,hu(y),A);if(y.$$typeof===K)return w(T,ou(T,y),A);xu(T,y)}return null}function R(T,y,A,_){var J=y!==null?y.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return J!==null?null:d(T,y,""+A,_);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case H:return A.key===J?v(T,y,A,_):null;case q:return A.key===J?z(T,y,A,_):null;case Ne:return A=Ql(A),R(T,y,A,_)}if(At(A)||We(A))return J!==null?null:O(T,y,A,_,null);if(typeof A.then=="function")return R(T,y,hu(A),_);if(A.$$typeof===K)return R(T,y,ou(T,A),_);xu(T,A)}return null}function M(T,y,A,_,J){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return T=T.get(A)||null,d(y,T,""+_,J);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case H:return T=T.get(_.key===null?A:_.key)||null,v(y,T,_,J);case q:return T=T.get(_.key===null?A:_.key)||null,z(y,T,_,J);case Ne:return _=Ql(_),M(T,y,A,_,J)}if(At(_)||We(_))return T=T.get(A)||null,O(y,T,_,J,null);if(typeof _.then=="function")return M(T,y,A,hu(_),J);if(_.$$typeof===K)return M(T,y,A,ou(y,_),J);xu(y,_)}return null}function Q(T,y,A,_){for(var J=null,ce=null,k=y,te=y=0,se=null;k!==null&&te<A.length;te++){k.index>te?(se=k,k=null):se=k.sibling;var re=R(T,k,A[te],_);if(re===null){k===null&&(k=se);break}e&&k&&re.alternate===null&&t(T,k),y=u(re,y,te),ce===null?J=re:ce.sibling=re,ce=re,k=se}if(te===A.length)return l(T,k),ie&&Qt(T,te),J;if(k===null){for(;te<A.length;te++)k=w(T,A[te],_),k!==null&&(y=u(k,y,te),ce===null?J=k:ce.sibling=k,ce=k);return ie&&Qt(T,te),J}for(k=a(k);te<A.length;te++)se=M(k,T,te,A[te],_),se!==null&&(e&&se.alternate!==null&&k.delete(se.key===null?te:se.key),y=u(se,y,te),ce===null?J=se:ce.sibling=se,ce=se);return e&&k.forEach(function(Ml){return t(T,Ml)}),ie&&Qt(T,te),J}function $(T,y,A,_){if(A==null)throw Error(o(151));for(var J=null,ce=null,k=y,te=y=0,se=null,re=A.next();k!==null&&!re.done;te++,re=A.next()){k.index>te?(se=k,k=null):se=k.sibling;var Ml=R(T,k,re.value,_);if(Ml===null){k===null&&(k=se);break}e&&k&&Ml.alternate===null&&t(T,k),y=u(Ml,y,te),ce===null?J=Ml:ce.sibling=Ml,ce=Ml,k=se}if(re.done)return l(T,k),ie&&Qt(T,te),J;if(k===null){for(;!re.done;te++,re=A.next())re=w(T,re.value,_),re!==null&&(y=u(re,y,te),ce===null?J=re:ce.sibling=re,ce=re);return ie&&Qt(T,te),J}for(k=a(k);!re.done;te++,re=A.next())re=M(k,T,te,re.value,_),re!==null&&(e&&re.alternate!==null&&k.delete(re.key===null?te:re.key),y=u(re,y,te),ce===null?J=re:ce.sibling=re,ce=re);return e&&k.forEach(function(vx){return t(T,vx)}),ie&&Qt(T,te),J}function ye(T,y,A,_){if(typeof A=="object"&&A!==null&&A.type===Y&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case H:e:{for(var J=A.key;y!==null;){if(y.key===J){if(J=A.type,J===Y){if(y.tag===7){l(T,y.sibling),_=n(y,A.props.children),_.return=T,T=_;break e}}else if(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Ne&&Ql(J)===y.type){l(T,y.sibling),_=n(y,A.props),nn(_,A),_.return=T,T=_;break e}l(T,y);break}else t(T,y);y=y.sibling}A.type===Y?(_=ql(A.props.children,T.mode,_,A.key),_.return=T,T=_):(_=iu(A.type,A.key,A.props,null,T.mode,_),nn(_,A),_.return=T,T=_)}return c(T);case q:e:{for(J=A.key;y!==null;){if(y.key===J)if(y.tag===4&&y.stateNode.containerInfo===A.containerInfo&&y.stateNode.implementation===A.implementation){l(T,y.sibling),_=n(y,A.children||[]),_.return=T,T=_;break e}else{l(T,y);break}else t(T,y);y=y.sibling}_=Js(A,T.mode,_),_.return=T,T=_}return c(T);case Ne:return A=Ql(A),ye(T,y,A,_)}if(At(A))return Q(T,y,A,_);if(We(A)){if(J=We(A),typeof J!="function")throw Error(o(150));return A=J.call(A),$(T,y,A,_)}if(typeof A.then=="function")return ye(T,y,hu(A),_);if(A.$$typeof===K)return ye(T,y,ou(T,A),_);xu(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,y!==null&&y.tag===6?(l(T,y.sibling),_=n(y,A),_.return=T,T=_):(l(T,y),_=Ks(A,T.mode,_),_.return=T,T=_),c(T)):l(T,y)}return function(T,y,A,_){try{an=0;var J=ye(T,y,A,_);return ya=null,J}catch(k){if(k===va||k===du)throw k;var ce=ct(29,k,null,T.mode);return ce.lanes=_,ce.return=T,ce}}}var kl=ho(!0),xo=ho(!1),ml=!1;function si(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ii(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(oe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=su(e),Fr(e,null,l),t}return uu(e,a,t,l),su(e)}function un(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}function ci(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ri=!1;function sn(){if(ri){var e=ga;if(e!==null)throw e}}function cn(e,t,l,a){ri=!1;var n=e.updateQueue;ml=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var v=d,z=v.next;v.next=null,c===null?u=z:c.next=z,c=v;var O=e.alternate;O!==null&&(O=O.updateQueue,d=O.lastBaseUpdate,d!==c&&(d===null?O.firstBaseUpdate=z:d.next=z,O.lastBaseUpdate=v))}if(u!==null){var w=n.baseState;c=0,O=z=v=null,d=u;do{var R=d.lane&-536870913,M=R!==d.lane;if(M?(ue&R)===R:(a&R)===R){R!==0&&R===pa&&(ri=!0),O!==null&&(O=O.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Q=e,$=d;R=t;var ye=l;switch($.tag){case 1:if(Q=$.payload,typeof Q=="function"){w=Q.call(ye,w,R);break e}w=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=$.payload,R=typeof Q=="function"?Q.call(ye,w,R):Q,R==null)break e;w=b({},w,R);break e;case 2:ml=!0}}R=d.callback,R!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[R]:M.push(R))}else M={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},O===null?(z=O=M,v=w):O=O.next=M,c|=R;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;M=d,d=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);O===null&&(v=w),n.baseState=v,n.firstBaseUpdate=z,n.lastBaseUpdate=O,u===null&&(n.shared.lanes=0),bl|=c,e.lanes=c,e.memoizedState=w}}function po(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function go(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)po(l[e],t)}var ba=j(null),pu=j(0);function vo(e,t){e=tl,X(pu,e),X(ba,t),tl=e|t.baseLanes}function oi(){X(pu,tl),X(ba,ba.current)}function fi(){tl=pu.current,U(ba),U(pu)}var rt=j(null),St=null;function pl(e){var t=e.alternate;X(De,De.current&1),X(rt,e),St===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(St=e)}function di(e){X(De,De.current),X(rt,e),St===null&&(St=e)}function yo(e){e.tag===22?(X(De,De.current),X(rt,e),St===null&&(St=e)):gl()}function gl(){X(De,De.current),X(rt,rt.current)}function ot(e){U(rt),St===e&&(St=null),U(De)}var De=j(0);function gu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||vc(l)||yc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kt=0,ee=null,ge=null,Ue=null,vu=!1,ja=!1,Kl=!1,yu=0,rn=0,Sa=null,ch=0;function ze(){throw Error(o(321))}function mi(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!it(e[l],t[l]))return!1;return!0}function hi(e,t,l,a,n,u){return Kt=u,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?lf:Ri,Kl=!1,u=l(a,n),Kl=!1,ja&&(u=jo(t,l,a,n)),bo(e),u}function bo(e){D.H=dn;var t=ge!==null&&ge.next!==null;if(Kt=0,Ue=ge=ee=null,vu=!1,rn=0,Sa=null,t)throw Error(o(300));e===null||He||(e=e.dependencies,e!==null&&ru(e)&&(He=!0))}function jo(e,t,l,a){ee=e;var n=0;do{if(ja&&(Sa=null),rn=0,ja=!1,25<=n)throw Error(o(301));if(n+=1,Ue=ge=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=af,u=t(l,a)}while(ja);return u}function rh(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?on(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(ee.flags|=1024),t}function xi(){var e=yu!==0;return yu=0,e}function pi(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function gi(e){if(vu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vu=!1}Kt=0,Ue=ge=ee=null,ja=!1,rn=yu=0,Sa=null}function $e(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?ee.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function _e(){if(ge===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Ue===null?ee.memoizedState:Ue.next;if(t!==null)Ue=t,ge=e;else{if(e===null)throw ee.alternate===null?Error(o(467)):Error(o(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},Ue===null?ee.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function on(e){var t=rn;return rn+=1,Sa===null&&(Sa=[]),e=oo(Sa,e,t),t=ee,(Ue===null?t.memoizedState:Ue.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?lf:Ri),e}function ju(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return on(e);if(e.$$typeof===K)return Ze(e)}throw Error(o(438,String(e)))}function vi(e){var t=null,l=ee.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ee.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bu(),ee.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ke;return t.index++,l}function Jt(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=_e();return yi(t,ge,e)}function yi(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=c=null,v=null,z=t,O=!1;do{var w=z.lane&-536870913;if(w!==z.lane?(ue&w)===w:(Kt&w)===w){var R=z.revertLane;if(R===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),w===pa&&(O=!0);else if((Kt&R)===R){z=z.next,R===pa&&(O=!0);continue}else w={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},v===null?(d=v=w,c=u):v=v.next=w,ee.lanes|=R,bl|=R;w=z.action,Kl&&l(u,w),u=z.hasEagerState?z.eagerState:l(u,w)}else R={lane:w,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},v===null?(d=v=R,c=u):v=v.next=R,ee.lanes|=w,bl|=w;z=z.next}while(z!==null&&z!==t);if(v===null?c=u:v.next=d,!it(u,e.memoizedState)&&(He=!0,O&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=v,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function bi(e){var t=_e(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);it(u,t.memoizedState)||(He=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function So(e,t,l){var a=ee,n=_e(),u=ie;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!it((ge||n).memoizedState,l);if(c&&(n.memoizedState=l,He=!0),n=n.queue,Ni(Co.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ue!==null&&Ue.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},Eo.bind(null,a,n,l,t),null),je===null)throw Error(o(349));u||(Kt&127)!==0||No(a,t,l)}return l}function No(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ee.updateQueue,t===null?(t=bu(),ee.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Eo(e,t,l,a){t.value=l,t.getSnapshot=a,To(t)&&Ao(e)}function Co(e,t,l){return l(function(){To(t)&&Ao(e)})}function To(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!it(e,l)}catch{return!0}}function Ao(e){var t=Ll(e,2);t!==null&&at(t,e,2)}function ji(e){var t=$e();if(typeof e=="function"){var l=e;if(e=l(),Kl){sl(!0);try{l()}finally{sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},t}function zo(e,t,l,a){return e.baseState=l,yi(e,ge,typeof a=="function"?a:Jt)}function oh(e,t,l,a,n){if(Cu(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Ro(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Ro(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,c={};D.T=c;try{var d=l(n,a),v=D.S;v!==null&&v(c,d),Mo(e,t,d)}catch(z){Si(e,t,z)}finally{u!==null&&c.types!==null&&(u.types=c.types),D.T=u}}else try{u=l(n,a),Mo(e,t,u)}catch(z){Si(e,t,z)}}function Mo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Oo(e,t,a)},function(a){return Si(e,t,a)}):Oo(e,t,l)}function Oo(e,t,l){t.status="fulfilled",t.value=l,Do(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ro(e,l)))}function Si(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Do(t),t=t.next;while(t!==a)}e.action=null}function Do(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _o(e,t){return t}function wo(e,t){if(ie){var l=je.formState;if(l!==null){e:{var a=ee;if(ie){if(Ee){t:{for(var n=Ee,u=jt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Nt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ee=Nt(n.nextSibling),a=n.data==="F!";break e}}fl(a)}a=!1}a&&(t=l[0])}}return l=$e(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_o,lastRenderedState:t},l.queue=a,l=Io.bind(null,ee,a),a.dispatch=l,a=ji(!1),u=zi.bind(null,ee,!1,a.queue),a=$e(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=oh.bind(null,ee,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Uo(e){var t=_e();return Ho(t,ge,e)}function Ho(e,t,l){if(t=yi(e,t,_o)[0],e=Su(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=on(t)}catch(c){throw c===va?du:c}else a=t;t=_e();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ee.flags|=2048,Na(9,{destroy:void 0},fh.bind(null,n,l),null)),[a,u,e]}function fh(e,t){e.action=t}function Bo(e){var t=_e(),l=ge;if(l!==null)return Ho(t,l,e);_e(),t=t.memoizedState,l=_e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Na(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ee.updateQueue,t===null&&(t=bu(),ee.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Lo(){return _e().memoizedState}function Nu(e,t,l,a){var n=$e();ee.flags|=e,n.memoizedState=Na(1|t,{destroy:void 0},l,a===void 0?null:a)}function Eu(e,t,l,a){var n=_e();a=a===void 0?null:a;var u=n.memoizedState.inst;ge!==null&&a!==null&&mi(a,ge.memoizedState.deps)?n.memoizedState=Na(t,u,l,a):(ee.flags|=e,n.memoizedState=Na(1|t,u,l,a))}function qo(e,t){Nu(8390656,8,e,t)}function Ni(e,t){Eu(2048,8,e,t)}function dh(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=bu(),ee.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yo(e){var t=_e().memoizedState;return dh({ref:t,nextImpl:e}),function(){if((oe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Go(e,t){return Eu(4,2,e,t)}function Xo(e,t){return Eu(4,4,e,t)}function Zo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qo(e,t,l){l=l!=null?l.concat([e]):null,Eu(4,4,Zo.bind(null,t,e),l)}function Ei(){}function Vo(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&mi(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ko(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&mi(t,a[1]))return a[0];if(a=e(),Kl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a}function Ci(e,t,l){return l===void 0||(Kt&1073741824)!==0&&(ue&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jf(),ee.lanes|=e,bl|=e,l)}function Ko(e,t,l,a){return it(l,t)?l:ba.current!==null?(e=Ci(e,l,a),it(e,t)||(He=!0),e):(Kt&42)===0||(Kt&1073741824)!==0&&(ue&261930)===0?(He=!0,e.memoizedState=l):(e=Jf(),ee.lanes|=e,bl|=e,t)}function Jo(e,t,l,a,n){var u=G.p;G.p=u!==0&&8>u?u:8;var c=D.T,d={};D.T=d,zi(e,!1,t,l);try{var v=n(),z=D.S;if(z!==null&&z(d,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var O=ih(v,a);fn(e,t,O,mt(e))}else fn(e,t,a,mt(e))}catch(w){fn(e,t,{then:function(){},status:"rejected",reason:w},mt())}finally{G.p=u,c!==null&&d.types!==null&&(c.types=d.types),D.T=c}}function mh(){}function Ti(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=$o(e).queue;Jo(e,n,t,W,l===null?mh:function(){return Wo(e),l(a)})}function $o(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:W},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wo(e){var t=$o(e);t.next===null&&(t=e.alternate.memoizedState),fn(e,t.next.queue,{},mt())}function Ai(){return Ze(zn)}function Fo(){return _e().memoizedState}function Po(){return _e().memoizedState}function hh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=hl(l);var a=xl(t,e,l);a!==null&&(at(a,t,l),un(a,t,l)),t={cache:li()},e.payload=t;return}t=t.return}}function xh(e,t,l){var a=mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Cu(e)?ef(t,l):(l=Vs(e,t,l,a),l!==null&&(at(l,e,a),tf(l,t,a)))}function Io(e,t,l){var a=mt();fn(e,t,l,a)}function fn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Cu(e))ef(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,l);if(n.hasEagerState=!0,n.eagerState=d,it(d,c))return uu(e,t,n,0),je===null&&nu(),!1}catch{}if(l=Vs(e,t,n,a),l!==null)return at(l,e,a),tf(l,t,a),!0}return!1}function zi(e,t,l,a){if(a={lane:2,revertLane:sc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Cu(e)){if(t)throw Error(o(479))}else t=Vs(e,l,a,2),t!==null&&at(t,e,2)}function Cu(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function ef(e,t){ja=vu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function tf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}var dn={readContext:Ze,use:ju,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useLayoutEffect:ze,useInsertionEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useSyncExternalStore:ze,useId:ze,useHostTransitionStatus:ze,useFormState:ze,useActionState:ze,useOptimistic:ze,useMemoCache:ze,useCacheRefresh:ze};dn.useEffectEvent=ze;var lf={readContext:Ze,use:ju,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:qo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Nu(4194308,4,Zo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Nu(4194308,4,e,t)},useInsertionEffect:function(e,t){Nu(4,2,e,t)},useMemo:function(e,t){var l=$e();t=t===void 0?null:t;var a=e();if(Kl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=$e();if(l!==void 0){var n=l(t);if(Kl){sl(!0);try{l(t)}finally{sl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=xh.bind(null,ee,e),[a.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:function(e){e=ji(e);var t=e.queue,l=Io.bind(null,ee,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ei,useDeferredValue:function(e,t){var l=$e();return Ci(l,e,t)},useTransition:function(){var e=ji(!1);return e=Jo.bind(null,ee,e.queue,!0,!1),$e().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ee,n=$e();if(ie){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),je===null)throw Error(o(349));(ue&127)!==0||No(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,qo(Co.bind(null,a,u,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},Eo.bind(null,a,u,l,t),null),l},useId:function(){var e=$e(),t=je.identifierPrefix;if(ie){var l=_t,a=Dt;l=(a&~(1<<32-st(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=yu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=ch++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ai,useFormState:wo,useActionState:wo,useOptimistic:function(e){var t=$e();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=zi.bind(null,ee,!0,l),l.dispatch=t,[e,t]},useMemoCache:vi,useCacheRefresh:function(){return $e().memoizedState=hh.bind(null,ee)},useEffectEvent:function(e){var t=$e(),l={impl:e};return t.memoizedState=l,function(){if((oe&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Ri={readContext:Ze,use:ju,useCallback:Vo,useContext:Ze,useEffect:Ni,useImperativeHandle:Qo,useInsertionEffect:Go,useLayoutEffect:Xo,useMemo:ko,useReducer:Su,useRef:Lo,useState:function(){return Su(Jt)},useDebugValue:Ei,useDeferredValue:function(e,t){var l=_e();return Ko(l,ge.memoizedState,e,t)},useTransition:function(){var e=Su(Jt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:So,useId:Fo,useHostTransitionStatus:Ai,useFormState:Uo,useActionState:Uo,useOptimistic:function(e,t){var l=_e();return zo(l,ge,e,t)},useMemoCache:vi,useCacheRefresh:Po};Ri.useEffectEvent=Yo;var af={readContext:Ze,use:ju,useCallback:Vo,useContext:Ze,useEffect:Ni,useImperativeHandle:Qo,useInsertionEffect:Go,useLayoutEffect:Xo,useMemo:ko,useReducer:bi,useRef:Lo,useState:function(){return bi(Jt)},useDebugValue:Ei,useDeferredValue:function(e,t){var l=_e();return ge===null?Ci(l,e,t):Ko(l,ge.memoizedState,e,t)},useTransition:function(){var e=bi(Jt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:So,useId:Fo,useHostTransitionStatus:Ai,useFormState:Bo,useActionState:Bo,useOptimistic:function(e,t){var l=_e();return ge!==null?zo(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:vi,useCacheRefresh:Po};af.useEffectEvent=Yo;function Mi(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Oi={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=mt(),n=hl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(at(t,e,a),un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=hl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(at(t,e,a),un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=hl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(at(t,e,l),un(t,e,l))}};function nf(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Fa(l,a)||!Fa(n,u):!0}function uf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Oi.enqueueReplaceState(t,t.state,null)}function Jl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function sf(e){au(e)}function cf(e){console.error(e)}function rf(e){au(e)}function Tu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function of(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Di(e,t,l){return l=hl(l),l.tag=3,l.payload={element:null},l.callback=function(){Tu(e,t)},l}function ff(e){return e=hl(e),e.tag=3,e}function df(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){of(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){of(t,l,a),typeof n!="function"&&(jl===null?jl=new Set([this]):jl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function ph(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&xa(t,l,n,!0),l=rt.current,l!==null){switch(l.tag){case 31:case 13:return St===null?Lu():l.alternate===null&&Re===0&&(Re=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===mu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ac(e,a,n)),!1;case 22:return l.flags|=65536,a===mu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ac(e,a,n)),!1}throw Error(o(435,l.tag))}return ac(e,a,n),Lu(),!1}if(ie)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Fs&&(e=Error(o(422),{cause:a}),en(vt(e,l)))):(a!==Fs&&(t=Error(o(423),{cause:a}),en(vt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=vt(a,l),n=Di(e.stateNode,a,n),ci(e,n),Re!==4&&(Re=2)),!1;var u=Error(o(520),{cause:a});if(u=vt(u,l),bn===null?bn=[u]:bn.push(u),Re!==4&&(Re=2),t===null)return!0;a=vt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Di(l.stateNode,a,e),ci(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(jl===null||!jl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=ff(n),df(n,e,l,a),ci(l,n),!1}l=l.return}while(l!==null);return!1}var _i=Error(o(461)),He=!1;function Qe(e,t,l,a){t.child=e===null?xo(t,null,l,a):kl(t,e.child,l,a)}function mf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Xl(t),a=hi(e,t,l,c,u,n),d=xi(),e!==null&&!He?(pi(e,t,n),$t(e,t,n)):(ie&&d&&$s(t),t.flags|=1,Qe(e,t,a,n),t.child)}function hf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!ks(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,xf(e,t,u,a,n)):(e=iu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Gi(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Fa,l(c,a)&&e.ref===t.ref)return $t(e,t,n)}return t.flags|=1,e=Zt(u,a),e.ref=t.ref,e.return=t,t.child=e}function xf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Fa(u,a)&&e.ref===t.ref)if(He=!1,t.pendingProps=a=u,Gi(e,n))(e.flags&131072)!==0&&(He=!0);else return t.lanes=e.lanes,$t(e,t,n)}return wi(e,t,l,a,n)}function pf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return gf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,u!==null?u.cachePool:null),u!==null?vo(t,u):oi(),yo(t);else return a=t.lanes=536870912,gf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(fu(t,u.cachePool),vo(t,u),gl(),t.memoizedState=null):(e!==null&&fu(t,null),oi(),gl());return Qe(e,t,n,l),t.child}function mn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gf(e,t,l,a,n){var u=ni();return u=u===null?null:{parent:we._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&fu(t,null),oi(),yo(t),e!==null&&xa(e,t,a,!0),t.childLanes=n,null}function Au(e,t){return t=Ru({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function vf(e,t,l){return kl(t,e.child,null,l),e=Au(t,t.pendingProps),e.flags|=2,ot(t),t.memoizedState=null,e}function gh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ie){if(a.mode==="hidden")return e=Au(t,a),t.lanes=536870912,mn(null,e);if(di(t),(e=Ee)?(e=Md(e,jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:Dt,overflow:_t}:null,retryLane:536870912,hydrationErrors:null},l=Ir(e),l.return=t,t.child=l,Xe=t,Ee=null)):e=null,e===null)throw fl(t);return t.lanes=536870912,null}return Au(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(di(t),n)if(t.flags&256)t.flags&=-257,t=vf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(He||xa(e,t,l,!1),n=(l&e.childLanes)!==0,He||n){if(a=je,a!==null&&(c=sr(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Ll(e,c),at(a,e,c),_i;Lu(),t=vf(e,t,l)}else e=u.treeContext,Ee=Nt(c.nextSibling),Xe=t,ie=!0,ol=null,jt=!1,e!==null&&lo(t,e),t=Au(t,a),t.flags|=4096;return t}return e=Zt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function wi(e,t,l,a,n){return Xl(t),l=hi(e,t,l,a,void 0,n),a=xi(),e!==null&&!He?(pi(e,t,n),$t(e,t,n)):(ie&&a&&$s(t),t.flags|=1,Qe(e,t,l,n),t.child)}function yf(e,t,l,a,n,u){return Xl(t),t.updateQueue=null,l=jo(t,a,l,n),bo(e),a=xi(),e!==null&&!He?(pi(e,t,u),$t(e,t,u)):(ie&&a&&$s(t),t.flags|=1,Qe(e,t,l,u),t.child)}function bf(e,t,l,a,n){if(Xl(t),t.stateNode===null){var u=fa,c=l.contextType;typeof c=="object"&&c!==null&&(u=Ze(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Oi,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},si(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?Ze(c):fa,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Mi(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Oi.enqueueReplaceState(u,u.state,null),cn(t,a,u,n),sn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,v=Jl(l,d);u.props=v;var z=u.context,O=l.contextType;c=fa,typeof O=="object"&&O!==null&&(c=Ze(O));var w=l.getDerivedStateFromProps;O=typeof w=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||z!==c)&&uf(t,u,a,c),ml=!1;var R=t.memoizedState;u.state=R,cn(t,a,u,n),sn(),z=t.memoizedState,d||R!==z||ml?(typeof w=="function"&&(Mi(t,l,w,a),z=t.memoizedState),(v=ml||nf(t,l,v,a,R,z,c))?(O||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=c,a=v):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,ii(e,t),c=t.memoizedProps,O=Jl(l,c),u.props=O,w=t.pendingProps,R=u.context,z=l.contextType,v=fa,typeof z=="object"&&z!==null&&(v=Ze(z)),d=l.getDerivedStateFromProps,(z=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==w||R!==v)&&uf(t,u,a,v),ml=!1,R=t.memoizedState,u.state=R,cn(t,a,u,n),sn();var M=t.memoizedState;c!==w||R!==M||ml||e!==null&&e.dependencies!==null&&ru(e.dependencies)?(typeof d=="function"&&(Mi(t,l,d,a),M=t.memoizedState),(O=ml||nf(t,l,O,a,R,M,v)||e!==null&&e.dependencies!==null&&ru(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,M,v),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,M,v)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),u.props=a,u.state=M,u.context=v,a=O):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,zu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=kl(t,e.child,null,n),t.child=kl(t,null,l,n)):Qe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=$t(e,t,n),e}function jf(e,t,l,a){return Yl(),t.flags|=256,Qe(e,t,l,a),t.child}var Ui={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hi(e){return{baseLanes:e,cachePool:co()}}function Bi(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=dt),e}function Sf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(De.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ie){if(n?pl(t):gl(),(e=Ee)?(e=Md(e,jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:Dt,overflow:_t}:null,retryLane:536870912,hydrationErrors:null},l=Ir(e),l.return=t,t.child=l,Xe=t,Ee=null)):e=null,e===null)throw fl(t);return yc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(gl(),n=t.mode,d=Ru({mode:"hidden",children:d},n),a=ql(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Hi(l),a.childLanes=Bi(e,c,l),t.memoizedState=Ui,mn(null,a)):(pl(t),Li(t,d))}var v=e.memoizedState;if(v!==null&&(d=v.dehydrated,d!==null)){if(u)t.flags&256?(pl(t),t.flags&=-257,t=qi(e,t,l)):t.memoizedState!==null?(gl(),t.child=e.child,t.flags|=128,t=null):(gl(),d=a.fallback,n=t.mode,a=Ru({mode:"visible",children:a.children},n),d=ql(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,kl(t,e.child,null,l),a=t.child,a.memoizedState=Hi(l),a.childLanes=Bi(e,c,l),t.memoizedState=Ui,t=mn(null,a));else if(pl(t),yc(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var z=c.dgst;c=z,a=Error(o(419)),a.stack="",a.digest=c,en({value:a,source:null,stack:null}),t=qi(e,t,l)}else if(He||xa(e,t,l,!1),c=(l&e.childLanes)!==0,He||c){if(c=je,c!==null&&(a=sr(c,l),a!==0&&a!==v.retryLane))throw v.retryLane=a,Ll(e,a),at(c,e,a),_i;vc(d)||Lu(),t=qi(e,t,l)}else vc(d)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Ee=Nt(d.nextSibling),Xe=t,ie=!0,ol=null,jt=!1,e!==null&&lo(t,e),t=Li(t,a.children),t.flags|=4096);return t}return n?(gl(),d=a.fallback,n=t.mode,v=e.child,z=v.sibling,a=Zt(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,z!==null?d=Zt(z,d):(d=ql(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,mn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Hi(l):(n=d.cachePool,n!==null?(v=we._currentValue,n=n.parent!==v?{parent:v,pool:v}:n):n=co(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Bi(e,c,l),t.memoizedState=Ui,mn(e.child,a)):(pl(t),l=e.child,e=l.sibling,l=Zt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Li(e,t){return t=Ru({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ru(e,t){return e=ct(22,e,null,t),e.lanes=0,e}function qi(e,t,l){return kl(t,e.child,null,l),e=Li(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ei(e.return,t,l)}function Yi(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Ef(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=De.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,X(De,c),Qe(e,t,a,l),a=ie?Ia:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nf(e,l,t);else if(e.tag===19)Nf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&gu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Yi(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&gu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Yi(t,!0,l,null,u,a);break;case"together":Yi(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function $t(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(xa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Zt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Zt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gi(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ru(e)))}function vh(e,t,l){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),dl(t,we,e.memoizedState.cache),Yl();break;case 27:case 5:La(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:dl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,di(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(pl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Sf(e,t,l):(pl(t),e=$t(e,t,l),e!==null?e.sibling:null);pl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(xa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Ef(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),X(De,De.current),a)break;return null;case 22:return t.lanes=0,pf(e,t,l,t.pendingProps);case 24:dl(t,we,e.memoizedState.cache)}return $t(e,t,l)}function Cf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)He=!0;else{if(!Gi(e,l)&&(t.flags&128)===0)return He=!1,vh(e,t,l);He=(e.flags&131072)!==0}else He=!1,ie&&(t.flags&1048576)!==0&&to(t,Ia,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ql(t.elementType),t.type=e,typeof e=="function")ks(e)?(a=Jl(e,a),t.tag=1,t=bf(null,t,e,a,l)):(t.tag=0,t=wi(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===fe){t.tag=11,t=mf(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=hf(null,t,e,a,l);break e}}throw t=qt(e)||e,Error(o(306,t,""))}}return t;case 0:return wi(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Jl(a,t.pendingProps),bf(e,t,a,n,l);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,ii(e,t),cn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,dl(t,we,a),a!==u.cache&&ti(t,[we],l,!0),sn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=jf(e,t,a,l);break e}else if(a!==n){n=vt(Error(o(424)),t),en(n),t=jf(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ee=Nt(e.firstChild),Xe=t,ie=!0,ol=null,jt=!0,l=xo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Yl(),a===n){t=$t(e,t,l);break e}Qe(e,t,a,l)}t=t.child}return t;case 26:return zu(e,t),e===null?(l=Hd(t.type,null,t.pendingProps,null))?t.memoizedState=l:ie||(l=t.type,e=t.pendingProps,a=Vu(le.current).createElement(l),a[Ge]=t,a[Fe]=e,Ve(a,l,e),qe(a),t.stateNode=a):t.memoizedState=Hd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return La(t),e===null&&ie&&(a=t.stateNode=_d(t.type,t.pendingProps,le.current),Xe=t,jt=!0,n=Ee,Cl(t.type)?(bc=n,Ee=Nt(a.firstChild)):Ee=n),Qe(e,t,t.pendingProps.children,l),zu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ie&&((n=a=Ee)&&(a=Jh(a,t.type,t.pendingProps,jt),a!==null?(t.stateNode=a,Xe=t,Ee=Nt(a.firstChild),jt=!1,n=!0):n=!1),n||fl(t)),La(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,xc(n,u)?a=null:c!==null&&xc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=hi(e,t,rh,null,null,l),zn._currentValue=n),zu(e,t),Qe(e,t,a,l),t.child;case 6:return e===null&&ie&&((e=l=Ee)&&(l=$h(l,t.pendingProps,jt),l!==null?(t.stateNode=l,Xe=t,Ee=null,e=!0):e=!1),e||fl(t)),null;case 13:return Sf(e,t,l);case 4:return Je(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=kl(t,null,a,l):Qe(e,t,a,l),t.child;case 11:return mf(e,t,t.type,t.pendingProps,l);case 7:return Qe(e,t,t.pendingProps,l),t.child;case 8:return Qe(e,t,t.pendingProps.children,l),t.child;case 12:return Qe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,dl(t,t.type,a.value),Qe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Xl(t),n=Ze(n),a=a(n),t.flags|=1,Qe(e,t,a,l),t.child;case 14:return hf(e,t,t.type,t.pendingProps,l);case 15:return xf(e,t,t.type,t.pendingProps,l);case 19:return Ef(e,t,l);case 31:return gh(e,t,l);case 22:return pf(e,t,l,t.pendingProps);case 24:return Xl(t),a=Ze(we),e===null?(n=ni(),n===null&&(n=je,u=li(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},si(t),dl(t,we,n)):((e.lanes&l)!==0&&(ii(e,t),cn(t,null,null,l),sn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),dl(t,we,a)):(a=u.cache,dl(t,we,a),a!==n.cache&&ti(t,[we],l,!0))),Qe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Wt(e){e.flags|=4}function Xi(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Pf())e.flags|=8192;else throw Vl=mu,ui}else e.flags&=-16777217}function Tf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gd(t))if(Pf())e.flags|=8192;else throw Vl=mu,ui}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,Aa|=t)}function hn(e,t){if(!ie)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=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;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function yh(e,t,l){var a=t.pendingProps;switch(Ws(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return Ce(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),kt(we),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ha(t)?Wt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ps())),Ce(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Wt(t),u!==null?(Ce(t),Tf(t,u)):(Ce(t),Xi(t,n,null,a,l))):u?u!==e.memoizedState?(Wt(t),Ce(t),Tf(t,u)):(Ce(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Wt(t),Ce(t),Xi(t,n,e,a,l)),null;case 27:if(Gn(t),l=le.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ce(t),null}e=V.current,ha(t)?ao(t):(e=_d(n,a,l),t.stateNode=e,Wt(t))}return Ce(t),null;case 5:if(Gn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ce(t),null}if(u=V.current,ha(t))ao(t);else{var c=Vu(le.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Ge]=t,u[Fe]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Ve(u,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&&Wt(t)}}return Ce(t),Xi(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=le.current,ha(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Xe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Sd(e.nodeValue,l)),e||fl(t,!0)}else e=Vu(e).createTextNode(a),e[Ge]=t,t.stateNode=e}return Ce(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ha(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Ge]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ce(t),e=!1}else l=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ot(t),t):(ot(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ce(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ha(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Ge]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ce(t),n=!1}else n=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ot(t),t):(ot(t),null)}return ot(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Mu(t,t.updateQueue),Ce(t),null);case 4:return Oe(),e===null&&oc(t.stateNode.containerInfo),Ce(t),null;case 10:return kt(t.type),Ce(t),null;case 19:if(U(De),a=t.memoizedState,a===null)return Ce(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)hn(a,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=gu(e),u!==null){for(t.flags|=128,hn(a,!1),e=u.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Pr(l,e),l=l.sibling;return X(De,De.current&1|2),ie&&Qt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&nt()>Uu&&(t.flags|=128,n=!0,hn(a,!1),t.lanes=4194304)}else{if(!n)if(e=gu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),hn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ie)return Ce(t),null}else 2*nt()-a.renderingStartTime>Uu&&l!==536870912&&(t.flags|=128,n=!0,hn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=nt(),e.sibling=null,l=De.current,X(De,n?l&1|2:l&1),ie&&Qt(t,a.treeForkCount),e):(Ce(t),null);case 22:case 23:return ot(t),fi(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),l=t.updateQueue,l!==null&&Mu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Zl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),kt(we),Ce(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function bh(e,t){switch(Ws(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kt(we),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Gn(t),null;case 31:if(t.memoizedState!==null){if(ot(t),t.alternate===null)throw Error(o(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(De),null;case 4:return Oe(),null;case 10:return kt(t.type),null;case 22:case 23:return ot(t),fi(),e!==null&&U(Zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kt(we),null;case 25:return null;default:return null}}function Af(e,t){switch(Ws(t),t.tag){case 3:kt(we),Oe();break;case 26:case 27:case 5:Gn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&ot(t);break;case 13:ot(t);break;case 19:U(De);break;case 10:kt(t.type);break;case 22:case 23:ot(t),fi(),e!==null&&U(Zl);break;case 24:kt(we)}}function xn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){he(t,t.return,d)}}function vl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var v=l,z=d;try{z()}catch(O){he(n,v,O)}}}a=a.next}while(a!==u)}}catch(O){he(t,t.return,O)}}function zf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{go(t,l)}catch(a){he(e,e.return,a)}}}function Rf(e,t,l){l.props=Jl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){he(e,t,a)}}function pn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){he(e,t,n)}}function wt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){he(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){he(e,t,n)}else l.current=null}function Mf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){he(e,e.return,n)}}function Zi(e,t,l){try{var a=e.stateNode;Xh(a,e.type,l,t),a[Fe]=t}catch(n){he(e,e.return,n)}}function Of(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cl(e.type)||e.tag===4}function Qi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Of(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&&Cl(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 Vi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Gt));else if(a!==4&&(a===27&&Cl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Vi(e,t,l),e=e.sibling;e!==null;)Vi(e,t,l),e=e.sibling}function Ou(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Cl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ou(e,t,l),e=e.sibling;e!==null;)Ou(e,t,l),e=e.sibling}function Df(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ve(t,a,l),t[Ge]=e,t[Fe]=l}catch(u){he(e,e.return,u)}}var Ft=!1,Be=!1,ki=!1,_f=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function jh(e,t){if(e=e.containerInfo,mc=Pu,e=Zr(e),qs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,d=-1,v=-1,z=0,O=0,w=e,R=null;t:for(;;){for(var M;w!==l||n!==0&&w.nodeType!==3||(d=c+n),w!==u||a!==0&&w.nodeType!==3||(v=c+a),w.nodeType===3&&(c+=w.nodeValue.length),(M=w.firstChild)!==null;)R=w,w=M;for(;;){if(w===e)break t;if(R===l&&++z===n&&(d=c),R===u&&++O===a&&(v=c),(M=w.nextSibling)!==null)break;w=R,R=w.parentNode}w=M}l=d===-1||v===-1?null:{start:d,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(hc={focusedElem:e,selectionRange:l},Pu=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Q=Jl(l.type,n);e=a.getSnapshotBeforeUpdate(Q,u),a.__reactInternalSnapshotBeforeUpdate=e}catch($){he(l,l.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)gc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gc(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function wf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:It(e,l),a&4&&xn(5,l);break;case 1:if(It(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){he(l,l.return,c)}else{var n=Jl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){he(l,l.return,c)}}a&64&&zf(l),a&512&&pn(l,l.return);break;case 3:if(It(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{go(e,t)}catch(c){he(l,l.return,c)}}break;case 27:t===null&&a&4&&Df(l);case 26:case 5:It(e,l),t===null&&a&4&&Mf(l),a&512&&pn(l,l.return);break;case 12:It(e,l);break;case 31:It(e,l),a&4&&Bf(e,l);break;case 13:It(e,l),a&4&&Lf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Mh.bind(null,l),Wh(e,l))));break;case 22:if(a=l.memoizedState!==null||Ft,!a){t=t!==null&&t.memoizedState!==null||Be,n=Ft;var u=Be;Ft=a,(Be=t)&&!u?el(e,l,(l.subtreeFlags&8772)!==0):It(e,l),Ft=n,Be=u}break;case 30:break;default:It(e,l)}}function Uf(e){var t=e.alternate;t!==null&&(e.alternate=null,Uf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ss(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Te=null,Ie=!1;function Pt(e,t,l){for(l=l.child;l!==null;)Hf(e,t,l),l=l.sibling}function Hf(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(qa,l)}catch{}switch(l.tag){case 26:Be||wt(l,t),Pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Be||wt(l,t);var a=Te,n=Ie;Cl(l.type)&&(Te=l.stateNode,Ie=!1),Pt(e,t,l),Cn(l.stateNode),Te=a,Ie=n;break;case 5:Be||wt(l,t);case 6:if(a=Te,n=Ie,Te=null,Pt(e,t,l),Te=a,Ie=n,Te!==null)if(Ie)try{(Te.nodeType===9?Te.body:Te.nodeName==="HTML"?Te.ownerDocument.body:Te).removeChild(l.stateNode)}catch(u){he(l,t,u)}else try{Te.removeChild(l.stateNode)}catch(u){he(l,t,u)}break;case 18:Te!==null&&(Ie?(e=Te,zd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ua(e)):zd(Te,l.stateNode));break;case 4:a=Te,n=Ie,Te=l.stateNode.containerInfo,Ie=!0,Pt(e,t,l),Te=a,Ie=n;break;case 0:case 11:case 14:case 15:vl(2,l,t),Be||vl(4,l,t),Pt(e,t,l);break;case 1:Be||(wt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Rf(l,t,a)),Pt(e,t,l);break;case 21:Pt(e,t,l);break;case 22:Be=(a=Be)||l.memoizedState!==null,Pt(e,t,l),Be=a;break;default:Pt(e,t,l)}}function Bf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ua(e)}catch(l){he(t,t.return,l)}}}function Lf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ua(e)}catch(l){he(t,t.return,l)}}function Sh(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new _f),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new _f),t;default:throw Error(o(435,e.tag))}}function Du(e,t){var l=Sh(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Oh.bind(null,e,a);a.then(n,n)}})}function et(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Cl(d.type)){Te=d.stateNode,Ie=!1;break e}break;case 5:Te=d.stateNode,Ie=!1;break e;case 3:case 4:Te=d.stateNode.containerInfo,Ie=!0;break e}d=d.return}if(Te===null)throw Error(o(160));Hf(u,c,n),Te=null,Ie=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qf(t,e),t=t.sibling}var Rt=null;function qf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:et(t,e),tt(e),a&4&&(vl(3,e,e.return),xn(3,e),vl(5,e,e.return));break;case 1:et(t,e),tt(e),a&512&&(Be||l===null||wt(l,l.return)),a&64&&Ft&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Rt;if(et(t,e),tt(e),a&512&&(Be||l===null||wt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Xa]||u[Ge]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ve(u,a,l),u[Ge]=e,qe(u),a=u;break e;case"link":var c=qd("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(u=c[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;case"meta":if(c=qd("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(u=c[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Ge]=e,qe(u),a=u}e.stateNode=a}else Yd(n,e.type,e.stateNode);else e.stateNode=Ld(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Yd(n,e.type,e.stateNode):Ld(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Zi(e,e.memoizedProps,l.memoizedProps)}break;case 27:et(t,e),tt(e),a&512&&(Be||l===null||wt(l,l.return)),l!==null&&a&4&&Zi(e,e.memoizedProps,l.memoizedProps);break;case 5:if(et(t,e),tt(e),a&512&&(Be||l===null||wt(l,l.return)),e.flags&32){n=e.stateNode;try{na(n,"")}catch(Q){he(e,e.return,Q)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Zi(e,n,l!==null?l.memoizedProps:n)),a&1024&&(ki=!0);break;case 6:if(et(t,e),tt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Q){he(e,e.return,Q)}}break;case 3:if(Ju=null,n=Rt,Rt=ku(t.containerInfo),et(t,e),Rt=n,tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ua(t.containerInfo)}catch(Q){he(e,e.return,Q)}ki&&(ki=!1,Yf(e));break;case 4:a=Rt,Rt=ku(e.stateNode.containerInfo),et(t,e),tt(e),Rt=a;break;case 12:et(t,e),tt(e);break;case 31:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Du(e,a)));break;case 13:et(t,e),tt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(wu=nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Du(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,z=Ft,O=Be;if(Ft=z||n,Be=O||v,et(t,e),Be=O,Ft=z,tt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||Ft||Be||$l(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(u=v.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=v.stateNode;var w=v.memoizedProps.style,R=w!=null&&w.hasOwnProperty("display")?w.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(Q){he(v,v.return,Q)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(Q){he(v,v.return,Q)}}}else if(t.tag===18){if(l===null){v=t;try{var M=v.stateNode;n?Rd(M,!0):Rd(v.stateNode,!1)}catch(Q){he(v,v.return,Q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Du(e,l))));break;case 19:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Du(e,a)));break;case 30:break;case 21:break;default:et(t,e),tt(e)}}function tt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Of(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Qi(e);Ou(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(na(c,""),l.flags&=-33);var d=Qi(e);Ou(e,d,c);break;case 3:case 4:var v=l.stateNode.containerInfo,z=Qi(e);Vi(e,z,v);break;default:throw Error(o(161))}}catch(O){he(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function It(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wf(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),$l(t);break;case 1:wt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Rf(t,t.return,l),$l(t);break;case 27:Cn(t.stateNode);case 26:case 5:wt(t,t.return),$l(t);break;case 22:t.memoizedState===null&&$l(t);break;case 30:$l(t);break;default:$l(t)}e=e.sibling}}function el(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:el(n,u,l),xn(4,u);break;case 1:if(el(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){he(a,a.return,z)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)po(v[n],d)}catch(z){he(a,a.return,z)}}l&&c&64&&zf(u),pn(u,u.return);break;case 27:Df(u);case 26:case 5:el(n,u,l),l&&a===null&&c&4&&Mf(u),pn(u,u.return);break;case 12:el(n,u,l);break;case 31:el(n,u,l),l&&c&4&&Bf(n,u);break;case 13:el(n,u,l),l&&c&4&&Lf(n,u);break;case 22:u.memoizedState===null&&el(n,u,l),pn(u,u.return);break;case 30:break;default:el(n,u,l)}t=t.sibling}}function Ki(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&tn(l))}function Ji(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tn(e))}function Mt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gf(e,t,l,a),t=t.sibling}function Gf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,l,a),n&2048&&xn(9,t);break;case 1:Mt(e,t,l,a);break;case 3:Mt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tn(e)));break;case 12:if(n&2048){Mt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,d=u.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){he(t,t.return,v)}}else Mt(e,t,l,a);break;case 31:Mt(e,t,l,a);break;case 13:Mt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Mt(e,t,l,a):gn(e,t):u._visibility&2?Mt(e,t,l,a):(u._visibility|=2,Ea(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ki(c,t);break;case 24:Mt(e,t,l,a),n&2048&&Ji(t.alternate,t);break;default:Mt(e,t,l,a)}}function Ea(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,d=l,v=a,z=c.flags;switch(c.tag){case 0:case 11:case 15:Ea(u,c,d,v,n),xn(8,c);break;case 23:break;case 22:var O=c.stateNode;c.memoizedState!==null?O._visibility&2?Ea(u,c,d,v,n):gn(u,c):(O._visibility|=2,Ea(u,c,d,v,n)),n&&z&2048&&Ki(c.alternate,c);break;case 24:Ea(u,c,d,v,n),n&&z&2048&&Ji(c.alternate,c);break;default:Ea(u,c,d,v,n)}t=t.sibling}}function gn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:gn(l,a),n&2048&&Ki(a.alternate,a);break;case 24:gn(l,a),n&2048&&Ji(a.alternate,a);break;default:gn(l,a)}t=t.sibling}}var vn=8192;function Ca(e,t,l){if(e.subtreeFlags&vn)for(e=e.child;e!==null;)Xf(e,t,l),e=e.sibling}function Xf(e,t,l){switch(e.tag){case 26:Ca(e,t,l),e.flags&vn&&e.memoizedState!==null&&cx(l,Rt,e.memoizedState,e.memoizedProps);break;case 5:Ca(e,t,l);break;case 3:case 4:var a=Rt;Rt=ku(e.stateNode.containerInfo),Ca(e,t,l),Rt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=vn,vn=16777216,Ca(e,t,l),vn=a):Ca(e,t,l));break;default:Ca(e,t,l)}}function Zf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function yn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ye=a,Vf(a,e)}Zf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qf(e),e=e.sibling}function Qf(e){switch(e.tag){case 0:case 11:case 15:yn(e),e.flags&2048&&vl(9,e,e.return);break;case 3:yn(e);break;case 12:yn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_u(e)):yn(e);break;default:yn(e)}}function _u(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ye=a,Vf(a,e)}Zf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),_u(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,_u(t));break;default:_u(t)}e=e.sibling}}function Vf(e,t){for(;Ye!==null;){var l=Ye;switch(l.tag){case 0:case 11:case 15:vl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:tn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ye=a;else e:for(l=e;Ye!==null;){a=Ye;var n=a.sibling,u=a.return;if(Uf(a),a===l){Ye=null;break e}if(n!==null){n.return=u,Ye=n;break e}Ye=u}}}var Nh={getCacheForType:function(e){var t=Ze(we),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ze(we).controller.signal}},Eh=typeof WeakMap=="function"?WeakMap:Map,oe=0,je=null,ae=null,ue=0,me=0,ft=null,yl=!1,Ta=!1,$i=!1,tl=0,Re=0,bl=0,Wl=0,Wi=0,dt=0,Aa=0,bn=null,lt=null,Fi=!1,wu=0,kf=0,Uu=1/0,Hu=null,jl=null,Le=0,Sl=null,za=null,ll=0,Pi=0,Ii=null,Kf=null,jn=0,ec=null;function mt(){return(oe&2)!==0&&ue!==0?ue&-ue:D.T!==null?sc():ir()}function Jf(){if(dt===0)if((ue&536870912)===0||ie){var e=Qn;Qn<<=1,(Qn&3932160)===0&&(Qn=262144),dt=e}else dt=536870912;return e=rt.current,e!==null&&(e.flags|=32),dt}function at(e,t,l){(e===je&&(me===2||me===9)||e.cancelPendingCommit!==null)&&(Ra(e,0),Nl(e,ue,dt,!1)),Ga(e,l),((oe&2)===0||e!==je)&&(e===je&&((oe&2)===0&&(Wl|=l),Re===4&&Nl(e,ue,dt,!1)),Ut(e))}function $f(e,t,l){if((oe&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ya(e,t),n=a?Ah(e,t):lc(e,t,!0),u=a;do{if(n===0){Ta&&!a&&Nl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Ch(l)){n=lc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=bn;var v=d.current.memoizedState.isDehydrated;if(v&&(Ra(d,c).flags|=256),c=lc(d,c,!1),c!==2){if($i&&!v){d.errorRecoveryDisabledLanes|=u,Wl|=u,n=4;break e}u=lt,lt=n,u!==null&&(lt===null?lt=u:lt.push.apply(lt,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ra(e,0),Nl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Nl(a,t,dt,!yl);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=wu+300-nt(),10<n)){if(Nl(a,t,dt,!yl),kn(a,0,!0)!==0)break e;ll=t,a.timeoutHandle=Td(Wf.bind(null,a,l,lt,Hu,Fi,t,dt,Wl,Aa,yl,u,"Throttled",-0,0),n);break e}Wf(a,l,lt,Hu,Fi,t,dt,Wl,Aa,yl,u,null,-0,0)}}break}while(!0);Ut(e)}function Wf(e,t,l,a,n,u,c,d,v,z,O,w,R,M){if(e.timeoutHandle=-1,w=t.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Xf(t,u,w);var Q=(u&62914560)===u?wu-nt():(u&4194048)===u?kf-nt():0;if(Q=rx(w,Q),Q!==null){ll=u,e.cancelPendingCommit=Q(nd.bind(null,e,t,u,l,a,n,c,d,v,O,w,null,R,M)),Nl(e,u,c,!z);return}}nd(e,t,u,l,a,n,c,d,v)}function Ch(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!it(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nl(e,t,l,a){t&=~Wi,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-st(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&nr(e,l,t)}function Bu(){return(oe&6)===0?(Sn(0),!1):!0}function tc(){if(ae!==null){if(me===0)var e=ae.return;else e=ae,Vt=Gl=null,gi(e),ya=null,an=0,e=ae;for(;e!==null;)Af(e.alternate,e),e=e.return;ae=null}}function Ra(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Vh(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ll=0,tc(),je=e,ae=l=Zt(e.current,null),ue=t,me=0,ft=null,yl=!1,Ta=Ya(e,t),$i=!1,Aa=dt=Wi=Wl=bl=Re=0,lt=bn=null,Fi=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-st(a),u=1<<n;t|=e[n],a&=~u}return tl=t,nu(),l}function Ff(e,t){ee=null,D.H=dn,t===va||t===du?(t=fo(),me=3):t===ui?(t=fo(),me=4):me=t===_i?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ft=t,ae===null&&(Re=1,Tu(e,vt(t,e.current)))}function Pf(){var e=rt.current;return e===null?!0:(ue&4194048)===ue?St===null:(ue&62914560)===ue||(ue&536870912)!==0?e===St:!1}function If(){var e=D.H;return D.H=dn,e===null?dn:e}function ed(){var e=D.A;return D.A=Nh,e}function Lu(){Re=4,yl||(ue&4194048)!==ue&&rt.current!==null||(Ta=!0),(bl&134217727)===0&&(Wl&134217727)===0||je===null||Nl(je,ue,dt,!1)}function lc(e,t,l){var a=oe;oe|=2;var n=If(),u=ed();(je!==e||ue!==t)&&(Hu=null,Ra(e,t)),t=!1;var c=Re;e:do try{if(me!==0&&ae!==null){var d=ae,v=ft;switch(me){case 8:tc(),c=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var z=me;if(me=0,ft=null,Ma(e,d,v,z),l&&Ta){c=0;break e}break;default:z=me,me=0,ft=null,Ma(e,d,v,z)}}Th(),c=Re;break}catch(O){Ff(e,O)}while(!0);return t&&e.shellSuspendCounter++,Vt=Gl=null,oe=a,D.H=n,D.A=u,ae===null&&(je=null,ue=0,nu()),c}function Th(){for(;ae!==null;)td(ae)}function Ah(e,t){var l=oe;oe|=2;var a=If(),n=ed();je!==e||ue!==t?(Hu=null,Uu=nt()+500,Ra(e,t)):Ta=Ya(e,t);e:do try{if(me!==0&&ae!==null){t=ae;var u=ft;t:switch(me){case 1:me=0,ft=null,Ma(e,t,u,1);break;case 2:case 9:if(ro(u)){me=0,ft=null,ld(t);break}t=function(){me!==2&&me!==9||je!==e||(me=7),Ut(e)},u.then(t,t);break e;case 3:me=7;break e;case 4:me=5;break e;case 7:ro(u)?(me=0,ft=null,ld(t)):(me=0,ft=null,Ma(e,t,u,7));break;case 5:var c=null;switch(ae.tag){case 26:c=ae.memoizedState;case 5:case 27:var d=ae;if(c?Gd(c):d.stateNode.complete){me=0,ft=null;var v=d.sibling;if(v!==null)ae=v;else{var z=d.return;z!==null?(ae=z,qu(z)):ae=null}break t}}me=0,ft=null,Ma(e,t,u,5);break;case 6:me=0,ft=null,Ma(e,t,u,6);break;case 8:tc(),Re=6;break e;default:throw Error(o(462))}}zh();break}catch(O){Ff(e,O)}while(!0);return Vt=Gl=null,D.H=a,D.A=n,oe=l,ae!==null?0:(je=null,ue=0,nu(),Re)}function zh(){for(;ae!==null&&!F0();)td(ae)}function td(e){var t=Cf(e.alternate,e,tl);e.memoizedProps=e.pendingProps,t===null?qu(e):ae=t}function ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=yf(l,t,t.pendingProps,t.type,void 0,ue);break;case 11:t=yf(l,t,t.pendingProps,t.type.render,t.ref,ue);break;case 5:gi(t);default:Af(l,t),t=ae=Pr(t,tl),t=Cf(l,t,tl)}e.memoizedProps=e.pendingProps,t===null?qu(e):ae=t}function Ma(e,t,l,a){Vt=Gl=null,gi(t),ya=null,an=0;var n=t.return;try{if(ph(e,n,t,l,ue)){Re=1,Tu(e,vt(l,e.current)),ae=null;return}}catch(u){if(n!==null)throw ae=n,u;Re=1,Tu(e,vt(l,e.current)),ae=null;return}t.flags&32768?(ie||a===1?e=!0:Ta||(ue&536870912)!==0?e=!1:(yl=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ad(t,e)):qu(t)}function qu(e){var t=e;do{if((t.flags&32768)!==0){ad(t,yl);return}e=t.return;var l=yh(t.alternate,t,tl);if(l!==null){ae=l;return}if(t=t.sibling,t!==null){ae=t;return}ae=t=e}while(t!==null);Re===0&&(Re=5)}function ad(e,t){do{var l=bh(e.alternate,e);if(l!==null){l.flags&=32767,ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ae=e;return}ae=e=l}while(e!==null);Re=6,ae=null}function nd(e,t,l,a,n,u,c,d,v){e.cancelPendingCommit=null;do Yu();while(Le!==0);if((oe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Qs,im(e,l,u,c,d,v),e===je&&(ae=je=null,ue=0),za=t,Sl=e,ll=l,Pi=u,Ii=n,Kf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Dh(Xn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=G.p,G.p=2,c=oe,oe|=4;try{jh(e,t,l)}finally{oe=c,G.p=n,D.T=a}}Le=1,ud(),sd(),id()}}function ud(){if(Le===1){Le=0;var e=Sl,t=za,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=G.p;G.p=2;var n=oe;oe|=4;try{qf(t,e);var u=hc,c=Zr(e.containerInfo),d=u.focusedElem,v=u.selectionRange;if(c!==d&&d&&d.ownerDocument&&Xr(d.ownerDocument.documentElement,d)){if(v!==null&&qs(d)){var z=v.start,O=v.end;if(O===void 0&&(O=z),"selectionStart"in d)d.selectionStart=z,d.selectionEnd=Math.min(O,d.value.length);else{var w=d.ownerDocument||document,R=w&&w.defaultView||window;if(R.getSelection){var M=R.getSelection(),Q=d.textContent.length,$=Math.min(v.start,Q),ye=v.end===void 0?$:Math.min(v.end,Q);!M.extend&&$>ye&&(c=ye,ye=$,$=c);var T=Gr(d,$),y=Gr(d,ye);if(T&&y&&(M.rangeCount!==1||M.anchorNode!==T.node||M.anchorOffset!==T.offset||M.focusNode!==y.node||M.focusOffset!==y.offset)){var A=w.createRange();A.setStart(T.node,T.offset),M.removeAllRanges(),$>ye?(M.addRange(A),M.extend(y.node,y.offset)):(A.setEnd(y.node,y.offset),M.addRange(A))}}}}for(w=[],M=d;M=M.parentNode;)M.nodeType===1&&w.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<w.length;d++){var _=w[d];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Pu=!!mc,hc=mc=null}finally{oe=n,G.p=a,D.T=l}}e.current=t,Le=2}}function sd(){if(Le===2){Le=0;var e=Sl,t=za,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=G.p;G.p=2;var n=oe;oe|=4;try{wf(e,t.alternate,t)}finally{oe=n,G.p=a,D.T=l}}Le=3}}function id(){if(Le===4||Le===3){Le=0,P0();var e=Sl,t=za,l=ll,a=Kf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Le=5:(Le=0,za=Sl=null,cd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(jl=null),bs(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(qa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=G.p,G.p=2,D.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];u(d.value,{componentStack:d.stack})}}finally{D.T=t,G.p=n}}(ll&3)!==0&&Yu(),Ut(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===ec?jn++:(jn=0,ec=e):jn=0,Sn(0)}}function cd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,tn(t)))}function Yu(){return ud(),sd(),id(),rd()}function rd(){if(Le!==5)return!1;var e=Sl,t=Pi;Pi=0;var l=bs(ll),a=D.T,n=G.p;try{G.p=32>l?32:l,D.T=null,l=Ii,Ii=null;var u=Sl,c=ll;if(Le=0,za=Sl=null,ll=0,(oe&6)!==0)throw Error(o(331));var d=oe;if(oe|=4,Qf(u.current),Gf(u,u.current,c,l),oe=d,Sn(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(qa,u)}catch{}return!0}finally{G.p=n,D.T=a,cd(e,t)}}function od(e,t,l){t=vt(l,t),t=Di(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(Ga(e,2),Ut(e))}function he(e,t,l){if(e.tag===3)od(e,e,l);else for(;t!==null;){if(t.tag===3){od(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(jl===null||!jl.has(a))){e=vt(l,e),l=ff(2),a=xl(t,l,2),a!==null&&(df(l,a,t,e),Ga(a,2),Ut(a));break}}t=t.return}}function ac(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Eh;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||($i=!0,n.add(l),e=Rh.bind(null,e,t,l),t.then(e,e))}function Rh(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,je===e&&(ue&l)===l&&(Re===4||Re===3&&(ue&62914560)===ue&&300>nt()-wu?(oe&2)===0&&Ra(e,0):Wi|=l,Aa===ue&&(Aa=0)),Ut(e)}function fd(e,t){t===0&&(t=ar()),e=Ll(e,t),e!==null&&(Ga(e,t),Ut(e))}function Mh(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),fd(e,l)}function Oh(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),fd(e,l)}function Dh(e,t){return ps(e,t)}var Gu=null,Oa=null,nc=!1,Xu=!1,uc=!1,El=0;function Ut(e){e!==Oa&&e.next===null&&(Oa===null?Gu=Oa=e:Oa=Oa.next=e),Xu=!0,nc||(nc=!0,wh())}function Sn(e,t){if(!uc&&Xu){uc=!0;do for(var l=!1,a=Gu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-st(42|e)+1)-1,u&=n&~(c&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,xd(a,u))}else u=ue,u=kn(a,a===je?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ya(a,u)||(l=!0,xd(a,u));a=a.next}while(l);uc=!1}}function _h(){dd()}function dd(){Xu=nc=!1;var e=0;El!==0&&Qh()&&(e=El);for(var t=nt(),l=null,a=Gu;a!==null;){var n=a.next,u=md(a,t);u===0?(a.next=null,l===null?Gu=n:l.next=n,n===null&&(Oa=l)):(l=a,(e!==0||(u&3)!==0)&&(Xu=!0)),a=n}Le!==0&&Le!==5||Sn(e),El!==0&&(El=0)}function md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-st(u),d=1<<c,v=n[c];v===-1?((d&l)===0||(d&a)!==0)&&(n[c]=sm(d,t)):v<=t&&(e.expiredLanes|=d),u&=~d}if(t=je,l=ue,l=kn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(me===2||me===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&gs(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ya(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&gs(a),bs(l)){case 2:case 8:l=tr;break;case 32:l=Xn;break;case 268435456:l=lr;break;default:l=Xn}return a=hd.bind(null,e),l=ps(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&gs(a),e.callbackPriority=2,e.callbackNode=null,2}function hd(e,t){if(Le!==0&&Le!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Yu()&&e.callbackNode!==l)return null;var a=ue;return a=kn(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($f(e,a,t),md(e,nt()),e.callbackNode!=null&&e.callbackNode===l?hd.bind(null,e):null)}function xd(e,t){if(Yu())return null;$f(e,t,!0)}function wh(){kh(function(){(oe&6)!==0?ps(er,_h):dd()})}function sc(){if(El===0){var e=pa;e===0&&(e=Zn,Zn<<=1,(Zn&261888)===0&&(Zn=256)),El=e}return El}function pd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wn(""+e)}function gd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Uh(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=pd((n[Fe]||null).action),c=a.submitter;c&&(t=(t=c[Fe]||null)?pd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var d=new eu("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(El!==0){var v=c?gd(n,c):new FormData(n);Ti(l,{pending:!0,data:v,method:n.method,action:u},null,v)}}else typeof u=="function"&&(d.preventDefault(),v=c?gd(n,c):new FormData(n),Ti(l,{pending:!0,data:v,method:n.method,action:u},u,v))},currentTarget:n}]})}}for(var ic=0;ic<Zs.length;ic++){var cc=Zs[ic],Hh=cc.toLowerCase(),Bh=cc[0].toUpperCase()+cc.slice(1);zt(Hh,"on"+Bh)}zt(kr,"onAnimationEnd"),zt(Kr,"onAnimationIteration"),zt(Jr,"onAnimationStart"),zt("dblclick","onDoubleClick"),zt("focusin","onFocus"),zt("focusout","onBlur"),zt(Im,"onTransitionRun"),zt(eh,"onTransitionStart"),zt(th,"onTransitionCancel"),zt($r,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),wl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wl("onBeforeInput",["compositionend","keypress","textInput","paste"]),wl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="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(" "),Lh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function vd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],v=d.instance,z=d.currentTarget;if(d=d.listener,v!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=z;try{u(n)}catch(O){au(O)}n.currentTarget=null,u=v}else for(c=0;c<a.length;c++){if(d=a[c],v=d.instance,z=d.currentTarget,d=d.listener,v!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=z;try{u(n)}catch(O){au(O)}n.currentTarget=null,u=v}}}}function ne(e,t){var l=t[js];l===void 0&&(l=t[js]=new Set);var a=e+"__bubble";l.has(a)||(yd(t,e,2,!1),l.add(a))}function rc(e,t,l){var a=0;t&&(a|=4),yd(l,e,a,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function oc(e){if(!e[Zu]){e[Zu]=!0,or.forEach(function(l){l!=="selectionchange"&&(Lh.has(l)||rc(l,!1,e),rc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zu]||(t[Zu]=!0,rc("selectionchange",!1,t))}}function yd(e,t,l,a){switch(Jd(t)){case 2:var n=dx;break;case 8:n=mx;break;default:n=Cc}l=n.bind(null,t,l,e),n=void 0,!Ms||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function fc(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var v=c.tag;if((v===3||v===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=Il(d),c===null)return;if(v=c.tag,v===5||v===6||v===26||v===27){a=u=c;continue e}d=d.parentNode}}a=a.return}Sr(function(){var z=u,O=zs(l),w=[];e:{var R=Wr.get(e);if(R!==void 0){var M=eu,Q=e;switch(e){case"keypress":if(Pn(l)===0)break e;case"keydown":case"keyup":M=Om;break;case"focusin":Q="focus",M=ws;break;case"focusout":Q="blur",M=ws;break;case"beforeblur":case"afterblur":M=ws;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Cr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=ym;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=wm;break;case kr:case Kr:case Jr:M=Sm;break;case $r:M=Hm;break;case"scroll":case"scrollend":M=gm;break;case"wheel":M=Lm;break;case"copy":case"cut":case"paste":M=Em;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Ar;break;case"toggle":case"beforetoggle":M=Ym}var $=(t&4)!==0,ye=!$&&(e==="scroll"||e==="scrollend"),T=$?R!==null?R+"Capture":null:R;$=[];for(var y=z,A;y!==null;){var _=y;if(A=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||A===null||T===null||(_=Qa(y,T),_!=null&&$.push(En(y,_,A))),ye)break;y=y.return}0<$.length&&(R=new M(R,Q,null,l,O),w.push({event:R,listeners:$}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",R&&l!==As&&(Q=l.relatedTarget||l.fromElement)&&(Il(Q)||Q[Pl]))break e;if((M||R)&&(R=O.window===O?O:(R=O.ownerDocument)?R.defaultView||R.parentWindow:window,M?(Q=l.relatedTarget||l.toElement,M=z,Q=Q?Il(Q):null,Q!==null&&(ye=h(Q),$=Q.tag,Q!==ye||$!==5&&$!==27&&$!==6)&&(Q=null)):(M=null,Q=z),M!==Q)){if($=Cr,_="onMouseLeave",T="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&($=Ar,_="onPointerLeave",T="onPointerEnter",y="pointer"),ye=M==null?R:Za(M),A=Q==null?R:Za(Q),R=new $(_,y+"leave",M,l,O),R.target=ye,R.relatedTarget=A,_=null,Il(O)===z&&($=new $(T,y+"enter",Q,l,O),$.target=A,$.relatedTarget=ye,_=$),ye=_,M&&Q)t:{for($=qh,T=M,y=Q,A=0,_=T;_;_=$(_))A++;_=0;for(var J=y;J;J=$(J))_++;for(;0<A-_;)T=$(T),A--;for(;0<_-A;)y=$(y),_--;for(;A--;){if(T===y||y!==null&&T===y.alternate){$=T;break t}T=$(T),y=$(y)}$=null}else $=null;M!==null&&bd(w,R,M,$,!1),Q!==null&&ye!==null&&bd(w,ye,Q,$,!0)}}e:{if(R=z?Za(z):window,M=R.nodeName&&R.nodeName.toLowerCase(),M==="select"||M==="input"&&R.type==="file")var ce=Ur;else if(_r(R))if(Hr)ce=Wm;else{ce=Jm;var k=Km}else M=R.nodeName,!M||M.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?z&&Ts(z.elementType)&&(ce=Ur):ce=$m;if(ce&&(ce=ce(e,z))){wr(w,ce,l,O);break e}k&&k(e,R,z),e==="focusout"&&z&&R.type==="number"&&z.memoizedProps.value!=null&&Cs(R,"number",R.value)}switch(k=z?Za(z):window,e){case"focusin":(_r(k)||k.contentEditable==="true")&&(ca=k,Ys=z,Pa=null);break;case"focusout":Pa=Ys=ca=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,Qr(w,l,O);break;case"selectionchange":if(Pm)break;case"keydown":case"keyup":Qr(w,l,O)}var te;if(Hs)e:{switch(e){case"compositionstart":var se="onCompositionStart";break e;case"compositionend":se="onCompositionEnd";break e;case"compositionupdate":se="onCompositionUpdate";break e}se=void 0}else ia?Or(e,l)&&(se="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(se="onCompositionStart");se&&(zr&&l.locale!=="ko"&&(ia||se!=="onCompositionStart"?se==="onCompositionEnd"&&ia&&(te=Nr()):(cl=O,Os="value"in cl?cl.value:cl.textContent,ia=!0)),k=Qu(z,se),0<k.length&&(se=new Tr(se,e,null,l,O),w.push({event:se,listeners:k}),te?se.data=te:(te=Dr(l),te!==null&&(se.data=te)))),(te=Xm?Zm(e,l):Qm(e,l))&&(se=Qu(z,"onBeforeInput"),0<se.length&&(k=new Tr("onBeforeInput","beforeinput",null,l,O),w.push({event:k,listeners:se}),k.data=te)),Uh(w,e,z,l,O)}vd(w,t)})}function En(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Qu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Qa(e,l),n!=null&&a.unshift(En(e,n,u)),n=Qa(e,t),n!=null&&a.push(En(e,n,u))),e.tag===3)return a;e=e.return}return[]}function qh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var d=l,v=d.alternate,z=d.stateNode;if(d=d.tag,v!==null&&v===a)break;d!==5&&d!==26&&d!==27||z===null||(v=z,n?(z=Qa(l,u),z!=null&&c.unshift(En(l,z,v))):n||(z=Qa(l,u),z!=null&&c.push(En(l,z,v)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Yh=/\r\n?/g,Gh=/\u0000|\uFFFD/g;function jd(e){return(typeof e=="string"?e:""+e).replace(Yh,`
|
|
9
|
+
`).replace(Gh,"")}function Sd(e,t){return t=jd(t),jd(e)===t}function ve(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||na(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&na(e,""+a);break;case"className":Jn(e,"class",a);break;case"tabIndex":Jn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Jn(e,l,a);break;case"style":br(e,a,u);break;case"data":if(t!=="object"){Jn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Wn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&ve(e,t,"name",n.name,n,null),ve(e,t,"formEncType",n.formEncType,n,null),ve(e,t,"formMethod",n.formMethod,n,null),ve(e,t,"formTarget",n.formTarget,n,null)):(ve(e,t,"encType",n.encType,n,null),ve(e,t,"method",n.method,n,null),ve(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Wn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"onScroll":a!=null&&ne("scroll",e);break;case"onScrollEnd":a!=null&&ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Wn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ne("beforetoggle",e),ne("toggle",e),Kn(e,"popover",a);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Kn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=xm.get(l)||l,Kn(e,l,a))}}function dc(e,t,l,a,n,u){switch(l){case"style":br(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?na(e,a):(typeof a=="number"||typeof a=="bigint")&&na(e,""+a);break;case"onScroll":a!=null&&ne("scroll",e);break;case"onScrollEnd":a!=null&&ne("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Fe]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Kn(e,l,a)}}}function Ve(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ne("error",e),ne("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ve(e,t,u,c,l,null)}}n&&ve(e,t,"srcSet",l.srcSet,l,null),a&&ve(e,t,"src",l.src,l,null);return;case"input":ne("invalid",e);var d=u=c=n=null,v=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":c=O;break;case"checked":v=O;break;case"defaultChecked":z=O;break;case"value":u=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:ve(e,t,a,O,l,null)}}pr(e,u,d,v,z,c,n,!1);return;case"select":ne("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:ve(e,t,n,d,l,null)}t=u,l=c,e.multiple=!!a,t!=null?aa(e,!!a,t,!1):l!=null&&aa(e,!!a,l,!0);return;case"textarea":ne("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:ve(e,t,c,d,l,null)}vr(e,a,n,u);return;case"option":for(v in l)l.hasOwnProperty(v)&&(a=l[v],a!=null)&&(v==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":ve(e,t,v,a,l,null));return;case"dialog":ne("beforetoggle",e),ne("toggle",e),ne("cancel",e),ne("close",e);break;case"iframe":case"object":ne("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)ne(Nn[a],e);break;case"image":ne("error",e),ne("load",e);break;case"details":ne("toggle",e);break;case"embed":case"source":case"link":ne("error",e),ne("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(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ve(e,t,z,a,l,null)}return;default:if(Ts(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&dc(e,t,O,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&ve(e,t,d,a,l,null))}function Xh(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,d=null,v=null,z=null,O=null;for(M in l){var w=l[M];if(l.hasOwnProperty(M)&&w!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":v=w;default:a.hasOwnProperty(M)||ve(e,t,M,null,a,w)}}for(var R in a){var M=a[R];if(w=l[R],a.hasOwnProperty(R)&&(M!=null||w!=null))switch(R){case"type":u=M;break;case"name":n=M;break;case"checked":z=M;break;case"defaultChecked":O=M;break;case"value":c=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:M!==w&&ve(e,t,R,M,a,w)}}Es(e,c,d,v,z,O,u,n);return;case"select":M=c=d=R=null;for(u in l)if(v=l[u],l.hasOwnProperty(u)&&v!=null)switch(u){case"value":break;case"multiple":M=v;default:a.hasOwnProperty(u)||ve(e,t,u,null,a,v)}for(n in a)if(u=a[n],v=l[n],a.hasOwnProperty(n)&&(u!=null||v!=null))switch(n){case"value":R=u;break;case"defaultValue":d=u;break;case"multiple":c=u;default:u!==v&&ve(e,t,n,u,a,v)}t=d,l=c,a=M,R!=null?aa(e,!!l,R,!1):!!a!=!!l&&(t!=null?aa(e,!!l,t,!0):aa(e,!!l,l?[]:"",!1));return;case"textarea":M=R=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ve(e,t,d,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":R=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&ve(e,t,c,n,a,u)}gr(e,R,M);return;case"option":for(var Q in l)R=l[Q],l.hasOwnProperty(Q)&&R!=null&&!a.hasOwnProperty(Q)&&(Q==="selected"?e.selected=!1:ve(e,t,Q,null,a,R));for(v in a)R=a[v],M=l[v],a.hasOwnProperty(v)&&R!==M&&(R!=null||M!=null)&&(v==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":ve(e,t,v,R,a,M));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 $ in l)R=l[$],l.hasOwnProperty($)&&R!=null&&!a.hasOwnProperty($)&&ve(e,t,$,null,a,R);for(z in a)if(R=a[z],M=l[z],a.hasOwnProperty(z)&&R!==M&&(R!=null||M!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:ve(e,t,z,R,a,M)}return;default:if(Ts(t)){for(var ye in l)R=l[ye],l.hasOwnProperty(ye)&&R!==void 0&&!a.hasOwnProperty(ye)&&dc(e,t,ye,void 0,a,R);for(O in a)R=a[O],M=l[O],!a.hasOwnProperty(O)||R===M||R===void 0&&M===void 0||dc(e,t,O,R,a,M);return}}for(var T in l)R=l[T],l.hasOwnProperty(T)&&R!=null&&!a.hasOwnProperty(T)&&ve(e,t,T,null,a,R);for(w in a)R=a[w],M=l[w],!a.hasOwnProperty(w)||R===M||R==null&&M==null||ve(e,t,w,R,a,M)}function Nd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zh(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,d=n.duration;if(u&&d&&Nd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var v=l[a],z=v.startTime;if(z>d)break;var O=v.transferSize,w=v.initiatorType;O&&Nd(w)&&(v=v.responseEnd,c+=O*(v<d?1:(d-z)/(v-z)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mc=null,hc=null;function Vu(e){return e.nodeType===9?e:e.ownerDocument}function Ed(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 Cd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pc=null;function Qh(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var Td=typeof setTimeout=="function"?setTimeout:void 0,Vh=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,kh=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(Kh)}:Td;function Kh(e){setTimeout(function(){throw e})}function Cl(e){return e==="head"}function zd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ua(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Cn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Cn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Xa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Cn(e.ownerDocument.body);l=n}while(l);Ua(t)}function Rd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gc(l),Ss(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Jh(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Nt(e.nextSibling),e===null)break}return null}function $h(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Nt(e.nextSibling),e===null))return null;return e}function Md(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Nt(e.nextSibling),e===null))return null;return e}function vc(e){return e.data==="$?"||e.data==="$~"}function yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Wh(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bc=null;function Od(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Nt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function _d(e,t,l){switch(t=Vu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Cn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ss(e)}var Et=new Map,wd=new Set;function ku(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var al=G.d;G.d={f:Fh,r:Ph,D:Ih,C:ex,L:tx,m:lx,X:nx,S:ax,M:ux};function Fh(){var e=al.f(),t=Bu();return e||t}function Ph(e){var t=ea(e);t!==null&&t.tag===5&&t.type==="form"?Wo(t):al.r(e)}var Da=typeof document>"u"?null:document;function Ud(e,t,l){var a=Da;if(a&&typeof t=="string"&&t){var n=pt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),wd.has(n)||(wd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ve(t,"link",e),qe(t),a.head.appendChild(t)))}}function Ih(e){al.D(e),Ud("dns-prefetch",e,null)}function ex(e,t){al.C(e,t),Ud("preconnect",e,t)}function tx(e,t,l){al.L(e,t,l);var a=Da;if(a&&e&&t){var n='link[rel="preload"][as="'+pt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+pt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+pt(l.imageSizes)+'"]')):n+='[href="'+pt(e)+'"]';var u=n;switch(t){case"style":u=_a(e);break;case"script":u=wa(e)}Et.has(u)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Et.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Tn(u))||t==="script"&&a.querySelector(An(u))||(t=a.createElement("link"),Ve(t,"link",e),qe(t),a.head.appendChild(t)))}}function lx(e,t){al.m(e,t);var l=Da;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+pt(a)+'"][href="'+pt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=wa(e)}if(!Et.has(u)&&(e=b({rel:"modulepreload",href:e},t),Et.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(An(u)))return}a=l.createElement("link"),Ve(a,"link",e),qe(a),l.head.appendChild(a)}}}function ax(e,t,l){al.S(e,t,l);var a=Da;if(a&&e){var n=ta(a).hoistableStyles,u=_a(e);t=t||"default";var c=n.get(u);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Tn(u)))d.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Et.get(u))&&jc(e,l);var v=c=a.createElement("link");qe(v),Ve(v,"link",e),v._p=new Promise(function(z,O){v.onload=z,v.onerror=O}),v.addEventListener("load",function(){d.loading|=1}),v.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Ku(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(u,c)}}}function nx(e,t){al.X(e,t);var l=Da;if(l&&e){var a=ta(l).hoistableScripts,n=wa(e),u=a.get(n);u||(u=l.querySelector(An(n)),u||(e=b({src:e,async:!0},t),(t=Et.get(n))&&Sc(e,t),u=l.createElement("script"),qe(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ux(e,t){al.M(e,t);var l=Da;if(l&&e){var a=ta(l).hoistableScripts,n=wa(e),u=a.get(n);u||(u=l.querySelector(An(n)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Et.get(n))&&Sc(e,t),u=l.createElement("script"),qe(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Hd(e,t,l,a){var n=(n=le.current)?ku(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=_a(l.href),l=ta(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=_a(l.href);var u=ta(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Tn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Et.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Et.set(e,l),u||sx(n,e,l,c.state))),t&&a===null)throw Error(o(528,""));return c}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(l),l=ta(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function _a(e){return'href="'+pt(e)+'"'}function Tn(e){return'link[rel="stylesheet"]['+e+"]"}function Bd(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function sx(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ve(t,"link",l),qe(t),e.head.appendChild(t))}function wa(e){return'[src="'+pt(e)+'"]'}function An(e){return"script[async]"+e}function Ld(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+pt(l.href)+'"]');if(a)return t.instance=a,qe(a),a;var n=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),qe(a),Ve(a,"style",n),Ku(a,l.precedence,e),t.instance=a;case"stylesheet":n=_a(l.href);var u=e.querySelector(Tn(n));if(u)return t.state.loading|=4,t.instance=u,qe(u),u;a=Bd(l),(n=Et.get(n))&&jc(a,n),u=(e.ownerDocument||e).createElement("link"),qe(u);var c=u;return c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),Ve(u,"link",a),t.state.loading|=4,Ku(u,l.precedence,e),t.instance=u;case"script":return u=wa(l.src),(n=e.querySelector(An(u)))?(t.instance=n,qe(n),n):(a=l,(n=Et.get(u))&&(a=b({},l),Sc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),qe(n),Ve(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ku(a,l.precedence,e));return t.instance}function Ku(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ju=null;function qd(e,t,l){if(Ju===null){var a=new Map,n=Ju=new Map;n.set(l,a)}else n=Ju,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Xa]||u[Ge]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(u):a.set(c,[u])}}return a}function Yd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ix(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cx(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=_a(a.href),u=t.querySelector(Tn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$u.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,qe(u);return}u=t.ownerDocument||t,a=Bd(a),(n=Et.get(n))&&jc(a,n),u=u.createElement("link"),qe(u);var c=u;c._p=new Promise(function(d,v){c.onload=d,c.onerror=v}),Ve(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=$u.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Nc=0;function rx(e,t){return e.stylesheets&&e.count===0&&Fu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Fu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Nc===0&&(Nc=62500*Zh());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Nc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function $u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wu=null;function Fu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wu=new Map,t.forEach(ox,e),Wu=null,$u.call(e))}function ox(e,t){if(!(t.state.loading&4)){var l=Wu.get(e);if(l)var a=l.get(null);else{l=new Map,Wu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=$u.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var zn={$$typeof:K,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function fx(e,t,l,a,n,u,c,d,v){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=vs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vs(0),this.hiddenUpdates=vs(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Xd(e,t,l,a,n,u,c,d,v,z,O,w){return e=new fx(e,t,l,c,v,z,O,w,d),t=1,u===!0&&(t|=24),u=ct(3,null,null,t),e.current=u,u.stateNode=e,t=li(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},si(u),e}function Zd(e){return e?(e=fa,e):fa}function Qd(e,t,l,a,n,u){n=Zd(n),a.context===null?a.context=n:a.pendingContext=n,a=hl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=xl(e,a,t),l!==null&&(at(l,e,t),un(l,e,t))}function Vd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ec(e,t){Vd(e,t),(e=e.alternate)&&Vd(e,t)}function kd(e){if(e.tag===13||e.tag===31){var t=Ll(e,67108864);t!==null&&at(t,e,67108864),Ec(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=mt();t=ys(t);var l=Ll(e,t);l!==null&&at(l,e,t),Ec(e,t)}}var Pu=!0;function dx(e,t,l,a){var n=D.T;D.T=null;var u=G.p;try{G.p=2,Cc(e,t,l,a)}finally{G.p=u,D.T=n}}function mx(e,t,l,a){var n=D.T;D.T=null;var u=G.p;try{G.p=8,Cc(e,t,l,a)}finally{G.p=u,D.T=n}}function Cc(e,t,l,a){if(Pu){var n=Tc(a);if(n===null)fc(e,t,a,Iu,l),$d(e,a);else if(xx(n,e,t,l,a))a.stopPropagation();else if($d(e,a),t&4&&-1<hx.indexOf(e)){for(;n!==null;){var u=ea(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=_l(u.pendingLanes);if(c!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var v=1<<31-st(c);d.entanglements[1]|=v,c&=~v}Ut(u),(oe&6)===0&&(Uu=nt()+500,Sn(0))}}break;case 31:case 13:d=Ll(u,2),d!==null&&at(d,u,2),Bu(),Ec(u,2)}if(u=Tc(a),u===null&&fc(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else fc(e,t,a,null,l)}}function Tc(e){return e=zs(e),Ac(e)}var Iu=null;function Ac(e){if(Iu=null,e=Il(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=S(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Iu=e,null}function Jd(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(I0()){case er:return 2;case tr:return 8;case Xn:case em:return 32;case lr:return 268435456;default:return 32}default:return 32}}var zc=!1,Tl=null,Al=null,zl=null,Rn=new Map,Mn=new Map,Rl=[],hx="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 $d(e,t){switch(e){case"focusin":case"focusout":Tl=null;break;case"dragenter":case"dragleave":Al=null;break;case"mouseover":case"mouseout":zl=null;break;case"pointerover":case"pointerout":Rn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mn.delete(t.pointerId)}}function On(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ea(t),t!==null&&kd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function xx(e,t,l,a,n){switch(t){case"focusin":return Tl=On(Tl,e,t,l,a,n),!0;case"dragenter":return Al=On(Al,e,t,l,a,n),!0;case"mouseover":return zl=On(zl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Rn.set(u,On(Rn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Mn.set(u,On(Mn.get(u)||null,e,t,l,a,n)),!0}return!1}function Wd(e){var t=Il(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,cr(e.priority,function(){Kd(l)});return}}else if(t===31){if(t=S(l),t!==null){e.blockedOn=t,cr(e.priority,function(){Kd(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function es(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Tc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);As=a,l.target.dispatchEvent(a),As=null}else return t=ea(l),t!==null&&kd(t),e.blockedOn=l,!1;t.shift()}return!0}function Fd(e,t,l){es(e)&&l.delete(t)}function px(){zc=!1,Tl!==null&&es(Tl)&&(Tl=null),Al!==null&&es(Al)&&(Al=null),zl!==null&&es(zl)&&(zl=null),Rn.forEach(Fd),Mn.forEach(Fd)}function ts(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,px)))}var ls=null;function Pd(e){ls!==e&&(ls=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ls===e&&(ls=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Ac(a||l)===null)continue;break}var u=ea(l);u!==null&&(e.splice(t,3),t-=3,Ti(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ua(e){function t(v){return ts(v,e)}Tl!==null&&ts(Tl,e),Al!==null&&ts(Al,e),zl!==null&&ts(zl,e),Rn.forEach(t),Mn.forEach(t);for(var l=0;l<Rl.length;l++){var a=Rl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Rl.length&&(l=Rl[0],l.blockedOn===null);)Wd(l),l.blockedOn===null&&Rl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[Fe]||null;if(typeof u=="function")c||Pd(l);else if(c){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Fe]||null)d=c.formAction;else if(Ac(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Pd(l)}}}function Id(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Rc(e){this._internalRoot=e}as.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=mt();Qd(l,a,e,t,null,null)},as.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qd(e.current,2,null,e,null,null),Bu(),t[Pl]=null}};function as(e){this._internalRoot=e}as.prototype.unstable_scheduleHydration=function(e){if(e){var t=ir();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Rl.length&&t!==0&&t<Rl[l].priority;l++);Rl.splice(l,0,e),l===0&&Wd(e)}};var e0=r.version;if(e0!=="19.2.4")throw Error(o(527,e0,"19.2.4"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var gx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ns.isDisabled&&ns.supportsFiber)try{qa=ns.inject(gx),ut=ns}catch{}}return _n.createRoot=function(e,t){if(!m(e))throw Error(o(299));var l=!1,a="",n=sf,u=cf,c=rf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Xd(e,1,!1,null,null,l,a,null,n,u,c,Id),e[Pl]=t.current,oc(e),new Rc(t)},_n.hydrateRoot=function(e,t,l){if(!m(e))throw Error(o(299));var a=!1,n="",u=sf,c=cf,d=rf,v=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=Xd(e,1,!0,t,l??null,a,n,v,u,c,d,Id),t.context=Zd(null),l=t.current,a=mt(),a=ys(a),n=hl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,Ga(t,l),Ut(t),e[Pl]=t.current,oc(e),new as(t)},_n.version="19.2.4",_n}var o0;function Ax(){if(o0)return Dc.exports;o0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Dc.exports=Tx(),Dc.exports}var zx=Ax();var f0="popstate";function Rx(i={}){function r(o,m){let{pathname:h,search:x,hash:S}=o.location;return Xc("",{pathname:h,search:x,hash:S},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function f(o,m){return typeof m=="string"?m:Un(m)}return Ox(r,f,null,i)}function Ae(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function Bt(i,r){if(!i){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Mx(){return Math.random().toString(36).substring(2,10)}function d0(i,r){return{usr:i.state,key:i.key,idx:r}}function Xc(i,r,f=null,o){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof r=="string"?Ha(r):r,state:f,key:r&&r.key||o||Mx()}}function Un({pathname:i="/",search:r="",hash:f=""}){return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function Ha(i){let r={};if(i){let f=i.indexOf("#");f>=0&&(r.hash=i.substring(f),i=i.substring(0,f));let o=i.indexOf("?");o>=0&&(r.search=i.substring(o),i=i.substring(0,o)),i&&(r.pathname=i)}return r}function Ox(i,r,f,o={}){let{window:m=document.defaultView,v5Compat:h=!1}=o,x=m.history,S="POP",g=null,p=E();p==null&&(p=0,x.replaceState({...x.state,idx:p},""));function E(){return(x.state||{idx:null}).idx}function b(){S="POP";let L=E(),B=L==null?null:L-p;p=L,g&&g({action:S,location:Y.location,delta:B})}function N(L,B){S="PUSH";let Z=Xc(Y.location,L,B);p=E()+1;let K=d0(Z,p),fe=Y.createHref(Z);try{x.pushState(K,"",fe)}catch(xe){if(xe instanceof DOMException&&xe.name==="DataCloneError")throw xe;m.location.assign(fe)}h&&g&&g({action:S,location:Y.location,delta:1})}function H(L,B){S="REPLACE";let Z=Xc(Y.location,L,B);p=E();let K=d0(Z,p),fe=Y.createHref(Z);x.replaceState(K,"",fe),h&&g&&g({action:S,location:Y.location,delta:0})}function q(L){return Dx(L)}let Y={get action(){return S},get location(){return i(m,x)},listen(L){if(g)throw new Error("A history only accepts one active listener");return m.addEventListener(f0,b),g=L,()=>{m.removeEventListener(f0,b),g=null}},createHref(L){return r(m,L)},createURL:q,encodeLocation(L){let B=q(L);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:N,replace:H,go(L){return x.go(L)}};return Y}function Dx(i,r=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(f,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Un(i);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=f+o),new URL(o,f)}function S0(i,r,f="/"){return _x(i,r,f,!1)}function _x(i,r,f,o){let m=typeof r=="string"?Ha(r):r,h=ul(m.pathname||"/",f);if(h==null)return null;let x=N0(i);wx(x);let S=null;for(let g=0;S==null&&g<x.length;++g){let p=Vx(h);S=Zx(x[g],p,o)}return S}function N0(i,r=[],f=[],o="",m=!1){let h=(x,S,g=m,p)=>{let E={relativePath:p===void 0?x.path||"":p,caseSensitive:x.caseSensitive===!0,childrenIndex:S,route:x};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(o)&&g)return;Ae(E.relativePath.startsWith(o),`Absolute route path "${E.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(o.length)}let b=nl([o,E.relativePath]),N=f.concat(E);x.children&&x.children.length>0&&(Ae(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),N0(x.children,r,N,b,g)),!(x.path==null&&!x.index)&&r.push({path:b,score:Gx(b,x.index),routesMeta:N})};return i.forEach((x,S)=>{if(x.path===""||!x.path?.includes("?"))h(x,S);else for(let g of E0(x.path))h(x,S,!0,g)}),r}function E0(i){let r=i.split("/");if(r.length===0)return[];let[f,...o]=r,m=f.endsWith("?"),h=f.replace(/\?$/,"");if(o.length===0)return m?[h,""]:[h];let x=E0(o.join("/")),S=[];return S.push(...x.map(g=>g===""?h:[h,g].join("/"))),m&&S.push(...x),S.map(g=>i.startsWith("/")&&g===""?"/":g)}function wx(i){i.sort((r,f)=>r.score!==f.score?f.score-r.score:Xx(r.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var Ux=/^:[\w-]+$/,Hx=3,Bx=2,Lx=1,qx=10,Yx=-2,m0=i=>i==="*";function Gx(i,r){let f=i.split("/"),o=f.length;return f.some(m0)&&(o+=Yx),r&&(o+=Bx),f.filter(m=>!m0(m)).reduce((m,h)=>m+(Ux.test(h)?Hx:h===""?Lx:qx),o)}function Xx(i,r){return i.length===r.length&&i.slice(0,-1).every((o,m)=>o===r[m])?i[i.length-1]-r[r.length-1]:0}function Zx(i,r,f=!1){let{routesMeta:o}=i,m={},h="/",x=[];for(let S=0;S<o.length;++S){let g=o[S],p=S===o.length-1,E=h==="/"?r:r.slice(h.length)||"/",b=rs({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},E),N=g.route;if(!b&&p&&f&&!o[o.length-1].route.index&&(b=rs({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},E)),!b)return null;Object.assign(m,b.params),x.push({params:m,pathname:nl([h,b.pathname]),pathnameBase:$x(nl([h,b.pathnameBase])),route:N}),b.pathnameBase!=="/"&&(h=nl([h,b.pathnameBase]))}return x}function rs(i,r){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,o]=Qx(i.path,i.caseSensitive,i.end),m=r.match(f);if(!m)return null;let h=m[0],x=h.replace(/(.)\/+$/,"$1"),S=m.slice(1);return{params:o.reduce((p,{paramName:E,isOptional:b},N)=>{if(E==="*"){let q=S[N]||"";x=h.slice(0,h.length-q.length).replace(/(.)\/+$/,"$1")}const H=S[N];return b&&!H?p[E]=void 0:p[E]=(H||"").replace(/%2F/g,"/"),p},{}),pathname:h,pathnameBase:x,pattern:i}}function Qx(i,r=!1,f=!0){Bt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,S,g)=>(o.push({paramName:S,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,r?void 0:"i"),o]}function Vx(i){try{return i.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Bt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),i}}function ul(i,r){if(r==="/")return i;if(!i.toLowerCase().startsWith(r.toLowerCase()))return null;let f=r.endsWith("/")?r.length-1:r.length,o=i.charAt(f);return o&&o!=="/"?null:i.slice(f)||"/"}var kx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Kx(i,r="/"){let{pathname:f,search:o="",hash:m=""}=typeof i=="string"?Ha(i):i,h;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?h=h0(f.substring(1),"/"):h=h0(f,r)):h=r,{pathname:h,search:Wx(o),hash:Fx(m)}}function h0(i,r){let f=r.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function Hc(i,r,f,o){return`Cannot include a '${i}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Jx(i){return i.filter((r,f)=>f===0||r.route.path&&r.route.path.length>0)}function C0(i){let r=Jx(i);return r.map((f,o)=>o===r.length-1?f.pathname:f.pathnameBase)}function T0(i,r,f,o=!1){let m;typeof i=="string"?m=Ha(i):(m={...i},Ae(!m.pathname||!m.pathname.includes("?"),Hc("?","pathname","search",m)),Ae(!m.pathname||!m.pathname.includes("#"),Hc("#","pathname","hash",m)),Ae(!m.search||!m.search.includes("#"),Hc("#","search","hash",m)));let h=i===""||m.pathname==="",x=h?"/":m.pathname,S;if(x==null)S=f;else{let b=r.length-1;if(!o&&x.startsWith("..")){let N=x.split("/");for(;N[0]==="..";)N.shift(),b-=1;m.pathname=N.join("/")}S=b>=0?r[b]:"/"}let g=Kx(m,S),p=x&&x!=="/"&&x.endsWith("/"),E=(h||x===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(p||E)&&(g.pathname+="/"),g}var nl=i=>i.join("/").replace(/\/\/+/g,"/"),$x=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Wx=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Fx=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Px=class{constructor(i,r,f,o=!1){this.status=i,this.statusText=r||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Ix(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function ep(i){return i.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var A0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function z0(i,r){let f=i;if(typeof f!="string"||!kx.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let o=f,m=!1;if(A0)try{let h=new URL(window.location.href),x=f.startsWith("//")?new URL(h.protocol+f):new URL(f),S=ul(x.pathname,r);x.origin===h.origin&&S!=null?f=S+x.search+x.hash:m=!0}catch{Bt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var R0=["POST","PUT","PATCH","DELETE"];new Set(R0);var tp=["GET",...R0];new Set(tp);var Ba=C.createContext(null);Ba.displayName="DataRouter";var os=C.createContext(null);os.displayName="DataRouterState";var lp=C.createContext(!1),M0=C.createContext({isTransitioning:!1});M0.displayName="ViewTransition";var ap=C.createContext(new Map);ap.displayName="Fetchers";var np=C.createContext(null);np.displayName="Await";var Tt=C.createContext(null);Tt.displayName="Navigation";var Ln=C.createContext(null);Ln.displayName="Location";var Lt=C.createContext({outlet:null,matches:[],isDataRoute:!1});Lt.displayName="Route";var Kc=C.createContext(null);Kc.displayName="RouteError";var O0="REACT_ROUTER_ERROR",up="REDIRECT",sp="ROUTE_ERROR_RESPONSE";function ip(i){if(i.startsWith(`${O0}:${up}:{`))try{let r=JSON.parse(i.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function cp(i){if(i.startsWith(`${O0}:${sp}:{`))try{let r=JSON.parse(i.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new Px(r.status,r.statusText,r.data)}catch{}}function rp(i,{relative:r}={}){Ae(qn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=C.useContext(Tt),{hash:m,pathname:h,search:x}=Yn(i,{relative:r}),S=h;return f!=="/"&&(S=h==="/"?f:nl([f,h])),o.createHref({pathname:S,search:x,hash:m})}function qn(){return C.useContext(Ln)!=null}function Fl(){return Ae(qn(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ln).location}var D0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _0(i){C.useContext(Tt).static||C.useLayoutEffect(i)}function op(){let{isDataRoute:i}=C.useContext(Lt);return i?Cp():fp()}function fp(){Ae(qn(),"useNavigate() may be used only in the context of a <Router> component.");let i=C.useContext(Ba),{basename:r,navigator:f}=C.useContext(Tt),{matches:o}=C.useContext(Lt),{pathname:m}=Fl(),h=JSON.stringify(C0(o)),x=C.useRef(!1);return _0(()=>{x.current=!0}),C.useCallback((g,p={})=>{if(Bt(x.current,D0),!x.current)return;if(typeof g=="number"){f.go(g);return}let E=T0(g,JSON.parse(h),m,p.relative==="path");i==null&&r!=="/"&&(E.pathname=E.pathname==="/"?r:nl([r,E.pathname])),(p.replace?f.replace:f.push)(E,p.state,p)},[r,f,h,m,i])}var dp=C.createContext(null);function mp(i){let r=C.useContext(Lt).outlet;return C.useMemo(()=>r&&C.createElement(dp.Provider,{value:i},r),[r,i])}function Yn(i,{relative:r}={}){let{matches:f}=C.useContext(Lt),{pathname:o}=Fl(),m=JSON.stringify(C0(f));return C.useMemo(()=>T0(i,JSON.parse(m),o,r==="path"),[i,m,o,r])}function hp(i,r){return w0(i,r)}function w0(i,r,f,o,m){Ae(qn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=C.useContext(Tt),{matches:x}=C.useContext(Lt),S=x[x.length-1],g=S?S.params:{},p=S?S.pathname:"/",E=S?S.pathnameBase:"/",b=S&&S.route;{let Z=b&&b.path||"";H0(p,!b||Z.endsWith("*")||Z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${Z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${Z}"> to <Route path="${Z==="/"?"*":`${Z}/*`}">.`)}let N=Fl(),H;if(r){let Z=typeof r=="string"?Ha(r):r;Ae(E==="/"||Z.pathname?.startsWith(E),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${E}" but pathname "${Z.pathname}" was given in the \`location\` prop.`),H=Z}else H=N;let q=H.pathname||"/",Y=q;if(E!=="/"){let Z=E.replace(/^\//,"").split("/");Y="/"+q.replace(/^\//,"").split("/").slice(Z.length).join("/")}let L=S0(i,{pathname:Y});Bt(b||L!=null,`No routes matched location "${H.pathname}${H.search}${H.hash}" `),Bt(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${H.pathname}${H.search}${H.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=yp(L&&L.map(Z=>Object.assign({},Z,{params:Object.assign({},g,Z.params),pathname:nl([E,h.encodeLocation?h.encodeLocation(Z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?E:nl([E,h.encodeLocation?h.encodeLocation(Z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Z.pathnameBase])})),x,f,o,m);return r&&B?C.createElement(Ln.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...H},navigationType:"POP"}},B):B}function xp(){let i=Ep(),r=Ix(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},x=null;return console.error("Error handled by React Router default ErrorBoundary:",i),x=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:h},"ErrorBoundary")," or"," ",C.createElement("code",{style:h},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},r),f?C.createElement("pre",{style:m},f):null,x)}var pp=C.createElement(xp,null),U0=class extends C.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){this.props.onError?this.props.onError(i,r):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const f=cp(i.digest);f&&(i=f)}let r=i!==void 0?C.createElement(Lt.Provider,{value:this.props.routeContext},C.createElement(Kc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?C.createElement(gp,{error:i},r):r}};U0.contextType=lp;var Bc=new WeakMap;function gp({children:i,error:r}){let{basename:f}=C.useContext(Tt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let o=ip(r.digest);if(o){let m=Bc.get(r);if(m)throw m;let h=z0(o.location,f);if(A0&&!Bc.get(r))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Bc.set(r,x),x}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function vp({routeContext:i,match:r,children:f}){let o=C.useContext(Ba);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),C.createElement(Lt.Provider,{value:i},f)}function yp(i,r=[],f=null,o=null,m=null){if(i==null){if(!f)return null;if(f.errors)i=f.matches;else if(r.length===0&&!f.initialized&&f.matches.length>0)i=f.matches;else return null}let h=i,x=f?.errors;if(x!=null){let E=h.findIndex(b=>b.route.id&&x?.[b.route.id]!==void 0);Ae(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(x).join(",")}`),h=h.slice(0,Math.min(h.length,E+1))}let S=!1,g=-1;if(f)for(let E=0;E<h.length;E++){let b=h[E];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=E),b.route.id){let{loaderData:N,errors:H}=f,q=b.route.loader&&!N.hasOwnProperty(b.route.id)&&(!H||H[b.route.id]===void 0);if(b.route.lazy||q){S=!0,g>=0?h=h.slice(0,g+1):h=[h[0]];break}}}let p=f&&o?(E,b)=>{o(E,{location:f.location,params:f.matches?.[0]?.params??{},unstable_pattern:ep(f.matches),errorInfo:b})}:void 0;return h.reduceRight((E,b,N)=>{let H,q=!1,Y=null,L=null;f&&(H=x&&b.route.id?x[b.route.id]:void 0,Y=b.route.errorElement||pp,S&&(g<0&&N===0?(H0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),q=!0,L=null):g===N&&(q=!0,L=b.route.hydrateFallbackElement||null)));let B=r.concat(h.slice(0,N+1)),Z=()=>{let K;return H?K=Y:q?K=L:b.route.Component?K=C.createElement(b.route.Component,null):b.route.element?K=b.route.element:K=E,C.createElement(vp,{match:b,routeContext:{outlet:E,matches:B,isDataRoute:f!=null},children:K})};return f&&(b.route.ErrorBoundary||b.route.errorElement||N===0)?C.createElement(U0,{location:f.location,revalidation:f.revalidation,component:Y,error:H,children:Z(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:p}):Z()},null)}function Jc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bp(i){let r=C.useContext(Ba);return Ae(r,Jc(i)),r}function jp(i){let r=C.useContext(os);return Ae(r,Jc(i)),r}function Sp(i){let r=C.useContext(Lt);return Ae(r,Jc(i)),r}function $c(i){let r=Sp(i),f=r.matches[r.matches.length-1];return Ae(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function Np(){return $c("useRouteId")}function Ep(){let i=C.useContext(Kc),r=jp("useRouteError"),f=$c("useRouteError");return i!==void 0?i:r.errors?.[f]}function Cp(){let{router:i}=bp("useNavigate"),r=$c("useNavigate"),f=C.useRef(!1);return _0(()=>{f.current=!0}),C.useCallback(async(m,h={})=>{Bt(f.current,D0),f.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:r,...h}))},[i,r])}var x0={};function H0(i,r,f){!r&&!x0[i]&&(x0[i]=!0,Bt(!1,f))}C.memo(Tp);function Tp({routes:i,future:r,state:f,onError:o}){return w0(i,void 0,f,o,r)}function Ap(i){return mp(i.context)}function Ct(i){Ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function zp({basename:i="/",children:r=null,location:f,navigationType:o="POP",navigator:m,static:h=!1,unstable_useTransitions:x}){Ae(!qn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let S=i.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:S,navigator:m,static:h,unstable_useTransitions:x,future:{}}),[S,m,h,x]);typeof f=="string"&&(f=Ha(f));let{pathname:p="/",search:E="",hash:b="",state:N=null,key:H="default"}=f,q=C.useMemo(()=>{let Y=ul(p,S);return Y==null?null:{location:{pathname:Y,search:E,hash:b,state:N,key:H},navigationType:o}},[S,p,E,b,N,H,o]);return Bt(q!=null,`<Router basename="${S}"> is not able to match the URL "${p}${E}${b}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:C.createElement(Tt.Provider,{value:g},C.createElement(Ln.Provider,{children:r,value:q}))}function Rp({children:i,location:r}){return hp(Zc(i),r)}function Zc(i,r=[]){let f=[];return C.Children.forEach(i,(o,m)=>{if(!C.isValidElement(o))return;let h=[...r,m];if(o.type===C.Fragment){f.push.apply(f,Zc(o.props.children,h));return}Ae(o.type===Ct,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ae(!o.props.index||!o.props.children,"An index route cannot have child routes.");let x={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(x.children=Zc(o.props.children,h)),f.push(x)}),f}var is="get",cs="application/x-www-form-urlencoded";function fs(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Mp(i){return fs(i)&&i.tagName.toLowerCase()==="button"}function Op(i){return fs(i)&&i.tagName.toLowerCase()==="form"}function Dp(i){return fs(i)&&i.tagName.toLowerCase()==="input"}function _p(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function wp(i,r){return i.button===0&&(!r||r==="_self")&&!_p(i)}var us=null;function Up(){if(us===null)try{new FormData(document.createElement("form"),0),us=!1}catch{us=!0}return us}var Hp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lc(i){return i!=null&&!Hp.has(i)?(Bt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${cs}"`),null):i}function Bp(i,r){let f,o,m,h,x;if(Op(i)){let S=i.getAttribute("action");o=S?ul(S,r):null,f=i.getAttribute("method")||is,m=Lc(i.getAttribute("enctype"))||cs,h=new FormData(i)}else if(Mp(i)||Dp(i)&&(i.type==="submit"||i.type==="image")){let S=i.form;if(S==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||S.getAttribute("action");if(o=g?ul(g,r):null,f=i.getAttribute("formmethod")||S.getAttribute("method")||is,m=Lc(i.getAttribute("formenctype"))||Lc(S.getAttribute("enctype"))||cs,h=new FormData(S,i),!Up()){let{name:p,type:E,value:b}=i;if(E==="image"){let N=p?`${p}.`:"";h.append(`${N}x`,"0"),h.append(`${N}y`,"0")}else p&&h.append(p,b)}}else{if(fs(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=is,o=null,m=cs,x=i}return h&&m==="text/plain"&&(x=h,h=void 0),{action:o,method:f.toLowerCase(),encType:m,formData:h,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wc(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function Lp(i,r,f,o){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${o}`:m.pathname=`${m.pathname}.${o}`:m.pathname==="/"?m.pathname=`_root.${o}`:r&&ul(m.pathname,r)==="/"?m.pathname=`${r.replace(/\/$/,"")}/_root.${o}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${o}`,m}async function qp(i,r){if(i.id in r)return r[i.id];try{let f=await import(i.module);return r[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Yp(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Gp(i,r,f){let o=await Promise.all(i.map(async m=>{let h=r.routes[m.route.id];if(h){let x=await qp(h,f);return x.links?x.links():[]}return[]}));return Vp(o.flat(1).filter(Yp).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function p0(i,r,f,o,m,h){let x=(g,p)=>f[p]?g.route.id!==f[p].route.id:!0,S=(g,p)=>f[p].pathname!==g.pathname||f[p].route.path?.endsWith("*")&&f[p].params["*"]!==g.params["*"];return h==="assets"?r.filter((g,p)=>x(g,p)||S(g,p)):h==="data"?r.filter((g,p)=>{let E=o.routes[g.route.id];if(!E||!E.hasLoader)return!1;if(x(g,p)||S(g,p))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:f[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Xp(i,r,{includeHydrateFallback:f}={}){return Zp(i.map(o=>{let m=r.routes[o.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),f&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function Zp(i){return[...new Set(i)]}function Qp(i){let r={},f=Object.keys(i).sort();for(let o of f)r[o]=i[o];return r}function Vp(i,r){let f=new Set;return new Set(r),i.reduce((o,m)=>{let h=JSON.stringify(Qp(m));return f.has(h)||(f.add(h),o.push({key:h,link:m})),o},[])}function B0(){let i=C.useContext(Ba);return Wc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function kp(){let i=C.useContext(os);return Wc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Fc=C.createContext(void 0);Fc.displayName="FrameworkContext";function L0(){let i=C.useContext(Fc);return Wc(i,"You must render this element inside a <HydratedRouter> element"),i}function Kp(i,r){let f=C.useContext(Fc),[o,m]=C.useState(!1),[h,x]=C.useState(!1),{onFocus:S,onBlur:g,onMouseEnter:p,onMouseLeave:E,onTouchStart:b}=r,N=C.useRef(null);C.useEffect(()=>{if(i==="render"&&x(!0),i==="viewport"){let Y=B=>{B.forEach(Z=>{x(Z.isIntersecting)})},L=new IntersectionObserver(Y,{threshold:.5});return N.current&&L.observe(N.current),()=>{L.disconnect()}}},[i]),C.useEffect(()=>{if(o){let Y=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(Y)}}},[o]);let H=()=>{m(!0)},q=()=>{m(!1),x(!1)};return f?i!=="intent"?[h,N,{}]:[h,N,{onFocus:wn(S,H),onBlur:wn(g,q),onMouseEnter:wn(p,H),onMouseLeave:wn(E,q),onTouchStart:wn(b,H)}]:[!1,N,{}]}function wn(i,r){return f=>{i&&i(f),f.defaultPrevented||r(f)}}function Jp({page:i,...r}){let{router:f}=B0(),o=C.useMemo(()=>S0(f.routes,i,f.basename),[f.routes,i,f.basename]);return o?C.createElement(Wp,{page:i,matches:o,...r}):null}function $p(i){let{manifest:r,routeModules:f}=L0(),[o,m]=C.useState([]);return C.useEffect(()=>{let h=!1;return Gp(i,r,f).then(x=>{h||m(x)}),()=>{h=!0}},[i,r,f]),o}function Wp({page:i,matches:r,...f}){let o=Fl(),{future:m,manifest:h,routeModules:x}=L0(),{basename:S}=B0(),{loaderData:g,matches:p}=kp(),E=C.useMemo(()=>p0(i,r,p,h,o,"data"),[i,r,p,h,o]),b=C.useMemo(()=>p0(i,r,p,h,o,"assets"),[i,r,p,h,o]),N=C.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let Y=new Set,L=!1;if(r.forEach(Z=>{let K=h.routes[Z.route.id];!K||!K.hasLoader||(!E.some(fe=>fe.route.id===Z.route.id)&&Z.route.id in g&&x[Z.route.id]?.shouldRevalidate||K.hasClientLoader?L=!0:Y.add(Z.route.id))}),Y.size===0)return[];let B=Lp(i,S,m.unstable_trailingSlashAwareDataRequests,"data");return L&&Y.size>0&&B.searchParams.set("_routes",r.filter(Z=>Y.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[B.pathname+B.search]},[S,m.unstable_trailingSlashAwareDataRequests,g,o,h,E,r,i,x]),H=C.useMemo(()=>Xp(b,h),[b,h]),q=$p(b);return C.createElement(C.Fragment,null,N.map(Y=>C.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...f})),H.map(Y=>C.createElement("link",{key:Y,rel:"modulepreload",href:Y,...f})),q.map(({key:Y,link:L})=>C.createElement("link",{key:Y,nonce:f.nonce,...L,crossOrigin:L.crossOrigin??f.crossOrigin})))}function Fp(...i){return r=>{i.forEach(f=>{typeof f=="function"?f(r):f!=null&&(f.current=r)})}}var Pp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Pp&&(window.__reactRouterVersion="7.13.0")}catch{}function Ip({basename:i,children:r,unstable_useTransitions:f,window:o}){let m=C.useRef();m.current==null&&(m.current=Rx({window:o,v5Compat:!0}));let h=m.current,[x,S]=C.useState({action:h.action,location:h.location}),g=C.useCallback(p=>{f===!1?S(p):C.startTransition(()=>S(p))},[f]);return C.useLayoutEffect(()=>h.listen(g),[h,g]),C.createElement(zp,{basename:i,children:r,location:x.location,navigationType:x.action,navigator:h,unstable_useTransitions:f})}var q0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hn=C.forwardRef(function({onClick:r,discover:f="render",prefetch:o="none",relative:m,reloadDocument:h,replace:x,state:S,target:g,to:p,preventScrollReset:E,viewTransition:b,unstable_defaultShouldRevalidate:N,...H},q){let{basename:Y,unstable_useTransitions:L}=C.useContext(Tt),B=typeof p=="string"&&q0.test(p),Z=z0(p,Y);p=Z.to;let K=rp(p,{relative:m}),[fe,xe,Se]=Kp(o,H),F=lg(p,{replace:x,state:S,target:g,preventScrollReset:E,relative:m,viewTransition:b,unstable_defaultShouldRevalidate:N,unstable_useTransitions:L});function Ne(ke){r&&r(ke),ke.defaultPrevented||F(ke)}let Me=C.createElement("a",{...H,...Se,href:Z.absoluteURL||K,onClick:Z.isExternal||h?r:Ne,ref:Fp(q,xe),target:g,"data-discover":!B&&f==="render"?"true":void 0});return fe&&!B?C.createElement(C.Fragment,null,Me,C.createElement(Jp,{page:K})):Me});Hn.displayName="Link";var Y0=C.forwardRef(function({"aria-current":r="page",caseSensitive:f=!1,className:o="",end:m=!1,style:h,to:x,viewTransition:S,children:g,...p},E){let b=Yn(x,{relative:p.relative}),N=Fl(),H=C.useContext(os),{navigator:q,basename:Y}=C.useContext(Tt),L=H!=null&&ig(b)&&S===!0,B=q.encodeLocation?q.encodeLocation(b).pathname:b.pathname,Z=N.pathname,K=H&&H.navigation&&H.navigation.location?H.navigation.location.pathname:null;f||(Z=Z.toLowerCase(),K=K?K.toLowerCase():null,B=B.toLowerCase()),K&&Y&&(K=ul(K,Y)||K);const fe=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let xe=Z===B||!m&&Z.startsWith(B)&&Z.charAt(fe)==="/",Se=K!=null&&(K===B||!m&&K.startsWith(B)&&K.charAt(B.length)==="/"),F={isActive:xe,isPending:Se,isTransitioning:L},Ne=xe?r:void 0,Me;typeof o=="function"?Me=o(F):Me=[o,xe?"active":null,Se?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let ke=typeof h=="function"?h(F):h;return C.createElement(Hn,{...p,"aria-current":Ne,className:Me,ref:E,style:ke,to:x,viewTransition:S},typeof g=="function"?g(F):g)});Y0.displayName="NavLink";var eg=C.forwardRef(({discover:i="render",fetcherKey:r,navigate:f,reloadDocument:o,replace:m,state:h,method:x=is,action:S,onSubmit:g,relative:p,preventScrollReset:E,viewTransition:b,unstable_defaultShouldRevalidate:N,...H},q)=>{let{unstable_useTransitions:Y}=C.useContext(Tt),L=ug(),B=sg(S,{relative:p}),Z=x.toLowerCase()==="get"?"get":"post",K=typeof S=="string"&&q0.test(S),fe=xe=>{if(g&&g(xe),xe.defaultPrevented)return;xe.preventDefault();let Se=xe.nativeEvent.submitter,F=Se?.getAttribute("formmethod")||x,Ne=()=>L(Se||xe.currentTarget,{fetcherKey:r,method:F,navigate:f,replace:m,state:h,relative:p,preventScrollReset:E,viewTransition:b,unstable_defaultShouldRevalidate:N});Y&&f!==!1?C.startTransition(()=>Ne()):Ne()};return C.createElement("form",{ref:q,method:Z,action:B,onSubmit:o?g:fe,...H,"data-discover":!K&&i==="render"?"true":void 0})});eg.displayName="Form";function tg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function G0(i){let r=C.useContext(Ba);return Ae(r,tg(i)),r}function lg(i,{target:r,replace:f,state:o,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:S,unstable_useTransitions:g}={}){let p=op(),E=Fl(),b=Yn(i,{relative:h});return C.useCallback(N=>{if(wp(N,r)){N.preventDefault();let H=f!==void 0?f:Un(E)===Un(b),q=()=>p(i,{replace:H,state:o,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:S});g?C.startTransition(()=>q()):q()}},[E,p,b,f,o,r,i,m,h,x,S,g])}var ag=0,ng=()=>`__${String(++ag)}__`;function ug(){let{router:i}=G0("useSubmit"),{basename:r}=C.useContext(Tt),f=Np(),o=i.fetch,m=i.navigate;return C.useCallback(async(h,x={})=>{let{action:S,method:g,encType:p,formData:E,body:b}=Bp(h,r);if(x.navigate===!1){let N=x.fetcherKey||ng();await o(N,f,x.action||S,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:E,body:b,formMethod:x.method||g,formEncType:x.encType||p,flushSync:x.flushSync})}else await m(x.action||S,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:E,body:b,formMethod:x.method||g,formEncType:x.encType||p,replace:x.replace,state:x.state,fromRouteId:f,flushSync:x.flushSync,viewTransition:x.viewTransition})},[o,m,r,f])}function sg(i,{relative:r}={}){let{basename:f}=C.useContext(Tt),o=C.useContext(Lt);Ae(o,"useFormAction must be used inside a RouteContext");let[m]=o.matches.slice(-1),h={...Yn(i||".",{relative:r})},x=Fl();if(i==null){h.search=x.search;let S=new URLSearchParams(h.search),g=S.getAll("index");if(g.some(E=>E==="")){S.delete("index"),g.filter(b=>b).forEach(b=>S.append("index",b));let E=S.toString();h.search=E?`?${E}`:""}}return(!i||i===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(h.pathname=h.pathname==="/"?f:nl([f,h.pathname])),Un(h)}function ig(i,{relative:r}={}){let f=C.useContext(M0);Ae(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=G0("useViewTransitionState"),m=Yn(i,{relative:r});if(!f.isTransitioning)return!1;let h=ul(f.currentLocation.pathname,o)||f.currentLocation.pathname,x=ul(f.nextLocation.pathname,o)||f.nextLocation.pathname;return rs(m.pathname,x)!=null||rs(m.pathname,h)!=null}function Ht({d:i}){return s.jsx("svg",{className:"w-5 h-5 shrink-0",fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:i})})}const cg=[{to:"/",label:"Overview",icon:s.jsx(Ht,{d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"})},{to:"/settings",label:"Settings",icon:s.jsx(Ht,{d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})},{to:"/memory",label:"Memory",icon:s.jsx(Ht,{d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})},{to:"/mcp",label:"MCP Servers",icon:s.jsx(Ht,{d:"M5.25 14.25h13.5m-13.5 0a3 3 0 0 1-3-3m3 3a3 3 0 1 0 0 6h13.5a3 3 0 1 0 0-6m-16.5-3a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3m-19.5 0a4.5 4.5 0 0 1 .9-2.7L5.737 5.1a3.375 3.375 0 0 1 2.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 0 1 .9 2.7m0 0a3 3 0 0 1-3 3m0 3h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Zm-3 6h.008v.008h-.008v-.008Zm0-6h.008v.008h-.008v-.008Z"})},{to:"/plugins",label:"Plugins",icon:s.jsx(Ht,{d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z"})},{to:"/hooks",label:"Hooks",icon:s.jsx(Ht,{d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"})},{to:"/skills",label:"Skills",icon:s.jsx(Ht,{d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437"})},{to:"/permissions",label:"Permissions",icon:s.jsx(Ht,{d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"})},{to:"/health",label:"Health",icon:s.jsx(Ht,{d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"})},{to:"/projects",label:"Projects",icon:s.jsx(Ht,{d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})}];function rg(){const[i,r]=C.useState(!1);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"md:hidden fixed top-0 left-0 right-0 z-30 bg-slate-900 border-b border-slate-700 flex items-center px-4 py-3",children:[s.jsx("button",{type:"button",onClick:()=>r(!i),className:"text-slate-300 hover:text-white p-1 -ml-1","aria-label":"Toggle navigation",children:s.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i?s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})}),s.jsx("h1",{className:"text-sm font-bold text-white ml-3 tracking-tight font-mono",children:"claude-ctl"}),s.jsx("span",{className:"text-xs text-slate-500 ml-2",children:"dashboard"})]}),i&&s.jsx("div",{className:"md:hidden fixed inset-0 z-40 bg-black/40",onClick:()=>r(!1)}),s.jsxs("aside",{className:`
|
|
12
|
+
fixed md:relative z-50 md:z-auto
|
|
13
|
+
flex flex-col w-60 bg-slate-900 text-slate-300 shrink-0
|
|
14
|
+
h-full md:h-auto
|
|
15
|
+
transition-transform duration-200 ease-in-out
|
|
16
|
+
${i?"translate-x-0":"-translate-x-full md:translate-x-0"}
|
|
17
|
+
`,children:[s.jsxs("div",{className:"px-5 py-5 border-b border-slate-700",children:[s.jsx("h1",{className:"text-lg font-bold text-white tracking-tight font-mono",children:"claude-ctl"}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"configuration dashboard"})]}),s.jsx("nav",{className:"flex-1 py-3 px-3 space-y-0.5 overflow-y-auto",children:cg.map(f=>s.jsxs(Y0,{to:f.to,end:f.to==="/",onClick:()=>r(!1),className:({isActive:o})=>`flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-colors ${o?"bg-blue-600 text-white":"text-slate-300 hover:bg-slate-800 hover:text-white"}`,children:[f.icon,f.label]},f.to))}),s.jsx("div",{className:"px-5 py-4 border-t border-slate-700",children:s.jsx("p",{className:"text-xs text-slate-500",children:"claude-ctl v0.1.0"})})]})]})}function og(){return s.jsxs("div",{className:"flex h-screen bg-slate-50",children:[s.jsx(rg,{}),s.jsx("main",{className:"flex-1 p-4 md:p-8 overflow-auto pt-16 md:pt-8",children:s.jsx(Ap,{})})]})}async function Ot(i){const r=await fetch(`/api/${i}`);if(!r.ok)throw new Error(`API error: ${r.status} ${r.statusText}`);return r.json()}async function X0(){return Ot("scan")}async function fg(){return Ot("status")}async function Z0(){return Ot("settings")}async function Q0(){return Ot("memory")}async function V0(){return Ot("mcp")}async function k0(){return Ot("hooks")}async function dg(){return Ot("plugins")}async function mg(){return Ot("commands")}async function Qc(){return Ot("permissions")}async function K0(){return Ot("health")}async function hg(){return Ot("memory/imports")}async function xg(i){const r=await fetch(`/api/projects?dir=${encodeURIComponent(i)}`);if(!r.ok){const f=await r.json().catch(()=>({}));throw new Error(f.error??`API error: ${r.status}`)}return r.json()}async function pg(i,r,f){const o=await fetch("/api/permissions/remove",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sourcePath:i,rule:r,raw:f})});if(!o.ok){const m=await o.json().catch(()=>({}));throw new Error(m.error??`API error: ${o.status}`)}return o.json()}async function gg(i){const r=i.map(o=>encodeURIComponent(o)).join(","),f=await fetch(`/api/compare?projects=${r}`);if(!f.ok){const o=await f.json().catch(()=>({}));throw new Error(o.error??`API error: ${f.status}`)}return f.json()}function vg(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState([]),[x,S]=C.useState(null),[g,p]=C.useState(null),[E,b]=C.useState(!1);return C.useEffect(()=>{let N=!1;async function H(){try{const[q,Y,L,B,Z,K,fe,xe]=await Promise.all([X0(),fg(),Z0(),Q0(),V0(),k0(),Qc(),K0().catch(()=>null)]);if(N)return;S(q),p(xe);const Se=L.settings?.length??0,F=B?.length??0,Ne=Z.servers?.length??0,Me=K.configuredEvents?.length??0,ke=fe.effective?.length??0,ht=[{label:"Config Files",value:Y.found,detail:`${Y.found} found of ${Y.total} paths`,link:null},{label:"Settings",value:Se,detail:`${Se} resolved key${Se!==1?"s":""}`,link:"/settings"},{label:"CLAUDE.md Files",value:F,detail:`${F} memory file${F!==1?"s":""} active`,link:"/memory"},{label:"MCP Servers",value:Ne,detail:`${Ne} server${Ne!==1?"s":""} configured`,link:"/mcp"},{label:"Hooks",value:Me,detail:`${Me} event${Me!==1?"s":""} with hooks`,link:"/hooks"},{label:"Permissions",value:ke,detail:`${ke} permission rule${ke!==1?"s":""}`,link:"/permissions"}];h(ht),r(!1)}catch(q){if(N)return;o(q instanceof Error?q.message:"Failed to load data"),r(!1)}}return H(),()=>{N=!0}},[]),f?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Overview"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading dashboard data"}),s.jsx("p",{className:"text-sm mt-1",children:f})]})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Overview"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-6",children:["At-a-glance summary of your Claude Code configuration",!i&&x&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["— ",x.projectDir]})]}),!i&&s.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:s.jsxs("p",{children:[s.jsx("strong",{children:"Claude Code"})," is configured through multiple files spread across different scope levels. This dashboard scans all config paths and resolves your effective settings, MCP servers, hooks, and permissions. Click any card below to explore that area in detail, or expand"," ",s.jsx("strong",{children:"Config Files"})," to see every path that was scanned."]})}),i?s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6}).map((N,H)=>s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6 animate-pulse",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-24 mb-3"}),s.jsx("div",{className:"h-8 bg-slate-200 rounded w-16 mb-2"}),s.jsx("div",{className:"h-3 bg-slate-100 rounded w-32"})]},H))}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:m.map(N=>N.link?s.jsxs(Hn,{to:N.link,className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6 hover:shadow-md hover:border-blue-200 transition-all group",children:[s.jsx("p",{className:"text-sm font-medium text-slate-500 group-hover:text-blue-600 transition-colors",children:N.label}),s.jsx("p",{className:"text-3xl font-bold text-slate-900 mt-1",children:N.value}),s.jsx("p",{className:"text-xs text-slate-400 mt-1",children:N.detail})]},N.label):s.jsxs("button",{type:"button",onClick:()=>b(!E),className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6 hover:shadow-md hover:border-blue-200 transition-all group text-left cursor-pointer",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("p",{className:"text-sm font-medium text-slate-500 group-hover:text-blue-600 transition-colors",children:N.label}),s.jsx("svg",{className:`w-4 h-4 text-slate-400 transition-transform ${E?"rotate-180":""}`,fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),s.jsx("p",{className:"text-3xl font-bold text-slate-900 mt-1",children:N.value}),s.jsx("p",{className:"text-xs text-slate-400 mt-1",children:N.detail})]},N.label))}),g&&s.jsxs(Hn,{to:"/health",className:"mt-4 bg-white rounded-lg shadow-sm border border-slate-200 p-5 hover:shadow-md hover:border-blue-200 transition-all group flex items-center gap-5",children:[s.jsx("div",{className:`w-16 h-16 rounded-full flex items-center justify-center ring-4 shrink-0 ${g.grade==="A"||g.grade==="B"?"ring-emerald-100":g.grade==="C"?"ring-yellow-100":"ring-red-100"}`,children:s.jsx("span",{className:`text-2xl font-bold ${g.grade==="A"||g.grade==="B"?"text-emerald-600":g.grade==="C"?"text-yellow-600":"text-red-600"}`,children:Math.round(g.overallScore)})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("p",{className:"text-sm font-medium text-slate-500 group-hover:text-blue-600 transition-colors",children:"Health Score"}),s.jsx("span",{className:`text-xs font-bold px-1.5 py-0.5 rounded ${g.grade==="A"||g.grade==="B"?"bg-emerald-100 text-emerald-700":g.grade==="C"?"bg-yellow-100 text-yellow-700":"bg-red-100 text-red-700"}`,children:g.grade})]}),s.jsx("p",{className:"text-sm text-slate-600 mt-1 truncate",children:g.summary}),g.recommendations.length>0&&s.jsxs("p",{className:"text-xs text-slate-400 mt-1",children:[g.recommendations.length," recommendation",g.recommendations.length!==1?"s":""]})]}),s.jsx("svg",{className:"w-5 h-5 text-slate-400 shrink-0 group-hover:text-blue-500 transition-colors",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})]}),E&&x&&s.jsxs("div",{className:"mt-4 bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden",children:[s.jsxs("div",{className:"px-4 py-3 bg-slate-50 border-b border-slate-200",children:[s.jsxs("h3",{className:"text-sm font-medium text-slate-700",children:["All Config Paths (",x.files.length,")"]}),s.jsxs("p",{className:"text-xs text-slate-500 mt-0.5",children:["Project: ",x.projectDir]})]}),s.jsx("div",{className:"divide-y divide-slate-100",children:x.files.map(N=>s.jsxs("div",{className:"px-4 py-2.5 flex items-center gap-3 text-sm",children:[s.jsx("span",{className:`inline-block w-2 h-2 rounded-full shrink-0 ${N.exists?"bg-emerald-500":"bg-slate-300"}`}),s.jsx("span",{className:"text-xs font-medium text-slate-500 w-16 shrink-0",children:N.scope}),s.jsx("span",{className:"text-xs text-slate-400 w-20 shrink-0",children:N.type}),s.jsx("span",{className:"text-slate-700 font-mono text-xs truncate",title:N.expectedPath,children:N.expectedPath})]},N.expectedPath))})]})]})]})}const yg={managed:"bg-slate-200 text-slate-700",user:"bg-blue-100 text-blue-700",project:"bg-green-100 text-green-700",local:"bg-purple-100 text-purple-700"};function g0({scope:i}){const r=yg[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}function qc(i){return i===null?"null":i===void 0?"undefined":typeof i=="object"?JSON.stringify(i,null,2):String(i)}function v0(i){const r=typeof window<"u"?i.replace(/^(\/[^/]+\/[^/]+|[A-Z]:\\Users\\[^\\]+).*$/,"$1"):"";return r&&i.startsWith(r)?"~"+i.slice(r.length):i}function bg({setting:i}){const[r,f]=C.useState(!1),o=i.overrides.length>1,m=typeof i.effectiveValue=="object"&&i.effectiveValue!==null;return s.jsxs("div",{className:"border-b border-slate-100 last:border-b-0",children:[s.jsxs("button",{type:"button",onClick:()=>f(!r),className:"w-full text-left px-4 py-3 hover:bg-slate-50 transition-colors flex items-start gap-4 group",children:[s.jsx("span",{className:"text-slate-400 mt-0.5 text-xs w-4 shrink-0",children:o?r?"▼":"▶":"·"}),s.jsx("span",{className:"font-mono text-sm text-slate-900 font-medium min-w-[200px] shrink-0",children:i.key}),s.jsx("span",{className:"flex-1 font-mono text-sm text-slate-600 truncate",children:m?s.jsx("span",{className:"text-slate-400 italic",children:"{...}"}):qc(i.effectiveValue)}),s.jsx(g0,{scope:i.effectiveScope}),s.jsx("span",{className:"text-xs text-slate-400 hidden lg:inline truncate max-w-[200px]",title:i.effectiveSourcePath,children:v0(i.effectiveSourcePath)})]}),r&&s.jsxs("div",{className:"px-4 pb-4 pl-12 bg-slate-50/50",children:[m&&s.jsxs("div",{className:"mb-3",children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 mb-1",children:"Effective value:"}),s.jsx("pre",{className:"text-xs font-mono bg-white border border-slate-200 rounded p-3 overflow-x-auto text-slate-700",children:qc(i.effectiveValue)})]}),s.jsxs("p",{className:"text-xs font-medium text-slate-500 mb-2",children:["Override chain (",i.overrides.length," scope",i.overrides.length!==1?"s":"","):"]}),s.jsx("div",{className:"space-y-1",children:i.overrides.map((h,x)=>{const S=x===0;return s.jsxs("div",{className:`flex items-start gap-3 px-3 py-2 rounded text-sm ${S?"bg-white border border-green-200":"bg-slate-100/50 opacity-60"}`,children:[s.jsx("span",{className:"mt-0.5 text-sm w-4 shrink-0",children:S?s.jsx("span",{className:"text-green-600",children:"✓"}):s.jsx("span",{className:"text-slate-400",children:"–"})}),s.jsx(g0,{scope:h.scope}),s.jsx("span",{className:`font-mono text-xs flex-1 ${S?"text-slate-800":"text-slate-400 line-through"}`,children:qc(h.value)}),s.jsx("span",{className:"text-xs text-slate-400 truncate max-w-[250px]",title:h.path,children:v0(h.path)})]},`${h.scope}-${h.path}`)})})]})]})}function jg(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState(null),[x,S]=C.useState("");C.useEffect(()=>{let b=!1;async function N(){try{const H=await Z0();if(b)return;h(H),r(!1)}catch(H){if(b)return;o(H instanceof Error?H.message:"Failed to load settings"),r(!1)}}return N(),()=>{b=!0}},[]);const g=m?.settings?.filter(b=>b.key.toLowerCase().includes(x.toLowerCase()))??[];if(f)return s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Settings"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading settings"}),s.jsx("p",{className:"text-sm mt-1",children:f})]})]});const p=m?m.settings.filter(b=>b.overrides.length>1).length:0,E=m?[...new Set(m.settings.map(b=>b.effectiveScope))]:[];return s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Settings"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-6",children:["Resolved configuration from settings.json files",!i&&m&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["(",m.settings.length," setting",m.settings.length!==1?"s":"",p>0&&s.jsxs("span",{children:[", ",p," overridden"]}),E.length>0&&s.jsxs("span",{children:[", ",E.length," scope",E.length!==1?"s":""]}),")"]})]}),!i&&s.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:[s.jsxs("p",{className:"mb-2",children:[s.jsx("strong",{children:"Settings"})," control Claude Code behavior — model preferences, allowed tools, editor integration, and more. They are defined in"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"settings.json"})," ","files at different scope levels:"]}),s.jsxs("ul",{className:"list-disc pl-5 space-y-1 mb-2",children:[s.jsxs("li",{children:[s.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-slate-200 text-slate-700",children:"managed"})," ","— organization defaults set by your admin"]}),s.jsxs("li",{children:[s.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-blue-100 text-blue-700",children:"user"})," ","— your personal preferences in"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"~/.claude/settings.json"})]}),s.jsxs("li",{children:[s.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-green-100 text-green-700",children:"project"})," ","— shared team settings in"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:".claude/settings.json"})]}),s.jsxs("li",{children:[s.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-purple-100 text-purple-700",children:"local"})," ","— your local overrides in"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:".claude/settings.local.json"})]})]}),s.jsxs("p",{className:"text-blue-700 text-xs",children:["Higher scopes override lower ones (local > project > user > managed). Click a row with the"," ",s.jsx("span",{className:"text-slate-500",children:"▶"})," indicator to see its full override chain."]})]}),i?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:Array.from({length:6}).map((b,N)=>s.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 animate-pulse flex gap-4",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-4"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-40"}),s.jsx("div",{className:"h-4 bg-slate-100 rounded flex-1"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-16"})]},N))}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-4",children:s.jsx("input",{type:"text",value:x,onChange:b=>S(b.target.value),placeholder:"Filter settings...",className:"w-full px-4 py-2 rounded-lg border border-slate-300 bg-white text-sm text-slate-800 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"})}),g.length===0?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:x?`No settings matching "${x}"`:"No settings found"}):s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 divide-y divide-slate-100",children:[s.jsxs("div",{className:"px-4 py-2 flex gap-4 text-xs font-medium text-slate-500 uppercase tracking-wider bg-slate-50 rounded-t-lg",children:[s.jsx("span",{className:"w-4"}),s.jsx("span",{className:"min-w-[200px]",children:"Key"}),s.jsx("span",{className:"flex-1",children:"Value"}),s.jsx("span",{className:"w-16",children:"Scope"}),s.jsx("span",{className:"hidden lg:inline w-[200px]",children:"Source"})]}),g.map(b=>s.jsx(bg,{setting:b},b.key))]}),s.jsxs("p",{className:"text-xs text-slate-400 mt-3",children:[g.length," of ",m?.settings?.length??0," settings",x?` matching "${x}"`:""]})]})]})}const Sg={managed:"bg-slate-200 text-slate-700",user:"bg-blue-100 text-blue-700",project:"bg-green-100 text-green-700",local:"bg-purple-100 text-purple-700"};function y0({scope:i}){const r=Sg[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}function Bn(i){const r=i.replace(/^(\/[^/]+\/[^/]+|[A-Z]:\\Users\\[^\\]+).*$/,"$1");return r&&i.startsWith(r)?"~"+i.slice(r.length):i}function Ng(i){const r=Bn(i),f=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));return f===-1?{prefix:"",suffix:r}:{prefix:r.slice(0,f+1),suffix:r.slice(f+1)}}function Eg(i){return i==null?"unknown":i<1024?`${i} B`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`}function Yc(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function Cg(i){const r=i.split(`
|
|
18
|
+
`),f=[];let o=!1,m=[],h=null;function x(){h&&(f.push(h==="ul"?"</ul>":"</ol>"),h=null)}function S(g){let p=Yc(g);return p=p.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>'),p=p.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),p=p.replace(/__(.+?)__/g,"<strong>$1</strong>"),p=p.replace(/`([^`]+)`/g,"<code>$1</code>"),p}for(let g=0;g<r.length;g++){const p=r[g];if(p.startsWith("```")){o?(f.push("<pre><code>"+Yc(m.join(`
|
|
19
|
+
`))+"</code></pre>"),m=[],o=!1):(x(),o=!0);continue}if(o){m.push(p);continue}if(p.trim()===""){x();continue}const E=p.match(/^(#{1,6})\s+(.+)$/);if(E){x();const H=E[1].length;f.push(`<h${H}>${S(E[2])}</h${H}>`);continue}const b=p.match(/^(\s*)[-*]\s+(.+)$/);if(b){h!=="ul"&&(x(),f.push("<ul>"),h="ul"),f.push(`<li>${S(b[2])}</li>`);continue}const N=p.match(/^(\s*)\d+\.\s+(.+)$/);if(N){h!=="ol"&&(x(),f.push("<ol>"),h="ol"),f.push(`<li>${S(N[2])}</li>`);continue}x(),f.push(`<p>${S(p)}</p>`)}return o&&f.push("<pre><code>"+Yc(m.join(`
|
|
20
|
+
`))+"</code></pre>"),x(),f.join(`
|
|
21
|
+
`)}const Vc=[{label:"User CLAUDE.md",scope:"user",description:"Your personal defaults — applies to every project. Use this for coding style preferences, favorite tools and frameworks, response format preferences, and patterns you always want Claude to follow regardless of the project.",guidance:'Create ~/.claude/CLAUDE.md to set your personal baseline. Example: "Always use TypeScript strict mode, prefer functional patterns, use pnpm, write concise commit messages."',matchPath:i=>{const r=i.replace(/\\/g,"/");return/\/\.claude\/CLAUDE\.md$/.test(r)&&!r.includes("/.")}},{label:"Project Root CLAUDE.md",scope:"project",description:"The main project instructions file, checked into the repo root. Best for build/test commands, architecture overview, coding conventions, key file paths, and anything the whole team should share. This is the most commonly used location.",guidance:"Create CLAUDE.md at your project root (next to package.json). This is the recommended starting point — it's visible, version-controlled, and shared with your team.",matchPath:i=>{const r=i.replace(/\\/g,"/");return/\/CLAUDE\.md$/.test(r)&&!r.includes("/.claude/")}},{label:"Project .claude/CLAUDE.md",scope:"project",description:"Alternative project instructions inside the .claude/ config directory. Useful for keeping the repo root clean or for supplementary instructions that live alongside other Claude config files (settings, MCP, permissions).",guidance:"Create .claude/CLAUDE.md if you prefer to keep Claude config grouped together, or use it alongside the root file for additional context that doesn't belong in the main CLAUDE.md.",matchPath:i=>{const r=i.replace(/\\/g,"/");return/\/\.claude\/CLAUDE\.md$/.test(r)}}];function Tg(i,r){const f=i.filter(o=>o.type==="claude-md");return Vc.map(o=>{const m=f.find(x=>o.matchPath(x.expectedPath))??null,h=m?r.find(x=>x.path===m.expectedPath)??null:null;return{slot:o,scanFile:m,memoryFile:h}})}function Ag({importData:i}){const r=i.imports.length,f=i.imports.filter(o=>!o.exists).length;return s.jsxs("div",{className:"border-t border-slate-100 px-4 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("p",{className:"text-xs font-medium text-slate-500",children:"Imports"}),s.jsxs("span",{className:"text-xs text-slate-400",children:["(",r," file",r!==1?"s":"",f>0&&s.jsxs("span",{className:"text-red-500",children:[", ",f," broken"]}),")"]}),i.hasCircular&&s.jsx("span",{className:"text-xs bg-yellow-100 text-yellow-700 px-1.5 py-0.5 rounded font-medium",children:"circular"})]}),s.jsx("ul",{className:"space-y-1",children:i.imports.map((o,m)=>s.jsxs("li",{className:"flex items-center gap-2 text-xs",children:[s.jsx("span",{className:`inline-block w-2 h-2 rounded-full shrink-0 ${o.exists?"bg-emerald-500":"bg-red-500"}`}),s.jsx("span",{className:"font-mono text-slate-600 truncate",title:o.resolvedPath,children:Bn(o.resolvedPath)}),!o.exists&&s.jsx("span",{className:"text-red-400 shrink-0",children:"missing"})]},m))})]})}function ss({slot:i,scanFile:r,memoryFile:f,importData:o}){const m=r?.exists===!0,[h,x]=C.useState(!1),[S,g]=C.useState("rendered"),p=o&&o.imports.length>0,E=f?.content??(typeof r?.content=="string"?r.content:null),b=r?.expectedPath??"",{prefix:N,suffix:H}=Ng(b);return m?s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 border-l-4 border-l-emerald-400 overflow-hidden",children:[s.jsx("button",{type:"button",onClick:()=>x(!h),className:"w-full text-left p-4 hover:bg-slate-50 transition-colors",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("p",{className:"text-sm font-medium text-slate-800",children:i.label}),s.jsx(y0,{scope:i.scope})]}),s.jsxs("p",{className:"text-xs font-mono truncate",title:b,children:[s.jsx("span",{className:"text-slate-400",children:N}),s.jsx("span",{className:"text-slate-700",children:H})]}),s.jsxs("p",{className:"text-xs text-slate-400 mt-1",children:[Eg(f?.sizeBytes??r?.sizeBytes),p&&s.jsxs("span",{className:"ml-2",children:[o.imports.length," import",o.imports.length!==1?"s":""]})]})]}),s.jsx("div",{className:"flex items-center gap-2 ml-3 shrink-0",children:s.jsx("span",{className:"text-slate-400 text-xs",children:h?"▼":"▶"})})]})}),p&&s.jsx(Ag,{importData:o}),h&&s.jsxs("div",{className:"border-t border-slate-100 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{type:"button",onClick:q=>{q.stopPropagation(),g("rendered")},className:`text-xs px-2 py-0.5 rounded transition-colors ${S==="rendered"?"bg-slate-200 text-slate-700 font-medium":"text-slate-400 hover:text-slate-600"}`,children:"Rendered"}),s.jsx("button",{type:"button",onClick:q=>{q.stopPropagation(),g("source")},className:`text-xs px-2 py-0.5 rounded transition-colors ${S==="source"?"bg-slate-200 text-slate-700 font-medium":"text-slate-400 hover:text-slate-600"}`,children:"Source"})]}),s.jsx("button",{type:"button",onClick:()=>x(!1),className:"text-xs text-slate-400 hover:text-slate-600 transition-colors",children:"Collapse"})]}),E?S==="source"?s.jsx("pre",{className:"text-xs font-mono bg-slate-100 rounded-md p-3 overflow-auto max-h-96 text-slate-700 whitespace-pre-wrap",children:E}):s.jsx("div",{className:"markdown-content text-sm overflow-auto max-h-96",dangerouslySetInnerHTML:{__html:Cg(E)}}):s.jsx("p",{className:"text-sm text-slate-400 italic",children:"No content available"})]})]}):s.jsx("div",{className:"bg-white rounded-lg border-2 border-dashed border-slate-200 overflow-hidden",children:s.jsx("div",{className:"p-4",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("p",{className:"text-sm font-medium text-slate-400",children:i.label}),s.jsx(y0,{scope:i.scope})]}),b&&s.jsx("p",{className:"text-xs font-mono text-slate-300 truncate mb-2",title:b,children:s.jsx("span",{children:Bn(b)})}),s.jsx("p",{className:"text-xs text-slate-400",children:i.description}),s.jsx("p",{className:"text-xs text-slate-400 mt-1 italic",children:i.guidance})]}),s.jsx("div",{className:"ml-3 shrink-0",children:s.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs font-medium bg-slate-100 text-slate-400",children:"not found"})})]})})})}function zg(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState([]),[x,S]=C.useState(null),[g,p]=C.useState(null);C.useEffect(()=>{let N=!1;async function H(){try{const[q,Y,L]=await Promise.all([Q0(),hg().catch(()=>null),X0().catch(()=>null)]);if(N)return;h(q??[]),S(Y),p(L),r(!1)}catch(q){if(N)return;o(q instanceof Error?q.message:"Failed to load memory files"),r(!1)}}return H(),()=>{N=!0}},[]);const E=g?Tg(g.files,m):null,b=E?E.filter(N=>N.scanFile?.exists).length:m.length;return f?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Memory"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading memory files"}),s.jsx("p",{className:"text-sm mt-1",children:f})]})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Memory"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-6",children:["CLAUDE.md files and @import chains",!i&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["(",b," of 3 locations active",x&&x.totalImports>0&&s.jsxs("span",{children:[", ",x.totalImports," import",x.totalImports!==1?"s":"",x.totalBroken>0&&s.jsxs("span",{className:"text-red-400",children:[", ",x.totalBroken," broken"]})]}),")"]})]}),s.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:[s.jsxs("p",{className:"mb-2",children:[s.jsx("strong",{children:"CLAUDE.md"})," files provide persistent instructions to Claude Code. They layer together — all found files are combined, with project-level instructions taking precedence over user-level ones."]}),s.jsxs("ul",{className:"list-disc pl-5 space-y-1 mb-2",children:[s.jsxs("li",{children:[s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"~/.claude/CLAUDE.md"})," ","— your ",s.jsx("strong",{children:"personal defaults"})," across all projects (coding style, preferred tools)"]}),s.jsxs("li",{children:[s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"CLAUDE.md"})," ","— the ",s.jsx("strong",{children:"main project file"})," at the repo root, shared with your team (build commands, architecture, conventions)"]}),s.jsxs("li",{children:[s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:".claude/CLAUDE.md"})," ","— ",s.jsx("strong",{children:"supplementary project instructions"})," grouped with other Claude config files"]})]}),s.jsxs("p",{className:"text-blue-700 text-xs",children:["Using multiple files keeps concerns separated — personal preferences don’t clutter the team’s project file, and vice versa. Use"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"@import"})," ","to pull in shared instruction files."]})]}),i?s.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((N,H)=>s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-4 animate-pulse",children:s.jsxs("div",{className:"flex justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-48 mb-2"}),s.jsx("div",{className:"h-3 bg-slate-100 rounded w-32 mb-1"}),s.jsx("div",{className:"h-3 bg-slate-100 rounded w-16"})]}),s.jsx("div",{className:"h-5 bg-slate-200 rounded w-14"})]})},H))}):E?s.jsxs("div",{className:"space-y-6",children:[s.jsxs("section",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("h2",{className:"text-sm font-semibold text-slate-700 uppercase tracking-wider",children:"Global"}),s.jsx("span",{className:"text-xs text-slate-400",children:"Applies to all projects"})]}),E.filter(({slot:N})=>N.scope==="user").map(({slot:N,scanFile:H,memoryFile:q})=>{const Y=q?x?.files.find(L=>L.path===q.path):void 0;return s.jsx(ss,{slot:N,scanFile:H,memoryFile:q,importData:Y},N.label)})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("h2",{className:"text-sm font-semibold text-slate-700 uppercase tracking-wider",children:"Project"}),s.jsx("span",{className:"text-xs text-slate-400",children:"Specific to this project"}),g&&s.jsxs("span",{className:"text-xs font-mono text-slate-400 truncate",title:g.projectDir,children:["— ",g.projectDir]})]}),s.jsx("div",{className:"space-y-3",children:E.filter(({slot:N})=>N.scope==="project").map(({slot:N,scanFile:H,memoryFile:q})=>{const Y=q?x?.files.find(L=>L.path===q.path):void 0;return s.jsx(ss,{slot:N,scanFile:H,memoryFile:q,importData:Y},N.label)})})]})]}):s.jsx("div",{className:"space-y-6",children:m.length===0?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:"No CLAUDE.md files found"}):s.jsxs(s.Fragment,{children:[m.some(N=>N.scope==="user")&&s.jsxs("section",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("h2",{className:"text-sm font-semibold text-slate-700 uppercase tracking-wider",children:"Global"}),s.jsx("span",{className:"text-xs text-slate-400",children:"Applies to all projects"})]}),s.jsx("div",{className:"space-y-3",children:m.filter(N=>N.scope==="user").map(N=>{const H=x?.files.find(L=>L.path===N.path),Y=Vc.find(L=>L.matchPath(N.path))??{label:Bn(N.path),scope:N.scope,description:"",guidance:"",matchPath:()=>!1};return s.jsx(ss,{slot:Y,scanFile:{scope:N.scope,type:"claude-md",expectedPath:N.path,exists:!0,sizeBytes:N.sizeBytes,content:N.content},memoryFile:N,importData:H},N.path)})})]}),m.some(N=>N.scope!=="user")&&s.jsxs("section",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("h2",{className:"text-sm font-semibold text-slate-700 uppercase tracking-wider",children:"Project"}),s.jsx("span",{className:"text-xs text-slate-400",children:"Specific to this project"})]}),s.jsx("div",{className:"space-y-3",children:m.filter(N=>N.scope!=="user").map(N=>{const H=x?.files.find(L=>L.path===N.path),Y=Vc.find(L=>L.matchPath(N.path))??{label:Bn(N.path),scope:N.scope,description:"",guidance:"",matchPath:()=>!1};return s.jsx(ss,{slot:Y,scanFile:{scope:N.scope,type:"claude-md",expectedPath:N.path,exists:!0,sizeBytes:N.sizeBytes,content:N.content},memoryFile:N,importData:H},N.path)})})]})]})})]})}const Rg={managed:"bg-slate-200 text-slate-700",user:"bg-blue-100 text-blue-700",project:"bg-green-100 text-green-700",local:"bg-purple-100 text-purple-700"};function Mg({scope:i}){const r=Rg[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}const Og={command:"bg-amber-100 text-amber-700",http:"bg-cyan-100 text-cyan-700"};function Dg({type:i}){const r=Og[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}function _g({duplicates:i}){return!i||i.length===0?null:s.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-4 mb-4",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx("span",{className:"text-amber-600 text-lg leading-none mt-0.5",children:"⚠"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-amber-800 text-sm",children:"Duplicate servers detected"}),s.jsx("ul",{className:"mt-1 space-y-1",children:i.map(r=>s.jsxs("li",{className:"text-xs text-amber-700",children:[s.jsx("span",{className:"font-mono font-medium",children:r.name})," defined in ",r.locations.map(f=>`${f.scope}: ${f.sourcePath}`).join(", ")]},r.name))})]})]})})}function wg(i){const f=i.replace(/\\/g,"/").match(/\/plugins\/marketplaces\/[^/]+\/external_plugins\/([^/]+)\//);return f?f[1]:null}function Ug({name:i}){return s.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs font-medium bg-violet-100 text-violet-700",title:`From plugin: ${i}`,children:"plugin"})}function Hg({server:i}){const[r,f]=C.useState(!1),o=wg(i.sourcePath),m=i.command||i.url||i.args&&i.args.length>0||i.env&&Object.keys(i.env).length>0||i.headers&&Object.keys(i.headers).length>0;return s.jsxs("div",{className:"border-b border-slate-100 last:border-b-0",children:[s.jsxs("button",{type:"button",onClick:()=>f(!r),className:"w-full text-left px-4 py-3 hover:bg-slate-50 transition-colors flex items-center gap-4",children:[s.jsx("span",{className:"text-slate-400 text-xs w-4 shrink-0",children:m?r?"▼":"▶":"·"}),s.jsx("span",{className:"font-mono text-sm text-slate-900 font-medium min-w-[160px]",children:i.name}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Dg,{type:i.type}),o&&s.jsx(Ug,{name:o}),s.jsx(Mg,{scope:i.scope})]})]}),r&&s.jsx("div",{className:"px-4 pb-4 pl-12 bg-slate-50/50",children:s.jsxs("dl",{className:"space-y-2 text-sm",children:[i.command&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-24 shrink-0",children:"Command:"}),s.jsx("dd",{className:"font-mono text-slate-800",children:i.command})]}),i.args&&i.args.length>0&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-24 shrink-0",children:"Args:"}),s.jsx("dd",{className:"font-mono text-xs text-slate-800 break-all",children:i.args.join(" ")})]}),i.url&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-24 shrink-0",children:"URL:"}),s.jsx("dd",{className:"font-mono text-slate-800 break-all",children:i.url})]}),i.env&&Object.keys(i.env).length>0&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-24 shrink-0",children:"Env:"}),s.jsx("dd",{children:s.jsx("ul",{className:"space-y-0.5",children:Object.entries(i.env).map(([h,x])=>s.jsxs("li",{className:"text-xs font-mono",children:[s.jsx("span",{className:"text-slate-800",children:h}),s.jsx("span",{className:"text-slate-400",children:"="}),s.jsx("span",{className:"text-slate-400 italic",children:x})]},h))})})]}),i.headers&&Object.keys(i.headers).length>0&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-24 shrink-0",children:"Headers:"}),s.jsx("dd",{children:s.jsx("ul",{className:"space-y-0.5",children:Object.entries(i.headers).map(([h,x])=>s.jsxs("li",{className:"text-xs font-mono",children:[s.jsx("span",{className:"text-slate-800",children:h}),s.jsx("span",{className:"text-slate-400",children:": "}),s.jsx("span",{className:"text-slate-400 italic",children:x})]},h))})})]}),i.sourcePath&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-24 shrink-0",children:"Source:"}),s.jsx("dd",{className:"font-mono text-xs text-slate-400",children:i.sourcePath})]})]})})]})}function Bg(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState(null);C.useEffect(()=>{let g=!1;async function p(){try{const E=await V0();if(g)return;h(E),r(!1)}catch(E){if(g)return;o(E instanceof Error?E.message:"Failed to load MCP data"),r(!1)}}return p(),()=>{g=!0}},[]);const x=m?.servers??[],S=m?.duplicates??[];return f?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"MCP Servers"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading MCP data"}),s.jsx("p",{className:"text-sm mt-1",children:f})]})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"MCP Servers"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-4",children:["Model Context Protocol servers",!i&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["(",x.length," server",x.length!==1?"s":"",")"]})]}),s.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:s.jsxs("p",{children:[s.jsx("strong",{children:"MCP servers"})," provide tools that Claude can use (file access, web search, databases, etc.). They can come from ",s.jsx("strong",{children:"plugins"}),", or be configured directly in ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:".mcp.json"})," and ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"settings.json"}),". Plugin-sourced servers are tagged with a ",s.jsx("span",{className:"inline-block px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-violet-100 text-violet-700",children:"plugin"})," badge."]})}),i?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:Array.from({length:4}).map((g,p)=>s.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 animate-pulse flex gap-4",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-4"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-32"}),s.jsx("div",{className:"h-4 bg-slate-100 rounded w-16"}),s.jsx("div",{className:"flex-1"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-14"})]},p))}):s.jsxs(s.Fragment,{children:[s.jsx(_g,{duplicates:S}),x.length===0?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:"No MCP servers configured"}):s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:[s.jsxs("div",{className:"px-4 py-2 flex gap-4 text-xs font-medium text-slate-500 uppercase tracking-wider bg-slate-50 rounded-t-lg",children:[s.jsx("span",{className:"w-4"}),s.jsx("span",{className:"min-w-[160px]",children:"Name"}),s.jsx("span",{children:"Tags"})]}),x.map(g=>s.jsx(Hg,{server:g},`${g.name}-${g.scope}-${g.sourcePath}`))]})]})]})}const Lg={managed:"bg-slate-200 text-slate-700",user:"bg-blue-100 text-blue-700",project:"bg-green-100 text-green-700",local:"bg-purple-100 text-purple-700"};function qg({scope:i}){const r=Lg[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}function Yg({enabled:i,installed:r}){return r?i?s.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-100 text-emerald-700",children:"active"}):s.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs font-medium bg-slate-200 text-slate-600",children:"disabled"}):s.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-700",children:"not installed"})}function Gg({plugin:i}){const[r,f]=C.useState(!1);return s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden",children:[s.jsxs("button",{type:"button",onClick:()=>f(!r),className:"w-full text-left p-4 hover:bg-slate-50 transition-colors",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-slate-900 font-mono",children:i.name}),s.jsx(Yg,{enabled:i.enabled,installed:i.installed})]}),s.jsx("p",{className:"text-xs text-slate-400 mt-1",children:i.marketplace})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsx(qg,{scope:i.scope}),s.jsx("span",{className:"text-slate-400 text-xs",children:r?"▼":"▶"})]})]}),i.installed&&i.mcpServers.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:i.mcpServers.map(o=>s.jsxs("span",{className:"inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded-full bg-cyan-50 text-cyan-700 font-mono",children:[s.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 0 1-3-3m3 3a3 3 0 1 0 0 6h13.5a3 3 0 1 0 0-6m-16.5-3a3 3 0 0 1 3-3h13.5a3 3 0 0 1 3 3"})}),o]},o))})]}),r&&s.jsx("div",{className:"border-t border-slate-100 p-4 bg-slate-50/50",children:s.jsxs("dl",{className:"space-y-2 text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-28 shrink-0",children:"Plugin key:"}),s.jsx("dd",{className:"font-mono text-xs text-slate-700",children:i.key})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-28 shrink-0",children:"Marketplace:"}),s.jsx("dd",{className:"text-slate-700",children:i.marketplace})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-28 shrink-0",children:"Defined in:"}),s.jsx("dd",{className:"font-mono text-xs text-slate-400 break-all",children:i.sourcePath})]}),i.installed&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-28 shrink-0",children:"Plugin dir:"}),s.jsx("dd",{className:"font-mono text-xs text-slate-400 break-all",children:i.pluginDir})]}),i.mcpServers.length>0&&s.jsxs("div",{className:"flex gap-2",children:[s.jsx("dt",{className:"text-slate-500 font-medium w-28 shrink-0",children:"MCP servers:"}),s.jsxs("dd",{className:"text-slate-700",children:[i.mcpServers.length," server",i.mcpServers.length!==1?"s":""," — ",s.jsx(Hn,{to:"/mcp",className:"text-blue-600 hover:text-blue-800 text-xs",children:"view on MCP page"})]})]})]})})]})}function Xg(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState(null);if(C.useEffect(()=>{let S=!1;async function g(){try{const p=await dg();if(S)return;h(p),r(!1)}catch(p){if(S)return;o(p instanceof Error?p.message:"Failed to load plugins"),r(!1)}}return g(),()=>{S=!0}},[]),f)return s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Plugins"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading plugins"}),s.jsx("p",{className:"text-sm mt-1",children:f})]})]});const x=m?.plugins??[];return s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Plugins"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-4",children:["Installed plugin packages",!i&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["(",m?.enabledCount??0," active, ",m?.totalCount??0," total)"]})]}),s.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:s.jsxs("p",{children:[s.jsx("strong",{children:"Plugins"})," are packages installed via ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"/plugin"}),". Each plugin can bundle ",s.jsx("strong",{children:"MCP servers"})," (tools), ",s.jsx("strong",{children:"skills"})," (slash commands), and ",s.jsx("strong",{children:"settings"}),". Items from plugins also appear on their respective pages."]})}),i?s.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((S,g)=>s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-4 animate-pulse",children:s.jsxs("div",{className:"flex justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-32 mb-2"}),s.jsx("div",{className:"h-3 bg-slate-100 rounded w-48"})]}),s.jsx("div",{className:"h-5 bg-slate-200 rounded w-14"})]})},g))}):x.length===0?s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:["No plugins found. Install plugins with ",s.jsx("code",{className:"font-mono text-xs",children:"/plugin install"})]}):s.jsx("div",{className:"space-y-3",children:x.map(S=>s.jsx(Gg,{plugin:S},S.key))})]})}const Zg={managed:"bg-slate-200 text-slate-700",user:"bg-blue-100 text-blue-700",project:"bg-green-100 text-green-700",local:"bg-purple-100 text-purple-700"};function Qg({scope:i}){const r=Zg[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}function Vg(i){const r=typeof window<"u"?i.replace(/^(\/[^/]+\/[^/]+|[A-Z]:\\Users\\[^\\]+).*$/,"$1"):"";return r&&i.startsWith(r)?"~"+i.slice(r.length):i}function kg({configured:i}){return s.jsx("span",{className:`inline-block w-2.5 h-2.5 rounded-full shrink-0 ${i?"bg-emerald-500":"bg-slate-300"}`,title:i?"Configured":"Unconfigured"})}function Kg({eventName:i,entries:r}){const[f,o]=C.useState(!1),m=r.length>0;return s.jsxs("div",{className:"border-b border-slate-100 last:border-b-0",children:[s.jsxs("button",{type:"button",onClick:()=>m&&o(!f),className:`w-full text-left px-4 py-3 transition-colors flex items-center gap-4 ${m?"hover:bg-slate-50 cursor-pointer":"cursor-default"}`,children:[s.jsx("span",{className:"text-slate-400 text-xs w-4 shrink-0",children:m?f?"▼":"▶":""}),s.jsx(kg,{configured:m}),s.jsx("span",{className:`font-mono text-sm font-medium ${m?"text-slate-900":"text-slate-400"}`,children:i}),s.jsx("span",{className:"flex-1"}),m&&s.jsxs("span",{className:"text-xs text-slate-400",children:[r.length," source",r.length!==1?"s":""]})]}),f&&s.jsx("div",{className:"px-4 pb-4 pl-12 bg-slate-50/50",children:s.jsx("div",{className:"space-y-3",children:r.map((h,x)=>s.jsxs("div",{className:"bg-white border border-slate-200 rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(Qg,{scope:h.scope}),s.jsx("span",{className:"text-xs text-slate-400 truncate",title:h.sourcePath,children:Vg(h.sourcePath)})]}),h.matchers.length>0?s.jsx("div",{className:"space-y-1.5",children:h.matchers.map((S,g)=>s.jsxs("div",{className:"space-y-1",children:[S.matcher&&s.jsx("span",{className:"font-mono text-xs bg-slate-100 text-slate-600 px-1.5 py-0.5 rounded inline-block",children:S.matcher}),S.hooks.map((p,E)=>s.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[s.jsx("span",{className:"text-slate-400 text-xs mt-0.5 shrink-0",children:"→"}),s.jsx("span",{className:"font-mono text-xs text-slate-800 break-all",children:p.command})]},E))]},g))}):s.jsx("p",{className:"text-xs text-slate-400 italic",children:"No matchers defined"})]},`${h.scope}-${h.sourcePath}-${x}`))})})]})}function Jg(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState(null);C.useEffect(()=>{let E=!1;async function b(){try{const N=await k0();if(E)return;h(N),r(!1)}catch(N){if(E)return;o(N instanceof Error?N.message:"Failed to load hooks data"),r(!1)}}return b(),()=>{E=!0}},[]);const x=m?.availableEvents??[],S=m?.events??[],g={};for(const E of x)g[E]=S.filter(b=>b.event===E);const p=m?.configuredEvents?.length??0;return f?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Hooks"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading hooks data"}),s.jsx("p",{className:"text-sm mt-1",children:f}),s.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-2 text-sm text-red-600 underline hover:text-red-800",children:"Retry"})]})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Hooks"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-4",children:["Hook event catalog",!i&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["(",p," of ",x.length," events configured)"]})]}),s.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:s.jsxs("p",{children:[s.jsx("strong",{children:"Hooks"})," run shell commands in response to Claude events (e.g. before/after tool calls, notifications). They are configured in ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"settings.json"})," under the ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"hooks"})," key. Green dots indicate events that have at least one hook configured."]})}),i?s.jsx("div",{className:"space-y-6",children:s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:Array.from({length:6}).map((E,b)=>s.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 animate-pulse flex gap-4",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-4"}),s.jsx("div",{className:"h-3 bg-slate-200 rounded-full w-3"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-32"})]},b))})}):s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:[s.jsxs("div",{className:"px-4 py-2 flex gap-4 text-xs font-medium text-slate-500 uppercase tracking-wider bg-slate-50 rounded-t-lg",children:[s.jsx("span",{className:"w-4"}),s.jsx("span",{className:"w-3"}),s.jsx("span",{className:"flex-1",children:"Event"}),s.jsx("span",{className:"w-20 text-right",children:"Sources"})]}),x.length===0?s.jsx("div",{className:"p-8 text-center text-slate-400",children:"No hook events available"}):x.map(E=>s.jsx(Kg,{eventName:E,entries:g[E]??[]},E))]})]})}const $g={managed:"bg-slate-200 text-slate-700",user:"bg-blue-100 text-blue-700",project:"bg-green-100 text-green-700",local:"bg-purple-100 text-purple-700"};function J0({scope:i}){const r=$g[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}function $0({command:i,showPrefix:r}){const f=i.name.indexOf(":"),o=r||f<0?i.name:i.name.slice(f+1);return s.jsxs("div",{className:"px-4 py-2.5 flex items-center gap-4 border-b border-slate-100 last:border-b-0",children:[s.jsx("span",{className:"font-mono text-sm text-slate-900 font-medium min-w-[140px]",children:o}),s.jsx("span",{className:"flex-1"}),s.jsx(J0,{scope:i.scope})]})}function Wg(i){const r=new Map;for(const f of i){const o=f.name.indexOf(":"),m=o>0?f.name.slice(0,o):f.name,h=r.get(m);h?h.push(f):r.set(m,[f])}return Array.from(r.entries()).sort(([f],[o])=>f.localeCompare(o)).map(([f,o])=>({prefix:f,items:o}))}function Fg({group:i}){const[r,f]=C.useState(!1);return s.jsxs("div",{className:"border-b border-slate-100 last:border-b-0",children:[s.jsxs("button",{type:"button",onClick:()=>f(!r),className:"w-full text-left px-4 py-3 hover:bg-slate-50 transition-colors flex items-center gap-3",children:[s.jsx("span",{className:"text-slate-400 text-xs w-4 shrink-0",children:r?"▼":"▶"}),s.jsx("span",{className:"font-mono text-sm text-slate-900 font-semibold",children:i.prefix}),s.jsxs("span",{className:"text-xs text-slate-400",children:[i.items.length," skill",i.items.length!==1?"s":""]}),s.jsx("span",{className:"flex-1"}),s.jsx(J0,{scope:i.items[0].scope})]}),r&&s.jsx("div",{className:"bg-slate-50/50 border-t border-slate-100",children:i.items.map(o=>s.jsx($0,{command:o},`${o.name}-${o.scope}-${o.path}`))})]})}function Pg(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState(null);C.useEffect(()=>{let E=!1;async function b(){try{const N=await mg();if(E)return;h(N),r(!1)}catch(N){if(E)return;o(N instanceof Error?N.message:"Failed to load commands data"),r(!1)}}return b(),()=>{E=!0}},[]);const x=m?.commands??[],S=x.filter(E=>!E.name.includes(":")),g=x.filter(E=>E.name.includes(":")),p=Wg(g);return f?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Commands & Skills"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading commands data"}),s.jsx("p",{className:"text-sm mt-1",children:f})]})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Commands & Skills"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-4",children:["Custom slash commands and skills",!i&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["(",S.length," command",S.length!==1?"s":"",","," ",g.length," skill",g.length!==1?"s":"",")"]})]}),s.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:s.jsxs("p",{children:[s.jsx("strong",{children:"Custom commands"})," are prompt files in ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:".claude/commands/"})," that you invoke with ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"/command-name"}),"."," ",s.jsx("strong",{children:"Skills"})," (shown as ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"name:skill"}),") come from ",s.jsx("strong",{children:"plugins"})," and provide reusable capabilities. Both are slash-command shortcuts for common workflows."]})}),i?s.jsx("div",{className:"space-y-6",children:s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:Array.from({length:4}).map((E,b)=>s.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 animate-pulse flex gap-4",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-32"}),s.jsx("div",{className:"h-4 bg-slate-100 rounded w-16"}),s.jsx("div",{className:"flex-1"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-14"})]},b))})}):s.jsxs("div",{className:"space-y-8",children:[s.jsxs("section",{children:[s.jsxs("h2",{className:"text-xl font-semibold text-slate-800 mb-3",children:["Custom Commands",S.length>0&&s.jsxs("span",{className:"ml-2 text-sm font-normal text-slate-400",children:["(",S.length,")"]})]}),S.length===0?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:"No custom commands configured"}):s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:[s.jsxs("div",{className:"px-4 py-2 flex gap-4 text-xs font-medium text-slate-500 uppercase tracking-wider bg-slate-50 rounded-t-lg",children:[s.jsx("span",{className:"flex-1",children:"Name"}),s.jsx("span",{className:"shrink-0",children:"Scope"})]}),S.map(E=>s.jsx($0,{command:E,showPrefix:!0},`${E.name}-${E.scope}-${E.path}`))]})]}),s.jsxs("section",{children:[s.jsxs("h2",{className:"text-xl font-semibold text-slate-800 mb-3",children:["Skills",g.length>0&&s.jsxs("span",{className:"ml-2 text-sm font-normal text-slate-400",children:["(",p.length," group",p.length!==1?"s":"",", ",g.length," total)"]})]}),g.length===0?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:"No skills configured"}):s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:[s.jsxs("div",{className:"px-4 py-2 flex gap-3 text-xs font-medium text-slate-500 uppercase tracking-wider bg-slate-50 rounded-t-lg",children:[s.jsx("span",{className:"w-4"}),s.jsx("span",{className:"flex-1",children:"Group"}),s.jsx("span",{className:"shrink-0",children:"Scope"})]}),p.map(E=>s.jsx(Fg,{group:E},E.prefix))]})]})]})]})}const Ig={managed:"bg-slate-200 text-slate-700",user:"bg-blue-100 text-blue-700",project:"bg-green-100 text-green-700",local:"bg-purple-100 text-purple-700"};function b0({scope:i}){const r=Ig[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}const e1={allow:"bg-emerald-100 text-emerald-700",deny:"bg-red-100 text-red-700",ask:"bg-amber-100 text-amber-700"};function j0({rule:i}){const r=e1[i]??"bg-slate-100 text-slate-600";return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-xs font-medium ${r}`,children:i})}function t1(i){const r=typeof window<"u"?i.replace(/^(\/[^/]+\/[^/]+|[A-Z]:\\Users\\[^\\]+).*$/,"$1"):"";return r&&i.startsWith(r)?"~"+i.slice(r.length):i}function l1(i){return i.effectiveRule==="deny"?"deny always wins regardless of scope":i.overrides.length<=1?"only rule defined":`higher scope wins (${i.effectiveScope})`}function a1({permission:i,onRemoved:r}){const[f,o]=C.useState(!1),[m,h]=C.useState(null),[x,S]=C.useState(!1),[g,p]=C.useState(null),E=i.overrides.length>1;async function b(N){S(!0),p(null);try{await pg(N.sourcePath,N.rule,N.raw),p({type:"success",msg:"Removed"}),h(null),setTimeout(()=>r(),600)}catch(H){p({type:"error",msg:H instanceof Error?H.message:"Failed to remove"})}finally{S(!1)}}return s.jsxs("div",{className:"border-b border-slate-100 last:border-b-0",children:[s.jsxs("button",{type:"button",onClick:()=>o(!f),className:"w-full text-left px-4 py-3 hover:bg-slate-50 transition-colors flex items-start gap-3 group",children:[s.jsx("span",{className:"text-slate-400 text-xs w-4 shrink-0 mt-1",children:E?f?"▼":"▶":"·"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("span",{className:"font-mono text-sm text-slate-900 font-medium",children:i.tool}),i.pattern?s.jsx("span",{className:"font-mono text-sm text-slate-500 ml-2 break-all",children:i.pattern}):s.jsx("span",{className:"font-mono text-sm text-slate-300 italic ml-2",children:"*"})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0 mt-0.5",children:[s.jsx(j0,{rule:i.effectiveRule}),s.jsx(b0,{scope:i.effectiveScope})]})]}),f&&s.jsxs("div",{className:"px-4 pb-4 pl-12 bg-slate-50/50",children:[s.jsxs("p",{className:"text-xs font-medium text-slate-500 mb-2",children:["Override chain (",i.overrides.length," scope",i.overrides.length!==1?"s":"","):"]}),s.jsx("div",{className:"space-y-1",children:i.overrides.map((N,H)=>{const q=N.scope===i.effectiveScope&&N.rule===i.effectiveRule,Y=N.scope!=="managed",L=m===H;return s.jsxs("div",{className:`flex items-center gap-3 px-3 py-2 rounded text-sm ${q?"bg-white border border-green-200":"bg-slate-100/50 opacity-60"}`,children:[s.jsx("span",{className:"w-4 shrink-0 text-sm",children:q?s.jsx("span",{className:"text-green-600",children:"✓"}):s.jsx("span",{className:"text-slate-400",children:"–"})}),s.jsx(b0,{scope:N.scope}),s.jsx(j0,{rule:N.rule}),s.jsx("span",{className:`font-mono text-xs ${q?"text-slate-700":"text-slate-400 line-through"}`,children:N.raw}),s.jsx("span",{className:"flex-1"}),s.jsx("span",{className:"text-xs text-slate-400 truncate max-w-[250px]",title:N.sourcePath,children:t1(N.sourcePath)}),Y&&(L?s.jsxs("span",{className:"flex items-center gap-1 shrink-0",children:[s.jsx("span",{className:"text-xs text-red-600",children:"Remove?"}),s.jsx("button",{type:"button",disabled:x,onClick:B=>{B.stopPropagation(),b(N)},className:"text-xs text-red-700 font-medium hover:text-red-900 disabled:opacity-50 px-1",children:"Yes"}),s.jsx("button",{type:"button",onClick:B=>{B.stopPropagation(),h(null)},className:"text-xs text-slate-500 hover:text-slate-700 px-1",children:"No"})]}):s.jsx("button",{type:"button",onClick:B=>{B.stopPropagation(),h(H)},className:"text-red-400 hover:text-red-600 shrink-0 p-0.5",title:"Remove permission",children:s.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}))]},`${N.scope}-${N.sourcePath}-${H}`)})}),g&&s.jsx("p",{className:`text-xs mt-2 ${g.type==="success"?"text-green-600":"text-red-600"}`,children:g.msg}),E&&s.jsxs("p",{className:"text-xs text-slate-400 mt-2 italic",children:["Winner: ",l1(i)]})]})]})}function n1(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState(null);async function x(){try{const b=await Qc();h(b),r(!1)}catch(b){o(b instanceof Error?b.message:"Failed to load permissions"),r(!1)}}C.useEffect(()=>{let b=!1;async function N(){try{const H=await Qc();if(b)return;h(H),r(!1)}catch(H){if(b)return;o(H instanceof Error?H.message:"Failed to load permissions"),r(!1)}}return N(),()=>{b=!0}},[]);const S=m?.effective??[],g=S.filter(b=>b.effectiveRule==="allow").length,p=S.filter(b=>b.effectiveRule==="deny").length,E=S.filter(b=>b.effectiveRule==="ask").length;return f?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Permissions"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading permissions"}),s.jsx("p",{className:"text-sm mt-1",children:f}),s.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-2 text-sm text-red-600 underline hover:text-red-800",children:"Retry"})]})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Permissions"}),s.jsxs("p",{className:"text-sm text-slate-500 mb-4",children:["Tool permission rules (deny > ask > allow)",!i&&s.jsxs("span",{className:"ml-1 text-slate-400",children:["(",S.length," rule",S.length!==1?"s":"",")"]})]}),s.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:s.jsxs("p",{children:[s.jsx("strong",{children:"Permissions"})," control which tools Claude can use and how. Rules are defined in ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"settings.json"})," under"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"permissions"}),". When multiple scopes define a rule for the same tool, ",s.jsx("strong",{children:"deny"})," always wins, then ",s.jsx("strong",{children:"ask"})," beats ",s.jsx("strong",{children:"allow"}),", regardless of scope level."]})}),i?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:Array.from({length:5}).map((b,N)=>s.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 animate-pulse flex gap-4",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-4"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-28"}),s.jsx("div",{className:"h-4 bg-slate-100 rounded w-24"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-14"}),s.jsx("div",{className:"flex-1"}),s.jsx("div",{className:"h-4 bg-slate-200 rounded w-16"})]},N))}):S.length===0?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:"No permissions configured"}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200",children:[s.jsxs("div",{className:"px-4 py-2 flex gap-3 text-xs font-medium text-slate-500 uppercase tracking-wider bg-slate-50 rounded-t-lg",children:[s.jsx("span",{className:"w-4"}),s.jsx("span",{className:"flex-1",children:"Tool / Pattern"}),s.jsx("span",{className:"shrink-0",children:"Rule / Scope"})]}),S.map(b=>s.jsx(a1,{permission:b,onRemoved:x},`${b.tool}-${b.pattern??"*"}`))]}),s.jsxs("div",{className:"flex items-center gap-4 mt-3 text-xs text-slate-400",children:[s.jsxs("span",{children:[S.length," permission",S.length!==1?"s":"",":"]}),g>0&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-emerald-500"}),g," allow"]}),p>0&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-red-500"}),p," deny"]}),E>0&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"inline-block w-2 h-2 rounded-full bg-amber-500"}),E," ask"]})]})]})]})}function u1(i){switch(i){case"A":return{text:"text-emerald-600",bg:"bg-emerald-500",ring:"ring-emerald-200"};case"B":return{text:"text-green-600",bg:"bg-green-500",ring:"ring-green-200"};case"C":return{text:"text-yellow-600",bg:"bg-yellow-500",ring:"ring-yellow-200"};case"D":return{text:"text-orange-600",bg:"bg-orange-500",ring:"ring-orange-200"};default:return{text:"text-red-600",bg:"bg-red-500",ring:"ring-red-200"}}}function s1(i){return i>=90?"bg-emerald-500":i>=75?"bg-green-500":i>=60?"bg-yellow-500":i>=40?"bg-orange-500":"bg-red-500"}function i1({score:i,grade:r}){const f=u1(r);return s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("div",{className:`w-32 h-32 rounded-full flex items-center justify-center ring-8 ${f.ring} bg-white shadow-sm`,children:s.jsxs("div",{className:"text-center",children:[s.jsx("span",{className:`text-4xl font-bold ${f.text}`,children:Math.round(i)}),s.jsx("span",{className:"text-sm text-slate-400 block -mt-1",children:"/ 100"})]})}),s.jsxs("span",{className:`mt-3 text-2xl font-bold ${f.text}`,children:["Grade: ",r]})]})}function c1({category:i}){const r=s1(i.score);return s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-semibold text-slate-800",children:i.name}),s.jsxs("span",{className:"text-sm font-mono text-slate-500",children:[Math.round(i.score),"/100"]})]}),s.jsx("div",{className:"w-full h-2 bg-slate-100 rounded-full mb-4 overflow-hidden",children:s.jsx("div",{className:`h-full rounded-full transition-all ${r}`,style:{width:`${Math.max(i.score,2)}%`}})}),s.jsx("ul",{className:"space-y-2",children:i.checks.map(f=>s.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[f.passed?s.jsx("svg",{className:"w-4 h-4 text-emerald-500 mt-0.5 shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})}):s.jsx("svg",{className:"w-4 h-4 text-red-500 mt-0.5 shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"})}),s.jsx("span",{className:f.passed?"text-slate-600":"text-slate-800 font-medium",children:f.label})]},f.id))})]})}function r1(){const[i,r]=C.useState(!0),[f,o]=C.useState(null),[m,h]=C.useState(null);return C.useEffect(()=>{let x=!1;async function S(){try{const g=await K0();if(x)return;h(g),r(!1)}catch(g){if(x)return;o(g instanceof Error?g.message:"Failed to load health data"),r(!1)}}return S(),()=>{x=!0}},[]),f?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-6",children:"Health"}),s.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700",children:[s.jsx("p",{className:"font-medium",children:"Error loading health data"}),s.jsx("p",{className:"text-sm mt-1",children:f})]})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Health"}),s.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Configuration health score and recommendations"}),!i&&m&&s.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:[s.jsxs("p",{className:"mb-2",children:[s.jsx("strong",{children:"Health score"})," evaluates your Claude Code setup against recommended best practices. Each category checks for specific configuration patterns:"]}),s.jsxs("ul",{className:"list-disc pl-5 space-y-1 mb-2",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"CLAUDE.md"})," — do you have project instructions to guide Claude?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"MCP servers"})," — are tools configured for Claude to use?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Permissions"})," — are tool permissions explicitly defined?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Settings"})," — are key behaviors configured?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Hooks"})," — are lifecycle hooks set up for automation?"]})]}),s.jsx("p",{className:"text-blue-700 text-xs",children:"A perfect score isn’t required — the checks highlight areas where adding configuration could improve your Claude Code experience. Focus on the recommendations below."})]}),i?s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"w-32 h-32 rounded-full bg-slate-200 animate-pulse"})}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:5}).map((x,S)=>s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-5 animate-pulse",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-24 mb-3"}),s.jsx("div",{className:"h-2 bg-slate-100 rounded-full w-full mb-4"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-3 bg-slate-100 rounded w-36"}),s.jsx("div",{className:"h-3 bg-slate-100 rounded w-28"})]})]},S))})]}):m?s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"flex flex-col items-center text-center",children:[s.jsx(i1,{score:m.overallScore,grade:m.grade}),s.jsx("p",{className:"mt-4 text-sm text-slate-600 max-w-md",children:m.summary})]}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-semibold text-slate-800 mb-4",children:"Category Breakdown"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:m.categories.map(x=>s.jsx(c1,{category:x},x.name))})]}),m.recommendations.length>0&&s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-semibold text-slate-800 mb-4",children:"Recommendations"}),s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 divide-y divide-slate-100",children:m.recommendations.map((x,S)=>s.jsxs("div",{className:"flex items-start gap-3 px-5 py-3",children:[s.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-blue-100 text-blue-700 text-xs font-bold flex items-center justify-center mt-0.5",children:S+1}),s.jsx("p",{className:"text-sm text-slate-700",children:x})]},S))})]})]}):null]})}function o1(i){const r={};for(const f of i){const o=f.type;r[o]||(r[o]=[]),r[o].push(f)}return r}function f1({value:i}){if(i==null)return s.jsx("span",{className:"text-slate-300 italic",children:"--"});const r=typeof i=="string"?i:JSON.stringify(i);return s.jsx("span",{className:"text-slate-700 font-mono text-xs truncate block",title:r,children:r.length>30?r.slice(0,30)+"...":r})}function d1(i,r){const f=r.map(o=>JSON.stringify(i.values[o]??null));return new Set(f).size>1}function Gc({active:i,label:r}){return s.jsxs("span",{className:`inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded-full ${i?"bg-emerald-100 text-emerald-700":"bg-slate-100 text-slate-400"}`,children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${i?"bg-emerald-500":"bg-slate-300"}`}),r]})}function m1({project:i,selected:r,onToggle:f}){return s.jsxs("button",{type:"button",onClick:f,className:`text-left bg-white rounded-lg shadow-sm border-2 p-4 transition-all hover:shadow-md ${r?"border-blue-500 ring-2 ring-blue-100":"border-slate-200 hover:border-slate-300"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-semibold text-slate-800 truncate",title:i.path,children:i.name}),r&&s.jsx("svg",{className:"w-5 h-5 text-blue-500 shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})})]}),s.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[s.jsx(Gc,{active:i.hasClaudeMd,label:"CLAUDE.md"}),s.jsx(Gc,{active:i.hasClaudeDir,label:".claude/"}),s.jsx(Gc,{active:i.hasMcpJson,label:".mcp.json"})]}),s.jsx("p",{className:"text-xs text-slate-400 mt-2 truncate",title:i.path,children:i.path})]})}function h1({comparison:i,onBack:r}){const f=o1(i.entries),o={setting:"Settings",mcp:"MCP Servers",hook:"Hooks",permission:"Permissions",memory:"Memory"};return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsxs("button",{type:"button",onClick:r,className:"text-sm text-blue-600 hover:text-blue-800 flex items-center gap-1",children:[s.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})}),"Back to Discovery"]}),s.jsxs("span",{className:"text-sm text-slate-500",children:["Comparing ",i.projects.length," projects ·"," ",i.summary.totalDifferences," difference",i.summary.totalDifferences!==1?"s":""]})]}),s.jsxs("div",{className:"overflow-x-auto",children:[Object.entries(f).map(([m,h])=>s.jsxs("div",{className:"mb-6",children:[s.jsx("h3",{className:"text-sm font-semibold text-slate-700 mb-2",children:o[m]??m}),s.jsxs("table",{className:"w-full text-sm border border-slate-200 rounded-lg overflow-hidden",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-slate-50",children:[s.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-slate-500 border-b border-slate-200 sticky left-0 bg-slate-50 z-10 min-w-48",children:"Key"}),i.projects.map(x=>s.jsx("th",{className:"text-left px-3 py-2 text-xs font-medium text-slate-500 border-b border-slate-200 min-w-36",children:x},x))]})}),s.jsx("tbody",{children:h.map(x=>{const S=d1(x,i.projects);return s.jsxs("tr",{className:S?"bg-yellow-50":"bg-white",children:[s.jsxs("td",{className:"px-3 py-2 border-b border-slate-100 font-mono text-xs text-slate-800 sticky left-0 bg-inherit z-10",children:[x.key,S&&s.jsx("span",{className:"ml-1 text-yellow-600 text-[10px] font-sans font-medium",children:"differs"})]}),i.projects.map(g=>s.jsx("td",{className:"px-3 py-2 border-b border-slate-100",children:s.jsx(f1,{value:x.values[g]})},g))]},x.key)})})]})]},m)),i.entries.length===0&&s.jsx("div",{className:"bg-white rounded-lg border border-slate-200 p-8 text-center text-slate-400",children:"No configuration entries found to compare"})]})]})}function x1(){const[i,r]=C.useState(""),[f,o]=C.useState(!1),[m,h]=C.useState(!1),[x,S]=C.useState(null),[g,p]=C.useState(null),[E,b]=C.useState(new Set),[N,H]=C.useState(null);C.useEffect(()=>{async function B(){try{const Z=await fetch("/api/scan");if(Z.ok){const K=await Z.json();if(K.projectDir){const fe=K.projectDir.replace(/\\/g,"/").split("/");fe.pop(),r(fe.join("/")||"/")}}}catch{}}B()},[]);async function q(){if(i.trim()){o(!0),S(null),p(null),b(new Set),H(null);try{const B=await xg(i.trim());p(B)}catch(B){S(B instanceof Error?B.message:"Discovery failed")}finally{o(!1)}}}async function Y(){if(!(E.size<2)){h(!0),S(null);try{const B=await gg(Array.from(E));H(B)}catch(B){S(B instanceof Error?B.message:"Comparison failed")}finally{h(!1)}}}function L(B){b(Z=>{const K=new Set(Z);return K.has(B)?K.delete(B):K.add(B),K})}return N?s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Projects"}),s.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Cross-project configuration comparison"}),s.jsx(h1,{comparison:N,onBack:()=>H(null)})]}):s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-slate-900 mb-1",children:"Projects"}),s.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Discover and compare Claude Code configurations across projects"}),s.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 mb-6 text-sm text-blue-800",children:[s.jsxs("p",{className:"mb-2",children:[s.jsx("strong",{children:"Project discovery"})," scans a parent directory to find all projects with Claude Code configuration. You can then select multiple projects to compare their setups side-by-side."]}),s.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[s.jsxs("li",{children:["Projects are detected by the presence of"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:"CLAUDE.md"}),","," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:".claude/"}),", or"," ",s.jsx("code",{className:"font-mono text-xs bg-blue-100 px-1 rounded",children:".mcp.json"})]}),s.jsxs("li",{children:["Select 2+ projects and click ",s.jsx("strong",{children:"Compare"})," to see differences in settings, MCP servers, hooks, and permissions"]}),s.jsx("li",{children:"Rows highlighted in yellow have values that differ across the selected projects"})]})]}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[s.jsx("input",{type:"text",value:i,onChange:B=>r(B.target.value),onKeyDown:B=>B.key==="Enter"&&q(),placeholder:"Enter parent directory path...",className:"flex-1 px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 font-mono"}),s.jsx("button",{type:"button",onClick:q,disabled:f||!i.trim(),className:"px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors shrink-0",children:f?"Discovering...":"Discover"})]}),x&&s.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 text-red-700 mb-6",children:s.jsx("p",{className:"text-sm",children:x})}),f&&s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6}).map((B,Z)=>s.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-4 animate-pulse",children:[s.jsx("div",{className:"h-4 bg-slate-200 rounded w-32 mb-3"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("div",{className:"h-5 bg-slate-100 rounded w-20"}),s.jsx("div",{className:"h-5 bg-slate-100 rounded w-16"})]}),s.jsx("div",{className:"h-3 bg-slate-100 rounded w-48 mt-3"})]},Z))}),g&&!f&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("p",{className:"text-sm text-slate-600",children:["Found ",g.totalProjects," project",g.totalProjects!==1?"s":""," in"," ",s.jsx("span",{className:"font-mono text-xs",children:g.parentDir}),g.configuredProjects>0&&s.jsxs("span",{className:"text-slate-400",children:[" ","(",g.configuredProjects," with Claude Code config)"]})]}),s.jsx("button",{type:"button",onClick:Y,disabled:E.size<2||m,className:"px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:m?"Comparing...":`Compare Selected (${E.size})`})]}),g.projects.length===0?s.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8 text-center text-slate-400",children:"No Claude Code projects found in this directory"}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:g.projects.map(B=>s.jsx(m1,{project:B,selected:E.has(B.path),onToggle:()=>L(B.path)},B.path))})]})]})}function p1(){return s.jsx(Ip,{children:s.jsx(Rp,{children:s.jsxs(Ct,{element:s.jsx(og,{}),children:[s.jsx(Ct,{index:!0,element:s.jsx(vg,{})}),s.jsx(Ct,{path:"/settings",element:s.jsx(jg,{})}),s.jsx(Ct,{path:"/memory",element:s.jsx(zg,{})}),s.jsx(Ct,{path:"/mcp",element:s.jsx(Bg,{})}),s.jsx(Ct,{path:"/plugins",element:s.jsx(Xg,{})}),s.jsx(Ct,{path:"/hooks",element:s.jsx(Jg,{})}),s.jsx(Ct,{path:"/skills",element:s.jsx(Pg,{})}),s.jsx(Ct,{path:"/permissions",element:s.jsx(n1,{})}),s.jsx(Ct,{path:"/health",element:s.jsx(r1,{})}),s.jsx(Ct,{path:"/projects",element:s.jsx(x1,{})})]})})})}const g1=document.getElementById("root");zx.createRoot(g1).render(s.jsx(C.StrictMode,{children:s.jsx(p1,{})}));
|