@jonit-dev/night-watch-cli 1.7.1 → 1.7.2
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/commands/cancel.d.ts +1 -1
- package/dist/commands/cancel.d.ts.map +1 -1
- package/dist/commands/cancel.js +6 -7
- package/dist/commands/cancel.js.map +1 -1
- package/dist/commands/review.d.ts +4 -0
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/commands/review.js +51 -19
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/run.d.ts +6 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +59 -21
- package/dist/commands/run.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +185 -4
- package/dist/server/index.js.map +1 -1
- package/dist/utils/github.d.ts +10 -0
- package/dist/utils/github.d.ts.map +1 -1
- package/dist/utils/github.js +48 -26
- package/dist/utils/github.js.map +1 -1
- package/dist/utils/script-result.d.ts +12 -0
- package/dist/utils/script-result.d.ts.map +1 -0
- package/dist/utils/script-result.js +46 -0
- package/dist/utils/script-result.js.map +1 -0
- package/dist/utils/shell.d.ts +14 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +21 -1
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/status-data.d.ts +2 -0
- package/dist/utils/status-data.d.ts.map +1 -1
- package/dist/utils/status-data.js +30 -1
- package/dist/utils/status-data.js.map +1 -1
- package/package.json +1 -1
- package/scripts/night-watch-cron.sh +37 -6
- package/scripts/night-watch-helpers.sh +19 -0
- package/scripts/night-watch-pr-reviewer-cron.sh +23 -2
- package/web/dist/assets/index-BCMat9cx.js +350 -0
- package/web/dist/assets/{index-Dx_ZY5CY.css → index-BW6hS5jr.css} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-Cogy7oRw.js +0 -350
|
@@ -0,0 +1,350 @@
|
|
|
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 ar(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Yc={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 b0;function Fx(){if(b0)return Xn;b0=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 p in m)p!=="key"&&(h[p]=m[p])}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 S0;function Px(){return S0||(S0=1,Yc.exports=Fx()),Yc.exports}var u=Px(),Gc={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 j0;function Ix(){if(j0)return ie;j0=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"),p=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,ue){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var pe=!1;if(S===null)pe=!0;else switch(oe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(S.$$typeof){case s:case o:pe=!0;break;case w:return pe=S._init,A(pe(S._payload),H,k,F,ue)}}if(pe)return ue=ue(S),pe=F===""?"."+Ye(S,0):F,W(ue)?(k="",pe!=null&&(k=pe.replace(Je,"$&/")+"/"),A(ue,H,k,"",function(Ja){return Ja})):ue!=null&&(ne(ue)&&(ue=Z(ue,k+(ue.key==null||S&&S.key===ue.key?"":(""+ue.key).replace(Je,"$&/")+"/")+pe)),H.push(ue)),1;pe=0;var nt=F===""?".":F+":";if(W(S))for(var Be=0;Be<S.length;Be++)F=S[Be],oe=nt+Ye(F,Be),pe+=A(F,H,k,oe,ue);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++),pe+=A(F,H,k,oe,ue);else if(oe==="object"){if(typeof S.then=="function")return A(lt(S),H,k,F,ue);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 pe}function V(S,H,k){if(S==null)return S;var F=[],ue=0;return A(S,F,"","",function(oe){return H.call(k,oe,ue++)}),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),ue=S.key;if(H!=null)for(oe in H.key!==void 0&&(ue=""+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 pe=Array(oe),nt=0;nt<oe;nt++)pe[nt]=arguments[nt+2];F.children=pe}return J(S.type,ue,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,ue={},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"&&(ue[F]=H[F]);var pe=arguments.length-2;if(pe===1)ue.children=k;else if(1<pe){for(var nt=Array(pe),Be=0;Be<pe;Be++)nt[Be]=arguments[Be+2];ue.children=nt}if(S&&S.defaultProps)for(F in pe=S.defaultProps,pe)ue[F]===void 0&&(ue[F]=pe[F]);return J(S,oe,ue)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(S){return{$$typeof:p,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(),ue=te.S;ue!==null&&ue(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 N0;function nr(){return N0||(N0=1,Gc.exports=Ix()),Gc.exports}var E=nr();const Lt=ar(E);var Xc={exports:{}},Qn={},Qc={exports:{}},Zc={};/**
|
|
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 E0;function ev(){return E0||(E0=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,ue=A[F];if(0>m(k,ae))F<_e&&0>m(ue,k)?(A[Ee]=ue,A[F]=ae,Ee=F):(A[Ee]=k,A[H]=ae,Ee=H);else if(F<_e&&0>m(ue,ae))A[Ee]=ue,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,p=v.now();s.unstable_now=function(){return v.now()-p}}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}}}})(Zc)),Zc}var w0;function tv(){return w0||(w0=1,Qc.exports=ev()),Qc.exports}var Vc={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 R0;function lv(){if(R0)return at;R0=1;var s=nr();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 p(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=p(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=p(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=p(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=p(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 T0;function k0(){if(T0)return Vc.exports;T0=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(),Vc.exports=lv(),Vc.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 _0;function av(){if(_0)return Qn;_0=1;var s=tv(),o=nr(),f=k0();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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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),ue=S(null),oe=S(null),pe=S(null);function nt(e,t){switch(k(oe,t),k(ue,e),k(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qd(t),e=Zd(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(ue),H(oe)}function Ja(e){e.memoizedState!==null&&k(pe,e);var t=F.current,l=Zd(t,e.type);t!==l&&(k(ue,e),k(F,l))}function Wn(e){ue.current===e&&(H(F),H(ue)),pe.current===e&&(H(pe),Ln._currentValue=ae)}var ju,gr;function Gl(e){if(ju===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ju=t&&t[1]||"",gr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ju+e+gr}var Nu=!1;function Eu(e,t){if(!e||Nu)return"";Nu=!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 y=c.split(`
|
|
44
|
+
`),T=d.split(`
|
|
45
|
+
`);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===T.length)for(a=y.length-1,n=T.length-1;1<=a&&0<=n&&y[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==T[n]){var M=`
|
|
46
|
+
`+y[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{Nu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Gl(l):""}function _m(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 Eu(e.type,!1);case 11:return Eu(e.type.render,!1);case 1:return Eu(e.type,!0);case 31:return Gl("Activity");default:return""}}function yr(e){try{var t="",l=null;do t+=_m(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var wu=Object.prototype.hasOwnProperty,Ru=s.unstable_scheduleCallback,Tu=s.unstable_cancelCallback,zm=s.unstable_shouldYield,Cm=s.unstable_requestPaint,mt=s.unstable_now,Mm=s.unstable_getCurrentPriorityLevel,pr=s.unstable_ImmediatePriority,br=s.unstable_UserBlockingPriority,Fn=s.unstable_NormalPriority,Am=s.unstable_LowPriority,Sr=s.unstable_IdlePriority,Dm=s.log,Om=s.unstable_setDisableYieldValue,$a=null,ht=null;function hl(e){if(typeof Dm=="function"&&Om(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode($a,e)}catch{}}var xt=Math.clz32?Math.clz32:Bm,Um=Math.log,Hm=Math.LN2;function Bm(e){return e>>>=0,e===0?32:31-(Um(e)/Hm|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 Lm(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 jr(){var e=ei;return ei<<=1,(ei&62914560)===0&&(ei=4194304),e}function _u(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 qm(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,y=e.expirationTimes,T=e.hiddenUpdates;for(l=c&~l;0<l;){var M=31-xt(l),O=1<<M;d[M]=0,y[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&&Nr(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Nr(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 Er(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 wr(e,t){var l=t&-t;return l=(l&42)!==0?1:zu(l),(l&(e.suspendedLanes|t))!==0?0:l}function zu(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 Cu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:m0(e.type))}function Tr(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,Mu="__reactEvents$"+xl,Ym="__reactListeners$"+xl,Gm="__reactHandles$"+xl,_r="__reactResources$"+xl,Pa="__reactMarker$"+xl;function Au(e){delete e[Fe],delete e[ut],delete e[Mu],delete e[Ym],delete e[Gm]}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=Fd(e);e!==null;){if(l=e[Fe])return l;e=Fd(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[_r];return t||(t=e[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[Pa]=!0}var zr=new Set,Cr={};function Ql(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(Cr[e]=t,e=0;e<t.length;e++)zr.add(t[e])}var Xm=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]*$"),Mr={},Ar={};function Qm(e){return wu.call(Ar,e)?!0:wu.call(Mr,e)?!1:Xm.test(e)?Ar[e]=!0:(Mr[e]=!0,!1)}function li(e,t,l){if(Qm(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 Dr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zm(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 Du(e){if(!e._valueTracker){var t=Dr(e)?"checked":"value";e._valueTracker=Zm(e,t,""+e[t])}}function Or(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Dr(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 Vm=/[\n"\\]/g;function wt(e){return e.replace(Vm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ou(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?Uu(e,c,Et(t)):l!=null?Uu(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 Ur(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)){Du(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),Du(e)}function Uu(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 Hr(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 Br(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),Du(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 km=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 Lr(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||km.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function qr(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&&Lr(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Lr(e,i,t[i])}function Hu(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 Km=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"]]),Jm=/^[\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 Jm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var Bu=null;function Lu(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 Yr(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(Ou(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));Ou(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&&Or(a)}break e;case"textarea":Hr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var qu=!1;function Gr(e,t,l){if(qu)return e(t,l);qu=!0;try{var a=e(t);return a}finally{if(qu=!1,(ha!==null||xa!==null)&&(ki(),ha&&(t=ha,e=xa,xa=ha=null,Yr(t),e)))for(t=0;t<e.length;t++)Yr(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"),Yu=!1;if($t)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{Yu=!1}var vl=null,Gu=null,ui=null;function Xr(){if(ui)return ui;var e,t=Gu,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 Qr(){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:Qr,this.isPropagationStopped=Qr,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}),$m=st(ln),Xu,Qu,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:Vu,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"?(Xu=e.screenX-an.screenX,Qu=e.screenY-an.screenY):Qu=Xu=0,an=e),Xu)},movementY:function(e){return"movementY"in e?e.movementY:Qu}}),Zr=st(oi),Wm=N({},oi,{dataTransfer:0}),Fm=st(Wm),Pm=N({},ln,{relatedTarget:0}),Zu=st(Pm),Im=N({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),eh=st(Im),th=N({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lh=st(th),ah=N({},Zl,{data:0}),Vr=st(ah),nh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ih={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"},uh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uh[e])?!!t[e]:!1}function Vu(){return sh}var ch=N({},ln,{key:function(e){if(e.key){var t=nh[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"?ih[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,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}}),rh=st(ch),oh=N({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=st(oh),fh=N({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),dh=st(fh),mh=N({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),hh=st(mh),xh=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}),vh=st(xh),gh=N({},Zl,{newState:0,oldState:0}),yh=st(gh),ph=[9,13,27,32],ku=$t&&"CompositionEvent"in window,nn=null;$t&&"documentMode"in document&&(nn=document.documentMode);var bh=$t&&"TextEvent"in window&&!nn,Kr=$t&&(!ku||nn&&8<nn&&11>=nn),Jr=" ",$r=!1;function Wr(e,t){switch(e){case"keyup":return ph.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function Sh(e,t){switch(e){case"compositionend":return Fr(t);case"keypress":return t.which!==32?null:($r=!0,Jr);case"textInput":return e=t.data,e===Jr&&$r?null:e;default:return null}}function jh(e,t){if(va)return e==="compositionend"||!ku&&Wr(e,t)?(e=Xr(),ui=Gu=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 Kr&&t.locale!=="ko"?null:t.data;default:return null}}var Nh={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 Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Nh[e.type]:t==="textarea"}function Ir(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 Eh(e){Bd(e,0)}function fi(e){var t=Ia(e);if(Or(t))return e}function eo(e,t){if(e==="change")return t}var to=!1;if($t){var Ku;if($t){var Ju="oninput"in document;if(!Ju){var lo=document.createElement("div");lo.setAttribute("oninput","return;"),Ju=typeof lo.oninput=="function"}Ku=Ju}else Ku=!1;to=Ku&&(!document.documentMode||9<document.documentMode)}function ao(){un&&(un.detachEvent("onpropertychange",no),sn=un=null)}function no(e){if(e.propertyName==="value"&&fi(sn)){var t=[];Ir(t,sn,e,Lu(e)),Gr(Eh,t)}}function wh(e,t,l){e==="focusin"?(ao(),un=t,sn=l,un.attachEvent("onpropertychange",no)):e==="focusout"&&ao()}function Rh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fi(sn)}function Th(e,t){if(e==="click")return fi(t)}function _h(e,t){if(e==="input"||e==="change")return fi(t)}function zh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:zh;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(!wu.call(t,n)||!vt(e[n],t[n]))return!1}return!0}function io(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uo(e,t){var l=io(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=io(l)}}function so(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?so(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function co(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 $u(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 Ch=$t&&"documentMode"in document&&11>=document.documentMode,ga=null,Wu=null,rn=null,Fu=!1;function ro(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fu||ga==null||ga!==ni(a)||(a=ga,"selectionStart"in a&&$u(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(Wu,"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 ya={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")},Pu={},oo={};$t&&(oo=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function kl(e){if(Pu[e])return Pu[e];if(!ya[e])return e;var t=ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in oo)return Pu[e]=t[l];return e}var fo=kl("animationend"),mo=kl("animationiteration"),ho=kl("animationstart"),Mh=kl("transitionrun"),Ah=kl("transitionstart"),Dh=kl("transitioncancel"),xo=kl("transitionend"),vo=new Map,Iu="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(" ");Iu.push("scrollEnd");function Ut(e,t){vo.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=[],pa=0,es=0;function mi(){for(var e=pa,t=es=pa=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&&go(l,n,i)}}function hi(e,t,l,a){Rt[pa++]=e,Rt[pa++]=t,Rt[pa++]=l,Rt[pa++]=a,es|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ts(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 go(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,oc=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 Oh(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 Oh(e,t,l,a)}function ls(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")ls(e)&&(c=1);else if(typeof e=="string")c=qx(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 as(e,t,l){return e=gt(6,e,null,t),e.lanes=l,e}function po(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function ns(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 bo=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var l=bo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:yr(t)},bo.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,Xt=1,Qt="";function Ft(e,t){Sa[ja++]=on,Sa[ja++]=gi,gi=e,on=t}function So(e,t,l){_t[zt++]=Xt,_t[zt++]=Qt,_t[zt++]=gl,gl=e;var a=Xt;e=Qt;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,Xt=1<<32-xt(t)+n|l<<n|a,Qt=i+e}else Xt=1<<i|l<<n|a,Qt=e}function is(e){e.return!==null&&(Ft(e,1),So(e,1,0))}function us(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,Qt=_t[--zt],_t[zt]=null,Xt=_t[--zt],_t[zt]=null}function jo(e,t){_t[zt++]=Xt,_t[zt++]=Qt,_t[zt++]=gl,Xt=t.id,Qt=t.overflow,gl=e}var Pe=null,Ce=null,xe=!1,yl=null,Ct=!1,ss=Error(r(519));function pl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fn(Tt(t,e)),ss}function No(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),Ur(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),Br(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||Gd(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||pl(e,!0)}function Eo(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 Eo(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")||wc(e.type,e.memoizedProps)),l=!l),l&&Ce&&pl(e),Eo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ce=Wd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ce=Wd(e)}else t===27?(t=Ce,Dl(e.type)?(e=Cc,Cc=null,Ce=e):Ce=t):Ce=Pe?At(e.stateNode.nextSibling):null;return!0}function $l(){Ce=Pe=null,xe=!1}function cs(){var e=yl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),yl=null),e}function fn(e){yl===null?yl=[e]:yl.push(e)}var rs=S(null),Wl=null,Pt=null;function bl(e,t,l){k(rs,t._currentValue),t._currentValue=l}function It(e){e._currentValue=rs.current,H(rs)}function os(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 fs(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 y=0;y<t.length;y++)if(d.context===t[y]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),os(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),os(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===pe.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&&fs(t,e,l,a),t.flags|=262144}function yi(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 wo(Wl,e)}function pi(e,t){return Wl===null&&Fl(e),wo(e,t)}function wo(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 Uh=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()})}},Hh=s.unstable_scheduleCallback,Bh=s.unstable_NormalPriority,Ge={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ds(){return{controller:new Uh,data:new Map,refCount:0}}function dn(e){e.refCount--,e.refCount===0&&Hh(Bh,function(){e.controller.abort()})}var mn=null,ms=0,wa=0,Ra=null;function Lh(e,t){if(mn===null){var l=mn=[];ms=0,wa=vc(),Ra={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ms++,t.then(Ro,Ro),t}function Ro(){if(--ms===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 qh(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 To=A.S;A.S=function(e,t){fd=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lh(e,t),To!==null&&To(e,t)};var Pl=S(null);function hs(){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 _o(){var e=hs();return e===null?null:{parent:Ge._currentValue,pool:e}}var Ta=Error(r(460)),xs=Error(r(474)),Si=Error(r(542)),ji={then:function(){}};function zo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Co(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,Ao(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,Ao(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 Mo(){if(ea===null)throw Error(r(459));var e=ea;return ea=null,e}function Ao(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=[]),Co(_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 Do(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=as(R,j.mode,D),b.return=j,b):(b=n(b,R),b.return=j,b)}function y(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=ns(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=as(""+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=ns(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,pi(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?y(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,pi(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,y(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,pi(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(Wx){return t(j,Wx)}),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=ns(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,pi(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=as(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=Do(!0),Oo=Do(!1),Sl=!1;function vs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gs(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,(ye&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),go(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,Er(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 ps=!1;function gn(){if(ps){var e=Ra;if(e!==null)throw e}}function yn(e,t,l,a){ps=!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 y=d,T=y.next;y.next=null,c===null?i=T:c.next=T,c=y;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==c&&(d===null?M.firstBaseUpdate=T:d.next=T,M.lastBaseUpdate=y))}if(i!==null){var O=n.baseState;c=0,M=T=y=null,d=i;do{var _=d.lane&-536870913,z=_!==d.lane;if(z?(me&_)===_:(a&_)===_){_!==0&&_===wa&&(ps=!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,y=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&&(y=O),n.baseState=y,n.firstBaseUpdate=T,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),_l|=c,e.lanes=c,e.memoizedState=O}}function Uo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ho(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Uo(l[e],t)}var za=S(null),wi=S(0);function Bo(e,t){e=cl,k(wi,e),k(za,t),cl=e|t.baseLanes}function bs(){k(wi,cl),k(za,za.current)}function Ss(){cl=wi.current,H(za),H(wi)}var yt=S(null),Mt=null;function El(e){var t=e.alternate;k(Le,Le.current&1),k(yt,e),Mt===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(Mt=e)}function js(e){k(Le,Le.current),k(yt,e),Mt===null&&(Mt=e)}function Lo(e){e.tag===22?(k(Le,Le.current),k(yt,e),Mt===null&&(Mt=e)):wl()}function wl(){k(Le,Le.current),k(yt,yt.current)}function pt(e){H(yt),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||_c(l)||zc(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,se=null,we=null,Xe=null,Ti=!1,Ca=!1,la=!1,_i=0,pn=0,Ma=null,Yh=0;function Oe(){throw Error(r(321))}function Ns(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 Es(e,t,l,a,n,i){return el=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?jf:qs,la=!1,i=l(a,n),la=!1,Ca&&(i=Yo(t,l,a,n)),qo(e),i}function qo(e){A.H=jn;var t=we!==null&&we.next!==null;if(el=0,Xe=we=se=null,Ti=!1,pn=0,Ma=null,t)throw Error(r(300));e===null||Qe||(e=e.dependencies,e!==null&&yi(e)&&(Qe=!0))}function Yo(e,t,l,a){se=e;var n=0;do{if(Ca&&(Ma=null),pn=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=Nf,i=t(l,a)}while(Ca);return i}function Gh(){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&&(se.flags|=1024),t}function ws(){var e=_i!==0;return _i=0,e}function Rs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ts(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=se=null,Ca=!1,pn=_i=0,Ma=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?se.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function qe(){if(we===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Xe===null?se.memoizedState:Xe.next;if(t!==null)Xe=t,we=e;else{if(e===null)throw se.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?se.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=pn;return pn+=1,Ma===null&&(Ma=[]),e=Co(Ma,e,t),t=se,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?jf:qs),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 _s(e){var t=null,l=se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=se.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(),se.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 zs(t,we,e)}function zs(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,y=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)y!==null&&(y=y.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},y===null?(d=y=O,c=i):y=y.next=O,se.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},y===null?(d=y=_,c=i):y=y.next=_,se.lanes|=O,_l|=O;T=T.next}while(T!==null&&T!==t);if(y===null?c=i:y.next=d,!vt(i,e.memoizedState)&&(Qe=!0,M&&(l=Ra,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=y,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Cs(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 Go(e,t,l){var a=se,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,Ds(Zo.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},Qo.bind(null,a,n,l,t),null),ze===null)throw Error(r(349));i||(el&127)!==0||Xo(a,t,l)}return l}function Xo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=se.updateQueue,t===null?(t=zi(),se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Qo(e,t,l,a){t.value=l,t.getSnapshot=a,Vo(t)&&ko(e)}function Zo(e,t,l){return l(function(){Vo(t)&&ko(e)})}function Vo(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 Ms(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 Ko(e,t,l,a){return e.baseState=l,zs(e,we,typeof a=="function"?a:tl)}function Xh(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,Jo(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Jo(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),y=A.S;y!==null&&y(c,d),$o(e,t,d)}catch(T){As(e,t,T)}finally{i!==null&&c.types!==null&&(i.types=c.types),A.T=i}}else try{i=l(n,a),$o(e,t,i)}catch(T){As(e,t,T)}}function $o(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Wo(e,t,a)},function(a){return As(e,t,a)}):Wo(e,t,l)}function Wo(e,t,l){t.status="fulfilled",t.value=l,Fo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Jo(e,l)))}function As(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Fo(t),t=t.next;while(t!==a)}e.action=null}function Fo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Po(e,t){return t}function Io(e,t){if(xe){var l=ze.formState;if(l!==null){e:{var a=se;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}}pl(a)}a=!1}a&&(t=l[0])}}return l=it(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:t},l.queue=a,l=pf.bind(null,se,a),a.dispatch=l,a=Ms(!1),i=Ls.bind(null,se,!1,a.queue),a=it(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Xh.bind(null,se,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function ef(e){var t=qe();return tf(t,we,e)}function tf(e,t,l){if(t=zs(e,t,Po)[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&&(se.flags|=2048,Aa(9,{destroy:void 0},Qh.bind(null,n,l),null)),[a,i,e]}function Qh(e,t){e.action=t}function lf(e){var t=qe(),l=we;if(l!==null)return tf(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=se.updateQueue,t===null&&(t=zi(),se.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 af(){return qe().memoizedState}function Ai(e,t,l,a){var n=it();se.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&&Ns(a,we.memoizedState.deps)?n.memoizedState=Aa(t,i,l,a):(se.flags|=e,n.memoizedState=Aa(1|t,i,l,a))}function nf(e,t){Ai(8390656,8,e,t)}function Ds(e,t){Di(2048,8,e,t)}function Zh(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=zi(),se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function uf(e){var t=qe().memoizedState;return Zh({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function sf(e,t){return Di(4,2,e,t)}function cf(e,t){return Di(4,4,e,t)}function rf(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 of(e,t,l){l=l!=null?l.concat([e]):null,Di(4,4,rf.bind(null,t,e),l)}function Os(){}function ff(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ns(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function df(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ns(t,a[1]))return a[0];if(a=e(),la){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function Us(e,t,l){return l===void 0||(el&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=md(),se.lanes|=e,_l|=e,l)}function mf(e,t,l,a){return vt(l,t)?l:za.current!==null?(e=Us(e,l,a),vt(e,t)||(Qe=!0),e):(el&42)===0||(el&1073741824)!==0&&(me&261930)===0?(Qe=!0,e.memoizedState=l):(e=md(),se.lanes|=e,_l|=e,t)}function hf(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,Ls(e,!1,t,l);try{var y=n(),T=A.S;if(T!==null&&T(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var M=qh(y,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 Vh(){}function Hs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=xf(e).queue;hf(e,n,t,ae,l===null?Vh:function(){return vf(e),l(a)})}function xf(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 vf(e){var t=xf(e);t.next===null&&(t=e.alternate.memoizedState),Sn(e,t.next.queue,{},jt())}function Bs(){return Ie(Ln)}function gf(){return qe().memoizedState}function yf(){return qe().memoizedState}function kh(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:ds()},e.payload=t;return}t=t.return}}function Kh(e,t,l){var a=jt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Oi(e)?bf(t,l):(l=ts(e,t,l,a),l!==null&&(dt(l,e,a),Sf(l,t,a)))}function pf(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))bf(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=ts(e,t,n,a),l!==null)return dt(l,e,a),Sf(l,t,a),!0}return!1}function Ls(e,t,l,a){if(a={lane:2,revertLane:vc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Oi(e)){if(t)throw Error(r(479))}else t=ts(e,l,a,2),t!==null&&dt(t,e,2)}function Oi(e){var t=e.alternate;return e===se||t!==null&&t===se}function bf(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 Sf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Er(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 jf={readContext:Ie,use:Ci,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:nf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ai(4194308,4,rf.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=Kh.bind(null,se,e),[a.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=Ms(e);var t=e.queue,l=pf.bind(null,se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Os,useDeferredValue:function(e,t){var l=it();return Us(l,e,t)},useTransition:function(){var e=Ms(!1);return e=hf.bind(null,se,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=se,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||Xo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,nf(Zo.bind(null,a,i,e),[e]),a.flags|=2048,Aa(9,{destroy:void 0},Qo.bind(null,a,i,l,t),null),l},useId:function(){var e=it(),t=ze.identifierPrefix;if(xe){var l=Qt,a=Xt;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=Yh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Bs,useFormState:Io,useActionState:Io,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=Ls.bind(null,se,!0,l),l.dispatch=t,[e,t]},useMemoCache:_s,useCacheRefresh:function(){return it().memoizedState=kh.bind(null,se)},useEffectEvent:function(e){var t=it(),l={impl:e};return t.memoizedState=l,function(){if((ye&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},qs={readContext:Ie,use:Ci,useCallback:ff,useContext:Ie,useEffect:Ds,useImperativeHandle:of,useInsertionEffect:sf,useLayoutEffect:cf,useMemo:df,useReducer:Mi,useRef:af,useState:function(){return Mi(tl)},useDebugValue:Os,useDeferredValue:function(e,t){var l=qe();return mf(l,we.memoizedState,e,t)},useTransition:function(){var e=Mi(tl)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Go,useId:gf,useHostTransitionStatus:Bs,useFormState:ef,useActionState:ef,useOptimistic:function(e,t){var l=qe();return Ko(l,we,e,t)},useMemoCache:_s,useCacheRefresh:yf};qs.useEffectEvent=uf;var Nf={readContext:Ie,use:Ci,useCallback:ff,useContext:Ie,useEffect:Ds,useImperativeHandle:of,useInsertionEffect:sf,useLayoutEffect:cf,useMemo:df,useReducer:Cs,useRef:af,useState:function(){return Cs(tl)},useDebugValue:Os,useDeferredValue:function(e,t){var l=qe();return we===null?Us(l,e,t):mf(l,we.memoizedState,e,t)},useTransition:function(){var e=Cs(tl)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Go,useId:gf,useHostTransitionStatus:Bs,useFormState:lf,useActionState:lf,useOptimistic:function(e,t){var l=qe();return we!==null?Ko(l,we,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:_s,useCacheRefresh:yf};Nf.useEffectEvent=uf;function Ys(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 Gs={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 Ef(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 wf(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&&Gs.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 Rf(e){di(e)}function Tf(e){console.error(e)}function _f(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 zf(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 Xs(e,t,l){return l=jl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ui(e,t)},l}function Cf(e){return e=jl(e),e.tag=3,e}function Mf(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(){zf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){zf(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 Jh(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=yt.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),mc(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)),mc(e,a,n)),!1}throw Error(r(435,l.tag))}return mc(e,a,n),Ki(),!1}if(xe)return t=yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ss&&(e=Error(r(422),{cause:a}),fn(Tt(e,l)))):(a!==ss&&(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=Xs(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=Xs(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=Cf(n),Mf(n,e,l,a),ys(l,n),!1}l=l.return}while(l!==null);return!1}var Qs=Error(r(461)),Qe=!1;function et(e,t,l,a){t.child=e===null?Oo(t,null,l,a):ta(t,e.child,l,a)}function Af(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=Es(e,t,l,c,i,n),d=ws(),e!==null&&!Qe?(Rs(e,t,n),ll(e,t,n)):(xe&&d&&is(t),t.flags|=1,et(e,t,a,n),t.child)}function Df(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!ls(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Of(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,!Fs(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 Of(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,Fs(e,n))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,ll(e,t,n)}return Zs(e,t,l,a,n)}function Uf(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 Hf(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?Bo(t,i):bs(),Lo(t);else return a=t.lanes=536870912,Hf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(bi(t,i.cachePool),Bo(t,i),wl(),t.memoizedState=null):(e!==null&&bi(t,null),bs(),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 Hf(e,t,l,a,n){var i=hs();return i=i===null?null:{parent:Ge._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&bi(t,null),bs(),Lo(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 Bf(e,t,l){return ta(t,e.child,null,l),e=Hi(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function $h(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(js(t),(e=Ce)?(e=$d(e,Ct),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},l=po(e),l.return=t,t.child=l,Pe=t,Ce=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return Hi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(js(t),n)if(t.flags&256)t.flags&=-257,t=Bf(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=wr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Kl(e,c),dt(a,e,c),Qs;Ki(),t=Bf(e,t,l)}else e=i.treeContext,Ce=At(c.nextSibling),Pe=t,xe=!0,yl=null,Ct=!1,e!==null&&jo(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 Zs(e,t,l,a,n){return Fl(t),l=Es(e,t,l,a,void 0,n),a=ws(),e!==null&&!Qe?(Rs(e,t,n),ll(e,t,n)):(xe&&a&&is(t),t.flags|=1,et(e,t,l,n),t.child)}function Lf(e,t,l,a,n,i){return Fl(t),t.updateQueue=null,l=Yo(t,a,l,n),qo(e),a=ws(),e!==null&&!Qe?(Rs(e,t,i),ll(e,t,i)):(xe&&a&&is(t),t.flags|=1,et(e,t,l,i),t.child)}function qf(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=Gs,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},vs(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?Ie(c):ba,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Ys(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&&Gs.enqueueReplaceState(i,i.state,null),yn(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,y=aa(l,d);i.props=y;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)&&wf(t,i,a,c),Sl=!1;var _=t.memoizedState;i.state=_,yn(t,a,i,n),gn(),T=t.memoizedState,d||_!==T||Sl?(typeof O=="function"&&(Ys(t,l,O,a),T=t.memoizedState),(y=Sl||Ef(t,l,y,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=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,gs(e,t),c=t.memoizedProps,M=aa(l,c),i.props=M,O=t.pendingProps,_=i.context,T=l.contextType,y=ba,typeof T=="object"&&T!==null&&(y=Ie(T)),d=l.getDerivedStateFromProps,(T=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==O||_!==y)&&wf(t,i,a,y),Sl=!1,_=t.memoizedState,i.state=_,yn(t,a,i,n),gn();var z=t.memoizedState;c!==O||_!==z||Sl||e!==null&&e.dependencies!==null&&yi(e.dependencies)?(typeof d=="function"&&(Ys(t,l,d,a),z=t.memoizedState),(M=Sl||Ef(t,l,M,a,_,z,y)||e!==null&&e.dependencies!==null&&yi(e.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,z,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,z,y)),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=y,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 Yf(e,t,l,a){return $l(),t.flags|=256,et(e,t,l,a),t.child}var Vs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ks(e){return{baseLanes:e,cachePool:_o()}}function Ks(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Gf(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=$d(e,Ct),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},l=po(e),l.return=t,t.child=l,Pe=t,Ce=null)):e=null,e===null)throw pl(t);return zc(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=Ks(e,c,l),t.memoizedState=Vs,Nn(null,a)):(El(t),Js(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(i)t.flags&256?(El(t),t.flags&=-257,t=$s(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=Ks(e,c,l),t.memoizedState=Vs,t=Nn(null,a));else if(El(t),zc(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=$s(e,t,l)}else if(Qe||Ea(e,t,l,!1),c=(l&e.childLanes)!==0,Qe||c){if(c=ze,c!==null&&(a=wr(c,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,Kl(e,a),dt(c,e,a),Qs;_c(d)||Ki(),t=$s(e,t,l)}else _c(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Ce=At(d.nextSibling),Pe=t,xe=!0,yl=null,Ct=!1,e!==null&&jo(t,e),t=Js(t,a.children),t.flags|=4096);return t}return n?(wl(),d=a.fallback,n=t.mode,y=e.child,T=y.sibling,a=Wt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.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?(y=Ge._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=_o(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Ks(e,c,l),t.memoizedState=Vs,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 Js(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 $s(e,t,l){return ta(t,e.child,null,l),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),os(e.return,t,l)}function Ws(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 Qf(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&&Xf(e,l,t);else if(e.tag===19)Xf(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),Ws(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}Ws(t,!0,l,null,i,a);break;case"together":Ws(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 Fs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yi(e)))}function Wh(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,js(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?Gf(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 Qf(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,Uf(e,t,l,t.pendingProps);case 24:bl(t,Ge,e.memoizedState.cache)}return ll(e,t,l)}function Zf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Fs(e,l)&&(t.flags&128)===0)return Qe=!1,Wh(e,t,l);Qe=(e.flags&131072)!==0}else Qe=!1,xe&&(t.flags&1048576)!==0&&So(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")ls(e)?(a=aa(e,a),t.tag=1,t=qf(null,t,e,a,l)):(t.tag=0,t=Zs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===X){t.tag=11,t=Af(null,t,e,a,l);break e}else if(n===te){t.tag=14,t=Df(null,t,e,a,l);break e}}throw t=Ye(e)||e,Error(r(306,t,""))}}return t;case 0:return Zs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=aa(a,t.pendingProps),qf(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,gs(e,t),yn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,bl(t,Ge,a),a!==i.cache&&fs(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=Yf(e,t,a,l);break e}else if(a!==n){n=Tt(Error(r(424)),t),fn(n),t=Yf(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,yl=null,Ct=!0,l=Oo(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=t0(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=t0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&xe&&(a=t.stateNode=Pd(t.type,t.pendingProps,oe.current),Pe=t,Ct=!0,n=Ce,Dl(t.type)?(Cc=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=Rx(a,t.type,t.pendingProps,Ct),a!==null?(t.stateNode=a,Pe=t,Ce=At(a.firstChild),Ct=!1,n=!0):n=!1),n||pl(t)),Ja(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,wc(n,i)?a=null:c!==null&&wc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Es(e,t,Gh,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=Tx(l,t.pendingProps,Ct),l!==null?(t.stateNode=l,Pe=t,Ce=null,e=!0):e=!1),e||pl(t)),null;case 13:return Gf(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 Af(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 Df(e,t,t.type,t.pendingProps,l);case 15:return Of(e,t,t.type,t.pendingProps,l);case 19:return Qf(e,t,l);case 31:return $h(e,t,l);case 22:return Uf(e,t,l,t.pendingProps);case 24:return Fl(t),a=Ie(Ge),e===null?(n=hs(),n===null&&(n=ze,i=ds(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},vs(t),bl(t,Ge,n)):((e.lanes&l)!==0&&(gs(e,t),yn(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&&fs(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 Ps(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(gd())e.flags|=8192;else throw ea=ji,xs}else e.flags&=-16777217}function Vf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!u0(t))if(gd())e.flags|=8192;else throw ea=ji,xs}function qi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jr():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 Fh(e,t,l){var a=t.pendingProps;switch(us(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,cs())),Me(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(al(t),i!==null?(Me(t),Vf(t,i)):(Me(t),Ps(t,n,null,a,l))):i?i!==e.memoizedState?(al(t),Me(t),Vf(t,i)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&al(t),Me(t),Ps(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)?No(t):(e=Pd(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))No(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),Ps(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||Gd(e.nodeValue,l)),e||pl(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=cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(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=cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(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&&bc(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 pt(t),Ss(),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 Ph(e,t){switch(us(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(pt(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(pt(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 pt(t),Ss(),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(us(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&&pt(t);break;case 13:pt(t);break;case 19:H(Le);break;case 10:It(t.type);break;case 22:case 23:pt(t),Ss(),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 y=l,T=d;try{T()}catch(M){je(n,y,M)}}}a=a.next}while(a!==i)}}catch(M){je(t,t.return,M)}}function Kf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ho(t,l)}catch(a){je(e,e.return,a)}}}function Jf(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 Zt(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 $f(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 Is(e,t,l){try{var a=e.stateNode;bx(a,e.type,l,t),a[ut]=t}catch(n){je(e,e.return,n)}}function Wf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wf(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 tc(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(tc(e,t,l),e=e.sibling;e!==null;)tc(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 Ff(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,lc=!1,Pf=typeof WeakSet=="function"?WeakSet:Set,We=null;function Ih(e,t){if(e=e.containerInfo,Nc=su,e=co(e),$u(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,y=-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||(y=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&&(y=c),(z=O.nextSibling)!==null)break;O=_,_=O.parentNode}O=z}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ec={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)Tc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tc(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 If(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&&Kf(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{Ho(e,t)}catch(c){je(l,l.return,c)}}break;case 27:t===null&&a&4&&Ff(l);case 26:case 5:ul(e,l),t===null&&a&4&&$f(l),a&512&&Rn(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),a&4&&ld(e,l);break;case 13:ul(e,l),a&4&&ad(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=cx.bind(null,l),_x(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 ed(e){var t=e.alternate;t!==null&&(e.alternate=null,ed(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Au(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;)td(e,t,l),l=l.sibling}function td(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:Ze||Zt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ze||Zt(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||Zt(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,Kd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Za(e)):Kd(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||(Zt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Jf(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 ld(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 ad(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 ex(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Pf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Pf),t;default:throw Error(r(435,e.tag))}}function Gi(e,t){var l=ex(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=rx.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));td(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;)nd(t,e),t=t.sibling}var Ht=null;function nd(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||Zt(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||Zt(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=n0("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=n0("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 i0(n,e.type,e.stateNode);else e.stateNode=a0(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?i0(n,e.type,e.stateNode):a0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Is(e,e.memoizedProps,l.memoizedProps)}break;case 27:rt(t,e),ot(e),a&512&&(Ze||l===null||Zt(l,l.return)),l!==null&&a&4&&Is(e,e.memoizedProps,l.memoizedProps);break;case 5:if(rt(t,e),ot(e),a&512&&(Ze||l===null||Zt(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,Is(e,n,l!==null?l.memoizedProps:n)),a&1024&&(lc=!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,$)}lc&&(lc=!1,id(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 y=l!==null&&l.memoizedState!==null,T=nl,M=Ze;if(nl=T||n,Ze=M||y,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||y||nl||Ze||na(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(i=y.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=y.stateNode;var O=y.memoizedProps.style,_=O!=null&&O.hasOwnProperty("display")?O.display:null;d.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch($){je(y,y.return,$)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch($){je(y,y.return,$)}}}else if(t.tag===18){if(l===null){y=t;try{var z=y.stateNode;n?Jd(z,!0):Jd(y.stateNode,!1)}catch($){je(y,y.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(Wf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=ec(e);Yi(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(ma(c,""),l.flags&=-33);var d=ec(e);Yi(e,d,c);break;case 3:case 4:var y=l.stateNode.containerInfo,T=ec(e);tc(e,T,y);break;default:throw Error(r(161))}}catch(M){je(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function id(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;id(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;)If(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:Zt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Jf(t,t.return,l),na(t);break;case 27:Un(t.stateNode);case 26:case 5:Zt(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 y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)Uo(y[n],d)}catch(T){je(a,a.return,T)}}l&&c&64&&Kf(i),Rn(i,i.return);break;case 27:Ff(i);case 26:case 5:sl(n,i,l),l&&a===null&&c&4&&$f(i),Rn(i,i.return);break;case 12:sl(n,i,l);break;case 31:sl(n,i,l),l&&c&4&&ld(n,i);break;case 13:sl(n,i,l),l&&c&4&&ad(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 ac(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 nc(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;)ud(e,t,l,a),t=t.sibling}function ud(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(y){je(t,t.return,y)}}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&&ac(c,t);break;case 24:Bt(e,t,l,a),n&2048&&nc(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,y=a,T=c.flags;switch(c.tag){case 0:case 11:case 15:Da(i,c,d,y,n),wn(8,c);break;case 23:break;case 22:var M=c.stateNode;c.memoizedState!==null?M._visibility&2?Da(i,c,d,y,n):Tn(i,c):(M._visibility|=2,Da(i,c,d,y,n)),n&&T&2048&&ac(c.alternate,c);break;case 24:Da(i,c,d,y,n),n&&T&2048&&nc(c.alternate,c);break;default:Da(i,c,d,y,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&&ac(a.alternate,a);break;case 24:Tn(l,a),n&2048&&nc(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;)sd(e,t,l),e=e.sibling}function sd(e,t,l){switch(e.tag){case 26:Oa(e,t,l),e.flags&_n&&e.memoizedState!==null&&Yx(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 cd(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,od(a,e)}cd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rd(e),e=e.sibling}function rd(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,od(a,e)}cd(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 od(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(ed(a),a===l){We=null;break e}if(n!==null){n.return=i,We=n;break e}We=i}}}var tx={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}},lx=typeof WeakMap=="function"?WeakMap:Map,ye=0,ze=null,fe=null,me=0,Se=0,bt=null,Tl=!1,Ua=!1,ic=!1,cl=0,Ue=0,_l=0,ia=0,uc=0,St=0,Ha=0,Cn=null,ft=null,sc=!1,Qi=0,fd=0,Zi=1/0,Vi=null,zl=null,Ve=0,Cl=null,Ba=null,rl=0,cc=0,rc=null,dd=null,Mn=0,oc=null;function jt(){return(ye&2)!==0&&me!==0?me&-me:A.T!==null?vc():Rr()}function md(){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=yt.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),((ye&2)===0||e!==ze)&&(e===ze&&((ye&2)===0&&(ia|=l),Ue===4&&Ml(e,me,St,!1)),Vt(e))}function hd(e,t,l){if((ye&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),n=a?ix(e,t):dc(e,t,!0),i=a;do{if(n===0){Ua&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!ax(l)){n=dc(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 y=d.current.memoizedState.isDehydrated;if(y&&(La(d,c).flags|=256),c=dc(d,c,!1),c!==2){if(ic&&!y){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=Vd(xd.bind(null,a,l,ft,Vi,sc,t,St,ia,Ha,Tl,i,"Throttled",-0,0),n);break e}xd(a,l,ft,Vi,sc,t,St,ia,Ha,Tl,i,null,-0,0)}}break}while(!0);Vt(e)}function xd(e,t,l,a,n,i,c,d,y,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},sd(t,i,O);var $=(i&62914560)===i?Qi-mt():(i&4194048)===i?fd-mt():0;if($=Gx(O,$),$!==null){rl=i,e.cancelPendingCommit=$(Nd.bind(null,e,t,i,l,a,n,c,d,y,M,O,null,_,z)),Ml(e,i,c,!T);return}}Nd(e,t,i,l,a,n,c,d,y)}function ax(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&=~uc,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&&Nr(e,l,t)}function ki(){return(ye&6)===0?(An(0),!1):!0}function fc(){if(fe!==null){if(Se===0)var e=fe.return;else e=fe,Pt=Wl=null,Ts(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,Nx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,fc(),ze=e,fe=l=Wt(e.current,null),me=t,Se=0,bt=null,Tl=!1,Ua=Wa(e,t),ic=!1,Ha=St=uc=ia=_l=Ue=0,ft=Cn=null,sc=!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 vd(e,t){se=null,A.H=jn,t===Ta||t===Si?(t=Mo(),Se=3):t===xs?(t=Mo(),Se=4):Se=t===Qs?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 gd(){var e=yt.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 pd(){var e=A.A;return A.A=tx,e}function Ki(){Ue=4,Tl||(me&4194048)!==me&&yt.current!==null||(Ua=!0),(_l&134217727)===0&&(ia&134217727)===0||ze===null||Ml(ze,me,St,!1)}function dc(e,t,l){var a=ye;ye|=2;var n=yd(),i=pd();(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,y=bt;switch(Se){case 8:fc(),c=6;break e;case 3:case 2:case 9:case 6:yt.current===null&&(t=!0);var T=Se;if(Se=0,bt=null,qa(e,d,y,T),l&&Ua){c=0;break e}break;default:T=Se,Se=0,bt=null,qa(e,d,y,T)}}nx(),c=Ue;break}catch(M){vd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Pt=Wl=null,ye=a,A.H=n,A.A=i,fe===null&&(ze=null,me=0,mi()),c}function nx(){for(;fe!==null;)bd(fe)}function ix(e,t){var l=ye;ye|=2;var a=yd(),n=pd();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(zo(i)){Se=0,bt=null,Sd(t);break}t=function(){Se!==2&&Se!==9||ze!==e||(Se=7),Vt(e)},i.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:zo(i)?(Se=0,bt=null,Sd(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?u0(c):d.stateNode.complete){Se=0,bt=null;var y=d.sibling;if(y!==null)fe=y;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:fc(),Ue=6;break e;default:throw Error(r(462))}}ux();break}catch(M){vd(e,M)}while(!0);return Pt=Wl=null,A.H=a,A.A=n,ye=l,fe!==null?0:(ze=null,me=0,mi(),Ue)}function ux(){for(;fe!==null&&!zm();)bd(fe)}function bd(e){var t=Zf(e.alternate,e,cl);e.memoizedProps=e.pendingProps,t===null?Ji(e):fe=t}function Sd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Lf(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Lf(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Ts(t);default:kf(l,t),t=fe=yo(t,cl),t=Zf(l,t,cl)}e.memoizedProps=e.pendingProps,t===null?Ji(e):fe=t}function qa(e,t,l,a){Pt=Wl=null,Ts(t),_a=null,hn=0;var n=t.return;try{if(Jh(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=yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),jd(t,e)):Ji(t)}function Ji(e){var t=e;do{if((t.flags&32768)!==0){jd(t,Tl);return}e=t.return;var l=Fh(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 jd(e,t){do{var l=Ph(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 Nd(e,t,l,a,n,i,c,d,y){e.cancelPendingCommit=null;do $i();while(Ve!==0);if((ye&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=es,qm(e,l,i,c,d,y),e===ze&&(fe=ze=null,me=0),Ba=t,Cl=e,rl=l,cc=i,rc=n,dd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ox(Fn,function(){return _d(),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=ye,ye|=4;try{Ih(e,t,l)}finally{ye=c,V.p=n,A.T=a}}Ve=1,Ed(),wd(),Rd()}}function Ed(){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=ye;ye|=4;try{nd(t,e);var i=Ec,c=co(e.containerInfo),d=i.focusedElem,y=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&so(d.ownerDocument.documentElement,d)){if(y!==null&&$u(d)){var T=y.start,M=y.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(y.start,$),Te=y.end===void 0?le:Math.min(y.end,$);!z.extend&&le>Te&&(c=Te,Te=le,le=c);var j=uo(d,le),b=uo(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=!!Nc,Ec=Nc=null}finally{ye=n,V.p=a,A.T=l}}e.current=t,Ve=2}}function wd(){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=ye;ye|=4;try{If(e,t.alternate,t)}finally{ye=n,V.p=a,A.T=l}}Ve=3}}function Rd(){if(Ve===4||Ve===3){Ve=0,Cm();var e=Cl,t=Ba,l=rl,a=dd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ve=5:(Ve=0,Ba=Cl=null,Td(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),Cu(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(),Vt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===oc?Mn++:(Mn=0,oc=e):Mn=0,An(0)}}function Td(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dn(t)))}function $i(){return Ed(),wd(),Rd(),_d()}function _d(){if(Ve!==5)return!1;var e=Cl,t=cc;cc=0;var l=Cu(rl),a=A.T,n=V.p;try{V.p=32>l?32:l,A.T=null,l=rc,rc=null;var i=Cl,c=rl;if(Ve=0,Ba=Cl=null,rl=0,(ye&6)!==0)throw Error(r(331));var d=ye;if(ye|=4,rd(i.current),ud(i,i.current,c,l),ye=d,An(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot($a,i)}catch{}return!0}finally{V.p=n,A.T=a,Td(e,t)}}function zd(e,t,l){t=Tt(l,t),t=Xs(e.stateNode,t,2),e=Nl(e,t,2),e!==null&&(Fa(e,2),Vt(e))}function je(e,t,l){if(e.tag===3)zd(e,e,l);else for(;t!==null;){if(t.tag===3){zd(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=Cf(2),a=Nl(t,l,2),a!==null&&(Mf(l,a,t,e),Fa(a,2),Vt(a));break}}t=t.return}}function mc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new lx;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)||(ic=!0,n.add(l),e=sx.bind(null,e,t,l),t.then(e,e))}function sx(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?(ye&2)===0&&La(e,0):uc|=l,Ha===me&&(Ha=0)),Vt(e)}function Cd(e,t){t===0&&(t=jr()),e=Kl(e,t),e!==null&&(Fa(e,t),Vt(e))}function cx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Cd(e,l)}function rx(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),Cd(e,l)}function ox(e,t){return Ru(e,t)}var Wi=null,Ya=null,hc=!1,Fi=!1,xc=!1,Al=0;function Vt(e){e!==Ya&&e.next===null&&(Ya===null?Wi=Ya=e:Ya=Ya.next=e),Fi=!0,hc||(hc=!0,dx())}function An(e,t){if(!xc&&Fi){xc=!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,Od(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,Od(a,i));a=a.next}while(l);xc=!1}}function fx(){Md()}function Md(){Fi=hc=!1;var e=0;Al!==0&&jx()&&(e=Al);for(var t=mt(),l=null,a=Wi;a!==null;){var n=a.next,i=Ad(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 Ad(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,y=n[c];y===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Lm(d,t)):y<=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&&Tu(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&&Tu(a),Cu(l)){case 2:case 8:l=br;break;case 32:l=Fn;break;case 268435456:l=Sr;break;default:l=Fn}return a=Dd.bind(null,e),l=Ru(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Tu(a),e.callbackPriority=2,e.callbackNode=null,2}function Dd(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:(hd(e,a,t),Ad(e,mt()),e.callbackNode!=null&&e.callbackNode===l?Dd.bind(null,e):null)}function Od(e,t){if($i())return null;hd(e,t,!0)}function dx(){Ex(function(){(ye&6)!==0?Ru(pr,fx):Md()})}function vc(){if(Al===0){var e=wa;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),Al=e}return Al}function Ud(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ii(""+e)}function Hd(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 mx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Ud((n[ut]||null).action),c=a.submitter;c&&(t=(t=c[ut]||null)?Ud(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 y=c?Hd(n,c):new FormData(n);Hs(l,{pending:!0,data:y,method:n.method,action:i},null,y)}}else typeof i=="function"&&(d.preventDefault(),y=c?Hd(n,c):new FormData(n),Hs(l,{pending:!0,data:y,method:n.method,action:i},i,y))},currentTarget:n}]})}}for(var gc=0;gc<Iu.length;gc++){var yc=Iu[gc],hx=yc.toLowerCase(),xx=yc[0].toUpperCase()+yc.slice(1);Ut(hx,"on"+xx)}Ut(fo,"onAnimationEnd"),Ut(mo,"onAnimationIteration"),Ut(ho,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(Mh,"onTransitionRun"),Ut(Ah,"onTransitionStart"),Ut(Dh,"onTransitionCancel"),Ut(xo,"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(" "),vx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dn));function Bd(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],y=d.instance,T=d.currentTarget;if(d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(M){di(M)}n.currentTarget=null,i=y}else for(c=0;c<a.length;c++){if(d=a[c],y=d.instance,T=d.currentTarget,d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(M){di(M)}n.currentTarget=null,i=y}}}}function de(e,t){var l=t[Mu];l===void 0&&(l=t[Mu]=new Set);var a=e+"__bubble";l.has(a)||(Ld(t,e,2,!1),l.add(a))}function pc(e,t,l){var a=0;t&&(a|=4),Ld(l,e,a,t)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Pi]){e[Pi]=!0,zr.forEach(function(l){l!=="selectionchange"&&(vx.has(l)||pc(l,!1,e),pc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pi]||(t[Pi]=!0,pc("selectionchange",!1,t))}}function Ld(e,t,l,a){switch(m0(t)){case 2:var n=Zx;break;case 8:n=Vx;break;default:n=Uc}l=n.bind(null,t,l,e),n=void 0,!Yu||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 Sc(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 y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=ca(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=i=c;continue e}d=d.parentNode}}a=a.return}Gr(function(){var T=i,M=Lu(l),O=[];e:{var _=vo.get(e);if(_!==void 0){var z=ri,$=e;switch(e){case"keypress":if(si(l)===0)break e;case"keydown":case"keyup":z=rh;break;case"focusin":$="focus",z=Zu;break;case"focusout":$="blur",z=Zu;break;case"beforeblur":case"afterblur":z=Zu;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=Zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Fm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=dh;break;case fo:case mo:case ho:z=eh;break;case xo:z=hh;break;case"scroll":case"scrollend":z=$m;break;case"wheel":z=vh;break;case"copy":case"cut":case"paste":z=lh;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=yh}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!==Bu&&($=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=Zr,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=gx,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&&qd(O,_,z,le,!1),$!==null&&Te!==null&&qd(O,Te,$,le,!0)}}e:{if(_=T?Ia(T):window,z=_.nodeName&&_.nodeName.toLowerCase(),z==="select"||z==="input"&&_.type==="file")var ve=eo;else if(Pr(_))if(to)ve=_h;else{ve=Rh;var P=wh}else z=_.nodeName,!z||z.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?T&&Hu(T.elementType)&&(ve=eo):ve=Th;if(ve&&(ve=ve(e,T))){Ir(O,ve,l,M);break e}P&&P(e,_,T),e==="focusout"&&T&&_.type==="number"&&T.memoizedProps.value!=null&&Uu(_,"number",_.value)}switch(P=T?Ia(T):window,e){case"focusin":(Pr(P)||P.contentEditable==="true")&&(ga=P,Wu=T,rn=null);break;case"focusout":rn=Wu=ga=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,ro(O,l,M);break;case"selectionchange":if(Ch)break;case"keydown":case"keyup":ro(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?Wr(e,l)&&(he="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(he="onCompositionStart");he&&(Kr&&l.locale!=="ko"&&(va||he!=="onCompositionStart"?he==="onCompositionEnd"&&va&&(re=Xr()):(vl=M,Gu="value"in vl?vl.value:vl.textContent,va=!0)),P=Ii(T,he),0<P.length&&(he=new Vr(he,e,null,l,M),O.push({event:he,listeners:P}),re?he.data=re:(re=Fr(l),re!==null&&(he.data=re)))),(re=bh?Sh(e,l):jh(e,l))&&(he=Ii(T,"onBeforeInput"),0<he.length&&(P=new Vr("onBeforeInput","beforeinput",null,l,M),O.push({event:P,listeners:he}),P.data=re)),mx(O,e,T,l,M)}Bd(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 gx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qd(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var d=l,y=d.alternate,T=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||T===null||(y=T,n?(T=en(l,i),T!=null&&c.unshift(On(l,T,y))):n||(T=en(l,i),T!=null&&c.push(On(l,T,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var yx=/\r\n?/g,px=/\u0000|\uFFFD/g;function Yd(e){return(typeof e=="string"?e:""+e).replace(yx,`
|
|
49
|
+
`).replace(px,"")}function Gd(e,t){return t=Yd(t),Yd(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":qr(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=Km.get(l)||l,li(e,l,a))}}function jc(e,t,l,a,n,i){switch(l){case"style":qr(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(!Cr.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,y=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":y=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)}}Ur(e,i,d,y,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)}Br(e,a,n,i);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,y,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(Hu(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&jc(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 bx(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,y=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":y=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)}}Ou(e,c,d,y,T,M,i,n);return;case"select":z=c=d=_=null;for(i in l)if(y=l[i],l.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":z=y;default:a.hasOwnProperty(i)||Re(e,t,i,null,a,y)}for(n in a)if(i=a[n],y=l[n],a.hasOwnProperty(n)&&(i!=null||y!=null))switch(n){case"value":_=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==y&&Re(e,t,n,i,a,y)}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)}Hr(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(y in a)if(_=a[y],z=l[y],a.hasOwnProperty(y)&&_!==z&&(_!=null||z!=null))switch(y){case"selected":e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Re(e,t,y,_,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(Hu(t)){for(var Te in l)_=l[Te],l.hasOwnProperty(Te)&&_!==void 0&&!a.hasOwnProperty(Te)&&jc(e,t,Te,void 0,a,_);for(M in a)_=a[M],z=l[M],!a.hasOwnProperty(M)||_===z||_===void 0&&z===void 0||jc(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 Xd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sx(){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&&Xd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],T=y.startTime;if(T>d)break;var M=y.transferSize,O=y.initiatorType;M&&Xd(O)&&(y=y.responseEnd,c+=M*(y<d?1:(d-T)/(y-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 Nc=null,Ec=null;function eu(e){return e.nodeType===9?e:e.ownerDocument}function Qd(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 Zd(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 wc(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 Rc=null;function jx(){var e=window.event;return e&&e.type==="popstate"?e===Rc?!1:(Rc=e,!0):(Rc=null,!1)}var Vd=typeof setTimeout=="function"?setTimeout:void 0,Nx=typeof clearTimeout=="function"?clearTimeout:void 0,kd=typeof Promise=="function"?Promise:void 0,Ex=typeof queueMicrotask=="function"?queueMicrotask:typeof kd<"u"?function(e){return kd.resolve(null).then(e).catch(wx)}:Vd;function wx(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Kd(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 Jd(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 Tc(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":Tc(l),Au(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Rx(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 Tx(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 $d(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 _c(e){return e.data==="$?"||e.data==="$~"}function zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _x(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 Cc=null;function Wd(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 Fd(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 Pd(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]);Au(e)}var Dt=new Map,Id=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:zx,r:Cx,D:Mx,C:Ax,L:Dx,m:Ox,X:Hx,S:Ux,M:Bx};function zx(){var e=ol.f(),t=ki();return e||t}function Cx(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?vf(t):ol.r(e)}var Ga=typeof document>"u"?null:document;function e0(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+'"]'),Id.has(n)||(Id.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 Mx(e){ol.D(e),e0("dns-prefetch",e,null)}function Ax(e,t){ol.C(e,t),e0("preconnect",e,t)}function Dx(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 Ox(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 Ux(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))&&Mc(e,l);var y=c=a.createElement("link");$e(y),tt(y,"link",e),y._p=new Promise(function(T,M){y.onload=T,y.onerror=M}),y.addEventListener("load",function(){d.loading|=1}),y.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 Hx(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))&&Ac(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 Bx(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))&&Ac(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 t0(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||Lx(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 l0(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function Lx(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 a0(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=l0(l),(n=Dt.get(n))&&Mc(a,n),i=(e.ownerDocument||e).createElement("link"),$e(i);var c=i;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),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),Ac(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 Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ac(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 n0(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 i0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function qx(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 u0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Yx(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=l0(a),(n=Dt.get(n))&&Mc(a,n),i=i.createElement("link"),$e(i);var c=i;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),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 Dc=0;function Gx(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&&Dc===0&&(Dc=62500*Sx());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>Dc?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(Xx,e),iu=null,nu.call(e))}function Xx(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 Qx(e,t,l,a,n,i,c,d,y){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=_u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_u(0),this.hiddenUpdates=_u(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function s0(e,t,l,a,n,i,c,d,y,T,M,O){return e=new Qx(e,t,l,c,y,T,M,O,d),t=1,i===!0&&(t|=24),i=gt(3,null,null,t),e.current=i,i.stateNode=e,t=ds(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},vs(i),e}function c0(e){return e?(e=ba,e):ba}function r0(e,t,l,a,n,i){n=c0(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 o0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Oc(e,t){o0(e,t),(e=e.alternate)&&o0(e,t)}function f0(e){if(e.tag===13||e.tag===31){var t=Kl(e,67108864);t!==null&&dt(t,e,67108864),Oc(e,67108864)}}function d0(e){if(e.tag===13||e.tag===31){var t=jt();t=zu(t);var l=Kl(e,t);l!==null&&dt(l,e,t),Oc(e,t)}}var su=!0;function Zx(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=2,Uc(e,t,l,a)}finally{V.p=i,A.T=n}}function Vx(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=8,Uc(e,t,l,a)}finally{V.p=i,A.T=n}}function Uc(e,t,l,a){if(su){var n=Hc(a);if(n===null)Sc(e,t,a,cu,l),h0(e,a);else if(Kx(n,e,t,l,a))a.stopPropagation();else if(h0(e,a),t&4&&-1<kx.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 y=1<<31-xt(c);d.entanglements[1]|=y,c&=~y}Vt(i),(ye&6)===0&&(Zi=mt()+500,An(0))}}break;case 31:case 13:d=Kl(i,2),d!==null&&dt(d,i,2),ki(),Oc(i,2)}if(i=Hc(a),i===null&&Sc(e,t,a,cu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Sc(e,t,a,null,l)}}function Hc(e){return e=Lu(e),Bc(e)}var cu=null;function Bc(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=p(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 m0(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(Mm()){case pr:return 2;case br:return 8;case Fn:case Am:return 32;case Sr:return 268435456;default:return 32}default:return 32}}var Lc=!1,Ol=null,Ul=null,Hl=null,qn=new Map,Yn=new Map,Bl=[],kx="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 h0(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&&f0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Kx(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 x0(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,Tr(e.priority,function(){d0(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Tr(e.priority,function(){d0(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=Hc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Bu=a,l.target.dispatchEvent(a),Bu=null}else return t=ra(l),t!==null&&f0(t),e.blockedOn=l,!1;t.shift()}return!0}function v0(e,t,l){ru(e)&&l.delete(t)}function Jx(){Lc=!1,Ol!==null&&ru(Ol)&&(Ol=null),Ul!==null&&ru(Ul)&&(Ul=null),Hl!==null&&ru(Hl)&&(Hl=null),qn.forEach(v0),Yn.forEach(v0)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Lc||(Lc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Jx)))}var fu=null;function g0(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(Bc(a||l)===null)continue;break}var i=ra(l);i!==null&&(e.splice(t,3),t-=3,Hs(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Za(e){function t(y){return ou(y,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);)x0(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||g0(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ut]||null)d=c.formAction;else if(Bc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),g0(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 qc(e){this._internalRoot=e}du.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=jt();r0(l,a,e,t,null,null)},du.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;r0(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=Rr();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&&x0(e)}};var p0=o.version;if(p0!=="19.2.4")throw Error(r(527,p0,"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 $x={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($x),ht=mu}catch{}}return Qn.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=Rf,i=Tf,c=_f;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=s0(e,1,!1,null,null,l,a,null,n,i,c,y0),e[sa]=t.current,bc(e),new qc(t)},Qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",i=Rf,c=Tf,d=_f,y=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&&(y=l.formState)),t=s0(e,1,!0,t,l??null,a,n,y,i,c,d,y0),t.context=c0(null),l=t.current,a=jt(),a=zu(a),n=jl(a),n.callback=null,Nl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Vt(t),e[sa]=t.current,bc(e),new du(t)},Qn.version="19.2.4",Qn}var z0;function nv(){if(z0)return Xc.exports;z0=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(),Xc.exports=av(),Xc.exports}var iv=nv();const uv=ar(iv);/**
|
|
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 C0="popstate";function sv(s={}){function o(m,h){let{pathname:v="/",search:p="",hash:g=""}=ua(m.location.hash.substring(1));return!v.startsWith("/")&&!v.startsWith(".")&&(v="/"+v),Ic("",{pathname:v,search:p,hash:g},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function f(m,h){let v=m.document.querySelector("base"),p="";if(v&&v.getAttribute("href")){let g=m.location.href,x=g.indexOf("#");p=x===-1?g:g.slice(0,x)}return p+"#"+(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 rv(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 cv(){return Math.random().toString(36).substring(2,10)}function M0(s,o){return{usr:s.state,key:s.key,idx:o}}function Ic(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||cv()}}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 rv(s,o,f,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,v=m.history,p="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(){p="POP";let L=w(),K=L==null?null:L-x;x=L,g&&g({action:p,location:Y.location,delta:K})}function B(L,K){p="PUSH";let q=Ic(Y.location,L,K);f&&f(q,L),x=w()+1;let G=M0(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:p,location:Y.location,delta:1})}function U(L,K){p="REPLACE";let q=Ic(Y.location,L,K);f&&f(q,L),x=w();let G=M0(q,x),X=Y.createHref(q);v.replaceState(G,"",X),h&&g&&g({action:p,location:Y.location,delta:0})}function Q(L){return ov(L)}let Y={get action(){return p},get location(){return s(m,v)},listen(L){if(g)throw new Error("A history only accepts one active listener");return m.addEventListener(C0,N),g=L,()=>{m.removeEventListener(C0,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 ov(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 K0(s,o,f="/"){return fv(s,o,f,!1)}function fv(s,o,f,r){let m=typeof o=="string"?ua(o):o,h=ml(m.pathname||"/",f);if(h==null)return null;let v=J0(s);dv(v);let p=null;for(let g=0;p==null&&g<v.length;++g){let x=Nv(h);p=Sv(v[g],x,r)}return p}function J0(s,o=[],f=[],r="",m=!1){let h=(v,p,g=m,x)=>{let w={relativePath:x===void 0?v.path||"":x,caseSensitive:v.caseSensitive===!0,childrenIndex:p,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}".`),J0(v.children,o,B,N,g)),!(v.path==null&&!v.index)&&o.push({path:N,score:pv(N,v.index),routesMeta:B})};return s.forEach((v,p)=>{var g;if(v.path===""||!((g=v.path)!=null&&g.includes("?")))h(v,p);else for(let x of $0(v.path))h(v,p,!0,x)}),o}function $0(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=$0(r.join("/")),p=[];return p.push(...v.map(g=>g===""?h:[h,g].join("/"))),m&&p.push(...v),p.map(g=>s.startsWith("/")&&g===""?"/":g)}function dv(s){s.sort((o,f)=>o.score!==f.score?f.score-o.score:bv(o.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var mv=/^:[\w-]+$/,hv=3,xv=2,vv=1,gv=10,yv=-2,A0=s=>s==="*";function pv(s,o){let f=s.split("/"),r=f.length;return f.some(A0)&&(r+=yv),o&&(r+=xv),f.filter(m=>!A0(m)).reduce((m,h)=>m+(mv.test(h)?hv:h===""?vv:gv),r)}function bv(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 Sv(s,o,f=!1){let{routesMeta:r}=s,m={},h="/",v=[];for(let p=0;p<r.length;++p){let g=r[p],x=p===r.length-1,w=h==="/"?o:o.slice(h.length)||"/",N=gu({path:g.relativePath,caseSensitive:g.caseSensitive,end:x},w),B=g.route;if(!N&&x&&f&&!r[r.length-1].route.index&&(N=gu({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:Tv(dl([h,N.pathnameBase])),route:B}),N.pathnameBase!=="/"&&(h=dl([h,N.pathnameBase]))}return v}function gu(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[f,r]=jv(s.path,s.caseSensitive,s.end),m=o.match(f);if(!m)return null;let h=m[0],v=h.replace(/(.)\/+$/,"$1"),p=m.slice(1);return{params:r.reduce((x,{paramName:w,isOptional:N},B)=>{if(w==="*"){let Q=p[B]||"";v=h.slice(0,h.length-Q.length).replace(/(.)\/+$/,"$1")}const U=p[B];return N&&!U?x[w]=void 0:x[w]=(U||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:v,pattern:s}}function jv(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,p,g)=>(r.push({paramName:p,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 Nv(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 Ev=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function wv(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=D0(f.substring(1),"/"):h=D0(f,o)):h=o,{pathname:h,search:_v(r),hash:zv(m)}}function D0(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 Rv(s){return s.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function ir(s){let o=Rv(s);return o.map((f,r)=>r===o.length-1?f.pathname:f.pathnameBase)}function ur(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,p;if(v==null)p=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("/")}p=N>=0?o[N]:"/"}let g=wv(m,p),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,"/"),Tv=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),_v=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,zv=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,Cv=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 Mv(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Av(s){return s.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function F0(s,o){let f=s;if(typeof f!="string"||!Ev.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(W0)try{let h=new URL(window.location.href),v=f.startsWith("//")?new URL(h.protocol+f):new URL(f),p=ml(v.pathname,o);v.origin===h.origin&&p!=null?f=p+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 P0=["POST","PUT","PATCH","DELETE"];new Set(P0);var Dv=["GET",...P0];new Set(Dv);var ka=E.createContext(null);ka.displayName="DataRouter";var bu=E.createContext(null);bu.displayName="DataRouterState";var Ov=E.createContext(!1),I0=E.createContext({isTransitioning:!1});I0.displayName="ViewTransition";var Uv=E.createContext(new Map);Uv.displayName="Fetchers";var Hv=E.createContext(null);Hv.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 sr=E.createContext(null);sr.displayName="RouteError";var em="REACT_ROUTER_ERROR",Bv="REDIRECT",Lv="ROUTE_ERROR_RESPONSE";function qv(s){if(s.startsWith(`${em}:${Bv}:{`))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 Yv(s){if(s.startsWith(`${em}:${Lv}:{`))try{let o=JSON.parse(s.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Cv(o.status,o.statusText,o.data)}catch{}}function Gv(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}),p=h;return f!=="/"&&(p=h==="/"?f:dl([f,h])),r.createHref({pathname:p,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 tm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(s){E.useContext(Nt).static||E.useLayoutEffect(s)}function cr(){let{isDataRoute:s}=E.useContext(kt);return s?eg():Xv()}function Xv(){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(ir(r)),v=E.useRef(!1);return lm(()=>{v.current=!0}),E.useCallback((g,x={})=>{if(Ot(v.current,tm),!v.current)return;if(typeof g=="number"){f.go(g);return}let w=ur(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(ir(f));return E.useMemo(()=>ur(s,JSON.parse(m),r,o==="path"),[s,m,r,o])}function Qv(s,o){return am(s,o)}function am(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),p=v[v.length-1],g=p?p.params:{},x=p?p.pathname:"/",w=p?p.pathnameBase:"/",N=p&&p.route;{let G=N&&N.path||"";im(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=K0(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=Jv(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 Zv(){let s=Iv(),o=Mv(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 Vv=E.createElement(Zv,null),nm=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=Yv(s.digest);f&&(s=f)}let o=s!==void 0?E.createElement(kt.Provider,{value:this.props.routeContext},E.createElement(sr.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(kv,{error:s},o):o}};nm.contextType=Ov;var Kc=new WeakMap;function kv({children:s,error:o}){let{basename:f}=E.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=qv(o.digest);if(r){let m=Kc.get(o);if(m)throw m;let h=F0(r.location,f);if(W0&&!Kc.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 Kc.set(o,v),v}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return s}function Kv({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 Jv(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 p=!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){p=!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:Av(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||Vv,p&&(g<0&&B===0?(im("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(Kv,{match:N,routeContext:{outlet:w,matches:K,isDataRoute:f!=null},children:G})};return f&&(N.route.ErrorBoundary||N.route.errorElement||B===0)?E.createElement(nm,{location:f.location,revalidation:f.revalidation,component:Y,error:U,children:q(),routeContext:{outlet:null,matches:K,isDataRoute:!0},onError:x}):q()},null)}function rr(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $v(s){let o=E.useContext(ka);return De(o,rr(s)),o}function Wv(s){let o=E.useContext(bu);return De(o,rr(s)),o}function Fv(s){let o=E.useContext(kt);return De(o,rr(s)),o}function or(s){let o=Fv(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 Pv(){return or("useRouteId")}function Iv(){var r;let s=E.useContext(sr),o=Wv("useRouteError"),f=or("useRouteError");return s!==void 0?s:(r=o.errors)==null?void 0:r[f]}function eg(){let{router:s}=$v("useNavigate"),o=or("useNavigate"),f=E.useRef(!1);return lm(()=>{f.current=!0}),E.useCallback(async(m,h={})=>{Ot(f.current,tm),f.current&&(typeof m=="number"?await s.navigate(m):await s.navigate(m,{fromRouteId:o,...h}))},[s,o])}var O0={};function im(s,o,f){!o&&!O0[s]&&(O0[s]=!0,Ot(!1,f))}E.memo(tg);function tg({routes:s,future:o,state:f,onError:r}){return am(s,void 0,f,r,o)}function lg({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(),p=cr(),g=ur(s,ir(h),v,r==="path"),x=JSON.stringify(g);return E.useEffect(()=>{p(JSON.parse(x),{replace:o,state:f,relative:r})},[p,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 ag({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 p=s.replace(/^\/*/,"/"),g=E.useMemo(()=>({basename:p,navigator:m,static:h,unstable_useTransitions:v,future:{}}),[p,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,p);return Y==null?null:{location:{pathname:Y,search:w,hash:N,state:B,key:U},navigationType:r}},[p,x,w,N,B,U,r]);return Ot(Q!=null,`<Router basename="${p}"> 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 ng({children:s,location:o}){return Qv(er(s),o)}function er(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,er(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=er(r.props.children,h)),f.push(v)}),f}var xu="get",vu="application/x-www-form-urlencoded";function Su(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function ig(s){return Su(s)&&s.tagName.toLowerCase()==="button"}function ug(s){return Su(s)&&s.tagName.toLowerCase()==="form"}function sg(s){return Su(s)&&s.tagName.toLowerCase()==="input"}function cg(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function rg(s,o){return s.button===0&&(!o||o==="_self")&&!cg(s)}var hu=null;function og(){if(hu===null)try{new FormData(document.createElement("form"),0),hu=!1}catch{hu=!0}return hu}var fg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jc(s){return s!=null&&!fg.has(s)?(Ot(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vu}"`),null):s}function dg(s,o){let f,r,m,h,v;if(ug(s)){let p=s.getAttribute("action");r=p?ml(p,o):null,f=s.getAttribute("method")||xu,m=Jc(s.getAttribute("enctype"))||vu,h=new FormData(s)}else if(ig(s)||sg(s)&&(s.type==="submit"||s.type==="image")){let p=s.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=s.getAttribute("formaction")||p.getAttribute("action");if(r=g?ml(g,o):null,f=s.getAttribute("formmethod")||p.getAttribute("method")||xu,m=Jc(s.getAttribute("formenctype"))||Jc(p.getAttribute("enctype"))||vu,h=new FormData(p,s),!og()){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(Su(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=xu,r=null,m=vu,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 fr(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function mg(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 hg(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 xg(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 vg(s,o,f){let r=await Promise.all(s.map(async m=>{let h=o.routes[m.route.id];if(h){let v=await hg(h,f);return v.links?v.links():[]}return[]}));return bg(r.flat(1).filter(xg).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function U0(s,o,f,r,m,h){let v=(g,x)=>f[x]?g.route.id!==f[x].route.id:!0,p=(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)||p(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)||p(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 gg(s,o,{includeHydrateFallback:f}={}){return yg(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 yg(s){return[...new Set(s)]}function pg(s){let o={},f=Object.keys(s).sort();for(let r of f)o[r]=s[r];return o}function bg(s,o){let f=new Set;return new Set(o),s.reduce((r,m)=>{let h=JSON.stringify(pg(m));return f.has(h)||(f.add(h),r.push({key:h,link:m})),r},[])}function um(){let s=E.useContext(ka);return fr(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function Sg(){let s=E.useContext(bu);return fr(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var dr=E.createContext(void 0);dr.displayName="FrameworkContext";function sm(){let s=E.useContext(dr);return fr(s,"You must render this element inside a <HydratedRouter> element"),s}function jg(s,o){let f=E.useContext(dr),[r,m]=E.useState(!1),[h,v]=E.useState(!1),{onFocus:p,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(p,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 Ng({page:s,...o}){let{router:f}=um(),r=E.useMemo(()=>K0(f.routes,s,f.basename),[f.routes,s,f.basename]);return r?E.createElement(wg,{page:s,matches:r,...o}):null}function Eg(s){let{manifest:o,routeModules:f}=sm(),[r,m]=E.useState([]);return E.useEffect(()=>{let h=!1;return vg(s,o,f).then(v=>{h||m(v)}),()=>{h=!0}},[s,o,f]),r}function wg({page:s,matches:o,...f}){let r=Yl(),{future:m,manifest:h,routeModules:v}=sm(),{basename:p}=um(),{loaderData:g,matches:x}=Sg(),w=E.useMemo(()=>U0(s,o,x,h,r,"data"),[s,o,x,h,r]),N=E.useMemo(()=>U0(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=mg(s,p,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]},[p,m.unstable_trailingSlashAwareDataRequests,g,r,h,w,o,s,v]),U=E.useMemo(()=>gg(N,h),[N,h]),Q=Eg(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 Rg(...s){return o=>{s.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var Tg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Tg&&(window.__reactRouterVersion="7.13.0")}catch{}function _g({basename:s,children:o,unstable_useTransitions:f,window:r}){let m=E.useRef();m.current==null&&(m.current=sv({window:r,v5Compat:!0}));let h=m.current,[v,p]=E.useState({action:h.action,location:h.location}),g=E.useCallback(x=>{f===!1?p(x):E.startTransition(()=>p(x))},[f]);return E.useLayoutEffect(()=>h.listen(g),[h,g]),E.createElement(ag,{basename:s,children:o,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:f})}var cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rm=E.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:h,replace:v,state:p,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"&&cm.test(x),q=F0(x,Y);x=q.to;let G=Gv(x,{relative:m}),[X,W,I]=jg(r,U),te=Mg(x,{replace:v,state:p,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:Rg(Q,W),target:g,"data-discover":!K&&f==="render"?"true":void 0});return X&&!K?E.createElement(E.Fragment,null,J,E.createElement(Ng,{page:G})):J});rm.displayName="Link";var om=E.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:h,to:v,viewTransition:p,children:g,...x},w){let N=Kn(v,{relative:x.relative}),B=Yl(),U=E.useContext(bu),{navigator:Q,basename:Y}=E.useContext(Nt),L=U!=null&&Hg(N)&&p===!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(rm,{...x,"aria-current":C,className:J,ref:w,style:Z,to:v,viewTransition:p},typeof g=="function"?g(te):g)});om.displayName="NavLink";var zg=E.forwardRef(({discover:s="render",fetcherKey:o,navigate:f,reloadDocument:r,replace:m,state:h,method:v=xu,action:p,onSubmit:g,relative:x,preventScrollReset:w,viewTransition:N,unstable_defaultShouldRevalidate:B,...U},Q)=>{let{unstable_useTransitions:Y}=E.useContext(Nt),L=Og(),K=Ug(p,{relative:x}),q=v.toLowerCase()==="get"?"get":"post",G=typeof p=="string"&&cm.test(p),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})});zg.displayName="Form";function Cg(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fm(s){let o=E.useContext(ka);return De(o,Cg(s)),o}function Mg(s,{target:o,replace:f,state:r,preventScrollReset:m,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let x=cr(),w=Yl(),N=Kn(s,{relative:h});return E.useCallback(B=>{if(rg(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:p});g?E.startTransition(()=>Q()):Q()}},[w,x,N,f,r,o,s,m,h,v,p,g])}var Ag=0,Dg=()=>`__${String(++Ag)}__`;function Og(){let{router:s}=fm("useSubmit"),{basename:o}=E.useContext(Nt),f=Pv(),r=s.fetch,m=s.navigate;return E.useCallback(async(h,v={})=>{let{action:p,method:g,encType:x,formData:w,body:N}=dg(h,o);if(v.navigate===!1){let B=v.fetcherKey||Dg();await r(B,f,v.action||p,{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||p,{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 Ug(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 p=new URLSearchParams(h.search),g=p.getAll("index");if(g.some(w=>w==="")){p.delete("index"),g.filter(N=>N).forEach(N=>p.append("index",N));let w=p.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 Hg(s,{relative:o}={}){let f=E.useContext(I0);De(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fm("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 gu(m.pathname,v)!=null||gu(m.pathname,h)!=null}var Bg=k0();const Lg=ar(Bg);/**
|
|
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 dm=(...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 qg=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 Yg=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 H0=s=>{const o=Yg(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 Gg={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 Xg=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 Qg=E.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:m="",children:h,iconNode:v,...p},g)=>E.createElement("svg",{ref:g,...Gg,width:o,height:o,stroke:s,strokeWidth:r?Number(f)*24/Number(o):f,className:dm("lucide",m),...!h&&!Xg(p)&&{"aria-hidden":"true"},...p},[...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 ce=(s,o)=>{const f=E.forwardRef(({className:r,...m},h)=>E.createElement(Qg,{ref:h,iconNode:o,className:dm(`lucide-${qg(H0(s))}`,`lucide-${s}`,r),...m}));return f.displayName=H0(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 Zg=[["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"}]],mm=ce("activity",Zg);/**
|
|
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 Vg=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],kg=ce("arrow-down",Vg);/**
|
|
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 Kg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],B0=ce("arrow-right",Kg);/**
|
|
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 Jg=[["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"}]],$g=ce("arrow-up-down",Jg);/**
|
|
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 Wg=[["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"}]],Fg=ce("arrow-up-narrow-wide",Wg);/**
|
|
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 Pg=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Ig=ce("arrow-up",Pg);/**
|
|
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 ey=[["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"}]],ty=ce("bell",ey);/**
|
|
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 ly=[["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"}]],L0=ce("briefcase",ly);/**
|
|
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 ay=[["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=ce("calendar",ay);/**
|
|
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 ny=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$c=ce("check",ny);/**
|
|
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 iy=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uy=ce("chevron-down",iy);/**
|
|
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 sy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],cy=ce("chevron-left",sy);/**
|
|
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 ry=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],oy=ce("chevron-right",ry);/**
|
|
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 fy=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],dy=ce("chevrons-up-down",fy);/**
|
|
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 my=[["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"}]],qt=ce("circle-alert",my);/**
|
|
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 hy=[["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"}]],q0=ce("circle-arrow-down",hy);/**
|
|
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 xy=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Jn=ce("circle-check-big",xy);/**
|
|
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 vy=[["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"}]],tr=ce("circle-x",vy);/**
|
|
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 gy=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],pu=ce("clock",gy);/**
|
|
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 yy=[["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"}]],py=ce("ellipsis-vertical",yy);/**
|
|
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 by=[["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"}]],Sy=ce("external-link",by);/**
|
|
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 jy=[["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"}]],hm=ce("file-text",jy);/**
|
|
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 Ny=[["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"}]],Ey=ce("git-pull-request",Ny);/**
|
|
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 wy=[["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"}]],Ry=ce("house",wy);/**
|
|
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 Ty=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],_y=ce("info",Ty);/**
|
|
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 zy=[["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"}]],Cy=ce("layout-grid",zy);/**
|
|
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 My=[["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"}]],Y0=ce("layout-list",My);/**
|
|
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 Ay=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xm=ce("loader-circle",Ay);/**
|
|
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 Dy=[["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"}]],vm=ce("map",Dy);/**
|
|
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 Oy=[["path",{d:"M5 12h14",key:"1ays0h"}]],Uy=ce("minus",Oy);/**
|
|
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 Hy=[["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"}]],gm=ce("pause",Hy);/**
|
|
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 By=[["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=ce("play",By);/**
|
|
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 Ly=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qy=ce("plus",Ly);/**
|
|
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 Yy=[["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"}]],ym=ce("rotate-ccw",Yy);/**
|
|
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 Gy=[["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"}]],Xy=ce("save",Gy);/**
|
|
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 Qy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mr=ce("search",Qy);/**
|
|
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 Zy=[["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"}]],pm=ce("settings",Zy);/**
|
|
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 Vy=[["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"}]],ky=ce("square-pen",Vy);/**
|
|
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 Ky=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Jy=ce("terminal",Ky);/**
|
|
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 $y=[["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"}]],Wy=ce("triangle-alert",$y);/**
|
|
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 Fy=[["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"}]],Py=ce("wifi",Fy);/**
|
|
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 Iy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bm=ce("x",Iy),G0=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,p={setState:r,getState:m,getInitialState:()=>g,subscribe:x=>(f.add(x),()=>f.delete(x))},g=o=s(r,m,p);return p},ep=s=>s?G0(s):G0,tp=s=>s;function lp(s,o=tp){const f=Lt.useSyncExternalStore(s.subscribe,()=>o(s.getState()),()=>o(s.getInitialState()));return Lt.useDebugValue(f),f}const X0=s=>{const o=ep(s),f=r=>lp(o,r);return Object.assign(f,o),f},ap=s=>s?X0(s):X0,np="";let Sm=!1,lr=null;function ip(s){Sm=s}function up(s){lr=s}function sp(s){return encodeURIComponent(s.replace(/\//g,"~"))}function ke(s){return Sm&&lr?s.replace("/api/",`/api/projects/${sp(lr)}/`):s}function cp(){return Ke("/api/projects")}async function Ke(s,o){const f=`${np}${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 jm(){return Ke(ke("/api/status"))}function rp(){return Ke(ke("/api/prds"))}function op(){return Ke(ke("/api/prs"))}function fp(s,o){const f=`?lines=${encodeURIComponent(o)}`;return Ke(ke(`/api/logs/${encodeURIComponent(s)}${f}`))}function Nm(){return Ke(ke("/api/config"))}function Em(s){return Ke(ke("/api/config"),{method:"PUT",body:JSON.stringify(s)})}function dp(){return Ke(ke("/api/doctor"))}function wm(){return Ke(ke("/api/schedule-info"))}function mp(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 hp(){return Ke(ke("/api/actions/review"),{method:"POST"})}function Q0(){return Ke(ke("/api/actions/install-cron"),{method:"POST"})}function xp(){return Ke(ke("/api/actions/uninstall-cron"),{method:"POST"})}function vp(s="all"){return Ke(ke("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:s})})}function gp(s){return Ke(ke("/api/actions/retry"),{method:"POST",body:JSON.stringify({prdName:s})})}function yp(){return Ke(ke("/api/actions/clear-lock"),{method:"POST"})}function pp(){return Ke(ke("/api/roadmap"))}function bp(){return Ke(ke("/api/roadmap/scan"),{method:"POST"})}function Sp(s){return Ke(ke("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:s})})}function Yt(s,o=[],f){const r=(f==null?void 0:f.enabled)??!0,[m,h]=E.useState(null),[v,p]=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 p(!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||p(!1)}})(),()=>{B=!0}},[...o,r]),{data:m,loading:v,error:g,refetch:N.current}}function Rm(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 jp=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Gt=ap(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=>{ip(o),s({isGlobalMode:o})},projects:[],setProjects:o=>s({projects:o}),selectedProjectId:jp,selectProject:o=>{up(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}:{}}})}})),Np=()=>{const[s,o]=E.useState(!1),{projectName:f,isGlobalMode:r,projects:m,selectedProjectId:h,selectProject:v}=Gt(),p=[{icon:Ry,label:"Dashboard",path:"/"},{icon:hm,label:"PRDs",path:"/prds",badge:3},{icon:Ey,label:"Pull Requests",path:"/prs",badge:1},{icon:vm,label:"Roadmap",path:"/roadmap"},{icon:yu,label:"Scheduling",path:"/scheduling"},{icon:Jy,label:"Logs",path:"/logs"},{icon:pm,label:"Settings",path:"/settings"}];return u.jsxs("aside",{className:`
|
|
311
|
+
relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
|
|
312
|
+
${s?"w-20":"w-72"} h-screen flex-shrink-0 z-50
|
|
313
|
+
bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
|
|
314
|
+
`,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(L0,{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(dy,{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(L0,{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:p.map(g=>u.jsx("li",{children:u.jsx(om,{to:g.path,className:({isActive:x})=>`
|
|
315
|
+
flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
|
|
316
|
+
${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"}
|
|
317
|
+
${s?"justify-center":""}
|
|
318
|
+
`,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(oy,{className:"h-5 w-5"}):u.jsx(cy,{className:"h-5 w-5"})})})]})},Ep=()=>{const{projectName:s}=Gt();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(Py,{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(mr,{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(ty,{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(pm,{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:`
|
|
319
|
+
relative bg-[#0b101b] rounded-xl border border-white/5
|
|
320
|
+
shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
|
|
321
|
+
transition-all duration-300
|
|
322
|
+
${f?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
|
|
323
|
+
${o}
|
|
324
|
+
`,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 p="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:`${p} ${g[o]} ${x[f]} ${m}`,disabled:h||r,...v,children:[r&&u.jsx(xm,{className:"mr-2 h-4 w-4 animate-spin"}),s]})},wp={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},Rp=()=>{const s=cr(),[o,f]=E.useState(null),[r,m]=E.useState(!1),[h,v]=E.useState(null),{setProjectName:p,addToast:g,selectedProjectId:x,globalModeLoading:w}=Gt(),{data:N,loading:B,error:U,refetch:Q}=Yt(jm,[x],{enabled:!w}),{data:Y}=Yt(wm,[x],{enabled:!w});Rm(Z=>{v(Z)},[x]);const L=h||N;if(Lt.useEffect(()=>{L!=null&&L.projectName&&p(L.projectName)},[L,p]),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(qt,{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 vp(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 yp(),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(mm,{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(pu,{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(B0,{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:wp[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(tr,{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(tr,{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(B0,{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(pu,{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})},Tp=({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?Lg.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(bm,{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),Wc={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},Fc={ready:"success","in-progress":"info",blocked:"error","pending-review":"warning",done:"neutral"},_p=()=>{const[s,o]=E.useState("list"),[f,r]=E.useState(!1),[m,h]=E.useState(null),[v,p]=E.useState(!1),[g,x]=E.useState(!1),[w,N]=E.useState({}),{addToast:B,selectedProjectId:U,globalModeLoading:Q}=Gt(),{data:Y,loading:L,error:K,refetch:q}=Yt(rp,[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]),Rm(()=>{q()},[U]);const W=async()=>{if(m){x(!0);try{const C=await gp(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){p(!0),N(C=>({...C,[m.name]:"in-progress"}));try{const C=await mp(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{p(!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(qt,{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(Y0,{className:"h-4 w-4"})}),u.jsx(be,{variant:s==="card"?"secondary":"ghost",size:"icon",onClick:()=>o("card"),children:u.jsx(Cy,{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(Fg,{className:"h-4 w-4 mr-2"}),"Sort"]}),u.jsxs(be,{onClick:()=>r(!0),size:"sm",children:[u.jsx(qy,{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:Fc[C.status],children:Wc[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(py,{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:Fc[C.status],children:Wc[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(Tp,{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(Y0,{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:Fc[m.status],className:"text-sm px-3 py-1",children:Wc[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(ym,{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"]})})]})]})]})},zp=()=>{const[s,o]=E.useState(null),[f,r]=E.useState(!1),[m,h]=E.useState("all"),[v,p]=E.useState("number"),[g,x]=E.useState("desc"),{addToast:w,selectedProjectId:N,globalModeLoading:B}=Gt(),{data:U,loading:Q,error:Y,refetch:L}=Yt(op,[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(tr,{className:"h-4 w-4 text-red-500"});case"pending":return u.jsx(xm,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return u.jsx(qt,{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"):(p(C),x("desc"))},I=C=>v!==C?u.jsx($g,{className:"h-3 w-3 text-slate-600"}):g==="asc"?u.jsx(Ig,{className:"h-3 w-3 text-indigo-400"}):u.jsx(kg,{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(qt,{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 hp();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(mr,{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",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",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",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(Sy,{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",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",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})]})]})]}):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:`
|
|
325
|
+
w-full rounded-lg bg-slate-950 border border-slate-800
|
|
326
|
+
px-3 py-2 text-sm text-slate-200
|
|
327
|
+
placeholder:text-slate-600
|
|
328
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
329
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
330
|
+
transition-all duration-200
|
|
331
|
+
${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
332
|
+
${m?"pr-10":""}
|
|
333
|
+
${s}
|
|
334
|
+
`,...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 hr=Lt.forwardRef(({className:s="",label:o,error:f,helperText:r,options:m,value:h,onChange:v,children:p,...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:`
|
|
335
|
+
w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
|
|
336
|
+
px-3 py-2 pr-10 text-sm text-slate-200
|
|
337
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
338
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
339
|
+
transition-all duration-200
|
|
340
|
+
${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
341
|
+
${s}
|
|
342
|
+
`,value:h,onChange:w,...g,children:m?m.map(N=>u.jsx("option",{value:N.value,children:N.label},N.value)):p}),u.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:u.jsx(uy,{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]})});hr.displayName="Select";const xr=[{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 Pc(s){const o=s.trim().split(/\s+/);if(o.length!==5)return s;const[f,r,m,h,v]=o,p=xr.find(g=>g.value===s);return p?p.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 ${Z0(r)}`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&v==="1-5"?`Weekdays at ${Z0(r)}`:s}function Z0(s){const o=parseInt(s,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function Cp(s){const o=xr.find(f=>f.value===s);return(o==null?void 0:o.value)??"__custom__"}function Mp(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 Ap(s){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return s.toLocaleDateString("en-US",o)}function Dp(s){const o=new Date,f=s.getTime()-o.getTime(),r=Math.floor(f/6e4);return r>=0&&r<30}const Op=()=>{const{addToast:s,selectedProjectId:o,globalModeLoading:f}=Gt(),[r,m]=E.useState(!1),[h,v]=E.useState(!1),[p,g]=E.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:x,loading:w,error:N,refetch:B}=Yt(wm,[o],{enabled:!f}),{data:U,loading:Q,refetch:Y}=Yt(Nm,[o],{enabled:!f});E.useEffect(()=>{const J=setInterval(()=>{B()},3e4);return()=>clearInterval(J)},[B]),E.useEffect(()=>{U&&!p.isEditing&&g({executorSchedule:U.cronSchedule,reviewerSchedule:U.reviewerSchedule,isEditing:!1})},[U,p.isEditing]);const L=async()=>{if(x){m(!0);try{x.paused?(await Q0(),s({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await xp(),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 Em({cronSchedule:p.executorSchedule,reviewerSchedule:p.reviewerSchedule}),await Q0(),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=Dp(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:Mp(ne)}),u.jsxs("span",{className:"text-slate-500 ml-2",children:["(",Ap(ne),")"]})]})]})},W=(J,Z,ne,Ne)=>{const Je=Cp(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(hr,{label:`${J} Preset`,options:xr,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:Pc(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(qt,{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(pu,{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(gm,{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"}),!p.isEditing&&u.jsxs(be,{variant:"ghost",size:"sm",onClick:K,children:[u.jsx(ky,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),p.isEditing?W("Executor",p.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:Pc(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($c,{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"})]}),p.isEditing?W("Reviewer",p.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:Pc(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($c,{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))})]}),p.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($c,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},Up=()=>{const[s,o]=E.useState(!0),[f,r]=E.useState(""),[m,h]=E.useState("executor"),v=E.useRef(null),{selectedProjectId:p,globalModeLoading:g}=Gt(),{data:x,loading:w,error:N,refetch:B}=Yt(()=>fp(m,500),[m,p],{enabled:!g}),{data:U}=Yt(jm,[p],{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(qt,{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(mr,{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(q0,{className:"h-4 w-4 mr-2"}),"Refresh"]}),u.jsxs(be,{size:"sm",variant:"ghost",onClick:()=>o(!s),children:[s?u.jsx(gm,{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(q0,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},Hp=({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,p=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:()=>p(w.id),className:`
|
|
343
|
+
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
|
|
344
|
+
${v===w.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
|
|
345
|
+
`,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})]})},vr=Lt.forwardRef(({className:s="",label:o,checked:f,onChange:r,...m},h)=>{const v=p=>{r&&r(p.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})]})});vr.displayName="Switch";const V0=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}),Bp=()=>{const{addToast:s,projectName:o,selectedProjectId:f,globalModeLoading:r}=Gt(),[m,h]=Lt.useState(!1),[v,p]=Lt.useState(null),{data:g,loading:x,error:w,refetch:N}=Yt(Nm,[f],{enabled:!r}),{data:B,loading:U,refetch:Q}=Yt(dp,[f],{enabled:!r}),Y=B??[];Lt.useEffect(()=>{g&&p(V0(g))},[g]);const L=(X,W)=>{p(I=>I&&{...I,[X]:W})},K=async()=>{if(v){h(!0);try{await Em({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&&(p(V0(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(qt,{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(hr,{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(vr,{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(Hp,{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(ym,{className:"h-4 w-4 mr-2"}),"Reset"]}),u.jsxs(be,{onClick:K,loading:m,children:[u.jsx(Xy,{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(mm,{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}`)})})]})]})},Lp=()=>{const{addToast:s,selectedProjectId:o,globalModeLoading:f}=Gt(),[r,m]=E.useState(!1),[h,v]=E.useState(!1),{data:p,loading:g,error:x,refetch:w}=Yt(pp,[o],{enabled:!f});E.useEffect(()=>{if(!(p!=null&&p.enabled))return;const q=setInterval(()=>{w()},1e4);return()=>clearInterval(q)},[p==null?void 0:p.enabled,w]);const N=async q=>{v(!0);try{await Sp(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 bp();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(qt,{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(!p)return null;if(p.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(vm,{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=p.totalItems>0?Math.round(p.processedItems/p.totalItems*100):0,Q=Yp(p.status),Y=Gp(p.items),L=p.lastScan?Xp(p.lastScan):"Never",K=p.autoScanInterval?Math.round(p.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(vr,{label:p.enabled?"Enabled":"Disabled",checked:p.enabled,onChange:N,disabled:h}),u.jsxs(be,{onClick:B,loading:r,disabled:!p.enabled||p.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})]}),p.enabled&&p.status!=="complete"&&u.jsxs("div",{children:["Auto-scan: ",u.jsxs("span",{className:"text-slate-300",children:["every ",K," min"]})]}),p.enabled&&p.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:[p.processedItems," / ",p.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(qp,{item:X},X.hash))})]},q))]})};function qp({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(Uy,{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(hm,{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 Yp(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:pu,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:qt,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:qt,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function Gp(s){const o={};for(const f of s){const r=f.section||"General";o[r]||(o[r]=[]),o[r].push(f)}return o}function Xp(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 Qp=({toast:s,onDismiss:o})=>{const f={success:u.jsx(Jn,{className:"h-5 w-5 text-green-400"}),error:u.jsx(qt,{className:"h-5 w-5 text-red-400"}),info:u.jsx(_y,{className:"h-5 w-5 text-blue-400"}),warning:u.jsx(Wy,{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:`
|
|
346
|
+
pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
|
|
347
|
+
bg-slate-900 border border-slate-800 border-l-4 ${r[s.type]}
|
|
348
|
+
shadow-lg ring-1 ring-black ring-opacity-5 transition-all
|
|
349
|
+
animate-in slide-in-from-right-full fade-in duration-300
|
|
350
|
+
`,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(bm,{className:"h-5 w-5"})]})})]})})})},Zp=()=>{const{toasts:s,removeToast:o}=Gt();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(Qp,{toast:f,onDismiss:o},f.id))})};function Vp(){const{setGlobalMode:s,setGlobalModeLoading:o,setProjects:f,selectProject:r,selectedProjectId:m}=Gt();E.useEffect(()=>{o(!0),cp().then(h=>{s(!0),f(h);const v=h.filter(p=>p.valid);m&&v.some(p=>p.name===m)?r(m):v.length>0&&r(v[0].name)}).catch(()=>{s(!1)}).finally(()=>{o(!1)})},[])}const kp=()=>(Vp(),u.jsx(_g,{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(Np,{}),u.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[u.jsx(Ep,{}),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(ng,{children:[u.jsx(fl,{path:"/",element:u.jsx(Rp,{})}),u.jsx(fl,{path:"/prds",element:u.jsx(_p,{})}),u.jsx(fl,{path:"/prs",element:u.jsx(zp,{})}),u.jsx(fl,{path:"/scheduling",element:u.jsx(Op,{})}),u.jsx(fl,{path:"/logs",element:u.jsx(Up,{})}),u.jsx(fl,{path:"/roadmap",element:u.jsx(Lp,{})}),u.jsx(fl,{path:"/settings",element:u.jsx(Bp,{})}),u.jsx(fl,{path:"*",element:u.jsx(lg,{to:"/",replace:!0})})]})})})]}),u.jsx(Zp,{})]})})),Tm=document.getElementById("root");if(!Tm)throw new Error("Could not find root element to mount to");const Kp=uv.createRoot(Tm);Kp.render(u.jsx(Lt.StrictMode,{children:u.jsx(kp,{})}));
|