gossipcat 0.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.
- package/LICENSE +21 -0
- package/README.md +720 -0
- package/dist-dashboard/assets/banner.png +0 -0
- package/dist-dashboard/assets/gossip-mini.png +0 -0
- package/dist-dashboard/assets/gossipcat.png +0 -0
- package/dist-dashboard/assets/index-BvqFkH-m.css +1 -0
- package/dist-dashboard/assets/index-Dsv-K6u_.js +65 -0
- package/dist-dashboard/favicon.png +0 -0
- package/dist-dashboard/index.html +31 -0
- package/dist-mcp/default-rules/gossipcat-rules.md +135 -0
- package/dist-mcp/default-skills/api-design.md +32 -0
- package/dist-mcp/default-skills/catalog.json +101 -0
- package/dist-mcp/default-skills/ci-cd.md +32 -0
- package/dist-mcp/default-skills/code-review.md +40 -0
- package/dist-mcp/default-skills/debugging.md +42 -0
- package/dist-mcp/default-skills/documentation.md +31 -0
- package/dist-mcp/default-skills/frontend.md +32 -0
- package/dist-mcp/default-skills/implementation.md +39 -0
- package/dist-mcp/default-skills/infrastructure.md +32 -0
- package/dist-mcp/default-skills/memory-retrieval.md +43 -0
- package/dist-mcp/default-skills/research.md +44 -0
- package/dist-mcp/default-skills/security-audit.md +47 -0
- package/dist-mcp/default-skills/system-design.md +42 -0
- package/dist-mcp/default-skills/testing.md +38 -0
- package/dist-mcp/default-skills/typescript.md +32 -0
- package/dist-mcp/default-skills/ui-design.md +33 -0
- package/dist-mcp/default-skills/verification.md +49 -0
- package/dist-mcp/mcp-server.js +40878 -0
- package/package.json +50 -0
- package/scripts/postinstall.js +63 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var z0=Object.defineProperty;var A0=(f,s,m)=>s in f?z0(f,s,{enumerable:!0,configurable:!0,writable:!0,value:m}):f[s]=m;var ke=(f,s,m)=>A0(f,typeof s!="symbol"?s+"":s,m);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))r(g);new MutationObserver(g=>{for(const T of g)if(T.type==="childList")for(const E of T.addedNodes)E.tagName==="LINK"&&E.rel==="modulepreload"&&r(E)}).observe(document,{childList:!0,subtree:!0});function m(g){const T={};return g.integrity&&(T.integrity=g.integrity),g.referrerPolicy&&(T.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?T.credentials="include":g.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function r(g){if(g.ep)return;g.ep=!0;const T=m(g);fetch(g.href,T)}})();var hs={exports:{}},Mn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ud;function D0(){if(Ud)return Mn;Ud=1;var f=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function m(r,g,T){var E=null;if(T!==void 0&&(E=""+T),g.key!==void 0&&(E=""+g.key),"key"in g){T={};for(var _ in g)_!=="key"&&(T[_]=g[_])}else T=g;return g=T.ref,{$$typeof:f,type:r,key:E,ref:g!==void 0?g:null,props:T}}return Mn.Fragment=s,Mn.jsx=m,Mn.jsxs=m,Mn}var Rd;function O0(){return Rd||(Rd=1,hs.exports=D0()),hs.exports}var i=O0(),xs={exports:{}},oe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var qd;function C0(){if(qd)return oe;qd=1;var f=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),L=Symbol.iterator;function se(h){return h===null||typeof h!="object"?null:(h=L&&h[L]||h["@@iterator"],typeof h=="function"?h:null)}var fe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},me=Object.assign,Q={};function J(h,O,H){this.props=h,this.context=O,this.refs=Q,this.updater=H||fe}J.prototype.isReactComponent={},J.prototype.setState=function(h,O){if(typeof h!="object"&&typeof h!="function"&&h!=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,h,O,"setState")},J.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function he(){}he.prototype=J.prototype;function w(h,O,H){this.props=h,this.context=O,this.refs=Q,this.updater=H||fe}var ie=w.prototype=new he;ie.constructor=w,me(ie,J.prototype),ie.isPureReactComponent=!0;var z=Array.isArray;function te(){}var Y={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function G(h,O,H){var V=H.ref;return{$$typeof:f,type:h,key:O,ref:V!==void 0?V:null,props:H}}function le(h,O){return G(h.type,O,h.props)}function ce(h){return typeof h=="object"&&h!==null&&h.$$typeof===f}function X(h){var O={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(H){return O[H]})}var W=/\/+/g;function q(h,O){return typeof h=="object"&&h!==null&&h.key!=null?X(""+h.key):O.toString(36)}function I(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(te,te):(h.status="pending",h.then(function(O){h.status==="pending"&&(h.status="fulfilled",h.value=O)},function(O){h.status==="pending"&&(h.status="rejected",h.reason=O)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function v(h,O,H,V,ne){var xe=typeof h;(xe==="undefined"||xe==="boolean")&&(h=null);var Ne=!1;if(h===null)Ne=!0;else switch(xe){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(h.$$typeof){case f:case s:Ne=!0;break;case U:return Ne=h._init,v(Ne(h._payload),O,H,V,ne)}}if(Ne)return ne=ne(h),Ne=V===""?"."+q(h,0):V,z(ne)?(H="",Ne!=null&&(H=Ne.replace(W,"$&/")+"/"),v(ne,O,H,"",function(Ca){return Ca})):ne!=null&&(ce(ne)&&(ne=le(ne,H+(ne.key==null||h&&h.key===ne.key?"":(""+ne.key).replace(W,"$&/")+"/")+Ne)),O.push(ne)),1;Ne=0;var ee=V===""?".":V+":";if(z(h))for(var Oe=0;Oe<h.length;Oe++)V=h[Oe],xe=ee+q(V,Oe),Ne+=v(V,O,H,xe,ne);else if(Oe=se(h),typeof Oe=="function")for(h=Oe.call(h),Oe=0;!(V=h.next()).done;)V=V.value,xe=ee+q(V,Oe++),Ne+=v(V,O,H,xe,ne);else if(xe==="object"){if(typeof h.then=="function")return v(I(h),O,H,V,ne);throw O=String(h),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function D(h,O,H){if(h==null)return h;var V=[],ne=0;return v(h,V,"","",function(xe){return O.call(H,xe,ne++)}),V}function Z(h){if(h._status===-1){var O=h._result;O=O(),O.then(function(H){(h._status===0||h._status===-1)&&(h._status=1,h._result=H)},function(H){(h._status===0||h._status===-1)&&(h._status=2,h._result=H)}),h._status===-1&&(h._status=0,h._result=O)}if(h._status===1)return h._result.default;throw h._result}var ae=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},ge={map:D,forEach:function(h,O,H){D(h,function(){O.apply(this,arguments)},H)},count:function(h){var O=0;return D(h,function(){O++}),O},toArray:function(h){return D(h,function(O){return O})||[]},only:function(h){if(!ce(h))throw Error("React.Children.only expected to receive a single React element child.");return h}};return oe.Activity=B,oe.Children=ge,oe.Component=J,oe.Fragment=m,oe.Profiler=g,oe.PureComponent=w,oe.StrictMode=r,oe.Suspense=N,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,oe.__COMPILER_RUNTIME={__proto__:null,c:function(h){return Y.H.useMemoCache(h)}},oe.cache=function(h){return function(){return h.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(h,O,H){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var V=me({},h.props),ne=h.key;if(O!=null)for(xe in O.key!==void 0&&(ne=""+O.key),O)!$.call(O,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&O.ref===void 0||(V[xe]=O[xe]);var xe=arguments.length-2;if(xe===1)V.children=H;else if(1<xe){for(var Ne=Array(xe),ee=0;ee<xe;ee++)Ne[ee]=arguments[ee+2];V.children=Ne}return G(h.type,ne,V)},oe.createContext=function(h){return h={$$typeof:E,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:T,_context:h},h},oe.createElement=function(h,O,H){var V,ne={},xe=null;if(O!=null)for(V in O.key!==void 0&&(xe=""+O.key),O)$.call(O,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(ne[V]=O[V]);var Ne=arguments.length-2;if(Ne===1)ne.children=H;else if(1<Ne){for(var ee=Array(Ne),Oe=0;Oe<Ne;Oe++)ee[Oe]=arguments[Oe+2];ne.children=ee}if(h&&h.defaultProps)for(V in Ne=h.defaultProps,Ne)ne[V]===void 0&&(ne[V]=Ne[V]);return G(h,xe,ne)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(h){return{$$typeof:_,render:h}},oe.isValidElement=ce,oe.lazy=function(h){return{$$typeof:U,_payload:{_status:-1,_result:h},_init:Z}},oe.memo=function(h,O){return{$$typeof:p,type:h,compare:O===void 0?null:O}},oe.startTransition=function(h){var O=Y.T,H={};Y.T=H;try{var V=h(),ne=Y.S;ne!==null&&ne(H,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(te,ae)}catch(xe){ae(xe)}finally{O!==null&&H.types!==null&&(O.types=H.types),Y.T=O}},oe.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},oe.use=function(h){return Y.H.use(h)},oe.useActionState=function(h,O,H){return Y.H.useActionState(h,O,H)},oe.useCallback=function(h,O){return Y.H.useCallback(h,O)},oe.useContext=function(h){return Y.H.useContext(h)},oe.useDebugValue=function(){},oe.useDeferredValue=function(h,O){return Y.H.useDeferredValue(h,O)},oe.useEffect=function(h,O){return Y.H.useEffect(h,O)},oe.useEffectEvent=function(h){return Y.H.useEffectEvent(h)},oe.useId=function(){return Y.H.useId()},oe.useImperativeHandle=function(h,O,H){return Y.H.useImperativeHandle(h,O,H)},oe.useInsertionEffect=function(h,O){return Y.H.useInsertionEffect(h,O)},oe.useLayoutEffect=function(h,O){return Y.H.useLayoutEffect(h,O)},oe.useMemo=function(h,O){return Y.H.useMemo(h,O)},oe.useOptimistic=function(h,O){return Y.H.useOptimistic(h,O)},oe.useReducer=function(h,O,H){return Y.H.useReducer(h,O,H)},oe.useRef=function(h){return Y.H.useRef(h)},oe.useState=function(h){return Y.H.useState(h)},oe.useSyncExternalStore=function(h,O,H){return Y.H.useSyncExternalStore(h,O,H)},oe.useTransition=function(){return Y.H.useTransition()},oe.version="19.2.4",oe}var Hd;function Es(){return Hd||(Hd=1,xs.exports=C0()),xs.exports}var K=Es(),gs={exports:{}},En={},ps={exports:{}},bs={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Bd;function U0(){return Bd||(Bd=1,(function(f){function s(v,D){var Z=v.length;v.push(D);e:for(;0<Z;){var ae=Z-1>>>1,ge=v[ae];if(0<g(ge,D))v[ae]=D,v[Z]=ge,Z=ae;else break e}}function m(v){return v.length===0?null:v[0]}function r(v){if(v.length===0)return null;var D=v[0],Z=v.pop();if(Z!==D){v[0]=Z;e:for(var ae=0,ge=v.length,h=ge>>>1;ae<h;){var O=2*(ae+1)-1,H=v[O],V=O+1,ne=v[V];if(0>g(H,Z))V<ge&&0>g(ne,H)?(v[ae]=ne,v[V]=Z,ae=V):(v[ae]=H,v[O]=Z,ae=O);else if(V<ge&&0>g(ne,Z))v[ae]=ne,v[V]=Z,ae=V;else break e}}return D}function g(v,D){var Z=v.sortIndex-D.sortIndex;return Z!==0?Z:v.id-D.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;f.unstable_now=function(){return T.now()}}else{var E=Date,_=E.now();f.unstable_now=function(){return E.now()-_}}var N=[],p=[],U=1,B=null,L=3,se=!1,fe=!1,me=!1,Q=!1,J=typeof setTimeout=="function"?setTimeout:null,he=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function ie(v){for(var D=m(p);D!==null;){if(D.callback===null)r(p);else if(D.startTime<=v)r(p),D.sortIndex=D.expirationTime,s(N,D);else break;D=m(p)}}function z(v){if(me=!1,ie(v),!fe)if(m(N)!==null)fe=!0,te||(te=!0,X());else{var D=m(p);D!==null&&I(z,D.startTime-v)}}var te=!1,Y=-1,$=5,G=-1;function le(){return Q?!0:!(f.unstable_now()-G<$)}function ce(){if(Q=!1,te){var v=f.unstable_now();G=v;var D=!0;try{e:{fe=!1,me&&(me=!1,he(Y),Y=-1),se=!0;var Z=L;try{t:{for(ie(v),B=m(N);B!==null&&!(B.expirationTime>v&&le());){var ae=B.callback;if(typeof ae=="function"){B.callback=null,L=B.priorityLevel;var ge=ae(B.expirationTime<=v);if(v=f.unstable_now(),typeof ge=="function"){B.callback=ge,ie(v),D=!0;break t}B===m(N)&&r(N),ie(v)}else r(N);B=m(N)}if(B!==null)D=!0;else{var h=m(p);h!==null&&I(z,h.startTime-v),D=!1}}break e}finally{B=null,L=Z,se=!1}D=void 0}}finally{D?X():te=!1}}}var X;if(typeof w=="function")X=function(){w(ce)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,q=W.port2;W.port1.onmessage=ce,X=function(){q.postMessage(null)}}else X=function(){J(ce,0)};function I(v,D){Y=J(function(){v(f.unstable_now())},D)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(v){v.callback=null},f.unstable_forceFrameRate=function(v){0>v||125<v?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<v?Math.floor(1e3/v):5},f.unstable_getCurrentPriorityLevel=function(){return L},f.unstable_next=function(v){switch(L){case 1:case 2:case 3:var D=3;break;default:D=L}var Z=L;L=D;try{return v()}finally{L=Z}},f.unstable_requestPaint=function(){Q=!0},f.unstable_runWithPriority=function(v,D){switch(v){case 1:case 2:case 3:case 4:case 5:break;default:v=3}var Z=L;L=v;try{return D()}finally{L=Z}},f.unstable_scheduleCallback=function(v,D,Z){var ae=f.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ae+Z:ae):Z=ae,v){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=Z+ge,v={id:U++,callback:D,priorityLevel:v,startTime:Z,expirationTime:ge,sortIndex:-1},Z>ae?(v.sortIndex=Z,s(p,v),m(N)===null&&v===m(p)&&(me?(he(Y),Y=-1):me=!0,I(z,Z-ae))):(v.sortIndex=ge,s(N,v),fe||se||(fe=!0,te||(te=!0,X()))),v},f.unstable_shouldYield=le,f.unstable_wrapCallback=function(v){var D=L;return function(){var Z=L;L=D;try{return v.apply(this,arguments)}finally{L=Z}}}})(bs)),bs}var Yd;function R0(){return Yd||(Yd=1,ps.exports=U0()),ps.exports}var vs={exports:{}},Pe={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Gd;function q0(){if(Gd)return Pe;Gd=1;var f=Es();function s(N){var p="https://react.dev/errors/"+N;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var U=2;U<arguments.length;U++)p+="&args[]="+encodeURIComponent(arguments[U])}return"Minified React error #"+N+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(){}var r={d:{f:m,r:function(){throw Error(s(522))},D:m,C:m,L:m,m,X:m,S:m,M:m},p:0,findDOMNode:null},g=Symbol.for("react.portal");function T(N,p,U){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:B==null?null:""+B,children:N,containerInfo:p,implementation:U}}var E=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(N,p){if(N==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Pe.createPortal=function(N,p){var U=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(s(299));return T(N,p,null,U)},Pe.flushSync=function(N){var p=E.T,U=r.p;try{if(E.T=null,r.p=2,N)return N()}finally{E.T=p,r.p=U,r.d.f()}},Pe.preconnect=function(N,p){typeof N=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(N,p))},Pe.prefetchDNS=function(N){typeof N=="string"&&r.d.D(N)},Pe.preinit=function(N,p){if(typeof N=="string"&&p&&typeof p.as=="string"){var U=p.as,B=_(U,p.crossOrigin),L=typeof p.integrity=="string"?p.integrity:void 0,se=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;U==="style"?r.d.S(N,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:B,integrity:L,fetchPriority:se}):U==="script"&&r.d.X(N,{crossOrigin:B,integrity:L,fetchPriority:se,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Pe.preinitModule=function(N,p){if(typeof N=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var U=_(p.as,p.crossOrigin);r.d.M(N,{crossOrigin:U,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(N)},Pe.preload=function(N,p){if(typeof N=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var U=p.as,B=_(U,p.crossOrigin);r.d.L(N,U,{crossOrigin:B,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Pe.preloadModule=function(N,p){if(typeof N=="string")if(p){var U=_(p.as,p.crossOrigin);r.d.m(N,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:U,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(N)},Pe.requestFormReset=function(N){r.d.r(N)},Pe.unstable_batchedUpdates=function(N,p){return N(p)},Pe.useFormState=function(N,p,U){return E.H.useFormState(N,p,U)},Pe.useFormStatus=function(){return E.H.useHostTransitionStatus()},Pe.version="19.2.4",Pe}var wd;function H0(){if(wd)return vs.exports;wd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(s){console.error(s)}}return f(),vs.exports=q0(),vs.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Xd;function B0(){if(Xd)return En;Xd=1;var f=R0(),s=Es(),m=H0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function T(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 E(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 _(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 N(e){if(T(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=T(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return N(n),e;if(u===a)return N(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,o=n.child;o;){if(o===l){c=!0,l=n,a=u;break}if(o===a){c=!0,a=n,l=u;break}o=o.sibling}if(!c){for(o=u.child;o;){if(o===l){c=!0,l=u,a=n;break}if(o===a){c=!0,a=u,l=n;break}o=o.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function U(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=U(e),t!==null)return t;e=e.sibling}return null}var B=Object.assign,L=Symbol.for("react.element"),se=Symbol.for("react.transitional.element"),fe=Symbol.for("react.portal"),me=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),he=Symbol.for("react.consumer"),w=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case me:return"Fragment";case J:return"Profiler";case Q:return"StrictMode";case z:return"Suspense";case te:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case fe:return"Portal";case w:return e.displayName||"Context";case he:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:q(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return q(e(t))}catch{}}return null}var I=Array.isArray,v=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ae=[],ge=-1;function h(e){return{current:e}}function O(e){0>ge||(e.current=ae[ge],ae[ge]=null,ge--)}function H(e,t){ge++,ae[ge]=e.current,e.current=t}var V=h(null),ne=h(null),xe=h(null),Ne=h(null);function ee(e,t){switch(H(xe,t),H(ne,e),H(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ld(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ld(t),e=ad(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(V),H(V,e)}function Oe(){O(V),O(ne),O(xe)}function Ca(e){e.memoizedState!==null&&H(Ne,e);var t=V.current,l=ad(t,e.type);t!==l&&(H(ne,e),H(V,l))}function zn(e){ne.current===e&&(O(V),O(ne)),Ne.current===e&&(O(Ne),Nn._currentValue=Z)}var Wu,Ds;function zl(e){if(Wu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Wu=t&&t[1]||"",Ds=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Wu+e+Ds}var Fu=!1;function Iu(e,t){if(!e||Fu)return"";Fu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(M){var j=M}Reflect.construct(e,[],R)}else{try{R.call()}catch(M){j=M}e.call(R.prototype)}}else{try{throw Error()}catch(M){j=M}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(M){if(M&&j&&typeof M.stack=="string")return[M.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],o=u[1];if(c&&o){var d=c.split(`
|
|
44
|
+
`),S=o.split(`
|
|
45
|
+
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===S.length)for(a=d.length-1,n=S.length-1;1<=a&&0<=n&&d[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==S[n]){var A=`
|
|
46
|
+
`+d[a].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=a&&0<=n);break}}}finally{Fu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?zl(l):""}function um(e,t){switch(e.tag){case 26:case 27:case 5:return zl(e.type);case 16:return zl("Lazy");case 13:return e.child!==t&&t!==null?zl("Suspense Fallback"):zl("Suspense");case 19:return zl("SuspenseList");case 0:case 15:return Iu(e.type,!1);case 11:return Iu(e.type.render,!1);case 1:return Iu(e.type,!0);case 31:return zl("Activity");default:return""}}function Os(e){try{var t="",l=null;do t+=um(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Pu=Object.prototype.hasOwnProperty,ei=f.unstable_scheduleCallback,ti=f.unstable_cancelCallback,im=f.unstable_shouldYield,cm=f.unstable_requestPaint,ft=f.unstable_now,sm=f.unstable_getCurrentPriorityLevel,Cs=f.unstable_ImmediatePriority,Us=f.unstable_UserBlockingPriority,An=f.unstable_NormalPriority,om=f.unstable_LowPriority,Rs=f.unstable_IdlePriority,fm=f.log,rm=f.unstable_setDisableYieldValue,Ua=null,rt=null;function al(e){if(typeof fm=="function"&&rm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ua,e)}catch{}}var dt=Math.clz32?Math.clz32:hm,dm=Math.log,mm=Math.LN2;function hm(e){return e>>>=0,e===0?32:31-(dm(e)/mm|0)|0}var Dn=256,On=262144,Cn=4194304;function Al(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 Un(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=Al(a):(c&=o,c!==0?n=Al(c):l||(l=o&~e,l!==0&&(n=Al(l))))):(o=a&~u,o!==0?n=Al(o):c!==0?n=Al(c):l||(l=a&~e,l!==0&&(n=Al(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ra(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xm(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 qs(){var e=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),e}function li(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gm(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,d=e.expirationTimes,S=e.hiddenUpdates;for(l=c&~l;0<l;){var A=31-dt(l),R=1<<A;o[A]=0,d[A]=-1;var j=S[A];if(j!==null)for(S[A]=null,A=0;A<j.length;A++){var M=j[A];M!==null&&(M.lane&=-536870913)}l&=~R}a!==0&&Hs(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function Hs(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Bs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ys(e,t){var l=t&-t;return l=(l&42)!==0?1:ai(l),(l&(e.suspendedLanes|t))!==0?0:l}function ai(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 ni(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gs(){var e=D.p;return e!==0?e:(e=window.event,e===void 0?32:Md(e.type))}function ws(e,t){var l=D.p;try{return D.p=e,t()}finally{D.p=l}}var nl=Math.random().toString(36).slice(2),Je="__reactFiber$"+nl,at="__reactProps$"+nl,Jl="__reactContainer$"+nl,ui="__reactEvents$"+nl,pm="__reactListeners$"+nl,bm="__reactHandles$"+nl,Xs="__reactResources$"+nl,Ha="__reactMarker$"+nl;function ii(e){delete e[Je],delete e[at],delete e[ui],delete e[pm],delete e[bm]}function $l(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Jl]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=fd(e);e!==null;){if(l=e[Je])return l;e=fd(e)}return t}e=l,l=e.parentNode}return null}function Wl(e){if(e=e[Je]||e[Jl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ba(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Fl(e){var t=e[Xs];return t||(t=e[Xs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[Ha]=!0}var Ls=new Set,Qs={};function Dl(e,t){Il(e,t),Il(e+"Capture",t)}function Il(e,t){for(Qs[e]=t,e=0;e<t.length;e++)Ls.add(t[e])}var vm=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]*$"),Zs={},Vs={};function ym(e){return Pu.call(Vs,e)?!0:Pu.call(Zs,e)?!1:vm.test(e)?Vs[e]=!0:(Zs[e]=!0,!1)}function Rn(e,t,l){if(ym(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 qn(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 Gt(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 yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ks(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ci(e){if(!e._valueTracker){var t=Ks(e)?"checked":"value";e._valueTracker=Sm(e,t,""+e[t])}}function ks(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ks(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Hn(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 Nm=/[\n"\\]/g;function St(e){return e.replace(Nm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function si(e,t,l,a,n,u,c,o){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?oi(e,c,yt(t)):l!=null?oi(e,c,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+yt(o):e.removeAttribute("name")}function Js(e,t,l,a,n,u,c,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ci(e);return}l=l!=null?""+yt(l):"",t=t!=null?""+yt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),ci(e)}function oi(e,t,l){t==="number"&&Hn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Pl(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=""+yt(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 $s(e,t,l){if(t!=null&&(t=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(l):""}function Ws(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(I(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=yt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),ci(e)}function ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var jm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fs(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||jm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Is(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Fs(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Fs(e,u,t[u])}function fi(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 Tm=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"]]),_m=/^[\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 Bn(e){return _m.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wt(){}var ri=null;function di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,la=null;function Ps(e){var t=Wl(e);if(t&&(e=t.stateNode)){var l=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(si(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="'+St(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[at]||null;if(!n)throw Error(r(90));si(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&&ks(a)}break e;case"textarea":$s(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Pl(e,!!l.multiple,t,!1)}}}var mi=!1;function eo(e,t,l){if(mi)return e(t,l);mi=!0;try{var a=e(t);return a}finally{if(mi=!1,(ta!==null||la!==null)&&(Tu(),ta&&(t=ta,e=la,la=ta=null,Ps(t),e)))for(t=0;t<e.length;t++)Ps(e[t])}}function Ya(e,t){var l=e.stateNode;if(l===null)return null;var a=l[at]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hi=!1;if(Xt)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){hi=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{hi=!1}var ul=null,xi=null,Yn=null;function to(){if(Yn)return Yn;var e,t=xi,l=t.length,a,n="value"in ul?ul.value:ul.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return Yn=n.slice(e,1<a?1-a:void 0)}function Gn(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 wn(){return!0}function lo(){return!1}function nt(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?wn:lo,this.isPropagationStopped=lo,this}return B(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=wn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wn)},persist:function(){},isPersistent:wn}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xn=nt(Ol),wa=B({},Ol,{view:0,detail:0}),Mm=nt(wa),gi,pi,Xa,Ln=B({},wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vi,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!==Xa&&(Xa&&e.type==="mousemove"?(gi=e.screenX-Xa.screenX,pi=e.screenY-Xa.screenY):pi=gi=0,Xa=e),gi)},movementY:function(e){return"movementY"in e?e.movementY:pi}}),ao=nt(Ln),Em=B({},Ln,{dataTransfer:0}),zm=nt(Em),Am=B({},wa,{relatedTarget:0}),bi=nt(Am),Dm=B({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Om=nt(Dm),Cm=B({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Um=nt(Cm),Rm=B({},Ol,{data:0}),no=nt(Rm),qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hm={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"},Bm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ym(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bm[e])?!!t[e]:!1}function vi(){return Ym}var Gm=B({},wa,{key:function(e){if(e.key){var t=qm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vi,charCode:function(e){return e.type==="keypress"?Gn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wm=nt(Gm),Xm=B({},Ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uo=nt(Xm),Lm=B({},wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vi}),Qm=nt(Lm),Zm=B({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vm=nt(Zm),Km=B({},Ln,{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}),km=nt(Km),Jm=B({},Ol,{newState:0,oldState:0}),$m=nt(Jm),Wm=[9,13,27,32],yi=Xt&&"CompositionEvent"in window,La=null;Xt&&"documentMode"in document&&(La=document.documentMode);var Fm=Xt&&"TextEvent"in window&&!La,io=Xt&&(!yi||La&&8<La&&11>=La),co=" ",so=!1;function oo(e,t){switch(e){case"keyup":return Wm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function Im(e,t){switch(e){case"compositionend":return fo(t);case"keypress":return t.which!==32?null:(so=!0,co);case"textInput":return e=t.data,e===co&&so?null:e;default:return null}}function Pm(e,t){if(aa)return e==="compositionend"||!yi&&oo(e,t)?(e=to(),Yn=xi=ul=null,aa=!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 io&&t.locale!=="ko"?null:t.data;default:return null}}var eh={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 ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eh[e.type]:t==="textarea"}function mo(e,t,l,a){ta?la?la.push(a):la=[a]:ta=a,t=Ou(t,"onChange"),0<t.length&&(l=new Xn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Qa=null,Za=null;function th(e){Wr(e,0)}function Qn(e){var t=Ba(e);if(ks(t))return e}function ho(e,t){if(e==="change")return t}var xo=!1;if(Xt){var Si;if(Xt){var Ni="oninput"in document;if(!Ni){var go=document.createElement("div");go.setAttribute("oninput","return;"),Ni=typeof go.oninput=="function"}Si=Ni}else Si=!1;xo=Si&&(!document.documentMode||9<document.documentMode)}function po(){Qa&&(Qa.detachEvent("onpropertychange",bo),Za=Qa=null)}function bo(e){if(e.propertyName==="value"&&Qn(Za)){var t=[];mo(t,Za,e,di(e)),eo(th,t)}}function lh(e,t,l){e==="focusin"?(po(),Qa=t,Za=l,Qa.attachEvent("onpropertychange",bo)):e==="focusout"&&po()}function ah(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qn(Za)}function nh(e,t){if(e==="click")return Qn(t)}function uh(e,t){if(e==="input"||e==="change")return Qn(t)}function ih(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:ih;function Va(e,t){if(mt(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(!Pu.call(t,n)||!mt(e[n],t[n]))return!1}return!0}function vo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yo(e,t){var l=vo(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=vo(l)}}function So(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?So(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function No(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hn(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=Hn(e.document)}return t}function ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ch=Xt&&"documentMode"in document&&11>=document.documentMode,na=null,Ti=null,Ka=null,_i=!1;function jo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_i||na==null||na!==Hn(a)||(a=na,"selectionStart"in a&&ji(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}),Ka&&Va(Ka,a)||(Ka=a,a=Ou(Ti,"onSelect"),0<a.length&&(t=new Xn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=na)))}function Cl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ua={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},Mi={},To={};Xt&&(To=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Ul(e){if(Mi[e])return Mi[e];if(!ua[e])return e;var t=ua[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in To)return Mi[e]=t[l];return e}var _o=Ul("animationend"),Mo=Ul("animationiteration"),Eo=Ul("animationstart"),sh=Ul("transitionrun"),oh=Ul("transitionstart"),fh=Ul("transitioncancel"),zo=Ul("transitionend"),Ao=new Map,Ei="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(" ");Ei.push("scrollEnd");function Ot(e,t){Ao.set(e,t),Dl(t,[e])}var Zn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Nt=[],ia=0,zi=0;function Vn(){for(var e=ia,t=zi=ia=0;t<e;){var l=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var n=Nt[t];Nt[t++]=null;var u=Nt[t];if(Nt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Do(l,n,u)}}function Kn(e,t,l,a){Nt[ia++]=e,Nt[ia++]=t,Nt[ia++]=l,Nt[ia++]=a,zi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ai(e,t,l,a){return Kn(e,t,l,a),kn(e)}function Rl(e,t){return Kn(e,null,null,t),kn(e)}function Do(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-dt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function kn(e){if(50<xn)throw xn=0,Yc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ca={};function rh(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 ht(e,t,l,a){return new rh(e,t,l,a)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lt(e,t){var l=e.alternate;return l===null?(l=ht(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 Oo(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 Jn(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Di(e)&&(c=1);else if(typeof e=="string")c=g0(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=ht(31,l,t,n),e.elementType=G,e.lanes=u,e;case me:return ql(l.children,n,u,t);case Q:c=8,n|=24;break;case J:return e=ht(12,l,t,n|2),e.elementType=J,e.lanes=u,e;case z:return e=ht(13,l,t,n),e.elementType=z,e.lanes=u,e;case te:return e=ht(19,l,t,n),e.elementType=te,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:c=10;break e;case he:c=9;break e;case ie:c=11;break e;case Y:c=14;break e;case $:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=ht(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function ql(e,t,l,a){return e=ht(7,e,a,t),e.lanes=l,e}function Oi(e,t,l){return e=ht(6,e,null,t),e.lanes=l,e}function Co(e){var t=ht(18,null,null,0);return t.stateNode=e,t}function Ci(e,t,l){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uo=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=Uo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Os(t)},Uo.set(e,t),t)}return{value:e,source:t,stack:Os(t)}}var sa=[],oa=0,$n=null,ka=0,Tt=[],_t=0,il=null,qt=1,Ht="";function Qt(e,t){sa[oa++]=ka,sa[oa++]=$n,$n=e,ka=t}function Ro(e,t,l){Tt[_t++]=qt,Tt[_t++]=Ht,Tt[_t++]=il,il=e;var a=qt;e=Ht;var n=32-dt(a)-1;a&=~(1<<n),l+=1;var u=32-dt(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,qt=1<<32-dt(t)+n|l<<n|a,Ht=u+e}else qt=1<<u|l<<n|a,Ht=e}function Ui(e){e.return!==null&&(Qt(e,1),Ro(e,1,0))}function Ri(e){for(;e===$n;)$n=sa[--oa],sa[oa]=null,ka=sa[--oa],sa[oa]=null;for(;e===il;)il=Tt[--_t],Tt[_t]=null,Ht=Tt[--_t],Tt[_t]=null,qt=Tt[--_t],Tt[_t]=null}function qo(e,t){Tt[_t++]=qt,Tt[_t++]=Ht,Tt[_t++]=il,qt=t.id,Ht=t.overflow,il=e}var $e=null,Ue=null,Se=!1,cl=null,Mt=!1,qi=Error(r(519));function sl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ja(jt(t,e)),qi}function Ho(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[at]=a,l){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(l=0;l<pn.length;l++)be(pn[l],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Js(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Ws(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||ed(t.textContent,l)?(a.popover!=null&&(be("beforetoggle",t),be("toggle",t)),a.onScroll!=null&&be("scroll",t),a.onScrollEnd!=null&&be("scrollend",t),a.onClick!=null&&(t.onclick=wt),t=!0):t=!1,t||sl(e,!0)}function Bo(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:$e=$e.return}}function fa(e){if(e!==$e)return!1;if(!Se)return Bo(e),Se=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Pc(e.type,e.memoizedProps)),l=!l),l&&Ue&&sl(e),Bo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=od(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=od(e)}else t===27?(t=Ue,Nl(e.type)?(e=ns,ns=null,Ue=e):Ue=t):Ue=$e?zt(e.stateNode.nextSibling):null;return!0}function Hl(){Ue=$e=null,Se=!1}function Hi(){var e=cl;return e!==null&&(st===null?st=e:st.push.apply(st,e),cl=null),e}function Ja(e){cl===null?cl=[e]:cl.push(e)}var Bi=h(null),Bl=null,Zt=null;function ol(e,t,l){H(Bi,t._currentValue),t._currentValue=l}function Vt(e){e._currentValue=Bi.current,O(Bi)}function Yi(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 Gi(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var o=u;u=n;for(var d=0;d<t.length;d++)if(o.context===t[d]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),Yi(u.return,l,e),a||(c=null);break e}u=o.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),Yi(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ra(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var o=n.type;mt(n.pendingProps.value,c.value)||(e!==null?e.push(o):e=[o])}}else if(n===Ne.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Nn):e=[Nn])}n=n.return}e!==null&&Gi(t,e,l,a),t.flags|=262144}function Wn(e){for(e=e.firstContext;e!==null;){if(!mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Bl=e,Zt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return Yo(Bl,e)}function Fn(e,t){return Bl===null&&Yl(e),Yo(e,t)}function Yo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Zt===null){if(e===null)throw Error(r(308));Zt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zt=Zt.next=t;return l}var dh=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()})}},mh=f.unstable_scheduleCallback,hh=f.unstable_NormalPriority,we={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wi(){return{controller:new dh,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&mh(hh,function(){e.controller.abort()})}var Wa=null,Xi=0,da=0,ma=null;function xh(e,t){if(Wa===null){var l=Wa=[];Xi=0,da=Zc(),ma={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Xi++,t.then(Go,Go),t}function Go(){if(--Xi===0&&Wa!==null){ma!==null&&(ma.status="fulfilled");var e=Wa;Wa=null,da=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var wo=v.S;v.S=function(e,t){Tr=ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&xh(e,t),wo!==null&&wo(e,t)};var Gl=h(null);function Li(){var e=Gl.current;return e!==null?e:Ce.pooledCache}function In(e,t){t===null?H(Gl,Gl.current):H(Gl,t.pool)}function Xo(){var e=Li();return e===null?null:{parent:we._currentValue,pool:e}}var ha=Error(r(460)),Qi=Error(r(474)),Pn=Error(r(542)),eu={then:function(){}};function Lo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Qo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(wt,wt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vo(e),e;default:if(typeof t.status=="string")t.then(wt,wt);else{if(e=Ce,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vo(e),e}throw Xl=t,ha}}function wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,ha):l}}var Xl=null;function Zo(){if(Xl===null)throw Error(r(459));var e=Xl;return Xl=null,e}function Vo(e){if(e===ha||e===Pn)throw Error(r(483))}var xa=null,Fa=0;function tu(e){var t=Fa;return Fa+=1,xa===null&&(xa=[]),Qo(xa,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lu(e,t){throw t.$$typeof===L?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ko(e){function t(b,x){if(e){var y=b.deletions;y===null?(b.deletions=[x],b.flags|=16):y.push(x)}}function l(b,x){if(!e)return null;for(;x!==null;)t(b,x),x=x.sibling;return null}function a(b){for(var x=new Map;b!==null;)b.key!==null?x.set(b.key,b):x.set(b.index,b),b=b.sibling;return x}function n(b,x){return b=Lt(b,x),b.index=0,b.sibling=null,b}function u(b,x,y){return b.index=y,e?(y=b.alternate,y!==null?(y=y.index,y<x?(b.flags|=67108866,x):y):(b.flags|=67108866,x)):(b.flags|=1048576,x)}function c(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function o(b,x,y,C){return x===null||x.tag!==6?(x=Oi(y,b.mode,C),x.return=b,x):(x=n(x,y),x.return=b,x)}function d(b,x,y,C){var P=y.type;return P===me?A(b,x,y.props.children,C,y.key):x!==null&&(x.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===$&&wl(P)===x.type)?(x=n(x,y.props),Ia(x,y),x.return=b,x):(x=Jn(y.type,y.key,y.props,null,b.mode,C),Ia(x,y),x.return=b,x)}function S(b,x,y,C){return x===null||x.tag!==4||x.stateNode.containerInfo!==y.containerInfo||x.stateNode.implementation!==y.implementation?(x=Ci(y,b.mode,C),x.return=b,x):(x=n(x,y.children||[]),x.return=b,x)}function A(b,x,y,C,P){return x===null||x.tag!==7?(x=ql(y,b.mode,C,P),x.return=b,x):(x=n(x,y),x.return=b,x)}function R(b,x,y){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Oi(""+x,b.mode,y),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case se:return y=Jn(x.type,x.key,x.props,null,b.mode,y),Ia(y,x),y.return=b,y;case fe:return x=Ci(x,b.mode,y),x.return=b,x;case $:return x=wl(x),R(b,x,y)}if(I(x)||X(x))return x=ql(x,b.mode,y,null),x.return=b,x;if(typeof x.then=="function")return R(b,tu(x),y);if(x.$$typeof===w)return R(b,Fn(b,x),y);lu(b,x)}return null}function j(b,x,y,C){var P=x!==null?x.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return P!==null?null:o(b,x,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case se:return y.key===P?d(b,x,y,C):null;case fe:return y.key===P?S(b,x,y,C):null;case $:return y=wl(y),j(b,x,y,C)}if(I(y)||X(y))return P!==null?null:A(b,x,y,C,null);if(typeof y.then=="function")return j(b,x,tu(y),C);if(y.$$typeof===w)return j(b,x,Fn(b,y),C);lu(b,y)}return null}function M(b,x,y,C,P){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return b=b.get(y)||null,o(x,b,""+C,P);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case se:return b=b.get(C.key===null?y:C.key)||null,d(x,b,C,P);case fe:return b=b.get(C.key===null?y:C.key)||null,S(x,b,C,P);case $:return C=wl(C),M(b,x,y,C,P)}if(I(C)||X(C))return b=b.get(y)||null,A(x,b,C,P,null);if(typeof C.then=="function")return M(b,x,y,tu(C),P);if(C.$$typeof===w)return M(b,x,y,Fn(x,C),P);lu(x,C)}return null}function k(b,x,y,C){for(var P=null,je=null,F=x,de=x=0,ye=null;F!==null&&de<y.length;de++){F.index>de?(ye=F,F=null):ye=F.sibling;var Te=j(b,F,y[de],C);if(Te===null){F===null&&(F=ye);break}e&&F&&Te.alternate===null&&t(b,F),x=u(Te,x,de),je===null?P=Te:je.sibling=Te,je=Te,F=ye}if(de===y.length)return l(b,F),Se&&Qt(b,de),P;if(F===null){for(;de<y.length;de++)F=R(b,y[de],C),F!==null&&(x=u(F,x,de),je===null?P=F:je.sibling=F,je=F);return Se&&Qt(b,de),P}for(F=a(F);de<y.length;de++)ye=M(F,b,de,y[de],C),ye!==null&&(e&&ye.alternate!==null&&F.delete(ye.key===null?de:ye.key),x=u(ye,x,de),je===null?P=ye:je.sibling=ye,je=ye);return e&&F.forEach(function(El){return t(b,El)}),Se&&Qt(b,de),P}function ue(b,x,y,C){if(y==null)throw Error(r(151));for(var P=null,je=null,F=x,de=x=0,ye=null,Te=y.next();F!==null&&!Te.done;de++,Te=y.next()){F.index>de?(ye=F,F=null):ye=F.sibling;var El=j(b,F,Te.value,C);if(El===null){F===null&&(F=ye);break}e&&F&&El.alternate===null&&t(b,F),x=u(El,x,de),je===null?P=El:je.sibling=El,je=El,F=ye}if(Te.done)return l(b,F),Se&&Qt(b,de),P;if(F===null){for(;!Te.done;de++,Te=y.next())Te=R(b,Te.value,C),Te!==null&&(x=u(Te,x,de),je===null?P=Te:je.sibling=Te,je=Te);return Se&&Qt(b,de),P}for(F=a(F);!Te.done;de++,Te=y.next())Te=M(F,b,de,Te.value,C),Te!==null&&(e&&Te.alternate!==null&&F.delete(Te.key===null?de:Te.key),x=u(Te,x,de),je===null?P=Te:je.sibling=Te,je=Te);return e&&F.forEach(function(E0){return t(b,E0)}),Se&&Qt(b,de),P}function De(b,x,y,C){if(typeof y=="object"&&y!==null&&y.type===me&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case se:e:{for(var P=y.key;x!==null;){if(x.key===P){if(P=y.type,P===me){if(x.tag===7){l(b,x.sibling),C=n(x,y.props.children),C.return=b,b=C;break e}}else if(x.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===$&&wl(P)===x.type){l(b,x.sibling),C=n(x,y.props),Ia(C,y),C.return=b,b=C;break e}l(b,x);break}else t(b,x);x=x.sibling}y.type===me?(C=ql(y.props.children,b.mode,C,y.key),C.return=b,b=C):(C=Jn(y.type,y.key,y.props,null,b.mode,C),Ia(C,y),C.return=b,b=C)}return c(b);case fe:e:{for(P=y.key;x!==null;){if(x.key===P)if(x.tag===4&&x.stateNode.containerInfo===y.containerInfo&&x.stateNode.implementation===y.implementation){l(b,x.sibling),C=n(x,y.children||[]),C.return=b,b=C;break e}else{l(b,x);break}else t(b,x);x=x.sibling}C=Ci(y,b.mode,C),C.return=b,b=C}return c(b);case $:return y=wl(y),De(b,x,y,C)}if(I(y))return k(b,x,y,C);if(X(y)){if(P=X(y),typeof P!="function")throw Error(r(150));return y=P.call(y),ue(b,x,y,C)}if(typeof y.then=="function")return De(b,x,tu(y),C);if(y.$$typeof===w)return De(b,x,Fn(b,y),C);lu(b,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,x!==null&&x.tag===6?(l(b,x.sibling),C=n(x,y),C.return=b,b=C):(l(b,x),C=Oi(y,b.mode,C),C.return=b,b=C),c(b)):l(b,x)}return function(b,x,y,C){try{Fa=0;var P=De(b,x,y,C);return xa=null,P}catch(F){if(F===ha||F===Pn)throw F;var je=ht(29,F,null,b.mode);return je.lanes=C,je.return=b,je}finally{}}}var Ll=Ko(!0),ko=Ko(!1),fl=!1;function Zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vi(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 rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function dl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(_e&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=kn(e),Do(e,null,l),t}return Kn(e,a,t,l),kn(e)}function Pa(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,Bs(e,l)}}function Ki(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ki=!1;function en(){if(ki){var e=ma;if(e!==null)throw e}}function tn(e,t,l,a){ki=!1;var n=e.updateQueue;fl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var d=o,S=d.next;d.next=null,c===null?u=S:c.next=S,c=d;var A=e.alternate;A!==null&&(A=A.updateQueue,o=A.lastBaseUpdate,o!==c&&(o===null?A.firstBaseUpdate=S:o.next=S,A.lastBaseUpdate=d))}if(u!==null){var R=n.baseState;c=0,A=S=d=null,o=u;do{var j=o.lane&-536870913,M=j!==o.lane;if(M?(ve&j)===j:(a&j)===j){j!==0&&j===da&&(ki=!0),A!==null&&(A=A.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var k=e,ue=o;j=t;var De=l;switch(ue.tag){case 1:if(k=ue.payload,typeof k=="function"){R=k.call(De,R,j);break e}R=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=ue.payload,j=typeof k=="function"?k.call(De,R,j):k,j==null)break e;R=B({},R,j);break e;case 2:fl=!0}}j=o.callback,j!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[j]:M.push(j))}else M={lane:j,tag:o.tag,payload:o.payload,callback:o.callback,next:null},A===null?(S=A=M,d=R):A=A.next=M,c|=j;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;M=o,o=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);A===null&&(d=R),n.baseState=d,n.firstBaseUpdate=S,n.lastBaseUpdate=A,u===null&&(n.shared.lanes=0),pl|=c,e.lanes=c,e.memoizedState=R}}function Jo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function $o(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Jo(l[e],t)}var ga=h(null),au=h(0);function Wo(e,t){e=el,H(au,e),H(ga,t),el=e|t.baseLanes}function Ji(){H(au,el),H(ga,ga.current)}function $i(){el=au.current,O(ga),O(au)}var xt=h(null),Et=null;function ml(e){var t=e.alternate;H(Ye,Ye.current&1),H(xt,e),Et===null&&(t===null||ga.current!==null||t.memoizedState!==null)&&(Et=e)}function Wi(e){H(Ye,Ye.current),H(xt,e),Et===null&&(Et=e)}function Fo(e){e.tag===22?(H(Ye,Ye.current),H(xt,e),Et===null&&(Et=e)):hl()}function hl(){H(Ye,Ye.current),H(xt,xt.current)}function gt(e){O(xt),Et===e&&(Et=null),O(Ye)}var Ye=h(0);function nu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ls(l)||as(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 Kt=0,re=null,ze=null,Xe=null,uu=!1,pa=!1,Ql=!1,iu=0,ln=0,ba=null,ph=0;function He(){throw Error(r(321))}function Fi(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!mt(e[l],t[l]))return!1;return!0}function Ii(e,t,l,a,n,u){return Kt=u,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,v.H=e===null||e.memoizedState===null?qf:mc,Ql=!1,u=l(a,n),Ql=!1,pa&&(u=Po(t,l,a,n)),Io(e),u}function Io(e){v.H=un;var t=ze!==null&&ze.next!==null;if(Kt=0,Xe=ze=re=null,uu=!1,ln=0,ba=null,t)throw Error(r(300));e===null||Le||(e=e.dependencies,e!==null&&Wn(e)&&(Le=!0))}function Po(e,t,l,a){re=e;var n=0;do{if(pa&&(ba=null),ln=0,pa=!1,25<=n)throw Error(r(301));if(n+=1,Xe=ze=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}v.H=Hf,u=t(l,a)}while(pa);return u}function bh(){var e=v.H,t=e.useState()[0];return t=typeof t.then=="function"?an(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(re.flags|=1024),t}function Pi(){var e=iu!==0;return iu=0,e}function ec(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function tc(e){if(uu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uu=!1}Kt=0,Xe=ze=re=null,pa=!1,ln=iu=0,ba=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?re.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ge(){if(ze===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Xe===null?re.memoizedState:Xe.next;if(t!==null)Xe=t,ze=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Xe===null?re.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function an(e){var t=ln;return ln+=1,ba===null&&(ba=[]),e=Qo(ba,e,t),t=re,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,v.H=t===null||t.memoizedState===null?qf:mc),e}function su(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return an(e);if(e.$$typeof===w)return We(e)}throw Error(r(438,String(e)))}function lc(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=re.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=cu(),re.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]=le;return t.index++,l}function kt(e,t){return typeof t=="function"?t(e):t}function ou(e){var t=Ge();return ac(t,ze,e)}function ac(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var o=c=null,d=null,S=t,A=!1;do{var R=S.lane&-536870913;if(R!==S.lane?(ve&R)===R:(Kt&R)===R){var j=S.revertLane;if(j===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),R===da&&(A=!0);else if((Kt&j)===j){S=S.next,j===da&&(A=!0);continue}else R={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},d===null?(o=d=R,c=u):d=d.next=R,re.lanes|=j,pl|=j;R=S.action,Ql&&l(u,R),u=S.hasEagerState?S.eagerState:l(u,R)}else j={lane:R,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},d===null?(o=d=j,c=u):d=d.next=j,re.lanes|=R,pl|=R;S=S.next}while(S!==null&&S!==t);if(d===null?c=u:d.next=o,!mt(u,e.memoizedState)&&(Le=!0,A&&(l=ma,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function nc(e){var t=Ge(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);mt(u,t.memoizedState)||(Le=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function ef(e,t,l){var a=re,n=Ge(),u=Se;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!mt((ze||n).memoizedState,l);if(c&&(n.memoizedState=l,Le=!0),n=n.queue,cc(af.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,va(9,{destroy:void 0},lf.bind(null,a,n,l,t),null),Ce===null)throw Error(r(349));u||(Kt&127)!==0||tf(a,t,l)}return l}function tf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=cu(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function lf(e,t,l,a){t.value=l,t.getSnapshot=a,nf(t)&&uf(e)}function af(e,t,l){return l(function(){nf(t)&&uf(e)})}function nf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!mt(e,l)}catch{return!0}}function uf(e){var t=Rl(e,2);t!==null&&ot(t,e,2)}function uc(e){var t=et();if(typeof e=="function"){var l=e;if(e=l(),Ql){al(!0);try{l()}finally{al(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:e},t}function cf(e,t,l,a){return e.baseState=l,ac(e,ze,typeof a=="function"?a:kt)}function vh(e,t,l,a,n){if(du(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};v.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,sf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function sf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=v.T,c={};v.T=c;try{var o=l(n,a),d=v.S;d!==null&&d(c,o),of(e,t,o)}catch(S){ic(e,t,S)}finally{u!==null&&c.types!==null&&(u.types=c.types),v.T=u}}else try{u=l(n,a),of(e,t,u)}catch(S){ic(e,t,S)}}function of(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ff(e,t,a)},function(a){return ic(e,t,a)}):ff(e,t,l)}function ff(e,t,l){t.status="fulfilled",t.value=l,rf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,sf(e,l)))}function ic(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,rf(t),t=t.next;while(t!==a)}e.action=null}function rf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function df(e,t){return t}function mf(e,t){if(Se){var l=Ce.formState;if(l!==null){e:{var a=re;if(Se){if(Ue){t:{for(var n=Ue,u=Mt;n.nodeType!==8;){if(!u){n=null;break t}if(n=zt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ue=zt(n.nextSibling),a=n.data==="F!";break e}}sl(a)}a=!1}a&&(t=l[0])}}return l=et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:df,lastRenderedState:t},l.queue=a,l=Cf.bind(null,re,a),a.dispatch=l,a=uc(!1),u=dc.bind(null,re,!1,a.queue),a=et(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=vh.bind(null,re,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function hf(e){var t=Ge();return xf(t,ze,e)}function xf(e,t,l){if(t=ac(e,t,df)[0],e=ou(kt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=an(t)}catch(c){throw c===ha?Pn:c}else a=t;t=Ge();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(re.flags|=2048,va(9,{destroy:void 0},yh.bind(null,n,l),null)),[a,u,e]}function yh(e,t){e.action=t}function gf(e){var t=Ge(),l=ze;if(l!==null)return xf(t,l,e);Ge(),t=t.memoizedState,l=Ge();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=cu(),re.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 pf(){return Ge().memoizedState}function fu(e,t,l,a){var n=et();re.flags|=e,n.memoizedState=va(1|t,{destroy:void 0},l,a===void 0?null:a)}function ru(e,t,l,a){var n=Ge();a=a===void 0?null:a;var u=n.memoizedState.inst;ze!==null&&a!==null&&Fi(a,ze.memoizedState.deps)?n.memoizedState=va(t,u,l,a):(re.flags|=e,n.memoizedState=va(1|t,u,l,a))}function bf(e,t){fu(8390656,8,e,t)}function cc(e,t){ru(2048,8,e,t)}function Sh(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=cu(),re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function vf(e){var t=Ge().memoizedState;return Sh({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function yf(e,t){return ru(4,2,e,t)}function Sf(e,t){return ru(4,4,e,t)}function Nf(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 jf(e,t,l){l=l!=null?l.concat([e]):null,ru(4,4,Nf.bind(null,t,e),l)}function sc(){}function Tf(e,t){var l=Ge();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Fi(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function _f(e,t){var l=Ge();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Fi(t,a[1]))return a[0];if(a=e(),Ql){al(!0);try{e()}finally{al(!1)}}return l.memoizedState=[a,t],a}function oc(e,t,l){return l===void 0||(Kt&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Mr(),re.lanes|=e,pl|=e,l)}function Mf(e,t,l,a){return mt(l,t)?l:ga.current!==null?(e=oc(e,l,a),mt(e,t)||(Le=!0),e):(Kt&42)===0||(Kt&1073741824)!==0&&(ve&261930)===0?(Le=!0,e.memoizedState=l):(e=Mr(),re.lanes|=e,pl|=e,t)}function Ef(e,t,l,a,n){var u=D.p;D.p=u!==0&&8>u?u:8;var c=v.T,o={};v.T=o,dc(e,!1,t,l);try{var d=n(),S=v.S;if(S!==null&&S(o,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var A=gh(d,a);nn(e,t,A,vt(e))}else nn(e,t,a,vt(e))}catch(R){nn(e,t,{then:function(){},status:"rejected",reason:R},vt())}finally{D.p=u,c!==null&&o.types!==null&&(c.types=o.types),v.T=c}}function Nh(){}function fc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=zf(e).queue;Ef(e,n,t,Z,l===null?Nh:function(){return Af(e),l(a)})}function zf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:Z},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Af(e){var t=zf(e);t.next===null&&(t=e.alternate.memoizedState),nn(e,t.next.queue,{},vt())}function rc(){return We(Nn)}function Df(){return Ge().memoizedState}function Of(){return Ge().memoizedState}function jh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=rl(l);var a=dl(t,e,l);a!==null&&(ot(a,t,l),Pa(a,t,l)),t={cache:wi()},e.payload=t;return}t=t.return}}function Th(e,t,l){var a=vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},du(e)?Uf(t,l):(l=Ai(e,t,l,a),l!==null&&(ot(l,e,a),Rf(l,t,a)))}function Cf(e,t,l){var a=vt();nn(e,t,l,a)}function nn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(du(e))Uf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,o=u(c,l);if(n.hasEagerState=!0,n.eagerState=o,mt(o,c))return Kn(e,t,n,0),Ce===null&&Vn(),!1}catch{}finally{}if(l=Ai(e,t,n,a),l!==null)return ot(l,e,a),Rf(l,t,a),!0}return!1}function dc(e,t,l,a){if(a={lane:2,revertLane:Zc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},du(e)){if(t)throw Error(r(479))}else t=Ai(e,l,a,2),t!==null&&ot(t,e,2)}function du(e){var t=e.alternate;return e===re||t!==null&&t===re}function Uf(e,t){pa=uu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Rf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Bs(e,l)}}var un={readContext:We,use:su,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};un.useEffectEvent=He;var qf={readContext:We,use:su,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:bf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,fu(4194308,4,Nf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return fu(4194308,4,e,t)},useInsertionEffect:function(e,t){fu(4,2,e,t)},useMemo:function(e,t){var l=et();t=t===void 0?null:t;var a=e();if(Ql){al(!0);try{e()}finally{al(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=et();if(l!==void 0){var n=l(t);if(Ql){al(!0);try{l(t)}finally{al(!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=Th.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=uc(e);var t=e.queue,l=Cf.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:sc,useDeferredValue:function(e,t){var l=et();return oc(l,e,t)},useTransition:function(){var e=uc(!1);return e=Ef.bind(null,re,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=re,n=et();if(Se){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ce===null)throw Error(r(349));(ve&127)!==0||tf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,bf(af.bind(null,a,u,e),[e]),a.flags|=2048,va(9,{destroy:void 0},lf.bind(null,a,u,l,t),null),l},useId:function(){var e=et(),t=Ce.identifierPrefix;if(Se){var l=Ht,a=qt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=iu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=ph++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:mf,useActionState:mf,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=dc.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:lc,useCacheRefresh:function(){return et().memoizedState=jh.bind(null,re)},useEffectEvent:function(e){var t=et(),l={impl:e};return t.memoizedState=l,function(){if((_e&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},mc={readContext:We,use:su,useCallback:Tf,useContext:We,useEffect:cc,useImperativeHandle:jf,useInsertionEffect:yf,useLayoutEffect:Sf,useMemo:_f,useReducer:ou,useRef:pf,useState:function(){return ou(kt)},useDebugValue:sc,useDeferredValue:function(e,t){var l=Ge();return Mf(l,ze.memoizedState,e,t)},useTransition:function(){var e=ou(kt)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:an(e),t]},useSyncExternalStore:ef,useId:Df,useHostTransitionStatus:rc,useFormState:hf,useActionState:hf,useOptimistic:function(e,t){var l=Ge();return cf(l,ze,e,t)},useMemoCache:lc,useCacheRefresh:Of};mc.useEffectEvent=vf;var Hf={readContext:We,use:su,useCallback:Tf,useContext:We,useEffect:cc,useImperativeHandle:jf,useInsertionEffect:yf,useLayoutEffect:Sf,useMemo:_f,useReducer:nc,useRef:pf,useState:function(){return nc(kt)},useDebugValue:sc,useDeferredValue:function(e,t){var l=Ge();return ze===null?oc(l,e,t):Mf(l,ze.memoizedState,e,t)},useTransition:function(){var e=nc(kt)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:an(e),t]},useSyncExternalStore:ef,useId:Df,useHostTransitionStatus:rc,useFormState:gf,useActionState:gf,useOptimistic:function(e,t){var l=Ge();return ze!==null?cf(l,ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:lc,useCacheRefresh:Of};Hf.useEffectEvent=vf;function hc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:B({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var xc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=vt(),n=rl(a);n.payload=t,l!=null&&(n.callback=l),t=dl(e,n,a),t!==null&&(ot(t,e,a),Pa(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=vt(),n=rl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=dl(e,n,a),t!==null&&(ot(t,e,a),Pa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vt(),a=rl(l);a.tag=2,t!=null&&(a.callback=t),t=dl(e,a,l),t!==null&&(ot(t,e,l),Pa(t,e,l))}};function Bf(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Va(l,a)||!Va(n,u):!0}function Yf(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&&xc.enqueueReplaceState(t,t.state,null)}function Zl(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=B({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Gf(e){Zn(e)}function wf(e){console.error(e)}function Xf(e){Zn(e)}function mu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Lf(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 gc(e,t,l){return l=rl(l),l.tag=3,l.payload={element:null},l.callback=function(){mu(e,t)},l}function Qf(e){return e=rl(e),e.tag=3,e}function Zf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Lf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Lf(t,l,a),typeof n!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function _h(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ra(t,l,n,!0),l=xt.current,l!==null){switch(l.tag){case 31:case 13:return Et===null?_u():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===eu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Xc(e,a,n)),!1;case 22:return l.flags|=65536,a===eu?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)),Xc(e,a,n)),!1}throw Error(r(435,l.tag))}return Xc(e,a,n),_u(),!1}if(Se)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==qi&&(e=Error(r(422),{cause:a}),Ja(jt(e,l)))):(a!==qi&&(t=Error(r(423),{cause:a}),Ja(jt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=jt(a,l),n=gc(e.stateNode,a,n),Ki(e,n),Be!==4&&(Be=2)),!1;var u=Error(r(520),{cause:a});if(u=jt(u,l),hn===null?hn=[u]:hn.push(u),Be!==4&&(Be=2),t===null)return!0;a=jt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=gc(l.stateNode,a,e),Ki(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(bl===null||!bl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Qf(n),Zf(n,e,l,a),Ki(l,n),!1}l=l.return}while(l!==null);return!1}var pc=Error(r(461)),Le=!1;function Fe(e,t,l,a){t.child=e===null?ko(t,null,l,a):Ll(t,e.child,l,a)}function Vf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var o in a)o!=="ref"&&(c[o]=a[o])}else c=a;return Yl(t),a=Ii(e,t,l,c,u,n),o=Pi(),e!==null&&!Le?(ec(e,t,n),Jt(e,t,n)):(Se&&o&&Ui(t),t.flags|=1,Fe(e,t,a,n),t.child)}function Kf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Di(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,kf(e,t,u,a,n)):(e=Jn(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!_c(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Va,l(c,a)&&e.ref===t.ref)return Jt(e,t,n)}return t.flags|=1,e=Lt(u,a),e.ref=t.ref,e.return=t,t.child=e}function kf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Va(u,a)&&e.ref===t.ref)if(Le=!1,t.pendingProps=a=u,_c(e,n))(e.flags&131072)!==0&&(Le=!0);else return t.lanes=e.lanes,Jt(e,t,n)}return bc(e,t,l,a,n)}function Jf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return $f(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&In(t,u!==null?u.cachePool:null),u!==null?Wo(t,u):Ji(),Fo(t);else return a=t.lanes=536870912,$f(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(In(t,u.cachePool),Wo(t,u),hl(),t.memoizedState=null):(e!==null&&In(t,null),Ji(),hl());return Fe(e,t,n,l),t.child}function cn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $f(e,t,l,a,n){var u=Li();return u=u===null?null:{parent:we._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&In(t,null),Ji(),Fo(t),e!==null&&ra(e,t,a,!0),t.childLanes=n,null}function hu(e,t){return t=gu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wf(e,t,l){return Ll(t,e.child,null,l),e=hu(t,t.pendingProps),e.flags|=2,gt(t),t.memoizedState=null,e}function Mh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=hu(t,a),t.lanes=536870912,cn(null,e);if(Wi(t),(e=Ue)?(e=sd(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:qt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Co(e),l.return=t,t.child=l,$e=t,Ue=null)):e=null,e===null)throw sl(t);return t.lanes=536870912,null}return hu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(Wi(t),n)if(t.flags&256)t.flags&=-257,t=Wf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Le||ra(e,t,l,!1),n=(l&e.childLanes)!==0,Le||n){if(a=Ce,a!==null&&(c=Ys(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Rl(e,c),ot(a,e,c),pc;_u(),t=Wf(e,t,l)}else e=u.treeContext,Ue=zt(c.nextSibling),$e=t,Se=!0,cl=null,Mt=!1,e!==null&&qo(t,e),t=hu(t,a),t.flags|=4096;return t}return e=Lt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function bc(e,t,l,a,n){return Yl(t),l=Ii(e,t,l,a,void 0,n),a=Pi(),e!==null&&!Le?(ec(e,t,n),Jt(e,t,n)):(Se&&a&&Ui(t),t.flags|=1,Fe(e,t,l,n),t.child)}function Ff(e,t,l,a,n,u){return Yl(t),t.updateQueue=null,l=Po(t,a,l,n),Io(e),a=Pi(),e!==null&&!Le?(ec(e,t,u),Jt(e,t,u)):(Se&&a&&Ui(t),t.flags|=1,Fe(e,t,l,u),t.child)}function If(e,t,l,a,n){if(Yl(t),t.stateNode===null){var u=ca,c=l.contextType;typeof c=="object"&&c!==null&&(u=We(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=xc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Zi(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?We(c):ca,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(hc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&xc.enqueueReplaceState(u,u.state,null),tn(t,a,u,n),en(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var o=t.memoizedProps,d=Zl(l,o);u.props=d;var S=u.context,A=l.contextType;c=ca,typeof A=="object"&&A!==null&&(c=We(A));var R=l.getDerivedStateFromProps;A=typeof R=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,A||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||S!==c)&&Yf(t,u,a,c),fl=!1;var j=t.memoizedState;u.state=j,tn(t,a,u,n),en(),S=t.memoizedState,o||j!==S||fl?(typeof R=="function"&&(hc(t,l,R,a),S=t.memoizedState),(d=fl||Bf(t,l,d,a,j,S,c))?(A||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),u.props=a,u.state=S,u.context=c,a=d):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Vi(e,t),c=t.memoizedProps,A=Zl(l,c),u.props=A,R=t.pendingProps,j=u.context,S=l.contextType,d=ca,typeof S=="object"&&S!==null&&(d=We(S)),o=l.getDerivedStateFromProps,(S=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==R||j!==d)&&Yf(t,u,a,d),fl=!1,j=t.memoizedState,u.state=j,tn(t,a,u,n),en();var M=t.memoizedState;c!==R||j!==M||fl||e!==null&&e.dependencies!==null&&Wn(e.dependencies)?(typeof o=="function"&&(hc(t,l,o,a),M=t.memoizedState),(A=fl||Bf(t,l,A,a,j,M,d)||e!==null&&e.dependencies!==null&&Wn(e.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,M,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,M,d)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),u.props=a,u.state=M,u.context=d,a=A):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,xu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ll(t,e.child,null,n),t.child=Ll(t,null,l,n)):Fe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Jt(e,t,n),e}function Pf(e,t,l,a){return Hl(),t.flags|=256,Fe(e,t,l,a),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(e){return{baseLanes:e,cachePool:Xo()}}function Sc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=bt),e}function er(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(n?ml(t):hl(),(e=Ue)?(e=sd(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:qt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Co(e),l.return=t,t.child=l,$e=t,Ue=null)):e=null,e===null)throw sl(t);return as(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(hl(),n=t.mode,o=gu({mode:"hidden",children:o},n),a=ql(a,n,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=yc(l),a.childLanes=Sc(e,c,l),t.memoizedState=vc,cn(null,a)):(ml(t),Nc(t,o))}var d=e.memoizedState;if(d!==null&&(o=d.dehydrated,o!==null)){if(u)t.flags&256?(ml(t),t.flags&=-257,t=jc(e,t,l)):t.memoizedState!==null?(hl(),t.child=e.child,t.flags|=128,t=null):(hl(),o=a.fallback,n=t.mode,a=gu({mode:"visible",children:a.children},n),o=ql(o,n,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Ll(t,e.child,null,l),a=t.child,a.memoizedState=yc(l),a.childLanes=Sc(e,c,l),t.memoizedState=vc,t=cn(null,a));else if(ml(t),as(o)){if(c=o.nextSibling&&o.nextSibling.dataset,c)var S=c.dgst;c=S,a=Error(r(419)),a.stack="",a.digest=c,Ja({value:a,source:null,stack:null}),t=jc(e,t,l)}else if(Le||ra(e,t,l,!1),c=(l&e.childLanes)!==0,Le||c){if(c=Ce,c!==null&&(a=Ys(c,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,Rl(e,a),ot(c,e,a),pc;ls(o)||_u(),t=jc(e,t,l)}else ls(o)?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Ue=zt(o.nextSibling),$e=t,Se=!0,cl=null,Mt=!1,e!==null&&qo(t,e),t=Nc(t,a.children),t.flags|=4096);return t}return n?(hl(),o=a.fallback,n=t.mode,d=e.child,S=d.sibling,a=Lt(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,S!==null?o=Lt(S,o):(o=ql(o,n,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,cn(null,a),a=t.child,o=e.child.memoizedState,o===null?o=yc(l):(n=o.cachePool,n!==null?(d=we._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Xo(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=Sc(e,c,l),t.memoizedState=vc,cn(e.child,a)):(ml(t),l=e.child,e=l.sibling,l=Lt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Nc(e,t){return t=gu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gu(e,t){return e=ht(22,e,null,t),e.lanes=0,e}function jc(e,t,l){return Ll(t,e.child,null,l),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tr(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Yi(e.return,t,l)}function Tc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function lr(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Ye.current,o=(c&2)!==0;if(o?(c=c&1|2,t.flags|=128):c&=1,H(Ye,c),Fe(e,t,a,l),a=Se?ka:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tr(e,l,t);else if(e.tag===19)tr(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&nu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Tc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&nu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Tc(t,!0,l,null,u,a);break;case"together":Tc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Jt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),pl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Lt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Lt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function _c(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Wn(e)))}function Eh(e,t,l){switch(t.tag){case 3:ee(t,t.stateNode.containerInfo),ol(t,we,e.memoizedState.cache),Hl();break;case 27:case 5:Ca(t);break;case 4:ee(t,t.stateNode.containerInfo);break;case 10:ol(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wi(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ml(t),t.flags|=128,null):(l&t.child.childLanes)!==0?er(e,t,l):(ml(t),e=Jt(e,t,l),e!==null?e.sibling:null);ml(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ra(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return lr(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),H(Ye,Ye.current),a)break;return null;case 22:return t.lanes=0,Jf(e,t,l,t.pendingProps);case 24:ol(t,we,e.memoizedState.cache)}return Jt(e,t,l)}function ar(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!_c(e,l)&&(t.flags&128)===0)return Le=!1,Eh(e,t,l);Le=(e.flags&131072)!==0}else Le=!1,Se&&(t.flags&1048576)!==0&&Ro(t,ka,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=wl(t.elementType),t.type=e,typeof e=="function")Di(e)?(a=Zl(e,a),t.tag=1,t=If(null,t,e,a,l)):(t.tag=0,t=bc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ie){t.tag=11,t=Vf(null,t,e,a,l);break e}else if(n===Y){t.tag=14,t=Kf(null,t,e,a,l);break e}}throw t=q(e)||e,Error(r(306,t,""))}}return t;case 0:return bc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Zl(a,t.pendingProps),If(e,t,a,n,l);case 3:e:{if(ee(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Vi(e,t),tn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,ol(t,we,a),a!==u.cache&&Gi(t,[we],l,!0),en(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Pf(e,t,a,l);break e}else if(a!==n){n=jt(Error(r(424)),t),Ja(n),t=Pf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ue=zt(e.firstChild),$e=t,Se=!0,cl=null,Mt=!0,l=ko(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Hl(),a===n){t=Jt(e,t,l);break e}Fe(e,t,a,l)}t=t.child}return t;case 26:return xu(e,t),e===null?(l=hd(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(l=t.type,e=t.pendingProps,a=Cu(xe.current).createElement(l),a[Je]=t,a[at]=e,Ie(a,l,e),Ve(a),t.stateNode=a):t.memoizedState=hd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ca(t),e===null&&Se&&(a=t.stateNode=rd(t.type,t.pendingProps,xe.current),$e=t,Mt=!0,n=Ue,Nl(t.type)?(ns=n,Ue=zt(a.firstChild)):Ue=n),Fe(e,t,t.pendingProps.children,l),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((n=a=Ue)&&(a=a0(a,t.type,t.pendingProps,Mt),a!==null?(t.stateNode=a,$e=t,Ue=zt(a.firstChild),Mt=!1,n=!0):n=!1),n||sl(t)),Ca(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Pc(n,u)?a=null:c!==null&&Pc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Ii(e,t,bh,null,null,l),Nn._currentValue=n),xu(e,t),Fe(e,t,a,l),t.child;case 6:return e===null&&Se&&((e=l=Ue)&&(l=n0(l,t.pendingProps,Mt),l!==null?(t.stateNode=l,$e=t,Ue=null,e=!0):e=!1),e||sl(t)),null;case 13:return er(e,t,l);case 4:return ee(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ll(t,null,a,l):Fe(e,t,a,l),t.child;case 11:return Vf(e,t,t.type,t.pendingProps,l);case 7:return Fe(e,t,t.pendingProps,l),t.child;case 8:return Fe(e,t,t.pendingProps.children,l),t.child;case 12:return Fe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ol(t,t.type,a.value),Fe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Yl(t),n=We(n),a=a(n),t.flags|=1,Fe(e,t,a,l),t.child;case 14:return Kf(e,t,t.type,t.pendingProps,l);case 15:return kf(e,t,t.type,t.pendingProps,l);case 19:return lr(e,t,l);case 31:return Mh(e,t,l);case 22:return Jf(e,t,l,t.pendingProps);case 24:return Yl(t),a=We(we),e===null?(n=Li(),n===null&&(n=Ce,u=wi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Zi(t),ol(t,we,n)):((e.lanes&l)!==0&&(Vi(e,t),tn(t,null,null,l),en()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ol(t,we,a)):(a=u.cache,ol(t,we,a),a!==n.cache&&Gi(t,[we],l,!0))),Fe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function $t(e){e.flags|=4}function Mc(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(Dr())e.flags|=8192;else throw Xl=eu,Qi}else e.flags&=-16777217}function nr(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vd(t))if(Dr())e.flags|=8192;else throw Xl=eu,Qi}function pu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qs():536870912,e.lanes|=t,ja|=t)}function sn(e,t){if(!Se)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 Re(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 zh(e,t,l){var a=t.pendingProps;switch(Ri(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vt(we),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(fa(t)?$t(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hi())),Re(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?($t(t),u!==null?(Re(t),nr(t,u)):(Re(t),Mc(t,n,null,a,l))):u?u!==e.memoizedState?($t(t),Re(t),nr(t,u)):(Re(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$t(t),Re(t),Mc(t,n,e,a,l)),null;case 27:if(zn(t),l=xe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$t(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Re(t),null}e=V.current,fa(t)?Ho(t):(e=rd(n,a,l),t.stateNode=e,$t(t))}return Re(t),null;case 5:if(zn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$t(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Re(t),null}if(u=V.current,fa(t))Ho(t);else{var c=Cu(xe.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Je]=t,u[at]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Ie(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$t(t)}}return Re(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$t(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=xe.current,fa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=$e,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||ed(e.nodeValue,l)),e||sl(t,!0)}else e=Cu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Re(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=fa(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Je]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),e=!1}else l=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(gt(t),t):(gt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Re(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=fa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Je]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),n=!1}else n=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(gt(t),t):(gt(t),null)}return gt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),pu(t,t.updateQueue),Re(t),null);case 4:return Oe(),e===null&&Jc(t.stateNode.containerInfo),Re(t),null;case 10:return Vt(t.type),Re(t),null;case 19:if(O(Ye),a=t.memoizedState,a===null)return Re(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)sn(a,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=nu(e),u!==null){for(t.flags|=128,sn(a,!1),e=u.updateQueue,t.updateQueue=e,pu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Oo(l,e),l=l.sibling;return H(Ye,Ye.current&1|2),Se&&Qt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ft()>Nu&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304)}else{if(!n)if(e=nu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,pu(t,e),sn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Se)return Re(t),null}else 2*ft()-a.renderingStartTime>Nu&&l!==536870912&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ft(),e.sibling=null,l=Ye.current,H(Ye,n?l&1|2:l&1),Se&&Qt(t,a.treeForkCount),e):(Re(t),null);case 22:case 23:return gt(t),$i(),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&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),l=t.updateQueue,l!==null&&pu(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&&O(Gl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vt(we),Re(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Ah(e,t){switch(Ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vt(we),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zn(t),null;case 31:if(t.memoizedState!==null){if(gt(t),t.alternate===null)throw Error(r(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(Ye),null;case 4:return Oe(),null;case 10:return Vt(t.type),null;case 22:case 23:return gt(t),$i(),e!==null&&O(Gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vt(we),null;case 25:return null;default:return null}}function ur(e,t){switch(Ri(t),t.tag){case 3:Vt(we),Oe();break;case 26:case 27:case 5:zn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&>(t);break;case 13:gt(t);break;case 19:O(Ye);break;case 10:Vt(t.type);break;case 22:case 23:gt(t),$i(),e!==null&&O(Gl);break;case 24:Vt(we)}}function on(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(o){Ee(t,t.return,o)}}function xl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,n=t;var d=l,S=o;try{S()}catch(A){Ee(n,d,A)}}}a=a.next}while(a!==u)}}catch(A){Ee(t,t.return,A)}}function ir(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{$o(t,l)}catch(a){Ee(e,e.return,a)}}}function cr(e,t,l){l.props=Zl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ee(e,t,a)}}function fn(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){Ee(e,t,n)}}function Bt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ee(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){Ee(e,t,n)}else l.current=null}function sr(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){Ee(e,e.return,n)}}function Ec(e,t,l){try{var a=e.stateNode;Fh(a,e.type,l,t),a[at]=t}catch(n){Ee(e,e.return,n)}}function or(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nl(e.type)||e.tag===4}function zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||or(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&&Nl(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 Ac(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=wt));else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ac(e,t,l),e=e.sibling;e!==null;)Ac(e,t,l),e=e.sibling}function bu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(bu(e,t,l),e=e.sibling;e!==null;)bu(e,t,l),e=e.sibling}function fr(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ie(t,a,l),t[Je]=e,t[at]=l}catch(u){Ee(e,e.return,u)}}var Wt=!1,Qe=!1,Dc=!1,rr=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Dh(e,t){if(e=e.containerInfo,Fc=Gu,e=No(e),ji(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,o=-1,d=-1,S=0,A=0,R=e,j=null;t:for(;;){for(var M;R!==l||n!==0&&R.nodeType!==3||(o=c+n),R!==u||a!==0&&R.nodeType!==3||(d=c+a),R.nodeType===3&&(c+=R.nodeValue.length),(M=R.firstChild)!==null;)j=R,R=M;for(;;){if(R===e)break t;if(j===l&&++S===n&&(o=c),j===u&&++A===a&&(d=c),(M=R.nextSibling)!==null)break;R=j,j=R.parentNode}R=M}l=o===-1||d===-1?null:{start:o,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ic={focusedElem:e,selectionRange:l},Gu=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){switch(t=Ke,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var k=Zl(l.type,n);e=a.getSnapshotBeforeUpdate(k,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Ee(l,l.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ts(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ts(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}}function dr(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:It(e,l),a&4&&on(5,l);break;case 1:if(It(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ee(l,l.return,c)}else{var n=Zl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ee(l,l.return,c)}}a&64&&ir(l),a&512&&fn(l,l.return);break;case 3:if(It(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{$o(e,t)}catch(c){Ee(l,l.return,c)}}break;case 27:t===null&&a&4&&fr(l);case 26:case 5:It(e,l),t===null&&a&4&&sr(l),a&512&&fn(l,l.return);break;case 12:It(e,l);break;case 31:It(e,l),a&4&&xr(e,l);break;case 13:It(e,l),a&4&&gr(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Gh.bind(null,l),u0(e,l))));break;case 22:if(a=l.memoizedState!==null||Wt,!a){t=t!==null&&t.memoizedState!==null||Qe,n=Wt;var u=Qe;Wt=a,(Qe=t)&&!u?Pt(e,l,(l.subtreeFlags&8772)!==0):It(e,l),Wt=n,Qe=u}break;case 30:break;default:It(e,l)}}function mr(e){var t=e.alternate;t!==null&&(e.alternate=null,mr(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ii(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 qe=null,ut=!1;function Ft(e,t,l){for(l=l.child;l!==null;)hr(e,t,l),l=l.sibling}function hr(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Ua,l)}catch{}switch(l.tag){case 26:Qe||Bt(l,t),Ft(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qe||Bt(l,t);var a=qe,n=ut;Nl(l.type)&&(qe=l.stateNode,ut=!1),Ft(e,t,l),vn(l.stateNode),qe=a,ut=n;break;case 5:Qe||Bt(l,t);case 6:if(a=qe,n=ut,qe=null,Ft(e,t,l),qe=a,ut=n,qe!==null)if(ut)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(l.stateNode)}catch(u){Ee(l,t,u)}else try{qe.removeChild(l.stateNode)}catch(u){Ee(l,t,u)}break;case 18:qe!==null&&(ut?(e=qe,id(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Oa(e)):id(qe,l.stateNode));break;case 4:a=qe,n=ut,qe=l.stateNode.containerInfo,ut=!0,Ft(e,t,l),qe=a,ut=n;break;case 0:case 11:case 14:case 15:xl(2,l,t),Qe||xl(4,l,t),Ft(e,t,l);break;case 1:Qe||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&cr(l,t,a)),Ft(e,t,l);break;case 21:Ft(e,t,l);break;case 22:Qe=(a=Qe)||l.memoizedState!==null,Ft(e,t,l),Qe=a;break;default:Ft(e,t,l)}}function xr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(l){Ee(t,t.return,l)}}}function gr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(l){Ee(t,t.return,l)}}function Oh(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rr),t;default:throw Error(r(435,e.tag))}}function vu(e,t){var l=Oh(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=wh.bind(null,e,a);a.then(n,n)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,o=c;e:for(;o!==null;){switch(o.tag){case 27:if(Nl(o.type)){qe=o.stateNode,ut=!1;break e}break;case 5:qe=o.stateNode,ut=!1;break e;case 3:case 4:qe=o.stateNode.containerInfo,ut=!0;break e}o=o.return}if(qe===null)throw Error(r(160));hr(u,c,n),qe=null,ut=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pr(t,e),t=t.sibling}var Ct=null;function pr(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ct(e),a&4&&(xl(3,e,e.return),on(3,e),xl(5,e,e.return));break;case 1:it(t,e),ct(e),a&512&&(Qe||l===null||Bt(l,l.return)),a&64&&Wt&&(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=Ct;if(it(t,e),ct(e),a&512&&(Qe||l===null||Bt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ha]||u[Je]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ie(u,a,l),u[Je]=e,Ve(u),a=u;break e;case"link":var c=pd("link","href",n).get(a+(l.href||""));if(c){for(var o=0;o<c.length;o++)if(u=c[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(o,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;case"meta":if(c=pd("meta","content",n).get(a+(l.content||""))){for(o=0;o<c.length;o++)if(u=c[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(o,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Je]=e,Ve(u),a=u}e.stateNode=a}else bd(n,e.type,e.stateNode);else e.stateNode=gd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?bd(n,e.type,e.stateNode):gd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ec(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ct(e),a&512&&(Qe||l===null||Bt(l,l.return)),l!==null&&a&4&&Ec(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ct(e),a&512&&(Qe||l===null||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{ea(n,"")}catch(k){Ee(e,e.return,k)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Ec(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Dc=!0);break;case 6:if(it(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(k){Ee(e,e.return,k)}}break;case 3:if(qu=null,n=Ct,Ct=Uu(t.containerInfo),it(t,e),Ct=n,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(k){Ee(e,e.return,k)}Dc&&(Dc=!1,br(e));break;case 4:a=Ct,Ct=Uu(e.stateNode.containerInfo),it(t,e),ct(e),Ct=a;break;case 12:it(t,e),ct(e);break;case 31:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,vu(e,a)));break;case 13:it(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Su=ft()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,vu(e,a)));break;case 22:n=e.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,S=Wt,A=Qe;if(Wt=S||n,Qe=A||d,it(t,e),Qe=A,Wt=S,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||d||Wt||Qe||Vl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){d=l=t;try{if(u=d.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{o=d.stateNode;var R=d.memoizedProps.style,j=R!=null&&R.hasOwnProperty("display")?R.display:null;o.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(k){Ee(d,d.return,k)}}}else if(t.tag===6){if(l===null){d=t;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(k){Ee(d,d.return,k)}}}else if(t.tag===18){if(l===null){d=t;try{var M=d.stateNode;n?cd(M,!0):cd(d.stateNode,!1)}catch(k){Ee(d,d.return,k)}}}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,vu(e,l))));break;case 19:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,vu(e,a)));break;case 30:break;case 21:break;default:it(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(or(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=zc(e);bu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ea(c,""),l.flags&=-33);var o=zc(e);bu(e,o,c);break;case 3:case 4:var d=l.stateNode.containerInfo,S=zc(e);Ac(e,S,d);break;default:throw Error(r(161))}}catch(A){Ee(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function br(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;br(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function It(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dr(e,t.alternate,t),t=t.sibling}function Vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xl(4,t,t.return),Vl(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&cr(t,t.return,l),Vl(t);break;case 27:vn(t.stateNode);case 26:case 5:Bt(t,t.return),Vl(t);break;case 22:t.memoizedState===null&&Vl(t);break;case 30:Vl(t);break;default:Vl(t)}e=e.sibling}}function Pt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:Pt(n,u,l),on(4,u);break;case 1:if(Pt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(S){Ee(a,a.return,S)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)Jo(d[n],o)}catch(S){Ee(a,a.return,S)}}l&&c&64&&ir(u),fn(u,u.return);break;case 27:fr(u);case 26:case 5:Pt(n,u,l),l&&a===null&&c&4&&sr(u),fn(u,u.return);break;case 12:Pt(n,u,l);break;case 31:Pt(n,u,l),l&&c&4&&xr(n,u);break;case 13:Pt(n,u,l),l&&c&4&&gr(n,u);break;case 22:u.memoizedState===null&&Pt(n,u,l),fn(u,u.return);break;case 30:break;default:Pt(n,u,l)}t=t.sibling}}function Oc(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&&$a(l))}function Cc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Ut(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vr(e,t,l,a),t=t.sibling}function vr(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ut(e,t,l,a),n&2048&&on(9,t);break;case 1:Ut(e,t,l,a);break;case 3:Ut(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&&$a(e)));break;case 12:if(n&2048){Ut(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,o=u.onPostCommit;typeof o=="function"&&o(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){Ee(t,t.return,d)}}else Ut(e,t,l,a);break;case 31:Ut(e,t,l,a);break;case 13:Ut(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Ut(e,t,l,a):rn(e,t):u._visibility&2?Ut(e,t,l,a):(u._visibility|=2,ya(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Oc(c,t);break;case 24:Ut(e,t,l,a),n&2048&&Cc(t.alternate,t);break;default:Ut(e,t,l,a)}}function ya(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,o=l,d=a,S=c.flags;switch(c.tag){case 0:case 11:case 15:ya(u,c,o,d,n),on(8,c);break;case 23:break;case 22:var A=c.stateNode;c.memoizedState!==null?A._visibility&2?ya(u,c,o,d,n):rn(u,c):(A._visibility|=2,ya(u,c,o,d,n)),n&&S&2048&&Oc(c.alternate,c);break;case 24:ya(u,c,o,d,n),n&&S&2048&&Cc(c.alternate,c);break;default:ya(u,c,o,d,n)}t=t.sibling}}function rn(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:rn(l,a),n&2048&&Oc(a.alternate,a);break;case 24:rn(l,a),n&2048&&Cc(a.alternate,a);break;default:rn(l,a)}t=t.sibling}}var dn=8192;function Sa(e,t,l){if(e.subtreeFlags&dn)for(e=e.child;e!==null;)yr(e,t,l),e=e.sibling}function yr(e,t,l){switch(e.tag){case 26:Sa(e,t,l),e.flags&dn&&e.memoizedState!==null&&p0(l,Ct,e.memoizedState,e.memoizedProps);break;case 5:Sa(e,t,l);break;case 3:case 4:var a=Ct;Ct=Uu(e.stateNode.containerInfo),Sa(e,t,l),Ct=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=dn,dn=16777216,Sa(e,t,l),dn=a):Sa(e,t,l));break;default:Sa(e,t,l)}}function Sr(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 mn(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];Ke=a,jr(a,e)}Sr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nr(e),e=e.sibling}function Nr(e){switch(e.tag){case 0:case 11:case 15:mn(e),e.flags&2048&&xl(9,e,e.return);break;case 3:mn(e);break;case 12:mn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,yu(e)):mn(e);break;default:mn(e)}}function yu(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];Ke=a,jr(a,e)}Sr(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),yu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,yu(t));break;default:yu(t)}e=e.sibling}}function jr(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:xl(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:$a(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ke=a;else e:for(l=e;Ke!==null;){a=Ke;var n=a.sibling,u=a.return;if(mr(a),a===l){Ke=null;break e}if(n!==null){n.return=u,Ke=n;break e}Ke=u}}}var Ch={getCacheForType:function(e){var t=We(we),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(we).controller.signal}},Uh=typeof WeakMap=="function"?WeakMap:Map,_e=0,Ce=null,pe=null,ve=0,Me=0,pt=null,gl=!1,Na=!1,Uc=!1,el=0,Be=0,pl=0,Kl=0,Rc=0,bt=0,ja=0,hn=null,st=null,qc=!1,Su=0,Tr=0,Nu=1/0,ju=null,bl=null,Ze=0,vl=null,Ta=null,tl=0,Hc=0,Bc=null,_r=null,xn=0,Yc=null;function vt(){return(_e&2)!==0&&ve!==0?ve&-ve:v.T!==null?Zc():Gs()}function Mr(){if(bt===0)if((ve&536870912)===0||Se){var e=On;On<<=1,(On&3932160)===0&&(On=262144),bt=e}else bt=536870912;return e=xt.current,e!==null&&(e.flags|=32),bt}function ot(e,t,l){(e===Ce&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(_a(e,0),yl(e,ve,bt,!1)),qa(e,l),((_e&2)===0||e!==Ce)&&(e===Ce&&((_e&2)===0&&(Kl|=l),Be===4&&yl(e,ve,bt,!1)),Yt(e))}function Er(e,t,l){if((_e&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ra(e,t),n=a?Hh(e,t):wc(e,t,!0),u=a;do{if(n===0){Na&&!a&&yl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Rh(l)){n=wc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var o=e;n=hn;var d=o.current.memoizedState.isDehydrated;if(d&&(_a(o,c).flags|=256),c=wc(o,c,!1),c!==2){if(Uc&&!d){o.errorRecoveryDisabledLanes|=u,Kl|=u,n=4;break e}u=st,st=n,u!==null&&(st===null?st=u:st.push.apply(st,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){_a(e,0),yl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:yl(a,t,bt,!gl);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Su+300-ft(),10<n)){if(yl(a,t,bt,!gl),Un(a,0,!0)!==0)break e;tl=t,a.timeoutHandle=nd(zr.bind(null,a,l,st,ju,qc,t,bt,Kl,ja,gl,u,"Throttled",-0,0),n);break e}zr(a,l,st,ju,qc,t,bt,Kl,ja,gl,u,null,-0,0)}}break}while(!0);Yt(e)}function zr(e,t,l,a,n,u,c,o,d,S,A,R,j,M){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wt},yr(t,u,R);var k=(u&62914560)===u?Su-ft():(u&4194048)===u?Tr-ft():0;if(k=b0(R,k),k!==null){tl=u,e.cancelPendingCommit=k(Hr.bind(null,e,t,u,l,a,n,c,o,d,A,R,null,j,M)),yl(e,u,c,!S);return}}Hr(e,t,u,l,a,n,c,o,d)}function Rh(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!mt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yl(e,t,l,a){t&=~Rc,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-dt(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&Hs(e,l,t)}function Tu(){return(_e&6)===0?(gn(0),!1):!0}function Gc(){if(pe!==null){if(Me===0)var e=pe.return;else e=pe,Zt=Bl=null,tc(e),xa=null,Fa=0,e=pe;for(;e!==null;)ur(e.alternate,e),e=e.return;pe=null}}function _a(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,e0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),tl=0,Gc(),Ce=e,pe=l=Lt(e.current,null),ve=t,Me=0,pt=null,gl=!1,Na=Ra(e,t),Uc=!1,ja=bt=Rc=Kl=pl=Be=0,st=hn=null,qc=!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-dt(a),u=1<<n;t|=e[n],a&=~u}return el=t,Vn(),l}function Ar(e,t){re=null,v.H=un,t===ha||t===Pn?(t=Zo(),Me=3):t===Qi?(t=Zo(),Me=4):Me=t===pc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,pe===null&&(Be=1,mu(e,jt(t,e.current)))}function Dr(){var e=xt.current;return e===null?!0:(ve&4194048)===ve?Et===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Et:!1}function Or(){var e=v.H;return v.H=un,e===null?un:e}function Cr(){var e=v.A;return v.A=Ch,e}function _u(){Be=4,gl||(ve&4194048)!==ve&&xt.current!==null||(Na=!0),(pl&134217727)===0&&(Kl&134217727)===0||Ce===null||yl(Ce,ve,bt,!1)}function wc(e,t,l){var a=_e;_e|=2;var n=Or(),u=Cr();(Ce!==e||ve!==t)&&(ju=null,_a(e,t)),t=!1;var c=Be;e:do try{if(Me!==0&&pe!==null){var o=pe,d=pt;switch(Me){case 8:Gc(),c=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var S=Me;if(Me=0,pt=null,Ma(e,o,d,S),l&&Na){c=0;break e}break;default:S=Me,Me=0,pt=null,Ma(e,o,d,S)}}qh(),c=Be;break}catch(A){Ar(e,A)}while(!0);return t&&e.shellSuspendCounter++,Zt=Bl=null,_e=a,v.H=n,v.A=u,pe===null&&(Ce=null,ve=0,Vn()),c}function qh(){for(;pe!==null;)Ur(pe)}function Hh(e,t){var l=_e;_e|=2;var a=Or(),n=Cr();Ce!==e||ve!==t?(ju=null,Nu=ft()+500,_a(e,t)):Na=Ra(e,t);e:do try{if(Me!==0&&pe!==null){t=pe;var u=pt;t:switch(Me){case 1:Me=0,pt=null,Ma(e,t,u,1);break;case 2:case 9:if(Lo(u)){Me=0,pt=null,Rr(t);break}t=function(){Me!==2&&Me!==9||Ce!==e||(Me=7),Yt(e)},u.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Lo(u)?(Me=0,pt=null,Rr(t)):(Me=0,pt=null,Ma(e,t,u,7));break;case 5:var c=null;switch(pe.tag){case 26:c=pe.memoizedState;case 5:case 27:var o=pe;if(c?vd(c):o.stateNode.complete){Me=0,pt=null;var d=o.sibling;if(d!==null)pe=d;else{var S=o.return;S!==null?(pe=S,Mu(S)):pe=null}break t}}Me=0,pt=null,Ma(e,t,u,5);break;case 6:Me=0,pt=null,Ma(e,t,u,6);break;case 8:Gc(),Be=6;break e;default:throw Error(r(462))}}Bh();break}catch(A){Ar(e,A)}while(!0);return Zt=Bl=null,v.H=a,v.A=n,_e=l,pe!==null?0:(Ce=null,ve=0,Vn(),Be)}function Bh(){for(;pe!==null&&!im();)Ur(pe)}function Ur(e){var t=ar(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Mu(e):pe=t}function Rr(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ff(l,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Ff(l,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:tc(t);default:ur(l,t),t=pe=Oo(t,el),t=ar(l,t,el)}e.memoizedProps=e.pendingProps,t===null?Mu(e):pe=t}function Ma(e,t,l,a){Zt=Bl=null,tc(t),xa=null,Fa=0;var n=t.return;try{if(_h(e,n,t,l,ve)){Be=1,mu(e,jt(l,e.current)),pe=null;return}}catch(u){if(n!==null)throw pe=n,u;Be=1,mu(e,jt(l,e.current)),pe=null;return}t.flags&32768?(Se||a===1?e=!0:Na||(ve&536870912)!==0?e=!1:(gl=e=!0,(a===2||a===9||a===3||a===6)&&(a=xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),qr(t,e)):Mu(t)}function Mu(e){var t=e;do{if((t.flags&32768)!==0){qr(t,gl);return}e=t.return;var l=zh(t.alternate,t,el);if(l!==null){pe=l;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);Be===0&&(Be=5)}function qr(e,t){do{var l=Ah(e.alternate,e);if(l!==null){l.flags&=32767,pe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=l}while(e!==null);Be=6,pe=null}function Hr(e,t,l,a,n,u,c,o,d){e.cancelPendingCommit=null;do Eu();while(Ze!==0);if((_e&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=zi,gm(e,l,u,c,o,d),e===Ce&&(pe=Ce=null,ve=0),Ta=t,vl=e,tl=l,Hc=u,Bc=n,_r=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xh(An,function(){return Xr(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=v.T,v.T=null,n=D.p,D.p=2,c=_e,_e|=4;try{Dh(e,t,l)}finally{_e=c,D.p=n,v.T=a}}Ze=1,Br(),Yr(),Gr()}}function Br(){if(Ze===1){Ze=0;var e=vl,t=Ta,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=v.T,v.T=null;var a=D.p;D.p=2;var n=_e;_e|=4;try{pr(t,e);var u=Ic,c=No(e.containerInfo),o=u.focusedElem,d=u.selectionRange;if(c!==o&&o&&o.ownerDocument&&So(o.ownerDocument.documentElement,o)){if(d!==null&&ji(o)){var S=d.start,A=d.end;if(A===void 0&&(A=S),"selectionStart"in o)o.selectionStart=S,o.selectionEnd=Math.min(A,o.value.length);else{var R=o.ownerDocument||document,j=R&&R.defaultView||window;if(j.getSelection){var M=j.getSelection(),k=o.textContent.length,ue=Math.min(d.start,k),De=d.end===void 0?ue:Math.min(d.end,k);!M.extend&&ue>De&&(c=De,De=ue,ue=c);var b=yo(o,ue),x=yo(o,De);if(b&&x&&(M.rangeCount!==1||M.anchorNode!==b.node||M.anchorOffset!==b.offset||M.focusNode!==x.node||M.focusOffset!==x.offset)){var y=R.createRange();y.setStart(b.node,b.offset),M.removeAllRanges(),ue>De?(M.addRange(y),M.extend(x.node,x.offset)):(y.setEnd(x.node,x.offset),M.addRange(y))}}}}for(R=[],M=o;M=M.parentNode;)M.nodeType===1&&R.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<R.length;o++){var C=R[o];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}Gu=!!Fc,Ic=Fc=null}finally{_e=n,D.p=a,v.T=l}}e.current=t,Ze=2}}function Yr(){if(Ze===2){Ze=0;var e=vl,t=Ta,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=v.T,v.T=null;var a=D.p;D.p=2;var n=_e;_e|=4;try{dr(e,t.alternate,t)}finally{_e=n,D.p=a,v.T=l}}Ze=3}}function Gr(){if(Ze===4||Ze===3){Ze=0,cm();var e=vl,t=Ta,l=tl,a=_r;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Ta=vl=null,wr(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(bl=null),ni(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=v.T,n=D.p,D.p=2,v.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var o=a[c];u(o.value,{componentStack:o.stack})}}finally{v.T=t,D.p=n}}(tl&3)!==0&&Eu(),Yt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Yc?xn++:(xn=0,Yc=e):xn=0,gn(0)}}function wr(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Eu(){return Br(),Yr(),Gr(),Xr()}function Xr(){if(Ze!==5)return!1;var e=vl,t=Hc;Hc=0;var l=ni(tl),a=v.T,n=D.p;try{D.p=32>l?32:l,v.T=null,l=Bc,Bc=null;var u=vl,c=tl;if(Ze=0,Ta=vl=null,tl=0,(_e&6)!==0)throw Error(r(331));var o=_e;if(_e|=4,Nr(u.current),vr(u,u.current,c,l),_e=o,gn(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ua,u)}catch{}return!0}finally{D.p=n,v.T=a,wr(e,t)}}function Lr(e,t,l){t=jt(l,t),t=gc(e.stateNode,t,2),e=dl(e,t,2),e!==null&&(qa(e,2),Yt(e))}function Ee(e,t,l){if(e.tag===3)Lr(e,e,l);else for(;t!==null;){if(t.tag===3){Lr(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(bl===null||!bl.has(a))){e=jt(l,e),l=Qf(2),a=dl(t,l,2),a!==null&&(Zf(l,a,t,e),qa(a,2),Yt(a));break}}t=t.return}}function Xc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Uh;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Uc=!0,n.add(l),e=Yh.bind(null,e,t,l),t.then(e,e))}function Yh(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ce===e&&(ve&l)===l&&(Be===4||Be===3&&(ve&62914560)===ve&&300>ft()-Su?(_e&2)===0&&_a(e,0):Rc|=l,ja===ve&&(ja=0)),Yt(e)}function Qr(e,t){t===0&&(t=qs()),e=Rl(e,t),e!==null&&(qa(e,t),Yt(e))}function Gh(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qr(e,l)}function wh(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Qr(e,l)}function Xh(e,t){return ei(e,t)}var zu=null,Ea=null,Lc=!1,Au=!1,Qc=!1,Sl=0;function Yt(e){e!==Ea&&e.next===null&&(Ea===null?zu=Ea=e:Ea=Ea.next=e),Au=!0,Lc||(Lc=!0,Qh())}function gn(e,t){if(!Qc&&Au){Qc=!0;do for(var l=!1,a=zu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=n&~(c&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,kr(a,u))}else u=ve,u=Un(a,a===Ce?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ra(a,u)||(l=!0,kr(a,u));a=a.next}while(l);Qc=!1}}function Lh(){Zr()}function Zr(){Au=Lc=!1;var e=0;Sl!==0&&Ph()&&(e=Sl);for(var t=ft(),l=null,a=zu;a!==null;){var n=a.next,u=Vr(a,t);u===0?(a.next=null,l===null?zu=n:l.next=n,n===null&&(Ea=l)):(l=a,(e!==0||(u&3)!==0)&&(Au=!0)),a=n}Ze!==0&&Ze!==5||gn(e),Sl!==0&&(Sl=0)}function Vr(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-dt(u),o=1<<c,d=n[c];d===-1?((o&l)===0||(o&a)!==0)&&(n[c]=xm(o,t)):d<=t&&(e.expiredLanes|=o),u&=~o}if(t=Ce,l=ve,l=Un(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ti(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ra(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ti(a),ni(l)){case 2:case 8:l=Us;break;case 32:l=An;break;case 268435456:l=Rs;break;default:l=An}return a=Kr.bind(null,e),l=ei(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ti(a),e.callbackPriority=2,e.callbackNode=null,2}function Kr(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Eu()&&e.callbackNode!==l)return null;var a=ve;return a=Un(e,e===Ce?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Er(e,a,t),Vr(e,ft()),e.callbackNode!=null&&e.callbackNode===l?Kr.bind(null,e):null)}function kr(e,t){if(Eu())return null;Er(e,t,!0)}function Qh(){t0(function(){(_e&6)!==0?ei(Cs,Lh):Zr()})}function Zc(){if(Sl===0){var e=da;e===0&&(e=Dn,Dn<<=1,(Dn&261888)===0&&(Dn=256)),Sl=e}return Sl}function Jr(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bn(""+e)}function $r(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 Zh(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Jr((n[at]||null).action),c=a.submitter;c&&(t=(t=c[at]||null)?Jr(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var o=new Xn("action","action",null,a,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Sl!==0){var d=c?$r(n,c):new FormData(n);fc(l,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(o.preventDefault(),d=c?$r(n,c):new FormData(n),fc(l,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var Vc=0;Vc<Ei.length;Vc++){var Kc=Ei[Vc],Vh=Kc.toLowerCase(),Kh=Kc[0].toUpperCase()+Kc.slice(1);Ot(Vh,"on"+Kh)}Ot(_o,"onAnimationEnd"),Ot(Mo,"onAnimationIteration"),Ot(Eo,"onAnimationStart"),Ot("dblclick","onDoubleClick"),Ot("focusin","onFocus"),Ot("focusout","onBlur"),Ot(sh,"onTransitionRun"),Ot(oh,"onTransitionStart"),Ot(fh,"onTransitionCancel"),Ot(zo,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pn="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(" "),kh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pn));function Wr(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var o=a[c],d=o.instance,S=o.currentTarget;if(o=o.listener,d!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=S;try{u(n)}catch(A){Zn(A)}n.currentTarget=null,u=d}else for(c=0;c<a.length;c++){if(o=a[c],d=o.instance,S=o.currentTarget,o=o.listener,d!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=S;try{u(n)}catch(A){Zn(A)}n.currentTarget=null,u=d}}}}function be(e,t){var l=t[ui];l===void 0&&(l=t[ui]=new Set);var a=e+"__bubble";l.has(a)||(Fr(t,e,2,!1),l.add(a))}function kc(e,t,l){var a=0;t&&(a|=4),Fr(l,e,a,t)}var Du="_reactListening"+Math.random().toString(36).slice(2);function Jc(e){if(!e[Du]){e[Du]=!0,Ls.forEach(function(l){l!=="selectionchange"&&(kh.has(l)||kc(l,!1,e),kc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Du]||(t[Du]=!0,kc("selectionchange",!1,t))}}function Fr(e,t,l,a){switch(Md(t)){case 2:var n=S0;break;case 8:n=N0;break;default:n=os}l=n.bind(null,t,l,e),n=void 0,!hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function $c(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var o=a.stateNode.containerInfo;if(o===n)break;if(c===4)for(c=a.return;c!==null;){var d=c.tag;if((d===3||d===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;o!==null;){if(c=$l(o),c===null)return;if(d=c.tag,d===5||d===6||d===26||d===27){a=u=c;continue e}o=o.parentNode}}a=a.return}eo(function(){var S=u,A=di(l),R=[];e:{var j=Ao.get(e);if(j!==void 0){var M=Xn,k=e;switch(e){case"keypress":if(Gn(l)===0)break e;case"keydown":case"keyup":M=wm;break;case"focusin":k="focus",M=bi;break;case"focusout":k="blur",M=bi;break;case"beforeblur":case"afterblur":M=bi;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":M=ao;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=zm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Qm;break;case _o:case Mo:case Eo:M=Om;break;case zo:M=Vm;break;case"scroll":case"scrollend":M=Mm;break;case"wheel":M=km;break;case"copy":case"cut":case"paste":M=Um;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=uo;break;case"toggle":case"beforetoggle":M=$m}var ue=(t&4)!==0,De=!ue&&(e==="scroll"||e==="scrollend"),b=ue?j!==null?j+"Capture":null:j;ue=[];for(var x=S,y;x!==null;){var C=x;if(y=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||y===null||b===null||(C=Ya(x,b),C!=null&&ue.push(bn(x,C,y))),De)break;x=x.return}0<ue.length&&(j=new M(j,k,null,l,A),R.push({event:j,listeners:ue}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",j&&l!==ri&&(k=l.relatedTarget||l.fromElement)&&($l(k)||k[Jl]))break e;if((M||j)&&(j=A.window===A?A:(j=A.ownerDocument)?j.defaultView||j.parentWindow:window,M?(k=l.relatedTarget||l.toElement,M=S,k=k?$l(k):null,k!==null&&(De=T(k),ue=k.tag,k!==De||ue!==5&&ue!==27&&ue!==6)&&(k=null)):(M=null,k=S),M!==k)){if(ue=ao,C="onMouseLeave",b="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ue=uo,C="onPointerLeave",b="onPointerEnter",x="pointer"),De=M==null?j:Ba(M),y=k==null?j:Ba(k),j=new ue(C,x+"leave",M,l,A),j.target=De,j.relatedTarget=y,C=null,$l(A)===S&&(ue=new ue(b,x+"enter",k,l,A),ue.target=y,ue.relatedTarget=De,C=ue),De=C,M&&k)t:{for(ue=Jh,b=M,x=k,y=0,C=b;C;C=ue(C))y++;C=0;for(var P=x;P;P=ue(P))C++;for(;0<y-C;)b=ue(b),y--;for(;0<C-y;)x=ue(x),C--;for(;y--;){if(b===x||x!==null&&b===x.alternate){ue=b;break t}b=ue(b),x=ue(x)}ue=null}else ue=null;M!==null&&Ir(R,j,M,ue,!1),k!==null&&De!==null&&Ir(R,De,k,ue,!0)}}e:{if(j=S?Ba(S):window,M=j.nodeName&&j.nodeName.toLowerCase(),M==="select"||M==="input"&&j.type==="file")var je=ho;else if(ro(j))if(xo)je=uh;else{je=ah;var F=lh}else M=j.nodeName,!M||M.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?S&&fi(S.elementType)&&(je=ho):je=nh;if(je&&(je=je(e,S))){mo(R,je,l,A);break e}F&&F(e,j,S),e==="focusout"&&S&&j.type==="number"&&S.memoizedProps.value!=null&&oi(j,"number",j.value)}switch(F=S?Ba(S):window,e){case"focusin":(ro(F)||F.contentEditable==="true")&&(na=F,Ti=S,Ka=null);break;case"focusout":Ka=Ti=na=null;break;case"mousedown":_i=!0;break;case"contextmenu":case"mouseup":case"dragend":_i=!1,jo(R,l,A);break;case"selectionchange":if(ch)break;case"keydown":case"keyup":jo(R,l,A)}var de;if(yi)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else aa?oo(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(io&&l.locale!=="ko"&&(aa||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&aa&&(de=to()):(ul=A,xi="value"in ul?ul.value:ul.textContent,aa=!0)),F=Ou(S,ye),0<F.length&&(ye=new no(ye,e,null,l,A),R.push({event:ye,listeners:F}),de?ye.data=de:(de=fo(l),de!==null&&(ye.data=de)))),(de=Fm?Im(e,l):Pm(e,l))&&(ye=Ou(S,"onBeforeInput"),0<ye.length&&(F=new no("onBeforeInput","beforeinput",null,l,A),R.push({event:F,listeners:ye}),F.data=de)),Zh(R,e,S,l,A)}Wr(R,t)})}function bn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ou(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ya(e,l),n!=null&&a.unshift(bn(e,n,u)),n=Ya(e,t),n!=null&&a.push(bn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Jh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ir(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var o=l,d=o.alternate,S=o.stateNode;if(o=o.tag,d!==null&&d===a)break;o!==5&&o!==26&&o!==27||S===null||(d=S,n?(S=Ya(l,u),S!=null&&c.unshift(bn(l,S,d))):n||(S=Ya(l,u),S!=null&&c.push(bn(l,S,d)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var $h=/\r\n?/g,Wh=/\u0000|\uFFFD/g;function Pr(e){return(typeof e=="string"?e:""+e).replace($h,`
|
|
49
|
+
`).replace(Wh,"")}function ed(e,t){return t=Pr(t),Pr(e)===t}function Ae(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ea(e,""+a);break;case"className":qn(e,"class",a);break;case"tabIndex":qn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(e,l,a);break;case"style":Is(e,a,u);break;case"data":if(t!=="object"){qn(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=Bn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&Ae(e,t,"name",n.name,n,null),Ae(e,t,"formEncType",n.formEncType,n,null),Ae(e,t,"formMethod",n.formMethod,n,null),Ae(e,t,"formTarget",n.formTarget,n,null)):(Ae(e,t,"encType",n.encType,n,null),Ae(e,t,"method",n.method,n,null),Ae(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Bn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=wt);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Bn(""+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":be("beforetoggle",e),be("toggle",e),Rn(e,"popover",a);break;case"xlinkActuate":Gt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Gt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Gt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Gt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Gt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Gt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Gt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Rn(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=Tm.get(l)||l,Rn(e,l,a))}}function Wc(e,t,l,a,n,u){switch(l){case"style":Is(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ea(e,a):(typeof a=="number"||typeof a=="bigint")&&ea(e,""+a);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"onClick":a!=null&&(e.onclick=wt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[at]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Rn(e,l,a)}}}function Ie(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ae(e,t,u,c,l,null)}}n&&Ae(e,t,"srcSet",l.srcSet,l,null),a&&Ae(e,t,"src",l.src,l,null);return;case"input":be("invalid",e);var o=u=c=n=null,d=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var A=l[a];if(A!=null)switch(a){case"name":n=A;break;case"type":c=A;break;case"checked":d=A;break;case"defaultChecked":S=A;break;case"value":u=A;break;case"defaultValue":o=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:Ae(e,t,a,A,l,null)}}Js(e,u,o,d,S,c,n,!1);return;case"select":be("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":c=o;break;case"multiple":a=o;default:Ae(e,t,n,o,l,null)}t=u,l=c,e.multiple=!!a,t!=null?Pl(e,!!a,t,!1):l!=null&&Pl(e,!!a,l,!0);return;case"textarea":be("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(o=l[c],o!=null))switch(c){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:Ae(e,t,c,o,l,null)}Ws(e,a,n,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ae(e,t,d,a,l,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(a=0;a<pn.length;a++)be(pn[a],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ae(e,t,S,a,l,null)}return;default:if(fi(t)){for(A in l)l.hasOwnProperty(A)&&(a=l[A],a!==void 0&&Wc(e,t,A,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Ae(e,t,o,a,l,null))}function Fh(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,o=null,d=null,S=null,A=null;for(M in l){var R=l[M];if(l.hasOwnProperty(M)&&R!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":d=R;default:a.hasOwnProperty(M)||Ae(e,t,M,null,a,R)}}for(var j in a){var M=a[j];if(R=l[j],a.hasOwnProperty(j)&&(M!=null||R!=null))switch(j){case"type":u=M;break;case"name":n=M;break;case"checked":S=M;break;case"defaultChecked":A=M;break;case"value":c=M;break;case"defaultValue":o=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:M!==R&&Ae(e,t,j,M,a,R)}}si(e,c,o,d,S,A,u,n);return;case"select":M=c=o=j=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":M=d;default:a.hasOwnProperty(u)||Ae(e,t,u,null,a,d)}for(n in a)if(u=a[n],d=l[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":j=u;break;case"defaultValue":o=u;break;case"multiple":c=u;default:u!==d&&Ae(e,t,n,u,a,d)}t=o,l=c,a=M,j!=null?Pl(e,!!l,j,!1):!!a!=!!l&&(t!=null?Pl(e,!!l,t,!0):Pl(e,!!l,l?[]:"",!1));return;case"textarea":M=j=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ae(e,t,o,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":j=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Ae(e,t,c,n,a,u)}$s(e,j,M);return;case"option":for(var k in l)if(j=l[k],l.hasOwnProperty(k)&&j!=null&&!a.hasOwnProperty(k))switch(k){case"selected":e.selected=!1;break;default:Ae(e,t,k,null,a,j)}for(d in a)if(j=a[d],M=l[d],a.hasOwnProperty(d)&&j!==M&&(j!=null||M!=null))switch(d){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ae(e,t,d,j,a,M)}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 ue in l)j=l[ue],l.hasOwnProperty(ue)&&j!=null&&!a.hasOwnProperty(ue)&&Ae(e,t,ue,null,a,j);for(S in a)if(j=a[S],M=l[S],a.hasOwnProperty(S)&&j!==M&&(j!=null||M!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:Ae(e,t,S,j,a,M)}return;default:if(fi(t)){for(var De in l)j=l[De],l.hasOwnProperty(De)&&j!==void 0&&!a.hasOwnProperty(De)&&Wc(e,t,De,void 0,a,j);for(A in a)j=a[A],M=l[A],!a.hasOwnProperty(A)||j===M||j===void 0&&M===void 0||Wc(e,t,A,j,a,M);return}}for(var b in l)j=l[b],l.hasOwnProperty(b)&&j!=null&&!a.hasOwnProperty(b)&&Ae(e,t,b,null,a,j);for(R in a)j=a[R],M=l[R],!a.hasOwnProperty(R)||j===M||j==null&&M==null||Ae(e,t,R,j,a,M)}function td(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ih(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,o=n.duration;if(u&&o&&td(c)){for(c=0,o=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],S=d.startTime;if(S>o)break;var A=d.transferSize,R=d.initiatorType;A&&td(R)&&(d=d.responseEnd,c+=A*(d<o?1:(o-S)/(d-S)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Fc=null,Ic=null;function Cu(e){return e.nodeType===9?e:e.ownerDocument}function ld(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 ad(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 Pc(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 es=null;function Ph(){var e=window.event;return e&&e.type==="popstate"?e===es?!1:(es=e,!0):(es=null,!1)}var nd=typeof setTimeout=="function"?setTimeout:void 0,e0=typeof clearTimeout=="function"?clearTimeout:void 0,ud=typeof Promise=="function"?Promise:void 0,t0=typeof queueMicrotask=="function"?queueMicrotask:typeof ud<"u"?function(e){return ud.resolve(null).then(e).catch(l0)}:nd;function l0(e){setTimeout(function(){throw e})}function Nl(e){return e==="head"}function id(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),Oa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")vn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,vn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,o=u.nodeName;u[Ha]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&vn(e.ownerDocument.body);l=n}while(l);Oa(t)}function cd(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 ts(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":ts(l),ii(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function a0(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[Ha])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function n0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zt(e.nextSibling),e===null))return null;return e}function sd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function ls(e){return e.data==="$?"||e.data==="$~"}function as(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function u0(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 zt(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 ns=null;function od(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function rd(e,t,l){switch(t=Cu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function vn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ii(e)}var At=new Map,dd=new Set;function Uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ll=D.d;D.d={f:i0,r:c0,D:s0,C:o0,L:f0,m:r0,X:m0,S:d0,M:h0};function i0(){var e=ll.f(),t=Tu();return e||t}function c0(e){var t=Wl(e);t!==null&&t.tag===5&&t.type==="form"?Af(t):ll.r(e)}var za=typeof document>"u"?null:document;function md(e,t,l){var a=za;if(a&&typeof t=="string"&&t){var n=St(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),dd.has(n)||(dd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function s0(e){ll.D(e),md("dns-prefetch",e,null)}function o0(e,t){ll.C(e,t),md("preconnect",e,t)}function f0(e,t,l){ll.L(e,t,l);var a=za;if(a&&e&&t){var n='link[rel="preload"][as="'+St(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+St(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+St(l.imageSizes)+'"]')):n+='[href="'+St(e)+'"]';var u=n;switch(t){case"style":u=Aa(e);break;case"script":u=Da(e)}At.has(u)||(e=B({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),At.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(yn(u))||t==="script"&&a.querySelector(Sn(u))||(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function r0(e,t){ll.m(e,t);var l=za;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+St(a)+'"][href="'+St(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Da(e)}if(!At.has(u)&&(e=B({rel:"modulepreload",href:e},t),At.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Sn(u)))return}a=l.createElement("link"),Ie(a,"link",e),Ve(a),l.head.appendChild(a)}}}function d0(e,t,l){ll.S(e,t,l);var a=za;if(a&&e){var n=Fl(a).hoistableStyles,u=Aa(e);t=t||"default";var c=n.get(u);if(!c){var o={loading:0,preload:null};if(c=a.querySelector(yn(u)))o.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":t},l),(l=At.get(u))&&us(e,l);var d=c=a.createElement("link");Ve(d),Ie(d,"link",e),d._p=new Promise(function(S,A){d.onload=S,d.onerror=A}),d.addEventListener("load",function(){o.loading|=1}),d.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ru(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:o},n.set(u,c)}}}function m0(e,t){ll.X(e,t);var l=za;if(l&&e){var a=Fl(l).hoistableScripts,n=Da(e),u=a.get(n);u||(u=l.querySelector(Sn(n)),u||(e=B({src:e,async:!0},t),(t=At.get(n))&&is(e,t),u=l.createElement("script"),Ve(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function h0(e,t){ll.M(e,t);var l=za;if(l&&e){var a=Fl(l).hoistableScripts,n=Da(e),u=a.get(n);u||(u=l.querySelector(Sn(n)),u||(e=B({src:e,async:!0,type:"module"},t),(t=At.get(n))&&is(e,t),u=l.createElement("script"),Ve(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function hd(e,t,l,a){var n=(n=xe.current)?Uu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Aa(l.href),l=Fl(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=Aa(l.href);var u=Fl(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(yn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),At.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},At.set(e,l),u||x0(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Da(l),l=Fl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Aa(e){return'href="'+St(e)+'"'}function yn(e){return'link[rel="stylesheet"]['+e+"]"}function xd(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function x0(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}),Ie(t,"link",l),Ve(t),e.head.appendChild(t))}function Da(e){return'[src="'+St(e)+'"]'}function Sn(e){return"script[async]"+e}function gd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+St(l.href)+'"]');if(a)return t.instance=a,Ve(a),a;var n=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ve(a),Ie(a,"style",n),Ru(a,l.precedence,e),t.instance=a;case"stylesheet":n=Aa(l.href);var u=e.querySelector(yn(n));if(u)return t.state.loading|=4,t.instance=u,Ve(u),u;a=xd(l),(n=At.get(n))&&us(a,n),u=(e.ownerDocument||e).createElement("link"),Ve(u);var c=u;return c._p=new Promise(function(o,d){c.onload=o,c.onerror=d}),Ie(u,"link",a),t.state.loading|=4,Ru(u,l.precedence,e),t.instance=u;case"script":return u=Da(l.src),(n=e.querySelector(Sn(u)))?(t.instance=n,Ve(n),n):(a=l,(n=At.get(u))&&(a=B({},l),is(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ve(n),Ie(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ru(a,l.precedence,e));return t.instance}function Ru(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var o=a[c];if(o.dataset.precedence===t)u=o;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function us(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qu=null;function pd(e,t,l){if(qu===null){var a=new Map,n=qu=new Map;n.set(l,a)}else n=qu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ha]||u[Je]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var o=a.get(c);o?o.push(u):a.set(c,[u])}}return a}function bd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function g0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function p0(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=Aa(a.href),u=t.querySelector(yn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Hu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ve(u);return}u=t.ownerDocument||t,a=xd(a),(n=At.get(n))&&us(a,n),u=u.createElement("link"),Ve(u);var c=u;c._p=new Promise(function(o,d){c.onload=o,c.onerror=d}),Ie(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Hu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var cs=0;function b0(e,t){return e.stylesheets&&e.count===0&&Yu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&cs===0&&(cs=62500*Ih());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>cs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bu=null;function Yu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bu=new Map,t.forEach(v0,e),Bu=null,Hu.call(e))}function v0(e,t){if(!(t.state.loading&4)){var l=Bu.get(e);if(l)var a=l.get(null);else{l=new Map,Bu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Hu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Nn={$$typeof:w,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function y0(e,t,l,a,n,u,c,o,d){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=li(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=li(0),this.hiddenUpdates=li(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function yd(e,t,l,a,n,u,c,o,d,S,A,R){return e=new y0(e,t,l,c,d,S,A,R,o),t=1,u===!0&&(t|=24),u=ht(3,null,null,t),e.current=u,u.stateNode=e,t=wi(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Zi(u),e}function Sd(e){return e?(e=ca,e):ca}function Nd(e,t,l,a,n,u){n=Sd(n),a.context===null?a.context=n:a.pendingContext=n,a=rl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=dl(e,a,t),l!==null&&(ot(l,e,t),Pa(l,e,t))}function jd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ss(e,t){jd(e,t),(e=e.alternate)&&jd(e,t)}function Td(e){if(e.tag===13||e.tag===31){var t=Rl(e,67108864);t!==null&&ot(t,e,67108864),ss(e,67108864)}}function _d(e){if(e.tag===13||e.tag===31){var t=vt();t=ai(t);var l=Rl(e,t);l!==null&&ot(l,e,t),ss(e,t)}}var Gu=!0;function S0(e,t,l,a){var n=v.T;v.T=null;var u=D.p;try{D.p=2,os(e,t,l,a)}finally{D.p=u,v.T=n}}function N0(e,t,l,a){var n=v.T;v.T=null;var u=D.p;try{D.p=8,os(e,t,l,a)}finally{D.p=u,v.T=n}}function os(e,t,l,a){if(Gu){var n=fs(a);if(n===null)$c(e,t,a,wu,l),Ed(e,a);else if(T0(n,e,t,l,a))a.stopPropagation();else if(Ed(e,a),t&4&&-1<j0.indexOf(e)){for(;n!==null;){var u=Wl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Al(u.pendingLanes);if(c!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;c;){var d=1<<31-dt(c);o.entanglements[1]|=d,c&=~d}Yt(u),(_e&6)===0&&(Nu=ft()+500,gn(0))}}break;case 31:case 13:o=Rl(u,2),o!==null&&ot(o,u,2),Tu(),ss(u,2)}if(u=fs(a),u===null&&$c(e,t,a,wu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else $c(e,t,a,null,l)}}function fs(e){return e=di(e),rs(e)}var wu=null;function rs(e){if(wu=null,e=$l(e),e!==null){var t=T(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=E(t),e!==null)return e;e=null}else if(l===31){if(e=_(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 wu=e,null}function Md(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(sm()){case Cs:return 2;case Us:return 8;case An:case om:return 32;case Rs:return 268435456;default:return 32}default:return 32}}var ds=!1,jl=null,Tl=null,_l=null,jn=new Map,Tn=new Map,Ml=[],j0="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 Ed(e,t){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":_l=null;break;case"pointerover":case"pointerout":jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tn.delete(t.pointerId)}}function _n(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Wl(t),t!==null&&Td(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function T0(e,t,l,a,n){switch(t){case"focusin":return jl=_n(jl,e,t,l,a,n),!0;case"dragenter":return Tl=_n(Tl,e,t,l,a,n),!0;case"mouseover":return _l=_n(_l,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return jn.set(u,_n(jn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Tn.set(u,_n(Tn.get(u)||null,e,t,l,a,n)),!0}return!1}function zd(e){var t=$l(e.target);if(t!==null){var l=T(t);if(l!==null){if(t=l.tag,t===13){if(t=E(l),t!==null){e.blockedOn=t,ws(e.priority,function(){_d(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,ws(e.priority,function(){_d(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 Xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=fs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ri=a,l.target.dispatchEvent(a),ri=null}else return t=Wl(l),t!==null&&Td(t),e.blockedOn=l,!1;t.shift()}return!0}function Ad(e,t,l){Xu(e)&&l.delete(t)}function _0(){ds=!1,jl!==null&&Xu(jl)&&(jl=null),Tl!==null&&Xu(Tl)&&(Tl=null),_l!==null&&Xu(_l)&&(_l=null),jn.forEach(Ad),Tn.forEach(Ad)}function Lu(e,t){e.blockedOn===t&&(e.blockedOn=null,ds||(ds=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,_0)))}var Qu=null;function Dd(e){Qu!==e&&(Qu=e,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Qu===e&&(Qu=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(rs(a||l)===null)continue;break}var u=Wl(l);u!==null&&(e.splice(t,3),t-=3,fc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Oa(e){function t(d){return Lu(d,e)}jl!==null&&Lu(jl,e),Tl!==null&&Lu(Tl,e),_l!==null&&Lu(_l,e),jn.forEach(t),Tn.forEach(t);for(var l=0;l<Ml.length;l++){var a=Ml[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ml.length&&(l=Ml[0],l.blockedOn===null);)zd(l),l.blockedOn===null&&Ml.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[at]||null;if(typeof u=="function")c||Dd(l);else if(c){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[at]||null)o=c.formAction;else if(rs(n)!==null)continue}else o=c.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),Dd(l)}}}function Od(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ms(e){this._internalRoot=e}Zu.prototype.render=ms.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=vt();Nd(l,a,e,t,null,null)},Zu.prototype.unmount=ms.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nd(e.current,2,null,e,null,null),Tu(),t[Jl]=null}};function Zu(e){this._internalRoot=e}Zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gs();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ml.length&&t!==0&&t<Ml[l].priority;l++);Ml.splice(l,0,e),l===0&&zd(e)}};var Cd=s.version;if(Cd!=="19.2.4")throw Error(r(527,Cd,"19.2.4"));D.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?U(e):null,e=e===null?null:e.stateNode,e};var M0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:v,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vu.isDisabled&&Vu.supportsFiber)try{Ua=Vu.inject(M0),rt=Vu}catch{}}return En.createRoot=function(e,t){if(!g(e))throw Error(r(299));var l=!1,a="",n=Gf,u=wf,c=Xf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=yd(e,1,!1,null,null,l,a,null,n,u,c,Od),e[Jl]=t.current,Jc(e),new ms(t)},En.hydrateRoot=function(e,t,l){if(!g(e))throw Error(r(299));var a=!1,n="",u=Gf,c=wf,o=Xf,d=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),t=yd(e,1,!0,t,l??null,a,n,d,u,c,o,Od),t.context=Sd(null),l=t.current,a=vt(),a=ai(a),n=rl(a),n.callback=null,dl(l,n,a),l=a,t.current.lanes=l,qa(t,l),Yt(t),e[Jl]=t.current,Jc(e),new Zu(t)},En.version="19.2.4",En}var Ld;function Y0(){if(Ld)return gs.exports;Ld=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(s){console.error(s)}}return f(),gs.exports=B0(),gs.exports}var G0=Y0();const kl="/dashboard";function Qd(){const f=window.location.pathname;return f===kl||f===kl+"/"?"/":f.startsWith(kl+"/")?f.slice(kl.length):f||"/"}function Zd(f){return f==="/"||f===""?kl+"/":kl+(f.startsWith("/")?f:"/"+f)}typeof document<"u"&&!window.__dashboardRouterInstalled&&(window.__dashboardRouterInstalled=!0,document.addEventListener("click",f=>{var r,g;if(f.defaultPrevented||f.button!==0||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey)return;const s=(g=(r=f.target)==null?void 0:r.closest)==null?void 0:g.call(r,"a");if(!s)return;const m=s.getAttribute("href");m&&(s.hasAttribute("target")||s.hasAttribute("download")||m.startsWith(kl)&&(f.preventDefault(),m!==window.location.pathname+window.location.search&&window.history.pushState({},"",m),window.dispatchEvent(new Event("dashboard:navigate"))))}),window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("dashboard:navigate"))}));function Pd(){const[f,s]=K.useState(Qd());return K.useEffect(()=>{const m=()=>s(Qd());return window.addEventListener("popstate",m),window.addEventListener("dashboard:navigate",m),()=>{window.removeEventListener("popstate",m),window.removeEventListener("dashboard:navigate",m)}},[]),f}function w0({onLogin:f,error:s}){const[m,r]=K.useState(""),[g,T]=K.useState(!1),E=K.useRef(null),_=K.useRef(!0);K.useEffect(()=>{_.current=!0;const p=()=>{if(!_.current)return;const U=3e3+Math.random()*9e3;E.current=setTimeout(()=>{if(!_.current)return;T(!0);const B=150+Math.random()*450;E.current=setTimeout(()=>{_.current&&(T(!1),p())},B)},U)};return p(),()=>{_.current=!1,E.current&&clearTimeout(E.current)}},[]);const N=p=>{p.preventDefault(),m.trim()&&f(m.trim())};return i.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:i.jsxs("div",{className:"w-full max-w-sm rounded-xl border border-border bg-card p-8 text-center shadow-2xl",children:[i.jsx("div",{className:`crt-logo mx-auto mb-4${g?" crt-logo--glitch":""}`,style:{width:"fit-content"},children:i.jsx("img",{src:"/dashboard/assets/gossip-mini.png",alt:"gossipcat",className:"crt-logo-img h-56 w-56 object-contain drop-shadow-[0_0_28px_rgba(139,92,246,0.45)]"})}),i.jsx("p",{className:"mb-1 text-[30px] font-bold tracking-tight text-foreground",style:{fontFamily:"'Space Grotesk', system-ui, sans-serif",letterSpacing:"-0.02em",textShadow:"0 0 24px rgba(139,92,246,0.4)"},children:"Gossipcat"}),i.jsx("p",{className:"mb-6 text-sm text-muted-foreground",children:"Authenticate to access the dashboard"}),i.jsxs("form",{onSubmit:N,children:[i.jsx("input",{type:"password",value:m,onChange:p=>r(p.target.value),placeholder:"Dashboard key",autoFocus:!0,className:"w-full rounded-lg border border-border bg-background px-4 py-3 font-mono text-sm text-foreground outline-none placeholder:text-muted-foreground focus:border-primary focus:ring-2 focus:ring-primary/20"}),i.jsx("button",{type:"submit",className:"mt-4 w-full rounded-lg bg-primary px-4 py-3 text-sm font-semibold text-primary-foreground transition hover:opacity-90",children:"Unlock"})]}),s&&i.jsx("p",{className:"mt-3 text-sm text-destructive",children:"Invalid key. Check your terminal for the correct key."})]})})}let lt=null,Ku=3e3,ys=null;const Ms=new Set;function em(){if((lt==null?void 0:lt.readyState)===WebSocket.OPEN||(lt==null?void 0:lt.readyState)===WebSocket.CONNECTING)return;const f=location.protocol==="https:"?"wss:":"ws:";lt=new WebSocket(`${f}//${location.host}/dashboard/ws`),lt.onopen=()=>{Ku=3e3},lt.onmessage=s=>{try{const m=JSON.parse(s.data);Ms.forEach(r=>r(m))}catch{}},lt.onclose=()=>{lt=null,ys&&clearTimeout(ys),ys=setTimeout(()=>{Ku=Math.min(Ku*1.5,3e4),em()},Ku)},lt.onerror=()=>{}}function tm(f){return Ms.add(f),()=>Ms.delete(f)}function X0(){return(lt==null?void 0:lt.readyState)??WebSocket.CLOSED}const L0=[{to:"/",label:"Dashboard",match:f=>f==="/"},{to:"/team",label:"Team",match:f=>f==="/team"||f.startsWith("/agent/")},{to:"/debates",label:"Debates",match:f=>f==="/debates"},{to:"/tasks",label:"Tasks",match:f=>f==="/tasks"},{to:"/logs",label:"Logs",match:f=>f==="/logs"}];function Vd(){const[f,s]=K.useState(!1),m=Pd();return K.useEffect(()=>{const r=setInterval(()=>{s(X0()===WebSocket.OPEN)},2e3);return()=>clearInterval(r)},[]),i.jsxs("nav",{className:"relative flex items-center justify-between border-b border-border px-6 py-3.5",children:[i.jsxs("div",{className:"flex items-center gap-6",children:[i.jsxs("a",{href:Zd("/"),className:"flex items-center gap-3 leading-none",children:[i.jsx("img",{src:"/dashboard/assets/gossip-mini.png",alt:"",className:"h-10 w-10 object-contain"}),i.jsx("span",{className:"text-[17px] font-bold text-primary",children:"gossipcat"})]}),i.jsx("div",{className:"flex gap-1",children:L0.map(r=>{const g=r.match(m);return i.jsx("a",{href:Zd(r.to),className:`rounded-md px-3.5 py-1.5 font-mono text-[13px] transition ${g?"bg-primary/10 font-semibold text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"}`,children:r.label},r.to)})})]}),i.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-card px-3.5 py-1.5 font-mono text-xs text-muted-foreground",children:[i.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${f?"bg-confirmed shadow-[0_0_6px_rgba(52,211,153,0.5)]":"bg-destructive"}`}),f?"Connected":"Disconnected"]}),i.jsx("span",{className:"pointer-events-none absolute inset-x-0 -bottom-px h-px bg-gradient-to-r from-transparent via-primary/15 to-transparent"})]})}function Q0(f){let s=f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");s=s.replace(/```(\w*)\n?([\s\S]*?)```/g,(T,E,_)=>`<pre class="md-code-block"><code>${_.trimEnd()}</code></pre>`),s=s.replace(/`([^`\n]+)`/g,'<code class="md-inline-code">$1</code>'),s=s.replace(/\*\*([^*\n]+)\*\*/g,"<strong>$1</strong>"),s=s.replace(/(^|[^*])\*([^*\n]+)\*(?!\*)/g,"$1<em>$2</em>");const m=s.split(`
|
|
50
|
+
`),r=[];let g=!1;for(let T=0;T<m.length;T++){const E=m[T],_=E.match(/^###\s+(.+)$/),N=E.match(/^##\s+(.+)$/),p=E.match(/^#\s+(.+)$/);if(_){g&&(r.push("</ul>"),g=!1),r.push(`<h3 class="md-h3">${_[1]}</h3>`);continue}if(N){g&&(r.push("</ul>"),g=!1),r.push(`<h2 class="md-h2">${N[1]}</h2>`);continue}if(p){g&&(r.push("</ul>"),g=!1),r.push(`<h1 class="md-h1">${p[1]}</h1>`);continue}const U=E.match(/^(\s*)[*-]\s+(.+)$/);if(U){g||(r.push('<ul class="md-list">'),g=!0),r.push(`<li>${U[2]}</li>`);continue}if(E.trim()===""){g&&(r.push("</ul>"),g=!1),r.push("");continue}g&&(r.push("</ul>"),g=!1),r.push(E)}return g&&r.push("</ul>"),r.join(`
|
|
51
|
+
`)}function Ju(f){let s=f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");return s=s.replace(/^\[(FINDING|SUGGESTION|INSIGHT)\]\s*/i,""),s=s.replace(/<agent_finding[^&]*>/g,""),s=s.replace(/<\/agent_finding>/g,""),s=s.replace(/<cite\s+tag="file">([^&]+)<\/cite>/g,'<code class="cite-file">$1</code>'),s=s.replace(/<cite\s+tag="fn">([^&]+)<\/cite>/g,'<code class="cite-fn">$1</code>'),s=s.replace(/<fn>([^&]+)<\/fn>/g,'<code class="cite-fn">$1</code>'),s=s.replace(/```(\w*)\n?([\s\S]*?)```/g,'<pre class="inline-code-block"><code>$2</code></pre>'),s=s.replace(/`([^`]+)`/g,'<code class="inline-code">$1</code>'),s=s.replace(/\*\*([^*\n]+)\*\*/g,'<strong class="font-semibold text-foreground">$1</strong>'),s=s.replace(/(^|[^*])\*([^*\n]+)\*(?!\*)/g,"$1<em>$2</em>"),s}function Dt(f){const s=Date.now(),m=typeof f=="string"?new Date(f).getTime():f,r=Math.max(0,Math.floor((s-m)/1e3));return r<60?"just now":r<3600?Math.floor(r/60)+"m ago":r<86400?Math.floor(r/3600)+"h ago":Math.floor(r/86400)+"d ago"}function lm(f){if(!f)return"—";const s=Math.round(f/1e3);return s<60?s+"s":Math.floor(s/60)+"m "+s%60+"s"}function Z0(f){const s=f.split("-");return s.length>=2?(s[0][0]+s[1][0]).toUpperCase():f.slice(0,2).toUpperCase()}const Kd=["#8b5cf6","#06b6d4","#f97316","#34d399","#f43f5e","#fbbf24","#60a5fa","#e879f9"];function $u(f){let s=0;for(let m=0;m<f.length;m++)s=s*31+f.charCodeAt(m)>>>0;return Kd[s%Kd.length]}function V0(f){return f<1e3?`${f}ms`:f<6e4?`${(f/1e3).toFixed(1)}s`:`${(f/6e4).toFixed(1)}m`}function ku({value:f,unit:s,label:m,valueClass:r,pulse:g}){return i.jsxs("div",{className:"flex flex-col items-center py-4 px-3 text-center",children:[i.jsxs("div",{className:"flex items-baseline gap-1",children:[g&&i.jsxs("span",{className:"relative mr-1 inline-flex h-2 w-2",children:[i.jsx("span",{className:"absolute inline-flex h-2 w-2 animate-ping rounded-full bg-unverified/60"}),i.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-unverified"})]}),i.jsx("span",{className:`font-mono text-2xl font-bold leading-none ${r}`,children:f}),s&&i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:s})]}),i.jsx("div",{className:"mt-1.5 text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:m})]})}function K0({overview:f,activeTasks:s}){const m=f.relayCount+f.nativeCount,r=f.tasksCompleted+f.tasksFailed>0?Math.round(f.tasksCompleted/(f.tasksCompleted+f.tasksFailed)*100):100,g=f.totalFindings>0?Math.round(f.confirmedFindings/f.totalFindings*100):0;return i.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-border bg-primary/[0.03] px-3.5 py-3",children:[i.jsx("div",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-primary",children:"System Pulse"}),i.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-[10px] text-confirmed",children:[i.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-confirmed shadow-[0_0_6px_rgba(52,211,153,0.5)]"}),"LIVE"]})]}),i.jsxs("div",{className:"relative grid grid-cols-2 border-b border-border",children:[i.jsx("span",{className:"pointer-events-none absolute left-0 right-0 top-1/2 h-px bg-border"}),i.jsx("span",{className:"pointer-events-none absolute bottom-0 left-1/2 top-0 w-px bg-border"}),i.jsx(ku,{value:f.agentsOnline,unit:`/${m}`,label:"Agents Online",valueClass:"text-confirmed"}),i.jsx(ku,{value:s,label:"Active Tasks",valueClass:s>0?"text-unverified":"text-muted-foreground",pulse:s>0}),i.jsx(ku,{value:f.consensusRuns,label:"Consensus",valueClass:"text-primary"}),i.jsx(ku,{value:`${g}%`,label:"Confirmed",valueClass:"text-confirmed"})]}),i.jsxs("div",{className:"px-3.5 py-3",children:[i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"tasks completed"}),i.jsx("span",{className:"font-semibold text-foreground tabular-nums",children:f.tasksCompleted})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"signals total"}),i.jsx("span",{className:"font-semibold text-foreground tabular-nums",children:f.totalSignals})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"actionable"}),i.jsx("span",{className:"font-semibold text-unverified tabular-nums",children:f.actionableFindings})]}),f.tasksFailed>0&&i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"tasks failed"}),i.jsx("span",{className:"font-semibold text-destructive tabular-nums",children:f.tasksFailed})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"avg duration"}),i.jsx("span",{className:"font-semibold text-foreground tabular-nums",children:V0(f.avgDurationMs)})]}),i.jsxs("div",{className:"flex items-center justify-between py-1 font-mono text-[11px]",children:[i.jsx("span",{className:"text-muted-foreground",children:"success rate"}),i.jsxs("span",{className:`font-semibold tabular-nums ${r>=95?"text-confirmed":r>=80?"text-unverified":"text-destructive"}`,children:[r,"%"]})]})]}),i.jsx(k0,{hourly:f.hourlyActivity||[]}),f.lastConsensusTimestamp&&i.jsxs("div",{className:"border-t border-border px-3.5 py-2 font-mono text-[10px] text-muted-foreground/60",children:["last consensus ",Dt(f.lastConsensusTimestamp)]})]})}function k0({hourly:f}){const s=f.length===12?f:new Array(12).fill(0),m=Math.max(1,...s);return i.jsxs("div",{className:"border-t border-border bg-primary/[0.02] px-3.5 py-3",children:[i.jsx("div",{className:"mb-2 font-mono text-[9px] font-bold uppercase tracking-widest text-muted-foreground/60",children:"Activity Last 12h"}),i.jsx("div",{className:"flex h-6 items-end gap-0.5",children:s.map((r,g)=>{const T=11-g,E=r/m*100,_=g===11,N=T===0?"last hour":`${T}h ago`;return i.jsx("div",{className:`relative flex-1 cursor-pointer rounded-sm transition-opacity hover:opacity-100 ${_?"bg-primary opacity-90":"bg-primary opacity-40"}`,style:{height:`${Math.max(8,E)}%`},"data-tooltip":`${N}
|
|
52
|
+
${r} task${r===1?"":"s"}`,"data-tooltip-pos":"bottom"},g)})}),i.jsxs("div",{className:"mt-1 flex justify-between font-mono text-[9px] text-muted-foreground/40",children:[i.jsx("span",{children:"12h ago"}),i.jsx("span",{children:"now"})]})]})}function J0({agents:f}){const s=f.filter(m=>m.scores.circuitOpen);return s.length===0?null:i.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[i.jsxs("div",{className:"flex items-center justify-between border-b border-border bg-destructive/[0.04] px-3.5 py-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"inline-flex h-4 w-4 items-center justify-center rounded-sm bg-destructive/15 font-mono text-[11px] font-bold text-destructive",children:"!"}),i.jsx("span",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-destructive",children:"Benched Agents"})]}),i.jsx("span",{className:"rounded-full border border-destructive/20 bg-destructive/10 px-2 py-0.5 font-mono text-xs font-bold text-destructive",children:s.length})]}),i.jsx("div",{children:s.map((m,r)=>{var T;const g=(T=m.lastTask)!=null&&T.timestamp?Dt(m.lastTask.timestamp):"";return i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(m.id)}`,className:`block px-3.5 py-3 transition hover:bg-destructive/[0.03] ${r>0?"border-t border-border/40":""}`,children:[i.jsxs("div",{className:"mb-1 flex items-center gap-2.5",children:[i.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-destructive shadow-[0_0_6px_rgba(248,113,113,0.6)]"}),i.jsx("span",{className:"text-sm font-semibold text-foreground",children:m.id})]}),i.jsxs("div",{className:"flex items-center justify-between pl-4 font-mono text-[10px] text-muted-foreground",children:[i.jsxs("span",{children:[m.scores.consecutiveFailures," consecutive fails"]}),g&&i.jsx("span",{className:"text-muted-foreground/50",children:g})]})]},m.id)})})]})}const zs="/dashboard/api";async function Rt(f,s){const m=await fetch(`${zs}/${f}`,{credentials:"include",...s});if(m.status===401)throw new Error("unauthorized");if(!m.ok)throw new Error(`API error: ${m.status}`);return m.json()}async function $0(f){return(await fetch(`${zs}/auth`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:f})})).ok}async function W0(){try{return(await fetch(`${zs}/overview`,{credentials:"include"})).ok}catch{return!1}}const F0=7200*1e3;function I0(f){const s=Date.now()-new Date(f).getTime();return s<0?"0s":s<6e4?`${Math.floor(s/1e3)}s`:s<36e5?`${Math.floor(s/6e4)}m ${Math.floor(s%6e4/1e3)}s`:`${Math.floor(s/36e5)}h ${Math.floor(s%36e5/6e4)}m`}function P0({onCountChange:f}){const[s,m]=K.useState([]),[,r]=K.useState(0);K.useEffect(()=>{let _=!1;const N=async()=>{var U;try{const B=await Rt("active-tasks");_||(m(B.tasks||[]),f==null||f(((U=B.tasks)==null?void 0:U.length)||0))}catch{}};N();const p=setInterval(N,5e3);return()=>{_=!0,clearInterval(p)}},[f]),K.useEffect(()=>{if(s.length===0)return;const _=setInterval(()=>r(N=>N+1),1e3);return()=>clearInterval(_)},[s.length]);const g=Date.now(),T=s.filter(_=>g-new Date(_.startedAt).getTime()<F0),E=s.length-T.length;return T.length===0?null:i.jsxs("div",{className:"rounded-lg border border-unverified/20 bg-unverified/5 px-4 py-2.5",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-unverified"}),i.jsxs("span",{className:"font-mono text-xs font-bold text-unverified",children:[T.length," active"]}),E>0&&i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:["+ ",E," stale"]})]}),i.jsx("div",{className:"max-h-40 space-y-1 overflow-y-auto",children:T.map(_=>i.jsxs("div",{className:"grid items-center gap-3",style:{gridTemplateColumns:"minmax(120px, auto) 1fr auto"},children:[i.jsx("span",{className:"font-mono text-[11px] font-semibold text-foreground truncate",children:_.agentId}),i.jsx("span",{className:"min-w-0 truncate text-[11px] text-muted-foreground",children:_.task}),i.jsx("span",{className:"font-mono text-[11px] text-unverified whitespace-nowrap",children:I0(_.startedAt)})]},_.taskId))})]})}const Ss=5,Ns={agreement:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},consensus_verified:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},disagreement:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},hallucination_caught:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},unverified:{label:"UNVERIFIED",filter:"unverified",cls:"text-unverified bg-unverified/10"},unique_confirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},unique_unconfirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},new_finding:{label:"NEW",filter:"unique",cls:"text-unique bg-unique/10"}},kd=[{key:"all",label:"All",cls:"text-muted-foreground border-border/40 hover:border-border/60",activeCls:"text-foreground bg-muted border-border"},{key:"confirmed",label:"Confirmed",cls:"text-confirmed/50 border-confirmed/20 hover:border-confirmed/40",activeCls:"text-confirmed bg-confirmed/10 border-confirmed/40"},{key:"unique",label:"Unique",cls:"text-unique/50 border-unique/20 hover:border-unique/40",activeCls:"text-unique bg-unique/10 border-unique/40"},{key:"disputed",label:"Disputed",cls:"text-disputed/50 border-disputed/20 hover:border-disputed/40",activeCls:"text-disputed bg-disputed/10 border-disputed/40"},{key:"unverified",label:"Unverified",cls:"text-unverified/50 border-unverified/20 hover:border-unverified/40",activeCls:"text-unverified bg-unverified/10 border-unverified/40"},{key:"insight",label:"Insight",cls:"text-zinc-500 border-zinc-500/20 hover:border-zinc-500/40",activeCls:"text-zinc-400 bg-zinc-500/10 border-zinc-500/40"}],ex={critical:"text-red-400 bg-red-500/10",high:"text-orange-400 bg-orange-500/10",medium:"text-yellow-400 bg-yellow-500/10",low:"text-muted-foreground bg-muted/50"},tx="[&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:font-mono [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:font-mono [&_.cite-fn]:text-purple-400 [&_.inline-code]:rounded [&_.inline-code]:bg-muted [&_.inline-code]:px-1 [&_.inline-code]:py-0.5 [&_.inline-code]:font-mono [&_.inline-code]:text-[11px] [&_.inline-code]:text-foreground/80 [&_.inline-code-block]:my-1.5 [&_.inline-code-block]:block [&_.inline-code-block]:rounded [&_.inline-code-block]:bg-muted/70 [&_.inline-code-block]:p-2 [&_.inline-code-block]:font-mono [&_.inline-code-block]:text-[11px] [&_.inline-code-block]:text-foreground/70 [&_.inline-code-block]:overflow-x-auto";function lx({f}){const s=f.tag==="confirmed"?"text-confirmed bg-confirmed/10 border-confirmed/20":f.tag==="disputed"?"text-disputed bg-disputed/10 border-disputed/20":f.tag==="unverified"?"text-unverified bg-unverified/10 border-unverified/20":"text-unique bg-unique/10 border-unique/20",m=f.severity&&ex[f.severity]||"",r=f.findingType==="suggestion"?"💡 SUGGESTION":f.findingType==="insight"?"INSIGHT":null,g=f.findingType==="suggestion"?"text-blue-400 bg-blue-500/10":f.findingType==="insight"?"text-zinc-400 bg-zinc-500/10":"",T=f.finding.match(/<cite\s+tag="file">([^<]+)<\/cite>/),E=T?T[1]:null;return i.jsxs("div",{className:"rounded-md border border-border/30 bg-card/30 px-3 py-2.5",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[i.jsx("span",{className:`shrink-0 rounded border px-1.5 py-0.5 font-mono text-[9px] font-bold ${s}`,children:f.tag.toUpperCase()}),f.severity&&i.jsx("span",{className:`shrink-0 rounded px-1.5 py-0.5 font-mono text-[9px] font-bold ${m}`,children:f.severity.toUpperCase()}),r&&i.jsx("span",{className:`shrink-0 rounded px-1.5 py-0.5 font-mono text-[9px] font-bold ${g}`,children:r}),E&&i.jsx("span",{className:"rounded bg-blue-500/10 px-1.5 py-0.5 font-mono text-[9px] text-blue-400",children:E}),i.jsx("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground/40",children:f.originalAgentId}),f.confirmedBy&&f.confirmedBy.length>0&&(()=>{const _=[...new Set(f.confirmedBy)];return i.jsxs("span",{className:"cursor-help rounded px-1 py-0.5 font-mono text-[10px] text-confirmed/50 transition hover:bg-confirmed/10","data-tooltip":`Verified by:
|
|
53
|
+
${_.join(", ")}`,"data-tooltip-pos":"left",children:["+",_.length," ✓"]})})(),f.disputedBy&&f.disputedBy.length>0&&i.jsxs("span",{className:"cursor-help rounded px-1 py-0.5 font-mono text-[10px] text-disputed/50 transition hover:bg-disputed/10","data-tooltip":`Disputed by:
|
|
54
|
+
${f.disputedBy.map(_=>_.agentId).join(", ")}`,"data-tooltip-pos":"left",children:[f.disputedBy.length," ⚡"]})]}),f.disputedBy&&f.disputedBy.length>0&&i.jsx("div",{className:"mt-1.5 mb-1 rounded border border-disputed/10 bg-disputed/5 px-2.5 py-1.5",children:f.disputedBy.map((_,N)=>i.jsxs("div",{className:"text-[11px]",children:[i.jsx("span",{className:"font-mono font-bold text-disputed/70",children:_.agentId}),i.jsxs("span",{className:"text-muted-foreground/60",children:[" — ",_.reason||_.evidence||"No reason given"]})]},N))}),i.jsx("div",{className:`text-xs leading-relaxed text-muted-foreground ${tx}`,dangerouslySetInnerHTML:{__html:Ju(f.finding)}})]})}function am({consensus:f,reports:s,showAll:m=!1,hideHeader:r=!1}){const g=m?f.runs:f.runs.slice(0,Ss);!m&&f.runs.length>Ss;const[T,E]=K.useState(null),[_,N]=K.useState("all"),[p,U]=K.useState(1),[B,L]=K.useState([]),[se,fe]=K.useState(0),[me,Q]=K.useState(!1);K.useEffect(()=>{s!=null&&s.reports&&(L(s.reports),fe(s.totalReports??s.reports.length),U(1))},[s]),K.useEffect(()=>{if(!m)return;let G=!1;return(async()=>{var le;try{const ce=await Rt("consensus-reports?page=1&pageSize=200");if(G)return;L(ce.reports||[]),fe(ce.totalReports??(((le=ce.reports)==null?void 0:le.length)||0)),U(1)}catch{}})(),()=>{G=!0}},[m]);const J=B.slice().sort((G,le)=>le.timestamp.localeCompare(G.timestamp)),he=10,[w,ie]=K.useState(0),z=Math.max(1,Math.ceil(J.length/he)),te=Math.min(w,z-1),Y=m?J.slice(te*he,(te+1)*he):J.slice(0,Ss),$=G=>{const le=new Date,ce=new Date(G),X=q=>new Date(q.getFullYear(),q.getMonth(),q.getDate()).getTime(),W=Math.round((X(le)-X(ce))/864e5);return W<=0?"Today":W===1?"Yesterday":W<7?`${W} days ago`:W<30?`${Math.floor(W/7)} weeks ago`:ce.toISOString().slice(0,10)};return i.jsxs("section",{children:[!r&&i.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["Consensus Rounds ",i.jsx("span",{className:"text-primary",children:f.runs.length})]}),!m&&i.jsx("a",{href:"/dashboard/debates",className:"font-mono text-xs text-muted-foreground transition hover:text-primary",children:"view all"})]}),Y.length>0?i.jsxs("div",{className:"space-y-2",children:[Y.map((G,le)=>{const ce=le>0?Y[le-1]:null,X=m?$(G.timestamp):null,W=m&&ce?$(ce.timestamp):null,q=m&&X!==W,I=[...G.confirmed,...G.disputed,...G.unverified,...G.unique,...G.insights||[]],v=_==="all"?I:_==="insight"?I.filter(ee=>ee.findingType==="insight"||ee.findingType==="suggestion"):I.filter(ee=>ee.tag===_),D=T===G.id,Z=I.length||1,ae=G.confirmed.length,ge=G.disputed.length,h=G.unverified.length,O=G.unique.length,H=(G.insights||[]).length,V=(()=>{if(Z<=1)return"border-l-border/40";const ee=ae/Z,Oe=ge/Z;return ee>=.5?"border-l-confirmed/60":Oe>=.4?"border-l-disputed/60":"border-l-unverified/50"})(),ne=[{count:ae,cls:"bg-confirmed"},{count:ge,cls:"bg-disputed"},{count:h,cls:"bg-unverified"},{count:O,cls:"bg-unique"},{count:H,cls:"bg-zinc-500"}].filter(ee=>ee.count>0),xe=[{count:ae,textCls:"text-confirmed",label:"confirmed"},{count:ge,textCls:"text-disputed",label:"disputed"},{count:h,textCls:"text-unverified",label:"unverified"},{count:O,textCls:"text-unique",label:"unique"},{count:H,textCls:"text-zinc-400",label:"insights"}].filter(ee=>ee.count>0),Ne=[...new Set(I.map(ee=>ee.originalAgentId).filter(Boolean))].slice(0,5);return i.jsxs("div",{children:[q&&i.jsxs("div",{className:`mb-2 flex items-center gap-3 ${le>0?"mt-4":""}`,children:[i.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:X}),i.jsx("div",{className:"h-px flex-1 bg-border/30"})]}),i.jsxs("div",{className:`group rounded-md border-l-2 border border-border/40 transition-all duration-150
|
|
55
|
+
${V}
|
|
56
|
+
${D?"bg-card border-r-border/60 border-t-border/60 border-b-border/60":"bg-card/50 hover:bg-card/70 hover:border-r-border/60 hover:border-t-border/60 hover:border-b-border/60 hover:shadow-sm hover:shadow-black/20 hover:-translate-y-px"}`,children:[i.jsxs("button",{className:"flex w-full items-start gap-3 px-3 py-2.5 text-left",onClick:()=>E(D?null:G.id),children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-sm font-bold text-foreground",children:I.length}),i.jsx("span",{className:"text-[11px] text-muted-foreground/70",children:"findings"}),i.jsx("span",{className:"text-muted-foreground/30 text-[10px]",children:"·"}),i.jsxs("span",{className:"text-[11px] text-muted-foreground/60",children:[G.rounds,"r"]}),Ne.length>0&&i.jsxs("div",{className:"flex items-center gap-1 ml-1",children:[Ne.map(ee=>i.jsx("span",{title:ee,className:"inline-flex h-4 w-4 items-center justify-center rounded-full font-mono text-[8px] font-bold text-background",style:{backgroundColor:$u(ee)},children:Z0(ee)},ee)),I.length>0&&[...new Set(I.map(ee=>ee.originalAgentId).filter(Boolean))].length>5&&i.jsxs("span",{className:"font-mono text-[9px] text-muted-foreground/40",children:["+",[...new Set(I.map(ee=>ee.originalAgentId).filter(Boolean))].length-5]})]}),i.jsx("span",{className:"shrink-0 rounded border border-primary/20 bg-primary/5 px-1.5 py-0.5 font-mono text-[10px] font-semibold text-primary/90",title:G.id,children:G.id.slice(0,8)}),i.jsx("span",{className:"ml-auto font-mono text-[10px] text-muted-foreground/50 shrink-0",children:Dt(G.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex h-1 w-full overflow-hidden rounded-full bg-muted/20",children:ne.map((ee,Oe)=>i.jsx("div",{className:`${ee.cls} opacity-80`,style:{width:`${ee.count/Z*100}%`}},Oe))}),i.jsx("div",{className:"mt-1 flex items-center gap-3",children:xe.map(ee=>i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${ee.textCls}`,children:[ee.count," ",ee.label]},ee.label))})]}),i.jsx("span",{className:`mt-1 shrink-0 font-mono text-[10px] text-muted-foreground/40 transition-transform duration-150 ${D?"rotate-90 text-primary/60":"group-hover:text-muted-foreground/60"}`,children:"▸"})]}),D&&i.jsxs("div",{className:"border-t border-border/20 px-4 pb-4 pt-3",children:[i.jsx("div",{className:"mb-2 flex gap-2",children:kd.map(ee=>i.jsx("button",{onClick:()=>N(ee.key),className:`rounded-full border px-2.5 py-1 font-mono text-[10px] font-medium transition ${_===ee.key?ee.activeCls:ee.cls}`,children:ee.label},ee.key))}),i.jsx("div",{className:"space-y-2",children:v.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):v.map((ee,Oe)=>i.jsx(lx,{f:ee},Oe))})]})]})]},G.id)}),m&&z>1&&i.jsxs("div",{className:"flex items-center justify-center gap-3 pt-4 font-mono text-[11px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>ie(G=>Math.max(0,G-1)),disabled:te===0,className:"rounded-sm border border-border/40 bg-card px-3 py-1 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Prev"}),i.jsxs("span",{children:["Page ",te+1," of ",z]}),i.jsx("button",{onClick:()=>ie(G=>Math.min(z-1,G+1)),disabled:te>=z-1,className:"rounded-sm border border-border/40 bg-card px-3 py-1 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}):g.length===0?i.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:"No consensus runs yet."}):i.jsx("div",{className:"space-y-2",children:g.map((G,le)=>{const ce=G.counts,X=(ce.agreement||0)+(ce.disagreement||0)+(ce.hallucination||0)+(ce.unverified||0)+(ce.unique||0)+(ce.new||0),W=X||1,q=T===G.taskId,I=[{key:"confirmed",count:ce.agreement||0,color:"bg-confirmed",text:"text-confirmed",label:"confirmed"},{key:"disputed",count:(ce.disagreement||0)+(ce.hallucination||0),color:"bg-disputed",text:"text-disputed",label:"disputed"},{key:"unverified",count:ce.unverified||0,color:"bg-unverified",text:"text-unverified",label:"unverified"},{key:"unique",count:(ce.unique||0)+(ce.new||0),color:"bg-unique",text:"text-unique",label:"unique"}],v=G.signals.filter(D=>{if(D.signal==="signal_retracted")return!1;if(_==="all")return!!Ns[D.signal];const Z=Ns[D.signal];return Z&&Z.filter===_});return i.jsxs("div",{className:`rounded-md border bg-card transition ${q?"border-primary/25":"border-border"}`,children:[i.jsxs("button",{onClick:()=>E(q?null:G.taskId),className:"flex w-full items-center p-3 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`mr-3 font-mono text-xs text-muted-foreground transition ${q?"text-primary":""}`,children:q?"▾":"▸"}),i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"font-mono text-[10px] text-primary/50",children:G.taskId}),i.jsxs("span",{className:"font-mono text-sm font-semibold text-foreground",children:[X," findings"]}),i.jsxs("div",{className:"flex gap-1.5",children:[G.agents.slice(0,4).map(D=>i.jsx("span",{className:"rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:D.split("-").map(Z=>Z[0]).join("").toUpperCase().slice(0,2)},D)),G.agents.length>4&&i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground",children:["+",G.agents.length-4]})]})]}),i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Dt(G.timestamp)})]}),i.jsx("div",{className:"mt-2 flex gap-2",children:I.map(D=>D.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${D.text}`,children:[D.count," ",D.label]},D.key))}),i.jsx("div",{className:"mt-2 flex h-1.5 overflow-hidden rounded-sm",children:I.map(D=>D.count>0&&i.jsx("div",{className:`${D.color} transition-all`,style:{width:`${D.count/W*100}%`}},D.key))})]})]}),q&&i.jsxs("div",{className:"border-t border-border px-4 pb-3 pt-3",children:[i.jsx("div",{className:"mb-3 flex gap-1.5",children:kd.map(D=>i.jsx("button",{onClick:()=>N(D.key),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${_===D.key?D.activeCls:D.cls} hover:opacity-80`,children:D.label},D.key))}),v.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):i.jsx("div",{className:"space-y-2",children:v.map((D,Z)=>{const ae=Ns[D.signal];return ae?i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx("span",{className:`shrink-0 rounded-sm px-1.5 py-0.5 font-mono text-[9px] font-bold ${ae.cls}`,children:ae.label}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground [&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:font-mono [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:font-mono [&_.cite-fn]:text-purple-400",children:i.jsx("span",{dangerouslySetInnerHTML:{__html:Ju(D.evidence||"")}})}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[D.agentId,D.counterpartId?` + ${D.counterpartId}`:""]})]})]},Z):null})})]})]},G.taskId+le)})})]})}function ax(f){let s=0;for(let m=0;m<f.length;m++)s=(s<<5)-s+f.charCodeAt(m)|0;return Math.abs(s)}class nx{constructor(s){ke(this,"s");this.s=s}next(){return this.s=this.s*1103515245+12345&2147483647,this.s%1e4/1e4}range(s,m){return s+this.next()*(m-s)}}function tt(f,s){const m=parseInt(f.slice(1,3),16),r=parseInt(f.slice(3,5),16),g=parseInt(f.slice(5,7),16);return`rgba(${m},${r},${g},${Math.max(0,Math.min(1,s))})`}function ux(f){const s=Math.max(0,f);return Math.min(1.4,Math.pow(s/2e3,.55))}class ix{constructor(s,m,r,g,T,E,_=.5){ke(this,"ctx");ke(this,"size");ke(this,"accuracy");ke(this,"uniqueness");ke(this,"impact");ke(this,"colorHex");ke(this,"time",0);ke(this,"variant");ke(this,"scale");ke(this,"exp");ke(this,"particles",[]);ke(this,"baseRotation");ke(this,"armSeeds");ke(this,"binaryCenters");ke(this,"jetAxis");ke(this,"tailAngle");const N=s.getContext("2d");if(!N)throw new Error("Canvas 2D context unavailable");this.ctx=N,this.size=s.width/2,this.accuracy=Math.max(0,Math.min(1,g)),this.uniqueness=Math.max(0,Math.min(1,T)),this.impact=Math.max(0,Math.min(1,_)),this.colorHex=E;const p=ax(m);this.variant=p%12;const U=new nx(p),B=ux(r);this.exp=B,this.scale=.2+B*.95;const L=Math.max(3,Math.round(4+B*180));this._buildVariant(U,L),this.baseRotation=U.next()*Math.PI*2}_buildVariant(s,m){const r=this.variant;if(r===0){this.armSeeds=[];for(let T=0;T<2;T++)this.armSeeds.push(s.next()*Math.PI*2);for(let T=0;T<m;T++){const E=T%2,_=s.next(),N=this.armSeeds[E]+_*Math.PI*2.4,p=s.range(-.04,.04)*Math.PI*2,U=N+p,B=(.08+_*.38)*this.size*this.scale;this.particles.push(this._mkParticle(s,B,U,1,1))}}else if(r===1)for(let g=0;g<m;g++){const T=s.range(.34,.42)*this.size*this.scale,E=s.next()*Math.PI*2;this.particles.push(this._mkParticle(s,T,E,1,1))}else if(r===2){const g=[.16,.28,.42];for(let T=0;T<m;T++){const E=T%3,_=(g[E]+s.range(-.015,.015))*this.size*this.scale,N=s.next()*Math.PI*2;this.particles.push(this._mkParticle(s,_,N,1,1))}}else if(r===3){const g=.18*this.size*this.scale;this.binaryCenters=[{x:-g,y:0},{x:g,y:0}];for(let T=0;T<m;T++){const E=T%2,_=s.range(.04,.22)*this.size*this.scale,N=s.next()*Math.PI*2,p=this._mkParticle(s,_,N,1,1);p.binaryCore=E,p.angularVelocity*=E===0?1:-1,this.particles.push(p)}}else if(r===4)for(let g=0;g<m;g++){const T=s.range(.05,.32)*this.size*this.scale,E=s.next()*Math.PI*2,_=s.range(.7,1.3),N=s.range(.7,1.3),p=this._mkParticle(s,T,E,_,N);p.orbitTilt=s.range(0,Math.PI),this.particles.push(p)}else if(r===5){this.jetAxis=s.next()*Math.PI*2;const g=Math.floor(m*.7),T=m-g;for(let E=0;E<g;E++){const _=E%2===0?1:-1,N=s.next(),p=s.range(-.18,.18),U=this._mkParticle(s,N*.44*this.size*this.scale,0,1,1);U.jetSide=_,U.jetProgress=N,U.jetSpread=p,U.jetSpeed=s.range(.15,.35)*.001,U.size=s.range(.6,1.4),this.particles.push(U)}for(let E=0;E<T;E++){const _=s.range(.35,.42)*this.size*this.scale,N=s.next()*Math.PI*2,p=this._mkParticle(s,_,N,1,1);p.isDisk=!0,p.brightness*=.35,this.particles.push(p)}}else if(r===6)for(let g=0;g<m;g++){const T=s.next()*Math.PI*2,E=s.range(.05,.45)*this.size*this.scale,_=this._mkParticle(s,E,T,1,1);_.isNebula=!0,_.driftAngle=s.next()*Math.PI*2,_.driftSpeed=s.range(6e-4,.0014),_.driftPhase=s.next()*Math.PI*2,_.size=s.range(.8,2.2),_.brightness*=.6,this.particles.push(_)}else if(r===7){this.tailAngle=s.next()*Math.PI*2;const g=.1*this.size*this.scale,T=Math.floor(m*.3);for(let _=0;_<T;_++){const N=s.range(0,g),p=s.next()*Math.PI*2,U=this._mkParticle(s,N,p,1,1);U.size=s.range(.8,1.8),this.particles.push(U)}const E=m-T;for(let _=0;_<E;_++){const N=s.next(),p=g+N*.26*this.size*this.scale,U=(1-N*.5)*s.range(-.05,.05)*this.size*this.scale,B=this._mkParticle(s,0,0,1,1);B.isComet=!0,B.cometTailDist=p,B.cometPerp=U,B.cometT=N,B.brightness*=1-N*.6,B.size=(1-N*.5)*s.range(.6,1.2),this.particles.push(B)}}else if(r===8)for(let g=0;g<m;g++){const T=g%3,E=s.range(.3,.42)*this.size*this.scale,_=s.next()*Math.PI*2,N=this._mkParticle(s,E,_,1,1);N.gyroPlane=T,N.gyroAxis=T===0?"z":T===1?"x":"y",this.particles.push(N)}else if(r===9)for(let g=0;g<m;g++){const T=s.range(.06,.42)*this.size*this.scale,_=T/(.42*this.size*this.scale)*4*Math.PI+s.range(-.2,.2),N=this._mkParticle(s,T,_,1,1);N.isMaelstrom=!0,this.particles.push(N)}else if(r===10)for(let g=0;g<m;g++){const T=g/m,E=s.range(.35,.4)*this.size*this.scale,_=T*Math.PI*2+s.range(-.03,.03),N=this._mkParticle(s,E,_,1,1);N.ouroT=T,this.particles.push(N)}else for(let g=0;g<m;g++){const T=g%2,E=s.next(),_=this._mkParticle(s,0,0,1,1);_.isHelix=!0,_.helixStrand=T,_.helixT=E,_.helixSpeed=s.range(.3,.6)*.001,this.particles.push(_)}}_mkParticle(s,m,r,g,T){const E=8e-4+(.42*this.size-m)*4e-5,_=s.next()*Math.PI*2,N=s.range(.05,.3)*this.size;return{baseRadius:m,angle:r,angularVelocity:E*(s.next()>.5?1:.85),size:s.range(.5,1.8),brightness:s.range(.4,1),wobblePhase:s.next()*Math.PI*2,wobbleSpeed:s.range(.5,1.2),ellipX:g,ellipY:T,orbitTilt:0,binaryCore:0,chaosX:Math.cos(_)*N,chaosY:Math.sin(_)*N,chaosDriftPhase:s.next()*Math.PI*2,chaosDriftSpeed:s.range(3e-4,8e-4)}}update(s){this.time+=s}draw(){const{ctx:s,size:m,time:r,accuracy:g,uniqueness:T,impact:E,colorHex:_,variant:N}=this,p=m/2,U=m/2;s.clearRect(0,0,m,m);const B=.4+this.exp*.6,L=g*B,se=T*B,fe=E*B,me=.2+L*.8,Q=.3+fe*1.9,J=se,he=Math.min(1,Math.max(0,(this.exp-.15)*1.8)),w=1-he,ie=s.createRadialGradient(p,U,0,p,U,m*.45);if(ie.addColorStop(0,tt(_,.05*me)),ie.addColorStop(.4,tt(_,.015)),ie.addColorStop(1,"transparent"),s.fillStyle=ie,s.fillRect(0,0,m,m),N===0&&this.armSeeds){const z=r*5e-4*Q;for(const te of this.armSeeds){const Y=te+z;s.beginPath();for(let $=0;$<1;$+=.02){const G=Y+$*Math.PI*2.4,le=(.08+$*.38)*m*this.scale,ce=p+Math.cos(G)*le,X=U+Math.sin(G)*le;$===0?s.moveTo(ce,X):s.lineTo(ce,X)}s.strokeStyle=tt(_,.12*me),s.lineWidth=1,s.stroke()}}for(const z of this.particles){const te=Math.sin(r*z.wobbleSpeed*.001+z.wobblePhase)*1.2,Y=z.baseRadius+te,$=z.angle+r*z.angularVelocity*Q;let G,le;if(N===3&&this.binaryCenters){const X=this.binaryCenters[z.binaryCore];G=p+X.x+Math.cos($)*Y,le=U+X.y+Math.sin($)*Y}else if(N===4){const X=Math.cos(z.orbitTilt),W=Math.sin(z.orbitTilt),q=Math.cos($)*Y*z.ellipX,I=Math.sin($)*Y*z.ellipY;G=p+q*X-I*W,le=U+q*W+I*X}else if(N===5&&z.jetSide!==void 0&&!z.isDisk&&this.jetAxis!==void 0){const X=(z.jetProgress+r*z.jetSpeed*Q)%1,W=X*.44*m*this.scale,q=this.jetAxis+Math.PI/2;G=p+Math.cos(this.jetAxis)*W*z.jetSide+Math.cos(q)*z.jetSpread*W,le=U+Math.sin(this.jetAxis)*W*z.jetSide+Math.sin(q)*z.jetSpread*W,z._fadeMul=Math.sin(X*Math.PI)*.9+.1}else if(N===6&&z.isNebula){const X=r*z.driftSpeed*Q,W=Math.sin(X+z.driftPhase)*2;G=p+Math.cos(z.angle+X*.3)*Y+Math.cos(z.driftAngle)*W,le=U+Math.sin(z.angle+X*.3)*Y+Math.sin(z.driftAngle)*W}else if(N===7&&z.isComet&&this.tailAngle!==void 0){const X=(z.cometT+r*3e-4*Q)%1,W=z.cometTailDist+X*.06*m*this.scale,q=this.tailAngle+Math.PI/2;G=p+Math.cos(this.tailAngle)*W+Math.cos(q)*z.cometPerp,le=U+Math.sin(this.tailAngle)*W+Math.sin(q)*z.cometPerp}else if(N===8&&z.gyroAxis){const X=r*1e-4*Q;z.gyroAxis==="z"?(G=p+Math.cos($)*Y,le=U+Math.sin($)*Y*.3):z.gyroAxis==="x"?(G=p+Math.cos($)*Y*.3+Math.sin(X)*Y*.1,le=U+Math.sin($)*Y):(G=p+Math.sin($+X)*Y*.6,le=U+Math.cos($+X)*Y*.8)}else if(N===9){const X=(r*5e-4*Q+z.wobblePhase)%1,W=Y*(1-X*.85);G=p+Math.cos($)*W,le=U+Math.sin($)*W,z._fadeMul=1-X}else if(N===10&&z.ouroT!==void 0){const X=(z.ouroT+r*3e-4*Q)%1,W=X*Math.PI*2;G=p+Math.cos(W)*Y,le=U+Math.sin(W)*Y;const q=Math.cos(X*Math.PI*2)*.5+.5;z._fadeMul=.3+q*.9}else if(N===11&&z.helixT!==void 0){const X=(z.helixT+r*z.helixSpeed*Q)%1,W=(X-.5)*.65*m*this.scale,q=z.helixStrand===0?0:Math.PI,I=.15*m*this.scale,v=Math.sin(X*Math.PI*3+q)*I;G=p+v,le=U+W,z._fadeMul=.4+(Math.cos(X*Math.PI*3+q)+1)/2*.6}else G=p+Math.cos($)*Y*z.ellipX,le=U+Math.sin($)*Y*z.ellipY;if(w>.01){const X=r*z.chaosDriftSpeed,W=Math.cos(X+z.chaosDriftPhase)*2,q=Math.sin(X*1.13+z.chaosDriftPhase)*2,I=p+z.chaosX+W,v=U+z.chaosY+q;G=I*w+G*he,le=v*w+le*he}const ce=z._fadeMul!==void 0?z._fadeMul:1;if(N<=4&&he>.5){const X=2+Math.floor(E*3);for(let W=0;W<X;W++){const q=z.angularVelocity*Q*(W+1)*80,I=$-q;let v,D;if(N===3&&this.binaryCenters){const ae=this.binaryCenters[z.binaryCore];v=p+ae.x+Math.cos(I)*Y,D=U+ae.y+Math.sin(I)*Y}else if(N===4){const ae=Math.cos(z.orbitTilt),ge=Math.sin(z.orbitTilt),h=Math.cos(I)*Y*z.ellipX,O=Math.sin(I)*Y*z.ellipY;v=p+h*ae-O*ge,D=U+h*ge+O*ae}else v=p+Math.cos(I)*Y*z.ellipX,D=U+Math.sin(I)*Y*z.ellipY;const Z=(1-W/X)*.3*z.brightness*me*he;s.beginPath(),s.arc(v,D,z.size*(1-W*.25),0,Math.PI*2),s.fillStyle=tt(_,Z),s.fill()}}else if(N===6&&z.isNebula){const X=z.size*3,W=s.createRadialGradient(G,le,0,G,le,X);W.addColorStop(0,tt(_,z.brightness*me*.4)),W.addColorStop(1,"transparent"),s.fillStyle=W,s.beginPath(),s.arc(G,le,X,0,Math.PI*2),s.fill()}s.beginPath(),s.arc(G,le,z.size,0,Math.PI*2),s.fillStyle=tt(_,z.brightness*me*ce),s.fill()}if(J>.05)for(let te=0;te<3;te++){const Y=(r*7e-4*J+te*.33)%1;if(Y>.5)continue;const $=(te*1.618*Math.PI+r*1e-4)%(Math.PI*2),G=m*.5*(1-Y*1.6);if(G<3)continue;const le=p+Math.cos($)*G,ce=U+Math.sin($)*G,X=Y<.2?Y/.2:1-(Y-.2)/.3,W=5+(1-Y)*4,q=s.createRadialGradient(le,ce,0,le,ce,W);q.addColorStop(0,tt("#ffffff",X*.95)),q.addColorStop(.3,tt(_,X*.7)),q.addColorStop(1,"transparent"),s.fillStyle=q,s.beginPath(),s.arc(le,ce,W,0,Math.PI*2),s.fill()}if(N!==3){const z=.9+.1*Math.sin(r*.003),te=(1+this.exp*9+g*2)*this.scale,Y=Math.min(te*(3+E*2),m*.4),$=s.createRadialGradient(p,U,0,p,U,Y);$.addColorStop(0,tt("#ffffff",.95*z*me)),$.addColorStop(.2,tt(_,.75*z*me)),$.addColorStop(.5,tt(_,.2*me)),$.addColorStop(1,"transparent"),s.fillStyle=$,s.beginPath(),s.arc(p,U,Y,0,Math.PI*2),s.fill(),s.beginPath(),s.arc(p,U,te*z,0,Math.PI*2),s.fillStyle=tt("#ffffff",.95),s.fill()}else if(this.binaryCenters)for(const z of this.binaryCenters){const te=p+z.x,Y=U+z.y,$=(.8+this.exp*5+g*1.5)*this.scale,G=Math.min($*3.5,m*.22),le=s.createRadialGradient(te,Y,0,te,Y,G);le.addColorStop(0,tt("#ffffff",.9*me)),le.addColorStop(.3,tt(_,.6*me)),le.addColorStop(1,"transparent"),s.fillStyle=le,s.beginPath(),s.arc(te,Y,G,0,Math.PI*2),s.fill(),s.beginPath(),s.arc(te,Y,$,0,Math.PI*2),s.fillStyle=tt("#ffffff",.9),s.fill()}}}function As({agentId:f,size:s=64,signals:m=0,accuracy:r=.5,uniqueness:g=.5,impact:T=.5}){const E=K.useRef(null),_=K.useRef(null),N=K.useRef(0),p=K.useRef(!0);return K.useEffect(()=>{const U=E.current;if(!U)return;U.width=s*2,U.height=s*2;const B=U.getContext("2d");if(!B)return;B.scale(2,2);const L=$u(f),se=new ix(U,f,m,r,g,L,T);_.current=se,se.draw();const fe=()=>{p.current&&(se.update(16),se.draw()),N.current=requestAnimationFrame(fe)};return N.current=requestAnimationFrame(fe),()=>{cancelAnimationFrame(N.current),_.current=null}},[f,s,m,r,g,T]),K.useEffect(()=>{const U=E.current;if(!U)return;const B=new IntersectionObserver(([L])=>{p.current=L.isIntersecting},{threshold:.1});return B.observe(U),()=>B.disconnect()},[]),i.jsx("canvas",{ref:E,"aria-hidden":"true",className:"shrink-0",style:{width:s,height:s,borderRadius:"50%"}})}function js(f){return`${Math.round(f*100)}%`}function cx(f){return f>=1.2?"good":f>=.8?"mid":"low"}function sx(f){return f>=.7?"good":f>=.4?"mid":"low"}function ox({agent:f}){var N;const s=f.scores,m=$u(f.id),r=(N=f.lastTask)!=null&&N.timestamp?Dt(f.lastTask.timestamp):"",g=cx(s.dispatchWeight),T=g==="good"?"text-confirmed":g==="low"?"text-disputed":"text-foreground",E=sx(s.accuracy),_=E==="good"?"bg-confirmed":E==="mid"?"bg-unverified":"bg-disputed";return i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(f.id)}`,className:"group relative block rounded-xl border border-border bg-gradient-to-br from-card to-card/50 p-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.04),0_2px_8px_rgba(0,0,0,0.35)] transition-all hover:-translate-y-0.5 hover:border-primary/30 hover:from-card/90 hover:to-card/40 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_28px_rgba(0,0,0,0.55),0_0_0_1px_rgba(139,92,246,0.12)]",children:[i.jsx("span",{className:"pointer-events-none absolute inset-x-0 top-0 h-px rounded-t-xl bg-gradient-to-r from-transparent via-white/12 to-transparent"}),i.jsxs("div",{className:"mb-3.5 flex items-center gap-3",children:[i.jsxs("div",{className:"relative shrink-0",children:[i.jsx("div",{className:"absolute -inset-2 rounded-full opacity-[0.18] blur-xl transition group-hover:opacity-30",style:{background:m}}),i.jsx("div",{className:"relative",children:i.jsx(As,{agentId:f.id,size:60,animate:f.online,signals:s.signals,accuracy:s.accuracy,uniqueness:s.uniqueness,impact:s.impactScore})})]}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-foreground",children:f.id}),s.circuitOpen&&i.jsx("span",{className:"shrink-0 rounded-sm bg-destructive/10 px-1 py-0.5 font-mono text-[8px] font-bold text-destructive","data-tooltip":"Benched: too many consecutive failures. Deprioritized until new clean signals recover the score.",children:"BENCHED"})]}),i.jsxs("div",{className:"mt-1 flex items-center gap-2 font-mono text-[10px] text-muted-foreground/60",children:[i.jsxs("span",{className:`rounded-sm border border-border/60 bg-background/60 px-1.5 py-0.5 font-bold tabular-nums ${T}`,"data-tooltip":`Dispatch weight ${s.dispatchWeight.toFixed(2)}
|
|
57
|
+
Scale 0.3 → 2.0`,"data-tooltip-pos":"bottom",children:[s.dispatchWeight.toFixed(2)," wt"]}),i.jsxs("span",{className:"truncate",children:[s.signals," signals",r?` · ${r}`:""]})]})]})]}),i.jsxs("div",{className:"space-y-2 rounded-lg border border-border/40 bg-background/50 px-3.5 py-3 shadow-[inset_0_1px_3px_rgba(0,0,0,0.35)]",children:[i.jsx(Ts,{label:"accuracy",value:s.accuracy,fillClass:_,tooltip:`Accuracy ${js(s.accuracy)}
|
|
58
|
+
Ratio of confirmed findings.
|
|
59
|
+
Higher = more trustworthy.`}),i.jsx(Ts,{label:"unique",value:s.uniqueness,fillClass:"bg-unique",tooltip:`Uniqueness ${js(s.uniqueness)}
|
|
60
|
+
Findings others missed.
|
|
61
|
+
Higher = this agent sees what peers don't.`}),i.jsx(Ts,{label:"impact",value:s.impactScore,fillClass:"bg-[var(--color-impact)]",tooltip:`Impact ${js(s.impactScore)}
|
|
62
|
+
Severity-weighted findings.
|
|
63
|
+
Critical and high findings count more.`})]})]})}function Ts({label:f,value:s,fillClass:m,tooltip:r}){return i.jsxs("div",{className:"grid grid-cols-[60px_1fr_38px] items-center gap-2.5",children:[i.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-muted-foreground","data-tooltip":r,children:f}),i.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-background/80",children:i.jsx("div",{className:`h-full rounded-full transition-all ${m}`,style:{width:`${Math.max(0,Math.min(100,s*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(s*100),"%"]})]})}function fx({agents:f}){const s=[...f].sort((g,T)=>{var E,_;return(((E=T.scores)==null?void 0:E.dispatchWeight)||0)-(((_=g.scores)==null?void 0:_.dispatchWeight)||0)}),m=s.slice(0,6),r=s.length>6;return i.jsxs("section",{children:[i.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Team ",i.jsx("span",{className:"text-primary",children:f.length})]}),r&&i.jsx("a",{href:"/dashboard/team",className:"font-mono text-xs text-muted-foreground transition hover:text-primary",children:"view all"})]}),i.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:m.map(g=>i.jsx(ox,{agent:g},g.id))})]})}const rx={completed:{label:"COMPLETED",cls:"text-confirmed bg-confirmed/10"},failed:{label:"FAILED",cls:"text-destructive bg-destructive/10"},cancelled:{label:"CANCELLED",cls:"text-muted-foreground bg-muted/30"},running:{label:"RUNNING",cls:"text-unverified bg-unverified/10 animate-pulse"}};function dx({task:f,onClose:s}){if(K.useEffect(()=>{if(!f)return;const g=T=>{T.key==="Escape"&&s()};return document.addEventListener("keydown",g),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",g),document.body.style.overflow=""}},[f,s]),!f)return null;const m=rx[f.status],r=(f.inputTokens||0)+(f.outputTokens||0);return i.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center overflow-y-auto bg-background/80 p-6 backdrop-blur-sm",onClick:s,children:i.jsxs("div",{className:"relative mt-12 w-full max-w-3xl rounded-lg border border-border bg-card shadow-2xl",onClick:g=>g.stopPropagation(),children:[i.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border/60 px-5 py-4",children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:`shrink-0 rounded-sm px-1.5 py-0.5 font-mono text-[9px] font-bold ${m.cls}`,children:m.label}),i.jsx("span",{className:"shrink-0 rounded border border-amber-500/30 bg-amber-500/10 px-1.5 py-0.5 font-mono text-[10px] font-semibold text-amber-400",children:f.taskId.slice(0,8)}),i.jsx("a",{href:`/dashboard/agent/${encodeURIComponent(f.agentId)}`,className:"truncate font-mono text-xs text-muted-foreground transition hover:text-primary",children:f.agentId})]}),i.jsxs("div",{className:"mt-2 flex flex-wrap gap-3 font-mono text-[10px] text-muted-foreground",children:[i.jsx("span",{children:Dt(f.timestamp)}),f.duration!=null&&i.jsxs("span",{children:["· ",lm(f.duration)]}),r>0&&i.jsxs("span",{children:["· ",r.toLocaleString()," tokens (",(f.inputTokens||0).toLocaleString()," in / ",(f.outputTokens||0).toLocaleString()," out)"]})]})]}),i.jsx("button",{onClick:s,className:"shrink-0 rounded-md border border-border/40 bg-card px-2 py-1 font-mono text-xs text-muted-foreground transition hover:bg-accent/50 hover:text-foreground","aria-label":"Close",children:"✕"})]}),i.jsxs("div",{className:"max-h-[calc(100vh-220px)] space-y-5 overflow-y-auto px-5 py-4",children:[i.jsxs("section",{children:[i.jsx("h3",{className:"mb-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Task"}),i.jsx("div",{className:"task-md rounded-md border border-border/40 bg-background/40 p-3 text-xs leading-relaxed text-foreground/90 overflow-x-auto",dangerouslySetInnerHTML:{__html:Q0(f.task)}})]}),f.result?i.jsxs("section",{children:[i.jsx("h3",{className:"mb-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Result"}),i.jsx("div",{className:"rounded-md border border-border/40 bg-background/40 p-3 font-mono text-xs leading-relaxed text-foreground/90 whitespace-pre-wrap [&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:text-purple-400 [&_.inline-code]:rounded [&_.inline-code]:bg-muted/40 [&_.inline-code]:px-1 [&_.inline-code-block]:my-2 [&_.inline-code-block]:block [&_.inline-code-block]:rounded [&_.inline-code-block]:bg-muted/30 [&_.inline-code-block]:p-2",dangerouslySetInnerHTML:{__html:Ju(f.result)}})]}):i.jsxs("section",{children:[i.jsx("h3",{className:"mb-2 font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Result"}),i.jsx("div",{className:"rounded-md border border-border/40 bg-background/40 p-3 text-center font-mono text-xs text-muted-foreground",children:f.status==="running"?"Task is still running...":"No result recorded."})]})]})]})})}const Jd=8,mx={completed:"bg-confirmed",failed:"bg-destructive",running:"bg-unverified animate-pulse",cancelled:"bg-muted-foreground"};function hx(f,s){return f.length>s?f.slice(0,s)+"…":f}function xx({tasks:f}){const s=f.items.slice(0,Jd),m=f.items.length>Jd;return i.jsxs("section",{className:"flex h-full flex-col",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["Tasks ",i.jsx("span",{className:"text-primary",children:f.total})]}),m&&i.jsx("a",{href:"/dashboard/tasks",className:"font-mono text-xs text-muted-foreground transition hover:text-primary",children:"view all"})]}),i.jsx("div",{className:"flex-1 rounded-md border border-border/40 bg-card/80",children:s.length===0?i.jsx("div",{className:"py-6 text-center text-xs text-muted-foreground",children:"No tasks yet."}):s.map((r,g)=>i.jsxs("div",{className:`flex h-11 items-center gap-3 px-3.5 ${g>0?"border-t border-border/20":""}`,children:[i.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${mx[r.status]||"bg-muted"}`}),i.jsx("span",{className:"shrink-0 font-mono text-xs font-bold text-foreground",children:r.agentId}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground",children:hx(r.task,50)}),i.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Dt(r.timestamp)})]},r.taskId))})]})}function gx(f){var r,g,T,E;const s=(r=f.frontmatter)==null?void 0:r.type;if(s&&s!=="unknown")return s;const m=[f.filename,((g=f.frontmatter)==null?void 0:g.name)||"",((T=f.frontmatter)==null?void 0:T.description)||"",f.content.slice(0,200)].join(" ").toLowerCase();return m.includes("session")||m.includes("next-session")?"session":m.includes("cognitive")||m.includes("session-gossip")?"cognitive":m.includes("skill")||m.includes("gap")?"skill":m.includes("consensus")||m.includes("finding")||m.includes("review")||m.includes("cross-review")?"review":m.includes("dispatch")||m.includes("implement")?"task":m.includes("design")||m.includes("architecture")?"review":m.includes("bug")||m.includes("fix")||m.includes("debug")?"task":(E=f.frontmatter)!=null&&E.name?"knowledge":"note"}const $d={cognitive:"text-primary bg-primary/10",knowledge:"text-blue-400 bg-blue-500/10",skill:"text-confirmed bg-confirmed/10",review:"text-unique bg-unique/10",task:"text-unverified bg-unverified/10",session:"text-amber-400 bg-amber-500/10",note:"text-muted-foreground bg-muted/50"},px={cognitive:"cognitive",knowledge:"knowledge",skill:"skill",review:"review",task:"task",session:"session",note:"memory"};function bx({memories:f}){const[s,m]=K.useState(null),r=f.filter((T,E,_)=>_.findIndex(N=>N.filename===T.filename)===E),g=r.slice(0,8);return i.jsxs("section",{className:"flex h-full flex-col",children:[i.jsxs("h2",{className:"mb-3 font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["Recent Memories ",i.jsx("span",{className:"text-primary",children:r.length})]}),g.length===0?i.jsx("div",{className:"flex-1 py-6 text-center text-sm text-muted-foreground",children:"No memories yet."}):i.jsx("div",{className:"flex-1 rounded-md border border-border/40 bg-card/80",children:g.map((T,E)=>{var B,L;const _=gx(T),N=((B=T.frontmatter)==null?void 0:B.name)||((L=T.content.split(`
|
|
64
|
+
`)[0])==null?void 0:L.slice(0,80))||T.filename.replace(/\.md$/,""),p=s===E,U=T.agentId||"_unknown";return i.jsxs("div",{className:E>0?"border-t border-border/20":"",children:[i.jsxs("button",{onClick:()=>m(p?null:E),className:"flex h-11 w-full items-center gap-2 px-3.5 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`font-mono text-xs ${p?"text-primary":"text-muted-foreground/40"}`,children:p?"▾":"▸"}),i.jsx("span",{className:`shrink-0 rounded-sm px-1 py-0.5 font-mono text-[9px] font-bold ${$d[_]||$d.note}`,children:px[_]||"NOTE"}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-foreground",children:N}),i.jsx("span",{className:"shrink-0 rounded-sm border border-border/40 bg-card px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:U==="_project"?"project":U})]}),p&&i.jsx("div",{className:"border-t border-border/10 px-4 py-2",children:i.jsx("pre",{className:"max-h-40 overflow-y-auto whitespace-pre-wrap font-mono text-[11px] leading-relaxed text-muted-foreground",children:T.content})})]},T.filename)})})]})}function vx({strengths:f}){const s=Object.entries(f).sort(([,m],[,r])=>r-m);return s.length===0?i.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:"No category data yet."}):i.jsx("div",{className:"space-y-2",children:s.map(([m,r])=>i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("span",{className:"w-32 shrink-0 truncate font-mono text-[11px] text-muted-foreground",children:m.replace(/_/g," ")}),i.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted/30",children:i.jsx("div",{className:`h-full rounded-full transition-all ${r>=.7?"bg-confirmed":r>=.4?"bg-unverified":"bg-disputed"}`,style:{width:`${r*100}%`}})}),i.jsxs("span",{className:"w-10 shrink-0 text-right font-mono text-[11px] text-foreground",children:[Math.round(r*100),"%"]})]},m))})}const yx={agreement:"bg-confirmed",consensus_verified:"bg-confirmed",unique_confirmed:"bg-unique",unique_unconfirmed:"bg-unique/50",disagreement:"bg-disputed/70",hallucination_caught:"bg-disputed",new_finding:"bg-unique",unverified:"bg-unverified"},Sx={agreement:"Confirmed",consensus_verified:"Confirmed",unique_confirmed:"Unique (confirmed)",unique_unconfirmed:"Unique",disagreement:"Disputed",hallucination_caught:"Hallucination",new_finding:"New finding",unverified:"Unverified"};function Nx({agentId:f}){const[s,m]=K.useState([]),[r,g]=K.useState(0);if(K.useEffect(()=>{Rt(`signals?agent=${encodeURIComponent(f)}&limit=100`).then(E=>{m(E.items||[]),g(E.total||0)}).catch(()=>{})},[f]),s.length===0)return i.jsx("div",{className:"rounded-md border border-border/40 bg-card/80 px-4 py-3 text-center text-xs text-muted-foreground",children:"No signal history yet."});const T=[...s].reverse();return i.jsxs("div",{className:"rounded-md border border-border/40 bg-card/80 px-4 py-3",children:[i.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[i.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Signal Timeline"}),i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:[r," total"]})]}),i.jsx("div",{className:"flex items-center gap-0.5",children:T.map((E,_)=>i.jsx("div",{className:`h-4 w-1.5 rounded-sm transition-opacity hover:opacity-80 ${yx[E.signal]||"bg-muted"}`,title:`${Sx[E.signal]||E.signal} — ${Dt(E.timestamp)}`},_))}),i.jsx("div",{className:"mt-2 flex flex-wrap gap-3",children:[{color:"bg-confirmed",label:"Confirmed"},{color:"bg-disputed",label:"Hallucination"},{color:"bg-unique",label:"Unique"},{color:"bg-unverified",label:"Unverified"}].map(E=>i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("div",{className:`h-2 w-2 rounded-sm ${E.color}`}),i.jsx("span",{className:"font-mono text-[9px] text-muted-foreground/60",children:E.label})]},E.label))})]})}const Wd={completed:{dot:"bg-confirmed",label:"●"},failed:{dot:"bg-destructive",label:"✕"},running:{dot:"bg-unverified animate-pulse",label:"◌"},cancelled:{dot:"bg-muted-foreground/40",label:"—"}};function nm({task:f,onClick:s}){const m=Wd[f.status]??Wd.cancelled;return i.jsxs("tr",{className:`border-b border-border transition hover:bg-accent/50 ${s?"cursor-pointer":""}`,onClick:s?r=>{r.target.closest("a")||s(f)}:void 0,children:[i.jsx("td",{className:"py-2.5 pl-4 pr-2",children:i.jsx("span",{className:`inline-block h-2.5 w-2.5 rounded-full ${m.dot}`})}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:f.taskId.slice(0,8)}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:i.jsx("a",{href:`/dashboard/agent/${encodeURIComponent(f.agentId)}`,className:"transition hover:text-primary",children:f.agentId})}),i.jsx("td",{className:"py-2.5 pr-3 text-sm text-foreground/80",children:(()=>{const r=f.task.replace(/\n.*/s,"");return r.length>100?r.slice(0,100)+"…":r})()}),i.jsx("td",{className:"py-2.5 pr-3 font-mono text-xs text-muted-foreground",children:f.status==="running"?"running":lm(f.duration)}),i.jsx("td",{className:"py-2.5 pr-4 text-right font-mono text-xs text-muted-foreground",children:Dt(f.timestamp)})]})}function jx({agentId:f,agents:s,tasks:m,consensus:r}){const g=s.find(q=>q.id===f),[T,E]=K.useState([]),[_,N]=K.useState(null),[p,U]=K.useState(null),[B,L]=K.useState("all"),[se,fe]=K.useState(0),[me,Q]=K.useState(0);if(K.useEffect(()=>{Rt(`memory/${f}`).then(q=>{E(q.knowledge||[])}).catch(()=>E([]))},[f]),!g)return i.jsxs("div",{className:"py-20 text-center text-muted-foreground",children:["Agent not found: ",f]});const J=g.scores,he=$u(g.id),w=(m==null?void 0:m.items.filter(q=>q.agentId===f))||[],ie=(r==null?void 0:r.runs.filter(q=>q.agents.includes(f)))||[],z=[{label:"accuracy",value:J.accuracy,fill:J.accuracy>=.7?"bg-confirmed":J.accuracy>=.4?"bg-unverified":"bg-disputed"},{label:"reliability",value:J.reliability,fill:"bg-primary"},{label:"unique",value:J.uniqueness,fill:"bg-unique"},{label:"impact",value:J.impactScore,fill:"bg-[var(--color-impact)]"}],te=[{label:"Signals",value:String(J.signals),color:"text-foreground"},{label:"Agreements",value:String(J.agreements),color:"text-confirmed"},{label:"Disagreements",value:String(J.disagreements),color:"text-disputed"},{label:"Hallucinations",value:String(J.hallucinations),color:J.hallucinations>0?"text-disputed":"text-muted-foreground"},{label:"Tokens",value:g.totalTokens.toLocaleString(),color:"text-foreground"}],Y=10,$=Math.max(1,Math.ceil(w.length/Y)),G=Math.min(se,$-1),le=w.slice(G*Y,(G+1)*Y),ce=K.useMemo(()=>{const q=new Map;for(const I of T){const v=I.filename.match(/^(\d{4}-\d{2}-\d{2})/),D=v?v[1]:"undated",Z=q.get(D)||[];Z.push(I),q.set(D,Z)}return Array.from(q.entries()).sort(([I],[v])=>I==="undated"?1:v==="undated"?-1:v.localeCompare(I)).map(([I,v])=>({day:I,items:v}))},[T]),X=Math.min(me,Math.max(0,ce.length-1)),W=ce[X];return i.jsxs(i.Fragment,{children:[J.circuitOpen&&i.jsx("div",{className:"mb-6 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"font-mono text-xs font-bold text-destructive",children:"CIRCUIT OPEN"}),i.jsxs("span",{className:"text-xs text-destructive/70",children:[J.consecutiveFailures,"+ consecutive failures. Agent will be deprioritized until clean signals recorded."]})]})}),i.jsxs("div",{className:"relative mb-6 rounded-xl border border-border bg-gradient-to-br from-card to-card/50 p-5 shadow-[inset_0_1px_0_rgba(255,255,255,0.04),0_2px_8px_rgba(0,0,0,0.35)]",children:[i.jsx("span",{className:"pointer-events-none absolute inset-x-0 top-0 h-px rounded-t-xl bg-gradient-to-r from-transparent via-white/12 to-transparent"}),i.jsxs("div",{className:"flex items-center gap-6",children:[i.jsxs("div",{className:"relative shrink-0",children:[i.jsx("div",{className:"absolute -inset-3 rounded-full opacity-[0.18] blur-xl",style:{background:he}}),i.jsx("div",{className:"relative",children:i.jsx(As,{agentId:g.id,size:120,signals:J.signals,accuracy:J.accuracy,uniqueness:J.uniqueness,impact:J.impactScore})})]}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("h1",{className:"truncate font-mono text-2xl font-bold text-foreground",children:g.id}),i.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:[g.provider,"/",g.model]}),i.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[i.jsx("span",{className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold ${g.native?"text-primary bg-primary/10":"text-confirmed bg-confirmed/10"}`,children:g.native?"NATIVE":"RELAY"}),g.preset&&i.jsx("span",{className:"rounded-sm bg-muted px-2 py-0.5 font-mono text-[10px] text-muted-foreground",children:g.preset}),J.consecutiveFailures>0&&!J.circuitOpen&&i.jsxs("span",{className:"rounded-sm bg-unverified/10 px-2 py-0.5 font-mono text-[10px] font-bold text-unverified",children:[J.consecutiveFailures," CONSECUTIVE FAILS"]}),i.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground/60",children:[J.signals," signals",g.lastTask?` · ${Dt(g.lastTask.timestamp)}`:""]})]})]}),i.jsxs("div",{className:"flex shrink-0 flex-col items-end rounded-md border border-border bg-background/60 px-3 py-2","data-tooltip":`Dispatch weight ${J.dispatchWeight.toFixed(2)}
|
|
65
|
+
Scale 0.3 → 2.0`,"data-tooltip-pos":"left",children:[i.jsx("span",{className:"font-mono text-2xl font-bold tabular-nums leading-none text-foreground",children:J.dispatchWeight.toFixed(2)}),i.jsx("span",{className:"mt-1 font-mono text-[9px] uppercase text-muted-foreground/50",children:"weight"})]})]})]}),i.jsx("section",{className:"mb-6",children:i.jsx(Nx,{agentId:f})}),i.jsxs("section",{className:"mb-8 grid grid-cols-1 gap-6 lg:grid-cols-2",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:"Metrics"}),i.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/80 p-4 shadow-[inset_0_1px_3px_rgba(0,0,0,0.35)]",children:[i.jsx("div",{className:"space-y-2.5",children:z.map(q=>i.jsxs("div",{className:"grid grid-cols-[72px_1fr_44px] items-center gap-3",children:[i.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-muted-foreground",children:q.label}),i.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-background/80",children:i.jsx("div",{className:`h-full rounded-full transition-all ${q.fill}`,style:{width:`${Math.max(0,Math.min(100,q.value*100))}%`}})}),i.jsxs("span",{className:"text-right font-mono text-[11px] font-bold tabular-nums text-foreground",children:[Math.round(q.value*100),"%"]})]},q.label))}),i.jsx("div",{className:"mt-4 grid grid-cols-5 gap-px overflow-hidden rounded-md border border-border/30 bg-border/30",children:te.map(q=>i.jsxs("div",{className:"bg-background/60 px-2 py-2 text-center",children:[i.jsx("div",{className:`font-mono text-sm font-bold tabular-nums ${q.color}`,children:q.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[9px] uppercase tracking-wider text-muted-foreground/70",children:q.label})]},q.label))})]})]}),i.jsxs("div",{children:[i.jsx("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:"Category Strengths"}),i.jsx(vx,{strengths:J.categoryStrengths})]})]}),(g.skillSlots.length>0||g.skills.length>0)&&i.jsxs("section",{className:"mb-8",children:[i.jsxs("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Skills ",i.jsx("span",{className:"text-primary",children:g.skillSlots.length||g.skills.length})]}),i.jsx("div",{className:"flex flex-wrap gap-1.5",children:g.skillSlots.length>0?g.skillSlots.map(q=>i.jsxs("span",{className:`rounded-sm border px-2.5 py-1 font-mono text-xs ${q.enabled?q.mode==="contextual"?"border-amber-500/30 bg-amber-500/10 text-amber-400":"border-border bg-card text-muted-foreground":"border-border/50 text-muted-foreground/50 line-through"}`,title:`${q.mode} · ${q.source} · ${q.enabled?"enabled":"disabled"}`,children:[q.mode==="contextual"&&"⚡ ",q.name]},q.name)):g.skills.map(q=>i.jsx("span",{className:"rounded-sm border border-border bg-card px-2.5 py-1 font-mono text-xs text-muted-foreground",children:q},q))})]}),i.jsxs("section",{className:"mb-8",children:[i.jsxs("h2",{className:"mb-3 font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Consensus Runs ",i.jsx("span",{className:"text-primary",children:ie.length})]}),ie.length>0?i.jsx("div",{className:"space-y-2",children:ie.slice(0,20).map((q,I)=>{const v=q.counts,D=(v.agreement||0)+(v.disagreement||0)+(v.hallucination||0)+(v.unverified||0)+(v.unique||0)+(v.new||0),Z=D||1,ae=p===I,ge=[{key:"confirmed",count:v.agreement||0,color:"bg-confirmed",text:"text-confirmed"},{key:"disputed",count:(v.disagreement||0)+(v.hallucination||0),color:"bg-disputed",text:"text-disputed"},{key:"unverified",count:v.unverified||0,color:"bg-unverified",text:"text-unverified"},{key:"unique",count:(v.unique||0)+(v.new||0),color:"bg-unique",text:"text-unique"}],h={agreement:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},consensus_verified:{label:"CONFIRMED",filter:"confirmed",cls:"text-confirmed bg-confirmed/10"},disagreement:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},hallucination_caught:{label:"DISPUTED",filter:"disputed",cls:"text-disputed bg-disputed/10"},unverified:{label:"UNVERIFIED",filter:"unverified",cls:"text-unverified bg-unverified/10"},unique_confirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},unique_unconfirmed:{label:"UNIQUE",filter:"unique",cls:"text-unique bg-unique/10"},new_finding:{label:"NEW",filter:"unique",cls:"text-unique bg-unique/10"}},O=q.signals.filter(H=>{if(H.signal==="signal_retracted")return!1;const V=h[H.signal];return V?B==="all"||V.filter===B:!1});return i.jsxs("div",{className:`rounded-md border bg-card transition ${ae?"border-primary/25":"border-border/40"}`,children:[i.jsxs("button",{onClick:()=>{U(ae?null:I),L("all")},className:"flex w-full items-center p-3 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`mr-3 font-mono text-xs ${ae?"text-primary":"text-muted-foreground"}`,children:ae?"▾":"▸"}),i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:"font-mono text-sm font-semibold text-foreground",children:[D," findings"]}),i.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Dt(q.timestamp)})]}),i.jsx("div",{className:"mt-1.5 flex gap-2",children:ge.map(H=>H.count>0&&i.jsxs("span",{className:`font-mono text-[10px] font-semibold ${H.text}`,children:[H.count," ",H.key]},H.key))}),i.jsx("div",{className:"mt-1.5 flex h-1.5 overflow-hidden rounded-sm",children:ge.map(H=>H.count>0&&i.jsx("div",{className:H.color,style:{width:`${H.count/Z*100}%`}},H.key))})]})]}),ae&&i.jsxs("div",{className:"border-t border-border px-4 pb-3 pt-3",children:[i.jsx("div",{className:"mb-3 flex gap-1.5",children:["all","confirmed","disputed","unverified","unique"].map(H=>{const ne={all:{cls:"text-muted-foreground",active:"text-foreground bg-muted"},confirmed:{cls:"text-confirmed/60",active:"text-confirmed bg-confirmed/10"},disputed:{cls:"text-disputed/60",active:"text-disputed bg-disputed/10"},unverified:{cls:"text-unverified/60",active:"text-unverified bg-unverified/10"},unique:{cls:"text-unique/60",active:"text-unique bg-unique/10"}}[H];return i.jsx("button",{onClick:()=>L(H),className:`rounded-sm px-2 py-0.5 font-mono text-[10px] font-semibold transition ${B===H?ne.active:ne.cls} hover:opacity-80`,children:H.charAt(0).toUpperCase()+H.slice(1)},H)})}),O.length===0?i.jsx("div",{className:"py-3 text-center text-xs text-muted-foreground",children:"No findings match this filter."}):i.jsx("div",{className:"space-y-1.5",children:O.map((H,V)=>{const ne=h[H.signal];return ne?i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx("span",{className:`shrink-0 rounded-sm px-1.5 py-0.5 font-mono text-[9px] font-bold ${ne.cls}`,children:ne.label}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"text-xs text-muted-foreground [&_.cite-file]:rounded [&_.cite-file]:bg-blue-500/10 [&_.cite-file]:px-1 [&_.cite-file]:font-mono [&_.cite-file]:text-blue-400 [&_.cite-fn]:rounded [&_.cite-fn]:bg-purple-500/10 [&_.cite-fn]:px-1 [&_.cite-fn]:font-mono [&_.cite-fn]:text-purple-400",dangerouslySetInnerHTML:{__html:Ju(H.evidence||"")}}),i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground/50",children:[H.agentId,H.counterpartId?` + ${H.counterpartId}`:""]})]})]},V):null})})]})]},q.taskId+I)})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No consensus participation recorded."})]}),i.jsxs("section",{className:"mb-8",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Tasks ",i.jsx("span",{className:"text-primary",children:w.length})]}),$>1&&i.jsxs("div",{className:"flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>fe(q=>Math.max(0,q-1)),disabled:G===0,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Prev"}),i.jsxs("span",{children:[G+1," / ",$]}),i.jsx("button",{onClick:()=>fe(q=>Math.min($-1,q+1)),disabled:G>=$-1,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}),w.length>0?i.jsx("div",{className:"overflow-hidden rounded-md border border-border/40",children:i.jsxs("table",{className:"w-full text-left",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-border bg-card",children:[i.jsx("th",{className:"py-2 pl-4 pr-2 text-xs font-medium text-muted-foreground",style:{width:32}}),i.jsx("th",{className:"py-2 pr-3 font-mono text-xs font-medium text-muted-foreground",children:"ID"}),i.jsx("th",{className:"py-2 pr-3 font-mono text-xs font-medium text-muted-foreground",children:"Agent"}),i.jsx("th",{className:"py-2 pr-3 text-xs font-medium text-muted-foreground",children:"Description"}),i.jsx("th",{className:"py-2 pr-3 font-mono text-xs font-medium text-muted-foreground",children:"Duration"}),i.jsx("th",{className:"py-2 pr-4 text-right font-mono text-xs font-medium text-muted-foreground",children:"When"})]})}),i.jsx("tbody",{children:le.map(q=>i.jsx(nm,{task:q},q.taskId))})]})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No tasks recorded."})]}),i.jsxs("section",{className:"mb-8",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsxs("h2",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Memory ",i.jsxs("span",{className:"text-primary",children:[T.length," files"]}),W&&i.jsxs("span",{className:"ml-2 font-mono text-[10px] text-muted-foreground",children:["· ",W.day," (",W.items.length,")"]})]}),ce.length>1&&i.jsxs("div",{className:"flex items-center gap-2 font-mono text-[10px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>Q(q=>Math.max(0,q-1)),disabled:X===0,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Newer"}),i.jsxs("span",{children:[X+1," / ",ce.length]}),i.jsx("button",{onClick:()=>Q(q=>Math.min(ce.length-1,q+1)),disabled:X>=ce.length-1,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"Older ▸"})]})]}),W&&W.items.length>0?i.jsx("div",{className:"space-y-1.5",children:W.items.map(q=>{var Z,ae;const I=_===q.filename,v=((Z=q.frontmatter)==null?void 0:Z.type)||"memory",D=((ae=q.frontmatter)==null?void 0:ae.name)||q.filename.replace(/\.md$/,"");return i.jsxs("div",{className:"rounded-md border border-border/40 bg-card/80",children:[i.jsxs("button",{onClick:()=>N(I?null:q.filename),className:"flex w-full items-center gap-2 p-3 text-left transition hover:bg-accent/50",children:[i.jsx("span",{className:`font-mono text-xs ${I?"text-primary":"text-muted-foreground"}`,children:I?"▾":"▸"}),i.jsx("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[9px] font-bold uppercase text-muted-foreground",children:v}),i.jsx("span",{className:"truncate font-mono text-xs font-semibold text-foreground",children:D}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground",children:q.filename})]}),I&&i.jsx("div",{className:"border-t border-border px-4 py-3",children:i.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs leading-relaxed text-muted-foreground",children:q.content})})]},q.filename)})}):i.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No memory files."})]})]})}const Fd={dispatch:"text-blue-400",consensus:"text-purple-400",error:"text-red-400",timeout:"text-orange-400",worker:"text-cyan-400/70",gemini:"text-cyan-400/70",skill:"text-amber-400",boot:"text-muted-foreground/50",relay:"text-green-400",gossip:"text-pink-400",utility:"text-muted-foreground/70",memory:"text-violet-400",persist:"text-muted-foreground/50",toolserver:"text-muted-foreground/50",other:"text-muted-foreground/70"},Tx=[[/^\[gossipcat\]\s*\[worker:/,"worker"],[/^\[gossipcat\]\s*\[Gemini\]/,"gemini"],[/^\[gossipcat\]\s*\[ToolServer\]/,"toolserver"],[/^\[gossipcat\]\s*dispatch\b/,"dispatch"],[/^\[gossipcat\]\s*relay\b/,"relay"],[/^\[gossipcat\]\s*Cross-review\b/,"consensus"],[/^\[gossipcat\]\s*Consensus\b/,"consensus"],[/^\[gossipcat\]\s*Skill\b/,"skill"],[/^\[gossipcat\]\s*Bootstrap\b/,"boot"],[/^\[gossipcat\]\s*Booted:/,"boot"],[/^\[gossipcat\]\s*Dashboard:/,"boot"],[/^\[gossipcat\]\s*Adaptive\b/,"boot"],[/^\[gossipcat\]\s*Gossip\b/,"gossip"],[/^\[gossipcat\]\s*utility\b/,"utility"],[/^\[gossipcat\]\s*Compacted\b/,"memory"],[/native agent/,"boot"],[/persist|Persist/,"persist"],[/timeout|Timeout|timed.out/,"timeout"],[/^\[gossipcat\].*(?:Error|error|failed|Failed)/,"error"]];function _x(f){for(const[s,m]of Tx)if(s.test(f))return m;return"other"}const Mx=[{key:"all",label:"All"},{key:"dispatch",label:"Dispatch"},{key:"consensus",label:"Consensus"},{key:"error",label:"Errors"},{key:"timeout",label:"Timeouts"},{key:"worker",label:"Workers"},{key:"skill",label:"Skills"},{key:"relay",label:"Relay"},{key:"boot",label:"Boot"}],Id=1e3;function Ex(){const[f,s]=K.useState([]),[m,r]=K.useState(0),[g,T]=K.useState(0),[E,_]=K.useState("all"),[N,p]=K.useState(!0),[U,B]=K.useState(!0),L=K.useRef(null),se=K.useRef(0);K.useEffect(()=>{let Q=!1;return(async()=>{try{const he=await Rt("logs?tail=500");if(Q)return;s(he.entries),r(he.totalLines),T(he.fileSize),se.current=he.totalLines+1}catch{}})(),()=>{Q=!0}},[]),K.useEffect(()=>{if(U)return tm(Q=>{var he;if(Q.type!=="log_lines")return;const J=(he=Q.data)==null?void 0:he.lines;J!=null&&J.length&&s(w=>{const ie=J.map((te,Y)=>({line:se.current+Y,text:te,category:_x(te)}));se.current+=J.length,r(te=>te+J.length);const z=[...w,...ie];return z.length>Id?z.slice(-Id):z})})},[U]),K.useEffect(()=>{N&&L.current&&L.current.scrollIntoView({behavior:"smooth"})},[f,N]);const fe=E==="all"?f:f.filter(Q=>Q.category===E),me=K.useCallback(Q=>Q<1024?`${Q} B`:Q<1048576?`${(Q/1024).toFixed(1)} KB`:`${(Q/1048576).toFixed(1)} MB`,[]);return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[i.jsxs("h2",{className:"font-mono text-xs font-bold uppercase tracking-widest text-foreground",children:["MCP Log ",i.jsxs("span",{className:"text-primary",children:[m," lines"]})]}),i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/50",children:me(g)}),U&&i.jsxs("span",{className:"flex items-center gap-1 font-mono text-[10px] text-confirmed",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 animate-pulse rounded-full bg-confirmed"}),"live"]})]}),i.jsxs("div",{className:"mb-3 flex items-center gap-1.5",children:[Mx.map(Q=>i.jsx("button",{onClick:()=>_(Q.key),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${E===Q.key?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:Q.label},Q.key)),i.jsxs("div",{className:"ml-auto flex gap-1.5",children:[i.jsx("button",{onClick:()=>B(!U),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${U?"bg-confirmed/10 text-confirmed":"text-muted-foreground"}`,children:U?"● Live":"○ Paused"}),i.jsx("button",{onClick:()=>p(!N),className:`rounded-sm px-2.5 py-1 font-mono text-[10px] font-semibold transition ${N?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:N?"⤓ Auto":"⤓ Scroll"})]})]}),i.jsx("div",{className:"overflow-hidden rounded-md border border-border bg-card",children:i.jsxs("div",{className:"max-h-[70vh] overflow-y-auto p-3 font-mono text-xs leading-relaxed",children:[fe.map(Q=>i.jsxs("div",{className:"flex gap-2 hover:bg-muted/30",children:[i.jsx("span",{className:"w-10 shrink-0 select-none text-right text-muted-foreground/30",children:Q.line}),i.jsx("span",{className:Fd[Q.category]||Fd.other,children:Q.text})]},Q.line)),fe.length===0&&i.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:f.length===0?"Loading...":"No matching log entries."}),i.jsx("div",{ref:L})]})})]})}function zx(){const[f,s]=K.useState(null),[m,r]=K.useState(!1);K.useEffect(()=>{W0().then(s)},[]);const g=K.useCallback(async T=>{r(!1),await $0(T)?s(!0):r(!0)},[]);return{authed:f,login:g,error:m}}function Ax(f){K.useEffect(()=>(em(),tm(f)),[f])}function Dx(){const[f,s]=K.useState({overview:null,agents:null,tasks:null,consensus:null,consensusReports:null,memories:null,loading:!0,error:null}),m=K.useCallback(async()=>{try{const[r,g,T,E,_]=await Promise.all([Rt("overview"),Rt("agents"),Rt("tasks?limit=50"),Rt("consensus"),Rt("consensus-reports?page=1&pageSize=5").catch(()=>({reports:[]}))]),N=g.slice(0,5).map(L=>L.id).concat(["_project"]),p=await Promise.allSettled(N.map(L=>Rt(`memory/${L}`))),U=[];for(let L=0;L<p.length;L++){const se=p[L],fe=N[L];if(se.status==="fulfilled"&&se.value.knowledge)for(const me of se.value.knowledge)U.push({...me,agentId:fe})}U.sort((L,se)=>se.filename>L.filename?1:-1);const B=U.slice(0,20);s({overview:r,agents:g,tasks:T,consensus:E,consensusReports:_,memories:B,loading:!1,error:null})}catch(r){s(g=>({...g,loading:!1,error:r.message}))}},[]);return K.useEffect(()=>{m()},[m]),{...f,refresh:m}}function Ox({agents:f,tasks:s}){const[m,r]=K.useState("weight"),[g,T]=K.useState("desc"),[E,_]=K.useState(""),N=new Map;if(s)for(const w of s.items){const ie=N.get(w.agentId);(!ie||w.timestamp>ie.timestamp)&&N.set(w.agentId,w)}const p=f.filter(w=>w.scores.circuitOpen).length,U=f.filter(w=>w.scores.accuracy>=.5).length,B=f.reduce((w,ie)=>w+ie.scores.signals,0),L=f.reduce((w,ie)=>w+ie.totalTokens,0),se=E.trim().toLowerCase(),fe=se?f.filter(w=>w.id.toLowerCase().includes(se)||w.provider.toLowerCase().includes(se)||w.model.toLowerCase().includes(se)):f,me=w=>{const ie=w.scores;switch(m){case"weight":return ie.dispatchWeight;case"accuracy":return ie.accuracy;case"uniqueness":return ie.uniqueness;case"impact":return ie.impactScore;case"signals":return ie.signals;case"agreements":return ie.agreements;case"hallucinations":return ie.hallucinations;case"lastTask":{const z=N.get(w.id);return z?new Date(z.timestamp).getTime():0}}},Q=[...fe].sort((w,ie)=>{const z=me(w),te=me(ie);return g==="desc"?te-z:z-te}),J=w=>{m===w?T(ie=>ie==="desc"?"asc":"desc"):(r(w),T("desc"))},he=w=>m===w?g==="desc"?"▾":"▴":"";return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("h1",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Team ",i.jsx("span",{className:"ml-2 text-primary",children:f.length})]}),i.jsx("div",{className:"mt-2 grid grid-cols-2 gap-px overflow-hidden rounded-md border border-border/40 bg-border/30 sm:grid-cols-4",children:[{label:"Healthy",value:U,color:"text-confirmed"},{label:"Benched",value:p,color:p>0?"text-destructive":"text-muted-foreground"},{label:"Total Signals",value:B.toLocaleString(),color:"text-foreground"},{label:"Tokens Used",value:L.toLocaleString(),color:"text-foreground"}].map(w=>i.jsxs("div",{className:"bg-card/80 px-4 py-3",children:[i.jsx("div",{className:`font-mono text-lg font-bold tabular-nums ${w.color}`,children:w.value}),i.jsx("div",{className:"mt-0.5 font-mono text-[10px] uppercase tracking-wider text-muted-foreground/70",children:w.label})]},w.label))})]}),i.jsx("div",{className:"mb-3",children:i.jsx("input",{type:"text",value:E,onChange:w=>_(w.target.value),placeholder:"Search agents by id, provider, or model...",className:"w-full max-w-md rounded-md border border-border/40 bg-card/80 px-3 py-1.5 font-mono text-xs text-foreground placeholder:text-muted-foreground/50 focus:border-primary/40 focus:outline-none"})}),i.jsx("div",{className:"overflow-hidden rounded-md border border-border/40 bg-card/80",children:i.jsxs("table",{className:"w-full text-left",children:[i.jsxs("colgroup",{children:[i.jsx("col",{style:{width:44}}),i.jsx("col",{}),i.jsx("col",{style:{width:80}}),i.jsx("col",{style:{width:260}}),i.jsx("col",{style:{width:80}}),i.jsx("col",{style:{width:60}}),i.jsx("col",{})]}),i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-border/40 bg-muted/20 font-mono text-[10px] uppercase tracking-wider text-muted-foreground/80",children:[i.jsx("th",{className:"py-2.5 pl-5 pr-2 text-center",children:"#"}),i.jsx("th",{className:"py-2.5 pr-3 text-left",children:"Agent"}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>J("weight"),children:["Weight ",he("weight")]}),i.jsx("th",{className:"py-2.5 pr-4 text-left align-top",children:i.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[i.jsxs("button",{onClick:()=>J("accuracy"),className:"flex items-center gap-1 hover:text-foreground",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-confirmed"}),"Acc",he("accuracy")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>J("uniqueness"),className:"flex items-center gap-1 hover:text-foreground",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-unique"}),"Unq",he("uniqueness")]}),i.jsx("span",{className:"text-muted-foreground/30",children:"·"}),i.jsxs("button",{onClick:()=>J("impact"),className:"flex items-center gap-1 hover:text-foreground",children:[i.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-[var(--color-impact)]"}),"Imp",he("impact")]})]})}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>J("signals"),children:["Signals ",he("signals")]}),i.jsxs("th",{className:"py-2.5 pr-4 text-right cursor-pointer select-none hover:text-foreground",onClick:()=>J("hallucinations"),"data-tooltip":"Hallucinations — fabricated findings caught by cross-review",children:["Halluc ",he("hallucinations")]}),i.jsxs("th",{className:"py-2.5 pr-5 text-left cursor-pointer select-none hover:text-foreground",onClick:()=>J("lastTask"),children:["Last Task ",he("lastTask")]})]})}),i.jsx("tbody",{children:Q.map((w,ie)=>{const z=w.scores,te=N.get(w.id),Y=z.dispatchWeight>=1.2?"text-confirmed":z.dispatchWeight>=.8?"text-foreground":"text-disputed",$=g==="desc"&&(m==="weight"||m==="accuracy"||m==="impact")?ie+1:null;return i.jsxs("tr",{className:"group border-t border-border/20 align-top transition hover:bg-accent/20",children:[i.jsx("td",{className:"py-3 pl-5 pr-2 text-center align-top",children:i.jsx("span",{className:`font-mono text-[11px] tabular-nums ${$===1?"font-bold text-primary":$===2||$===3?"font-semibold text-foreground/80":"text-muted-foreground/40"}`,children:$??"·"})}),i.jsx("td",{className:"py-2.5 pr-3 align-top",children:i.jsxs("a",{href:`/dashboard/agent/${encodeURIComponent(w.id)}`,className:"flex items-center gap-3",children:[i.jsx(As,{agentId:w.id,size:32,signals:z.signals,accuracy:z.accuracy,uniqueness:z.uniqueness,impact:z.impactScore}),i.jsxs("div",{className:"min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"truncate font-mono text-xs font-semibold text-foreground group-hover:text-primary",children:w.id}),z.circuitOpen&&i.jsx("span",{className:"shrink-0 rounded bg-destructive/15 px-1 font-mono text-[8px] font-bold uppercase tracking-wider text-destructive","data-tooltip":"Benched: too many consecutive failures. Deprioritized until new clean signals recover the score.",children:"benched"})]}),i.jsxs("div",{className:"truncate font-mono text-[10px] text-muted-foreground/50",children:[w.provider,"/",w.model]})]})]})}),i.jsx("td",{className:"py-3 pr-4 text-right align-top",children:i.jsx("span",{className:`font-mono text-sm font-bold tabular-nums ${Y}`,children:z.dispatchWeight.toFixed(2)})}),i.jsx("td",{className:"py-3 pr-4 align-top",children:i.jsxs("div",{className:"space-y-1",children:[i.jsx(_s,{label:"A",value:z.accuracy,fillClass:z.accuracy>=.7?"bg-confirmed":z.accuracy>=.4?"bg-unverified":"bg-disputed"}),i.jsx(_s,{label:"U",value:z.uniqueness,fillClass:"bg-unique"}),i.jsx(_s,{label:"I",value:z.impactScore,fillClass:"bg-[var(--color-impact)]"})]})}),i.jsx("td",{className:"py-3 pr-4 text-right align-top font-mono text-xs tabular-nums text-foreground",children:z.signals.toLocaleString()}),i.jsx("td",{className:"py-3 pr-4 text-right align-top font-mono text-xs tabular-nums",children:i.jsx("span",{className:z.hallucinations>0?"font-bold text-destructive":"text-muted-foreground/40","data-tooltip":`Agreements ${z.agreements} · Disagreements ${z.disagreements} · Hallucinations ${z.hallucinations}`,children:z.hallucinations})}),i.jsx("td",{className:"py-3 pr-5 align-top",children:te?i.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[i.jsx("span",{className:"shrink-0 rounded border border-amber-500/30 bg-amber-500/10 px-1.5 py-0.5 font-mono text-[9px] font-semibold text-amber-400",children:te.taskId.slice(0,8)}),i.jsx("span",{className:"truncate font-mono text-[11px] text-muted-foreground/80",style:{maxWidth:260},children:te.task}),i.jsx("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground/50",children:Dt(te.timestamp)})]}):i.jsx("span",{className:"font-mono text-[10px] text-muted-foreground/30",children:"no tasks"})})]},w.id)})})]})})]})}function _s({label:f,value:s,fillClass:m}){return i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"w-2 font-mono text-[8px] uppercase text-muted-foreground/50",children:f}),i.jsx("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-background/60",children:i.jsx("div",{className:`h-full rounded-full ${m}`,style:{width:`${Math.max(0,Math.min(100,s*100))}%`}})}),i.jsxs("span",{className:"w-8 text-right font-mono text-[10px] tabular-nums text-foreground/80",children:[Math.round(s*100),"%"]})]})}function Cx({tasks:f}){const[s,m]=K.useState(""),[r,g]=K.useState(0),[T,E]=K.useState(null),_=50,N=f.items.filter(Q=>Q.status==="completed").length,p=f.items.filter(Q=>Q.status==="failed").length,U=f.items.filter(Q=>Q.status==="running").length,B=s.trim().toLowerCase(),L=B?f.items.filter(Q=>{var J,he,w,ie;return((J=Q.task)==null?void 0:J.toLowerCase().includes(B))||((he=Q.agentId)==null?void 0:he.toLowerCase().includes(B))||((w=Q.taskId)==null?void 0:w.toLowerCase().includes(B))||((ie=Q.status)==null?void 0:ie.toLowerCase().includes(B))}):f.items,se=Math.max(1,Math.ceil(L.length/_)),fe=Math.min(r,se-1),me=L.slice(fe*_,(fe+1)*_);return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("h1",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Tasks ",i.jsx("span",{className:"ml-2 text-primary",children:f.total})]}),i.jsxs("div",{className:"mt-2 flex gap-4 font-mono text-[11px] text-muted-foreground",children:[i.jsxs("span",{children:[i.jsx("span",{className:"text-confirmed",children:N})," completed"]}),p>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-destructive",children:p})," failed"]}),U>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:U})," running"]}),i.jsxs("span",{children:["showing ",me.length," of ",L.length,B&&` (filtered from ${f.items.length})`]})]})]}),i.jsxs("div",{className:"mb-3 flex items-center justify-between gap-3",children:[i.jsx("input",{type:"text",value:s,onChange:Q=>{m(Q.target.value),g(0)},placeholder:"Search tasks by description, agent, id, status...",className:"w-full max-w-md rounded-md border border-border/40 bg-card/80 px-3 py-1.5 font-mono text-xs text-foreground placeholder:text-muted-foreground/50 focus:border-primary/40 focus:outline-none"}),se>1&&i.jsxs("div",{className:"flex shrink-0 items-center gap-2 font-mono text-[11px] text-muted-foreground",children:[i.jsx("button",{onClick:()=>g(Q=>Math.max(0,Q-1)),disabled:fe===0,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"◂ Prev"}),i.jsxs("span",{children:[fe+1," / ",se]}),i.jsx("button",{onClick:()=>g(Q=>Math.min(se-1,Q+1)),disabled:fe>=se-1,className:"rounded-sm border border-border/40 bg-card px-2 py-0.5 transition hover:bg-accent/50 disabled:opacity-30",children:"Next ▸"})]})]}),i.jsx("div",{className:"overflow-hidden rounded-md border border-border/40 bg-card/80",children:me.length===0?i.jsx("div",{className:"py-12 text-center text-sm text-muted-foreground",children:B?"No tasks match your search.":"No tasks yet."}):i.jsxs("table",{className:"w-full text-left",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-border/40 bg-muted/30",children:[i.jsx("th",{className:"py-2.5 pl-4 pr-2 text-xs font-medium text-muted-foreground",style:{width:32}}),i.jsx("th",{className:"py-2.5 pr-3 font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"ID"}),i.jsx("th",{className:"py-2.5 pr-3 font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Agent"}),i.jsx("th",{className:"py-2.5 pr-3 text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Description"}),i.jsx("th",{className:"py-2.5 pr-3 font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Duration"}),i.jsx("th",{className:"py-2.5 pr-4 text-right font-mono text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"When"})]})}),i.jsx("tbody",{children:me.map(Q=>i.jsx(nm,{task:Q,onClick:E},Q.taskId))})]})}),i.jsx(dx,{task:T,onClose:()=>E(null)})]})}function Ux({consensus:f,consensusReports:s}){const m=f.runs.reduce((T,E)=>T+(E.counts.agreement||0),0),r=f.runs.reduce((T,E)=>T+((E.counts.disagreement||0)+(E.counts.hallucination||0)),0),g=f.runs.reduce((T,E)=>T+(E.counts.unverified||0),0);return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("h1",{className:"font-mono text-[11px] font-bold uppercase tracking-widest text-foreground",children:["Debates ",i.jsx("span",{className:"ml-2 text-primary",children:f.runs.length})]}),i.jsxs("div",{className:"mt-2 flex gap-4 font-mono text-[11px] text-muted-foreground",children:[i.jsxs("span",{children:[i.jsx("span",{className:"text-confirmed",children:m})," confirmed"]}),i.jsxs("span",{children:[i.jsx("span",{className:"text-disputed",children:r})," disputed"]}),g>0&&i.jsxs("span",{children:[i.jsx("span",{className:"text-unverified",children:g})," unverified"]}),i.jsxs("span",{children:[f.totalSignals," total signals"]})]})]}),i.jsx(am,{consensus:f,reports:s,showAll:!0,hideHeader:!0})]})}function Rx(){const f=Pd(),{overview:s,agents:m,tasks:r,consensus:g,consensusReports:T,memories:E,loading:_,refresh:N}=Dx(),[p,U]=K.useState(0),B=K.useCallback(fe=>{fe.type!=="log_lines"&&N()},[N]);if(Ax(B),_||!s||!g)return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Vd,{}),i.jsx("div",{className:"flex items-center justify-center py-20 text-muted-foreground",children:"Loading dashboard..."})]});let L;const se=f.match(/^\/agent\/(.+)$/);if(se&&m){const fe=decodeURIComponent(se[1]);L=i.jsx(jx,{agentId:fe,agents:m,tasks:r,consensus:g})}else f==="/team"&&m?L=i.jsx(Ox,{agents:m,tasks:r}):f==="/tasks"&&r?L=i.jsx(Cx,{tasks:r}):f==="/debates"&&g?L=i.jsx(Ux,{consensus:g,consensusReports:T}):f==="/logs"?L=i.jsx(Ex,{}):L=i.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[280px_1fr] lg:items-start",children:[i.jsxs("aside",{className:"space-y-4 lg:sticky lg:top-4",children:[i.jsx(K0,{overview:s,activeTasks:p}),m&&i.jsx(J0,{agents:m})]}),i.jsxs("main",{className:"min-w-0 space-y-6",children:[i.jsx(P0,{onCountChange:U}),m&&i.jsx(fx,{agents:m}),i.jsx(am,{consensus:g,reports:T}),i.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[r&&i.jsx(xx,{tasks:r}),E&&i.jsx(bx,{memories:E})]})]})]});return i.jsxs("div",{className:"min-h-screen bg-background",children:[i.jsx(Vd,{}),i.jsx("main",{className:"mx-auto max-w-7xl space-y-6 px-6 py-6",children:L})]})}function qx(){const{authed:f,login:s,error:m}=zx();return f===null?i.jsx("div",{className:"flex min-h-screen items-center justify-center text-muted-foreground",children:"Loading..."}):f?i.jsx(Rx,{}):i.jsx(w0,{onLogin:s,error:m})}G0.createRoot(document.getElementById("root")).render(i.jsx(K.StrictMode,{children:i.jsx(qx,{})}));
|