@caddis/cli 0.4.96 → 0.4.98

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 (55) hide show
  1. package/README.md +2 -0
  2. package/bundles/antigravity-plugin/plugin.json +1 -1
  3. package/bundles/antigravity-plugin/repo_hygiene.py +134 -20
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  14. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  15. package/bundles/antigravity-plugin/scripts/caddis_fleet.py +31 -21
  16. package/bundles/antigravity-plugin/scripts/caddis_gate.py +18 -1
  17. package/bundles/antigravity-plugin/scripts/caddis_guide.json +2 -2
  18. package/bundles/antigravity-plugin/scripts/caddis_handoff.py +235 -0
  19. package/bundles/antigravity-plugin/scripts/caddis_hub_collect.py +67 -15
  20. package/bundles/antigravity-plugin/scripts/caddis_lanes.py +154 -130
  21. package/bundles/antigravity-plugin/scripts/caddis_review.py +12 -0
  22. package/bundles/antigravity-plugin/scripts/caddis_tidy.py +152 -51
  23. package/bundles/antigravity-plugin/scripts/caddis_todo.py +314 -18
  24. package/bundles/antigravity-plugin/scripts/schemas/hub-collect.schema.json +117 -1
  25. package/bundles/antigravity-plugin/scripts/schemas/hub-plans.schema.json +117 -1
  26. package/bundles/antigravity-plugin/scripts/setup_project_ai.py +60 -2
  27. package/bundles/antigravity-plugin/scripts/templates/coordinator.md +3 -3
  28. package/bundles/antigravity-plugin/skills/coordinate/SKILL.md +4 -1
  29. package/bundles/antigravity-plugin/skills/cross-review/SKILL.md +6 -0
  30. package/bundles/antigravity-plugin/skills/handoff/SKILL.md +101 -23
  31. package/bundles/antigravity-plugin/skills/implement/SKILL.md +6 -0
  32. package/bundles/antigravity-plugin/skills/park/SKILL.md +7 -2
  33. package/bundles/antigravity-plugin/skills/pr-merge/SKILL.md +1 -0
  34. package/bundles/antigravity-plugin/skills/ship-pr/SKILL.md +1 -0
  35. package/bundles/manifest.json +2 -2
  36. package/dist/cli.js +276 -76
  37. package/dist/export/assets/export-B3cUoxL1.js +150 -0
  38. package/dist/export/assets/export-DQss44R1.css +1 -0
  39. package/dist/export/index.html +2 -2
  40. package/dist/ui/assets/Activity-CvEIJlnE.js +6 -0
  41. package/dist/ui/assets/{Guide-Czn5sK0f.js → Guide-BxS9L55s.js} +1 -1
  42. package/dist/ui/assets/Guide-DTd261-c.css +1 -0
  43. package/dist/ui/assets/RoadmapTab-CqlWs7dJ.js +31 -0
  44. package/dist/ui/assets/index-9pdDzLVp.css +1 -0
  45. package/dist/ui/assets/index-DSxeWPax.js +231 -0
  46. package/dist/ui/index.html +2 -2
  47. package/package.json +1 -1
  48. package/dist/export/assets/export-CMtV-slT.css +0 -1
  49. package/dist/export/assets/export-DtlDFN4L.js +0 -150
  50. package/dist/ui/assets/Activity-BDjet2xd.js +0 -6
  51. package/dist/ui/assets/Guide-D-Zy4cUT.css +0 -1
  52. package/dist/ui/assets/RoadmapTab-Bd8geyQx.js +0 -31
  53. package/dist/ui/assets/index-Bd0Z4jR8.css +0 -1
  54. package/dist/ui/assets/index-CmngQ8Mk.js +0 -231
  55. package/dist/ui/assets/time-D00tu2ZP.js +0 -1
