@jonit-dev/night-watch-cli 1.4.7 → 1.5.1

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.
Files changed (63) hide show
  1. package/dist/cli.js +3 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/doctor.d.ts +1 -1
  4. package/dist/commands/doctor.d.ts.map +1 -1
  5. package/dist/commands/doctor.js +101 -58
  6. package/dist/commands/doctor.js.map +1 -1
  7. package/dist/commands/history.d.ts +7 -0
  8. package/dist/commands/history.d.ts.map +1 -0
  9. package/dist/commands/history.js +56 -0
  10. package/dist/commands/history.js.map +1 -0
  11. package/dist/commands/init.d.ts.map +1 -1
  12. package/dist/commands/init.js +11 -73
  13. package/dist/commands/init.js.map +1 -1
  14. package/dist/commands/install.d.ts +11 -0
  15. package/dist/commands/install.d.ts.map +1 -1
  16. package/dist/commands/install.js +47 -11
  17. package/dist/commands/install.js.map +1 -1
  18. package/dist/commands/review.d.ts.map +1 -1
  19. package/dist/commands/review.js +2 -0
  20. package/dist/commands/review.js.map +1 -1
  21. package/dist/commands/run.d.ts.map +1 -1
  22. package/dist/commands/run.js +11 -0
  23. package/dist/commands/run.js.map +1 -1
  24. package/dist/config.d.ts.map +1 -1
  25. package/dist/config.js +66 -1
  26. package/dist/config.js.map +1 -1
  27. package/dist/constants.d.ts +6 -1
  28. package/dist/constants.d.ts.map +1 -1
  29. package/dist/constants.js +13 -0
  30. package/dist/constants.js.map +1 -1
  31. package/dist/server/index.d.ts.map +1 -1
  32. package/dist/server/index.js +116 -0
  33. package/dist/server/index.js.map +1 -1
  34. package/dist/types.d.ts +17 -0
  35. package/dist/types.d.ts.map +1 -1
  36. package/dist/utils/crontab.d.ts.map +1 -1
  37. package/dist/utils/crontab.js +4 -0
  38. package/dist/utils/crontab.js.map +1 -1
  39. package/dist/utils/execution-history.d.ts +48 -0
  40. package/dist/utils/execution-history.d.ts.map +1 -0
  41. package/dist/utils/execution-history.js +183 -0
  42. package/dist/utils/execution-history.js.map +1 -0
  43. package/dist/utils/roadmap-parser.d.ts +45 -0
  44. package/dist/utils/roadmap-parser.d.ts.map +1 -0
  45. package/dist/utils/roadmap-parser.js +136 -0
  46. package/dist/utils/roadmap-parser.js.map +1 -0
  47. package/dist/utils/roadmap-scanner.d.ts +60 -0
  48. package/dist/utils/roadmap-scanner.d.ts.map +1 -0
  49. package/dist/utils/roadmap-scanner.js +236 -0
  50. package/dist/utils/roadmap-scanner.js.map +1 -0
  51. package/dist/utils/roadmap-state.d.ts +83 -0
  52. package/dist/utils/roadmap-state.d.ts.map +1 -0
  53. package/dist/utils/roadmap-state.js +131 -0
  54. package/dist/utils/roadmap-state.js.map +1 -0
  55. package/dist/utils/status-data.d.ts.map +1 -1
  56. package/dist/utils/status-data.js +4 -3
  57. package/dist/utils/status-data.js.map +1 -1
  58. package/package.json +1 -1
  59. package/scripts/night-watch-cron.sh +65 -27
  60. package/scripts/night-watch-helpers.sh +54 -0
  61. package/web/dist/assets/index-DWgdrh9z.js +335 -0
  62. package/web/dist/index.html +1 -1
  63. package/web/dist/assets/index-CGNSV8kG.js +0 -325
