hzl-web 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,69 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/force-graph-Bty0smNb.js","assets/Paired-CHegtbHO.js","assets/index-CgGSX2ei.js"])))=>i.map(i=>d[i]);
2
- (function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function r(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function c(f){if(f.ep)return;f.ep=!0;const p=r(f);fetch(f.href,p)}})();var Tr={exports:{}},zi={};var Kh;function d0(){if(Kh)return zi;Kh=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,f,p){var m=null;if(p!==void 0&&(m=""+p),f.key!==void 0&&(m=""+f.key),"key"in f){p={};for(var b in f)b!=="key"&&(p[b]=f[b])}else p=f;return f=p.ref,{$$typeof:s,type:c,key:m,ref:f!==void 0?f:null,props:p}}return zi.Fragment=u,zi.jsx=r,zi.jsxs=r,zi}var $h;function h0(){return $h||($h=1,Tr.exports=d0()),Tr.exports}var d=h0(),_r={exports:{}},fe={};var Jh;function m0(){if(Jh)return fe;Jh=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.iterator;function Y(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},re=Object.assign,ge={};function Te(S,U,C){this.props=S,this.context=U,this.refs=ge,this.updater=C||X}Te.prototype.isReactComponent={},Te.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,U,"setState")},Te.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function je(){}je.prototype=Te.prototype;function de(S,U,C){this.props=S,this.context=U,this.refs=ge,this.updater=C||X}var te=de.prototype=new je;te.constructor=de,re(te,Te.prototype),te.isPureReactComponent=!0;var ue=Array.isArray;function I(){}var K={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function ye(S,U,C){var Z=C.ref;return{$$typeof:s,type:S,key:U,ref:Z!==void 0?Z:null,props:C}}function Ce(S,U){return ye(S.type,U,S.props)}function L(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function O(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(C){return U[C]})}var P=/\/+/g;function me(S,U){return typeof S=="object"&&S!==null&&S.key!=null?O(""+S.key):U.toString(36)}function Ee(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(I,I):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function M(S,U,C,Z,$){var ce=typeof S;(ce==="undefined"||ce==="boolean")&&(S=null);var oe=!1;if(S===null)oe=!0;else switch(ce){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(S.$$typeof){case s:case u:oe=!0;break;case x:return oe=S._init,M(oe(S._payload),U,C,Z,$)}}if(oe)return $=$(S),oe=Z===""?"."+me(S,0):Z,ue($)?(C="",oe!=null&&(C=oe.replace(P,"$&/")+"/"),M($,U,C,"",function(nt){return nt})):$!=null&&(L($)&&($=Ce($,C+($.key==null||S&&S.key===$.key?"":(""+$.key).replace(P,"$&/")+"/")+oe)),U.push($)),1;oe=0;var Le=Z===""?".":Z+":";if(ue(S))for(var Ue=0;Ue<S.length;Ue++)Z=S[Ue],ce=Le+me(Z,Ue),oe+=M(Z,U,C,ce,$);else if(Ue=Y(S),typeof Ue=="function")for(S=Ue.call(S),Ue=0;!(Z=S.next()).done;)Z=Z.value,ce=Le+me(Z,Ue++),oe+=M(Z,U,C,ce,$);else if(ce==="object"){if(typeof S.then=="function")return M(Ee(S),U,C,Z,$);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return oe}function G(S,U,C){if(S==null)return S;var Z=[],$=0;return M(S,Z,"","",function(ce){return U.call(C,ce,$++)}),Z}function ee(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(C){(S._status===0||S._status===-1)&&(S._status=1,S._result=C)},function(C){(S._status===0||S._status===-1)&&(S._status=2,S._result=C)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var Se=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ve={map:G,forEach:function(S,U,C){G(S,function(){U.apply(this,arguments)},C)},count:function(S){var U=0;return G(S,function(){U++}),U},toArray:function(S){return G(S,function(U){return U})||[]},only:function(S){if(!L(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return fe.Activity=E,fe.Children=ve,fe.Component=Te,fe.Fragment=r,fe.Profiler=f,fe.PureComponent=de,fe.StrictMode=c,fe.Suspense=g,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,fe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},fe.cache=function(S){return function(){return S.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(S,U,C){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=re({},S.props),$=S.key;if(U!=null)for(ce in U.key!==void 0&&($=""+U.key),U)!Q.call(U,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&U.ref===void 0||(Z[ce]=U[ce]);var ce=arguments.length-2;if(ce===1)Z.children=C;else if(1<ce){for(var oe=Array(ce),Le=0;Le<ce;Le++)oe[Le]=arguments[Le+2];Z.children=oe}return ye(S.type,$,Z)},fe.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:p,_context:S},S},fe.createElement=function(S,U,C){var Z,$={},ce=null;if(U!=null)for(Z in U.key!==void 0&&(ce=""+U.key),U)Q.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&($[Z]=U[Z]);var oe=arguments.length-2;if(oe===1)$.children=C;else if(1<oe){for(var Le=Array(oe),Ue=0;Ue<oe;Ue++)Le[Ue]=arguments[Ue+2];$.children=Le}if(S&&S.defaultProps)for(Z in oe=S.defaultProps,oe)$[Z]===void 0&&($[Z]=oe[Z]);return ye(S,ce,$)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(S){return{$$typeof:b,render:S}},fe.isValidElement=L,fe.lazy=function(S){return{$$typeof:x,_payload:{_status:-1,_result:S},_init:ee}},fe.memo=function(S,U){return{$$typeof:y,type:S,compare:U===void 0?null:U}},fe.startTransition=function(S){var U=K.T,C={};K.T=C;try{var Z=S(),$=K.S;$!==null&&$(C,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(I,Se)}catch(ce){Se(ce)}finally{U!==null&&C.types!==null&&(U.types=C.types),K.T=U}},fe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},fe.use=function(S){return K.H.use(S)},fe.useActionState=function(S,U,C){return K.H.useActionState(S,U,C)},fe.useCallback=function(S,U){return K.H.useCallback(S,U)},fe.useContext=function(S){return K.H.useContext(S)},fe.useDebugValue=function(){},fe.useDeferredValue=function(S,U){return K.H.useDeferredValue(S,U)},fe.useEffect=function(S,U){return K.H.useEffect(S,U)},fe.useEffectEvent=function(S){return K.H.useEffectEvent(S)},fe.useId=function(){return K.H.useId()},fe.useImperativeHandle=function(S,U,C){return K.H.useImperativeHandle(S,U,C)},fe.useInsertionEffect=function(S,U){return K.H.useInsertionEffect(S,U)},fe.useLayoutEffect=function(S,U){return K.H.useLayoutEffect(S,U)},fe.useMemo=function(S,U){return K.H.useMemo(S,U)},fe.useOptimistic=function(S,U){return K.H.useOptimistic(S,U)},fe.useReducer=function(S,U,C){return K.H.useReducer(S,U,C)},fe.useRef=function(S){return K.H.useRef(S)},fe.useState=function(S){return K.H.useState(S)},fe.useSyncExternalStore=function(S,U,C){return K.H.useSyncExternalStore(S,U,C)},fe.useTransition=function(){return K.H.useTransition()},fe.version="19.2.4",fe}var Fh;function Jr(){return Fh||(Fh=1,_r.exports=m0()),_r.exports}var j=Jr(),Ar={exports:{}},Mi={},Er={exports:{}},Nr={};var Wh;function p0(){return Wh||(Wh=1,(function(s){function u(M,G){var ee=M.length;M.push(G);e:for(;0<ee;){var Se=ee-1>>>1,ve=M[Se];if(0<f(ve,G))M[Se]=G,M[ee]=ve,ee=Se;else break e}}function r(M){return M.length===0?null:M[0]}function c(M){if(M.length===0)return null;var G=M[0],ee=M.pop();if(ee!==G){M[0]=ee;e:for(var Se=0,ve=M.length,S=ve>>>1;Se<S;){var U=2*(Se+1)-1,C=M[U],Z=U+1,$=M[Z];if(0>f(C,ee))Z<ve&&0>f($,C)?(M[Se]=$,M[Z]=ee,Se=Z):(M[Se]=C,M[U]=ee,Se=U);else if(Z<ve&&0>f($,ee))M[Se]=$,M[Z]=ee,Se=Z;else break e}}return G}function f(M,G){var ee=M.sortIndex-G.sortIndex;return ee!==0?ee:M.id-G.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;s.unstable_now=function(){return p.now()}}else{var m=Date,b=m.now();s.unstable_now=function(){return m.now()-b}}var g=[],y=[],x=1,E=null,D=3,Y=!1,X=!1,re=!1,ge=!1,Te=typeof setTimeout=="function"?setTimeout:null,je=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;function te(M){for(var G=r(y);G!==null;){if(G.callback===null)c(y);else if(G.startTime<=M)c(y),G.sortIndex=G.expirationTime,u(g,G);else break;G=r(y)}}function ue(M){if(re=!1,te(M),!X)if(r(g)!==null)X=!0,I||(I=!0,O());else{var G=r(y);G!==null&&Ee(ue,G.startTime-M)}}var I=!1,K=-1,Q=5,ye=-1;function Ce(){return ge?!0:!(s.unstable_now()-ye<Q)}function L(){if(ge=!1,I){var M=s.unstable_now();ye=M;var G=!0;try{e:{X=!1,re&&(re=!1,je(K),K=-1),Y=!0;var ee=D;try{t:{for(te(M),E=r(g);E!==null&&!(E.expirationTime>M&&Ce());){var Se=E.callback;if(typeof Se=="function"){E.callback=null,D=E.priorityLevel;var ve=Se(E.expirationTime<=M);if(M=s.unstable_now(),typeof ve=="function"){E.callback=ve,te(M),G=!0;break t}E===r(g)&&c(g),te(M)}else c(g);E=r(g)}if(E!==null)G=!0;else{var S=r(y);S!==null&&Ee(ue,S.startTime-M),G=!1}}break e}finally{E=null,D=ee,Y=!1}G=void 0}}finally{G?O():I=!1}}}var O;if(typeof de=="function")O=function(){de(L)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,me=P.port2;P.port1.onmessage=L,O=function(){me.postMessage(null)}}else O=function(){Te(L,0)};function Ee(M,G){K=Te(function(){M(s.unstable_now())},G)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<M?Math.floor(1e3/M):5},s.unstable_getCurrentPriorityLevel=function(){return D},s.unstable_next=function(M){switch(D){case 1:case 2:case 3:var G=3;break;default:G=D}var ee=D;D=G;try{return M()}finally{D=ee}},s.unstable_requestPaint=function(){ge=!0},s.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ee=D;D=M;try{return G()}finally{D=ee}},s.unstable_scheduleCallback=function(M,G,ee){var Se=s.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Se+ee:Se):ee=Se,M){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=ee+ve,M={id:x++,callback:G,priorityLevel:M,startTime:ee,expirationTime:ve,sortIndex:-1},ee>Se?(M.sortIndex=ee,u(y,M),r(g)===null&&M===r(y)&&(re?(je(K),K=-1):re=!0,Ee(ue,ee-Se))):(M.sortIndex=ve,u(g,M),X||Y||(X=!0,I||(I=!0,O()))),M},s.unstable_shouldYield=Ce,s.unstable_wrapCallback=function(M){var G=D;return function(){var ee=D;D=G;try{return M.apply(this,arguments)}finally{D=ee}}}})(Nr)),Nr}var Ih;function g0(){return Ih||(Ih=1,Er.exports=p0()),Er.exports}var kr={exports:{}},Et={};var Ph;function y0(){if(Ph)return Et;Ph=1;var s=Jr();function u(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(u(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function p(g,y,x){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:E==null?null:""+E,children:g,containerInfo:y,implementation:x}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Et.createPortal=function(g,y){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return p(g,y,null,x)},Et.flushSync=function(g){var y=m.T,x=c.p;try{if(m.T=null,c.p=2,g)return g()}finally{m.T=y,c.p=x,c.d.f()}},Et.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(g,y))},Et.prefetchDNS=function(g){typeof g=="string"&&c.d.D(g)},Et.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var x=y.as,E=b(x,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,Y=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?c.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:D,fetchPriority:Y}):x==="script"&&c.d.X(g,{crossOrigin:E,integrity:D,fetchPriority:Y,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Et.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var x=b(y.as,y.crossOrigin);c.d.M(g,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(g)},Et.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var x=y.as,E=b(x,y.crossOrigin);c.d.L(g,x,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Et.preloadModule=function(g,y){if(typeof g=="string")if(y){var x=b(y.as,y.crossOrigin);c.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(g)},Et.requestFormReset=function(g){c.d.r(g)},Et.unstable_batchedUpdates=function(g,y){return g(y)},Et.useFormState=function(g,y,x){return m.H.useFormState(g,y,x)},Et.useFormStatus=function(){return m.H.useHostTransitionStatus()},Et.version="19.2.4",Et}var em;function v0(){if(em)return kr.exports;em=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),kr.exports=y0(),kr.exports}var tm;function b0(){if(tm)return Mi;tm=1;var s=g0(),u=Jr(),r=v0();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function m(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 b(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(p(e)!==e)throw Error(c(188))}function y(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return g(n),e;if(i===a)return g(n),t;i=i.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=i;else{for(var o=!1,h=n.child;h;){if(h===l){o=!0,l=n,a=i;break}if(h===a){o=!0,a=n,l=i;break}h=h.sibling}if(!o){for(h=i.child;h;){if(h===l){o=!0,l=i,a=n;break}if(h===a){o=!0,a=i,l=n;break}h=h.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,D=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),Te=Symbol.for("react.profiler"),je=Symbol.for("react.consumer"),de=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ce=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function O(e){return e===null||typeof e!="object"?null:(e=L&&e[L]||e["@@iterator"],typeof e=="function"?e:null)}var P=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===P?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case re:return"Fragment";case Te:return"Profiler";case ge:return"StrictMode";case ue:return"Suspense";case I:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case de:return e.displayName||"Context";case je:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var Ee=Array.isArray,M=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],ve=-1;function S(e){return{current:e}}function U(e){0>ve||(e.current=Se[ve],Se[ve]=null,ve--)}function C(e,t){ve++,Se[ve]=e.current,e.current=t}var Z=S(null),$=S(null),ce=S(null),oe=S(null);function Le(e,t){switch(C(ce,t),C($,e),C(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gh(t),e=yh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),C(Z,e)}function Ue(){U(Z),U($),U(ce)}function nt(e){e.memoizedState!==null&&C(oe,e);var t=Z.current,l=yh(t,e.type);t!==l&&(C($,e),C(Z,l))}function pt(e){$.current===e&&(U(Z),U($)),oe.current===e&&(U(oe),Ei._currentValue=ee)}var He,Nt;function it(e){if(He===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);He=t&&t[1]||"",Nt=-1<l.stack.indexOf(`
3
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+He+e+Nt}var vt=!1;function It(e,t){if(!e||vt)return"";vt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(R){var z=R}Reflect.construct(e,[],B)}else{try{B.call()}catch(R){z=R}e.call(B.prototype)}}else{try{throw Error()}catch(R){z=R}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(R){if(R&&z&&typeof R.stack=="string")return[R.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),o=i[0],h=i[1];if(o&&h){var v=o.split(`
5
- `),k=h.split(`
6
- `);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<k.length&&!k[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===k.length)for(a=v.length-1,n=k.length-1;1<=a&&0<=n&&v[a]!==k[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==k[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==k[n]){var w=`
7
- `+v[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{vt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?it(l):""}function Al(e,t){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return e.child!==t&&t!==null?it("Suspense Fallback"):it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return It(e.type,!1);case 11:return It(e.type.render,!1);case 1:return It(e.type,!0);case 31:return it("Activity");default:return""}}function kt(e){try{var t="",l=null;do t+=Al(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
8
- Error generating stack: `+a.message+`
9
- `+a.stack}}var Pt=Object.prototype.hasOwnProperty,el=s.unstable_scheduleCallback,Gt=s.unstable_cancelCallback,ja=s.unstable_shouldYield,El=s.unstable_requestPaint,st=s.unstable_now,Nl=s.unstable_getCurrentPriorityLevel,Xt=s.unstable_ImmediatePriority,At=s.unstable_UserBlockingPriority,kl=s.unstable_NormalPriority,za=s.unstable_LowPriority,Ma=s.unstable_IdlePriority,Ca=s.log,Ul=s.unstable_setDisableYieldValue,tl=null,ut=null;function $e(e){if(typeof Ca=="function"&&Ul(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(tl,e)}catch{}}var Pe=Math.clz32?Math.clz32:On,ta=Math.log,Ra=Math.LN2;function On(e){return e>>>=0,e===0?32:31-(ta(e)/Ra|0)|0}var pl=256,gl=262144,la=4194304;function jt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function aa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~i,a!==0?n=jt(a):(o&=h,o!==0?n=jt(o):l||(l=h&~e,l!==0&&(n=jt(l))))):(h=a&~i,h!==0?n=jt(h):o!==0?n=jt(o):l||(l=a&~e,l!==0&&(n=jt(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function V(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function J(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ne(){var e=la;return la<<=1,(la&62914560)===0&&(la=4194304),e}function We(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function gt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Un(e,t,l,a,n,i){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,v=e.expirationTimes,k=e.hiddenUpdates;for(l=o&~l;0<l;){var w=31-Pe(l),B=1<<w;h[w]=0,v[w]=-1;var z=k[w];if(z!==null)for(k[w]=null,w=0;w<z.length;w++){var R=z[w];R!==null&&(R.lane&=-536870913)}l&=~B}a!==0&&wn(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function wn(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Pe(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ln(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Pe(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Gi(e,t){var l=t&-t;return l=(l&42)!==0?1:Ot(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ot(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function yl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Hn(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:qh(e.type))}function Bn(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var ll=Math.random().toString(36).slice(2),ct="__reactFiber$"+ll,Je="__reactProps$"+ll,wl="__reactContainer$"+ll,Pa="__reactEvents$"+ll,Xi="__reactListeners$"+ll,Qi="__reactHandles$"+ll,Zi="__reactResources$"+ll,le="__reactMarker$"+ll;function T(e){delete e[ct],delete e[Je],delete e[Pa],delete e[Xi],delete e[Qi]}function q(e){var t=e[ct];if(t)return t;for(var l=e.parentNode;l;){if(t=l[wl]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Ah(e);e!==null;){if(l=e[ct])return l;e=Ah(e)}return t}e=l,l=e.parentNode}return null}function F(e){if(e=e[ct]||e[wl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function we(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Ie(e){var t=e[Zi];return t||(t=e[Zi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function be(e){e[le]=!0}var bt=new Set,al={};function Ut(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(al[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var ht=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),qn={},Yn={};function np(e){return Pt.call(Yn,e)?!0:Pt.call(qn,e)?!1:ht.test(e)?Yn[e]=!0:(qn[e]=!0,!1)}function Vi(e,t,l){if(np(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ki(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Ll(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function nl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function so(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ip(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pu(e){if(!e._valueTracker){var t=so(e)?"checked":"value";e._valueTracker=ip(e,t,""+e[t])}}function uo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=so(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function $i(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var sp=/[\n"\\]/g;function il(e){return e.replace(sp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gu(e,t,l,a,n,i,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nl(t)):e.value!==""+nl(t)&&(e.value=""+nl(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?yu(e,o,nl(t)):l!=null?yu(e,o,nl(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+nl(h):e.removeAttribute("name")}function co(e,t,l,a,n,i,o,h){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){pu(e);return}l=l!=null?""+nl(l):"",t=t!=null?""+nl(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),pu(e)}function yu(e,t,l){t==="number"&&$i(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function en(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+nl(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function ro(e,t,l){if(t!=null&&(t=""+nl(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+nl(l):""}function oo(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(Ee(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=nl(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),pu(e)}function tn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var up=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function fo(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||up.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ho(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&fo(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&fo(e,i,t[i])}function vu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ji(e){return rp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Hl(){}var bu=null;function Su(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,an=null;function mo(e){var t=F(e);if(t&&(e=t.stateNode)){var l=e[Je]||null;e:switch(e=t.stateNode,t.type){case"input":if(gu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+il(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Je]||null;if(!n)throw Error(c(90));gu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&uo(a)}break e;case"textarea":ro(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&en(e,!!l.multiple,t,!1)}}}var xu=!1;function po(e,t,l){if(xu)return e(t,l);xu=!0;try{var a=e(t);return a}finally{if(xu=!1,(ln!==null||an!==null)&&(ws(),ln&&(t=ln,e=an,an=ln=null,mo(t),e)))for(t=0;t<e.length;t++)mo(e[t])}}function Gn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Je]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var Bl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(Bl)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{Tu=!1}var na=null,_u=null,Fi=null;function go(){if(Fi)return Fi;var e,t=_u,l=t.length,a,n="value"in na?na.value:na.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===n[i-a];a++);return Fi=n.slice(e,1<a?1-a:void 0)}function Wi(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 Ii(){return!0}function yo(){return!1}function wt(e){function t(l,a,n,i,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(i):i[h]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ii:yo,this.isPropagationStopped=yo,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pi=wt(Da),Qn=E({},Da,{view:0,detail:0}),op=wt(Qn),Au,Eu,Zn,es=E({},Qn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zn&&(Zn&&e.type==="mousemove"?(Au=e.screenX-Zn.screenX,Eu=e.screenY-Zn.screenY):Eu=Au=0,Zn=e),Au)},movementY:function(e){return"movementY"in e?e.movementY:Eu}}),vo=wt(es),fp=E({},es,{dataTransfer:0}),dp=wt(fp),hp=E({},Qn,{relatedTarget:0}),Nu=wt(hp),mp=E({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),pp=wt(mp),gp=E({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yp=wt(gp),vp=E({},Da,{data:0}),bo=wt(vp),bp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sp={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"},xp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xp[e])?!!t[e]:!1}function ku(){return Tp}var _p=E({},Qn,{key:function(e){if(e.key){var t=bp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?Wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ap=wt(_p),Ep=E({},es,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),So=wt(Ep),Np=E({},Qn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),kp=wt(Np),jp=E({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),zp=wt(jp),Mp=E({},es,{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}),Cp=wt(Mp),Rp=E({},Da,{newState:0,oldState:0}),Dp=wt(Rp),Op=[9,13,27,32],ju=Bl&&"CompositionEvent"in window,Vn=null;Bl&&"documentMode"in document&&(Vn=document.documentMode);var Up=Bl&&"TextEvent"in window&&!Vn,xo=Bl&&(!ju||Vn&&8<Vn&&11>=Vn),To=" ",_o=!1;function Ao(e,t){switch(e){case"keyup":return Op.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nn=!1;function wp(e,t){switch(e){case"compositionend":return Eo(t);case"keypress":return t.which!==32?null:(_o=!0,To);case"textInput":return e=t.data,e===To&&_o?null:e;default:return null}}function Lp(e,t){if(nn)return e==="compositionend"||!ju&&Ao(e,t)?(e=go(),Fi=_u=na=null,nn=!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 xo&&t.locale!=="ko"?null:t.data;default:return null}}var Hp={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 No(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hp[e.type]:t==="textarea"}function ko(e,t,l,a){ln?an?an.push(a):an=[a]:ln=a,t=Xs(t,"onChange"),0<t.length&&(l=new Pi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Kn=null,$n=null;function Bp(e){oh(e,0)}function ts(e){var t=we(e);if(uo(t))return e}function jo(e,t){if(e==="change")return t}var zo=!1;if(Bl){var zu;if(Bl){var Mu="oninput"in document;if(!Mu){var Mo=document.createElement("div");Mo.setAttribute("oninput","return;"),Mu=typeof Mo.oninput=="function"}zu=Mu}else zu=!1;zo=zu&&(!document.documentMode||9<document.documentMode)}function Co(){Kn&&(Kn.detachEvent("onpropertychange",Ro),$n=Kn=null)}function Ro(e){if(e.propertyName==="value"&&ts($n)){var t=[];ko(t,$n,e,Su(e)),po(Bp,t)}}function qp(e,t,l){e==="focusin"?(Co(),Kn=t,$n=l,Kn.attachEvent("onpropertychange",Ro)):e==="focusout"&&Co()}function Yp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ts($n)}function Gp(e,t){if(e==="click")return ts(t)}function Xp(e,t){if(e==="input"||e==="change")return ts(t)}function Qp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:Qp;function Jn(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Pt.call(t,n)||!Qt(e[n],t[n]))return!1}return!0}function Do(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oo(e,t){var l=Do(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Do(l)}}function Uo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$i(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=$i(e.document)}return t}function Cu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Zp=Bl&&"documentMode"in document&&11>=document.documentMode,sn=null,Ru=null,Fn=null,Du=!1;function Lo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Du||sn==null||sn!==$i(a)||(a=sn,"selectionStart"in a&&Cu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fn&&Jn(Fn,a)||(Fn=a,a=Xs(Ru,"onSelect"),0<a.length&&(t=new Pi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=sn)))}function Oa(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var un={animationend:Oa("Animation","AnimationEnd"),animationiteration:Oa("Animation","AnimationIteration"),animationstart:Oa("Animation","AnimationStart"),transitionrun:Oa("Transition","TransitionRun"),transitionstart:Oa("Transition","TransitionStart"),transitioncancel:Oa("Transition","TransitionCancel"),transitionend:Oa("Transition","TransitionEnd")},Ou={},Ho={};Bl&&(Ho=document.createElement("div").style,"AnimationEvent"in window||(delete un.animationend.animation,delete un.animationiteration.animation,delete un.animationstart.animation),"TransitionEvent"in window||delete un.transitionend.transition);function Ua(e){if(Ou[e])return Ou[e];if(!un[e])return e;var t=un[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ho)return Ou[e]=t[l];return e}var Bo=Ua("animationend"),qo=Ua("animationiteration"),Yo=Ua("animationstart"),Vp=Ua("transitionrun"),Kp=Ua("transitionstart"),$p=Ua("transitioncancel"),Go=Ua("transitionend"),Xo=new Map,Uu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uu.push("scrollEnd");function vl(e,t){Xo.set(e,t),Ut(t,[e])}var ls=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},sl=[],cn=0,wu=0;function as(){for(var e=cn,t=wu=cn=0;t<e;){var l=sl[t];sl[t++]=null;var a=sl[t];sl[t++]=null;var n=sl[t];sl[t++]=null;var i=sl[t];if(sl[t++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}i!==0&&Qo(l,n,i)}}function ns(e,t,l,a){sl[cn++]=e,sl[cn++]=t,sl[cn++]=l,sl[cn++]=a,wu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Lu(e,t,l,a){return ns(e,t,l,a),is(e)}function wa(e,t){return ns(e,null,null,t),is(e)}function Qo(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-Pe(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function is(e){if(50<vi)throw vi=0,Vc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rn={};function Jp(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,l,a){return new Jp(e,t,l,a)}function Hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ql(e,t){var l=e.alternate;return l===null?(l=Zt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Zo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ss(e,t,l,a,n,i){var o=0;if(a=e,typeof e=="function")Hu(e)&&(o=1);else if(typeof e=="string")o=e0(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Zt(31,l,t,n),e.elementType=ye,e.lanes=i,e;case re:return La(l.children,n,i,t);case ge:o=8,n|=24;break;case Te:return e=Zt(12,l,t,n|2),e.elementType=Te,e.lanes=i,e;case ue:return e=Zt(13,l,t,n),e.elementType=ue,e.lanes=i,e;case I:return e=Zt(19,l,t,n),e.elementType=I,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case de:o=10;break e;case je:o=9;break e;case te:o=11;break e;case K:o=14;break e;case Q:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Zt(o,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function La(e,t,l,a){return e=Zt(7,e,a,t),e.lanes=l,e}function Bu(e,t,l){return e=Zt(6,e,null,t),e.lanes=l,e}function Vo(e){var t=Zt(18,null,null,0);return t.stateNode=e,t}function qu(e,t,l){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ko=new WeakMap;function ul(e,t){if(typeof e=="object"&&e!==null){var l=Ko.get(e);return l!==void 0?l:(t={value:e,source:t,stack:kt(t)},Ko.set(e,t),t)}return{value:e,source:t,stack:kt(t)}}var on=[],fn=0,us=null,Wn=0,cl=[],rl=0,ia=null,zl=1,Ml="";function Yl(e,t){on[fn++]=Wn,on[fn++]=us,us=e,Wn=t}function $o(e,t,l){cl[rl++]=zl,cl[rl++]=Ml,cl[rl++]=ia,ia=e;var a=zl;e=Ml;var n=32-Pe(a)-1;a&=~(1<<n),l+=1;var i=32-Pe(t)+n;if(30<i){var o=n-n%5;i=(a&(1<<o)-1).toString(32),a>>=o,n-=o,zl=1<<32-Pe(t)+n|l<<n|a,Ml=i+e}else zl=1<<i|l<<n|a,Ml=e}function Yu(e){e.return!==null&&(Yl(e,1),$o(e,1,0))}function Gu(e){for(;e===us;)us=on[--fn],on[fn]=null,Wn=on[--fn],on[fn]=null;for(;e===ia;)ia=cl[--rl],cl[rl]=null,Ml=cl[--rl],cl[rl]=null,zl=cl[--rl],cl[rl]=null}function Jo(e,t){cl[rl++]=zl,cl[rl++]=Ml,cl[rl++]=ia,zl=t.id,Ml=t.overflow,ia=e}var St=null,Ve=null,ze=!1,sa=null,ol=!1,Xu=Error(c(519));function ua(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw In(ul(t,e)),Xu}function Fo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ct]=e,t[Je]=a,l){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(l=0;l<Si.length;l++)Ae(Si[l],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),co(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),oo(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||mh(t.textContent,l)?(a.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),a.onScroll!=null&&Ae("scroll",t),a.onScrollEnd!=null&&Ae("scrollend",t),a.onClick!=null&&(t.onclick=Hl),t=!0):t=!1,t||ua(e,!0)}function Wo(e){for(St=e.return;St;)switch(St.tag){case 5:case 31:case 13:ol=!1;return;case 27:case 3:ol=!0;return;default:St=St.return}}function dn(e){if(e!==St)return!1;if(!ze)return Wo(e),ze=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ur(e.type,e.memoizedProps)),l=!l),l&&Ve&&ua(e),Wo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ve=_h(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ve=_h(e)}else t===27?(t=Ve,xa(e.type)?(e=dr,dr=null,Ve=e):Ve=t):Ve=St?dl(e.stateNode.nextSibling):null;return!0}function Ha(){Ve=St=null,ze=!1}function Qu(){var e=sa;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),sa=null),e}function In(e){sa===null?sa=[e]:sa.push(e)}var Zu=S(null),Ba=null,Gl=null;function ca(e,t,l){C(Zu,t._currentValue),t._currentValue=l}function Xl(e){e._currentValue=Zu.current,U(Zu)}function Vu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ku(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var o=n.child;i=i.firstContext;e:for(;i!==null;){var h=i;i=n;for(var v=0;v<t.length;v++)if(h.context===t[v]){i.lanes|=l,h=i.alternate,h!==null&&(h.lanes|=l),Vu(i.return,l,e),a||(o=null);break e}i=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),Vu(o,l,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function hn(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=n.type;Qt(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===oe.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ei):e=[Ei])}n=n.return}e!==null&&Ku(t,e,l,a),t.flags|=262144}function cs(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qa(e){Ba=e,Gl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return Io(Ba,e)}function rs(e,t){return Ba===null&&qa(e),Io(e,t)}function Io(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Gl===null){if(e===null)throw Error(c(308));Gl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gl=Gl.next=t;return l}var Fp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Wp=s.unstable_scheduleCallback,Ip=s.unstable_NormalPriority,rt={$$typeof:de,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $u(){return{controller:new Fp,data:new Map,refCount:0}}function Pn(e){e.refCount--,e.refCount===0&&Wp(Ip,function(){e.controller.abort()})}var ei=null,Ju=0,mn=0,pn=null;function Pp(e,t){if(ei===null){var l=ei=[];Ju=0,mn=Ic(),pn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ju++,t.then(Po,Po),t}function Po(){if(--Ju===0&&ei!==null){pn!==null&&(pn.status="fulfilled");var e=ei;ei=null,mn=0,pn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function eg(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ef=M.S;M.S=function(e,t){Hd=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pp(e,t),ef!==null&&ef(e,t)};var Ya=S(null);function Fu(){var e=Ya.current;return e!==null?e:Ze.pooledCache}function os(e,t){t===null?C(Ya,Ya.current):C(Ya,t.pool)}function tf(){var e=Fu();return e===null?null:{parent:rt._currentValue,pool:e}}var gn=Error(c(460)),Wu=Error(c(474)),fs=Error(c(542)),ds={then:function(){}};function lf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function af(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Hl,Hl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e;default:if(typeof t.status=="string")t.then(Hl,Hl);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sf(e),e}throw Xa=t,gn}}function Ga(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xa=l,gn):l}}var Xa=null;function nf(){if(Xa===null)throw Error(c(459));var e=Xa;return Xa=null,e}function sf(e){if(e===gn||e===fs)throw Error(c(483))}var yn=null,ti=0;function hs(e){var t=ti;return ti+=1,yn===null&&(yn=[]),af(yn,e,t)}function li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ms(e,t){throw t.$$typeof===D?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function uf(e){function t(A,_){if(e){var N=A.deletions;N===null?(A.deletions=[_],A.flags|=16):N.push(_)}}function l(A,_){if(!e)return null;for(;_!==null;)t(A,_),_=_.sibling;return null}function a(A){for(var _=new Map;A!==null;)A.key!==null?_.set(A.key,A):_.set(A.index,A),A=A.sibling;return _}function n(A,_){return A=ql(A,_),A.index=0,A.sibling=null,A}function i(A,_,N){return A.index=N,e?(N=A.alternate,N!==null?(N=N.index,N<_?(A.flags|=67108866,_):N):(A.flags|=67108866,_)):(A.flags|=1048576,_)}function o(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function h(A,_,N,H){return _===null||_.tag!==6?(_=Bu(N,A.mode,H),_.return=A,_):(_=n(_,N),_.return=A,_)}function v(A,_,N,H){var ie=N.type;return ie===re?w(A,_,N.props.children,H,N.key):_!==null&&(_.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Q&&Ga(ie)===_.type)?(_=n(_,N.props),li(_,N),_.return=A,_):(_=ss(N.type,N.key,N.props,null,A.mode,H),li(_,N),_.return=A,_)}function k(A,_,N,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==N.containerInfo||_.stateNode.implementation!==N.implementation?(_=qu(N,A.mode,H),_.return=A,_):(_=n(_,N.children||[]),_.return=A,_)}function w(A,_,N,H,ie){return _===null||_.tag!==7?(_=La(N,A.mode,H,ie),_.return=A,_):(_=n(_,N),_.return=A,_)}function B(A,_,N){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Bu(""+_,A.mode,N),_.return=A,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Y:return N=ss(_.type,_.key,_.props,null,A.mode,N),li(N,_),N.return=A,N;case X:return _=qu(_,A.mode,N),_.return=A,_;case Q:return _=Ga(_),B(A,_,N)}if(Ee(_)||O(_))return _=La(_,A.mode,N,null),_.return=A,_;if(typeof _.then=="function")return B(A,hs(_),N);if(_.$$typeof===de)return B(A,rs(A,_),N);ms(A,_)}return null}function z(A,_,N,H){var ie=_!==null?_.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ie!==null?null:h(A,_,""+N,H);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:return N.key===ie?v(A,_,N,H):null;case X:return N.key===ie?k(A,_,N,H):null;case Q:return N=Ga(N),z(A,_,N,H)}if(Ee(N)||O(N))return ie!==null?null:w(A,_,N,H,null);if(typeof N.then=="function")return z(A,_,hs(N),H);if(N.$$typeof===de)return z(A,_,rs(A,N),H);ms(A,N)}return null}function R(A,_,N,H,ie){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return A=A.get(N)||null,h(_,A,""+H,ie);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case Y:return A=A.get(H.key===null?N:H.key)||null,v(_,A,H,ie);case X:return A=A.get(H.key===null?N:H.key)||null,k(_,A,H,ie);case Q:return H=Ga(H),R(A,_,N,H,ie)}if(Ee(H)||O(H))return A=A.get(N)||null,w(_,A,H,ie,null);if(typeof H.then=="function")return R(A,_,N,hs(H),ie);if(H.$$typeof===de)return R(A,_,N,rs(_,H),ie);ms(_,H)}return null}function W(A,_,N,H){for(var ie=null,Re=null,ae=_,pe=_=0,ke=null;ae!==null&&pe<N.length;pe++){ae.index>pe?(ke=ae,ae=null):ke=ae.sibling;var De=z(A,ae,N[pe],H);if(De===null){ae===null&&(ae=ke);break}e&&ae&&De.alternate===null&&t(A,ae),_=i(De,_,pe),Re===null?ie=De:Re.sibling=De,Re=De,ae=ke}if(pe===N.length)return l(A,ae),ze&&Yl(A,pe),ie;if(ae===null){for(;pe<N.length;pe++)ae=B(A,N[pe],H),ae!==null&&(_=i(ae,_,pe),Re===null?ie=ae:Re.sibling=ae,Re=ae);return ze&&Yl(A,pe),ie}for(ae=a(ae);pe<N.length;pe++)ke=R(ae,A,pe,N[pe],H),ke!==null&&(e&&ke.alternate!==null&&ae.delete(ke.key===null?pe:ke.key),_=i(ke,_,pe),Re===null?ie=ke:Re.sibling=ke,Re=ke);return e&&ae.forEach(function(Na){return t(A,Na)}),ze&&Yl(A,pe),ie}function se(A,_,N,H){if(N==null)throw Error(c(151));for(var ie=null,Re=null,ae=_,pe=_=0,ke=null,De=N.next();ae!==null&&!De.done;pe++,De=N.next()){ae.index>pe?(ke=ae,ae=null):ke=ae.sibling;var Na=z(A,ae,De.value,H);if(Na===null){ae===null&&(ae=ke);break}e&&ae&&Na.alternate===null&&t(A,ae),_=i(Na,_,pe),Re===null?ie=Na:Re.sibling=Na,Re=Na,ae=ke}if(De.done)return l(A,ae),ze&&Yl(A,pe),ie;if(ae===null){for(;!De.done;pe++,De=N.next())De=B(A,De.value,H),De!==null&&(_=i(De,_,pe),Re===null?ie=De:Re.sibling=De,Re=De);return ze&&Yl(A,pe),ie}for(ae=a(ae);!De.done;pe++,De=N.next())De=R(ae,A,pe,De.value,H),De!==null&&(e&&De.alternate!==null&&ae.delete(De.key===null?pe:De.key),_=i(De,_,pe),Re===null?ie=De:Re.sibling=De,Re=De);return e&&ae.forEach(function(f0){return t(A,f0)}),ze&&Yl(A,pe),ie}function Qe(A,_,N,H){if(typeof N=="object"&&N!==null&&N.type===re&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:e:{for(var ie=N.key;_!==null;){if(_.key===ie){if(ie=N.type,ie===re){if(_.tag===7){l(A,_.sibling),H=n(_,N.props.children),H.return=A,A=H;break e}}else if(_.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Q&&Ga(ie)===_.type){l(A,_.sibling),H=n(_,N.props),li(H,N),H.return=A,A=H;break e}l(A,_);break}else t(A,_);_=_.sibling}N.type===re?(H=La(N.props.children,A.mode,H,N.key),H.return=A,A=H):(H=ss(N.type,N.key,N.props,null,A.mode,H),li(H,N),H.return=A,A=H)}return o(A);case X:e:{for(ie=N.key;_!==null;){if(_.key===ie)if(_.tag===4&&_.stateNode.containerInfo===N.containerInfo&&_.stateNode.implementation===N.implementation){l(A,_.sibling),H=n(_,N.children||[]),H.return=A,A=H;break e}else{l(A,_);break}else t(A,_);_=_.sibling}H=qu(N,A.mode,H),H.return=A,A=H}return o(A);case Q:return N=Ga(N),Qe(A,_,N,H)}if(Ee(N))return W(A,_,N,H);if(O(N)){if(ie=O(N),typeof ie!="function")throw Error(c(150));return N=ie.call(N),se(A,_,N,H)}if(typeof N.then=="function")return Qe(A,_,hs(N),H);if(N.$$typeof===de)return Qe(A,_,rs(A,N),H);ms(A,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,_!==null&&_.tag===6?(l(A,_.sibling),H=n(_,N),H.return=A,A=H):(l(A,_),H=Bu(N,A.mode,H),H.return=A,A=H),o(A)):l(A,_)}return function(A,_,N,H){try{ti=0;var ie=Qe(A,_,N,H);return yn=null,ie}catch(ae){if(ae===gn||ae===fs)throw ae;var Re=Zt(29,ae,null,A.mode);return Re.lanes=H,Re.return=A,Re}}}var Qa=uf(!0),cf=uf(!1),ra=!1;function Iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fa(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Oe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=is(e),Qo(e,null,l),t}return ns(e,a,t,l),is(e)}function ai(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ln(e,l)}}function ec(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var tc=!1;function ni(){if(tc){var e=pn;if(e!==null)throw e}}function ii(e,t,l,a){tc=!1;var n=e.updateQueue;ra=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var v=h,k=v.next;v.next=null,o===null?i=k:o.next=k,o=v;var w=e.alternate;w!==null&&(w=w.updateQueue,h=w.lastBaseUpdate,h!==o&&(h===null?w.firstBaseUpdate=k:h.next=k,w.lastBaseUpdate=v))}if(i!==null){var B=n.baseState;o=0,w=k=v=null,h=i;do{var z=h.lane&-536870913,R=z!==h.lane;if(R?(Ne&z)===z:(a&z)===z){z!==0&&z===mn&&(tc=!0),w!==null&&(w=w.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,se=h;z=t;var Qe=l;switch(se.tag){case 1:if(W=se.payload,typeof W=="function"){B=W.call(Qe,B,z);break e}B=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=se.payload,z=typeof W=="function"?W.call(Qe,B,z):W,z==null)break e;B=E({},B,z);break e;case 2:ra=!0}}z=h.callback,z!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[z]:R.push(z))}else R={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},w===null?(k=w=R,v=B):w=w.next=R,o|=z;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;R=h,h=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);w===null&&(v=B),n.baseState=v,n.firstBaseUpdate=k,n.lastBaseUpdate=w,i===null&&(n.shared.lanes=0),ga|=o,e.lanes=o,e.memoizedState=B}}function rf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function of(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)rf(l[e],t)}var vn=S(null),ps=S(0);function ff(e,t){e=Il,C(ps,e),C(vn,t),Il=e|t.baseLanes}function lc(){C(ps,Il),C(vn,vn.current)}function ac(){Il=ps.current,U(vn),U(ps)}var Vt=S(null),fl=null;function da(e){var t=e.alternate;C(lt,lt.current&1),C(Vt,e),fl===null&&(t===null||vn.current!==null||t.memoizedState!==null)&&(fl=e)}function nc(e){C(lt,lt.current),C(Vt,e),fl===null&&(fl=e)}function df(e){e.tag===22?(C(lt,lt.current),C(Vt,e),fl===null&&(fl=e)):ha()}function ha(){C(lt,lt.current),C(Vt,Vt.current)}function Kt(e){U(Vt),fl===e&&(fl=null),U(lt)}var lt=S(0);function gs(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||or(l)||fr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ql=0,he=null,Ge=null,ot=null,ys=!1,bn=!1,Za=!1,vs=0,si=0,Sn=null,tg=0;function et(){throw Error(c(321))}function ic(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Qt(e[l],t[l]))return!1;return!0}function sc(e,t,l,a,n,i){return Ql=i,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Jf:xc,Za=!1,i=l(a,n),Za=!1,bn&&(i=mf(t,l,a,n)),hf(e),i}function hf(e){M.H=ri;var t=Ge!==null&&Ge.next!==null;if(Ql=0,ot=Ge=he=null,ys=!1,si=0,Sn=null,t)throw Error(c(300));e===null||ft||(e=e.dependencies,e!==null&&cs(e)&&(ft=!0))}function mf(e,t,l,a){he=e;var n=0;do{if(bn&&(Sn=null),si=0,bn=!1,25<=n)throw Error(c(301));if(n+=1,ot=Ge=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}M.H=Ff,i=t(l,a)}while(bn);return i}function lg(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?ui(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(he.flags|=1024),t}function uc(){var e=vs!==0;return vs=0,e}function cc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function rc(e){if(ys){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ys=!1}Ql=0,ot=Ge=he=null,bn=!1,si=vs=0,Sn=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?he.memoizedState=ot=e:ot=ot.next=e,ot}function at(){if(Ge===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=ot===null?he.memoizedState:ot.next;if(t!==null)ot=t,Ge=e;else{if(e===null)throw he.alternate===null?Error(c(467)):Error(c(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},ot===null?he.memoizedState=ot=e:ot=ot.next=e}return ot}function bs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ui(e){var t=si;return si+=1,Sn===null&&(Sn=[]),e=af(Sn,e,t),t=he,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Jf:xc),e}function Ss(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ui(e);if(e.$$typeof===de)return xt(e)}throw Error(c(438,String(e)))}function oc(e){var t=null,l=he.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bs(),he.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Ce;return t.index++,l}function Zl(e,t){return typeof t=="function"?t(e):t}function xs(e){var t=at();return fc(t,Ge,e)}function fc(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var o=n.next;n.next=i.next,i.next=o}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var h=o=null,v=null,k=t,w=!1;do{var B=k.lane&-536870913;if(B!==k.lane?(Ne&B)===B:(Ql&B)===B){var z=k.revertLane;if(z===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),B===mn&&(w=!0);else if((Ql&z)===z){k=k.next,z===mn&&(w=!0);continue}else B={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},v===null?(h=v=B,o=i):v=v.next=B,he.lanes|=z,ga|=z;B=k.action,Za&&l(i,B),i=k.hasEagerState?k.eagerState:l(i,B)}else z={lane:B,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},v===null?(h=v=z,o=i):v=v.next=z,he.lanes|=B,ga|=B;k=k.next}while(k!==null&&k!==t);if(v===null?o=i:v.next=h,!Qt(i,e.memoizedState)&&(ft=!0,w&&(l=pn,l!==null)))throw l;e.memoizedState=i,e.baseState=o,e.baseQueue=v,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function dc(e){var t=at(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do i=e(i,o.action),o=o.next;while(o!==n);Qt(i,t.memoizedState)||(ft=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function pf(e,t,l){var a=he,n=at(),i=ze;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Qt((Ge||n).memoizedState,l);if(o&&(n.memoizedState=l,ft=!0),n=n.queue,pc(vf.bind(null,a,n,e),[e]),n.getSnapshot!==t||o||ot!==null&&ot.memoizedState.tag&1){if(a.flags|=2048,xn(9,{destroy:void 0},yf.bind(null,a,n,l,t),null),Ze===null)throw Error(c(349));i||(Ql&127)!==0||gf(a,t,l)}return l}function gf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=he.updateQueue,t===null?(t=bs(),he.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function yf(e,t,l,a){t.value=l,t.getSnapshot=a,bf(t)&&Sf(e)}function vf(e,t,l){return l(function(){bf(t)&&Sf(e)})}function bf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qt(e,l)}catch{return!0}}function Sf(e){var t=wa(e,2);t!==null&&Yt(t,e,2)}function hc(e){var t=zt();if(typeof e=="function"){var l=e;if(e=l(),Za){$e(!0);try{l()}finally{$e(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:e},t}function xf(e,t,l,a){return e.baseState=l,fc(e,Ge,typeof a=="function"?a:Zl)}function ag(e,t,l,a,n){if(As(e))throw Error(c(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};M.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Tf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Tf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=M.T,o={};M.T=o;try{var h=l(n,a),v=M.S;v!==null&&v(o,h),_f(e,t,h)}catch(k){mc(e,t,k)}finally{i!==null&&o.types!==null&&(i.types=o.types),M.T=i}}else try{i=l(n,a),_f(e,t,i)}catch(k){mc(e,t,k)}}function _f(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Af(e,t,a)},function(a){return mc(e,t,a)}):Af(e,t,l)}function Af(e,t,l){t.status="fulfilled",t.value=l,Ef(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Tf(e,l)))}function mc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ef(t),t=t.next;while(t!==a)}e.action=null}function Ef(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nf(e,t){return t}function kf(e,t){if(ze){var l=Ze.formState;if(l!==null){e:{var a=he;if(ze){if(Ve){t:{for(var n=Ve,i=ol;n.nodeType!==8;){if(!i){n=null;break t}if(n=dl(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ve=dl(n.nextSibling),a=n.data==="F!";break e}}ua(a)}a=!1}a&&(t=l[0])}}return l=zt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nf,lastRenderedState:t},l.queue=a,l=Vf.bind(null,he,a),a.dispatch=l,a=hc(!1),i=Sc.bind(null,he,!1,a.queue),a=zt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=ag.bind(null,he,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function jf(e){var t=at();return zf(t,Ge,e)}function zf(e,t,l){if(t=fc(e,t,Nf)[0],e=xs(Zl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ui(t)}catch(o){throw o===gn?fs:o}else a=t;t=at();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(he.flags|=2048,xn(9,{destroy:void 0},ng.bind(null,n,l),null)),[a,i,e]}function ng(e,t){e.action=t}function Mf(e){var t=at(),l=Ge;if(l!==null)return zf(t,l,e);at(),t=t.memoizedState,l=at();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function xn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=bs(),he.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Cf(){return at().memoizedState}function Ts(e,t,l,a){var n=zt();he.flags|=e,n.memoizedState=xn(1|t,{destroy:void 0},l,a===void 0?null:a)}function _s(e,t,l,a){var n=at();a=a===void 0?null:a;var i=n.memoizedState.inst;Ge!==null&&a!==null&&ic(a,Ge.memoizedState.deps)?n.memoizedState=xn(t,i,l,a):(he.flags|=e,n.memoizedState=xn(1|t,i,l,a))}function Rf(e,t){Ts(8390656,8,e,t)}function pc(e,t){_s(2048,8,e,t)}function ig(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=bs(),he.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Df(e){var t=at().memoizedState;return ig({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Of(e,t){return _s(4,2,e,t)}function Uf(e,t){return _s(4,4,e,t)}function wf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lf(e,t,l){l=l!=null?l.concat([e]):null,_s(4,4,wf.bind(null,t,e),l)}function gc(){}function Hf(e,t){var l=at();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ic(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Bf(e,t){var l=at();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ic(t,a[1]))return a[0];if(a=e(),Za){$e(!0);try{e()}finally{$e(!1)}}return l.memoizedState=[a,t],a}function yc(e,t,l){return l===void 0||(Ql&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=qd(),he.lanes|=e,ga|=e,l)}function qf(e,t,l,a){return Qt(l,t)?l:vn.current!==null?(e=yc(e,l,a),Qt(e,t)||(ft=!0),e):(Ql&42)===0||(Ql&1073741824)!==0&&(Ne&261930)===0?(ft=!0,e.memoizedState=l):(e=qd(),he.lanes|=e,ga|=e,t)}function Yf(e,t,l,a,n){var i=G.p;G.p=i!==0&&8>i?i:8;var o=M.T,h={};M.T=h,Sc(e,!1,t,l);try{var v=n(),k=M.S;if(k!==null&&k(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var w=eg(v,a);ci(e,t,w,Ft(e))}else ci(e,t,a,Ft(e))}catch(B){ci(e,t,{then:function(){},status:"rejected",reason:B},Ft())}finally{G.p=i,o!==null&&h.types!==null&&(o.types=h.types),M.T=o}}function sg(){}function vc(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=Gf(e).queue;Yf(e,n,t,ee,l===null?sg:function(){return Xf(e),l(a)})}function Gf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xf(e){var t=Gf(e);t.next===null&&(t=e.alternate.memoizedState),ci(e,t.next.queue,{},Ft())}function bc(){return xt(Ei)}function Qf(){return at().memoizedState}function Zf(){return at().memoizedState}function ug(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ft();e=oa(l);var a=fa(t,e,l);a!==null&&(Yt(a,t,l),ai(a,t,l)),t={cache:$u()},e.payload=t;return}t=t.return}}function cg(e,t,l){var a=Ft();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},As(e)?Kf(t,l):(l=Lu(e,t,l,a),l!==null&&(Yt(l,e,a),$f(l,t,a)))}function Vf(e,t,l){var a=Ft();ci(e,t,l,a)}function ci(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(As(e))Kf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,h=i(o,l);if(n.hasEagerState=!0,n.eagerState=h,Qt(h,o))return ns(e,t,n,0),Ze===null&&as(),!1}catch{}if(l=Lu(e,t,n,a),l!==null)return Yt(l,e,a),$f(l,t,a),!0}return!1}function Sc(e,t,l,a){if(a={lane:2,revertLane:Ic(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(c(479))}else t=Lu(e,l,a,2),t!==null&&Yt(t,e,2)}function As(e){var t=e.alternate;return e===he||t!==null&&t===he}function Kf(e,t){bn=ys=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function $f(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ln(e,l)}}var ri={readContext:xt,use:Ss,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};ri.useEffectEvent=et;var Jf={readContext:xt,use:Ss,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Rf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ts(4194308,4,wf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){Ts(4,2,e,t)},useMemo:function(e,t){var l=zt();t=t===void 0?null:t;var a=e();if(Za){$e(!0);try{e()}finally{$e(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=zt();if(l!==void 0){var n=l(t);if(Za){$e(!0);try{l(t)}finally{$e(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=cg.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=hc(e);var t=e.queue,l=Vf.bind(null,he,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:gc,useDeferredValue:function(e,t){var l=zt();return yc(l,e,t)},useTransition:function(){var e=hc(!1);return e=Yf.bind(null,he,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=he,n=zt();if(ze){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Ze===null)throw Error(c(349));(Ne&127)!==0||gf(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Rf(vf.bind(null,a,i,e),[e]),a.flags|=2048,xn(9,{destroy:void 0},yf.bind(null,a,i,l,t),null),l},useId:function(){var e=zt(),t=Ze.identifierPrefix;if(ze){var l=Ml,a=zl;l=(a&~(1<<32-Pe(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=vs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:kf,useActionState:kf,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Sc.bind(null,he,!0,l),l.dispatch=t,[e,t]},useMemoCache:oc,useCacheRefresh:function(){return zt().memoizedState=ug.bind(null,he)},useEffectEvent:function(e){var t=zt(),l={impl:e};return t.memoizedState=l,function(){if((Oe&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},xc={readContext:xt,use:Ss,useCallback:Hf,useContext:xt,useEffect:pc,useImperativeHandle:Lf,useInsertionEffect:Of,useLayoutEffect:Uf,useMemo:Bf,useReducer:xs,useRef:Cf,useState:function(){return xs(Zl)},useDebugValue:gc,useDeferredValue:function(e,t){var l=at();return qf(l,Ge.memoizedState,e,t)},useTransition:function(){var e=xs(Zl)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ui(e),t]},useSyncExternalStore:pf,useId:Qf,useHostTransitionStatus:bc,useFormState:jf,useActionState:jf,useOptimistic:function(e,t){var l=at();return xf(l,Ge,e,t)},useMemoCache:oc,useCacheRefresh:Zf};xc.useEffectEvent=Df;var Ff={readContext:xt,use:Ss,useCallback:Hf,useContext:xt,useEffect:pc,useImperativeHandle:Lf,useInsertionEffect:Of,useLayoutEffect:Uf,useMemo:Bf,useReducer:dc,useRef:Cf,useState:function(){return dc(Zl)},useDebugValue:gc,useDeferredValue:function(e,t){var l=at();return Ge===null?yc(l,e,t):qf(l,Ge.memoizedState,e,t)},useTransition:function(){var e=dc(Zl)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ui(e),t]},useSyncExternalStore:pf,useId:Qf,useHostTransitionStatus:bc,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var l=at();return Ge!==null?xf(l,Ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:oc,useCacheRefresh:Zf};Ff.useEffectEvent=Df;function Tc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:E({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _c={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Ft(),n=oa(a);n.payload=t,l!=null&&(n.callback=l),t=fa(e,n,a),t!==null&&(Yt(t,e,a),ai(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Ft(),n=oa(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=fa(e,n,a),t!==null&&(Yt(t,e,a),ai(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ft(),a=oa(l);a.tag=2,t!=null&&(a.callback=t),t=fa(e,a,l),t!==null&&(Yt(t,e,l),ai(t,e,l))}};function Wf(e,t,l,a,n,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,o):t.prototype&&t.prototype.isPureReactComponent?!Jn(l,a)||!Jn(n,i):!0}function If(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function Va(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=E({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Pf(e){ls(e)}function ed(e){console.error(e)}function td(e){ls(e)}function Es(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ld(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ac(e,t,l){return l=oa(l),l.tag=3,l.payload={element:null},l.callback=function(){Es(e,t)},l}function ad(e){return e=oa(e),e.tag=3,e}function nd(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){ld(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){ld(t,l,a),typeof n!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function rg(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&hn(t,l,n,!0),l=Vt.current,l!==null){switch(l.tag){case 31:case 13:return fl===null?Ls():l.alternate===null&&tt===0&&(tt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ds?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Jc(e,a,n)),!1;case 22:return l.flags|=65536,a===ds?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Jc(e,a,n)),!1}throw Error(c(435,l.tag))}return Jc(e,a,n),Ls(),!1}if(ze)return t=Vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Xu&&(e=Error(c(422),{cause:a}),In(ul(e,l)))):(a!==Xu&&(t=Error(c(423),{cause:a}),In(ul(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=ul(a,l),n=Ac(e.stateNode,a,n),ec(e,n),tt!==4&&(tt=2)),!1;var i=Error(c(520),{cause:a});if(i=ul(i,l),yi===null?yi=[i]:yi.push(i),tt!==4&&(tt=2),t===null)return!0;a=ul(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Ac(l.stateNode,a,e),ec(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ya===null||!ya.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=ad(n),nd(n,e,l,a),ec(l,n),!1}l=l.return}while(l!==null);return!1}var Ec=Error(c(461)),ft=!1;function Tt(e,t,l,a){t.child=e===null?cf(t,null,l,a):Qa(t,e.child,l,a)}function id(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var o={};for(var h in a)h!=="ref"&&(o[h]=a[h])}else o=a;return qa(t),a=sc(e,t,l,o,i,n),h=uc(),e!==null&&!ft?(cc(e,t,n),Vl(e,t,n)):(ze&&h&&Yu(t),t.flags|=1,Tt(e,t,a,n),t.child)}function sd(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Hu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,ud(e,t,i,a,n)):(e=ss(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Dc(e,n)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:Jn,l(o,a)&&e.ref===t.ref)return Vl(e,t,n)}return t.flags|=1,e=ql(i,a),e.ref=t.ref,e.return=t,t.child=e}function ud(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Jn(i,a)&&e.ref===t.ref)if(ft=!1,t.pendingProps=a=i,Dc(e,n))(e.flags&131072)!==0&&(ft=!0);else return t.lanes=e.lanes,Vl(e,t,n)}return Nc(e,t,l,a,n)}function cd(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return rd(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&os(t,i!==null?i.cachePool:null),i!==null?ff(t,i):lc(),df(t);else return a=t.lanes=536870912,rd(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(os(t,i.cachePool),ff(t,i),ha(),t.memoizedState=null):(e!==null&&os(t,null),lc(),ha());return Tt(e,t,n,l),t.child}function oi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rd(e,t,l,a,n){var i=Fu();return i=i===null?null:{parent:rt._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&os(t,null),lc(),df(t),e!==null&&hn(e,t,a,!0),t.childLanes=n,null}function Ns(e,t){return t=js({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function od(e,t,l){return Qa(t,e.child,null,l),e=Ns(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function og(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(a.mode==="hidden")return e=Ns(t,a),t.lanes=536870912,oi(null,e);if(nc(t),(e=Ve)?(e=Th(e,ol),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:zl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=Vo(e),l.return=t,t.child=l,St=t,Ve=null)):e=null,e===null)throw ua(t);return t.lanes=536870912,null}return Ns(t,a)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(nc(t),n)if(t.flags&256)t.flags&=-257,t=od(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(ft||hn(e,t,l,!1),n=(l&e.childLanes)!==0,ft||n){if(a=Ze,a!==null&&(o=Gi(a,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,wa(e,o),Yt(a,e,o),Ec;Ls(),t=od(e,t,l)}else e=i.treeContext,Ve=dl(o.nextSibling),St=t,ze=!0,sa=null,ol=!1,e!==null&&Jo(t,e),t=Ns(t,a),t.flags|=4096;return t}return e=ql(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ks(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Nc(e,t,l,a,n){return qa(t),l=sc(e,t,l,a,void 0,n),a=uc(),e!==null&&!ft?(cc(e,t,n),Vl(e,t,n)):(ze&&a&&Yu(t),t.flags|=1,Tt(e,t,l,n),t.child)}function fd(e,t,l,a,n,i){return qa(t),t.updateQueue=null,l=mf(t,a,l,n),hf(e),a=uc(),e!==null&&!ft?(cc(e,t,i),Vl(e,t,i)):(ze&&a&&Yu(t),t.flags|=1,Tt(e,t,l,i),t.child)}function dd(e,t,l,a,n){if(qa(t),t.stateNode===null){var i=rn,o=l.contextType;typeof o=="object"&&o!==null&&(i=xt(o)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=_c,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Iu(t),o=l.contextType,i.context=typeof o=="object"&&o!==null?xt(o):rn,i.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(Tc(t,l,o,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&_c.enqueueReplaceState(i,i.state,null),ii(t,a,i,n),ni(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var h=t.memoizedProps,v=Va(l,h);i.props=v;var k=i.context,w=l.contextType;o=rn,typeof w=="object"&&w!==null&&(o=xt(w));var B=l.getDerivedStateFromProps;w=typeof B=="function"||typeof i.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,w||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(h||k!==o)&&If(t,i,a,o),ra=!1;var z=t.memoizedState;i.state=z,ii(t,a,i,n),ni(),k=t.memoizedState,h||z!==k||ra?(typeof B=="function"&&(Tc(t,l,B,a),k=t.memoizedState),(v=ra||Wf(t,l,v,a,z,k,o))?(w||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),i.props=a,i.state=k,i.context=o,a=v):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Pu(e,t),o=t.memoizedProps,w=Va(l,o),i.props=w,B=t.pendingProps,z=i.context,k=l.contextType,v=rn,typeof k=="object"&&k!==null&&(v=xt(k)),h=l.getDerivedStateFromProps,(k=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==B||z!==v)&&If(t,i,a,v),ra=!1,z=t.memoizedState,i.state=z,ii(t,a,i,n),ni();var R=t.memoizedState;o!==B||z!==R||ra||e!==null&&e.dependencies!==null&&cs(e.dependencies)?(typeof h=="function"&&(Tc(t,l,h,a),R=t.memoizedState),(w=ra||Wf(t,l,w,a,z,R,v)||e!==null&&e.dependencies!==null&&cs(e.dependencies))?(k||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,R,v),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,R,v)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),i.props=a,i.state=R,i.context=v,a=w):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,ks(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Qa(t,e.child,null,n),t.child=Qa(t,null,l,n)):Tt(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Vl(e,t,n),e}function hd(e,t,l,a){return Ha(),t.flags|=256,Tt(e,t,l,a),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jc(e){return{baseLanes:e,cachePool:tf()}}function zc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Jt),e}function md(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(n?da(t):ha(),(e=Ve)?(e=Th(e,ol),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:zl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},l=Vo(e),l.return=t,t.child=l,St=t,Ve=null)):e=null,e===null)throw ua(t);return fr(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(ha(),n=t.mode,h=js({mode:"hidden",children:h},n),a=La(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=jc(l),a.childLanes=zc(e,o,l),t.memoizedState=kc,oi(null,a)):(da(t),Mc(t,h))}var v=e.memoizedState;if(v!==null&&(h=v.dehydrated,h!==null)){if(i)t.flags&256?(da(t),t.flags&=-257,t=Cc(e,t,l)):t.memoizedState!==null?(ha(),t.child=e.child,t.flags|=128,t=null):(ha(),h=a.fallback,n=t.mode,a=js({mode:"visible",children:a.children},n),h=La(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Qa(t,e.child,null,l),a=t.child,a.memoizedState=jc(l),a.childLanes=zc(e,o,l),t.memoizedState=kc,t=oi(null,a));else if(da(t),fr(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var k=o.dgst;o=k,a=Error(c(419)),a.stack="",a.digest=o,In({value:a,source:null,stack:null}),t=Cc(e,t,l)}else if(ft||hn(e,t,l,!1),o=(l&e.childLanes)!==0,ft||o){if(o=Ze,o!==null&&(a=Gi(o,l),a!==0&&a!==v.retryLane))throw v.retryLane=a,wa(e,a),Yt(o,e,a),Ec;or(h)||Ls(),t=Cc(e,t,l)}else or(h)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Ve=dl(h.nextSibling),St=t,ze=!0,sa=null,ol=!1,e!==null&&Jo(t,e),t=Mc(t,a.children),t.flags|=4096);return t}return n?(ha(),h=a.fallback,n=t.mode,v=e.child,k=v.sibling,a=ql(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,k!==null?h=ql(k,h):(h=La(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,oi(null,a),a=t.child,h=e.child.memoizedState,h===null?h=jc(l):(n=h.cachePool,n!==null?(v=rt._currentValue,n=n.parent!==v?{parent:v,pool:v}:n):n=tf(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=zc(e,o,l),t.memoizedState=kc,oi(e.child,a)):(da(t),l=e.child,e=l.sibling,l=ql(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function Mc(e,t){return t=js({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function js(e,t){return e=Zt(22,e,null,t),e.lanes=0,e}function Cc(e,t,l){return Qa(t,e.child,null,l),e=Mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Vu(e.return,t,l)}function Rc(e,t,l,a,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=i)}function gd(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var o=lt.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,C(lt,o),Tt(e,t,a,l),a=ze?Wn:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pd(e,l,t);else if(e.tag===19)pd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&gs(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Rc(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&gs(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Rc(t,!0,l,null,i,a);break;case"together":Rc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Vl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ga|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(hn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=ql(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ql(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Dc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cs(e)))}function fg(e,t,l){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),ca(t,rt,e.memoizedState.cache),Ha();break;case 27:case 5:nt(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,nc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(da(t),t.flags|=128,null):(l&t.child.childLanes)!==0?md(e,t,l):(da(t),e=Vl(e,t,l),e!==null?e.sibling:null);da(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(hn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return gd(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),C(lt,lt.current),a)break;return null;case 22:return t.lanes=0,cd(e,t,l,t.pendingProps);case 24:ca(t,rt,e.memoizedState.cache)}return Vl(e,t,l)}function yd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ft=!0;else{if(!Dc(e,l)&&(t.flags&128)===0)return ft=!1,fg(e,t,l);ft=(e.flags&131072)!==0}else ft=!1,ze&&(t.flags&1048576)!==0&&$o(t,Wn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ga(t.elementType),t.type=e,typeof e=="function")Hu(e)?(a=Va(e,a),t.tag=1,t=dd(null,t,e,a,l)):(t.tag=0,t=Nc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===te){t.tag=11,t=id(null,t,e,a,l);break e}else if(n===K){t.tag=14,t=sd(null,t,e,a,l);break e}}throw t=me(e)||e,Error(c(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Va(a,t.pendingProps),dd(e,t,a,n,l);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Pu(e,t),ii(t,a,null,l);var o=t.memoizedState;if(a=o.cache,ca(t,rt,a),a!==i.cache&&Ku(t,[rt],l,!0),ni(),a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=hd(e,t,a,l);break e}else if(a!==n){n=ul(Error(c(424)),t),In(n),t=hd(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ve=dl(e.firstChild),St=t,ze=!0,sa=null,ol=!0,l=cf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ha(),a===n){t=Vl(e,t,l);break e}Tt(e,t,a,l)}t=t.child}return t;case 26:return ks(e,t),e===null?(l=jh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ze||(l=t.type,e=t.pendingProps,a=Qs(ce.current).createElement(l),a[ct]=t,a[Je]=e,_t(a,l,e),be(a),t.stateNode=a):t.memoizedState=jh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nt(t),e===null&&ze&&(a=t.stateNode=Eh(t.type,t.pendingProps,ce.current),St=t,ol=!0,n=Ve,xa(t.type)?(dr=n,Ve=dl(a.firstChild)):Ve=n),Tt(e,t,t.pendingProps.children,l),ks(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((n=a=Ve)&&(a=Yg(a,t.type,t.pendingProps,ol),a!==null?(t.stateNode=a,St=t,Ve=dl(a.firstChild),ol=!1,n=!0):n=!1),n||ua(t)),nt(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ur(n,i)?a=null:o!==null&&ur(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=sc(e,t,lg,null,null,l),Ei._currentValue=n),ks(e,t),Tt(e,t,a,l),t.child;case 6:return e===null&&ze&&((e=l=Ve)&&(l=Gg(l,t.pendingProps,ol),l!==null?(t.stateNode=l,St=t,Ve=null,e=!0):e=!1),e||ua(t)),null;case 13:return md(e,t,l);case 4:return Le(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Qa(t,null,a,l):Tt(e,t,a,l),t.child;case 11:return id(e,t,t.type,t.pendingProps,l);case 7:return Tt(e,t,t.pendingProps,l),t.child;case 8:return Tt(e,t,t.pendingProps.children,l),t.child;case 12:return Tt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ca(t,t.type,a.value),Tt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,qa(t),n=xt(n),a=a(n),t.flags|=1,Tt(e,t,a,l),t.child;case 14:return sd(e,t,t.type,t.pendingProps,l);case 15:return ud(e,t,t.type,t.pendingProps,l);case 19:return gd(e,t,l);case 31:return og(e,t,l);case 22:return cd(e,t,l,t.pendingProps);case 24:return qa(t),a=xt(rt),e===null?(n=Fu(),n===null&&(n=Ze,i=$u(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Iu(t),ca(t,rt,n)):((e.lanes&l)!==0&&(Pu(e,t),ii(t,null,null,l),ni()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ca(t,rt,a)):(a=i.cache,ca(t,rt,a),a!==n.cache&&Ku(t,[rt],l,!0))),Tt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Kl(e){e.flags|=4}function Oc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Qd())e.flags|=8192;else throw Xa=ds,Wu}else e.flags&=-16777217}function vd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dh(t))if(Qd())e.flags|=8192;else throw Xa=ds,Wu}function zs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ne():536870912,e.lanes|=t,En|=t)}function fi(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function dg(e,t,l){var a=t.pendingProps;switch(Gu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Xl(rt),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(dn(t)?Kl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qu())),Ke(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Kl(t),i!==null?(Ke(t),vd(t,i)):(Ke(t),Oc(t,n,null,a,l))):i?i!==e.memoizedState?(Kl(t),Ke(t),vd(t,i)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Kl(t),Ke(t),Oc(t,n,e,a,l)),null;case 27:if(pt(t),l=ce.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ke(t),null}e=Z.current,dn(t)?Fo(t):(e=Eh(n,a,l),t.stateNode=e,Kl(t))}return Ke(t),null;case 5:if(pt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ke(t),null}if(i=Z.current,dn(t))Fo(t);else{var o=Qs(ce.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}i[ct]=t,i[Je]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(_t(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Kl(t)}}return Ke(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Kl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=ce.current,dn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=St,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||mh(e.nodeValue,l)),e||ua(t,!0)}else e=Qs(e).createTextNode(a),e[ct]=t,t.stateNode=e}return Ke(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=dn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ct]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else l=Qu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ke(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=dn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[ct]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),n=!1}else n=Qu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),zs(t,t.updateQueue),Ke(t),null);case 4:return Ue(),e===null&&lr(t.stateNode.containerInfo),Ke(t),null;case 10:return Xl(t.type),Ke(t),null;case 19:if(U(lt),a=t.memoizedState,a===null)return Ke(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)fi(a,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=gs(e),i!==null){for(t.flags|=128,fi(a,!1),e=i.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Zo(l,e),l=l.sibling;return C(lt,lt.current&1|2),ze&&Yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>Os&&(t.flags|=128,n=!0,fi(a,!1),t.lanes=4194304)}else{if(!n)if(e=gs(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),fi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ze)return Ke(t),null}else 2*st()-a.renderingStartTime>Os&&l!==536870912&&(t.flags|=128,n=!0,fi(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=st(),e.sibling=null,l=lt.current,C(lt,n?l&1|2:l&1),ze&&Yl(t,a.treeForkCount),e):(Ke(t),null);case 22:case 23:return Kt(t),ac(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),l=t.updateQueue,l!==null&&zs(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Ya),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Xl(rt),Ke(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function hg(e,t){switch(Gu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xl(rt),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pt(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(c(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(lt),null;case 4:return Ue(),null;case 10:return Xl(t.type),null;case 22:case 23:return Kt(t),ac(),e!==null&&U(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xl(rt),null;case 25:return null;default:return null}}function bd(e,t){switch(Gu(t),t.tag){case 3:Xl(rt),Ue();break;case 26:case 27:case 5:pt(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:U(lt);break;case 10:Xl(t.type);break;case 22:case 23:Kt(t),ac(),e!==null&&U(Ya);break;case 24:Xl(rt)}}function di(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,o=l.inst;a=i(),o.destroy=a}l=l.next}while(l!==n)}}catch(h){qe(t,t.return,h)}}function ma(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var o=a.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var v=l,k=h;try{k()}catch(w){qe(n,v,w)}}}a=a.next}while(a!==i)}}catch(w){qe(t,t.return,w)}}function Sd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{of(t,l)}catch(a){qe(e,e.return,a)}}}function xd(e,t,l){l.props=Va(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){qe(e,t,a)}}function hi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){qe(e,t,n)}}function Cl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){qe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){qe(e,t,n)}else l.current=null}function Td(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){qe(e,e.return,n)}}function Uc(e,t,l){try{var a=e.stateNode;Ug(a,e.type,l,t),a[Je]=t}catch(n){qe(e,e.return,n)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xa(e.type)||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Hl));else if(a!==4&&(a===27&&xa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Lc(e,t,l),e=e.sibling;e!==null;)Lc(e,t,l),e=e.sibling}function Ms(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&xa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ms(e,t,l),e=e.sibling;e!==null;)Ms(e,t,l),e=e.sibling}function Ad(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);_t(t,a,l),t[ct]=e,t[Je]=l}catch(i){qe(e,e.return,i)}}var $l=!1,dt=!1,Hc=!1,Ed=typeof WeakSet=="function"?WeakSet:Set,yt=null;function mg(e,t){if(e=e.containerInfo,ir=Ws,e=wo(e),Cu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var o=0,h=-1,v=-1,k=0,w=0,B=e,z=null;t:for(;;){for(var R;B!==l||n!==0&&B.nodeType!==3||(h=o+n),B!==i||a!==0&&B.nodeType!==3||(v=o+a),B.nodeType===3&&(o+=B.nodeValue.length),(R=B.firstChild)!==null;)z=B,B=R;for(;;){if(B===e)break t;if(z===l&&++k===n&&(h=o),z===i&&++w===a&&(v=o),(R=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=R}l=h===-1||v===-1?null:{start:h,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(sr={focusedElem:e,selectionRange:l},Ws=!1,yt=t;yt!==null;)if(t=yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yt=e;else for(;yt!==null;){switch(t=yt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var W=Va(l.type,n);e=a.getSnapshotBeforeUpdate(W,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){qe(l,l.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)rr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,yt=e;break}yt=t.return}}function Nd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Fl(e,l),a&4&&di(5,l);break;case 1:if(Fl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){qe(l,l.return,o)}else{var n=Va(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){qe(l,l.return,o)}}a&64&&Sd(l),a&512&&hi(l,l.return);break;case 3:if(Fl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{of(e,t)}catch(o){qe(l,l.return,o)}}break;case 27:t===null&&a&4&&Ad(l);case 26:case 5:Fl(e,l),t===null&&a&4&&Td(l),a&512&&hi(l,l.return);break;case 12:Fl(e,l);break;case 31:Fl(e,l),a&4&&zd(e,l);break;case 13:Fl(e,l),a&4&&Md(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=_g.bind(null,l),Xg(e,l))));break;case 22:if(a=l.memoizedState!==null||$l,!a){t=t!==null&&t.memoizedState!==null||dt,n=$l;var i=dt;$l=a,(dt=t)&&!i?Wl(e,l,(l.subtreeFlags&8772)!==0):Fl(e,l),$l=n,dt=i}break;case 30:break;default:Fl(e,l)}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&T(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Fe=null,Lt=!1;function Jl(e,t,l){for(l=l.child;l!==null;)jd(e,t,l),l=l.sibling}function jd(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(tl,l)}catch{}switch(l.tag){case 26:dt||Cl(l,t),Jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:dt||Cl(l,t);var a=Fe,n=Lt;xa(l.type)&&(Fe=l.stateNode,Lt=!1),Jl(e,t,l),Ti(l.stateNode),Fe=a,Lt=n;break;case 5:dt||Cl(l,t);case 6:if(a=Fe,n=Lt,Fe=null,Jl(e,t,l),Fe=a,Lt=n,Fe!==null)if(Lt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(l.stateNode)}catch(i){qe(l,t,i)}else try{Fe.removeChild(l.stateNode)}catch(i){qe(l,t,i)}break;case 18:Fe!==null&&(Lt?(e=Fe,Sh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Dn(e)):Sh(Fe,l.stateNode));break;case 4:a=Fe,n=Lt,Fe=l.stateNode.containerInfo,Lt=!0,Jl(e,t,l),Fe=a,Lt=n;break;case 0:case 11:case 14:case 15:ma(2,l,t),dt||ma(4,l,t),Jl(e,t,l);break;case 1:dt||(Cl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&xd(l,t,a)),Jl(e,t,l);break;case 21:Jl(e,t,l);break;case 22:dt=(a=dt)||l.memoizedState!==null,Jl(e,t,l),dt=a;break;default:Jl(e,t,l)}}function zd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dn(e)}catch(l){qe(t,t.return,l)}}}function Md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dn(e)}catch(l){qe(t,t.return,l)}}function pg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ed),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ed),t;default:throw Error(c(435,e.tag))}}function Cs(e,t){var l=pg(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Ag.bind(null,e,a);a.then(n,n)}})}function Ht(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(xa(h.type)){Fe=h.stateNode,Lt=!1;break e}break;case 5:Fe=h.stateNode,Lt=!1;break e;case 3:case 4:Fe=h.stateNode.containerInfo,Lt=!0;break e}h=h.return}if(Fe===null)throw Error(c(160));jd(i,o,n),Fe=null,Lt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cd(t,e),t=t.sibling}var bl=null;function Cd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(t,e),Bt(e),a&4&&(ma(3,e,e.return),di(3,e),ma(5,e,e.return));break;case 1:Ht(t,e),Bt(e),a&512&&(dt||l===null||Cl(l,l.return)),a&64&&$l&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=bl;if(Ht(t,e),Bt(e),a&512&&(dt||l===null||Cl(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[le]||i[ct]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),_t(i,a,l),i[ct]=e,be(i),a=i;break e;case"link":var o=Ch("link","href",n).get(a+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(i=o[h],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(h,1);break t}}i=n.createElement(a),_t(i,a,l),n.head.appendChild(i);break;case"meta":if(o=Ch("meta","content",n).get(a+(l.content||""))){for(h=0;h<o.length;h++)if(i=o[h],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(h,1);break t}}i=n.createElement(a),_t(i,a,l),n.head.appendChild(i);break;default:throw Error(c(468,a))}i[ct]=e,be(i),a=i}e.stateNode=a}else Rh(n,e.type,e.stateNode);else e.stateNode=Mh(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Rh(n,e.type,e.stateNode):Mh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ht(t,e),Bt(e),a&512&&(dt||l===null||Cl(l,l.return)),l!==null&&a&4&&Uc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ht(t,e),Bt(e),a&512&&(dt||l===null||Cl(l,l.return)),e.flags&32){n=e.stateNode;try{tn(n,"")}catch(W){qe(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Uc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Hc=!0);break;case 6:if(Ht(t,e),Bt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){qe(e,e.return,W)}}break;case 3:if(Ks=null,n=bl,bl=Zs(t.containerInfo),Ht(t,e),bl=n,Bt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Dn(t.containerInfo)}catch(W){qe(e,e.return,W)}Hc&&(Hc=!1,Rd(e));break;case 4:a=bl,bl=Zs(e.stateNode.containerInfo),Ht(t,e),Bt(e),bl=a;break;case 12:Ht(t,e),Bt(e);break;case 31:Ht(t,e),Bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cs(e,a)));break;case 13:Ht(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ds=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cs(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,k=$l,w=dt;if($l=k||n,dt=w||v,Ht(t,e),dt=w,$l=k,Bt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||$l||dt||Ka(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(i=v.stateNode,n)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=v.stateNode;var B=v.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){qe(v,v.return,W)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(W){qe(v,v.return,W)}}}else if(t.tag===18){if(l===null){v=t;try{var R=v.stateNode;n?xh(R,!0):xh(v.stateNode,!1)}catch(W){qe(v,v.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Cs(e,l))));break;case 19:Ht(t,e),Bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cs(e,a)));break;case 30:break;case 21:break;default:Ht(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(_d(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,i=wc(e);Ms(e,i,n);break;case 5:var o=l.stateNode;l.flags&32&&(tn(o,""),l.flags&=-33);var h=wc(e);Ms(e,h,o);break;case 3:case 4:var v=l.stateNode.containerInfo,k=wc(e);Lc(e,k,v);break;default:throw Error(c(161))}}catch(w){qe(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Fl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nd(e,t.alternate,t),t=t.sibling}function Ka(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ma(4,t,t.return),Ka(t);break;case 1:Cl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&xd(t,t.return,l),Ka(t);break;case 27:Ti(t.stateNode);case 26:case 5:Cl(t,t.return),Ka(t);break;case 22:t.memoizedState===null&&Ka(t);break;case 30:Ka(t);break;default:Ka(t)}e=e.sibling}}function Wl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:Wl(n,i,l),di(4,i);break;case 1:if(Wl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(k){qe(a,a.return,k)}if(a=i,n=a.updateQueue,n!==null){var h=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)rf(v[n],h)}catch(k){qe(a,a.return,k)}}l&&o&64&&Sd(i),hi(i,i.return);break;case 27:Ad(i);case 26:case 5:Wl(n,i,l),l&&a===null&&o&4&&Td(i),hi(i,i.return);break;case 12:Wl(n,i,l);break;case 31:Wl(n,i,l),l&&o&4&&zd(n,i);break;case 13:Wl(n,i,l),l&&o&4&&Md(n,i);break;case 22:i.memoizedState===null&&Wl(n,i,l),hi(i,i.return);break;case 30:break;default:Wl(n,i,l)}t=t.sibling}}function Bc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Pn(l))}function qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pn(e))}function Sl(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dd(e,t,l,a),t=t.sibling}function Dd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Sl(e,t,l,a),n&2048&&di(9,t);break;case 1:Sl(e,t,l,a);break;case 3:Sl(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pn(e)));break;case 12:if(n&2048){Sl(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,h=i.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){qe(t,t.return,v)}}else Sl(e,t,l,a);break;case 31:Sl(e,t,l,a);break;case 13:Sl(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Sl(e,t,l,a):mi(e,t):i._visibility&2?Sl(e,t,l,a):(i._visibility|=2,Tn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Bc(o,t);break;case 24:Sl(e,t,l,a),n&2048&&qc(t.alternate,t);break;default:Sl(e,t,l,a)}}function Tn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,h=l,v=a,k=o.flags;switch(o.tag){case 0:case 11:case 15:Tn(i,o,h,v,n),di(8,o);break;case 23:break;case 22:var w=o.stateNode;o.memoizedState!==null?w._visibility&2?Tn(i,o,h,v,n):mi(i,o):(w._visibility|=2,Tn(i,o,h,v,n)),n&&k&2048&&Bc(o.alternate,o);break;case 24:Tn(i,o,h,v,n),n&&k&2048&&qc(o.alternate,o);break;default:Tn(i,o,h,v,n)}t=t.sibling}}function mi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:mi(l,a),n&2048&&Bc(a.alternate,a);break;case 24:mi(l,a),n&2048&&qc(a.alternate,a);break;default:mi(l,a)}t=t.sibling}}var pi=8192;function _n(e,t,l){if(e.subtreeFlags&pi)for(e=e.child;e!==null;)Od(e,t,l),e=e.sibling}function Od(e,t,l){switch(e.tag){case 26:_n(e,t,l),e.flags&pi&&e.memoizedState!==null&&t0(l,bl,e.memoizedState,e.memoizedProps);break;case 5:_n(e,t,l);break;case 3:case 4:var a=bl;bl=Zs(e.stateNode.containerInfo),_n(e,t,l),bl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=pi,pi=16777216,_n(e,t,l),pi=a):_n(e,t,l));break;default:_n(e,t,l)}}function Ud(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];yt=a,Ld(a,e)}Ud(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wd(e),e=e.sibling}function wd(e){switch(e.tag){case 0:case 11:case 15:gi(e),e.flags&2048&&ma(9,e,e.return);break;case 3:gi(e);break;case 12:gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rs(e)):gi(e);break;default:gi(e)}}function Rs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];yt=a,Ld(a,e)}Ud(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ma(8,t,t.return),Rs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Rs(t));break;default:Rs(t)}e=e.sibling}}function Ld(e,t){for(;yt!==null;){var l=yt;switch(l.tag){case 0:case 11:case 15:ma(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Pn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,yt=a;else e:for(l=e;yt!==null;){a=yt;var n=a.sibling,i=a.return;if(kd(a),a===l){yt=null;break e}if(n!==null){n.return=i,yt=n;break e}yt=i}}}var gg={getCacheForType:function(e){var t=xt(rt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return xt(rt).controller.signal}},yg=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Ze=null,_e=null,Ne=0,Be=0,$t=null,pa=!1,An=!1,Yc=!1,Il=0,tt=0,ga=0,$a=0,Gc=0,Jt=0,En=0,yi=null,qt=null,Xc=!1,Ds=0,Hd=0,Os=1/0,Us=null,ya=null,mt=0,va=null,Nn=null,Pl=0,Qc=0,Zc=null,Bd=null,vi=0,Vc=null;function Ft(){return(Oe&2)!==0&&Ne!==0?Ne&-Ne:M.T!==null?Ic():Hn()}function qd(){if(Jt===0)if((Ne&536870912)===0||ze){var e=gl;gl<<=1,(gl&3932160)===0&&(gl=262144),Jt=e}else Jt=536870912;return e=Vt.current,e!==null&&(e.flags|=32),Jt}function Yt(e,t,l){(e===Ze&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(kn(e,0),ba(e,Ne,Jt,!1)),gt(e,l),((Oe&2)===0||e!==Ze)&&(e===Ze&&((Oe&2)===0&&($a|=l),tt===4&&ba(e,Ne,Jt,!1)),Rl(e))}function Yd(e,t,l){if((Oe&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||V(e,t),n=a?Sg(e,t):$c(e,t,!0),i=a;do{if(n===0){An&&!a&&ba(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!vg(l)){n=$c(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var h=e;n=yi;var v=h.current.memoizedState.isDehydrated;if(v&&(kn(h,o).flags|=256),o=$c(h,o,!1),o!==2){if(Yc&&!v){h.errorRecoveryDisabledLanes|=i,$a|=i,n=4;break e}i=qt,qt=n,i!==null&&(qt===null?qt=i:qt.push.apply(qt,i))}n=o}if(i=!1,n!==2)continue}}if(n===1){kn(e,0),ba(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ba(a,t,Jt,!pa);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=Ds+300-st(),10<n)){if(ba(a,t,Jt,!pa),aa(a,0,!0)!==0)break e;Pl=t,a.timeoutHandle=vh(Gd.bind(null,a,l,qt,Us,Xc,t,Jt,$a,En,pa,i,"Throttled",-0,0),n);break e}Gd(a,l,qt,Us,Xc,t,Jt,$a,En,pa,i,null,-0,0)}}break}while(!0);Rl(e)}function Gd(e,t,l,a,n,i,o,h,v,k,w,B,z,R){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hl},Od(t,i,B);var W=(i&62914560)===i?Ds-st():(i&4194048)===i?Hd-st():0;if(W=l0(B,W),W!==null){Pl=i,e.cancelPendingCommit=W(Fd.bind(null,e,t,i,l,a,n,o,h,v,w,B,null,z,R)),ba(e,i,o,!k);return}}Fd(e,t,i,l,a,n,o,h,v)}function vg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!Qt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ba(e,t,l,a){t&=~Gc,t&=~$a,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-Pe(n),o=1<<i;a[i]=-1,n&=~o}l!==0&&wn(e,l,t)}function ws(){return(Oe&6)===0?(bi(0),!1):!0}function Kc(){if(_e!==null){if(Be===0)var e=_e.return;else e=_e,Gl=Ba=null,rc(e),yn=null,ti=0,e=_e;for(;e!==null;)bd(e.alternate,e),e=e.return;_e=null}}function kn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Hg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pl=0,Kc(),Ze=e,_e=l=ql(e.current,null),Ne=t,Be=0,$t=null,pa=!1,An=V(e,t),Yc=!1,En=Jt=Gc=$a=ga=tt=0,qt=yi=null,Xc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Pe(a),i=1<<n;t|=e[n],a&=~i}return Il=t,as(),l}function Xd(e,t){he=null,M.H=ri,t===gn||t===fs?(t=nf(),Be=3):t===Wu?(t=nf(),Be=4):Be=t===Ec?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$t=t,_e===null&&(tt=1,Es(e,ul(t,e.current)))}function Qd(){var e=Vt.current;return e===null?!0:(Ne&4194048)===Ne?fl===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===fl:!1}function Zd(){var e=M.H;return M.H=ri,e===null?ri:e}function Vd(){var e=M.A;return M.A=gg,e}function Ls(){tt=4,pa||(Ne&4194048)!==Ne&&Vt.current!==null||(An=!0),(ga&134217727)===0&&($a&134217727)===0||Ze===null||ba(Ze,Ne,Jt,!1)}function $c(e,t,l){var a=Oe;Oe|=2;var n=Zd(),i=Vd();(Ze!==e||Ne!==t)&&(Us=null,kn(e,t)),t=!1;var o=tt;e:do try{if(Be!==0&&_e!==null){var h=_e,v=$t;switch(Be){case 8:Kc(),o=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(t=!0);var k=Be;if(Be=0,$t=null,jn(e,h,v,k),l&&An){o=0;break e}break;default:k=Be,Be=0,$t=null,jn(e,h,v,k)}}bg(),o=tt;break}catch(w){Xd(e,w)}while(!0);return t&&e.shellSuspendCounter++,Gl=Ba=null,Oe=a,M.H=n,M.A=i,_e===null&&(Ze=null,Ne=0,as()),o}function bg(){for(;_e!==null;)Kd(_e)}function Sg(e,t){var l=Oe;Oe|=2;var a=Zd(),n=Vd();Ze!==e||Ne!==t?(Us=null,Os=st()+500,kn(e,t)):An=V(e,t);e:do try{if(Be!==0&&_e!==null){t=_e;var i=$t;t:switch(Be){case 1:Be=0,$t=null,jn(e,t,i,1);break;case 2:case 9:if(lf(i)){Be=0,$t=null,$d(t);break}t=function(){Be!==2&&Be!==9||Ze!==e||(Be=7),Rl(e)},i.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:lf(i)?(Be=0,$t=null,$d(t)):(Be=0,$t=null,jn(e,t,i,7));break;case 5:var o=null;switch(_e.tag){case 26:o=_e.memoizedState;case 5:case 27:var h=_e;if(o?Dh(o):h.stateNode.complete){Be=0,$t=null;var v=h.sibling;if(v!==null)_e=v;else{var k=h.return;k!==null?(_e=k,Hs(k)):_e=null}break t}}Be=0,$t=null,jn(e,t,i,5);break;case 6:Be=0,$t=null,jn(e,t,i,6);break;case 8:Kc(),tt=6;break e;default:throw Error(c(462))}}xg();break}catch(w){Xd(e,w)}while(!0);return Gl=Ba=null,M.H=a,M.A=n,Oe=l,_e!==null?0:(Ze=null,Ne=0,as(),tt)}function xg(){for(;_e!==null&&!ja();)Kd(_e)}function Kd(e){var t=yd(e.alternate,e,Il);e.memoizedProps=e.pendingProps,t===null?Hs(e):_e=t}function $d(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=fd(l,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=fd(l,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:rc(t);default:bd(l,t),t=_e=Zo(t,Il),t=yd(l,t,Il)}e.memoizedProps=e.pendingProps,t===null?Hs(e):_e=t}function jn(e,t,l,a){Gl=Ba=null,rc(t),yn=null,ti=0;var n=t.return;try{if(rg(e,n,t,l,Ne)){tt=1,Es(e,ul(l,e.current)),_e=null;return}}catch(i){if(n!==null)throw _e=n,i;tt=1,Es(e,ul(l,e.current)),_e=null;return}t.flags&32768?(ze||a===1?e=!0:An||(Ne&536870912)!==0?e=!1:(pa=e=!0,(a===2||a===9||a===3||a===6)&&(a=Vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Jd(t,e)):Hs(t)}function Hs(e){var t=e;do{if((t.flags&32768)!==0){Jd(t,pa);return}e=t.return;var l=dg(t.alternate,t,Il);if(l!==null){_e=l;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);tt===0&&(tt=5)}function Jd(e,t){do{var l=hg(e.alternate,e);if(l!==null){l.flags&=32767,_e=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=l}while(e!==null);tt=6,_e=null}function Fd(e,t,l,a,n,i,o,h,v){e.cancelPendingCommit=null;do Bs();while(mt!==0);if((Oe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(i=t.lanes|t.childLanes,i|=wu,Un(e,l,i,o,h,v),e===Ze&&(_e=Ze=null,Ne=0),Nn=t,va=e,Pl=l,Qc=i,Zc=n,Bd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Eg(kl,function(){return th(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=G.p,G.p=2,o=Oe,Oe|=4;try{mg(e,t,l)}finally{Oe=o,G.p=n,M.T=a}}mt=1,Wd(),Id(),Pd()}}function Wd(){if(mt===1){mt=0;var e=va,t=Nn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var a=G.p;G.p=2;var n=Oe;Oe|=4;try{Cd(t,e);var i=sr,o=wo(e.containerInfo),h=i.focusedElem,v=i.selectionRange;if(o!==h&&h&&h.ownerDocument&&Uo(h.ownerDocument.documentElement,h)){if(v!==null&&Cu(h)){var k=v.start,w=v.end;if(w===void 0&&(w=k),"selectionStart"in h)h.selectionStart=k,h.selectionEnd=Math.min(w,h.value.length);else{var B=h.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var R=z.getSelection(),W=h.textContent.length,se=Math.min(v.start,W),Qe=v.end===void 0?se:Math.min(v.end,W);!R.extend&&se>Qe&&(o=Qe,Qe=se,se=o);var A=Oo(h,se),_=Oo(h,Qe);if(A&&_&&(R.rangeCount!==1||R.anchorNode!==A.node||R.anchorOffset!==A.offset||R.focusNode!==_.node||R.focusOffset!==_.offset)){var N=B.createRange();N.setStart(A.node,A.offset),R.removeAllRanges(),se>Qe?(R.addRange(N),R.extend(_.node,_.offset)):(N.setEnd(_.node,_.offset),R.addRange(N))}}}}for(B=[],R=h;R=R.parentNode;)R.nodeType===1&&B.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<B.length;h++){var H=B[h];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Ws=!!ir,sr=ir=null}finally{Oe=n,G.p=a,M.T=l}}e.current=t,mt=2}}function Id(){if(mt===2){mt=0;var e=va,t=Nn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=G.p;G.p=2;var n=Oe;Oe|=4;try{Nd(e,t.alternate,t)}finally{Oe=n,G.p=a,M.T=l}}mt=3}}function Pd(){if(mt===4||mt===3){mt=0,El();var e=va,t=Nn,l=Pl,a=Bd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,Nn=va=null,eh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ya=null),yl(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,n=G.p,G.p=2,M.T=null;try{for(var i=e.onRecoverableError,o=0;o<a.length;o++){var h=a[o];i(h.value,{componentStack:h.stack})}}finally{M.T=t,G.p=n}}(Pl&3)!==0&&Bs(),Rl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Vc?vi++:(vi=0,Vc=e):vi=0,bi(0)}}function eh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pn(t)))}function Bs(){return Wd(),Id(),Pd(),th()}function th(){if(mt!==5)return!1;var e=va,t=Qc;Qc=0;var l=yl(Pl),a=M.T,n=G.p;try{G.p=32>l?32:l,M.T=null,l=Zc,Zc=null;var i=va,o=Pl;if(mt=0,Nn=va=null,Pl=0,(Oe&6)!==0)throw Error(c(331));var h=Oe;if(Oe|=4,wd(i.current),Dd(i,i.current,o,l),Oe=h,bi(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(tl,i)}catch{}return!0}finally{G.p=n,M.T=a,eh(e,t)}}function lh(e,t,l){t=ul(l,t),t=Ac(e.stateNode,t,2),e=fa(e,t,2),e!==null&&(gt(e,2),Rl(e))}function qe(e,t,l){if(e.tag===3)lh(e,e,l);else for(;t!==null;){if(t.tag===3){lh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ya===null||!ya.has(a))){e=ul(l,e),l=ad(2),a=fa(t,l,2),a!==null&&(nd(l,a,t,e),gt(a,2),Rl(a));break}}t=t.return}}function Jc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new yg;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Yc=!0,n.add(l),e=Tg.bind(null,e,t,l),t.then(e,e))}function Tg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ze===e&&(Ne&l)===l&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>st()-Ds?(Oe&2)===0&&kn(e,0):Gc|=l,En===Ne&&(En=0)),Rl(e)}function ah(e,t){t===0&&(t=ne()),e=wa(e,t),e!==null&&(gt(e,t),Rl(e))}function _g(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),ah(e,l)}function Ag(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),ah(e,l)}function Eg(e,t){return el(e,t)}var qs=null,zn=null,Fc=!1,Ys=!1,Wc=!1,Sa=0;function Rl(e){e!==zn&&e.next===null&&(zn===null?qs=zn=e:zn=zn.next=e),Ys=!0,Fc||(Fc=!0,kg())}function bi(e,t){if(!Wc&&Ys){Wc=!0;do for(var l=!1,a=qs;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var o=a.suspendedLanes,h=a.pingedLanes;i=(1<<31-Pe(42|e)+1)-1,i&=n&~(o&~h),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,uh(a,i))}else i=Ne,i=aa(a,a===Ze?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||V(a,i)||(l=!0,uh(a,i));a=a.next}while(l);Wc=!1}}function Ng(){nh()}function nh(){Ys=Fc=!1;var e=0;Sa!==0&&Lg()&&(e=Sa);for(var t=st(),l=null,a=qs;a!==null;){var n=a.next,i=ih(a,t);i===0?(a.next=null,l===null?qs=n:l.next=n,n===null&&(zn=l)):(l=a,(e!==0||(i&3)!==0)&&(Ys=!0)),a=n}mt!==0&&mt!==5||bi(e),Sa!==0&&(Sa=0)}function ih(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Pe(i),h=1<<o,v=n[o];v===-1?((h&l)===0||(h&a)!==0)&&(n[o]=J(h,t)):v<=t&&(e.expiredLanes|=h),i&=~h}if(t=Ze,l=Ne,l=aa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Gt(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||V(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Gt(a),yl(l)){case 2:case 8:l=At;break;case 32:l=kl;break;case 268435456:l=Ma;break;default:l=kl}return a=sh.bind(null,e),l=el(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Gt(a),e.callbackPriority=2,e.callbackNode=null,2}function sh(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Bs()&&e.callbackNode!==l)return null;var a=Ne;return a=aa(e,e===Ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Yd(e,a,t),ih(e,st()),e.callbackNode!=null&&e.callbackNode===l?sh.bind(null,e):null)}function uh(e,t){if(Bs())return null;Yd(e,t,!0)}function kg(){Bg(function(){(Oe&6)!==0?el(Xt,Ng):nh()})}function Ic(){if(Sa===0){var e=mn;e===0&&(e=pl,pl<<=1,(pl&261888)===0&&(pl=256)),Sa=e}return Sa}function ch(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ji(""+e)}function rh(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function jg(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=ch((n[Je]||null).action),o=a.submitter;o&&(t=(t=o[Je]||null)?ch(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var h=new Pi("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Sa!==0){var v=o?rh(n,o):new FormData(n);vc(l,{pending:!0,data:v,method:n.method,action:i},null,v)}}else typeof i=="function"&&(h.preventDefault(),v=o?rh(n,o):new FormData(n),vc(l,{pending:!0,data:v,method:n.method,action:i},i,v))},currentTarget:n}]})}}for(var Pc=0;Pc<Uu.length;Pc++){var er=Uu[Pc],zg=er.toLowerCase(),Mg=er[0].toUpperCase()+er.slice(1);vl(zg,"on"+Mg)}vl(Bo,"onAnimationEnd"),vl(qo,"onAnimationIteration"),vl(Yo,"onAnimationStart"),vl("dblclick","onDoubleClick"),vl("focusin","onFocus"),vl("focusout","onBlur"),vl(Vp,"onTransitionRun"),vl(Kp,"onTransitionStart"),vl($p,"onTransitionCancel"),vl(Go,"onTransitionEnd"),jl("onMouseEnter",["mouseout","mouseover"]),jl("onMouseLeave",["mouseout","mouseover"]),jl("onPointerEnter",["pointerout","pointerover"]),jl("onPointerLeave",["pointerout","pointerover"]),Ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ut("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Si="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(" "),Cg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Si));function oh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var o=a.length-1;0<=o;o--){var h=a[o],v=h.instance,k=h.currentTarget;if(h=h.listener,v!==i&&n.isPropagationStopped())break e;i=h,n.currentTarget=k;try{i(n)}catch(w){ls(w)}n.currentTarget=null,i=v}else for(o=0;o<a.length;o++){if(h=a[o],v=h.instance,k=h.currentTarget,h=h.listener,v!==i&&n.isPropagationStopped())break e;i=h,n.currentTarget=k;try{i(n)}catch(w){ls(w)}n.currentTarget=null,i=v}}}}function Ae(e,t){var l=t[Pa];l===void 0&&(l=t[Pa]=new Set);var a=e+"__bubble";l.has(a)||(fh(t,e,2,!1),l.add(a))}function tr(e,t,l){var a=0;t&&(a|=4),fh(l,e,a,t)}var Gs="_reactListening"+Math.random().toString(36).slice(2);function lr(e){if(!e[Gs]){e[Gs]=!0,bt.forEach(function(l){l!=="selectionchange"&&(Cg.has(l)||tr(l,!1,e),tr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gs]||(t[Gs]=!0,tr("selectionchange",!1,t))}}function fh(e,t,l,a){switch(qh(t)){case 2:var n=i0;break;case 8:n=s0;break;default:n=yr}l=n.bind(null,t,l,e),n=void 0,!Tu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function ar(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var h=a.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=a.return;o!==null;){var v=o.tag;if((v===3||v===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=q(h),o===null)return;if(v=o.tag,v===5||v===6||v===26||v===27){a=i=o;continue e}h=h.parentNode}}a=a.return}po(function(){var k=i,w=Su(l),B=[];e:{var z=Xo.get(e);if(z!==void 0){var R=Pi,W=e;switch(e){case"keypress":if(Wi(l)===0)break e;case"keydown":case"keyup":R=Ap;break;case"focusin":W="focus",R=Nu;break;case"focusout":W="blur",R=Nu;break;case"beforeblur":case"afterblur":R=Nu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=vo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=dp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=kp;break;case Bo:case qo:case Yo:R=pp;break;case Go:R=zp;break;case"scroll":case"scrollend":R=op;break;case"wheel":R=Cp;break;case"copy":case"cut":case"paste":R=yp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=So;break;case"toggle":case"beforetoggle":R=Dp}var se=(t&4)!==0,Qe=!se&&(e==="scroll"||e==="scrollend"),A=se?z!==null?z+"Capture":null:z;se=[];for(var _=k,N;_!==null;){var H=_;if(N=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||N===null||A===null||(H=Gn(_,A),H!=null&&se.push(xi(_,H,N))),Qe)break;_=_.return}0<se.length&&(z=new R(z,W,null,l,w),B.push({event:z,listeners:se}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",z&&l!==bu&&(W=l.relatedTarget||l.fromElement)&&(q(W)||W[wl]))break e;if((R||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,R?(W=l.relatedTarget||l.toElement,R=k,W=W?q(W):null,W!==null&&(Qe=p(W),se=W.tag,W!==Qe||se!==5&&se!==27&&se!==6)&&(W=null)):(R=null,W=k),R!==W)){if(se=vo,H="onMouseLeave",A="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(se=So,H="onPointerLeave",A="onPointerEnter",_="pointer"),Qe=R==null?z:we(R),N=W==null?z:we(W),z=new se(H,_+"leave",R,l,w),z.target=Qe,z.relatedTarget=N,H=null,q(w)===k&&(se=new se(A,_+"enter",W,l,w),se.target=N,se.relatedTarget=Qe,H=se),Qe=H,R&&W)t:{for(se=Rg,A=R,_=W,N=0,H=A;H;H=se(H))N++;H=0;for(var ie=_;ie;ie=se(ie))H++;for(;0<N-H;)A=se(A),N--;for(;0<H-N;)_=se(_),H--;for(;N--;){if(A===_||_!==null&&A===_.alternate){se=A;break t}A=se(A),_=se(_)}se=null}else se=null;R!==null&&dh(B,z,R,se,!1),W!==null&&Qe!==null&&dh(B,Qe,W,se,!0)}}e:{if(z=k?we(k):window,R=z.nodeName&&z.nodeName.toLowerCase(),R==="select"||R==="input"&&z.type==="file")var Re=jo;else if(No(z))if(zo)Re=Xp;else{Re=Yp;var ae=qp}else R=z.nodeName,!R||R.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?k&&vu(k.elementType)&&(Re=jo):Re=Gp;if(Re&&(Re=Re(e,k))){ko(B,Re,l,w);break e}ae&&ae(e,z,k),e==="focusout"&&k&&z.type==="number"&&k.memoizedProps.value!=null&&yu(z,"number",z.value)}switch(ae=k?we(k):window,e){case"focusin":(No(ae)||ae.contentEditable==="true")&&(sn=ae,Ru=k,Fn=null);break;case"focusout":Fn=Ru=sn=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,Lo(B,l,w);break;case"selectionchange":if(Zp)break;case"keydown":case"keyup":Lo(B,l,w)}var pe;if(ju)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else nn?Ao(e,l)&&(ke="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ke="onCompositionStart");ke&&(xo&&l.locale!=="ko"&&(nn||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&nn&&(pe=go()):(na=w,_u="value"in na?na.value:na.textContent,nn=!0)),ae=Xs(k,ke),0<ae.length&&(ke=new bo(ke,e,null,l,w),B.push({event:ke,listeners:ae}),pe?ke.data=pe:(pe=Eo(l),pe!==null&&(ke.data=pe)))),(pe=Up?wp(e,l):Lp(e,l))&&(ke=Xs(k,"onBeforeInput"),0<ke.length&&(ae=new bo("onBeforeInput","beforeinput",null,l,w),B.push({event:ae,listeners:ke}),ae.data=pe)),jg(B,e,k,l,w)}oh(B,t)})}function xi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xs(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Gn(e,l),n!=null&&a.unshift(xi(e,n,i)),n=Gn(e,t),n!=null&&a.push(xi(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Rg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dh(e,t,l,a,n){for(var i=t._reactName,o=[];l!==null&&l!==a;){var h=l,v=h.alternate,k=h.stateNode;if(h=h.tag,v!==null&&v===a)break;h!==5&&h!==26&&h!==27||k===null||(v=k,n?(k=Gn(l,i),k!=null&&o.unshift(xi(l,k,v))):n||(k=Gn(l,i),k!=null&&o.push(xi(l,k,v)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var Dg=/\r\n?/g,Og=/\u0000|\uFFFD/g;function hh(e){return(typeof e=="string"?e:""+e).replace(Dg,`
10
- `).replace(Og,"")}function mh(e,t){return t=hh(t),hh(e)===t}function Xe(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||tn(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&tn(e,""+a);break;case"className":Ki(e,"class",a);break;case"tabIndex":Ki(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(e,l,a);break;case"style":ho(e,a,i);break;case"data":if(t!=="object"){Ki(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ji(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Xe(e,t,"name",n.name,n,null),Xe(e,t,"formEncType",n.formEncType,n,null),Xe(e,t,"formMethod",n.formMethod,n,null),Xe(e,t,"formTarget",n.formTarget,n,null)):(Xe(e,t,"encType",n.encType,n,null),Xe(e,t,"method",n.method,n,null),Xe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ji(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Hl);break;case"onScroll":a!=null&&Ae("scroll",e);break;case"onScrollEnd":a!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Ji(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),Vi(e,"popover",a);break;case"xlinkActuate":Ll(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ll(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ll(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ll(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ll(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ll(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ll(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ll(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ll(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=cp.get(l)||l,Vi(e,l,a))}}function nr(e,t,l,a,n,i){switch(l){case"style":ho(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?tn(e,a):(typeof a=="number"||typeof a=="bigint")&&tn(e,""+a);break;case"onScroll":a!=null&&Ae("scroll",e);break;case"onScrollEnd":a!=null&&Ae("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!al.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[Je]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Vi(e,l,a)}}}function _t(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Xe(e,t,i,o,l,null)}}n&&Xe(e,t,"srcSet",l.srcSet,l,null),a&&Xe(e,t,"src",l.src,l,null);return;case"input":Ae("invalid",e);var h=i=o=n=null,v=null,k=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":o=w;break;case"checked":v=w;break;case"defaultChecked":k=w;break;case"value":i=w;break;case"defaultValue":h=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,t));break;default:Xe(e,t,a,w,l,null)}}co(e,i,h,v,k,o,n,!1);return;case"select":Ae("invalid",e),a=o=i=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":i=h;break;case"defaultValue":o=h;break;case"multiple":a=h;default:Xe(e,t,n,h,l,null)}t=i,l=o,e.multiple=!!a,t!=null?en(e,!!a,t,!1):l!=null&&en(e,!!a,l,!0);return;case"textarea":Ae("invalid",e),i=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":a=h;break;case"defaultValue":n=h;break;case"children":i=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Xe(e,t,o,h,l,null)}oo(e,a,n,i);return;case"option":for(v in l)l.hasOwnProperty(v)&&(a=l[v],a!=null)&&(v==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Xe(e,t,v,a,l,null));return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(a=0;a<Si.length;a++)Ae(Si[a],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in l)if(l.hasOwnProperty(k)&&(a=l[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Xe(e,t,k,a,l,null)}return;default:if(vu(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&nr(e,t,w,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Xe(e,t,h,a,l,null))}function Ug(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,o=null,h=null,v=null,k=null,w=null;for(R in l){var B=l[R];if(l.hasOwnProperty(R)&&B!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":v=B;default:a.hasOwnProperty(R)||Xe(e,t,R,null,a,B)}}for(var z in a){var R=a[z];if(B=l[z],a.hasOwnProperty(z)&&(R!=null||B!=null))switch(z){case"type":i=R;break;case"name":n=R;break;case"checked":k=R;break;case"defaultChecked":w=R;break;case"value":o=R;break;case"defaultValue":h=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,t));break;default:R!==B&&Xe(e,t,z,R,a,B)}}gu(e,o,h,v,k,w,i,n);return;case"select":R=o=h=z=null;for(i in l)if(v=l[i],l.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":R=v;default:a.hasOwnProperty(i)||Xe(e,t,i,null,a,v)}for(n in a)if(i=a[n],v=l[n],a.hasOwnProperty(n)&&(i!=null||v!=null))switch(n){case"value":z=i;break;case"defaultValue":h=i;break;case"multiple":o=i;default:i!==v&&Xe(e,t,n,i,a,v)}t=h,l=o,a=R,z!=null?en(e,!!l,z,!1):!!a!=!!l&&(t!=null?en(e,!!l,t,!0):en(e,!!l,l?[]:"",!1));return;case"textarea":R=z=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Xe(e,t,h,null,a,n)}for(o in a)if(n=a[o],i=l[o],a.hasOwnProperty(o)&&(n!=null||i!=null))switch(o){case"value":z=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==i&&Xe(e,t,o,n,a,i)}ro(e,z,R);return;case"option":for(var W in l)z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:Xe(e,t,W,null,a,z));for(v in a)z=a[v],R=l[v],a.hasOwnProperty(v)&&z!==R&&(z!=null||R!=null)&&(v==="selected"?e.selected=z&&typeof z!="function"&&typeof z!="symbol":Xe(e,t,v,z,a,R));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in l)z=l[se],l.hasOwnProperty(se)&&z!=null&&!a.hasOwnProperty(se)&&Xe(e,t,se,null,a,z);for(k in a)if(z=a[k],R=l[k],a.hasOwnProperty(k)&&z!==R&&(z!=null||R!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Xe(e,t,k,z,a,R)}return;default:if(vu(t)){for(var Qe in l)z=l[Qe],l.hasOwnProperty(Qe)&&z!==void 0&&!a.hasOwnProperty(Qe)&&nr(e,t,Qe,void 0,a,z);for(w in a)z=a[w],R=l[w],!a.hasOwnProperty(w)||z===R||z===void 0&&R===void 0||nr(e,t,w,z,a,R);return}}for(var A in l)z=l[A],l.hasOwnProperty(A)&&z!=null&&!a.hasOwnProperty(A)&&Xe(e,t,A,null,a,z);for(B in a)z=a[B],R=l[B],!a.hasOwnProperty(B)||z===R||z==null&&R==null||Xe(e,t,B,z,a,R)}function ph(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,o=n.initiatorType,h=n.duration;if(i&&h&&ph(o)){for(o=0,h=n.responseEnd,a+=1;a<l.length;a++){var v=l[a],k=v.startTime;if(k>h)break;var w=v.transferSize,B=v.initiatorType;w&&ph(B)&&(v=v.responseEnd,o+=w*(v<h?1:(h-k)/(v-k)))}if(--a,t+=8*(i+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ir=null,sr=null;function Qs(e){return e.nodeType===9?e:e.ownerDocument}function gh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ur(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cr=null;function Lg(){var e=window.event;return e&&e.type==="popstate"?e===cr?!1:(cr=e,!0):(cr=null,!1)}var vh=typeof setTimeout=="function"?setTimeout:void 0,Hg=typeof clearTimeout=="function"?clearTimeout:void 0,bh=typeof Promise=="function"?Promise:void 0,Bg=typeof queueMicrotask=="function"?queueMicrotask:typeof bh<"u"?function(e){return bh.resolve(null).then(e).catch(qg)}:vh;function qg(e){setTimeout(function(){throw e})}function xa(e){return e==="head"}function Sh(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Dn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Ti(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ti(l);for(var i=l.firstChild;i;){var o=i.nextSibling,h=i.nodeName;i[le]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=o}}else l==="body"&&Ti(e.ownerDocument.body);l=n}while(l);Dn(t)}function xh(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function rr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":rr(l),T(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Yg(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[le])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=dl(e.nextSibling),e===null)break}return null}function Gg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=dl(e.nextSibling),e===null))return null;return e}function Th(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dl(e.nextSibling),e===null))return null;return e}function or(e){return e.data==="$?"||e.data==="$~"}function fr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Xg(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function dl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var dr=null;function _h(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return dl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Eh(e,t,l){switch(t=Qs(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Ti(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);T(e)}var hl=new Map,Nh=new Set;function Zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ea=G.d;G.d={f:Qg,r:Zg,D:Vg,C:Kg,L:$g,m:Jg,X:Wg,S:Fg,M:Ig};function Qg(){var e=ea.f(),t=ws();return e||t}function Zg(e){var t=F(e);t!==null&&t.tag===5&&t.type==="form"?Xf(t):ea.r(e)}var Mn=typeof document>"u"?null:document;function kh(e,t,l){var a=Mn;if(a&&typeof t=="string"&&t){var n=il(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Nh.has(n)||(Nh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),_t(t,"link",e),be(t),a.head.appendChild(t)))}}function Vg(e){ea.D(e),kh("dns-prefetch",e,null)}function Kg(e,t){ea.C(e,t),kh("preconnect",e,t)}function $g(e,t,l){ea.L(e,t,l);var a=Mn;if(a&&e&&t){var n='link[rel="preload"][as="'+il(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+il(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+il(l.imageSizes)+'"]')):n+='[href="'+il(e)+'"]';var i=n;switch(t){case"style":i=Cn(e);break;case"script":i=Rn(e)}hl.has(i)||(e=E({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),hl.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(_i(i))||t==="script"&&a.querySelector(Ai(i))||(t=a.createElement("link"),_t(t,"link",e),be(t),a.head.appendChild(t)))}}function Jg(e,t){ea.m(e,t);var l=Mn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+il(a)+'"][href="'+il(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Rn(e)}if(!hl.has(i)&&(e=E({rel:"modulepreload",href:e},t),hl.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ai(i)))return}a=l.createElement("link"),_t(a,"link",e),be(a),l.head.appendChild(a)}}}function Fg(e,t,l){ea.S(e,t,l);var a=Mn;if(a&&e){var n=Ie(a).hoistableStyles,i=Cn(e);t=t||"default";var o=n.get(i);if(!o){var h={loading:0,preload:null};if(o=a.querySelector(_i(i)))h.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},l),(l=hl.get(i))&&hr(e,l);var v=o=a.createElement("link");be(v),_t(v,"link",e),v._p=new Promise(function(k,w){v.onload=k,v.onerror=w}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Vs(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(i,o)}}}function Wg(e,t){ea.X(e,t);var l=Mn;if(l&&e){var a=Ie(l).hoistableScripts,n=Rn(e),i=a.get(n);i||(i=l.querySelector(Ai(n)),i||(e=E({src:e,async:!0},t),(t=hl.get(n))&&mr(e,t),i=l.createElement("script"),be(i),_t(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Ig(e,t){ea.M(e,t);var l=Mn;if(l&&e){var a=Ie(l).hoistableScripts,n=Rn(e),i=a.get(n);i||(i=l.querySelector(Ai(n)),i||(e=E({src:e,async:!0,type:"module"},t),(t=hl.get(n))&&mr(e,t),i=l.createElement("script"),be(i),_t(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function jh(e,t,l,a){var n=(n=ce.current)?Zs(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Cn(l.href),l=Ie(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Cn(l.href);var i=Ie(n).hoistableStyles,o=i.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=n.querySelector(_i(e)))&&!i._p&&(o.instance=i,o.state.loading=5),hl.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},hl.set(e,l),i||Pg(n,e,l,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Rn(l),l=Ie(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Cn(e){return'href="'+il(e)+'"'}function _i(e){return'link[rel="stylesheet"]['+e+"]"}function zh(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Pg(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),_t(t,"link",l),be(t),e.head.appendChild(t))}function Rn(e){return'[src="'+il(e)+'"]'}function Ai(e){return"script[async]"+e}function Mh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+il(l.href)+'"]');if(a)return t.instance=a,be(a),a;var n=E({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),be(a),_t(a,"style",n),Vs(a,l.precedence,e),t.instance=a;case"stylesheet":n=Cn(l.href);var i=e.querySelector(_i(n));if(i)return t.state.loading|=4,t.instance=i,be(i),i;a=zh(l),(n=hl.get(n))&&hr(a,n),i=(e.ownerDocument||e).createElement("link"),be(i);var o=i;return o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),_t(i,"link",a),t.state.loading|=4,Vs(i,l.precedence,e),t.instance=i;case"script":return i=Rn(l.src),(n=e.querySelector(Ai(i)))?(t.instance=n,be(n),n):(a=l,(n=hl.get(i))&&(a=E({},l),mr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),be(n),_t(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vs(a,l.precedence,e));return t.instance}function Vs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,o=0;o<a.length;o++){var h=a[o];if(h.dataset.precedence===t)i=h;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function hr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ks=null;function Ch(e,t,l){if(Ks===null){var a=new Map,n=Ks=new Map;n.set(l,a)}else n=Ks,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[le]||i[ct]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var h=a.get(o);h?h.push(i):a.set(o,[i])}}return a}function Rh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function e0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Dh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function t0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Cn(a.href),i=t.querySelector(_i(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$s.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,be(i);return}i=t.ownerDocument||t,a=zh(a),(n=hl.get(n))&&hr(a,n),i=i.createElement("link"),be(i);var o=i;o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),_t(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=$s.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var pr=0;function l0(e,t){return e.stylesheets&&e.count===0&&Fs(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Fs(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&pr===0&&(pr=62500*wg());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fs(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>pr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function $s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Js=null;function Fs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Js=new Map,t.forEach(a0,e),Js=null,$s.call(e))}function a0(e,t){if(!(t.state.loading&4)){var l=Js.get(e);if(l)var a=l.get(null);else{l=new Map,Js.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var o=n[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=t.instance,o=n.getAttribute("data-precedence"),i=l.get(o)||a,i===a&&l.set(null,n),l.set(o,n),this.count++,a=$s.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Ei={$$typeof:de,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function n0(e,t,l,a,n,i,o,h,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=We(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=We(0),this.hiddenUpdates=We(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Oh(e,t,l,a,n,i,o,h,v,k,w,B){return e=new n0(e,t,l,o,v,k,w,B,h),t=1,i===!0&&(t|=24),i=Zt(3,null,null,t),e.current=i,i.stateNode=e,t=$u(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Iu(i),e}function Uh(e){return e?(e=rn,e):rn}function wh(e,t,l,a,n,i){n=Uh(n),a.context===null?a.context=n:a.pendingContext=n,a=oa(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=fa(e,a,t),l!==null&&(Yt(l,e,t),ai(l,e,t))}function Lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function gr(e,t){Lh(e,t),(e=e.alternate)&&Lh(e,t)}function Hh(e){if(e.tag===13||e.tag===31){var t=wa(e,67108864);t!==null&&Yt(t,e,67108864),gr(e,67108864)}}function Bh(e){if(e.tag===13||e.tag===31){var t=Ft();t=Ot(t);var l=wa(e,t);l!==null&&Yt(l,e,t),gr(e,t)}}var Ws=!0;function i0(e,t,l,a){var n=M.T;M.T=null;var i=G.p;try{G.p=2,yr(e,t,l,a)}finally{G.p=i,M.T=n}}function s0(e,t,l,a){var n=M.T;M.T=null;var i=G.p;try{G.p=8,yr(e,t,l,a)}finally{G.p=i,M.T=n}}function yr(e,t,l,a){if(Ws){var n=vr(a);if(n===null)ar(e,t,a,Is,l),Yh(e,a);else if(c0(n,e,t,l,a))a.stopPropagation();else if(Yh(e,a),t&4&&-1<u0.indexOf(e)){for(;n!==null;){var i=F(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=jt(i.pendingLanes);if(o!==0){var h=i;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var v=1<<31-Pe(o);h.entanglements[1]|=v,o&=~v}Rl(i),(Oe&6)===0&&(Os=st()+500,bi(0))}}break;case 31:case 13:h=wa(i,2),h!==null&&Yt(h,i,2),ws(),gr(i,2)}if(i=vr(a),i===null&&ar(e,t,a,Is,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else ar(e,t,a,null,l)}}function vr(e){return e=Su(e),br(e)}var Is=null;function br(e){if(Is=null,e=q(e),e!==null){var t=p(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=m(t),e!==null)return e;e=null}else if(l===31){if(e=b(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Is=e,null}function qh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Nl()){case Xt:return 2;case At:return 8;case kl:case za:return 32;case Ma:return 268435456;default:return 32}default:return 32}}var Sr=!1,Ta=null,_a=null,Aa=null,Ni=new Map,ki=new Map,Ea=[],u0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yh(e,t){switch(e){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":Aa=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(t.pointerId)}}function ji(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=F(t),t!==null&&Hh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function c0(e,t,l,a,n){switch(t){case"focusin":return Ta=ji(Ta,e,t,l,a,n),!0;case"dragenter":return _a=ji(_a,e,t,l,a,n),!0;case"mouseover":return Aa=ji(Aa,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Ni.set(i,ji(Ni.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,ki.set(i,ji(ki.get(i)||null,e,t,l,a,n)),!0}return!1}function Gh(e){var t=q(e.target);if(t!==null){var l=p(t);if(l!==null){if(t=l.tag,t===13){if(t=m(l),t!==null){e.blockedOn=t,Bn(e.priority,function(){Bh(l)});return}}else if(t===31){if(t=b(l),t!==null){e.blockedOn=t,Bn(e.priority,function(){Bh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ps(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=vr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);bu=a,l.target.dispatchEvent(a),bu=null}else return t=F(l),t!==null&&Hh(t),e.blockedOn=l,!1;t.shift()}return!0}function Xh(e,t,l){Ps(e)&&l.delete(t)}function r0(){Sr=!1,Ta!==null&&Ps(Ta)&&(Ta=null),_a!==null&&Ps(_a)&&(_a=null),Aa!==null&&Ps(Aa)&&(Aa=null),Ni.forEach(Xh),ki.forEach(Xh)}function eu(e,t){e.blockedOn===t&&(e.blockedOn=null,Sr||(Sr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,r0)))}var tu=null;function Qh(e){tu!==e&&(tu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){tu===e&&(tu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(br(a||l)===null)continue;break}var i=F(l);i!==null&&(e.splice(t,3),t-=3,vc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Dn(e){function t(v){return eu(v,e)}Ta!==null&&eu(Ta,e),_a!==null&&eu(_a,e),Aa!==null&&eu(Aa,e),Ni.forEach(t),ki.forEach(t);for(var l=0;l<Ea.length;l++){var a=Ea[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ea.length&&(l=Ea[0],l.blockedOn===null);)Gh(l),l.blockedOn===null&&Ea.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],o=n[Je]||null;if(typeof i=="function")o||Qh(l);else if(o){var h=null;if(i&&i.hasAttribute("formAction")){if(n=i,o=i[Je]||null)h=o.formAction;else if(br(n)!==null)continue}else h=o.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Qh(l)}}}function Zh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function xr(e){this._internalRoot=e}lu.prototype.render=xr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Ft();wh(l,a,e,t,null,null)},lu.prototype.unmount=xr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wh(e.current,2,null,e,null,null),ws(),t[wl]=null}};function lu(e){this._internalRoot=e}lu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hn();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ea.length&&t!==0&&t<Ea[l].priority;l++);Ea.splice(l,0,e),l===0&&Gh(e)}};var Vh=u.version;if(Vh!=="19.2.4")throw Error(c(527,Vh,"19.2.4"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=y(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var o0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{tl=au.inject(o0),ut=au}catch{}}return Mi.createRoot=function(e,t){if(!f(e))throw Error(c(299));var l=!1,a="",n=Pf,i=ed,o=td;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Oh(e,1,!1,null,null,l,a,null,n,i,o,Zh),e[wl]=t.current,lr(e),new xr(t)},Mi.hydrateRoot=function(e,t,l){if(!f(e))throw Error(c(299));var a=!1,n="",i=Pf,o=ed,h=td,v=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=Oh(e,1,!0,t,l??null,a,n,v,i,o,h,Zh),t.context=Uh(null),l=t.current,a=Ft(),a=Ot(a),n=oa(a),n.callback=null,fa(l,n,a),l=a,t.current.lanes=l,gt(t,l),Rl(t),e[wl]=t.current,lr(e),new lu(t)},Mi.version="19.2.4",Mi}var lm;function S0(){if(lm)return Ar.exports;lm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),Ar.exports=b0(),Ar.exports}var x0=S0();class T0 extends Error{constructor(u,r){super(r),this.status=u,this.name="FetchError"}}async function _l(s,u,r){const c=new URL(s,window.location.origin);if(u)for(const[p,m]of Object.entries(u))c.searchParams.set(p,m);const f=await fetch(c.toString(),{signal:r?.signal});if(!f.ok){let p=`HTTP ${f.status}`;try{const m=await f.json();m.error&&(p=m.error)}catch{}throw new T0(f.status,p)}return f.json()}function _0(s={}){const{since:u,project:r,dueMonth:c,tag:f}=s,[p,m]=j.useState([]),[b,g]=j.useState(!0),[y,x]=j.useState(null),E=j.useCallback(()=>{const D={};c?D.due_month=c:u&&(D.since=u),r&&(D.project=r),f&&(D.tag=f),g(!0),_l("/api/tasks",D).then(Y=>{m(Y.tasks),x(null)}).catch(Y=>{x(Y.message)}).finally(()=>{g(!1)})},[u,r,c,f]);return j.useEffect(()=>{E()},[E]),{tasks:p,loading:b,error:y,refresh:E}}function A0(s=0){const[u,r]=j.useState([]),[c,f]=j.useState(!0),[p,m]=j.useState(null),b=j.useCallback(()=>{const g={};s>0&&(g.since=String(s)),f(!0),_l("/api/events",g).then(y=>{r(y.events),m(null)}).catch(y=>{m(y.message)}).finally(()=>{f(!1)})},[s]);return j.useEffect(()=>{b()},[b]),{events:u,loading:c,error:p,refresh:b}}function E0(){const[s,u]=j.useState(null),[r,c]=j.useState(!0),[f,p]=j.useState(null),m=j.useCallback(()=>{c(!0),_l("/api/stats").then(b=>{u(b),p(null)}).catch(b=>{p(b.message)}).finally(()=>{c(!1)})},[]);return j.useEffect(()=>{m()},[m]),{stats:s,loading:r,error:f,refresh:m}}const jr=1e3,N0=3e4;function k0(s){let u=null,r=jr,c=null,f=!1;function p(E){try{const D=JSON.parse(E.data);s(D.latest_event_id)}catch{}}function m(){f||(c=setTimeout(()=>{c=null,b()},r),r=Math.min(r*2,N0))}function b(){f||(g(),u=new EventSource("/api/events/stream"),u.addEventListener("ready",E=>{r=jr,p(E)}),u.addEventListener("update",p),u.onerror=()=>{g(),m()})}function g(){u&&(u.close(),u=null)}function y(){f=!0,document.removeEventListener("visibilitychange",x),c!==null&&(clearTimeout(c),c=null),g()}function x(){document.visibilityState==="visible"&&!f&&!u&&(r=jr,b())}return document.addEventListener("visibilitychange",x),{connect:b,disconnect:y}}function j0(s){const u=j.useRef(s);u.current=s,j.useEffect(()=>{const r=k0(()=>{u.current()});return r.connect(),()=>{r.disconnect()}},[])}const z0=250,M0=2;function C0(s){const[u,r]=j.useState([]),[c,f]=j.useState(0),[p,m]=j.useState(!1),b=j.useRef(),g=j.useRef(),y=j.useCallback(x=>{if(g.current?.abort(),!x.trim()||x.trim().length<M0){r([]),f(0),m(!1);return}m(!0);const E=new AbortController;g.current=E,_l("/api/search",{q:x},{signal:E.signal}).then(D=>{E.signal.aborted||(r(D.tasks),f(D.total))}).catch(()=>{E.signal.aborted||(r([]),f(0))}).finally(()=>{E.signal.aborted||m(!1)})},[]);return j.useEffect(()=>{if(clearTimeout(b.current),!s.trim()){y("");return}return b.current=setTimeout(()=>y(s),z0),()=>clearTimeout(b.current)},[s,y]),j.useEffect(()=>()=>g.current?.abort(),[]),{results:u,total:c,searching:p}}const Cm="hzl-dashboard-prefs",am={dateFilter:"3d",projectFilter:"",assigneeFilter:"",activityAssigneeFilter:"",activityKeywordFilter:"",taskSearch:"",columnVisibility:["backlog","ready","in_progress","blocked","done"],showSubtasks:!0,collapsedParents:[],activeView:"kanban",tagFilter:"",activeTab:"ready",railCollapsed:!1};function R0(){try{const s=localStorage.getItem(Cm);if(s){const u=JSON.parse(s);return{...am,...u}}}catch{}return{...am}}function D0(s){try{localStorage.setItem(Cm,JSON.stringify(s))}catch{}}function O0(){const s=new URLSearchParams(window.location.search),u={},r=s.get("view");(r==="kanban"||r==="calendar"||r==="graph"||r==="agents")&&(u.view=r);const c=s.get("since");c&&(u.since=c);const f=s.get("month");f&&(u.month=f);const p=s.get("project");p!==null&&(u.project=p);const m=s.get("assignee");m!==null&&(u.assignee=m);const b=s.get("q");b!==null&&(u.q=b);const g=s.get("subtasks");g!==null&&(u.subtasks=g);const y=s.get("tab");y&&(u.tab=y);const x=s.get("activity");x&&(u.activity=x);const E=s.get("activity_assignee");E!==null&&(u.activityAssignee=E);const D=s.get("activity_q");D!==null&&(u.activityQ=D);const Y=s.get("tag");Y!==null&&(u.tag=Y);const X=s.get("task");X&&(u.task=X);const re=s.get("agent");return re&&(u.selectedAgent=re),u}function U0(s){const u=new URLSearchParams;if(s.view!=="kanban"&&u.set("view",s.view),s.view==="calendar"){const f=String(s.calendarMonth+1).padStart(2,"0");u.set("month",`${s.calendarYear}-${f}`)}else s.since!=="3d"&&u.set("since",s.since);s.project&&u.set("project",s.project),s.assignee&&u.set("assignee",s.assignee),s.searchQuery&&u.set("q",s.searchQuery),s.showSubtasks||u.set("subtasks","0"),s.activeTab!=="ready"&&u.set("tab",s.activeTab),s.activityAssignee&&u.set("activity_assignee",s.activityAssignee),s.activityKeyword.trim()&&u.set("activity_q",s.activityKeyword.trim()),s.tag&&u.set("tag",s.tag),s.activityOpen&&u.set("activity","1"),s.selectedTaskId&&u.set("task",s.selectedTaskId),s.selectedAgent&&u.set("agent",s.selectedAgent);const r=u.toString(),c=`${window.location.pathname}${r?`?${r}`:""}${window.location.hash||""}`;history.replaceState(null,"",c)}const nm=["🔷","🔶","🔴","🟢","🔵","🟡","🟣","🟠","⬛","⬜","🔳","🔲","▪️","▫️","◾","◽","💠","🔹","🔸","♦️","♠️","♣️","♥️","🃏","⭐","🌟","✨","💫","🔆","🔅","☀️","🌙","🎯","🏪","🎨","🎭","🎬","🎮","🎲","🎸","🔑","🔐","🔒","🔓","🗝️","⚡","💡","🔔"];function Rm(s){let u=5381;for(let r=0;r<s.length;r++)u=(u<<5)+u^s.charCodeAt(r);return u}function im(s){return nm[Math.abs(Rm(s))%nm.length]}function w0(s){return`hsl(${Math.abs(Rm(s))%360} 55% 55%)`}function L0(s){const u=new Set(s.map(f=>f.task_id)),r=new Map;for(const f of s)f.parent_id&&u.has(f.parent_id)&&(r.has(f.parent_id)||r.set(f.parent_id,[]),r.get(f.parent_id).push(f));for(const f of r.values())f.sort((p,m)=>p.task_id.localeCompare(m.task_id));const c=new Map;for(const f of s)if(f.parent_id){const p=im(f.parent_id),m=r.get(f.parent_id)||[],b=m.indexOf(f),g=m.length>0&&b>=0?b+1:null;c.set(f.task_id,{emoji:p,suffix:g})}else c.set(f.task_id,{emoji:im(f.task_id),suffix:null});return c}const H0=1e3,Br=60*H0,qr=60*Br,zr=24*qr;function Fa(s){if(!s)return"";const u=new Date(s),c=new Date().getTime()-u.getTime();return c<Br?"just now":c<qr?`${Math.floor(c/Br)}m ago`:c<zr?`${Math.floor(c/qr)}h ago`:c<7*zr?`${Math.floor(c/zr)}d ago`:u.toLocaleDateString()}function Dm(s){return s.replace(/_/g," ").replace(/\b\w/g,u=>u.toUpperCase())}function ka(s){return typeof s!="string"?"":s.trim().length>0?s:""}function B0(s,u=10){if(!s||u<=0)return"";const r=Array.from(s);return r.length<=u?s:`${r.slice(0,u).join("")}...`}function q0(s,u=160){return s?s.length<=u?s:`${s.slice(0,u-3)}...`:""}function Om(s){const u=typeof s.author=="string"&&s.author.trim()?s.author:null;if(u)return u;const r=typeof s.agent_id=="string"&&s.agent_id.trim()?s.agent_id:null;return r||(s.data&&typeof s.data.author=="string"&&s.data.author.trim()?s.data.author:null)||"system"}function Um(s){if(!s||!s.data)return"";if(s.type==="task_created"){const u=typeof s.data.assignee=="string"?s.data.assignee:null,r=typeof s.data.project=="string"?s.data.project:null;return u&&r?`Assigned to ${u} in ${r}`:u?`Assigned to ${u}`:r?`Created in ${r}`:""}if(s.type==="status_changed"){const u=typeof s.data.from=="string"?s.data.from:null,r=typeof s.data.to=="string"?s.data.to:null;return!u||!r?"":`${u} → ${r}`}if(s.type==="task_updated"){const u=typeof s.data.field=="string"?s.data.field:null;return u?`${u} updated`:"Task updated"}if(s.type==="comment_added"){const u=typeof s.data.text=="string"?s.data.text:"";return q0(u)}if(s.type==="checkpoint_recorded"){const u=typeof s.data.name=="string"?s.data.name:null;return u?`Checkpoint: ${u}`:"Checkpoint recorded"}if(s.type==="task_moved"){const u=typeof s.data.from_project=="string"?s.data.from_project:null,r=typeof s.data.to_project=="string"?s.data.to_project:null;return!u||!r?"":`${u} → ${r}`}if(s.type==="dependency_added"){const u=typeof s.data.depends_on_id=="string"?s.data.depends_on_id:null;return u?`Added dependency on ${u}`:"Added dependency"}if(s.type==="dependency_removed"){const u=typeof s.data.depends_on_id=="string"?s.data.depends_on_id:null;return u?`Removed dependency on ${u}`:"Removed dependency"}return s.type==="task_archived"?"Task archived":""}function Yr(s){return s.blocked_by&&s.blocked_by.length>0&&s.status==="ready"?"blocked":s.status}function Gr(s,u="just now"){if(s<0)return u;const r=Math.floor(s/6e4);if(r<1)return u;const c=Math.floor(r/60),f=r%60;return c===0?`${f}m`:f===0?`${c}h`:`${c}h ${f}m`}const wm=[{key:"backlog",label:"Backlog",color:"#6b7280"},{key:"ready",label:"Ready",color:"#3b82f6"},{key:"in_progress",label:"In Progress",color:"#f59e0b"},{key:"blocked",label:"Blocked",color:"#ef4444"},{key:"done",label:"Done",color:"#22c55e"}],Y0=Object.fromEntries(wm.map(s=>[s.key,s.color]));function Xr(s,u){return u==="root"?"#f59e0b":u==="project"?"#e5e5e5":Y0[s??""]??"#6b7280"}const qi=["backlog","ready","in_progress","blocked","done"],Fr={backlog:"Backlog",ready:"Ready",in_progress:"In Progress",blocked:"Blocked",done:"Done"};function Lm(s){const u={backlog:[],ready:[],in_progress:[],blocked:[],done:[]};for(const r of s){const c=Yr(r);u[c]&&u[c].push(r)}return u}const sm=[{id:"kanban",label:"Kanban",icon:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("rect",{x:"1",y:"1",width:"4",height:"14",rx:"1",opacity:"0.9"}),d.jsx("rect",{x:"6",y:"1",width:"4",height:"10",rx:"1",opacity:"0.7"}),d.jsx("rect",{x:"11",y:"1",width:"4",height:"6",rx:"1",opacity:"0.5"})]})},{id:"agents",label:"Agents",icon:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("circle",{cx:"5.5",cy:"4",r:"2.5"}),d.jsx("circle",{cx:"10.5",cy:"4",r:"2.5"}),d.jsx("path",{d:"M0 13c0-2.5 2.5-4 5.5-4s5.5 1.5 5.5 4",opacity:"0.7"}),d.jsx("path",{d:"M5 13c0-2.5 2.5-4 5.5-4s5.5 1.5 5.5 4",opacity:"0.7"})]})},{id:"graph",label:"Graph",icon:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("circle",{cx:"4",cy:"4",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"4",r:"2.5"}),d.jsx("circle",{cx:"8",cy:"12",r:"2.5"}),d.jsx("line",{x1:"5.5",y1:"5.5",x2:"7",y2:"10",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("line",{x1:"10.5",y1:"5.5",x2:"9",y2:"10",stroke:"currentColor",strokeWidth:"1.5"})]})},{id:"calendar",label:"Calendar",icon:d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:d.jsx("path",{d:"M4 0a1 1 0 0 1 1 1v1h6V1a1 1 0 1 1 2 0v1h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h1V1a1 1 0 0 1 1-1zM1 6v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6H1z"})})}];function G0({view:s,onViewChange:u,collapsed:r,onToggleCollapse:c}){return d.jsxs(d.Fragment,{children:[d.jsxs("nav",{className:`nav-rail${r?" collapsed":""}`,children:[d.jsxs("div",{className:"nav-rail-top",children:[d.jsx("div",{className:"nav-rail-logo",children:r?d.jsx("span",{className:"logo-mark",children:"H"}):d.jsx("span",{className:"logo-full",children:"HZL"})}),d.jsx("div",{className:"nav-rail-items",children:sm.map(f=>d.jsxs("button",{className:`nav-rail-item${s===f.id?" active":""}`,onClick:()=>u(f.id),title:r?f.label:void 0,children:[d.jsx("span",{className:"nav-rail-icon",children:f.icon}),!r&&d.jsx("span",{className:"nav-rail-label",children:f.label})]},f.id))})]}),d.jsx("button",{className:"nav-rail-toggle",onClick:c,title:r?"Expand sidebar":"Collapse sidebar",children:d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:r?"chevron-right":"chevron-left",children:d.jsx("polyline",{points:r?"5 2 10 7 5 12":"9 2 4 7 9 12"})})})]}),d.jsx("nav",{className:"nav-bottom-bar",children:sm.map(f=>d.jsxs("button",{className:`nav-bottom-item${s===f.id?" active":""}`,onClick:()=>u(f.id),children:[d.jsx("span",{className:"nav-bottom-icon",children:f.icon}),d.jsx("span",{className:"nav-bottom-label",children:f.label})]},f.id))})]})}function X0({since:s,onSinceChange:u,projects:r,project:c,onProjectChange:f,assignees:p,assignee:m,onAssigneeChange:b,tags:g,tag:y,onTagChange:x,searchQuery:E,onSearchChange:D,searchMatchCount:Y,showDateFilter:X,mobileFiltersOpen:re,view:ge,columnVisibility:Te,onColumnVisibilityChange:je,showSubtasks:de,onShowSubtasksChange:te,parentCount:ue,collapsedCount:I,onCollapseAll:K,onExpandAll:Q,onShowShortcuts:ye}){const Ce=j.useRef(null),L=j.useRef(null),O=j.useRef(null),[P,me]=j.useState(!1),[Ee,M]=j.useState(!1),G=j.useCallback(C=>{L.current&&!L.current.contains(C.target)&&me(!1),O.current&&!O.current.contains(C.target)&&M(!1)},[]);j.useEffect(()=>{if(P||Ee)return document.addEventListener("click",G),()=>document.removeEventListener("click",G)},[P,Ee,G]);const ee=E.length>0,Se=Y===1?"task":"tasks",ve=ue===0?"No parent tasks":de?`${I}/${ue} collapsed`:'Enable "Show subtasks" to expand by parent',S=[c!=="",m!=="",y!==""].filter(Boolean).length,U=d.jsxs(d.Fragment,{children:[X&&d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"dateFilter",value:s,onChange:C=>u(C.target.value),children:[d.jsx("option",{value:"1d",children:"Today"}),d.jsx("option",{value:"3d",children:"Last 3 days"}),d.jsx("option",{value:"7d",children:"Last 7 days"}),d.jsx("option",{value:"14d",children:"Last 14 days"}),d.jsx("option",{value:"30d",children:"Last 30 days"})]})}),d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"projectFilter",value:c,onChange:C=>f(C.target.value),children:[d.jsx("option",{value:"",children:"All projects"}),r.map(C=>d.jsx("option",{value:C,children:C},C))]})}),d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"assigneeFilter",value:m,onChange:C=>b(C.target.value),children:[d.jsx("option",{value:"",children:"Any Agent"}),p.map(C=>d.jsxs("option",{value:C.name,children:[C.name," (",C.count,")"]},C.name))]})}),d.jsx("div",{className:"filter-group",children:d.jsxs("select",{id:"tagFilter",value:y,onChange:C=>x(C.target.value),children:[d.jsx("option",{value:"",children:"All tags"}),g.map(C=>d.jsxs("option",{value:C.name,children:[C.name," (",C.count,")"]},C.name))]})})]});return ge==="agents"?d.jsx("div",{className:"header-filters"}):d.jsxs("div",{className:`header-filters${re?" open":""}`,children:[d.jsx("div",{className:"filters-inline",children:U}),d.jsxs("div",{className:"filters-collapsed",ref:O,children:[d.jsxs("button",{className:`filter-toggle${S>0?" has-active":""}`,onClick:C=>{C.stopPropagation(),M(!Ee)},title:"Filters",children:[d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:d.jsx("path",{d:"M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .376.832l-4.568 5.26a.5.5 0 0 0-.124.332V13a.5.5 0 0 1-.252.434l-2 1.143A.5.5 0 0 1 6.684 14V7.424a.5.5 0 0 0-.124-.332L2.124 1.832A.5.5 0 0 1 2.5 1h11"})}),S>0&&d.jsx("span",{className:"filter-badge",children:S})]}),Ee&&d.jsx("div",{className:"filter-popover open",onClick:C=>C.stopPropagation(),children:d.jsx("div",{className:"filter-popover-content",children:U})})]}),d.jsxs("div",{className:`filter-group task-search-group${ee?" active":""}`,children:[d.jsx("input",{ref:Ce,type:"search",id:"taskSearchInput",className:"task-search-input",placeholder:"Find task (/)","aria-label":"Search tasks",value:E,onChange:C=>D(C.target.value)}),ee&&d.jsx("button",{type:"button",className:"task-search-clear",onClick:()=>{D(""),Ce.current?.focus()},children:"×"}),d.jsx("span",{className:"task-search-meta",children:ee?`${Y} ${Se}`:""})]}),d.jsxs("div",{className:"filter-group settings-group",ref:L,children:[d.jsx("button",{className:"settings-toggle",onClick:C=>{C.stopPropagation(),me(!P)},title:"Settings",children:d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),d.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})}),P&&d.jsxs("div",{className:"settings-dropdown open",onClick:C=>C.stopPropagation(),children:[d.jsxs("div",{className:"settings-section",children:[d.jsx("label",{className:"settings-label",children:"Columns"}),d.jsx("div",{className:"column-checkboxes",children:qi.map(C=>d.jsxs("label",{className:"column-checkbox",children:[d.jsx("input",{type:"checkbox",checked:Te.includes(C),onChange:()=>{const Z=Te.includes(C)?Te.filter($=>$!==C):[...Te,C];je(Z)}}),Fr[C]]},C))})]}),d.jsx("div",{className:"settings-section",children:d.jsxs("label",{className:"column-checkbox",children:[d.jsx("input",{type:"checkbox",checked:de,onChange:C=>te(C.target.checked)}),"Show subtasks"]})}),d.jsxs("div",{className:"settings-section",children:[d.jsx("label",{className:"settings-label",children:"Parent View"}),d.jsxs("div",{className:"collapse-parents-actions",children:[d.jsx("button",{type:"button",className:"collapse-parents-btn",disabled:!de||ue===0||I===ue,onClick:K,children:"Collapse all"}),d.jsx("button",{type:"button",className:"collapse-parents-btn",disabled:!de||I===0,onClick:Q,children:"Expand all"})]}),d.jsx("div",{className:"collapse-parents-meta",children:ve})]}),d.jsx("div",{className:"settings-section",children:d.jsx("button",{type:"button",className:"settings-shortcuts-btn",onClick:ye,children:"Shortcuts (?)"})})]})]})]})}const um=["#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"];function Hm(s){let u=0;for(let r=0;r<s.length;r++)u=(u<<5)-u+s.charCodeAt(r)|0;return um[Math.abs(u)%um.length]}function Bm({task:s,emojiInfo:u,showSubtasks:r,isCollapsed:c,onToggleCollapse:f,onClick:p}){const m=(s.subtask_total??0)>0,b=m?{"--family-color":w0(s.task_id)}:void 0,g=ka(s.assignee),y=g.length>0,x=y?g:"Unassigned",E=B0(x,10),D=s.subtask_count??0,Y=s.subtask_total??D;return d.jsxs("div",{className:`card${m?" card-parent":""}${s.stale?" card-stale":""}`,style:b,onClick:()=>p(s.task_id),children:[d.jsxs("div",{className:"card-header",children:[d.jsxs("div",{className:"card-header-left",children:[u&&d.jsx("span",{className:"card-emoji",children:u.suffix?`${u.emoji}-${u.suffix}`:u.emoji}),d.jsx("span",{className:"card-id",children:s.task_id.slice(0,8)})]}),d.jsx("span",{className:"card-project",title:s.project,children:s.project})]}),s.progress!=null&&s.progress>0&&d.jsxs("div",{className:"card-progress-row",children:[d.jsx("div",{className:"card-progress-track",children:d.jsx("div",{className:`card-progress-fill${s.progress>=100?" complete":""}`,style:{width:`${Math.min(s.progress,100)}%`}})}),d.jsxs("span",{className:`card-progress-label${s.progress>=100?" complete":""}`,children:[s.progress,"%"]})]}),d.jsx("div",{className:"card-title",children:s.title}),s.tags&&s.tags.length>0&&d.jsxs("div",{className:"card-tags",children:[s.tags.slice(0,3).map(X=>d.jsx("span",{className:"card-tag",style:{"--tag-color":Hm(X)},children:X},X)),s.tags.length>3&&d.jsxs("span",{className:"card-tag-overflow",children:["+",s.tags.length-3]})]}),Y>0&&(r?d.jsxs("button",{type:"button",className:"card-subtask-toggle",onClick:X=>{X.preventDefault(),X.stopPropagation(),f(s.task_id)},"aria-expanded":!c,title:c?"Expand subtasks":"Collapse subtasks",children:[c?"▶":"▼"," ","[",D===Y?`${D} ${Y===1?"subtask":"subtasks"}`:`${D}/${Y} ${Y===1?"subtask":"subtasks"}`,"]"]}):d.jsxs("div",{className:"card-subtask-count",children:["[",D===Y?`${D} ${Y===1?"subtask":"subtasks"}`:`${D}/${Y} ${Y===1?"subtask":"subtasks"}`,"]"]})),y&&d.jsx("div",{className:"card-meta",children:d.jsx("span",{className:"card-assignee assigned",title:x,children:E})})]})}function Q0({status:s,tasks:u,emojiMap:r,showSubtasks:c,collapsedParents:f,onToggleCollapse:p,onCardClick:m,emptyMessage:b}){return d.jsxs("div",{className:"column","data-status":s,children:[d.jsxs("div",{className:"column-header",children:[d.jsx("span",{className:"column-title",children:Fr[s]||s}),d.jsx("span",{className:"column-count",children:u.length})]}),d.jsx("div",{className:"column-cards",children:u.length===0?d.jsx("div",{className:"empty-column",children:b}):u.map(g=>d.jsx(Bm,{task:g,emojiInfo:r.get(g.task_id),showSubtasks:c,isCollapsed:f.has(g.task_id),onToggleCollapse:p,onClick:m},g.task_id))})]})}function Z0({tasks:s,emojiMap:u,showSubtasks:r,collapsedParents:c,columnVisibility:f,searchQuery:p,onToggleCollapse:m,onCardClick:b}){const g=Lm(s),y=p?"No matching tasks":"No tasks";return d.jsx("main",{className:"board",children:qi.filter(x=>f.includes(x)).map(x=>d.jsx(Q0,{status:x,tasks:g[x]||[],emojiMap:u,showSubtasks:r,collapsedParents:c,onToggleCollapse:m,onCardClick:b,emptyMessage:y},x))})}const cm=3;function rm({task:s,onClick:u}){return d.jsxs("div",{className:"calendar-mini-card","data-status":s.status,onClick:r=>{r.stopPropagation(),u(s.task_id)},children:[d.jsx("span",{className:"calendar-mini-title",children:s.title}),d.jsx("span",{className:"calendar-mini-project",children:s.project})]})}function V0({tasks:s,year:u,month:r,onNavigate:c,onTaskClick:f}){const[p,m]=j.useState(null),b=j.useMemo(()=>{const Q={};for(const ye of s){if(!ye.due_at)continue;const Ce=new Date(ye.due_at);if(Ce.getFullYear()!==u||Ce.getMonth()!==r)continue;const L=Ce.getDate();Q[L]||(Q[L]=[]),Q[L].push(ye)}return Q},[s,u,r]),g=new Date(u,r,1).toLocaleDateString(void 0,{month:"long",year:"numeric"}),y=new Date(u,r,1).getDay(),x=new Date(u,r+1,0).getDate(),E=new Date(u,r,0).getDate(),Y=(7-(y+x)%7)%7,X=new Date,re=u===X.getFullYear()&&r===X.getMonth(),ge=X.getDate(),Te=Object.values(b).reduce((Q,ye)=>Q+ye.length,0),je=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],de=j.useCallback(()=>{let Q=r-1,ye=u;Q<0&&(Q=11,ye--),c(ye,Q)},[r,u,c]),te=j.useCallback(()=>{let Q=r+1,ye=u;Q>11&&(Q=0,ye++),c(ye,Q)},[r,u,c]),ue=j.useCallback(()=>{const Q=new Date;c(Q.getFullYear(),Q.getMonth())},[c]),I=[];for(let Q=y-1;Q>=0;Q--)I.push(E-Q);const K=[];for(let Q=1;Q<=Y;Q++)K.push(Q);return d.jsxs("div",{className:"calendar-container",children:[d.jsxs("div",{className:"calendar-header",children:[d.jsx("button",{className:"calendar-nav-btn",onClick:de,children:"←"}),d.jsx("div",{className:"calendar-month-label",children:g}),d.jsx("button",{className:"calendar-nav-btn",onClick:te,children:"→"}),d.jsx("button",{className:"calendar-nav-btn",onClick:ue,children:"Today"})]}),Te===0&&d.jsxs("div",{className:"calendar-empty-state",children:["No tasks with due dates in ",g]}),d.jsxs("div",{className:"calendar-grid",children:[je.map(Q=>d.jsx("div",{className:"calendar-day-header",children:Q},Q)),I.map(Q=>d.jsx("div",{className:"calendar-day other-month",children:d.jsx("span",{className:"calendar-day-number",children:Q})},`prev-${Q}`)),Array.from({length:x},(Q,ye)=>ye+1).map(Q=>{const ye=re&&Q===ge,Ce=b[Q]||[],L=Ce.slice(0,cm),O=Ce.length-cm;return d.jsxs("div",{className:`calendar-day${ye?" today":""}`,style:{position:"relative"},children:[d.jsx("span",{className:"calendar-day-number",children:Q}),d.jsxs("div",{className:"calendar-day-tasks",children:[L.map(P=>d.jsx(rm,{task:P,onClick:f},P.task_id)),O>0&&d.jsxs("div",{className:"calendar-more-link",onClick:P=>{P.stopPropagation(),m(p===Q?null:Q)},children:["+",O," more"]})]}),p===Q&&d.jsxs("div",{className:"calendar-popover",children:[d.jsx("div",{className:"calendar-popover-header",children:new Date(u,r,Q).toLocaleDateString(void 0,{month:"long",day:"numeric"})}),Ce.map(P=>d.jsx(rm,{task:P,onClick:me=>{m(null),f(me)}},P.task_id))]})]},Q)}),K.map(Q=>d.jsx("div",{className:"calendar-day other-month",children:d.jsx("span",{className:"calendar-day-number",children:Q})},`next-${Q}`))]})]})}const K0="modulepreload",$0=function(s){return"/"+s},om={},fm=function(u,r,c){let f=Promise.resolve();if(r&&r.length>0){let y=function(x){return Promise.all(x.map(E=>Promise.resolve(E).then(D=>({status:"fulfilled",value:D}),D=>({status:"rejected",reason:D}))))};var m=y;document.getElementsByTagName("link");const b=document.querySelector("meta[property=csp-nonce]"),g=b?.nonce||b?.getAttribute("nonce");f=y(r.map(x=>{if(x=$0(x),x in om)return;om[x]=!0;const E=x.endsWith(".css"),D=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${D}`))return;const Y=document.createElement("link");if(Y.rel=E?"stylesheet":K0,E||(Y.as="script"),Y.crossOrigin="",Y.href=x,g&&Y.setAttribute("nonce",g),document.head.appendChild(Y),E)return new Promise((X,re)=>{Y.addEventListener("load",X),Y.addEventListener("error",()=>re(new Error(`Unable to preload CSS for ${x}`)))})}))}function p(b){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=b,window.dispatchEvent(g),!g.defaultPrevented)throw b}return f.then(b=>{for(const g of b||[])g.status==="rejected"&&p(g.reason);return u().catch(p)})};function dm(s){return typeof s=="object"?s.id:s}function nu(s){return typeof s=="object"?s:null}function Hi(s){return s.type==="root"?20:s.type==="project"?14:10}function qm(s){const u=parseInt(s.replace("#",""),16);return[u>>16&255,u>>8&255,u&255]}function J0(s){const u=s.trim().split(/[\s_-]+/);return u.length>=2?(u[0][0]+u[1][0]).toUpperCase():s.slice(0,2).toUpperCase()}function hm(s){const u=[{id:"root",type:"root",name:"HZL",ring:0,angle:0}],r=[],c=new Map,f=[],p=new Map;for(const b of s)b.project&&!p.has(b.project)&&(f.push(b.project),p.set(b.project,0));f.forEach((b,g)=>{p.set(b,2*Math.PI*g/f.length)});const m=new Set;for(const b of s){if(!b.project||!b.task_id)continue;const g=p.get(b.project)??0,y=`project:${b.project}`;m.has(b.project)||(m.add(b.project),u.push({id:y,type:"project",name:b.project,ring:1,angle:g}),r.push({source:y,target:"root",type:"hierarchy"}),c.set(y,"root"));const x=b.parent_id?3:2,E=(Math.random()-.5)*.3;u.push({id:b.task_id,type:b.parent_id?"subtask":"task",name:b.title,status:b.status,progress:b.progress??0,assignee:b.assignee,ring:x,angle:g+E});const D=b.parent_id||y;if(r.push({source:b.task_id,target:D,type:"hierarchy"}),c.set(b.task_id,D),b.blocked_by)for(const Y of b.blocked_by)r.push({source:Y,target:b.task_id,type:"dependency"})}for(const b of u){const g=Xr(b.status,b.type),y=qm(g);b._size=Hi(b),b._rgb=y,(b.type==="task"||b.type==="subtask")&&b.assignee&&(b._initials=J0(b.assignee),b._brightness=(y[0]*299+y[1]*587+y[2]*114)/1e3)}return{nodes:u,links:r,parentMap:c}}function F0(s,u,r){const c=new Set;if(s.size===0)return c;for(const f of u){if(f.type==="root"||f.type==="project"||!s.has(f.status??""))continue;let p=f.id;for(;p&&!c.has(p);)c.add(p),p=r.get(p)}return c.add("root"),c}function W0({tasks:s,onTaskClick:u}){const r=j.useRef(null),c=j.useRef(null),f=j.useRef(!0),[p,m]=j.useState(!1),[b,g]=j.useState(new Set),y=j.useRef(null),x=j.useRef(new Map),E=j.useRef([]),D=j.useRef(new Set),Y=j.useRef(s),X=j.useRef(u);Y.current=s,X.current=u;const re=j.useMemo(()=>F0(b,E.current,x.current),[b,s]);D.current=re;const ge=j.useCallback(te=>{g(ue=>{const I=new Set(ue);return I.has(te)?I.delete(te):I.add(te),I})},[]),Te=j.useCallback(()=>{if(!c.current)return;const te=c.current.zoom();c.current.zoom(te*1.4,300)},[]),je=j.useCallback(()=>{if(!c.current)return;const te=c.current.zoom();c.current.zoom(te/1.4,300)},[]),de=j.useCallback(()=>{c.current?.zoomToFit(400,60)},[]);return j.useEffect(()=>{f.current=!0;let te;return(async()=>{if(!r.current)return;let ue,I;try{ue=(await fm(()=>import("./force-graph-Bty0smNb.js"),__vite__mapDeps([0,1]))).default,I=await fm(()=>import("./index-CgGSX2ei.js"),__vite__mapDeps([2,1]))}catch{return}if(!f.current||!r.current)return;const K={0:0,1:180,2:360,3:540},Q=window.innerWidth<768?.6:1,ye=hm(Y.current);x.current=ye.parentMap,E.current=ye.nodes;for(const L of ye.nodes){const O=(K[L.ring]??300)*Q;L.x=Math.cos(L.angle||0)*O,L.y=Math.sin(L.angle||0)*O}const Ce=ue()(r.current).graphData(ye).backgroundColor("#1a1a1a").nodeLabel(()=>"").nodeColor(L=>Xr(L.status,L.type)).nodeVal(L=>Hi(L)).linkCurvature(L=>L.type==="dependency"?0:.15).linkColor(L=>{const O=D.current;return O.size>0&&(!O.has(dm(L.source))||!O.has(dm(L.target)))?"rgba(80, 80, 80, 0.08)":L.type==="dependency"?"#e57373":"rgba(140, 140, 140, 0.35)"}).linkWidth(L=>L.type==="dependency"?1.5:1).linkLabel(()=>"").linkDirectionalArrowLength(L=>L.type==="dependency"?5:0).linkDirectionalArrowRelPos(1).linkDirectionalArrowColor(L=>L.type==="dependency"?"#e57373":void 0).onNodeHover(L=>{y.current=L?.id??null,r.current&&(r.current.style.cursor=L&&L.type!=="root"&&L.type!=="project"?"pointer":"default")}).onNodeClick(L=>{L.type!=="root"&&L.type!=="project"&&X.current(L.id)}).d3Force("x",I.forceX(L=>{const O=(K[L.ring]??300)*Q;return Math.cos(L.angle||0)*O}).strength(.08)).d3Force("y",I.forceY(L=>{const O=(K[L.ring]??300)*Q;return Math.sin(L.angle||0)*O}).strength(.08)).d3Force("collision",I.forceCollide(L=>Hi(L)+30)).d3Force("charge",I.forceManyBody().strength(-300)).d3Force("link",I.forceLink().distance(L=>{const O=nu(L.source),P=nu(L.target);return O?.type==="root"||P?.type==="root"?220:O?.type==="project"||P?.type==="project"?140:L.type==="dependency"?160:50}).strength(L=>{const O=nu(L.source),P=nu(L.target);return O?.type==="root"||P?.type==="root"?.1:L.type==="dependency"?.05:.3})).linkDirectionalParticles(L=>L.type==="dependency"?2:0).linkDirectionalParticleWidth(2).linkDirectionalParticleSpeed(.004).linkDirectionalParticleColor(()=>"#e57373").nodeCanvasObject((L,O,P)=>{const me=L.x,Ee=L.y,M=L._size??Hi(L),[G,ee,Se]=L._rgb??qm(Xr(L.status,L.type)),ve=y.current===L.id,S=D.current,U=S.size>0,C=!U||S.has(L.id),Z=U&&C&&(L.type==="root"||L.type==="project"),$=U&&!C;if(($||Z)&&(O.beginPath(),O.arc(me,Ee,M+2,0,2*Math.PI),O.fillStyle="#1a1a1a",O.fill()),$?O.globalAlpha=.1:Z&&(O.globalAlpha=.45),L.type==="root"){const nt=Math.sin(Date.now()/600)*.25+.75;O.beginPath(),O.arc(me,Ee,28*nt,0,2*Math.PI),O.fillStyle=`rgba(${G}, ${ee}, ${Se}, ${.12*nt})`,O.fill()}ve&&(O.beginPath(),O.arc(me,Ee,M+6,0,2*Math.PI),O.fillStyle=`rgba(${G}, ${ee}, ${Se}, 0.25)`,O.fill());const ce=O.createRadialGradient(me-M*.3,Ee-M*.3,M*.1,me,Ee,M),oe=(nt,pt)=>Math.min(255,nt+pt);ce.addColorStop(0,`rgb(${oe(G,50)}, ${oe(ee,50)}, ${oe(Se,50)})`),ce.addColorStop(1,`rgb(${Math.max(0,G-20)}, ${Math.max(0,ee-20)}, ${Math.max(0,Se-20)})`),O.beginPath(),O.arc(me,Ee,M,0,2*Math.PI),O.fillStyle=ce,O.fill(),O.strokeStyle=ve?"rgba(255, 255, 255, 0.5)":"#505050",O.lineWidth=ve?1.5/P:1/P,O.stroke();const Le=L.progress??0;if((L.type==="task"||L.type==="subtask")&&Le>0){const nt=M+3/P,pt=-Math.PI/2,He=pt+Le/100*2*Math.PI;O.beginPath(),O.arc(me,Ee,nt,0,2*Math.PI),O.strokeStyle="rgba(255, 255, 255, 0.08)",O.lineWidth=2/P,O.stroke(),O.beginPath(),O.arc(me,Ee,nt,pt,He),O.strokeStyle="rgba(255, 255, 255, 0.55)",O.lineWidth=2/P,O.lineCap="round",O.stroke(),O.lineCap="butt"}if(L.type==="root"&&(O.font=`bold ${10/P}px ui-monospace, monospace`,O.fillStyle="#1a1a1a",O.textAlign="center",O.textBaseline="middle",O.fillText("HZL",me,Ee+.5)),L.type==="project"&&P>.4&&(O.font=`500 ${10/P}px ui-monospace, monospace`,O.fillStyle="#b0b0b0",O.textAlign="center",O.textBaseline="top",O.fillText(L.name,me,Ee+M+6/P)),(L.type==="task"||L.type==="subtask")&&(ve||P>1.8)){const pt=L.name.length>24?L.name.slice(0,23)+"…":L.name,He=9/P;O.font=`${He}px ui-monospace, monospace`,O.textAlign="center",O.textBaseline="top";const Nt=O.measureText(pt).width,it=4/P,vt=2/P,It=Ee+M+5/P;O.fillStyle="rgba(26, 26, 26, 0.9)",O.beginPath();const Al=3/P,kt=me-Nt/2-it,Pt=It-vt,el=Nt+it*2,Gt=He+vt*2;O.roundRect(kt,Pt,el,Gt,Al),O.fill(),O.fillStyle=ve?"#e5e5e5":"#a3a3a3",O.fillText(pt,me,It)}L._initials&&(O.font=`bold ${M*.9}px ui-monospace, monospace`,O.fillStyle=(L._brightness??0)>140?"rgba(0, 0, 0, 0.6)":"rgba(255, 255, 255, 0.7)",O.textAlign="center",O.textBaseline="middle",O.fillText(L._initials,me,Ee+.5)),O.globalAlpha=1}).nodePointerAreaPaint((L,O,P)=>{const me=Hi(L);P.beginPath(),P.arc(L.x,L.y,me+4,0,2*Math.PI),P.fillStyle=O,P.fill()});if(!f.current){Ce._destructor?.();return}c.current=Ce,m(!0),te=setTimeout(()=>{c.current&&f.current&&c.current.zoomToFit(400,60)},500)})(),()=>{f.current=!1,clearTimeout(te),c.current&&(c.current._destructor?.(),c.current=null)}},[]),j.useEffect(()=>{if(!c.current)return;const te=c.current.graphData(),ue=new Map;for(const K of te.nodes)K.x!==void 0&&K.y!==void 0&&ue.set(K.id,{x:K.x,y:K.y,vx:K.vx,vy:K.vy});const I=hm(s);x.current=I.parentMap,E.current=I.nodes;for(const K of I.nodes){const Q=ue.get(K.id);Q&&(K.x=Q.x,K.y=Q.y,K.vx=Q.vx,K.vy=Q.vy)}c.current.graphData(I)},[s]),j.useEffect(()=>{c.current&&c.current.linkColor(c.current.linkColor())},[b]),d.jsxs("div",{className:"graph-wrapper",children:[d.jsx("div",{className:"graph-container",ref:r}),!p&&d.jsxs("div",{className:"graph-loading",children:[d.jsx("div",{className:"spinner"}),d.jsx("span",{children:"Loading graph..."})]}),p&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"graph-legend",children:wm.map(({key:te,label:ue,color:I})=>{const K=b.has(te),Q=b.size>0;return d.jsxs("button",{className:`graph-legend-item${K?" active":""}${Q&&!K?" dimmed":""}`,onClick:()=>ge(te),title:`${K?"Hide":"Show"} ${ue} tasks`,children:[d.jsx("span",{className:"graph-legend-dot",style:{background:I}}),ue]},te)})}),d.jsxs("div",{className:"graph-controls",children:[d.jsx("button",{className:"graph-control-btn",onClick:Te,title:"Zoom in",children:"+"}),d.jsx("button",{className:"graph-control-btn",onClick:je,title:"Zoom out",children:"−"}),d.jsx("button",{className:"graph-control-btn",onClick:de,title:"Fit all",children:d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[d.jsx("rect",{x:"1",y:"1",width:"12",height:"12",rx:"1.5"}),d.jsx("path",{d:"M4 7h6M7 4v6"})]})})]})]})]})}function I0(s={}){const{since:u,project:r}=s,[c,f]=j.useState([]),[p,m]=j.useState(!0),[b,g]=j.useState(null),y=j.useCallback(()=>{const x={};u&&(x.since=u),r&&(x.project=r),m(!0),_l("/api/agents",x).then(E=>{f(E.agents),g(null)}).catch(E=>{g(E.message)}).finally(()=>{m(!1)})},[u,r]);return j.useEffect(()=>{y()},[y]),{agents:c,loading:p,error:b,refresh:y}}const mm=50;function P0(s){const[u,r]=j.useState(null),[c,f]=j.useState(0),[p,m]=j.useState(!1),[b,g]=j.useState(null),y=j.useRef(0),x=j.useCallback((Y,X)=>{if(!s)return;const re={limit:String(mm),offset:String(Y)};m(!0),_l(`/api/agents/${encodeURIComponent(s)}/events`,re).then(ge=>{r(X?Te=>Te?[...Te,...ge.events]:ge.events:ge.events),f(ge.total),g(null)}).catch(ge=>{g(ge.message)}).finally(()=>{m(!1)})},[s]);j.useEffect(()=>{if(!s){r(null),f(0),g(null),y.current=0;return}y.current=0,x(0,!1)},[s,x]);const E=j.useCallback(()=>{if(!s||p)return;const Y=y.current+mm;y.current=Y,x(Y,!0)},[s,p,x]),D=j.useCallback(()=>{s&&(y.current=0,x(0,!1))},[s,x]);return{events:u,total:c,loading:p,error:b,loadMore:E,refresh:D}}function ey(s){const[u,r]=j.useState(null),[c,f]=j.useState(null),[p,m]=j.useState(!1),[b,g]=j.useState(null),y=j.useCallback(()=>{s&&(m(!0),_l(`/api/agents/${encodeURIComponent(s)}/tasks`).then(x=>{r(x.tasks),f(x.counts),g(null)}).catch(x=>{g(x.message)}).finally(()=>{m(!1)}))},[s]);return j.useEffect(()=>{if(!s){r(null),f(null),g(null);return}y()},[s,y]),{tasks:u,counts:c,loading:p,error:b,refresh:y}}function pm(s){if(!s)return Date.now();const u=Date.parse(s);return isNaN(u)?Date.now():u}function ty({agents:s,selectedAgent:u,onSelectAgent:r}){const[c,f]=j.useState(-1),p=j.useRef(null),m=j.useRef([]);j.useEffect(()=>{m.current=m.current.slice(0,s.length)},[s.length]),j.useEffect(()=>{c>=0&&c<s.length&&m.current[c]?.scrollIntoView({block:"nearest"})},[c,s.length]);const b=j.useCallback(x=>{if(s.length!==0)switch(x.key){case"ArrowDown":{x.preventDefault(),f(E=>E<0?0:(E+1)%s.length);break}case"ArrowUp":{x.preventDefault(),f(E=>E<=0?s.length-1:E-1);break}case"Home":{x.preventDefault(),f(0);break}case"End":{x.preventDefault(),f(s.length-1);break}case"Enter":{x.preventDefault(),c>=0&&c<s.length&&r(s[c].agent);break}}},[s,c,r]),g=j.useCallback(()=>{if(c<0&&s.length>0){const x=s.findIndex(E=>E.agent===u);f(x>=0?x:0)}},[c,s.length,u]),y=j.useCallback(x=>{x.currentTarget.contains(x.relatedTarget)||f(-1)},[]);return s.length===0?d.jsx("div",{className:"agent-roster-empty",children:"No agents found"}):d.jsx("div",{className:"agent-roster",role:"listbox","aria-label":"Agent roster",tabIndex:0,ref:p,onKeyDown:b,onFocus:g,onBlur:y,children:s.map((x,E)=>{const D=u===x.agent,Y=c===E,X=Date.now();return d.jsxs("div",{role:"option","aria-selected":D,ref:re=>{m.current[E]=re},className:`agent-roster-row${D?" selected":""}${Y?" focused":""}`,onClick:()=>{f(E),r(x.agent)},children:[d.jsx("span",{className:"agent-roster-dot",style:{background:x.isActive?"var(--status-in-progress)":"var(--status-backlog)"}}),d.jsxs("div",{className:"agent-roster-info",children:[d.jsx("span",{className:"agent-roster-id",children:x.agent}),x.isActive&&x.tasks.length>0?d.jsxs("span",{className:"agent-roster-task",children:[d.jsxs("span",{className:`agent-roster-task-title${x.tasks[0].stale?" stale":""}`,children:[x.tasks[0].stale&&d.jsx("span",{className:"agent-roster-stale-dot"}),x.tasks[0].title]}),x.tasks.length>1&&d.jsxs("span",{className:"agent-roster-more",children:["(+",x.tasks.length-1," more)"]})]}):d.jsxs("span",{className:"agent-roster-idle",children:["idle since ",Gr(X-pm(x.lastActivity))]})]}),d.jsx("span",{className:"agent-roster-duration",children:x.isActive&&x.tasks.length>0?Gr(X-pm(x.tasks[0].claimedAt)):""})]},x.agent)})})}const ly=new Set(["backlog","ready","in-progress","done","archived"]),ay={task_created:{label:"created",badgeClass:"event-badge-created",description:s=>{const u=typeof s.project=="string"?s.project:null;return u?`created in ${u}`:"task created"}},status_changed:{label:"status",badgeClass:"event-badge-default",description:s=>{const u=typeof s.from=="string"?s.from:null,r=typeof s.to=="string"?s.to:null;return u&&r?`${u} → ${r}`:""}},task_updated:{label:"updated",badgeClass:"event-badge-updated",description:s=>{const u=typeof s.field=="string"?s.field:null,r=s.old_value!=null?String(s.old_value):null,c=s.new_value!=null?String(s.new_value):null;return u&&r!=null&&c!=null?`${u}: ${r} → ${c}`:u?`${u} updated`:"task updated"}},comment_added:{label:"commented",badgeClass:"event-badge-comment",description:s=>{const u=typeof s.text=="string"?s.text:"";return u.length>80?`${u.slice(0,80)}...`:u}},checkpoint_recorded:{label:"checkpoint",badgeClass:"event-badge-checkpoint",description:s=>{const u=typeof s.name=="string"?s.name:null;return u?`checkpoint: ${u}`:"checkpoint recorded"}},task_moved:{label:"moved",badgeClass:"event-badge-moved",description:s=>{const u=typeof s.from_project=="string"?s.from_project:null,r=typeof s.to_project=="string"?s.to_project:null;return u&&r?`${u} → ${r}`:"task moved"}},dependency_added:{label:"dep added",badgeClass:"event-badge-dep",description:s=>{const u=typeof s.depends_on_id=="string"?s.depends_on_id:null;return u?`depends on ${u.slice(0,8)}`:"dependency added"}},dependency_removed:{label:"dep removed",badgeClass:"event-badge-dep",description:s=>{const u=typeof s.depends_on_id=="string"?s.depends_on_id:null;return u?`removed dep on ${u.slice(0,8)}`:"dependency removed"}},task_archived:{label:"archived",badgeClass:"event-badge-archived",description:()=>"task archived"}};function Ym(s){return ay[s]??{label:s.replace(/_/g," "),badgeClass:"event-badge-default",description:()=>""}}function ny(s,u){if(s==="status_changed"){const c=(typeof u.to=="string"?u.to:"").replace(/[^a-zA-Z0-9-]/g,"");return c&&ly.has(c)?`event-badge-${c}`:"event-badge-default"}return Ym(s).badgeClass}function iy({events:s,total:u,onLoadMore:r,loading:c,onTaskClick:f}){if(s===null)return d.jsx("div",{className:"event-timeline-empty",children:"Select an agent to view their event timeline"});if(s.length===0&&!c)return d.jsx("div",{className:"event-timeline-empty",children:"No events found for this agent"});const p=u-s.length;return d.jsxs("div",{className:"event-timeline",children:[d.jsx("div",{className:"event-timeline-list",children:s.map(m=>{const b=Ym(m.type);return d.jsx("div",{className:"event-timeline-row clickable",onClick:()=>f?.(m.taskId),children:d.jsxs("div",{className:"event-timeline-row-main",children:[d.jsx("span",{className:"event-timeline-time",children:Fa(m.timestamp)}),d.jsx("span",{className:`event-timeline-badge ${ny(m.type,m.data)}`,children:b.label}),d.jsx("span",{className:"event-timeline-desc",children:b.description(m.data)}),d.jsx("span",{className:"event-timeline-task-ctx",children:m.taskTitle})]})},m.id)})}),p>0&&d.jsx("button",{className:"event-timeline-load-more",onClick:r,disabled:c,children:c?"Loading...":`Load more (${p} remaining)`})]})}const sy=["in_progress","blocked","ready","backlog"],uy={in_progress:"In Progress",blocked:"Blocked",ready:"Ready",backlog:"Backlog"};function cy({agent:s,events:u,total:r,onLoadMore:c,loading:f,agentTasks:p,agentTaskCounts:m,onTaskClick:b}){if(!s)return d.jsxs("div",{className:"agent-detail-empty",children:[d.jsx("span",{className:"agent-detail-empty-arrow",children:"←"}),d.jsx("span",{children:"Select an agent to view details"})]});const g=s.tasks.length>0?s.tasks[0]:null,y=m??s.taskCounts,x=new Map;if(p)for(const E of p){const D=x.get(E.status)??[];D.push(E),x.set(E.status,D)}return d.jsxs("div",{className:"agent-detail",children:[d.jsxs("div",{className:"agent-detail-header",children:[d.jsxs("div",{className:"agent-detail-header-top",children:[d.jsx("span",{className:"agent-detail-id",children:s.agent}),d.jsx("span",{className:`agent-detail-status-badge ${s.isActive?"active":"idle"}`,children:s.isActive?"active":"idle"})]}),g&&d.jsxs("div",{className:"agent-detail-current-task",children:[g.title,s.tasks.length>1&&d.jsxs("span",{className:"agent-detail-task-count",children:["+",s.tasks.length-1," more"]})]})]}),d.jsx("div",{className:"agent-detail-metrics",children:d.jsxs("div",{className:"agent-detail-metrics-grid",children:[d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"In Progress"}),d.jsx("span",{className:"agent-detail-metric-value status-in-progress",children:y.in_progress})]}),d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"Ready"}),d.jsx("span",{className:"agent-detail-metric-value status-ready",children:y.ready})]}),d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"Blocked"}),d.jsx("span",{className:"agent-detail-metric-value status-blocked",children:y.blocked})]}),d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"Backlog"}),d.jsx("span",{className:"agent-detail-metric-value status-backlog",children:y.backlog})]}),d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"Done"}),d.jsx("span",{className:"agent-detail-metric-value status-done",children:y.done})]}),d.jsxs("div",{className:"agent-detail-metric-card",children:[d.jsx("span",{className:"agent-detail-metric-label",children:"Events"}),d.jsx("span",{className:"agent-detail-metric-value",children:r})]})]})}),p&&p.length>0&&d.jsxs("div",{className:"agent-detail-tasks",children:[d.jsx("div",{className:"agent-detail-section-label",children:"Assigned Tasks"}),d.jsx("div",{className:"agent-detail-tasks-list",children:sy.map(E=>{const D=x.get(E);return!D||D.length===0?null:d.jsxs("div",{className:"agent-detail-task-group",children:[d.jsxs("div",{className:"agent-detail-task-group-label",children:[d.jsx("span",{className:`agent-detail-task-status-dot status-dot-${E}`}),uy[E],d.jsx("span",{className:"agent-detail-task-group-count",children:D.length})]}),D.map(Y=>d.jsxs("div",{className:`agent-detail-task-row${b?" clickable":""}`,onClick:()=>b?.(Y.taskId),children:[d.jsx("span",{className:"agent-detail-task-title",children:Y.title}),d.jsx("span",{className:"agent-detail-task-project",children:Y.project})]},Y.taskId))]},E)})})]}),p&&p.length===0&&d.jsxs("div",{className:"agent-detail-tasks",children:[d.jsx("div",{className:"agent-detail-section-label",children:"Assigned Tasks"}),d.jsx("div",{className:"agent-detail-tasks-empty",children:"No active tasks"})]}),d.jsxs("div",{className:"agent-detail-timeline",children:[d.jsx("div",{className:"agent-detail-section-label",children:"Activity"}),d.jsx(iy,{events:u,total:r,onLoadMore:c,loading:f,onTaskClick:b})]})]})}function ry({selectedAgent:s,onSelectAgent:u,since:r,project:c,refreshKey:f,onAgentCounts:p,onTaskClick:m}){const{agents:b,loading:g,error:y,refresh:x}=I0({since:r,project:c||void 0}),{events:E,total:D,loading:Y,loadMore:X,refresh:re}=P0(s),{tasks:ge,counts:Te,refresh:je}=ey(s);j.useEffect(()=>{f>0&&(x(),re(),je())},[f]);const[,de]=j.useState(0);j.useEffect(()=>{const ue=setInterval(()=>de(I=>I+1),6e4);return()=>clearInterval(ue)},[]),j.useEffect(()=>{if(!p)return;const ue=b.filter(I=>I.isActive).length;p(ue,b.length-ue)},[b,p]);const te=j.useMemo(()=>s?b.find(ue=>ue.agent===s)??null:null,[b,s]);return d.jsx("div",{className:"agent-ops",children:d.jsxs("div",{className:"agent-ops-panels",children:[d.jsx("div",{className:"agent-ops-roster",children:y?d.jsxs("div",{className:"agent-ops-placeholder",children:[d.jsx("span",{children:"Failed to load agents"}),d.jsx("span",{className:"agent-ops-placeholder-hint",children:y})]}):g&&b.length===0?d.jsx("div",{className:"agent-ops-placeholder",children:d.jsx("span",{children:"Loading agents..."})}):d.jsx(ty,{agents:b,selectedAgent:s,onSelectAgent:u})}),d.jsx("div",{className:"agent-ops-detail",children:d.jsx(cy,{agent:te,events:E,total:D,onLoadMore:X,loading:Y,agentTasks:ge,agentTaskCounts:Te,onTaskClick:m})})]})})}function Wr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ia=Wr();function Gm(s){Ia=s}var Ja={exec:()=>null};function Me(s,u=""){let r=typeof s=="string"?s:s.source,c={replace:(f,p)=>{let m=typeof p=="string"?p:p.source;return m=m.replace(Ct.caret,"$1"),r=r.replace(f,m),c},getRegex:()=>new RegExp(r,u)};return c}var oy=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ct={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}#`),htmlBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}>`)},fy=/^(?:[ \t]*(?:\n|$))+/,dy=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hy=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Yi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,my=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ir=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Xm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qm=Me(Xm).replace(/bull/g,Ir).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),py=Me(Xm).replace(/bull/g,Ir).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,gy=/^[^\n]+/,eo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,yy=Me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",eo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vy=Me(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ir).getRegex(),hu="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",to=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,by=Me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",to).replace("tag",hu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zm=Me(Pr).replace("hr",Yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hu).getRegex(),Sy=Me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Zm).getRegex(),lo={blockquote:Sy,code:dy,def:yy,fences:hy,heading:my,hr:Yi,html:by,lheading:Qm,list:vy,newline:fy,paragraph:Zm,table:Ja,text:gy},gm=Me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hu).getRegex(),xy={...lo,lheading:py,table:gm,paragraph:Me(Pr).replace("hr",Yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hu).getRegex()},Ty={...lo,html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",to).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ja,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Me(Pr).replace("hr",Yi).replace("heading",` *#{1,6} *[^
11
- ]`).replace("lheading",Qm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_y=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ay=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vm=/^( {2,}|\\)\n(?!\s*$)/,Ey=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mu=/[\p{P}\p{S}]/u,ao=/[\s\p{P}\p{S}]/u,Km=/[^\s\p{P}\p{S}]/u,Ny=Me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ao).getRegex(),$m=/(?!~)[\p{P}\p{S}]/u,ky=/(?!~)[\s\p{P}\p{S}]/u,jy=/(?:[^\s\p{P}\p{S}]|~)/u,Jm=/(?![*_])[\p{P}\p{S}]/u,zy=/(?![*_])[\s\p{P}\p{S}]/u,My=/(?:[^\s\p{P}\p{S}]|[*_])/u,Cy=Me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",oy?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Fm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ry=Me(Fm,"u").replace(/punct/g,mu).getRegex(),Dy=Me(Fm,"u").replace(/punct/g,$m).getRegex(),Wm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Oy=Me(Wm,"gu").replace(/notPunctSpace/g,Km).replace(/punctSpace/g,ao).replace(/punct/g,mu).getRegex(),Uy=Me(Wm,"gu").replace(/notPunctSpace/g,jy).replace(/punctSpace/g,ky).replace(/punct/g,$m).getRegex(),wy=Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Km).replace(/punctSpace/g,ao).replace(/punct/g,mu).getRegex(),Ly=Me(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Jm).getRegex(),Hy="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",By=Me(Hy,"gu").replace(/notPunctSpace/g,My).replace(/punctSpace/g,zy).replace(/punct/g,Jm).getRegex(),qy=Me(/\\(punct)/,"gu").replace(/punct/g,mu).getRegex(),Yy=Me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Gy=Me(to).replace("(?:-->|$)","-->").getRegex(),Xy=Me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Gy).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ou=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Qy=Me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ou).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Im=Me(/^!?\[(label)\]\[(ref)\]/).replace("label",ou).replace("ref",eo).getRegex(),Pm=Me(/^!?\[(ref)\](?:\[\])?/).replace("ref",eo).getRegex(),Zy=Me("reflink|nolink(?!\\()","g").replace("reflink",Im).replace("nolink",Pm).getRegex(),ym=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,no={_backpedal:Ja,anyPunctuation:qy,autolink:Yy,blockSkip:Cy,br:Vm,code:Ay,del:Ja,delLDelim:Ja,delRDelim:Ja,emStrongLDelim:Ry,emStrongRDelimAst:Oy,emStrongRDelimUnd:wy,escape:_y,link:Qy,nolink:Pm,punctuation:Ny,reflink:Im,reflinkSearch:Zy,tag:Xy,text:Ey,url:Ja},Vy={...no,link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",ou).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ou).getRegex()},Qr={...no,emStrongRDelimAst:Uy,emStrongLDelim:Dy,delLDelim:Ly,delRDelim:By,url:Me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ym).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Me(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ym).getRegex()},Ky={...Qr,br:Me(Vm).replace("{2,}","*").getRegex(),text:Me(Qr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},iu={normal:lo,gfm:xy,pedantic:Ty},Ci={normal:no,gfm:Qr,breaks:Ky,pedantic:Vy},$y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vm=s=>$y[s];function Dl(s,u){if(u){if(Ct.escapeTest.test(s))return s.replace(Ct.escapeReplace,vm)}else if(Ct.escapeTestNoEncode.test(s))return s.replace(Ct.escapeReplaceNoEncode,vm);return s}function bm(s){try{s=encodeURI(s).replace(Ct.percentDecode,"%")}catch{return null}return s}function Sm(s,u){let r=s.replace(Ct.findPipe,(p,m,b)=>{let g=!1,y=m;for(;--y>=0&&b[y]==="\\";)g=!g;return g?"|":" |"}),c=r.split(Ct.splitPipe),f=0;if(c[0].trim()||c.shift(),c.length>0&&!c.at(-1)?.trim()&&c.pop(),u)if(c.length>u)c.splice(u);else for(;c.length<u;)c.push("");for(;f<c.length;f++)c[f]=c[f].trim().replace(Ct.slashPipe,"|");return c}function Ri(s,u,r){let c=s.length;if(c===0)return"";let f=0;for(;f<c&&s.charAt(c-f-1)===u;)f++;return s.slice(0,c-f)}function Jy(s,u){if(s.indexOf(u[1])===-1)return-1;let r=0;for(let c=0;c<s.length;c++)if(s[c]==="\\")c++;else if(s[c]===u[0])r++;else if(s[c]===u[1]&&(r--,r<0))return c;return r>0?-2:-1}function Fy(s,u=0){let r=u,c="";for(let f of s)if(f===" "){let p=4-r%4;c+=" ".repeat(p),r+=p}else c+=f,r++;return c}function xm(s,u,r,c,f){let p=u.href,m=u.title||null,b=s[1].replace(f.other.outputLinkReplace,"$1");c.state.inLink=!0;let g={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:p,title:m,text:b,tokens:c.inlineTokens(b)};return c.state.inLink=!1,g}function Wy(s,u,r){let c=s.match(r.other.indentCodeCompensation);if(c===null)return u;let f=c[1];return u.split(`
12
- `).map(p=>{let m=p.match(r.other.beginningSpace);if(m===null)return p;let[b]=m;return b.length>=f.length?p.slice(f.length):p}).join(`
13
- `)}var fu=class{options;rules;lexer;constructor(s){this.options=s||Ia}space(s){let u=this.rules.block.newline.exec(s);if(u&&u[0].length>0)return{type:"space",raw:u[0]}}code(s){let u=this.rules.block.code.exec(s);if(u){let r=u[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:u[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ri(r,`
14
- `)}}}fences(s){let u=this.rules.block.fences.exec(s);if(u){let r=u[0],c=Wy(r,u[3]||"",this.rules);return{type:"code",raw:r,lang:u[2]?u[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):u[2],text:c}}}heading(s){let u=this.rules.block.heading.exec(s);if(u){let r=u[2].trim();if(this.rules.other.endingHash.test(r)){let c=Ri(r,"#");(this.options.pedantic||!c||this.rules.other.endingSpaceChar.test(c))&&(r=c.trim())}return{type:"heading",raw:u[0],depth:u[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let u=this.rules.block.hr.exec(s);if(u)return{type:"hr",raw:Ri(u[0],`
15
- `)}}blockquote(s){let u=this.rules.block.blockquote.exec(s);if(u){let r=Ri(u[0],`
16
- `).split(`
17
- `),c="",f="",p=[];for(;r.length>0;){let m=!1,b=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))b.push(r[g]),m=!0;else if(!m)b.push(r[g]);else break;r=r.slice(g);let y=b.join(`
18
- `),x=y.replace(this.rules.other.blockquoteSetextReplace,`
19
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");c=c?`${c}
20
- ${y}`:y,f=f?`${f}
21
- ${x}`:x;let E=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(x,p,!0),this.lexer.state.top=E,r.length===0)break;let D=p.at(-1);if(D?.type==="code")break;if(D?.type==="blockquote"){let Y=D,X=Y.raw+`
22
- `+r.join(`
23
- `),re=this.blockquote(X);p[p.length-1]=re,c=c.substring(0,c.length-Y.raw.length)+re.raw,f=f.substring(0,f.length-Y.text.length)+re.text;break}else if(D?.type==="list"){let Y=D,X=Y.raw+`
24
- `+r.join(`
25
- `),re=this.list(X);p[p.length-1]=re,c=c.substring(0,c.length-D.raw.length)+re.raw,f=f.substring(0,f.length-Y.raw.length)+re.raw,r=X.substring(p.at(-1).raw.length).split(`
26
- `);continue}}return{type:"blockquote",raw:c,tokens:p,text:f}}}list(s){let u=this.rules.block.list.exec(s);if(u){let r=u[1].trim(),c=r.length>1,f={type:"list",raw:"",ordered:c,start:c?+r.slice(0,-1):"",loose:!1,items:[]};r=c?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=c?r:"[*+-]");let p=this.rules.other.listItemRegex(r),m=!1;for(;s;){let g=!1,y="",x="";if(!(u=p.exec(s))||this.rules.block.hr.test(s))break;y=u[0],s=s.substring(y.length);let E=Fy(u[2].split(`
27
- `,1)[0],u[1].length),D=s.split(`
28
- `,1)[0],Y=!E.trim(),X=0;if(this.options.pedantic?(X=2,x=E.trimStart()):Y?X=u[1].length+1:(X=E.search(this.rules.other.nonSpaceChar),X=X>4?1:X,x=E.slice(X),X+=u[1].length),Y&&this.rules.other.blankLine.test(D)&&(y+=D+`
29
- `,s=s.substring(D.length+1),g=!0),!g){let re=this.rules.other.nextBulletRegex(X),ge=this.rules.other.hrRegex(X),Te=this.rules.other.fencesBeginRegex(X),je=this.rules.other.headingBeginRegex(X),de=this.rules.other.htmlBeginRegex(X),te=this.rules.other.blockquoteBeginRegex(X);for(;s;){let ue=s.split(`
30
- `,1)[0],I;if(D=ue,this.options.pedantic?(D=D.replace(this.rules.other.listReplaceNesting," "),I=D):I=D.replace(this.rules.other.tabCharGlobal," "),Te.test(D)||je.test(D)||de.test(D)||te.test(D)||re.test(D)||ge.test(D))break;if(I.search(this.rules.other.nonSpaceChar)>=X||!D.trim())x+=`
31
- `+I.slice(X);else{if(Y||E.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Te.test(E)||je.test(E)||ge.test(E))break;x+=`
32
- `+D}Y=!D.trim(),y+=ue+`
33
- `,s=s.substring(ue.length+1),E=I.slice(X)}}f.loose||(m?f.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(m=!0)),f.items.push({type:"list_item",raw:y,task:!!this.options.gfm&&this.rules.other.listIsTask.test(x),loose:!1,text:x,tokens:[]}),f.raw+=y}let b=f.items.at(-1);if(b)b.raw=b.raw.trimEnd(),b.text=b.text.trimEnd();else return;f.raw=f.raw.trimEnd();for(let g of f.items){if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),g.task){if(g.text=g.text.replace(this.rules.other.listReplaceTask,""),g.tokens[0]?.type==="text"||g.tokens[0]?.type==="paragraph"){g.tokens[0].raw=g.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),g.tokens[0].text=g.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let x=this.lexer.inlineQueue.length-1;x>=0;x--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[x].src)){this.lexer.inlineQueue[x].src=this.lexer.inlineQueue[x].src.replace(this.rules.other.listReplaceTask,"");break}}let y=this.rules.other.listTaskCheckbox.exec(g.raw);if(y){let x={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};g.checked=x.checked,f.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=x.raw+g.tokens[0].raw,g.tokens[0].text=x.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(x)):g.tokens.unshift({type:"paragraph",raw:x.raw,text:x.raw,tokens:[x]}):g.tokens.unshift(x)}}if(!f.loose){let y=g.tokens.filter(E=>E.type==="space"),x=y.length>0&&y.some(E=>this.rules.other.anyLine.test(E.raw));f.loose=x}}if(f.loose)for(let g of f.items){g.loose=!0;for(let y of g.tokens)y.type==="text"&&(y.type="paragraph")}return f}}html(s){let u=this.rules.block.html.exec(s);if(u)return{type:"html",block:!0,raw:u[0],pre:u[1]==="pre"||u[1]==="script"||u[1]==="style",text:u[0]}}def(s){let u=this.rules.block.def.exec(s);if(u){let r=u[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),c=u[2]?u[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",f=u[3]?u[3].substring(1,u[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):u[3];return{type:"def",tag:r,raw:u[0],href:c,title:f}}}table(s){let u=this.rules.block.table.exec(s);if(!u||!this.rules.other.tableDelimiter.test(u[2]))return;let r=Sm(u[1]),c=u[2].replace(this.rules.other.tableAlignChars,"").split("|"),f=u[3]?.trim()?u[3].replace(this.rules.other.tableRowBlankLine,"").split(`
34
- `):[],p={type:"table",raw:u[0],header:[],align:[],rows:[]};if(r.length===c.length){for(let m of c)this.rules.other.tableAlignRight.test(m)?p.align.push("right"):this.rules.other.tableAlignCenter.test(m)?p.align.push("center"):this.rules.other.tableAlignLeft.test(m)?p.align.push("left"):p.align.push(null);for(let m=0;m<r.length;m++)p.header.push({text:r[m],tokens:this.lexer.inline(r[m]),header:!0,align:p.align[m]});for(let m of f)p.rows.push(Sm(m,p.header.length).map((b,g)=>({text:b,tokens:this.lexer.inline(b),header:!1,align:p.align[g]})));return p}}lheading(s){let u=this.rules.block.lheading.exec(s);if(u)return{type:"heading",raw:u[0],depth:u[2].charAt(0)==="="?1:2,text:u[1],tokens:this.lexer.inline(u[1])}}paragraph(s){let u=this.rules.block.paragraph.exec(s);if(u){let r=u[1].charAt(u[1].length-1)===`
35
- `?u[1].slice(0,-1):u[1];return{type:"paragraph",raw:u[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let u=this.rules.block.text.exec(s);if(u)return{type:"text",raw:u[0],text:u[0],tokens:this.lexer.inline(u[0])}}escape(s){let u=this.rules.inline.escape.exec(s);if(u)return{type:"escape",raw:u[0],text:u[1]}}tag(s){let u=this.rules.inline.tag.exec(s);if(u)return!this.lexer.state.inLink&&this.rules.other.startATag.test(u[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(u[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(u[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(u[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:u[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:u[0]}}link(s){let u=this.rules.inline.link.exec(s);if(u){let r=u[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let p=Ri(r.slice(0,-1),"\\");if((r.length-p.length)%2===0)return}else{let p=Jy(u[2],"()");if(p===-2)return;if(p>-1){let m=(u[0].indexOf("!")===0?5:4)+u[1].length+p;u[2]=u[2].substring(0,p),u[0]=u[0].substring(0,m).trim(),u[3]=""}}let c=u[2],f="";if(this.options.pedantic){let p=this.rules.other.pedanticHrefTitle.exec(c);p&&(c=p[1],f=p[3])}else f=u[3]?u[3].slice(1,-1):"";return c=c.trim(),this.rules.other.startAngleBracket.test(c)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?c=c.slice(1):c=c.slice(1,-1)),xm(u,{href:c&&c.replace(this.rules.inline.anyPunctuation,"$1"),title:f&&f.replace(this.rules.inline.anyPunctuation,"$1")},u[0],this.lexer,this.rules)}}reflink(s,u){let r;if((r=this.rules.inline.reflink.exec(s))||(r=this.rules.inline.nolink.exec(s))){let c=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),f=u[c.toLowerCase()];if(!f){let p=r[0].charAt(0);return{type:"text",raw:p,text:p}}return xm(r,f,r[0],this.lexer,this.rules)}}emStrong(s,u,r=""){let c=this.rules.inline.emStrongLDelim.exec(s);if(!(!c||c[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(c[1]||c[2])||!r||this.rules.inline.punctuation.exec(r))){let f=[...c[0]].length-1,p,m,b=f,g=0,y=c[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,u=u.slice(-1*s.length+f);(c=y.exec(u))!=null;){if(p=c[1]||c[2]||c[3]||c[4]||c[5]||c[6],!p)continue;if(m=[...p].length,c[3]||c[4]){b+=m;continue}else if((c[5]||c[6])&&f%3&&!((f+m)%3)){g+=m;continue}if(b-=m,b>0)continue;m=Math.min(m,m+b+g);let x=[...c[0]][0].length,E=s.slice(0,f+c.index+x+m);if(Math.min(f,m)%2){let Y=E.slice(1,-1);return{type:"em",raw:E,text:Y,tokens:this.lexer.inlineTokens(Y)}}let D=E.slice(2,-2);return{type:"strong",raw:E,text:D,tokens:this.lexer.inlineTokens(D)}}}}codespan(s){let u=this.rules.inline.code.exec(s);if(u){let r=u[2].replace(this.rules.other.newLineCharGlobal," "),c=this.rules.other.nonSpaceChar.test(r),f=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return c&&f&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:u[0],text:r}}}br(s){let u=this.rules.inline.br.exec(s);if(u)return{type:"br",raw:u[0]}}del(s,u,r=""){let c=this.rules.inline.delLDelim.exec(s);if(c&&(!c[1]||!r||this.rules.inline.punctuation.exec(r))){let f=[...c[0]].length-1,p,m,b=f,g=this.rules.inline.delRDelim;for(g.lastIndex=0,u=u.slice(-1*s.length+f);(c=g.exec(u))!=null;){if(p=c[1]||c[2]||c[3]||c[4]||c[5]||c[6],!p||(m=[...p].length,m!==f))continue;if(c[3]||c[4]){b+=m;continue}if(b-=m,b>0)continue;m=Math.min(m,m+b);let y=[...c[0]][0].length,x=s.slice(0,f+c.index+y+m),E=x.slice(f,-f);return{type:"del",raw:x,text:E,tokens:this.lexer.inlineTokens(E)}}}}autolink(s){let u=this.rules.inline.autolink.exec(s);if(u){let r,c;return u[2]==="@"?(r=u[1],c="mailto:"+r):(r=u[1],c=r),{type:"link",raw:u[0],text:r,href:c,tokens:[{type:"text",raw:r,text:r}]}}}url(s){let u;if(u=this.rules.inline.url.exec(s)){let r,c;if(u[2]==="@")r=u[0],c="mailto:"+r;else{let f;do f=u[0],u[0]=this.rules.inline._backpedal.exec(u[0])?.[0]??"";while(f!==u[0]);r=u[0],u[1]==="www."?c="http://"+u[0]:c=u[0]}return{type:"link",raw:u[0],text:r,href:c,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(s){let u=this.rules.inline.text.exec(s);if(u){let r=this.lexer.state.inRawBlock;return{type:"text",raw:u[0],text:u[0],escaped:r}}}},xl=class Zr{tokens;options;state;inlineQueue;tokenizer;constructor(u){this.tokens=[],this.tokens.links=Object.create(null),this.options=u||Ia,this.options.tokenizer=this.options.tokenizer||new fu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Ct,block:iu.normal,inline:Ci.normal};this.options.pedantic?(r.block=iu.pedantic,r.inline=Ci.pedantic):this.options.gfm&&(r.block=iu.gfm,this.options.breaks?r.inline=Ci.breaks:r.inline=Ci.gfm),this.tokenizer.rules=r}static get rules(){return{block:iu,inline:Ci}}static lex(u,r){return new Zr(r).lex(u)}static lexInline(u,r){return new Zr(r).inlineTokens(u)}lex(u){u=u.replace(Ct.carriageReturn,`
36
- `),this.blockTokens(u,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let c=this.inlineQueue[r];this.inlineTokens(c.src,c.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(u,r=[],c=!1){for(this.options.pedantic&&(u=u.replace(Ct.tabCharGlobal," ").replace(Ct.spaceLine,""));u;){let f;if(this.options.extensions?.block?.some(m=>(f=m.call({lexer:this},u,r))?(u=u.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.space(u)){u=u.substring(f.raw.length);let m=r.at(-1);f.raw.length===1&&m!==void 0?m.raw+=`
37
- `:r.push(f);continue}if(f=this.tokenizer.code(u)){u=u.substring(f.raw.length);let m=r.at(-1);m?.type==="paragraph"||m?.type==="text"?(m.raw+=(m.raw.endsWith(`
38
- `)?"":`
39
- `)+f.raw,m.text+=`
40
- `+f.text,this.inlineQueue.at(-1).src=m.text):r.push(f);continue}if(f=this.tokenizer.fences(u)){u=u.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.heading(u)){u=u.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.hr(u)){u=u.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.blockquote(u)){u=u.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.list(u)){u=u.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.html(u)){u=u.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.def(u)){u=u.substring(f.raw.length);let m=r.at(-1);m?.type==="paragraph"||m?.type==="text"?(m.raw+=(m.raw.endsWith(`
41
- `)?"":`
42
- `)+f.raw,m.text+=`
43
- `+f.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title},r.push(f));continue}if(f=this.tokenizer.table(u)){u=u.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.lheading(u)){u=u.substring(f.raw.length),r.push(f);continue}let p=u;if(this.options.extensions?.startBlock){let m=1/0,b=u.slice(1),g;this.options.extensions.startBlock.forEach(y=>{g=y.call({lexer:this},b),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(p=u.substring(0,m+1))}if(this.state.top&&(f=this.tokenizer.paragraph(p))){let m=r.at(-1);c&&m?.type==="paragraph"?(m.raw+=(m.raw.endsWith(`
44
- `)?"":`
45
- `)+f.raw,m.text+=`
46
- `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(f),c=p.length!==u.length,u=u.substring(f.raw.length);continue}if(f=this.tokenizer.text(u)){u=u.substring(f.raw.length);let m=r.at(-1);m?.type==="text"?(m.raw+=(m.raw.endsWith(`
47
- `)?"":`
48
- `)+f.raw,m.text+=`
49
- `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(f);continue}if(u){let m="Infinite loop on byte: "+u.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(u,r=[]){return this.inlineQueue.push({src:u,tokens:r}),r}inlineTokens(u,r=[]){let c=u,f=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(c))!=null;)g.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(c))!=null;)c=c.slice(0,f.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let p;for(;(f=this.tokenizer.rules.inline.blockSkip.exec(c))!=null;)p=f[2]?f[2].length:0,c=c.slice(0,f.index+p)+"["+"a".repeat(f[0].length-p-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);c=this.options.hooks?.emStrongMask?.call({lexer:this},c)??c;let m=!1,b="";for(;u;){m||(b=""),m=!1;let g;if(this.options.extensions?.inline?.some(x=>(g=x.call({lexer:this},u,r))?(u=u.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(u)){u=u.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(u)){u=u.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(u)){u=u.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(u,this.tokens.links)){u=u.substring(g.raw.length);let x=r.at(-1);g.type==="text"&&x?.type==="text"?(x.raw+=g.raw,x.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(u,c,b)){u=u.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(u)){u=u.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(u)){u=u.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(u,c,b)){u=u.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(u)){u=u.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(u))){u=u.substring(g.raw.length),r.push(g);continue}let y=u;if(this.options.extensions?.startInline){let x=1/0,E=u.slice(1),D;this.options.extensions.startInline.forEach(Y=>{D=Y.call({lexer:this},E),typeof D=="number"&&D>=0&&(x=Math.min(x,D))}),x<1/0&&x>=0&&(y=u.substring(0,x+1))}if(g=this.tokenizer.inlineText(y)){u=u.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(b=g.raw.slice(-1)),m=!0;let x=r.at(-1);x?.type==="text"?(x.raw+=g.raw,x.text+=g.text):r.push(g);continue}if(u){let x="Infinite loop on byte: "+u.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},du=class{options;parser;constructor(s){this.options=s||Ia}space(s){return""}code({text:s,lang:u,escaped:r}){let c=(u||"").match(Ct.notSpaceStart)?.[0],f=s.replace(Ct.endingNewline,"")+`
50
- `;return c?'<pre><code class="language-'+Dl(c)+'">'+(r?f:Dl(f,!0))+`</code></pre>
51
- `:"<pre><code>"+(r?f:Dl(f,!0))+`</code></pre>
52
- `}blockquote({tokens:s}){return`<blockquote>
53
- ${this.parser.parse(s)}</blockquote>
54
- `}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:u}){return`<h${u}>${this.parser.parseInline(s)}</h${u}>
55
- `}hr(s){return`<hr>
56
- `}list(s){let u=s.ordered,r=s.start,c="";for(let m=0;m<s.items.length;m++){let b=s.items[m];c+=this.listitem(b)}let f=u?"ol":"ul",p=u&&r!==1?' start="'+r+'"':"";return"<"+f+p+`>
57
- `+c+"</"+f+`>
58
- `}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
59
- `}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
60
- `}table(s){let u="",r="";for(let f=0;f<s.header.length;f++)r+=this.tablecell(s.header[f]);u+=this.tablerow({text:r});let c="";for(let f=0;f<s.rows.length;f++){let p=s.rows[f];r="";for(let m=0;m<p.length;m++)r+=this.tablecell(p[m]);c+=this.tablerow({text:r})}return c&&(c=`<tbody>${c}</tbody>`),`<table>
61
- <thead>
62
- `+u+`</thead>
63
- `+c+`</table>
64
- `}tablerow({text:s}){return`<tr>
65
- ${s}</tr>
66
- `}tablecell(s){let u=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+u+`</${r}>
67
- `}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${Dl(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:u,tokens:r}){let c=this.parser.parseInline(r),f=bm(s);if(f===null)return c;s=f;let p='<a href="'+s+'"';return u&&(p+=' title="'+Dl(u)+'"'),p+=">"+c+"</a>",p}image({href:s,title:u,text:r,tokens:c}){c&&(r=this.parser.parseInline(c,this.parser.textRenderer));let f=bm(s);if(f===null)return Dl(r);s=f;let p=`<img src="${s}" alt="${Dl(r)}"`;return u&&(p+=` title="${Dl(u)}"`),p+=">",p}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Dl(s.text)}},io=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}checkbox({raw:s}){return s}},Tl=class Vr{options;renderer;textRenderer;constructor(u){this.options=u||Ia,this.options.renderer=this.options.renderer||new du,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new io}static parse(u,r){return new Vr(r).parse(u)}static parseInline(u,r){return new Vr(r).parseInline(u)}parse(u){let r="";for(let c=0;c<u.length;c++){let f=u[c];if(this.options.extensions?.renderers?.[f.type]){let m=f,b=this.options.extensions.renderers[m.type].call({parser:this},m);if(b!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){r+=b||"";continue}}let p=f;switch(p.type){case"space":{r+=this.renderer.space(p);break}case"hr":{r+=this.renderer.hr(p);break}case"heading":{r+=this.renderer.heading(p);break}case"code":{r+=this.renderer.code(p);break}case"table":{r+=this.renderer.table(p);break}case"blockquote":{r+=this.renderer.blockquote(p);break}case"list":{r+=this.renderer.list(p);break}case"checkbox":{r+=this.renderer.checkbox(p);break}case"html":{r+=this.renderer.html(p);break}case"def":{r+=this.renderer.def(p);break}case"paragraph":{r+=this.renderer.paragraph(p);break}case"text":{r+=this.renderer.text(p);break}default:{let m='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}parseInline(u,r=this.renderer){let c="";for(let f=0;f<u.length;f++){let p=u[f];if(this.options.extensions?.renderers?.[p.type]){let b=this.options.extensions.renderers[p.type].call({parser:this},p);if(b!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(p.type)){c+=b||"";continue}}let m=p;switch(m.type){case"escape":{c+=r.text(m);break}case"html":{c+=r.html(m);break}case"link":{c+=r.link(m);break}case"image":{c+=r.image(m);break}case"checkbox":{c+=r.checkbox(m);break}case"strong":{c+=r.strong(m);break}case"em":{c+=r.em(m);break}case"codespan":{c+=r.codespan(m);break}case"br":{c+=r.br(m);break}case"del":{c+=r.del(m);break}case"text":{c+=r.text(m);break}default:{let b='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(b),"";throw new Error(b)}}}return c}},Bi=class{options;block;constructor(s){this.options=s||Ia}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(){return this.block?xl.lex:xl.lexInline}provideParser(){return this.block?Tl.parse:Tl.parseInline}},Iy=class{defaults=Wr();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Tl;Renderer=du;TextRenderer=io;Lexer=xl;Tokenizer=fu;Hooks=Bi;constructor(...s){this.use(...s)}walkTokens(s,u){let r=[];for(let c of s)switch(r=r.concat(u.call(this,c)),c.type){case"table":{let f=c;for(let p of f.header)r=r.concat(this.walkTokens(p.tokens,u));for(let p of f.rows)for(let m of p)r=r.concat(this.walkTokens(m.tokens,u));break}case"list":{let f=c;r=r.concat(this.walkTokens(f.items,u));break}default:{let f=c;this.defaults.extensions?.childTokens?.[f.type]?this.defaults.extensions.childTokens[f.type].forEach(p=>{let m=f[p].flat(1/0);r=r.concat(this.walkTokens(m,u))}):f.tokens&&(r=r.concat(this.walkTokens(f.tokens,u)))}}return r}use(...s){let u=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let c={...r};if(c.async=this.defaults.async||c.async||!1,r.extensions&&(r.extensions.forEach(f=>{if(!f.name)throw new Error("extension name required");if("renderer"in f){let p=u.renderers[f.name];p?u.renderers[f.name]=function(...m){let b=f.renderer.apply(this,m);return b===!1&&(b=p.apply(this,m)),b}:u.renderers[f.name]=f.renderer}if("tokenizer"in f){if(!f.level||f.level!=="block"&&f.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let p=u[f.level];p?p.unshift(f.tokenizer):u[f.level]=[f.tokenizer],f.start&&(f.level==="block"?u.startBlock?u.startBlock.push(f.start):u.startBlock=[f.start]:f.level==="inline"&&(u.startInline?u.startInline.push(f.start):u.startInline=[f.start]))}"childTokens"in f&&f.childTokens&&(u.childTokens[f.name]=f.childTokens)}),c.extensions=u),r.renderer){let f=this.defaults.renderer||new du(this.defaults);for(let p in r.renderer){if(!(p in f))throw new Error(`renderer '${p}' does not exist`);if(["options","parser"].includes(p))continue;let m=p,b=r.renderer[m],g=f[m];f[m]=(...y)=>{let x=b.apply(f,y);return x===!1&&(x=g.apply(f,y)),x||""}}c.renderer=f}if(r.tokenizer){let f=this.defaults.tokenizer||new fu(this.defaults);for(let p in r.tokenizer){if(!(p in f))throw new Error(`tokenizer '${p}' does not exist`);if(["options","rules","lexer"].includes(p))continue;let m=p,b=r.tokenizer[m],g=f[m];f[m]=(...y)=>{let x=b.apply(f,y);return x===!1&&(x=g.apply(f,y)),x}}c.tokenizer=f}if(r.hooks){let f=this.defaults.hooks||new Bi;for(let p in r.hooks){if(!(p in f))throw new Error(`hook '${p}' does not exist`);if(["options","block"].includes(p))continue;let m=p,b=r.hooks[m],g=f[m];Bi.passThroughHooks.has(p)?f[m]=y=>{if(this.defaults.async&&Bi.passThroughHooksRespectAsync.has(p))return(async()=>{let E=await b.call(f,y);return g.call(f,E)})();let x=b.call(f,y);return g.call(f,x)}:f[m]=(...y)=>{if(this.defaults.async)return(async()=>{let E=await b.apply(f,y);return E===!1&&(E=await g.apply(f,y)),E})();let x=b.apply(f,y);return x===!1&&(x=g.apply(f,y)),x}}c.hooks=f}if(r.walkTokens){let f=this.defaults.walkTokens,p=r.walkTokens;c.walkTokens=function(m){let b=[];return b.push(p.call(this,m)),f&&(b=b.concat(f.call(this,m))),b}}this.defaults={...this.defaults,...c}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,u){return xl.lex(s,u??this.defaults)}parser(s,u){return Tl.parse(s,u??this.defaults)}parseMarkdown(s){return(u,r)=>{let c={...r},f={...this.defaults,...c},p=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&c.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof u>"u"||u===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof u!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(u)+", string expected"));if(f.hooks&&(f.hooks.options=f,f.hooks.block=s),f.async)return(async()=>{let m=f.hooks?await f.hooks.preprocess(u):u,b=await(f.hooks?await f.hooks.provideLexer():s?xl.lex:xl.lexInline)(m,f),g=f.hooks?await f.hooks.processAllTokens(b):b;f.walkTokens&&await Promise.all(this.walkTokens(g,f.walkTokens));let y=await(f.hooks?await f.hooks.provideParser():s?Tl.parse:Tl.parseInline)(g,f);return f.hooks?await f.hooks.postprocess(y):y})().catch(p);try{f.hooks&&(u=f.hooks.preprocess(u));let m=(f.hooks?f.hooks.provideLexer():s?xl.lex:xl.lexInline)(u,f);f.hooks&&(m=f.hooks.processAllTokens(m)),f.walkTokens&&this.walkTokens(m,f.walkTokens);let b=(f.hooks?f.hooks.provideParser():s?Tl.parse:Tl.parseInline)(m,f);return f.hooks&&(b=f.hooks.postprocess(b)),b}catch(m){return p(m)}}}onError(s,u){return r=>{if(r.message+=`
68
- Please report this to https://github.com/markedjs/marked.`,s){let c="<p>An error occurred:</p><pre>"+Dl(r.message+"",!0)+"</pre>";return u?Promise.resolve(c):c}if(u)return Promise.reject(r);throw r}}},Wa=new Iy;function Ye(s,u){return Wa.parse(s,u)}Ye.options=Ye.setOptions=function(s){return Wa.setOptions(s),Ye.defaults=Wa.defaults,Gm(Ye.defaults),Ye};Ye.getDefaults=Wr;Ye.defaults=Ia;Ye.use=function(...s){return Wa.use(...s),Ye.defaults=Wa.defaults,Gm(Ye.defaults),Ye};Ye.walkTokens=function(s,u){return Wa.walkTokens(s,u)};Ye.parseInline=Wa.parseInline;Ye.Parser=Tl;Ye.parser=Tl.parse;Ye.Renderer=du;Ye.TextRenderer=io;Ye.Lexer=xl;Ye.lexer=xl.lex;Ye.Tokenizer=fu;Ye.Hooks=Bi;Ye.parse=Ye;Ye.options;Ye.setOptions;Ye.use;Ye.walkTokens;Ye.parseInline;Tl.parse;xl.lex;const{entries:ep,setPrototypeOf:Tm,isFrozen:Py,getPrototypeOf:ev,getOwnPropertyDescriptor:tv}=Object;let{freeze:Rt,seal:ml,create:cu}=Object,{apply:Kr,construct:$r}=typeof Reflect<"u"&&Reflect;Rt||(Rt=function(u){return u});ml||(ml=function(u){return u});Kr||(Kr=function(u,r){for(var c=arguments.length,f=new Array(c>2?c-2:0),p=2;p<c;p++)f[p-2]=arguments[p];return u.apply(r,f)});$r||($r=function(u){for(var r=arguments.length,c=new Array(r>1?r-1:0),f=1;f<r;f++)c[f-1]=arguments[f];return new u(...c)});const su=Dt(Array.prototype.forEach),lv=Dt(Array.prototype.lastIndexOf),_m=Dt(Array.prototype.pop),Di=Dt(Array.prototype.push),av=Dt(Array.prototype.splice),ru=Dt(String.prototype.toLowerCase),Mr=Dt(String.prototype.toString),Cr=Dt(String.prototype.match),Oi=Dt(String.prototype.replace),nv=Dt(String.prototype.indexOf),iv=Dt(String.prototype.trim),Wt=Dt(Object.prototype.hasOwnProperty),Mt=Dt(RegExp.prototype.test),Ui=sv(TypeError);function Dt(s){return function(u){u instanceof RegExp&&(u.lastIndex=0);for(var r=arguments.length,c=new Array(r>1?r-1:0),f=1;f<r;f++)c[f-1]=arguments[f];return Kr(s,u,c)}}function sv(s){return function(){for(var u=arguments.length,r=new Array(u),c=0;c<u;c++)r[c]=arguments[c];return $r(s,r)}}function xe(s,u){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ru;Tm&&Tm(s,null);let c=u.length;for(;c--;){let f=u[c];if(typeof f=="string"){const p=r(f);p!==f&&(Py(u)||(u[c]=p),f=p)}s[f]=!0}return s}function uv(s){for(let u=0;u<s.length;u++)Wt(s,u)||(s[u]=null);return s}function Ol(s){const u=cu(null);for(const[r,c]of ep(s))Wt(s,r)&&(Array.isArray(c)?u[r]=uv(c):c&&typeof c=="object"&&c.constructor===Object?u[r]=Ol(c):u[r]=c);return u}function wi(s,u){for(;s!==null;){const c=tv(s,u);if(c){if(c.get)return Dt(c.get);if(typeof c.value=="function")return Dt(c.value)}s=ev(s)}function r(){return null}return r}const Am=Rt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Rr=Rt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dr=Rt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cv=Rt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Or=Rt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),rv=Rt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Em=Rt(["#text"]),Nm=Rt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ur=Rt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),km=Rt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),uu=Rt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ov=ml(/\{\{[\w\W]*|[\w\W]*\}\}/gm),fv=ml(/<%[\w\W]*|[\w\W]*%>/gm),dv=ml(/\$\{[\w\W]*/gm),hv=ml(/^data-[\-\w.\u00B7-\uFFFF]+$/),mv=ml(/^aria-[\-\w]+$/),tp=ml(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pv=ml(/^(?:\w+script|data):/i),gv=ml(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lp=ml(/^html$/i),yv=ml(/^[a-z][.\w]*(-[.\w]+)+$/i);var jm=Object.freeze({__proto__:null,ARIA_ATTR:mv,ATTR_WHITESPACE:gv,CUSTOM_ELEMENT:yv,DATA_ATTR:hv,DOCTYPE_NAME:lp,ERB_EXPR:fv,IS_ALLOWED_URI:tp,IS_SCRIPT_OR_DATA:pv,MUSTACHE_EXPR:ov,TMPLIT_EXPR:dv});const Li={element:1,text:3,progressingInstruction:7,comment:8,document:9},vv=function(){return typeof window>"u"?null:window},bv=function(u,r){if(typeof u!="object"||typeof u.createPolicy!="function")return null;let c=null;const f="data-tt-policy-suffix";r&&r.hasAttribute(f)&&(c=r.getAttribute(f));const p="dompurify"+(c?"#"+c:"");try{return u.createPolicy(p,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},zm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ap(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vv();const u=le=>ap(le);if(u.version="3.3.2",u.removed=[],!s||!s.document||s.document.nodeType!==Li.document||!s.Element)return u.isSupported=!1,u;let{document:r}=s;const c=r,f=c.currentScript,{DocumentFragment:p,HTMLTemplateElement:m,Node:b,Element:g,NodeFilter:y,NamedNodeMap:x=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:E,DOMParser:D,trustedTypes:Y}=s,X=g.prototype,re=wi(X,"cloneNode"),ge=wi(X,"remove"),Te=wi(X,"nextSibling"),je=wi(X,"childNodes"),de=wi(X,"parentNode");if(typeof m=="function"){const le=r.createElement("template");le.content&&le.content.ownerDocument&&(r=le.content.ownerDocument)}let te,ue="";const{implementation:I,createNodeIterator:K,createDocumentFragment:Q,getElementsByTagName:ye}=r,{importNode:Ce}=c;let L=zm();u.isSupported=typeof ep=="function"&&typeof de=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:O,ERB_EXPR:P,TMPLIT_EXPR:me,DATA_ATTR:Ee,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Se}=jm;let{IS_ALLOWED_URI:ve}=jm,S=null;const U=xe({},[...Am,...Rr,...Dr,...Or,...Em]);let C=null;const Z=xe({},[...Nm,...Ur,...km,...uu]);let $=Object.seal(cu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,oe=null;const Le=Object.seal(cu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ue=!0,nt=!0,pt=!1,He=!0,Nt=!1,it=!0,vt=!1,It=!1,Al=!1,kt=!1,Pt=!1,el=!1,Gt=!0,ja=!1;const El="user-content-";let st=!0,Nl=!1,Xt={},At=null;const kl=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let za=null;const Ma=xe({},["audio","video","img","source","image","track"]);let Ca=null;const Ul=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tl="http://www.w3.org/1998/Math/MathML",ut="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let Pe=$e,ta=!1,Ra=null;const On=xe({},[tl,ut,$e],Mr);let pl=xe({},["mi","mo","mn","ms","mtext"]),gl=xe({},["annotation-xml"]);const la=xe({},["title","style","font","a","script"]);let jt=null;const aa=["application/xhtml+xml","text/html"],V="text/html";let J=null,ne=null;const We=r.createElement("form"),gt=function(T){return T instanceof RegExp||T instanceof Function},Un=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ne&&ne===T)){if((!T||typeof T!="object")&&(T={}),T=Ol(T),jt=aa.indexOf(T.PARSER_MEDIA_TYPE)===-1?V:T.PARSER_MEDIA_TYPE,J=jt==="application/xhtml+xml"?Mr:ru,S=Wt(T,"ALLOWED_TAGS")?xe({},T.ALLOWED_TAGS,J):U,C=Wt(T,"ALLOWED_ATTR")?xe({},T.ALLOWED_ATTR,J):Z,Ra=Wt(T,"ALLOWED_NAMESPACES")?xe({},T.ALLOWED_NAMESPACES,Mr):On,Ca=Wt(T,"ADD_URI_SAFE_ATTR")?xe(Ol(Ul),T.ADD_URI_SAFE_ATTR,J):Ul,za=Wt(T,"ADD_DATA_URI_TAGS")?xe(Ol(Ma),T.ADD_DATA_URI_TAGS,J):Ma,At=Wt(T,"FORBID_CONTENTS")?xe({},T.FORBID_CONTENTS,J):kl,ce=Wt(T,"FORBID_TAGS")?xe({},T.FORBID_TAGS,J):Ol({}),oe=Wt(T,"FORBID_ATTR")?xe({},T.FORBID_ATTR,J):Ol({}),Xt=Wt(T,"USE_PROFILES")?T.USE_PROFILES:!1,Ue=T.ALLOW_ARIA_ATTR!==!1,nt=T.ALLOW_DATA_ATTR!==!1,pt=T.ALLOW_UNKNOWN_PROTOCOLS||!1,He=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Nt=T.SAFE_FOR_TEMPLATES||!1,it=T.SAFE_FOR_XML!==!1,vt=T.WHOLE_DOCUMENT||!1,kt=T.RETURN_DOM||!1,Pt=T.RETURN_DOM_FRAGMENT||!1,el=T.RETURN_TRUSTED_TYPE||!1,Al=T.FORCE_BODY||!1,Gt=T.SANITIZE_DOM!==!1,ja=T.SANITIZE_NAMED_PROPS||!1,st=T.KEEP_CONTENT!==!1,Nl=T.IN_PLACE||!1,ve=T.ALLOWED_URI_REGEXP||tp,Pe=T.NAMESPACE||$e,pl=T.MATHML_TEXT_INTEGRATION_POINTS||pl,gl=T.HTML_INTEGRATION_POINTS||gl,$=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&gt(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&gt(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(nt=!1),Pt&&(kt=!0),Xt&&(S=xe({},Em),C=cu(null),Xt.html===!0&&(xe(S,Am),xe(C,Nm)),Xt.svg===!0&&(xe(S,Rr),xe(C,Ur),xe(C,uu)),Xt.svgFilters===!0&&(xe(S,Dr),xe(C,Ur),xe(C,uu)),Xt.mathMl===!0&&(xe(S,Or),xe(C,km),xe(C,uu))),Wt(T,"ADD_TAGS")||(Le.tagCheck=null),Wt(T,"ADD_ATTR")||(Le.attributeCheck=null),T.ADD_TAGS&&(typeof T.ADD_TAGS=="function"?Le.tagCheck=T.ADD_TAGS:(S===U&&(S=Ol(S)),xe(S,T.ADD_TAGS,J))),T.ADD_ATTR&&(typeof T.ADD_ATTR=="function"?Le.attributeCheck=T.ADD_ATTR:(C===Z&&(C=Ol(C)),xe(C,T.ADD_ATTR,J))),T.ADD_URI_SAFE_ATTR&&xe(Ca,T.ADD_URI_SAFE_ATTR,J),T.FORBID_CONTENTS&&(At===kl&&(At=Ol(At)),xe(At,T.FORBID_CONTENTS,J)),T.ADD_FORBID_CONTENTS&&(At===kl&&(At=Ol(At)),xe(At,T.ADD_FORBID_CONTENTS,J)),st&&(S["#text"]=!0),vt&&xe(S,["html","head","body"]),S.table&&(xe(S,["tbody"]),delete ce.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ui('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ui('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=T.TRUSTED_TYPES_POLICY,ue=te.createHTML("")}else te===void 0&&(te=bv(Y,f)),te!==null&&typeof ue=="string"&&(ue=te.createHTML(""));Rt&&Rt(T),ne=T}},wn=xe({},[...Rr,...Dr,...cv]),Ln=xe({},[...Or,...rv]),Gi=function(T){let q=de(T);(!q||!q.tagName)&&(q={namespaceURI:Pe,tagName:"template"});const F=ru(T.tagName),we=ru(q.tagName);return Ra[T.namespaceURI]?T.namespaceURI===ut?q.namespaceURI===$e?F==="svg":q.namespaceURI===tl?F==="svg"&&(we==="annotation-xml"||pl[we]):!!wn[F]:T.namespaceURI===tl?q.namespaceURI===$e?F==="math":q.namespaceURI===ut?F==="math"&&gl[we]:!!Ln[F]:T.namespaceURI===$e?q.namespaceURI===ut&&!gl[we]||q.namespaceURI===tl&&!pl[we]?!1:!Ln[F]&&(la[F]||!wn[F]):!!(jt==="application/xhtml+xml"&&Ra[T.namespaceURI]):!1},Ot=function(T){Di(u.removed,{element:T});try{de(T).removeChild(T)}catch{ge(T)}},yl=function(T,q){try{Di(u.removed,{attribute:q.getAttributeNode(T),from:q})}catch{Di(u.removed,{attribute:null,from:q})}if(q.removeAttribute(T),T==="is")if(kt||Pt)try{Ot(q)}catch{}else try{q.setAttribute(T,"")}catch{}},Hn=function(T){let q=null,F=null;if(Al)T="<remove></remove>"+T;else{const be=Cr(T,/^[\r\n\t ]+/);F=be&&be[0]}jt==="application/xhtml+xml"&&Pe===$e&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const we=te?te.createHTML(T):T;if(Pe===$e)try{q=new D().parseFromString(we,jt)}catch{}if(!q||!q.documentElement){q=I.createDocument(Pe,"template",null);try{q.documentElement.innerHTML=ta?ue:we}catch{}}const Ie=q.body||q.documentElement;return T&&F&&Ie.insertBefore(r.createTextNode(F),Ie.childNodes[0]||null),Pe===$e?ye.call(q,vt?"html":"body")[0]:vt?q.documentElement:Ie},Bn=function(T){return K.call(T.ownerDocument||T,T,y.SHOW_ELEMENT|y.SHOW_COMMENT|y.SHOW_TEXT|y.SHOW_PROCESSING_INSTRUCTION|y.SHOW_CDATA_SECTION,null)},ll=function(T){return T instanceof E&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof x)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},ct=function(T){return typeof b=="function"&&T instanceof b};function Je(le,T,q){su(le,F=>{F.call(u,T,q,ne)})}const wl=function(T){let q=null;if(Je(L.beforeSanitizeElements,T,null),ll(T))return Ot(T),!0;const F=J(T.nodeName);if(Je(L.uponSanitizeElement,T,{tagName:F,allowedTags:S}),it&&T.hasChildNodes()&&!ct(T.firstElementChild)&&Mt(/<[/\w!]/g,T.innerHTML)&&Mt(/<[/\w!]/g,T.textContent)||T.nodeType===Li.progressingInstruction||it&&T.nodeType===Li.comment&&Mt(/<[/\w]/g,T.data))return Ot(T),!0;if(!(Le.tagCheck instanceof Function&&Le.tagCheck(F))&&(!S[F]||ce[F])){if(!ce[F]&&Xi(F)&&($.tagNameCheck instanceof RegExp&&Mt($.tagNameCheck,F)||$.tagNameCheck instanceof Function&&$.tagNameCheck(F)))return!1;if(st&&!At[F]){const we=de(T)||T.parentNode,Ie=je(T)||T.childNodes;if(Ie&&we){const be=Ie.length;for(let bt=be-1;bt>=0;--bt){const al=re(Ie[bt],!0);al.__removalCount=(T.__removalCount||0)+1,we.insertBefore(al,Te(T))}}}return Ot(T),!0}return T instanceof g&&!Gi(T)||(F==="noscript"||F==="noembed"||F==="noframes")&&Mt(/<\/no(script|embed|frames)/i,T.innerHTML)?(Ot(T),!0):(Nt&&T.nodeType===Li.text&&(q=T.textContent,su([O,P,me],we=>{q=Oi(q,we," ")}),T.textContent!==q&&(Di(u.removed,{element:T.cloneNode()}),T.textContent=q)),Je(L.afterSanitizeElements,T,null),!1)},Pa=function(T,q,F){if(oe[q]||Gt&&(q==="id"||q==="name")&&(F in r||F in We))return!1;if(!(nt&&!oe[q]&&Mt(Ee,q))){if(!(Ue&&Mt(M,q))){if(!(Le.attributeCheck instanceof Function&&Le.attributeCheck(q,T))){if(!C[q]||oe[q]){if(!(Xi(T)&&($.tagNameCheck instanceof RegExp&&Mt($.tagNameCheck,T)||$.tagNameCheck instanceof Function&&$.tagNameCheck(T))&&($.attributeNameCheck instanceof RegExp&&Mt($.attributeNameCheck,q)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(q,T))||q==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Mt($.tagNameCheck,F)||$.tagNameCheck instanceof Function&&$.tagNameCheck(F))))return!1}else if(!Ca[q]){if(!Mt(ve,Oi(F,ee,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&T!=="script"&&nv(F,"data:")===0&&za[T])){if(!(pt&&!Mt(G,Oi(F,ee,"")))){if(F)return!1}}}}}}}return!0},Xi=function(T){return T!=="annotation-xml"&&Cr(T,Se)},Qi=function(T){Je(L.beforeSanitizeAttributes,T,null);const{attributes:q}=T;if(!q||ll(T))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0};let we=q.length;for(;we--;){const Ie=q[we],{name:be,namespaceURI:bt,value:al}=Ie,Ut=J(be),jl=al;let ht=be==="value"?jl:iv(jl);if(F.attrName=Ut,F.attrValue=ht,F.keepAttr=!0,F.forceKeepAttr=void 0,Je(L.uponSanitizeAttribute,T,F),ht=F.attrValue,ja&&(Ut==="id"||Ut==="name")&&(yl(be,T),ht=El+ht),it&&Mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ht)){yl(be,T);continue}if(Ut==="attributename"&&Cr(ht,"href")){yl(be,T);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){yl(be,T);continue}if(!He&&Mt(/\/>/i,ht)){yl(be,T);continue}Nt&&su([O,P,me],Yn=>{ht=Oi(ht,Yn," ")});const qn=J(T.nodeName);if(!Pa(qn,Ut,ht)){yl(be,T);continue}if(te&&typeof Y=="object"&&typeof Y.getAttributeType=="function"&&!bt)switch(Y.getAttributeType(qn,Ut)){case"TrustedHTML":{ht=te.createHTML(ht);break}case"TrustedScriptURL":{ht=te.createScriptURL(ht);break}}if(ht!==jl)try{bt?T.setAttributeNS(bt,be,ht):T.setAttribute(be,ht),ll(T)?Ot(T):_m(u.removed)}catch{yl(be,T)}}Je(L.afterSanitizeAttributes,T,null)},Zi=function le(T){let q=null;const F=Bn(T);for(Je(L.beforeSanitizeShadowDOM,T,null);q=F.nextNode();)Je(L.uponSanitizeShadowNode,q,null),wl(q),Qi(q),q.content instanceof p&&le(q.content);Je(L.afterSanitizeShadowDOM,T,null)};return u.sanitize=function(le){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,F=null,we=null,Ie=null;if(ta=!le,ta&&(le="<!-->"),typeof le!="string"&&!ct(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Ui("dirty is not a string, aborting")}else throw Ui("toString is not a function");if(!u.isSupported)return le;if(It||Un(T),u.removed=[],typeof le=="string"&&(Nl=!1),Nl){if(le.nodeName){const al=J(le.nodeName);if(!S[al]||ce[al])throw Ui("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof b)q=Hn("<!---->"),F=q.ownerDocument.importNode(le,!0),F.nodeType===Li.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?q=F:q.appendChild(F);else{if(!kt&&!Nt&&!vt&&le.indexOf("<")===-1)return te&&el?te.createHTML(le):le;if(q=Hn(le),!q)return kt?null:el?ue:""}q&&Al&&Ot(q.firstChild);const be=Bn(Nl?le:q);for(;we=be.nextNode();)wl(we),Qi(we),we.content instanceof p&&Zi(we.content);if(Nl)return le;if(kt){if(Pt)for(Ie=Q.call(q.ownerDocument);q.firstChild;)Ie.appendChild(q.firstChild);else Ie=q;return(C.shadowroot||C.shadowrootmode)&&(Ie=Ce.call(c,Ie,!0)),Ie}let bt=vt?q.outerHTML:q.innerHTML;return vt&&S["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Mt(lp,q.ownerDocument.doctype.name)&&(bt="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
69
- `+bt),Nt&&su([O,P,me],al=>{bt=Oi(bt,al," ")}),te&&el?te.createHTML(bt):bt},u.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Un(le),It=!0},u.clearConfig=function(){ne=null,It=!1},u.isValidAttribute=function(le,T,q){ne||Un({});const F=J(le),we=J(T);return Pa(F,we,q)},u.addHook=function(le,T){typeof T=="function"&&Di(L[le],T)},u.removeHook=function(le,T){if(T!==void 0){const q=lv(L[le],T);return q===-1?void 0:av(L[le],q,1)[0]}return _m(L[le])},u.removeHooks=function(le){L[le]=[]},u.removeAllHooks=function(){L=zm()},u}var Sv=ap();function xv({content:s,className:u="modal-description"}){const r=j.useMemo(()=>{try{const c=Ye.parse(s);return Sv.sanitize(c)}catch{return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}},[s]);return d.jsx("div",{className:u,dangerouslySetInnerHTML:{__html:r}})}const wr=15;function Tv({comments:s,showAll:u,onShowAll:r}){if(s.length===0)return d.jsx("div",{className:"empty-column",children:"No comments"});const c=s.length>wr&&!u,f=c?s.slice(-wr):s,p=Math.max(0,s.length-wr);return d.jsxs("div",{className:"modal-comments",children:[c&&d.jsxs("button",{className:"show-more-btn",onClick:r,children:["Show ",p," earlier comment",p===1?"":"s"]}),f.map((m,b)=>d.jsxs("div",{className:"comment",children:[d.jsxs("div",{className:"comment-header",children:[d.jsx("span",{className:"comment-author",children:m.agent_id||m.author||"Unknown"}),d.jsx("span",{children:Fa(m.timestamp)})]}),d.jsx("div",{className:"comment-text",children:m.text})]},b))]})}const Lr=15;function _v({checkpoints:s,showAll:u,onShowAll:r}){if(s.length===0)return d.jsx("div",{className:"empty-column",children:"No checkpoints"});const c=s.length>Lr&&!u,f=c?s.slice(-Lr):s,p=Math.max(0,s.length-Lr);return d.jsxs("div",{className:"modal-checkpoint-list",children:[c&&d.jsxs("button",{className:"show-more-btn",onClick:r,children:["Show ",p," earlier checkpoint",p===1?"":"s"]}),f.map((m,b)=>{const g=m.data&&Object.keys(m.data).length>0;return d.jsxs("div",{className:"modal-checkpoint-entry",children:[d.jsxs("div",{className:"modal-checkpoint-header",children:[d.jsx("span",{className:"modal-checkpoint-name",children:m.name}),d.jsx("span",{className:"modal-entry-time",children:Fa(m.timestamp)})]}),g&&d.jsx("pre",{className:"modal-checkpoint-data",children:JSON.stringify(m.data,null,2)})]},b)})]})}const Hr=20;function Av({events:s,showAll:u,onShowAll:r}){if(s.length===0)return d.jsx("div",{className:"empty-column",children:"No activity"});const c=s.length>Hr&&!u,p=[...c?s.slice(-Hr):s].reverse(),m=Math.max(0,s.length-Hr);return d.jsxs("div",{className:"modal-task-activity-list",children:[c&&d.jsxs("button",{className:"show-more-btn",onClick:r,children:["Show ",m," earlier event",m===1?"":"s"]}),p.map(b=>{const g=Om(b),y=g!=="system",x=Um(b);return d.jsxs("div",{className:"modal-task-activity-entry",children:[d.jsxs("div",{className:"modal-task-activity-header",children:[d.jsx("span",{className:"modal-task-activity-type",children:Dm(b.type)}),d.jsx("span",{className:"modal-entry-time",children:Fa(b.timestamp)})]}),y&&d.jsxs("div",{className:"modal-task-activity-author",children:["By ",g]}),x&&d.jsx("div",{className:"modal-task-activity-detail",children:x})]},b.event_id)})]})}function Ev({taskId:s,onClose:u}){const[r,c]=j.useState(null),[f,p]=j.useState([]),[m,b]=j.useState([]),[g,y]=j.useState([]),[x,E]=j.useState("comments"),[D,Y]=j.useState(!1),[X,re]=j.useState(!1),[ge,Te]=j.useState(!1),[je,de]=j.useState("idle"),[te,ue]=j.useState(!1),I=j.useCallback(async O=>{ue(!0),Y(!1),re(!1),Te(!1);try{const[P,me,Ee,M]=await Promise.all([_l(`/api/tasks/${encodeURIComponent(O)}`),_l(`/api/tasks/${encodeURIComponent(O)}/comments`),_l(`/api/tasks/${encodeURIComponent(O)}/checkpoints`),_l(`/api/tasks/${encodeURIComponent(O)}/events`)]);c(P.task),p(me.comments),b(Ee.checkpoints),y(M.events),me.comments.length>0?E("comments"):Ee.checkpoints.length>0?E("checkpoints"):E("activity")}catch{}finally{ue(!1)}},[]);j.useEffect(()=>{s?I(s):c(null)},[s,I]);const K=j.useCallback(async()=>{if(r){try{await navigator.clipboard.writeText(r.task_id),de("copied")}catch{de("failed")}setTimeout(()=>de("idle"),1500)}},[r]);if(!s)return null;const Q=r?.progress??0,ye=ka(r?.assignee),Ce=ye.length>0,L=f.length>0||m.length>0||g.length>0;return d.jsx("div",{className:"modal-overlay open",onClick:O=>{O.target===O.currentTarget&&u()},children:d.jsxs("div",{className:"modal",children:[d.jsxs("div",{className:"modal-header",children:[d.jsxs("div",{className:"modal-title-wrap",children:[d.jsx("span",{className:"modal-title",children:r?.title||"Loading..."}),d.jsxs("div",{className:"modal-task-id-row",children:[d.jsx("span",{children:"Task ID"}),d.jsx("span",{className:"modal-task-id-value",children:r?.task_id||"-"}),d.jsx("button",{type:"button",className:`modal-task-id-copy${je==="copied"?" copied":je==="failed"?" failed":""}`,disabled:!r,onClick:K,children:je==="copied"?"Copied":je==="failed"?"Copy failed":"Copy"})]})]}),d.jsx("button",{className:"modal-close",onClick:u,children:"×"})]}),d.jsx("div",{className:"modal-body",children:te&&!r?d.jsx("div",{className:"empty-column",children:"Loading..."}):r?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"modal-section",children:d.jsxs("div",{className:"modal-meta",children:[d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Status"}),d.jsx("div",{className:"modal-meta-value",children:r.status})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Progress"}),d.jsx("div",{className:"modal-meta-value",children:d.jsxs("span",{className:Q>=100?"modal-progress complete":"modal-progress",children:[Q,"%"]})})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Project"}),d.jsx("div",{className:"modal-meta-value",children:r.project})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Assignee"}),d.jsx("div",{className:"modal-meta-value",children:Ce?ye:d.jsx("span",{className:"modal-meta-fallback",children:"Unassigned"})})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Priority"}),d.jsx("div",{className:"modal-meta-value",children:r.priority})]}),d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Created"}),d.jsx("div",{className:"modal-meta-value",children:Fa(r.created_at)})]}),r.lease_until&&d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Lease Until"}),d.jsx("div",{className:"modal-meta-value",children:Fa(r.lease_until)})]}),r.due_at&&d.jsxs("div",{className:"modal-meta-item",children:[d.jsx("div",{className:"modal-meta-label",children:"Due Date"}),d.jsx("div",{className:"modal-meta-value",children:new Date(r.due_at).toLocaleDateString()})]})]})}),r.status==="in_progress"&&m.length===0&&r.claimed_at&&d.jsxs("div",{className:"task-modal-stale-warning",children:["⚠ Stale — claimed ",Gr(Date.now()-new Date(r.claimed_at).getTime())," ago with no checkpoints"]}),r.blocked_by&&r.blocked_by.length>0&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Blocked By"}),d.jsx("div",{className:"modal-blocked-list",children:r.blocked_by.map(O=>d.jsx("button",{type:"button",className:"modal-blocked-item",onClick:()=>I(O.task_id),children:O.title},O.task_id))})]}),r.description&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Description"}),d.jsx(xv,{content:r.description})]}),r.links&&r.links.length>0&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Links"}),d.jsx("div",{className:"modal-description",children:r.links.map((O,P)=>d.jsx("div",{children:d.jsx("a",{href:O,target:"_blank",rel:"noopener noreferrer",children:O})},P))})]}),r.tags&&r.tags.length>0&&d.jsxs("div",{className:"modal-section",children:[d.jsx("div",{className:"modal-section-title",children:"Tags"}),d.jsx("div",{className:"modal-tags",children:r.tags.map(O=>d.jsx("span",{className:"card-tag",style:{"--tag-color":Hm(O)},children:O},O))})]}),L&&d.jsxs("div",{className:"modal-section",children:[d.jsxs("div",{className:"modal-tabs",children:[d.jsxs("button",{className:`modal-tab${x==="comments"?" active":""}`,disabled:f.length===0,onClick:()=>E("comments"),children:["Comments",d.jsx("span",{className:"modal-tab-count",children:f.length})]}),d.jsxs("button",{className:`modal-tab${x==="checkpoints"?" active":""}`,disabled:m.length===0,onClick:()=>E("checkpoints"),children:["Checkpoints",d.jsx("span",{className:"modal-tab-count",children:m.length})]}),d.jsxs("button",{className:`modal-tab${x==="activity"?" active":""}`,disabled:g.length===0,onClick:()=>E("activity"),children:["Activity",d.jsx("span",{className:"modal-tab-count",children:g.length})]})]}),x==="comments"&&d.jsx(Tv,{comments:f,showAll:D,onShowAll:()=>Y(!0)}),x==="checkpoints"&&d.jsx(_v,{checkpoints:m,showAll:X,onShowAll:()=>re(!0)}),x==="activity"&&d.jsx(Av,{events:g,showAll:ge,onShowAll:()=>Te(!0)})]})]}):null})]})})}function Nv({open:s,events:u,assignees:r,assignee:c,onAssigneeChange:f,keyword:p,onKeywordChange:m,onClose:b,onEventClick:g}){return d.jsxs("div",{className:`activity-panel${s?" open":""}`,children:[d.jsxs("div",{className:"activity-header",children:[d.jsx("span",{className:"activity-title",children:"Activity"}),d.jsx("button",{className:"activity-close",onClick:b,children:"×"})]}),d.jsxs("div",{className:"activity-filters",children:[d.jsxs("select",{value:c,onChange:y=>f(y.target.value),children:[d.jsx("option",{value:"",children:"Any Agent"}),r.map(y=>d.jsxs("option",{value:y.name,children:[y.name," (",y.count,")"]},y.name))]}),d.jsx("input",{type:"search",placeholder:"Search title/description (3+ chars)",value:p,onChange:y=>m(y.target.value)})]}),d.jsx("div",{className:"activity-list",children:u.length===0?d.jsx("div",{className:"empty-column",children:"No recent activity"}):u.map(y=>{const x=Om(y),E=Um(y),D=E?`${E} by ${x}`:`by ${x}`;return d.jsxs("div",{className:"activity-item",onClick:()=>y.task_id&&g(y.task_id),children:[d.jsxs("div",{className:"activity-item-header",children:[d.jsx("span",{className:`activity-type ${y.type}`,children:Dm(y.type)}),d.jsx("span",{className:"activity-time",children:Fa(y.timestamp)})]}),d.jsx("div",{className:"activity-task",children:y.task_title||y.task_id.slice(0,8)}),D&&d.jsx("div",{className:"activity-detail",children:D})]},y.event_id)})})]})}function kv({state:s}){let u="connection-dot",r="Connecting...";return s==="live"?(u+=" live",r="Live"):(s==="reconnecting"||s==="error")&&(u+=" error",r=s==="reconnecting"?"Reconnecting...":"Sync error"),d.jsxs("div",{className:"connection-indicator",children:[d.jsx("div",{className:u}),d.jsx("span",{children:r})]})}function jv({tasks:s,emojiMap:u,showSubtasks:r,collapsedParents:c,activeTab:f,onTabChange:p,onToggleCollapse:m,onCardClick:b,searchQuery:g}){const y=Lm(s),x=g?"No matching tasks":"No tasks";return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"mobile-tabs",children:qi.map(E=>d.jsxs("div",{className:`mobile-tab${f===E?" active":""}`,onClick:()=>p(E),children:[Fr[E],d.jsx("span",{className:"mobile-tab-badge",children:(y[E]||[]).length})]},E))}),d.jsx("div",{className:"mobile-cards-container",children:qi.map(E=>{const D=y[E]||[];return d.jsx("div",{className:`mobile-cards${f===E?" active":""}`,"data-status":E,children:D.length===0?d.jsx("div",{className:"empty-column",children:x}):D.map(Y=>d.jsx(Bm,{task:Y,emojiInfo:u.get(Y.task_id),showSubtasks:r,isCollapsed:c.has(Y.task_id),onToggleCollapse:m,onClick:b},Y.task_id))},E)})})]})}function Mm(s){return s.trim().replace(/\s+/g," ").slice(0,120)}function zv(){const s=j.useMemo(()=>R0(),[]),u=j.useMemo(()=>O0(),[]),[r,c]=j.useState(u.view||s.activeView||"kanban"),[f,p]=j.useState(u.since||s.dateFilter||"3d"),[m,b]=j.useState(u.project??s.projectFilter??""),[g,y]=j.useState(u.assignee??s.assigneeFilter??""),[x,E]=j.useState(u.tag??s.tagFilter??""),[D,Y]=j.useState(u.q!==void 0?Mm(u.q):s.taskSearch||""),[X,re]=j.useState(u.subtasks!==void 0?u.subtasks!=="0":s.showSubtasks),[ge,Te]=j.useState(s.columnVisibility||[...qi]),[je,de]=j.useState(()=>new Set(s.collapsedParents||[])),[te,ue]=j.useState(u.tab||s.activeTab||"ready"),[I,K]=j.useState(u.activity==="1"),[Q,ye]=j.useState(u.activityAssignee??s.activityAssigneeFilter??""),[Ce,L]=j.useState(u.activityQ??s.activityKeywordFilter??""),[O,P]=j.useState(u.task??null),[me,Ee]=j.useState(u.selectedAgent??null),[M,G]=j.useState(!1),[ee,Se]=j.useState(!1),[ve,S]=j.useState("connecting"),[U,C]=j.useState(s.railCollapsed),[Z,$]=j.useState(null),ce=j.useMemo(()=>{if(u.month){const V=/^(\d{4})-(0[1-9]|1[0-2])$/.exec(u.month);if(V)return{year:Number(V[1]),month:Number(V[2])-1}}return null},[u.month]),[oe,Le]=j.useState(ce?.year??new Date().getFullYear()),[Ue,nt]=j.useState(ce?.month??new Date().getMonth()),pt=r==="calendar"?`${oe}-${String(Ue+1).padStart(2,"0")}`:void 0,{tasks:He,refresh:Nt}=_0({since:pt?void 0:f,project:m||void 0,dueMonth:pt,tag:x||void 0}),{events:it,refresh:vt}=A0(),{stats:It,refresh:Al}=E0(),kt=j.useCallback(()=>{Nt(),vt(),Al()},[Nt,vt,Al]),[Pt,el]=j.useState(0);j0(()=>{S("live"),kt(),el(V=>V+1)});const{results:Gt,total:ja}=C0(D),El=D.trim().length>=2,st=j.useCallback(()=>{D0({dateFilter:f,projectFilter:m,assigneeFilter:g,activityAssigneeFilter:Q,activityKeywordFilter:Ce,taskSearch:D,columnVisibility:ge,showSubtasks:X,collapsedParents:Array.from(je),activeView:r,tagFilter:x,activeTab:te,railCollapsed:U})},[f,m,g,x,Q,Ce,D,ge,X,je,r,te,U]),Nl=j.useCallback(()=>{U0({view:r,since:f,calendarYear:oe,calendarMonth:Ue,project:m,assignee:g,searchQuery:D,showSubtasks:X,activeTab:te,tag:x,activityOpen:I,activityAssignee:Q,activityKeyword:Ce,selectedTaskId:O,selectedAgent:me})},[r,f,oe,Ue,m,g,D,X,te,x,I,Q,Ce,O,me]);j.useEffect(()=>{st(),Nl()},[st,Nl]);const Xt=j.useMemo(()=>El?new Set(Gt.map(V=>V.task_id)):null,[El,Gt]),At=j.useMemo(()=>{let V=X?He:He.filter(J=>!J.parent_id);if(Xt&&(V=V.filter(J=>Xt.has(J.task_id))),g&&(V=V.filter(J=>ka(J.assignee)===g)),X){const J=new Set(V.map(ne=>ne.task_id));V=V.filter(ne=>!ne.parent_id||!J.has(ne.parent_id)?!0:!je.has(ne.parent_id))}return V},[He,X,g,je,Xt]),kl=j.useMemo(()=>El?ja:0,[El,ja]),za=j.useMemo(()=>L0(He),[He]),Ma=j.useMemo(()=>{let V=X?He:He.filter(We=>!We.parent_id);const J=new Set(ge);V=V.filter(We=>J.has(Yr(We)));const ne=new Map;for(const We of V){const gt=ka(We.assignee);gt&&ne.set(gt,(ne.get(gt)??0)+1)}return Array.from(ne.entries()).sort(([We],[gt])=>We.localeCompare(gt,void 0,{sensitivity:"base"})).map(([We,gt])=>({name:We,count:gt}))},[He,X,ge]),Ca=j.useMemo(()=>{const V=new Map;for(const J of He)if(J.tags)for(const ne of J.tags)V.set(ne,(V.get(ne)??0)+1);return Array.from(V.entries()).sort(([J],[ne])=>J.localeCompare(ne)).map(([J,ne])=>({name:J,count:ne}))},[He]),Ul=j.useMemo(()=>{if(El)return new Set(Gt.map(ne=>ne.task_id));let V=X?He:He.filter(ne=>!ne.parent_id);const J=new Set(ge);return V=V.filter(ne=>J.has(Yr(ne))),new Set(V.map(ne=>ne.task_id))},[He,X,ge,El,Gt]),tl=j.useMemo(()=>{const V=Ce.trim().toLowerCase(),J=V.length>=3?V:"";return it.filter(ne=>{if(!Ul.has(ne.task_id))return!1;if(J){const We=typeof ne.task_title=="string"?ne.task_title.toLowerCase():"",gt=typeof ne.task_description=="string"?ne.task_description.toLowerCase():"";if(!We.includes(J)&&!gt.includes(J))return!1}return!(Q&&(ka(ne.task_assignee)||ka(ne.data?.assignee))!==Q)})},[it,Ul,Q,Ce]),ut=j.useMemo(()=>{const V=new Map;for(const J of it){if(!Ul.has(J.task_id))continue;const ne=ka(J.task_assignee)||ka(J.data?.assignee);ne&&(V.has(ne)||V.set(ne,new Set),V.get(ne).add(J.task_id))}return Array.from(V.entries()).sort(([J],[ne])=>J.localeCompare(ne,void 0,{sensitivity:"base"})).map(([J,ne])=>({name:J,count:ne.size}))},[it,Ul]),$e=j.useMemo(()=>He.filter(V=>(V.subtask_total??0)>0).map(V=>V.task_id),[He]),Pe=j.useMemo(()=>$e.filter(V=>je.has(V)).length,[$e,je]),ta=j.useCallback(V=>{de(J=>{const ne=new Set(J);return ne.has(V)?ne.delete(V):ne.add(V),ne})},[]),Ra=j.useCallback(()=>{de(new Set($e))},[$e]),On=j.useCallback(()=>{de(new Set)},[]),pl=j.useCallback(V=>{c(V),kt()},[kt]),gl=j.useCallback(V=>{p(V)},[]),la=j.useCallback(V=>{b(V)},[]),jt=j.useCallback((V,J)=>{Le(V),nt(J)},[]);j.useEffect(()=>{function V(J){if(J.key==="Escape"){if(O){P(null);return}if(I){K(!1);return}if(M){G(!1);return}return}const ne=J.target;if(!(ne?.closest("input, textarea, select")||ne?.isContentEditable)){if(J.key==="/"){J.preventDefault();const We=document.getElementById("taskSearchInput");We?.focus(),We?.select();return}if(J.key==="?"){J.preventDefault(),G(!0);return}J.key.toLowerCase()==="a"&&(J.preventDefault(),K(We=>!We))}}return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[O,I,M]);const aa=It?.projects??[];return d.jsxs("div",{className:`app${U?" rail-collapsed":""}`,children:[d.jsx(G0,{view:r,onViewChange:pl,collapsed:U,onToggleCollapse:()=>C(V=>!V)}),d.jsxs("div",{className:"main-area",children:[d.jsxs("header",{className:"top-bar",children:[r==="agents"&&Z&&d.jsxs("span",{className:"agent-ops-fleet-label",children:[d.jsx("span",{className:"agent-ops-fleet-dot",style:{background:"var(--status-in-progress)"}}),Z.active," active",d.jsx("span",{className:"agent-ops-fleet-separator",children:"·"}),d.jsx("span",{className:"agent-ops-fleet-dot",style:{background:"var(--status-backlog)"}}),Z.idle," idle"]}),d.jsx(X0,{since:f,onSinceChange:gl,projects:aa,project:m,onProjectChange:la,assignees:Ma,assignee:g,onAssigneeChange:y,tags:Ca,tag:x,onTagChange:E,searchQuery:D,onSearchChange:V=>Y(Mm(V)),searchMatchCount:kl,showDateFilter:r!=="calendar",mobileFiltersOpen:ee,view:r,columnVisibility:ge,onColumnVisibilityChange:Te,showSubtasks:X,onShowSubtasksChange:re,parentCount:$e.length,collapsedCount:Pe,onCollapseAll:Ra,onExpandAll:On,onShowShortcuts:()=>G(!0)}),d.jsxs("div",{className:"top-bar-right",children:[d.jsx(kv,{state:ve}),d.jsx("button",{className:"activity-btn",onClick:()=>K(!0),children:"Activity"})]})]}),r==="kanban"&&d.jsxs(d.Fragment,{children:[d.jsx(jv,{tasks:At,emojiMap:za,showSubtasks:X,collapsedParents:je,activeTab:te,onTabChange:ue,onToggleCollapse:ta,onCardClick:P,searchQuery:D}),d.jsx(Z0,{tasks:At,emojiMap:za,showSubtasks:X,collapsedParents:je,columnVisibility:ge,searchQuery:D,onToggleCollapse:ta,onCardClick:P})]}),r==="calendar"&&d.jsx(V0,{tasks:He,year:oe,month:Ue,onNavigate:jt,onTaskClick:P}),r==="graph"&&d.jsx(W0,{tasks:He,onTaskClick:P}),r==="agents"&&d.jsx(ry,{selectedAgent:me,onSelectAgent:Ee,since:f,project:m,refreshKey:Pt,onAgentCounts:(V,J)=>$({active:V,idle:J}),onTaskClick:P})]}),O&&d.jsx(Ev,{taskId:O,onClose:()=>P(null)}),d.jsx(Nv,{open:I,events:tl,assignees:ut,assignee:Q,onAssigneeChange:ye,keyword:Ce,onKeywordChange:L,onClose:()=>K(!1),onEventClick:P}),M&&d.jsx("div",{className:"shortcuts-modal-overlay open",onClick:V=>{V.target===V.currentTarget&&G(!1)},children:d.jsxs("div",{className:"shortcuts-modal",children:[d.jsxs("div",{className:"shortcuts-header",children:[d.jsx("span",{className:"shortcuts-title",children:"Keyboard Shortcuts"}),d.jsx("button",{type:"button",className:"shortcuts-close",onClick:()=>G(!1),children:"×"})]}),d.jsxs("div",{className:"shortcuts-body",children:[d.jsxs("div",{className:"shortcuts-list",children:[d.jsx("span",{className:"shortcut-key",children:"/"}),d.jsx("span",{className:"shortcut-desc",children:"Focus task search"}),d.jsx("span",{className:"shortcut-key",children:"a"}),d.jsx("span",{className:"shortcut-desc",children:"Toggle activity panel"}),d.jsx("span",{className:"shortcut-key",children:"?"}),d.jsx("span",{className:"shortcut-desc",children:"Open this shortcuts dialog"}),d.jsx("span",{className:"shortcut-key",children:"Esc"}),d.jsx("span",{className:"shortcut-desc",children:"Close open dialogs/panels"})]}),d.jsx("div",{className:"shortcuts-note",children:"Shortcuts are disabled while typing in inputs."})]})]})})]})}x0.createRoot(document.getElementById("root")).render(d.jsx(j.StrictMode,{children:d.jsx(zv,{})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(()=>{});