@@ -0,0 +1,231 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Guide-BxS9L55s.js","assets/Guide-DTd261-c.css"])))=>i.map(i=>d[i]);
2
+ var ri={exports:{}},Dr={},oi={exports:{}},te={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var kc;function ih(){if(kc)return te;kc=1;var l=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),$=Symbol.iterator;function C(k){return k===null||typeof k!="object"?null:(k=$&&k[$]||k["@@iterator"],typeof k=="function"?k:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,U={};function M(k,P,ee){this.props=k,this.context=P,this.refs=U,this.updater=ee||O}M.prototype.isReactComponent={},M.prototype.setState=function(k,P){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,P,"setState")},M.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function I(){}I.prototype=M.prototype;function ue(k,P,ee){this.props=k,this.context=P,this.refs=U,this.updater=ee||O}var J=ue.prototype=new I;J.constructor=ue,_(J,M.prototype),J.isPureReactComponent=!0;var L=Array.isArray,ae=Object.prototype.hasOwnProperty,pe={current:null},je={key:!0,ref:!0,__self:!0,__source:!0};function G(k,P,ee){var ne,le={},se=null,he=null;if(P!=null)for(ne in P.ref!==void 0&&(he=P.ref),P.key!==void 0&&(se=""+P.key),P)ae.call(P,ne)&&!je.hasOwnProperty(ne)&&(le[ne]=P[ne]);var ce=arguments.length-2;if(ce===1)le.children=ee;else if(1<ce){for(var ve=Array(ce),Je=0;Je<ce;Je++)ve[Je]=arguments[Je+2];le.children=ve}if(k&&k.defaultProps)for(ne in ce=k.defaultProps,ce)le[ne]===void 0&&(le[ne]=ce[ne]);return{$$typeof:l,type:k,key:se,ref:he,props:le,_owner:pe.current}}function re(k,P){return{$$typeof:l,type:k.type,key:P,ref:k.ref,props:k.props,_owner:k._owner}}function $e(k){return typeof k=="object"&&k!==null&&k.$$typeof===l}function wt(k){var P={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return P[ee]})}var Ve=/\/+/g;function Oe(k,P){return typeof k=="object"&&k!==null&&k.key!=null?wt(""+k.key):P.toString(36)}function dt(k,P,ee,ne,le){var se=typeof k;(se==="undefined"||se==="boolean")&&(k=null);var he=!1;if(k===null)he=!0;else switch(se){case"string":case"number":he=!0;break;case"object":switch(k.$$typeof){case l:case i:he=!0}}if(he)return he=k,le=le(he),k=ne===""?"."+Oe(he,0):ne,L(le)?(ee="",k!=null&&(ee=k.replace(Ve,"$&/")+"/"),dt(le,P,ee,"",function(Je){return Je})):le!=null&&($e(le)&&(le=re(le,ee+(!le.key||he&&he.key===le.key?"":(""+le.key).replace(Ve,"$&/")+"/")+k)),P.push(le)),1;if(he=0,ne=ne===""?".":ne+":",L(k))for(var ce=0;ce<k.length;ce++){se=k[ce];var ve=ne+Oe(se,ce);he+=dt(se,P,ee,ve,le)}else if(ve=C(k),typeof ve=="function")for(k=ve.call(k),ce=0;!(se=k.next()).done;)se=se.value,ve=ne+Oe(se,ce++),he+=dt(se,P,ee,ve,le);else if(se==="object")throw P=String(k),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.");return he}function kt(k,P,ee){if(k==null)return k;var ne=[],le=0;return dt(k,ne,"","",function(se){return P.call(ee,se,le++)}),ne}function qe(k){if(k._status===-1){var P=k._result;P=P(),P.then(function(ee){(k._status===0||k._status===-1)&&(k._status=1,k._result=ee)},function(ee){(k._status===0||k._status===-1)&&(k._status=2,k._result=ee)}),k._status===-1&&(k._status=0,k._result=P)}if(k._status===1)return k._result.default;throw k._result}var Ne={current:null},A={transition:null},b={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:A,ReactCurrentOwner:pe};function W(){throw Error("act(...) is not supported in production builds of React.")}return te.Children={map:kt,forEach:function(k,P,ee){kt(k,function(){P.apply(this,arguments)},ee)},count:function(k){var P=0;return kt(k,function(){P++}),P},toArray:function(k){return kt(k,function(P){return P})||[]},only:function(k){if(!$e(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},te.Component=M,te.Fragment=a,te.Profiler=f,te.PureComponent=ue,te.StrictMode=d,te.Suspense=m,te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b,te.act=W,te.cloneElement=function(k,P,ee){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var ne=_({},k.props),le=k.key,se=k.ref,he=k._owner;if(P!=null){if(P.ref!==void 0&&(se=P.ref,he=pe.current),P.key!==void 0&&(le=""+P.key),k.type&&k.type.defaultProps)var ce=k.type.defaultProps;for(ve in P)ae.call(P,ve)&&!je.hasOwnProperty(ve)&&(ne[ve]=P[ve]===void 0&&ce!==void 0?ce[ve]:P[ve])}var ve=arguments.length-2;if(ve===1)ne.children=ee;else if(1<ve){ce=Array(ve);for(var Je=0;Je<ve;Je++)ce[Je]=arguments[Je+2];ne.children=ce}return{$$typeof:l,type:k.type,key:le,ref:se,props:ne,_owner:he}},te.createContext=function(k){return k={$$typeof:g,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},te.createElement=G,te.createFactory=function(k){var P=G.bind(null,k);return P.type=k,P},te.createRef=function(){return{current:null}},te.forwardRef=function(k){return{$$typeof:w,render:k}},te.isValidElement=$e,te.lazy=function(k){return{$$typeof:j,_payload:{_status:-1,_result:k},_init:qe}},te.memo=function(k,P){return{$$typeof:E,type:k,compare:P===void 0?null:P}},te.startTransition=function(k){var P=A.transition;A.transition={};try{k()}finally{A.transition=P}},te.unstable_act=W,te.useCallback=function(k,P){return Ne.current.useCallback(k,P)},te.useContext=function(k){return Ne.current.useContext(k)},te.useDebugValue=function(){},te.useDeferredValue=function(k){return Ne.current.useDeferredValue(k)},te.useEffect=function(k,P){return Ne.current.useEffect(k,P)},te.useId=function(){return Ne.current.useId()},te.useImperativeHandle=function(k,P,ee){return Ne.current.useImperativeHandle(k,P,ee)},te.useInsertionEffect=function(k,P){return Ne.current.useInsertionEffect(k,P)},te.useLayoutEffect=function(k,P){return Ne.current.useLayoutEffect(k,P)},te.useMemo=function(k,P){return Ne.current.useMemo(k,P)},te.useReducer=function(k,P,ee){return Ne.current.useReducer(k,P,ee)},te.useRef=function(k){return Ne.current.useRef(k)},te.useState=function(k){return Ne.current.useState(k)},te.useSyncExternalStore=function(k,P,ee){return Ne.current.useSyncExternalStore(k,P,ee)},te.useTransition=function(){return Ne.current.useTransition()},te.version="18.3.1",te}var xc;function yi(){return xc||(xc=1,oi.exports=ih()),oi.exports}/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Sc;function ah(){if(Sc)return Dr;Sc=1;var l=yi(),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,f=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function g(w,m,E){var j,$={},C=null,O=null;E!==void 0&&(C=""+E),m.key!==void 0&&(C=""+m.key),m.ref!==void 0&&(O=m.ref);for(j in m)d.call(m,j)&&!p.hasOwnProperty(j)&&($[j]=m[j]);if(w&&w.defaultProps)for(j in m=w.defaultProps,m)$[j]===void 0&&($[j]=m[j]);return{$$typeof:i,type:w,key:C,ref:O,props:$,_owner:f.current}}return Dr.Fragment=a,Dr.jsx=g,Dr.jsxs=g,Dr}var Nc;function uh(){return Nc||(Nc=1,ri.exports=ah()),ri.exports}var c=uh(),B=yi(),Zo={},li={exports:{}},Xe={},si={exports:{}},ii={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var _c;function ch(){return _c||(_c=1,(function(l){function i(A,b){var W=A.length;A.push(b);e:for(;0<W;){var k=W-1>>>1,P=A[k];if(0<f(P,b))A[k]=b,A[W]=P,W=k;else break e}}function a(A){return A.length===0?null:A[0]}function d(A){if(A.length===0)return null;var b=A[0],W=A.pop();if(W!==b){A[0]=W;e:for(var k=0,P=A.length,ee=P>>>1;k<ee;){var ne=2*(k+1)-1,le=A[ne],se=ne+1,he=A[se];if(0>f(le,W))se<P&&0>f(he,le)?(A[k]=he,A[se]=W,k=se):(A[k]=le,A[ne]=W,k=ne);else if(se<P&&0>f(he,W))A[k]=he,A[se]=W,k=se;else break e}}return b}function f(A,b){var W=A.sortIndex-b.sortIndex;return W!==0?W:A.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;l.unstable_now=function(){return p.now()}}else{var g=Date,w=g.now();l.unstable_now=function(){return g.now()-w}}var m=[],E=[],j=1,$=null,C=3,O=!1,_=!1,U=!1,M=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function J(A){for(var b=a(E);b!==null;){if(b.callback===null)d(E);else if(b.startTime<=A)d(E),b.sortIndex=b.expirationTime,i(m,b);else break;b=a(E)}}function L(A){if(U=!1,J(A),!_)if(a(m)!==null)_=!0,qe(ae);else{var b=a(E);b!==null&&Ne(L,b.startTime-A)}}function ae(A,b){_=!1,U&&(U=!1,I(G),G=-1),O=!0;var W=C;try{for(J(b),$=a(m);$!==null&&(!($.expirationTime>b)||A&&!wt());){var k=$.callback;if(typeof k=="function"){$.callback=null,C=$.priorityLevel;var P=k($.expirationTime<=b);b=l.unstable_now(),typeof P=="function"?$.callback=P:$===a(m)&&d(m),J(b)}else d(m);$=a(m)}if($!==null)var ee=!0;else{var ne=a(E);ne!==null&&Ne(L,ne.startTime-b),ee=!1}return ee}finally{$=null,C=W,O=!1}}var pe=!1,je=null,G=-1,re=5,$e=-1;function wt(){return!(l.unstable_now()-$e<re)}function Ve(){if(je!==null){var A=l.unstable_now();$e=A;var b=!0;try{b=je(!0,A)}finally{b?Oe():(pe=!1,je=null)}}else pe=!1}var Oe;if(typeof ue=="function")Oe=function(){ue(Ve)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,kt=dt.port2;dt.port1.onmessage=Ve,Oe=function(){kt.postMessage(null)}}else Oe=function(){M(Ve,0)};function qe(A){je=A,pe||(pe=!0,Oe())}function Ne(A,b){G=M(function(){A(l.unstable_now())},b)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(A){A.callback=null},l.unstable_continueExecution=function(){_||O||(_=!0,qe(ae))},l.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<A?Math.floor(1e3/A):5},l.unstable_getCurrentPriorityLevel=function(){return C},l.unstable_getFirstCallbackNode=function(){return a(m)},l.unstable_next=function(A){switch(C){case 1:case 2:case 3:var b=3;break;default:b=C}var W=C;C=b;try{return A()}finally{C=W}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(A,b){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var W=C;C=A;try{return b()}finally{C=W}},l.unstable_scheduleCallback=function(A,b,W){var k=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?k+W:k):W=k,A){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=W+P,A={id:j++,callback:b,priorityLevel:A,startTime:W,expirationTime:P,sortIndex:-1},W>k?(A.sortIndex=W,i(E,A),a(m)===null&&A===a(E)&&(U?(I(G),G=-1):U=!0,Ne(L,W-k))):(A.sortIndex=P,i(m,A),_||O||(_=!0,qe(ae))),A},l.unstable_shouldYield=wt,l.unstable_wrapCallback=function(A){var b=C;return function(){var W=C;C=b;try{return A.apply(this,arguments)}finally{C=W}}}})(ii)),ii}var jc;function dh(){return jc||(jc=1,si.exports=ch()),si.exports}/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var Ec;function fh(){if(Ec)return Xe;Ec=1;var l=yi(),i=dh();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var d=new Set,f={};function p(e,t){g(e,t),g(e+"Capture",t)}function g(e,t){for(f[e]=t,e=0;e<t.length;e++)d.add(t[e])}var w=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,E=/^[: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]*$/,j={},$={};function C(e){return m.call($,e)?!0:m.call(j,e)?!1:E.test(e)?$[e]=!0:(j[e]=!0,!1)}function O(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,n,r){if(t===null||typeof t>"u"||O(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function U(e,t,n,r,o,s,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=u}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new U(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new U(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new U(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new U(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new U(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new U(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new U(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new U(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new U(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function ue(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I,ue);M[t]=new U(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I,ue);M[t]=new U(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I,ue);M[t]=new U(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new U(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new U(e,1,!1,e.toLowerCase(),null,!0,!0)});function J(e,t,n,r){var o=M.hasOwnProperty(t)?M[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,n,o,r)&&(n=null),r||o===null?C(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var L=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ae=Symbol.for("react.element"),pe=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),$e=Symbol.for("react.provider"),wt=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),A=Symbol.iterator;function b(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,k;function P(e){if(k===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
35
+ `+k+e}var ee=!1;function ne(e,t){if(!e||ee)return"";ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(N){var r=N}Reflect.construct(e,[],t)}else{try{t.call()}catch(N){r=N}e.call(t.prototype)}else{try{throw Error()}catch(N){r=N}e()}}catch(N){if(N&&r&&typeof N.stack=="string"){for(var o=N.stack.split(`
36
+ `),s=r.stack.split(`
37
+ `),u=o.length-1,h=s.length-1;1<=u&&0<=h&&o[u]!==s[h];)h--;for(;1<=u&&0<=h;u--,h--)if(o[u]!==s[h]){if(u!==1||h!==1)do if(u--,h--,0>h||o[u]!==s[h]){var y=`
38
+ `+o[u].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=u&&0<=h);break}}}finally{ee=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P(e):""}function le(e){switch(e.tag){case 5:return P(e.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 2:case 15:return e=ne(e.type,!1),e;case 11:return e=ne(e.type.render,!1),e;case 1:return e=ne(e.type,!0),e;default:return""}}function se(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case je:return"Fragment";case pe:return"Portal";case re:return"Profiler";case G:return"StrictMode";case Oe:return"Suspense";case dt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wt:return(e.displayName||"Context")+".Consumer";case $e:return(e._context.displayName||"Context")+".Provider";case Ve:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kt:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function he(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return se(t);case 8:return t===G?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(u){r=""+u,s.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hr(e){e._valueTracker||(e._valueTracker=Je(e))}function Ei(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ve(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Br(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}}function cl(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ci(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ce(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $i(e,t){t=t.checked,t!=null&&J(e,"checked",t,!1)}function dl(e,t){$i(e,t);var n=ce(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fl(e,t.type,n):t.hasOwnProperty("defaultValue")&&fl(e,t.type,ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ti(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fl(e,t,n){(t!=="number"||Br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gn=Array.isArray;function Sn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ce(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function pl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(Gn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ce(n)}}function zi(e,t){var n=ce(t.value),r=ce(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ri(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Li(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function hl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Li(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wr,Di=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wr=Wr||document.createElement("div"),Wr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},df=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){df.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function Oi(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xn.hasOwnProperty(e)&&Xn[e]?(""+t).trim():t+"px"}function Mi(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Oi(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ff=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ml(e,t){if(t){if(ff[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function gl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 yl=null;function vl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wl=null,Nn=null,_n=null;function Ii(e){if(e=wr(e)){if(typeof wl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=po(t),wl(e.stateNode,e.type,t))}}function Ai(e){Nn?_n?_n.push(e):_n=[e]:Nn=e}function Fi(){if(Nn){var e=Nn,t=_n;if(_n=Nn=null,Ii(e),t)for(e=0;e<t.length;e++)Ii(t[e])}}function Ui(e,t){return e(t)}function Hi(){}var kl=!1;function Bi(e,t,n){if(kl)return e(t,n);kl=!0;try{return Ui(e,t,n)}finally{kl=!1,(Nn!==null||_n!==null)&&(Hi(),Fi())}}function Zn(e,t){var n=e.stateNode;if(n===null)return null;var r=po(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(a(231,t,typeof n));return n}var xl=!1;if(w)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){xl=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{xl=!1}function pf(e,t,n,r,o,s,u,h,y){var N=Array.prototype.slice.call(arguments,3);try{t.apply(n,N)}catch(z){this.onError(z)}}var er=!1,Vr=null,qr=!1,Sl=null,hf={onError:function(e){er=!0,Vr=e}};function mf(e,t,n,r,o,s,u,h,y){er=!1,Vr=null,pf.apply(hf,arguments)}function gf(e,t,n,r,o,s,u,h,y){if(mf.apply(this,arguments),er){if(er){var N=Vr;er=!1,Vr=null}else throw Error(a(198));qr||(qr=!0,Sl=N)}}function ln(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Wi(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 Vi(e){if(ln(e)!==e)throw Error(a(188))}function yf(e){var t=e.alternate;if(!t){if(t=ln(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Vi(o),e;if(s===r)return Vi(o),t;s=s.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=s;else{for(var u=!1,h=o.child;h;){if(h===n){u=!0,n=o,r=s;break}if(h===r){u=!0,r=o,n=s;break}h=h.sibling}if(!u){for(h=s.child;h;){if(h===n){u=!0,n=s,r=o;break}if(h===r){u=!0,r=s,n=o;break}h=h.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function qi(e){return e=yf(e),e!==null?Qi(e):null}function Qi(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qi(e);if(t!==null)return t;e=e.sibling}return null}var Ki=i.unstable_scheduleCallback,Yi=i.unstable_cancelCallback,vf=i.unstable_shouldYield,wf=i.unstable_requestPaint,Ee=i.unstable_now,kf=i.unstable_getCurrentPriorityLevel,Nl=i.unstable_ImmediatePriority,Gi=i.unstable_UserBlockingPriority,Qr=i.unstable_NormalPriority,xf=i.unstable_LowPriority,bi=i.unstable_IdlePriority,Kr=null,xt=null;function Sf(e){if(xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Kr,e,void 0,(e.current.flags&128)===128)}catch{}}var ft=Math.clz32?Math.clz32:jf,Nf=Math.log,_f=Math.LN2;function jf(e){return e>>>=0,e===0?32:31-(Nf(e)/_f|0)|0}var Yr=64,Gr=4194304;function tr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,u=n&268435455;if(u!==0){var h=u&~o;h!==0?r=tr(h):(s&=u,s!==0&&(r=tr(s)))}else u=n&~o,u!==0?r=tr(u):s!==0&&(r=tr(s));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ft(t),o=1<<n,r|=e[n],t&=~o;return r}function Ef(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-ft(s),h=1<<u,y=o[u];y===-1?((h&n)===0||(h&r)!==0)&&(o[u]=Ef(h,t)):y<=t&&(e.expiredLanes|=h),s&=~h}}function _l(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Xi(){var e=Yr;return Yr<<=1,(Yr&4194240)===0&&(Yr=64),e}function jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function $f(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ft(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function El(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ft(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var de=0;function Zi(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ji,Cl,ea,ta,na,$l=!1,Xr=[],It=null,At=null,Ft=null,rr=new Map,or=new Map,Ut=[],Tf="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 submit".split(" ");function ra(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":rr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function lr(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=wr(t),t!==null&&Cl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Pf(e,t,n,r,o){switch(t){case"focusin":return It=lr(It,e,t,n,r,o),!0;case"dragenter":return At=lr(At,e,t,n,r,o),!0;case"mouseover":return Ft=lr(Ft,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return rr.set(s,lr(rr.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,or.set(s,lr(or.get(s)||null,e,t,n,r,o)),!0}return!1}function oa(e){var t=sn(e.target);if(t!==null){var n=ln(t);if(n!==null){if(t=n.tag,t===13){if(t=Wi(n),t!==null){e.blockedOn=t,na(e.priority,function(){ea(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yl=r,n.target.dispatchEvent(r),yl=null}else return t=wr(n),t!==null&&Cl(t),e.blockedOn=n,!1;t.shift()}return!0}function la(e,t,n){Zr(e)&&n.delete(t)}function zf(){$l=!1,It!==null&&Zr(It)&&(It=null),At!==null&&Zr(At)&&(At=null),Ft!==null&&Zr(Ft)&&(Ft=null),rr.forEach(la),or.forEach(la)}function sr(e,t){e.blockedOn===t&&(e.blockedOn=null,$l||($l=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zf)))}function ir(e){function t(o){return sr(o,e)}if(0<Xr.length){sr(Xr[0],e);for(var n=1;n<Xr.length;n++){var r=Xr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(It!==null&&sr(It,e),At!==null&&sr(At,e),Ft!==null&&sr(Ft,e),rr.forEach(t),or.forEach(t),n=0;n<Ut.length;n++)r=Ut[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ut.length&&(n=Ut[0],n.blockedOn===null);)oa(n),n.blockedOn===null&&Ut.shift()}var jn=L.ReactCurrentBatchConfig,Jr=!0;function Rf(e,t,n,r){var o=de,s=jn.transition;jn.transition=null;try{de=1,Tl(e,t,n,r)}finally{de=o,jn.transition=s}}function Lf(e,t,n,r){var o=de,s=jn.transition;jn.transition=null;try{de=4,Tl(e,t,n,r)}finally{de=o,jn.transition=s}}function Tl(e,t,n,r){if(Jr){var o=Pl(e,t,n,r);if(o===null)Kl(e,t,r,eo,n),ra(e,r);else if(Pf(o,e,t,n,r))r.stopPropagation();else if(ra(e,r),t&4&&-1<Tf.indexOf(e)){for(;o!==null;){var s=wr(o);if(s!==null&&Ji(s),s=Pl(e,t,n,r),s===null&&Kl(e,t,r,eo,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Kl(e,t,r,null,n)}}var eo=null;function Pl(e,t,n,r){if(eo=null,e=vl(r),e=sn(e),e!==null)if(t=ln(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Wi(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return eo=e,null}function sa(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(kf()){case Nl:return 1;case Gi:return 4;case Qr:case xf:return 16;case bi:return 536870912;default:return 16}default:return 16}}var Ht=null,zl=null,to=null;function ia(){if(to)return to;var e,t=zl,n=t.length,r,o="value"in Ht?Ht.value:Ht.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===o[s-r];r++);return to=o.slice(e,1<r?1-r:void 0)}function no(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 ro(){return!0}function aa(){return!1}function et(e){function t(n,r,o,s,u){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=u,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ro:aa,this.isPropagationStopped=aa,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rl=et(En),ar=W({},En,{view:0,detail:0}),Df=et(ar),Ll,Dl,ur,oo=W({},ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ml,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!==ur&&(ur&&e.type==="mousemove"?(Ll=e.screenX-ur.screenX,Dl=e.screenY-ur.screenY):Dl=Ll=0,ur=e),Ll)},movementY:function(e){return"movementY"in e?e.movementY:Dl}}),ua=et(oo),Of=W({},oo,{dataTransfer:0}),Mf=et(Of),If=W({},ar,{relatedTarget:0}),Ol=et(If),Af=W({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),Ff=et(Af),Uf=W({},En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hf=et(Uf),Bf=W({},En,{data:0}),ca=et(Bf),Wf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vf={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"},qf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qf[e])?!!t[e]:!1}function Ml(){return Qf}var Kf=W({},ar,{key:function(e){if(e.key){var t=Wf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=no(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ml,charCode:function(e){return e.type==="keypress"?no(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?no(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yf=et(Kf),Gf=W({},oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),da=et(Gf),bf=W({},ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ml}),Xf=et(bf),Zf=W({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jf=et(Zf),ep=W({},oo,{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}),tp=et(ep),np=[9,13,27,32],Il=w&&"CompositionEvent"in window,cr=null;w&&"documentMode"in document&&(cr=document.documentMode);var rp=w&&"TextEvent"in window&&!cr,fa=w&&(!Il||cr&&8<cr&&11>=cr),pa=" ",ha=!1;function ma(e,t){switch(e){case"keyup":return np.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ga(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function op(e,t){switch(e){case"compositionend":return ga(t);case"keypress":return t.which!==32?null:(ha=!0,pa);case"textInput":return e=t.data,e===pa&&ha?null:e;default:return null}}function lp(e,t){if(Cn)return e==="compositionend"||!Il&&ma(e,t)?(e=ia(),to=zl=Ht=null,Cn=!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 fa&&t.locale!=="ko"?null:t.data;default:return null}}var sp={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 ya(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sp[e.type]:t==="textarea"}function va(e,t,n,r){Ai(r),t=uo(t,"onChange"),0<t.length&&(n=new Rl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var dr=null,fr=null;function ip(e){Ma(e,0)}function lo(e){var t=Rn(e);if(Ei(t))return e}function ap(e,t){if(e==="change")return t}var wa=!1;if(w){var Al;if(w){var Fl="oninput"in document;if(!Fl){var ka=document.createElement("div");ka.setAttribute("oninput","return;"),Fl=typeof ka.oninput=="function"}Al=Fl}else Al=!1;wa=Al&&(!document.documentMode||9<document.documentMode)}function xa(){dr&&(dr.detachEvent("onpropertychange",Sa),fr=dr=null)}function Sa(e){if(e.propertyName==="value"&&lo(fr)){var t=[];va(t,fr,e,vl(e)),Bi(ip,t)}}function up(e,t,n){e==="focusin"?(xa(),dr=t,fr=n,dr.attachEvent("onpropertychange",Sa)):e==="focusout"&&xa()}function cp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lo(fr)}function dp(e,t){if(e==="click")return lo(t)}function fp(e,t){if(e==="input"||e==="change")return lo(t)}function pp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:pp;function pr(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!m.call(t,o)||!pt(e[o],t[o]))return!1}return!0}function Na(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _a(e,t){var n=Na(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Na(n)}}function ja(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ja(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ea(){for(var e=window,t=Br();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Br(e.document)}return t}function Ul(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")}function hp(e){var t=Ea(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ja(n.ownerDocument.documentElement,n)){if(r!==null&&Ul(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=_a(n,s);var u=_a(n,r);o&&u&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mp=w&&"documentMode"in document&&11>=document.documentMode,$n=null,Hl=null,hr=null,Bl=!1;function Ca(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bl||$n==null||$n!==Br(r)||(r=$n,"selectionStart"in r&&Ul(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hr&&pr(hr,r)||(hr=r,r=uo(Hl,"onSelect"),0<r.length&&(t=new Rl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$n)))}function so(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},Wl={},$a={};w&&($a=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function io(e){if(Wl[e])return Wl[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $a)return Wl[e]=t[n];return e}var Ta=io("animationend"),Pa=io("animationiteration"),za=io("animationstart"),Ra=io("transitionend"),La=new Map,Da="abort auxClick 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(" ");function Bt(e,t){La.set(e,t),p(t,[e])}for(var Vl=0;Vl<Da.length;Vl++){var ql=Da[Vl],gp=ql.toLowerCase(),yp=ql[0].toUpperCase()+ql.slice(1);Bt(gp,"on"+yp)}Bt(Ta,"onAnimationEnd"),Bt(Pa,"onAnimationIteration"),Bt(za,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Ra,"onTransitionEnd"),g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mr="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(" "),vp=new Set("cancel close invalid load scroll toggle".split(" ").concat(mr));function Oa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,gf(r,t,void 0,e),e.currentTarget=null}function Ma(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var u=r.length-1;0<=u;u--){var h=r[u],y=h.instance,N=h.currentTarget;if(h=h.listener,y!==s&&o.isPropagationStopped())break e;Oa(o,h,N),s=y}else for(u=0;u<r.length;u++){if(h=r[u],y=h.instance,N=h.currentTarget,h=h.listener,y!==s&&o.isPropagationStopped())break e;Oa(o,h,N),s=y}}}if(qr)throw e=Sl,qr=!1,Sl=null,e}function ge(e,t){var n=t[Jl];n===void 0&&(n=t[Jl]=new Set);var r=e+"__bubble";n.has(r)||(Ia(t,e,2,!1),n.add(r))}function Ql(e,t,n){var r=0;t&&(r|=4),Ia(n,e,r,t)}var ao="_reactListening"+Math.random().toString(36).slice(2);function gr(e){if(!e[ao]){e[ao]=!0,d.forEach(function(n){n!=="selectionchange"&&(vp.has(n)||Ql(n,!1,e),Ql(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ao]||(t[ao]=!0,Ql("selectionchange",!1,t))}}function Ia(e,t,n,r){switch(sa(t)){case 1:var o=Rf;break;case 4:o=Lf;break;default:o=Tl}n=o.bind(null,t,n,e),o=void 0,!xl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Kl(e,t,n,r,o){var s=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var h=r.stateNode.containerInfo;if(h===o||h.nodeType===8&&h.parentNode===o)break;if(u===4)for(u=r.return;u!==null;){var y=u.tag;if((y===3||y===4)&&(y=u.stateNode.containerInfo,y===o||y.nodeType===8&&y.parentNode===o))return;u=u.return}for(;h!==null;){if(u=sn(h),u===null)return;if(y=u.tag,y===5||y===6){r=s=u;continue e}h=h.parentNode}}r=r.return}Bi(function(){var N=s,z=vl(n),R=[];e:{var T=La.get(e);if(T!==void 0){var F=Rl,V=e;switch(e){case"keypress":if(no(n)===0)break e;case"keydown":case"keyup":F=Yf;break;case"focusin":V="focus",F=Ol;break;case"focusout":V="blur",F=Ol;break;case"beforeblur":case"afterblur":F=Ol;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=ua;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Mf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=Xf;break;case Ta:case Pa:case za:F=Ff;break;case Ra:F=Jf;break;case"scroll":F=Df;break;case"wheel":F=tp;break;case"copy":case"cut":case"paste":F=Hf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=da}var q=(t&4)!==0,Ce=!q&&e==="scroll",x=q?T!==null?T+"Capture":null:T;q=[];for(var v=N,S;v!==null;){S=v;var D=S.stateNode;if(S.tag===5&&D!==null&&(S=D,x!==null&&(D=Zn(v,x),D!=null&&q.push(yr(v,D,S)))),Ce)break;v=v.return}0<q.length&&(T=new F(T,V,null,n,z),R.push({event:T,listeners:q}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",T&&n!==yl&&(V=n.relatedTarget||n.fromElement)&&(sn(V)||V[$t]))break e;if((F||T)&&(T=z.window===z?z:(T=z.ownerDocument)?T.defaultView||T.parentWindow:window,F?(V=n.relatedTarget||n.toElement,F=N,V=V?sn(V):null,V!==null&&(Ce=ln(V),V!==Ce||V.tag!==5&&V.tag!==6)&&(V=null)):(F=null,V=N),F!==V)){if(q=ua,D="onMouseLeave",x="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(q=da,D="onPointerLeave",x="onPointerEnter",v="pointer"),Ce=F==null?T:Rn(F),S=V==null?T:Rn(V),T=new q(D,v+"leave",F,n,z),T.target=Ce,T.relatedTarget=S,D=null,sn(z)===N&&(q=new q(x,v+"enter",V,n,z),q.target=S,q.relatedTarget=Ce,D=q),Ce=D,F&&V)t:{for(q=F,x=V,v=0,S=q;S;S=Pn(S))v++;for(S=0,D=x;D;D=Pn(D))S++;for(;0<v-S;)q=Pn(q),v--;for(;0<S-v;)x=Pn(x),S--;for(;v--;){if(q===x||x!==null&&q===x.alternate)break t;q=Pn(q),x=Pn(x)}q=null}else q=null;F!==null&&Aa(R,T,F,q,!1),V!==null&&Ce!==null&&Aa(R,Ce,V,q,!0)}}e:{if(T=N?Rn(N):window,F=T.nodeName&&T.nodeName.toLowerCase(),F==="select"||F==="input"&&T.type==="file")var Q=ap;else if(ya(T))if(wa)Q=fp;else{Q=cp;var K=up}else(F=T.nodeName)&&F.toLowerCase()==="input"&&(T.type==="checkbox"||T.type==="radio")&&(Q=dp);if(Q&&(Q=Q(e,N))){va(R,Q,n,z);break e}K&&K(e,T,N),e==="focusout"&&(K=T._wrapperState)&&K.controlled&&T.type==="number"&&fl(T,"number",T.value)}switch(K=N?Rn(N):window,e){case"focusin":(ya(K)||K.contentEditable==="true")&&($n=K,Hl=N,hr=null);break;case"focusout":hr=Hl=$n=null;break;case"mousedown":Bl=!0;break;case"contextmenu":case"mouseup":case"dragend":Bl=!1,Ca(R,n,z);break;case"selectionchange":if(mp)break;case"keydown":case"keyup":Ca(R,n,z)}var Y;if(Il)e:{switch(e){case"compositionstart":var X="onCompositionStart";break e;case"compositionend":X="onCompositionEnd";break e;case"compositionupdate":X="onCompositionUpdate";break e}X=void 0}else Cn?ma(e,n)&&(X="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(X="onCompositionStart");X&&(fa&&n.locale!=="ko"&&(Cn||X!=="onCompositionStart"?X==="onCompositionEnd"&&Cn&&(Y=ia()):(Ht=z,zl="value"in Ht?Ht.value:Ht.textContent,Cn=!0)),K=uo(N,X),0<K.length&&(X=new ca(X,e,null,n,z),R.push({event:X,listeners:K}),Y?X.data=Y:(Y=ga(n),Y!==null&&(X.data=Y)))),(Y=rp?op(e,n):lp(e,n))&&(N=uo(N,"onBeforeInput"),0<N.length&&(z=new ca("onBeforeInput","beforeinput",null,n,z),R.push({event:z,listeners:N}),z.data=Y))}Ma(R,t)})}function yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Zn(e,n),s!=null&&r.unshift(yr(e,s,o)),s=Zn(e,t),s!=null&&r.push(yr(e,s,o))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Aa(e,t,n,r,o){for(var s=t._reactName,u=[];n!==null&&n!==r;){var h=n,y=h.alternate,N=h.stateNode;if(y!==null&&y===r)break;h.tag===5&&N!==null&&(h=N,o?(y=Zn(n,s),y!=null&&u.unshift(yr(n,y,h))):o||(y=Zn(n,s),y!=null&&u.push(yr(n,y,h)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var wp=/\r\n?/g,kp=/\u0000|\uFFFD/g;function Fa(e){return(typeof e=="string"?e:""+e).replace(wp,`
39
+ `).replace(kp,"")}function co(e,t,n){if(t=Fa(t),Fa(e)!==t&&n)throw Error(a(425))}function fo(){}var Yl=null,Gl=null;function bl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xl=typeof setTimeout=="function"?setTimeout:void 0,xp=typeof clearTimeout=="function"?clearTimeout:void 0,Ua=typeof Promise=="function"?Promise:void 0,Sp=typeof queueMicrotask=="function"?queueMicrotask:typeof Ua<"u"?function(e){return Ua.resolve(null).then(e).catch(Np)}:Xl;function Np(e){setTimeout(function(){throw e})}function Zl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ir(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ir(t)}function Wt(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==="$?")break;if(t==="/$")return null}}return e}function Ha(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zn=Math.random().toString(36).slice(2),St="__reactFiber$"+zn,vr="__reactProps$"+zn,$t="__reactContainer$"+zn,Jl="__reactEvents$"+zn,_p="__reactListeners$"+zn,jp="__reactHandles$"+zn;function sn(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ha(e);e!==null;){if(n=e[St])return n;e=Ha(e)}return t}e=n,n=e.parentNode}return null}function wr(e){return e=e[St]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function po(e){return e[vr]||null}var es=[],Ln=-1;function Vt(e){return{current:e}}function ye(e){0>Ln||(e.current=es[Ln],es[Ln]=null,Ln--)}function me(e,t){Ln++,es[Ln]=e.current,e.current=t}var qt={},Ae=Vt(qt),Qe=Vt(!1),an=qt;function Dn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ke(e){return e=e.childContextTypes,e!=null}function ho(){ye(Qe),ye(Ae)}function Ba(e,t,n){if(Ae.current!==qt)throw Error(a(168));me(Ae,t),me(Qe,n)}function Wa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(a(108,he(e)||"Unknown",o));return W({},n,r)}function mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,an=Ae.current,me(Ae,e),me(Qe,Qe.current),!0}function Va(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Wa(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,ye(Qe),ye(Ae),me(Ae,e)):ye(Qe),me(Qe,n)}var Tt=null,go=!1,ts=!1;function qa(e){Tt===null?Tt=[e]:Tt.push(e)}function Ep(e){go=!0,qa(e)}function Qt(){if(!ts&&Tt!==null){ts=!0;var e=0,t=de;try{var n=Tt;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tt=null,go=!1}catch(o){throw Tt!==null&&(Tt=Tt.slice(e+1)),Ki(Nl,Qt),o}finally{de=t,ts=!1}}return null}var On=[],Mn=0,yo=null,vo=0,lt=[],st=0,un=null,Pt=1,zt="";function cn(e,t){On[Mn++]=vo,On[Mn++]=yo,yo=e,vo=t}function Qa(e,t,n){lt[st++]=Pt,lt[st++]=zt,lt[st++]=un,un=e;var r=Pt;e=zt;var o=32-ft(r)-1;r&=~(1<<o),n+=1;var s=32-ft(t)+o;if(30<s){var u=o-o%5;s=(r&(1<<u)-1).toString(32),r>>=u,o-=u,Pt=1<<32-ft(t)+o|n<<o|r,zt=s+e}else Pt=1<<s|n<<o|r,zt=e}function ns(e){e.return!==null&&(cn(e,1),Qa(e,1,0))}function rs(e){for(;e===yo;)yo=On[--Mn],On[Mn]=null,vo=On[--Mn],On[Mn]=null;for(;e===un;)un=lt[--st],lt[st]=null,zt=lt[--st],lt[st]=null,Pt=lt[--st],lt[st]=null}var tt=null,nt=null,we=!1,ht=null;function Ka(e,t){var n=ct(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ya(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,tt=e,nt=Wt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tt=e,nt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=un!==null?{id:Pt,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,tt=e,nt=null,!0):!1;default:return!1}}function os(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ls(e){if(we){var t=nt;if(t){var n=t;if(!Ya(e,t)){if(os(e))throw Error(a(418));t=Wt(n.nextSibling);var r=tt;t&&Ya(e,t)?Ka(r,n):(e.flags=e.flags&-4097|2,we=!1,tt=e)}}else{if(os(e))throw Error(a(418));e.flags=e.flags&-4097|2,we=!1,tt=e}}}function Ga(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tt=e}function wo(e){if(e!==tt)return!1;if(!we)return Ga(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bl(e.type,e.memoizedProps)),t&&(t=nt)){if(os(e))throw ba(),Error(a(418));for(;t;)Ka(e,t),t=Wt(t.nextSibling)}if(Ga(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nt=Wt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nt=null}}else nt=tt?Wt(e.stateNode.nextSibling):null;return!0}function ba(){for(var e=nt;e;)e=Wt(e.nextSibling)}function In(){nt=tt=null,we=!1}function ss(e){ht===null?ht=[e]:ht.push(e)}var Cp=L.ReactCurrentBatchConfig;function kr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(u){var h=o.refs;u===null?delete h[s]:h[s]=u},t._stringRef=s,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ko(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xa(e){var t=e._init;return t(e._payload)}function Za(e){function t(x,v){if(e){var S=x.deletions;S===null?(x.deletions=[v],x.flags|=16):S.push(v)}}function n(x,v){if(!e)return null;for(;v!==null;)t(x,v),v=v.sibling;return null}function r(x,v){for(x=new Map;v!==null;)v.key!==null?x.set(v.key,v):x.set(v.index,v),v=v.sibling;return x}function o(x,v){return x=en(x,v),x.index=0,x.sibling=null,x}function s(x,v,S){return x.index=S,e?(S=x.alternate,S!==null?(S=S.index,S<v?(x.flags|=2,v):S):(x.flags|=2,v)):(x.flags|=1048576,v)}function u(x){return e&&x.alternate===null&&(x.flags|=2),x}function h(x,v,S,D){return v===null||v.tag!==6?(v=Xs(S,x.mode,D),v.return=x,v):(v=o(v,S),v.return=x,v)}function y(x,v,S,D){var Q=S.type;return Q===je?z(x,v,S.props.children,D,S.key):v!==null&&(v.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===qe&&Xa(Q)===v.type)?(D=o(v,S.props),D.ref=kr(x,v,S),D.return=x,D):(D=Vo(S.type,S.key,S.props,null,x.mode,D),D.ref=kr(x,v,S),D.return=x,D)}function N(x,v,S,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Zs(S,x.mode,D),v.return=x,v):(v=o(v,S.children||[]),v.return=x,v)}function z(x,v,S,D,Q){return v===null||v.tag!==7?(v=vn(S,x.mode,D,Q),v.return=x,v):(v=o(v,S),v.return=x,v)}function R(x,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Xs(""+v,x.mode,S),v.return=x,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ae:return S=Vo(v.type,v.key,v.props,null,x.mode,S),S.ref=kr(x,null,v),S.return=x,S;case pe:return v=Zs(v,x.mode,S),v.return=x,v;case qe:var D=v._init;return R(x,D(v._payload),S)}if(Gn(v)||b(v))return v=vn(v,x.mode,S,null),v.return=x,v;ko(x,v)}return null}function T(x,v,S,D){var Q=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return Q!==null?null:h(x,v,""+S,D);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ae:return S.key===Q?y(x,v,S,D):null;case pe:return S.key===Q?N(x,v,S,D):null;case qe:return Q=S._init,T(x,v,Q(S._payload),D)}if(Gn(S)||b(S))return Q!==null?null:z(x,v,S,D,null);ko(x,S)}return null}function F(x,v,S,D,Q){if(typeof D=="string"&&D!==""||typeof D=="number")return x=x.get(S)||null,h(v,x,""+D,Q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case ae:return x=x.get(D.key===null?S:D.key)||null,y(v,x,D,Q);case pe:return x=x.get(D.key===null?S:D.key)||null,N(v,x,D,Q);case qe:var K=D._init;return F(x,v,S,K(D._payload),Q)}if(Gn(D)||b(D))return x=x.get(S)||null,z(v,x,D,Q,null);ko(v,D)}return null}function V(x,v,S,D){for(var Q=null,K=null,Y=v,X=v=0,De=null;Y!==null&&X<S.length;X++){Y.index>X?(De=Y,Y=null):De=Y.sibling;var ie=T(x,Y,S[X],D);if(ie===null){Y===null&&(Y=De);break}e&&Y&&ie.alternate===null&&t(x,Y),v=s(ie,v,X),K===null?Q=ie:K.sibling=ie,K=ie,Y=De}if(X===S.length)return n(x,Y),we&&cn(x,X),Q;if(Y===null){for(;X<S.length;X++)Y=R(x,S[X],D),Y!==null&&(v=s(Y,v,X),K===null?Q=Y:K.sibling=Y,K=Y);return we&&cn(x,X),Q}for(Y=r(x,Y);X<S.length;X++)De=F(Y,x,X,S[X],D),De!==null&&(e&&De.alternate!==null&&Y.delete(De.key===null?X:De.key),v=s(De,v,X),K===null?Q=De:K.sibling=De,K=De);return e&&Y.forEach(function(tn){return t(x,tn)}),we&&cn(x,X),Q}function q(x,v,S,D){var Q=b(S);if(typeof Q!="function")throw Error(a(150));if(S=Q.call(S),S==null)throw Error(a(151));for(var K=Q=null,Y=v,X=v=0,De=null,ie=S.next();Y!==null&&!ie.done;X++,ie=S.next()){Y.index>X?(De=Y,Y=null):De=Y.sibling;var tn=T(x,Y,ie.value,D);if(tn===null){Y===null&&(Y=De);break}e&&Y&&tn.alternate===null&&t(x,Y),v=s(tn,v,X),K===null?Q=tn:K.sibling=tn,K=tn,Y=De}if(ie.done)return n(x,Y),we&&cn(x,X),Q;if(Y===null){for(;!ie.done;X++,ie=S.next())ie=R(x,ie.value,D),ie!==null&&(v=s(ie,v,X),K===null?Q=ie:K.sibling=ie,K=ie);return we&&cn(x,X),Q}for(Y=r(x,Y);!ie.done;X++,ie=S.next())ie=F(Y,x,X,ie.value,D),ie!==null&&(e&&ie.alternate!==null&&Y.delete(ie.key===null?X:ie.key),v=s(ie,v,X),K===null?Q=ie:K.sibling=ie,K=ie);return e&&Y.forEach(function(sh){return t(x,sh)}),we&&cn(x,X),Q}function Ce(x,v,S,D){if(typeof S=="object"&&S!==null&&S.type===je&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ae:e:{for(var Q=S.key,K=v;K!==null;){if(K.key===Q){if(Q=S.type,Q===je){if(K.tag===7){n(x,K.sibling),v=o(K,S.props.children),v.return=x,x=v;break e}}else if(K.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===qe&&Xa(Q)===K.type){n(x,K.sibling),v=o(K,S.props),v.ref=kr(x,K,S),v.return=x,x=v;break e}n(x,K);break}else t(x,K);K=K.sibling}S.type===je?(v=vn(S.props.children,x.mode,D,S.key),v.return=x,x=v):(D=Vo(S.type,S.key,S.props,null,x.mode,D),D.ref=kr(x,v,S),D.return=x,x=D)}return u(x);case pe:e:{for(K=S.key;v!==null;){if(v.key===K)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(x,v.sibling),v=o(v,S.children||[]),v.return=x,x=v;break e}else{n(x,v);break}else t(x,v);v=v.sibling}v=Zs(S,x.mode,D),v.return=x,x=v}return u(x);case qe:return K=S._init,Ce(x,v,K(S._payload),D)}if(Gn(S))return V(x,v,S,D);if(b(S))return q(x,v,S,D);ko(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(x,v.sibling),v=o(v,S),v.return=x,x=v):(n(x,v),v=Xs(S,x.mode,D),v.return=x,x=v),u(x)):n(x,v)}return Ce}var An=Za(!0),Ja=Za(!1),xo=Vt(null),So=null,Fn=null,is=null;function as(){is=Fn=So=null}function us(e){var t=xo.current;ye(xo),e._currentValue=t}function cs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Un(e,t){So=e,is=Fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ye=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(is!==e)if(e={context:e,memoizedValue:t,next:null},Fn===null){if(So===null)throw Error(a(308));Fn=e,So.dependencies={lanes:0,firstContext:e}}else Fn=Fn.next=e;return t}var dn=null;function ds(e){dn===null?dn=[e]:dn.push(e)}function eu(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ds(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rt(e,r)}function Rt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function fs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(oe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rt(e,n)}return o=r.interleaved,o===null?(t.next=t,ds(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rt(e,n)}function No(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}function nu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=u:s=s.next=u,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _o(e,t,n,r){var o=e.updateQueue;Kt=!1;var s=o.firstBaseUpdate,u=o.lastBaseUpdate,h=o.shared.pending;if(h!==null){o.shared.pending=null;var y=h,N=y.next;y.next=null,u===null?s=N:u.next=N,u=y;var z=e.alternate;z!==null&&(z=z.updateQueue,h=z.lastBaseUpdate,h!==u&&(h===null?z.firstBaseUpdate=N:h.next=N,z.lastBaseUpdate=y))}if(s!==null){var R=o.baseState;u=0,z=N=y=null,h=s;do{var T=h.lane,F=h.eventTime;if((r&T)===T){z!==null&&(z=z.next={eventTime:F,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var V=e,q=h;switch(T=t,F=n,q.tag){case 1:if(V=q.payload,typeof V=="function"){R=V.call(F,R,T);break e}R=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=q.payload,T=typeof V=="function"?V.call(F,R,T):V,T==null)break e;R=W({},R,T);break e;case 2:Kt=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,T=o.effects,T===null?o.effects=[h]:T.push(h))}else F={eventTime:F,lane:T,tag:h.tag,payload:h.payload,callback:h.callback,next:null},z===null?(N=z=F,y=R):z=z.next=F,u|=T;if(h=h.next,h===null){if(h=o.shared.pending,h===null)break;T=h,h=T.next,T.next=null,o.lastBaseUpdate=T,o.shared.pending=null}}while(!0);if(z===null&&(y=R),o.baseState=y,o.firstBaseUpdate=N,o.lastBaseUpdate=z,t=o.shared.interleaved,t!==null){o=t;do u|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);hn|=u,e.lanes=u,e.memoizedState=R}}function ru(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(a(191,o));o.call(r)}}}var xr={},Nt=Vt(xr),Sr=Vt(xr),Nr=Vt(xr);function fn(e){if(e===xr)throw Error(a(174));return e}function ps(e,t){switch(me(Nr,t),me(Sr,e),me(Nt,xr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hl(t,e)}ye(Nt),me(Nt,t)}function Hn(){ye(Nt),ye(Sr),ye(Nr)}function ou(e){fn(Nr.current);var t=fn(Nt.current),n=hl(t,e.type);t!==n&&(me(Sr,e),me(Nt,n))}function hs(e){Sr.current===e&&(ye(Nt),ye(Sr))}var xe=Vt(0);function jo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 ms=[];function gs(){for(var e=0;e<ms.length;e++)ms[e]._workInProgressVersionPrimary=null;ms.length=0}var Eo=L.ReactCurrentDispatcher,ys=L.ReactCurrentBatchConfig,pn=0,Se=null,Pe=null,Re=null,Co=!1,_r=!1,jr=0,$p=0;function Fe(){throw Error(a(321))}function vs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pt(e[n],t[n]))return!1;return!0}function ws(e,t,n,r,o,s){if(pn=s,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?Rp:Lp,e=n(r,o),_r){s=0;do{if(_r=!1,jr=0,25<=s)throw Error(a(301));s+=1,Re=Pe=null,t.updateQueue=null,Eo.current=Dp,e=n(r,o)}while(_r)}if(Eo.current=Po,t=Pe!==null&&Pe.next!==null,pn=0,Re=Pe=Se=null,Co=!1,t)throw Error(a(300));return e}function ks(){var e=jr!==0;return jr=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?Se.memoizedState=Re=e:Re=Re.next=e,Re}function at(){if(Pe===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Re===null?Se.memoizedState:Re.next;if(t!==null)Re=t,Pe=e;else{if(e===null)throw Error(a(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Re===null?Se.memoizedState=Re=e:Re=Re.next=e}return Re}function Er(e,t){return typeof t=="function"?t(e):t}function xs(e){var t=at(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Pe,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var u=o.next;o.next=s.next,s.next=u}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var h=u=null,y=null,N=s;do{var z=N.lane;if((pn&z)===z)y!==null&&(y=y.next={lane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),r=N.hasEagerState?N.eagerState:e(r,N.action);else{var R={lane:z,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};y===null?(h=y=R,u=r):y=y.next=R,Se.lanes|=z,hn|=z}N=N.next}while(N!==null&&N!==s);y===null?u=r:y.next=h,pt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=y,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Se.lanes|=s,hn|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ss(e){var t=at(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var u=o=o.next;do s=e(s,u.action),u=u.next;while(u!==o);pt(s,t.memoizedState)||(Ye=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function lu(){}function su(e,t){var n=Se,r=at(),o=t(),s=!pt(r.memoizedState,o);if(s&&(r.memoizedState=o,Ye=!0),r=r.queue,Ns(uu.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,Cr(9,au.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(a(349));(pn&30)!==0||iu(n,t,o)}return o}function iu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function au(e,t,n,r){t.value=n,t.getSnapshot=r,cu(t)&&du(e)}function uu(e,t,n){return n(function(){cu(t)&&du(e)})}function cu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pt(e,n)}catch{return!0}}function du(e){var t=Rt(e,1);t!==null&&vt(t,e,1,-1)}function fu(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:e},t.queue=e,e=e.dispatch=zp.bind(null,Se,e),[t.memoizedState,e]}function Cr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function pu(){return at().memoizedState}function $o(e,t,n,r){var o=_t();Se.flags|=e,o.memoizedState=Cr(1|t,n,void 0,r===void 0?null:r)}function To(e,t,n,r){var o=at();r=r===void 0?null:r;var s=void 0;if(Pe!==null){var u=Pe.memoizedState;if(s=u.destroy,r!==null&&vs(r,u.deps)){o.memoizedState=Cr(t,n,s,r);return}}Se.flags|=e,o.memoizedState=Cr(1|t,n,s,r)}function hu(e,t){return $o(8390656,8,e,t)}function Ns(e,t){return To(2048,8,e,t)}function mu(e,t){return To(4,2,e,t)}function gu(e,t){return To(4,4,e,t)}function yu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vu(e,t,n){return n=n!=null?n.concat([e]):null,To(4,4,yu.bind(null,t,e),n)}function _s(){}function wu(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ku(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xu(e,t,n){return(pn&21)===0?(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n):(pt(n,t)||(n=Xi(),Se.lanes|=n,hn|=n,e.baseState=!0),t)}function Tp(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=ys.transition;ys.transition={};try{e(!1),t()}finally{de=n,ys.transition=r}}function Su(){return at().memoizedState}function Pp(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Nu(e))_u(t,n);else if(n=eu(e,t,n,r),n!==null){var o=We();vt(n,e,r,o),ju(n,t,r)}}function zp(e,t,n){var r=Zt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nu(e))_u(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var u=t.lastRenderedState,h=s(u,n);if(o.hasEagerState=!0,o.eagerState=h,pt(h,u)){var y=t.interleaved;y===null?(o.next=o,ds(t)):(o.next=y.next,y.next=o),t.interleaved=o;return}}catch{}finally{}n=eu(e,t,o,r),n!==null&&(o=We(),vt(n,e,r,o),ju(n,t,r))}}function Nu(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function _u(e,t){_r=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ju(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}var Po={readContext:it,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Rp={readContext:it,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:hu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$o(4194308,4,yu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){return $o(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Pp.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:fu,useDebugValue:_s,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=fu(!1),t=e[0];return e=Tp.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=_t();if(we){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Le===null)throw Error(a(349));(pn&30)!==0||iu(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,hu(uu.bind(null,r,s,e),[e]),r.flags|=2048,Cr(9,au.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=_t(),t=Le.identifierPrefix;if(we){var n=zt,r=Pt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=$p++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Lp={readContext:it,useCallback:wu,useContext:it,useEffect:Ns,useImperativeHandle:vu,useInsertionEffect:mu,useLayoutEffect:gu,useMemo:ku,useReducer:xs,useRef:pu,useState:function(){return xs(Er)},useDebugValue:_s,useDeferredValue:function(e){var t=at();return xu(t,Pe.memoizedState,e)},useTransition:function(){var e=xs(Er)[0],t=at().memoizedState;return[e,t]},useMutableSource:lu,useSyncExternalStore:su,useId:Su,unstable_isNewReconciler:!1},Dp={readContext:it,useCallback:wu,useContext:it,useEffect:Ns,useImperativeHandle:vu,useInsertionEffect:mu,useLayoutEffect:gu,useMemo:ku,useReducer:Ss,useRef:pu,useState:function(){return Ss(Er)},useDebugValue:_s,useDeferredValue:function(e){var t=at();return Pe===null?t.memoizedState=e:xu(t,Pe.memoizedState,e)},useTransition:function(){var e=Ss(Er)[0],t=at().memoizedState;return[e,t]},useMutableSource:lu,useSyncExternalStore:su,useId:Su,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function js(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zo={isMounted:function(e){return(e=e._reactInternals)?ln(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Lt(r,o);s.payload=t,n!=null&&(s.callback=n),t=Yt(e,s,o),t!==null&&(vt(t,e,o,r),No(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Lt(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Yt(e,s,o),t!==null&&(vt(t,e,o,r),No(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=Zt(e),o=Lt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Yt(e,o,r),t!==null&&(vt(t,e,r,n),No(t,e,r))}};function Eu(e,t,n,r,o,s,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,u):t.prototype&&t.prototype.isPureReactComponent?!pr(n,r)||!pr(o,s):!0}function Cu(e,t,n){var r=!1,o=qt,s=t.contextType;return typeof s=="object"&&s!==null?s=it(s):(o=Ke(t)?an:Ae.current,r=t.contextTypes,s=(r=r!=null)?Dn(e,o):qt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function $u(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function Es(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},fs(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=it(s):(s=Ke(t)?an:Ae.current,o.context=Dn(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(js(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&zo.enqueueReplaceState(o,o.state,null),_o(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Bn(e,t){try{var n="",r=t;do n+=le(r),r=r.return;while(r);var o=n}catch(s){o=`
40
+ Error generating stack: `+s.message+`
41
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Cs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $s(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Op=typeof WeakMap=="function"?WeakMap:Map;function Tu(e,t,n){n=Lt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ao||(Ao=!0,Ws=r),$s(e,t)},n}function Pu(e,t,n){n=Lt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){$s(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){$s(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Op;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Gp.bind(null,e,t,n),t.then(e,e))}function Ru(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Lu(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Lt(-1,1),t.tag=2,Yt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Mp=L.ReactCurrentOwner,Ye=!1;function Be(e,t,n,r){t.child=e===null?Ja(t,null,n,r):An(t,e.child,n,r)}function Du(e,t,n,r,o){n=n.render;var s=t.ref;return Un(t,o),r=ws(e,t,n,r,s,o),n=ks(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Dt(e,t,o)):(we&&n&&ns(t),t.flags|=1,Be(e,t,r,o),t.child)}function Ou(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!bs(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Mu(e,t,s,r,o)):(e=Vo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,(e.lanes&o)===0){var u=s.memoizedProps;if(n=n.compare,n=n!==null?n:pr,n(u,r)&&e.ref===t.ref)return Dt(e,t,o)}return t.flags|=1,e=en(s,r),e.ref=t.ref,e.return=t,t.child=e}function Mu(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(pr(s,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=s,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,Dt(e,t,o)}return Ts(e,t,n,r,o)}function Iu(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(Vn,rt),rt|=n;else{if((n&1073741824)===0)return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(Vn,rt),rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,me(Vn,rt),rt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,me(Vn,rt),rt|=r;return Be(e,t,o,n),t.child}function Au(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,o){var s=Ke(n)?an:Ae.current;return s=Dn(t,s),Un(t,o),n=ws(e,t,n,r,s,o),r=ks(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Dt(e,t,o)):(we&&r&&ns(t),t.flags|=1,Be(e,t,n,o),t.child)}function Fu(e,t,n,r,o){if(Ke(n)){var s=!0;mo(t)}else s=!1;if(Un(t,o),t.stateNode===null)Lo(e,t),Cu(t,n,r),Es(t,n,r,o),r=!0;else if(e===null){var u=t.stateNode,h=t.memoizedProps;u.props=h;var y=u.context,N=n.contextType;typeof N=="object"&&N!==null?N=it(N):(N=Ke(n)?an:Ae.current,N=Dn(t,N));var z=n.getDerivedStateFromProps,R=typeof z=="function"||typeof u.getSnapshotBeforeUpdate=="function";R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==r||y!==N)&&$u(t,u,r,N),Kt=!1;var T=t.memoizedState;u.state=T,_o(t,r,u,o),y=t.memoizedState,h!==r||T!==y||Qe.current||Kt?(typeof z=="function"&&(js(t,n,z,r),y=t.memoizedState),(h=Kt||Eu(t,n,h,r,T,y,N))?(R||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=r,t.memoizedState=y),u.props=r,u.state=y,u.context=N,r=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,tu(e,t),h=t.memoizedProps,N=t.type===t.elementType?h:mt(t.type,h),u.props=N,R=t.pendingProps,T=u.context,y=n.contextType,typeof y=="object"&&y!==null?y=it(y):(y=Ke(n)?an:Ae.current,y=Dn(t,y));var F=n.getDerivedStateFromProps;(z=typeof F=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==R||T!==y)&&$u(t,u,r,y),Kt=!1,T=t.memoizedState,u.state=T,_o(t,r,u,o);var V=t.memoizedState;h!==R||T!==V||Qe.current||Kt?(typeof F=="function"&&(js(t,n,F,r),V=t.memoizedState),(N=Kt||Eu(t,n,N,r,T,V,y)||!1)?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,V,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,V,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=V),u.props=r,u.state=V,u.context=y,r=N):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,s,o)}function Ps(e,t,n,r,o,s){Au(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return o&&Va(t,n,!1),Dt(e,t,s);r=t.stateNode,Mp.current=t;var h=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=An(t,e.child,null,s),t.child=An(t,null,h,s)):Be(e,t,h,s),t.memoizedState=r.state,o&&Va(t,n,!0),t.child}function Uu(e){var t=e.stateNode;t.pendingContext?Ba(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ba(e,t.context,!1),ps(e,t.containerInfo)}function Hu(e,t,n,r,o){return In(),ss(o),t.flags|=256,Be(e,t,n,r),t.child}var zs={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bu(e,t,n){var r=t.pendingProps,o=xe.current,s=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(o&2)!==0),h?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),me(xe,o&1),e===null)return ls(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(u=r.children,e=r.fallback,s?(r=t.mode,s=t.child,u={mode:"hidden",children:u},(r&1)===0&&s!==null?(s.childLanes=0,s.pendingProps=u):s=qo(u,r,0,null),e=vn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=zs,e):Ls(t,u));if(o=e.memoizedState,o!==null&&(h=o.dehydrated,h!==null))return Ip(e,t,u,r,h,o,n);if(s){s=r.fallback,u=t.mode,o=e.child,h=o.sibling;var y={mode:"hidden",children:r.children};return(u&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=y,t.deletions=null):(r=en(o,y),r.subtreeFlags=o.subtreeFlags&14680064),h!==null?s=en(h,s):(s=vn(s,u,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,u=e.child.memoizedState,u=u===null?Rs(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=zs,r}return s=e.child,e=s.sibling,r=en(s,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ls(e,t){return t=qo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ro(e,t,n,r){return r!==null&&ss(r),An(t,e.child,null,n),e=Ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ip(e,t,n,r,o,s,u){if(n)return t.flags&256?(t.flags&=-257,r=Cs(Error(a(422))),Ro(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=qo({mode:"visible",children:r.children},o,0,null),s=vn(s,o,u,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,(t.mode&1)!==0&&An(t,e.child,null,u),t.child.memoizedState=Rs(u),t.memoizedState=zs,s);if((t.mode&1)===0)return Ro(e,t,u,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var h=r.dgst;return r=h,s=Error(a(419)),r=Cs(s,r,void 0),Ro(e,t,u,r)}if(h=(u&e.childLanes)!==0,Ye||h){if(r=Le,r!==null){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|u))!==0?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Rt(e,o),vt(r,e,o,-1))}return Gs(),r=Cs(Error(a(421))),Ro(e,t,u,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=bp.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,nt=Wt(o.nextSibling),tt=t,we=!0,ht=null,e!==null&&(lt[st++]=Pt,lt[st++]=zt,lt[st++]=un,Pt=e.id,zt=e.overflow,un=t),t=Ls(t,r.children),t.flags|=4096,t)}function Wu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cs(e.return,t,n)}function Ds(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Vu(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Be(e,t,r.children,n),r=xe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wu(e,n,t);else if(e.tag===19)Wu(e,n,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}r&=1}if(me(xe,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&jo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ds(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&jo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ds(t,!0,n,null,s);break;case"together":Ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Dt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=en(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=en(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ap(e,t,n){switch(t.tag){case 3:Uu(t),In();break;case 5:ou(t);break;case 1:Ke(t.type)&&mo(t);break;case 4:ps(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;me(xo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(xe,xe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Bu(e,t,n):(me(xe,xe.current&1),e=Dt(e,t,n),e!==null?e.sibling:null);me(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Vu(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),me(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,Iu(e,t,n)}return Dt(e,t,n)}var qu,Os,Qu,Ku;qu=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},Qu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fn(Nt.current);var s=null;switch(n){case"input":o=cl(e,o),r=cl(e,r),s=[];break;case"select":o=W({},o,{value:void 0}),r=W({},r,{value:void 0}),s=[];break;case"textarea":o=pl(e,o),r=pl(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fo)}ml(n,r);var u;n=null;for(N in o)if(!r.hasOwnProperty(N)&&o.hasOwnProperty(N)&&o[N]!=null)if(N==="style"){var h=o[N];for(u in h)h.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(f.hasOwnProperty(N)?s||(s=[]):(s=s||[]).push(N,null));for(N in r){var y=r[N];if(h=o!=null?o[N]:void 0,r.hasOwnProperty(N)&&y!==h&&(y!=null||h!=null))if(N==="style")if(h){for(u in h)!h.hasOwnProperty(u)||y&&y.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in y)y.hasOwnProperty(u)&&h[u]!==y[u]&&(n||(n={}),n[u]=y[u])}else n||(s||(s=[]),s.push(N,n)),n=y;else N==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,h=h?h.__html:void 0,y!=null&&h!==y&&(s=s||[]).push(N,y)):N==="children"?typeof y!="string"&&typeof y!="number"||(s=s||[]).push(N,""+y):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(f.hasOwnProperty(N)?(y!=null&&N==="onScroll"&&ge("scroll",e),s||h===y||(s=[])):(s=s||[]).push(N,y))}n&&(s=s||[]).push("style",n);var N=s;(t.updateQueue=N)&&(t.flags|=4)}},Ku=function(e,t,n,r){n!==r&&(t.flags|=4)};function $r(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fp(e,t,n){var r=t.pendingProps;switch(rs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ke(t.type)&&ho(),Ue(t),null;case 3:return r=t.stateNode,Hn(),ye(Qe),ye(Ae),gs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ht!==null&&(Qs(ht),ht=null))),Os(e,t),Ue(t),null;case 5:hs(t);var o=fn(Nr.current);if(n=t.type,e!==null&&t.stateNode!=null)Qu(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Ue(t),null}if(e=fn(Nt.current),wo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[St]=t,r[vr]=s,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(o=0;o<mr.length;o++)ge(mr[o],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Ci(r,s),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ge("invalid",r);break;case"textarea":Pi(r,s),ge("invalid",r)}ml(n,s),o=null;for(var u in s)if(s.hasOwnProperty(u)){var h=s[u];u==="children"?typeof h=="string"?r.textContent!==h&&(s.suppressHydrationWarning!==!0&&co(r.textContent,h,e),o=["children",h]):typeof h=="number"&&r.textContent!==""+h&&(s.suppressHydrationWarning!==!0&&co(r.textContent,h,e),o=["children",""+h]):f.hasOwnProperty(u)&&h!=null&&u==="onScroll"&&ge("scroll",r)}switch(n){case"input":Hr(r),Ti(r,s,!0);break;case"textarea":Hr(r),Ri(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=fo)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Li(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[St]=t,e[vr]=r,qu(e,t,!1,!1),t.stateNode=e;e:{switch(u=gl(n,r),n){case"dialog":ge("cancel",e),ge("close",e),o=r;break;case"iframe":case"object":case"embed":ge("load",e),o=r;break;case"video":case"audio":for(o=0;o<mr.length;o++)ge(mr[o],e);o=r;break;case"source":ge("error",e),o=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),o=r;break;case"details":ge("toggle",e),o=r;break;case"input":Ci(e,r),o=cl(e,r),ge("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=W({},r,{value:void 0}),ge("invalid",e);break;case"textarea":Pi(e,r),o=pl(e,r),ge("invalid",e);break;default:o=r}ml(n,o),h=o;for(s in h)if(h.hasOwnProperty(s)){var y=h[s];s==="style"?Mi(e,y):s==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&Di(e,y)):s==="children"?typeof y=="string"?(n!=="textarea"||y!=="")&&bn(e,y):typeof y=="number"&&bn(e,""+y):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(f.hasOwnProperty(s)?y!=null&&s==="onScroll"&&ge("scroll",e):y!=null&&J(e,s,y,u))}switch(n){case"input":Hr(e),Ti(e,r,!1);break;case"textarea":Hr(e),Ri(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ce(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Sn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Sn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=fo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ue(t),null;case 6:if(e&&t.stateNode!=null)Ku(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(a(166));if(n=fn(Nr.current),fn(Nt.current),wo(t)){if(r=t.stateNode,n=t.memoizedProps,r[St]=t,(s=r.nodeValue!==n)&&(e=tt,e!==null))switch(e.tag){case 3:co(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&co(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[St]=t,t.stateNode=r}return Ue(t),null;case 13:if(ye(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&nt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ba(),In(),t.flags|=98560,s=!1;else if(s=wo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(a(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(a(317));s[St]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else ht!==null&&(Qs(ht),ht=null),s=!0;if(!s)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(xe.current&1)!==0?ze===0&&(ze=3):Gs())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return Hn(),Os(e,t),e===null&&gr(t.stateNode.containerInfo),Ue(t),null;case 10:return us(t.type._context),Ue(t),null;case 17:return Ke(t.type)&&ho(),Ue(t),null;case 19:if(ye(xe),s=t.memoizedState,s===null)return Ue(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)$r(s,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=jo(e),u!==null){for(t.flags|=128,$r(s,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,u=s.alternate,u===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(xe,xe.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ee()>qn&&(t.flags|=128,r=!0,$r(s,!1),t.lanes=4194304)}else{if(!r)if(e=jo(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!we)return Ue(t),null}else 2*Ee()-s.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,$r(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(n=s.last,n!==null?n.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ee(),t.sibling=null,n=xe.current,me(xe,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Ys(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(rt&1073741824)!==0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Up(e,t){switch(rs(t),t.tag){case 1:return Ke(t.type)&&ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(),ye(Qe),ye(Ae),gs(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return hs(t),null;case 13:if(ye(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(xe),null;case 4:return Hn(),null;case 10:return us(t.type._context),null;case 22:case 23:return Ys(),null;case 24:return null;default:return null}}var Do=!1,He=!1,Hp=typeof WeakSet=="function"?WeakSet:Set,H=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Ms(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Yu=!1;function Bp(e,t){if(Yl=Jr,e=Ea(),Ul(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var u=0,h=-1,y=-1,N=0,z=0,R=e,T=null;t:for(;;){for(var F;R!==n||o!==0&&R.nodeType!==3||(h=u+o),R!==s||r!==0&&R.nodeType!==3||(y=u+r),R.nodeType===3&&(u+=R.nodeValue.length),(F=R.firstChild)!==null;)T=R,R=F;for(;;){if(R===e)break t;if(T===n&&++N===o&&(h=u),T===s&&++z===r&&(y=u),(F=R.nextSibling)!==null)break;R=T,T=R.parentNode}R=F}n=h===-1||y===-1?null:{start:h,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gl={focusedElem:e,selectionRange:n},Jr=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var V=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(V!==null){var q=V.memoizedProps,Ce=V.memoizedState,x=t.stateNode,v=x.getSnapshotBeforeUpdate(t.elementType===t.type?q:mt(t.type,q),Ce);x.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(D){_e(t,t.return,D)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return V=Yu,Yu=!1,V}function Tr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ms(t,n,s)}o=o.next}while(o!==r)}}function Oo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Is(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gu(e){var t=e.alternate;t!==null&&(e.alternate=null,Gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[vr],delete t[Jl],delete t[_p],delete t[jp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bu(e){return e.tag===5||e.tag===3||e.tag===4}function Xu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bu(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.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 As(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fo));else if(r!==4&&(e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function Fs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fs(e,t,n),e=e.sibling;e!==null;)Fs(e,t,n),e=e.sibling}var Me=null,gt=!1;function Gt(e,t,n){for(n=n.child;n!==null;)Zu(e,t,n),n=n.sibling}function Zu(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Kr,n)}catch{}switch(n.tag){case 5:He||Wn(n,t);case 6:var r=Me,o=gt;Me=null,Gt(e,t,n),Me=r,gt=o,Me!==null&&(gt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(gt?(e=Me,n=n.stateNode,e.nodeType===8?Zl(e.parentNode,n):e.nodeType===1&&Zl(e,n),ir(e)):Zl(Me,n.stateNode));break;case 4:r=Me,o=gt,Me=n.stateNode.containerInfo,gt=!0,Gt(e,t,n),Me=r,gt=o;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,u=s.destroy;s=s.tag,u!==void 0&&((s&2)!==0||(s&4)!==0)&&Ms(n,t,u),o=o.next}while(o!==r)}Gt(e,t,n);break;case 1:if(!He&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){_e(n,t,h)}Gt(e,t,n);break;case 21:Gt(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Gt(e,t,n),He=r):Gt(e,t,n);break;default:Gt(e,t,n)}}function Ju(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hp),t.forEach(function(r){var o=Xp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,u=t,h=u;e:for(;h!==null;){switch(h.tag){case 5:Me=h.stateNode,gt=!1;break e;case 3:Me=h.stateNode.containerInfo,gt=!0;break e;case 4:Me=h.stateNode.containerInfo,gt=!0;break e}h=h.return}if(Me===null)throw Error(a(160));Zu(s,u,o),Me=null,gt=!1;var y=o.alternate;y!==null&&(y.return=null),o.return=null}catch(N){_e(o,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ec(t,e),t=t.sibling}function ec(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yt(t,e),jt(e),r&4){try{Tr(3,e,e.return),Oo(3,e)}catch(q){_e(e,e.return,q)}try{Tr(5,e,e.return)}catch(q){_e(e,e.return,q)}}break;case 1:yt(t,e),jt(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(yt(t,e),jt(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var o=e.stateNode;try{bn(o,"")}catch(q){_e(e,e.return,q)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,u=n!==null?n.memoizedProps:s,h=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{h==="input"&&s.type==="radio"&&s.name!=null&&$i(o,s),gl(h,u);var N=gl(h,s);for(u=0;u<y.length;u+=2){var z=y[u],R=y[u+1];z==="style"?Mi(o,R):z==="dangerouslySetInnerHTML"?Di(o,R):z==="children"?bn(o,R):J(o,z,R,N)}switch(h){case"input":dl(o,s);break;case"textarea":zi(o,s);break;case"select":var T=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var F=s.value;F!=null?Sn(o,!!s.multiple,F,!1):T!==!!s.multiple&&(s.defaultValue!=null?Sn(o,!!s.multiple,s.defaultValue,!0):Sn(o,!!s.multiple,s.multiple?[]:"",!1))}o[vr]=s}catch(q){_e(e,e.return,q)}}break;case 6:if(yt(t,e),jt(e),r&4){if(e.stateNode===null)throw Error(a(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(q){_e(e,e.return,q)}}break;case 3:if(yt(t,e),jt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ir(t.containerInfo)}catch(q){_e(e,e.return,q)}break;case 4:yt(t,e),jt(e);break;case 13:yt(t,e),jt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Bs=Ee())),r&4&&Ju(e);break;case 22:if(z=n!==null&&n.memoizedState!==null,e.mode&1?(He=(N=He)||z,yt(t,e),He=N):yt(t,e),jt(e),r&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!z&&(e.mode&1)!==0)for(H=e,z=e.child;z!==null;){for(R=H=z;H!==null;){switch(T=H,F=T.child,T.tag){case 0:case 11:case 14:case 15:Tr(4,T,T.return);break;case 1:Wn(T,T.return);var V=T.stateNode;if(typeof V.componentWillUnmount=="function"){r=T,n=T.return;try{t=r,V.props=t.memoizedProps,V.state=t.memoizedState,V.componentWillUnmount()}catch(q){_e(r,n,q)}}break;case 5:Wn(T,T.return);break;case 22:if(T.memoizedState!==null){rc(R);continue}}F!==null?(F.return=T,H=F):rc(R)}z=z.sibling}e:for(z=null,R=e;;){if(R.tag===5){if(z===null){z=R;try{o=R.stateNode,N?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(h=R.stateNode,y=R.memoizedProps.style,u=y!=null&&y.hasOwnProperty("display")?y.display:null,h.style.display=Oi("display",u))}catch(q){_e(e,e.return,q)}}}else if(R.tag===6){if(z===null)try{R.stateNode.nodeValue=N?"":R.memoizedProps}catch(q){_e(e,e.return,q)}}else if((R.tag!==22&&R.tag!==23||R.memoizedState===null||R===e)&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===e)break e;for(;R.sibling===null;){if(R.return===null||R.return===e)break e;z===R&&(z=null),R=R.return}z===R&&(z=null),R.sibling.return=R.return,R=R.sibling}}break;case 19:yt(t,e),jt(e),r&4&&Ju(e);break;case 21:break;default:yt(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bu(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(bn(o,""),r.flags&=-33);var s=Xu(e);Fs(e,s,o);break;case 3:case 4:var u=r.stateNode.containerInfo,h=Xu(e);As(e,h,u);break;default:throw Error(a(161))}}catch(y){_e(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wp(e,t,n){H=e,tc(e)}function tc(e,t,n){for(var r=(e.mode&1)!==0;H!==null;){var o=H,s=o.child;if(o.tag===22&&r){var u=o.memoizedState!==null||Do;if(!u){var h=o.alternate,y=h!==null&&h.memoizedState!==null||He;h=Do;var N=He;if(Do=u,(He=y)&&!N)for(H=o;H!==null;)u=H,y=u.child,u.tag===22&&u.memoizedState!==null?oc(o):y!==null?(y.return=u,H=y):oc(o);for(;s!==null;)H=s,tc(s),s=s.sibling;H=o,Do=h,He=N}nc(e)}else(o.subtreeFlags&8772)!==0&&s!==null?(s.return=o,H=s):nc(e)}}function nc(e){for(;H!==null;){var t=H;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:He||Oo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!He)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&ru(t,s,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ru(t,u,n)}break;case 5:var h=t.stateNode;if(n===null&&t.flags&4){n=h;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&n.focus();break;case"img":y.src&&(n.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var N=t.alternate;if(N!==null){var z=N.memoizedState;if(z!==null){var R=z.dehydrated;R!==null&&ir(R)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}He||t.flags&512&&Is(t)}catch(T){_e(t,t.return,T)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function rc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function oc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Oo(4,t)}catch(y){_e(t,n,y)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(y){_e(t,o,y)}}var s=t.return;try{Is(t)}catch(y){_e(t,s,y)}break;case 5:var u=t.return;try{Is(t)}catch(y){_e(t,u,y)}}}catch(y){_e(t,t.return,y)}if(t===e){H=null;break}var h=t.sibling;if(h!==null){h.return=t.return,H=h;break}H=t.return}}var Vp=Math.ceil,Mo=L.ReactCurrentDispatcher,Us=L.ReactCurrentOwner,ut=L.ReactCurrentBatchConfig,oe=0,Le=null,Te=null,Ie=0,rt=0,Vn=Vt(0),ze=0,Pr=null,hn=0,Io=0,Hs=0,zr=null,Ge=null,Bs=0,qn=1/0,Ot=null,Ao=!1,Ws=null,bt=null,Fo=!1,Xt=null,Uo=0,Rr=0,Vs=null,Ho=-1,Bo=0;function We(){return(oe&6)!==0?Ee():Ho!==-1?Ho:Ho=Ee()}function Zt(e){return(e.mode&1)===0?1:(oe&2)!==0&&Ie!==0?Ie&-Ie:Cp.transition!==null?(Bo===0&&(Bo=Xi()),Bo):(e=de,e!==0||(e=window.event,e=e===void 0?16:sa(e.type)),e)}function vt(e,t,n,r){if(50<Rr)throw Rr=0,Vs=null,Error(a(185));nr(e,n,r),((oe&2)===0||e!==Le)&&(e===Le&&((oe&2)===0&&(Io|=n),ze===4&&Jt(e,Ie)),be(e,r),n===1&&oe===0&&(t.mode&1)===0&&(qn=Ee()+500,go&&Qt()))}function be(e,t){var n=e.callbackNode;Cf(e,t);var r=br(e,e===Le?Ie:0);if(r===0)n!==null&&Yi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Yi(n),t===1)e.tag===0?Ep(sc.bind(null,e)):qa(sc.bind(null,e)),Sp(function(){(oe&6)===0&&Qt()}),n=null;else{switch(Zi(r)){case 1:n=Nl;break;case 4:n=Gi;break;case 16:n=Qr;break;case 536870912:n=bi;break;default:n=Qr}n=hc(n,lc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lc(e,t){if(Ho=-1,Bo=0,(oe&6)!==0)throw Error(a(327));var n=e.callbackNode;if(Qn()&&e.callbackNode!==n)return null;var r=br(e,e===Le?Ie:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Wo(e,r);else{t=r;var o=oe;oe|=2;var s=ac();(Le!==e||Ie!==t)&&(Ot=null,qn=Ee()+500,gn(e,t));do try{Kp();break}catch(h){ic(e,h)}while(!0);as(),Mo.current=s,oe=o,Te!==null?t=0:(Le=null,Ie=0,t=ze)}if(t!==0){if(t===2&&(o=_l(e),o!==0&&(r=o,t=qs(e,o))),t===1)throw n=Pr,gn(e,0),Jt(e,r),be(e,Ee()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!qp(o)&&(t=Wo(e,r),t===2&&(s=_l(e),s!==0&&(r=s,t=qs(e,s))),t===1))throw n=Pr,gn(e,0),Jt(e,r),be(e,Ee()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:yn(e,Ge,Ot);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Bs+500-Ee(),10<t)){if(br(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Xl(yn.bind(null,e,Ge,Ot),t);break}yn(e,Ge,Ot);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-ft(r);s=1<<u,u=t[u],u>o&&(o=u),r&=~s}if(r=o,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vp(r/1960))-r,10<r){e.timeoutHandle=Xl(yn.bind(null,e,Ge,Ot),r);break}yn(e,Ge,Ot);break;case 5:yn(e,Ge,Ot);break;default:throw Error(a(329))}}}return be(e,Ee()),e.callbackNode===n?lc.bind(null,e):null}function qs(e,t){var n=zr;return e.current.memoizedState.isDehydrated&&(gn(e,t).flags|=256),e=Wo(e,t),e!==2&&(t=Ge,Ge=n,t!==null&&Qs(t)),e}function Qs(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function qp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!pt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Jt(e,t){for(t&=~Hs,t&=~Io,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ft(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if((oe&6)!==0)throw Error(a(327));Qn();var t=br(e,0);if((t&1)===0)return be(e,Ee()),null;var n=Wo(e,t);if(e.tag!==0&&n===2){var r=_l(e);r!==0&&(t=r,n=qs(e,r))}if(n===1)throw n=Pr,gn(e,0),Jt(e,t),be(e,Ee()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yn(e,Ge,Ot),be(e,Ee()),null}function Ks(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(qn=Ee()+500,go&&Qt())}}function mn(e){Xt!==null&&Xt.tag===0&&(oe&6)===0&&Qn();var t=oe;oe|=1;var n=ut.transition,r=de;try{if(ut.transition=null,de=1,e)return e()}finally{de=r,ut.transition=n,oe=t,(oe&6)===0&&Qt()}}function Ys(){rt=Vn.current,ye(Vn)}function gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xp(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(rs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ho();break;case 3:Hn(),ye(Qe),ye(Ae),gs();break;case 5:hs(r);break;case 4:Hn();break;case 13:ye(xe);break;case 19:ye(xe);break;case 10:us(r.type._context);break;case 22:case 23:Ys()}n=n.return}if(Le=e,Te=e=en(e.current,null),Ie=rt=t,ze=0,Pr=null,Hs=Io=hn=0,Ge=zr=null,dn!==null){for(t=0;t<dn.length;t++)if(n=dn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var u=s.next;s.next=o,r.next=u}n.pending=r}dn=null}return e}function ic(e,t){do{var n=Te;try{if(as(),Eo.current=Po,Co){for(var r=Se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Co=!1}if(pn=0,Re=Pe=Se=null,_r=!1,jr=0,Us.current=null,n===null||n.return===null){ze=1,Pr=t,Te=null;break}e:{var s=e,u=n.return,h=n,y=t;if(t=Ie,h.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var N=y,z=h,R=z.tag;if((z.mode&1)===0&&(R===0||R===11||R===15)){var T=z.alternate;T?(z.updateQueue=T.updateQueue,z.memoizedState=T.memoizedState,z.lanes=T.lanes):(z.updateQueue=null,z.memoizedState=null)}var F=Ru(u);if(F!==null){F.flags&=-257,Lu(F,u,h,s,t),F.mode&1&&zu(s,N,t),t=F,y=N;var V=t.updateQueue;if(V===null){var q=new Set;q.add(y),t.updateQueue=q}else V.add(y);break e}else{if((t&1)===0){zu(s,N,t),Gs();break e}y=Error(a(426))}}else if(we&&h.mode&1){var Ce=Ru(u);if(Ce!==null){(Ce.flags&65536)===0&&(Ce.flags|=256),Lu(Ce,u,h,s,t),ss(Bn(y,h));break e}}s=y=Bn(y,h),ze!==4&&(ze=2),zr===null?zr=[s]:zr.push(s),s=u;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var x=Tu(s,y,t);nu(s,x);break e;case 1:h=y;var v=s.type,S=s.stateNode;if((s.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(bt===null||!bt.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var D=Pu(s,h,t);nu(s,D);break e}}s=s.return}while(s!==null)}cc(n)}catch(Q){t=Q,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(!0)}function ac(){var e=Mo.current;return Mo.current=Po,e===null?Po:e}function Gs(){(ze===0||ze===3||ze===2)&&(ze=4),Le===null||(hn&268435455)===0&&(Io&268435455)===0||Jt(Le,Ie)}function Wo(e,t){var n=oe;oe|=2;var r=ac();(Le!==e||Ie!==t)&&(Ot=null,gn(e,t));do try{Qp();break}catch(o){ic(e,o)}while(!0);if(as(),oe=n,Mo.current=r,Te!==null)throw Error(a(261));return Le=null,Ie=0,ze}function Qp(){for(;Te!==null;)uc(Te)}function Kp(){for(;Te!==null&&!vf();)uc(Te)}function uc(e){var t=pc(e.alternate,e,rt);e.memoizedProps=e.pendingProps,t===null?cc(e):Te=t,Us.current=null}function cc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Fp(n,t,rt),n!==null){Te=n;return}}else{if(n=Up(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Te=null;return}}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);ze===0&&(ze=5)}function yn(e,t,n){var r=de,o=ut.transition;try{ut.transition=null,de=1,Yp(e,t,n,r)}finally{ut.transition=o,de=r}return null}function Yp(e,t,n,r){do Qn();while(Xt!==null);if((oe&6)!==0)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if($f(e,s),e===Le&&(Te=Le=null,Ie=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Fo||(Fo=!0,hc(Qr,function(){return Qn(),null})),s=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||s){s=ut.transition,ut.transition=null;var u=de;de=1;var h=oe;oe|=4,Us.current=null,Bp(e,n),ec(n,e),hp(Gl),Jr=!!Yl,Gl=Yl=null,e.current=n,Wp(n),wf(),oe=h,de=u,ut.transition=s}else e.current=n;if(Fo&&(Fo=!1,Xt=e,Uo=o),s=e.pendingLanes,s===0&&(bt=null),Sf(n.stateNode),be(e,Ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ao)throw Ao=!1,e=Ws,Ws=null,e;return(Uo&1)!==0&&e.tag!==0&&Qn(),s=e.pendingLanes,(s&1)!==0?e===Vs?Rr++:(Rr=0,Vs=e):Rr=0,Qt(),null}function Qn(){if(Xt!==null){var e=Zi(Uo),t=ut.transition,n=de;try{if(ut.transition=null,de=16>e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Uo=0,(oe&6)!==0)throw Error(a(331));var o=oe;for(oe|=4,H=e.current;H!==null;){var s=H,u=s.child;if((H.flags&16)!==0){var h=s.deletions;if(h!==null){for(var y=0;y<h.length;y++){var N=h[y];for(H=N;H!==null;){var z=H;switch(z.tag){case 0:case 11:case 15:Tr(8,z,s)}var R=z.child;if(R!==null)R.return=z,H=R;else for(;H!==null;){z=H;var T=z.sibling,F=z.return;if(Gu(z),z===N){H=null;break}if(T!==null){T.return=F,H=T;break}H=F}}}var V=s.alternate;if(V!==null){var q=V.child;if(q!==null){V.child=null;do{var Ce=q.sibling;q.sibling=null,q=Ce}while(q!==null)}}H=s}}if((s.subtreeFlags&2064)!==0&&u!==null)u.return=s,H=u;else e:for(;H!==null;){if(s=H,(s.flags&2048)!==0)switch(s.tag){case 0:case 11:case 15:Tr(9,s,s.return)}var x=s.sibling;if(x!==null){x.return=s.return,H=x;break e}H=s.return}}var v=e.current;for(H=v;H!==null;){u=H;var S=u.child;if((u.subtreeFlags&2064)!==0&&S!==null)S.return=u,H=S;else e:for(u=v;H!==null;){if(h=H,(h.flags&2048)!==0)try{switch(h.tag){case 0:case 11:case 15:Oo(9,h)}}catch(Q){_e(h,h.return,Q)}if(h===u){H=null;break e}var D=h.sibling;if(D!==null){D.return=h.return,H=D;break e}H=h.return}}if(oe=o,Qt(),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Kr,e)}catch{}r=!0}return r}finally{de=n,ut.transition=t}}return!1}function dc(e,t,n){t=Bn(n,t),t=Tu(e,t,1),e=Yt(e,t,1),t=We(),e!==null&&(nr(e,1,t),be(e,t))}function _e(e,t,n){if(e.tag===3)dc(e,e,n);else for(;t!==null;){if(t.tag===3){dc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bt===null||!bt.has(r))){e=Bn(n,e),e=Pu(t,e,1),t=Yt(t,e,1),e=We(),t!==null&&(nr(t,1,e),be(t,e));break}}t=t.return}}function Gp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ie&n)===n&&(ze===4||ze===3&&(Ie&130023424)===Ie&&500>Ee()-Bs?gn(e,0):Hs|=n),be(e,t)}function fc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Gr,Gr<<=1,(Gr&130023424)===0&&(Gr=4194304)));var n=We();e=Rt(e,t),e!==null&&(nr(e,t,n),be(e,n))}function bp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fc(e,n)}function Xp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),fc(e,n)}var pc;pc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ye=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ye=!1,Ap(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,we&&(t.flags&1048576)!==0&&Qa(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lo(e,t),e=t.pendingProps;var o=Dn(t,Ae.current);Un(t,n),o=ws(null,t,r,e,o,n);var s=ks();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(s=!0,mo(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,fs(t),o.updater=zo,t.stateNode=o,o._reactInternals=t,Es(t,r,e,n),t=Ps(null,t,r,!0,s,n)):(t.tag=0,we&&s&&ns(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Jp(r),e=mt(r,e),o){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Fu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Ou(null,t,r,mt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Ts(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Fu(e,t,r,o,n);case 3:e:{if(Uu(t),e===null)throw Error(a(387));r=t.pendingProps,s=t.memoizedState,o=s.element,tu(e,t),_o(t,r,null,n);var u=t.memoizedState;if(r=u.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Bn(Error(a(423)),t),t=Hu(e,t,r,n,o);break e}else if(r!==o){o=Bn(Error(a(424)),t),t=Hu(e,t,r,n,o);break e}else for(nt=Wt(t.stateNode.containerInfo.firstChild),tt=t,we=!0,ht=null,n=Ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(In(),r===o){t=Dt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return ou(t),e===null&&ls(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,u=o.children,bl(r,o)?u=null:s!==null&&bl(r,s)&&(t.flags|=32),Au(e,t),Be(e,t,u,n),t.child;case 6:return e===null&&ls(t),null;case 13:return Bu(e,t,n);case 4:return ps(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=An(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Du(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,u=o.value,me(xo,r._currentValue),r._currentValue=u,s!==null)if(pt(s.value,u)){if(s.children===o.children&&!Qe.current){t=Dt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var h=s.dependencies;if(h!==null){u=s.child;for(var y=h.firstContext;y!==null;){if(y.context===r){if(s.tag===1){y=Lt(-1,n&-n),y.tag=2;var N=s.updateQueue;if(N!==null){N=N.shared;var z=N.pending;z===null?y.next=y:(y.next=z.next,z.next=y),N.pending=y}}s.lanes|=n,y=s.alternate,y!==null&&(y.lanes|=n),cs(s.return,n,t),h.lanes|=n;break}y=y.next}}else if(s.tag===10)u=s.type===t.type?null:s.child;else if(s.tag===18){if(u=s.return,u===null)throw Error(a(341));u.lanes|=n,h=u.alternate,h!==null&&(h.lanes|=n),cs(u,n,t),u=s.sibling}else u=s.child;if(u!==null)u.return=s;else for(u=s;u!==null;){if(u===t){u=null;break}if(s=u.sibling,s!==null){s.return=u.return,u=s;break}u=u.return}s=u}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Un(t,n),o=it(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),Ou(e,t,r,o,n);case 15:return Mu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Lo(e,t),t.tag=1,Ke(r)?(e=!0,mo(t)):e=!1,Un(t,n),Cu(t,r,o),Es(t,r,o,n),Ps(null,t,r,!0,e,n);case 19:return Vu(e,t,n);case 22:return Iu(e,t,n)}throw Error(a(156,t.tag))};function hc(e,t){return Ki(e,t)}function Zp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new Zp(e,t,n,r)}function bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jp(e){if(typeof e=="function")return bs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ve)return 11;if(e===kt)return 14}return 2}function en(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vo(e,t,n,r,o,s){var u=2;if(r=e,typeof e=="function")bs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case je:return vn(n.children,o,s,t);case G:u=8,o|=8;break;case re:return e=ct(12,n,t,o|2),e.elementType=re,e.lanes=s,e;case Oe:return e=ct(13,n,t,o),e.elementType=Oe,e.lanes=s,e;case dt:return e=ct(19,n,t,o),e.elementType=dt,e.lanes=s,e;case Ne:return qo(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $e:u=10;break e;case wt:u=9;break e;case Ve:u=11;break e;case kt:u=14;break e;case qe:u=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=ct(u,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function vn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function qo(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Ne,e.lanes=n,e.stateNode={isHidden:!1},e}function Xs(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Zs(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Js(e,t,n,r,o,s,u,h,y){return e=new eh(e,t,n,h,y),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ct(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fs(s),e}function th(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pe,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function mc(e){if(!e)return qt;e=e._reactInternals;e:{if(ln(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(Ke(n))return Wa(e,n,t)}return t}function gc(e,t,n,r,o,s,u,h,y){return e=Js(n,r,!0,e,o,s,u,h,y),e.context=mc(null),n=e.current,r=We(),o=Zt(n),s=Lt(r,o),s.callback=t??null,Yt(n,s,o),e.current.lanes=o,nr(e,o,r),be(e,r),e}function Qo(e,t,n,r){var o=t.current,s=We(),u=Zt(o);return n=mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Lt(s,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yt(o,t,u),e!==null&&(vt(e,o,u,s),No(e,o,u)),u}function Ko(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ei(e,t){yc(e,t),(e=e.alternate)&&yc(e,t)}function nh(){return null}var vc=typeof reportError=="function"?reportError:function(e){console.error(e)};function ti(e){this._internalRoot=e}Yo.prototype.render=ti.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Qo(e,t,null,null)},Yo.prototype.unmount=ti.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mn(function(){Qo(null,e,null,null)}),t[$t]=null}};function Yo(e){this._internalRoot=e}Yo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ta();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ut.length&&t!==0&&t<Ut[n].priority;n++);Ut.splice(n,0,e),n===0&&oa(e)}};function ni(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Go(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wc(){}function rh(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var N=Ko(u);s.call(N)}}var u=gc(t,r,e,0,null,!1,!1,"",wc);return e._reactRootContainer=u,e[$t]=u.current,gr(e.nodeType===8?e.parentNode:e),mn(),u}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var h=r;r=function(){var N=Ko(y);h.call(N)}}var y=Js(e,0,!1,null,null,!1,!1,"",wc);return e._reactRootContainer=y,e[$t]=y.current,gr(e.nodeType===8?e.parentNode:e),mn(function(){Qo(t,y,n,r)}),y}function bo(e,t,n,r,o){var s=n._reactRootContainer;if(s){var u=s;if(typeof o=="function"){var h=o;o=function(){var y=Ko(u);h.call(y)}}Qo(t,u,e,o)}else u=rh(n,t,e,o,r);return Ko(u)}Ji=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tr(t.pendingLanes);n!==0&&(El(t,n|1),be(t,Ee()),(oe&6)===0&&(qn=Ee()+500,Qt()))}break;case 13:mn(function(){var r=Rt(e,1);if(r!==null){var o=We();vt(r,e,1,o)}}),ei(e,1)}},Cl=function(e){if(e.tag===13){var t=Rt(e,134217728);if(t!==null){var n=We();vt(t,e,134217728,n)}ei(e,134217728)}},ea=function(e){if(e.tag===13){var t=Zt(e),n=Rt(e,t);if(n!==null){var r=We();vt(n,e,t,r)}ei(e,t)}},ta=function(){return de},na=function(e,t){var n=de;try{return de=e,t()}finally{de=n}},wl=function(e,t,n){switch(t){case"input":if(dl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=po(r);if(!o)throw Error(a(90));Ei(r),dl(r,o)}}}break;case"textarea":zi(e,n);break;case"select":t=n.value,t!=null&&Sn(e,!!n.multiple,t,!1)}},Ui=Ks,Hi=mn;var oh={usingClientEntryPoint:!1,Events:[wr,Rn,po,Ai,Fi,Ks]},Lr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lh={bundleType:Lr.bundleType,version:Lr.version,rendererPackageName:Lr.rendererPackageName,rendererConfig:Lr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qi(e),e===null?null:e.stateNode},findFiberByHostInstance:Lr.findFiberByHostInstance||nh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xo.isDisabled&&Xo.supportsFiber)try{Kr=Xo.inject(lh),xt=Xo}catch{}}return Xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oh,Xe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ni(t))throw Error(a(200));return th(e,t,null,n)},Xe.createRoot=function(e,t){if(!ni(e))throw Error(a(299));var n=!1,r="",o=vc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Js(e,1,!1,null,null,n,!1,r,o),e[$t]=t.current,gr(e.nodeType===8?e.parentNode:e),new ti(t)},Xe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=qi(t),e=e===null?null:e.stateNode,e},Xe.flushSync=function(e){return mn(e)},Xe.hydrate=function(e,t,n){if(!Go(t))throw Error(a(200));return bo(null,e,t,!0,n)},Xe.hydrateRoot=function(e,t,n){if(!ni(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",u=vc;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=gc(t,null,e,1,n??null,o,!1,s,u),e[$t]=t.current,gr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yo(t)},Xe.render=function(e,t,n){if(!Go(t))throw Error(a(200));return bo(null,e,t,!1,n)},Xe.unmountComponentAtNode=function(e){if(!Go(e))throw Error(a(40));return e._reactRootContainer?(mn(function(){bo(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1},Xe.unstable_batchedUpdates=Ks,Xe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Go(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return bo(e,t,n,!1,r)},Xe.version="18.3.1-next-f1338f8080-20240426",Xe}var Cc;function Xc(){if(Cc)return li.exports;Cc=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),li.exports=fh(),li.exports}var $c;function ph(){if($c)return Zo;$c=1;var l=Xc();return Zo.createRoot=l.createRoot,Zo.hydrateRoot=l.hydrateRoot,Zo}var hh=ph();const mh=(function(){const i=typeof document<"u"&&document.createElement("link").relList;return i&&i.supports&&i.supports("modulepreload")?"modulepreload":"preload"})(),gh=function(l){return"/"+l},Tc={},vi=function(i,a,d){let f=Promise.resolve();if(a&&a.length>0){let g=function(E){return Promise.all(E.map(j=>Promise.resolve(j).then($=>({status:"fulfilled",value:$}),$=>({status:"rejected",reason:$}))))};document.getElementsByTagName("link");const w=document.querySelector("meta[property=csp-nonce]"),m=(w==null?void 0:w.nonce)||(w==null?void 0:w.getAttribute("nonce"));f=g(a.map(E=>{if(E=gh(E),E in Tc)return;Tc[E]=!0;const j=E.endsWith(".css"),$=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${E}"]${$}`))return;const C=document.createElement("link");if(C.rel=j?"stylesheet":mh,j||(C.as="script"),C.crossOrigin="",C.href=E,m&&C.setAttribute("nonce",m),document.head.appendChild(C),j)return new Promise((O,_)=>{C.addEventListener("load",O),C.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${E}`)))})}))}function p(g){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=g,window.dispatchEvent(w),!w.defaultPrevented)throw g}return f.then(g=>{for(const w of g||[])w.status==="rejected"&&p(w.reason);return i().catch(p)})},Zc="caddis-hub-tab",yh="X-Caddis-Hub-Tab",vh="X-CSRF-Token";class pi extends Error{constructor(i,a){super(a),this.status=i}}function Jc(){try{return window.localStorage}catch{return null}}let hi=null;function wh(l=window.location,i=window.history,a=Jc()){const d=/(?:^#|&)tab=([^&]+)/.exec(l.hash);if(!(d!=null&&d[1]))return;let f;try{f=decodeURIComponent(d[1])}catch{return}hi=f;try{a==null||a.setItem(Zc,f)}catch{}i.replaceState(null,"",l.pathname+l.search)}function ed(l=Jc()){try{return(l==null?void 0:l.getItem(Zc))||hi}catch{return hi}}function td(l,i){const a={Accept:"application/json"};return l&&(a[yh]=l),i&&(a[vh]=i),a}async function wi(l){const i=ed();if(!i)throw new pi(401,"no tab token");const a=await fetch(l,{headers:td(i),credentials:"same-origin",cache:"no-store"});if(!a.ok)throw new pi(a.status,`${l} answered ${a.status}`);return await a.json()}const kh=()=>wi("/api/session"),xh=()=>wi("/api/state"),Sh=(l,i,a)=>wi("/api/plan-phase?repo="+encodeURIComponent(l)+"&plan="+encodeURIComponent(i)+"&key="+encodeURIComponent(a));let rl=null;async function Nh(){return rl||(rl=(await kh()).csrf_token),rl}async function _h(l){const i=ed();if(!i)return{ok:!1,status:401,error:"unauthorized",reason:"Signed out. Run caddis hub open."};const a=async()=>fetch("/api/actions",{method:"POST",headers:{...td(i,await Nh()),"Content-Type":"application/json"},body:JSON.stringify(l),credentials:"same-origin",cache:"no-store"});try{let d=await a();d.status===403&&(rl=null,d=await a());const f=await d.json().catch(()=>({}));return d.status===202&&f.request&&typeof f.request=="object"?{ok:!0,request:f.request}:{ok:!1,status:d.status,error:typeof f.error=="string"?f.error:"failed",reason:typeof f.reason=="string"?f.reason:`The hub answered ${d.status}.`}}catch{return{ok:!1,status:0,error:"network",reason:"The hub did not answer."}}}function jh(l){const[i,a]=B.useState({}),d=(p,g)=>a(w=>({...w,[p]:g})),f=B.useCallback(p=>{d(p.key,{status:"sending",reason:null,requestId:null,at:Date.now()}),_h(p.body).then(g=>{g.ok?d(p.key,{status:"sent",reason:null,requestId:g.request.id,at:Date.now()}):d(p.key,{status:"refused",reason:g.reason,requestId:null,at:Date.now()}),l()})},[l]);return{local:i,run:f}}/**
42
+ * @license lucide-react v1.61.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const Eh=l=>l==null?void 0:l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
47
+ * @license lucide-react v1.61.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */function Ch(l,i,a=[]){if(i==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:Eh(l),size:24,node:i,...a.length>0?{aliases:a}:{}}}/**
52
+ * @license lucide-react v1.61.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const $h=l=>{let i="",a=!1;for(const d of l){if(d==="-"||d==="_"||d<=" "){a=i.length>0;continue}i.length===0?i+=d.toLowerCase():i+=a?d.toUpperCase():d,a=!1}return i};/**
57
+ * @license lucide-react v1.61.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const Th=l=>{const i=$h(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
62
+ * @license lucide-react v1.61.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const mi=(...l)=>l.filter((i,a,d)=>!!i&&i.trim()!==""&&d.indexOf(i)===a).join(" ").trim();/**
67
+ * @license lucide-react v1.61.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const wn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
72
+ * @license lucide-react v1.61.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */function ai(l){return l!=null}function Ph(l,i={}){var C,O;const a=i.attributeNames??{},d=_=>a[_]??_,f=l.size??l.width??wn.width,p=l.size??l.height??wn.height,g=((C=l.aliases)==null?void 0:C.filter(_=>typeof _=="string"&&_.trim()!=="").map(_=>`lucide-${_}`))??[],w=[...l.name?[`lucide-${l.name}`]:[],...g],m=((O=i.className)==null?void 0:O.split(" ").filter(Boolean))??[],E=i.includeDefaultClasses===!1?mi(...m):mi("lucide",...w,...m),j=i.absoluteStrokeWidth?Number(i.strokeWidth??wn["stroke-width"])*Number(l.size??l.width??wn.width)/Number(i.size??i.width??wn.width):i.strokeWidth??wn["stroke-width"];return["svg",{...Object.entries(wn).reduce((_,[U,M])=>(_[d(U)]=M,_),{}),..."color"in i&&i.color&&{[d("stroke")]:i.color},..."size"in i&&ai(i.size)&&{[d("width")]:i.size,[d("height")]:i.size},..."width"in i&&ai(i.width)&&{[d("width")]:i.width},..."height"in i&&ai(i.height)&&{[d("height")]:i.height},[d("stroke-width")]:j,...E&&{[d("class")]:E},[d("viewBox")]:`0 0 ${f} ${p}`,...i.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},l.node.map(_=>{const[U,M,I]=_,ue=i.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...M}:M;return I?[U,ue,I]:[U,ue]})]}/**
77
+ * @license lucide-react v1.61.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */function zh(l,i={}){return Ph(l,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
82
+ * @license lucide-react v1.61.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Rh=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Lh=B.createContext({}),Dh=()=>B.useContext(Lh),Oh=B.forwardRef(({color:l,size:i,width:a,height:d,strokeWidth:f,absoluteStrokeWidth:p,nonScalingStroke:g,className:w="",children:m,iconNode:E=[],icon:j={node:E,aliases:[],size:24},...$},C)=>{const{size:O=24,strokeWidth:_=2,absoluteStrokeWidth:U=!1,nonScalingStroke:M=!1,color:I="currentColor",className:ue=""}=Dh()??{},J=!!m||Rh($),[L,ae,pe=[]]=zh(j,{color:l??I,width:a??i??O,height:d??i??O,strokeWidth:f??_,absoluteStrokeWidth:p??U,nonScalingStroke:g??M,className:mi(ue,w),hasA11yProp:J,attributes:$});return B.createElement(L,{ref:C,...ae},[...pe.map(([je,G])=>B.createElement(je,G)),...Array.isArray(m)?m:[m]])});/**
87
+ * @license lucide-react v1.61.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */function fe(l,i=[],a=[]){const d=typeof l=="string"?Ch(l,i,a):l,f=B.forwardRef(({className:p,...g},w)=>B.createElement(Oh,{ref:w,icon:d,className:p,...g}));return d.name&&(f.displayName=Th(d.name)),f}/**
92
+ * @license lucide-react v1.61.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const nd={name:"activity",size:24,node:[["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"}]]};nd.node;const Mh=fe(nd);/**
97
+ * @license lucide-react v1.61.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const rd={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};rd.node;const Ih=fe(rd);/**
102
+ * @license lucide-react v1.61.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const od={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};od.node;const Ah=fe(od);/**
107
+ * @license lucide-react v1.61.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const ld={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};ld.node;const Fh=fe(ld);/**
112
+ * @license lucide-react v1.61.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const sd={name:"bell",size:24,node:[["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"}]]};sd.node;const id=fe(sd);/**
117
+ * @license lucide-react v1.61.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const ad={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};ad.node;const Uh=fe(ad);/**
122
+ * @license lucide-react v1.61.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const ud={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};ud.node;const Hh=fe(ud);/**
127
+ * @license lucide-react v1.61.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const cd={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};cd.node;const Bh=fe(cd);/**
132
+ * @license lucide-react v1.61.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const dd={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};dd.node;const Wh=fe(dd);/**
137
+ * @license lucide-react v1.61.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const fd={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};fd.node;const pd=fe(fd);/**
142
+ * @license lucide-react v1.61.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const hd={name:"folder-plus",size:24,node:[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};hd.node;const Vh=fe(hd);/**
147
+ * @license lucide-react v1.61.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const md={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]};md.node;const qh=fe(md);/**
152
+ * @license lucide-react v1.61.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const gd={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};gd.node;const Qh=fe(gd);/**
157
+ * @license lucide-react v1.61.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const yd={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};yd.node;const Kh=fe(yd);/**
162
+ * @license lucide-react v1.61.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const vd={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};vd.node;const Yh=fe(vd);/**
167
+ * @license lucide-react v1.61.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const wd={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};wd.node;const Gh=fe(wd);/**
172
+ * @license lucide-react v1.61.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const kd={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};kd.node;const bh=fe(kd);/**
177
+ * @license lucide-react v1.61.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const xd={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};xd.node;const Xh=fe(xd);/**
182
+ * @license lucide-react v1.61.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const Sd={name:"pause",size:24,node:[["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"}]]};Sd.node;const Zh=fe(Sd);/**
187
+ * @license lucide-react v1.61.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const Nd={name:"play",size:24,node:[["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"}]]};Nd.node;const Jh=fe(Nd);/**
192
+ * @license lucide-react v1.61.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const _d={name:"rocket",size:24,node:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]};_d.node;const em=fe(_d);/**
197
+ * @license lucide-react v1.61.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const jd={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};jd.node;const tm=fe(jd);/**
202
+ * @license lucide-react v1.61.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const Ed={name:"shield-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]};Ed.node;const nm=fe(Ed);/**
207
+ * @license lucide-react v1.61.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const Cd={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};Cd.node;const rm=fe(Cd);/**
212
+ * @license lucide-react v1.61.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const $d={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};$d.node;const Td=fe($d);/**
217
+ * @license lucide-react v1.61.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const Pd={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};Pd.node;const om=fe(Pd);/**
222
+ * @license lucide-react v1.61.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const zd={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};zd.node;const lm=fe(zd);/**
227
+ * @license lucide-react v1.61.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const Rd={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Rd.node;const sm=fe(Rd),ki={hotfix:"Mark hotfix",unhotfix:"Unmark hotfix",hold:"Hold",release:"Release",approve:"Approve",decline:"Decline"},ol={hotfix:"hotfix",unhotfix:"hotfix",hold:"hold",release:"hold",approve:"approve",decline:"approve"},Ld=l=>l.repo_id??null,Dd=(l,i,a)=>`${l}:${ol[i]}:${a}`;function xi(l,i){const a=Ld(l),d=Md(l,i.pr)??i.headSha;if(!a||!d)return[];const f=p=>({key:Dd(a,p,i.pr),label:ki[p],body:{repo_id:a,action:p,pr:i.pr,head_sha:d}});return[f(i.hotfix?"unhotfix":"hotfix"),f(i.held?"release":"hold")]}function Od(l,i){const a=Ld(l);if(!a)return[];const d=i.pr!==null?Md(l,i.pr)??i.head_sha:null;return["approve","decline"].map(f=>({key:Dd(a,f,i.what),label:ki[f],body:{repo_id:a,action:f,pr:i.pr,head_sha:d,what:i.what}}))}function Md(l,i){var a,d,f;return((f=(d=(a=l.github)==null?void 0:a.prs)==null?void 0:d.find(p=>p.number===i))==null?void 0:f.head_sha)??null}function Id(l){return l.actions?l.actions.enabled?null:l.actions.reason??"Actions need a live coordinator.":"Actions need a live coordinator."}function Ad(l,i){var f;const a=Id(l);return a||i.pr===null?a:(((f=l.coordinator)==null?void 0:f.queue)??[]).some(p=>(p==null?void 0:p.pr)===i.pr)?null:`PR #${i.pr} is not in the coordinator queue.`}function im(l,i){var f;const a=((f=l.coordinator)==null?void 0:f.requests)??[],d=ol[i.body.action];for(let p=a.length-1;p>=0;p--){const g=a[p],w=g.action;if(!(!(w in ol)||ol[w]!==d)&&(i.body.what!==void 0?g.what===i.body.what&&g.pr===i.body.pr:g.pr===i.body.pr))return g}return null}function Fd(l){const i=ki[l.action]??l.action;switch(l.status){case"requested":return`${i}: requested. Waiting for the coordinator.`;case"done":return`${i}: done.`;case"rejected":return`${i}: rejected${l.reason?`: ${l.reason}`:""}.`;case"expired":return`${i}: expired before the coordinator read it.`;case"not_picked_up":return`${i}: not picked up. The coordinator has not read requests for 2 min.`}}const Ud=l=>l==="done"?"good":l==="requested"?"muted":l==="not_picked_up"?"warn":"bad";function am(l,i,a){const d=im(l,i);return(a==null?void 0:a.status)==="sending"?{text:`${i.label}: sending...`,tone:"muted"}:(a==null?void 0:a.status)==="refused"?{text:`${i.label}: refused. ${a.reason??""}`.trim(),tone:"bad"}:(a==null?void 0:a.status)==="sent"&&(!d||d.id!==a.requestId)?{text:`${i.label}: requested. Waiting for the coordinator.`,tone:"muted"}:d?{text:Fd(d),tone:Ud(d.status)}:null}function il({repo:l,specs:i,act:a,compact:d=!1,reason:f}){if(i.length===0)return null;const p=f!==void 0?f:Id(l),g=new Set,w=[];for(const m of i){if(g.has(m.key))continue;g.add(m.key);const E=am(l,m,a.local[m.key]);E&&w.push({key:m.key,...E})}return c.jsxs("div",{className:`action-row${d?" compact":""}`,"data-testid":"actions",children:[c.jsx("div",{className:"action-buttons",children:i.map(m=>{var E;return c.jsx("button",{type:"button",className:"btn btn-act",disabled:p!==null||((E=a.local[m.key])==null?void 0:E.status)==="sending",title:p??void 0,onClick:()=>a.run(m),"data-testid":`act-${m.body.action}`,children:m.label},`${m.key}:${m.body.action}`)})}),p&&!d&&c.jsx("span",{className:"action-reason","data-testid":"action-reason",children:p}),w.map(m=>c.jsx("span",{className:`request-status tone-${m.tone}`,"data-testid":"request-status",role:"status",children:m.text},m.key))]})}function Hd({item:l}){const i=l.recommendation,a=l.from?`from ${l.from}`:l.source==="coordinator"?"from the coordinator":"from the asking session";return c.jsxs("div",{className:"detail-block recommendation","data-testid":"recommendation",children:[c.jsxs("span",{className:"detail-label",children:["Recommendation, ",a]}),i?c.jsxs(c.Fragment,{children:[c.jsxs("span",{children:[c.jsx("strong",{className:`rec-${i.decision}`,children:i.decision==="approve"?"Approve":"Hold"}),i.reason?`: ${i.reason}`:""]}),i.evidence&&c.jsxs("span",{className:"rec-evidence",children:["Evidence: ",i.evidence]})]}):c.jsx("span",{children:"No recommendation was recorded. Read the source before you decide."}),c.jsx("span",{className:"rec-note",children:"A recommendation is not an approval. Only your click approves."})]})}const Pc="caddis hub";function um(l){return l>0?`(${l}) ${Pc}`:Pc}function nn(l,i){if(!l)return"unknown";const a=Date.parse(l);if(Number.isNaN(a))return"unknown";const d=Math.max(0,Math.round((i-a)/1e3));if(d<5)return"just now";if(d<60)return`${d} s ago`;const f=Math.floor(d/60);if(f<60)return`${f} min ago`;const p=Math.floor(f/60);return p<24?`${p} h ago`:`${Math.floor(p/24)} d ago`}const cm=(l,i)=>`Updated ${nn(l,i)}`;function Ir(l){if(!l)return"unknown";const i=new Date(l);return Number.isNaN(i.getTime())?"unknown":i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function dm(l){const i=Number(l==null?void 0:l.cap_eur),a=Number(l==null?void 0:l.committed_eur),d=(l==null?void 0:l.configured)===!0&&Number.isFinite(i)&&i>0,f=Number.isFinite(a)?a:0;return{configured:d,capEur:d?i:0,committedEur:f,pct:d?Math.min(100,Math.max(0,f/i*100)):0}}const gi=l=>Object.values(l.sources??{}).some(i=>!i.ok||i.stale),fm=500;function Bd(l){const i=l==null?void 0:l.github_rate;if(!i||typeof i!="object")return null;let a=null;for(const[d,f]of Object.entries(i)){const p=f,g=typeof(p==null?void 0:p.remaining)=="number"&&Number.isFinite(p.remaining)?p.remaining:NaN;Number.isNaN(g)||(!a||g<a.remaining)&&(a={account:d,remaining:g,resetAt:typeof(p==null?void 0:p.reset_at)=="string"?p.reset_at:null})}return a}function pm(l){const i=Bd(l);return i&&i.remaining<fm?i:null}var hm=Xc();const mm=150,gm=100,Jo=8,el=8;function ym(l,i,a){const d=l.bottom+Jo+i.height<=a.height-el,f=l.top-Jo-i.height>=el,p=d||!f?"below":"above",g=p==="below"?l.bottom+Jo:l.top-Jo-i.height,w=Math.max(0,Math.min(g,a.height-i.height)),m=Math.max(0,a.width-i.width-el),E=Math.max(el,Math.min(l.left,m));return{top:w,left:Math.min(E,m),placement:p}}const vm=l=>l==null||l===!1||l==="";function Et({content:l,children:i}){const a=B.useId(),d=vm(l),[f,p]=B.useState(!1),[g,w]=B.useState(null),m=B.useRef(null),E=B.useRef(null),j=B.useRef(void 0),$=B.useCallback(()=>{window.clearTimeout(j.current),j.current=void 0},[]),C=B.useCallback(J=>{J&&(m.current=J),$(),j.current=window.setTimeout(()=>p(!0),mm)},[$]),O=B.useCallback(()=>{$(),j.current=window.setTimeout(()=>p(!1),gm)},[$]),_=B.useCallback(()=>{$(),p(!0)},[$]),U=f&&!d;B.useEffect(()=>$,[$]),B.useEffect(()=>{d&&($(),p(!1))},[d,$]),B.useEffect(()=>{if(!U)return;const J=L=>{L.key==="Escape"&&($(),p(!1))};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)},[U,$]);const M=B.useCallback(()=>{const J=m.current,L=E.current;if(!J||!L)return;const ae=L.getBoundingClientRect();w(ym(J.getBoundingClientRect(),{width:ae.width,height:ae.height},{width:window.innerWidth,height:window.innerHeight}))},[]);if(B.useLayoutEffect(()=>{if(!U){w(null);return}return M(),window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0)}},[U,l,M]),d)return i;const I=i.props,ue=B.cloneElement(i,{onPointerEnter:J=>{var L;(L=I.onPointerEnter)==null||L.call(I,J),f?_():C(J.currentTarget)},onPointerLeave:J=>{var L;(L=I.onPointerLeave)==null||L.call(I,J),O()},onFocus:J=>{var L;(L=I.onFocus)==null||L.call(I,J),f?_():C(J.currentTarget)},onBlur:J=>{var L;(L=I.onBlur)==null||L.call(I,J),O()},"aria-describedby":U?a:I["aria-describedby"]});return c.jsxs(c.Fragment,{children:[ue,U&&hm.createPortal(c.jsx("div",{ref:E,id:a,role:"tooltip",className:"tip","data-testid":"tip","data-placement":g==null?void 0:g.placement,style:{position:"fixed",top:(g==null?void 0:g.top)??0,left:(g==null?void 0:g.left)??0,visibility:g?"visible":"hidden"},onPointerEnter:_,onPointerLeave:O,children:l}),document.body)]})}function Wd(l,i,a){if(!l)return"unknown";const d=new Date(l);if(Number.isNaN(d.getTime()))return"unknown";try{return new Intl.DateTimeFormat(i,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:a,timeZoneName:"short"}).format(d)}catch{return d.toISOString()}}const Ze=l=>Array.isArray(l)?l:[],wm={todo:"to do","in-progress":"in progress",done:"done",moved:"moved",blocked:"blocked"},rn=new Set(["done","not-needed"]),fy="No roadmap or plan",py="/caddis:roadmap";function hy(l){const i=l.also.length>0?`; also ${l.also.map(a=>`#${a}`).join(", ")}`:"";return`on branch (${l.draft?"draft ":""}PR #${l.pr}${i})`}const zc=l=>typeof l=="number"&&Number.isInteger(l)&&l>0;function km(l){const i=ke(l);return zc(i.pr)?{pr:i.pr,draft:i.draft===!0,also:Ze(i.also).filter(zc)}:null}const my=[{key:"todo",label:"To do"},{key:"in-progress",label:"In progress"},{key:"blocked",label:"Blocked"},{key:"done",label:"Done"}];function xm(l){const i={todo:[],"in-progress":[],blocked:[],done:[]};for(const a of l.rows)i[a.state==="moved"?"done":a.state].push(a);return i}function gy(l){const i=xm(l),a=l.rows.length,d=i.done.length;return{total:a,done:d,inProgress:i["in-progress"].length,blocked:i.blocked.length,todo:i.todo.length,pct:a===0?0:Math.round(d/a*100)}}function yy(l){let i=null;for(const a of l)a.open===0||a.rows.length===0||(!i||(a.changedAt??-1)>(i.changedAt??-1))&&(i=a);return i?i.path:null}const vy=10,ke=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},Z=l=>typeof l=="string"?l:"",Mt=l=>typeof l=="string"&&l?l:null,Ar=l=>typeof l=="number"&&Number.isInteger(l)?l:0,Vd=new Set(["todo","in-progress","done","moved","blocked"]);function Si(l,i){const a=l.github;return[...new Set(Ze(i).filter(d=>typeof d=="number"&&Number.isInteger(d)))].map(d=>{var g,w;const f=(g=a==null?void 0:a.prs)==null?void 0:g.find(m=>m.number===d),p=((w=a==null?void 0:a.merges)==null?void 0:w.some(m=>m.number===d))??!1;return{number:d,url:a!=null&&a.repo?`https://github.com/${a.repo}/pull/${d}`:null,stage:f?"in review":p?"merged":null,detail:f?`required checks ${f.required_state}`:null}})}function qd(l,i){const a=l.filter(d=>d.stage).map(d=>`#${d.number} ${d.stage}${d.detail?` (${d.detail})`:""}`);return a.length?a.join(", "):wm[i]}function wy(l){return[l.model&&`model ${l.model}`,l.lane&&`lane ${l.lane.split(" ")[0]}`,l.risk&&`risk ${l.risk}`].filter(Boolean).join(" · ")}function Sm(l,i){const a=ke(i),d=Z(a.ref),f=d.lastIndexOf("#"),p=Z(a.state),g=Vd.has(Z(a.tile))?Z(a.tile):p==="done"?"done":"todo",w=Z(a.risk),m=Si(l,a.prs);return{ref:d,plan:Z(a.plan)||(f>0?d.slice(0,f):""),num:Ar(a.num)||f>0&&Number(d.slice(f+1))||0,name:Z(a.name)||d,model:Z(a.model),lane:Z(a.lane),risk:w,highRisk:w.toLowerCase().includes("high"),tracker:Z(a.tracker),tile:g,prs:m,stage:qd(m,g)}}const Rc=(l,i)=>{const a=ke(i);return{milestone:l,type:Z(a.type),reason:Z(a.reason),check:Z(a.check)}};function Qd(l,i){return rn.has(l)?"done":i.some(a=>a.type==="owner-gate")?"wait":i.length||l==="blocked"?"block":l==="in-progress"?"prog":"todo"}const kn=l=>l==="done"||l==="moved";function Nm(l,i){const a=ke(l),d=ke(a.lock),f=ke(a.stale_lock),p=ke(a.last_stop);let g=null;return Z(p.reason)==="running"?g="running now":Z(p.reason)&&(g=`${Z(p.reason)}${p.exit!==void 0&&p.exit!==null?` (exit ${String(p.exit)})`:""}`),{running:Object.keys(d).length?{batch:String(d.batch??""),since:Mt(d.started_utc),host:Mt(d.host),pid:d.pid===void 0?null:String(d.pid)}:null,staleBatch:Object.keys(f).length?String(f.batch??""):null,lastStop:g,lastStopAt:Mt(p.utc),stopReason:Z(p.reason)||null,errors:Ze(a.errors).map(String),next:i}}function Kd(l){const i=new Map(l.map(d=>[d.id,d.status])),a={now:[],next:[],later:[]};for(const d of l){if(rn.has(d.status))continue;const f=d.depends.every(p=>rn.has(i.get(p)??""));d.status==="in-progress"||f&&d.blockers.length===0?a.now.push(d):d.depends.some(p=>a.now.some(g=>g.id===p))?a.next.push(d):a.later.push(d)}return a}function _m(l,i){const a=ke(i),d=Ze(a.milestones).map(j=>{const $=ke(j),C=Z($.id),O=Ze($.blockers).map(M=>Rc(C,M)),_=Ze($.phases).map(M=>Sm(l,M)),U=Z($.status);return{id:C,status:U,owner:Z($.owner)||"runner",target:Mt($.target),depends:Ze($.depends).map(String),phases:_,blockers:O,done:_.filter(M=>kn(M.tile)).length,total:_.length,tone:Qd(U,O)}}),f=d.flatMap(j=>j.phases),p=ke(a.next),g=Object.keys(p).length?`${Z(p.milestone)} ${Z(p.plan)}#${String(p.phase)}`:null,w=(Ze(a.lanes).length?Ze(a.lanes).map(String):[...new Set(f.map(j=>j.plan))]).map(j=>({plan:j,done:f.filter($=>$.plan===j&&kn($.tile)).length,total:f.filter($=>$.plan===j).length})),m=d.flatMap(j=>j.blockers),E=Array.isArray(a.waiting)?Ze(a.waiting).map(j=>Rc(Z(ke(j).milestone),{...ke(j),type:"owner-gate"})):d.filter(j=>!rn.has(j.status)).flatMap(j=>j.blockers.filter($=>$.type==="owner-gate"));return{slug:Z(a.roadmap),kind:"roadmap",branch:Mt(a.branch),originCommit:Mt(a.origin_commit),milestones:d,lanes:w,gates:E,blockers:m,kpis:{phasesDone:f.filter(j=>kn(j.tile)).length,phasesTotal:f.length,milestonesDone:Ar(a.done)||d.filter(j=>rn.has(j.status)).length,milestonesTotal:Ar(a.total)||d.length,inProgress:f.filter(j=>j.tile==="in-progress").map(j=>j.ref),highRisk:f.filter(j=>j.highRisk).length,next:g??"none ready"},board:Kd(d),runner:Nm(a.runner,g),detailError:Mt(a.detail_error)}}const jm=l=>typeof l=="string"&&Vd.has(l)?l:"todo",Yd=l=>{var i;return((i=l.trim().split(/\s+/)[0])==null?void 0:i.toLowerCase())??""};function Ni(l){return(l.split("/").pop()??"").replace(/\.md$/,"")}function ky(l,i){var j,$;const a=Ni(i.path),d=[];let f=!1;for(const C of i.rows){const O=((j=C.milestone)==null?void 0:j.trim())||null;O?d.includes(O)||d.push(O):f=!0}(f||d.length===0)&&(d.includes("Phases")||d.push("Phases"));const p=new Map(d.map(C=>[C,[]])),g=i.rows.map((C,O)=>{var L,ae;const _=C.key||Yd(C.phase),U=Array.from(C.status.matchAll(/#(\d+)/g),pe=>Number(pe[1])),M=Si(l,U),I=C.state,ue={ref:`${a}#${_}`,plan:a,num:O+1,name:C.phase,model:"",lane:"",risk:"",highRisk:!1,tracker:C.status,tile:I,prs:M,stage:qd(M,I)},J=((L=C.milestone)==null?void 0:L.trim())||"Phases";return(ae=p.get(J))==null||ae.push(ue),ue}),w=d.map((C,O)=>{const _=p.get(C)??[],U=_.filter(ue=>kn(ue.tile)).length,M=_.length,I=M>0&&U===M?"done":_.some(ue=>ue.tile==="in-progress"||kn(ue.tile))?"in-progress":"todo";return{id:C,status:I,owner:"",target:null,depends:O>0?[d[O-1]]:[],phases:_,blockers:[],done:U,total:M,tone:Qd(I,[])}}),m=g.filter(C=>kn(C.tile)).length,E=g.length;return{slug:a,kind:"plan",branch:null,originCommit:null,milestones:w,lanes:[{plan:a,done:m,total:E}],gates:[],blockers:[],kpis:{phasesDone:m,phasesTotal:E,milestonesDone:w.filter(C=>rn.has(C.status)).length,milestonesTotal:w.length,inProgress:g.filter(C=>C.tile==="in-progress").map(C=>C.ref),highRisk:0,next:(($=g.find(C=>!kn(C.tile)))==null?void 0:$.name)??""},board:Kd(w),runner:{running:null,staleBatch:null,lastStop:null,lastStopAt:null,stopReason:null,errors:[],next:null},detailError:null}}function xy(l,i,a){const d=l.milestones.flatMap(E=>E.phases).find(E=>E.ref===a);if(!d)return null;const f=i.find(E=>Ni(E.path)===d.plan),p=a.lastIndexOf("#"),g=(p>=0?a.slice(p+1):a).toLowerCase(),w=!!(f!=null&&f.phases&&Object.prototype.hasOwnProperty.call(f.phases,g)),m=w?f==null?void 0:f.phases[g]:void 0;return{title:m!=null&&m.title?m.title:d.name,text:typeof(m==null?void 0:m.text)=="string"&&m.text.length>0?m.text:null,hasSection:w,planPath:(f==null?void 0:f.path)??null,key:g,phase:d}}function Em(l){return Ze(ke(l).plans).map(i=>ke(i)).filter(i=>!i.error&&!["done","closed","archived"].includes(Z(i.status).toLowerCase())).map(i=>{const a={};for(const[d,f]of Object.entries(ke(i.phases))){const p=ke(f);a[d]=typeof p.text=="string"?{title:Z(p.title),text:p.text}:{title:Z(p.title)}}return{path:Z(i.path),title:Z(i.title)||Z(i.path),rows:Ze(i.tracker).map(d=>{const f=ke(d),p=Z(f.phase);return{phase:p,status:Z(f.status),state:jm(f.state),key:Z(f.key)||Yd(p),milestone:Z(f.milestone).trim()||null}}),phases:a,open:Ar(i.open_rows),changedAt:typeof i.changed_at=="number"&&Number.isFinite(i.changed_at)?i.changed_at:null,overlay:km(i.overlay)}})}function Cm(l){return Ze(ke(ke(l.plans).done).plans).map(i=>ke(i)).filter(i=>!i.error&&Z(i.path)).map(i=>({path:Z(i.path),title:Z(i.title)||Z(i.path),closedAt:typeof i.closed_at=="number"&&Number.isFinite(i.closed_at)?i.closed_at:null,phases:Ar(i.phases),pr:typeof i.pr=="number"&&Number.isInteger(i.pr)&&i.pr>0?Si(l,[i.pr])[0]??null:null}))}function Gd(l){const i=ke(l.roadmaps),a=Mt(l.error)??Mt(i.error),d=[],f=[];for(const E of Ze(i.roadmaps)){const j=ke(E);Z(j.error)?f.push({slug:Z(j.roadmap),error:Z(j.error)}):Z(j.roadmap)&&d.push(_m(l,j))}const p=Em(l.plans),g=new Set(d.flatMap(E=>E.lanes.map(j=>j.plan))),w=p.filter(E=>E.rows.length>0&&E.open>0&&!g.has(Ni(E.path))),m={roadmaps:d,errors:f,plans:p,otherPlans:w,repoError:a,done:Cm(l)};return d.length||f.length?{mode:"roadmaps",...m}:a&&!l.roadmaps&&!l.plans?{mode:"error",...m}:p.length?{mode:"plans",...m}:{mode:a?"error":"none",...m}}const Sy=l=>l.mode==="roadmaps"&&l.roadmaps.length===1&&l.errors.length===0;function Ny(l){const i=l.milestones.flatMap(g=>g.phases).filter(g=>g.tile==="blocked").length,{phasesDone:a,phasesTotal:d}=l.kpis,f=l.gates.length?"wait":i?"block":d&&a>=d?"done":l.kpis.inProgress.length||a?"prog":"todo",p=l.runner;return{slug:l.slug,branch:l.branch,milestonesDone:l.kpis.milestonesDone,milestonesTotal:l.kpis.milestonesTotal,phasesDone:a,phasesTotal:d,pct:d?Math.round(100*a/d):0,next:l.runner.next??"none ready",runner:p.running||p.stopReason==="running"?"running":p.stopReason?`stopped: ${p.stopReason}`:"idle",gates:l.gates.length,dots:l.milestones.map(g=>({id:g.id,status:g.status})),tone:f}}function $m(l){const i=[];for(const a of Gd(l).roadmaps){const d=new Map(a.milestones.map(f=>[f.id,f.status]));for(const f of a.milestones)rn.has(f.status)||!f.depends.every(p=>rn.has(d.get(p)??""))||f.blockers.filter(p=>p.type==="owner-gate").forEach((p,g)=>i.push({roadmap:a.slug,milestone:f.id,reason:p.reason,check:p.check,id:`${a.slug}:${f.id}:${g}`}))}return i}const Tm=l=>l.roadmaps.reduce((i,a)=>i+a.gates.length,0),Lc=(l,i)=>l.toLowerCase().includes(i);function _y(l,i){const a=i.trim().toLowerCase();if(!a)return null;const d={milestones:new Set,phases:new Set,count:0};for(const f of l.milestones){const p=Lc([f.id,f.status,f.owner,f.target??""].join(" "),a);let g=!1;for(const w of f.phases){const m=Lc([w.ref,w.name,w.model,w.lane,w.risk,w.tracker,w.prs.map(E=>`#${E.number}`).join(" ")].join(" "),a);(m||p)&&(d.phases.add(w.ref),g=!0),m&&(d.count+=1)}p&&(d.count+=1),(p||g)&&d.milestones.add(f.id)}return d}function Pm(l){const i=Tm(Gd(l));return i>0?`Roadmap · ${i} gate${i===1?"":"s"}`:"Roadmap"}const zm=l=>!l.sources.collector.ok||l.sources.collector.stale,Rm=24*3600;function Lm(l){if(!l)return"";const i=ke(l),a=typeof i.count=="number"?i.count:0;return i.state==="on"?a===1?" · 1 plan from a PR branch":a>1?` · ${a} plans from PR branches`:"":i.state==="off"?` · branch progress off (${Z(i.reason)||"unknown"})`:""}function jy(l,i){const a=ke(l),d=Z(a.source);if(!d)return null;if(d==="working-tree")return{text:"Plans from the working tree (no origin branch found)",old:!1};const f=Z(a.commit).slice(0,7),p=typeof a.commit_at=="number"?a.commit_at:null,g=typeof a.fetched_at=="number"?a.fetched_at:null;return{text:`Plans from ${d}`+(f?` @ ${f}`:"")+(p!==null?` · commit ${nn(new Date(p*1e3).toISOString(),i)}`:"")+(g===null?" · fetch time unknown":` · last fetch ${nn(new Date(g*1e3).toISOString(),i)}`)+Lm(a.overlay),old:g!==null&&i/1e3-g>Rm}}const bd="caddis.hub.roadmapView";function Ey(l){if(!l)return"timeline";try{return l.getItem(bd)==="board"?"board":"timeline"}catch{return"timeline"}}function Cy(l,i){if(l)try{l.setItem(bd,i)}catch{}}const Dc={waiting:"Waiting","owner-gate":"Owner gate",blocked:"Blocked","blocked-merge":"Blocked merge",coordinator:"Coordinator",hub:"Hub"},Dm={collector:"Roadmap and relay data",agents:"Session list",github:"GitHub data",coordinator:"Coordinator data"},Kn=l=>Array.isArray(l)?l:[],Ct=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},ot=l=>typeof l=="string"&&l?l:null,Yn=l=>typeof l=="number"&&Number.isFinite(l)?l:null,Fr=l=>{var i;return((i=l.github)==null?void 0:i.repo)??l.name},Oc=l=>l.replace(/\\/g,"/").replace(/\/+$/,"").toLowerCase(),al=l=>l.agent&&l.agent!=="claude"?l.agent:null,xn=(l,i)=>!!l&&!!i&&Oc(l)===Oc(i);function Xd(l){var a;const i=[];for(const d of Kn((a=l.relays)==null?void 0:a.relays)){const f=Ct(d),p=ot(f.name),g=ot(f.status);!p||!g||i.push({name:p,status:g,statusArg:ot(f.status_arg)??"",updatedAt:ot(f.updated_at),nextStep:ot(f.next_step)})}return i}function Zd(l){return Array.isArray(l.owner_items)?l.owner_items:Xd(l).filter(i=>i.status==="OWNER-GATE"&&i.statusArg).map(i=>({id:`gate:${i.name}:${i.statusArg}`,what:`owner gate ${i.statusArg} (${i.name})`,pr:null,head_sha:null,source:"relay",recommendation:null,from:i.name,since:i.updatedAt,relay:i.name}))}function Ur(l){var a;const i=[];for(const d of Kn((a=l.coordinator)==null?void 0:a.queue)){const f=Ct(d),p=Yn(f.pr);if(p===null)continue;const g=[];for(const w of Kn(f.waits_on)){const m=Ct(w),E=Yn(m.pr);E!==null&&g.push({repo:ot(m.repo)??"",pr:E})}i.push({pr:p,headSha:ot(f.head_sha)??"",title:ot(f.title)??"",state:ot(f.state)??"waiting",whyWaiting:ot(f.why_waiting)??"",waitsOn:g,hotfix:f.hotfix===!0,held:f.held===!0,since:ot(f.entered_ready_at)})}return i}function Jd(l){var a;const i=(a=l.coordinator)==null?void 0:a.merging_now;return Yn(i)??Yn(Ct(i).pr)}function Om(l){const i=new Set,a=[];for(const d of l)d.waiting_class!=="owner"||i.has(d.session_id)||(i.add(d.session_id),a.push(d));return a}function Mm(l,i){var p,g;let a=null;for(const w of l.repos){const m=Fr(w);for(const E of Kn((p=w.coordinator)==null?void 0:p.deploy_checks)){const j=Ct(E),$=Date.parse(ot(j.at)??""),C=Yn(j.pr);if(Number.isNaN($)||C===null)continue;const O=ot(j.health);(!a||$>a.at)&&(a={at:$,label:`${m} #${C}`,ok:O==="ok"?!0:O==="failed"?!1:null,how:`health ${O??"unknown"}`})}for(const E of((g=w.github)==null?void 0:g.merges)??[]){const j=Date.parse(E.merged_at);if(Number.isNaN(j)||a&&a.at>=j)continue;const $=E.runs??[],C=$.some(_=>_.conclusion==="failure"),O=$.length>0&&$.every(_=>_.conclusion==="success");a={at:j,label:`${m} #${E.number}`,ok:C?!1:O?!0:null,how:C?"deploy failed":O?"deploy pass":"merged"}}}if(!a)return null;const d=Math.max(0,Math.round((i-a.at)/6e4)),f=d<60?`${d} min ago`:d<1440?`${Math.floor(d/60)} h ago`:`${Math.floor(d/1440)} d ago`;return{label:a.label,sub:`${f} · ${a.how}`,ok:a.ok}}function Im(l,i,a){var p;let d=0;for(const g of l.repos)(p=g.coordinator)!=null&&p.responding&&(d+=Ur(g).filter(w=>w.state!=="blocked").length);const f=l.sessions.filter(g=>!["idle","done","unknown"].includes(g.status)).length;return{waitingOnYou:a.filter(g=>g.folder==="needs").length,blockedMerges:a.filter(g=>g.kind==="blocked-merge").length,inQueue:d,workingSessions:f,lastDeploy:Mm(l,i)}}function Am(l){const i=new Date(l);return Number.isNaN(i.getTime())?"unknown":i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Mc=(l,i)=>{var a;return(a=l.github)!=null&&a.repo?`gh pr checks ${i} -R ${l.github.repo}`:`gh pr checks ${i}`};function Fm(l,i){var g,w;const a=[],d=new Set,f=m=>{d.has(m.id)||(d.add(m.id),a.push(m))},p=m=>l.repos.find(E=>xn(E.path,m));for(const m of Om(l.sessions)){const E=p(m.repo_path),j=m.name??m.session_id.slice(0,8),$=al(m);f({id:`waiting:${m.session_id}`,kind:"waiting",folder:"needs",repo:E?Fr(E):"no repo",title:`${j}${$?` (${$})`:""} waits on ${m.waiting_for??"you"}`,why:"The session cannot continue until you answer.",next:"Open the session and answer.",cmd:j,since:m.waiting_since,source:"agents"})}for(const m of l.repos){const E=Fr(m),j=Xd(m);for(const _ of Zd(m)){const U=_.relay?j.find(I=>I.name===_.relay):void 0,M=_.source==="relay"?(g=/^owner gate (\S+) /.exec(_.what))==null?void 0:g[1]:void 0;f({id:`owner:${m.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:E,repoPath:m.path,title:M?`Gate ${M}: owner approval needed`:`${_.pr!==null?`PR #${_.pr}: `:""}${_.what}`,why:_.source==="relay"?"The plan stops at this owner gate. The next phase cannot start without you.":"This is on the owner-only list. Only your click approves it.",next:(U==null?void 0:U.nextStep)??(_.source==="relay"?"Read the relay, then decide.":"Read the recommendation, then decide."),cmd:_.relay?`.caddis/relay/${_.relay}.md`:_.what,since:_.since,owner:_,source:_.source==="relay"?"collector":"coordinator"})}for(const _ of $m(m))f({id:`rmgate:${m.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:E,repoPath:m.path,title:`Roadmap ${_.roadmap}, gate ${_.milestone}: ${_.reason}`,why:`Milestone ${_.milestone} of roadmap ${_.roadmap} waits for you. Everything before it is done.`,next:"Decide, then record the gate in the roadmap with /caddis:roadmap (a docs PR).",cmd:_.check||"/caddis:roadmap",since:null,source:"collector"});for(const _ of j)_.status==="BLOCKED"&&_.statusArg.toLowerCase().startsWith("owner")&&f({id:`blocked:${m.path}:${_.name}`,kind:"blocked",folder:"needs",repo:E,repoPath:m.path,title:`Relay ${_.name}: STATUS: BLOCKED owner`,why:"The relay says the owner must decide before the next step.",next:_.nextStep??"Read the relay and decide.",cmd:`.caddis/relay/${_.name}.md`,since:_.updatedAt,source:"collector"});const $=!!m.coordinator&&m.coordinator.responding;for(const _ of Ur(m))_.state==="blocked"&&f({id:`merge:${m.path}:${_.pr}`,kind:"blocked-merge",folder:"blocked",repo:E,repoPath:m.path,title:`PR #${_.pr}${_.title?` ${_.title}`:""}: blocked`,why:_.whyWaiting||"The coordinator skips it until it is unblocked.",next:"Ask the PR session to fix it, or hold the PR.",cmd:Mc(m,_.pr),since:_.since,queue:{pr:_.pr,headSha:_.headSha,hotfix:_.hotfix,held:_.held},source:"coordinator"});const C=new Map(Ur(m).map(_=>[_.pr,_]));for(const _ of((w=m.github)==null?void 0:w.prs)??[]){if(_.draft||_.required_state!=="fail")continue;const U=_.checks.filter(I=>I.required&&I.conclusion==="failure").map(I=>I.name),M=C.get(_.number);f({id:`merge:${m.path}:${_.number}`,kind:"blocked-merge",folder:"blocked",repo:E,repoPath:m.path,title:`PR #${_.number}: required check ${U.length>0?`${U.join(", ")} `:""}failed`,why:$?"The coordinator skips it until the check passes at the head.":"This repo has no live coordinator, so its session merges its own PRs.",next:"Fix the check in the PR session.",cmd:Mc(m,_.number),since:_.updated_at,...M?{queue:{pr:M.pr,headSha:M.headSha,hotfix:M.hotfix,held:M.held}}:{},source:"github"})}const O=m.coordinator;O&&!O.responding&&O.heartbeat_at&&O.status!=="stopped"&&f({id:`coordinator:${m.path}`,kind:"coordinator",folder:"needs",repo:E,repoPath:m.path,title:`Coordinator not responding since ${Am(O.heartbeat_at)}`,why:"No heartbeat for 3 min. Its queue is frozen; the lane shows GitHub data.",next:"Check the coordinator session, then restart it.",cmd:"/caddis:coordinate",since:O.heartbeat_at,source:"coordinator"})}for(const m of["collector","agents","github","coordinator"]){const E=l.sources[m];E.ok||!E.stale||f({id:`hub:${m}`,kind:"hub",folder:"needs",repo:"hub",title:`${Dm[m]} has failed for over 3 min`,why:E.last_error??"The source has not answered.",next:"Read the error. The hub keeps the last good data.",cmd:"caddis hub status",since:E.last_ok_at})}return{items:a,tiles:Im(l,i,a)}}const Um=24*36e5,Hm=()=>({open:{},resolved:[]}),Bm=(l,i)=>{var d;const a=(d=l.sources)==null?void 0:d[i];return!!a&&(!a.ok||a.stale)};function Wm(l,i){var d;if(!i.repoPath)return!1;const a=(d=l.repos)==null?void 0:d.find(f=>xn(f.path,i.repoPath));if(!a)return!1;if(i.source==="github"){const f=a.github;return!!f&&typeof f.error=="string"&&!Array.isArray(f.prs)}if(i.source==="collector"){const f=Ct(a.relays);return(typeof a.error=="string"||typeof f.error=="string")&&!Array.isArray(f.relays)}return!1}function Ic(l,i,a){const d=new Set(i.map(p=>p.id)),f=i.map(p=>p.stale?{...p,stale:!1}:p);for(const[p,g]of Object.entries(l))d.has(p)||!g.source||!Bm(a,g.source)&&!Wm(a,g)||f.push({...g,stale:!0});return f}function Vm(l,i,a){const d=new Map(i.map(p=>[p.id,p])),f=l.resolved.filter(p=>a-p.resolvedAt<Um&&!d.has(p.item.id));for(const[p,g]of Object.entries(l.open))!d.has(p)&&!f.some(w=>w.item.id===p)&&f.push({item:g,resolvedAt:a});return f.sort((p,g)=>g.resolvedAt-p.resolvedAt),{open:Object.fromEntries(d),resolved:f}}function Ac(l){const i=Ct(l);return typeof i.id=="string"&&typeof i.title=="string"&&typeof i.kind=="string"&&typeof i.folder=="string"}function qm(l){const i=Ct(l),a={};for(const[f,p]of Object.entries(Ct(i.open)))Ac(p)&&(a[f]=p);const d=[];for(const f of Kn(i.resolved)){const p=Ct(f),g=Yn(p.resolvedAt);Ac(p.item)&&g!==null&&d.push({item:p.item,resolvedAt:g})}return{open:a,resolved:d}}const Fc="Start a session in the folder: the hub adds it.";function ef(){return c.jsxs("section",{className:"first-run","data-testid":"first-run","aria-label":"Get started",children:[c.jsx("h2",{children:"No repos yet"}),c.jsxs("p",{children:[c.jsx(Td,{size:16,"aria-hidden":"true"})," Start a Claude Code session in a repo. The hub finds it by itself."]}),c.jsx("p",{children:"Or add a folder. The hub checks that it is a git repo."}),c.jsxs("button",{type:"button",className:"btn",disabled:!0,title:Fc,"data-testid":"add-folder",children:[c.jsx(Vh,{size:16,"aria-hidden":"true"}),"Add a folder"]}),c.jsxs("span",{className:"first-run-reason",children:[" ",Fc]})]})}const Or={size:15,"aria-hidden":!0};function tf({tiles:l,stale:i=!1}){const a=l.lastDeploy,d=a?a.ok===!0?"ok":a.ok===!1?"failed":"unknown":null;return c.jsxs("div",{className:`kpi-strip${i?" stale":""}`,"data-testid":"tiles","data-stale":i?"true":void 0,children:[c.jsx(Et,{content:`${l.waitingOnYou}: items in Needs you that wait on your answer`,children:c.jsxs("div",{className:`kpi-tile${l.waitingOnYou>0?" urgent":""}`,tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(lm,{...Or}),"Waiting on you"]}),c.jsx("span",{className:"kpi-num accent","data-testid":"tile-waiting",children:l.waitingOnYou})]})}),c.jsx(Et,{content:`${l.blockedMerges}: PRs with a failed required check or blocked in the queue`,children:c.jsxs("div",{className:`kpi-tile${l.blockedMerges>0?" danger":""}`,tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(Fh,{...Or}),"Blocked merges"]}),c.jsx("span",{className:"kpi-num bad","data-testid":"tile-blocked",children:l.blockedMerges})]})}),c.jsx(Et,{content:`${l.inQueue}: PRs in the merge queue`,children:c.jsxs("div",{className:"kpi-tile",tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(qh,{...Or}),"In merge queue"]}),c.jsx("span",{className:"kpi-num","data-testid":"tile-queue",children:l.inQueue})]})}),c.jsx(Et,{content:`${l.workingSessions}: sessions that are working now`,children:c.jsxs("div",{className:"kpi-tile",tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(Td,{...Or}),"Working sessions"]}),c.jsx("span",{className:"kpi-num","data-testid":"tile-working",children:l.workingSessions})]})}),c.jsx(Et,{content:a?`Last prod deploy: ${a.label}. ${a.sub}. State: ${d}`:"No prod deploy is known yet",children:c.jsxs("div",{className:"kpi-tile deploy",tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(em,{...Or}),"Last prod deploy"]}),a?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:`kpi-val ${a.ok===!0?"tone-good":a.ok===!1?"tone-bad":""}`,children:a.label}),c.jsx("span",{className:"kpi-sub tone-muted",children:a.sub})]}):c.jsx("span",{className:"kpi-val tone-muted",children:"No deploy yet"})]})})]})}const Qm=[{id:"needs",label:"Needs you",Icon:id},{id:"approvals",label:"Approvals",Icon:tm},{id:"blocked",label:"Blocked",Icon:nm},{id:"resolved",label:"Resolved, 24 h",Icon:Ih}];function Uc({iso:l,nowMs:i,focusable:a=!1}){const d=Km(l,i);return l?c.jsx(Et,{content:Wd(l),children:c.jsx("time",{dateTime:l,tabIndex:a?0:void 0,children:d})}):c.jsx(c.Fragment,{children:d})}const Km=(l,i)=>l?nn(l,i).replace(/ ago$/,""):"unknown";function Ym(l){var i;try{(i=navigator.clipboard)==null||i.writeText(l)}catch{}}function Gm(l,i){return l?i.owner?Od(l,i.owner):i.queue?xi(l,i.queue):[]:[]}function bm({state:l,nowMs:i,api:a,act:d}){const[f,p]=B.useState("needs"),[g,w]=B.useState(null),[m,E]=B.useState(!1),[j,$]=B.useState(!1),{model:C,resolved:O,read:_}=a,U={needs:C.items.filter(L=>L.folder==="needs").length,approvals:C.items.filter(L=>L.folder==="approvals").length,blocked:C.items.filter(L=>L.folder==="blocked").length,resolved:O.length},M=f==="resolved"?O.map(L=>({item:L.item,resolved:!0,since:new Date(L.resolvedAt).toISOString()})):C.items.filter(L=>L.folder===f).map(L=>({item:L,resolved:!1,since:L.since})),I=M.find(L=>L.item.id===g)??M[0]??null,ue=L=>{p(L),w(null),E(!1)},J=L=>{w(L.item.id),E(!0),L.resolved||a.markRead(L.item.id)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"Inbox"}),c.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&c.jsx(ef,{}),c.jsx(tf,{tiles:C.tiles,stale:gi(l)}),a.notify.supported&&c.jsxs("div",{className:"notify-row",children:[c.jsxs("button",{type:"button",className:"btn",onClick:a.notify.enable,disabled:a.notify.enabled,children:[c.jsx(id,{size:16,"aria-hidden":"true"}),a.notify.enabled?"Notifications on":"Notify me"]}),c.jsx("span",{children:a.notify.enabled?"One browser notification per new item.":"Opt in to a browser notification for each new item."})]}),c.jsxs("div",{className:`mailbox${m&&I?" show-detail":""}`,children:[c.jsx("div",{className:"mailbox-folders",role:"tablist","aria-label":"Folders",children:Qm.map(({id:L,label:ae,Icon:pe})=>c.jsxs("button",{type:"button",role:"tab","aria-selected":f===L,className:`folder-btn${f===L?" sel":""}`,onClick:()=>ue(L),"data-testid":`folder-${L}`,children:[c.jsx(pe,{size:16,"aria-hidden":"true"}),c.jsx("span",{children:ae}),c.jsx("strong",{children:U[L]})]},L))}),c.jsxs("div",{className:"mailbox-list","data-testid":"inbox-list",children:[M.map(L=>{const ae=!L.resolved&&!_.has(L.item.id);return c.jsxs("button",{type:"button",className:`item-btn${(I==null?void 0:I.item.id)===L.item.id?" sel":""}`,onClick:()=>J(L),"data-testid":"inbox-item",children:[c.jsx("span",{className:`unread-dot${ae?" on":""}`,role:"img","aria-label":ae?"Unread":"Read"}),c.jsxs("span",{className:"item-main",children:[c.jsxs("span",{className:"item-meta",children:[c.jsx("span",{className:`chip chip-${L.resolved?"resolved":L.item.kind}`,children:L.resolved?"Resolved":Dc[L.item.kind]}),c.jsx("span",{className:"mono",children:L.item.repo}),c.jsxs("span",{children:["· ",c.jsx(Uc,{iso:L.since,nowMs:i})]}),!L.resolved&&L.item.stale&&c.jsx("span",{className:"chip chip-stale","data-testid":"stale-chip",title:"Its source is failing. Last good data is shown.",children:"stale"})]}),c.jsx("span",{className:"item-title",children:L.item.title})]})]},L.item.id)}),M.length===0&&c.jsxs("div",{className:"list-empty","data-testid":"inbox-empty",children:[c.jsx("strong",{children:f==="resolved"?"Nothing resolved in the last 24 h":"Nothing needs you"}),c.jsxs("div",{children:["Last check ",nn(l.generated_at,i),"."]})]})]}),I&&c.jsxs("article",{className:"mailbox-detail","data-testid":"inbox-detail","aria-label":"Item detail",children:[c.jsxs("button",{type:"button",className:"btn back-btn",onClick:()=>E(!1),children:[c.jsx(Ah,{size:16,"aria-hidden":"true"}),"Back"]}),c.jsxs("span",{className:"item-meta",children:[c.jsx("span",{className:`chip chip-${I.resolved?"resolved":I.item.kind}`,children:I.resolved?"Resolved":Dc[I.item.kind]}),c.jsx("span",{className:"mono",children:I.item.repo}),c.jsxs("span",{children:["· ",I.resolved?"resolved":"since"," ",c.jsx(Uc,{iso:I.since,nowMs:i,focusable:!0})]}),!I.resolved&&I.item.stale&&c.jsx("span",{className:"chip chip-stale",children:"stale"})]}),c.jsx("h2",{children:I.item.title}),c.jsxs("div",{className:"detail-block",children:[c.jsx("span",{className:"detail-label",children:"Why it matters"}),c.jsx("span",{children:I.resolved?"The source cleared. No action is needed.":I.item.why})]}),!I.resolved&&I.item.owner&&c.jsx(Hd,{item:I.item.owner}),c.jsxs("div",{className:"detail-block",children:[c.jsx("span",{className:"detail-label",children:"Next step"}),c.jsx("span",{children:I.resolved?"Nothing.":I.item.next}),c.jsx("code",{className:"cmd",children:I.item.cmd})]}),c.jsx("div",{className:"detail-actions",children:c.jsxs("button",{type:"button",className:"btn",onClick:()=>{Ym(I.item.cmd),$(!0),window.setTimeout(()=>$(!1),1500)},children:[j?c.jsx(Hh,{size:16,"aria-hidden":"true"}):c.jsx(pd,{size:16,"aria-hidden":"true"}),I.item.kind==="waiting"?"Copy session name":"Copy command"]})}),!I.resolved&&(()=>{const L=l.repos.find(je=>xn(je.path,I.item.repoPath)),ae=Gm(L,I.item);if(!L||ae.length===0)return null;const pe=I.item.owner?Ad(L,I.item.owner):void 0;return c.jsx(il,{repo:L,specs:ae,act:d,reason:pe})})()]})]})]})}const nf="caddis-hub-inbox-history",Hc="caddis-hub-inbox-read",tl="caddis-hub-inbox-notified",Bc="caddis-hub-inbox-notify",rf="caddis-hub-lanes-folded";function on(){try{return window.localStorage}catch{return null}}function _i(l,i){try{const a=i==null?void 0:i.getItem(l);return a?JSON.parse(a):null}catch{return null}}function ji(l,i,a){try{a==null||a.setItem(l,JSON.stringify(i))}catch{}}const Xm=(l=on())=>{const i=_i(nf,l);return i?qm(i):Hm()},Zm=(l,i=on())=>ji(nf,l,i);function ui(l,i=on()){const a=_i(l,i);return new Set(Array.isArray(a)?a.filter(d=>typeof d=="string"):[])}function ci(l,i,a=on()){ji(l,[...i].slice(-500),a)}const Jm={items:[],tiles:{waitingOnYou:0,blockedMerges:0,inQueue:0,workingSessions:0,lastDeploy:null}},di=()=>typeof window<"u"&&"Notification"in window;function eg(l,i){const a=B.useMemo(()=>l?Fm(l,i):Jm,[l,i]),[d,f]=B.useState(()=>Xm()),p=B.useMemo(()=>{if(!l)return a;const C=Ic(d.open,a.items,l),O=_=>C.filter(_).length;return{items:C,tiles:{...a.tiles,waitingOnYou:O(_=>_.folder==="needs"),blockedMerges:O(_=>_.kind==="blocked-merge")}}},[l,a,d.open]),[g,w]=B.useState(()=>ui(Hc)),[m,E]=B.useState(()=>{var C;try{return di()&&((C=on())==null?void 0:C.getItem(Bc))==="1"&&Notification.permission==="granted"}catch{return!1}});B.useEffect(()=>{l&&f(C=>{const O=Vm(C,Ic(C.open,a.items,l),Date.now());return Zm(O),O})},[l,a]),B.useEffect(()=>{if(!m||!l)return;const C=ui(tl);let O=!1;for(const _ of p.items)if(!C.has(_.id)){C.add(_.id),O=!0;try{new Notification(`caddis hub: ${_.repo}`,{body:_.title,tag:_.id})}catch{}}O&&ci(tl,C)},[m,l,p]);const j=B.useCallback(C=>{w(O=>{if(O.has(C))return O;const _=new Set(O).add(C);return ci(Hc,_),_})},[]),$=B.useCallback(()=>{di()&&Notification.requestPermission().then(C=>{var _;if(C!=="granted")return;try{(_=on())==null||_.setItem(Bc,"1")}catch{}const O=ui(tl);for(const U of p.items)O.add(U.id);ci(tl,O),E(!0)})},[p]);return{model:p,resolved:d.resolved,read:g,markRead:j,notify:{supported:di(),enabled:m,enable:$}}}function tg(l){const i=l.replace(/^#\/?/,"").split("/"),a=i[0];if(a==="overview")return{page:"overview"};if(a==="activity")return{page:"activity"};if(a==="guide")try{const d=i[1]==="details"||i[1]==="wall"||i[1]==="map"?i[1]:"poster",f=i[2]?decodeURIComponent(i[2]):null;return{page:"guide",tab:d,item:f}}catch{return{page:"inbox"}}if(a==="repo"&&i[1])try{const d=i[2]==="roadmap"||i[2]==="sessions"?i[2]:"flow",f=d==="roadmap"&&i[3]?decodeURIComponent(i[3]):null;return{page:"repo",id:decodeURIComponent(i[1]),tab:d,roadmap:f}}catch{return{page:"inbox"}}return{page:"inbox"}}const ul=l=>l.repo_id??l.path,ll=l=>`#/repo/${encodeURIComponent(l)}`;function ng(l,i,a){return i==="flow"?ll(l):`${ll(l)}/${i}${i==="roadmap"&&a?`/${encodeURIComponent(a)}`:""}`}function rg(l,i){return l==="poster"?"#/guide":l==="wall"?"#/guide/wall":l==="map"?"#/guide/map":`#/guide/details${i?`/${encodeURIComponent(i)}`:""}`}const Wc="No coordinator: each session merges its own PRs.",og="/caddis:coordinate",lg="gh auth login -h github.com",of=l=>{const i=l?new Date(l):null;return i&&!Number.isNaN(i.getTime())?i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"unknown"},Vc=l=>`Coordinator not responding since ${of(l)}`,qc=l=>`Coordinator stopped at ${of(l)}`;function sg(l,i){const a=l?Date.parse(l):NaN;if(Number.isNaN(a))return"unknown";const d=Math.max(0,Math.round((i-a)/6e4));return d<60?`${d} min ago`:d<1440?`${Math.floor(d/60)} h ago`:`${Math.floor(d/1440)} d ago`}const ig=(l,i,a)=>l==="waiting"?{sub:`waiting: ${i??"unknown"}`,tone:a==="peer"?"muted":"warn"}:l==="busy"||l==="running"||l==="working"?{sub:"busy",tone:"good"}:{sub:l,tone:"muted"},fi=(l,i)=>{const a=l.whyWaiting||l.state,d=[l.hotfix?"hotfix":"",l.held&&!a.includes("held")?"held":"",a].filter(Boolean);return{key:`q${l.pr}`,title:`#${l.pr} ${l.title}`.trim(),sub:i?"last known queue":d.join(" · "),tone:l.hotfix||l.held?"warn":"muted",grey:i,queue:{pr:l.pr,headSha:l.headSha,hotfix:l.hotfix,held:l.held}}};function ag(l,i,a){var J,L,ae,pe,je;const d=i.coordinator,f=d?d.status==="stopped"?"stopped":d.responding?"coordinator":"down":"none",p=Fr(i),g=l.sessions.filter(G=>xn(G.repo_path,i.path)).map(G=>{const re=ig(G.status,G.waiting_for,G.waiting_class),$e=al(G);return{key:`s${G.session_id}`,title:G.name??G.session_id.slice(0,8),sub:$e?`${$e} · ${re.sub}`:re.sub,tone:re.tone}}),w=[],m=new Set;for(const G of((J=i.github)==null?void 0:J.prs)??[]){if(G.draft||G.required_state!=="fail")continue;const re=G.checks.filter($e=>$e.required&&$e.conclusion==="failure").map($e=>$e.name);m.add(G.number),w.push({key:`b${G.number}`,title:`#${G.number} ${G.title}`,sub:re.length>0?`${re.join(", ")} failed`:"required check failed",tone:"bad"})}const E=Ur(i),j=[],$=[];if(f==="coordinator"){const G=Jd(i);for(const re of E)re.state==="blocked"?m.has(re.pr)||(m.add(re.pr),w.push({key:`b${re.pr}`,title:`#${re.pr} ${re.title}`.trim(),sub:re.whyWaiting||"blocked",tone:"bad"})):re.state==="merging"||re.pr===G?$.push(fi(re,!1)):j.push(fi(re,!1))}else if(f==="down"||f==="stopped")for(const G of E)G.state!=="blocked"&&j.push(fi(G,!0));const C=(((L=i.github)==null?void 0:L.merges)??[]).slice().sort((G,re)=>Date.parse(re.merged_at)-Date.parse(G.merged_at)).slice(0,3).map(G=>{const re=G.runs??[],$e=re.some(Oe=>Oe.conclusion==="failure"),wt=re.length>0&&re.every(Oe=>Oe.conclusion==="success"),Ve=sg(G.merged_at,a);return{key:`d${G.number}`,title:`#${G.number} ${G.title}`,sub:$e?`deploy failed · ${Ve}`:wt?`deployed ${Ve}`:`merged ${Ve}`,tone:$e?"bad":wt?"good":"muted"}});let O=null;f==="none"?O=`${Wc} Start one with ${og}.`:f==="down"?O=`${Vc((d==null?void 0:d.heartbeat_at)??null)}. The lane shows GitHub data; the last known queue is greyed.`:f==="stopped"&&(O=`${qc((d==null?void 0:d.stopped_at)??null)}. Each session merges its own PRs until one starts again (/caddis:coordinate). The last known queue is greyed.`);const _=(ae=l.sources)!=null&&ae.agents?!l.sources.agents.ok:!1,U=(pe=i.github)!=null&&pe.error?{account:i.github.account??null,error:i.github.error,command:lg}:null;let M;f==="down"?M=Vc((d==null?void 0:d.heartbeat_at)??null):f==="stopped"?M=qc((d==null?void 0:d.stopped_at)??null):M=[f==="none"?"No coordinator":"",_?"sessions unknown":g.length>0?`${g.length} session${g.length===1?"":"s"}`:"no sessions running",w.length>0?`${w.length} blocked`:"",j.length>0?`${j.length} waiting`:"",$.length>0?`${$.length} merging`:"",C.length>0?`${C.length} deployed`:""].filter(Boolean).join(" · ");const I=l.sessions.some(G=>xn(G.repo_path,i.path)&&G.waiting_class==="owner"),ue=f==="down"||i.error||(je=i.github)!=null&&je.error?"blocked":I?"attention":f==="none"||f==="stopped"?"idle":"ok";return{id:i.path,name:p,mode:f,tone:ue,note:O,github:U,summary:M,columns:[{id:"sessions",title:"Sessions",cards:g,emptyText:_?'Sessions unknown: "claude agents" failed':"No sessions running"},{id:"blocked",title:"Blocked",cards:w,emptyText:"None"},{id:"waiting",title:"Waiting for its turn",cards:j,emptyText:f==="none"?Wc:"None"},{id:"merging",title:"Merging now",cards:$,emptyText:"None"},{id:"done",title:"Done and deployed",cards:C,emptyText:"None"}]}}const ug=(l,i)=>l.repos.map(a=>ag(l,a,i)),cg={ok:"ok: nothing needs attention",attention:"attention: something waits on an answer",blocked:"blocked: a merge or check is failing",idle:"idle: no sessions or PRs are active"};function dg(l){const i=l.queue;return c.jsxs(c.Fragment,{children:[c.jsx("strong",{children:l.title}),c.jsx("span",{children:l.sub}),i&&c.jsxs("span",{className:"mono",children:["#",i.pr," · head ",i.headSha.slice(0,7),i.hotfix?" · hotfix":"",i.held?" · held":""]})]})}const fg="None",nl=l=>l.cards.length===0&&l.emptyText===fg,pg={ok:"var(--green)",attention:"var(--mk-warn)",blocked:"var(--mk-bad)",idle:"var(--text-dim)"};function hg(){const l=_i(rf,on());return l&&typeof l=="object"&&!Array.isArray(l)?l:{}}function mg({state:l,nowMs:i,api:a,act:d}){const[f,p]=B.useState(()=>hg()),g=ug(l,i),w=m=>{p(E=>{const j={...E,[m]:!E[m]};return ji(rf,j,on()),j})};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"Overview"}),c.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&c.jsx(ef,{}),c.jsx(tf,{tiles:a.model.tiles,stale:gi(l)}),c.jsx("div",{className:`lanes${gi(l)?" stale":""}`,"data-testid":"lanes",children:g.map(m=>{const E=!f[m.id],j=l.repos.find($=>xn($.path,m.id));return c.jsxs("section",{className:`lane ${m.mode}`,"data-testid":"lane","aria-label":m.name,children:[c.jsxs("div",{className:"lane-headrow",children:[c.jsx(Et,{content:cg[m.tone],children:c.jsxs("button",{type:"button",className:"lane-head","aria-expanded":E,onClick:()=>w(m.id),children:[c.jsx("span",{"aria-hidden":"true",style:{width:9,height:9,borderRadius:"50%",background:pg[m.tone],flexShrink:0}}),c.jsx("span",{className:"lane-name",children:m.name}),c.jsx("span",{className:"lane-summary","data-testid":"lane-summary",children:m.summary}),c.jsx(Bh,{className:"chev",size:18,"aria-hidden":"true",style:{transform:E?"rotate(180deg)":"none"}})]})}),j&&c.jsx("a",{className:"lane-open",href:ll(ul(j)),children:"Open repo"})]}),E&&c.jsxs("div",{className:"lane-body",children:[m.github&&c.jsxs("div",{className:"lane-note gh-fail","data-testid":"gh-fail",role:"status",children:["GitHub access failed for ",m.github.account?`account ${m.github.account}`:"this repo",m.github.error?` (${m.github.error})`:"",". Sign in again with"," ",c.jsx("code",{className:"cmd",children:m.github.command})]}),m.note&&c.jsx("div",{className:"lane-note","data-testid":"lane-note",children:m.note}),c.jsx("div",{className:"lane-cols",children:m.columns.map($=>c.jsxs("div",{className:`lane-col${nl($)?" empty":""}`,"data-testid":`col-${$.id}`,children:[c.jsxs("span",{className:"col-title",children:[$.title," · ",$.cards.length]}),$.cards.map(C=>c.jsx(Et,{content:dg(C),children:c.jsxs("div",{className:`card${C.grey?" grey":""}`,"data-testid":"lane-card",tabIndex:0,children:[c.jsx("span",{className:"card-title",children:C.title}),c.jsx("span",{className:`card-sub tone-${C.tone}`,children:C.sub}),j&&C.queue&&c.jsx(il,{repo:j,specs:xi(j,C.queue),act:d,compact:!0})]})},C.key)),$.cards.length===0&&!nl($)&&c.jsx("span",{className:"col-empty",children:$.emptyText})]},$.id))}),m.columns.some(nl)&&c.jsxs("span",{className:"lane-empty-line","data-testid":"lane-empty-line",children:["Empty: ",m.columns.filter(nl).map($=>$.title).join(", ")]})]})]},m.id)})})]})}const gg=["D1","D2","D3","D4","D5"],sl=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{};function yg(l){const i=(a,d)=>{if(a.state==="merging")return[0,0,0,"",d];const f=a.hotfix?1:2;return a.state==="ready"&&!a.held?[f,0,a.since?0:1,a.since??"",d]:[f,1,0,"",d]};return l.map((a,d)=>({q:a,r:i(a,d)})).sort((a,d)=>{for(let f=0;f<a.r.length;f++){const p=a.r[f],g=d.r[f];if(p<g)return-1;if(p>g)return 1}return 0}).map(a=>a.q)}function lf(l){const i=l.coordinator;return i?i.status==="stopped"?"stopped":i.responding?"live":"down":"none"}function vg(l){const i=l.coordinator,a=typeof sl(i==null?void 0:i.coordinator_session).name=="string"?String(sl(i==null?void 0:i.coordinator_session).name):null;switch(lf(l)){case"none":return"No coordinator: each session merges its own PRs. Start one with /caddis:coordinate.";case"stopped":return`Coordinator stopped at ${Ir(i==null?void 0:i.stopped_at)}. The last known queue is greyed.`;case"down":return`Coordinator not responding since ${Ir(i==null?void 0:i.heartbeat_at)}. The last known queue is greyed.`;case"live":return`Coordinator ${a??""} live, heartbeat ${Ir(i==null?void 0:i.heartbeat_at)}.`.replace(" "," ")}}function wg(l){var a;const i=[];for(const d of Kn((a=l.coordinator)==null?void 0:a.deploy_checks)){const f=sl(d);if(typeof f.pr!="number")continue;const p=sl(f.checks),g=Object.keys(p).length?gg.map(w=>({name:w,mark:typeof p[w]=="string"?String(p[w]):"skip"})):null;i.push({pr:f.pr,mergeSha:typeof f.merge_sha=="string"?f.merge_sha.slice(0,10):"",run:typeof f.deploy_run=="number"?f.deploy_run:null,health:typeof f.health=="string"?f.health:"unknown",at:typeof f.at=="string"?f.at:null,checks:g,reason:typeof f.reason=="string"&&f.reason?f.reason:null})}return i.reverse()}function kg(l,i){var g,w;const a=lf(i),d=Jd(i),f=yg(Ur(i)),p=new Set(f.map(m=>m.pr));return{mode:a,statusText:vg(i),grey:a==="stopped"||a==="down",merging:a==="live"?d:null,queue:f.map((m,E)=>({...m,position:E+1,merging:m.state==="merging"||m.pr===d})),deploys:wg(i),owner:Zd(i),unqueued:(((g=i.github)==null?void 0:g.prs)??[]).filter(m=>!m.draft&&!p.has(m.number)).map(m=>({number:m.number,title:m.title,requiredState:m.required_state,headSha:m.head_sha})),requests:[...((w=i.coordinator)==null?void 0:w.requests)??[]].reverse()}}const xg=B.createContext(null),Qc={waiting:0,busy:1,working:1,idle:2},Sg=l=>({key:l.key,name:l.name??l.session_id,kind:l.kind,agent:al(l),status:l.status,waitingFor:l.waiting_for,waitingClass:l.waiting_class,since:l.waiting_since,copies:l.copies,copyWarning:l.copies>1?`${l.copies} copies`:null});function Ng(l,i){const a=l.sources.agents,d=!a.ok&&a.last_ok_at===null,f=l.sessions.filter(g=>xn(g.repo_path,i.path)&&(!d||al(g)!==null)).map(Sg).sort((g,w)=>+(w.waitingClass==="owner")-+(g.waitingClass==="owner")||(Qc[g.status]??3)-(Qc[w.status]??3)||g.name.localeCompare(w.name));return{unknown:d&&f.length===0,error:a.ok?null:a.last_error,rows:f}}async function _g(l){try{return await navigator.clipboard.writeText(l),!0}catch{return!1}}const Kc={owner:"you",peer:"a peer session"};function jg({state:l,repo:i,nowMs:a}){const d=Ng(l,i),[f,p]=B.useState(null),g=async(w,m)=>{await _g(m)&&(p(w),window.setTimeout(()=>p(E=>E===w?null:E),2e3))};return c.jsxs("div",{className:"flow","data-testid":"sessions",children:[d.error&&c.jsxs("div",{className:"lane-note","data-testid":"sessions-error",children:[d.unknown?"Sessions unknown: ":"The last sessions read failed: ",d.error]}),d.unknown?c.jsx("p",{className:"col-empty",children:"The hub could not read the session list. PRs and deploys are on the Flow tab."}):d.rows.length===0?c.jsx("p",{className:"col-empty","data-testid":"sessions-empty",children:"No sessions running. PRs and deploys are on the Flow tab."}):c.jsx("ul",{className:"flow-list","data-testid":"sessions-table","aria-label":"Sessions of this repo",children:d.rows.map(w=>c.jsxs("li",{className:"flow-row","data-testid":"session-row",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsx("span",{className:"flow-title mono",children:w.name}),w.agent&&c.jsx("span",{className:"chip tone-muted","data-testid":"session-agent",children:w.agent}),c.jsx(Et,{content:w.waitingFor?`${w.status}: waiting for ${w.waitingClass?Kc[w.waitingClass]:"an answer"}: ${w.waitingFor}`:w.status,children:c.jsx("span",{className:`chip tone-${w.status==="waiting"?"warn":w.status==="busy"||w.status==="working"?"good":"muted"}`,tabIndex:0,children:w.status})}),w.copyWarning&&c.jsx("span",{className:"chip tone-bad","data-testid":"session-copies",children:w.copyWarning}),c.jsxs("button",{type:"button",className:"btn btn-act",onClick:()=>void g(w.key,w.name),"aria-label":`Copy session name ${w.name}`,children:[c.jsx(pd,{size:14,"aria-hidden":"true"}),f===w.key?"Copied":"Copy name"]})]}),c.jsxs("span",{className:"flow-why",children:[w.kind,w.waitingFor?` · waiting for ${w.waitingClass?Kc[w.waitingClass]:"an answer"}: ${w.waitingFor}`:"",w.since&&c.jsxs(c.Fragment,{children:[" · since ",c.jsx(Et,{content:Wd(w.since),children:c.jsx("time",{dateTime:w.since,tabIndex:0,children:nn(w.since,a)})})]})]}),w.copyWarning&&c.jsxs("span",{className:"flow-why tone-bad",children:["The same session runs in ",w.copies," windows. Close the extra copy."]})]},w.key))})]})}const Eg=B.lazy(()=>vi(()=>import("./RoadmapTab-CqlWs7dJ.js"),[])),Cg=[{id:"flow",label:"Flow"},{id:"roadmap",label:"Roadmap"},{id:"sessions",label:"Sessions"}],$g={ready:"good",merging:"good",blocked:"bad",held:"warn",ci:"muted",waiting:"muted"};function Tg({repo:l,item:i,grey:a,act:d}){return c.jsxs("li",{className:`flow-row${a?" grey":""}`,"data-testid":"queue-item",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsx("span",{className:"flow-pos mono",children:i.position}),c.jsxs("span",{className:"flow-title",children:["#",i.pr," ",i.title]})]}),c.jsxs("div",{className:"flow-flags",children:[c.jsx("span",{className:`chip tone-${$g[i.state]??"muted"}`,children:i.state}),i.merging&&c.jsx("span",{className:"chip tone-good",children:"merging now"}),i.hotfix&&c.jsx("span",{className:"chip tone-warn","data-testid":"flag-hotfix",children:"hotfix"}),i.held&&c.jsx("span",{className:"chip tone-warn","data-testid":"flag-held",children:"held"})]}),i.whyWaiting&&c.jsx("span",{className:"flow-why",children:i.whyWaiting}),i.waitsOn.length>0&&c.jsxs("span",{className:"flow-why",children:["Waits on ",i.waitsOn.map(f=>`${f.repo.replace("__","/")}#${f.pr}`).join(", ")]}),c.jsx(il,{repo:l,specs:xi(l,{pr:i.pr,headSha:i.headSha,hotfix:i.hotfix,held:i.held}),act:d})]})}function Pg({state:l,repo:i,nowMs:a,act:d}){const f=kg(l,i);return c.jsxs("div",{className:"flow","data-testid":"flow",children:[c.jsx("div",{className:`lane-note flow-status ${f.mode}`,"data-testid":"flow-status",children:f.statusText}),f.owner.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Owner approvals",children:[c.jsxs("h2",{className:"flow-h",children:["Needs your approval · ",f.owner.length]}),c.jsx("ul",{className:"flow-list",children:f.owner.map(p=>c.jsxs("li",{className:"flow-row","data-testid":"owner-item",children:[c.jsxs("span",{className:"flow-title",children:[p.pr!==null?`#${p.pr} `:"",p.what]}),c.jsx(Hd,{item:p}),c.jsx(il,{repo:i,specs:Od(i,p),act:d,reason:Ad(i,p)})]},p.id))})]}),c.jsxs("section",{className:"flow-section","aria-label":"Merge queue",children:[c.jsxs("h2",{className:"flow-h",children:["Merge queue · ",f.queue.length,f.grey?" · last known":""]}),f.mode==="none"?c.jsx("p",{className:"col-empty",children:"No queue: this repo has no coordinator."}):f.queue.length===0?c.jsx("p",{className:"col-empty",children:"The queue is empty."}):c.jsx("ol",{className:"flow-list",children:f.queue.map(p=>c.jsx(Tg,{repo:i,item:p,grey:f.grey,act:d},p.pr))})]}),c.jsxs("section",{className:"flow-section","aria-label":"Deploy checks",children:[c.jsx("h2",{className:"flow-h",children:"Deploy checks"}),f.deploys.length===0?c.jsx("p",{className:"col-empty",children:"No deploy check recorded."}):c.jsx("ul",{className:"flow-list",children:f.deploys.map(p=>c.jsxs("li",{className:"flow-row","data-testid":"deploy-check",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsxs("span",{className:"flow-title",children:["#",p.pr," ",c.jsx("span",{className:"mono",children:p.mergeSha})]}),c.jsxs("span",{className:`chip tone-${p.health==="ok"?"good":p.health==="failed"?"bad":"muted"}`,children:["health ",p.health]})]}),p.checks&&c.jsx("div",{className:"flow-flags","data-testid":"deploy-marks",children:p.checks.map(g=>c.jsxs("span",{className:`chip tone-${g.mark==="pass"?"good":g.mark==="fail"?"bad":"muted"}`,children:[g.name," ",g.mark]},g.name))}),c.jsxs("span",{className:"flow-why",children:[p.run!==null?`run ${p.run} · `:"",nn(p.at,a),p.reason?` · ${p.reason}`:""]})]},`${p.pr}-${p.mergeSha}`))})]}),f.unqueued.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Open PRs not in the queue",children:[c.jsxs("h2",{className:"flow-h",children:["Open PRs not in the queue · ",f.unqueued.length]}),c.jsx("ul",{className:"flow-list",children:f.unqueued.map(p=>c.jsxs("li",{className:"flow-row","data-testid":"unqueued-pr",children:[c.jsxs("span",{className:"flow-title",children:["#",p.number," ",p.title]}),c.jsxs("span",{className:`flow-why tone-${p.requiredState==="fail"?"bad":p.requiredState==="pass"?"good":"muted"}`,children:["required checks ",p.requiredState]})]},p.number))})]}),f.requests.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Your requests",children:[c.jsx("h2",{className:"flow-h",children:"Your requests"}),c.jsx("ul",{className:"flow-list",children:f.requests.slice(0,10).map(p=>c.jsxs("li",{className:"flow-row","data-testid":"request-log",children:[c.jsx("span",{className:`tone-${Ud(p.status)}`,children:Fd(p)}),c.jsxs("span",{className:"flow-why",children:[p.pr!==null?`PR #${p.pr}`:p.what," · ",nn(p.created_at,a)]})]},p.id))})]})]})}function zg({state:l,repo:i,nowMs:a,act:d,tab:f,roadmap:p}){const g=ul(i);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:Fr(i)}),c.jsx("span",{className:"page-subtitle",children:i.name})]}),c.jsx("nav",{className:"repo-tabs",role:"tablist","aria-label":"Repo views",children:Cg.map(w=>c.jsx("a",{role:"tab","aria-selected":f===w.id,"aria-current":f===w.id?"page":void 0,className:`folder-btn${f===w.id?" sel":""}`,href:ng(g,w.id),"data-testid":`tab-${w.id}`,children:w.id==="roadmap"?Pm(i):w.label},w.id))}),f==="flow"&&c.jsx(Pg,{state:l,repo:i,nowMs:a,act:d}),f==="roadmap"&&c.jsx(B.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(xg.Provider,{value:Sh,children:c.jsx(Eg,{repo:i,slug:p,stale:zm(l),lastOkAt:l.sources.collector.last_ok_at},p??"")})}),f==="sessions"&&c.jsx(jg,{state:l,repo:i,nowMs:a})]})}const Rg=1,Yc={collector:"Plans and roadmaps",agents:"Claude sessions",github:"GitHub",coordinator:"Coordinator"};function Lg(l){var d,f;const i=[];(l.schema>Rg||l.update_needed)&&i.push({id:"schema",tone:"bad",text:"This hub is older than its data. Update the hub:",command:"npm i -g @caddis/cli@latest"});const a=(d=l.sources)==null?void 0:d.agents;a&&!a.ok&&i.push({id:"agents-failed",tone:"bad",text:`Session list unavailable: "claude agents" failed${a.last_error?` (${a.last_error})`:""}.`});for(const p of Object.keys(Yc)){const g=(f=l.sources)==null?void 0:f[p];g!=null&&g.stale&&(p==="agents"&&!g.ok||i.push({id:`stale-${p}`,tone:"warn",text:`${Yc[p]} data is stale. Last good read: ${g.last_ok_at?Ir(g.last_ok_at):"never"}.`}))}return i}function Dg({state:l}){const i=Lg(l);return i.length===0?null:c.jsx("div",{className:"banners",role:"region","aria-label":"Warnings",children:i.map(a=>c.jsxs("div",{className:`banner ${a.tone}`,role:"status","data-testid":`banner-${a.id}`,children:[a.tone==="bad"?c.jsx(Xh,{size:16,"aria-hidden":"true"}):c.jsx(om,{size:16,"aria-hidden":"true"}),c.jsxs("span",{children:[a.text,a.command&&c.jsxs(c.Fragment,{children:[" ",c.jsx("code",{className:"cmd",children:a.command})]})]})]},a.id))})}const sf="caddis-hub-motion",Og=["on","off"];function af(){try{return window.localStorage}catch{return null}}function Mg(l=af()){try{return(l==null?void 0:l.getItem(sf))==="off"?"off":"on"}catch{return"on"}}function Ig(l,i=af()){try{i==null||i.setItem(sf,l)}catch{}}const uf="caddis-hub-theme",Ag=["dark","light","system"];function cf(){try{return window.localStorage}catch{return null}}function Fg(l=cf()){try{const i=l==null?void 0:l.getItem(uf);return i==="dark"||i==="light"||i==="system"?i:"system"}catch{return"system"}}function Ug(l,i=cf()){try{i==null||i.setItem(uf,l)}catch{}}function Hg(l,i){return l==="system"?i?"dark":"light":l}const Bg={dark:bh,light:rm,system:Gh},Wg={on:Jh,off:Zh},Vg={on:"motion",off:"still"};function qg({state:l,nowMs:i,theme:a,onTheme:d,motion:f,onMotion:p}){const g=dm(l==null?void 0:l.spend),w=l==null?void 0:l.versions,m=pm(l),E=Bd(l);return c.jsxs("footer",{className:"sidebar-footer",children:[c.jsxs("div",{className:"footer-meta",children:[c.jsxs("div",{className:"updated-line",children:[c.jsx(Wh,{size:14,"aria-hidden":"true"}),c.jsx("span",{"data-testid":"data-age",children:l?cm(l.generated_at,i):"Waiting for data"})]}),c.jsxs("div",{className:"spend-box",children:[c.jsxs("div",{className:"spend-row",children:[c.jsx("span",{className:"spend-label",children:"agy spend · 24 h"}),c.jsx("span",{className:"mono spend-amount",children:g.configured?`${g.committedEur.toFixed(2)} / ${g.capEur.toFixed(0)} EUR`:"no cap set"})]}),c.jsx("div",{className:"meter-track",role:"progressbar","aria-label":"agy spend","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(g.pct),children:c.jsx("div",{className:`meter-fill${g.pct>=80?" hot":""}`,style:{width:`${g.pct}%`}})})]}),E&&!m&&c.jsxs("div",{className:"quota-line mono","data-testid":"quota",children:["GitHub quota ",E.remaining," left (",E.account,")"]}),m&&c.jsxs("div",{className:"quota-low","data-testid":"quota-low",role:"status",children:["GitHub quota low: ",m.remaining," left (",m.account,")",m.resetAt?`, resets ${Ir(m.resetAt)}`:"",". Polling slows."]}),w&&c.jsxs("div",{className:"versions mono",children:[c.jsxs("span",{className:"versions-item",children:["hub ",w.hub]}),c.jsxs("span",{className:"versions-item",children:["pool ",w.pool??"-"]}),c.jsxs("span",{className:"versions-item",children:["plugin ",w.plugin??"-"]})]})]}),c.jsx("div",{className:"theme-switch",role:"group","aria-label":"Theme",children:Ag.map(j=>{const $=Bg[j];return c.jsxs("button",{type:"button",className:`theme-btn${a===j?" active":""}`,"aria-pressed":a===j,title:j,onClick:()=>d(j),children:[c.jsx($,{size:15,"aria-hidden":"true"}),c.jsx("span",{children:j})]},j)})}),c.jsx("div",{className:"theme-switch",role:"group","aria-label":"Logo animation",children:Og.map(j=>{const $=Wg[j];return c.jsxs("button",{type:"button",className:`theme-btn${f===j?" active":""}`,"aria-pressed":f===j,title:j==="on"?"Animate the logo":"Stop the logo animation",onClick:()=>p(j),children:[c.jsx($,{size:15,"aria-hidden":"true"}),c.jsx("span",{children:Vg[j]})]},j)})})]})}const Qg="/assets/mark-anim-DZa95SHo.webp",Kg="/assets/mark-still-CcPgBc_-.png",Yg="/assets/wordmark-CD0s2ofS.svg";function Gc(){return c.jsxs("span",{className:"brand-logo",children:[c.jsx("img",{src:Qg,alt:"",width:36,height:36,className:"brand-mark brand-mark-anim"}),c.jsx("img",{src:Kg,alt:"",width:36,height:36,className:"brand-mark brand-mark-still"}),c.jsxs("span",{className:"brand-stack",children:[c.jsx("img",{src:Yg,alt:"CADDIS",width:100,height:20,className:"brand-wordmark"}),c.jsx("span",{className:"brand-sub",children:"hub"})]})]})}const Gg=[["poster","Poster"],["details","Details"],["wall","Wall poster"],["map","Map"]];function bg(l,i){var f;return l.error||(f=l.github)!=null&&f.error?"blocked":i.sessions.some(p=>p.repo_path===l.path&&p.waiting_class==="owner")||l.coordinator&&i.sources.coordinator.stale?"attention":!l.coordinator&&!i.sessions.some(p=>p.repo_path===l.path)?"idle":"ok"}function Mr({href:l,active:i,icon:a,label:d,badge:f,onGo:p}){return c.jsx("li",{children:c.jsxs("a",{className:`nav-link${i?" active":""}`,href:l,"aria-current":i?"page":void 0,onClick:p,children:[c.jsxs("span",{className:"nav-link-left",children:[a,c.jsx("span",{className:"nav-text",children:d})]}),f]})})}function Xg({route:l,state:i,inbox:a,open:d,onToggle:f,children:p}){const g=()=>f(!1);return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"mobile-topbar",children:[c.jsxs("button",{type:"button",className:"menu-btn","aria-label":"Open navigation menu","aria-expanded":d,"aria-controls":"app-sidebar",onClick:()=>f(!d),children:[d?c.jsx(sm,{size:18}):c.jsx(Yh,{size:18}),c.jsx("span",{children:"Menu"})]}),c.jsx(Gc,{})]}),c.jsx("div",{className:`drawer-backdrop${d?" open":""}`,onClick:g,"aria-hidden":"true"}),c.jsxs("aside",{className:`sidebar${d?" drawer-open":""}`,id:"app-sidebar",children:[c.jsxs("nav",{className:"sidebar-top","aria-label":"Main",children:[c.jsx("div",{className:"brand-row",children:c.jsx(Gc,{})}),c.jsxs("ul",{className:"nav-list",children:[c.jsx(Mr,{href:"#/inbox",active:l.page==="inbox",icon:c.jsx(Qh,{size:18}),label:"Inbox",badge:a>0?c.jsx("span",{className:"inbox-badge",children:a}):void 0,onGo:g}),c.jsx(Mr,{href:"#/overview",active:l.page==="overview",icon:c.jsx(Kh,{size:18}),label:"Overview",onGo:g})]}),c.jsx("div",{className:"nav-section-label",children:"Repos"}),c.jsxs("ul",{className:"nav-list",children:[(i==null?void 0:i.repos.length)===0&&c.jsx("li",{className:"nav-empty",children:"No repos yet"}),i==null?void 0:i.repos.map(w=>{const m=ul(w),E=l.page==="repo"&&l.id===m;return c.jsx(Mr,{href:ll(m),active:E,icon:c.jsx("span",{className:`repo-dot ${bg(w,i)}`,"aria-hidden":"true"}),label:w.name,onGo:g},w.path)})]}),c.jsx("div",{className:"nav-section-label",children:"More"}),c.jsxs("ul",{className:"nav-list",children:[c.jsx(Mr,{href:"#/activity",active:l.page==="activity",icon:c.jsx(Mh,{size:18}),label:"Activity",onGo:g}),c.jsx(Mr,{href:"#/guide",active:l.page==="guide",icon:c.jsx(Uh,{size:18}),label:"caddis guide",onGo:g}),c.jsx("li",{children:c.jsx("ul",{className:"nav-sublist","aria-label":"caddis guide pages",children:Gg.map(([w,m])=>{const E=l.page==="guide"&&l.tab===w;return c.jsx("li",{children:c.jsx("a",{className:`nav-link nav-sublink${E?" active":""}`,href:rg(w),"aria-current":E?"true":void 0,onClick:g,children:c.jsx("span",{className:"nav-text",children:m})})},w)})})})]})]}),p]})]})}const Zg="/assets/favicon-DtHQyAC1.svg",Jg="/assets/favicon-dot-DHAVYP15.svg",ey=l=>l?Jg:Zg;function ty(l){let i=document.querySelector('link[rel="icon"]');i||(i=document.createElement("link"),i.rel="icon",document.head.appendChild(i)),i.type="image/svg+xml",i.href=ey(l)}const ny=()=>{var l;return((l=window.matchMedia)==null?void 0:l.call(window,"(prefers-color-scheme: dark)").matches)??!0};function ry(){const[l,i]=B.useState(()=>Fg());return B.useEffect(()=>{const a=()=>{document.documentElement.dataset.theme=Hg(l,ny())};if(a(),l!=="system"||!window.matchMedia)return;const d=window.matchMedia("(prefers-color-scheme: dark)");return d.addEventListener("change",a),()=>d.removeEventListener("change",a)},[l]),[l,a=>{Ug(a),i(a)}]}function oy(){const[l,i]=B.useState(()=>Mg());return B.useEffect(()=>{document.documentElement.dataset.motion=l},[l]),[l,a=>{Ig(a),i(a)}]}const ly=1e4;function sy(){const[l,i]=B.useState(null),[a,d]=B.useState(null),[f,p]=B.useState(!0),g=B.useRef(void 0),w=B.useRef(!0),m=B.useCallback(async()=>{try{const j=await xh();if(!w.current)return;i(j),d(null)}catch(j){if(!w.current)return;d(j instanceof pi&&j.status===401?"unauthorized":"network")}finally{w.current&&p(!1)}},[]);B.useEffect(()=>{w.current=!0;const j=()=>window.clearInterval(g.current),$=()=>{j(),g.current=window.setInterval(()=>void m(),ly)},C=()=>{document.hidden?j():(m(),$())};return m(),document.hidden||$(),document.addEventListener("visibilitychange",C),()=>{w.current=!1,j(),document.removeEventListener("visibilitychange",C)}},[m]);const E=B.useCallback(()=>void m(),[m]);return{state:l,error:a,loading:f,refresh:E}}const iy=B.lazy(()=>vi(()=>import("./Guide-BxS9L55s.js"),__vite__mapDeps([0,1])).then(l=>({default:l.Guide}))),ay=B.lazy(()=>vi(()=>import("./Activity-CvEIJlnE.js"),[]));function uy(l){const[i,a]=B.useState(()=>Date.now());return B.useEffect(()=>{const d=window.setInterval(()=>a(Date.now()),l);return()=>window.clearInterval(d)},[l]),i}function cy(){const[l,i]=B.useState(()=>window.location.hash);return B.useEffect(()=>{const a=()=>i(window.location.hash);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),tg(l)}function dy(){const{state:l,error:i,loading:a,refresh:d}=sy(),f=jh(d),p=uy(5e3),g=cy(),[w,m]=ry(),[E,j]=oy(),[$,C]=B.useState(!1),O=eg(l,p),_=O.model.items.length;B.useEffect(()=>{document.title=um(_),ty(_>0)},[_]);let U;if(i==="unauthorized")U=c.jsxs("div",{className:"notice","data-testid":"signin",children:[c.jsx("h1",{className:"page-title",children:"Signed out"}),c.jsxs("p",{children:["Run ",c.jsx("code",{className:"cmd",children:"caddis hub open"})," to sign in."]})]});else if(!l)U=c.jsx("p",{className:"page-subtitle",children:a?"Loading...":"The hub did not answer. Retrying."});else if(g.page==="inbox")U=c.jsx(bm,{state:l,nowMs:p,api:O,act:f});else if(g.page==="overview")U=c.jsx(mg,{state:l,nowMs:p,api:O,act:f});else if(g.page==="repo"){const M=l.repos.find(I=>ul(I)===g.id);U=M?c.jsx(zg,{state:l,repo:M,nowMs:p,act:f,tab:g.tab,roadmap:g.roadmap},g.id):c.jsxs("div",{className:"notice",children:[c.jsx("h1",{className:"page-title",children:g.id}),c.jsx("p",{children:"This repo is not in the hub registry."})]})}else g.page==="guide"?U=c.jsx(B.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(iy,{guide:l.guide,versions:l.versions,tab:g.tab,item:g.item})}):U=c.jsx(B.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(ay,{state:l})});return c.jsxs("div",{className:"app-shell",children:[c.jsx(Xg,{route:g,state:l,inbox:_,open:$,onToggle:C,children:c.jsx(qg,{state:l,nowMs:p,theme:w,onTheme:m,motion:E,onMotion:j})}),c.jsx("main",{className:"main-area",id:"main-content",children:c.jsxs("div",{className:"page-wrap",children:[l&&c.jsx(Dg,{state:l}),i==="network"&&l&&c.jsx("div",{className:"banner warn",role:"status",children:"The hub did not answer. Showing the last data."}),U]})})]})}wh();const bc=document.getElementById("root");bc&&hh.createRoot(bc).render(c.jsx(B.StrictMode,{children:c.jsx(dy,{})}));export{_y as A,py as B,zm as C,gg as D,fy as N,xg as P,Et as T,Kn as a,ul as b,fe as c,Fr as d,ng as e,Ey as f,rg as g,xy as h,wm as i,c as j,Ny as k,Wd as l,vy as m,gy as n,xm as o,wy as p,my as q,B as r,yy as s,hy as t,ky as u,Gd as v,Cy as w,Ir as x,jy as y,Sy as z};