@@ -1,325 +0,0 @@
1
- (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function o(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(h){if(h.ep)return;h.ep=!0;const m=o(h);fetch(h.href,m)}})();function er(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Hs={exports:{}},Gn={};/**
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 g0;function Kx(){if(g0)return Gn;g0=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function o(r,h,m){var v=null;if(m!==void 0&&(v=""+m),h.key!==void 0&&(v=""+h.key),"key"in h){m={};for(var N in h)N!=="key"&&(m[N]=h[N])}else m=h;return h=m.ref,{$$typeof:i,type:r,key:v,ref:h!==void 0?h:null,props:m}}return Gn.Fragment=f,Gn.jsx=o,Gn.jsxs=o,Gn}var p0;function Jx(){return p0||(p0=1,Hs.exports=Kx()),Hs.exports}var c=Jx(),Bs={exports:{}},I={};/**
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 b0;function kx(){if(b0)return I;b0=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),L=Symbol.iterator;function M(b){return b===null||typeof b!="object"?null:(b=L&&b[L]||b["@@iterator"],typeof b=="function"?b:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,G={};function D(b,B,Q){this.props=b,this.context=B,this.refs=G,this.updater=Q||Z}D.prototype.isReactComponent={},D.prototype.setState=function(b,B){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,B,"setState")},D.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function Y(){}Y.prototype=D.prototype;function H(b,B,Q){this.props=b,this.context=B,this.refs=G,this.updater=Q||Z}var ee=H.prototype=new Y;ee.constructor=H,q(ee,D.prototype),ee.isPureReactComponent=!0;var W=Array.isArray;function he(){}var P={H:null,A:null,T:null,S:null},Me=Object.prototype.hasOwnProperty;function ne(b,B,Q){var K=Q.ref;return{$$typeof:i,type:b,key:B,ref:K!==void 0?K:null,props:Q}}function we(b,B){return ne(b.type,B,b.props)}function Ke(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function Xe(b){var B={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(Q){return B[Q]})}var Lt=/\/+/g;function Dt(b,B){return typeof b=="object"&&b!==null&&b.key!=null?Xe(""+b.key):B.toString(36)}function Pe(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(he,he):(b.status="pending",b.then(function(B){b.status==="pending"&&(b.status="fulfilled",b.value=B)},function(B){b.status==="pending"&&(b.status="rejected",b.reason=B)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function C(b,B,Q,K,te){var ue=typeof b;(ue==="undefined"||ue==="boolean")&&(b=null);var ve=!1;if(b===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(b.$$typeof){case i:case f:ve=!0;break;case R:return ve=b._init,C(ve(b._payload),B,Q,K,te)}}if(ve)return te=te(b),ve=K===""?"."+Dt(b,0):K,W(te)?(Q="",ve!=null&&(Q=ve.replace(Lt,"$&/")+"/"),C(te,B,Q,"",function(Ja){return Ja})):te!=null&&(Ke(te)&&(te=we(te,Q+(te.key==null||b&&b.key===te.key?"":(""+te.key).replace(Lt,"$&/")+"/")+ve)),B.push(te)),1;ve=0;var et=K===""?".":K+":";if(W(b))for(var Oe=0;Oe<b.length;Oe++)K=b[Oe],ue=et+Dt(K,Oe),ve+=C(K,B,Q,ue,te);else if(Oe=M(b),typeof Oe=="function")for(b=Oe.call(b),Oe=0;!(K=b.next()).done;)K=K.value,ue=et+Dt(K,Oe++),ve+=C(K,B,Q,ue,te);else if(ue==="object"){if(typeof b.then=="function")return C(Pe(b),B,Q,K,te);throw B=String(b),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ve}function X(b,B,Q){if(b==null)return b;var K=[],te=0;return C(b,K,"","",function(ue){return B.call(Q,ue,te++)}),K}function F(b){if(b._status===-1){var B=b._result;B=B(),B.then(function(Q){(b._status===0||b._status===-1)&&(b._status=1,b._result=Q)},function(Q){(b._status===0||b._status===-1)&&(b._status=2,b._result=Q)}),b._status===-1&&(b._status=0,b._result=B)}if(b._status===1)return b._result.default;throw b._result}var pe=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},Ne={map:X,forEach:function(b,B,Q){X(b,function(){B.apply(this,arguments)},Q)},count:function(b){var B=0;return X(b,function(){B++}),B},toArray:function(b){return X(b,function(B){return B})||[]},only:function(b){if(!Ke(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return I.Activity=S,I.Children=Ne,I.Component=D,I.Fragment=o,I.Profiler=h,I.PureComponent=H,I.StrictMode=r,I.Suspense=g,I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,I.__COMPILER_RUNTIME={__proto__:null,c:function(b){return P.H.useMemoCache(b)}},I.cache=function(b){return function(){return b.apply(null,arguments)}},I.cacheSignal=function(){return null},I.cloneElement=function(b,B,Q){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var K=q({},b.props),te=b.key;if(B!=null)for(ue in B.key!==void 0&&(te=""+B.key),B)!Me.call(B,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&B.ref===void 0||(K[ue]=B[ue]);var ue=arguments.length-2;if(ue===1)K.children=Q;else if(1<ue){for(var ve=Array(ue),et=0;et<ue;et++)ve[et]=arguments[et+2];K.children=ve}return ne(b.type,te,K)},I.createContext=function(b){return b={$$typeof:v,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:m,_context:b},b},I.createElement=function(b,B,Q){var K,te={},ue=null;if(B!=null)for(K in B.key!==void 0&&(ue=""+B.key),B)Me.call(B,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(te[K]=B[K]);var ve=arguments.length-2;if(ve===1)te.children=Q;else if(1<ve){for(var et=Array(ve),Oe=0;Oe<ve;Oe++)et[Oe]=arguments[Oe+2];te.children=et}if(b&&b.defaultProps)for(K in ve=b.defaultProps,ve)te[K]===void 0&&(te[K]=ve[K]);return ne(b,ue,te)},I.createRef=function(){return{current:null}},I.forwardRef=function(b){return{$$typeof:N,render:b}},I.isValidElement=Ke,I.lazy=function(b){return{$$typeof:R,_payload:{_status:-1,_result:b},_init:F}},I.memo=function(b,B){return{$$typeof:x,type:b,compare:B===void 0?null:B}},I.startTransition=function(b){var B=P.T,Q={};P.T=Q;try{var K=b(),te=P.S;te!==null&&te(Q,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(he,pe)}catch(ue){pe(ue)}finally{B!==null&&Q.types!==null&&(B.types=Q.types),P.T=B}},I.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},I.use=function(b){return P.H.use(b)},I.useActionState=function(b,B,Q){return P.H.useActionState(b,B,Q)},I.useCallback=function(b,B){return P.H.useCallback(b,B)},I.useContext=function(b){return P.H.useContext(b)},I.useDebugValue=function(){},I.useDeferredValue=function(b,B){return P.H.useDeferredValue(b,B)},I.useEffect=function(b,B){return P.H.useEffect(b,B)},I.useEffectEvent=function(b){return P.H.useEffectEvent(b)},I.useId=function(){return P.H.useId()},I.useImperativeHandle=function(b,B,Q){return P.H.useImperativeHandle(b,B,Q)},I.useInsertionEffect=function(b,B){return P.H.useInsertionEffect(b,B)},I.useLayoutEffect=function(b,B){return P.H.useLayoutEffect(b,B)},I.useMemo=function(b,B){return P.H.useMemo(b,B)},I.useOptimistic=function(b,B){return P.H.useOptimistic(b,B)},I.useReducer=function(b,B,Q){return P.H.useReducer(b,B,Q)},I.useRef=function(b){return P.H.useRef(b)},I.useState=function(b){return P.H.useState(b)},I.useSyncExternalStore=function(b,B,Q){return P.H.useSyncExternalStore(b,B,Q)},I.useTransition=function(){return P.H.useTransition()},I.version="19.2.4",I}var S0;function tr(){return S0||(S0=1,Bs.exports=kx()),Bs.exports}var z=tr();const Bt=er(z);var Ls={exports:{}},Xn={},qs={exports:{}},Ys={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var j0;function $x(){return j0||(j0=1,(function(i){function f(C,X){var F=C.length;C.push(X);e:for(;0<F;){var pe=F-1>>>1,Ne=C[pe];if(0<h(Ne,X))C[pe]=X,C[F]=Ne,F=pe;else break e}}function o(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var X=C[0],F=C.pop();if(F!==X){C[0]=F;e:for(var pe=0,Ne=C.length,b=Ne>>>1;pe<b;){var B=2*(pe+1)-1,Q=C[B],K=B+1,te=C[K];if(0>h(Q,F))K<Ne&&0>h(te,Q)?(C[pe]=te,C[K]=F,pe=K):(C[pe]=Q,C[B]=F,pe=B);else if(K<Ne&&0>h(te,F))C[pe]=te,C[K]=F,pe=K;else break e}}return X}function h(C,X){var F=C.sortIndex-X.sortIndex;return F!==0?F:C.id-X.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var v=Date,N=v.now();i.unstable_now=function(){return v.now()-N}}var g=[],x=[],R=1,S=null,L=3,M=!1,Z=!1,q=!1,G=!1,D=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function ee(C){for(var X=o(x);X!==null;){if(X.callback===null)r(x);else if(X.startTime<=C)r(x),X.sortIndex=X.expirationTime,f(g,X);else break;X=o(x)}}function W(C){if(q=!1,ee(C),!Z)if(o(g)!==null)Z=!0,he||(he=!0,Xe());else{var X=o(x);X!==null&&Pe(W,X.startTime-C)}}var he=!1,P=-1,Me=5,ne=-1;function we(){return G?!0:!(i.unstable_now()-ne<Me)}function Ke(){if(G=!1,he){var C=i.unstable_now();ne=C;var X=!0;try{e:{Z=!1,q&&(q=!1,Y(P),P=-1),M=!0;var F=L;try{t:{for(ee(C),S=o(g);S!==null&&!(S.expirationTime>C&&we());){var pe=S.callback;if(typeof pe=="function"){S.callback=null,L=S.priorityLevel;var Ne=pe(S.expirationTime<=C);if(C=i.unstable_now(),typeof Ne=="function"){S.callback=Ne,ee(C),X=!0;break t}S===o(g)&&r(g),ee(C)}else r(g);S=o(g)}if(S!==null)X=!0;else{var b=o(x);b!==null&&Pe(W,b.startTime-C),X=!1}}break e}finally{S=null,L=F,M=!1}X=void 0}}finally{X?Xe():he=!1}}}var Xe;if(typeof H=="function")Xe=function(){H(Ke)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,Dt=Lt.port2;Lt.port1.onmessage=Ke,Xe=function(){Dt.postMessage(null)}}else Xe=function(){D(Ke,0)};function Pe(C,X){P=D(function(){C(i.unstable_now())},X)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(C){C.callback=null},i.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Me=0<C?Math.floor(1e3/C):5},i.unstable_getCurrentPriorityLevel=function(){return L},i.unstable_next=function(C){switch(L){case 1:case 2:case 3:var X=3;break;default:X=L}var F=L;L=X;try{return C()}finally{L=F}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(C,X){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var F=L;L=C;try{return X()}finally{L=F}},i.unstable_scheduleCallback=function(C,X,F){var pe=i.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?pe+F:pe):F=pe,C){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=F+Ne,C={id:R++,callback:X,priorityLevel:C,startTime:F,expirationTime:Ne,sortIndex:-1},F>pe?(C.sortIndex=F,f(x,C),o(g)===null&&C===o(x)&&(q?(Y(P),P=-1):q=!0,Pe(W,F-pe))):(C.sortIndex=Ne,f(g,C),Z||M||(Z=!0,he||(he=!0,Xe()))),C},i.unstable_shouldYield=we,i.unstable_wrapCallback=function(C){var X=L;return function(){var F=L;L=X;try{return C.apply(this,arguments)}finally{L=F}}}})(Ys)),Ys}var N0;function Wx(){return N0||(N0=1,qs.exports=$x()),qs.exports}var Gs={exports:{}},Ie={};/**
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 E0;function Fx(){if(E0)return Ie;E0=1;var i=tr();function f(g){var x="https://react.dev/errors/"+g;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)x+="&args[]="+encodeURIComponent(arguments[R])}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 o(){}var r={d:{f:o,r:function(){throw Error(f(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(g,x,R){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:S==null?null:""+S,children:g,containerInfo:x,implementation:R}}var v=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function N(g,x){if(g==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ie.createPortal=function(g,x){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(f(299));return m(g,x,null,R)},Ie.flushSync=function(g){var x=v.T,R=r.p;try{if(v.T=null,r.p=2,g)return g()}finally{v.T=x,r.p=R,r.d.f()}},Ie.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))},Ie.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},Ie.preinit=function(g,x){if(typeof g=="string"&&x&&typeof x.as=="string"){var R=x.as,S=N(R,x.crossOrigin),L=typeof x.integrity=="string"?x.integrity:void 0,M=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;R==="style"?r.d.S(g,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:S,integrity:L,fetchPriority:M}):R==="script"&&r.d.X(g,{crossOrigin:S,integrity:L,fetchPriority:M,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Ie.preinitModule=function(g,x){if(typeof g=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var R=N(x.as,x.crossOrigin);r.d.M(g,{crossOrigin:R,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)},Ie.preload=function(g,x){if(typeof g=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var R=x.as,S=N(R,x.crossOrigin);r.d.L(g,R,{crossOrigin:S,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})}},Ie.preloadModule=function(g,x){if(typeof g=="string")if(x){var R=N(x.as,x.crossOrigin);r.d.m(g,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:R,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(g)},Ie.requestFormReset=function(g){r.d.r(g)},Ie.unstable_batchedUpdates=function(g,x){return g(x)},Ie.useFormState=function(g,x,R){return v.H.useFormState(g,x,R)},Ie.useFormStatus=function(){return v.H.useHostTransitionStatus()},Ie.version="19.2.4",Ie}var _0;function Z0(){if(_0)return Gs.exports;_0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Gs.exports=Fx(),Gs.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var T0;function Px(){if(T0)return Xn;T0=1;var i=Wx(),f=tr(),o=Z0();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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(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 N(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(m(e)!==e)throw Error(r(188))}function x(e){var t=e.alternate;if(!t){if(t=m(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 u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return g(n),e;if(u===a)return g(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,d=n.child;d;){if(d===l){s=!0,l=n,a=u;break}if(d===a){s=!0,a=n,l=u;break}d=d.sibling}if(!s){for(d=u.child;d;){if(d===l){s=!0,l=u,a=n;break}if(d===a){s=!0,a=u,l=n;break}d=d.sibling}if(!s)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 R(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=R(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,L=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),H=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Me=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),we=Symbol.for("react.memo_cache_sentinel"),Ke=Symbol.iterator;function Xe(e){return e===null||typeof e!="object"?null:(e=Ke&&e[Ke]||e["@@iterator"],typeof e=="function"?e:null)}var Lt=Symbol.for("react.client.reference");function Dt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Lt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case D:return"Profiler";case G:return"StrictMode";case W:return"Suspense";case he:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case H:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:Dt(e.type)||"Memo";case Me:t=e._payload,e=e._init;try{return Dt(e(t))}catch{}}return null}var Pe=Array.isArray,C=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},pe=[],Ne=-1;function b(e){return{current:e}}function B(e){0>Ne||(e.current=pe[Ne],pe[Ne]=null,Ne--)}function Q(e,t){Ne++,pe[Ne]=e.current,e.current=t}var K=b(null),te=b(null),ue=b(null),ve=b(null);function et(e,t){switch(Q(ue,t),Q(te,e),Q(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Xd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(K),Q(K,e)}function Oe(){B(K),B(te),B(ue)}function Ja(e){e.memoizedState!==null&&Q(ve,e);var t=K.current,l=Xd(t,e.type);t!==l&&(Q(te,e),Q(K,l))}function Jn(e){te.current===e&&(B(K),B(te)),ve.current===e&&(B(ve),Bn._currentValue=F)}var gi,xr;function Gl(e){if(gi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);gi=t&&t[1]||"",xr=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+gi+e+xr}var pi=!1;function bi(e,t){if(!e||pi)return"";pi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(A){var T=A}Reflect.construct(e,[],U)}else{try{U.call()}catch(A){T=A}e.call(U.prototype)}}else{try{throw Error()}catch(A){T=A}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(A){if(A&&T&&typeof A.stack=="string")return[A.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),s=u[0],d=u[1];if(s&&d){var y=s.split(`
44
- `),_=d.split(`
45
- `);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===_.length)for(a=y.length-1,n=_.length-1;1<=a&&0<=n&&y[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==_[n]){var w=`
46
- `+y[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{pi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Gl(l):""}function Nm(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 bi(e.type,!1);case 11:return bi(e.type.render,!1);case 1:return bi(e.type,!0);case 31:return Gl("Activity");default:return""}}function vr(e){try{var t="",l=null;do t+=Nm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Si=Object.prototype.hasOwnProperty,ji=i.unstable_scheduleCallback,Ni=i.unstable_cancelCallback,Em=i.unstable_shouldYield,_m=i.unstable_requestPaint,rt=i.unstable_now,Tm=i.unstable_getCurrentPriorityLevel,yr=i.unstable_ImmediatePriority,gr=i.unstable_UserBlockingPriority,kn=i.unstable_NormalPriority,zm=i.unstable_LowPriority,pr=i.unstable_IdlePriority,Rm=i.log,Am=i.unstable_setDisableYieldValue,ka=null,ft=null;function dl(e){if(typeof Rm=="function"&&Am(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(ka,e)}catch{}}var ot=Math.clz32?Math.clz32:Cm,Mm=Math.log,wm=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(Mm(e)/wm|0)|0}var $n=256,Wn=262144,Fn=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 Pn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Xl(a):(s&=d,s!==0?n=Xl(s):l||(l=d&~e,l!==0&&(n=Xl(l))))):(d=a&~u,d!==0?n=Xl(d):s!==0?n=Xl(s):l||(l=a&~e,l!==0&&(n=Xl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function $a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Dm(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 br(){var e=Fn;return Fn<<=1,(Fn&62914560)===0&&(Fn=4194304),e}function Ei(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Wa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Om(e,t,l,a,n,u){var s=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,_=e.hiddenUpdates;for(l=s&~l;0<l;){var w=31-ot(l),U=1<<w;d[w]=0,y[w]=-1;var T=_[w];if(T!==null)for(_[w]=null,w=0;w<T.length;w++){var A=T[w];A!==null&&(A.lane&=-536870913)}l&=~U}a!==0&&Sr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function Sr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function jr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ot(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Nr(e,t){var l=t&-t;return l=(l&42)!==0?1:_i(l),(l&(e.suspendedLanes|t))!==0?0:l}function _i(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 Ti(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Er(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:o0(e.type))}function _r(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var ml=Math.random().toString(36).slice(2),Je="__reactFiber$"+ml,lt="__reactProps$"+ml,ca="__reactContainer$"+ml,zi="__reactEvents$"+ml,Um="__reactListeners$"+ml,Hm="__reactHandles$"+ml,Tr="__reactResources$"+ml,Fa="__reactMarker$"+ml;function Ri(e){delete e[Je],delete e[lt],delete e[zi],delete e[Um],delete e[Hm]}function sa(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ca]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=$d(e);e!==null;){if(l=e[Je])return l;e=$d(e)}return t}e=l,l=e.parentNode}return null}function ra(e){if(e=e[Je]||e[ca]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fa(e){var t=e[Tr];return t||(t=e[Tr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[Fa]=!0}var zr=new Set,Rr={};function Ql(e,t){oa(e,t),oa(e+"Capture",t)}function oa(e,t){for(Rr[e]=t,e=0;e<t.length;e++)zr.add(t[e])}var Bm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ar={},Mr={};function Lm(e){return Si.call(Mr,e)?!0:Si.call(Ar,e)?!1:Bm.test(e)?Mr[e]=!0:(Ar[e]=!0,!1)}function In(e,t,l){if(Lm(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 eu(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 St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ai(e){if(!e._valueTracker){var t=wr(e)?"checked":"value";e._valueTracker=qm(e,t,""+e[t])}}function Cr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=wr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function tu(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 Ym=/[\n"\\]/g;function jt(e){return e.replace(Ym,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mi(e,t,l,a,n,u,s,d){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?wi(e,s,St(t)):l!=null?wi(e,s,St(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+St(d):e.removeAttribute("name")}function Dr(e,t,l,a,n,u,s,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ai(e);return}l=l!=null?""+St(l):"",t=t!=null?""+St(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,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Ai(e)}function wi(e,t,l){t==="number"&&tu(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=""+St(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 Or(e,t,l){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+St(l):""}function Ur(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Pe(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=St(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ai(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 Gm=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 Hr(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||Gm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Br(e,t,l){if(t!=null&&typeof t!="object")throw Error(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&&Hr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Hr(e,u,t[u])}function Ci(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Qm=/^[\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 lu(e){return Qm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var Di=null;function Oi(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 Lr(e){var t=ra(e);if(t&&(e=t.stateNode)){var l=e[lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mi(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="'+jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[lt]||null;if(!n)throw Error(r(90));Mi(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&&Cr(a)}break e;case"textarea":Or(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var Ui=!1;function qr(e,t,l){if(Ui)return e(t,l);Ui=!0;try{var a=e(t);return a}finally{if(Ui=!1,(ha!==null||xa!==null)&&(Qu(),ha&&(t=ha,e=xa,xa=ha=null,Lr(t),e)))for(t=0;t<e.length;t++)Lr(e[t])}}function Ia(e,t){var l=e.stateNode;if(l===null)return null;var a=l[lt]||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 kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hi=!1;if(kt)try{var en={};Object.defineProperty(en,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{Hi=!1}var hl=null,Bi=null,au=null;function Yr(){if(au)return au;var e,t=Bi,l=t.length,a,n="value"in hl?hl.value:hl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var s=l-e;for(a=1;a<=s&&t[l-a]===n[u-a];a++);return au=n.slice(e,1<a?1-a:void 0)}function nu(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 uu(){return!0}function Gr(){return!1}function at(e){function t(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?uu:Gr,this.isPropagationStopped=Gr,this}return S(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=uu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),t}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=at(Zl),tn=S({},Zl,{view:0,detail:0}),Zm=at(tn),Li,qi,ln,cu=S({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gi,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!==ln&&(ln&&e.type==="mousemove"?(Li=e.screenX-ln.screenX,qi=e.screenY-ln.screenY):qi=Li=0,ln=e),Li)},movementY:function(e){return"movementY"in e?e.movementY:qi}}),Xr=at(cu),Vm=S({},cu,{dataTransfer:0}),Km=at(Vm),Jm=S({},tn,{relatedTarget:0}),Yi=at(Jm),km=S({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),$m=at(km),Wm=S({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fm=at(Wm),Pm=S({},Zl,{data:0}),Qr=at(Pm),Im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eh={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"},th={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=th[e])?!!t[e]:!1}function Gi(){return lh}var ah=S({},tn,{key:function(e){if(e.key){var t=Im[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?eh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gi,charCode:function(e){return e.type==="keypress"?nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nh=at(ah),uh=S({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zr=at(uh),ih=S({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gi}),ch=at(ih),sh=S({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),rh=at(sh),fh=S({},cu,{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}),oh=at(fh),dh=S({},Zl,{newState:0,oldState:0}),mh=at(dh),hh=[9,13,27,32],Xi=kt&&"CompositionEvent"in window,an=null;kt&&"documentMode"in document&&(an=document.documentMode);var xh=kt&&"TextEvent"in window&&!an,Vr=kt&&(!Xi||an&&8<an&&11>=an),Kr=" ",Jr=!1;function kr(e,t){switch(e){case"keyup":return hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $r(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function vh(e,t){switch(e){case"compositionend":return $r(t);case"keypress":return t.which!==32?null:(Jr=!0,Kr);case"textInput":return e=t.data,e===Kr&&Jr?null:e;default:return null}}function yh(e,t){if(va)return e==="compositionend"||!Xi&&kr(e,t)?(e=Yr(),au=Bi=hl=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 Vr&&t.locale!=="ko"?null:t.data;default:return null}}var gh={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 Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gh[e.type]:t==="textarea"}function Fr(e,t,l,a){ha?xa?xa.push(a):xa=[a]:ha=a,t=Wu(t,"onChange"),0<t.length&&(l=new iu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var nn=null,un=null;function ph(e){Ud(e,0)}function su(e){var t=Pa(e);if(Cr(t))return e}function Pr(e,t){if(e==="change")return t}var Ir=!1;if(kt){var Qi;if(kt){var Zi="oninput"in document;if(!Zi){var ef=document.createElement("div");ef.setAttribute("oninput","return;"),Zi=typeof ef.oninput=="function"}Qi=Zi}else Qi=!1;Ir=Qi&&(!document.documentMode||9<document.documentMode)}function tf(){nn&&(nn.detachEvent("onpropertychange",lf),un=nn=null)}function lf(e){if(e.propertyName==="value"&&su(un)){var t=[];Fr(t,un,e,Oi(e)),qr(ph,t)}}function bh(e,t,l){e==="focusin"?(tf(),nn=t,un=l,nn.attachEvent("onpropertychange",lf)):e==="focusout"&&tf()}function Sh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return su(un)}function jh(e,t){if(e==="click")return su(t)}function Nh(e,t){if(e==="input"||e==="change")return su(t)}function Eh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:Eh;function cn(e,t){if(dt(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(!Si.call(t,n)||!dt(e[n],t[n]))return!1}return!0}function af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nf(e,t){var l=af(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=af(l)}}function uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tu(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=tu(e.document)}return t}function Vi(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 _h=kt&&"documentMode"in document&&11>=document.documentMode,ya=null,Ki=null,sn=null,Ji=!1;function sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ji||ya==null||ya!==tu(a)||(a=ya,"selectionStart"in a&&Vi(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}),sn&&cn(sn,a)||(sn=a,a=Wu(Ki,"onSelect"),0<a.length&&(t=new iu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ya)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ga={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")},ki={},rf={};kt&&(rf=document.createElement("div").style,"AnimationEvent"in window||(delete ga.animationend.animation,delete ga.animationiteration.animation,delete ga.animationstart.animation),"TransitionEvent"in window||delete ga.transitionend.transition);function Kl(e){if(ki[e])return ki[e];if(!ga[e])return e;var t=ga[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in rf)return ki[e]=t[l];return e}var ff=Kl("animationend"),of=Kl("animationiteration"),df=Kl("animationstart"),Th=Kl("transitionrun"),zh=Kl("transitionstart"),Rh=Kl("transitioncancel"),mf=Kl("transitionend"),hf=new Map,$i="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(" ");$i.push("scrollEnd");function Ot(e,t){hf.set(e,t),Ql(t,[e])}var ru=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)},Nt=[],pa=0,Wi=0;function fu(){for(var e=pa,t=Wi=pa=0;t<e;){var l=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var n=Nt[t];Nt[t++]=null;var u=Nt[t];if(Nt[t++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&xf(l,n,u)}}function ou(e,t,l,a){Nt[pa++]=e,Nt[pa++]=t,Nt[pa++]=l,Nt[pa++]=a,Wi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Fi(e,t,l,a){return ou(e,t,l,a),du(e)}function Jl(e,t){return ou(e,null,null,t),du(e)}function xf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ot(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function du(e){if(50<Mn)throw Mn=0,is=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 Ah(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 mt(e,t,l,a){return new Ah(e,t,l,a)}function Pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var l=e.alternate;return l===null?(l=mt(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 vf(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 mu(e,t,l,a,n,u){var s=0;if(a=e,typeof e=="function")Pi(e)&&(s=1);else if(typeof e=="string")s=Ox(e,l,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=mt(31,l,t,n),e.elementType=ne,e.lanes=u,e;case q:return kl(l.children,n,u,t);case G:s=8,n|=24;break;case D:return e=mt(12,l,t,n|2),e.elementType=D,e.lanes=u,e;case W:return e=mt(13,l,t,n),e.elementType=W,e.lanes=u,e;case he:return e=mt(19,l,t,n),e.elementType=he,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:s=10;break e;case Y:s=9;break e;case ee:s=11;break e;case P:s=14;break e;case Me:s=16,a=null;break e}s=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=mt(s,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function kl(e,t,l,a){return e=mt(7,e,a,t),e.lanes=l,e}function Ii(e,t,l){return e=mt(6,e,null,t),e.lanes=l,e}function yf(e){var t=mt(18,null,null,0);return t.stateNode=e,t}function ec(e,t,l){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gf=new WeakMap;function Et(e,t){if(typeof e=="object"&&e!==null){var l=gf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:vr(t)},gf.set(e,t),t)}return{value:e,source:t,stack:vr(t)}}var Sa=[],ja=0,hu=null,rn=0,_t=[],Tt=0,xl=null,qt=1,Yt="";function Wt(e,t){Sa[ja++]=rn,Sa[ja++]=hu,hu=e,rn=t}function pf(e,t,l){_t[Tt++]=qt,_t[Tt++]=Yt,_t[Tt++]=xl,xl=e;var a=qt;e=Yt;var n=32-ot(a)-1;a&=~(1<<n),l+=1;var u=32-ot(t)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,qt=1<<32-ot(t)+n|l<<n|a,Yt=u+e}else qt=1<<u|l<<n|a,Yt=e}function tc(e){e.return!==null&&(Wt(e,1),pf(e,1,0))}function lc(e){for(;e===hu;)hu=Sa[--ja],Sa[ja]=null,rn=Sa[--ja],Sa[ja]=null;for(;e===xl;)xl=_t[--Tt],_t[Tt]=null,Yt=_t[--Tt],_t[Tt]=null,qt=_t[--Tt],_t[Tt]=null}function bf(e,t){_t[Tt++]=qt,_t[Tt++]=Yt,_t[Tt++]=xl,qt=t.id,Yt=t.overflow,xl=e}var ke=null,_e=null,oe=!1,vl=null,zt=!1,ac=Error(r(519));function yl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fn(Et(t,e)),ac}function Sf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[lt]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<Cn.length;l++)ce(Cn[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Dr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),Ur(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||qd(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||yl(e,!0)}function jf(e){for(ke=e.return;ke;)switch(ke.tag){case 5:case 31:case 13:zt=!1;return;case 27:case 3:zt=!0;return;default:ke=ke.return}}function Na(e){if(e!==ke)return!1;if(!oe)return jf(e),oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ss(e.type,e.memoizedProps)),l=!l),l&&_e&&yl(e),jf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));_e=kd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));_e=kd(e)}else t===27?(t=_e,wl(e.type)?(e=Ts,Ts=null,_e=e):_e=t):_e=ke?At(e.stateNode.nextSibling):null;return!0}function $l(){_e=ke=null,oe=!1}function nc(){var e=vl;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),vl=null),e}function fn(e){vl===null?vl=[e]:vl.push(e)}var uc=b(null),Wl=null,Ft=null;function gl(e,t,l){Q(uc,t._currentValue),t._currentValue=l}function Pt(e){e._currentValue=uc.current,B(uc)}function ic(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 cc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),ic(u.return,l,e),a||(s=null);break e}u=d.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(r(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),ic(s,l,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function Ea(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var d=n.type;dt(n.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(s=n.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Bn):e=[Bn])}n=n.return}e!==null&&cc(t,e,l,a),t.flags|=262144}function xu(e){for(e=e.firstContext;e!==null;){if(!dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fl(e){Wl=e,Ft=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return Nf(Wl,e)}function vu(e,t){return Wl===null&&Fl(e),Nf(e,t)}function Nf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ft===null){if(e===null)throw Error(r(308));Ft=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ft=Ft.next=t;return l}var Mh=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()})}},wh=i.unstable_scheduleCallback,Ch=i.unstable_NormalPriority,Be={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sc(){return{controller:new Mh,data:new Map,refCount:0}}function on(e){e.refCount--,e.refCount===0&&wh(Ch,function(){e.controller.abort()})}var dn=null,rc=0,_a=0,Ta=null;function Dh(e,t){if(dn===null){var l=dn=[];rc=0,_a=ds(),Ta={status:"pending",value:void 0,then:function(a){l.push(a)}}}return rc++,t.then(Ef,Ef),t}function Ef(){if(--rc===0&&dn!==null){Ta!==null&&(Ta.status="fulfilled");var e=dn;dn=null,_a=0,Ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Oh(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 _f=C.S;C.S=function(e,t){rd=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dh(e,t),_f!==null&&_f(e,t)};var Pl=b(null);function fc(){var e=Pl.current;return e!==null?e:Ee.pooledCache}function yu(e,t){t===null?Q(Pl,Pl.current):Q(Pl,t.pool)}function Tf(){var e=fc();return e===null?null:{parent:Be._currentValue,pool:e}}var za=Error(r(460)),oc=Error(r(474)),gu=Error(r(542)),pu={then:function(){}};function zf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rf(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,Mf(e),e;default:if(typeof t.status=="string")t.then(Jt,Jt);else{if(e=Ee,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,Mf(e),e}throw ea=t,za}}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,za):l}}var ea=null;function Af(){if(ea===null)throw Error(r(459));var e=ea;return ea=null,e}function Mf(e){if(e===za||e===gu)throw Error(r(483))}var Ra=null,mn=0;function bu(e){var t=mn;return mn+=1,Ra===null&&(Ra=[]),Rf(Ra,e,t)}function hn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Su(e,t){throw t.$$typeof===L?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wf(e){function t(j,p){if(e){var E=j.deletions;E===null?(j.deletions=[p],j.flags|=16):E.push(p)}}function l(j,p){if(!e)return null;for(;p!==null;)t(j,p),p=p.sibling;return null}function a(j){for(var p=new Map;j!==null;)j.key!==null?p.set(j.key,j):p.set(j.index,j),j=j.sibling;return p}function n(j,p){return j=$t(j,p),j.index=0,j.sibling=null,j}function u(j,p,E){return j.index=E,e?(E=j.alternate,E!==null?(E=E.index,E<p?(j.flags|=67108866,p):E):(j.flags|=67108866,p)):(j.flags|=1048576,p)}function s(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function d(j,p,E,O){return p===null||p.tag!==6?(p=Ii(E,j.mode,O),p.return=j,p):(p=n(p,E),p.return=j,p)}function y(j,p,E,O){var k=E.type;return k===q?w(j,p,E.props.children,O,E.key):p!==null&&(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Me&&Il(k)===p.type)?(p=n(p,E.props),hn(p,E),p.return=j,p):(p=mu(E.type,E.key,E.props,null,j.mode,O),hn(p,E),p.return=j,p)}function _(j,p,E,O){return p===null||p.tag!==4||p.stateNode.containerInfo!==E.containerInfo||p.stateNode.implementation!==E.implementation?(p=ec(E,j.mode,O),p.return=j,p):(p=n(p,E.children||[]),p.return=j,p)}function w(j,p,E,O,k){return p===null||p.tag!==7?(p=kl(E,j.mode,O,k),p.return=j,p):(p=n(p,E),p.return=j,p)}function U(j,p,E){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Ii(""+p,j.mode,E),p.return=j,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case M:return E=mu(p.type,p.key,p.props,null,j.mode,E),hn(E,p),E.return=j,E;case Z:return p=ec(p,j.mode,E),p.return=j,p;case Me:return p=Il(p),U(j,p,E)}if(Pe(p)||Xe(p))return p=kl(p,j.mode,E,null),p.return=j,p;if(typeof p.then=="function")return U(j,bu(p),E);if(p.$$typeof===H)return U(j,vu(j,p),E);Su(j,p)}return null}function T(j,p,E,O){var k=p!==null?p.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return k!==null?null:d(j,p,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case M:return E.key===k?y(j,p,E,O):null;case Z:return E.key===k?_(j,p,E,O):null;case Me:return E=Il(E),T(j,p,E,O)}if(Pe(E)||Xe(E))return k!==null?null:w(j,p,E,O,null);if(typeof E.then=="function")return T(j,p,bu(E),O);if(E.$$typeof===H)return T(j,p,vu(j,E),O);Su(j,E)}return null}function A(j,p,E,O,k){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return j=j.get(E)||null,d(p,j,""+O,k);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case M:return j=j.get(O.key===null?E:O.key)||null,y(p,j,O,k);case Z:return j=j.get(O.key===null?E:O.key)||null,_(p,j,O,k);case Me:return O=Il(O),A(j,p,E,O,k)}if(Pe(O)||Xe(O))return j=j.get(E)||null,w(p,j,O,k,null);if(typeof O.then=="function")return A(j,p,E,bu(O),k);if(O.$$typeof===H)return A(j,p,E,vu(p,O),k);Su(p,O)}return null}function V(j,p,E,O){for(var k=null,de=null,J=p,ae=p=0,fe=null;J!==null&&ae<E.length;ae++){J.index>ae?(fe=J,J=null):fe=J.sibling;var me=T(j,J,E[ae],O);if(me===null){J===null&&(J=fe);break}e&&J&&me.alternate===null&&t(j,J),p=u(me,p,ae),de===null?k=me:de.sibling=me,de=me,J=fe}if(ae===E.length)return l(j,J),oe&&Wt(j,ae),k;if(J===null){for(;ae<E.length;ae++)J=U(j,E[ae],O),J!==null&&(p=u(J,p,ae),de===null?k=J:de.sibling=J,de=J);return oe&&Wt(j,ae),k}for(J=a(J);ae<E.length;ae++)fe=A(J,j,ae,E[ae],O),fe!==null&&(e&&fe.alternate!==null&&J.delete(fe.key===null?ae:fe.key),p=u(fe,p,ae),de===null?k=fe:de.sibling=fe,de=fe);return e&&J.forEach(function(Hl){return t(j,Hl)}),oe&&Wt(j,ae),k}function $(j,p,E,O){if(E==null)throw Error(r(151));for(var k=null,de=null,J=p,ae=p=0,fe=null,me=E.next();J!==null&&!me.done;ae++,me=E.next()){J.index>ae?(fe=J,J=null):fe=J.sibling;var Hl=T(j,J,me.value,O);if(Hl===null){J===null&&(J=fe);break}e&&J&&Hl.alternate===null&&t(j,J),p=u(Hl,p,ae),de===null?k=Hl:de.sibling=Hl,de=Hl,J=fe}if(me.done)return l(j,J),oe&&Wt(j,ae),k;if(J===null){for(;!me.done;ae++,me=E.next())me=U(j,me.value,O),me!==null&&(p=u(me,p,ae),de===null?k=me:de.sibling=me,de=me);return oe&&Wt(j,ae),k}for(J=a(J);!me.done;ae++,me=E.next())me=A(J,j,ae,me.value,O),me!==null&&(e&&me.alternate!==null&&J.delete(me.key===null?ae:me.key),p=u(me,p,ae),de===null?k=me:de.sibling=me,de=me);return e&&J.forEach(function(Vx){return t(j,Vx)}),oe&&Wt(j,ae),k}function je(j,p,E,O){if(typeof E=="object"&&E!==null&&E.type===q&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case M:e:{for(var k=E.key;p!==null;){if(p.key===k){if(k=E.type,k===q){if(p.tag===7){l(j,p.sibling),O=n(p,E.props.children),O.return=j,j=O;break e}}else if(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Me&&Il(k)===p.type){l(j,p.sibling),O=n(p,E.props),hn(O,E),O.return=j,j=O;break e}l(j,p);break}else t(j,p);p=p.sibling}E.type===q?(O=kl(E.props.children,j.mode,O,E.key),O.return=j,j=O):(O=mu(E.type,E.key,E.props,null,j.mode,O),hn(O,E),O.return=j,j=O)}return s(j);case Z:e:{for(k=E.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===E.containerInfo&&p.stateNode.implementation===E.implementation){l(j,p.sibling),O=n(p,E.children||[]),O.return=j,j=O;break e}else{l(j,p);break}else t(j,p);p=p.sibling}O=ec(E,j.mode,O),O.return=j,j=O}return s(j);case Me:return E=Il(E),je(j,p,E,O)}if(Pe(E))return V(j,p,E,O);if(Xe(E)){if(k=Xe(E),typeof k!="function")throw Error(r(150));return E=k.call(E),$(j,p,E,O)}if(typeof E.then=="function")return je(j,p,bu(E),O);if(E.$$typeof===H)return je(j,p,vu(j,E),O);Su(j,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,p!==null&&p.tag===6?(l(j,p.sibling),O=n(p,E),O.return=j,j=O):(l(j,p),O=Ii(E,j.mode,O),O.return=j,j=O),s(j)):l(j,p)}return function(j,p,E,O){try{mn=0;var k=je(j,p,E,O);return Ra=null,k}catch(J){if(J===za||J===gu)throw J;var de=mt(29,J,null,j.mode);return de.lanes=O,de.return=j,de}finally{}}}var ta=wf(!0),Cf=wf(!1),pl=!1;function dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(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 bl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=du(e),xf(e,null,l),t}return ou(e,a,t,l),du(e)}function xn(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,jr(e,l)}}function hc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xc=!1;function vn(){if(xc){var e=Ta;if(e!==null)throw e}}function yn(e,t,l,a){xc=!1;var n=e.updateQueue;pl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,_=y.next;y.next=null,s===null?u=_:s.next=_,s=y;var w=e.alternate;w!==null&&(w=w.updateQueue,d=w.lastBaseUpdate,d!==s&&(d===null?w.firstBaseUpdate=_:d.next=_,w.lastBaseUpdate=y))}if(u!==null){var U=n.baseState;s=0,w=_=y=null,d=u;do{var T=d.lane&-536870913,A=T!==d.lane;if(A?(re&T)===T:(a&T)===T){T!==0&&T===_a&&(xc=!0),w!==null&&(w=w.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var V=e,$=d;T=t;var je=l;switch($.tag){case 1:if(V=$.payload,typeof V=="function"){U=V.call(je,U,T);break e}U=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=$.payload,T=typeof V=="function"?V.call(je,U,T):V,T==null)break e;U=S({},U,T);break e;case 2:pl=!0}}T=d.callback,T!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[T]:A.push(T))}else A={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},w===null?(_=w=A,y=U):w=w.next=A,s|=T;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;A=d,d=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);w===null&&(y=U),n.baseState=y,n.firstBaseUpdate=_,n.lastBaseUpdate=w,u===null&&(n.shared.lanes=0),Tl|=s,e.lanes=s,e.memoizedState=U}}function Df(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Of(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Df(l[e],t)}var Aa=b(null),ju=b(0);function Uf(e,t){e=cl,Q(ju,e),Q(Aa,t),cl=e|t.baseLanes}function vc(){Q(ju,cl),Q(Aa,Aa.current)}function yc(){cl=ju.current,B(Aa),B(ju)}var ht=b(null),Rt=null;function jl(e){var t=e.alternate;Q(Ue,Ue.current&1),Q(ht,e),Rt===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(Rt=e)}function gc(e){Q(Ue,Ue.current),Q(ht,e),Rt===null&&(Rt=e)}function Hf(e){e.tag===22?(Q(Ue,Ue.current),Q(ht,e),Rt===null&&(Rt=e)):Nl()}function Nl(){Q(Ue,Ue.current),Q(ht,ht.current)}function xt(e){B(ht),Rt===e&&(Rt=null),B(Ue)}var Ue=b(0);function Nu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Es(l)||_s(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 It=0,le=null,be=null,Le=null,Eu=!1,Ma=!1,la=!1,_u=0,gn=0,wa=null,Uh=0;function Ce(){throw Error(r(321))}function pc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!dt(e[l],t[l]))return!1;return!0}function bc(e,t,l,a,n,u){return It=u,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?bo:Uc,la=!1,u=l(a,n),la=!1,Ma&&(u=Lf(t,l,a,n)),Bf(e),u}function Bf(e){C.H=Sn;var t=be!==null&&be.next!==null;if(It=0,Le=be=le=null,Eu=!1,gn=0,wa=null,t)throw Error(r(300));e===null||qe||(e=e.dependencies,e!==null&&xu(e)&&(qe=!0))}function Lf(e,t,l,a){le=e;var n=0;do{if(Ma&&(wa=null),gn=0,Ma=!1,25<=n)throw Error(r(301));if(n+=1,Le=be=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}C.H=So,u=t(l,a)}while(Ma);return u}function Hh(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(le.flags|=1024),t}function Sc(){var e=_u!==0;return _u=0,e}function jc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Nc(e){if(Eu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Eu=!1}It=0,Le=be=le=null,Ma=!1,gn=_u=0,wa=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?le.memoizedState=Le=e:Le=Le.next=e,Le}function He(){if(be===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Le===null?le.memoizedState:Le.next;if(t!==null)Le=t,be=e;else{if(e===null)throw le.alternate===null?Error(r(467)):Error(r(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Le===null?le.memoizedState=Le=e:Le=Le.next=e}return Le}function Tu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=gn;return gn+=1,wa===null&&(wa=[]),e=Rf(wa,e,t),t=le,(Le===null?t.memoizedState:Le.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?bo:Uc),e}function zu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===H)return $e(e)}throw Error(r(438,String(e)))}function Ec(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.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=Tu(),le.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]=we;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function Ru(e){var t=He();return _c(t,be,e)}function _c(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=s=null,y=null,_=t,w=!1;do{var U=_.lane&-536870913;if(U!==_.lane?(re&U)===U:(It&U)===U){var T=_.revertLane;if(T===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),U===_a&&(w=!0);else if((It&T)===T){_=_.next,T===_a&&(w=!0);continue}else U={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},y===null?(d=y=U,s=u):y=y.next=U,le.lanes|=T,Tl|=T;U=_.action,la&&l(u,U),u=_.hasEagerState?_.eagerState:l(u,U)}else T={lane:U,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},y===null?(d=y=T,s=u):y=y.next=T,le.lanes|=U,Tl|=U;_=_.next}while(_!==null&&_!==t);if(y===null?s=u:y.next=d,!dt(u,e.memoizedState)&&(qe=!0,w&&(l=Ta,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=y,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tc(e){var t=He(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=e(u,s.action),s=s.next;while(s!==n);dt(u,t.memoizedState)||(qe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function qf(e,t,l){var a=le,n=He(),u=oe;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var s=!dt((be||n).memoizedState,l);if(s&&(n.memoizedState=l,qe=!0),n=n.queue,Ac(Xf.bind(null,a,n,e),[e]),n.getSnapshot!==t||s||Le!==null&&Le.memoizedState.tag&1){if(a.flags|=2048,Ca(9,{destroy:void 0},Gf.bind(null,a,n,l,t),null),Ee===null)throw Error(r(349));u||(It&127)!==0||Yf(a,t,l)}return l}function Yf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=Tu(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Gf(e,t,l,a){t.value=l,t.getSnapshot=a,Qf(t)&&Zf(e)}function Xf(e,t,l){return l(function(){Qf(t)&&Zf(e)})}function Qf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!dt(e,l)}catch{return!0}}function Zf(e){var t=Jl(e,2);t!==null&&st(t,e,2)}function zc(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),la){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function Vf(e,t,l,a){return e.baseState=l,_c(e,be,typeof a=="function"?a:el)}function Bh(e,t,l,a,n){if(wu(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};C.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Kf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Kf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=C.T,s={};C.T=s;try{var d=l(n,a),y=C.S;y!==null&&y(s,d),Jf(e,t,d)}catch(_){Rc(e,t,_)}finally{u!==null&&s.types!==null&&(u.types=s.types),C.T=u}}else try{u=l(n,a),Jf(e,t,u)}catch(_){Rc(e,t,_)}}function Jf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){kf(e,t,a)},function(a){return Rc(e,t,a)}):kf(e,t,l)}function kf(e,t,l){t.status="fulfilled",t.value=l,$f(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Kf(e,l)))}function Rc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,$f(t),t=t.next;while(t!==a)}e.action=null}function $f(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wf(e,t){return t}function Ff(e,t){if(oe){var l=Ee.formState;if(l!==null){e:{var a=le;if(oe){if(_e){t:{for(var n=_e,u=zt;n.nodeType!==8;){if(!u){n=null;break t}if(n=At(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){_e=At(n.nextSibling),a=n.data==="F!";break e}}yl(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wf,lastRenderedState:t},l.queue=a,l=yo.bind(null,le,a),a.dispatch=l,a=zc(!1),u=Oc.bind(null,le,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Bh.bind(null,le,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Pf(e){var t=He();return If(t,be,e)}function If(e,t,l){if(t=_c(e,t,Wf)[0],e=Ru(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(s){throw s===za?gu:s}else a=t;t=He();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(le.flags|=2048,Ca(9,{destroy:void 0},Lh.bind(null,n,l),null)),[a,u,e]}function Lh(e,t){e.action=t}function eo(e){var t=He(),l=be;if(l!==null)return If(t,l,e);He(),t=t.memoizedState,l=He();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ca(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=Tu(),le.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 to(){return He().memoizedState}function Au(e,t,l,a){var n=tt();le.flags|=e,n.memoizedState=Ca(1|t,{destroy:void 0},l,a===void 0?null:a)}function Mu(e,t,l,a){var n=He();a=a===void 0?null:a;var u=n.memoizedState.inst;be!==null&&a!==null&&pc(a,be.memoizedState.deps)?n.memoizedState=Ca(t,u,l,a):(le.flags|=e,n.memoizedState=Ca(1|t,u,l,a))}function lo(e,t){Au(8390656,8,e,t)}function Ac(e,t){Mu(2048,8,e,t)}function qh(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=Tu(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ao(e){var t=He().memoizedState;return qh({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function no(e,t){return Mu(4,2,e,t)}function uo(e,t){return Mu(4,4,e,t)}function io(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 co(e,t,l){l=l!=null?l.concat([e]):null,Mu(4,4,io.bind(null,t,e),l)}function Mc(){}function so(e,t){var l=He();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&pc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ro(e,t){var l=He();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&pc(t,a[1]))return a[0];if(a=e(),la){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function wc(e,t,l){return l===void 0||(It&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=od(),le.lanes|=e,Tl|=e,l)}function fo(e,t,l,a){return dt(l,t)?l:Aa.current!==null?(e=wc(e,l,a),dt(e,t)||(qe=!0),e):(It&42)===0||(It&1073741824)!==0&&(re&261930)===0?(qe=!0,e.memoizedState=l):(e=od(),le.lanes|=e,Tl|=e,t)}function oo(e,t,l,a,n){var u=X.p;X.p=u!==0&&8>u?u:8;var s=C.T,d={};C.T=d,Oc(e,!1,t,l);try{var y=n(),_=C.S;if(_!==null&&_(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var w=Oh(y,a);bn(e,t,w,gt(e))}else bn(e,t,a,gt(e))}catch(U){bn(e,t,{then:function(){},status:"rejected",reason:U},gt())}finally{X.p=u,s!==null&&d.types!==null&&(s.types=d.types),C.T=s}}function Yh(){}function Cc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=mo(e).queue;oo(e,n,t,F,l===null?Yh:function(){return ho(e),l(a)})}function mo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ho(e){var t=mo(e);t.next===null&&(t=e.alternate.memoizedState),bn(e,t.next.queue,{},gt())}function Dc(){return $e(Bn)}function xo(){return He().memoizedState}function vo(){return He().memoizedState}function Gh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=gt();e=bl(l);var a=Sl(t,e,l);a!==null&&(st(a,t,l),xn(a,t,l)),t={cache:sc()},e.payload=t;return}t=t.return}}function Xh(e,t,l){var a=gt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wu(e)?go(t,l):(l=Fi(e,t,l,a),l!==null&&(st(l,e,a),po(l,t,a)))}function yo(e,t,l){var a=gt();bn(e,t,l,a)}function bn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(wu(e))go(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,d=u(s,l);if(n.hasEagerState=!0,n.eagerState=d,dt(d,s))return ou(e,t,n,0),Ee===null&&fu(),!1}catch{}finally{}if(l=Fi(e,t,n,a),l!==null)return st(l,e,a),po(l,t,a),!0}return!1}function Oc(e,t,l,a){if(a={lane:2,revertLane:ds(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wu(e)){if(t)throw Error(r(479))}else t=Fi(e,l,a,2),t!==null&&st(t,e,2)}function wu(e){var t=e.alternate;return e===le||t!==null&&t===le}function go(e,t){Ma=Eu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function po(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,jr(e,l)}}var Sn={readContext:$e,use:zu,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};Sn.useEffectEvent=Ce;var bo={readContext:$e,use:zu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:lo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Au(4194308,4,io.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){Au(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if(la){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var n=l(t);if(la){dl(!0);try{l(t)}finally{dl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Xh.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,l=yo.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=tt();return wc(l,e,t)},useTransition:function(){var e=zc(!1);return e=oo.bind(null,le,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,n=tt();if(oe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(re&127)!==0||Yf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,lo(Xf.bind(null,a,u,e),[e]),a.flags|=2048,Ca(9,{destroy:void 0},Gf.bind(null,a,u,l,t),null),l},useId:function(){var e=tt(),t=Ee.identifierPrefix;if(oe){var l=Yt,a=qt;l=(a&~(1<<32-ot(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=_u++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Uh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dc,useFormState:Ff,useActionState:Ff,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Oc.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ec,useCacheRefresh:function(){return tt().memoizedState=Gh.bind(null,le)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Uc={readContext:$e,use:zu,useCallback:so,useContext:$e,useEffect:Ac,useImperativeHandle:co,useInsertionEffect:no,useLayoutEffect:uo,useMemo:ro,useReducer:Ru,useRef:to,useState:function(){return Ru(el)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=He();return fo(l,be.memoizedState,e,t)},useTransition:function(){var e=Ru(el)[0],t=He().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:qf,useId:xo,useHostTransitionStatus:Dc,useFormState:Pf,useActionState:Pf,useOptimistic:function(e,t){var l=He();return Vf(l,be,e,t)},useMemoCache:Ec,useCacheRefresh:vo};Uc.useEffectEvent=ao;var So={readContext:$e,use:zu,useCallback:so,useContext:$e,useEffect:Ac,useImperativeHandle:co,useInsertionEffect:no,useLayoutEffect:uo,useMemo:ro,useReducer:Tc,useRef:to,useState:function(){return Tc(el)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=He();return be===null?wc(l,e,t):fo(l,be.memoizedState,e,t)},useTransition:function(){var e=Tc(el)[0],t=He().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:qf,useId:xo,useHostTransitionStatus:Dc,useFormState:eo,useActionState:eo,useOptimistic:function(e,t){var l=He();return be!==null?Vf(l,be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:vo};So.useEffectEvent=ao;function Hc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:S({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Bc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=gt(),n=bl(a);n.payload=t,l!=null&&(n.callback=l),t=Sl(e,n,a),t!==null&&(st(t,e,a),xn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=gt(),n=bl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Sl(e,n,a),t!==null&&(st(t,e,a),xn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=gt(),a=bl(l);a.tag=2,t!=null&&(a.callback=t),t=Sl(e,a,l),t!==null&&(st(t,e,l),xn(t,e,l))}};function jo(e,t,l,a,n,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,s):t.prototype&&t.prototype.isPureReactComponent?!cn(l,a)||!cn(n,u):!0}function No(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&&Bc.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=S({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Eo(e){ru(e)}function _o(e){console.error(e)}function To(e){ru(e)}function Cu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zo(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 Lc(e,t,l){return l=bl(l),l.tag=3,l.payload={element:null},l.callback=function(){Cu(e,t)},l}function Ro(e){return e=bl(e),e.tag=3,e}function Ao(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){zo(t,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){zo(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 Qh(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=ht.current,l!==null){switch(l.tag){case 31:case 13:return Rt===null?Zu():l.alternate===null&&De===0&&(De=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===pu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),rs(e,a,n)),!1;case 22:return l.flags|=65536,a===pu?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)),rs(e,a,n)),!1}throw Error(r(435,l.tag))}return rs(e,a,n),Zu(),!1}if(oe)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ac&&(e=Error(r(422),{cause:a}),fn(Et(e,l)))):(a!==ac&&(t=Error(r(423),{cause:a}),fn(Et(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Et(a,l),n=Lc(e.stateNode,a,n),hc(e,n),De!==4&&(De=2)),!1;var u=Error(r(520),{cause:a});if(u=Et(u,l),An===null?An=[u]:An.push(u),De!==4&&(De=2),t===null)return!0;a=Et(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Lc(l.stateNode,a,e),hc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(zl===null||!zl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ro(n),Ao(n,e,l,a),hc(l,n),!1}l=l.return}while(l!==null);return!1}var qc=Error(r(461)),qe=!1;function We(e,t,l,a){t.child=e===null?Cf(t,null,l,a):ta(t,e.child,l,a)}function Mo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}else s=a;return Fl(t),a=bc(e,t,l,s,u,n),d=Sc(),e!==null&&!qe?(jc(e,t,n),tl(e,t,n)):(oe&&d&&tc(t),t.flags|=1,We(e,t,a,n),t.child)}function wo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Pi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Co(e,t,u,a,n)):(e=mu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Jc(e,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:cn,l(s,a)&&e.ref===t.ref)return tl(e,t,n)}return t.flags|=1,e=$t(u,a),e.ref=t.ref,e.return=t,t.child=e}function Co(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(cn(u,a)&&e.ref===t.ref)if(qe=!1,t.pendingProps=a=u,Jc(e,n))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,tl(e,t,n)}return Yc(e,t,l,a,n)}function Do(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Oo(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yu(t,u!==null?u.cachePool:null),u!==null?Uf(t,u):vc(),Hf(t);else return a=t.lanes=536870912,Oo(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(yu(t,u.cachePool),Uf(t,u),Nl(),t.memoizedState=null):(e!==null&&yu(t,null),vc(),Nl());return We(e,t,n,l),t.child}function jn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Oo(e,t,l,a,n){var u=fc();return u=u===null?null:{parent:Be._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&yu(t,null),vc(),Hf(t),e!==null&&Ea(e,t,a,!0),t.childLanes=n,null}function Du(e,t){return t=Uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Uo(e,t,l){return ta(t,e.child,null,l),e=Du(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Zh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=Du(t,a),t.lanes=536870912,jn(null,e);if(gc(t),(e=_e)?(e=Jd(e,zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=yf(e),l.return=t,t.child=l,ke=t,_e=null)):e=null,e===null)throw yl(t);return t.lanes=536870912,null}return Du(t,a)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(gc(t),n)if(t.flags&256)t.flags&=-257,t=Uo(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=Ee,a!==null&&(s=Nr(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,Jl(e,s),st(a,e,s),qc;Zu(),t=Uo(e,t,l)}else e=u.treeContext,_e=At(s.nextSibling),ke=t,oe=!0,vl=null,zt=!1,e!==null&&bf(t,e),t=Du(t,a),t.flags|=4096;return t}return e=$t(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ou(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 Yc(e,t,l,a,n){return Fl(t),l=bc(e,t,l,a,void 0,n),a=Sc(),e!==null&&!qe?(jc(e,t,n),tl(e,t,n)):(oe&&a&&tc(t),t.flags|=1,We(e,t,l,n),t.child)}function Ho(e,t,l,a,n,u){return Fl(t),t.updateQueue=null,l=Lf(t,a,l,n),Bf(e),a=Sc(),e!==null&&!qe?(jc(e,t,u),tl(e,t,u)):(oe&&a&&tc(t),t.flags|=1,We(e,t,l,u),t.child)}function Bo(e,t,l,a,n){if(Fl(t),t.stateNode===null){var u=ba,s=l.contextType;typeof s=="object"&&s!==null&&(u=$e(s)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},dc(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?$e(s):ba,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Hc(t,l,s,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&Bc.enqueueReplaceState(u,u.state,null),yn(t,a,u,n),vn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,y=aa(l,d);u.props=y;var _=u.context,w=l.contextType;s=ba,typeof w=="object"&&w!==null&&(s=$e(w));var U=l.getDerivedStateFromProps;w=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,w||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||_!==s)&&No(t,u,a,s),pl=!1;var T=t.memoizedState;u.state=T,yn(t,a,u,n),vn(),_=t.memoizedState,d||T!==_||pl?(typeof U=="function"&&(Hc(t,l,U,a),_=t.memoizedState),(y=pl||jo(t,l,y,a,T,_,s))?(w||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=s,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,mc(e,t),s=t.memoizedProps,w=aa(l,s),u.props=w,U=t.pendingProps,T=u.context,_=l.contextType,y=ba,typeof _=="object"&&_!==null&&(y=$e(_)),d=l.getDerivedStateFromProps,(_=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==U||T!==y)&&No(t,u,a,y),pl=!1,T=t.memoizedState,u.state=T,yn(t,a,u,n),vn();var A=t.memoizedState;s!==U||T!==A||pl||e!==null&&e.dependencies!==null&&xu(e.dependencies)?(typeof d=="function"&&(Hc(t,l,d,a),A=t.memoizedState),(w=pl||jo(t,l,w,a,T,A,y)||e!==null&&e.dependencies!==null&&xu(e.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=y,a=w):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Ou(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=ta(t,e.child,null,n),t.child=ta(t,null,l,n)):We(e,t,l,n),t.memoizedState=u.state,e=t.child):e=tl(e,t,n),e}function Lo(e,t,l,a){return $l(),t.flags|=256,We(e,t,l,a),t.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Tf()}}function Qc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=yt),e}function qo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),s&&(n=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?jl(t):Nl(),(e=_e)?(e=Jd(e,zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=yf(e),l.return=t,t.child=l,ke=t,_e=null)):e=null,e===null)throw yl(t);return _s(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(Nl(),n=t.mode,d=Uu({mode:"hidden",children:d},n),a=kl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Xc(l),a.childLanes=Qc(e,s,l),t.memoizedState=Gc,jn(null,a)):(jl(t),Zc(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(u)t.flags&256?(jl(t),t.flags&=-257,t=Vc(e,t,l)):t.memoizedState!==null?(Nl(),t.child=e.child,t.flags|=128,t=null):(Nl(),d=a.fallback,n=t.mode,a=Uu({mode:"visible",children:a.children},n),d=kl(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=Xc(l),a.childLanes=Qc(e,s,l),t.memoizedState=Gc,t=jn(null,a));else if(jl(t),_s(d)){if(s=d.nextSibling&&d.nextSibling.dataset,s)var _=s.dgst;s=_,a=Error(r(419)),a.stack="",a.digest=s,fn({value:a,source:null,stack:null}),t=Vc(e,t,l)}else if(qe||Ea(e,t,l,!1),s=(l&e.childLanes)!==0,qe||s){if(s=Ee,s!==null&&(a=Nr(s,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,Jl(e,a),st(s,e,a),qc;Es(d)||Zu(),t=Vc(e,t,l)}else Es(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,_e=At(d.nextSibling),ke=t,oe=!0,vl=null,zt=!1,e!==null&&bf(t,e),t=Zc(t,a.children),t.flags|=4096);return t}return n?(Nl(),d=a.fallback,n=t.mode,y=e.child,_=y.sibling,a=$t(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,_!==null?d=$t(_,d):(d=kl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,jn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Xc(l):(n=d.cachePool,n!==null?(y=Be._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=Tf(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Qc(e,s,l),t.memoizedState=Gc,jn(e.child,a)):(jl(t),l=e.child,e=l.sibling,l=$t(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function Zc(e,t){return t=Uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uu(e,t){return e=mt(22,e,null,t),e.lanes=0,e}function Vc(e,t,l){return ta(t,e.child,null,l),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ic(e.return,t,l)}function Kc(e,t,l,a,n,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function Go(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=Ue.current,d=(s&2)!==0;if(d?(s=s&1|2,t.flags|=128):s&=1,Q(Ue,s),We(e,t,a,l),a=oe?rn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yo(e,l,t);else if(e.tag===19)Yo(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&&Nu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Kc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Nu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Kc(t,!0,l,null,u,a);break;case"together":Kc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Tl|=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=$t(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=$t(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xu(e)))}function Vh(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),gl(t,Be,e.memoizedState.cache),$l();break;case 27:case 5:Ja(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?qo(e,t,l):(jl(t),e=tl(e,t,l),e!==null?e.sibling:null);jl(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 Go(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Q(Ue,Ue.current),a)break;return null;case 22:return t.lanes=0,Do(e,t,l,t.pendingProps);case 24:gl(t,Be,e.memoizedState.cache)}return tl(e,t,l)}function Xo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!Jc(e,l)&&(t.flags&128)===0)return qe=!1,Vh(e,t,l);qe=(e.flags&131072)!==0}else qe=!1,oe&&(t.flags&1048576)!==0&&pf(t,rn,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")Pi(e)?(a=aa(e,a),t.tag=1,t=Bo(null,t,e,a,l)):(t.tag=0,t=Yc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ee){t.tag=11,t=Mo(null,t,e,a,l);break e}else if(n===P){t.tag=14,t=wo(null,t,e,a,l);break e}}throw t=Dt(e)||e,Error(r(306,t,""))}}return t;case 0:return Yc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=aa(a,t.pendingProps),Bo(e,t,a,n,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,mc(e,t),yn(t,a,null,l);var s=t.memoizedState;if(a=s.cache,gl(t,Be,a),a!==u.cache&&cc(t,[Be],l,!0),vn(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Lo(e,t,a,l);break e}else if(a!==n){n=Et(Error(r(424)),t),fn(n),t=Lo(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(_e=At(e.firstChild),ke=t,oe=!0,vl=null,zt=!0,l=Cf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if($l(),a===n){t=tl(e,t,l);break e}We(e,t,a,l)}t=t.child}return t;case 26:return Ou(e,t),e===null?(l=Id(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Fu(ue.current).createElement(l),a[Je]=t,a[lt]=e,Fe(a,l,e),Qe(a),t.stateNode=a):t.memoizedState=Id(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&oe&&(a=t.stateNode=Wd(t.type,t.pendingProps,ue.current),ke=t,zt=!0,n=_e,wl(t.type)?(Ts=n,_e=At(a.firstChild)):_e=n),We(e,t,t.pendingProps.children,l),Ou(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=a=_e)&&(a=Sx(a,t.type,t.pendingProps,zt),a!==null?(t.stateNode=a,ke=t,_e=At(a.firstChild),zt=!1,n=!0):n=!1),n||yl(t)),Ja(t),n=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,a=u.children,Ss(n,u)?a=null:s!==null&&Ss(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=bc(e,t,Hh,null,null,l),Bn._currentValue=n),Ou(e,t),We(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=_e)&&(l=jx(l,t.pendingProps,zt),l!==null?(t.stateNode=l,ke=t,_e=null,e=!0):e=!1),e||yl(t)),null;case 13:return qo(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ta(t,null,a,l):We(e,t,a,l),t.child;case 11:return Mo(e,t,t.type,t.pendingProps,l);case 7:return We(e,t,t.pendingProps,l),t.child;case 8:return We(e,t,t.pendingProps.children,l),t.child;case 12:return We(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),We(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Fl(t),n=$e(n),a=a(n),t.flags|=1,We(e,t,a,l),t.child;case 14:return wo(e,t,t.type,t.pendingProps,l);case 15:return Co(e,t,t.type,t.pendingProps,l);case 19:return Go(e,t,l);case 31:return Zh(e,t,l);case 22:return Do(e,t,l,t.pendingProps);case 24:return Fl(t),a=$e(Be),e===null?(n=fc(),n===null&&(n=Ee,u=sc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},dc(t),gl(t,Be,n)):((e.lanes&l)!==0&&(mc(e,t),yn(t,null,null,l),vn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),gl(t,Be,a)):(a=u.cache,gl(t,Be,a),a!==n.cache&&cc(t,[Be],l,!0))),We(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function ll(e){e.flags|=4}function kc(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(xd())e.flags|=8192;else throw ea=pu,oc}else e.flags&=-16777217}function Qo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!n0(t))if(xd())e.flags|=8192;else throw ea=pu,oc}function Hu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?br():536870912,e.lanes|=t,Ha|=t)}function Nn(e,t){if(!oe)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 Te(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 Kh(e,t,l){var a=t.pendingProps;switch(lc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Te(t),null;case 1:return Te(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Be),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Na(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nc())),Te(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(ll(t),u!==null?(Te(t),Qo(t,u)):(Te(t),kc(t,n,null,a,l))):u?u!==e.memoizedState?(ll(t),Te(t),Qo(t,u)):(Te(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),Te(t),kc(t,n,e,a,l)),null;case 27:if(Jn(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Te(t),null}e=K.current,Na(t)?Sf(t):(e=Wd(n,a,l),t.stateNode=e,ll(t))}return Te(t),null;case 5:if(Jn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Te(t),null}if(u=K.current,Na(t))Sf(t);else{var s=Fu(ue.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[Je]=t,u[lt]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(Fe(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return Te(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,Na(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=ke,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||qd(e.nodeValue,l)),e||yl(t,!0)}else e=Fu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Te(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[Je]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Te(t),e=!1}else l=nc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Te(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[Je]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Te(t),n=!1}else n=nc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Hu(t,t.updateQueue),Te(t),null);case 4:return Oe(),e===null&&vs(t.stateNode.containerInfo),Te(t),null;case 10:return Pt(t.type),Te(t),null;case 19:if(B(Ue),a=t.memoizedState,a===null)return Te(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Nn(a,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Nu(e),u!==null){for(t.flags|=128,Nn(a,!1),e=u.updateQueue,t.updateQueue=e,Hu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)vf(l,e),l=l.sibling;return Q(Ue,Ue.current&1|2),oe&&Wt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&rt()>Gu&&(t.flags|=128,n=!0,Nn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Nu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Hu(t,e),Nn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!oe)return Te(t),null}else 2*rt()-a.renderingStartTime>Gu&&l!==536870912&&(t.flags|=128,n=!0,Nn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=rt(),e.sibling=null,l=Ue.current,Q(Ue,n?l&1|2:l&1),oe&&Wt(t,a.treeForkCount),e):(Te(t),null);case 22:case 23:return xt(t),yc(),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&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),l=t.updateQueue,l!==null&&Hu(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&&B(Pl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pt(Be),Te(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Jh(e,t){switch(lc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(Be),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Jn(t),null;case 31:if(t.memoizedState!==null){if(xt(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(xt(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 B(Ue),null;case 4:return Oe(),null;case 10:return Pt(t.type),null;case 22:case 23:return xt(t),yc(),e!==null&&B(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Be),null;case 25:return null;default:return null}}function Zo(e,t){switch(lc(t),t.tag){case 3:Pt(Be),Oe();break;case 26:case 27:case 5:Jn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:B(Ue);break;case 10:Pt(t.type);break;case 22:case 23:xt(t),yc(),e!==null&&B(Pl);break;case 24:Pt(Be)}}function En(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(d){ge(t,t.return,d)}}function El(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var s=a.inst,d=s.destroy;if(d!==void 0){s.destroy=void 0,n=t;var y=l,_=d;try{_()}catch(w){ge(n,y,w)}}}a=a.next}while(a!==u)}}catch(w){ge(t,t.return,w)}}function Vo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Of(t,l)}catch(a){ge(e,e.return,a)}}}function Ko(e,t,l){l.props=aa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ge(e,t,a)}}function _n(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){ge(e,t,n)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ge(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){ge(e,t,n)}else l.current=null}function Jo(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){ge(e,e.return,n)}}function $c(e,t,l){try{var a=e.stateNode;xx(a,e.type,l,t),a[lt]=t}catch(n){ge(e,e.return,n)}}function ko(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wl(e.type)||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ko(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&&wl(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 Fc(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&&wl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Fc(e,t,l),e=e.sibling;e!==null;)Fc(e,t,l),e=e.sibling}function Bu(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&&wl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Bu(e,t,l),e=e.sibling;e!==null;)Bu(e,t,l),e=e.sibling}function $o(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Fe(t,a,l),t[Je]=e,t[lt]=l}catch(u){ge(e,e.return,u)}}var al=!1,Ye=!1,Pc=!1,Wo=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function kh(e,t){if(e=e.containerInfo,ps=ni,e=cf(e),Vi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var s=0,d=-1,y=-1,_=0,w=0,U=e,T=null;t:for(;;){for(var A;U!==l||n!==0&&U.nodeType!==3||(d=s+n),U!==u||a!==0&&U.nodeType!==3||(y=s+a),U.nodeType===3&&(s+=U.nodeValue.length),(A=U.firstChild)!==null;)T=U,U=A;for(;;){if(U===e)break t;if(T===l&&++_===n&&(d=s),T===u&&++w===a&&(y=s),(A=U.nextSibling)!==null)break;U=T,T=U.parentNode}U=A}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(bs={focusedElem:e,selectionRange:l},ni=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var V=aa(l.type,n);e=a.getSnapshotBeforeUpdate(V,u),a.__reactInternalSnapshotBeforeUpdate=e}catch($){ge(l,l.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ns(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ns(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,Ze=e;break}Ze=t.return}}function Fo(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ul(e,l),a&4&&En(5,l);break;case 1:if(ul(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){ge(l,l.return,s)}else{var n=aa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){ge(l,l.return,s)}}a&64&&Vo(l),a&512&&_n(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{Of(e,t)}catch(s){ge(l,l.return,s)}}break;case 27:t===null&&a&4&&$o(l);case 26:case 5:ul(e,l),t===null&&a&4&&Jo(l),a&512&&_n(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),a&4&&ed(e,l);break;case 13:ul(e,l),a&4&&td(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ax.bind(null,l),Nx(e,l))));break;case 22:if(a=l.memoizedState!==null||al,!a){t=t!==null&&t.memoizedState!==null||Ye,n=al;var u=Ye;al=a,(Ye=t)&&!u?il(e,l,(l.subtreeFlags&8772)!==0):ul(e,l),al=n,Ye=u}break;case 30:break;default:ul(e,l)}}function Po(e){var t=e.alternate;t!==null&&(e.alternate=null,Po(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ri(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 Re=null,nt=!1;function nl(e,t,l){for(l=l.child;l!==null;)Io(e,t,l),l=l.sibling}function Io(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(ka,l)}catch{}switch(l.tag){case 26:Ye||Gt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ye||Gt(l,t);var a=Re,n=nt;wl(l.type)&&(Re=l.stateNode,nt=!1),nl(e,t,l),On(l.stateNode),Re=a,nt=n;break;case 5:Ye||Gt(l,t);case 6:if(a=Re,n=nt,Re=null,nl(e,t,l),Re=a,nt=n,Re!==null)if(nt)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(u){ge(l,t,u)}else try{Re.removeChild(l.stateNode)}catch(u){ge(l,t,u)}break;case 18:Re!==null&&(nt?(e=Re,Vd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Za(e)):Vd(Re,l.stateNode));break;case 4:a=Re,n=nt,Re=l.stateNode.containerInfo,nt=!0,nl(e,t,l),Re=a,nt=n;break;case 0:case 11:case 14:case 15:El(2,l,t),Ye||El(4,l,t),nl(e,t,l);break;case 1:Ye||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ko(l,t,a)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:Ye=(a=Ye)||l.memoizedState!==null,nl(e,t,l),Ye=a;break;default:nl(e,t,l)}}function ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Za(e)}catch(l){ge(t,t.return,l)}}}function td(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){ge(t,t.return,l)}}function $h(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Wo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Wo),t;default:throw Error(r(435,e.tag))}}function Lu(e,t){var l=$h(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=nx.bind(null,e,a);a.then(n,n)}})}function ut(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,s=t,d=s;e:for(;d!==null;){switch(d.tag){case 27:if(wl(d.type)){Re=d.stateNode,nt=!1;break e}break;case 5:Re=d.stateNode,nt=!1;break e;case 3:case 4:Re=d.stateNode.containerInfo,nt=!0;break e}d=d.return}if(Re===null)throw Error(r(160));Io(u,s,n),Re=null,nt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ld(t,e),t=t.sibling}var Ut=null;function ld(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),it(e),a&4&&(El(3,e,e.return),En(3,e),El(5,e,e.return));break;case 1:ut(t,e),it(e),a&512&&(Ye||l===null||Gt(l,l.return)),a&64&&al&&(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=Ut;if(ut(t,e),it(e),a&512&&(Ye||l===null||Gt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Fa]||u[Je]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Fe(u,a,l),u[Je]=e,Qe(u),a=u;break e;case"link":var s=l0("link","href",n).get(a+(l.href||""));if(s){for(var d=0;d<s.length;d++)if(u=s[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(d,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;case"meta":if(s=l0("meta","content",n).get(a+(l.content||""))){for(d=0;d<s.length;d++)if(u=s[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(d,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Je]=e,Qe(u),a=u}e.stateNode=a}else a0(n,e.type,e.stateNode);else e.stateNode=t0(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?a0(n,e.type,e.stateNode):t0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&$c(e,e.memoizedProps,l.memoizedProps)}break;case 27:ut(t,e),it(e),a&512&&(Ye||l===null||Gt(l,l.return)),l!==null&&a&4&&$c(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ut(t,e),it(e),a&512&&(Ye||l===null||Gt(l,l.return)),e.flags&32){n=e.stateNode;try{ma(n,"")}catch(V){ge(e,e.return,V)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,$c(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Pc=!0);break;case 6:if(ut(t,e),it(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(V){ge(e,e.return,V)}}break;case 3:if(ei=null,n=Ut,Ut=Pu(t.containerInfo),ut(t,e),Ut=n,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Za(t.containerInfo)}catch(V){ge(e,e.return,V)}Pc&&(Pc=!1,ad(e));break;case 4:a=Ut,Ut=Pu(e.stateNode.containerInfo),ut(t,e),it(e),Ut=a;break;case 12:ut(t,e),it(e);break;case 31:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 13:ut(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Yu=rt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,_=al,w=Ye;if(al=_||n,Ye=w||y,ut(t,e),Ye=w,al=_,it(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||al||Ye||na(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(u=y.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=y.stateNode;var U=y.memoizedProps.style,T=U!=null&&U.hasOwnProperty("display")?U.display:null;d.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(V){ge(y,y.return,V)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(V){ge(y,y.return,V)}}}else if(t.tag===18){if(l===null){y=t;try{var A=y.stateNode;n?Kd(A,!0):Kd(y.stateNode,!1)}catch(V){ge(y,y.return,V)}}}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,Lu(e,l))));break;case 19:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 30:break;case 21:break;default:ut(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ko(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Wc(e);Bu(e,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(ma(s,""),l.flags&=-33);var d=Wc(e);Bu(e,d,s);break;case 3:case 4:var y=l.stateNode.containerInfo,_=Wc(e);Fc(e,_,y);break;default:throw Error(r(161))}}catch(w){ge(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ad(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ad(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;)Fo(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:El(4,t,t.return),na(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Ko(t,t.return,l),na(t);break;case 27:On(t.stateNode);case 26:case 5:Gt(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 il(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,s=u.flags;switch(u.tag){case 0:case 11:case 15:il(n,u,l),En(4,u);break;case 1:if(il(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){ge(a,a.return,_)}if(a=u,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++)Df(y[n],d)}catch(_){ge(a,a.return,_)}}l&&s&64&&Vo(u),_n(u,u.return);break;case 27:$o(u);case 26:case 5:il(n,u,l),l&&a===null&&s&4&&Jo(u),_n(u,u.return);break;case 12:il(n,u,l);break;case 31:il(n,u,l),l&&s&4&&ed(n,u);break;case 13:il(n,u,l),l&&s&4&&td(n,u);break;case 22:u.memoizedState===null&&il(n,u,l),_n(u,u.return);break;case 30:break;default:il(n,u,l)}t=t.sibling}}function Ic(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&&on(l))}function es(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&on(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)nd(e,t,l,a),t=t.sibling}function nd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),n&2048&&En(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(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&&on(e)));break;case 12:if(n&2048){Ht(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,s=u.id,d=u.onPostCommit;typeof d=="function"&&d(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){ge(t,t.return,y)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?Ht(e,t,l,a):Tn(e,t):u._visibility&2?Ht(e,t,l,a):(u._visibility|=2,Da(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ic(s,t);break;case 24:Ht(e,t,l,a),n&2048&&es(t.alternate,t);break;default:Ht(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 u=e,s=t,d=l,y=a,_=s.flags;switch(s.tag){case 0:case 11:case 15:Da(u,s,d,y,n),En(8,s);break;case 23:break;case 22:var w=s.stateNode;s.memoizedState!==null?w._visibility&2?Da(u,s,d,y,n):Tn(u,s):(w._visibility|=2,Da(u,s,d,y,n)),n&&_&2048&&Ic(s.alternate,s);break;case 24:Da(u,s,d,y,n),n&&_&2048&&es(s.alternate,s);break;default:Da(u,s,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&&Ic(a.alternate,a);break;case 24:Tn(l,a),n&2048&&es(a.alternate,a);break;default:Tn(l,a)}t=t.sibling}}var zn=8192;function Oa(e,t,l){if(e.subtreeFlags&zn)for(e=e.child;e!==null;)ud(e,t,l),e=e.sibling}function ud(e,t,l){switch(e.tag){case 26:Oa(e,t,l),e.flags&zn&&e.memoizedState!==null&&Ux(l,Ut,e.memoizedState,e.memoizedProps);break;case 5:Oa(e,t,l);break;case 3:case 4:var a=Ut;Ut=Pu(e.stateNode.containerInfo),Oa(e,t,l),Ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,Oa(e,t,l),zn=a):Oa(e,t,l));break;default:Oa(e,t,l)}}function id(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 Rn(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];Ze=a,sd(a,e)}id(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cd(e),e=e.sibling}function cd(e){switch(e.tag){case 0:case 11:case 15:Rn(e),e.flags&2048&&El(9,e,e.return);break;case 3:Rn(e);break;case 12:Rn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Rn(e);break;default:Rn(e)}}function qu(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];Ze=a,sd(a,e)}id(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),qu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function sd(e,t){for(;Ze!==null;){var l=Ze;switch(l.tag){case 0:case 11:case 15:El(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:on(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ze=a;else e:for(l=e;Ze!==null;){a=Ze;var n=a.sibling,u=a.return;if(Po(a),a===l){Ze=null;break e}if(n!==null){n.return=u,Ze=n;break e}Ze=u}}}var Wh={getCacheForType:function(e){var t=$e(Be),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return $e(Be).controller.signal}},Fh=typeof WeakMap=="function"?WeakMap:Map,xe=0,Ee=null,ie=null,re=0,ye=0,vt=null,_l=!1,Ua=!1,ts=!1,cl=0,De=0,Tl=0,ua=0,ls=0,yt=0,Ha=0,An=null,ct=null,as=!1,Yu=0,rd=0,Gu=1/0,Xu=null,zl=null,Ge=0,Rl=null,Ba=null,sl=0,ns=0,us=null,fd=null,Mn=0,is=null;function gt(){return(xe&2)!==0&&re!==0?re&-re:C.T!==null?ds():Er()}function od(){if(yt===0)if((re&536870912)===0||oe){var e=Wn;Wn<<=1,(Wn&3932160)===0&&(Wn=262144),yt=e}else yt=536870912;return e=ht.current,e!==null&&(e.flags|=32),yt}function st(e,t,l){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(La(e,0),Al(e,re,yt,!1)),Wa(e,l),((xe&2)===0||e!==Ee)&&(e===Ee&&((xe&2)===0&&(ua|=l),De===4&&Al(e,re,yt,!1)),Xt(e))}function dd(e,t,l){if((xe&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||$a(e,t),n=a?ex(e,t):ss(e,t,!0),u=a;do{if(n===0){Ua&&!a&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Ph(l)){n=ss(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var d=e;n=An;var y=d.current.memoizedState.isDehydrated;if(y&&(La(d,s).flags|=256),s=ss(d,s,!1),s!==2){if(ts&&!y){d.errorRecoveryDisabledLanes|=u,ua|=u,n=4;break e}u=ct,ct=n,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){La(e,0),Al(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Al(a,t,yt,!_l);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Yu+300-rt(),10<n)){if(Al(a,t,yt,!_l),Pn(a,0,!0)!==0)break e;sl=t,a.timeoutHandle=Qd(md.bind(null,a,l,ct,Xu,as,t,yt,ua,Ha,_l,u,"Throttled",-0,0),n);break e}md(a,l,ct,Xu,as,t,yt,ua,Ha,_l,u,null,-0,0)}}break}while(!0);Xt(e)}function md(e,t,l,a,n,u,s,d,y,_,w,U,T,A){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},ud(t,u,U);var V=(u&62914560)===u?Yu-rt():(u&4194048)===u?rd-rt():0;if(V=Hx(U,V),V!==null){sl=u,e.cancelPendingCommit=V(Sd.bind(null,e,t,u,l,a,n,s,d,y,w,U,null,T,A)),Al(e,u,s,!_);return}}Sd(e,t,u,l,a,n,s,d,y)}function Ph(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!dt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t,l,a){t&=~ls,t&=~ua,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ot(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&Sr(e,l,t)}function Qu(){return(xe&6)===0?(wn(0),!1):!0}function cs(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,Ft=Wl=null,Nc(e),Ra=null,mn=0,e=ie;for(;e!==null;)Zo(e.alternate,e),e=e.return;ie=null}}function La(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,gx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),sl=0,cs(),Ee=e,ie=l=$t(e.current,null),re=t,ye=0,vt=null,_l=!1,Ua=$a(e,t),ts=!1,Ha=yt=ls=ua=Tl=De=0,ct=An=null,as=!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-ot(a),u=1<<n;t|=e[n],a&=~u}return cl=t,fu(),l}function hd(e,t){le=null,C.H=Sn,t===za||t===gu?(t=Af(),ye=3):t===oc?(t=Af(),ye=4):ye=t===qc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,ie===null&&(De=1,Cu(e,Et(t,e.current)))}function xd(){var e=ht.current;return e===null?!0:(re&4194048)===re?Rt===null:(re&62914560)===re||(re&536870912)!==0?e===Rt:!1}function vd(){var e=C.H;return C.H=Sn,e===null?Sn:e}function yd(){var e=C.A;return C.A=Wh,e}function Zu(){De=4,_l||(re&4194048)!==re&&ht.current!==null||(Ua=!0),(Tl&134217727)===0&&(ua&134217727)===0||Ee===null||Al(Ee,re,yt,!1)}function ss(e,t,l){var a=xe;xe|=2;var n=vd(),u=yd();(Ee!==e||re!==t)&&(Xu=null,La(e,t)),t=!1;var s=De;e:do try{if(ye!==0&&ie!==null){var d=ie,y=vt;switch(ye){case 8:cs(),s=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var _=ye;if(ye=0,vt=null,qa(e,d,y,_),l&&Ua){s=0;break e}break;default:_=ye,ye=0,vt=null,qa(e,d,y,_)}}Ih(),s=De;break}catch(w){hd(e,w)}while(!0);return t&&e.shellSuspendCounter++,Ft=Wl=null,xe=a,C.H=n,C.A=u,ie===null&&(Ee=null,re=0,fu()),s}function Ih(){for(;ie!==null;)gd(ie)}function ex(e,t){var l=xe;xe|=2;var a=vd(),n=yd();Ee!==e||re!==t?(Xu=null,Gu=rt()+500,La(e,t)):Ua=$a(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var u=vt;t:switch(ye){case 1:ye=0,vt=null,qa(e,t,u,1);break;case 2:case 9:if(zf(u)){ye=0,vt=null,pd(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),Xt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:zf(u)?(ye=0,vt=null,pd(t)):(ye=0,vt=null,qa(e,t,u,7));break;case 5:var s=null;switch(ie.tag){case 26:s=ie.memoizedState;case 5:case 27:var d=ie;if(s?n0(s):d.stateNode.complete){ye=0,vt=null;var y=d.sibling;if(y!==null)ie=y;else{var _=d.return;_!==null?(ie=_,Vu(_)):ie=null}break t}}ye=0,vt=null,qa(e,t,u,5);break;case 6:ye=0,vt=null,qa(e,t,u,6);break;case 8:cs(),De=6;break e;default:throw Error(r(462))}}tx();break}catch(w){hd(e,w)}while(!0);return Ft=Wl=null,C.H=a,C.A=n,xe=l,ie!==null?0:(Ee=null,re=0,fu(),De)}function tx(){for(;ie!==null&&!Em();)gd(ie)}function gd(e){var t=Xo(e.alternate,e,cl);e.memoizedProps=e.pendingProps,t===null?Vu(e):ie=t}function pd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ho(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=Ho(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:Nc(t);default:Zo(l,t),t=ie=vf(t,cl),t=Xo(l,t,cl)}e.memoizedProps=e.pendingProps,t===null?Vu(e):ie=t}function qa(e,t,l,a){Ft=Wl=null,Nc(t),Ra=null,mn=0;var n=t.return;try{if(Qh(e,n,t,l,re)){De=1,Cu(e,Et(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;De=1,Cu(e,Et(l,e.current)),ie=null;return}t.flags&32768?(oe||a===1?e=!0:Ua||(re&536870912)!==0?e=!1:(_l=e=!0,(a===2||a===9||a===3||a===6)&&(a=ht.current,a!==null&&a.tag===13&&(a.flags|=16384))),bd(t,e)):Vu(t)}function Vu(e){var t=e;do{if((t.flags&32768)!==0){bd(t,_l);return}e=t.return;var l=Kh(t.alternate,t,cl);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);De===0&&(De=5)}function bd(e,t){do{var l=Jh(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);De=6,ie=null}function Sd(e,t,l,a,n,u,s,d,y){e.cancelPendingCommit=null;do Ku();while(Ge!==0);if((xe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Wi,Om(e,l,u,s,d,y),e===Ee&&(ie=Ee=null,re=0),Ba=t,Rl=e,sl=l,ns=u,us=n,fd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ux(kn,function(){return Td(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null,n=X.p,X.p=2,s=xe,xe|=4;try{kh(e,t,l)}finally{xe=s,X.p=n,C.T=a}}Ge=1,jd(),Nd(),Ed()}}function jd(){if(Ge===1){Ge=0;var e=Rl,t=Ba,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=C.T,C.T=null;var a=X.p;X.p=2;var n=xe;xe|=4;try{ld(t,e);var u=bs,s=cf(e.containerInfo),d=u.focusedElem,y=u.selectionRange;if(s!==d&&d&&d.ownerDocument&&uf(d.ownerDocument.documentElement,d)){if(y!==null&&Vi(d)){var _=y.start,w=y.end;if(w===void 0&&(w=_),"selectionStart"in d)d.selectionStart=_,d.selectionEnd=Math.min(w,d.value.length);else{var U=d.ownerDocument||document,T=U&&U.defaultView||window;if(T.getSelection){var A=T.getSelection(),V=d.textContent.length,$=Math.min(y.start,V),je=y.end===void 0?$:Math.min(y.end,V);!A.extend&&$>je&&(s=je,je=$,$=s);var j=nf(d,$),p=nf(d,je);if(j&&p&&(A.rangeCount!==1||A.anchorNode!==j.node||A.anchorOffset!==j.offset||A.focusNode!==p.node||A.focusOffset!==p.offset)){var E=U.createRange();E.setStart(j.node,j.offset),A.removeAllRanges(),$>je?(A.addRange(E),A.extend(p.node,p.offset)):(E.setEnd(p.node,p.offset),A.addRange(E))}}}}for(U=[],A=d;A=A.parentNode;)A.nodeType===1&&U.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<U.length;d++){var O=U[d];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}ni=!!ps,bs=ps=null}finally{xe=n,X.p=a,C.T=l}}e.current=t,Ge=2}}function Nd(){if(Ge===2){Ge=0;var e=Rl,t=Ba,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=C.T,C.T=null;var a=X.p;X.p=2;var n=xe;xe|=4;try{Fo(e,t.alternate,t)}finally{xe=n,X.p=a,C.T=l}}Ge=3}}function Ed(){if(Ge===4||Ge===3){Ge=0,_m();var e=Rl,t=Ba,l=sl,a=fd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,Ba=Rl=null,_d(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),Ti(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(ka,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=C.T,n=X.p,X.p=2,C.T=null;try{for(var u=e.onRecoverableError,s=0;s<a.length;s++){var d=a[s];u(d.value,{componentStack:d.stack})}}finally{C.T=t,X.p=n}}(sl&3)!==0&&Ku(),Xt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===is?Mn++:(Mn=0,is=e):Mn=0,wn(0)}}function _d(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,on(t)))}function Ku(){return jd(),Nd(),Ed(),Td()}function Td(){if(Ge!==5)return!1;var e=Rl,t=ns;ns=0;var l=Ti(sl),a=C.T,n=X.p;try{X.p=32>l?32:l,C.T=null,l=us,us=null;var u=Rl,s=sl;if(Ge=0,Ba=Rl=null,sl=0,(xe&6)!==0)throw Error(r(331));var d=xe;if(xe|=4,cd(u.current),nd(u,u.current,s,l),xe=d,wn(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(ka,u)}catch{}return!0}finally{X.p=n,C.T=a,_d(e,t)}}function zd(e,t,l){t=Et(l,t),t=Lc(e.stateNode,t,2),e=Sl(e,t,2),e!==null&&(Wa(e,2),Xt(e))}function ge(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=Et(l,e),l=Ro(2),a=Sl(t,l,2),a!==null&&(Ao(l,a,t,e),Wa(a,2),Xt(a));break}}t=t.return}}function rs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Fh;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)||(ts=!0,n.add(l),e=lx.bind(null,e,t,l),t.then(e,e))}function lx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(re&l)===l&&(De===4||De===3&&(re&62914560)===re&&300>rt()-Yu?(xe&2)===0&&La(e,0):ls|=l,Ha===re&&(Ha=0)),Xt(e)}function Rd(e,t){t===0&&(t=br()),e=Jl(e,t),e!==null&&(Wa(e,t),Xt(e))}function ax(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Rd(e,l)}function nx(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),Rd(e,l)}function ux(e,t){return ji(e,t)}var Ju=null,Ya=null,fs=!1,ku=!1,os=!1,Ml=0;function Xt(e){e!==Ya&&e.next===null&&(Ya===null?Ju=Ya=e:Ya=Ya.next=e),ku=!0,fs||(fs=!0,cx())}function wn(e,t){if(!os&&ku){os=!0;do for(var l=!1,a=Ju;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-ot(42|e)+1)-1,u&=n&~(s&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Cd(a,u))}else u=re,u=Pn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||$a(a,u)||(l=!0,Cd(a,u));a=a.next}while(l);os=!1}}function ix(){Ad()}function Ad(){ku=fs=!1;var e=0;Ml!==0&&yx()&&(e=Ml);for(var t=rt(),l=null,a=Ju;a!==null;){var n=a.next,u=Md(a,t);u===0?(a.next=null,l===null?Ju=n:l.next=n,n===null&&(Ya=l)):(l=a,(e!==0||(u&3)!==0)&&(ku=!0)),a=n}Ge!==0&&Ge!==5||wn(e),Ml!==0&&(Ml=0)}function Md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-ot(u),d=1<<s,y=n[s];y===-1?((d&l)===0||(d&a)!==0)&&(n[s]=Dm(d,t)):y<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ee,l=re,l=Pn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ni(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||$a(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ni(a),Ti(l)){case 2:case 8:l=gr;break;case 32:l=kn;break;case 268435456:l=pr;break;default:l=kn}return a=wd.bind(null,e),l=ji(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ni(a),e.callbackPriority=2,e.callbackNode=null,2}function wd(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ku()&&e.callbackNode!==l)return null;var a=re;return a=Pn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(dd(e,a,t),Md(e,rt()),e.callbackNode!=null&&e.callbackNode===l?wd.bind(null,e):null)}function Cd(e,t){if(Ku())return null;dd(e,t,!0)}function cx(){px(function(){(xe&6)!==0?ji(yr,ix):Ad()})}function ds(){if(Ml===0){var e=_a;e===0&&(e=$n,$n<<=1,($n&261888)===0&&($n=256)),Ml=e}return Ml}function Dd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(""+e)}function Od(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 sx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Dd((n[lt]||null).action),s=a.submitter;s&&(t=(t=s[lt]||null)?Dd(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var d=new iu("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ml!==0){var y=s?Od(n,s):new FormData(n);Cc(l,{pending:!0,data:y,method:n.method,action:u},null,y)}}else typeof u=="function"&&(d.preventDefault(),y=s?Od(n,s):new FormData(n),Cc(l,{pending:!0,data:y,method:n.method,action:u},u,y))},currentTarget:n}]})}}for(var ms=0;ms<$i.length;ms++){var hs=$i[ms],rx=hs.toLowerCase(),fx=hs[0].toUpperCase()+hs.slice(1);Ot(rx,"on"+fx)}Ot(ff,"onAnimationEnd"),Ot(of,"onAnimationIteration"),Ot(df,"onAnimationStart"),Ot("dblclick","onDoubleClick"),Ot("focusin","onFocus"),Ot("focusout","onBlur"),Ot(Th,"onTransitionRun"),Ot(zh,"onTransitionStart"),Ot(Rh,"onTransitionCancel"),Ot(mf,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("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 Cn="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(" "),ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cn));function Ud(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var s=a.length-1;0<=s;s--){var d=a[s],y=d.instance,_=d.currentTarget;if(d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=_;try{u(n)}catch(w){ru(w)}n.currentTarget=null,u=y}else for(s=0;s<a.length;s++){if(d=a[s],y=d.instance,_=d.currentTarget,d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=_;try{u(n)}catch(w){ru(w)}n.currentTarget=null,u=y}}}}function ce(e,t){var l=t[zi];l===void 0&&(l=t[zi]=new Set);var a=e+"__bubble";l.has(a)||(Hd(t,e,2,!1),l.add(a))}function xs(e,t,l){var a=0;t&&(a|=4),Hd(l,e,a,t)}var $u="_reactListening"+Math.random().toString(36).slice(2);function vs(e){if(!e[$u]){e[$u]=!0,zr.forEach(function(l){l!=="selectionchange"&&(ox.has(l)||xs(l,!1,e),xs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$u]||(t[$u]=!0,xs("selectionchange",!1,t))}}function Hd(e,t,l,a){switch(o0(t)){case 2:var n=qx;break;case 8:n=Yx;break;default:n=ws}l=n.bind(null,t,l,e),n=void 0,!Hi||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 ys(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var d=a.stateNode.containerInfo;if(d===n)break;if(s===4)for(s=a.return;s!==null;){var y=s.tag;if((y===3||y===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;d!==null;){if(s=sa(d),s===null)return;if(y=s.tag,y===5||y===6||y===26||y===27){a=u=s;continue e}d=d.parentNode}}a=a.return}qr(function(){var _=u,w=Oi(l),U=[];e:{var T=hf.get(e);if(T!==void 0){var A=iu,V=e;switch(e){case"keypress":if(nu(l)===0)break e;case"keydown":case"keyup":A=nh;break;case"focusin":V="focus",A=Yi;break;case"focusout":V="blur",A=Yi;break;case"beforeblur":case"afterblur":A=Yi;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":A=Xr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=ch;break;case ff:case of:case df:A=$m;break;case mf:A=rh;break;case"scroll":case"scrollend":A=Zm;break;case"wheel":A=oh;break;case"copy":case"cut":case"paste":A=Fm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Zr;break;case"toggle":case"beforetoggle":A=mh}var $=(t&4)!==0,je=!$&&(e==="scroll"||e==="scrollend"),j=$?T!==null?T+"Capture":null:T;$=[];for(var p=_,E;p!==null;){var O=p;if(E=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||E===null||j===null||(O=Ia(p,j),O!=null&&$.push(Dn(p,O,E))),je)break;p=p.return}0<$.length&&(T=new A(T,V,null,l,w),U.push({event:T,listeners:$}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",T&&l!==Di&&(V=l.relatedTarget||l.fromElement)&&(sa(V)||V[ca]))break e;if((A||T)&&(T=w.window===w?w:(T=w.ownerDocument)?T.defaultView||T.parentWindow:window,A?(V=l.relatedTarget||l.toElement,A=_,V=V?sa(V):null,V!==null&&(je=m(V),$=V.tag,V!==je||$!==5&&$!==27&&$!==6)&&(V=null)):(A=null,V=_),A!==V)){if($=Xr,O="onMouseLeave",j="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&($=Zr,O="onPointerLeave",j="onPointerEnter",p="pointer"),je=A==null?T:Pa(A),E=V==null?T:Pa(V),T=new $(O,p+"leave",A,l,w),T.target=je,T.relatedTarget=E,O=null,sa(w)===_&&($=new $(j,p+"enter",V,l,w),$.target=E,$.relatedTarget=je,O=$),je=O,A&&V)t:{for($=dx,j=A,p=V,E=0,O=j;O;O=$(O))E++;O=0;for(var k=p;k;k=$(k))O++;for(;0<E-O;)j=$(j),E--;for(;0<O-E;)p=$(p),O--;for(;E--;){if(j===p||p!==null&&j===p.alternate){$=j;break t}j=$(j),p=$(p)}$=null}else $=null;A!==null&&Bd(U,T,A,$,!1),V!==null&&je!==null&&Bd(U,je,V,$,!0)}}e:{if(T=_?Pa(_):window,A=T.nodeName&&T.nodeName.toLowerCase(),A==="select"||A==="input"&&T.type==="file")var de=Pr;else if(Wr(T))if(Ir)de=Nh;else{de=Sh;var J=bh}else A=T.nodeName,!A||A.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?_&&Ci(_.elementType)&&(de=Pr):de=jh;if(de&&(de=de(e,_))){Fr(U,de,l,w);break e}J&&J(e,T,_),e==="focusout"&&_&&T.type==="number"&&_.memoizedProps.value!=null&&wi(T,"number",T.value)}switch(J=_?Pa(_):window,e){case"focusin":(Wr(J)||J.contentEditable==="true")&&(ya=J,Ki=_,sn=null);break;case"focusout":sn=Ki=ya=null;break;case"mousedown":Ji=!0;break;case"contextmenu":case"mouseup":case"dragend":Ji=!1,sf(U,l,w);break;case"selectionchange":if(_h)break;case"keydown":case"keyup":sf(U,l,w)}var ae;if(Xi)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else va?kr(e,l)&&(fe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(fe="onCompositionStart");fe&&(Vr&&l.locale!=="ko"&&(va||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&va&&(ae=Yr()):(hl=w,Bi="value"in hl?hl.value:hl.textContent,va=!0)),J=Wu(_,fe),0<J.length&&(fe=new Qr(fe,e,null,l,w),U.push({event:fe,listeners:J}),ae?fe.data=ae:(ae=$r(l),ae!==null&&(fe.data=ae)))),(ae=xh?vh(e,l):yh(e,l))&&(fe=Wu(_,"onBeforeInput"),0<fe.length&&(J=new Qr("onBeforeInput","beforeinput",null,l,w),U.push({event:J,listeners:fe}),J.data=ae)),sx(U,e,_,l,w)}Ud(U,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Wu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ia(e,l),n!=null&&a.unshift(Dn(e,n,u)),n=Ia(e,t),n!=null&&a.push(Dn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function dx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bd(e,t,l,a,n){for(var u=t._reactName,s=[];l!==null&&l!==a;){var d=l,y=d.alternate,_=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||_===null||(y=_,n?(_=Ia(l,u),_!=null&&s.unshift(Dn(l,_,y))):n||(_=Ia(l,u),_!=null&&s.push(Dn(l,_,y)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var mx=/\r\n?/g,hx=/\u0000|\uFFFD/g;function Ld(e){return(typeof e=="string"?e:""+e).replace(mx,`
49
- `).replace(hx,"")}function qd(e,t){return t=Ld(t),Ld(e)===t}function Se(e,t,l,a,n,u){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":eu(e,"class",a);break;case"tabIndex":eu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":eu(e,l,a);break;case"style":Br(e,a,u);break;case"data":if(t!=="object"){eu(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=lu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&Se(e,t,"name",n.name,n,null),Se(e,t,"formEncType",n.formEncType,n,null),Se(e,t,"formMethod",n.formMethod,n,null),Se(e,t,"formTarget",n.formTarget,n,null)):(Se(e,t,"encType",n.encType,n,null),Se(e,t,"method",n.method,n,null),Se(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=lu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("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=lu(""+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":ce("beforetoggle",e),ce("toggle",e),In(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":In(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Xm.get(l)||l,In(e,l,a))}}function gs(e,t,l,a,n,u){switch(l){case"style":Br(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(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&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("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(!Rr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[lt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):In(e,l,a)}}}function Fe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Se(e,t,u,s,l,null)}}n&&Se(e,t,"srcSet",l.srcSet,l,null),a&&Se(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var d=u=s=n=null,y=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":s=w;break;case"checked":y=w;break;case"defaultChecked":_=w;break;case"value":u=w;break;case"defaultValue":d=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,t));break;default:Se(e,t,a,w,l,null)}}Dr(e,u,d,y,_,s,n,!1);return;case"select":ce("invalid",e),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":s=d;break;case"multiple":a=d;default:Se(e,t,n,d,l,null)}t=u,l=s,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(d=l[s],d!=null))switch(s){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Se(e,t,s,d,l,null)}Ur(e,a,n,u);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:Se(e,t,y,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Cn.length;a++)ce(Cn[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Se(e,t,_,a,l,null)}return;default:if(Ci(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&gs(e,t,w,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Se(e,t,d,a,l,null))}function xx(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,s=null,d=null,y=null,_=null,w=null;for(A in l){var U=l[A];if(l.hasOwnProperty(A)&&U!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":y=U;default:a.hasOwnProperty(A)||Se(e,t,A,null,a,U)}}for(var T in a){var A=a[T];if(U=l[T],a.hasOwnProperty(T)&&(A!=null||U!=null))switch(T){case"type":u=A;break;case"name":n=A;break;case"checked":_=A;break;case"defaultChecked":w=A;break;case"value":s=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:A!==U&&Se(e,t,T,A,a,U)}}Mi(e,s,d,y,_,w,u,n);return;case"select":A=s=d=T=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":A=y;default:a.hasOwnProperty(u)||Se(e,t,u,null,a,y)}for(n in a)if(u=a[n],y=l[n],a.hasOwnProperty(n)&&(u!=null||y!=null))switch(n){case"value":T=u;break;case"defaultValue":d=u;break;case"multiple":s=u;default:u!==y&&Se(e,t,n,u,a,y)}t=d,l=s,a=A,T!=null?da(e,!!l,T,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":A=T=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:Se(e,t,d,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":T=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Se(e,t,s,n,a,u)}Or(e,T,A);return;case"option":for(var V in l)if(T=l[V],l.hasOwnProperty(V)&&T!=null&&!a.hasOwnProperty(V))switch(V){case"selected":e.selected=!1;break;default:Se(e,t,V,null,a,T)}for(y in a)if(T=a[y],A=l[y],a.hasOwnProperty(y)&&T!==A&&(T!=null||A!=null))switch(y){case"selected":e.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:Se(e,t,y,T,a,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $ in l)T=l[$],l.hasOwnProperty($)&&T!=null&&!a.hasOwnProperty($)&&Se(e,t,$,null,a,T);for(_ in a)if(T=a[_],A=l[_],a.hasOwnProperty(_)&&T!==A&&(T!=null||A!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,t));break;default:Se(e,t,_,T,a,A)}return;default:if(Ci(t)){for(var je in l)T=l[je],l.hasOwnProperty(je)&&T!==void 0&&!a.hasOwnProperty(je)&&gs(e,t,je,void 0,a,T);for(w in a)T=a[w],A=l[w],!a.hasOwnProperty(w)||T===A||T===void 0&&A===void 0||gs(e,t,w,T,a,A);return}}for(var j in l)T=l[j],l.hasOwnProperty(j)&&T!=null&&!a.hasOwnProperty(j)&&Se(e,t,j,null,a,T);for(U in a)T=a[U],A=l[U],!a.hasOwnProperty(U)||T===A||T==null&&A==null||Se(e,t,U,T,a,A)}function Yd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,s=n.initiatorType,d=n.duration;if(u&&d&&Yd(s)){for(s=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],_=y.startTime;if(_>d)break;var w=y.transferSize,U=y.initiatorType;w&&Yd(U)&&(y=y.responseEnd,s+=w*(y<d?1:(d-_)/(y-_)))}if(--a,t+=8*(u+s)/(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 ps=null,bs=null;function Fu(e){return e.nodeType===9?e:e.ownerDocument}function Gd(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 Xd(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 Ss(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 js=null;function yx(){var e=window.event;return e&&e.type==="popstate"?e===js?!1:(js=e,!0):(js=null,!1)}var Qd=typeof setTimeout=="function"?setTimeout:void 0,gx=typeof clearTimeout=="function"?clearTimeout:void 0,Zd=typeof Promise=="function"?Promise:void 0,px=typeof queueMicrotask=="function"?queueMicrotask:typeof Zd<"u"?function(e){return Zd.resolve(null).then(e).catch(bx)}:Qd;function bx(e){setTimeout(function(){throw e})}function wl(e){return e==="head"}function Vd(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")On(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,On(l);for(var u=l.firstChild;u;){var s=u.nextSibling,d=u.nodeName;u[Fa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&On(e.ownerDocument.body);l=n}while(l);Za(t)}function Kd(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 Ns(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":Ns(l),Ri(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Sx(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[Fa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=At(e.nextSibling),e===null)break}return null}function jx(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 Jd(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 Es(e){return e.data==="$?"||e.data==="$~"}function _s(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Nx(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 Ts=null;function kd(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 $d(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 Wd(e,t,l){switch(t=Fu(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 On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ri(e)}var Mt=new Map,Fd=new Set;function Pu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var rl=X.d;X.d={f:Ex,r:_x,D:Tx,C:zx,L:Rx,m:Ax,X:wx,S:Mx,M:Cx};function Ex(){var e=rl.f(),t=Qu();return e||t}function _x(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?ho(t):rl.r(e)}var Ga=typeof document>"u"?null:document;function Pd(e,t,l){var a=Ga;if(a&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Fd.has(n)||(Fd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Fe(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Tx(e){rl.D(e),Pd("dns-prefetch",e,null)}function zx(e,t){rl.C(e,t),Pd("preconnect",e,t)}function Rx(e,t,l){rl.L(e,t,l);var a=Ga;if(a&&e&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+jt(l.imageSizes)+'"]')):n+='[href="'+jt(e)+'"]';var u=n;switch(t){case"style":u=Xa(e);break;case"script":u=Qa(e)}Mt.has(u)||(e=S({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Mt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Un(u))||t==="script"&&a.querySelector(Hn(u))||(t=a.createElement("link"),Fe(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ax(e,t){rl.m(e,t);var l=Ga;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Qa(e)}if(!Mt.has(u)&&(e=S({rel:"modulepreload",href:e},t),Mt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hn(u)))return}a=l.createElement("link"),Fe(a,"link",e),Qe(a),l.head.appendChild(a)}}}function Mx(e,t,l){rl.S(e,t,l);var a=Ga;if(a&&e){var n=fa(a).hoistableStyles,u=Xa(e);t=t||"default";var s=n.get(u);if(!s){var d={loading:0,preload:null};if(s=a.querySelector(Un(u)))d.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Mt.get(u))&&zs(e,l);var y=s=a.createElement("link");Qe(y),Fe(y,"link",e),y._p=new Promise(function(_,w){y.onload=_,y.onerror=w}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Iu(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:d},n.set(u,s)}}}function wx(e,t){rl.X(e,t);var l=Ga;if(l&&e){var a=fa(l).hoistableScripts,n=Qa(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=S({src:e,async:!0},t),(t=Mt.get(n))&&Rs(e,t),u=l.createElement("script"),Qe(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Cx(e,t){rl.M(e,t);var l=Ga;if(l&&e){var a=fa(l).hoistableScripts,n=Qa(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=S({src:e,async:!0,type:"module"},t),(t=Mt.get(n))&&Rs(e,t),u=l.createElement("script"),Qe(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Id(e,t,l,a){var n=(n=ue.current)?Pu(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=fa(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 u=fa(n).hoistableStyles,s=u.get(e);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=n.querySelector(Un(e)))&&!u._p&&(s.instance=u,s.state.loading=5),Mt.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},Mt.set(e,l),u||Dx(n,e,l,s.state))),t&&a===null)throw Error(r(528,""));return s}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=fa(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="'+jt(e)+'"'}function Un(e){return'link[rel="stylesheet"]['+e+"]"}function e0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Dx(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}),Fe(t,"link",l),Qe(t),e.head.appendChild(t))}function Qa(e){return'[src="'+jt(e)+'"]'}function Hn(e){return"script[async]"+e}function t0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(l.href)+'"]');if(a)return t.instance=a,Qe(a),a;var n=S({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),Fe(a,"style",n),Iu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Xa(l.href);var u=e.querySelector(Un(n));if(u)return t.state.loading|=4,t.instance=u,Qe(u),u;a=e0(l),(n=Mt.get(n))&&zs(a,n),u=(e.ownerDocument||e).createElement("link"),Qe(u);var s=u;return s._p=new Promise(function(d,y){s.onload=d,s.onerror=y}),Fe(u,"link",a),t.state.loading|=4,Iu(u,l.precedence,e),t.instance=u;case"script":return u=Qa(l.src),(n=e.querySelector(Hn(u)))?(t.instance=n,Qe(n),n):(a=l,(n=Mt.get(u))&&(a=S({},l),Rs(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Qe(n),Fe(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,Iu(a,l.precedence,e));return t.instance}function Iu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,s=0;s<a.length;s++){var d=a[s];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ei=null;function l0(e,t,l){if(ei===null){var a=new Map,n=ei=new Map;n.set(l,a)}else n=ei,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Fa]||u[Je]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var d=a.get(s);d?d.push(u):a.set(s,[u])}}return a}function a0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ox(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 n0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ux(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),u=t.querySelector(Un(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ti.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Qe(u);return}u=t.ownerDocument||t,a=e0(a),(n=Mt.get(n))&&zs(a,n),u=u.createElement("link"),Qe(u);var s=u;s._p=new Promise(function(d,y){s.onload=d,s.onerror=y}),Fe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ti.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var As=0;function Hx(e,t){return e.stylesheets&&e.count===0&&ai(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ai(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&As===0&&(As=62500*vx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ai(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>As?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ai(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var li=null;function ai(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,li=new Map,t.forEach(Bx,e),li=null,ti.call(e))}function Bx(e,t){if(!(t.state.loading&4)){var l=li.get(e);if(l)var a=l.get(null);else{l=new Map,li.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=t.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=ti.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Bn={$$typeof:H,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Lx(e,t,l,a,n,u,s,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=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function u0(e,t,l,a,n,u,s,d,y,_,w,U){return e=new Lx(e,t,l,s,y,_,w,U,d),t=1,u===!0&&(t|=24),u=mt(3,null,null,t),e.current=u,u.stateNode=e,t=sc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},dc(u),e}function i0(e){return e?(e=ba,e):ba}function c0(e,t,l,a,n,u){n=i0(n),a.context===null?a.context=n:a.pendingContext=n,a=bl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Sl(e,a,t),l!==null&&(st(l,e,t),xn(l,e,t))}function s0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ms(e,t){s0(e,t),(e=e.alternate)&&s0(e,t)}function r0(e){if(e.tag===13||e.tag===31){var t=Jl(e,67108864);t!==null&&st(t,e,67108864),Ms(e,67108864)}}function f0(e){if(e.tag===13||e.tag===31){var t=gt();t=_i(t);var l=Jl(e,t);l!==null&&st(l,e,t),Ms(e,t)}}var ni=!0;function qx(e,t,l,a){var n=C.T;C.T=null;var u=X.p;try{X.p=2,ws(e,t,l,a)}finally{X.p=u,C.T=n}}function Yx(e,t,l,a){var n=C.T;C.T=null;var u=X.p;try{X.p=8,ws(e,t,l,a)}finally{X.p=u,C.T=n}}function ws(e,t,l,a){if(ni){var n=Cs(a);if(n===null)ys(e,t,a,ui,l),d0(e,a);else if(Xx(n,e,t,l,a))a.stopPropagation();else if(d0(e,a),t&4&&-1<Gx.indexOf(e)){for(;n!==null;){var u=ra(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=Xl(u.pendingLanes);if(s!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var y=1<<31-ot(s);d.entanglements[1]|=y,s&=~y}Xt(u),(xe&6)===0&&(Gu=rt()+500,wn(0))}}break;case 31:case 13:d=Jl(u,2),d!==null&&st(d,u,2),Qu(),Ms(u,2)}if(u=Cs(a),u===null&&ys(e,t,a,ui,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else ys(e,t,a,null,l)}}function Cs(e){return e=Oi(e),Ds(e)}var ui=null;function Ds(e){if(ui=null,e=sa(e),e!==null){var t=m(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=N(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 ui=e,null}function o0(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(Tm()){case yr:return 2;case gr:return 8;case kn:case zm:return 32;case pr:return 268435456;default:return 32}default:return 32}}var Os=!1,Cl=null,Dl=null,Ol=null,Ln=new Map,qn=new Map,Ul=[],Gx="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 d0(e,t){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Ol=null;break;case"pointerover":case"pointerout":Ln.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function Yn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ra(t),t!==null&&r0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Xx(e,t,l,a,n){switch(t){case"focusin":return Cl=Yn(Cl,e,t,l,a,n),!0;case"dragenter":return Dl=Yn(Dl,e,t,l,a,n),!0;case"mouseover":return Ol=Yn(Ol,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Ln.set(u,Yn(Ln.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,qn.set(u,Yn(qn.get(u)||null,e,t,l,a,n)),!0}return!1}function m0(e){var t=sa(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,_r(e.priority,function(){f0(l)});return}}else if(t===31){if(t=N(l),t!==null){e.blockedOn=t,_r(e.priority,function(){f0(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 ii(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Cs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Di=a,l.target.dispatchEvent(a),Di=null}else return t=ra(l),t!==null&&r0(t),e.blockedOn=l,!1;t.shift()}return!0}function h0(e,t,l){ii(e)&&l.delete(t)}function Qx(){Os=!1,Cl!==null&&ii(Cl)&&(Cl=null),Dl!==null&&ii(Dl)&&(Dl=null),Ol!==null&&ii(Ol)&&(Ol=null),Ln.forEach(h0),qn.forEach(h0)}function ci(e,t){e.blockedOn===t&&(e.blockedOn=null,Os||(Os=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Qx)))}var si=null;function x0(e){si!==e&&(si=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){si===e&&(si=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(Ds(a||l)===null)continue;break}var u=ra(l);u!==null&&(e.splice(t,3),t-=3,Cc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Za(e){function t(y){return ci(y,e)}Cl!==null&&ci(Cl,e),Dl!==null&&ci(Dl,e),Ol!==null&&ci(Ol,e),Ln.forEach(t),qn.forEach(t);for(var l=0;l<Ul.length;l++){var a=Ul[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)m0(l),l.blockedOn===null&&Ul.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],s=n[lt]||null;if(typeof u=="function")s||x0(l);else if(s){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[lt]||null)d=s.formAction;else if(Ds(n)!==null)continue}else d=s.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),x0(l)}}}function v0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Us(e){this._internalRoot=e}ri.prototype.render=Us.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=gt();c0(l,a,e,t,null,null)},ri.prototype.unmount=Us.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;c0(e.current,2,null,e,null,null),Qu(),t[ca]=null}};function ri(e){this._internalRoot=e}ri.prototype.unstable_scheduleHydration=function(e){if(e){var t=Er();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ul.length&&t!==0&&t<Ul[l].priority;l++);Ul.splice(l,0,e),l===0&&m0(e)}};var y0=f.version;if(y0!=="19.2.4")throw Error(r(527,y0,"19.2.4"));X.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?R(e):null,e=e===null?null:e.stateNode,e};var Zx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fi.isDisabled&&fi.supportsFiber)try{ka=fi.inject(Zx),ft=fi}catch{}}return Xn.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,a="",n=Eo,u=_o,s=To;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=u0(e,1,!1,null,null,l,a,null,n,u,s,v0),e[ca]=t.current,vs(e),new Us(t)},Xn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var a=!1,n="",u=Eo,s=_o,d=To,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=u0(e,1,!0,t,l??null,a,n,y,u,s,d,v0),t.context=i0(null),l=t.current,a=gt(),a=_i(a),n=bl(a),n.callback=null,Sl(l,n,a),l=a,t.current.lanes=l,Wa(t,l),Xt(t),e[ca]=t.current,vs(e),new ri(t)},Xn.version="19.2.4",Xn}var z0;function Ix(){if(z0)return Ls.exports;z0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Ls.exports=Px(),Ls.exports}var ev=Ix();const tv=er(ev);/**
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 R0="popstate";function lv(i={}){function f(h,m){let{pathname:v="/",search:N="",hash:g=""}=ia(h.location.hash.substring(1));return!v.startsWith("/")&&!v.startsWith(".")&&(v="/"+v),Ws("",{pathname:v,search:N,hash:g},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function o(h,m){let v=h.document.querySelector("base"),N="";if(v&&v.getAttribute("href")){let g=h.location.href,x=g.indexOf("#");N=x===-1?g:g.slice(0,x)}return N+"#"+(typeof m=="string"?m:Zn(m))}function r(h,m){wt(h.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(m)})`)}return nv(f,o,r,i)}function Ae(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function wt(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function av(){return Math.random().toString(36).substring(2,10)}function A0(i,f){return{usr:i.state,key:i.key,idx:f}}function Ws(i,f,o=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?ia(f):f,state:o,key:f&&f.key||r||av()}}function Zn({pathname:i="/",search:f="",hash:o=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function ia(i){let f={};if(i){let o=i.indexOf("#");o>=0&&(f.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function nv(i,f,o,r={}){let{window:h=document.defaultView,v5Compat:m=!1}=r,v=h.history,N="POP",g=null,x=R();x==null&&(x=0,v.replaceState({...v.state,idx:x},""));function R(){return(v.state||{idx:null}).idx}function S(){N="POP";let G=R(),D=G==null?null:G-x;x=G,g&&g({action:N,location:q.location,delta:D})}function L(G,D){N="PUSH";let Y=Ws(q.location,G,D);o&&o(Y,G),x=R()+1;let H=A0(Y,x),ee=q.createHref(Y);try{v.pushState(H,"",ee)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;h.location.assign(ee)}m&&g&&g({action:N,location:q.location,delta:1})}function M(G,D){N="REPLACE";let Y=Ws(q.location,G,D);o&&o(Y,G),x=R();let H=A0(Y,x),ee=q.createHref(Y);v.replaceState(H,"",ee),m&&g&&g({action:N,location:q.location,delta:0})}function Z(G){return uv(G)}let q={get action(){return N},get location(){return i(h,v)},listen(G){if(g)throw new Error("A history only accepts one active listener");return h.addEventListener(R0,S),g=G,()=>{h.removeEventListener(R0,S),g=null}},createHref(G){return f(h,G)},createURL:Z,encodeLocation(G){let D=Z(G);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:L,replace:M,go(G){return v.go(G)}};return q}function uv(i,f=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Zn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function V0(i,f,o="/"){return iv(i,f,o,!1)}function iv(i,f,o,r){let h=typeof f=="string"?ia(f):f,m=ol(h.pathname||"/",o);if(m==null)return null;let v=K0(i);cv(v);let N=null;for(let g=0;N==null&&g<v.length;++g){let x=gv(m);N=vv(v[g],x,r)}return N}function K0(i,f=[],o=[],r="",h=!1){let m=(v,N,g=h,x)=>{let R={relativePath:x===void 0?v.path||"":x,caseSensitive:v.caseSensitive===!0,childrenIndex:N,route:v};if(R.relativePath.startsWith("/")){if(!R.relativePath.startsWith(r)&&g)return;Ae(R.relativePath.startsWith(r),`Absolute route path "${R.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),R.relativePath=R.relativePath.slice(r.length)}let S=fl([r,R.relativePath]),L=o.concat(R);v.children&&v.children.length>0&&(Ae(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),K0(v.children,f,L,S,g)),!(v.path==null&&!v.index)&&f.push({path:S,score:hv(S,v.index),routesMeta:L})};return i.forEach((v,N)=>{var g;if(v.path===""||!((g=v.path)!=null&&g.includes("?")))m(v,N);else for(let x of J0(v.path))m(v,N,!0,x)}),f}function J0(i){let f=i.split("/");if(f.length===0)return[];let[o,...r]=f,h=o.endsWith("?"),m=o.replace(/\?$/,"");if(r.length===0)return h?[m,""]:[m];let v=J0(r.join("/")),N=[];return N.push(...v.map(g=>g===""?m:[m,g].join("/"))),h&&N.push(...v),N.map(g=>i.startsWith("/")&&g===""?"/":g)}function cv(i){i.sort((f,o)=>f.score!==o.score?o.score-f.score:xv(f.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var sv=/^:[\w-]+$/,rv=3,fv=2,ov=1,dv=10,mv=-2,M0=i=>i==="*";function hv(i,f){let o=i.split("/"),r=o.length;return o.some(M0)&&(r+=mv),f&&(r+=fv),o.filter(h=>!M0(h)).reduce((h,m)=>h+(sv.test(m)?rv:m===""?ov:dv),r)}function xv(i,f){return i.length===f.length&&i.slice(0,-1).every((r,h)=>r===f[h])?i[i.length-1]-f[f.length-1]:0}function vv(i,f,o=!1){let{routesMeta:r}=i,h={},m="/",v=[];for(let N=0;N<r.length;++N){let g=r[N],x=N===r.length-1,R=m==="/"?f:f.slice(m.length)||"/",S=hi({path:g.relativePath,caseSensitive:g.caseSensitive,end:x},R),L=g.route;if(!S&&x&&o&&!r[r.length-1].route.index&&(S=hi({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},R)),!S)return null;Object.assign(h,S.params),v.push({params:h,pathname:fl([m,S.pathname]),pathnameBase:jv(fl([m,S.pathnameBase])),route:L}),S.pathnameBase!=="/"&&(m=fl([m,S.pathnameBase]))}return v}function hi(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=yv(i.path,i.caseSensitive,i.end),h=f.match(o);if(!h)return null;let m=h[0],v=m.replace(/(.)\/+$/,"$1"),N=h.slice(1);return{params:r.reduce((x,{paramName:R,isOptional:S},L)=>{if(R==="*"){let Z=N[L]||"";v=m.slice(0,m.length-Z.length).replace(/(.)\/+$/,"$1")}const M=N[L];return S&&!M?x[R]=void 0:x[R]=(M||"").replace(/%2F/g,"/"),x},{}),pathname:m,pathnameBase:v,pattern:i}}function yv(i,f=!1,o=!0){wt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],h="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,N,g)=>(r.push({paramName:N,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,f?void 0:"i"),r]}function gv(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return wt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function ol(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let o=f.endsWith("/")?f.length-1:f.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var pv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bv(i,f="/"){let{pathname:o,search:r="",hash:h=""}=typeof i=="string"?ia(i):i,m;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?m=w0(o.substring(1),"/"):m=w0(o,f)):m=f,{pathname:m,search:Nv(r),hash:Ev(h)}}function w0(i,f){let o=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(h=>{h===".."?o.length>1&&o.pop():h!=="."&&o.push(h)}),o.length>1?o.join("/"):"/"}function Xs(i,f,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Sv(i){return i.filter((f,o)=>o===0||f.route.path&&f.route.path.length>0)}function lr(i){let f=Sv(i);return f.map((o,r)=>r===f.length-1?o.pathname:o.pathnameBase)}function ar(i,f,o,r=!1){let h;typeof i=="string"?h=ia(i):(h={...i},Ae(!h.pathname||!h.pathname.includes("?"),Xs("?","pathname","search",h)),Ae(!h.pathname||!h.pathname.includes("#"),Xs("#","pathname","hash",h)),Ae(!h.search||!h.search.includes("#"),Xs("#","search","hash",h)));let m=i===""||h.pathname==="",v=m?"/":h.pathname,N;if(v==null)N=o;else{let S=f.length-1;if(!r&&v.startsWith("..")){let L=v.split("/");for(;L[0]==="..";)L.shift(),S-=1;h.pathname=L.join("/")}N=S>=0?f[S]:"/"}let g=bv(h,N),x=v&&v!=="/"&&v.endsWith("/"),R=(m||v===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(x||R)&&(g.pathname+="/"),g}var fl=i=>i.join("/").replace(/\/\/+/g,"/"),jv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Nv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Ev=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,_v=class{constructor(i,f,o,r=!1){this.status=i,this.statusText=f||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Tv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function zv(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var k0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $0(i,f){let o=i;if(typeof o!="string"||!pv.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,h=!1;if(k0)try{let m=new URL(window.location.href),v=o.startsWith("//")?new URL(m.protocol+o):new URL(o),N=ol(v.pathname,f);v.origin===m.origin&&N!=null?o=N+v.search+v.hash:h=!0}catch{wt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:h,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var W0=["POST","PUT","PATCH","DELETE"];new Set(W0);var Rv=["GET",...W0];new Set(Rv);var Va=z.createContext(null);Va.displayName="DataRouter";var vi=z.createContext(null);vi.displayName="DataRouterState";var Av=z.createContext(!1),F0=z.createContext({isTransitioning:!1});F0.displayName="ViewTransition";var Mv=z.createContext(new Map);Mv.displayName="Fetchers";var wv=z.createContext(null);wv.displayName="Await";var pt=z.createContext(null);pt.displayName="Navigation";var Vn=z.createContext(null);Vn.displayName="Location";var Zt=z.createContext({outlet:null,matches:[],isDataRoute:!1});Zt.displayName="Route";var nr=z.createContext(null);nr.displayName="RouteError";var P0="REACT_ROUTER_ERROR",Cv="REDIRECT",Dv="ROUTE_ERROR_RESPONSE";function Ov(i){if(i.startsWith(`${P0}:${Cv}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function Uv(i){if(i.startsWith(`${P0}:${Dv}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new _v(f.status,f.statusText,f.data)}catch{}}function Hv(i,{relative:f}={}){Ae(Ka(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=z.useContext(pt),{hash:h,pathname:m,search:v}=Kn(i,{relative:f}),N=m;return o!=="/"&&(N=m==="/"?o:fl([o,m])),r.createHref({pathname:N,search:v,hash:h})}function Ka(){return z.useContext(Vn)!=null}function Yl(){return Ae(Ka(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(Vn).location}var I0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function em(i){z.useContext(pt).static||z.useLayoutEffect(i)}function ur(){let{isDataRoute:i}=z.useContext(Zt);return i?$v():Bv()}function Bv(){Ae(Ka(),"useNavigate() may be used only in the context of a <Router> component.");let i=z.useContext(Va),{basename:f,navigator:o}=z.useContext(pt),{matches:r}=z.useContext(Zt),{pathname:h}=Yl(),m=JSON.stringify(lr(r)),v=z.useRef(!1);return em(()=>{v.current=!0}),z.useCallback((g,x={})=>{if(wt(v.current,I0),!v.current)return;if(typeof g=="number"){o.go(g);return}let R=ar(g,JSON.parse(m),h,x.relative==="path");i==null&&f!=="/"&&(R.pathname=R.pathname==="/"?f:fl([f,R.pathname])),(x.replace?o.replace:o.push)(R,x.state,x)},[f,o,m,h,i])}z.createContext(null);function Kn(i,{relative:f}={}){let{matches:o}=z.useContext(Zt),{pathname:r}=Yl(),h=JSON.stringify(lr(o));return z.useMemo(()=>ar(i,JSON.parse(h),r,f==="path"),[i,h,r,f])}function Lv(i,f){return tm(i,f)}function tm(i,f,o,r,h){var Y;Ae(Ka(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=z.useContext(pt),{matches:v}=z.useContext(Zt),N=v[v.length-1],g=N?N.params:{},x=N?N.pathname:"/",R=N?N.pathnameBase:"/",S=N&&N.route;{let H=S&&S.path||"";am(x,!S||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${H}">) 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="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let L=Yl(),M;if(f){let H=typeof f=="string"?ia(f):f;Ae(R==="/"||((Y=H.pathname)==null?void 0:Y.startsWith(R)),`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 "${R}" but pathname "${H.pathname}" was given in the \`location\` prop.`),M=H}else M=L;let Z=M.pathname||"/",q=Z;if(R!=="/"){let H=R.replace(/^\//,"").split("/");q="/"+Z.replace(/^\//,"").split("/").slice(H.length).join("/")}let G=V0(i,{pathname:q});wt(S||G!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),wt(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.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 D=Qv(G&&G.map(H=>Object.assign({},H,{params:Object.assign({},g,H.params),pathname:fl([R,m.encodeLocation?m.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?R:fl([R,m.encodeLocation?m.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),v,o,r,h);return f&&D?z.createElement(Vn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},D):D}function qv(){let i=kv(),f=Tv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",i),v=z.createElement(z.Fragment,null,z.createElement("p",null,"💿 Hey developer 👋"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:m},"ErrorBoundary")," or"," ",z.createElement("code",{style:m},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},f),o?z.createElement("pre",{style:h},o):null,v)}var Yv=z.createElement(qv,null),lm=class extends z.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=Uv(i.digest);o&&(i=o)}let f=i!==void 0?z.createElement(Zt.Provider,{value:this.props.routeContext},z.createElement(nr.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?z.createElement(Gv,{error:i},f):f}};lm.contextType=Av;var Qs=new WeakMap;function Gv({children:i,error:f}){let{basename:o}=z.useContext(pt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=Ov(f.digest);if(r){let h=Qs.get(f);if(h)throw h;let m=$0(r.location,o);if(k0&&!Qs.get(f))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw Qs.set(f,v),v}return z.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function Xv({routeContext:i,match:f,children:o}){let r=z.useContext(Va);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),z.createElement(Zt.Provider,{value:i},o)}function Qv(i,f=[],o=null,r=null,h=null){if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(f.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let m=i,v=o==null?void 0:o.errors;if(v!=null){let R=m.findIndex(S=>S.route.id&&(v==null?void 0:v[S.route.id])!==void 0);Ae(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),m=m.slice(0,Math.min(m.length,R+1))}let N=!1,g=-1;if(o)for(let R=0;R<m.length;R++){let S=m[R];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(g=R),S.route.id){let{loaderData:L,errors:M}=o,Z=S.route.loader&&!L.hasOwnProperty(S.route.id)&&(!M||M[S.route.id]===void 0);if(S.route.lazy||Z){N=!0,g>=0?m=m.slice(0,g+1):m=[m[0]];break}}}let x=o&&r?(R,S)=>{var L,M;r(R,{location:o.location,params:((M=(L=o.matches)==null?void 0:L[0])==null?void 0:M.params)??{},unstable_pattern:zv(o.matches),errorInfo:S})}:void 0;return m.reduceRight((R,S,L)=>{let M,Z=!1,q=null,G=null;o&&(M=v&&S.route.id?v[S.route.id]:void 0,q=S.route.errorElement||Yv,N&&(g<0&&L===0?(am("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,G=null):g===L&&(Z=!0,G=S.route.hydrateFallbackElement||null)));let D=f.concat(m.slice(0,L+1)),Y=()=>{let H;return M?H=q:Z?H=G:S.route.Component?H=z.createElement(S.route.Component,null):S.route.element?H=S.route.element:H=R,z.createElement(Xv,{match:S,routeContext:{outlet:R,matches:D,isDataRoute:o!=null},children:H})};return o&&(S.route.ErrorBoundary||S.route.errorElement||L===0)?z.createElement(lm,{location:o.location,revalidation:o.revalidation,component:q,error:M,children:Y(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:x}):Y()},null)}function ir(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zv(i){let f=z.useContext(Va);return Ae(f,ir(i)),f}function Vv(i){let f=z.useContext(vi);return Ae(f,ir(i)),f}function Kv(i){let f=z.useContext(Zt);return Ae(f,ir(i)),f}function cr(i){let f=Kv(i),o=f.matches[f.matches.length-1];return Ae(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function Jv(){return cr("useRouteId")}function kv(){var r;let i=z.useContext(nr),f=Vv("useRouteError"),o=cr("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[o]}function $v(){let{router:i}=Zv("useNavigate"),f=cr("useNavigate"),o=z.useRef(!1);return em(()=>{o.current=!0}),z.useCallback(async(h,m={})=>{wt(o.current,I0),o.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:f,...m}))},[i,f])}var C0={};function am(i,f,o){!f&&!C0[i]&&(C0[i]=!0,wt(!1,o))}z.memo(Wv);function Wv({routes:i,future:f,state:o,onError:r}){return tm(i,void 0,o,r,f)}function Fv({to:i,replace:f,state:o,relative:r}){Ae(Ka(),"<Navigate> may be used only in the context of a <Router> component.");let{static:h}=z.useContext(pt);wt(!h,"<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:m}=z.useContext(Zt),{pathname:v}=Yl(),N=ur(),g=ar(i,lr(m),v,r==="path"),x=JSON.stringify(g);return z.useEffect(()=>{N(JSON.parse(x),{replace:f,state:o,relative:r})},[N,x,r,f,o]),null}function Bl(i){Ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Pv({basename:i="/",children:f=null,location:o,navigationType:r="POP",navigator:h,static:m=!1,unstable_useTransitions:v}){Ae(!Ka(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let N=i.replace(/^\/*/,"/"),g=z.useMemo(()=>({basename:N,navigator:h,static:m,unstable_useTransitions:v,future:{}}),[N,h,m,v]);typeof o=="string"&&(o=ia(o));let{pathname:x="/",search:R="",hash:S="",state:L=null,key:M="default"}=o,Z=z.useMemo(()=>{let q=ol(x,N);return q==null?null:{location:{pathname:q,search:R,hash:S,state:L,key:M},navigationType:r}},[N,x,R,S,L,M,r]);return wt(Z!=null,`<Router basename="${N}"> is not able to match the URL "${x}${R}${S}" because it does not start with the basename, so the <Router> won't render anything.`),Z==null?null:z.createElement(pt.Provider,{value:g},z.createElement(Vn.Provider,{children:f,value:Z}))}function Iv({children:i,location:f}){return Lv(Fs(i),f)}function Fs(i,f=[]){let o=[];return z.Children.forEach(i,(r,h)=>{if(!z.isValidElement(r))return;let m=[...f,h];if(r.type===z.Fragment){o.push.apply(o,Fs(r.props.children,m));return}Ae(r.type===Bl,`[${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>`),Ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||m.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=Fs(r.props.children,m)),o.push(v)}),o}var di="get",mi="application/x-www-form-urlencoded";function yi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function ey(i){return yi(i)&&i.tagName.toLowerCase()==="button"}function ty(i){return yi(i)&&i.tagName.toLowerCase()==="form"}function ly(i){return yi(i)&&i.tagName.toLowerCase()==="input"}function ay(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function ny(i,f){return i.button===0&&(!f||f==="_self")&&!ay(i)}var oi=null;function uy(){if(oi===null)try{new FormData(document.createElement("form"),0),oi=!1}catch{oi=!0}return oi}var iy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zs(i){return i!=null&&!iy.has(i)?(wt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mi}"`),null):i}function cy(i,f){let o,r,h,m,v;if(ty(i)){let N=i.getAttribute("action");r=N?ol(N,f):null,o=i.getAttribute("method")||di,h=Zs(i.getAttribute("enctype"))||mi,m=new FormData(i)}else if(ey(i)||ly(i)&&(i.type==="submit"||i.type==="image")){let N=i.form;if(N==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||N.getAttribute("action");if(r=g?ol(g,f):null,o=i.getAttribute("formmethod")||N.getAttribute("method")||di,h=Zs(i.getAttribute("formenctype"))||Zs(N.getAttribute("enctype"))||mi,m=new FormData(N,i),!uy()){let{name:x,type:R,value:S}=i;if(R==="image"){let L=x?`${x}.`:"";m.append(`${L}x`,"0"),m.append(`${L}y`,"0")}else x&&m.append(x,S)}}else{if(yi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=di,r=null,h=mi,v=i}return m&&h==="text/plain"&&(v=m,m=void 0),{action:r,method:o.toLowerCase(),encType:h,formData:m,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sr(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function sy(i,f,o,r){let h=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?h.pathname.endsWith("/")?h.pathname=`${h.pathname}_.${r}`:h.pathname=`${h.pathname}.${r}`:h.pathname==="/"?h.pathname=`_root.${r}`:f&&ol(h.pathname,f)==="/"?h.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:h.pathname=`${h.pathname.replace(/\/$/,"")}.${r}`,h}async function ry(i,f){if(i.id in f)return f[i.id];try{let o=await import(i.module);return f[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fy(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function oy(i,f,o){let r=await Promise.all(i.map(async h=>{let m=f.routes[h.route.id];if(m){let v=await ry(m,o);return v.links?v.links():[]}return[]}));return xy(r.flat(1).filter(fy).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function D0(i,f,o,r,h,m){let v=(g,x)=>o[x]?g.route.id!==o[x].route.id:!0,N=(g,x)=>{var R;return o[x].pathname!==g.pathname||((R=o[x].route.path)==null?void 0:R.endsWith("*"))&&o[x].params["*"]!==g.params["*"]};return m==="assets"?f.filter((g,x)=>v(g,x)||N(g,x)):m==="data"?f.filter((g,x)=>{var S;let R=r.routes[g.route.id];if(!R||!R.hasLoader)return!1;if(v(g,x)||N(g,x))return!0;if(g.route.shouldRevalidate){let L=g.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((S=o[0])==null?void 0:S.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof L=="boolean")return L}return!0}):[]}function dy(i,f,{includeHydrateFallback:o}={}){return my(i.map(r=>{let h=f.routes[r.route.id];if(!h)return[];let m=[h.module];return h.clientActionModule&&(m=m.concat(h.clientActionModule)),h.clientLoaderModule&&(m=m.concat(h.clientLoaderModule)),o&&h.hydrateFallbackModule&&(m=m.concat(h.hydrateFallbackModule)),h.imports&&(m=m.concat(h.imports)),m}).flat(1))}function my(i){return[...new Set(i)]}function hy(i){let f={},o=Object.keys(i).sort();for(let r of o)f[r]=i[r];return f}function xy(i,f){let o=new Set;return new Set(f),i.reduce((r,h)=>{let m=JSON.stringify(hy(h));return o.has(m)||(o.add(m),r.push({key:m,link:h})),r},[])}function nm(){let i=z.useContext(Va);return sr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function vy(){let i=z.useContext(vi);return sr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var rr=z.createContext(void 0);rr.displayName="FrameworkContext";function um(){let i=z.useContext(rr);return sr(i,"You must render this element inside a <HydratedRouter> element"),i}function yy(i,f){let o=z.useContext(rr),[r,h]=z.useState(!1),[m,v]=z.useState(!1),{onFocus:N,onBlur:g,onMouseEnter:x,onMouseLeave:R,onTouchStart:S}=f,L=z.useRef(null);z.useEffect(()=>{if(i==="render"&&v(!0),i==="viewport"){let q=D=>{D.forEach(Y=>{v(Y.isIntersecting)})},G=new IntersectionObserver(q,{threshold:.5});return L.current&&G.observe(L.current),()=>{G.disconnect()}}},[i]),z.useEffect(()=>{if(r){let q=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(q)}}},[r]);let M=()=>{h(!0)},Z=()=>{h(!1),v(!1)};return o?i!=="intent"?[m,L,{}]:[m,L,{onFocus:Qn(N,M),onBlur:Qn(g,Z),onMouseEnter:Qn(x,M),onMouseLeave:Qn(R,Z),onTouchStart:Qn(S,M)}]:[!1,L,{}]}function Qn(i,f){return o=>{i&&i(o),o.defaultPrevented||f(o)}}function gy({page:i,...f}){let{router:o}=nm(),r=z.useMemo(()=>V0(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?z.createElement(by,{page:i,matches:r,...f}):null}function py(i){let{manifest:f,routeModules:o}=um(),[r,h]=z.useState([]);return z.useEffect(()=>{let m=!1;return oy(i,f,o).then(v=>{m||h(v)}),()=>{m=!0}},[i,f,o]),r}function by({page:i,matches:f,...o}){let r=Yl(),{future:h,manifest:m,routeModules:v}=um(),{basename:N}=nm(),{loaderData:g,matches:x}=vy(),R=z.useMemo(()=>D0(i,f,x,m,r,"data"),[i,f,x,m,r]),S=z.useMemo(()=>D0(i,f,x,m,r,"assets"),[i,f,x,m,r]),L=z.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let q=new Set,G=!1;if(f.forEach(Y=>{var ee;let H=m.routes[Y.route.id];!H||!H.hasLoader||(!R.some(W=>W.route.id===Y.route.id)&&Y.route.id in g&&((ee=v[Y.route.id])!=null&&ee.shouldRevalidate)||H.hasClientLoader?G=!0:q.add(Y.route.id))}),q.size===0)return[];let D=sy(i,N,h.unstable_trailingSlashAwareDataRequests,"data");return G&&q.size>0&&D.searchParams.set("_routes",f.filter(Y=>q.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[D.pathname+D.search]},[N,h.unstable_trailingSlashAwareDataRequests,g,r,m,R,f,i,v]),M=z.useMemo(()=>dy(S,m),[S,m]),Z=py(S);return z.createElement(z.Fragment,null,L.map(q=>z.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...o})),M.map(q=>z.createElement("link",{key:q,rel:"modulepreload",href:q,...o})),Z.map(({key:q,link:G})=>z.createElement("link",{key:q,nonce:o.nonce,...G,crossOrigin:G.crossOrigin??o.crossOrigin})))}function Sy(...i){return f=>{i.forEach(o=>{typeof o=="function"?o(f):o!=null&&(o.current=f)})}}var jy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jy&&(window.__reactRouterVersion="7.13.0")}catch{}function Ny({basename:i,children:f,unstable_useTransitions:o,window:r}){let h=z.useRef();h.current==null&&(h.current=lv({window:r,v5Compat:!0}));let m=h.current,[v,N]=z.useState({action:m.action,location:m.location}),g=z.useCallback(x=>{o===!1?N(x):z.startTransition(()=>N(x))},[o]);return z.useLayoutEffect(()=>m.listen(g),[m,g]),z.createElement(Pv,{basename:i,children:f,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:o})}var im=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cm=z.forwardRef(function({onClick:f,discover:o="render",prefetch:r="none",relative:h,reloadDocument:m,replace:v,state:N,target:g,to:x,preventScrollReset:R,viewTransition:S,unstable_defaultShouldRevalidate:L,...M},Z){let{basename:q,unstable_useTransitions:G}=z.useContext(pt),D=typeof x=="string"&&im.test(x),Y=$0(x,q);x=Y.to;let H=Hv(x,{relative:h}),[ee,W,he]=yy(r,M),P=Ty(x,{replace:v,state:N,target:g,preventScrollReset:R,relative:h,viewTransition:S,unstable_defaultShouldRevalidate:L,unstable_useTransitions:G});function Me(we){f&&f(we),we.defaultPrevented||P(we)}let ne=z.createElement("a",{...M,...he,href:Y.absoluteURL||H,onClick:Y.isExternal||m?f:Me,ref:Sy(Z,W),target:g,"data-discover":!D&&o==="render"?"true":void 0});return ee&&!D?z.createElement(z.Fragment,null,ne,z.createElement(gy,{page:H})):ne});cm.displayName="Link";var sm=z.forwardRef(function({"aria-current":f="page",caseSensitive:o=!1,className:r="",end:h=!1,style:m,to:v,viewTransition:N,children:g,...x},R){let S=Kn(v,{relative:x.relative}),L=Yl(),M=z.useContext(vi),{navigator:Z,basename:q}=z.useContext(pt),G=M!=null&&wy(S)&&N===!0,D=Z.encodeLocation?Z.encodeLocation(S).pathname:S.pathname,Y=L.pathname,H=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;o||(Y=Y.toLowerCase(),H=H?H.toLowerCase():null,D=D.toLowerCase()),H&&q&&(H=ol(H,q)||H);const ee=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let W=Y===D||!h&&Y.startsWith(D)&&Y.charAt(ee)==="/",he=H!=null&&(H===D||!h&&H.startsWith(D)&&H.charAt(D.length)==="/"),P={isActive:W,isPending:he,isTransitioning:G},Me=W?f:void 0,ne;typeof r=="function"?ne=r(P):ne=[r,W?"active":null,he?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let we=typeof m=="function"?m(P):m;return z.createElement(cm,{...x,"aria-current":Me,className:ne,ref:R,style:we,to:v,viewTransition:N},typeof g=="function"?g(P):g)});sm.displayName="NavLink";var Ey=z.forwardRef(({discover:i="render",fetcherKey:f,navigate:o,reloadDocument:r,replace:h,state:m,method:v=di,action:N,onSubmit:g,relative:x,preventScrollReset:R,viewTransition:S,unstable_defaultShouldRevalidate:L,...M},Z)=>{let{unstable_useTransitions:q}=z.useContext(pt),G=Ay(),D=My(N,{relative:x}),Y=v.toLowerCase()==="get"?"get":"post",H=typeof N=="string"&&im.test(N),ee=W=>{if(g&&g(W),W.defaultPrevented)return;W.preventDefault();let he=W.nativeEvent.submitter,P=(he==null?void 0:he.getAttribute("formmethod"))||v,Me=()=>G(he||W.currentTarget,{fetcherKey:f,method:P,navigate:o,replace:h,state:m,relative:x,preventScrollReset:R,viewTransition:S,unstable_defaultShouldRevalidate:L});q&&o!==!1?z.startTransition(()=>Me()):Me()};return z.createElement("form",{ref:Z,method:Y,action:D,onSubmit:r?g:ee,...M,"data-discover":!H&&i==="render"?"true":void 0})});Ey.displayName="Form";function _y(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rm(i){let f=z.useContext(Va);return Ae(f,_y(i)),f}function Ty(i,{target:f,replace:o,state:r,preventScrollReset:h,relative:m,viewTransition:v,unstable_defaultShouldRevalidate:N,unstable_useTransitions:g}={}){let x=ur(),R=Yl(),S=Kn(i,{relative:m});return z.useCallback(L=>{if(ny(L,f)){L.preventDefault();let M=o!==void 0?o:Zn(R)===Zn(S),Z=()=>x(i,{replace:M,state:r,preventScrollReset:h,relative:m,viewTransition:v,unstable_defaultShouldRevalidate:N});g?z.startTransition(()=>Z()):Z()}},[R,x,S,o,r,f,i,h,m,v,N,g])}var zy=0,Ry=()=>`__${String(++zy)}__`;function Ay(){let{router:i}=rm("useSubmit"),{basename:f}=z.useContext(pt),o=Jv(),r=i.fetch,h=i.navigate;return z.useCallback(async(m,v={})=>{let{action:N,method:g,encType:x,formData:R,body:S}=cy(m,f);if(v.navigate===!1){let L=v.fetcherKey||Ry();await r(L,o,v.action||N,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:R,body:S,formMethod:v.method||g,formEncType:v.encType||x,flushSync:v.flushSync})}else await h(v.action||N,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:R,body:S,formMethod:v.method||g,formEncType:v.encType||x,replace:v.replace,state:v.state,fromRouteId:o,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,h,f,o])}function My(i,{relative:f}={}){let{basename:o}=z.useContext(pt),r=z.useContext(Zt);Ae(r,"useFormAction must be used inside a RouteContext");let[h]=r.matches.slice(-1),m={...Kn(i||".",{relative:f})},v=Yl();if(i==null){m.search=v.search;let N=new URLSearchParams(m.search),g=N.getAll("index");if(g.some(R=>R==="")){N.delete("index"),g.filter(S=>S).forEach(S=>N.append("index",S));let R=N.toString();m.search=R?`?${R}`:""}}return(!i||i===".")&&h.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(m.pathname=m.pathname==="/"?o:fl([o,m.pathname])),Zn(m)}function wy(i,{relative:f}={}){let o=z.useContext(F0);Ae(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rm("useViewTransitionState"),h=Kn(i,{relative:f});if(!o.isTransitioning)return!1;let m=ol(o.currentLocation.pathname,r)||o.currentLocation.pathname,v=ol(o.nextLocation.pathname,r)||o.nextLocation.pathname;return hi(h.pathname,v)!=null||hi(h.pathname,m)!=null}var Cy=Z0();const Dy=er(Cy);/**
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 fm=(...i)=>i.filter((f,o,r)=>!!f&&f.trim()!==""&&r.indexOf(f)===o).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 Oy=i=>i.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 Uy=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(f,o,r)=>r?r.toUpperCase():o.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 O0=i=>{const f=Uy(i);return f.charAt(0).toUpperCase()+f.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 Hy={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 By=i=>{for(const f in i)if(f.startsWith("aria-")||f==="role"||f==="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 Ly=z.forwardRef(({color:i="currentColor",size:f=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:h="",children:m,iconNode:v,...N},g)=>z.createElement("svg",{ref:g,...Hy,width:f,height:f,stroke:i,strokeWidth:r?Number(o)*24/Number(f):o,className:fm("lucide",h),...!m&&!By(N)&&{"aria-hidden":"true"},...N},[...v.map(([x,R])=>z.createElement(x,R)),...Array.isArray(m)?m:[m]]));/**
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 se=(i,f)=>{const o=z.forwardRef(({className:r,...h},m)=>z.createElement(Ly,{ref:m,iconNode:f,className:fm(`lucide-${Oy(O0(i))}`,`lucide-${i}`,r),...h}));return o.displayName=O0(i),o};/**
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 qy=[["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"}]],om=se("activity",qy);/**
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 Yy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],U0=se("arrow-right",Yy);/**
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 Gy=[["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"}]],Xy=se("arrow-up-narrow-wide",Gy);/**
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 Qy=[["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"}]],Zy=se("bell",Qy);/**
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 Vy=[["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"}]],H0=se("briefcase",Vy);/**
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 Ky=[["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"}]],xi=se("calendar",Ky);/**
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 Jy=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vs=se("check",Jy);/**
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 ky=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$y=se("chevron-down",ky);/**
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 Wy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fy=se("chevron-left",Wy);/**
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 Py=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Iy=se("chevron-right",Py);/**
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 eg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],tg=se("chevrons-up-down",eg);/**
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 lg=[["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"}]],ql=se("circle-alert",lg);/**
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 ag=[["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"}]],B0=se("circle-arrow-down",ag);/**
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 ng=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],fr=se("circle-check-big",ng);/**
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 ug=[["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"}]],ig=se("circle-x",ug);/**
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 cg=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ps=se("clock",cg);/**
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 sg=[["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"}]],rg=se("ellipsis-vertical",sg);/**
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 fg=[["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"}]],og=se("external-link",fg);/**
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 dg=[["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"}]],mg=se("file-text",dg);/**
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 hg=[["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"}]],xg=se("git-pull-request",hg);/**
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 vg=[["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"}]],yg=se("house",vg);/**
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 gg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pg=se("info",gg);/**
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 bg=[["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"}]],Sg=se("layout-grid",bg);/**
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 jg=[["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"}]],L0=se("layout-list",jg);/**
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 Ng=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],dm=se("loader-circle",Ng);/**
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 Eg=[["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"}]],mm=se("pause",Eg);/**
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 _g=[["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"}]],or=se("play",_g);/**
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 Tg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],zg=se("plus",Tg);/**
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 Rg=[["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"}]],Ag=se("rotate-ccw",Rg);/**
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 Mg=[["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"}]],wg=se("save",Mg);/**
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 Cg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],dr=se("search",Cg);/**
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 Dg=[["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"}]],hm=se("settings",Dg);/**
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 Og=[["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"}]],Ug=se("square-pen",Og);/**
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 Hg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Bg=se("terminal",Hg);/**
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 Lg=[["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"}]],qg=se("triangle-alert",Lg);/**
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 Yg=[["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"}]],Gg=se("wifi",Yg);/**
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 Xg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xm=se("x",Xg),q0=i=>{let f;const o=new Set,r=(x,R)=>{const S=typeof x=="function"?x(f):x;if(!Object.is(S,f)){const L=f;f=R??(typeof S!="object"||S===null)?S:Object.assign({},f,S),o.forEach(M=>M(f,L))}},h=()=>f,N={setState:r,getState:h,getInitialState:()=>g,subscribe:x=>(o.add(x),()=>o.delete(x))},g=f=i(r,h,N);return N},Qg=i=>i?q0(i):q0,Zg=i=>i;function Vg(i,f=Zg){const o=Bt.useSyncExternalStore(i.subscribe,()=>f(i.getState()),()=>f(i.getInitialState()));return Bt.useDebugValue(o),o}const Y0=i=>{const f=Qg(i),o=r=>Vg(f,r);return Object.assign(o,f),o},Kg=i=>i?Y0(i):Y0,Jg="";let vm=!1,Is=null;function kg(i){vm=i}function $g(i){Is=i}function Wg(i){return encodeURIComponent(i.replace(/\//g,"~"))}function Ct(i){return vm&&Is?i.replace("/api/",`/api/projects/${Wg(Is)}/`):i}function Fg(){return bt("/api/projects")}async function bt(i,f){const o=`${Jg}${i}`,r=await fetch(o,{headers:{"Content-Type":"application/json",...f==null?void 0:f.headers},...f});if(!r.ok){const h=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(h.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function ym(){return bt(Ct("/api/status"))}function Pg(){return bt(Ct("/api/prds"))}function Ig(){return bt(Ct("/api/prs"))}function ep(i,f){const o=`?lines=${encodeURIComponent(f)}`;return bt(Ct(`/api/logs/${encodeURIComponent(i)}${o}`))}function gm(){return bt(Ct("/api/config"))}function pm(i){return bt(Ct("/api/config"),{method:"PUT",body:JSON.stringify(i)})}function tp(){return bt(Ct("/api/doctor"))}function bm(){return bt(Ct("/api/schedule-info"))}function lp(){return bt(Ct("/api/actions/run"),{method:"POST"})}function ap(){return bt(Ct("/api/actions/review"),{method:"POST"})}function G0(){return bt(Ct("/api/actions/install-cron"),{method:"POST"})}function np(){return bt(Ct("/api/actions/uninstall-cron"),{method:"POST"})}function Qt(i,f=[],o){const r=(o==null?void 0:o.enabled)??!0,[h,m]=z.useState(null),[v,N]=z.useState(!0),[g,x]=z.useState(null),R=z.useCallback(async()=>{N(!0),x(null);try{const S=await i();m(S)}catch(S){x(S instanceof Error?S:new Error("Unknown error"))}finally{N(!1)}},[i]);return z.useEffect(()=>{r&&R()},[...f,R,r]),{data:h,loading:v,error:g,refetch:R}}const up=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Vt=Kg(i=>({projectName:"Night Watch",setProjectName:f=>i({projectName:f}),toasts:[],addToast:f=>{const o=Math.random().toString(36).substring(7);i(r=>({toasts:[...r.toasts,{...f,id:o}]})),setTimeout(()=>{i(r=>({toasts:r.toasts.filter(h=>h.id!==o)}))},5e3)},removeToast:f=>i(o=>({toasts:o.toasts.filter(r=>r.id!==f)})),globalModeLoading:!0,setGlobalModeLoading:f=>i({globalModeLoading:f}),isGlobalMode:!1,setGlobalMode:f=>{kg(f),i({isGlobalMode:f})},projects:[],setProjects:f=>i({projects:f}),selectedProjectId:up,selectProject:f=>{$g(f),f?localStorage.setItem("nw-selected-project",f):localStorage.removeItem("nw-selected-project"),i({selectedProjectId:f})}})),ip=()=>{const[i,f]=z.useState(!1),{projectName:o,isGlobalMode:r,projects:h,selectedProjectId:m,selectProject:v}=Vt(),N=[{icon:yg,label:"Dashboard",path:"/"},{icon:mg,label:"PRDs",path:"/prds",badge:3},{icon:xg,label:"Pull Requests",path:"/prs",badge:1},{icon:xi,label:"Scheduling",path:"/scheduling"},{icon:Bg,label:"Logs",path:"/logs"},{icon:hm,label:"Settings",path:"/settings"}];return c.jsxs("aside",{className:`
286
- relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
287
- ${i?"w-20":"w-72"} h-screen flex-shrink-0 z-50
288
- bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
289
- `,children:[c.jsx("div",{className:`p-6 border-b border-white/5 ${i?"items-center justify-center flex":""}`,children:i?c.jsx("div",{className:"relative group",children:c.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"})}):c.jsxs("div",{className:"relative w-full",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?c.jsxs("div",{className:"relative",children:[c.jsx(H0,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),c.jsx("select",{value:m||"",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:h.filter(g=>g.valid).map(g=>c.jsx("option",{value:g.name,children:g.name},g.name))}),c.jsx(tg,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500 pointer-events-none"})]}):c.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:[c.jsx(H0,{className:"h-4 w-4 text-indigo-400 mr-3"}),c.jsx("span",{className:"truncate",children:o})]})]})}),c.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:c.jsx("ul",{className:"space-y-1.5 px-4",children:N.map(g=>c.jsx("li",{children:c.jsx(sm,{to:g.path,className:({isActive:x})=>`
290
- flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
291
- ${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"}
292
- ${i?"justify-center":""}
293
- `,children:({isActive:x})=>c.jsxs(c.Fragment,{children:[c.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"} ${i?"":"mr-3.5"}`}),!i&&c.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:g.label}),g.badge&&(i?c.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):c.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&&!i&&c.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)]"}),i&&c.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))})}),c.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:c.jsx("button",{onClick:()=>f(!i),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:i?c.jsx(Iy,{className:"h-5 w-5"}):c.jsx(Fy,{className:"h-5 w-5"})})})]})},cp=()=>{const{projectName:i}=Vt();return c.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:[c.jsxs("div",{className:"flex items-center space-x-6",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),c.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:i})]}),c.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),c.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:[c.jsx(Gg,{className:"h-3.5 w-3.5"}),c.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),c.jsxs("div",{className:"flex items-center space-x-5",children:[c.jsxs("div",{className:"relative hidden md:block group",children:[c.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]"}),c.jsx(dr,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[c.jsx(Zy,{className:"h-5 w-5"}),c.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]}),c.jsx("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full transition-all",children:c.jsx(hm,{className:"h-5 w-5"})})]}),c.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"})]})]})},Ve=({children:i,className:f="",onClick:o})=>c.jsxs("div",{className:`
294
- relative bg-[#0b101b] rounded-xl border border-white/5
295
- shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
296
- transition-all duration-300
297
- ${o?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
298
- ${f}
299
- `,onClick:o,children:[o&&c.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),c.jsx("div",{className:"relative z-10",children:i})]}),ze=({children:i,variant:f="primary",size:o="md",loading:r=!1,className:h="",disabled:m,...v})=>{const N="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 c.jsxs("button",{className:`${N} ${g[f]} ${x[o]} ${h}`,disabled:m||r,...v,children:[r&&c.jsx(dm,{className:"mr-2 h-4 w-4 animate-spin"}),i]})},sp={ready:"Ready","in-progress":"In Progress",blocked:"Blocked",done:"Done"},rp=()=>{const i=ur(),{setProjectName:f,addToast:o,selectedProjectId:r,globalModeLoading:h}=Vt(),{data:m,loading:v,error:N,refetch:g}=Qt(ym,[r],{enabled:!h}),{data:x}=Qt(bm,[r],{enabled:!h});if(Bt.useEffect(()=>{m!=null&&m.projectName&&f(m.projectName)},[m,f]),h||v)return c.jsx("div",{className:"flex items-center justify-center h-full",children:c.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(N)return c.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[c.jsx(ql,{className:"h-12 w-12 text-red-400"}),c.jsx("div",{className:"text-slate-300",children:"Failed to load dashboard data"}),c.jsx("div",{className:"text-sm text-slate-500",children:N.message}),c.jsx(ze,{onClick:()=>g(),children:"Retry"})]});if(!m)return null;const R=m.prds.filter(D=>D.status==="ready").length,S=m.prds.filter(D=>D.status==="in-progress"),L=m.prs.length,M=m.prs.filter(D=>D.reviewScore!==null&&D.reviewScore<70).length,Z=m.processes.find(D=>D.name==="executor"),q=m.processes.find(D=>D.name==="reviewer"),G=D=>{if(!D)return"Not scheduled";try{const Y=new Date(D),H=new Date,ee=Y.getTime()-H.getTime(),W=Math.floor(ee/6e4);return W<0?"Running now...":W<60?`In ${W} min`:W<1440?`In ${Math.floor(W/60)} hr${W>=120?"s":""}`:`In ${Math.floor(W/1440)} day${W>=2880?"s":""}`}catch{return"Unknown"}};return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[c.jsxs(Ve,{className:"p-5",onClick:()=>i("/prds"),children:[c.jsxs("div",{className:"flex justify-between items-start",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-500",children:"PRDs Ready"}),c.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:R})]}),c.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:c.jsx(fr,{className:"h-5 w-5"})})]}),c.jsxs("p",{className:"text-xs text-slate-500 mt-4",children:["of ",m.prds.length," total"]})]}),c.jsxs(Ve,{className:"p-5",onClick:()=>i("/prds"),children:[c.jsxs("div",{className:"flex justify-between items-start",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),c.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:S.length})]}),c.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:c.jsx(om,{className:"h-5 w-5"})})]}),c.jsx("p",{className:"text-xs text-slate-500 mt-4 truncate",children:S.length===1?S[0].name:`${S.length} active`})]}),c.jsxs(Ve,{className:"p-5",onClick:()=>i("/prs"),children:[c.jsxs("div",{className:"flex justify-between items-start",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),c.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:L})]}),c.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:c.jsx(Ps,{className:"h-5 w-5"})})]}),c.jsx("p",{className:`text-xs mt-4 ${M>0?"text-red-400 font-medium":"text-slate-500"}`,children:M>0?`${M} need work`:"All passing"})]}),c.jsxs(Ve,{className:"p-5",children:[c.jsxs("div",{className:"flex justify-between items-start",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Cron Status"}),c.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:m.crontab.installed?"Active":"Inactive"})]}),c.jsx("div",{className:`p-2 rounded-lg ${m.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:c.jsx(xi,{className:"h-5 w-5"})})]}),c.jsx("p",{className:"text-xs text-slate-500 mt-4",children:m.crontab.installed?`${m.crontab.entries.length} entr${m.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[c.jsxs("div",{className:"lg:col-span-2",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"PRD Pipeline"}),c.jsxs("button",{onClick:()=>i("/prds"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View all ",c.jsx(U0,{className:"ml-1 h-3 w-3"})]})]}),c.jsx("div",{className:"bg-slate-900 rounded-xl p-4 grid grid-cols-4 gap-4 h-64 overflow-hidden border border-slate-800",children:["blocked","ready","in-progress","done"].map(D=>c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"text-xs font-semibold text-slate-500 uppercase mb-3 flex items-center",children:[c.jsx("span",{className:`w-2 h-2 rounded-full mr-2 ${D==="ready"?"bg-green-500":D==="in-progress"?"bg-blue-500":D==="blocked"?"bg-red-500":"bg-slate-600"}`}),sp[D]]}),c.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto scrollbar-hide",children:[m.prds.filter(Y=>Y.status===D).map(Y=>c.jsxs(Ve,{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:()=>i("/prds"),children:[c.jsx("div",{className:"text-xs font-medium text-slate-200 line-clamp-2",children:Y.name}),Y.unmetDependencies.length>0&&c.jsxs("div",{className:"mt-2 text-[10px] text-amber-400",children:["Blocked by: ",Y.unmetDependencies.join(", ")]}),Y.status==="in-progress"&&c.jsx("div",{className:"h-1.5 w-1.5 bg-blue-500 rounded-full animate-pulse mt-2"})]},Y.name)),m.prds.filter(Y=>Y.status===D).length===0&&c.jsx("div",{className:"h-full border-2 border-dashed border-slate-800 rounded-lg flex items-center justify-center",children:c.jsx("span",{className:"text-xs text-slate-600",children:"Empty"})})]})]},D))})]}),c.jsxs("div",{className:"lg:col-span-1",children:[c.jsx("h2",{className:"text-lg font-semibold text-slate-200 mb-4",children:"System Status"}),c.jsx(Ve,{className:"h-64 overflow-y-auto",children:c.jsxs("div",{className:"p-4 space-y-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),c.jsx("p",{className:"text-sm text-slate-200",children:m.projectName})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Provider"}),c.jsx("p",{className:"text-sm text-slate-200 capitalize",children:m.config.provider})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"PRD Directory"}),c.jsx("p",{className:"text-sm text-slate-200",children:m.config.prdDir})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Last Updated"}),c.jsx("p",{className:"text-sm text-slate-200",children:new Date(m.timestamp).toLocaleString()})]})]})})]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsxs(Ve,{className:"p-6",children:[c.jsx("h3",{className:"text-base font-semibold text-slate-200 mb-4",children:"Process Status"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${Z!=null&&Z.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),c.jsxs("div",{children:[c.jsx("div",{className:`font-medium ${Z!=null&&Z.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),c.jsx("div",{className:"text-xs text-slate-500",children:Z!=null&&Z.running?`PID: ${Z.pid} • Running`:"Idle"})]})]}),c.jsx(ze,{size:"sm",variant:"ghost",onClick:()=>i("/logs"),children:"View Log"})]}),c.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${q!=null&&q.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),c.jsxs("div",{children:[c.jsx("div",{className:`font-medium ${q!=null&&q.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),c.jsx("div",{className:"text-xs text-slate-500",children:q!=null&&q.running?`PID: ${q.pid} • Running`:"Idle"})]})]}),c.jsx(ze,{size:"sm",variant:"ghost",onClick:()=>i("/logs"),disabled:!(q!=null&&q.running),children:"View Log"})]})]})]}),c.jsxs(Ve,{className:"p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h3",{className:"text-base font-semibold text-slate-200",children:"Scheduling"}),c.jsxs("button",{onClick:()=>i("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",c.jsx(U0,{className:"ml-1 h-3 w-3"})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx("div",{className:`p-1.5 rounded-md ${x!=null&&x.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:c.jsx(xi,{className:"h-4 w-4"})}),c.jsxs("div",{children:[c.jsx("div",{className:`text-sm font-medium ${x!=null&&x.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),c.jsx("div",{className:"text-xs text-slate-500",children:x!=null&&x.paused?"Paused":G(x==null?void 0:x.executor.nextRun)})]})]})}),c.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsx("div",{className:`p-1.5 rounded-md ${x!=null&&x.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:c.jsx(Ps,{className:"h-4 w-4"})}),c.jsxs("div",{children:[c.jsx("div",{className:`text-sm font-medium ${x!=null&&x.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),c.jsx("div",{className:"text-xs text-slate-500",children:x!=null&&x.paused?"Paused":G(x==null?void 0:x.reviewer.nextRun)})]})]})})]})]})]})]})},Ks=({children:i,variant:f="default",className:o=""})=>{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 c.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[f]} ${o}`,children:i})},fp=({isOpen:i,onClose:f,title:o,children:r})=>(z.useRef(null),z.useEffect(()=>{const h=m=>{m.key==="Escape"&&f()};return i&&(document.addEventListener("keydown",h),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",h),document.body.style.overflow="unset"}},[i,f]),i?Dy.createPortal(c.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6",children:[c.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:f,"aria-hidden":"true"}),c.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:[c.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 px-6 py-4",children:[c.jsx("h3",{className:"text-lg font-semibold text-slate-100",children:o}),c.jsx("button",{onClick:f,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:c.jsx(xm,{className:"h-5 w-5"})})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6 text-slate-300",children:r})]})]}),document.body):null),Js={ready:"Ready","in-progress":"In Progress",blocked:"Blocked",done:"Done"},ks={ready:"success","in-progress":"info",blocked:"error",done:"neutral"},op=()=>{const[i,f]=z.useState("list"),[o,r]=z.useState(!1),[h,m]=z.useState(null),[v,N]=z.useState(!1),{addToast:g,selectedProjectId:x,globalModeLoading:R}=Vt(),{data:S=[],loading:L,error:M,refetch:Z}=Qt(Pg,[x],{enabled:!R}),q=D=>{D.preventDefault(),r(!1)},G=async()=>{N(!0);try{const D=await lp();g({title:"Executor Started",message:D.pid?`Started with PID ${D.pid}`:"Executor started",type:"success"})}catch(D){g({title:"Executor Failed",message:D instanceof Error?D.message:"Failed to start executor",type:"error"})}finally{N(!1)}};return L?c.jsx("div",{className:"flex items-center justify-center h-full",children:c.jsx("div",{className:"text-slate-400",children:"Loading PRDs..."})}):M?c.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[c.jsx(ql,{className:"h-12 w-12 text-red-400"}),c.jsx("div",{className:"text-slate-300",children:"Failed to load PRDs"}),c.jsx("div",{className:"text-sm text-slate-500",children:M.message}),c.jsx(ze,{onClick:()=>Z(),children:"Retry"})]}):c.jsxs("div",{className:"space-y-6 h-[calc(100vh-8rem)] flex flex-col",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(ze,{variant:i==="list"?"secondary":"ghost",size:"icon",onClick:()=>f("list"),children:c.jsx(L0,{className:"h-4 w-4"})}),c.jsx(ze,{variant:i==="card"?"secondary":"ghost",size:"icon",onClick:()=>f("card"),children:c.jsx(Sg,{className:"h-4 w-4"})}),c.jsx("div",{className:"h-6 w-px bg-slate-800 mx-2"}),c.jsxs("div",{className:"flex space-x-1",children:[c.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"}),c.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"}),c.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"})]})]}),c.jsxs("div",{className:"flex items-center space-x-3",children:[c.jsxs(ze,{variant:"outline",size:"sm",children:[c.jsx(Xy,{className:"h-4 w-4 mr-2"}),"Sort"]}),c.jsxs(ze,{onClick:()=>r(!0),size:"sm",children:[c.jsx(zg,{className:"h-4 w-4 mr-2"}),"New PRD"]})]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto pr-1 pb-10",children:i==="list"?c.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:c.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[c.jsx("thead",{className:"bg-slate-950/50",children:c.jsxs("tr",{children:[c.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Name"}),c.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Status"}),c.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Dependencies"}),c.jsx("th",{scope:"col",className:"relative px-6 py-3",children:c.jsx("span",{className:"sr-only",children:"Actions"})})]})}),c.jsxs("tbody",{className:"divide-y divide-slate-800",children:[S.map(D=>c.jsxs("tr",{className:"hover:bg-slate-800/50 group cursor-pointer transition-colors",onClick:()=>m(D),children:[c.jsxs("td",{className:"px-6 py-4",children:[c.jsx("div",{className:"text-sm font-medium text-slate-200",children:D.name}),D.unmetDependencies.length>0&&c.jsxs("div",{className:"text-xs text-amber-400 mt-1",children:["Blocked by: ",D.unmetDependencies.join(", ")]})]}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:c.jsx(Ks,{variant:ks[D.status],children:Js[D.status]})}),c.jsx("td",{className:"px-6 py-4",children:D.dependencies.length>0?c.jsx("div",{className:"flex flex-wrap gap-1",children:D.dependencies.map(Y=>c.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:Y},Y))}):c.jsx("span",{className:"text-sm text-slate-600",children:"None"})}),c.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium",children:c.jsx("button",{className:"text-slate-500 hover:text-slate-300 opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx(rg,{className:"h-4 w-4"})})})]},D.name)),S.length===0&&c.jsx("tr",{children:c.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."})})]})]})}):c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[S.map(D=>c.jsxs(Ve,{className:"p-5 flex flex-col h-full hover:border-indigo-500/50 transition-colors",onClick:()=>m(D),children:[c.jsxs("div",{className:"flex justify-between items-start mb-4",children:[c.jsx(Ks,{variant:ks[D.status],children:Js[D.status]}),D.status==="in-progress"&&c.jsx("div",{className:"h-2 w-2 bg-blue-500 rounded-full animate-pulse"})]}),c.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-2",children:D.name}),D.content&&c.jsx("p",{className:"text-sm text-slate-400 flex-1 line-clamp-3",children:D.content.replace(/^#.*\n/,"")}),c.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-800",children:[D.dependencies.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:D.dependencies.map(Y=>c.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:Y},Y))}),D.unmetDependencies.length>0&&c.jsxs("div",{className:"text-xs text-amber-400",children:["Blocked by: ",D.unmetDependencies.join(", ")]})]})]},D.name)),S.length===0&&c.jsx("div",{className:"col-span-full text-center py-12 text-slate-500",children:"No PRDs found. Create your first PRD to get started."})]})}),c.jsx(fp,{isOpen:o,onClose:()=>r(!1),title:"Create New PRD",children:c.jsxs("form",{onSubmit:q,className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Name"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Complexity"}),c.jsxs("div",{className:"flex items-center space-x-4",children:[c.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"}),c.jsx("span",{className:"text-sm font-bold text-slate-300 w-16 text-center",children:"MED"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Phases"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Template"}),c.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:[c.jsx("option",{children:"Default"}),c.jsx("option",{children:"Feature"}),c.jsx("option",{children:"Bugfix"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Dependencies"}),c.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:[S.map(D=>c.jsxs("label",{className:"flex items-center space-x-2 text-sm text-slate-300 cursor-pointer",children:[c.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"}),c.jsx("span",{children:D.name})]},D.name)),S.length===0&&c.jsx("p",{className:"text-sm text-slate-600 italic",children:"No existing PRDs"})]})]}),c.jsxs("div",{className:"flex justify-end pt-4 space-x-3",children:[c.jsx(ze,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),c.jsx(ze,{type:"submit",children:"Create PRD"})]})]})}),h&&c.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[c.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:()=>m(null)}),c.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:[c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800",children:[c.jsx("h2",{className:"text-lg font-bold text-slate-100 line-clamp-1",children:h.name}),c.jsx("button",{onClick:()=>m(null),className:"p-2 hover:bg-slate-800 rounded-full",children:c.jsx(L0,{className:"h-5 w-5 text-slate-500"})})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6 space-y-6",children:[c.jsx("div",{className:"flex items-center space-x-4",children:c.jsx(Ks,{variant:ks[h.status],className:"text-sm px-3 py-1",children:Js[h.status]})}),h.content&&c.jsxs("div",{className:"prose prose-sm prose-invert max-w-none",children:[c.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider mb-2",children:"Description"}),c.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:h.content})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider",children:"Dependencies"}),h.dependencies.length?c.jsx("div",{className:"flex flex-wrap gap-2",children:h.dependencies.map(D=>c.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-300 text-xs rounded border border-slate-700",children:D},D))}):c.jsx("p",{className:"text-sm text-slate-500 italic",children:"No dependencies."}),h.unmetDependencies.length>0&&c.jsx("div",{className:"mt-2",children:c.jsxs("p",{className:"text-sm text-amber-400",children:["Unmet dependencies: ",h.unmetDependencies.join(", ")]})})]})]}),c.jsxs("div",{className:"p-4 border-t border-slate-800 bg-slate-900 flex space-x-3",children:[c.jsxs(ze,{className:"flex-1",onClick:G,disabled:v,children:[c.jsx(or,{className:"h-4 w-4 mr-2"}),v?"Executing...":"Execute Now"]}),c.jsx(ze,{variant:"outline",className:"flex-1",children:"Move to Done"})]})]})]})]})},dp=()=>{const[i,f]=z.useState(null),[o,r]=z.useState(!1),{addToast:h,selectedProjectId:m,globalModeLoading:v}=Vt(),{data:N=[],loading:g,error:x,refetch:R}=Qt(Ig,[m],{enabled:!v}),S=M=>{switch(M){case"pass":return c.jsx(fr,{className:"h-4 w-4 text-green-500"});case"fail":return c.jsx(ig,{className:"h-4 w-4 text-red-500"});case"pending":return c.jsx(dm,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return c.jsx(ql,{className:"h-4 w-4 text-slate-500"})}};if(g)return c.jsx("div",{className:"flex items-center justify-center h-full",children:c.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(x)return c.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[c.jsx(ql,{className:"h-12 w-12 text-red-400"}),c.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),c.jsx("div",{className:"text-sm text-slate-500",children:x.message}),c.jsx(ze,{onClick:()=>R(),children:"Retry"})]});const L=async()=>{r(!0);try{const M=await ap();h({title:"Reviewer Started",message:M.pid?`Started with PID ${M.pid}`:"Reviewer started",type:"success"})}catch(M){h({title:"Reviewer Failed",message:M instanceof Error?M.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex space-x-1",children:[c.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"}),c.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:"Needs Work"}),c.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:"Pending"})]}),c.jsxs(ze,{size:"sm",onClick:L,disabled:o,children:[c.jsx(dr,{className:"h-4 w-4 mr-2"}),o?"Starting...":"Run Reviewer Now"]})]}),c.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:c.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[c.jsx("thead",{className:"bg-slate-950/50",children:c.jsxs("tr",{children:[c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Title"}),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Branch"}),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"CI Status"}),c.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Review Score"}),c.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),c.jsxs("tbody",{className:"divide-y divide-slate-800",children:[N.map(M=>c.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>f(i===M.number?null:M.number),children:[c.jsx("td",{className:"px-6 py-4",children:c.jsxs("div",{className:"flex items-center",children:[c.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",M.number]}),c.jsx("span",{className:"font-medium text-slate-200",children:M.title})]})}),c.jsx("td",{className:"px-6 py-4",children:c.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-400 border border-slate-700 rounded text-xs font-mono",children:M.branch})}),c.jsx("td",{className:"px-6 py-4",children:c.jsxs("div",{className:"flex items-center space-x-2",children:[S(M.ciStatus),c.jsx("span",{className:"text-sm capitalize text-slate-400",children:M.ciStatus})]})}),c.jsx("td",{className:"px-6 py-4",children:M.reviewScore!==null?c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full ${M.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${M.reviewScore}%`}})}),c.jsx("span",{className:`text-sm font-bold ${M.reviewScore>=70?"text-green-500":"text-red-500"}`,children:M.reviewScore})]}):c.jsx("span",{className:"text-slate-600 text-sm",children:"—"})}),c.jsx("td",{className:"px-6 py-4 text-right",children:c.jsx("a",{href:M.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:Z=>Z.stopPropagation(),children:c.jsx(og,{className:"h-4 w-4"})})})]},M.number)),N.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:"No open PRs found."})})]})]})}),i&&c.jsx(Ve,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const M=N.find(Z=>Z.number===i);return M?c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"font-bold text-slate-200",children:M.title}),c.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",c.jsx("span",{className:"font-mono",children:M.branch})]})]}),c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),c.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[S(M.ciStatus),c.jsx("span",{className:"text-sm capitalize text-slate-300",children:M.ciStatus})]})]}),M.reviewScore!==null&&c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),c.jsx("div",{className:`text-xl font-bold mt-1 ${M.reviewScore>=70?"text-green-500":"text-red-500"}`,children:M.reviewScore})]})]})]}):null})()})]})},Ll=Bt.forwardRef(({className:i="",label:f,error:o,helperText:r,rightIcon:h,...m},v)=>c.jsxs("div",{className:"w-full",children:[f&&c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:f}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{ref:v,className:`
300
- w-full rounded-lg bg-slate-950 border border-slate-800
301
- px-3 py-2 text-sm text-slate-200
302
- placeholder:text-slate-600
303
- focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
304
- disabled:opacity-50 disabled:cursor-not-allowed
305
- transition-all duration-200
306
- ${o?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
307
- ${h?"pr-10":""}
308
- ${i}
309
- `,...m}),h&&c.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:h})]}),o?c.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:o}):r?c.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));Ll.displayName="Input";const mr=Bt.forwardRef(({className:i="",label:f,error:o,helperText:r,options:h,value:m,onChange:v,children:N,...g},x)=>{const R=S=>{v&&v(S.target.value),g.onChange&&g.onChange(S)};return c.jsxs("div",{className:"w-full",children:[f&&c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:f}),c.jsxs("div",{className:"relative",children:[c.jsx("select",{ref:x,className:`
310
- w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
311
- px-3 py-2 pr-10 text-sm text-slate-200
312
- focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
313
- disabled:opacity-50 disabled:cursor-not-allowed
314
- transition-all duration-200
315
- ${o?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
316
- ${i}
317
- `,value:m,onChange:R,...g,children:h?h.map(S=>c.jsx("option",{value:S.value,children:S.label},S.value)):N}),c.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:c.jsx($y,{className:"h-4 w-4"})})]}),o?c.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:o}):r?c.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});mr.displayName="Select";const hr=[{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 $s(i){const f=i.trim().split(/\s+/);if(f.length!==5)return i;const[o,r,h,m,v]=f,N=hr.find(g=>g.value===i);return N?N.label:o==="*/30"&&r==="*"?"Every 30 minutes":o==="0"&&r==="*"?"Every hour":o.startsWith("*/")?`Every ${parseInt(o.replace("*/",""),10)} minutes`:o==="0"&&r.startsWith("*/")?`Every ${parseInt(r.replace("*/",""),10)} hours`:o==="0"&&r!=="*"&&h==="*"&&m==="*"&&v==="*"?`Daily at ${X0(r)}`:o==="0"&&r!=="*"&&h==="*"&&m==="*"&&v==="1-5"?`Weekdays at ${X0(r)}`:i}function X0(i){const f=parseInt(i,10);return f===0?"12 AM":f<12?`${f} AM`:f===12?"12 PM":`${f-12} PM`}function mp(i){const f=hr.find(o=>o.value===i);return(f==null?void 0:f.value)??"__custom__"}function hp(i){const f=new Date,o=i.getTime()-f.getTime(),r=Math.floor(o/6e4),h=Math.floor(r/60),m=Math.floor(h/24);return r<1?"less than a minute":r<60?`in ${r} minute${r>1?"s":""}`:h<24?`in ${h} hour${h>1?"s":""}`:`in ${m} day${m>1?"s":""}`}function xp(i){const f={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return i.toLocaleDateString("en-US",f)}function vp(i){const f=new Date,o=i.getTime()-f.getTime(),r=Math.floor(o/6e4);return r>=0&&r<30}const yp=()=>{const{addToast:i,selectedProjectId:f,globalModeLoading:o}=Vt(),[r,h]=z.useState(!1),[m,v]=z.useState(!1),[N,g]=z.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:x,loading:R,error:S,refetch:L}=Qt(bm,[f],{enabled:!o}),{data:M,loading:Z,refetch:q}=Qt(gm,[f],{enabled:!o});z.useEffect(()=>{const ne=setInterval(()=>{L()},3e4);return()=>clearInterval(ne)},[L]),z.useEffect(()=>{M&&!N.isEditing&&g({executorSchedule:M.cronSchedule,reviewerSchedule:M.reviewerSchedule,isEditing:!1})},[M,N.isEditing]);const G=async()=>{if(x){h(!0);try{x.paused?(await G0(),i({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await np(),i({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),L()}catch(ne){i({title:"Action Failed",message:ne instanceof Error?ne.message:"Failed to toggle schedule state",type:"error"})}finally{h(!1)}}},D=()=>{M&&g({executorSchedule:M.cronSchedule,reviewerSchedule:M.reviewerSchedule,isEditing:!0})},Y=()=>{M&&g({executorSchedule:M.cronSchedule,reviewerSchedule:M.reviewerSchedule,isEditing:!1})},H=async()=>{if(M){v(!0);try{await pm({cronSchedule:N.executorSchedule,reviewerSchedule:N.reviewerSchedule}),await G0(),i({title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"}),g(ne=>({...ne,isEditing:!1})),q(),L()}catch(ne){i({title:"Save Failed",message:ne instanceof Error?ne.message:"Failed to save schedules",type:"error"})}finally{v(!1)}}},ee=(ne,we)=>{if(!ne)return c.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const Ke=new Date(ne),Xe=vp(Ke);return c.jsxs("div",{className:"flex items-center space-x-2",children:[Xe&&c.jsxs("span",{className:"relative flex h-3 w-3",children:[c.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),c.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),c.jsxs("div",{className:"text-sm",children:[c.jsx("span",{className:"text-slate-200 font-medium",children:hp(Ke)}),c.jsxs("span",{className:"text-slate-500 ml-2",children:["(",xp(Ke),")"]})]})]})},W=(ne,we,Ke,Xe)=>{const Lt=mp(we),Dt=Lt==="__custom__";return c.jsxs("div",{className:`space-y-3 ${Xe?"opacity-50 pointer-events-none":""}`,children:[c.jsx("div",{className:"flex items-center space-x-3",children:c.jsx(mr,{label:`${ne} Preset`,options:hr,value:Lt,onChange:Pe=>{Pe!=="__custom__"&&Ke(Pe)},className:"flex-1"})}),Dt&&c.jsx(Ll,{label:"Custom Cron Expression",value:we,onChange:Pe=>Ke(Pe.target.value),placeholder:"* * * * *",helperText:"Format: minute hour day month weekday (e.g., 0 */2 * * * for every 2 hours)"}),c.jsxs("div",{className:"text-sm text-slate-400",children:["Human-readable: ",c.jsx("span",{className:"text-slate-200",children:$s(we)})]})]})};if(R||Z)return c.jsx("div",{className:"flex items-center justify-center h-full",children:c.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(S||!x||!M)return c.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[c.jsx(ql,{className:"h-12 w-12 text-red-400"}),c.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),c.jsx("div",{className:"text-sm text-slate-500",children:(S==null?void 0:S.message)||"Unknown error"}),c.jsx(ze,{onClick:()=>{L(),q()},children:"Retry"})]});const he=x.paused,P=he?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",Me=he?"Paused":"Active";return c.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[c.jsx("div",{className:"flex items-center justify-between",children:c.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"})}),c.jsx(Ve,{className:`p-6 border-2 ${P}`,children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsx(Ps,{className:"h-8 w-8"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-slate-400",children:"Cron Status"}),c.jsx("div",{className:"text-2xl font-bold",children:Me})]})]}),c.jsx(ze,{variant:he?"primary":"outline",size:"lg",onClick:G,loading:r,children:he?c.jsxs(c.Fragment,{children:[c.jsx(or,{className:"h-5 w-5 mr-2"}),"Resume"]}):c.jsxs(c.Fragment,{children:[c.jsx(mm,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsxs(Ve,{className:"p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),!N.isEditing&&c.jsxs(ze,{variant:"ghost",size:"sm",onClick:D,children:[c.jsx(Ug,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),N.isEditing?W("Executor",N.executorSchedule,ne=>g(we=>({...we,executorSchedule:ne}))):c.jsx(c.Fragment,{children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),c.jsx("div",{className:"text-lg text-slate-200 font-medium",children:$s(M.cronSchedule)}),c.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:M.cronSchedule})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ee(x.executor.nextRun,M.cronSchedule)]}),c.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.executor.installed?"text-green-400":"text-amber-400"}`,children:[c.jsx(Vs,{className:"h-4 w-4"}),c.jsx("span",{children:x.executor.installed?"Installed":"Not installed"})]})]})})]}),c.jsxs(Ve,{className:`p-6 ${M.reviewerEnabled?"":"opacity-50"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Reviewer Schedule"}),!M.reviewerEnabled&&c.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),N.isEditing?W("Reviewer",N.reviewerSchedule,ne=>g(we=>({...we,reviewerSchedule:ne})),!M.reviewerEnabled):c.jsx(c.Fragment,{children:c.jsx("div",{className:"space-y-4",children:M.reviewerEnabled?c.jsxs(c.Fragment,{children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),c.jsx("div",{className:"text-lg text-slate-200 font-medium",children:$s(M.reviewerSchedule)}),c.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:M.reviewerSchedule})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ee(x.reviewer.nextRun,M.reviewerSchedule)]}),c.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[c.jsx(Vs,{className:"h-4 w-4"}),c.jsx("span",{children:x.reviewer.installed?"Installed":"Not installed"})]})]}):c.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),c.jsxs(Ve,{className:"p-6",children:[c.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[c.jsx(xi,{className:"h-5 w-5 text-slate-400"}),c.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),x.entries.length===0?c.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):c.jsx("div",{className:"space-y-2",children:x.entries.map((ne,we)=>c.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:ne},we))})]}),N.isEditing&&c.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[c.jsx(ze,{variant:"ghost",onClick:Y,children:"Cancel"}),c.jsxs(ze,{onClick:H,loading:m,children:[c.jsx(Vs,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},gp=()=>{const[i,f]=z.useState(!0),[o,r]=z.useState(""),[h,m]=z.useState("executor"),v=z.useRef(null),{selectedProjectId:N,globalModeLoading:g}=Vt(),{data:x,loading:R,error:S,refetch:L}=Qt(()=>ep(h,500),[h,N],{enabled:!g}),{data:M}=Qt(ym,[N],{enabled:!g}),Z=(x==null?void 0:x.lines)||[];z.useEffect(()=>{i&&v.current&&(v.current.scrollTop=v.current.scrollHeight)},[Z,i]),z.useEffect(()=>{if(!i)return;const Y=window.setInterval(()=>{L()},3e3);return()=>window.clearInterval(Y)},[i,h,L]);const q=Z.filter(Y=>Y.toLowerCase().includes(o.toLowerCase())),G=Y=>{m(Y),r("")},D=Y=>{if(!(M!=null&&M.processes))return!1;const H=M.processes.find(ee=>ee.name===Y);return(H==null?void 0:H.running)??!1};return S?c.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[c.jsx(ql,{className:"h-12 w-12 text-red-400"}),c.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),c.jsx("div",{className:"text-sm text-slate-500",children:S.message}),c.jsx(ze,{onClick:()=>L(),children:"Retry"})]}):c.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxs("div",{className:"relative group",children:[c.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:o,onChange:Y=>r(Y.target.value)}),c.jsx(dr,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),c.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),c.jsxs("div",{className:"flex space-x-1",children:[c.jsx("button",{onClick:()=>G("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="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:c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("span",{children:"Executor"}),D("executor")&&c.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),c.jsx("button",{onClick:()=>G("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="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:c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("span",{children:"Reviewer"}),D("reviewer")&&c.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})})]})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxs(ze,{size:"sm",variant:"ghost",onClick:()=>L(),children:[c.jsx(B0,{className:"h-4 w-4 mr-2"}),"Refresh"]}),c.jsxs(ze,{size:"sm",variant:"ghost",onClick:()=>f(!i),children:[i?c.jsx(mm,{className:"h-4 w-4 mr-2"}):c.jsx(or,{className:"h-4 w-4 mr-2"}),i?"Pause":"Resume"]})]})]}),c.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[c.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:[c.jsxs("span",{children:["File: ",h,".log"]}),c.jsxs("span",{children:[q.length," lines"]})]}),c.jsxs("div",{ref:v,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[R?c.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):q.length===0?c.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:o?"No logs match your filter":"No logs yet — logs will appear after the first run"}):q.map((Y,H)=>{const ee=Y.includes("[ERROR]"),W=Y.includes("[WARN]");return c.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${ee?"text-red-400":W?"text-amber-400":"text-slate-300"}`,children:[c.jsx("span",{className:"text-slate-600 select-none w-10 inline-block text-right mr-4 text-xs opacity-50",children:H+1}),Y]},H)}),i&&c.jsx("div",{className:"h-4"})," "]}),!i&&c.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:()=>f(!0),children:[c.jsx(B0,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},pp=({tabs:i,activeTab:f,onChange:o,className:r=""})=>{var g,x;const[h,m]=Bt.useState((g=i[0])==null?void 0:g.id),v=f||h,N=R=>{o?o(R):m(R)};return c.jsxs("div",{className:`flex flex-col ${r}`,children:[c.jsx("div",{className:"border-b border-slate-800 mb-6",children:c.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:i.map(R=>c.jsx("button",{onClick:()=>N(R.id),className:`
318
- whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
319
- ${v===R.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
320
- `,children:R.label},R.id))})}),c.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(x=i.find(R=>R.id===v))==null?void 0:x.content})]})},Sm=Bt.forwardRef(({className:i="",label:f,checked:o,onChange:r,...h},m)=>{const v=N=>{r&&r(N.target.checked)};return c.jsxs("label",{className:`inline-flex items-center cursor-pointer ${i}`,children:[c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"checkbox",className:"sr-only peer",ref:m,checked:o,onChange:v,...h}),c.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"})]}),f&&c.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:f})]})});Sm.displayName="Switch";const Q0=i=>({provider:i.provider,defaultBranch:i.defaultBranch,branchPrefix:i.branchPrefix,reviewerEnabled:i.reviewerEnabled,minReviewScore:i.minReviewScore,maxRuntime:i.maxRuntime,reviewerMaxRuntime:i.reviewerMaxRuntime,maxLogSize:i.maxLogSize}),bp=()=>{const{addToast:i,projectName:f,selectedProjectId:o,globalModeLoading:r}=Vt(),[h,m]=Bt.useState(!1),[v,N]=Bt.useState(null),{data:g,loading:x,error:R,refetch:S}=Qt(gm,[o],{enabled:!r}),{data:L=[],loading:M,refetch:Z}=Qt(tp,[o],{enabled:!r});Bt.useEffect(()=>{g&&N(Q0(g))},[g]);const q=(H,ee)=>{N(W=>W&&{...W,[H]:ee})},G=async()=>{if(v){m(!0);try{await pm({provider:v.provider,defaultBranch:v.defaultBranch,branchPrefix:v.branchPrefix,reviewerEnabled:v.reviewerEnabled,minReviewScore:v.minReviewScore,maxRuntime:v.maxRuntime,reviewerMaxRuntime:v.reviewerMaxRuntime,maxLogSize:v.maxLogSize}),i({title:"Settings Saved",message:"Configuration updated successfully.",type:"success"}),S(),Z()}catch(H){i({title:"Save Failed",message:H instanceof Error?H.message:"Failed to save configuration",type:"error"})}finally{m(!1)}}},D=()=>{g&&(N(Q0(g)),i({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))};if(x||!v)return c.jsx("div",{className:"flex items-center justify-center h-full",children:c.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(R)return c.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[c.jsx(ql,{className:"h-12 w-12 text-red-400"}),c.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),c.jsx("div",{className:"text-sm text-slate-500",children:R.message}),c.jsx(ze,{onClick:()=>S(),children:"Retry"})]});const Y=[{id:"general",label:"General",content:c.jsxs(Ve,{className:"p-6 space-y-4",children:[c.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(Ll,{label:"Project Name",value:f,disabled:!0}),c.jsx(mr,{label:"Provider",value:v.provider,onChange:H=>q("provider",H),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),c.jsx(Ll,{label:"Default Branch",value:v.defaultBranch,onChange:H=>q("defaultBranch",H.target.value)}),c.jsx(Ll,{label:"Branch Prefix",value:v.branchPrefix,onChange:H=>q("branchPrefix",H.target.value)}),c.jsx("div",{className:"md:col-span-2",children:c.jsx(Sm,{label:"Enable Automated Reviews",checked:v.reviewerEnabled,onChange:H=>q("reviewerEnabled",H)})})]})]})},{id:"runtime",label:"Runtime",content:c.jsxs(Ve,{className:"p-6 space-y-6",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Min Review Score (0-100)"}),c.jsxs("div",{className:"flex items-center space-x-4",children:[c.jsx("input",{type:"range",min:"0",max:"100",value:v.minReviewScore,onChange:H=>q("minReviewScore",Number(H.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),c.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:v.minReviewScore})]}),c.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(Ll,{label:"Max Runtime (Executor)",type:"number",value:String(v.maxRuntime),onChange:H=>q("maxRuntime",Number(H.target.value||0)),rightIcon:c.jsx("span",{className:"text-xs",children:"sec"})}),c.jsx(Ll,{label:"Max Runtime (Reviewer)",type:"number",value:String(v.reviewerMaxRuntime),onChange:H=>q("reviewerMaxRuntime",Number(H.target.value||0)),rightIcon:c.jsx("span",{className:"text-xs",children:"sec"})}),c.jsx(Ll,{label:"Max Log Size",type:"number",value:String(v.maxLogSize),onChange:H=>q("maxLogSize",Number(H.target.value||0)),rightIcon:c.jsx("span",{className:"text-xs",children:"bytes"})})]})]})},{id:"env",label:"Provider Env",content:c.jsx(Ve,{className:"p-6",children:c.jsx("div",{className:"space-y-2",children:Object.entries(g.providerEnv).length===0?c.jsx("p",{className:"text-slate-400 text-sm",children:"No provider environment variables configured."}):Object.entries(g.providerEnv).map(([H,ee])=>c.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[c.jsx("span",{className:"text-sm font-mono text-slate-300",children:H}),c.jsx("span",{className:"text-sm text-slate-500",children:ee})]},H))})})}];return c.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[c.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),c.jsx(pp,{tabs:Y}),c.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[c.jsxs(ze,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:D,children:[c.jsx(Ag,{className:"h-4 w-4 mr-2"}),"Reset"]}),c.jsxs(ze,{onClick:G,loading:h,children:[c.jsx(wg,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),c.jsxs("div",{className:"mt-12",children:[c.jsxs("h3",{className:"text-lg font-bold text-slate-200 mb-4 flex items-center",children:[c.jsx(om,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),c.jsx(Ve,{className:"divide-y divide-slate-800",children:M?c.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):L.map((H,ee)=>{const W=H.status==="pass",he=H.status==="warn",P=W?"bg-green-500/10 text-green-400 border-green-500/20":he?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return c.jsxs("div",{className:"p-4 flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-200",children:H.name}),c.jsx("p",{className:"text-xs text-slate-500",children:H.detail})]}),c.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${P}`,children:H.status.toUpperCase()})]},`${H.name}-${ee}`)})})]})]})},Sp=({toast:i,onDismiss:f})=>{const o={success:c.jsx(fr,{className:"h-5 w-5 text-green-400"}),error:c.jsx(ql,{className:"h-5 w-5 text-red-400"}),info:c.jsx(pg,{className:"h-5 w-5 text-blue-400"}),warning:c.jsx(qg,{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 c.jsx("div",{className:`
321
- pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
322
- bg-slate-900 border border-slate-800 border-l-4 ${r[i.type]}
323
- shadow-lg ring-1 ring-black ring-opacity-5 transition-all
324
- animate-in slide-in-from-right-full fade-in duration-300
325
- `,children:c.jsx("div",{className:"p-4",children:c.jsxs("div",{className:"flex items-start",children:[c.jsx("div",{className:"flex-shrink-0",children:o[i.type]}),c.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[c.jsx("p",{className:"text-sm font-medium text-slate-200",children:i.title}),i.message&&c.jsx("p",{className:"mt-1 text-sm text-slate-400",children:i.message})]}),c.jsx("div",{className:"ml-4 flex flex-shrink-0",children:c.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:()=>f(i.id),children:[c.jsx("span",{className:"sr-only",children:"Close"}),c.jsx(xm,{className:"h-5 w-5"})]})})]})})})},jp=()=>{const{toasts:i,removeToast:f}=Vt();return c.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:i.map(o=>c.jsx(Sp,{toast:o,onDismiss:f},o.id))})};function Np(){const{setGlobalMode:i,setGlobalModeLoading:f,setProjects:o,selectProject:r,selectedProjectId:h}=Vt();z.useEffect(()=>{f(!0),Fg().then(m=>{i(!0),o(m);const v=m.filter(N=>N.valid);h&&v.some(N=>N.name===h)?r(h):v.length>0&&r(v[0].name)}).catch(()=>{i(!1)}).finally(()=>{f(!1)})},[])}const Ep=()=>(Np(),c.jsx(Ny,{children:c.jsxs("div",{className:"flex h-screen bg-[#030712] text-slate-300 overflow-hidden relative",children:[c.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"}),c.jsx(ip,{}),c.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[c.jsx(cp,{}),c.jsx("main",{className:"flex-1 overflow-auto p-6 scroll-smooth relative",children:c.jsx("div",{className:"max-w-7xl mx-auto w-full",children:c.jsxs(Iv,{children:[c.jsx(Bl,{path:"/",element:c.jsx(rp,{})}),c.jsx(Bl,{path:"/prds",element:c.jsx(op,{})}),c.jsx(Bl,{path:"/prs",element:c.jsx(dp,{})}),c.jsx(Bl,{path:"/scheduling",element:c.jsx(yp,{})}),c.jsx(Bl,{path:"/logs",element:c.jsx(gp,{})}),c.jsx(Bl,{path:"/settings",element:c.jsx(bp,{})}),c.jsx(Bl,{path:"*",element:c.jsx(Fv,{to:"/",replace:!0})})]})})})]}),c.jsx(jp,{})]})})),jm=document.getElementById("root");if(!jm)throw new Error("Could not find root element to mount to");const _p=tv.createRoot(jm);_p.render(c.jsx(Bt.StrictMode,{children:c.jsx(Ep,{})}));