@jonit-dev/night-watch-cli 1.7.7 → 1.7.9
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/dist/board/providers/github-projects.d.ts +9 -1
- package/dist/board/providers/github-projects.d.ts.map +1 -1
- package/dist/board/providers/github-projects.js +199 -60
- package/dist/board/providers/github-projects.js.map +1 -1
- package/dist/commands/board.d.ts.map +1 -1
- package/dist/commands/board.js +47 -7
- package/dist/commands/board.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +57 -27
- package/dist/commands/run.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +148 -0
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/night-watch-cron.sh +9 -0
- package/scripts/night-watch-helpers.sh +5 -0
- package/web/dist/assets/index-C64sy08d.js +360 -0
- package/web/dist/assets/index-DzoZeo_Y.css +1 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-B5WeBHSu.js +0 -355
- package/web/dist/assets/index-BW6hS5jr.css +0 -1
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).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 r(m){if(m.ep)return;m.ep=!0;const h=f(m);fetch(m.href,h)}})();function nr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Gc={exports:{}},Xn={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var S0;function Ix(){if(S0)return Xn;S0=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(r,m,h){var v=null;if(h!==void 0&&(v=""+h),m.key!==void 0&&(v=""+m.key),"key"in m){h={};for(var y in m)y!=="key"&&(h[y]=m[y])}else h=m;return m=h.ref,{$$typeof:s,type:r,key:v,ref:m!==void 0?m:null,props:h}}return Xn.Fragment=o,Xn.jsx=f,Xn.jsxs=f,Xn}var j0;function ev(){return j0||(j0=1,Gc.exports=Ix()),Gc.exports}var u=ev(),Xc={exports:{}},ie={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var N0;function tv(){if(N0)return ie;N0=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),B=Symbol.iterator;function U(S){return S===null||typeof S!="object"?null:(S=B&&S[B]||S["@@iterator"],typeof S=="function"?S:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,L={};function K(S,H,k){this.props=S,this.context=H,this.refs=L,this.updater=k||Q}K.prototype.isReactComponent={},K.prototype.setState=function(S,H){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,H,"setState")},K.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function q(){}q.prototype=K.prototype;function G(S,H,k){this.props=S,this.context=H,this.refs=L,this.updater=k||Q}var X=G.prototype=new q;X.constructor=G,Y(X,K.prototype),X.isPureReactComponent=!0;var W=Array.isArray;function I(){}var te={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function J(S,H,k){var F=k.ref;return{$$typeof:s,type:S,key:H,ref:F!==void 0?F:null,props:k}}function Z(S,H){return J(S.type,H,S.props)}function ne(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function Ne(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(k){return H[k]})}var Je=/\/+/g;function Ye(S,H){return typeof S=="object"&&S!==null&&S.key!=null?Ne(""+S.key):H.toString(36)}function lt(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(I,I):(S.status="pending",S.then(function(H){S.status==="pending"&&(S.status="fulfilled",S.value=H)},function(H){S.status==="pending"&&(S.status="rejected",S.reason=H)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function A(S,H,k,F,se){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var ye=!1;if(S===null)ye=!0;else switch(oe){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(S.$$typeof){case s:case o:ye=!0;break;case w:return ye=S._init,A(ye(S._payload),H,k,F,se)}}if(ye)return se=se(S),ye=F===""?"."+Ye(S,0):F,W(se)?(k="",ye!=null&&(k=ye.replace(Je,"$&/")+"/"),A(se,H,k,"",function(Ja){return Ja})):se!=null&&(ne(se)&&(se=Z(se,k+(se.key==null||S&&S.key===se.key?"":(""+se.key).replace(Je,"$&/")+"/")+ye)),H.push(se)),1;ye=0;var nt=F===""?".":F+":";if(W(S))for(var Be=0;Be<S.length;Be++)F=S[Be],oe=nt+Ye(F,Be),ye+=A(F,H,k,oe,se);else if(Be=U(S),typeof Be=="function")for(S=Be.call(S),Be=0;!(F=S.next()).done;)F=F.value,oe=nt+Ye(F,Be++),ye+=A(F,H,k,oe,se);else if(oe==="object"){if(typeof S.then=="function")return A(lt(S),H,k,F,se);throw H=String(S),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ye}function V(S,H,k){if(S==null)return S;var F=[],se=0;return A(S,F,"","",function(oe){return H.call(k,oe,se++)}),F}function ae(S){if(S._status===-1){var H=S._result;H=H(),H.then(function(k){(S._status===0||S._status===-1)&&(S._status=1,S._result=k)},function(k){(S._status===0||S._status===-1)&&(S._status=2,S._result=k)}),S._status===-1&&(S._status=0,S._result=H)}if(S._status===1)return S._result.default;throw S._result}var Ee=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},_e={map:V,forEach:function(S,H,k){V(S,function(){H.apply(this,arguments)},k)},count:function(S){var H=0;return V(S,function(){H++}),H},toArray:function(S){return V(S,function(H){return H})||[]},only:function(S){if(!ne(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ie.Activity=N,ie.Children=_e,ie.Component=K,ie.Fragment=f,ie.Profiler=m,ie.PureComponent=G,ie.StrictMode=r,ie.Suspense=g,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,ie.__COMPILER_RUNTIME={__proto__:null,c:function(S){return te.H.useMemoCache(S)}},ie.cache=function(S){return function(){return S.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(S,H,k){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var F=Y({},S.props),se=S.key;if(H!=null)for(oe in H.key!==void 0&&(se=""+H.key),H)!C.call(H,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&H.ref===void 0||(F[oe]=H[oe]);var oe=arguments.length-2;if(oe===1)F.children=k;else if(1<oe){for(var ye=Array(oe),nt=0;nt<oe;nt++)ye[nt]=arguments[nt+2];F.children=ye}return J(S.type,se,F)},ie.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ie.createElement=function(S,H,k){var F,se={},oe=null;if(H!=null)for(F in H.key!==void 0&&(oe=""+H.key),H)C.call(H,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(se[F]=H[F]);var ye=arguments.length-2;if(ye===1)se.children=k;else if(1<ye){for(var nt=Array(ye),Be=0;Be<ye;Be++)nt[Be]=arguments[Be+2];se.children=nt}if(S&&S.defaultProps)for(F in ye=S.defaultProps,ye)se[F]===void 0&&(se[F]=ye[F]);return J(S,oe,se)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(S){return{$$typeof:y,render:S}},ie.isValidElement=ne,ie.lazy=function(S){return{$$typeof:w,_payload:{_status:-1,_result:S},_init:ae}},ie.memo=function(S,H){return{$$typeof:x,type:S,compare:H===void 0?null:H}},ie.startTransition=function(S){var H=te.T,k={};te.T=k;try{var F=S(),se=te.S;se!==null&&se(k,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(I,Ee)}catch(oe){Ee(oe)}finally{H!==null&&k.types!==null&&(H.types=k.types),te.T=H}},ie.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},ie.use=function(S){return te.H.use(S)},ie.useActionState=function(S,H,k){return te.H.useActionState(S,H,k)},ie.useCallback=function(S,H){return te.H.useCallback(S,H)},ie.useContext=function(S){return te.H.useContext(S)},ie.useDebugValue=function(){},ie.useDeferredValue=function(S,H){return te.H.useDeferredValue(S,H)},ie.useEffect=function(S,H){return te.H.useEffect(S,H)},ie.useEffectEvent=function(S){return te.H.useEffectEvent(S)},ie.useId=function(){return te.H.useId()},ie.useImperativeHandle=function(S,H,k){return te.H.useImperativeHandle(S,H,k)},ie.useInsertionEffect=function(S,H){return te.H.useInsertionEffect(S,H)},ie.useLayoutEffect=function(S,H){return te.H.useLayoutEffect(S,H)},ie.useMemo=function(S,H){return te.H.useMemo(S,H)},ie.useOptimistic=function(S,H){return te.H.useOptimistic(S,H)},ie.useReducer=function(S,H,k){return te.H.useReducer(S,H,k)},ie.useRef=function(S){return te.H.useRef(S)},ie.useState=function(S){return te.H.useState(S)},ie.useSyncExternalStore=function(S,H,k){return te.H.useSyncExternalStore(S,H,k)},ie.useTransition=function(){return te.H.useTransition()},ie.version="19.2.4",ie}var E0;function ir(){return E0||(E0=1,Xc.exports=tv()),Xc.exports}var E=ir();const Lt=nr(E);var Qc={exports:{}},Qn={},Zc={exports:{}},Vc={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var w0;function lv(){return w0||(w0=1,(function(s){function o(A,V){var ae=A.length;A.push(V);e:for(;0<ae;){var Ee=ae-1>>>1,_e=A[Ee];if(0<m(_e,V))A[Ee]=V,A[ae]=_e,ae=Ee;else break e}}function f(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var V=A[0],ae=A.pop();if(ae!==V){A[0]=ae;e:for(var Ee=0,_e=A.length,S=_e>>>1;Ee<S;){var H=2*(Ee+1)-1,k=A[H],F=H+1,se=A[F];if(0>m(k,ae))F<_e&&0>m(se,k)?(A[Ee]=se,A[F]=ae,Ee=F):(A[Ee]=k,A[H]=ae,Ee=H);else if(F<_e&&0>m(se,ae))A[Ee]=se,A[F]=ae,Ee=F;else break e}}return V}function m(A,V){var ae=A.sortIndex-V.sortIndex;return ae!==0?ae:A.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var v=Date,y=v.now();s.unstable_now=function(){return v.now()-y}}var g=[],x=[],w=1,N=null,B=3,U=!1,Q=!1,Y=!1,L=!1,K=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(A){for(var V=f(x);V!==null;){if(V.callback===null)r(x);else if(V.startTime<=A)r(x),V.sortIndex=V.expirationTime,o(g,V);else break;V=f(x)}}function W(A){if(Y=!1,X(A),!Q)if(f(g)!==null)Q=!0,I||(I=!0,Ne());else{var V=f(x);V!==null&<(W,V.startTime-A)}}var I=!1,te=-1,C=5,J=-1;function Z(){return L?!0:!(s.unstable_now()-J<C)}function ne(){if(L=!1,I){var A=s.unstable_now();J=A;var V=!0;try{e:{Q=!1,Y&&(Y=!1,q(te),te=-1),U=!0;var ae=B;try{t:{for(X(A),N=f(g);N!==null&&!(N.expirationTime>A&&Z());){var Ee=N.callback;if(typeof Ee=="function"){N.callback=null,B=N.priorityLevel;var _e=Ee(N.expirationTime<=A);if(A=s.unstable_now(),typeof _e=="function"){N.callback=_e,X(A),V=!0;break t}N===f(g)&&r(g),X(A)}else r(g);N=f(g)}if(N!==null)V=!0;else{var S=f(x);S!==null&<(W,S.startTime-A),V=!1}}break e}finally{N=null,B=ae,U=!1}V=void 0}}finally{V?Ne():I=!1}}}var Ne;if(typeof G=="function")Ne=function(){G(ne)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,Ye=Je.port2;Je.port1.onmessage=ne,Ne=function(){Ye.postMessage(null)}}else Ne=function(){K(ne,0)};function lt(A,V){te=K(function(){A(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(A){A.callback=null},s.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<A?Math.floor(1e3/A):5},s.unstable_getCurrentPriorityLevel=function(){return B},s.unstable_next=function(A){switch(B){case 1:case 2:case 3:var V=3;break;default:V=B}var ae=B;B=V;try{return A()}finally{B=ae}},s.unstable_requestPaint=function(){L=!0},s.unstable_runWithPriority=function(A,V){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var ae=B;B=A;try{return V()}finally{B=ae}},s.unstable_scheduleCallback=function(A,V,ae){var Ee=s.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ee+ae:Ee):ae=Ee,A){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ae+_e,A={id:w++,callback:V,priorityLevel:A,startTime:ae,expirationTime:_e,sortIndex:-1},ae>Ee?(A.sortIndex=ae,o(x,A),f(g)===null&&A===f(x)&&(Y?(q(te),te=-1):Y=!0,lt(W,ae-Ee))):(A.sortIndex=_e,o(g,A),Q||U||(Q=!0,I||(I=!0,Ne()))),A},s.unstable_shouldYield=Z,s.unstable_wrapCallback=function(A){var V=B;return function(){var ae=B;B=V;try{return A.apply(this,arguments)}finally{B=ae}}}})(Vc)),Vc}var R0;function av(){return R0||(R0=1,Zc.exports=lv()),Zc.exports}var kc={exports:{}},at={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var T0;function nv(){if(T0)return at;T0=1;var s=ir();function o(g){var x="https://react.dev/errors/"+g;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)x+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+g+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(o(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,x,w){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:N==null?null:""+N,children:g,containerInfo:x,implementation:w}}var v=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,x){if(g==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,at.createPortal=function(g,x){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return h(g,x,null,w)},at.flushSync=function(g){var x=v.T,w=r.p;try{if(v.T=null,r.p=2,g)return g()}finally{v.T=x,r.p=w,r.d.f()}},at.preconnect=function(g,x){typeof g=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(g,x))},at.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},at.preinit=function(g,x){if(typeof g=="string"&&x&&typeof x.as=="string"){var w=x.as,N=y(w,x.crossOrigin),B=typeof x.integrity=="string"?x.integrity:void 0,U=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;w==="style"?r.d.S(g,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:N,integrity:B,fetchPriority:U}):w==="script"&&r.d.X(g,{crossOrigin:N,integrity:B,fetchPriority:U,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},at.preinitModule=function(g,x){if(typeof g=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var w=y(x.as,x.crossOrigin);r.d.M(g,{crossOrigin:w,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(g)},at.preload=function(g,x){if(typeof g=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var w=x.as,N=y(w,x.crossOrigin);r.d.L(g,w,{crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},at.preloadModule=function(g,x){if(typeof g=="string")if(x){var w=y(x.as,x.crossOrigin);r.d.m(g,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:w,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(g)},at.requestFormReset=function(g){r.d.r(g)},at.unstable_batchedUpdates=function(g,x){return g(x)},at.useFormState=function(g,x,w){return v.H.useFormState(g,x,w)},at.useFormStatus=function(){return v.H.useHostTransitionStatus()},at.version="19.2.4",at}var _0;function J0(){if(_0)return kc.exports;_0=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),kc.exports=nv(),kc.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var z0;function iv(){if(z0)return Qn;z0=1;var s=av(),o=ir(),f=J0();function r(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 v(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 y(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(r(188))}function x(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return g(n),e;if(i===a)return g(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=i;break}if(d===a){c=!0,a=n,l=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===l){c=!0,l=i,a=n;break}if(d===a){c=!0,a=i,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,B=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function Ne(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Je=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Je?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case K:return"Profiler";case L:return"StrictMode";case W:return"Suspense";case I:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case G:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var lt=Array.isArray,A=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Ee=[],_e=-1;function S(e){return{current:e}}function H(e){0>_e||(e.current=Ee[_e],Ee[_e]=null,_e--)}function k(e,t){_e++,Ee[_e]=e.current,e.current=t}var F=S(null),se=S(null),oe=S(null),ye=S(null);function nt(e,t){switch(k(oe,t),k(se,e),k(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=Vd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(F),k(F,e)}function Be(){H(F),H(se),H(oe)}function Ja(e){e.memoizedState!==null&&k(ye,e);var t=F.current,l=Vd(t,e.type);t!==l&&(k(se,e),k(F,l))}function Wn(e){se.current===e&&(H(F),H(se)),ye.current===e&&(H(ye),Ln._currentValue=ae)}var Nu,pr;function Gl(e){if(Nu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Nu=t&&t[1]||"",pr=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Nu+e+pr}var Eu=!1;function wu(e,t){if(!e||Eu)return"";Eu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(z){var _=z}Reflect.construct(e,[],O)}else{try{O.call()}catch(z){_=z}e.call(O.prototype)}}else{try{throw Error()}catch(z){_=z}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(z){if(z&&_&&typeof z.stack=="string")return[z.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var p=c.split(`
|
|
44
|
-
`),T=d.split(`
|
|
45
|
-
`);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===T.length)for(a=p.length-1,n=T.length-1;1<=a&&0<=n&&p[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==T[n]){var M=`
|
|
46
|
-
`+p[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=n);break}}}finally{Eu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Gl(l):""}function Cm(e,t){switch(e.tag){case 26:case 27:case 5:return Gl(e.type);case 16:return Gl("Lazy");case 13:return e.child!==t&&t!==null?Gl("Suspense Fallback"):Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 15:return wu(e.type,!1);case 11:return wu(e.type.render,!1);case 1:return wu(e.type,!0);case 31:return Gl("Activity");default:return""}}function yr(e){try{var t="",l=null;do t+=Cm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Ru=Object.prototype.hasOwnProperty,Tu=s.unstable_scheduleCallback,_u=s.unstable_cancelCallback,Mm=s.unstable_shouldYield,Am=s.unstable_requestPaint,mt=s.unstable_now,Dm=s.unstable_getCurrentPriorityLevel,br=s.unstable_ImmediatePriority,Sr=s.unstable_UserBlockingPriority,Fn=s.unstable_NormalPriority,Om=s.unstable_LowPriority,jr=s.unstable_IdlePriority,Um=s.log,Hm=s.unstable_setDisableYieldValue,$a=null,ht=null;function hl(e){if(typeof Um=="function"&&Hm(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode($a,e)}catch{}}var xt=Math.clz32?Math.clz32:qm,Bm=Math.log,Lm=Math.LN2;function qm(e){return e>>>=0,e===0?32:31-(Bm(e)/Lm|0)|0}var Pn=256,In=262144,ei=4194304;function Xl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ti(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Xl(a):(c&=d,c!==0?n=Xl(c):l||(l=d&~e,l!==0&&(n=Xl(l))))):(d=a&~i,d!==0?n=Xl(d):c!==0?n=Xl(c):l||(l=a&~e,l!==0&&(n=Xl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Wa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ym(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 Nr(){var e=ei;return ei<<=1,(ei&62914560)===0&&(ei=4194304),e}function zu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gm(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,p=e.expirationTimes,T=e.hiddenUpdates;for(l=c&~l;0<l;){var M=31-xt(l),O=1<<M;d[M]=0,p[M]=-1;var _=T[M];if(_!==null)for(T[M]=null,M=0;M<_.length;M++){var z=_[M];z!==null&&(z.lane&=-536870913)}l&=~O}a!==0&&Er(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Er(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-xt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function wr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-xt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Rr(e,t){var l=t&-t;return l=(l&42)!==0?1:Cu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Cu(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 Mu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:h0(e.type))}function _r(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var xl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+xl,ut="__reactProps$"+xl,sa="__reactContainer$"+xl,Au="__reactEvents$"+xl,Xm="__reactListeners$"+xl,Qm="__reactHandles$"+xl,zr="__reactResources$"+xl,Pa="__reactMarker$"+xl;function Du(e){delete e[Fe],delete e[ut],delete e[Au],delete e[Xm],delete e[Qm]}function ca(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[sa]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Pd(e);e!==null;){if(l=e[Fe])return l;e=Pd(e)}return t}e=l,l=e.parentNode}return null}function ra(e){if(e=e[Fe]||e[sa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function oa(e){var t=e[zr];return t||(t=e[zr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[Pa]=!0}var Cr=new Set,Mr={};function Ql(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(Mr[e]=t,e=0;e<t.length;e++)Cr.add(t[e])}var Zm=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]*$"),Ar={},Dr={};function Vm(e){return Ru.call(Dr,e)?!0:Ru.call(Ar,e)?!1:Zm.test(e)?Dr[e]=!0:(Ar[e]=!0,!1)}function li(e,t,l){if(Vm(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 ai(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 Kt(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 Et(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Or(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function km(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,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ou(e){if(!e._valueTracker){var t=Or(e)?"checked":"value";e._valueTracker=km(e,t,""+e[t])}}function Ur(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Or(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ni(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 Km=/[\n"\\]/g;function wt(e){return e.replace(Km,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uu(e,t,l,a,n,i,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=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Hu(e,c,Et(t)):l!=null?Hu(e,c,Et(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Et(d):e.removeAttribute("name")}function Hr(e,t,l,a,n,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ou(e);return}l=l!=null?""+Et(l):"",t=t!=null?""+Et(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),Ou(e)}function Hu(e,t,l){t==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function da(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=""+Et(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 Br(e,t,l){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Et(l):""}function Lr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(lt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Et(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ou(e)}function ma(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Jm=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 qr(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||Jm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Yr(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(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&&qr(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&qr(e,i,t[i])}function Bu(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 $m=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"]]),Wm=/^[\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 ii(e){return Wm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var Lu=null;function qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,xa=null;function Gr(e){var t=ra(e);if(t&&(e=t.stateNode)){var l=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uu(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="'+wt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ut]||null;if(!n)throw Error(r(90));Uu(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&&Ur(a)}break e;case"textarea":Br(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var Yu=!1;function Xr(e,t,l){if(Yu)return e(t,l);Yu=!0;try{var a=e(t);return a}finally{if(Yu=!1,(ha!==null||xa!==null)&&(ki(),ha&&(t=ha,e=xa,xa=ha=null,Gr(t),e)))for(t=0;t<e.length;t++)Gr(e[t])}}function en(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ut]||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(r(231,t,typeof l));return l}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=!1;if($t)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{Gu=!1}var vl=null,Xu=null,ui=null;function Qr(){if(ui)return ui;var e,t=Xu,l=t.length,a,n="value"in vl?vl.value:vl.textContent,i=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[i-a];a++);return ui=n.slice(e,1<a?1-a:void 0)}function si(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 ci(){return!0}function Zr(){return!1}function st(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ci:Zr,this.isPropagationStopped=Zr,this}return N(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=ci)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ri=st(Zl),ln=N({},Zl,{view:0,detail:0}),Fm=st(ln),Qu,Zu,an,oi=N({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,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!==an&&(an&&e.type==="mousemove"?(Qu=e.screenX-an.screenX,Zu=e.screenY-an.screenY):Zu=Qu=0,an=e),Qu)},movementY:function(e){return"movementY"in e?e.movementY:Zu}}),Vr=st(oi),Pm=N({},oi,{dataTransfer:0}),Im=st(Pm),eh=N({},ln,{relatedTarget:0}),Vu=st(eh),th=N({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),lh=st(th),ah=N({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nh=st(ah),ih=N({},Zl,{data:0}),kr=st(ih),uh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sh={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"},ch={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ch[e])?!!t[e]:!1}function ku(){return rh}var oh=N({},ln,{key:function(e){if(e.key){var t=uh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fh=st(oh),dh=N({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kr=st(dh),mh=N({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),hh=st(mh),xh=N({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),vh=st(xh),gh=N({},oi,{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}),ph=st(gh),yh=N({},Zl,{newState:0,oldState:0}),bh=st(yh),Sh=[9,13,27,32],Ku=$t&&"CompositionEvent"in window,nn=null;$t&&"documentMode"in document&&(nn=document.documentMode);var jh=$t&&"TextEvent"in window&&!nn,Jr=$t&&(!Ku||nn&&8<nn&&11>=nn),$r=" ",Wr=!1;function Fr(e,t){switch(e){case"keyup":return Sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function Nh(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==32?null:(Wr=!0,$r);case"textInput":return e=t.data,e===$r&&Wr?null:e;default:return null}}function Eh(e,t){if(va)return e==="compositionend"||!Ku&&Fr(e,t)?(e=Qr(),ui=Xu=vl=null,va=!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 Jr&&t.locale!=="ko"?null:t.data;default:return null}}var wh={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 Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wh[e.type]:t==="textarea"}function eo(e,t,l,a){ha?xa?xa.push(a):xa=[a]:ha=a,t=Ii(t,"onChange"),0<t.length&&(l=new ri("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var un=null,sn=null;function Rh(e){Ld(e,0)}function fi(e){var t=Ia(e);if(Ur(t))return e}function to(e,t){if(e==="change")return t}var lo=!1;if($t){var Ju;if($t){var $u="oninput"in document;if(!$u){var ao=document.createElement("div");ao.setAttribute("oninput","return;"),$u=typeof ao.oninput=="function"}Ju=$u}else Ju=!1;lo=Ju&&(!document.documentMode||9<document.documentMode)}function no(){un&&(un.detachEvent("onpropertychange",io),sn=un=null)}function io(e){if(e.propertyName==="value"&&fi(sn)){var t=[];eo(t,sn,e,qu(e)),Xr(Rh,t)}}function Th(e,t,l){e==="focusin"?(no(),un=t,sn=l,un.attachEvent("onpropertychange",io)):e==="focusout"&&no()}function _h(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fi(sn)}function zh(e,t){if(e==="click")return fi(t)}function Ch(e,t){if(e==="input"||e==="change")return fi(t)}function Mh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Mh;function cn(e,t){if(vt(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(!Ru.call(t,n)||!vt(e[n],t[n]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function so(e,t){var l=uo(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=uo(l)}}function co(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?co(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ro(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ni(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=ni(e.document)}return t}function Wu(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 Ah=$t&&"documentMode"in document&&11>=document.documentMode,ga=null,Fu=null,rn=null,Pu=!1;function oo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Pu||ga==null||ga!==ni(a)||(a=ga,"selectionStart"in a&&Wu(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}),rn&&cn(rn,a)||(rn=a,a=Ii(Fu,"onSelect"),0<a.length&&(t=new ri("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ga)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var pa={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Iu={},fo={};$t&&(fo=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function kl(e){if(Iu[e])return Iu[e];if(!pa[e])return e;var t=pa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in fo)return Iu[e]=t[l];return e}var mo=kl("animationend"),ho=kl("animationiteration"),xo=kl("animationstart"),Dh=kl("transitionrun"),Oh=kl("transitionstart"),Uh=kl("transitioncancel"),vo=kl("transitionend"),go=new Map,es="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(" ");es.push("scrollEnd");function Ut(e,t){go.set(e,t),Ql(t,[e])}var di=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)},Rt=[],ya=0,ts=0;function mi(){for(var e=ya,t=ts=ya=0;t<e;){var l=Rt[t];Rt[t++]=null;var a=Rt[t];Rt[t++]=null;var n=Rt[t];Rt[t++]=null;var i=Rt[t];if(Rt[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}i!==0&&po(l,n,i)}}function hi(e,t,l,a){Rt[ya++]=e,Rt[ya++]=t,Rt[ya++]=l,Rt[ya++]=a,ts|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ls(e,t,l,a){return hi(e,t,l,a),xi(e)}function Kl(e,t){return hi(e,null,null,t),xi(e)}function po(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-xt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function xi(e){if(50<Mn)throw Mn=0,fc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ba={};function Hh(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 gt(e,t,l,a){return new Hh(e,t,l,a)}function as(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var l=e.alternate;return l===null?(l=gt(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 yo(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 vi(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")as(e)&&(c=1);else if(typeof e=="string")c=Gx(e,l,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=gt(31,l,t,n),e.elementType=J,e.lanes=i,e;case Y:return Jl(l.children,n,i,t);case L:c=8,n|=24;break;case K:return e=gt(12,l,t,n|2),e.elementType=K,e.lanes=i,e;case W:return e=gt(13,l,t,n),e.elementType=W,e.lanes=i,e;case I:return e=gt(19,l,t,n),e.elementType=I,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:c=10;break e;case q:c=9;break e;case X:c=11;break e;case te:c=14;break e;case C:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=gt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Jl(e,t,l,a){return e=gt(7,e,a,t),e.lanes=l,e}function ns(e,t,l){return e=gt(6,e,null,t),e.lanes=l,e}function bo(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function is(e,t,l){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var So=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var l=So.get(e);return l!==void 0?l:(t={value:e,source:t,stack:yr(t)},So.set(e,t),t)}return{value:e,source:t,stack:yr(t)}}var Sa=[],ja=0,gi=null,on=0,_t=[],zt=0,gl=null,Gt=1,Xt="";function Ft(e,t){Sa[ja++]=on,Sa[ja++]=gi,gi=e,on=t}function jo(e,t,l){_t[zt++]=Gt,_t[zt++]=Xt,_t[zt++]=gl,gl=e;var a=Gt;e=Xt;var n=32-xt(a)-1;a&=~(1<<n),l+=1;var i=32-xt(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Gt=1<<32-xt(t)+n|l<<n|a,Xt=i+e}else Gt=1<<i|l<<n|a,Xt=e}function us(e){e.return!==null&&(Ft(e,1),jo(e,1,0))}function ss(e){for(;e===gi;)gi=Sa[--ja],Sa[ja]=null,on=Sa[--ja],Sa[ja]=null;for(;e===gl;)gl=_t[--zt],_t[zt]=null,Xt=_t[--zt],_t[zt]=null,Gt=_t[--zt],_t[zt]=null}function No(e,t){_t[zt++]=Gt,_t[zt++]=Xt,_t[zt++]=gl,Gt=t.id,Xt=t.overflow,gl=e}var Pe=null,Ce=null,xe=!1,pl=null,Ct=!1,cs=Error(r(519));function yl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fn(Tt(t,e)),cs}function Eo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[ut]=a,l){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(l=0;l<Dn.length;l++)de(Dn[l],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),Hr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),Lr(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||Xd(t.textContent,l)?(a.popover!=null&&(de("beforetoggle",t),de("toggle",t)),a.onScroll!=null&&de("scroll",t),a.onScrollEnd!=null&&de("scrollend",t),a.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||yl(e,!0)}function wo(e){for(Pe=e.return;Pe;)switch(Pe.tag){case 5:case 31:case 13:Ct=!1;return;case 27:case 3:Ct=!0;return;default:Pe=Pe.return}}function Na(e){if(e!==Pe)return!1;if(!xe)return wo(e),xe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Rc(e.type,e.memoizedProps)),l=!l),l&&Ce&&yl(e),wo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ce=Fd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ce=Fd(e)}else t===27?(t=Ce,Dl(e.type)?(e=Mc,Mc=null,Ce=e):Ce=t):Ce=Pe?At(e.stateNode.nextSibling):null;return!0}function $l(){Ce=Pe=null,xe=!1}function rs(){var e=pl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),pl=null),e}function fn(e){pl===null?pl=[e]:pl.push(e)}var os=S(null),Wl=null,Pt=null;function bl(e,t,l){k(os,t._currentValue),t._currentValue=l}function It(e){e._currentValue=os.current,H(os)}function fs(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 ds(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var p=0;p<t.length;p++)if(d.context===t[p]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),fs(i.return,l,e),a||(c=null);break e}i=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),fs(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 Ea(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;vt(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===ye.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ln):e=[Ln])}n=n.return}e!==null&&ds(t,e,l,a),t.flags|=262144}function pi(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fl(e){Wl=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Ro(Wl,e)}function yi(e,t){return Wl===null&&Fl(e),Ro(e,t)}function Ro(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Pt===null){if(e===null)throw Error(r(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return l}var Bh=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()})}},Lh=s.unstable_scheduleCallback,qh=s.unstable_NormalPriority,Ge={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ms(){return{controller:new Bh,data:new Map,refCount:0}}function dn(e){e.refCount--,e.refCount===0&&Lh(qh,function(){e.controller.abort()})}var mn=null,hs=0,wa=0,Ra=null;function Yh(e,t){if(mn===null){var l=mn=[];hs=0,wa=gc(),Ra={status:"pending",value:void 0,then:function(a){l.push(a)}}}return hs++,t.then(To,To),t}function To(){if(--hs===0&&mn!==null){Ra!==null&&(Ra.status="fulfilled");var e=mn;mn=null,wa=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gh(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 _o=A.S;A.S=function(e,t){dd=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Yh(e,t),_o!==null&&_o(e,t)};var Pl=S(null);function xs(){var e=Pl.current;return e!==null?e:ze.pooledCache}function bi(e,t){t===null?k(Pl,Pl.current):k(Pl,t.pool)}function zo(){var e=xs();return e===null?null:{parent:Ge._currentValue,pool:e}}var Ta=Error(r(460)),vs=Error(r(474)),Si=Error(r(542)),ji={then:function(){}};function Co(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Jt,Jt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Do(e),e;default:if(typeof t.status=="string")t.then(Jt,Jt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,Do(e),e}throw ea=t,Ta}}function Il(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ea=l,Ta):l}}var ea=null;function Ao(){if(ea===null)throw Error(r(459));var e=ea;return ea=null,e}function Do(e){if(e===Ta||e===Si)throw Error(r(483))}var _a=null,hn=0;function Ni(e){var t=hn;return hn+=1,_a===null&&(_a=[]),Mo(_a,e,t)}function xn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ei(e,t){throw t.$$typeof===B?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Oo(e){function t(j,b){if(e){var R=j.deletions;R===null?(j.deletions=[b],j.flags|=16):R.push(b)}}function l(j,b){if(!e)return null;for(;b!==null;)t(j,b),b=b.sibling;return null}function a(j){for(var b=new Map;j!==null;)j.key!==null?b.set(j.key,j):b.set(j.index,j),j=j.sibling;return b}function n(j,b){return j=Wt(j,b),j.index=0,j.sibling=null,j}function i(j,b,R){return j.index=R,e?(R=j.alternate,R!==null?(R=R.index,R<b?(j.flags|=67108866,b):R):(j.flags|=67108866,b)):(j.flags|=1048576,b)}function c(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function d(j,b,R,D){return b===null||b.tag!==6?(b=ns(R,j.mode,D),b.return=j,b):(b=n(b,R),b.return=j,b)}function p(j,b,R,D){var ee=R.type;return ee===Y?M(j,b,R.props.children,D,R.key):b!==null&&(b.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===C&&Il(ee)===b.type)?(b=n(b,R.props),xn(b,R),b.return=j,b):(b=vi(R.type,R.key,R.props,null,j.mode,D),xn(b,R),b.return=j,b)}function T(j,b,R,D){return b===null||b.tag!==4||b.stateNode.containerInfo!==R.containerInfo||b.stateNode.implementation!==R.implementation?(b=is(R,j.mode,D),b.return=j,b):(b=n(b,R.children||[]),b.return=j,b)}function M(j,b,R,D,ee){return b===null||b.tag!==7?(b=Jl(R,j.mode,D,ee),b.return=j,b):(b=n(b,R),b.return=j,b)}function O(j,b,R){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=ns(""+b,j.mode,R),b.return=j,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case U:return R=vi(b.type,b.key,b.props,null,j.mode,R),xn(R,b),R.return=j,R;case Q:return b=is(b,j.mode,R),b.return=j,b;case C:return b=Il(b),O(j,b,R)}if(lt(b)||Ne(b))return b=Jl(b,j.mode,R,null),b.return=j,b;if(typeof b.then=="function")return O(j,Ni(b),R);if(b.$$typeof===G)return O(j,yi(j,b),R);Ei(j,b)}return null}function _(j,b,R,D){var ee=b!==null?b.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ee!==null?null:d(j,b,""+R,D);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case U:return R.key===ee?p(j,b,R,D):null;case Q:return R.key===ee?T(j,b,R,D):null;case C:return R=Il(R),_(j,b,R,D)}if(lt(R)||Ne(R))return ee!==null?null:M(j,b,R,D,null);if(typeof R.then=="function")return _(j,b,Ni(R),D);if(R.$$typeof===G)return _(j,b,yi(j,R),D);Ei(j,R)}return null}function z(j,b,R,D,ee){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return j=j.get(R)||null,d(b,j,""+D,ee);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case U:return j=j.get(D.key===null?R:D.key)||null,p(b,j,D,ee);case Q:return j=j.get(D.key===null?R:D.key)||null,T(b,j,D,ee);case C:return D=Il(D),z(j,b,R,D,ee)}if(lt(D)||Ne(D))return j=j.get(R)||null,M(b,j,D,ee,null);if(typeof D.then=="function")return z(j,b,R,Ni(D),ee);if(D.$$typeof===G)return z(j,b,R,yi(b,D),ee);Ei(b,D)}return null}function $(j,b,R,D){for(var ee=null,ve=null,P=b,re=b=0,he=null;P!==null&&re<R.length;re++){P.index>re?(he=P,P=null):he=P.sibling;var ge=_(j,P,R[re],D);if(ge===null){P===null&&(P=he);break}e&&P&&ge.alternate===null&&t(j,P),b=i(ge,b,re),ve===null?ee=ge:ve.sibling=ge,ve=ge,P=he}if(re===R.length)return l(j,P),xe&&Ft(j,re),ee;if(P===null){for(;re<R.length;re++)P=O(j,R[re],D),P!==null&&(b=i(P,b,re),ve===null?ee=P:ve.sibling=P,ve=P);return xe&&Ft(j,re),ee}for(P=a(P);re<R.length;re++)he=z(P,j,re,R[re],D),he!==null&&(e&&he.alternate!==null&&P.delete(he.key===null?re:he.key),b=i(he,b,re),ve===null?ee=he:ve.sibling=he,ve=he);return e&&P.forEach(function(Ll){return t(j,Ll)}),xe&&Ft(j,re),ee}function le(j,b,R,D){if(R==null)throw Error(r(151));for(var ee=null,ve=null,P=b,re=b=0,he=null,ge=R.next();P!==null&&!ge.done;re++,ge=R.next()){P.index>re?(he=P,P=null):he=P.sibling;var Ll=_(j,P,ge.value,D);if(Ll===null){P===null&&(P=he);break}e&&P&&Ll.alternate===null&&t(j,P),b=i(Ll,b,re),ve===null?ee=Ll:ve.sibling=Ll,ve=Ll,P=he}if(ge.done)return l(j,P),xe&&Ft(j,re),ee;if(P===null){for(;!ge.done;re++,ge=R.next())ge=O(j,ge.value,D),ge!==null&&(b=i(ge,b,re),ve===null?ee=ge:ve.sibling=ge,ve=ge);return xe&&Ft(j,re),ee}for(P=a(P);!ge.done;re++,ge=R.next())ge=z(P,j,re,ge.value,D),ge!==null&&(e&&ge.alternate!==null&&P.delete(ge.key===null?re:ge.key),b=i(ge,b,re),ve===null?ee=ge:ve.sibling=ge,ve=ge);return e&&P.forEach(function(Px){return t(j,Px)}),xe&&Ft(j,re),ee}function Te(j,b,R,D){if(typeof R=="object"&&R!==null&&R.type===Y&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case U:e:{for(var ee=R.key;b!==null;){if(b.key===ee){if(ee=R.type,ee===Y){if(b.tag===7){l(j,b.sibling),D=n(b,R.props.children),D.return=j,j=D;break e}}else if(b.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===C&&Il(ee)===b.type){l(j,b.sibling),D=n(b,R.props),xn(D,R),D.return=j,j=D;break e}l(j,b);break}else t(j,b);b=b.sibling}R.type===Y?(D=Jl(R.props.children,j.mode,D,R.key),D.return=j,j=D):(D=vi(R.type,R.key,R.props,null,j.mode,D),xn(D,R),D.return=j,j=D)}return c(j);case Q:e:{for(ee=R.key;b!==null;){if(b.key===ee)if(b.tag===4&&b.stateNode.containerInfo===R.containerInfo&&b.stateNode.implementation===R.implementation){l(j,b.sibling),D=n(b,R.children||[]),D.return=j,j=D;break e}else{l(j,b);break}else t(j,b);b=b.sibling}D=is(R,j.mode,D),D.return=j,j=D}return c(j);case C:return R=Il(R),Te(j,b,R,D)}if(lt(R))return $(j,b,R,D);if(Ne(R)){if(ee=Ne(R),typeof ee!="function")throw Error(r(150));return R=ee.call(R),le(j,b,R,D)}if(typeof R.then=="function")return Te(j,b,Ni(R),D);if(R.$$typeof===G)return Te(j,b,yi(j,R),D);Ei(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,b!==null&&b.tag===6?(l(j,b.sibling),D=n(b,R),D.return=j,j=D):(l(j,b),D=ns(R,j.mode,D),D.return=j,j=D),c(j)):l(j,b)}return function(j,b,R,D){try{hn=0;var ee=Te(j,b,R,D);return _a=null,ee}catch(P){if(P===Ta||P===Si)throw P;var ve=gt(29,P,null,j.mode);return ve.lanes=D,ve.return=j,ve}finally{}}}var ta=Oo(!0),Uo=Oo(!1),Sl=!1;function gs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ps(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 jl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(pe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=xi(e),po(e,null,l),t}return hi(e,a,t,l),xi(e)}function vn(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,wr(e,l)}}function ys(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var bs=!1;function gn(){if(bs){var e=Ra;if(e!==null)throw e}}function pn(e,t,l,a){bs=!1;var n=e.updateQueue;Sl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,T=p.next;p.next=null,c===null?i=T:c.next=T,c=p;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==c&&(d===null?M.firstBaseUpdate=T:d.next=T,M.lastBaseUpdate=p))}if(i!==null){var O=n.baseState;c=0,M=T=p=null,d=i;do{var _=d.lane&-536870913,z=_!==d.lane;if(z?(me&_)===_:(a&_)===_){_!==0&&_===wa&&(bs=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var $=e,le=d;_=t;var Te=l;switch(le.tag){case 1:if($=le.payload,typeof $=="function"){O=$.call(Te,O,_);break e}O=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=le.payload,_=typeof $=="function"?$.call(Te,O,_):$,_==null)break e;O=N({},O,_);break e;case 2:Sl=!0}}_=d.callback,_!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[_]:z.push(_))}else z={lane:_,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(T=M=z,p=O):M=M.next=z,c|=_;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;z=d,d=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);M===null&&(p=O),n.baseState=p,n.firstBaseUpdate=T,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),_l|=c,e.lanes=c,e.memoizedState=O}}function Ho(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Bo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ho(l[e],t)}var za=S(null),wi=S(0);function Lo(e,t){e=cl,k(wi,e),k(za,t),cl=e|t.baseLanes}function Ss(){k(wi,cl),k(za,za.current)}function js(){cl=wi.current,H(za),H(wi)}var pt=S(null),Mt=null;function El(e){var t=e.alternate;k(Le,Le.current&1),k(pt,e),Mt===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(Mt=e)}function Ns(e){k(Le,Le.current),k(pt,e),Mt===null&&(Mt=e)}function qo(e){e.tag===22?(k(Le,Le.current),k(pt,e),Mt===null&&(Mt=e)):wl()}function wl(){k(Le,Le.current),k(pt,pt.current)}function yt(e){H(pt),Mt===e&&(Mt=null),H(Le)}var Le=S(0);function Ri(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||zc(l)||Cc(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 el=0,ce=null,we=null,Xe=null,Ti=!1,Ca=!1,la=!1,_i=0,yn=0,Ma=null,Xh=0;function Oe(){throw Error(r(321))}function Es(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!vt(e[l],t[l]))return!1;return!0}function ws(e,t,l,a,n,i){return el=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Nf:Ys,la=!1,i=l(a,n),la=!1,Ca&&(i=Go(t,l,a,n)),Yo(e),i}function Yo(e){A.H=jn;var t=we!==null&&we.next!==null;if(el=0,Xe=we=ce=null,Ti=!1,yn=0,Ma=null,t)throw Error(r(300));e===null||Qe||(e=e.dependencies,e!==null&&pi(e)&&(Qe=!0))}function Go(e,t,l,a){ce=e;var n=0;do{if(Ca&&(Ma=null),yn=0,Ca=!1,25<=n)throw Error(r(301));if(n+=1,Xe=we=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}A.H=Ef,i=t(l,a)}while(Ca);return i}function Qh(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?bn(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ce.flags|=1024),t}function Rs(){var e=_i!==0;return _i=0,e}function Ts(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function _s(e){if(Ti){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ti=!1}el=0,Xe=we=ce=null,Ca=!1,yn=_i=0,Ma=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?ce.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function qe(){if(we===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Xe===null?ce.memoizedState:Xe.next;if(t!==null)Xe=t,we=e;else{if(e===null)throw ce.alternate===null?Error(r(467)):Error(r(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Xe===null?ce.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bn(e){var t=yn;return yn+=1,Ma===null&&(Ma=[]),e=Mo(Ma,e,t),t=ce,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Nf:Ys),e}function Ci(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bn(e);if(e.$$typeof===G)return Ie(e)}throw Error(r(438,String(e)))}function zs(e){var t=null,l=ce.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ce.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=zi(),ce.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]=Z;return t.index++,l}function tl(e,t){return typeof t=="function"?t(e):t}function Mi(e){var t=qe();return Cs(t,we,e)}function Cs(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=c=null,p=null,T=t,M=!1;do{var O=T.lane&-536870913;if(O!==T.lane?(me&O)===O:(el&O)===O){var _=T.revertLane;if(_===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),O===wa&&(M=!0);else if((el&_)===_){T=T.next,_===wa&&(M=!0);continue}else O={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},p===null?(d=p=O,c=i):p=p.next=O,ce.lanes|=_,_l|=_;O=T.action,la&&l(i,O),i=T.hasEagerState?T.eagerState:l(i,O)}else _={lane:O,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},p===null?(d=p=_,c=i):p=p.next=_,ce.lanes|=O,_l|=O;T=T.next}while(T!==null&&T!==t);if(p===null?c=i:p.next=d,!vt(i,e.memoizedState)&&(Qe=!0,M&&(l=Ra,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=p,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ms(e){var t=qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);vt(i,t.memoizedState)||(Qe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Xo(e,t,l){var a=ce,n=qe(),i=xe;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!vt((we||n).memoizedState,l);if(c&&(n.memoizedState=l,Qe=!0),n=n.queue,Os(Vo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,Aa(9,{destroy:void 0},Zo.bind(null,a,n,l,t),null),ze===null)throw Error(r(349));i||(el&127)!==0||Qo(a,t,l)}return l}function Qo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ce.updateQueue,t===null?(t=zi(),ce.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Zo(e,t,l,a){t.value=l,t.getSnapshot=a,ko(t)&&Ko(e)}function Vo(e,t,l){return l(function(){ko(t)&&Ko(e)})}function ko(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!vt(e,l)}catch{return!0}}function Ko(e){var t=Kl(e,2);t!==null&&dt(t,e,2)}function As(e){var t=it();if(typeof e=="function"){var l=e;if(e=l(),la){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function Jo(e,t,l,a){return e.baseState=l,Cs(e,we,typeof a=="function"?a:tl)}function Zh(e,t,l,a,n){if(Oi(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};A.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,$o(t,i)):(i.next=l.next,t.pending=l.next=i)}}function $o(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=A.T,c={};A.T=c;try{var d=l(n,a),p=A.S;p!==null&&p(c,d),Wo(e,t,d)}catch(T){Ds(e,t,T)}finally{i!==null&&c.types!==null&&(i.types=c.types),A.T=i}}else try{i=l(n,a),Wo(e,t,i)}catch(T){Ds(e,t,T)}}function Wo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Fo(e,t,a)},function(a){return Ds(e,t,a)}):Fo(e,t,l)}function Fo(e,t,l){t.status="fulfilled",t.value=l,Po(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,$o(e,l)))}function Ds(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Po(t),t=t.next;while(t!==a)}e.action=null}function Po(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Io(e,t){return t}function ef(e,t){if(xe){var l=ze.formState;if(l!==null){e:{var a=ce;if(xe){if(Ce){t:{for(var n=Ce,i=Ct;n.nodeType!==8;){if(!i){n=null;break t}if(n=At(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ce=At(n.nextSibling),a=n.data==="F!";break e}}yl(a)}a=!1}a&&(t=l[0])}}return l=it(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:t},l.queue=a,l=bf.bind(null,ce,a),a.dispatch=l,a=As(!1),i=qs.bind(null,ce,!1,a.queue),a=it(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Zh.bind(null,ce,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function tf(e){var t=qe();return lf(t,we,e)}function lf(e,t,l){if(t=Cs(e,t,Io)[0],e=Mi(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=bn(t)}catch(c){throw c===Ta?Si:c}else a=t;t=qe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ce.flags|=2048,Aa(9,{destroy:void 0},Vh.bind(null,n,l),null)),[a,i,e]}function Vh(e,t){e.action=t}function af(e){var t=qe(),l=we;if(l!==null)return lf(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Aa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=zi(),ce.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 nf(){return qe().memoizedState}function Ai(e,t,l,a){var n=it();ce.flags|=e,n.memoizedState=Aa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Di(e,t,l,a){var n=qe();a=a===void 0?null:a;var i=n.memoizedState.inst;we!==null&&a!==null&&Es(a,we.memoizedState.deps)?n.memoizedState=Aa(t,i,l,a):(ce.flags|=e,n.memoizedState=Aa(1|t,i,l,a))}function uf(e,t){Ai(8390656,8,e,t)}function Os(e,t){Di(2048,8,e,t)}function kh(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=zi(),ce.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function sf(e){var t=qe().memoizedState;return kh({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function cf(e,t){return Di(4,2,e,t)}function rf(e,t){return Di(4,4,e,t)}function of(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 ff(e,t,l){l=l!=null?l.concat([e]):null,Di(4,4,of.bind(null,t,e),l)}function Us(){}function df(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Es(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function mf(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Es(t,a[1]))return a[0];if(a=e(),la){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function Hs(e,t,l){return l===void 0||(el&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=hd(),ce.lanes|=e,_l|=e,l)}function hf(e,t,l,a){return vt(l,t)?l:za.current!==null?(e=Hs(e,l,a),vt(e,t)||(Qe=!0),e):(el&42)===0||(el&1073741824)!==0&&(me&261930)===0?(Qe=!0,e.memoizedState=l):(e=hd(),ce.lanes|=e,_l|=e,t)}function xf(e,t,l,a,n){var i=V.p;V.p=i!==0&&8>i?i:8;var c=A.T,d={};A.T=d,qs(e,!1,t,l);try{var p=n(),T=A.S;if(T!==null&&T(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var M=Gh(p,a);Sn(e,t,M,jt(e))}else Sn(e,t,a,jt(e))}catch(O){Sn(e,t,{then:function(){},status:"rejected",reason:O},jt())}finally{V.p=i,c!==null&&d.types!==null&&(c.types=d.types),A.T=c}}function Kh(){}function Bs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=vf(e).queue;xf(e,n,t,ae,l===null?Kh:function(){return gf(e),l(a)})}function vf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function gf(e){var t=vf(e);t.next===null&&(t=e.alternate.memoizedState),Sn(e,t.next.queue,{},jt())}function Ls(){return Ie(Ln)}function pf(){return qe().memoizedState}function yf(){return qe().memoizedState}function Jh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=jt();e=jl(l);var a=Nl(t,e,l);a!==null&&(dt(a,t,l),vn(a,t,l)),t={cache:ms()},e.payload=t;return}t=t.return}}function $h(e,t,l){var a=jt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Oi(e)?Sf(t,l):(l=ls(e,t,l,a),l!==null&&(dt(l,e,a),jf(l,t,a)))}function bf(e,t,l){var a=jt();Sn(e,t,l,a)}function Sn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Oi(e))Sf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,l);if(n.hasEagerState=!0,n.eagerState=d,vt(d,c))return hi(e,t,n,0),ze===null&&mi(),!1}catch{}finally{}if(l=ls(e,t,n,a),l!==null)return dt(l,e,a),jf(l,t,a),!0}return!1}function qs(e,t,l,a){if(a={lane:2,revertLane:gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Oi(e)){if(t)throw Error(r(479))}else t=ls(e,l,a,2),t!==null&&dt(t,e,2)}function Oi(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Sf(e,t){Ca=Ti=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function jf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,wr(e,l)}}var jn={readContext:Ie,use:Ci,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useLayoutEffect:Oe,useInsertionEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useSyncExternalStore:Oe,useId:Oe,useHostTransitionStatus:Oe,useFormState:Oe,useActionState:Oe,useOptimistic:Oe,useMemoCache:Oe,useCacheRefresh:Oe};jn.useEffectEvent=Oe;var Nf={readContext:Ie,use:Ci,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:uf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,of.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var l=it();t=t===void 0?null:t;var a=e();if(la){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=it();if(l!==void 0){var n=l(t);if(la){hl(!0);try{l(t)}finally{hl(!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=$h.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=As(e);var t=e.queue,l=bf.bind(null,ce,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Us,useDeferredValue:function(e,t){var l=it();return Hs(l,e,t)},useTransition:function(){var e=As(!1);return e=xf.bind(null,ce,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ce,n=it();if(xe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),ze===null)throw Error(r(349));(me&127)!==0||Qo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,uf(Vo.bind(null,a,i,e),[e]),a.flags|=2048,Aa(9,{destroy:void 0},Zo.bind(null,a,i,l,t),null),l},useId:function(){var e=it(),t=ze.identifierPrefix;if(xe){var l=Xt,a=Gt;l=(a&~(1<<32-xt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=_i++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Xh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ls,useFormState:ef,useActionState:ef,useOptimistic:function(e){var t=it();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=qs.bind(null,ce,!0,l),l.dispatch=t,[e,t]},useMemoCache:zs,useCacheRefresh:function(){return it().memoizedState=Jh.bind(null,ce)},useEffectEvent:function(e){var t=it(),l={impl:e};return t.memoizedState=l,function(){if((pe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Ys={readContext:Ie,use:Ci,useCallback:df,useContext:Ie,useEffect:Os,useImperativeHandle:ff,useInsertionEffect:cf,useLayoutEffect:rf,useMemo:mf,useReducer:Mi,useRef:nf,useState:function(){return Mi(tl)},useDebugValue:Us,useDeferredValue:function(e,t){var l=qe();return hf(l,we.memoizedState,e,t)},useTransition:function(){var e=Mi(tl)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Xo,useId:pf,useHostTransitionStatus:Ls,useFormState:tf,useActionState:tf,useOptimistic:function(e,t){var l=qe();return Jo(l,we,e,t)},useMemoCache:zs,useCacheRefresh:yf};Ys.useEffectEvent=sf;var Ef={readContext:Ie,use:Ci,useCallback:df,useContext:Ie,useEffect:Os,useImperativeHandle:ff,useInsertionEffect:cf,useLayoutEffect:rf,useMemo:mf,useReducer:Ms,useRef:nf,useState:function(){return Ms(tl)},useDebugValue:Us,useDeferredValue:function(e,t){var l=qe();return we===null?Hs(l,e,t):hf(l,we.memoizedState,e,t)},useTransition:function(){var e=Ms(tl)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Xo,useId:pf,useHostTransitionStatus:Ls,useFormState:af,useActionState:af,useOptimistic:function(e,t){var l=qe();return we!==null?Jo(l,we,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:zs,useCacheRefresh:yf};Ef.useEffectEvent=sf;function Gs(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:N({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Xs={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=jt(),n=jl(a);n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(dt(t,e,a),vn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=jt(),n=jl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(dt(t,e,a),vn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=jt(),a=jl(l);a.tag=2,t!=null&&(a.callback=t),t=Nl(e,a,l),t!==null&&(dt(t,e,l),vn(t,e,l))}};function wf(e,t,l,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!cn(l,a)||!cn(n,i):!0}function Rf(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&&Xs.enqueueReplaceState(t,t.state,null)}function aa(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=N({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Tf(e){di(e)}function _f(e){console.error(e)}function zf(e){di(e)}function Ui(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Cf(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 Qs(e,t,l){return l=jl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ui(e,t)},l}function Mf(e){return e=jl(e),e.tag=3,e}function Af(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Cf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Cf(t,l,a),typeof n!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Wh(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ea(t,l,n,!0),l=pt.current,l!==null){switch(l.tag){case 31:case 13:return Mt===null?Ki():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ji?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),hc(e,a,n)),!1;case 22:return l.flags|=65536,a===ji?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)),hc(e,a,n)),!1}throw Error(r(435,l.tag))}return hc(e,a,n),Ki(),!1}if(xe)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==cs&&(e=Error(r(422),{cause:a}),fn(Tt(e,l)))):(a!==cs&&(t=Error(r(423),{cause:a}),fn(Tt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Tt(a,l),n=Qs(e.stateNode,a,n),ys(e,n),Ue!==4&&(Ue=2)),!1;var i=Error(r(520),{cause:a});if(i=Tt(i,l),Cn===null?Cn=[i]:Cn.push(i),Ue!==4&&(Ue=2),t===null)return!0;a=Tt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Qs(l.stateNode,a,e),ys(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(zl===null||!zl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Mf(n),Af(n,e,l,a),ys(l,n),!1}l=l.return}while(l!==null);return!1}var Zs=Error(r(461)),Qe=!1;function et(e,t,l,a){t.child=e===null?Uo(t,null,l,a):ta(t,e.child,l,a)}function Df(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Fl(t),a=ws(e,t,l,c,i,n),d=Rs(),e!==null&&!Qe?(Ts(e,t,n),ll(e,t,n)):(xe&&d&&us(t),t.flags|=1,et(e,t,a,n),t.child)}function Of(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!as(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Uf(e,t,i,a,n)):(e=vi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ps(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:cn,l(c,a)&&e.ref===t.ref)return ll(e,t,n)}return t.flags|=1,e=Wt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Uf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(cn(i,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=i,Ps(e,n))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,ll(e,t,n)}return Vs(e,t,l,a,n)}function Hf(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return Bf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bi(t,i!==null?i.cachePool:null),i!==null?Lo(t,i):Ss(),qo(t);else return a=t.lanes=536870912,Bf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(bi(t,i.cachePool),Lo(t,i),wl(),t.memoizedState=null):(e!==null&&bi(t,null),Ss(),wl());return et(e,t,n,l),t.child}function Nn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bf(e,t,l,a,n){var i=xs();return i=i===null?null:{parent:Ge._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&bi(t,null),Ss(),qo(t),e!==null&&Ea(e,t,a,!0),t.childLanes=n,null}function Hi(e,t){return t=Li({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lf(e,t,l){return ta(t,e.child,null,l),e=Hi(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function Fh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(a.mode==="hidden")return e=Hi(t,a),t.lanes=536870912,Nn(null,e);if(Ns(t),(e=Ce)?(e=Wd(e,Ct),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=bo(e),l.return=t,t.child=l,Pe=t,Ce=null)):e=null,e===null)throw yl(t);return t.lanes=536870912,null}return Hi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Ns(t),n)if(t.flags&256)t.flags&=-257,t=Lf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Qe||Ea(e,t,l,!1),n=(l&e.childLanes)!==0,Qe||n){if(a=ze,a!==null&&(c=Rr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Kl(e,c),dt(a,e,c),Zs;Ki(),t=Lf(e,t,l)}else e=i.treeContext,Ce=At(c.nextSibling),Pe=t,xe=!0,pl=null,Ct=!1,e!==null&&No(t,e),t=Hi(t,a),t.flags|=4096;return t}return e=Wt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Bi(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(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Vs(e,t,l,a,n){return Fl(t),l=ws(e,t,l,a,void 0,n),a=Rs(),e!==null&&!Qe?(Ts(e,t,n),ll(e,t,n)):(xe&&a&&us(t),t.flags|=1,et(e,t,l,n),t.child)}function qf(e,t,l,a,n,i){return Fl(t),t.updateQueue=null,l=Go(t,a,l,n),Yo(e),a=Rs(),e!==null&&!Qe?(Ts(e,t,i),ll(e,t,i)):(xe&&a&&us(t),t.flags|=1,et(e,t,l,i),t.child)}function Yf(e,t,l,a,n){if(Fl(t),t.stateNode===null){var i=ba,c=l.contextType;typeof c=="object"&&c!==null&&(i=Ie(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Xs,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},gs(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?Ie(c):ba,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Gs(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Xs.enqueueReplaceState(i,i.state,null),pn(t,a,i,n),gn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,p=aa(l,d);i.props=p;var T=i.context,M=l.contextType;c=ba,typeof M=="object"&&M!==null&&(c=Ie(M));var O=l.getDerivedStateFromProps;M=typeof O=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,M||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||T!==c)&&Rf(t,i,a,c),Sl=!1;var _=t.memoizedState;i.state=_,pn(t,a,i,n),gn(),T=t.memoizedState,d||_!==T||Sl?(typeof O=="function"&&(Gs(t,l,O,a),T=t.memoizedState),(p=Sl||wf(t,l,p,a,_,T,c))?(M||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=T),i.props=a,i.state=T,i.context=c,a=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,ps(e,t),c=t.memoizedProps,M=aa(l,c),i.props=M,O=t.pendingProps,_=i.context,T=l.contextType,p=ba,typeof T=="object"&&T!==null&&(p=Ie(T)),d=l.getDerivedStateFromProps,(T=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==O||_!==p)&&Rf(t,i,a,p),Sl=!1,_=t.memoizedState,i.state=_,pn(t,a,i,n),gn();var z=t.memoizedState;c!==O||_!==z||Sl||e!==null&&e.dependencies!==null&&pi(e.dependencies)?(typeof d=="function"&&(Gs(t,l,d,a),z=t.memoizedState),(M=Sl||wf(t,l,M,a,_,z,p)||e!==null&&e.dependencies!==null&&pi(e.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,z,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,z,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),i.props=a,i.state=z,i.context=p,a=M):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Bi(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=ta(t,e.child,null,n),t.child=ta(t,null,l,n)):et(e,t,l,n),t.memoizedState=i.state,e=t.child):e=ll(e,t,n),e}function Gf(e,t,l,a){return $l(),t.flags|=256,et(e,t,l,a),t.child}var ks={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ks(e){return{baseLanes:e,cachePool:zo()}}function Js(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Xf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(n?El(t):wl(),(e=Ce)?(e=Wd(e,Ct),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=bo(e),l.return=t,t.child=l,Pe=t,Ce=null)):e=null,e===null)throw yl(t);return Cc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(wl(),n=t.mode,d=Li({mode:"hidden",children:d},n),a=Jl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Ks(l),a.childLanes=Js(e,c,l),t.memoizedState=ks,Nn(null,a)):(El(t),$s(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(i)t.flags&256?(El(t),t.flags&=-257,t=Ws(e,t,l)):t.memoizedState!==null?(wl(),t.child=e.child,t.flags|=128,t=null):(wl(),d=a.fallback,n=t.mode,a=Li({mode:"visible",children:a.children},n),d=Jl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ta(t,e.child,null,l),a=t.child,a.memoizedState=Ks(l),a.childLanes=Js(e,c,l),t.memoizedState=ks,t=Nn(null,a));else if(El(t),Cc(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var T=c.dgst;c=T,a=Error(r(419)),a.stack="",a.digest=c,fn({value:a,source:null,stack:null}),t=Ws(e,t,l)}else if(Qe||Ea(e,t,l,!1),c=(l&e.childLanes)!==0,Qe||c){if(c=ze,c!==null&&(a=Rr(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Kl(e,a),dt(c,e,a),Zs;zc(d)||Ki(),t=Ws(e,t,l)}else zc(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Ce=At(d.nextSibling),Pe=t,xe=!0,pl=null,Ct=!1,e!==null&&No(t,e),t=$s(t,a.children),t.flags|=4096);return t}return n?(wl(),d=a.fallback,n=t.mode,p=e.child,T=p.sibling,a=Wt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,T!==null?d=Wt(T,d):(d=Jl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Nn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Ks(l):(n=d.cachePool,n!==null?(p=Ge._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=zo(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Js(e,c,l),t.memoizedState=ks,Nn(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Wt(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 $s(e,t){return t=Li({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Li(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function Ws(e,t,l){return ta(t,e.child,null,l),e=$s(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),fs(e.return,t,l)}function Fs(e,t,l,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function Zf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Le.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,k(Le,c),et(e,t,a,l),a=xe?on:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qf(e,l,t);else if(e.tag===19)Qf(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&&Ri(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Fs(t,!1,n,l,i,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&&Ri(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Fs(t,!0,l,null,i,a);break;case"together":Fs(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ll(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),_l|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ea(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Wt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Wt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ps(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pi(e)))}function Ph(e,t,l){switch(t.tag){case 3:nt(t,t.stateNode.containerInfo),bl(t,Ge,e.memoizedState.cache),$l();break;case 27:case 5:Ja(t);break;case 4:nt(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ns(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Xf(e,t,l):(El(t),e=ll(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ea(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Zf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),k(Le,Le.current),a)break;return null;case 22:return t.lanes=0,Hf(e,t,l,t.pendingProps);case 24:bl(t,Ge,e.memoizedState.cache)}return ll(e,t,l)}function Vf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Ps(e,l)&&(t.flags&128)===0)return Qe=!1,Ph(e,t,l);Qe=(e.flags&131072)!==0}else Qe=!1,xe&&(t.flags&1048576)!==0&&jo(t,on,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Il(t.elementType),t.type=e,typeof e=="function")as(e)?(a=aa(e,a),t.tag=1,t=Yf(null,t,e,a,l)):(t.tag=0,t=Vs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===X){t.tag=11,t=Df(null,t,e,a,l);break e}else if(n===te){t.tag=14,t=Of(null,t,e,a,l);break e}}throw t=Ye(e)||e,Error(r(306,t,""))}}return t;case 0:return Vs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=aa(a,t.pendingProps),Yf(e,t,a,n,l);case 3:e:{if(nt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,ps(e,t),pn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,bl(t,Ge,a),a!==i.cache&&ds(t,[Ge],l,!0),gn(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Gf(e,t,a,l);break e}else if(a!==n){n=Tt(Error(r(424)),t),fn(n),t=Gf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ce=At(e.firstChild),Pe=t,xe=!0,pl=null,Ct=!0,l=Uo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if($l(),a===n){t=ll(e,t,l);break e}et(e,t,a,l)}t=t.child}return t;case 26:return Bi(e,t),e===null?(l=l0(t.type,null,t.pendingProps,null))?t.memoizedState=l:xe||(l=t.type,e=t.pendingProps,a=eu(oe.current).createElement(l),a[Fe]=t,a[ut]=e,tt(a,l,e),$e(a),t.stateNode=a):t.memoizedState=l0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&xe&&(a=t.stateNode=Id(t.type,t.pendingProps,oe.current),Pe=t,Ct=!0,n=Ce,Dl(t.type)?(Mc=n,Ce=At(a.firstChild)):Ce=n),et(e,t,t.pendingProps.children,l),Bi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((n=a=Ce)&&(a=_x(a,t.type,t.pendingProps,Ct),a!==null?(t.stateNode=a,Pe=t,Ce=At(a.firstChild),Ct=!1,n=!0):n=!1),n||yl(t)),Ja(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Rc(n,i)?a=null:c!==null&&Rc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=ws(e,t,Qh,null,null,l),Ln._currentValue=n),Bi(e,t),et(e,t,a,l),t.child;case 6:return e===null&&xe&&((e=l=Ce)&&(l=zx(l,t.pendingProps,Ct),l!==null?(t.stateNode=l,Pe=t,Ce=null,e=!0):e=!1),e||yl(t)),null;case 13:return Xf(e,t,l);case 4:return nt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ta(t,null,a,l):et(e,t,a,l),t.child;case 11:return Df(e,t,t.type,t.pendingProps,l);case 7:return et(e,t,t.pendingProps,l),t.child;case 8:return et(e,t,t.pendingProps.children,l),t.child;case 12:return et(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),et(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Fl(t),n=Ie(n),a=a(n),t.flags|=1,et(e,t,a,l),t.child;case 14:return Of(e,t,t.type,t.pendingProps,l);case 15:return Uf(e,t,t.type,t.pendingProps,l);case 19:return Zf(e,t,l);case 31:return Fh(e,t,l);case 22:return Hf(e,t,l,t.pendingProps);case 24:return Fl(t),a=Ie(Ge),e===null?(n=xs(),n===null&&(n=ze,i=ms(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},gs(t),bl(t,Ge,n)):((e.lanes&l)!==0&&(ps(e,t),pn(t,null,null,l),gn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Ge,a)):(a=i.cache,bl(t,Ge,a),a!==n.cache&&ds(t,[Ge],l,!0))),et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function al(e){e.flags|=4}function Is(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(pd())e.flags|=8192;else throw ea=ji,vs}else e.flags&=-16777217}function kf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!s0(t))if(pd())e.flags|=8192;else throw ea=ji,vs}function qi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nr():536870912,e.lanes|=t,Ha|=t)}function En(e,t){if(!xe)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 Me(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 Ih(e,t,l){var a=t.pendingProps;switch(ss(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Ge),Be(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Na(t)?al(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rs())),Me(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(al(t),i!==null?(Me(t),kf(t,i)):(Me(t),Is(t,n,null,a,l))):i?i!==e.memoizedState?(al(t),Me(t),kf(t,i)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&al(t),Me(t),Is(t,n,e,a,l)),null;case 27:if(Wn(t),l=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}e=F.current,Na(t)?Eo(t):(e=Id(n,a,l),t.stateNode=e,al(t))}return Me(t),null;case 5:if(Wn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}if(i=F.current,Na(t))Eo(t);else{var c=eu(oe.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Fe]=t,i[ut]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(tt(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&al(t)}}return Me(t),Is(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=oe.current,Na(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Pe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Xd(e.nodeValue,l)),e||yl(t,!0)}else e=eu(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Me(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Na(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Fe]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else l=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Na(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Fe]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),n=!1}else n=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(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),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),qi(t,t.updateQueue),Me(t),null);case 4:return Be(),e===null&&Sc(t.stateNode.containerInfo),Me(t),null;case 10:return It(t.type),Me(t),null;case 19:if(H(Le),a=t.memoizedState,a===null)return Me(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)En(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ri(e),i!==null){for(t.flags|=128,En(a,!1),e=i.updateQueue,t.updateQueue=e,qi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)yo(l,e),l=l.sibling;return k(Le,Le.current&1|2),xe&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&mt()>Zi&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ri(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,qi(t,e),En(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!xe)return Me(t),null}else 2*mt()-a.renderingStartTime>Zi&&l!==536870912&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=mt(),e.sibling=null,l=Le.current,k(Le,n?l&1|2:l&1),xe&&Ft(t,a.treeForkCount),e):(Me(t),null);case 22:case 23:return yt(t),js(),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&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),l=t.updateQueue,l!==null&&qi(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&&H(Pl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Ge),Me(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ex(e,t){switch(ss(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Ge),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wn(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(r(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Le),null;case 4:return Be(),null;case 10:return It(t.type),null;case 22:case 23:return yt(t),js(),e!==null&&H(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Ge),null;case 25:return null;default:return null}}function Kf(e,t){switch(ss(t),t.tag){case 3:It(Ge),Be();break;case 26:case 27:case 5:Wn(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:H(Le);break;case 10:It(t.type);break;case 22:case 23:yt(t),js(),e!==null&&H(Pl);break;case 24:It(Ge)}}function wn(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 i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){je(t,t.return,d)}}function Rl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var p=l,T=d;try{T()}catch(M){je(n,p,M)}}}a=a.next}while(a!==i)}}catch(M){je(t,t.return,M)}}function Jf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Bo(t,l)}catch(a){je(e,e.return,a)}}}function $f(e,t,l){l.props=aa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){je(e,t,a)}}function Rn(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){je(e,t,n)}}function Qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){je(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){je(e,t,n)}else l.current=null}function Wf(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){je(e,e.return,n)}}function ec(e,t,l){try{var a=e.stateNode;jx(a,e.type,l,t),a[ut]=t}catch(n){je(e,e.return,n)}}function Ff(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ff(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&&Dl(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 lc(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=Jt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(lc(e,t,l),e=e.sibling;e!==null;)lc(e,t,l),e=e.sibling}function Yi(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&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Yi(e,t,l),e=e.sibling;e!==null;)Yi(e,t,l),e=e.sibling}function Pf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);tt(t,a,l),t[Fe]=e,t[ut]=l}catch(i){je(e,e.return,i)}}var nl=!1,Ze=!1,ac=!1,If=typeof WeakSet=="function"?WeakSet:Set,We=null;function tx(e,t){if(e=e.containerInfo,Ec=su,e=ro(e),Wu(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,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,d=-1,p=-1,T=0,M=0,O=e,_=null;t:for(;;){for(var z;O!==l||n!==0&&O.nodeType!==3||(d=c+n),O!==i||a!==0&&O.nodeType!==3||(p=c+a),O.nodeType===3&&(c+=O.nodeValue.length),(z=O.firstChild)!==null;)_=O,O=z;for(;;){if(O===e)break t;if(_===l&&++T===n&&(d=c),_===i&&++M===a&&(p=c),(z=O.nextSibling)!==null)break;O=_,_=O.parentNode}O=z}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(wc={focusedElem:e,selectionRange:l},su=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var $=aa(l.type,n);e=a.getSnapshotBeforeUpdate($,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(le){je(l,l.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)_c(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_c(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function ed(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ul(e,l),a&4&&wn(5,l);break;case 1:if(ul(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){je(l,l.return,c)}else{var n=aa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){je(l,l.return,c)}}a&64&&Jf(l),a&512&&Rn(l,l.return);break;case 3:if(ul(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{Bo(e,t)}catch(c){je(l,l.return,c)}}break;case 27:t===null&&a&4&&Pf(l);case 26:case 5:ul(e,l),t===null&&a&4&&Wf(l),a&512&&Rn(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),a&4&&ad(e,l);break;case 13:ul(e,l),a&4&&nd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ox.bind(null,l),Cx(e,l))));break;case 22:if(a=l.memoizedState!==null||nl,!a){t=t!==null&&t.memoizedState!==null||Ze,n=nl;var i=Ze;nl=a,(Ze=t)&&!i?sl(e,l,(l.subtreeFlags&8772)!==0):ul(e,l),nl=n,Ze=i}break;case 30:break;default:ul(e,l)}}function td(e){var t=e.alternate;t!==null&&(e.alternate=null,td(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Du(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 Ae=null,ct=!1;function il(e,t,l){for(l=l.child;l!==null;)ld(e,t,l),l=l.sibling}function ld(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:Ze||Qt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ze||Qt(l,t);var a=Ae,n=ct;Dl(l.type)&&(Ae=l.stateNode,ct=!1),il(e,t,l),Un(l.stateNode),Ae=a,ct=n;break;case 5:Ze||Qt(l,t);case 6:if(a=Ae,n=ct,Ae=null,il(e,t,l),Ae=a,ct=n,Ae!==null)if(ct)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(l.stateNode)}catch(i){je(l,t,i)}else try{Ae.removeChild(l.stateNode)}catch(i){je(l,t,i)}break;case 18:Ae!==null&&(ct?(e=Ae,Jd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Za(e)):Jd(Ae,l.stateNode));break;case 4:a=Ae,n=ct,Ae=l.stateNode.containerInfo,ct=!0,il(e,t,l),Ae=a,ct=n;break;case 0:case 11:case 14:case 15:Rl(2,l,t),Ze||Rl(4,l,t),il(e,t,l);break;case 1:Ze||(Qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&$f(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:Ze=(a=Ze)||l.memoizedState!==null,il(e,t,l),Ze=a;break;default:il(e,t,l)}}function ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Za(e)}catch(l){je(t,t.return,l)}}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Za(e)}catch(l){je(t,t.return,l)}}function lx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new If),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new If),t;default:throw Error(r(435,e.tag))}}function Gi(e,t){var l=lx(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=fx.bind(null,e,a);a.then(n,n)}})}function rt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Ae=d.stateNode,ct=!1;break e}break;case 5:Ae=d.stateNode,ct=!1;break e;case 3:case 4:Ae=d.stateNode.containerInfo,ct=!0;break e}d=d.return}if(Ae===null)throw Error(r(160));ld(i,c,n),Ae=null,ct=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)id(t,e),t=t.sibling}var Ht=null;function id(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rt(t,e),ot(e),a&4&&(Rl(3,e,e.return),wn(3,e),Rl(5,e,e.return));break;case 1:rt(t,e),ot(e),a&512&&(Ze||l===null||Qt(l,l.return)),a&64&&nl&&(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=Ht;if(rt(t,e),ot(e),a&512&&(Ze||l===null||Qt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Pa]||i[Fe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),tt(i,a,l),i[Fe]=e,$e(i),a=i;break e;case"link":var c=i0("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}i=n.createElement(a),tt(i,a,l),n.head.appendChild(i);break;case"meta":if(c=i0("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}i=n.createElement(a),tt(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[Fe]=e,$e(i),a=i}e.stateNode=a}else u0(n,e.type,e.stateNode);else e.stateNode=n0(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?u0(n,e.type,e.stateNode):n0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ec(e,e.memoizedProps,l.memoizedProps)}break;case 27:rt(t,e),ot(e),a&512&&(Ze||l===null||Qt(l,l.return)),l!==null&&a&4&&ec(e,e.memoizedProps,l.memoizedProps);break;case 5:if(rt(t,e),ot(e),a&512&&(Ze||l===null||Qt(l,l.return)),e.flags&32){n=e.stateNode;try{ma(n,"")}catch($){je(e,e.return,$)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,ec(e,n,l!==null?l.memoizedProps:n)),a&1024&&(ac=!0);break;case 6:if(rt(t,e),ot(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch($){je(e,e.return,$)}}break;case 3:if(au=null,n=Ht,Ht=tu(t.containerInfo),rt(t,e),Ht=n,ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Za(t.containerInfo)}catch($){je(e,e.return,$)}ac&&(ac=!1,ud(e));break;case 4:a=Ht,Ht=tu(e.stateNode.containerInfo),rt(t,e),ot(e),Ht=a;break;case 12:rt(t,e),ot(e);break;case 31:rt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 13:rt(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qi=mt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,T=nl,M=Ze;if(nl=T||n,Ze=M||p,rt(t,e),Ze=M,nl=T,ot(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||nl||Ze||na(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(i=p.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=p.stateNode;var O=p.memoizedProps.style,_=O!=null&&O.hasOwnProperty("display")?O.display:null;d.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch($){je(p,p.return,$)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch($){je(p,p.return,$)}}}else if(t.tag===18){if(l===null){p=t;try{var z=p.stateNode;n?$d(z,!0):$d(p.stateNode,!1)}catch($){je(p,p.return,$)}}}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,Gi(e,l))));break;case 19:rt(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 30:break;case 21:break;default:rt(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Ff(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=tc(e);Yi(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(ma(c,""),l.flags&=-33);var d=tc(e);Yi(e,d,c);break;case 3:case 4:var p=l.stateNode.containerInfo,T=tc(e);lc(e,T,p);break;default:throw Error(r(161))}}catch(M){je(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ud(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ud(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ul(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ed(e,t.alternate,t),t=t.sibling}function na(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rl(4,t,t.return),na(t);break;case 1:Qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&$f(t,t.return,l),na(t);break;case 27:Un(t.stateNode);case 26:case 5:Qt(t,t.return),na(t);break;case 22:t.memoizedState===null&&na(t);break;case 30:na(t);break;default:na(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:sl(n,i,l),wn(4,i);break;case 1:if(sl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){je(a,a.return,T)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)Ho(p[n],d)}catch(T){je(a,a.return,T)}}l&&c&64&&Jf(i),Rn(i,i.return);break;case 27:Pf(i);case 26:case 5:sl(n,i,l),l&&a===null&&c&4&&Wf(i),Rn(i,i.return);break;case 12:sl(n,i,l);break;case 31:sl(n,i,l),l&&c&4&&ad(n,i);break;case 13:sl(n,i,l),l&&c&4&&nd(n,i);break;case 22:i.memoizedState===null&&sl(n,i,l),Rn(i,i.return);break;case 30:break;default:sl(n,i,l)}t=t.sibling}}function nc(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&&dn(l))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e))}function Bt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sd(e,t,l,a),t=t.sibling}function sd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,a),n&2048&&wn(9,t);break;case 1:Bt(e,t,l,a);break;case 3:Bt(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&&dn(e)));break;case 12:if(n&2048){Bt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){je(t,t.return,p)}}else Bt(e,t,l,a);break;case 31:Bt(e,t,l,a);break;case 13:Bt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Bt(e,t,l,a):Tn(e,t):i._visibility&2?Bt(e,t,l,a):(i._visibility|=2,Da(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&nc(c,t);break;case 24:Bt(e,t,l,a),n&2048&&ic(t.alternate,t);break;default:Bt(e,t,l,a)}}function Da(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,d=l,p=a,T=c.flags;switch(c.tag){case 0:case 11:case 15:Da(i,c,d,p,n),wn(8,c);break;case 23:break;case 22:var M=c.stateNode;c.memoizedState!==null?M._visibility&2?Da(i,c,d,p,n):Tn(i,c):(M._visibility|=2,Da(i,c,d,p,n)),n&&T&2048&&nc(c.alternate,c);break;case 24:Da(i,c,d,p,n),n&&T&2048&&ic(c.alternate,c);break;default:Da(i,c,d,p,n)}t=t.sibling}}function Tn(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:Tn(l,a),n&2048&&nc(a.alternate,a);break;case 24:Tn(l,a),n&2048&&ic(a.alternate,a);break;default:Tn(l,a)}t=t.sibling}}var _n=8192;function Oa(e,t,l){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)cd(e,t,l),e=e.sibling}function cd(e,t,l){switch(e.tag){case 26:Oa(e,t,l),e.flags&_n&&e.memoizedState!==null&&Xx(l,Ht,e.memoizedState,e.memoizedProps);break;case 5:Oa(e,t,l);break;case 3:case 4:var a=Ht;Ht=tu(e.stateNode.containerInfo),Oa(e,t,l),Ht=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,Oa(e,t,l),_n=a):Oa(e,t,l));break;default:Oa(e,t,l)}}function rd(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 zn(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];We=a,fd(a,e)}rd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)od(e),e=e.sibling}function od(e){switch(e.tag){case 0:case 11:case 15:zn(e),e.flags&2048&&Rl(9,e,e.return);break;case 3:zn(e);break;case 12:zn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xi(e)):zn(e);break;default:zn(e)}}function Xi(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];We=a,fd(a,e)}rd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rl(8,t,t.return),Xi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Xi(t));break;default:Xi(t)}e=e.sibling}}function fd(e,t){for(;We!==null;){var l=We;switch(l.tag){case 0:case 11:case 15:Rl(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:dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,We=a;else e:for(l=e;We!==null;){a=We;var n=a.sibling,i=a.return;if(td(a),a===l){We=null;break e}if(n!==null){n.return=i,We=n;break e}We=i}}}var ax={getCacheForType:function(e){var t=Ie(Ge),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(Ge).controller.signal}},nx=typeof WeakMap=="function"?WeakMap:Map,pe=0,ze=null,fe=null,me=0,Se=0,bt=null,Tl=!1,Ua=!1,uc=!1,cl=0,Ue=0,_l=0,ia=0,sc=0,St=0,Ha=0,Cn=null,ft=null,cc=!1,Qi=0,dd=0,Zi=1/0,Vi=null,zl=null,Ve=0,Cl=null,Ba=null,rl=0,rc=0,oc=null,md=null,Mn=0,fc=null;function jt(){return(pe&2)!==0&&me!==0?me&-me:A.T!==null?gc():Tr()}function hd(){if(St===0)if((me&536870912)===0||xe){var e=In;In<<=1,(In&3932160)===0&&(In=262144),St=e}else St=536870912;return e=pt.current,e!==null&&(e.flags|=32),St}function dt(e,t,l){(e===ze&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(La(e,0),Ml(e,me,St,!1)),Fa(e,l),((pe&2)===0||e!==ze)&&(e===ze&&((pe&2)===0&&(ia|=l),Ue===4&&Ml(e,me,St,!1)),Zt(e))}function xd(e,t,l){if((pe&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),n=a?sx(e,t):mc(e,t,!0),i=a;do{if(n===0){Ua&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!ix(l)){n=mc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Cn;var p=d.current.memoizedState.isDehydrated;if(p&&(La(d,c).flags|=256),c=mc(d,c,!1),c!==2){if(uc&&!p){d.errorRecoveryDisabledLanes|=i,ia|=i,n=4;break e}i=ft,ft=n,i!==null&&(ft===null?ft=i:ft.push.apply(ft,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){La(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,St,!Tl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Qi+300-mt(),10<n)){if(Ml(a,t,St,!Tl),ti(a,0,!0)!==0)break e;rl=t,a.timeoutHandle=kd(vd.bind(null,a,l,ft,Vi,cc,t,St,ia,Ha,Tl,i,"Throttled",-0,0),n);break e}vd(a,l,ft,Vi,cc,t,St,ia,Ha,Tl,i,null,-0,0)}}break}while(!0);Zt(e)}function vd(e,t,l,a,n,i,c,d,p,T,M,O,_,z){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},cd(t,i,O);var $=(i&62914560)===i?Qi-mt():(i&4194048)===i?dd-mt():0;if($=Qx(O,$),$!==null){rl=i,e.cancelPendingCommit=$(Ed.bind(null,e,t,i,l,a,n,c,d,p,M,O,null,_,z)),Ml(e,i,c,!T);return}}Ed(e,t,i,l,a,n,c,d,p)}function ix(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],i=n.getSnapshot;n=n.value;try{if(!vt(i(),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 Ml(e,t,l,a){t&=~sc,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-xt(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&Er(e,l,t)}function ki(){return(pe&6)===0?(An(0),!1):!0}function dc(){if(fe!==null){if(Se===0)var e=fe.return;else e=fe,Pt=Wl=null,_s(e),_a=null,hn=0,e=fe;for(;e!==null;)Kf(e.alternate,e),e=e.return;fe=null}}function La(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,wx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,dc(),ze=e,fe=l=Wt(e.current,null),me=t,Se=0,bt=null,Tl=!1,Ua=Wa(e,t),uc=!1,Ha=St=sc=ia=_l=Ue=0,ft=Cn=null,cc=!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-xt(a),i=1<<n;t|=e[n],a&=~i}return cl=t,mi(),l}function gd(e,t){ce=null,A.H=jn,t===Ta||t===Si?(t=Ao(),Se=3):t===vs?(t=Ao(),Se=4):Se=t===Zs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,fe===null&&(Ue=1,Ui(e,Tt(t,e.current)))}function pd(){var e=pt.current;return e===null?!0:(me&4194048)===me?Mt===null:(me&62914560)===me||(me&536870912)!==0?e===Mt:!1}function yd(){var e=A.H;return A.H=jn,e===null?jn:e}function bd(){var e=A.A;return A.A=ax,e}function Ki(){Ue=4,Tl||(me&4194048)!==me&&pt.current!==null||(Ua=!0),(_l&134217727)===0&&(ia&134217727)===0||ze===null||Ml(ze,me,St,!1)}function mc(e,t,l){var a=pe;pe|=2;var n=yd(),i=bd();(ze!==e||me!==t)&&(Vi=null,La(e,t)),t=!1;var c=Ue;e:do try{if(Se!==0&&fe!==null){var d=fe,p=bt;switch(Se){case 8:dc(),c=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var T=Se;if(Se=0,bt=null,qa(e,d,p,T),l&&Ua){c=0;break e}break;default:T=Se,Se=0,bt=null,qa(e,d,p,T)}}ux(),c=Ue;break}catch(M){gd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Pt=Wl=null,pe=a,A.H=n,A.A=i,fe===null&&(ze=null,me=0,mi()),c}function ux(){for(;fe!==null;)Sd(fe)}function sx(e,t){var l=pe;pe|=2;var a=yd(),n=bd();ze!==e||me!==t?(Vi=null,Zi=mt()+500,La(e,t)):Ua=Wa(e,t);e:do try{if(Se!==0&&fe!==null){t=fe;var i=bt;t:switch(Se){case 1:Se=0,bt=null,qa(e,t,i,1);break;case 2:case 9:if(Co(i)){Se=0,bt=null,jd(t);break}t=function(){Se!==2&&Se!==9||ze!==e||(Se=7),Zt(e)},i.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:Co(i)?(Se=0,bt=null,jd(t)):(Se=0,bt=null,qa(e,t,i,7));break;case 5:var c=null;switch(fe.tag){case 26:c=fe.memoizedState;case 5:case 27:var d=fe;if(c?s0(c):d.stateNode.complete){Se=0,bt=null;var p=d.sibling;if(p!==null)fe=p;else{var T=d.return;T!==null?(fe=T,Ji(T)):fe=null}break t}}Se=0,bt=null,qa(e,t,i,5);break;case 6:Se=0,bt=null,qa(e,t,i,6);break;case 8:dc(),Ue=6;break e;default:throw Error(r(462))}}cx();break}catch(M){gd(e,M)}while(!0);return Pt=Wl=null,A.H=a,A.A=n,pe=l,fe!==null?0:(ze=null,me=0,mi(),Ue)}function cx(){for(;fe!==null&&!Mm();)Sd(fe)}function Sd(e){var t=Vf(e.alternate,e,cl);e.memoizedProps=e.pendingProps,t===null?Ji(e):fe=t}function jd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=qf(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=qf(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:_s(t);default:Kf(l,t),t=fe=yo(t,cl),t=Vf(l,t,cl)}e.memoizedProps=e.pendingProps,t===null?Ji(e):fe=t}function qa(e,t,l,a){Pt=Wl=null,_s(t),_a=null,hn=0;var n=t.return;try{if(Wh(e,n,t,l,me)){Ue=1,Ui(e,Tt(l,e.current)),fe=null;return}}catch(i){if(n!==null)throw fe=n,i;Ue=1,Ui(e,Tt(l,e.current)),fe=null;return}t.flags&32768?(xe||a===1?e=!0:Ua||(me&536870912)!==0?e=!1:(Tl=e=!0,(a===2||a===9||a===3||a===6)&&(a=pt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Nd(t,e)):Ji(t)}function Ji(e){var t=e;do{if((t.flags&32768)!==0){Nd(t,Tl);return}e=t.return;var l=Ih(t.alternate,t,cl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ue===0&&(Ue=5)}function Nd(e,t){do{var l=ex(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);Ue=6,fe=null}function Ed(e,t,l,a,n,i,c,d,p){e.cancelPendingCommit=null;do $i();while(Ve!==0);if((pe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=ts,Gm(e,l,i,c,d,p),e===ze&&(fe=ze=null,me=0),Ba=t,Cl=e,rl=l,rc=i,oc=n,md=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dx(Fn,function(){return zd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=V.p,V.p=2,c=pe,pe|=4;try{tx(e,t,l)}finally{pe=c,V.p=n,A.T=a}}Ve=1,wd(),Rd(),Td()}}function wd(){if(Ve===1){Ve=0;var e=Cl,t=Ba,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=V.p;V.p=2;var n=pe;pe|=4;try{id(t,e);var i=wc,c=ro(e.containerInfo),d=i.focusedElem,p=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&co(d.ownerDocument.documentElement,d)){if(p!==null&&Wu(d)){var T=p.start,M=p.end;if(M===void 0&&(M=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(M,d.value.length);else{var O=d.ownerDocument||document,_=O&&O.defaultView||window;if(_.getSelection){var z=_.getSelection(),$=d.textContent.length,le=Math.min(p.start,$),Te=p.end===void 0?le:Math.min(p.end,$);!z.extend&&le>Te&&(c=Te,Te=le,le=c);var j=so(d,le),b=so(d,Te);if(j&&b&&(z.rangeCount!==1||z.anchorNode!==j.node||z.anchorOffset!==j.offset||z.focusNode!==b.node||z.focusOffset!==b.offset)){var R=O.createRange();R.setStart(j.node,j.offset),z.removeAllRanges(),le>Te?(z.addRange(R),z.extend(b.node,b.offset)):(R.setEnd(b.node,b.offset),z.addRange(R))}}}}for(O=[],z=d;z=z.parentNode;)z.nodeType===1&&O.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<O.length;d++){var D=O[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}su=!!Ec,wc=Ec=null}finally{pe=n,V.p=a,A.T=l}}e.current=t,Ve=2}}function Rd(){if(Ve===2){Ve=0;var e=Cl,t=Ba,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=V.p;V.p=2;var n=pe;pe|=4;try{ed(e,t.alternate,t)}finally{pe=n,V.p=a,A.T=l}}Ve=3}}function Td(){if(Ve===4||Ve===3){Ve=0,Am();var e=Cl,t=Ba,l=rl,a=md;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ve=5:(Ve=0,Ba=Cl=null,_d(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),Mu(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=A.T,n=V.p,V.p=2,A.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];i(d.value,{componentStack:d.stack})}}finally{A.T=t,V.p=n}}(rl&3)!==0&&$i(),Zt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===fc?Mn++:(Mn=0,fc=e):Mn=0,An(0)}}function _d(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dn(t)))}function $i(){return wd(),Rd(),Td(),zd()}function zd(){if(Ve!==5)return!1;var e=Cl,t=rc;rc=0;var l=Mu(rl),a=A.T,n=V.p;try{V.p=32>l?32:l,A.T=null,l=oc,oc=null;var i=Cl,c=rl;if(Ve=0,Ba=Cl=null,rl=0,(pe&6)!==0)throw Error(r(331));var d=pe;if(pe|=4,od(i.current),sd(i,i.current,c,l),pe=d,An(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot($a,i)}catch{}return!0}finally{V.p=n,A.T=a,_d(e,t)}}function Cd(e,t,l){t=Tt(l,t),t=Qs(e.stateNode,t,2),e=Nl(e,t,2),e!==null&&(Fa(e,2),Zt(e))}function je(e,t,l){if(e.tag===3)Cd(e,e,l);else for(;t!==null;){if(t.tag===3){Cd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zl===null||!zl.has(a))){e=Tt(l,e),l=Mf(2),a=Nl(t,l,2),a!==null&&(Af(l,a,t,e),Fa(a,2),Zt(a));break}}t=t.return}}function hc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new nx;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)||(uc=!0,n.add(l),e=rx.bind(null,e,t,l),t.then(e,e))}function rx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(me&l)===l&&(Ue===4||Ue===3&&(me&62914560)===me&&300>mt()-Qi?(pe&2)===0&&La(e,0):sc|=l,Ha===me&&(Ha=0)),Zt(e)}function Md(e,t){t===0&&(t=Nr()),e=Kl(e,t),e!==null&&(Fa(e,t),Zt(e))}function ox(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Md(e,l)}function fx(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(r(314))}a!==null&&a.delete(t),Md(e,l)}function dx(e,t){return Tu(e,t)}var Wi=null,Ya=null,xc=!1,Fi=!1,vc=!1,Al=0;function Zt(e){e!==Ya&&e.next===null&&(Ya===null?Wi=Ya=e:Ya=Ya.next=e),Fi=!0,xc||(xc=!0,hx())}function An(e,t){if(!vc&&Fi){vc=!0;do for(var l=!1,a=Wi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-xt(42|e)+1)-1,i&=n&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Ud(a,i))}else i=me,i=ti(a,a===ze?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Wa(a,i)||(l=!0,Ud(a,i));a=a.next}while(l);vc=!1}}function mx(){Ad()}function Ad(){Fi=xc=!1;var e=0;Al!==0&&Ex()&&(e=Al);for(var t=mt(),l=null,a=Wi;a!==null;){var n=a.next,i=Dd(a,t);i===0?(a.next=null,l===null?Wi=n:l.next=n,n===null&&(Ya=l)):(l=a,(e!==0||(i&3)!==0)&&(Fi=!0)),a=n}Ve!==0&&Ve!==5||An(e),Al!==0&&(Al=0)}function Dd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-xt(i),d=1<<c,p=n[c];p===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Ym(d,t)):p<=t&&(e.expiredLanes|=d),i&=~d}if(t=ze,l=me,l=ti(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&_u(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&_u(a),Mu(l)){case 2:case 8:l=Sr;break;case 32:l=Fn;break;case 268435456:l=jr;break;default:l=Fn}return a=Od.bind(null,e),l=Tu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&_u(a),e.callbackPriority=2,e.callbackNode=null,2}function Od(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if($i()&&e.callbackNode!==l)return null;var a=me;return a=ti(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(xd(e,a,t),Dd(e,mt()),e.callbackNode!=null&&e.callbackNode===l?Od.bind(null,e):null)}function Ud(e,t){if($i())return null;xd(e,t,!0)}function hx(){Rx(function(){(pe&6)!==0?Tu(br,mx):Ad()})}function gc(){if(Al===0){var e=wa;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),Al=e}return Al}function Hd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ii(""+e)}function Bd(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 xx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Hd((n[ut]||null).action),c=a.submitter;c&&(t=(t=c[ut]||null)?Hd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new ri("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var p=c?Bd(n,c):new FormData(n);Bs(l,{pending:!0,data:p,method:n.method,action:i},null,p)}}else typeof i=="function"&&(d.preventDefault(),p=c?Bd(n,c):new FormData(n),Bs(l,{pending:!0,data:p,method:n.method,action:i},i,p))},currentTarget:n}]})}}for(var pc=0;pc<es.length;pc++){var yc=es[pc],vx=yc.toLowerCase(),gx=yc[0].toUpperCase()+yc.slice(1);Ut(vx,"on"+gx)}Ut(mo,"onAnimationEnd"),Ut(ho,"onAnimationIteration"),Ut(xo,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(Dh,"onTransitionRun"),Ut(Oh,"onTransitionStart"),Ut(Uh,"onTransitionCancel"),Ut(vo,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),px=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dn));function Ld(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 i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],p=d.instance,T=d.currentTarget;if(d=d.listener,p!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(M){di(M)}n.currentTarget=null,i=p}else for(c=0;c<a.length;c++){if(d=a[c],p=d.instance,T=d.currentTarget,d=d.listener,p!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(M){di(M)}n.currentTarget=null,i=p}}}}function de(e,t){var l=t[Au];l===void 0&&(l=t[Au]=new Set);var a=e+"__bubble";l.has(a)||(qd(t,e,2,!1),l.add(a))}function bc(e,t,l){var a=0;t&&(a|=4),qd(l,e,a,t)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[Pi]){e[Pi]=!0,Cr.forEach(function(l){l!=="selectionchange"&&(px.has(l)||bc(l,!1,e),bc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pi]||(t[Pi]=!0,bc("selectionchange",!1,t))}}function qd(e,t,l,a){switch(h0(t)){case 2:var n=kx;break;case 8:n=Kx;break;default:n=Hc}l=n.bind(null,t,l,e),n=void 0,!Gu||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 jc(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=ca(d),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=i=c;continue e}d=d.parentNode}}a=a.return}Xr(function(){var T=i,M=qu(l),O=[];e:{var _=go.get(e);if(_!==void 0){var z=ri,$=e;switch(e){case"keypress":if(si(l)===0)break e;case"keydown":case"keyup":z=fh;break;case"focusin":$="focus",z=Vu;break;case"focusout":$="blur",z=Vu;break;case"beforeblur":case"afterblur":z=Vu;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":z=Vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Im;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=hh;break;case mo:case ho:case xo:z=lh;break;case vo:z=vh;break;case"scroll":case"scrollend":z=Fm;break;case"wheel":z=ph;break;case"copy":case"cut":case"paste":z=nh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Kr;break;case"toggle":case"beforetoggle":z=bh}var le=(t&4)!==0,Te=!le&&(e==="scroll"||e==="scrollend"),j=le?_!==null?_+"Capture":null:_;le=[];for(var b=T,R;b!==null;){var D=b;if(R=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||R===null||j===null||(D=en(b,j),D!=null&&le.push(On(b,D,R))),Te)break;b=b.return}0<le.length&&(_=new z(_,$,null,l,M),O.push({event:_,listeners:le}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",_&&l!==Lu&&($=l.relatedTarget||l.fromElement)&&(ca($)||$[sa]))break e;if((z||_)&&(_=M.window===M?M:(_=M.ownerDocument)?_.defaultView||_.parentWindow:window,z?($=l.relatedTarget||l.toElement,z=T,$=$?ca($):null,$!==null&&(Te=h($),le=$.tag,$!==Te||le!==5&&le!==27&&le!==6)&&($=null)):(z=null,$=T),z!==$)){if(le=Vr,D="onMouseLeave",j="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(le=Kr,D="onPointerLeave",j="onPointerEnter",b="pointer"),Te=z==null?_:Ia(z),R=$==null?_:Ia($),_=new le(D,b+"leave",z,l,M),_.target=Te,_.relatedTarget=R,D=null,ca(M)===T&&(le=new le(j,b+"enter",$,l,M),le.target=R,le.relatedTarget=Te,D=le),Te=D,z&&$)t:{for(le=yx,j=z,b=$,R=0,D=j;D;D=le(D))R++;D=0;for(var ee=b;ee;ee=le(ee))D++;for(;0<R-D;)j=le(j),R--;for(;0<D-R;)b=le(b),D--;for(;R--;){if(j===b||b!==null&&j===b.alternate){le=j;break t}j=le(j),b=le(b)}le=null}else le=null;z!==null&&Yd(O,_,z,le,!1),$!==null&&Te!==null&&Yd(O,Te,$,le,!0)}}e:{if(_=T?Ia(T):window,z=_.nodeName&&_.nodeName.toLowerCase(),z==="select"||z==="input"&&_.type==="file")var ve=to;else if(Ir(_))if(lo)ve=Ch;else{ve=_h;var P=Th}else z=_.nodeName,!z||z.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?T&&Bu(T.elementType)&&(ve=to):ve=zh;if(ve&&(ve=ve(e,T))){eo(O,ve,l,M);break e}P&&P(e,_,T),e==="focusout"&&T&&_.type==="number"&&T.memoizedProps.value!=null&&Hu(_,"number",_.value)}switch(P=T?Ia(T):window,e){case"focusin":(Ir(P)||P.contentEditable==="true")&&(ga=P,Fu=T,rn=null);break;case"focusout":rn=Fu=ga=null;break;case"mousedown":Pu=!0;break;case"contextmenu":case"mouseup":case"dragend":Pu=!1,oo(O,l,M);break;case"selectionchange":if(Ah)break;case"keydown":case"keyup":oo(O,l,M)}var re;if(Ku)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else va?Fr(e,l)&&(he="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(he="onCompositionStart");he&&(Jr&&l.locale!=="ko"&&(va||he!=="onCompositionStart"?he==="onCompositionEnd"&&va&&(re=Qr()):(vl=M,Xu="value"in vl?vl.value:vl.textContent,va=!0)),P=Ii(T,he),0<P.length&&(he=new kr(he,e,null,l,M),O.push({event:he,listeners:P}),re?he.data=re:(re=Pr(l),re!==null&&(he.data=re)))),(re=jh?Nh(e,l):Eh(e,l))&&(he=Ii(T,"onBeforeInput"),0<he.length&&(P=new kr("onBeforeInput","beforeinput",null,l,M),O.push({event:P,listeners:he}),P.data=re)),xx(O,e,T,l,M)}Ld(O,t)})}function On(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ii(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=en(e,l),n!=null&&a.unshift(On(e,n,i)),n=en(e,t),n!=null&&a.push(On(e,n,i))),e.tag===3)return a;e=e.return}return[]}function yx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yd(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var d=l,p=d.alternate,T=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||T===null||(p=T,n?(T=en(l,i),T!=null&&c.unshift(On(l,T,p))):n||(T=en(l,i),T!=null&&c.push(On(l,T,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var bx=/\r\n?/g,Sx=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(bx,`
|
|
49
|
-
`).replace(Sx,"")}function Xd(e,t){return t=Gd(t),Gd(e)===t}function Re(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ma(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ma(e,""+a);break;case"className":ai(e,"class",a);break;case"tabIndex":ai(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ai(e,l,a);break;case"style":Yr(e,a,i);break;case"data":if(t!=="object"){ai(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=ii(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ii(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(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=ii(""+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":de("beforetoggle",e),de("toggle",e),li(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":li(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=$m.get(l)||l,li(e,l,a))}}function Nc(e,t,l,a,n,i){switch(l){case"style":Yr(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ma(e,a):(typeof a=="number"||typeof a=="bigint")&&ma(e,""+a);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[ut]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==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,""):li(e,l,a)}}}function tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,i,c,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":de("invalid",e);var d=i=c=n=null,p=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":c=M;break;case"checked":p=M;break;case"defaultChecked":T=M;break;case"value":i=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Re(e,t,a,M,l,null)}}Hr(e,i,d,p,T,c,n,!1);return;case"select":de("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:Re(e,t,n,d,l,null)}t=i,l=c,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":de("invalid",e),i=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":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Re(e,t,c,d,l,null)}Lr(e,a,n,i);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,p,a,l,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(a=0;a<Dn.length;a++)de(Dn[a],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,T,a,l,null)}return;default:if(Bu(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&Nc(e,t,M,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Re(e,t,d,a,l,null))}function jx(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,i=null,c=null,d=null,p=null,T=null,M=null;for(z in l){var O=l[z];if(l.hasOwnProperty(z)&&O!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":p=O;default:a.hasOwnProperty(z)||Re(e,t,z,null,a,O)}}for(var _ in a){var z=a[_];if(O=l[_],a.hasOwnProperty(_)&&(z!=null||O!=null))switch(_){case"type":i=z;break;case"name":n=z;break;case"checked":T=z;break;case"defaultChecked":M=z;break;case"value":c=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:z!==O&&Re(e,t,_,z,a,O)}}Uu(e,c,d,p,T,M,i,n);return;case"select":z=c=d=_=null;for(i in l)if(p=l[i],l.hasOwnProperty(i)&&p!=null)switch(i){case"value":break;case"multiple":z=p;default:a.hasOwnProperty(i)||Re(e,t,i,null,a,p)}for(n in a)if(i=a[n],p=l[n],a.hasOwnProperty(n)&&(i!=null||p!=null))switch(n){case"value":_=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==p&&Re(e,t,n,i,a,p)}t=d,l=c,a=z,_!=null?da(e,!!l,_,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":z=_=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:Re(e,t,d,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":_=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Re(e,t,c,n,a,i)}Br(e,_,z);return;case"option":for(var $ in l)if(_=l[$],l.hasOwnProperty($)&&_!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Re(e,t,$,null,a,_)}for(p in a)if(_=a[p],z=l[p],a.hasOwnProperty(p)&&_!==z&&(_!=null||z!=null))switch(p){case"selected":e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Re(e,t,p,_,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in l)_=l[le],l.hasOwnProperty(le)&&_!=null&&!a.hasOwnProperty(le)&&Re(e,t,le,null,a,_);for(T in a)if(_=a[T],z=l[T],a.hasOwnProperty(T)&&_!==z&&(_!=null||z!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:Re(e,t,T,_,a,z)}return;default:if(Bu(t)){for(var Te in l)_=l[Te],l.hasOwnProperty(Te)&&_!==void 0&&!a.hasOwnProperty(Te)&&Nc(e,t,Te,void 0,a,_);for(M in a)_=a[M],z=l[M],!a.hasOwnProperty(M)||_===z||_===void 0&&z===void 0||Nc(e,t,M,_,a,z);return}}for(var j in l)_=l[j],l.hasOwnProperty(j)&&_!=null&&!a.hasOwnProperty(j)&&Re(e,t,j,null,a,_);for(O in a)_=a[O],z=l[O],!a.hasOwnProperty(O)||_===z||_==null&&z==null||Re(e,t,O,_,a,z)}function Qd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nx(){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],i=n.transferSize,c=n.initiatorType,d=n.duration;if(i&&d&&Qd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],T=p.startTime;if(T>d)break;var M=p.transferSize,O=p.initiatorType;M&&Qd(O)&&(p=p.responseEnd,c+=M*(p<d?1:(d-T)/(p-T)))}if(--a,t+=8*(i+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 Ec=null,wc=null;function eu(e){return e.nodeType===9?e:e.ownerDocument}function Zd(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 Vd(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 Rc(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 Tc=null;function Ex(){var e=window.event;return e&&e.type==="popstate"?e===Tc?!1:(Tc=e,!0):(Tc=null,!1)}var kd=typeof setTimeout=="function"?setTimeout:void 0,wx=typeof clearTimeout=="function"?clearTimeout:void 0,Kd=typeof Promise=="function"?Promise:void 0,Rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Kd<"u"?function(e){return Kd.resolve(null).then(e).catch(Tx)}:kd;function Tx(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Jd(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),Za(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Un(l);for(var i=l.firstChild;i;){var c=i.nextSibling,d=i.nodeName;i[Pa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Un(e.ownerDocument.body);l=n}while(l);Za(t)}function $d(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 _c(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":_c(l),Du(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function _x(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[Pa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=At(e.nextSibling),e===null)break}return null}function zx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=At(e.nextSibling),e===null))return null;return e}function Wd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=At(e.nextSibling),e===null))return null;return e}function zc(e){return e.data==="$?"||e.data==="$~"}function Cc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Cx(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 At(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 Mc=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return At(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Pd(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 Id(e,t,l){switch(t=eu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Du(e)}var Dt=new Map,e0=new Set;function tu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=V.d;V.d={f:Mx,r:Ax,D:Dx,C:Ox,L:Ux,m:Hx,X:Lx,S:Bx,M:qx};function Mx(){var e=ol.f(),t=ki();return e||t}function Ax(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?gf(t):ol.r(e)}var Ga=typeof document>"u"?null:document;function t0(e,t,l){var a=Ga;if(a&&typeof t=="string"&&t){var n=wt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),e0.has(n)||(e0.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),tt(t,"link",e),$e(t),a.head.appendChild(t)))}}function Dx(e){ol.D(e),t0("dns-prefetch",e,null)}function Ox(e,t){ol.C(e,t),t0("preconnect",e,t)}function Ux(e,t,l){ol.L(e,t,l);var a=Ga;if(a&&e&&t){var n='link[rel="preload"][as="'+wt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+wt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+wt(l.imageSizes)+'"]')):n+='[href="'+wt(e)+'"]';var i=n;switch(t){case"style":i=Xa(e);break;case"script":i=Qa(e)}Dt.has(i)||(e=N({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Hn(i))||t==="script"&&a.querySelector(Bn(i))||(t=a.createElement("link"),tt(t,"link",e),$e(t),a.head.appendChild(t)))}}function Hx(e,t){ol.m(e,t);var l=Ga;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+wt(a)+'"][href="'+wt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Qa(e)}if(!Dt.has(i)&&(e=N({rel:"modulepreload",href:e},t),Dt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Bn(i)))return}a=l.createElement("link"),tt(a,"link",e),$e(a),l.head.appendChild(a)}}}function Bx(e,t,l){ol.S(e,t,l);var a=Ga;if(a&&e){var n=oa(a).hoistableStyles,i=Xa(e);t=t||"default";var c=n.get(i);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Hn(i)))d.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(i))&&Ac(e,l);var p=c=a.createElement("link");$e(p),tt(p,"link",e),p._p=new Promise(function(T,M){p.onload=T,p.onerror=M}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,lu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(i,c)}}}function Lx(e,t){ol.X(e,t);var l=Ga;if(l&&e){var a=oa(l).hoistableScripts,n=Qa(e),i=a.get(n);i||(i=l.querySelector(Bn(n)),i||(e=N({src:e,async:!0},t),(t=Dt.get(n))&&Dc(e,t),i=l.createElement("script"),$e(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function qx(e,t){ol.M(e,t);var l=Ga;if(l&&e){var a=oa(l).hoistableScripts,n=Qa(e),i=a.get(n);i||(i=l.querySelector(Bn(n)),i||(e=N({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&Dc(e,t),i=l.createElement("script"),$e(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function l0(e,t,l,a){var n=(n=oe.current)?tu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Xa(l.href),l=oa(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=Xa(l.href);var i=oa(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(Hn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Dt.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},Dt.set(e,l),i||Yx(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qa(l),l=oa(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(r(444,e))}}function Xa(e){return'href="'+wt(e)+'"'}function Hn(e){return'link[rel="stylesheet"]['+e+"]"}function a0(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function Yx(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}),tt(t,"link",l),$e(t),e.head.appendChild(t))}function Qa(e){return'[src="'+wt(e)+'"]'}function Bn(e){return"script[async]"+e}function n0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+wt(l.href)+'"]');if(a)return t.instance=a,$e(a),a;var n=N({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),$e(a),tt(a,"style",n),lu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Xa(l.href);var i=e.querySelector(Hn(n));if(i)return t.state.loading|=4,t.instance=i,$e(i),i;a=a0(l),(n=Dt.get(n))&&Ac(a,n),i=(e.ownerDocument||e).createElement("link"),$e(i);var c=i;return c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),tt(i,"link",a),t.state.loading|=4,lu(i,l.precedence,e),t.instance=i;case"script":return i=Qa(l.src),(n=e.querySelector(Bn(i)))?(t.instance=n,$e(n),n):(a=l,(n=Dt.get(i))&&(a=N({},l),Dc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),$e(n),tt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,lu(a,l.precedence,e));return t.instance}function lu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var au=null;function i0(e,t,l){if(au===null){var a=new Map,n=au=new Map;n.set(l,a)}else n=au,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 i=l[n];if(!(i[Pa]||i[Fe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(i):a.set(c,[i])}}return a}function u0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Gx(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function s0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Xx(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=Xa(a.href),i=t.querySelector(Hn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=nu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,$e(i);return}i=t.ownerDocument||t,a=a0(a),(n=Dt.get(n))&&Ac(a,n),i=i.createElement("link"),$e(i);var c=i;c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),tt(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=nu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Oc=0;function Qx(e,t){return e.stylesheets&&e.count===0&&uu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Oc===0&&(Oc=62500*Nx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Oc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var iu=null;function uu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,iu=new Map,t.forEach(Zx,e),iu=null,nu.call(e))}function Zx(e,t){if(!(t.state.loading&4)){var l=iu.get(e);if(l)var a=l.get(null);else{l=new Map,iu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=nu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Ln={$$typeof:G,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function Vx(e,t,l,a,n,i,c,d,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zu(0),this.hiddenUpdates=zu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function c0(e,t,l,a,n,i,c,d,p,T,M,O){return e=new Vx(e,t,l,c,p,T,M,O,d),t=1,i===!0&&(t|=24),i=gt(3,null,null,t),e.current=i,i.stateNode=e,t=ms(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},gs(i),e}function r0(e){return e?(e=ba,e):ba}function o0(e,t,l,a,n,i){n=r0(n),a.context===null?a.context=n:a.pendingContext=n,a=jl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Nl(e,a,t),l!==null&&(dt(l,e,t),vn(l,e,t))}function f0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Uc(e,t){f0(e,t),(e=e.alternate)&&f0(e,t)}function d0(e){if(e.tag===13||e.tag===31){var t=Kl(e,67108864);t!==null&&dt(t,e,67108864),Uc(e,67108864)}}function m0(e){if(e.tag===13||e.tag===31){var t=jt();t=Cu(t);var l=Kl(e,t);l!==null&&dt(l,e,t),Uc(e,t)}}var su=!0;function kx(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=2,Hc(e,t,l,a)}finally{V.p=i,A.T=n}}function Kx(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=8,Hc(e,t,l,a)}finally{V.p=i,A.T=n}}function Hc(e,t,l,a){if(su){var n=Bc(a);if(n===null)jc(e,t,a,cu,l),x0(e,a);else if($x(n,e,t,l,a))a.stopPropagation();else if(x0(e,a),t&4&&-1<Jx.indexOf(e)){for(;n!==null;){var i=ra(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Xl(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var p=1<<31-xt(c);d.entanglements[1]|=p,c&=~p}Zt(i),(pe&6)===0&&(Zi=mt()+500,An(0))}}break;case 31:case 13:d=Kl(i,2),d!==null&&dt(d,i,2),ki(),Uc(i,2)}if(i=Bc(a),i===null&&jc(e,t,a,cu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else jc(e,t,a,null,l)}}function Bc(e){return e=qu(e),Lc(e)}var cu=null;function Lc(e){if(cu=null,e=ca(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=y(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 cu=e,null}function h0(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(Dm()){case br:return 2;case Sr:return 8;case Fn:case Om:return 32;case jr:return 268435456;default:return 32}default:return 32}}var qc=!1,Ol=null,Ul=null,Hl=null,qn=new Map,Yn=new Map,Bl=[],Jx="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 x0(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function Gn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=ra(t),t!==null&&d0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function $x(e,t,l,a,n){switch(t){case"focusin":return Ol=Gn(Ol,e,t,l,a,n),!0;case"dragenter":return Ul=Gn(Ul,e,t,l,a,n),!0;case"mouseover":return Hl=Gn(Hl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return qn.set(i,Gn(qn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Yn.set(i,Gn(Yn.get(i)||null,e,t,l,a,n)),!0}return!1}function v0(e){var t=ca(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,_r(e.priority,function(){m0(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,_r(e.priority,function(){m0(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 ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Bc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Lu=a,l.target.dispatchEvent(a),Lu=null}else return t=ra(l),t!==null&&d0(t),e.blockedOn=l,!1;t.shift()}return!0}function g0(e,t,l){ru(e)&&l.delete(t)}function Wx(){qc=!1,Ol!==null&&ru(Ol)&&(Ol=null),Ul!==null&&ru(Ul)&&(Ul=null),Hl!==null&&ru(Hl)&&(Hl=null),qn.forEach(g0),Yn.forEach(g0)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,qc||(qc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wx)))}var fu=null;function p0(e){fu!==e&&(fu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){fu===e&&(fu=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(Lc(a||l)===null)continue;break}var i=ra(l);i!==null&&(e.splice(t,3),t-=3,Bs(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Za(e){function t(p){return ou(p,e)}Ol!==null&&ou(Ol,e),Ul!==null&&ou(Ul,e),Hl!==null&&ou(Hl,e),qn.forEach(t),Yn.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)v0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[ut]||null;if(typeof i=="function")c||p0(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ut]||null)d=c.formAction;else if(Lc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),p0(l)}}}function y0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,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 Yc(e){this._internalRoot=e}du.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=jt();o0(l,a,e,t,null,null)},du.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;o0(e.current,2,null,e,null,null),ki(),t[sa]=null}};function du(e){this._internalRoot=e}du.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&v0(e)}};var b0=o.version;if(b0!=="19.2.4")throw Error(r(527,b0,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=x(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var Fx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mu.isDisabled&&mu.supportsFiber)try{$a=mu.inject(Fx),ht=mu}catch{}}return Qn.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=Tf,i=_f,c=zf;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&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=c0(e,1,!1,null,null,l,a,null,n,i,c,y0),e[sa]=t.current,Sc(e),new Yc(t)},Qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",i=Tf,c=_f,d=zf,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=c0(e,1,!0,t,l??null,a,n,p,i,c,d,y0),t.context=r0(null),l=t.current,a=jt(),a=Cu(a),n=jl(a),n.callback=null,Nl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Zt(t),e[sa]=t.current,Sc(e),new du(t)},Qn.version="19.2.4",Qn}var C0;function uv(){if(C0)return Qc.exports;C0=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Qc.exports=iv(),Qc.exports}var sv=uv();const cv=nr(sv);/**
|
|
50
|
-
* react-router v7.13.0
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var M0="popstate";function rv(s={}){function o(m,h){let{pathname:v="/",search:y="",hash:g=""}=ua(m.location.hash.substring(1));return!v.startsWith("/")&&!v.startsWith(".")&&(v="/"+v),er("",{pathname:v,search:y,hash:g},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function f(m,h){let v=m.document.querySelector("base"),y="";if(v&&v.getAttribute("href")){let g=m.location.href,x=g.indexOf("#");y=x===-1?g:g.slice(0,x)}return y+"#"+(typeof h=="string"?h:Vn(h))}function r(m,h){Ot(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return fv(o,f,r,s)}function De(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function Ot(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function ov(){return Math.random().toString(36).substring(2,10)}function A0(s,o){return{usr:s.state,key:s.key,idx:o}}function er(s,o,f=null,r){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof o=="string"?ua(o):o,state:f,key:o&&o.key||r||ov()}}function Vn({pathname:s="/",search:o="",hash:f=""}){return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(s+=f.charAt(0)==="#"?f:"#"+f),s}function ua(s){let o={};if(s){let f=s.indexOf("#");f>=0&&(o.hash=s.substring(f),s=s.substring(0,f));let r=s.indexOf("?");r>=0&&(o.search=s.substring(r),s=s.substring(0,r)),s&&(o.pathname=s)}return o}function fv(s,o,f,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,v=m.history,y="POP",g=null,x=w();x==null&&(x=0,v.replaceState({...v.state,idx:x},""));function w(){return(v.state||{idx:null}).idx}function N(){y="POP";let L=w(),K=L==null?null:L-x;x=L,g&&g({action:y,location:Y.location,delta:K})}function B(L,K){y="PUSH";let q=er(Y.location,L,K);f&&f(q,L),x=w()+1;let G=A0(q,x),X=Y.createHref(q);try{v.pushState(G,"",X)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;m.location.assign(X)}h&&g&&g({action:y,location:Y.location,delta:1})}function U(L,K){y="REPLACE";let q=er(Y.location,L,K);f&&f(q,L),x=w();let G=A0(q,x),X=Y.createHref(q);v.replaceState(G,"",X),h&&g&&g({action:y,location:Y.location,delta:0})}function Q(L){return dv(L)}let Y={get action(){return y},get location(){return s(m,v)},listen(L){if(g)throw new Error("A history only accepts one active listener");return m.addEventListener(M0,N),g=L,()=>{m.removeEventListener(M0,N),g=null}},createHref(L){return o(m,L)},createURL:Q,encodeLocation(L){let K=Q(L);return{pathname:K.pathname,search:K.search,hash:K.hash}},push:B,replace:U,go(L){return v.go(L)}};return Y}function dv(s,o=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),De(f,"No window.location.(origin|href) available to create URL");let r=typeof s=="string"?s:Vn(s);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function $0(s,o,f="/"){return mv(s,o,f,!1)}function mv(s,o,f,r){let m=typeof o=="string"?ua(o):o,h=ml(m.pathname||"/",f);if(h==null)return null;let v=W0(s);hv(v);let y=null;for(let g=0;y==null&&g<v.length;++g){let x=wv(h);y=Nv(v[g],x,r)}return y}function W0(s,o=[],f=[],r="",m=!1){let h=(v,y,g=m,x)=>{let w={relativePath:x===void 0?v.path||"":x,caseSensitive:v.caseSensitive===!0,childrenIndex:y,route:v};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(r)&&g)return;De(w.relativePath.startsWith(r),`Absolute route path "${w.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(r.length)}let N=dl([r,w.relativePath]),B=f.concat(w);v.children&&v.children.length>0&&(De(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),W0(v.children,o,B,N,g)),!(v.path==null&&!v.index)&&o.push({path:N,score:Sv(N,v.index),routesMeta:B})};return s.forEach((v,y)=>{var g;if(v.path===""||!((g=v.path)!=null&&g.includes("?")))h(v,y);else for(let x of F0(v.path))h(v,y,!0,x)}),o}function F0(s){let o=s.split("/");if(o.length===0)return[];let[f,...r]=o,m=f.endsWith("?"),h=f.replace(/\?$/,"");if(r.length===0)return m?[h,""]:[h];let v=F0(r.join("/")),y=[];return y.push(...v.map(g=>g===""?h:[h,g].join("/"))),m&&y.push(...v),y.map(g=>s.startsWith("/")&&g===""?"/":g)}function hv(s){s.sort((o,f)=>o.score!==f.score?f.score-o.score:jv(o.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var xv=/^:[\w-]+$/,vv=3,gv=2,pv=1,yv=10,bv=-2,D0=s=>s==="*";function Sv(s,o){let f=s.split("/"),r=f.length;return f.some(D0)&&(r+=bv),o&&(r+=gv),f.filter(m=>!D0(m)).reduce((m,h)=>m+(xv.test(h)?vv:h===""?pv:yv),r)}function jv(s,o){return s.length===o.length&&s.slice(0,-1).every((r,m)=>r===o[m])?s[s.length-1]-o[o.length-1]:0}function Nv(s,o,f=!1){let{routesMeta:r}=s,m={},h="/",v=[];for(let y=0;y<r.length;++y){let g=r[y],x=y===r.length-1,w=h==="/"?o:o.slice(h.length)||"/",N=pu({path:g.relativePath,caseSensitive:g.caseSensitive,end:x},w),B=g.route;if(!N&&x&&f&&!r[r.length-1].route.index&&(N=pu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},w)),!N)return null;Object.assign(m,N.params),v.push({params:m,pathname:dl([h,N.pathname]),pathnameBase:zv(dl([h,N.pathnameBase])),route:B}),N.pathnameBase!=="/"&&(h=dl([h,N.pathnameBase]))}return v}function pu(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[f,r]=Ev(s.path,s.caseSensitive,s.end),m=o.match(f);if(!m)return null;let h=m[0],v=h.replace(/(.)\/+$/,"$1"),y=m.slice(1);return{params:r.reduce((x,{paramName:w,isOptional:N},B)=>{if(w==="*"){let Q=y[B]||"";v=h.slice(0,h.length-Q.length).replace(/(.)\/+$/,"$1")}const U=y[B];return N&&!U?x[w]=void 0:x[w]=(U||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:v,pattern:s}}function Ev(s,o=!1,f=!0){Ot(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],m="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,y,g)=>(r.push({paramName:y,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),m+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":s!==""&&s!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,o?void 0:"i"),r]}function wv(s){try{return s.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Ot(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),s}}function ml(s,o){if(o==="/")return s;if(!s.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,r=s.charAt(f);return r&&r!=="/"?null:s.slice(f)||"/"}var Rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Tv(s,o="/"){let{pathname:f,search:r="",hash:m=""}=typeof s=="string"?ua(s):s,h;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?h=O0(f.substring(1),"/"):h=O0(f,o)):h=o,{pathname:h,search:Cv(r),hash:Mv(m)}}function O0(s,o){let f=o.replace(/\/+$/,"").split("/");return s.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function Kc(s,o,f,r){return`Cannot include a '${s}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. 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 _v(s){return s.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function ur(s){let o=_v(s);return o.map((f,r)=>r===o.length-1?f.pathname:f.pathnameBase)}function sr(s,o,f,r=!1){let m;typeof s=="string"?m=ua(s):(m={...s},De(!m.pathname||!m.pathname.includes("?"),Kc("?","pathname","search",m)),De(!m.pathname||!m.pathname.includes("#"),Kc("#","pathname","hash",m)),De(!m.search||!m.search.includes("#"),Kc("#","search","hash",m)));let h=s===""||m.pathname==="",v=h?"/":m.pathname,y;if(v==null)y=f;else{let N=o.length-1;if(!r&&v.startsWith("..")){let B=v.split("/");for(;B[0]==="..";)B.shift(),N-=1;m.pathname=B.join("/")}y=N>=0?o[N]:"/"}let g=Tv(m,y),x=v&&v!=="/"&&v.endsWith("/"),w=(h||v===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(x||w)&&(g.pathname+="/"),g}var dl=s=>s.join("/").replace(/\/\/+/g,"/"),zv=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),Cv=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Mv=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,Av=class{constructor(s,o,f,r=!1){this.status=s,this.statusText=o||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Dv(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Ov(s){return s.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var P0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function I0(s,o){let f=s;if(typeof f!="string"||!Rv.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(P0)try{let h=new URL(window.location.href),v=f.startsWith("//")?new URL(h.protocol+f):new URL(f),y=ml(v.pathname,o);v.origin===h.origin&&y!=null?f=y+v.search+v.hash:m=!0}catch{Ot(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var em=["POST","PUT","PATCH","DELETE"];new Set(em);var Uv=["GET",...em];new Set(Uv);var ka=E.createContext(null);ka.displayName="DataRouter";var Su=E.createContext(null);Su.displayName="DataRouterState";var Hv=E.createContext(!1),tm=E.createContext({isTransitioning:!1});tm.displayName="ViewTransition";var Bv=E.createContext(new Map);Bv.displayName="Fetchers";var Lv=E.createContext(null);Lv.displayName="Await";var Nt=E.createContext(null);Nt.displayName="Navigation";var kn=E.createContext(null);kn.displayName="Location";var kt=E.createContext({outlet:null,matches:[],isDataRoute:!1});kt.displayName="Route";var cr=E.createContext(null);cr.displayName="RouteError";var lm="REACT_ROUTER_ERROR",qv="REDIRECT",Yv="ROUTE_ERROR_RESPONSE";function Gv(s){if(s.startsWith(`${lm}:${qv}:{`))try{let o=JSON.parse(s.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function Xv(s){if(s.startsWith(`${lm}:${Yv}:{`))try{let o=JSON.parse(s.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Av(o.status,o.statusText,o.data)}catch{}}function Qv(s,{relative:o}={}){De(Ka(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=E.useContext(Nt),{hash:m,pathname:h,search:v}=Kn(s,{relative:o}),y=h;return f!=="/"&&(y=h==="/"?f:dl([f,h])),r.createHref({pathname:y,search:v,hash:m})}function Ka(){return E.useContext(kn)!=null}function Yl(){return De(Ka(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(kn).location}var am="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nm(s){E.useContext(Nt).static||E.useLayoutEffect(s)}function rr(){let{isDataRoute:s}=E.useContext(kt);return s?lg():Zv()}function Zv(){De(Ka(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(ka),{basename:o,navigator:f}=E.useContext(Nt),{matches:r}=E.useContext(kt),{pathname:m}=Yl(),h=JSON.stringify(ur(r)),v=E.useRef(!1);return nm(()=>{v.current=!0}),E.useCallback((g,x={})=>{if(Ot(v.current,am),!v.current)return;if(typeof g=="number"){f.go(g);return}let w=sr(g,JSON.parse(h),m,x.relative==="path");s==null&&o!=="/"&&(w.pathname=w.pathname==="/"?o:dl([o,w.pathname])),(x.replace?f.replace:f.push)(w,x.state,x)},[o,f,h,m,s])}E.createContext(null);function Kn(s,{relative:o}={}){let{matches:f}=E.useContext(kt),{pathname:r}=Yl(),m=JSON.stringify(ur(f));return E.useMemo(()=>sr(s,JSON.parse(m),r,o==="path"),[s,m,r,o])}function Vv(s,o){return im(s,o)}function im(s,o,f,r,m){var q;De(Ka(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=E.useContext(Nt),{matches:v}=E.useContext(kt),y=v[v.length-1],g=y?y.params:{},x=y?y.pathname:"/",w=y?y.pathnameBase:"/",N=y&&y.route;{let G=N&&N.path||"";sm(x,!N||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${G}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let B=Yl(),U;if(o){let G=typeof o=="string"?ua(o):o;De(w==="/"||((q=G.pathname)==null?void 0:q.startsWith(w)),`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 "${w}" but pathname "${G.pathname}" was given in the \`location\` prop.`),U=G}else U=B;let Q=U.pathname||"/",Y=Q;if(w!=="/"){let G=w.replace(/^\//,"").split("/");Y="/"+Q.replace(/^\//,"").split("/").slice(G.length).join("/")}let L=$0(s,{pathname:Y});Ot(N||L!=null,`No routes matched location "${U.pathname}${U.search}${U.hash}" `),Ot(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 "${U.pathname}${U.search}${U.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let K=Wv(L&&L.map(G=>Object.assign({},G,{params:Object.assign({},g,G.params),pathname:dl([w,h.encodeLocation?h.encodeLocation(G.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?w:dl([w,h.encodeLocation?h.encodeLocation(G.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),v,f,r,m);return o&&K?E.createElement(kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...U},navigationType:"POP"}},K):K}function kv(){let s=tg(),o=Dv(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),f=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",s),v=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:h},"ErrorBoundary")," or"," ",E.createElement("code",{style:h},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),f?E.createElement("pre",{style:m},f):null,v)}var Kv=E.createElement(kv,null),um=class extends E.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,o){return o.location!==s.location||o.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:o.error,location:o.location,revalidation:s.revalidation||o.revalidation}}componentDidCatch(s,o){this.props.onError?this.props.onError(s,o):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const f=Xv(s.digest);f&&(s=f)}let o=s!==void 0?E.createElement(kt.Provider,{value:this.props.routeContext},E.createElement(cr.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(Jv,{error:s},o):o}};um.contextType=Hv;var Jc=new WeakMap;function Jv({children:s,error:o}){let{basename:f}=E.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=Gv(o.digest);if(r){let m=Jc.get(o);if(m)throw m;let h=I0(r.location,f);if(P0&&!Jc.get(o))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw Jc.set(o,v),v}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return s}function $v({routeContext:s,match:o,children:f}){let r=E.useContext(ka);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(kt.Provider,{value:s},f)}function Wv(s,o=[],f=null,r=null,m=null){if(s==null){if(!f)return null;if(f.errors)s=f.matches;else if(o.length===0&&!f.initialized&&f.matches.length>0)s=f.matches;else return null}let h=s,v=f==null?void 0:f.errors;if(v!=null){let w=h.findIndex(N=>N.route.id&&(v==null?void 0:v[N.route.id])!==void 0);De(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),h=h.slice(0,Math.min(h.length,w+1))}let y=!1,g=-1;if(f)for(let w=0;w<h.length;w++){let N=h[w];if((N.route.HydrateFallback||N.route.hydrateFallbackElement)&&(g=w),N.route.id){let{loaderData:B,errors:U}=f,Q=N.route.loader&&!B.hasOwnProperty(N.route.id)&&(!U||U[N.route.id]===void 0);if(N.route.lazy||Q){y=!0,g>=0?h=h.slice(0,g+1):h=[h[0]];break}}}let x=f&&r?(w,N)=>{var B,U;r(w,{location:f.location,params:((U=(B=f.matches)==null?void 0:B[0])==null?void 0:U.params)??{},unstable_pattern:Ov(f.matches),errorInfo:N})}:void 0;return h.reduceRight((w,N,B)=>{let U,Q=!1,Y=null,L=null;f&&(U=v&&N.route.id?v[N.route.id]:void 0,Y=N.route.errorElement||Kv,y&&(g<0&&B===0?(sm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Q=!0,L=null):g===B&&(Q=!0,L=N.route.hydrateFallbackElement||null)));let K=o.concat(h.slice(0,B+1)),q=()=>{let G;return U?G=Y:Q?G=L:N.route.Component?G=E.createElement(N.route.Component,null):N.route.element?G=N.route.element:G=w,E.createElement($v,{match:N,routeContext:{outlet:w,matches:K,isDataRoute:f!=null},children:G})};return f&&(N.route.ErrorBoundary||N.route.errorElement||B===0)?E.createElement(um,{location:f.location,revalidation:f.revalidation,component:Y,error:U,children:q(),routeContext:{outlet:null,matches:K,isDataRoute:!0},onError:x}):q()},null)}function or(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fv(s){let o=E.useContext(ka);return De(o,or(s)),o}function Pv(s){let o=E.useContext(Su);return De(o,or(s)),o}function Iv(s){let o=E.useContext(kt);return De(o,or(s)),o}function fr(s){let o=Iv(s),f=o.matches[o.matches.length-1];return De(f.route.id,`${s} can only be used on routes that contain a unique "id"`),f.route.id}function eg(){return fr("useRouteId")}function tg(){var r;let s=E.useContext(cr),o=Pv("useRouteError"),f=fr("useRouteError");return s!==void 0?s:(r=o.errors)==null?void 0:r[f]}function lg(){let{router:s}=Fv("useNavigate"),o=fr("useNavigate"),f=E.useRef(!1);return nm(()=>{f.current=!0}),E.useCallback(async(m,h={})=>{Ot(f.current,am),f.current&&(typeof m=="number"?await s.navigate(m):await s.navigate(m,{fromRouteId:o,...h}))},[s,o])}var U0={};function sm(s,o,f){!o&&!U0[s]&&(U0[s]=!0,Ot(!1,f))}E.memo(ag);function ag({routes:s,future:o,state:f,onError:r}){return im(s,void 0,f,r,o)}function ng({to:s,replace:o,state:f,relative:r}){De(Ka(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=E.useContext(Nt);Ot(!m,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=E.useContext(kt),{pathname:v}=Yl(),y=rr(),g=sr(s,ur(h),v,r==="path"),x=JSON.stringify(g);return E.useEffect(()=>{y(JSON.parse(x),{replace:o,state:f,relative:r})},[y,x,r,o,f]),null}function fl(s){De(!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 ig({basename:s="/",children:o=null,location:f,navigationType:r="POP",navigator:m,static:h=!1,unstable_useTransitions:v}){De(!Ka(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=s.replace(/^\/*/,"/"),g=E.useMemo(()=>({basename:y,navigator:m,static:h,unstable_useTransitions:v,future:{}}),[y,m,h,v]);typeof f=="string"&&(f=ua(f));let{pathname:x="/",search:w="",hash:N="",state:B=null,key:U="default"}=f,Q=E.useMemo(()=>{let Y=ml(x,y);return Y==null?null:{location:{pathname:Y,search:w,hash:N,state:B,key:U},navigationType:r}},[y,x,w,N,B,U,r]);return Ot(Q!=null,`<Router basename="${y}"> is not able to match the URL "${x}${w}${N}" because it does not start with the basename, so the <Router> won't render anything.`),Q==null?null:E.createElement(Nt.Provider,{value:g},E.createElement(kn.Provider,{children:o,value:Q}))}function ug({children:s,location:o}){return Vv(tr(s),o)}function tr(s,o=[]){let f=[];return E.Children.forEach(s,(r,m)=>{if(!E.isValidElement(r))return;let h=[...o,m];if(r.type===E.Fragment){f.push.apply(f,tr(r.props.children,h));return}De(r.type===fl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),De(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||h.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(v.children=tr(r.props.children,h)),f.push(v)}),f}var vu="get",gu="application/x-www-form-urlencoded";function ju(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function sg(s){return ju(s)&&s.tagName.toLowerCase()==="button"}function cg(s){return ju(s)&&s.tagName.toLowerCase()==="form"}function rg(s){return ju(s)&&s.tagName.toLowerCase()==="input"}function og(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function fg(s,o){return s.button===0&&(!o||o==="_self")&&!og(s)}var hu=null;function dg(){if(hu===null)try{new FormData(document.createElement("form"),0),hu=!1}catch{hu=!0}return hu}var mg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $c(s){return s!=null&&!mg.has(s)?(Ot(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gu}"`),null):s}function hg(s,o){let f,r,m,h,v;if(cg(s)){let y=s.getAttribute("action");r=y?ml(y,o):null,f=s.getAttribute("method")||vu,m=$c(s.getAttribute("enctype"))||gu,h=new FormData(s)}else if(sg(s)||rg(s)&&(s.type==="submit"||s.type==="image")){let y=s.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=s.getAttribute("formaction")||y.getAttribute("action");if(r=g?ml(g,o):null,f=s.getAttribute("formmethod")||y.getAttribute("method")||vu,m=$c(s.getAttribute("formenctype"))||$c(y.getAttribute("enctype"))||gu,h=new FormData(y,s),!dg()){let{name:x,type:w,value:N}=s;if(w==="image"){let B=x?`${x}.`:"";h.append(`${B}x`,"0"),h.append(`${B}y`,"0")}else x&&h.append(x,N)}}else{if(ju(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=vu,r=null,m=gu,v=s}return h&&m==="text/plain"&&(v=h,h=void 0),{action:r,method:f.toLowerCase(),encType:m,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function dr(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function xg(s,o,f,r){let m=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:o&&ml(m.pathname,o)==="/"?m.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function vg(s,o){if(s.id in o)return o[s.id];try{let f=await import(s.module);return o[s.id]=f,f}catch(f){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gg(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function pg(s,o,f){let r=await Promise.all(s.map(async m=>{let h=o.routes[m.route.id];if(h){let v=await vg(h,f);return v.links?v.links():[]}return[]}));return jg(r.flat(1).filter(gg).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function H0(s,o,f,r,m,h){let v=(g,x)=>f[x]?g.route.id!==f[x].route.id:!0,y=(g,x)=>{var w;return f[x].pathname!==g.pathname||((w=f[x].route.path)==null?void 0:w.endsWith("*"))&&f[x].params["*"]!==g.params["*"]};return h==="assets"?o.filter((g,x)=>v(g,x)||y(g,x)):h==="data"?o.filter((g,x)=>{var N;let w=r.routes[g.route.id];if(!w||!w.hasLoader)return!1;if(v(g,x)||y(g,x))return!0;if(g.route.shouldRevalidate){let B=g.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((N=f[0])==null?void 0:N.params)||{},nextUrl:new URL(s,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof B=="boolean")return B}return!0}):[]}function yg(s,o,{includeHydrateFallback:f}={}){return bg(s.map(r=>{let m=o.routes[r.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 bg(s){return[...new Set(s)]}function Sg(s){let o={},f=Object.keys(s).sort();for(let r of f)o[r]=s[r];return o}function jg(s,o){let f=new Set;return new Set(o),s.reduce((r,m)=>{let h=JSON.stringify(Sg(m));return f.has(h)||(f.add(h),r.push({key:h,link:m})),r},[])}function cm(){let s=E.useContext(ka);return dr(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function Ng(){let s=E.useContext(Su);return dr(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var mr=E.createContext(void 0);mr.displayName="FrameworkContext";function rm(){let s=E.useContext(mr);return dr(s,"You must render this element inside a <HydratedRouter> element"),s}function Eg(s,o){let f=E.useContext(mr),[r,m]=E.useState(!1),[h,v]=E.useState(!1),{onFocus:y,onBlur:g,onMouseEnter:x,onMouseLeave:w,onTouchStart:N}=o,B=E.useRef(null);E.useEffect(()=>{if(s==="render"&&v(!0),s==="viewport"){let Y=K=>{K.forEach(q=>{v(q.isIntersecting)})},L=new IntersectionObserver(Y,{threshold:.5});return B.current&&L.observe(B.current),()=>{L.disconnect()}}},[s]),E.useEffect(()=>{if(r){let Y=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(Y)}}},[r]);let U=()=>{m(!0)},Q=()=>{m(!1),v(!1)};return f?s!=="intent"?[h,B,{}]:[h,B,{onFocus:Zn(y,U),onBlur:Zn(g,Q),onMouseEnter:Zn(x,U),onMouseLeave:Zn(w,Q),onTouchStart:Zn(N,U)}]:[!1,B,{}]}function Zn(s,o){return f=>{s&&s(f),f.defaultPrevented||o(f)}}function wg({page:s,...o}){let{router:f}=cm(),r=E.useMemo(()=>$0(f.routes,s,f.basename),[f.routes,s,f.basename]);return r?E.createElement(Tg,{page:s,matches:r,...o}):null}function Rg(s){let{manifest:o,routeModules:f}=rm(),[r,m]=E.useState([]);return E.useEffect(()=>{let h=!1;return pg(s,o,f).then(v=>{h||m(v)}),()=>{h=!0}},[s,o,f]),r}function Tg({page:s,matches:o,...f}){let r=Yl(),{future:m,manifest:h,routeModules:v}=rm(),{basename:y}=cm(),{loaderData:g,matches:x}=Ng(),w=E.useMemo(()=>H0(s,o,x,h,r,"data"),[s,o,x,h,r]),N=E.useMemo(()=>H0(s,o,x,h,r,"assets"),[s,o,x,h,r]),B=E.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let Y=new Set,L=!1;if(o.forEach(q=>{var X;let G=h.routes[q.route.id];!G||!G.hasLoader||(!w.some(W=>W.route.id===q.route.id)&&q.route.id in g&&((X=v[q.route.id])!=null&&X.shouldRevalidate)||G.hasClientLoader?L=!0:Y.add(q.route.id))}),Y.size===0)return[];let K=xg(s,y,m.unstable_trailingSlashAwareDataRequests,"data");return L&&Y.size>0&&K.searchParams.set("_routes",o.filter(q=>Y.has(q.route.id)).map(q=>q.route.id).join(",")),[K.pathname+K.search]},[y,m.unstable_trailingSlashAwareDataRequests,g,r,h,w,o,s,v]),U=E.useMemo(()=>yg(N,h),[N,h]),Q=Rg(N);return E.createElement(E.Fragment,null,B.map(Y=>E.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...f})),U.map(Y=>E.createElement("link",{key:Y,rel:"modulepreload",href:Y,...f})),Q.map(({key:Y,link:L})=>E.createElement("link",{key:Y,nonce:f.nonce,...L,crossOrigin:L.crossOrigin??f.crossOrigin})))}function _g(...s){return o=>{s.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var zg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zg&&(window.__reactRouterVersion="7.13.0")}catch{}function Cg({basename:s,children:o,unstable_useTransitions:f,window:r}){let m=E.useRef();m.current==null&&(m.current=rv({window:r,v5Compat:!0}));let h=m.current,[v,y]=E.useState({action:h.action,location:h.location}),g=E.useCallback(x=>{f===!1?y(x):E.startTransition(()=>y(x))},[f]);return E.useLayoutEffect(()=>h.listen(g),[h,g]),E.createElement(ig,{basename:s,children:o,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:f})}var om=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fm=E.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:h,replace:v,state:y,target:g,to:x,preventScrollReset:w,viewTransition:N,unstable_defaultShouldRevalidate:B,...U},Q){let{basename:Y,unstable_useTransitions:L}=E.useContext(Nt),K=typeof x=="string"&&om.test(x),q=I0(x,Y);x=q.to;let G=Qv(x,{relative:m}),[X,W,I]=Eg(r,U),te=Dg(x,{replace:v,state:y,target:g,preventScrollReset:w,relative:m,viewTransition:N,unstable_defaultShouldRevalidate:B,unstable_useTransitions:L});function C(Z){o&&o(Z),Z.defaultPrevented||te(Z)}let J=E.createElement("a",{...U,...I,href:q.absoluteURL||G,onClick:q.isExternal||h?o:C,ref:_g(Q,W),target:g,"data-discover":!K&&f==="render"?"true":void 0});return X&&!K?E.createElement(E.Fragment,null,J,E.createElement(wg,{page:G})):J});fm.displayName="Link";var dm=E.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:h,to:v,viewTransition:y,children:g,...x},w){let N=Kn(v,{relative:x.relative}),B=Yl(),U=E.useContext(Su),{navigator:Q,basename:Y}=E.useContext(Nt),L=U!=null&&Lg(N)&&y===!0,K=Q.encodeLocation?Q.encodeLocation(N).pathname:N.pathname,q=B.pathname,G=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;f||(q=q.toLowerCase(),G=G?G.toLowerCase():null,K=K.toLowerCase()),G&&Y&&(G=ml(G,Y)||G);const X=K!=="/"&&K.endsWith("/")?K.length-1:K.length;let W=q===K||!m&&q.startsWith(K)&&q.charAt(X)==="/",I=G!=null&&(G===K||!m&&G.startsWith(K)&&G.charAt(K.length)==="/"),te={isActive:W,isPending:I,isTransitioning:L},C=W?o:void 0,J;typeof r=="function"?J=r(te):J=[r,W?"active":null,I?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let Z=typeof h=="function"?h(te):h;return E.createElement(fm,{...x,"aria-current":C,className:J,ref:w,style:Z,to:v,viewTransition:y},typeof g=="function"?g(te):g)});dm.displayName="NavLink";var Mg=E.forwardRef(({discover:s="render",fetcherKey:o,navigate:f,reloadDocument:r,replace:m,state:h,method:v=vu,action:y,onSubmit:g,relative:x,preventScrollReset:w,viewTransition:N,unstable_defaultShouldRevalidate:B,...U},Q)=>{let{unstable_useTransitions:Y}=E.useContext(Nt),L=Hg(),K=Bg(y,{relative:x}),q=v.toLowerCase()==="get"?"get":"post",G=typeof y=="string"&&om.test(y),X=W=>{if(g&&g(W),W.defaultPrevented)return;W.preventDefault();let I=W.nativeEvent.submitter,te=(I==null?void 0:I.getAttribute("formmethod"))||v,C=()=>L(I||W.currentTarget,{fetcherKey:o,method:te,navigate:f,replace:m,state:h,relative:x,preventScrollReset:w,viewTransition:N,unstable_defaultShouldRevalidate:B});Y&&f!==!1?E.startTransition(()=>C()):C()};return E.createElement("form",{ref:Q,method:q,action:K,onSubmit:r?g:X,...U,"data-discover":!G&&s==="render"?"true":void 0})});Mg.displayName="Form";function Ag(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mm(s){let o=E.useContext(ka);return De(o,Ag(s)),o}function Dg(s,{target:o,replace:f,state:r,preventScrollReset:m,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:y,unstable_useTransitions:g}={}){let x=rr(),w=Yl(),N=Kn(s,{relative:h});return E.useCallback(B=>{if(fg(B,o)){B.preventDefault();let U=f!==void 0?f:Vn(w)===Vn(N),Q=()=>x(s,{replace:U,state:r,preventScrollReset:m,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:y});g?E.startTransition(()=>Q()):Q()}},[w,x,N,f,r,o,s,m,h,v,y,g])}var Og=0,Ug=()=>`__${String(++Og)}__`;function Hg(){let{router:s}=mm("useSubmit"),{basename:o}=E.useContext(Nt),f=eg(),r=s.fetch,m=s.navigate;return E.useCallback(async(h,v={})=>{let{action:y,method:g,encType:x,formData:w,body:N}=hg(h,o);if(v.navigate===!1){let B=v.fetcherKey||Ug();await r(B,f,v.action||y,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:w,body:N,formMethod:v.method||g,formEncType:v.encType||x,flushSync:v.flushSync})}else await m(v.action||y,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:w,body:N,formMethod:v.method||g,formEncType:v.encType||x,replace:v.replace,state:v.state,fromRouteId:f,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,m,o,f])}function Bg(s,{relative:o}={}){let{basename:f}=E.useContext(Nt),r=E.useContext(kt);De(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),h={...Kn(s||".",{relative:o})},v=Yl();if(s==null){h.search=v.search;let y=new URLSearchParams(h.search),g=y.getAll("index");if(g.some(w=>w==="")){y.delete("index"),g.filter(N=>N).forEach(N=>y.append("index",N));let w=y.toString();h.search=w?`?${w}`:""}}return(!s||s===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(h.pathname=h.pathname==="/"?f:dl([f,h.pathname])),Vn(h)}function Lg(s,{relative:o}={}){let f=E.useContext(tm);De(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mm("useViewTransitionState"),m=Kn(s,{relative:o});if(!f.isTransitioning)return!1;let h=ml(f.currentLocation.pathname,r)||f.currentLocation.pathname,v=ml(f.nextLocation.pathname,r)||f.nextLocation.pathname;return pu(m.pathname,v)!=null||pu(m.pathname,h)!=null}var qg=J0();const Yg=nr(qg);/**
|
|
61
|
-
* @license lucide-react v0.564.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const hm=(...s)=>s.filter((o,f,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===f).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.564.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const Gg=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
71
|
-
* @license lucide-react v0.564.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Xg=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,f,r)=>r?r.toUpperCase():f.toLowerCase());/**
|
|
76
|
-
* @license lucide-react v0.564.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const B0=s=>{const o=Xg(s);return o.charAt(0).toUpperCase()+o.slice(1)};/**
|
|
81
|
-
* @license lucide-react v0.564.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/var Qg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
86
|
-
* @license lucide-react v0.564.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const Zg=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};/**
|
|
91
|
-
* @license lucide-react v0.564.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const Vg=E.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:m="",children:h,iconNode:v,...y},g)=>E.createElement("svg",{ref:g,...Qg,width:o,height:o,stroke:s,strokeWidth:r?Number(f)*24/Number(o):f,className:hm("lucide",m),...!h&&!Zg(y)&&{"aria-hidden":"true"},...y},[...v.map(([x,w])=>E.createElement(x,w)),...Array.isArray(h)?h:[h]]));/**
|
|
96
|
-
* @license lucide-react v0.564.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const ue=(s,o)=>{const f=E.forwardRef(({className:r,...m},h)=>E.createElement(Vg,{ref:h,iconNode:o,className:hm(`lucide-${Gg(B0(s))}`,`lucide-${s}`,r),...m}));return f.displayName=B0(s),f};/**
|
|
101
|
-
* @license lucide-react v0.564.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const kg=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],xm=ue("activity",kg);/**
|
|
106
|
-
* @license lucide-react v0.564.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const Kg=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Jg=ue("arrow-down",Kg);/**
|
|
111
|
-
* @license lucide-react v0.564.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const $g=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],L0=ue("arrow-right",$g);/**
|
|
116
|
-
* @license lucide-react v0.564.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const Wg=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Fg=ue("arrow-up-down",Wg);/**
|
|
121
|
-
* @license lucide-react v0.564.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const Pg=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]],Ig=ue("arrow-up-narrow-wide",Pg);/**
|
|
126
|
-
* @license lucide-react v0.564.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const ep=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],tp=ue("arrow-up",ep);/**
|
|
131
|
-
* @license lucide-react v0.564.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const lp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],ap=ue("bell",lp);/**
|
|
136
|
-
* @license lucide-react v0.564.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const np=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],q0=ue("briefcase",np);/**
|
|
141
|
-
* @license lucide-react v0.564.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const ip=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],yu=ue("calendar",ip);/**
|
|
146
|
-
* @license lucide-react v0.564.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const up=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wc=ue("check",up);/**
|
|
151
|
-
* @license lucide-react v0.564.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const sp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cp=ue("chevron-down",sp);/**
|
|
156
|
-
* @license lucide-react v0.564.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const rp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],op=ue("chevron-left",rp);/**
|
|
161
|
-
* @license lucide-react v0.564.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const fp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dp=ue("chevron-right",fp);/**
|
|
166
|
-
* @license lucide-react v0.564.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const mp=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],hp=ue("chevrons-up-down",mp);/**
|
|
171
|
-
* @license lucide-react v0.564.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const xp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Vt=ue("circle-alert",xp);/**
|
|
176
|
-
* @license lucide-react v0.564.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const vp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]],Y0=ue("circle-arrow-down",vp);/**
|
|
181
|
-
* @license lucide-react v0.564.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const gp=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Jn=ue("circle-check-big",gp);/**
|
|
186
|
-
* @license lucide-react v0.564.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const pp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],yp=ue("circle-question-mark",pp);/**
|
|
191
|
-
* @license lucide-react v0.564.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const bp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],lr=ue("circle-x",bp);/**
|
|
196
|
-
* @license lucide-react v0.564.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const Sp=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bu=ue("clock",Sp);/**
|
|
201
|
-
* @license lucide-react v0.564.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const jp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Np=ue("ellipsis-vertical",jp);/**
|
|
206
|
-
* @license lucide-react v0.564.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const Ep=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],wp=ue("external-link",Ep);/**
|
|
211
|
-
* @license lucide-react v0.564.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const Rp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],vm=ue("file-text",Rp);/**
|
|
216
|
-
* @license lucide-react v0.564.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const Tp=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],_p=ue("git-pull-request",Tp);/**
|
|
221
|
-
* @license lucide-react v0.564.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const zp=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Cp=ue("house",zp);/**
|
|
226
|
-
* @license lucide-react v0.564.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const Mp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ap=ue("info",Mp);/**
|
|
231
|
-
* @license lucide-react v0.564.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const Dp=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Op=ue("layout-grid",Dp);/**
|
|
236
|
-
* @license lucide-react v0.564.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const Up=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]],G0=ue("layout-list",Up);/**
|
|
241
|
-
* @license lucide-react v0.564.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const Hp=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],gm=ue("loader-circle",Hp);/**
|
|
246
|
-
* @license lucide-react v0.564.0 - ISC
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the ISC license.
|
|
249
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/const Bp=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],pm=ue("map",Bp);/**
|
|
251
|
-
* @license lucide-react v0.564.0 - ISC
|
|
252
|
-
*
|
|
253
|
-
* This source code is licensed under the ISC license.
|
|
254
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
-
*/const Lp=[["path",{d:"M5 12h14",key:"1ays0h"}]],qp=ue("minus",Lp);/**
|
|
256
|
-
* @license lucide-react v0.564.0 - ISC
|
|
257
|
-
*
|
|
258
|
-
* This source code is licensed under the ISC license.
|
|
259
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/const Yp=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],ym=ue("pause",Yp);/**
|
|
261
|
-
* @license lucide-react v0.564.0 - ISC
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the ISC license.
|
|
264
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/const Gp=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],$n=ue("play",Gp);/**
|
|
266
|
-
* @license lucide-react v0.564.0 - ISC
|
|
267
|
-
*
|
|
268
|
-
* This source code is licensed under the ISC license.
|
|
269
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const Xp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qp=ue("plus",Xp);/**
|
|
271
|
-
* @license lucide-react v0.564.0 - ISC
|
|
272
|
-
*
|
|
273
|
-
* This source code is licensed under the ISC license.
|
|
274
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
-
*/const Zp=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],bm=ue("rotate-ccw",Zp);/**
|
|
276
|
-
* @license lucide-react v0.564.0 - ISC
|
|
277
|
-
*
|
|
278
|
-
* This source code is licensed under the ISC license.
|
|
279
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
-
*/const Vp=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],kp=ue("save",Vp);/**
|
|
281
|
-
* @license lucide-react v0.564.0 - ISC
|
|
282
|
-
*
|
|
283
|
-
* This source code is licensed under the ISC license.
|
|
284
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
-
*/const Kp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],hr=ue("search",Kp);/**
|
|
286
|
-
* @license lucide-react v0.564.0 - ISC
|
|
287
|
-
*
|
|
288
|
-
* This source code is licensed under the ISC license.
|
|
289
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
-
*/const Jp=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Sm=ue("settings",Jp);/**
|
|
291
|
-
* @license lucide-react v0.564.0 - ISC
|
|
292
|
-
*
|
|
293
|
-
* This source code is licensed under the ISC license.
|
|
294
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
-
*/const $p=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Wp=ue("square-pen",$p);/**
|
|
296
|
-
* @license lucide-react v0.564.0 - ISC
|
|
297
|
-
*
|
|
298
|
-
* This source code is licensed under the ISC license.
|
|
299
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
-
*/const Fp=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Pp=ue("terminal",Fp);/**
|
|
301
|
-
* @license lucide-react v0.564.0 - ISC
|
|
302
|
-
*
|
|
303
|
-
* This source code is licensed under the ISC license.
|
|
304
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
-
*/const Ip=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ey=ue("triangle-alert",Ip);/**
|
|
306
|
-
* @license lucide-react v0.564.0 - ISC
|
|
307
|
-
*
|
|
308
|
-
* This source code is licensed under the ISC license.
|
|
309
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
-
*/const ty=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],ly=ue("wifi",ty);/**
|
|
311
|
-
* @license lucide-react v0.564.0 - ISC
|
|
312
|
-
*
|
|
313
|
-
* This source code is licensed under the ISC license.
|
|
314
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
315
|
-
*/const ay=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],jm=ue("x",ay),X0=s=>{let o;const f=new Set,r=(x,w)=>{const N=typeof x=="function"?x(o):x;if(!Object.is(N,o)){const B=o;o=w??(typeof N!="object"||N===null)?N:Object.assign({},o,N),f.forEach(U=>U(o,B))}},m=()=>o,y={setState:r,getState:m,getInitialState:()=>g,subscribe:x=>(f.add(x),()=>f.delete(x))},g=o=s(r,m,y);return y},ny=s=>s?X0(s):X0,iy=s=>s;function uy(s,o=iy){const f=Lt.useSyncExternalStore(s.subscribe,()=>o(s.getState()),()=>o(s.getInitialState()));return Lt.useDebugValue(f),f}const Q0=s=>{const o=ny(s),f=r=>uy(o,r);return Object.assign(f,o),f},sy=s=>s?Q0(s):Q0,cy="";let Nm=!1,ar=null;function ry(s){Nm=s}function oy(s){ar=s}function fy(s){return encodeURIComponent(s.replace(/\//g,"~"))}function ke(s){return Nm&&ar?s.replace("/api/",`/api/projects/${fy(ar)}/`):s}function dy(){return Ke("/api/projects")}async function Ke(s,o){const f=`${cy}${s}`,r=await fetch(f,{headers:{"Content-Type":"application/json",...o==null?void 0:o.headers},...o});if(!r.ok){const m=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(m.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function Em(){return Ke(ke("/api/status"))}function my(){return Ke(ke("/api/prds"))}function hy(){return Ke(ke("/api/prs"))}function xy(s,o){const f=`?lines=${encodeURIComponent(o)}`;return Ke(ke(`/api/logs/${encodeURIComponent(s)}${f}`))}function wm(){return Ke(ke("/api/config"))}function Rm(s){return Ke(ke("/api/config"),{method:"PUT",body:JSON.stringify(s)})}function vy(){return Ke(ke("/api/doctor"))}function Tm(){return Ke(ke("/api/schedule-info"))}function gy(s){return Ke(ke("/api/actions/run"),{method:"POST",headers:s?{"Content-Type":"application/json"}:void 0,body:s?JSON.stringify({prdName:s}):void 0})}function py(){return Ke(ke("/api/actions/review"),{method:"POST"})}function Z0(){return Ke(ke("/api/actions/install-cron"),{method:"POST"})}function yy(){return Ke(ke("/api/actions/uninstall-cron"),{method:"POST"})}function by(s="all"){return Ke(ke("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:s})})}function Sy(s){return Ke(ke("/api/actions/retry"),{method:"POST",body:JSON.stringify({prdName:s})})}function jy(){return Ke(ke("/api/actions/clear-lock"),{method:"POST"})}function Ny(){return Ke(ke("/api/roadmap"))}function Ey(){return Ke(ke("/api/roadmap/scan"),{method:"POST"})}function wy(s){return Ke(ke("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:s})})}function qt(s,o=[],f){const r=(f==null?void 0:f.enabled)??!0,[m,h]=E.useState(null),[v,y]=E.useState(!0),[g,x]=E.useState(null),w=E.useRef(s);w.current=s;const N=E.useRef(()=>{(async()=>{x(null);try{const U=await w.current();h(U)}catch(U){x(U instanceof Error?U:new Error("Unknown error"))}})()});return N.current=N.current.bind(N),E.useEffect(()=>{if(!r)return;let B=!1;return y(!0),x(null),(async()=>{try{const Q=await w.current();B||h(Q)}catch(Q){B||x(Q instanceof Error?Q:new Error("Unknown error"))}finally{B||y(!1)}})(),()=>{B=!0}},[...o,r]),{data:m,loading:v,error:g,refetch:N.current}}function _m(s,o=[]){E.useEffect(()=>{const f=ke("/api/status/events"),r=new EventSource(f);return r.addEventListener("status_changed",m=>{try{const h=JSON.parse(m.data);s(h)}catch{}}),r.addEventListener("executor_started",m=>{try{const h=JSON.parse(m.data);console.log("Executor started with PID:",h.pid)}catch{}}),r.onerror=()=>{},()=>{r.close()}},o)}const Ry=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Yt=sy(s=>({projectName:"Night Watch",setProjectName:o=>s({projectName:o}),toasts:[],addToast:o=>{const f=Math.random().toString(36).substring(7);s(r=>({toasts:[...r.toasts,{...o,id:f}]})),setTimeout(()=>{s(r=>({toasts:r.toasts.filter(m=>m.id!==f)}))},5e3)},removeToast:o=>s(f=>({toasts:f.toasts.filter(r=>r.id!==o)})),globalModeLoading:!0,setGlobalModeLoading:o=>s({globalModeLoading:o}),isGlobalMode:!1,setGlobalMode:o=>{ry(o),s({isGlobalMode:o})},projects:[],setProjects:o=>s({projects:o}),selectedProjectId:Ry,selectProject:o=>{oy(o),o?localStorage.setItem("nw-selected-project",o):localStorage.removeItem("nw-selected-project"),s(f=>{const r=f.projects.find(m=>m.name===o);return{selectedProjectId:o,...r?{projectName:r.name}:{}}})}})),Ty=()=>{const[s,o]=E.useState(!1),{projectName:f,isGlobalMode:r,projects:m,selectedProjectId:h,selectProject:v}=Yt(),y=[{icon:Cp,label:"Dashboard",path:"/"},{icon:vm,label:"PRDs",path:"/prds",badge:3},{icon:_p,label:"Pull Requests",path:"/prs",badge:1},{icon:pm,label:"Roadmap",path:"/roadmap"},{icon:yu,label:"Scheduling",path:"/scheduling"},{icon:Pp,label:"Logs",path:"/logs"},{icon:Sm,label:"Settings",path:"/settings"}];return u.jsxs("aside",{className:`
|
|
316
|
-
relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
|
|
317
|
-
${s?"w-20":"w-72"} h-screen flex-shrink-0 z-50
|
|
318
|
-
bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
|
|
319
|
-
`,children:[u.jsx("div",{className:`p-6 border-b border-white/5 ${s?"items-center justify-center flex":""}`,children:s?u.jsx("div",{className:"relative group",children:u.jsx("div",{className:"h-10 w-10 bg-indigo-600 rounded-xl flex items-center justify-center text-white font-bold cursor-pointer shadow-lg shadow-indigo-500/20 group-hover:bg-indigo-500 transition-colors bg-gradient-to-br from-indigo-500 to-indigo-700",title:"Switch Project",children:"NW"})}):u.jsxs("div",{className:"relative w-full",children:[u.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?u.jsxs("div",{className:"relative",children:[u.jsx(q0,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),u.jsx("select",{value:h||"",onChange:g=>v(g.target.value),className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 pl-10 pr-8 text-sm font-medium shadow-sm appearance-none cursor-pointer hover:border-white/20 transition-colors focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20",children:m.filter(g=>g.valid).map(g=>u.jsx("option",{value:g.name,children:g.name},g.name))}),u.jsx(hp,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500 pointer-events-none"})]}):u.jsxs("div",{className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 px-3.5 text-sm font-medium shadow-sm flex items-center",children:[u.jsx(q0,{className:"h-4 w-4 text-indigo-400 mr-3"}),u.jsx("span",{className:"truncate",children:f})]})]})}),u.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:u.jsx("ul",{className:"space-y-1.5 px-4",children:y.map(g=>u.jsx("li",{children:u.jsx(dm,{to:g.path,className:({isActive:x})=>`
|
|
320
|
-
flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
|
|
321
|
-
${x?"bg-indigo-500/10 text-indigo-300 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.05)]":"text-slate-400 hover:bg-white/5 hover:text-slate-200"}
|
|
322
|
-
${s?"justify-center":""}
|
|
323
|
-
`,children:({isActive:x})=>u.jsxs(u.Fragment,{children:[u.jsx(g.icon,{className:`h-5 w-5 transition-colors ${x?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${s?"":"mr-3.5"}`}),!s&&u.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:g.label}),g.badge&&(s?u.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):u.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${x?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:g.badge})),x&&!s&&u.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-indigo-500 rounded-r-full shadow-[0_0_10px_rgba(99,102,241,0.4)]"}),s&&u.jsx("div",{className:"absolute left-full ml-4 px-3 py-1.5 bg-[#111827] text-white text-xs font-medium rounded-md border border-white/10 shadow-xl opacity-0 group-hover:opacity-100 pointer-events-none whitespace-nowrap z-50 transition-opacity translate-x-2 group-hover:translate-x-0",children:g.label})]})})},g.path))})}),u.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:u.jsx("button",{onClick:()=>o(!s),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:s?u.jsx(dp,{className:"h-5 w-5"}):u.jsx(op,{className:"h-5 w-5"})})})]})},_y=()=>{const{projectName:s}=Yt();return u.jsxs("header",{className:"h-20 flex items-center justify-between px-8 z-40 sticky top-0 bg-[#030712]/80 backdrop-blur-md border-b border-white/5",children:[u.jsxs("div",{className:"flex items-center space-x-6",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),u.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:s})]}),u.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),u.jsxs("div",{className:"flex items-center space-x-2 text-xs font-medium px-3 py-1.5 rounded-full border transition-colors bg-emerald-500/5 text-emerald-400 border-emerald-500/20 shadow-[0_0_10px_-4px_rgba(16,185,129,0.3)]",children:[u.jsx(ly,{className:"h-3.5 w-3.5"}),u.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),u.jsxs("div",{className:"flex items-center space-x-5",children:[u.jsxs("div",{className:"relative hidden md:block group",children:[u.jsx("input",{type:"text",placeholder:"Search ( / )",className:"w-72 pl-10 pr-4 py-2 rounded-lg border border-white/5 bg-white/5 text-sm text-slate-200 focus:outline-none focus:ring-1 focus:ring-indigo-500/50 focus:border-indigo-500/50 transition-all placeholder:text-slate-600 focus:bg-[#0b101b]"}),u.jsx(hr,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[u.jsx(ap,{className:"h-5 w-5"}),u.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]}),u.jsx("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full transition-all",children:u.jsx(Sm,{className:"h-5 w-5"})})]}),u.jsx("div",{className:"h-9 w-9 rounded-full bg-gradient-to-tr from-indigo-600 to-purple-600 ring-2 ring-white/10 flex items-center justify-center text-white font-bold text-xs shadow-lg",children:"AD"})]})]})},He=({children:s,className:o="",onClick:f})=>u.jsxs("div",{className:`
|
|
324
|
-
relative bg-[#0b101b] rounded-xl border border-white/5
|
|
325
|
-
shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
|
|
326
|
-
transition-all duration-300
|
|
327
|
-
${f?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
|
|
328
|
-
${o}
|
|
329
|
-
`,onClick:f,children:[f&&u.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),u.jsx("div",{className:"relative z-10",children:s})]}),be=({children:s,variant:o="primary",size:f="md",loading:r=!1,className:m="",disabled:h,...v})=>{const y="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-offset-[#030712] disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98]",g={primary:"bg-indigo-600 text-white hover:bg-indigo-500 focus:ring-indigo-500 shadow-[0_0_15px_-3px_rgba(79,70,229,0.4)] border border-indigo-500/50 hover:shadow-[0_0_20px_-3px_rgba(79,70,229,0.5)]",secondary:"bg-[#1f2937] text-slate-200 hover:bg-[#374151] focus:ring-slate-500 border border-white/5",danger:"bg-red-600/10 text-red-400 hover:bg-red-600/20 focus:ring-red-500 border border-red-900/50 hover:border-red-500/50",ghost:"bg-transparent text-slate-400 hover:bg-white/5 hover:text-slate-200 focus:ring-slate-400",outline:"border border-slate-700/50 bg-transparent text-slate-300 hover:bg-white/5 hover:border-slate-500 focus:ring-slate-400"},x={sm:"h-8 px-3 text-xs tracking-wide",md:"h-10 px-4 py-2 text-sm",lg:"h-12 px-6 text-base",icon:"h-9 w-9"};return u.jsxs("button",{className:`${y} ${g[o]} ${x[f]} ${m}`,disabled:h||r,...v,children:[r&&u.jsx(gm,{className:"mr-2 h-4 w-4 animate-spin"}),s]})},zy={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},Cy=()=>{const s=rr(),[o,f]=E.useState(null),[r,m]=E.useState(!1),[h,v]=E.useState(null),{setProjectName:y,addToast:g,selectedProjectId:x,globalModeLoading:w}=Yt(),{data:N,loading:B,error:U,refetch:Q}=qt(Em,[x],{enabled:!w}),{data:Y}=qt(Tm,[x],{enabled:!w});_m(Z=>{v(Z)},[x]);const L=h||N;if(Lt.useEffect(()=>{L!=null&&L.projectName&&y(L.projectName)},[L,y]),E.useEffect(()=>{const Z=setInterval(()=>{Q()},3e4);return()=>clearInterval(Z)},[Q]),E.useEffect(()=>{const Z=()=>Q();return window.addEventListener("focus",Z),()=>window.removeEventListener("focus",Z)},[Q]),w||B)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(U)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(Vt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load dashboard data"}),u.jsx("div",{className:"text-sm text-slate-500",children:U.message}),u.jsx(be,{onClick:()=>Q(),children:"Retry"})]});if(!L)return null;const K=L.prds.filter(Z=>Z.status==="ready").length,q=L.prds.filter(Z=>Z.status==="in-progress"),G=L.prs.length,X=L.prs.filter(Z=>Z.reviewScore!==null&&Z.reviewScore<70).length,W=L.processes.find(Z=>Z.name==="executor"),I=L.processes.find(Z=>Z.name==="reviewer"),te=async Z=>{f(Z);try{const ne=await by(Z),Ne=ne.results.every(Je=>Je.success);g({title:Ne?"Process Cancelled":"Cancel Failed",message:ne.results.map(Je=>Je.message).join("; "),type:Ne?"success":"error"})}catch(ne){g({title:"Cancel Failed",message:ne instanceof Error?ne.message:"Failed to cancel process",type:"error"})}finally{f(null),Q()}},C=async()=>{m(!0);try{await jy(),g({title:"Lock Cleared",message:"Stale executor state removed",type:"success"}),Q()}catch(Z){g({title:"Clear Failed",message:Z instanceof Error?Z.message:"Failed to clear lock",type:"error"})}finally{m(!1)}},J=Z=>{if(!Z)return"Not scheduled";try{const ne=new Date(Z),Ne=new Date,Je=ne.getTime()-Ne.getTime(),Ye=Math.floor(Je/6e4);return Ye<0?"Running now...":Ye<60?`In ${Ye} min`:Ye<1440?`In ${Math.floor(Ye/60)} hr${Ye>=120?"s":""}`:`In ${Math.floor(Ye/1440)} day${Ye>=2880?"s":""}`}catch{return"Unknown"}};return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsxs(He,{className:"p-5",onClick:()=>s("/prds"),children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"PRDs Ready"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:K})]}),u.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:u.jsx(Jn,{className:"h-5 w-5"})})]}),u.jsxs("p",{className:"text-xs text-slate-500 mt-4",children:["of ",L.prds.length," total"]})]}),u.jsxs(He,{className:"p-5",onClick:()=>s("/prds"),children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:q.length})]}),u.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:u.jsx(xm,{className:"h-5 w-5"})})]}),u.jsx("p",{className:"text-xs text-slate-500 mt-4 truncate",children:q.length===1?q[0].name:`${q.length} active`})]}),u.jsxs(He,{className:"p-5",onClick:()=>s("/prs"),children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:G})]}),u.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:u.jsx(bu,{className:"h-5 w-5"})})]}),u.jsx("p",{className:`text-xs mt-4 ${X>0?"text-red-400 font-medium":"text-slate-500"}`,children:X>0?`${X} need work`:"All passing"})]}),u.jsxs(He,{className:"p-5",children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Cron Status"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:L.crontab.installed?"Active":"Inactive"})]}),u.jsx("div",{className:`p-2 rounded-lg ${L.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:u.jsx(yu,{className:"h-5 w-5"})})]}),u.jsx("p",{className:"text-xs text-slate-500 mt-4",children:L.crontab.installed?`${L.crontab.entries.length} entr${L.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"lg:col-span-2",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"PRD Pipeline"}),u.jsxs("button",{onClick:()=>s("/prds"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View all ",u.jsx(L0,{className:"ml-1 h-3 w-3"})]})]}),u.jsx("div",{className:"bg-slate-900 rounded-xl p-4 grid grid-cols-5 gap-3 h-64 overflow-hidden border border-slate-800",children:["blocked","ready","in-progress","pending-review","done"].map(Z=>u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"text-xs font-semibold text-slate-500 uppercase mb-3 flex items-center",children:[u.jsx("span",{className:`w-2 h-2 rounded-full mr-2 flex-shrink-0 ${Z==="ready"?"bg-green-500":Z==="in-progress"?"bg-blue-500":Z==="pending-review"?"bg-yellow-500":Z==="blocked"?"bg-red-500":"bg-slate-600"}`}),u.jsx("span",{className:"truncate",children:zy[Z]})]}),u.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto scrollbar-hide",children:[L.prds.filter(ne=>ne.status===Z).map(ne=>u.jsxs(He,{className:"p-3 shadow-none bg-slate-800 border-slate-700 hover:border-slate-600 hover:shadow-md cursor-pointer transition-all active:scale-95",onClick:()=>s("/prds"),children:[u.jsx("div",{className:"text-xs font-medium text-slate-200 line-clamp-2",children:ne.name}),ne.unmetDependencies.length>0&&u.jsxs("div",{className:"mt-2 text-[10px] text-amber-400",children:["Blocked by: ",ne.unmetDependencies.join(", ")]}),ne.status==="in-progress"&&u.jsx("div",{className:"h-1.5 w-1.5 bg-blue-500 rounded-full animate-pulse mt-2"}),ne.status==="pending-review"&&u.jsx("div",{className:"h-1.5 w-1.5 bg-yellow-500 rounded-full animate-pulse mt-2"})]},ne.name)),L.prds.filter(ne=>ne.status===Z).length===0&&u.jsx("div",{className:"h-full border-2 border-dashed border-slate-800 rounded-lg flex items-center justify-center",children:u.jsx("span",{className:"text-xs text-slate-600",children:"Empty"})})]})]},Z))})]}),u.jsxs("div",{className:"lg:col-span-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-200 mb-4",children:"System Status"}),u.jsx(He,{className:"h-64 overflow-y-auto",children:u.jsxs("div",{className:"p-4 space-y-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),u.jsx("p",{className:"text-sm text-slate-200",children:L.projectName})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Provider"}),u.jsx("p",{className:"text-sm text-slate-200 capitalize",children:L.config.provider})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"PRD Directory"}),u.jsx("p",{className:"text-sm text-slate-200",children:L.config.prdDir})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Last Updated"}),u.jsx("p",{className:"text-sm text-slate-200",children:new Date(L.timestamp).toLocaleString()})]})]})})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs(He,{className:"p-6",children:[u.jsx("h3",{className:"text-base font-semibold text-slate-200 mb-4",children:"Process Status"}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${W!=null&&W.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),u.jsxs("div",{children:[u.jsx("div",{className:`font-medium ${W!=null&&W.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),u.jsx("div",{className:"text-xs text-slate-500",children:W!=null&&W.running?`PID: ${W.pid} • ${L.activePrd??"Running"}`:"Idle"})]})]}),u.jsxs("div",{className:"flex items-center space-x-2",children:[(W==null?void 0:W.running)&&u.jsxs(be,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>te("run"),disabled:o==="run",children:[u.jsx(lr,{className:"h-4 w-4 mr-1"}),o==="run"?"Stopping...":"Stop"]}),!(W!=null&&W.running)&&q.length>0&&u.jsx(be,{size:"sm",variant:"ghost",className:"text-amber-400 hover:text-amber-300",onClick:C,disabled:r,children:r?"Clearing...":"Force Clear"}),u.jsx(be,{size:"sm",variant:"ghost",onClick:()=>s("/logs"),children:"View Log"})]})]}),u.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${I!=null&&I.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),u.jsxs("div",{children:[u.jsx("div",{className:`font-medium ${I!=null&&I.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),u.jsx("div",{className:"text-xs text-slate-500",children:I!=null&&I.running?`PID: ${I.pid} • Running`:"Idle"})]})]}),u.jsxs("div",{className:"flex items-center space-x-2",children:[(I==null?void 0:I.running)&&u.jsxs(be,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>te("review"),disabled:o==="review",children:[u.jsx(lr,{className:"h-4 w-4 mr-1"}),o==="review"?"Stopping...":"Stop"]}),u.jsx(be,{size:"sm",variant:"ghost",onClick:()=>s("/logs"),disabled:!(I!=null&&I.running),children:"View Log"})]})]})]})]}),u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-base font-semibold text-slate-200",children:"Scheduling"}),u.jsxs("button",{onClick:()=>s("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",u.jsx(L0,{className:"ml-1 h-3 w-3"})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`p-1.5 rounded-md ${Y!=null&&Y.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:u.jsx(yu,{className:"h-4 w-4"})}),u.jsxs("div",{children:[u.jsx("div",{className:`text-sm font-medium ${Y!=null&&Y.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),u.jsx("div",{className:"text-xs text-slate-500",children:Y!=null&&Y.paused?"Paused":J(Y==null?void 0:Y.executor.nextRun)})]})]})}),u.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`p-1.5 rounded-md ${Y!=null&&Y.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:u.jsx(bu,{className:"h-4 w-4"})}),u.jsxs("div",{children:[u.jsx("div",{className:`text-sm font-medium ${Y!=null&&Y.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),u.jsx("div",{className:"text-xs text-slate-500",children:Y!=null&&Y.paused?"Paused":J(Y==null?void 0:Y.reviewer.nextRun)})]})]})})]})]})]})]})},Va=({children:s,variant:o="default",className:f=""})=>{const r={default:"bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20",success:"bg-emerald-500/10 text-emerald-400 ring-1 ring-inset ring-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 ring-1 ring-inset ring-amber-500/20",error:"bg-red-500/10 text-red-400 ring-1 ring-inset ring-red-500/20",neutral:"bg-slate-500/10 text-slate-400 ring-1 ring-inset ring-slate-500/20",info:"bg-blue-500/10 text-blue-400 ring-1 ring-inset ring-blue-500/20"};return u.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[o]} ${f}`,children:s})},My=({isOpen:s,onClose:o,title:f,children:r})=>(E.useEffect(()=>{const m=h=>{h.key==="Escape"&&o()};return s&&(document.addEventListener("keydown",m),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",m),document.body.style.overflow="unset"}},[s,o]),s?Yg.createPortal(u.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6",children:[u.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:o,"aria-hidden":"true"}),u.jsxs("div",{className:"relative w-full max-w-2xl transform rounded-xl bg-slate-900 border border-slate-800 shadow-2xl transition-all flex flex-col max-h-[90vh]",children:[u.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 px-6 py-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-100",children:f}),u.jsx("button",{onClick:o,className:"rounded-full p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:u.jsx(jm,{className:"h-5 w-5"})})]}),u.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6 text-slate-300",children:r})]})]}),document.body):null),Fc={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},Pc={ready:"success","in-progress":"info",blocked:"error","pending-review":"warning",done:"neutral"},Ay=()=>{const[s,o]=E.useState("list"),[f,r]=E.useState(!1),[m,h]=E.useState(null),[v,y]=E.useState(!1),[g,x]=E.useState(!1),[w,N]=E.useState({}),{addToast:B,selectedProjectId:U,globalModeLoading:Q}=Yt(),{data:Y,loading:L,error:K,refetch:q}=qt(my,[U],{enabled:!Q}),G=Y??[],X=G.map(C=>w[C.name]?{...C,status:w[C.name]}:C);E.useEffect(()=>{if(Object.keys(w).length>0){const C=Object.keys(w).filter(J=>G.some(Z=>Z.name===J&&Z.status!=="ready"));C.length>0&&N(J=>{const Z={...J};for(const ne of C)delete Z[ne];return Z})}},[G,w]),_m(()=>{q()},[U]);const W=async()=>{if(m){x(!0);try{const C=await Sy(m.name);B({title:"PRD Queued",message:C.message,type:"success"}),h(null),q()}catch(C){B({title:"Retry Failed",message:C instanceof Error?C.message:"Failed to retry PRD",type:"error"})}finally{x(!1)}}},I=C=>{C.preventDefault(),r(!1)},te=async()=>{if(m){y(!0),N(C=>({...C,[m.name]:"in-progress"}));try{const C=await gy(m.name);B({title:"Executor Started",message:C.pid?`Started with PID ${C.pid}`:"Executor started",type:"success"}),q()}catch(C){N(J=>{const Z={...J};return delete Z[m.name],Z}),B({title:"Executor Failed",message:C instanceof Error?C.message:"Failed to start executor",type:"error"})}finally{y(!1)}}};return E.useEffect(()=>{const C=setInterval(()=>q(),3e4);return()=>clearInterval(C)},[q]),E.useEffect(()=>{const C=()=>q();return window.addEventListener("focus",C),()=>window.removeEventListener("focus",C)},[q]),E.useEffect(()=>{if(m){const C=X.find(J=>J.name===m.name);C&&h(C)}},[X,m]),L?u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading PRDs..."})}):K?u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(Vt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load PRDs"}),u.jsx("div",{className:"text-sm text-slate-500",children:K.message}),u.jsx(be,{onClick:()=>q(),children:"Retry"})]}):u.jsxs("div",{className:"space-y-6 h-[calc(100vh-8rem)] flex flex-col",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx(be,{variant:s==="list"?"secondary":"ghost",size:"icon",onClick:()=>o("list"),children:u.jsx(G0,{className:"h-4 w-4"})}),u.jsx(be,{variant:s==="card"?"secondary":"ghost",size:"icon",onClick:()=>o("card"),children:u.jsx(Op,{className:"h-4 w-4"})}),u.jsx("div",{className:"h-6 w-px bg-slate-800 mx-2"}),u.jsxs("div",{className:"flex space-x-1",children:[u.jsx("span",{className:"px-3 py-1 bg-slate-800 text-slate-200 rounded-full text-xs font-medium cursor-pointer border border-slate-700",children:"All"}),u.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"Ready"}),u.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"In Progress"})]})]}),u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsxs(be,{variant:"outline",size:"sm",children:[u.jsx(Ig,{className:"h-4 w-4 mr-2"}),"Sort"]}),u.jsxs(be,{onClick:()=>r(!0),size:"sm",children:[u.jsx(Qp,{className:"h-4 w-4 mr-2"}),"New PRD"]})]})]}),u.jsx("div",{className:"flex-1 overflow-y-auto pr-1 pb-10",children:s==="list"?u.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:u.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[u.jsx("thead",{className:"bg-slate-950/50",children:u.jsxs("tr",{children:[u.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Name"}),u.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Status"}),u.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Dependencies"}),u.jsx("th",{scope:"col",className:"relative px-6 py-3",children:u.jsx("span",{className:"sr-only",children:"Actions"})})]})}),u.jsxs("tbody",{className:"divide-y divide-slate-800",children:[X.map(C=>u.jsxs("tr",{className:"hover:bg-slate-800/50 group cursor-pointer transition-colors",onClick:()=>h(C),children:[u.jsxs("td",{className:"px-6 py-4",children:[u.jsx("div",{className:"text-sm font-medium text-slate-200",children:C.name}),C.unmetDependencies.length>0&&u.jsxs("div",{className:"text-xs text-amber-400 mt-1",children:["Blocked by: ",C.unmetDependencies.join(", ")]})]}),u.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:u.jsx(Va,{variant:Pc[C.status],children:Fc[C.status]})}),u.jsx("td",{className:"px-6 py-4",children:C.dependencies.length>0?u.jsx("div",{className:"flex flex-wrap gap-1",children:C.dependencies.map(J=>u.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:J},J))}):u.jsx("span",{className:"text-sm text-slate-600",children:"None"})}),u.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium",children:u.jsx("button",{className:"text-slate-500 hover:text-slate-300 opacity-0 group-hover:opacity-100 transition-opacity",children:u.jsx(Np,{className:"h-4 w-4"})})})]},C.name)),X.length===0&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"px-6 py-12 text-center text-slate-500",children:"No PRDs found. Create your first PRD to get started."})})]})]})}):u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[X.map(C=>u.jsxs(He,{className:"p-5 flex flex-col h-full hover:border-indigo-500/50 transition-colors",onClick:()=>h(C),children:[u.jsxs("div",{className:"flex justify-between items-start mb-4",children:[u.jsx(Va,{variant:Pc[C.status],children:Fc[C.status]}),C.status==="in-progress"&&u.jsx("div",{className:"h-2 w-2 bg-blue-500 rounded-full animate-pulse"}),C.status==="pending-review"&&u.jsx("div",{className:"h-2 w-2 bg-yellow-500 rounded-full animate-pulse"})]}),u.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-2",children:C.name}),C.content&&u.jsx("p",{className:"text-sm text-slate-400 flex-1 line-clamp-3",children:C.content.replace(/^#.*\n/,"")}),u.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-800",children:[C.dependencies.length>0&&u.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:C.dependencies.map(J=>u.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:J},J))}),C.unmetDependencies.length>0&&u.jsxs("div",{className:"text-xs text-amber-400",children:["Blocked by: ",C.unmetDependencies.join(", ")]})]})]},C.name)),X.length===0&&u.jsx("div",{className:"col-span-full text-center py-12 text-slate-500",children:"No PRDs found. Create your first PRD to get started."})]})}),u.jsx(My,{isOpen:f,onClose:()=>r(!1),title:"Create New PRD",children:u.jsxs("form",{onSubmit:I,className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Name"}),u.jsx("input",{type:"text",className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500 placeholder:text-slate-600",placeholder:"e.g. User Authentication"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Complexity"}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("input",{type:"range",min:"1",max:"10",className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),u.jsx("span",{className:"text-sm font-bold text-slate-300 w-16 text-center",children:"MED"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Phases"}),u.jsx("input",{type:"number",defaultValue:3,min:1,max:10,className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Template"}),u.jsxs("select",{className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[u.jsx("option",{children:"Default"}),u.jsx("option",{children:"Feature"}),u.jsx("option",{children:"Bugfix"})]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Dependencies"}),u.jsxs("div",{className:"bg-slate-950/30 p-3 rounded-md border border-slate-800 max-h-32 overflow-y-auto space-y-2",children:[X.map(C=>u.jsxs("label",{className:"flex items-center space-x-2 text-sm text-slate-300 cursor-pointer",children:[u.jsx("input",{type:"checkbox",className:"rounded border-slate-600 bg-slate-800 text-indigo-500 focus:ring-indigo-500/50 focus:ring-offset-slate-900"}),u.jsx("span",{children:C.name})]},C.name)),X.length===0&&u.jsx("p",{className:"text-sm text-slate-600 italic",children:"No existing PRDs"})]})]}),u.jsxs("div",{className:"flex justify-end pt-4 space-x-3",children:[u.jsx(be,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),u.jsx(be,{type:"submit",children:"Create PRD"})]})]})}),m&&u.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[u.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:()=>h(null)}),u.jsxs("div",{className:"relative w-full max-w-xl bg-slate-900 h-full shadow-2xl flex flex-col transform transition-transform animate-in slide-in-from-right duration-300 border-l border-slate-800",children:[u.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800",children:[u.jsx("h2",{className:"text-lg font-bold text-slate-100 line-clamp-1",children:m.name}),u.jsx("button",{onClick:()=>h(null),className:"p-2 hover:bg-slate-800 rounded-full",children:u.jsx(G0,{className:"h-5 w-5 text-slate-500"})})]}),u.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6 space-y-6",children:[u.jsx("div",{className:"flex items-center space-x-4",children:u.jsx(Va,{variant:Pc[m.status],className:"text-sm px-3 py-1",children:Fc[m.status]})}),m.content&&u.jsxs("div",{className:"prose prose-sm prose-invert max-w-none",children:[u.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider mb-2",children:"Description"}),u.jsx("div",{className:"whitespace-pre-wrap text-slate-300 bg-slate-950/50 p-4 rounded-lg border border-slate-800 font-mono text-sm",children:m.content})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider",children:"Dependencies"}),m.dependencies.length?u.jsx("div",{className:"flex flex-wrap gap-2",children:m.dependencies.map(C=>u.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-300 text-xs rounded border border-slate-700",children:C},C))}):u.jsx("p",{className:"text-sm text-slate-500 italic",children:"No dependencies."}),m.unmetDependencies.length>0&&u.jsx("div",{className:"mt-2",children:u.jsxs("p",{className:"text-sm text-amber-400",children:["Unmet dependencies: ",m.unmetDependencies.join(", ")]})})]})]}),u.jsx("div",{className:"p-4 border-t border-slate-800 bg-slate-900 flex space-x-3",children:m.status==="done"?u.jsxs(be,{className:"flex-1",onClick:W,disabled:g,children:[u.jsx(bm,{className:"h-4 w-4 mr-2"}),g?"Moving...":"Retry"]}):u.jsxs(be,{className:"flex-1",onClick:te,disabled:v||m.status==="in-progress",children:[u.jsx($n,{className:"h-4 w-4 mr-2"}),v?"Executing...":"Execute Now"]})})]})]})]})},V0=s=>{switch(s){case"pass":return"All CI checks passed";case"fail":return"One or more CI checks failed";case"pending":return"CI checks are still running";default:return"No CI data available or CI not configured"}},xu=s=>s===null?"No review yet or review not required":s===100?"PR has been approved":s===0?"Changes have been requested":`Review score: ${s}`,Dy=()=>{const[s,o]=E.useState(null),[f,r]=E.useState(!1),[m,h]=E.useState("all"),[v,y]=E.useState("number"),[g,x]=E.useState("desc"),{addToast:w,selectedProjectId:N,globalModeLoading:B}=Yt(),{data:U,loading:Q,error:Y,refetch:L}=qt(hy,[N],{enabled:!B}),K=U??[],q=C=>{switch(C){case"pass":return u.jsx(Jn,{className:"h-4 w-4 text-green-500"});case"fail":return u.jsx(lr,{className:"h-4 w-4 text-red-500"});case"pending":return u.jsx(gm,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return u.jsx(yp,{className:"h-4 w-4 text-slate-500"})}},G=E.useMemo(()=>K.filter(C=>{switch(m){case"needs-work":return C.ciStatus==="fail"||C.reviewScore===0;case"pending":return C.ciStatus==="pending"||C.ciStatus==="unknown"||C.reviewScore===null;case"passed":return C.ciStatus==="pass"&&C.reviewScore===100;case"all":default:return!0}}),[K,m]),X=E.useMemo(()=>[...G].sort((J,Z)=>{let ne=0;switch(v){case"number":ne=J.number-Z.number;break;case"title":ne=J.title.localeCompare(Z.title);break;case"branch":ne=J.branch.localeCompare(Z.branch);break;case"ciStatus":{const Ne={fail:0,pending:1,unknown:2,pass:3};ne=(Ne[J.ciStatus]??2)-(Ne[Z.ciStatus]??2);break}case"reviewScore":{const Ne=J.reviewScore??-1,Je=Z.reviewScore??-1;ne=Ne-Je;break}}return g==="asc"?ne:-ne}),[G,v,g]),W=C=>{v===C?x(g==="asc"?"desc":"asc"):(y(C),x("desc"))},I=C=>v!==C?u.jsx(Fg,{className:"h-3 w-3 text-slate-600"}):g==="asc"?u.jsx(tp,{className:"h-3 w-3 text-indigo-400"}):u.jsx(Jg,{className:"h-3 w-3 text-indigo-400"});if(Q)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(Y)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(Vt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),u.jsx("div",{className:"text-sm text-slate-500",children:Y.message}),u.jsx(be,{onClick:()=>L(),children:"Retry"})]});const te=async()=>{r(!0);try{const C=await py();w({title:"Reviewer Started",message:C.pid?`Started with PID ${C.pid}`:"Reviewer started",type:"success"})}catch(C){w({title:"Reviewer Failed",message:C instanceof Error?C.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex space-x-1",children:[u.jsx("button",{onClick:()=>h("all"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="all"?"bg-slate-800 text-slate-200 border-slate-700":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"All"}),u.jsx("button",{onClick:()=>h("needs-work"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="needs-work"?"bg-red-900/50 text-red-300 border-red-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Needs Work"}),u.jsx("button",{onClick:()=>h("pending"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="pending"?"bg-amber-900/50 text-amber-300 border-amber-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Pending"}),u.jsx("button",{onClick:()=>h("passed"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="passed"?"bg-green-900/50 text-green-300 border-green-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Passed"})]}),u.jsxs(be,{size:"sm",onClick:te,disabled:f,children:[u.jsx(hr,{className:"h-4 w-4 mr-2"}),f?"Starting...":"Run Reviewer Now"]})]}),u.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:u.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[u.jsx("thead",{className:"bg-slate-950/50",children:u.jsxs("tr",{children:[u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>W("number"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"Title"}),I("number")]})}),u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>W("branch"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"Branch"}),I("branch")]})}),u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>W("ciStatus"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"CI Status"}),I("ciStatus")]})}),u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>W("reviewScore"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"Review Score"}),I("reviewScore")]})}),u.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),u.jsxs("tbody",{className:"divide-y divide-slate-800",children:[X.map(C=>u.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>o(s===C.number?null:C.number),children:[u.jsx("td",{className:"px-6 py-4",children:u.jsxs("div",{className:"flex items-center",children:[u.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",C.number]}),u.jsx("span",{className:"font-medium text-slate-200",children:C.title})]})}),u.jsx("td",{className:"px-6 py-4",children:u.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-400 border border-slate-700 rounded text-xs font-mono",children:C.branch})}),u.jsx("td",{className:"px-6 py-4",children:u.jsxs("div",{className:"flex items-center space-x-2",title:V0(C.ciStatus),children:[q(C.ciStatus),u.jsx("span",{className:"text-sm capitalize text-slate-400",children:C.ciStatus})]})}),u.jsx("td",{className:"px-6 py-4",children:C.reviewScore!==null?u.jsxs("div",{className:"flex items-center space-x-2",title:xu(C.reviewScore),children:[u.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:u.jsx("div",{className:`h-full ${C.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${C.reviewScore}%`}})}),u.jsx("span",{className:`text-sm font-bold ${C.reviewScore>=70?"text-green-500":"text-red-500"}`,children:C.reviewScore})]}):u.jsx("span",{className:"text-slate-600 text-sm",title:xu(null),children:"—"})}),u.jsx("td",{className:"px-6 py-4 text-right",children:u.jsx("a",{href:C.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:J=>J.stopPropagation(),children:u.jsx(wp,{className:"h-4 w-4"})})})]},C.number)),X.length===0&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:K.length===0?"No open PRs found.":`No PRs match the "${m}" filter.`})})]})]})}),s&&u.jsx(He,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const C=K.find(J=>J.number===s);return C?u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-slate-200",children:C.title}),u.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",u.jsx("span",{className:"font-mono",children:C.branch})]})]}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsxs("div",{className:"text-center",title:V0(C.ciStatus),children:[u.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),u.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[q(C.ciStatus),u.jsx("span",{className:"text-sm capitalize text-slate-300",children:C.ciStatus})]})]}),C.reviewScore!==null?u.jsxs("div",{className:"text-center",title:xu(C.reviewScore),children:[u.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),u.jsx("div",{className:`text-xl font-bold mt-1 ${C.reviewScore>=70?"text-green-500":"text-red-500"}`,children:C.reviewScore})]}):u.jsxs("div",{className:"text-center",title:xu(null),children:[u.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),u.jsx("div",{className:"text-xl font-bold mt-1 text-slate-500",children:"—"})]})]})]}):null})()})]})},ql=Lt.forwardRef(({className:s="",label:o,error:f,helperText:r,rightIcon:m,...h},v)=>u.jsxs("div",{className:"w-full",children:[o&&u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{ref:v,className:`
|
|
330
|
-
w-full rounded-lg bg-slate-950 border border-slate-800
|
|
331
|
-
px-3 py-2 text-sm text-slate-200
|
|
332
|
-
placeholder:text-slate-600
|
|
333
|
-
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
334
|
-
disabled:opacity-50 disabled:cursor-not-allowed
|
|
335
|
-
transition-all duration-200
|
|
336
|
-
${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
337
|
-
${m?"pr-10":""}
|
|
338
|
-
${s}
|
|
339
|
-
`,...h}),m&&u.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:m})]}),f?u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?u.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));ql.displayName="Input";const xr=Lt.forwardRef(({className:s="",label:o,error:f,helperText:r,options:m,value:h,onChange:v,children:y,...g},x)=>{const w=N=>{v&&v(N.target.value)};return u.jsxs("div",{className:"w-full",children:[o&&u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),u.jsxs("div",{className:"relative",children:[u.jsx("select",{ref:x,className:`
|
|
340
|
-
w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
|
|
341
|
-
px-3 py-2 pr-10 text-sm text-slate-200
|
|
342
|
-
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
343
|
-
disabled:opacity-50 disabled:cursor-not-allowed
|
|
344
|
-
transition-all duration-200
|
|
345
|
-
${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
346
|
-
${s}
|
|
347
|
-
`,value:h,onChange:w,...g,children:m?m.map(N=>u.jsx("option",{value:N.value,children:N.label},N.value)):y}),u.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:u.jsx(cp,{className:"h-4 w-4"})})]}),f?u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?u.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});xr.displayName="Select";const vr=[{label:"Every 30 minutes",value:"*/30 * * * *"},{label:"Every hour",value:"0 * * * *"},{label:"Every 3 hours",value:"0 */3 * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Every 12 hours",value:"0 */12 * * *"},{label:"Daily at midnight",value:"0 0 * * *"},{label:"Daily at 9 AM",value:"0 9 * * *"},{label:"Weekdays at 9 AM",value:"0 9 * * 1-5"},{label:"Custom",value:"__custom__"}];function Ic(s){const o=s.trim().split(/\s+/);if(o.length!==5)return s;const[f,r,m,h,v]=o,y=vr.find(g=>g.value===s);return y?y.label:f==="*/30"&&r==="*"?"Every 30 minutes":f==="0"&&r==="*"?"Every hour":f.startsWith("*/")?`Every ${parseInt(f.replace("*/",""),10)} minutes`:f==="0"&&r.startsWith("*/")?`Every ${parseInt(r.replace("*/",""),10)} hours`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&v==="*"?`Daily at ${k0(r)}`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&v==="1-5"?`Weekdays at ${k0(r)}`:s}function k0(s){const o=parseInt(s,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function Oy(s){const o=vr.find(f=>f.value===s);return(o==null?void 0:o.value)??"__custom__"}function Uy(s){const o=new Date,f=s.getTime()-o.getTime(),r=Math.floor(f/6e4),m=Math.floor(r/60),h=Math.floor(m/24);return r<1?"less than a minute":r<60?`in ${r} minute${r>1?"s":""}`:m<24?`in ${m} hour${m>1?"s":""}`:`in ${h} day${h>1?"s":""}`}function Hy(s){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return s.toLocaleDateString("en-US",o)}function By(s){const o=new Date,f=s.getTime()-o.getTime(),r=Math.floor(f/6e4);return r>=0&&r<30}const Ly=()=>{const{addToast:s,selectedProjectId:o,globalModeLoading:f}=Yt(),[r,m]=E.useState(!1),[h,v]=E.useState(!1),[y,g]=E.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:x,loading:w,error:N,refetch:B}=qt(Tm,[o],{enabled:!f}),{data:U,loading:Q,refetch:Y}=qt(wm,[o],{enabled:!f});E.useEffect(()=>{const J=setInterval(()=>{B()},3e4);return()=>clearInterval(J)},[B]),E.useEffect(()=>{U&&!y.isEditing&&g({executorSchedule:U.cronSchedule,reviewerSchedule:U.reviewerSchedule,isEditing:!1})},[U,y.isEditing]);const L=async()=>{if(x){m(!0);try{x.paused?(await Z0(),s({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await yy(),s({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),B()}catch(J){s({title:"Action Failed",message:J instanceof Error?J.message:"Failed to toggle schedule state",type:"error"})}finally{m(!1)}}},K=()=>{U&&g({executorSchedule:U.cronSchedule,reviewerSchedule:U.reviewerSchedule,isEditing:!0})},q=()=>{U&&g({executorSchedule:U.cronSchedule,reviewerSchedule:U.reviewerSchedule,isEditing:!1})},G=async()=>{if(U){v(!0);try{await Rm({cronSchedule:y.executorSchedule,reviewerSchedule:y.reviewerSchedule}),await Z0(),s({title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"}),g(J=>({...J,isEditing:!1})),Y(),B()}catch(J){s({title:"Save Failed",message:J instanceof Error?J.message:"Failed to save schedules",type:"error"})}finally{v(!1)}}},X=(J,Z)=>{if(!J)return u.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const ne=new Date(J),Ne=By(ne);return u.jsxs("div",{className:"flex items-center space-x-2",children:[Ne&&u.jsxs("span",{className:"relative flex h-3 w-3",children:[u.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),u.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),u.jsxs("div",{className:"text-sm",children:[u.jsx("span",{className:"text-slate-200 font-medium",children:Uy(ne)}),u.jsxs("span",{className:"text-slate-500 ml-2",children:["(",Hy(ne),")"]})]})]})},W=(J,Z,ne,Ne)=>{const Je=Oy(Z),Ye=Je==="__custom__";return u.jsxs("div",{className:`space-y-3 ${Ne?"opacity-50 pointer-events-none":""}`,children:[u.jsx("div",{className:"flex items-center space-x-3",children:u.jsx(xr,{label:`${J} Preset`,options:vr,value:Je,onChange:lt=>{lt!=="__custom__"&&ne(lt)},className:"flex-1"})}),Ye&&u.jsx(ql,{label:"Custom Cron Expression",value:Z,onChange:lt=>ne(lt.target.value),placeholder:"* * * * *",helperText:"Format: minute hour day month weekday (e.g., 0 */2 * * * for every 2 hours)"}),u.jsxs("div",{className:"text-sm text-slate-400",children:["Human-readable: ",u.jsx("span",{className:"text-slate-200",children:Ic(Z)})]})]})};if(w||Q)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(N||!x||!U)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(Vt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),u.jsx("div",{className:"text-sm text-slate-500",children:(N==null?void 0:N.message)||"Unknown error"}),u.jsx(be,{onClick:()=>{B(),Y()},children:"Retry"})]});const I=x.paused,te=I?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",C=I?"Paused":"Active";return u.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"})}),u.jsx(He,{className:`p-6 border-2 ${te}`,children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx(bu,{className:"h-8 w-8"}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400",children:"Cron Status"}),u.jsx("div",{className:"text-2xl font-bold",children:C})]})]}),u.jsx(be,{variant:I?"primary":"outline",size:"lg",onClick:L,loading:r,children:I?u.jsxs(u.Fragment,{children:[u.jsx($n,{className:"h-5 w-5 mr-2"}),"Resume"]}):u.jsxs(u.Fragment,{children:[u.jsx(ym,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),!y.isEditing&&u.jsxs(be,{variant:"ghost",size:"sm",onClick:K,children:[u.jsx(Wp,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),y.isEditing?W("Executor",y.executorSchedule,J=>g(Z=>({...Z,executorSchedule:J}))):u.jsx(u.Fragment,{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),u.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Ic(U.cronSchedule)}),u.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:U.cronSchedule})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),X(x.executor.nextRun,U.cronSchedule)]}),u.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.executor.installed?"text-green-400":"text-amber-400"}`,children:[u.jsx(Wc,{className:"h-4 w-4"}),u.jsx("span",{children:x.executor.installed?"Installed":"Not installed"})]})]})})]}),u.jsxs(He,{className:`p-6 ${U.reviewerEnabled?"":"opacity-50"}`,children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Reviewer Schedule"}),!U.reviewerEnabled&&u.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),y.isEditing?W("Reviewer",y.reviewerSchedule,J=>g(Z=>({...Z,reviewerSchedule:J})),!U.reviewerEnabled):u.jsx(u.Fragment,{children:u.jsx("div",{className:"space-y-4",children:U.reviewerEnabled?u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),u.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Ic(U.reviewerSchedule)}),u.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:U.reviewerSchedule})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),X(x.reviewer.nextRun,U.reviewerSchedule)]}),u.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[u.jsx(Wc,{className:"h-4 w-4"}),u.jsx("span",{children:x.reviewer.installed?"Installed":"Not installed"})]})]}):u.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[u.jsx(yu,{className:"h-5 w-5 text-slate-400"}),u.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),x.entries.length===0?u.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):u.jsx("div",{className:"space-y-2",children:x.entries.map((J,Z)=>u.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:J},Z))})]}),y.isEditing&&u.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[u.jsx(be,{variant:"ghost",onClick:q,children:"Cancel"}),u.jsxs(be,{onClick:G,loading:h,children:[u.jsx(Wc,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},qy=()=>{const[s,o]=E.useState(!0),[f,r]=E.useState(""),[m,h]=E.useState("executor"),v=E.useRef(null),{selectedProjectId:y,globalModeLoading:g}=Yt(),{data:x,loading:w,error:N,refetch:B}=qt(()=>xy(m,500),[m,y],{enabled:!g}),{data:U}=qt(Em,[y],{enabled:!g}),Q=(x==null?void 0:x.lines)||[];E.useEffect(()=>{s&&v.current&&(v.current.scrollTop=v.current.scrollHeight)},[Q,s]),E.useEffect(()=>{if(!s)return;const q=window.setInterval(()=>{B()},3e3);return()=>window.clearInterval(q)},[s,m,B]);const Y=Q.filter(q=>q.toLowerCase().includes(f.toLowerCase())),L=q=>{h(q),r("")},K=q=>{if(!(U!=null&&U.processes))return!1;const G=U.processes.find(X=>X.name===q);return(G==null?void 0:G.running)??!1};return N?u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(Vt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),u.jsx("div",{className:"text-sm text-slate-500",children:N.message}),u.jsx(be,{onClick:()=>B(),children:"Retry"})]}):u.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsxs("div",{className:"relative group",children:[u.jsx("input",{type:"text",placeholder:"Filter logs...",className:"pl-9 pr-4 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-slate-200 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent w-64 placeholder:text-slate-600",value:f,onChange:q=>r(q.target.value)}),u.jsx(hr,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),u.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),u.jsxs("div",{className:"flex space-x-1",children:[u.jsx("button",{onClick:()=>L("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="executor"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("span",{children:"Executor"}),K("executor")&&u.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),u.jsx("button",{onClick:()=>L("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="reviewer"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("span",{children:"Reviewer"}),K("reviewer")&&u.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})})]})]}),u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsxs(be,{size:"sm",variant:"ghost",onClick:()=>B(),children:[u.jsx(Y0,{className:"h-4 w-4 mr-2"}),"Refresh"]}),u.jsxs(be,{size:"sm",variant:"ghost",onClick:()=>o(!s),children:[s?u.jsx(ym,{className:"h-4 w-4 mr-2"}):u.jsx($n,{className:"h-4 w-4 mr-2"}),s?"Pause":"Resume"]})]})]}),u.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[u.jsxs("div",{className:"bg-slate-950/50 backdrop-blur text-xs text-slate-500 px-4 py-1.5 flex justify-between border-b border-slate-800",children:[u.jsxs("span",{children:["File: ",m,".log"]}),u.jsxs("span",{children:[Y.length," lines"]})]}),u.jsxs("div",{ref:v,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[w?u.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):Y.length===0?u.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:f?"No logs match your filter":"No logs yet — logs will appear after the first run"}):Y.map((q,G)=>{const X=q.includes("[ERROR]"),W=q.includes("[WARN]");return u.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${X?"text-red-400":W?"text-amber-400":"text-slate-300"}`,children:[u.jsx("span",{className:"text-slate-600 select-none w-10 inline-block text-right mr-4 text-xs opacity-50",children:G+1}),q]},G)}),s&&u.jsx("div",{className:"h-4"})," "]}),!s&&u.jsxs("div",{className:"absolute bottom-4 right-4 bg-indigo-600 text-white px-3 py-1.5 rounded-full shadow-lg shadow-indigo-900/40 text-xs font-medium flex items-center cursor-pointer hover:bg-indigo-500 transition-colors",onClick:()=>o(!0),children:[u.jsx(Y0,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},Yy=({tabs:s,activeTab:o,onChange:f,className:r=""})=>{var g,x;const[m,h]=Lt.useState((g=s[0])==null?void 0:g.id),v=o||m,y=w=>{f?f(w):h(w)};return u.jsxs("div",{className:`flex flex-col ${r}`,children:[u.jsx("div",{className:"border-b border-slate-800 mb-6",children:u.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:s.map(w=>u.jsx("button",{onClick:()=>y(w.id),className:`
|
|
348
|
-
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
|
|
349
|
-
${v===w.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
|
|
350
|
-
`,children:w.label},w.id))})}),u.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(x=s.find(w=>w.id===v))==null?void 0:x.content})]})},gr=Lt.forwardRef(({className:s="",label:o,checked:f,onChange:r,...m},h)=>{const v=y=>{r&&r(y.target.checked)};return u.jsxs("label",{className:`inline-flex items-center cursor-pointer ${s}`,children:[u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:"checkbox",className:"sr-only peer",ref:h,checked:f,onChange:v,...m}),u.jsx("div",{className:"w-11 h-6 bg-slate-800 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-indigo-500/50 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-slate-400 after:border-slate-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600 peer-checked:after:bg-white peer-disabled:opacity-50 peer-disabled:cursor-not-allowed"})]}),o&&u.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:o})]})});gr.displayName="Switch";const K0=s=>({provider:s.provider,defaultBranch:s.defaultBranch,branchPrefix:s.branchPrefix,reviewerEnabled:s.reviewerEnabled,minReviewScore:s.minReviewScore,maxRuntime:s.maxRuntime,reviewerMaxRuntime:s.reviewerMaxRuntime,maxLogSize:s.maxLogSize}),Gy=()=>{const{addToast:s,projectName:o,selectedProjectId:f,globalModeLoading:r}=Yt(),[m,h]=Lt.useState(!1),[v,y]=Lt.useState(null),{data:g,loading:x,error:w,refetch:N}=qt(wm,[f],{enabled:!r}),{data:B,loading:U,refetch:Q}=qt(vy,[f],{enabled:!r}),Y=B??[];Lt.useEffect(()=>{g&&y(K0(g))},[g]);const L=(X,W)=>{y(I=>I&&{...I,[X]:W})},K=async()=>{if(v){h(!0);try{await Rm({provider:v.provider,defaultBranch:v.defaultBranch,branchPrefix:v.branchPrefix,reviewerEnabled:v.reviewerEnabled,minReviewScore:v.minReviewScore,maxRuntime:v.maxRuntime,reviewerMaxRuntime:v.reviewerMaxRuntime,maxLogSize:v.maxLogSize}),s({title:"Settings Saved",message:"Configuration updated successfully.",type:"success"}),N(),Q()}catch(X){s({title:"Save Failed",message:X instanceof Error?X.message:"Failed to save configuration",type:"error"})}finally{h(!1)}}},q=()=>{g&&(y(K0(g)),s({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))};if(x||!v)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(w)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(Vt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),u.jsx("div",{className:"text-sm text-slate-500",children:w.message}),u.jsx(be,{onClick:()=>N(),children:"Retry"})]});const G=[{id:"general",label:"General",content:u.jsxs(He,{className:"p-6 space-y-4",children:[u.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsx(ql,{label:"Project Name",value:o,disabled:!0}),u.jsx(xr,{label:"Provider",value:v.provider,onChange:X=>L("provider",X),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),u.jsx(ql,{label:"Default Branch",value:v.defaultBranch,onChange:X=>L("defaultBranch",X.target.value)}),u.jsx(ql,{label:"Branch Prefix",value:v.branchPrefix,onChange:X=>L("branchPrefix",X.target.value)}),u.jsx("div",{className:"md:col-span-2",children:u.jsx(gr,{label:"Enable Automated Reviews",checked:v.reviewerEnabled,onChange:X=>L("reviewerEnabled",X)})})]})]})},{id:"runtime",label:"Runtime",content:u.jsxs(He,{className:"p-6 space-y-6",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Min Review Score (0-100)"}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("input",{type:"range",min:"0",max:"100",value:v.minReviewScore,onChange:X=>L("minReviewScore",Number(X.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),u.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:v.minReviewScore})]}),u.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsx(ql,{label:"Max Runtime (Executor)",type:"number",value:String(v.maxRuntime),onChange:X=>L("maxRuntime",Number(X.target.value||0)),rightIcon:u.jsx("span",{className:"text-xs",children:"sec"})}),u.jsx(ql,{label:"Max Runtime (Reviewer)",type:"number",value:String(v.reviewerMaxRuntime),onChange:X=>L("reviewerMaxRuntime",Number(X.target.value||0)),rightIcon:u.jsx("span",{className:"text-xs",children:"sec"})}),u.jsx(ql,{label:"Max Log Size",type:"number",value:String(v.maxLogSize),onChange:X=>L("maxLogSize",Number(X.target.value||0)),rightIcon:u.jsx("span",{className:"text-xs",children:"bytes"})})]})]})},{id:"env",label:"Provider Env",content:u.jsx(He,{className:"p-6",children:u.jsx("div",{className:"space-y-2",children:Object.entries(g.providerEnv).length===0?u.jsx("p",{className:"text-slate-400 text-sm",children:"No provider environment variables configured."}):Object.entries(g.providerEnv).map(([X,W])=>u.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[u.jsx("span",{className:"text-sm font-mono text-slate-300",children:X}),u.jsx("span",{className:"text-sm text-slate-500",children:W})]},X))})})}];return u.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[u.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),u.jsx(Yy,{tabs:G}),u.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[u.jsxs(be,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:q,children:[u.jsx(bm,{className:"h-4 w-4 mr-2"}),"Reset"]}),u.jsxs(be,{onClick:K,loading:m,children:[u.jsx(kp,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),u.jsxs("div",{className:"mt-12",children:[u.jsxs("h3",{className:"text-lg font-bold text-slate-200 mb-4 flex items-center",children:[u.jsx(xm,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),u.jsx(He,{className:"divide-y divide-slate-800",children:U?u.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):Y.map((X,W)=>{const I=X.status==="pass",te=X.status==="warn",C=I?"bg-green-500/10 text-green-400 border-green-500/20":te?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return u.jsxs("div",{className:"p-4 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-200",children:X.name}),u.jsx("p",{className:"text-xs text-slate-500",children:X.detail})]}),u.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${C}`,children:X.status.toUpperCase()})]},`${X.name}-${W}`)})})]})]})},Xy=()=>{const{addToast:s,selectedProjectId:o,globalModeLoading:f}=Yt(),[r,m]=E.useState(!1),[h,v]=E.useState(!1),{data:y,loading:g,error:x,refetch:w}=qt(Ny,[o],{enabled:!f});E.useEffect(()=>{if(!(y!=null&&y.enabled))return;const q=setInterval(()=>{w()},1e4);return()=>clearInterval(q)},[y==null?void 0:y.enabled,w]);const N=async q=>{v(!0);try{await wy(q),s({title:q?"Scanner Enabled":"Scanner Disabled",message:q?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:q?"success":"info"}),w()}catch(G){s({title:"Toggle Failed",message:G instanceof Error?G.message:"Failed to toggle scanner",type:"error"})}finally{v(!1)}},B=async()=>{m(!0);try{const q=await Ey();q.created.length>0?s({title:"Scan Complete",message:`Created ${q.created.length} PRD(s): ${q.created.join(", ")}`,type:"success"}):s({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),q.errors.length>0&&s({title:"Scan Errors",message:q.errors.join("; "),type:"warning"}),w()}catch(q){s({title:"Scan Failed",message:q instanceof Error?q.message:"Failed to scan roadmap",type:"error"})}finally{m(!1)}};if(g)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading roadmap scanner..."})});if(x)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(Vt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load roadmap data"}),u.jsx("div",{className:"text-sm text-slate-500",children:x.message}),u.jsx(be,{onClick:()=>w(),children:"Retry"})]});if(!y)return null;if(y.status==="no-roadmap")return u.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"})}),u.jsx(He,{className:"p-12",children:u.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[u.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:u.jsx(pm,{className:"h-10 w-10 text-slate-500"})}),u.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),u.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",u.jsx("code",{className:"text-indigo-400 bg-indigo-500/10 px-1.5 py-0.5 rounded text-sm",children:"ROADMAP.md"})," in your project root with checklist items (",u.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",u.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const U=y.totalItems>0?Math.round(y.processedItems/y.totalItems*100):0,Q=Zy(y.status),Y=Vy(y.items),L=y.lastScan?ky(y.lastScan):"Never",K=y.autoScanInterval?Math.round(y.autoScanInterval/60):5;return u.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx(gr,{label:y.enabled?"Enabled":"Disabled",checked:y.enabled,onChange:N,disabled:h}),u.jsxs(be,{onClick:B,loading:r,disabled:!y.enabled||y.status==="complete",children:[u.jsx($n,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),u.jsx(He,{className:`p-6 border-2 ${Q.borderColor}`,children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx(Q.icon,{className:`h-8 w-8 ${Q.textColor}`}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400",children:"Scanner Status"}),u.jsx("div",{className:`text-2xl font-bold ${Q.textColor}`,children:Q.label})]})]}),u.jsxs("div",{className:"text-right text-sm text-slate-400 space-y-1",children:[u.jsxs("div",{children:["Last scan: ",u.jsx("span",{className:"text-slate-300",children:L})]}),y.enabled&&y.status!=="complete"&&u.jsxs("div",{children:["Auto-scan: ",u.jsxs("span",{className:"text-slate-300",children:["every ",K," min"]})]}),y.enabled&&y.status==="complete"&&u.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("h3",{className:"text-sm font-medium text-slate-300",children:"Progress"}),u.jsxs("span",{className:"text-sm text-slate-400",children:[y.processedItems," / ",y.totalItems," items (",U,"%)"]})]}),u.jsx("div",{className:"w-full h-3 bg-slate-800 rounded-full overflow-hidden",children:u.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${U===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${U}%`}})})]}),Object.entries(Y).map(([q,G])=>u.jsxs(He,{className:"p-6",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:q}),u.jsx("div",{className:"space-y-2",children:G.map(X=>u.jsx(Qy,{item:X},X.hash))})]},q))]})};function Qy({item:s}){const o=s.checked,f=s.processed;return u.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${o?"bg-slate-950/30 border-slate-800/50":f?"bg-emerald-500/5 border-emerald-500/10":"bg-slate-950/50 border-slate-800"}`,children:[u.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[o?u.jsx(qp,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):f?u.jsx(Jn,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):u.jsx(vm,{className:"h-4 w-4 text-slate-500 flex-shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:`text-sm font-medium truncate ${o?"line-through text-slate-600":"text-slate-200"}`,children:s.title}),s.description&&u.jsx("div",{className:"text-xs text-slate-500 truncate mt-0.5",children:s.description})]})]}),u.jsx("div",{className:"flex-shrink-0 ml-3",children:o?u.jsx(Va,{variant:"neutral",children:"Skipped"}):f?u.jsx(Va,{variant:"success",children:s.prdFile||"Processed"}):u.jsx(Va,{variant:"warning",children:"Pending"})})]})}function Zy(s){switch(s){case"complete":return{label:"Complete",icon:Jn,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:bu,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:$n,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:Vt,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:Vt,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function Vy(s){const o={};for(const f of s){const r=f.section||"General";o[r]||(o[r]=[]),o[r].push(f)}return o}function ky(s){try{const o=new Date(s),r=new Date().getTime()-o.getTime(),m=Math.floor(r/6e4);if(m<1)return"Just now";if(m<60)return`${m} min ago`;const h=Math.floor(m/60);return h<24?`${h} hr ago`:`${Math.floor(h/24)} day(s) ago`}catch{return"Unknown"}}const Ky=({toast:s,onDismiss:o})=>{const f={success:u.jsx(Jn,{className:"h-5 w-5 text-green-400"}),error:u.jsx(Vt,{className:"h-5 w-5 text-red-400"}),info:u.jsx(Ap,{className:"h-5 w-5 text-blue-400"}),warning:u.jsx(ey,{className:"h-5 w-5 text-amber-400"})},r={success:"border-l-green-500",error:"border-l-red-500",info:"border-l-blue-500",warning:"border-l-amber-500"};return u.jsx("div",{className:`
|
|
351
|
-
pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
|
|
352
|
-
bg-slate-900 border border-slate-800 border-l-4 ${r[s.type]}
|
|
353
|
-
shadow-lg ring-1 ring-black ring-opacity-5 transition-all
|
|
354
|
-
animate-in slide-in-from-right-full fade-in duration-300
|
|
355
|
-
`,children:u.jsx("div",{className:"p-4",children:u.jsxs("div",{className:"flex items-start",children:[u.jsx("div",{className:"flex-shrink-0",children:f[s.type]}),u.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[u.jsx("p",{className:"text-sm font-medium text-slate-200",children:s.title}),s.message&&u.jsx("p",{className:"mt-1 text-sm text-slate-400",children:s.message})]}),u.jsx("div",{className:"ml-4 flex flex-shrink-0",children:u.jsxs("button",{type:"button",className:"inline-flex rounded-md text-slate-400 hover:text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",onClick:()=>o(s.id),children:[u.jsx("span",{className:"sr-only",children:"Close"}),u.jsx(jm,{className:"h-5 w-5"})]})})]})})})},Jy=()=>{const{toasts:s,removeToast:o}=Yt();return u.jsx("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex flex-col items-end px-4 py-6 sm:items-end sm:p-6 z-[100] gap-4",children:s.map(f=>u.jsx(Ky,{toast:f,onDismiss:o},f.id))})};function $y(){const{setGlobalMode:s,setGlobalModeLoading:o,setProjects:f,selectProject:r,selectedProjectId:m}=Yt();E.useEffect(()=>{o(!0),dy().then(h=>{s(!0),f(h);const v=h.filter(y=>y.valid);m&&v.some(y=>y.name===m)?r(m):v.length>0&&r(v[0].name)}).catch(()=>{s(!1)}).finally(()=>{o(!1)})},[])}const Wy=()=>($y(),u.jsx(Cg,{children:u.jsxs("div",{className:"flex h-screen bg-[#030712] text-slate-300 overflow-hidden relative",children:[u.jsx("div",{className:"absolute top-0 left-0 w-full h-96 bg-indigo-900/10 rounded-full blur-[120px] -translate-y-1/2 pointer-events-none z-0"}),u.jsx(Ty,{}),u.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[u.jsx(_y,{}),u.jsx("main",{className:"flex-1 overflow-auto p-6 scroll-smooth relative",children:u.jsx("div",{className:"max-w-7xl mx-auto w-full",children:u.jsxs(ug,{children:[u.jsx(fl,{path:"/",element:u.jsx(Cy,{})}),u.jsx(fl,{path:"/prds",element:u.jsx(Ay,{})}),u.jsx(fl,{path:"/prs",element:u.jsx(Dy,{})}),u.jsx(fl,{path:"/scheduling",element:u.jsx(Ly,{})}),u.jsx(fl,{path:"/logs",element:u.jsx(qy,{})}),u.jsx(fl,{path:"/roadmap",element:u.jsx(Xy,{})}),u.jsx(fl,{path:"/settings",element:u.jsx(Gy,{})}),u.jsx(fl,{path:"*",element:u.jsx(ng,{to:"/",replace:!0})})]})})})]}),u.jsx(Jy,{})]})})),zm=document.getElementById("root");if(!zm)throw new Error("Could not find root element to mount to");const Fy=cv.createRoot(zm);Fy.render(u.jsx(Lt.StrictMode,{children:u.jsx(Wy,{})}));
|