homaruscc 0.2.0 → 0.4.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/README.md +30 -9
- package/dashboard/dist/assets/index-CIzoeO8A.js +52 -0
- package/dashboard/dist/favicon.ico +0 -0
- package/dashboard/dist/favicon.png +0 -0
- package/dashboard/dist/index.html +15 -0
- package/dist/agent-registry.d.ts +9 -12
- package/dist/agent-registry.d.ts.map +1 -1
- package/dist/agent-registry.js +44 -113
- package/dist/agent-registry.js.map +1 -1
- package/dist/claude-code-registrar.d.ts +10 -0
- package/dist/claude-code-registrar.d.ts.map +1 -0
- package/dist/claude-code-registrar.js +71 -0
- package/dist/claude-code-registrar.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +28 -0
- package/dist/cli.js.map +1 -0
- package/dist/compaction-manager.d.ts +24 -0
- package/dist/compaction-manager.d.ts.map +1 -1
- package/dist/compaction-manager.js +88 -7
- package/dist/compaction-manager.js.map +1 -1
- package/dist/dashboard-server.d.ts.map +1 -1
- package/dist/dashboard-server.js +348 -4
- package/dist/dashboard-server.js.map +1 -1
- package/dist/homaruscc.d.ts.map +1 -1
- package/dist/homaruscc.js +1 -2
- package/dist/homaruscc.js.map +1 -1
- package/dist/mcp-tools.d.ts.map +1 -1
- package/dist/mcp-tools.js +28 -0
- package/dist/mcp-tools.js.map +1 -1
- package/dist/memory-index.js +1 -1
- package/dist/memory-index.js.map +1 -1
- package/dist/scaffolder.d.ts +16 -0
- package/dist/scaffolder.d.ts.map +1 -0
- package/dist/scaffolder.js +154 -0
- package/dist/scaffolder.js.map +1 -0
- package/dist/session-checkpoint.d.ts +3 -0
- package/dist/session-checkpoint.d.ts.map +1 -1
- package/dist/session-checkpoint.js +24 -0
- package/dist/session-checkpoint.js.map +1 -1
- package/dist/telegram-adapter.d.ts +6 -0
- package/dist/telegram-adapter.d.ts.map +1 -1
- package/dist/telegram-adapter.js +151 -3
- package/dist/telegram-adapter.js.map +1 -1
- package/dist/transcript-logger.d.ts +10 -0
- package/dist/transcript-logger.d.ts.map +1 -1
- package/dist/transcript-logger.js +4 -0
- package/dist/transcript-logger.js.map +1 -1
- package/dist/wizard.d.ts +24 -0
- package/dist/wizard.d.ts.map +1 -0
- package/dist/wizard.js +146 -0
- package/dist/wizard.js.map +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
(function(){const U=document.createElement("link").relList;if(U&&U.supports&&U.supports("modulepreload"))return;for(const M of document.querySelectorAll('link[rel="modulepreload"]'))o(M);new MutationObserver(M=>{for(const B of M)if(B.type==="childList")for(const O of B.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&o(O)}).observe(document,{childList:!0,subtree:!0});function j(M){const B={};return M.integrity&&(B.integrity=M.integrity),M.referrerPolicy&&(B.referrerPolicy=M.referrerPolicy),M.crossOrigin==="use-credentials"?B.credentials="include":M.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function o(M){if(M.ep)return;M.ep=!0;const B=j(M);fetch(M.href,B)}})();var zf={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 Or;function ry(){if(Or)return Mn;Or=1;var b=Symbol.for("react.transitional.element"),U=Symbol.for("react.fragment");function j(o,M,B){var O=null;if(B!==void 0&&(O=""+B),M.key!==void 0&&(O=""+M.key),"key"in M){B={};for(var R in M)R!=="key"&&(B[R]=M[R])}else B=M;return M=B.ref,{$$typeof:b,type:o,key:O,ref:M!==void 0?M:null,props:B}}return Mn.Fragment=U,Mn.jsx=j,Mn.jsxs=j,Mn}var Rr;function hy(){return Rr||(Rr=1,zf.exports=ry()),zf.exports}var f=hy(),Tf={exports:{}},w={};/**
|
|
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 Ur;function yy(){if(Ur)return w;Ur=1;var b=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),tl=Symbol.iterator;function ul(r){return r===null||typeof r!="object"?null:(r=tl&&r[tl]||r["@@iterator"],typeof r=="function"?r:null)}var bl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ml=Object.assign,El={};function Ol(r,A,N){this.props=r,this.context=A,this.refs=El,this.updater=N||bl}Ol.prototype.isReactComponent={},Ol.prototype.setState=function(r,A){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,A,"setState")},Ol.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function Jl(){}Jl.prototype=Ol.prototype;function Al(r,A,N){this.props=r,this.context=A,this.refs=El,this.updater=N||bl}var Nl=Al.prototype=new Jl;Nl.constructor=Al,Ml(Nl,Ol.prototype),Nl.isPureReactComponent=!0;var wl=Array.isArray;function Cl(){}var q={H:null,A:null,T:null,S:null},yl=Object.prototype.hasOwnProperty;function J(r,A,N){var z=N.ref;return{$$typeof:b,type:r,key:A,ref:z!==void 0?z:null,props:N}}function Zl(r,A){return J(r.type,A,r.props)}function Rl(r){return typeof r=="object"&&r!==null&&r.$$typeof===b}function Sl(r){var A={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(N){return A[N]})}var Et=/\/+/g;function Pl(r,A){return typeof r=="object"&&r!==null&&r.key!=null?Sl(""+r.key):A.toString(36)}function et(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(Cl,Cl):(r.status="pending",r.then(function(A){r.status==="pending"&&(r.status="fulfilled",r.value=A)},function(A){r.status==="pending"&&(r.status="rejected",r.reason=A)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function x(r,A,N,z,Z){var W=typeof r;(W==="undefined"||W==="boolean")&&(r=null);var il=!1;if(r===null)il=!0;else switch(W){case"bigint":case"string":case"number":il=!0;break;case"object":switch(r.$$typeof){case b:case U:il=!0;break;case G:return il=r._init,x(il(r._payload),A,N,z,Z)}}if(il)return Z=Z(r),il=z===""?"."+Pl(r,0):z,wl(Z)?(N="",il!=null&&(N=il.replace(Et,"$&/")+"/"),x(Z,A,N,"",function(Na){return Na})):Z!=null&&(Rl(Z)&&(Z=Zl(Z,N+(Z.key==null||r&&r.key===Z.key?"":(""+Z.key).replace(Et,"$&/")+"/")+il)),A.push(Z)),1;il=0;var Xl=z===""?".":z+":";if(wl(r))for(var Ul=0;Ul<r.length;Ul++)z=r[Ul],W=Xl+Pl(z,Ul),il+=x(z,A,N,W,Z);else if(Ul=ul(r),typeof Ul=="function")for(r=Ul.call(r),Ul=0;!(z=r.next()).done;)z=z.value,W=Xl+Pl(z,Ul++),il+=x(z,A,N,W,Z);else if(W==="object"){if(typeof r.then=="function")return x(et(r),A,N,z,Z);throw A=String(r),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}return il}function C(r,A,N){if(r==null)return r;var z=[],Z=0;return x(r,z,"","",function(W){return A.call(N,W,Z++)}),z}function V(r){if(r._status===-1){var A=r._result;A=A(),A.then(function(N){(r._status===0||r._status===-1)&&(r._status=1,r._result=N)},function(N){(r._status===0||r._status===-1)&&(r._status=2,r._result=N)}),r._status===-1&&(r._status=0,r._result=A)}if(r._status===1)return r._result.default;throw r._result}var ol=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},dl={map:C,forEach:function(r,A,N){C(r,function(){A.apply(this,arguments)},N)},count:function(r){var A=0;return C(r,function(){A++}),A},toArray:function(r){return C(r,function(A){return A})||[]},only:function(r){if(!Rl(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};return w.Activity=H,w.Children=dl,w.Component=Ol,w.Fragment=j,w.Profiler=M,w.PureComponent=Al,w.StrictMode=o,w.Suspense=D,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,w.__COMPILER_RUNTIME={__proto__:null,c:function(r){return q.H.useMemoCache(r)}},w.cache=function(r){return function(){return r.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(r,A,N){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var z=Ml({},r.props),Z=r.key;if(A!=null)for(W in A.key!==void 0&&(Z=""+A.key),A)!yl.call(A,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&A.ref===void 0||(z[W]=A[W]);var W=arguments.length-2;if(W===1)z.children=N;else if(1<W){for(var il=Array(W),Xl=0;Xl<W;Xl++)il[Xl]=arguments[Xl+2];z.children=il}return J(r.type,Z,z)},w.createContext=function(r){return r={$$typeof:O,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:B,_context:r},r},w.createElement=function(r,A,N){var z,Z={},W=null;if(A!=null)for(z in A.key!==void 0&&(W=""+A.key),A)yl.call(A,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(Z[z]=A[z]);var il=arguments.length-2;if(il===1)Z.children=N;else if(1<il){for(var Xl=Array(il),Ul=0;Ul<il;Ul++)Xl[Ul]=arguments[Ul+2];Z.children=Xl}if(r&&r.defaultProps)for(z in il=r.defaultProps,il)Z[z]===void 0&&(Z[z]=il[z]);return J(r,W,Z)},w.createRef=function(){return{current:null}},w.forwardRef=function(r){return{$$typeof:R,render:r}},w.isValidElement=Rl,w.lazy=function(r){return{$$typeof:G,_payload:{_status:-1,_result:r},_init:V}},w.memo=function(r,A){return{$$typeof:v,type:r,compare:A===void 0?null:A}},w.startTransition=function(r){var A=q.T,N={};q.T=N;try{var z=r(),Z=q.S;Z!==null&&Z(N,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(Cl,ol)}catch(W){ol(W)}finally{A!==null&&N.types!==null&&(A.types=N.types),q.T=A}},w.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},w.use=function(r){return q.H.use(r)},w.useActionState=function(r,A,N){return q.H.useActionState(r,A,N)},w.useCallback=function(r,A){return q.H.useCallback(r,A)},w.useContext=function(r){return q.H.useContext(r)},w.useDebugValue=function(){},w.useDeferredValue=function(r,A){return q.H.useDeferredValue(r,A)},w.useEffect=function(r,A){return q.H.useEffect(r,A)},w.useEffectEvent=function(r){return q.H.useEffectEvent(r)},w.useId=function(){return q.H.useId()},w.useImperativeHandle=function(r,A,N){return q.H.useImperativeHandle(r,A,N)},w.useInsertionEffect=function(r,A){return q.H.useInsertionEffect(r,A)},w.useLayoutEffect=function(r,A){return q.H.useLayoutEffect(r,A)},w.useMemo=function(r,A){return q.H.useMemo(r,A)},w.useOptimistic=function(r,A){return q.H.useOptimistic(r,A)},w.useReducer=function(r,A,N){return q.H.useReducer(r,A,N)},w.useRef=function(r){return q.H.useRef(r)},w.useState=function(r){return q.H.useState(r)},w.useSyncExternalStore=function(r,A,N){return q.H.useSyncExternalStore(r,A,N)},w.useTransition=function(){return q.H.useTransition()},w.version="19.2.4",w}var Br;function _f(){return Br||(Br=1,Tf.exports=yy()),Tf.exports}var X=_f(),Ef={exports:{}},On={},Af={exports:{}},jf={};/**
|
|
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 Hr;function my(){return Hr||(Hr=1,(function(b){function U(x,C){var V=x.length;x.push(C);l:for(;0<V;){var ol=V-1>>>1,dl=x[ol];if(0<M(dl,C))x[ol]=C,x[V]=dl,V=ol;else break l}}function j(x){return x.length===0?null:x[0]}function o(x){if(x.length===0)return null;var C=x[0],V=x.pop();if(V!==C){x[0]=V;l:for(var ol=0,dl=x.length,r=dl>>>1;ol<r;){var A=2*(ol+1)-1,N=x[A],z=A+1,Z=x[z];if(0>M(N,V))z<dl&&0>M(Z,N)?(x[ol]=Z,x[z]=V,ol=z):(x[ol]=N,x[A]=V,ol=A);else if(z<dl&&0>M(Z,V))x[ol]=Z,x[z]=V,ol=z;else break l}}return C}function M(x,C){var V=x.sortIndex-C.sortIndex;return V!==0?V:x.id-C.id}if(b.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var B=performance;b.unstable_now=function(){return B.now()}}else{var O=Date,R=O.now();b.unstable_now=function(){return O.now()-R}}var D=[],v=[],G=1,H=null,tl=3,ul=!1,bl=!1,Ml=!1,El=!1,Ol=typeof setTimeout=="function"?setTimeout:null,Jl=typeof clearTimeout=="function"?clearTimeout:null,Al=typeof setImmediate<"u"?setImmediate:null;function Nl(x){for(var C=j(v);C!==null;){if(C.callback===null)o(v);else if(C.startTime<=x)o(v),C.sortIndex=C.expirationTime,U(D,C);else break;C=j(v)}}function wl(x){if(Ml=!1,Nl(x),!bl)if(j(D)!==null)bl=!0,Cl||(Cl=!0,Sl());else{var C=j(v);C!==null&&et(wl,C.startTime-x)}}var Cl=!1,q=-1,yl=5,J=-1;function Zl(){return El?!0:!(b.unstable_now()-J<yl)}function Rl(){if(El=!1,Cl){var x=b.unstable_now();J=x;var C=!0;try{l:{bl=!1,Ml&&(Ml=!1,Jl(q),q=-1),ul=!0;var V=tl;try{t:{for(Nl(x),H=j(D);H!==null&&!(H.expirationTime>x&&Zl());){var ol=H.callback;if(typeof ol=="function"){H.callback=null,tl=H.priorityLevel;var dl=ol(H.expirationTime<=x);if(x=b.unstable_now(),typeof dl=="function"){H.callback=dl,Nl(x),C=!0;break t}H===j(D)&&o(D),Nl(x)}else o(D);H=j(D)}if(H!==null)C=!0;else{var r=j(v);r!==null&&et(wl,r.startTime-x),C=!1}}break l}finally{H=null,tl=V,ul=!1}C=void 0}}finally{C?Sl():Cl=!1}}}var Sl;if(typeof Al=="function")Sl=function(){Al(Rl)};else if(typeof MessageChannel<"u"){var Et=new MessageChannel,Pl=Et.port2;Et.port1.onmessage=Rl,Sl=function(){Pl.postMessage(null)}}else Sl=function(){Ol(Rl,0)};function et(x,C){q=Ol(function(){x(b.unstable_now())},C)}b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(x){x.callback=null},b.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):yl=0<x?Math.floor(1e3/x):5},b.unstable_getCurrentPriorityLevel=function(){return tl},b.unstable_next=function(x){switch(tl){case 1:case 2:case 3:var C=3;break;default:C=tl}var V=tl;tl=C;try{return x()}finally{tl=V}},b.unstable_requestPaint=function(){El=!0},b.unstable_runWithPriority=function(x,C){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var V=tl;tl=x;try{return C()}finally{tl=V}},b.unstable_scheduleCallback=function(x,C,V){var ol=b.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ol+V:ol):V=ol,x){case 1:var dl=-1;break;case 2:dl=250;break;case 5:dl=1073741823;break;case 4:dl=1e4;break;default:dl=5e3}return dl=V+dl,x={id:G++,callback:C,priorityLevel:x,startTime:V,expirationTime:dl,sortIndex:-1},V>ol?(x.sortIndex=V,U(v,x),j(D)===null&&x===j(v)&&(Ml?(Jl(q),q=-1):Ml=!0,et(wl,V-ol))):(x.sortIndex=dl,U(D,x),bl||ul||(bl=!0,Cl||(Cl=!0,Sl()))),x},b.unstable_shouldYield=Zl,b.unstable_wrapCallback=function(x){var C=tl;return function(){var V=tl;tl=C;try{return x.apply(this,arguments)}finally{tl=V}}}})(jf)),jf}var Nr;function gy(){return Nr||(Nr=1,Af.exports=my()),Af.exports}var Cf={exports:{}},lt={};/**
|
|
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 qr;function vy(){if(qr)return lt;qr=1;var b=_f();function U(D){var v="https://react.dev/errors/"+D;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var G=2;G<arguments.length;G++)v+="&args[]="+encodeURIComponent(arguments[G])}return"Minified React error #"+D+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function j(){}var o={d:{f:j,r:function(){throw Error(U(522))},D:j,C:j,L:j,m:j,X:j,S:j,M:j},p:0,findDOMNode:null},M=Symbol.for("react.portal");function B(D,v,G){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:H==null?null:""+H,children:D,containerInfo:v,implementation:G}}var O=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(D,v){if(D==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,lt.createPortal=function(D,v){var G=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(U(299));return B(D,v,null,G)},lt.flushSync=function(D){var v=O.T,G=o.p;try{if(O.T=null,o.p=2,D)return D()}finally{O.T=v,o.p=G,o.d.f()}},lt.preconnect=function(D,v){typeof D=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(D,v))},lt.prefetchDNS=function(D){typeof D=="string"&&o.d.D(D)},lt.preinit=function(D,v){if(typeof D=="string"&&v&&typeof v.as=="string"){var G=v.as,H=R(G,v.crossOrigin),tl=typeof v.integrity=="string"?v.integrity:void 0,ul=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;G==="style"?o.d.S(D,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:H,integrity:tl,fetchPriority:ul}):G==="script"&&o.d.X(D,{crossOrigin:H,integrity:tl,fetchPriority:ul,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},lt.preinitModule=function(D,v){if(typeof D=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var G=R(v.as,v.crossOrigin);o.d.M(D,{crossOrigin:G,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(D)},lt.preload=function(D,v){if(typeof D=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var G=v.as,H=R(G,v.crossOrigin);o.d.L(D,G,{crossOrigin:H,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},lt.preloadModule=function(D,v){if(typeof D=="string")if(v){var G=R(v.as,v.crossOrigin);o.d.m(D,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:G,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(D)},lt.requestFormReset=function(D){o.d.r(D)},lt.unstable_batchedUpdates=function(D,v){return D(v)},lt.useFormState=function(D,v,G){return O.H.useFormState(D,v,G)},lt.useFormStatus=function(){return O.H.useHostTransitionStatus()},lt.version="19.2.4",lt}var Yr;function py(){if(Yr)return Cf.exports;Yr=1;function b(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b)}catch(U){console.error(U)}}return b(),Cf.exports=vy(),Cf.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 Gr;function by(){if(Gr)return On;Gr=1;var b=gy(),U=_f(),j=py();function o(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function M(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function B(l){var t=l,e=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;while(l)}return t.tag===3?e:null}function O(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function R(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function D(l){if(B(l)!==l)throw Error(o(188))}function v(l){var t=l.alternate;if(!t){if(t=B(l),t===null)throw Error(o(188));return t!==l?null:l}for(var e=l,a=t;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return D(n),l;if(u===a)return D(n),t;u=u.sibling}throw Error(o(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===e){i=!0,e=n,a=u;break}if(c===a){i=!0,a=n,e=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===e){i=!0,e=u,a=n;break}if(c===a){i=!0,a=u,e=n;break}c=c.sibling}if(!i)throw Error(o(189))}}if(e.alternate!==a)throw Error(o(190))}if(e.tag!==3)throw Error(o(188));return e.stateNode.current===e?l:t}function G(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=G(l),t!==null)return t;l=l.sibling}return null}var H=Object.assign,tl=Symbol.for("react.element"),ul=Symbol.for("react.transitional.element"),bl=Symbol.for("react.portal"),Ml=Symbol.for("react.fragment"),El=Symbol.for("react.strict_mode"),Ol=Symbol.for("react.profiler"),Jl=Symbol.for("react.consumer"),Al=Symbol.for("react.context"),Nl=Symbol.for("react.forward_ref"),wl=Symbol.for("react.suspense"),Cl=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),yl=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),Zl=Symbol.for("react.memo_cache_sentinel"),Rl=Symbol.iterator;function Sl(l){return l===null||typeof l!="object"?null:(l=Rl&&l[Rl]||l["@@iterator"],typeof l=="function"?l:null)}var Et=Symbol.for("react.client.reference");function Pl(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Et?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Ml:return"Fragment";case Ol:return"Profiler";case El:return"StrictMode";case wl:return"Suspense";case Cl:return"SuspenseList";case J:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case bl:return"Portal";case Al:return l.displayName||"Context";case Jl:return(l._context.displayName||"Context")+".Consumer";case Nl:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case q:return t=l.displayName||null,t!==null?t:Pl(l.type)||"Memo";case yl:t=l._payload,l=l._init;try{return Pl(l(t))}catch{}}return null}var et=Array.isArray,x=U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=j.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ol=[],dl=-1;function r(l){return{current:l}}function A(l){0>dl||(l.current=ol[dl],ol[dl]=null,dl--)}function N(l,t){dl++,ol[dl]=l.current,l.current=t}var z=r(null),Z=r(null),W=r(null),il=r(null);function Xl(l,t){switch(N(W,t),N(Z,l),N(z,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?lr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=lr(t),l=tr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}A(z),N(z,l)}function Ul(){A(z),A(Z),A(W)}function Na(l){l.memoizedState!==null&&N(il,l);var t=z.current,e=tr(t,l.type);t!==e&&(N(Z,l),N(z,e))}function Un(l){Z.current===l&&(A(z),A(Z)),il.current===l&&(A(il),jn._currentValue=V)}var ai,Df;function Ue(l){if(ai===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ai=t&&t[1]||"",Df=-1<e.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ai+l+Df}var ni=!1;function ui(l,t){if(!l||ni)return"";ni=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(p){var g=p}Reflect.construct(l,[],E)}else{try{E.call()}catch(p){g=p}l.call(E.prototype)}}else{try{throw Error()}catch(p){g=p}(E=l())&&typeof E.catch=="function"&&E.catch(function(){})}}catch(p){if(p&&g&&typeof p.stack=="string")return[p.stack,g.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(),i=u[0],c=u[1];if(i&&c){var s=i.split(`
|
|
44
|
+
`),m=c.split(`
|
|
45
|
+
`);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===m.length)for(a=s.length-1,n=m.length-1;1<=a&&0<=n&&s[a]!==m[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==m[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==m[n]){var S=`
|
|
46
|
+
`+s[a].replace(" at new "," at ");return l.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",l.displayName)),S}while(1<=a&&0<=n);break}}}finally{ni=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?Ue(e):""}function Zr(l,t){switch(l.tag){case 26:case 27:case 5:return Ue(l.type);case 16:return Ue("Lazy");case 13:return l.child!==t&&t!==null?Ue("Suspense Fallback"):Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 15:return ui(l.type,!1);case 11:return ui(l.type.render,!1);case 1:return ui(l.type,!0);case 31:return Ue("Activity");default:return""}}function Mf(l){try{var t="",e=null;do t+=Zr(l,e),e=l,l=l.return;while(l);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var ii=Object.prototype.hasOwnProperty,ci=b.unstable_scheduleCallback,fi=b.unstable_cancelCallback,Vr=b.unstable_shouldYield,Kr=b.unstable_requestPaint,rt=b.unstable_now,Jr=b.unstable_getCurrentPriorityLevel,Of=b.unstable_ImmediatePriority,Rf=b.unstable_UserBlockingPriority,Bn=b.unstable_NormalPriority,wr=b.unstable_LowPriority,Uf=b.unstable_IdlePriority,Wr=b.log,kr=b.unstable_setDisableYieldValue,qa=null,ht=null;function fe(l){if(typeof Wr=="function"&&kr(l),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(qa,l)}catch{}}var yt=Math.clz32?Math.clz32:Ir,$r=Math.log,Fr=Math.LN2;function Ir(l){return l>>>=0,l===0?32:31-($r(l)/Fr|0)|0}var Hn=256,Nn=262144,qn=4194304;function Be(l){var t=l&42;if(t!==0)return t;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Yn(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var n=0,u=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=Be(a):(i&=c,i!==0?n=Be(i):e||(e=c&~l,e!==0&&(n=Be(e))))):(c=a&~u,c!==0?n=Be(c):i!==0?n=Be(i):e||(e=a&~l,e!==0&&(n=Be(e)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,e=t&-t,u>=e||u===32&&(e&4194048)!==0)?t:n}function Ya(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Pr(l,t){switch(l){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 Bf(){var l=qn;return qn<<=1,(qn&62914560)===0&&(qn=4194304),l}function si(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function Ga(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function l0(l,t,e,a,n,u){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,s=l.expirationTimes,m=l.hiddenUpdates;for(e=i&~e;0<e;){var S=31-yt(e),E=1<<S;c[S]=0,s[S]=-1;var g=m[S];if(g!==null)for(m[S]=null,S=0;S<g.length;S++){var p=g[S];p!==null&&(p.lane&=-536870913)}e&=~E}a!==0&&Hf(l,a,0),u!==0&&n===0&&l.tag!==0&&(l.suspendedLanes|=u&~(i&~t))}function Hf(l,t,e){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-yt(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|e&261930}function Nf(l,t){var e=l.entangledLanes|=t;for(l=l.entanglements;e;){var a=31-yt(e),n=1<<a;n&t|l[a]&t&&(l[a]|=t),e&=~n}}function qf(l,t){var e=t&-t;return e=(e&42)!==0?1:oi(e),(e&(l.suspendedLanes|t))!==0?0:e}function oi(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function di(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Yf(){var l=C.p;return l!==0?l:(l=window.event,l===void 0?32:Er(l.type))}function Gf(l,t){var e=C.p;try{return C.p=l,t()}finally{C.p=e}}var se=Math.random().toString(36).slice(2),Wl="__reactFiber$"+se,at="__reactProps$"+se,Ie="__reactContainer$"+se,ri="__reactEvents$"+se,t0="__reactListeners$"+se,e0="__reactHandles$"+se,Qf="__reactResources$"+se,Qa="__reactMarker$"+se;function hi(l){delete l[Wl],delete l[at],delete l[ri],delete l[t0],delete l[e0]}function Pe(l){var t=l[Wl];if(t)return t;for(var e=l.parentNode;e;){if(t=e[Ie]||e[Wl]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(l=fr(l);l!==null;){if(e=l[Wl])return e;l=fr(l)}return t}l=e,e=l.parentNode}return null}function la(l){if(l=l[Wl]||l[Ie]){var t=l.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return l}return null}function Xa(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(o(33))}function ta(l){var t=l[Qf];return t||(t=l[Qf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Vl(l){l[Qa]=!0}var Xf=new Set,Lf={};function He(l,t){ea(l,t),ea(l+"Capture",t)}function ea(l,t){for(Lf[l]=t,l=0;l<t.length;l++)Xf.add(t[l])}var a0=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]*$"),Zf={},Vf={};function n0(l){return ii.call(Vf,l)?!0:ii.call(Zf,l)?!1:a0.test(l)?Vf[l]=!0:(Zf[l]=!0,!1)}function Gn(l,t,e){if(n0(t))if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+e)}}function Qn(l,t,e){if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+e)}}function Vt(l,t,e,a){if(a===null)l.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(e);return}l.setAttributeNS(t,e,""+a)}}function At(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Kf(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u0(l,t,e){var a=Object.getOwnPropertyDescriptor(l.constructor.prototype,t);if(!l.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(l,t,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function yi(l){if(!l._valueTracker){var t=Kf(l)?"checked":"value";l._valueTracker=u0(l,t,""+l[t])}}function Jf(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return l&&(a=Kf(l)?l.checked?"true":"false":l.value),l=a,l!==e?(t.setValue(l),!0):!1}function Xn(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var i0=/[\n"\\]/g;function jt(l){return l.replace(i0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function mi(l,t,e,a,n,u,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+At(t)):l.value!==""+At(t)&&(l.value=""+At(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?gi(l,i,At(t)):e!=null?gi(l,i,At(e)):a!=null&&l.removeAttribute("value"),n==null&&u!=null&&(l.defaultChecked=!!u),n!=null&&(l.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+At(c):l.removeAttribute("name")}function wf(l,t,e,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(l.type=u),t!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){yi(l);return}e=e!=null?""+At(e):"",t=t!=null?""+At(t):e,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),yi(l)}function gi(l,t,e){t==="number"&&Xn(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function aa(l,t,e,a){if(l=l.options,t){t={};for(var n=0;n<e.length;n++)t["$"+e[n]]=!0;for(e=0;e<l.length;e++)n=t.hasOwnProperty("$"+l[e].value),l[e].selected!==n&&(l[e].selected=n),n&&a&&(l[e].defaultSelected=!0)}else{for(e=""+At(e),t=null,n=0;n<l.length;n++){if(l[n].value===e){l[n].selected=!0,a&&(l[n].defaultSelected=!0);return}t!==null||l[n].disabled||(t=l[n])}t!==null&&(t.selected=!0)}}function Wf(l,t,e){if(t!=null&&(t=""+At(t),t!==l.value&&(l.value=t),e==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=e!=null?""+At(e):""}function kf(l,t,e,a){if(t==null){if(a!=null){if(e!=null)throw Error(o(92));if(et(a)){if(1<a.length)throw Error(o(93));a=a[0]}e=a}e==null&&(e=""),t=e}e=At(t),l.defaultValue=e,a=l.textContent,a===e&&a!==""&&a!==null&&(l.value=a),yi(l)}function na(l,t){if(t){var e=l.firstChild;if(e&&e===l.lastChild&&e.nodeType===3){e.nodeValue=t;return}}l.textContent=t}var c0=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 $f(l,t,e){var a=t.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?l.setProperty(t,""):t==="float"?l.cssFloat="":l[t]="":a?l.setProperty(t,e):typeof e!="number"||e===0||c0.has(t)?t==="float"?l.cssFloat=e:l[t]=(""+e).trim():l[t]=e+"px"}function Ff(l,t,e){if(t!=null&&typeof t!="object")throw Error(o(62));if(l=l.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&e[n]!==a&&$f(l,n,a)}else for(var u in t)t.hasOwnProperty(u)&&$f(l,u,t[u])}function vi(l){if(l.indexOf("-")===-1)return!1;switch(l){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 f0=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"]]),s0=/^[\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 Ln(l){return s0.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Kt(){}var pi=null;function bi(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var ua=null,ia=null;function If(l){var t=la(l);if(t&&(l=t.stateNode)){var e=l[at]||null;l:switch(l=t.stateNode,t.type){case"input":if(mi(l,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),t=e.name,e.type==="radio"&&t!=null){for(e=l;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<e.length;t++){var a=e[t];if(a!==l&&a.form===l.form){var n=a[at]||null;if(!n)throw Error(o(90));mi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<e.length;t++)a=e[t],a.form===l.form&&Jf(a)}break l;case"textarea":Wf(l,e.value,e.defaultValue);break l;case"select":t=e.value,t!=null&&aa(l,!!e.multiple,t,!1)}}}var Si=!1;function Pf(l,t,e){if(Si)return l(t,e);Si=!0;try{var a=l(t);return a}finally{if(Si=!1,(ua!==null||ia!==null)&&(Du(),ua&&(t=ua,l=ia,ia=ua=null,If(t),l)))for(t=0;t<l.length;t++)If(l[t])}}function La(l,t){var e=l.stateNode;if(e===null)return null;var a=e[at]||null;if(a===null)return null;e=a[t];l: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)||(l=l.type,a=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!a;break l;default:l=!1}if(l)return null;if(e&&typeof e!="function")throw Error(o(231,t,typeof e));return e}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xi=!1;if(Jt)try{var Za={};Object.defineProperty(Za,"passive",{get:function(){xi=!0}}),window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,Za)}catch{xi=!1}var oe=null,zi=null,Zn=null;function ls(){if(Zn)return Zn;var l,t=zi,e=t.length,a,n="value"in oe?oe.value:oe.textContent,u=n.length;for(l=0;l<e&&t[l]===n[l];l++);var i=e-l;for(a=1;a<=i&&t[e-a]===n[u-a];a++);return Zn=n.slice(l,1<a?1-a:void 0)}function Vn(l){var t=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&t===13&&(l=13)):l=t,l===10&&(l=13),32<=l||l===13?l:0}function Kn(){return!0}function ts(){return!1}function nt(l){function t(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in l)l.hasOwnProperty(c)&&(e=l[c],this[c]=e?e(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Kn:ts,this.isPropagationStopped=ts,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=Kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Kn)},persist:function(){},isPersistent:Kn}),t}var Ne={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jn=nt(Ne),Va=H({},Ne,{view:0,detail:0}),o0=nt(Va),Ti,Ei,Ka,wn=H({},Va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ji,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Ka&&(Ka&&l.type==="mousemove"?(Ti=l.screenX-Ka.screenX,Ei=l.screenY-Ka.screenY):Ei=Ti=0,Ka=l),Ti)},movementY:function(l){return"movementY"in l?l.movementY:Ei}}),es=nt(wn),d0=H({},wn,{dataTransfer:0}),r0=nt(d0),h0=H({},Va,{relatedTarget:0}),Ai=nt(h0),y0=H({},Ne,{animationName:0,elapsedTime:0,pseudoElement:0}),m0=nt(y0),g0=H({},Ne,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),v0=nt(g0),p0=H({},Ne,{data:0}),as=nt(p0),b0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S0={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"},x0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z0(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=x0[l])?!!t[l]:!1}function ji(){return z0}var T0=H({},Va,{key:function(l){if(l.key){var t=b0[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=Vn(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?S0[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ji,charCode:function(l){return l.type==="keypress"?Vn(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Vn(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),E0=nt(T0),A0=H({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ns=nt(A0),j0=H({},Va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ji}),C0=nt(j0),_0=H({},Ne,{propertyName:0,elapsedTime:0,pseudoElement:0}),D0=nt(_0),M0=H({},wn,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),O0=nt(M0),R0=H({},Ne,{newState:0,oldState:0}),U0=nt(R0),B0=[9,13,27,32],Ci=Jt&&"CompositionEvent"in window,Ja=null;Jt&&"documentMode"in document&&(Ja=document.documentMode);var H0=Jt&&"TextEvent"in window&&!Ja,us=Jt&&(!Ci||Ja&&8<Ja&&11>=Ja),is=" ",cs=!1;function fs(l,t){switch(l){case"keyup":return B0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ss(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ca=!1;function N0(l,t){switch(l){case"compositionend":return ss(t);case"keypress":return t.which!==32?null:(cs=!0,is);case"textInput":return l=t.data,l===is&&cs?null:l;default:return null}}function q0(l,t){if(ca)return l==="compositionend"||!Ci&&fs(l,t)?(l=ls(),Zn=zi=oe=null,ca=!1,l):null;switch(l){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 us&&t.locale!=="ko"?null:t.data;default:return null}}var Y0={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 os(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!Y0[l.type]:t==="textarea"}function ds(l,t,e,a){ua?ia?ia.push(a):ia=[a]:ua=a,t=Nu(t,"onChange"),0<t.length&&(e=new Jn("onChange","change",null,e,a),l.push({event:e,listeners:t}))}var wa=null,Wa=null;function G0(l){Wd(l,0)}function Wn(l){var t=Xa(l);if(Jf(t))return l}function rs(l,t){if(l==="change")return t}var hs=!1;if(Jt){var _i;if(Jt){var Di="oninput"in document;if(!Di){var ys=document.createElement("div");ys.setAttribute("oninput","return;"),Di=typeof ys.oninput=="function"}_i=Di}else _i=!1;hs=_i&&(!document.documentMode||9<document.documentMode)}function ms(){wa&&(wa.detachEvent("onpropertychange",gs),Wa=wa=null)}function gs(l){if(l.propertyName==="value"&&Wn(Wa)){var t=[];ds(t,Wa,l,bi(l)),Pf(G0,t)}}function Q0(l,t,e){l==="focusin"?(ms(),wa=t,Wa=e,wa.attachEvent("onpropertychange",gs)):l==="focusout"&&ms()}function X0(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Wn(Wa)}function L0(l,t){if(l==="click")return Wn(t)}function Z0(l,t){if(l==="input"||l==="change")return Wn(t)}function V0(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var mt=typeof Object.is=="function"?Object.is:V0;function ka(l,t){if(mt(l,t))return!0;if(typeof l!="object"||l===null||typeof t!="object"||t===null)return!1;var e=Object.keys(l),a=Object.keys(t);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!ii.call(t,n)||!mt(l[n],t[n]))return!1}return!0}function vs(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function ps(l,t){var e=vs(l);l=0;for(var a;e;){if(e.nodeType===3){if(a=l+e.textContent.length,l<=t&&a>=t)return{node:e,offset:t-l};l=a}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=vs(e)}}function bs(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?bs(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function Ss(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Xn(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=Xn(l.document)}return t}function Mi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var K0=Jt&&"documentMode"in document&&11>=document.documentMode,fa=null,Oi=null,$a=null,Ri=!1;function xs(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Ri||fa==null||fa!==Xn(a)||(a=fa,"selectionStart"in a&&Mi(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}),$a&&ka($a,a)||($a=a,a=Nu(Oi,"onSelect"),0<a.length&&(t=new Jn("onSelect","select",null,t,e),l.push({event:t,listeners:a}),t.target=fa)))}function qe(l,t){var e={};return e[l.toLowerCase()]=t.toLowerCase(),e["Webkit"+l]="webkit"+t,e["Moz"+l]="moz"+t,e}var sa={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionrun:qe("Transition","TransitionRun"),transitionstart:qe("Transition","TransitionStart"),transitioncancel:qe("Transition","TransitionCancel"),transitionend:qe("Transition","TransitionEnd")},Ui={},zs={};Jt&&(zs=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);function Ye(l){if(Ui[l])return Ui[l];if(!sa[l])return l;var t=sa[l],e;for(e in t)if(t.hasOwnProperty(e)&&e in zs)return Ui[l]=t[e];return l}var Ts=Ye("animationend"),Es=Ye("animationiteration"),As=Ye("animationstart"),J0=Ye("transitionrun"),w0=Ye("transitionstart"),W0=Ye("transitioncancel"),js=Ye("transitionend"),Cs=new Map,Bi="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(" ");Bi.push("scrollEnd");function Nt(l,t){Cs.set(l,t),He(t,[l])}var kn=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Ct=[],oa=0,Hi=0;function $n(){for(var l=oa,t=Hi=oa=0;t<l;){var e=Ct[t];Ct[t++]=null;var a=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var u=Ct[t];if(Ct[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&_s(e,n,u)}}function Fn(l,t,e,a){Ct[oa++]=l,Ct[oa++]=t,Ct[oa++]=e,Ct[oa++]=a,Hi|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}function Ni(l,t,e,a){return Fn(l,t,e,a),In(l)}function Ge(l,t){return Fn(l,null,null,t),In(l)}function _s(l,t,e){l.lanes|=e;var a=l.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=l.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(l=u.stateNode,l===null||l._visibility&1||(n=!0)),l=u,u=u.return;return l.tag===3?(u=l.stateNode,n&&t!==null&&(n=31-yt(e),l=u.hiddenUpdates,a=l[n],a===null?l[n]=[t]:a.push(t),t.lane=e|536870912),u):null}function In(l){if(50<bn)throw bn=0,Kc=null,Error(o(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var da={};function k0(l,t,e,a){this.tag=l,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(l,t,e,a){return new k0(l,t,e,a)}function qi(l){return l=l.prototype,!(!l||!l.isReactComponent)}function wt(l,t){var e=l.alternate;return e===null?(e=gt(l.tag,t,l.key,l.mode),e.elementType=l.elementType,e.type=l.type,e.stateNode=l.stateNode,e.alternate=l,l.alternate=e):(e.pendingProps=t,e.type=l.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=l.flags&65011712,e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=l.sibling,e.index=l.index,e.ref=l.ref,e.refCleanup=l.refCleanup,e}function Ds(l,t){l.flags&=65011714;var e=l.alternate;return e===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,l.type=e.type,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l}function Pn(l,t,e,a,n,u){var i=0;if(a=l,typeof l=="function")qi(l)&&(i=1);else if(typeof l=="string")i=ly(l,e,z.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case J:return l=gt(31,e,t,n),l.elementType=J,l.lanes=u,l;case Ml:return Qe(e.children,n,u,t);case El:i=8,n|=24;break;case Ol:return l=gt(12,e,t,n|2),l.elementType=Ol,l.lanes=u,l;case wl:return l=gt(13,e,t,n),l.elementType=wl,l.lanes=u,l;case Cl:return l=gt(19,e,t,n),l.elementType=Cl,l.lanes=u,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Al:i=10;break l;case Jl:i=9;break l;case Nl:i=11;break l;case q:i=14;break l;case yl:i=16,a=null;break l}i=29,e=Error(o(130,l===null?"null":typeof l,"")),a=null}return t=gt(i,e,t,n),t.elementType=l,t.type=a,t.lanes=u,t}function Qe(l,t,e,a){return l=gt(7,l,a,t),l.lanes=e,l}function Yi(l,t,e){return l=gt(6,l,null,t),l.lanes=e,l}function Ms(l){var t=gt(18,null,null,0);return t.stateNode=l,t}function Gi(l,t,e){return t=gt(4,l.children!==null?l.children:[],l.key,t),t.lanes=e,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}var Os=new WeakMap;function _t(l,t){if(typeof l=="object"&&l!==null){var e=Os.get(l);return e!==void 0?e:(t={value:l,source:t,stack:Mf(t)},Os.set(l,t),t)}return{value:l,source:t,stack:Mf(t)}}var ra=[],ha=0,lu=null,Fa=0,Dt=[],Mt=0,de=null,Qt=1,Xt="";function Wt(l,t){ra[ha++]=Fa,ra[ha++]=lu,lu=l,Fa=t}function Rs(l,t,e){Dt[Mt++]=Qt,Dt[Mt++]=Xt,Dt[Mt++]=de,de=l;var a=Qt;l=Xt;var n=32-yt(a)-1;a&=~(1<<n),e+=1;var u=32-yt(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Qt=1<<32-yt(t)+n|e<<n|a,Xt=u+l}else Qt=1<<u|e<<n|a,Xt=l}function Qi(l){l.return!==null&&(Wt(l,1),Rs(l,1,0))}function Xi(l){for(;l===lu;)lu=ra[--ha],ra[ha]=null,Fa=ra[--ha],ra[ha]=null;for(;l===de;)de=Dt[--Mt],Dt[Mt]=null,Xt=Dt[--Mt],Dt[Mt]=null,Qt=Dt[--Mt],Dt[Mt]=null}function Us(l,t){Dt[Mt++]=Qt,Dt[Mt++]=Xt,Dt[Mt++]=de,Qt=t.id,Xt=t.overflow,de=l}var kl=null,xl=null,nl=!1,re=null,Ot=!1,Li=Error(o(519));function he(l){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(_t(t,l)),Li}function Bs(l){var t=l.stateNode,e=l.type,a=l.memoizedProps;switch(t[Wl]=l,t[at]=a,e){case"dialog":ll("cancel",t),ll("close",t);break;case"iframe":case"object":case"embed":ll("load",t);break;case"video":case"audio":for(e=0;e<xn.length;e++)ll(xn[e],t);break;case"source":ll("error",t);break;case"img":case"image":case"link":ll("error",t),ll("load",t);break;case"details":ll("toggle",t);break;case"input":ll("invalid",t),wf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ll("invalid",t);break;case"textarea":ll("invalid",t),kf(t,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||t.textContent===""+e||a.suppressHydrationWarning===!0||Id(t.textContent,e)?(a.popover!=null&&(ll("beforetoggle",t),ll("toggle",t)),a.onScroll!=null&&ll("scroll",t),a.onScrollEnd!=null&&ll("scrollend",t),a.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||he(l,!0)}function Hs(l){for(kl=l.return;kl;)switch(kl.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:kl=kl.return}}function ya(l){if(l!==kl)return!1;if(!nl)return Hs(l),nl=!0,!1;var t=l.tag,e;if((e=t!==3&&t!==27)&&((e=t===5)&&(e=l.type,e=!(e!=="form"&&e!=="button")||cf(l.type,l.memoizedProps)),e=!e),e&&xl&&he(l),Hs(l),t===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));xl=cr(l)}else if(t===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));xl=cr(l)}else t===27?(t=xl,Ce(l.type)?(l=rf,rf=null,xl=l):xl=t):xl=kl?Ut(l.stateNode.nextSibling):null;return!0}function Xe(){xl=kl=null,nl=!1}function Zi(){var l=re;return l!==null&&(ft===null?ft=l:ft.push.apply(ft,l),re=null),l}function Ia(l){re===null?re=[l]:re.push(l)}var Vi=r(null),Le=null,kt=null;function ye(l,t,e){N(Vi,t._currentValue),t._currentValue=e}function $t(l){l._currentValue=Vi.current,A(Vi)}function Ki(l,t,e){for(;l!==null;){var a=l.alternate;if((l.childLanes&t)!==t?(l.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),l===e)break;l=l.return}}function Ji(l,t,e,a){var n=l.child;for(n!==null&&(n.return=l);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;l:for(;u!==null;){var c=u;u=n;for(var s=0;s<t.length;s++)if(c.context===t[s]){u.lanes|=e,c=u.alternate,c!==null&&(c.lanes|=e),Ki(u.return,e,l),a||(i=null);break l}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),Ki(i,e,l),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===l){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ma(l,t,e,a){l=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 i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var c=n.type;mt(n.pendingProps.value,i.value)||(l!==null?l.push(c):l=[c])}}else if(n===il.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(l!==null?l.push(jn):l=[jn])}n=n.return}l!==null&&Ji(t,l,e,a),t.flags|=262144}function tu(l){for(l=l.firstContext;l!==null;){if(!mt(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Ze(l){Le=l,kt=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function $l(l){return Ns(Le,l)}function eu(l,t){return Le===null&&Ze(l),Ns(l,t)}function Ns(l,t){var e=t._currentValue;if(t={context:t,memoizedValue:e,next:null},kt===null){if(l===null)throw Error(o(308));kt=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else kt=kt.next=t;return e}var $0=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(e,a){l.push(a)}};this.abort=function(){t.aborted=!0,l.forEach(function(e){return e()})}},F0=b.unstable_scheduleCallback,I0=b.unstable_NormalPriority,ql={$$typeof:Al,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wi(){return{controller:new $0,data:new Map,refCount:0}}function Pa(l){l.refCount--,l.refCount===0&&F0(I0,function(){l.controller.abort()})}var ln=null,Wi=0,ga=0,va=null;function P0(l,t){if(ln===null){var e=ln=[];Wi=0,ga=Fc(),va={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Wi++,t.then(qs,qs),t}function qs(){if(--Wi===0&&ln!==null){va!==null&&(va.status="fulfilled");var l=ln;ln=null,ga=0,va=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function lh(l,t){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return l.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<e.length;n++)(0,e[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var Ys=x.S;x.S=function(l,t){zd=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&P0(l,t),Ys!==null&&Ys(l,t)};var Ve=r(null);function ki(){var l=Ve.current;return l!==null?l:pl.pooledCache}function au(l,t){t===null?N(Ve,Ve.current):N(Ve,t.pool)}function Gs(){var l=ki();return l===null?null:{parent:ql._currentValue,pool:l}}var pa=Error(o(460)),$i=Error(o(474)),nu=Error(o(542)),uu={then:function(){}};function Qs(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Xs(l,t,e){switch(e=l[e],e===void 0?l.push(t):e!==t&&(t.then(Kt,Kt),t=e),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,Zs(l),l;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(l=pl,l!==null&&100<l.shellSuspendCounter)throw Error(o(482));l=t,l.status="pending",l.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 l=t.reason,Zs(l),l}throw Je=t,pa}}function Ke(l){try{var t=l._init;return t(l._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(Je=e,pa):e}}var Je=null;function Ls(){if(Je===null)throw Error(o(459));var l=Je;return Je=null,l}function Zs(l){if(l===pa||l===nu)throw Error(o(483))}var ba=null,tn=0;function iu(l){var t=tn;return tn+=1,ba===null&&(ba=[]),Xs(ba,l,t)}function en(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function cu(l,t){throw t.$$typeof===tl?Error(o(525)):(l=Object.prototype.toString.call(t),Error(o(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function Vs(l){function t(h,d){if(l){var y=h.deletions;y===null?(h.deletions=[d],h.flags|=16):y.push(d)}}function e(h,d){if(!l)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function a(h){for(var d=new Map;h!==null;)h.key!==null?d.set(h.key,h):d.set(h.index,h),h=h.sibling;return d}function n(h,d){return h=wt(h,d),h.index=0,h.sibling=null,h}function u(h,d,y){return h.index=y,l?(y=h.alternate,y!==null?(y=y.index,y<d?(h.flags|=67108866,d):y):(h.flags|=67108866,d)):(h.flags|=1048576,d)}function i(h){return l&&h.alternate===null&&(h.flags|=67108866),h}function c(h,d,y,T){return d===null||d.tag!==6?(d=Yi(y,h.mode,T),d.return=h,d):(d=n(d,y),d.return=h,d)}function s(h,d,y,T){var L=y.type;return L===Ml?S(h,d,y.props.children,T,y.key):d!==null&&(d.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===yl&&Ke(L)===d.type)?(d=n(d,y.props),en(d,y),d.return=h,d):(d=Pn(y.type,y.key,y.props,null,h.mode,T),en(d,y),d.return=h,d)}function m(h,d,y,T){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=Gi(y,h.mode,T),d.return=h,d):(d=n(d,y.children||[]),d.return=h,d)}function S(h,d,y,T,L){return d===null||d.tag!==7?(d=Qe(y,h.mode,T,L),d.return=h,d):(d=n(d,y),d.return=h,d)}function E(h,d,y){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Yi(""+d,h.mode,y),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ul:return y=Pn(d.type,d.key,d.props,null,h.mode,y),en(y,d),y.return=h,y;case bl:return d=Gi(d,h.mode,y),d.return=h,d;case yl:return d=Ke(d),E(h,d,y)}if(et(d)||Sl(d))return d=Qe(d,h.mode,y,null),d.return=h,d;if(typeof d.then=="function")return E(h,iu(d),y);if(d.$$typeof===Al)return E(h,eu(h,d),y);cu(h,d)}return null}function g(h,d,y,T){var L=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return L!==null?null:c(h,d,""+y,T);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ul:return y.key===L?s(h,d,y,T):null;case bl:return y.key===L?m(h,d,y,T):null;case yl:return y=Ke(y),g(h,d,y,T)}if(et(y)||Sl(y))return L!==null?null:S(h,d,y,T,null);if(typeof y.then=="function")return g(h,d,iu(y),T);if(y.$$typeof===Al)return g(h,d,eu(h,y),T);cu(h,y)}return null}function p(h,d,y,T,L){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return h=h.get(y)||null,c(d,h,""+T,L);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ul:return h=h.get(T.key===null?y:T.key)||null,s(d,h,T,L);case bl:return h=h.get(T.key===null?y:T.key)||null,m(d,h,T,L);case yl:return T=Ke(T),p(h,d,y,T,L)}if(et(T)||Sl(T))return h=h.get(y)||null,S(d,h,T,L,null);if(typeof T.then=="function")return p(h,d,y,iu(T),L);if(T.$$typeof===Al)return p(h,d,y,eu(d,T),L);cu(d,T)}return null}function Y(h,d,y,T){for(var L=null,cl=null,Q=d,F=d=0,al=null;Q!==null&&F<y.length;F++){Q.index>F?(al=Q,Q=null):al=Q.sibling;var fl=g(h,Q,y[F],T);if(fl===null){Q===null&&(Q=al);break}l&&Q&&fl.alternate===null&&t(h,Q),d=u(fl,d,F),cl===null?L=fl:cl.sibling=fl,cl=fl,Q=al}if(F===y.length)return e(h,Q),nl&&Wt(h,F),L;if(Q===null){for(;F<y.length;F++)Q=E(h,y[F],T),Q!==null&&(d=u(Q,d,F),cl===null?L=Q:cl.sibling=Q,cl=Q);return nl&&Wt(h,F),L}for(Q=a(Q);F<y.length;F++)al=p(Q,h,F,y[F],T),al!==null&&(l&&al.alternate!==null&&Q.delete(al.key===null?F:al.key),d=u(al,d,F),cl===null?L=al:cl.sibling=al,cl=al);return l&&Q.forEach(function(Re){return t(h,Re)}),nl&&Wt(h,F),L}function K(h,d,y,T){if(y==null)throw Error(o(151));for(var L=null,cl=null,Q=d,F=d=0,al=null,fl=y.next();Q!==null&&!fl.done;F++,fl=y.next()){Q.index>F?(al=Q,Q=null):al=Q.sibling;var Re=g(h,Q,fl.value,T);if(Re===null){Q===null&&(Q=al);break}l&&Q&&Re.alternate===null&&t(h,Q),d=u(Re,d,F),cl===null?L=Re:cl.sibling=Re,cl=Re,Q=al}if(fl.done)return e(h,Q),nl&&Wt(h,F),L;if(Q===null){for(;!fl.done;F++,fl=y.next())fl=E(h,fl.value,T),fl!==null&&(d=u(fl,d,F),cl===null?L=fl:cl.sibling=fl,cl=fl);return nl&&Wt(h,F),L}for(Q=a(Q);!fl.done;F++,fl=y.next())fl=p(Q,h,F,fl.value,T),fl!==null&&(l&&fl.alternate!==null&&Q.delete(fl.key===null?F:fl.key),d=u(fl,d,F),cl===null?L=fl:cl.sibling=fl,cl=fl);return l&&Q.forEach(function(dy){return t(h,dy)}),nl&&Wt(h,F),L}function vl(h,d,y,T){if(typeof y=="object"&&y!==null&&y.type===Ml&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ul:l:{for(var L=y.key;d!==null;){if(d.key===L){if(L=y.type,L===Ml){if(d.tag===7){e(h,d.sibling),T=n(d,y.props.children),T.return=h,h=T;break l}}else if(d.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===yl&&Ke(L)===d.type){e(h,d.sibling),T=n(d,y.props),en(T,y),T.return=h,h=T;break l}e(h,d);break}else t(h,d);d=d.sibling}y.type===Ml?(T=Qe(y.props.children,h.mode,T,y.key),T.return=h,h=T):(T=Pn(y.type,y.key,y.props,null,h.mode,T),en(T,y),T.return=h,h=T)}return i(h);case bl:l:{for(L=y.key;d!==null;){if(d.key===L)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){e(h,d.sibling),T=n(d,y.children||[]),T.return=h,h=T;break l}else{e(h,d);break}else t(h,d);d=d.sibling}T=Gi(y,h.mode,T),T.return=h,h=T}return i(h);case yl:return y=Ke(y),vl(h,d,y,T)}if(et(y))return Y(h,d,y,T);if(Sl(y)){if(L=Sl(y),typeof L!="function")throw Error(o(150));return y=L.call(y),K(h,d,y,T)}if(typeof y.then=="function")return vl(h,d,iu(y),T);if(y.$$typeof===Al)return vl(h,d,eu(h,y),T);cu(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,d!==null&&d.tag===6?(e(h,d.sibling),T=n(d,y),T.return=h,h=T):(e(h,d),T=Yi(y,h.mode,T),T.return=h,h=T),i(h)):e(h,d)}return function(h,d,y,T){try{tn=0;var L=vl(h,d,y,T);return ba=null,L}catch(Q){if(Q===pa||Q===nu)throw Q;var cl=gt(29,Q,null,h.mode);return cl.lanes=T,cl.return=h,cl}finally{}}}var we=Vs(!0),Ks=Vs(!1),me=!1;function Fi(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ii(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ge(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function ve(l,t,e){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(sl&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=In(l),_s(l,null,e),t}return Fn(l,a,t,e),In(l)}function an(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Nf(l,e)}}function Pi(l,t){var e=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=t:u=u.next=t}else n=u=t;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var lc=!1;function nn(){if(lc){var l=va;if(l!==null)throw l}}function un(l,t,e,a){lc=!1;var n=l.updateQueue;me=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,m=s.next;s.next=null,i===null?u=m:i.next=m,i=s;var S=l.alternate;S!==null&&(S=S.updateQueue,c=S.lastBaseUpdate,c!==i&&(c===null?S.firstBaseUpdate=m:c.next=m,S.lastBaseUpdate=s))}if(u!==null){var E=n.baseState;i=0,S=m=s=null,c=u;do{var g=c.lane&-536870913,p=g!==c.lane;if(p?(el&g)===g:(a&g)===g){g!==0&&g===ga&&(lc=!0),S!==null&&(S=S.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var Y=l,K=c;g=t;var vl=e;switch(K.tag){case 1:if(Y=K.payload,typeof Y=="function"){E=Y.call(vl,E,g);break l}E=Y;break l;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=K.payload,g=typeof Y=="function"?Y.call(vl,E,g):Y,g==null)break l;E=H({},E,g);break l;case 2:me=!0}}g=c.callback,g!==null&&(l.flags|=64,p&&(l.flags|=8192),p=n.callbacks,p===null?n.callbacks=[g]:p.push(g))}else p={lane:g,tag:c.tag,payload:c.payload,callback:c.callback,next:null},S===null?(m=S=p,s=E):S=S.next=p,i|=g;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;p=c,c=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}}while(!0);S===null&&(s=E),n.baseState=s,n.firstBaseUpdate=m,n.lastBaseUpdate=S,u===null&&(n.shared.lanes=0),ze|=i,l.lanes=i,l.memoizedState=E}}function Js(l,t){if(typeof l!="function")throw Error(o(191,l));l.call(t)}function ws(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;l<e.length;l++)Js(e[l],t)}var Sa=r(null),fu=r(0);function Ws(l,t){l=ue,N(fu,l),N(Sa,t),ue=l|t.baseLanes}function tc(){N(fu,ue),N(Sa,Sa.current)}function ec(){ue=fu.current,A(Sa),A(fu)}var vt=r(null),Rt=null;function pe(l){var t=l.alternate;N(Bl,Bl.current&1),N(vt,l),Rt===null&&(t===null||Sa.current!==null||t.memoizedState!==null)&&(Rt=l)}function ac(l){N(Bl,Bl.current),N(vt,l),Rt===null&&(Rt=l)}function ks(l){l.tag===22?(N(Bl,Bl.current),N(vt,l),Rt===null&&(Rt=l)):be()}function be(){N(Bl,Bl.current),N(vt,vt.current)}function pt(l){A(vt),Rt===l&&(Rt=null),A(Bl)}var Bl=r(0);function su(l){for(var t=l;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||of(e)||df(e)))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===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ft=0,$=null,ml=null,Yl=null,ou=!1,xa=!1,We=!1,du=0,cn=0,za=null,th=0;function _l(){throw Error(o(321))}function nc(l,t){if(t===null)return!1;for(var e=0;e<t.length&&e<l.length;e++)if(!mt(l[e],t[e]))return!1;return!0}function uc(l,t,e,a,n,u){return Ft=u,$=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,x.H=l===null||l.memoizedState===null?Uo:Sc,We=!1,u=e(a,n),We=!1,xa&&(u=Fs(t,e,a,n)),$s(l),u}function $s(l){x.H=on;var t=ml!==null&&ml.next!==null;if(Ft=0,Yl=ml=$=null,ou=!1,cn=0,za=null,t)throw Error(o(300));l===null||Gl||(l=l.dependencies,l!==null&&tu(l)&&(Gl=!0))}function Fs(l,t,e,a){$=l;var n=0;do{if(xa&&(za=null),cn=0,xa=!1,25<=n)throw Error(o(301));if(n+=1,Yl=ml=null,l.updateQueue!=null){var u=l.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}x.H=Bo,u=t(e,a)}while(xa);return u}function eh(){var l=x.H,t=l.useState()[0];return t=typeof t.then=="function"?fn(t):t,l=l.useState()[0],(ml!==null?ml.memoizedState:null)!==l&&($.flags|=1024),t}function ic(){var l=du!==0;return du=0,l}function cc(l,t,e){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~e}function fc(l){if(ou){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}ou=!1}Ft=0,Yl=ml=$=null,xa=!1,cn=du=0,za=null}function tt(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yl===null?$.memoizedState=Yl=l:Yl=Yl.next=l,Yl}function Hl(){if(ml===null){var l=$.alternate;l=l!==null?l.memoizedState:null}else l=ml.next;var t=Yl===null?$.memoizedState:Yl.next;if(t!==null)Yl=t,ml=l;else{if(l===null)throw $.alternate===null?Error(o(467)):Error(o(310));ml=l,l={memoizedState:ml.memoizedState,baseState:ml.baseState,baseQueue:ml.baseQueue,queue:ml.queue,next:null},Yl===null?$.memoizedState=Yl=l:Yl=Yl.next=l}return Yl}function ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fn(l){var t=cn;return cn+=1,za===null&&(za=[]),l=Xs(za,l,t),t=$,(Yl===null?t.memoizedState:Yl.next)===null&&(t=t.alternate,x.H=t===null||t.memoizedState===null?Uo:Sc),l}function hu(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return fn(l);if(l.$$typeof===Al)return $l(l)}throw Error(o(438,String(l)))}function sc(l){var t=null,e=$.updateQueue;if(e!==null&&(t=e.memoCache),t==null){var a=$.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}),e===null&&(e=ru(),$.updateQueue=e),e.memoCache=t,e=t.data[t.index],e===void 0)for(e=t.data[t.index]=Array(l),a=0;a<l;a++)e[a]=Zl;return t.index++,e}function It(l,t){return typeof t=="function"?t(l):t}function yu(l){var t=Hl();return oc(t,ml,l)}function oc(l,t,e){var a=l.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=l.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=l.baseState,n===null)l.memoizedState=u;else{t=n.next;var c=i=null,s=null,m=t,S=!1;do{var E=m.lane&-536870913;if(E!==m.lane?(el&E)===E:(Ft&E)===E){var g=m.revertLane;if(g===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),E===ga&&(S=!0);else if((Ft&g)===g){m=m.next,g===ga&&(S=!0);continue}else E={lane:0,revertLane:m.revertLane,gesture:null,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},s===null?(c=s=E,i=u):s=s.next=E,$.lanes|=g,ze|=g;E=m.action,We&&e(u,E),u=m.hasEagerState?m.eagerState:e(u,E)}else g={lane:E,revertLane:m.revertLane,gesture:m.gesture,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},s===null?(c=s=g,i=u):s=s.next=g,$.lanes|=E,ze|=E;m=m.next}while(m!==null&&m!==t);if(s===null?i=u:s.next=c,!mt(u,l.memoizedState)&&(Gl=!0,S&&(e=va,e!==null)))throw e;l.memoizedState=u,l.baseState=i,l.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}function dc(l){var t=Hl(),e=t.queue;if(e===null)throw Error(o(311));e.lastRenderedReducer=l;var a=e.dispatch,n=e.pending,u=t.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=l(u,i.action),i=i.next;while(i!==n);mt(u,t.memoizedState)||(Gl=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),e.lastRenderedState=u}return[u,a]}function Is(l,t,e){var a=$,n=Hl(),u=nl;if(u){if(e===void 0)throw Error(o(407));e=e()}else e=t();var i=!mt((ml||n).memoizedState,e);if(i&&(n.memoizedState=e,Gl=!0),n=n.queue,yc(to.bind(null,a,n,l),[l]),n.getSnapshot!==t||i||Yl!==null&&Yl.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},lo.bind(null,a,n,e,t),null),pl===null)throw Error(o(349));u||(Ft&127)!==0||Ps(a,t,e)}return e}function Ps(l,t,e){l.flags|=16384,l={getSnapshot:t,value:e},t=$.updateQueue,t===null?(t=ru(),$.updateQueue=t,t.stores=[l]):(e=t.stores,e===null?t.stores=[l]:e.push(l))}function lo(l,t,e,a){t.value=e,t.getSnapshot=a,eo(t)&&ao(l)}function to(l,t,e){return e(function(){eo(t)&&ao(l)})}function eo(l){var t=l.getSnapshot;l=l.value;try{var e=t();return!mt(l,e)}catch{return!0}}function ao(l){var t=Ge(l,2);t!==null&&st(t,l,2)}function rc(l){var t=tt();if(typeof l=="function"){var e=l;if(l=e(),We){fe(!0);try{e()}finally{fe(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:l},t}function no(l,t,e,a){return l.baseState=e,oc(l,ml,typeof a=="function"?a:It)}function ah(l,t,e,a,n){if(vu(l))throw Error(o(485));if(l=t.action,l!==null){var u={payload:n,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};x.T!==null?e(!0):u.isTransition=!1,a(u),e=t.pending,e===null?(u.next=t.pending=u,uo(t,u)):(u.next=e.next,t.pending=e.next=u)}}function uo(l,t){var e=t.action,a=t.payload,n=l.state;if(t.isTransition){var u=x.T,i={};x.T=i;try{var c=e(n,a),s=x.S;s!==null&&s(i,c),io(l,t,c)}catch(m){hc(l,t,m)}finally{u!==null&&i.types!==null&&(u.types=i.types),x.T=u}}else try{u=e(n,a),io(l,t,u)}catch(m){hc(l,t,m)}}function io(l,t,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){co(l,t,a)},function(a){return hc(l,t,a)}):co(l,t,e)}function co(l,t,e){t.status="fulfilled",t.value=e,fo(t),l.state=e,t=l.pending,t!==null&&(e=t.next,e===t?l.pending=null:(e=e.next,t.next=e,uo(l,e)))}function hc(l,t,e){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=e,fo(t),t=t.next;while(t!==a)}l.action=null}function fo(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function so(l,t){return t}function oo(l,t){if(nl){var e=pl.formState;if(e!==null){l:{var a=$;if(nl){if(xl){t:{for(var n=xl,u=Ot;n.nodeType!==8;){if(!u){n=null;break t}if(n=Ut(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){xl=Ut(n.nextSibling),a=n.data==="F!";break l}}he(a)}a=!1}a&&(t=e[0])}}return e=tt(),e.memoizedState=e.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:so,lastRenderedState:t},e.queue=a,e=Mo.bind(null,$,a),a.dispatch=e,a=rc(!1),u=bc.bind(null,$,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:l,pending:null},a.queue=n,e=ah.bind(null,$,n,u,e),n.dispatch=e,a.memoizedState=l,[t,e,!1]}function ro(l){var t=Hl();return ho(t,ml,l)}function ho(l,t,e){if(t=oc(l,t,so)[0],l=yu(It)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=fn(t)}catch(i){throw i===pa?nu:i}else a=t;t=Hl();var n=t.queue,u=n.dispatch;return e!==t.memoizedState&&($.flags|=2048,Ta(9,{destroy:void 0},nh.bind(null,n,e),null)),[a,u,l]}function nh(l,t){l.action=t}function yo(l){var t=Hl(),e=ml;if(e!==null)return ho(t,e,l);Hl(),t=t.memoizedState,e=Hl();var a=e.queue.dispatch;return e.memoizedState=l,[t,a,!1]}function Ta(l,t,e,a){return l={tag:l,create:e,deps:a,inst:t,next:null},t=$.updateQueue,t===null&&(t=ru(),$.updateQueue=t),e=t.lastEffect,e===null?t.lastEffect=l.next=l:(a=e.next,e.next=l,l.next=a,t.lastEffect=l),l}function mo(){return Hl().memoizedState}function mu(l,t,e,a){var n=tt();$.flags|=l,n.memoizedState=Ta(1|t,{destroy:void 0},e,a===void 0?null:a)}function gu(l,t,e,a){var n=Hl();a=a===void 0?null:a;var u=n.memoizedState.inst;ml!==null&&a!==null&&nc(a,ml.memoizedState.deps)?n.memoizedState=Ta(t,u,e,a):($.flags|=l,n.memoizedState=Ta(1|t,u,e,a))}function go(l,t){mu(8390656,8,l,t)}function yc(l,t){gu(2048,8,l,t)}function uh(l){$.flags|=4;var t=$.updateQueue;if(t===null)t=ru(),$.updateQueue=t,t.events=[l];else{var e=t.events;e===null?t.events=[l]:e.push(l)}}function vo(l){var t=Hl().memoizedState;return uh({ref:t,nextImpl:l}),function(){if((sl&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function po(l,t){return gu(4,2,l,t)}function bo(l,t){return gu(4,4,l,t)}function So(l,t){if(typeof t=="function"){l=l();var e=t(l);return function(){typeof e=="function"?e():t(null)}}if(t!=null)return l=l(),t.current=l,function(){t.current=null}}function xo(l,t,e){e=e!=null?e.concat([l]):null,gu(4,4,So.bind(null,t,l),e)}function mc(){}function zo(l,t){var e=Hl();t=t===void 0?null:t;var a=e.memoizedState;return t!==null&&nc(t,a[1])?a[0]:(e.memoizedState=[l,t],l)}function To(l,t){var e=Hl();t=t===void 0?null:t;var a=e.memoizedState;if(t!==null&&nc(t,a[1]))return a[0];if(a=l(),We){fe(!0);try{l()}finally{fe(!1)}}return e.memoizedState=[a,t],a}function gc(l,t,e){return e===void 0||(Ft&1073741824)!==0&&(el&261930)===0?l.memoizedState=t:(l.memoizedState=e,l=Ed(),$.lanes|=l,ze|=l,e)}function Eo(l,t,e,a){return mt(e,t)?e:Sa.current!==null?(l=gc(l,e,a),mt(l,t)||(Gl=!0),l):(Ft&42)===0||(Ft&1073741824)!==0&&(el&261930)===0?(Gl=!0,l.memoizedState=e):(l=Ed(),$.lanes|=l,ze|=l,t)}function Ao(l,t,e,a,n){var u=C.p;C.p=u!==0&&8>u?u:8;var i=x.T,c={};x.T=c,bc(l,!1,t,e);try{var s=n(),m=x.S;if(m!==null&&m(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var S=lh(s,a);sn(l,t,S,xt(l))}else sn(l,t,a,xt(l))}catch(E){sn(l,t,{then:function(){},status:"rejected",reason:E},xt())}finally{C.p=u,i!==null&&c.types!==null&&(i.types=c.types),x.T=i}}function ih(){}function vc(l,t,e,a){if(l.tag!==5)throw Error(o(476));var n=jo(l).queue;Ao(l,n,t,V,e===null?ih:function(){return Co(l),e(a)})}function jo(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:V},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Co(l){var t=jo(l);t.next===null&&(t=l.alternate.memoizedState),sn(l,t.next.queue,{},xt())}function pc(){return $l(jn)}function _o(){return Hl().memoizedState}function Do(){return Hl().memoizedState}function ch(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=xt();l=ge(e);var a=ve(t,l,e);a!==null&&(st(a,t,e),an(a,t,e)),t={cache:wi()},l.payload=t;return}t=t.return}}function fh(l,t,e){var a=xt();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},vu(l)?Oo(t,e):(e=Ni(l,t,e,a),e!==null&&(st(e,l,a),Ro(e,t,a)))}function Mo(l,t,e){var a=xt();sn(l,t,e,a)}function sn(l,t,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(vu(l))Oo(t,n);else{var u=l.alternate;if(l.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,c=u(i,e);if(n.hasEagerState=!0,n.eagerState=c,mt(c,i))return Fn(l,t,n,0),pl===null&&$n(),!1}catch{}finally{}if(e=Ni(l,t,n,a),e!==null)return st(e,l,a),Ro(e,t,a),!0}return!1}function bc(l,t,e,a){if(a={lane:2,revertLane:Fc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vu(l)){if(t)throw Error(o(479))}else t=Ni(l,e,a,2),t!==null&&st(t,l,2)}function vu(l){var t=l.alternate;return l===$||t!==null&&t===$}function Oo(l,t){xa=ou=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function Ro(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Nf(l,e)}}var on={readContext:$l,use:hu,useCallback:_l,useContext:_l,useEffect:_l,useImperativeHandle:_l,useLayoutEffect:_l,useInsertionEffect:_l,useMemo:_l,useReducer:_l,useRef:_l,useState:_l,useDebugValue:_l,useDeferredValue:_l,useTransition:_l,useSyncExternalStore:_l,useId:_l,useHostTransitionStatus:_l,useFormState:_l,useActionState:_l,useOptimistic:_l,useMemoCache:_l,useCacheRefresh:_l};on.useEffectEvent=_l;var Uo={readContext:$l,use:hu,useCallback:function(l,t){return tt().memoizedState=[l,t===void 0?null:t],l},useContext:$l,useEffect:go,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,mu(4194308,4,So.bind(null,t,l),e)},useLayoutEffect:function(l,t){return mu(4194308,4,l,t)},useInsertionEffect:function(l,t){mu(4,2,l,t)},useMemo:function(l,t){var e=tt();t=t===void 0?null:t;var a=l();if(We){fe(!0);try{l()}finally{fe(!1)}}return e.memoizedState=[a,t],a},useReducer:function(l,t,e){var a=tt();if(e!==void 0){var n=e(t);if(We){fe(!0);try{e(t)}finally{fe(!1)}}}else n=t;return a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:n},a.queue=l,l=l.dispatch=fh.bind(null,$,l),[a.memoizedState,l]},useRef:function(l){var t=tt();return l={current:l},t.memoizedState=l},useState:function(l){l=rc(l);var t=l.queue,e=Mo.bind(null,$,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:mc,useDeferredValue:function(l,t){var e=tt();return gc(e,l,t)},useTransition:function(){var l=rc(!1);return l=Ao.bind(null,$,l.queue,!0,!1),tt().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=$,n=tt();if(nl){if(e===void 0)throw Error(o(407));e=e()}else{if(e=t(),pl===null)throw Error(o(349));(el&127)!==0||Ps(a,t,e)}n.memoizedState=e;var u={value:e,getSnapshot:t};return n.queue=u,go(to.bind(null,a,u,l),[l]),a.flags|=2048,Ta(9,{destroy:void 0},lo.bind(null,a,u,e,t),null),e},useId:function(){var l=tt(),t=pl.identifierPrefix;if(nl){var e=Xt,a=Qt;e=(a&~(1<<32-yt(a)-1)).toString(32)+e,t="_"+t+"R_"+e,e=du++,0<e&&(t+="H"+e.toString(32)),t+="_"}else e=th++,t="_"+t+"r_"+e.toString(32)+"_";return l.memoizedState=t},useHostTransitionStatus:pc,useFormState:oo,useActionState:oo,useOptimistic:function(l){var t=tt();t.memoizedState=t.baseState=l;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=e,t=bc.bind(null,$,!0,e),e.dispatch=t,[l,t]},useMemoCache:sc,useCacheRefresh:function(){return tt().memoizedState=ch.bind(null,$)},useEffectEvent:function(l){var t=tt(),e={impl:l};return t.memoizedState=e,function(){if((sl&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}},Sc={readContext:$l,use:hu,useCallback:zo,useContext:$l,useEffect:yc,useImperativeHandle:xo,useInsertionEffect:po,useLayoutEffect:bo,useMemo:To,useReducer:yu,useRef:mo,useState:function(){return yu(It)},useDebugValue:mc,useDeferredValue:function(l,t){var e=Hl();return Eo(e,ml.memoizedState,l,t)},useTransition:function(){var l=yu(It)[0],t=Hl().memoizedState;return[typeof l=="boolean"?l:fn(l),t]},useSyncExternalStore:Is,useId:_o,useHostTransitionStatus:pc,useFormState:ro,useActionState:ro,useOptimistic:function(l,t){var e=Hl();return no(e,ml,l,t)},useMemoCache:sc,useCacheRefresh:Do};Sc.useEffectEvent=vo;var Bo={readContext:$l,use:hu,useCallback:zo,useContext:$l,useEffect:yc,useImperativeHandle:xo,useInsertionEffect:po,useLayoutEffect:bo,useMemo:To,useReducer:dc,useRef:mo,useState:function(){return dc(It)},useDebugValue:mc,useDeferredValue:function(l,t){var e=Hl();return ml===null?gc(e,l,t):Eo(e,ml.memoizedState,l,t)},useTransition:function(){var l=dc(It)[0],t=Hl().memoizedState;return[typeof l=="boolean"?l:fn(l),t]},useSyncExternalStore:Is,useId:_o,useHostTransitionStatus:pc,useFormState:yo,useActionState:yo,useOptimistic:function(l,t){var e=Hl();return ml!==null?no(e,ml,l,t):(e.baseState=l,[l,e.queue.dispatch])},useMemoCache:sc,useCacheRefresh:Do};Bo.useEffectEvent=vo;function xc(l,t,e,a){t=l.memoizedState,e=e(a,t),e=e==null?t:H({},t,e),l.memoizedState=e,l.lanes===0&&(l.updateQueue.baseState=e)}var zc={enqueueSetState:function(l,t,e){l=l._reactInternals;var a=xt(),n=ge(a);n.payload=t,e!=null&&(n.callback=e),t=ve(l,n,a),t!==null&&(st(t,l,a),an(t,l,a))},enqueueReplaceState:function(l,t,e){l=l._reactInternals;var a=xt(),n=ge(a);n.tag=1,n.payload=t,e!=null&&(n.callback=e),t=ve(l,n,a),t!==null&&(st(t,l,a),an(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var e=xt(),a=ge(e);a.tag=2,t!=null&&(a.callback=t),t=ve(l,a,e),t!==null&&(st(t,l,e),an(t,l,e))}};function Ho(l,t,e,a,n,u,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!ka(e,a)||!ka(n,u):!0}function No(l,t,e,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(e,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(e,a),t.state!==l&&zc.enqueueReplaceState(t,t.state,null)}function ke(l,t){var e=t;if("ref"in t){e={};for(var a in t)a!=="ref"&&(e[a]=t[a])}if(l=l.defaultProps){e===t&&(e=H({},e));for(var n in l)e[n]===void 0&&(e[n]=l[n])}return e}function qo(l){kn(l)}function Yo(l){console.error(l)}function Go(l){kn(l)}function pu(l,t){try{var e=l.onUncaughtError;e(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Qo(l,t,e){try{var a=l.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Tc(l,t,e){return e=ge(e),e.tag=3,e.payload={element:null},e.callback=function(){pu(l,t)},e}function Xo(l){return l=ge(l),l.tag=3,l}function Lo(l,t,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;l.payload=function(){return n(u)},l.callback=function(){Qo(t,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){Qo(t,e,a),typeof n!="function"&&(Te===null?Te=new Set([this]):Te.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function sh(l,t,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=e.alternate,t!==null&&ma(t,e,n,!0),e=vt.current,e!==null){switch(e.tag){case 31:case 13:return Rt===null?Mu():e.alternate===null&&Dl===0&&(Dl=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===uu?e.flags|=16384:(t=e.updateQueue,t===null?e.updateQueue=new Set([a]):t.add(a),Wc(l,a,n)),!1;case 22:return e.flags|=65536,a===uu?e.flags|=16384:(t=e.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=t):(e=t.retryQueue,e===null?t.retryQueue=new Set([a]):e.add(a)),Wc(l,a,n)),!1}throw Error(o(435,e.tag))}return Wc(l,a,n),Mu(),!1}if(nl)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Li&&(l=Error(o(422),{cause:a}),Ia(_t(l,e)))):(a!==Li&&(t=Error(o(423),{cause:a}),Ia(_t(t,e))),l=l.current.alternate,l.flags|=65536,n&=-n,l.lanes|=n,a=_t(a,e),n=Tc(l.stateNode,a,n),Pi(l,n),Dl!==4&&(Dl=2)),!1;var u=Error(o(520),{cause:a});if(u=_t(u,e),pn===null?pn=[u]:pn.push(u),Dl!==4&&(Dl=2),t===null)return!0;a=_t(a,e),e=t;do{switch(e.tag){case 3:return e.flags|=65536,l=n&-n,e.lanes|=l,l=Tc(e.stateNode,a,l),Pi(e,l),!1;case 1:if(t=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Te===null||!Te.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=Xo(n),Lo(n,l,e,a),Pi(e,n),!1}e=e.return}while(e!==null);return!1}var Ec=Error(o(461)),Gl=!1;function Fl(l,t,e,a){t.child=l===null?Ks(t,null,e,a):we(t,l.child,e,a)}function Zo(l,t,e,a,n){e=e.render;var u=t.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Ze(t),a=uc(l,t,e,i,u,n),c=ic(),l!==null&&!Gl?(cc(l,t,n),Pt(l,t,n)):(nl&&c&&Qi(t),t.flags|=1,Fl(l,t,a,n),t.child)}function Vo(l,t,e,a,n){if(l===null){var u=e.type;return typeof u=="function"&&!qi(u)&&u.defaultProps===void 0&&e.compare===null?(t.tag=15,t.type=u,Ko(l,t,u,a,n)):(l=Pn(e.type,null,a,t,t.mode,n),l.ref=t.ref,l.return=t,t.child=l)}if(u=l.child,!Rc(l,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:ka,e(i,a)&&l.ref===t.ref)return Pt(l,t,n)}return t.flags|=1,l=wt(u,a),l.ref=t.ref,l.return=t,t.child=l}function Ko(l,t,e,a,n){if(l!==null){var u=l.memoizedProps;if(ka(u,a)&&l.ref===t.ref)if(Gl=!1,t.pendingProps=a=u,Rc(l,n))(l.flags&131072)!==0&&(Gl=!0);else return t.lanes=l.lanes,Pt(l,t,n)}return Ac(l,t,e,a,n)}function Jo(l,t,e,a){var n=a.children,u=l!==null?l.memoizedState:null;if(l===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|e:e,l!==null){for(a=t.child=l.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return wo(l,t,u,e,a)}if((e&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&au(t,u!==null?u.cachePool:null),u!==null?Ws(t,u):tc(),ks(t);else return a=t.lanes=536870912,wo(l,t,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(au(t,u.cachePool),Ws(t,u),be(),t.memoizedState=null):(l!==null&&au(t,null),tc(),be());return Fl(l,t,n,e),t.child}function dn(l,t){return l!==null&&l.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wo(l,t,e,a,n){var u=ki();return u=u===null?null:{parent:ql._currentValue,pool:u},t.memoizedState={baseLanes:e,cachePool:u},l!==null&&au(t,null),tc(),ks(t),l!==null&&ma(l,t,a,!0),t.childLanes=n,null}function bu(l,t){return t=xu({mode:t.mode,children:t.children},l.mode),t.ref=l.ref,l.child=t,t.return=l,t}function Wo(l,t,e){return we(t,l.child,null,e),l=bu(t,t.pendingProps),l.flags|=2,pt(t),t.memoizedState=null,l}function oh(l,t,e){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,l===null){if(nl){if(a.mode==="hidden")return l=bu(t,a),t.lanes=536870912,dn(null,l);if(ac(t),(l=xl)?(l=ir(l,Ot),l=l!==null&&l.data==="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:de!==null?{id:Qt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},e=Ms(l),e.return=t,t.child=e,kl=t,xl=null)):l=null,l===null)throw he(t);return t.lanes=536870912,null}return bu(t,a)}var u=l.memoizedState;if(u!==null){var i=u.dehydrated;if(ac(t),n)if(t.flags&256)t.flags&=-257,t=Wo(l,t,e);else if(t.memoizedState!==null)t.child=l.child,t.flags|=128,t=null;else throw Error(o(558));else if(Gl||ma(l,t,e,!1),n=(e&l.childLanes)!==0,Gl||n){if(a=pl,a!==null&&(i=qf(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ge(l,i),st(a,l,i),Ec;Mu(),t=Wo(l,t,e)}else l=u.treeContext,xl=Ut(i.nextSibling),kl=t,nl=!0,re=null,Ot=!1,l!==null&&Us(t,l),t=bu(t,a),t.flags|=4096;return t}return l=wt(l.child,{mode:a.mode,children:a.children}),l.ref=t.ref,t.child=l,l.return=t,l}function Su(l,t){var e=t.ref;if(e===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(o(284));(l===null||l.ref!==e)&&(t.flags|=4194816)}}function Ac(l,t,e,a,n){return Ze(t),e=uc(l,t,e,a,void 0,n),a=ic(),l!==null&&!Gl?(cc(l,t,n),Pt(l,t,n)):(nl&&a&&Qi(t),t.flags|=1,Fl(l,t,e,n),t.child)}function ko(l,t,e,a,n,u){return Ze(t),t.updateQueue=null,e=Fs(t,a,e,n),$s(l),a=ic(),l!==null&&!Gl?(cc(l,t,u),Pt(l,t,u)):(nl&&a&&Qi(t),t.flags|=1,Fl(l,t,e,u),t.child)}function $o(l,t,e,a,n){if(Ze(t),t.stateNode===null){var u=da,i=e.contextType;typeof i=="object"&&i!==null&&(u=$l(i)),u=new e(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=zc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Fi(t),i=e.contextType,u.context=typeof i=="object"&&i!==null?$l(i):da,u.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(xc(t,e,i,a),u.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&zc.enqueueReplaceState(u,u.state,null),un(t,a,u,n),nn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){u=t.stateNode;var c=t.memoizedProps,s=ke(e,c);u.props=s;var m=u.context,S=e.contextType;i=da,typeof S=="object"&&S!==null&&(i=$l(S));var E=e.getDerivedStateFromProps;S=typeof E=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,S||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||m!==i)&&No(t,u,a,i),me=!1;var g=t.memoizedState;u.state=g,un(t,a,u,n),nn(),m=t.memoizedState,c||g!==m||me?(typeof E=="function"&&(xc(t,e,E,a),m=t.memoizedState),(s=me||Ho(t,e,s,a,g,m,i))?(S||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=m),u.props=a,u.state=m,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Ii(l,t),i=t.memoizedProps,S=ke(e,i),u.props=S,E=t.pendingProps,g=u.context,m=e.contextType,s=da,typeof m=="object"&&m!==null&&(s=$l(m)),c=e.getDerivedStateFromProps,(m=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==E||g!==s)&&No(t,u,a,s),me=!1,g=t.memoizedState,u.state=g,un(t,a,u,n),nn();var p=t.memoizedState;i!==E||g!==p||me||l!==null&&l.dependencies!==null&&tu(l.dependencies)?(typeof c=="function"&&(xc(t,e,c,a),p=t.memoizedState),(S=me||Ho(t,e,S,a,g,p,s)||l!==null&&l.dependencies!==null&&tu(l.dependencies))?(m||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,p,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,p,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),u.props=a,u.state=p,u.context=s,a=S):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),a=!1)}return u=a,Su(l,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,l!==null&&a?(t.child=we(t,l.child,null,n),t.child=we(t,null,e,n)):Fl(l,t,e,n),t.memoizedState=u.state,l=t.child):l=Pt(l,t,n),l}function Fo(l,t,e,a){return Xe(),t.flags|=256,Fl(l,t,e,a),t.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(l){return{baseLanes:l,cachePool:Gs()}}function _c(l,t,e){return l=l!==null?l.childLanes&~e:0,t&&(l|=St),l}function Io(l,t,e){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=l!==null&&l.memoizedState===null?!1:(Bl.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(nl){if(n?pe(t):be(),(l=xl)?(l=ir(l,Ot),l=l!==null&&l.data!=="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:de!==null?{id:Qt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},e=Ms(l),e.return=t,t.child=e,kl=t,xl=null)):l=null,l===null)throw he(t);return df(l)?t.lanes=32:t.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(be(),n=t.mode,c=xu({mode:"hidden",children:c},n),a=Qe(a,n,e,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=Cc(e),a.childLanes=_c(l,i,e),t.memoizedState=jc,dn(null,a)):(pe(t),Dc(t,c))}var s=l.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(u)t.flags&256?(pe(t),t.flags&=-257,t=Mc(l,t,e)):t.memoizedState!==null?(be(),t.child=l.child,t.flags|=128,t=null):(be(),c=a.fallback,n=t.mode,a=xu({mode:"visible",children:a.children},n),c=Qe(c,n,e,null),c.flags|=2,a.return=t,c.return=t,a.sibling=c,t.child=a,we(t,l.child,null,e),a=t.child,a.memoizedState=Cc(e),a.childLanes=_c(l,i,e),t.memoizedState=jc,t=dn(null,a));else if(pe(t),df(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var m=i.dgst;i=m,a=Error(o(419)),a.stack="",a.digest=i,Ia({value:a,source:null,stack:null}),t=Mc(l,t,e)}else if(Gl||ma(l,t,e,!1),i=(e&l.childLanes)!==0,Gl||i){if(i=pl,i!==null&&(a=qf(i,e),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ge(l,a),st(i,l,a),Ec;of(c)||Mu(),t=Mc(l,t,e)}else of(c)?(t.flags|=192,t.child=l.child,t=null):(l=s.treeContext,xl=Ut(c.nextSibling),kl=t,nl=!0,re=null,Ot=!1,l!==null&&Us(t,l),t=Dc(t,a.children),t.flags|=4096);return t}return n?(be(),c=a.fallback,n=t.mode,s=l.child,m=s.sibling,a=wt(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,m!==null?c=wt(m,c):(c=Qe(c,n,e,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,dn(null,a),a=t.child,c=l.child.memoizedState,c===null?c=Cc(e):(n=c.cachePool,n!==null?(s=ql._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=Gs(),c={baseLanes:c.baseLanes|e,cachePool:n}),a.memoizedState=c,a.childLanes=_c(l,i,e),t.memoizedState=jc,dn(l.child,a)):(pe(t),e=l.child,l=e.sibling,e=wt(e,{mode:"visible",children:a.children}),e.return=t,e.sibling=null,l!==null&&(i=t.deletions,i===null?(t.deletions=[l],t.flags|=16):i.push(l)),t.child=e,t.memoizedState=null,e)}function Dc(l,t){return t=xu({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function xu(l,t){return l=gt(22,l,null,t),l.lanes=0,l}function Mc(l,t,e){return we(t,l.child,null,e),l=Dc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Po(l,t,e){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Ki(l.return,t,e)}function Oc(l,t,e,a,n,u){var i=l.memoizedState;i===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function ld(l,t,e){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Bl.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,N(Bl,i),Fl(l,t,a,e),a=nl?Fa:0,!c&&l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Po(l,e,t);else if(l.tag===19)Po(l,e,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n){case"forwards":for(e=t.child,n=null;e!==null;)l=e.alternate,l!==null&&su(l)===null&&(n=e),e=e.sibling;e=n,e===null?(n=t.child,t.child=null):(n=e.sibling,e.sibling=null),Oc(t,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=t.child,t.child=null;n!==null;){if(l=n.alternate,l!==null&&su(l)===null){t.child=n;break}l=n.sibling,n.sibling=e,e=n,n=l}Oc(t,!0,e,null,u,a);break;case"together":Oc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Pt(l,t,e){if(l!==null&&(t.dependencies=l.dependencies),ze|=t.lanes,(e&t.childLanes)===0)if(l!==null){if(ma(l,t,e,!1),(e&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(o(153));if(t.child!==null){for(l=t.child,e=wt(l,l.pendingProps),t.child=e,e.return=t;l.sibling!==null;)l=l.sibling,e=e.sibling=wt(l,l.pendingProps),e.return=t;e.sibling=null}return t.child}function Rc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&tu(l)))}function dh(l,t,e){switch(t.tag){case 3:Xl(t,t.stateNode.containerInfo),ye(t,ql,l.memoizedState.cache),Xe();break;case 27:case 5:Na(t);break;case 4:Xl(t,t.stateNode.containerInfo);break;case 10:ye(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ac(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(pe(t),t.flags|=128,null):(e&t.child.childLanes)!==0?Io(l,t,e):(pe(t),l=Pt(l,t,e),l!==null?l.sibling:null);pe(t);break;case 19:var n=(l.flags&128)!==0;if(a=(e&t.childLanes)!==0,a||(ma(l,t,e,!1),a=(e&t.childLanes)!==0),n){if(a)return ld(l,t,e);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),N(Bl,Bl.current),a)break;return null;case 22:return t.lanes=0,Jo(l,t,e,t.pendingProps);case 24:ye(t,ql,l.memoizedState.cache)}return Pt(l,t,e)}function td(l,t,e){if(l!==null)if(l.memoizedProps!==t.pendingProps)Gl=!0;else{if(!Rc(l,e)&&(t.flags&128)===0)return Gl=!1,dh(l,t,e);Gl=(l.flags&131072)!==0}else Gl=!1,nl&&(t.flags&1048576)!==0&&Rs(t,Fa,t.index);switch(t.lanes=0,t.tag){case 16:l:{var a=t.pendingProps;if(l=Ke(t.elementType),t.type=l,typeof l=="function")qi(l)?(a=ke(l,a),t.tag=1,t=$o(null,t,l,a,e)):(t.tag=0,t=Ac(null,t,l,a,e));else{if(l!=null){var n=l.$$typeof;if(n===Nl){t.tag=11,t=Zo(null,t,l,a,e);break l}else if(n===q){t.tag=14,t=Vo(null,t,l,a,e);break l}}throw t=Pl(l)||l,Error(o(306,t,""))}}return t;case 0:return Ac(l,t,t.type,t.pendingProps,e);case 1:return a=t.type,n=ke(a,t.pendingProps),$o(l,t,a,n,e);case 3:l:{if(Xl(t,t.stateNode.containerInfo),l===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Ii(l,t),un(t,a,null,e);var i=t.memoizedState;if(a=i.cache,ye(t,ql,a),a!==u.cache&&Ji(t,[ql],e,!0),nn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Fo(l,t,a,e);break l}else if(a!==n){n=_t(Error(o(424)),t),Ia(n),t=Fo(l,t,a,e);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(xl=Ut(l.firstChild),kl=t,nl=!0,re=null,Ot=!0,e=Ks(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Xe(),a===n){t=Pt(l,t,e);break l}Fl(l,t,a,e)}t=t.child}return t;case 26:return Su(l,t),l===null?(e=rr(t.type,null,t.pendingProps,null))?t.memoizedState=e:nl||(e=t.type,l=t.pendingProps,a=qu(W.current).createElement(e),a[Wl]=t,a[at]=l,Il(a,e,l),Vl(a),t.stateNode=a):t.memoizedState=rr(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Na(t),l===null&&nl&&(a=t.stateNode=sr(t.type,t.pendingProps,W.current),kl=t,Ot=!0,n=xl,Ce(t.type)?(rf=n,xl=Ut(a.firstChild)):xl=n),Fl(l,t,t.pendingProps.children,e),Su(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&nl&&((n=a=xl)&&(a=Xh(a,t.type,t.pendingProps,Ot),a!==null?(t.stateNode=a,kl=t,xl=Ut(a.firstChild),Ot=!1,n=!0):n=!1),n||he(t)),Na(t),n=t.type,u=t.pendingProps,i=l!==null?l.memoizedProps:null,a=u.children,cf(n,u)?a=null:i!==null&&cf(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=uc(l,t,eh,null,null,e),jn._currentValue=n),Su(l,t),Fl(l,t,a,e),t.child;case 6:return l===null&&nl&&((l=e=xl)&&(e=Lh(e,t.pendingProps,Ot),e!==null?(t.stateNode=e,kl=t,xl=null,l=!0):l=!1),l||he(t)),null;case 13:return Io(l,t,e);case 4:return Xl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=we(t,null,a,e):Fl(l,t,a,e),t.child;case 11:return Zo(l,t,t.type,t.pendingProps,e);case 7:return Fl(l,t,t.pendingProps,e),t.child;case 8:return Fl(l,t,t.pendingProps.children,e),t.child;case 12:return Fl(l,t,t.pendingProps.children,e),t.child;case 10:return a=t.pendingProps,ye(t,t.type,a.value),Fl(l,t,a.children,e),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Ze(t),n=$l(n),a=a(n),t.flags|=1,Fl(l,t,a,e),t.child;case 14:return Vo(l,t,t.type,t.pendingProps,e);case 15:return Ko(l,t,t.type,t.pendingProps,e);case 19:return ld(l,t,e);case 31:return oh(l,t,e);case 22:return Jo(l,t,e,t.pendingProps);case 24:return Ze(t),a=$l(ql),l===null?(n=ki(),n===null&&(n=pl,u=wi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),t.memoizedState={parent:a,cache:n},Fi(t),ye(t,ql,n)):((l.lanes&e)!==0&&(Ii(l,t),un(t,null,null,e),nn()),n=l.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ye(t,ql,a)):(a=u.cache,ye(t,ql,a),a!==n.cache&&Ji(t,[ql],e,!0))),Fl(l,t,t.pendingProps.children,e),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function le(l){l.flags|=4}function Uc(l,t,e,a,n){if((t=(l.mode&32)!==0)&&(t=!1),t){if(l.flags|=16777216,(n&335544128)===n)if(l.stateNode.complete)l.flags|=8192;else if(_d())l.flags|=8192;else throw Je=uu,$i}else l.flags&=-16777217}function ed(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!vr(t))if(_d())l.flags|=8192;else throw Je=uu,$i}function zu(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?Bf():536870912,l.lanes|=t,Ca|=t)}function rn(l,t){if(!nl)switch(l.tailMode){case"hidden":t=l.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?l.tail=null:e.sibling=null;break;case"collapsed":e=l.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function zl(l){var t=l.alternate!==null&&l.alternate.child===l.child,e=0,a=0;if(t)for(var n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=l,n=n.sibling;else for(n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=l,n=n.sibling;return l.subtreeFlags|=a,l.childLanes=e,t}function rh(l,t,e){var a=t.pendingProps;switch(Xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zl(t),null;case 1:return zl(t),null;case 3:return e=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),$t(ql),Ul(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(l===null||l.child===null)&&(ya(t)?le(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zi())),zl(t),null;case 26:var n=t.type,u=t.memoizedState;return l===null?(le(t),u!==null?(zl(t),ed(t,u)):(zl(t),Uc(t,n,null,a,e))):u?u!==l.memoizedState?(le(t),zl(t),ed(t,u)):(zl(t),t.flags&=-16777217):(l=l.memoizedProps,l!==a&&le(t),zl(t),Uc(t,n,l,a,e)),null;case 27:if(Un(t),e=W.current,n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&le(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return zl(t),null}l=z.current,ya(t)?Bs(t):(l=sr(n,a,e),t.stateNode=l,le(t))}return zl(t),null;case 5:if(Un(t),n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&le(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return zl(t),null}if(u=z.current,ya(t))Bs(t);else{var i=qu(W.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Wl]=t,u[at]=a;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;l:switch(Il(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&le(t)}}return zl(t),Uc(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&le(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(l=W.current,ya(t)){if(l=t.stateNode,e=t.memoizedProps,a=null,n=kl,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[Wl]=t,l=!!(l.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Id(l.nodeValue,e)),l||he(t,!0)}else l=qu(l).createTextNode(a),l[Wl]=t,t.stateNode=l}return zl(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(a=ya(t),e!==null){if(l===null){if(!a)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(557));l[Wl]=t}else Xe(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zl(t),l=!1}else e=Zi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return zl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=ya(t),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Wl]=t}else Xe(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zl(t),n=!1}else n=Zi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=a!==null,l=l!==null&&l.memoizedState!==null,e&&(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)),e!==l&&e&&(t.child.flags|=8192),zu(t,t.updateQueue),zl(t),null);case 4:return Ul(),l===null&&tf(t.stateNode.containerInfo),zl(t),null;case 10:return $t(t.type),zl(t),null;case 19:if(A(Bl),a=t.memoizedState,a===null)return zl(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)rn(a,!1);else{if(Dl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(u=su(l),u!==null){for(t.flags|=128,rn(a,!1),l=u.updateQueue,t.updateQueue=l,zu(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)Ds(e,l),e=e.sibling;return N(Bl,Bl.current&1|2),nl&&Wt(t,a.treeForkCount),t.child}l=l.sibling}a.tail!==null&&rt()>Cu&&(t.flags|=128,n=!0,rn(a,!1),t.lanes=4194304)}else{if(!n)if(l=su(u),l!==null){if(t.flags|=128,n=!0,l=l.updateQueue,t.updateQueue=l,zu(t,l),rn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!nl)return zl(t),null}else 2*rt()-a.renderingStartTime>Cu&&e!==536870912&&(t.flags|=128,n=!0,rn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(l=a.last,l!==null?l.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=rt(),l.sibling=null,e=Bl.current,N(Bl,n?e&1|2:e&1),nl&&Wt(t,a.treeForkCount),l):(zl(t),null);case 22:case 23:return pt(t),ec(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(e&536870912)!==0&&(t.flags&128)===0&&(zl(t),t.subtreeFlags&6&&(t.flags|=8192)):zl(t),e=t.updateQueue,e!==null&&zu(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==e&&(t.flags|=2048),l!==null&&A(Ve),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),$t(ql),zl(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function hh(l,t){switch(Xi(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return $t(ql),Ul(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Un(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(o(340));Xe()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(pt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Xe()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return A(Bl),null;case 4:return Ul(),null;case 10:return $t(t.type),null;case 22:case 23:return pt(t),ec(),l!==null&&A(Ve),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return $t(ql),null;case 25:return null;default:return null}}function ad(l,t){switch(Xi(t),t.tag){case 3:$t(ql),Ul();break;case 26:case 27:case 5:Un(t);break;case 4:Ul();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:A(Bl);break;case 10:$t(t.type);break;case 22:case 23:pt(t),ec(),l!==null&&A(Ve);break;case 24:$t(ql)}}function hn(l,t){try{var e=t.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&l)===l){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(c){hl(t,t.return,c)}}function Se(l,t,e){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&l)===l){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=t;var s=e,m=c;try{m()}catch(S){hl(n,s,S)}}}a=a.next}while(a!==u)}}catch(S){hl(t,t.return,S)}}function nd(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{ws(t,e)}catch(a){hl(l,l.return,a)}}}function ud(l,t,e){e.props=ke(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(a){hl(l,t,a)}}function yn(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof e=="function"?l.refCleanup=e(a):e.current=a}}catch(n){hl(l,t,n)}}function Lt(l,t){var e=l.ref,a=l.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){hl(l,t,n)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){hl(l,t,n)}else e.current=null}function id(l){var t=l.type,e=l.memoizedProps,a=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break l;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){hl(l,l.return,n)}}function Bc(l,t,e){try{var a=l.stateNode;Hh(a,l.type,e,t),a[at]=t}catch(n){hl(l,l.return,n)}}function cd(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ce(l.type)||l.tag===4}function Hc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||cd(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Ce(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Nc(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(l,t):(t=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.appendChild(l),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Kt));else if(a!==4&&(a===27&&Ce(l.type)&&(e=l.stateNode,t=null),l=l.child,l!==null))for(Nc(l,t,e),l=l.sibling;l!==null;)Nc(l,t,e),l=l.sibling}function Tu(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?e.insertBefore(l,t):e.appendChild(l);else if(a!==4&&(a===27&&Ce(l.type)&&(e=l.stateNode),l=l.child,l!==null))for(Tu(l,t,e),l=l.sibling;l!==null;)Tu(l,t,e),l=l.sibling}function fd(l){var t=l.stateNode,e=l.memoizedProps;try{for(var a=l.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Il(t,a,e),t[Wl]=l,t[at]=e}catch(u){hl(l,l.return,u)}}var te=!1,Ql=!1,qc=!1,sd=typeof WeakSet=="function"?WeakSet:Set,Kl=null;function yh(l,t){if(l=l.containerInfo,nf=Vu,l=Ss(l),Mi(l)){if("selectionStart"in l)var e={start:l.selectionStart,end:l.selectionEnd};else l:{e=(e=l.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break l}var i=0,c=-1,s=-1,m=0,S=0,E=l,g=null;t:for(;;){for(var p;E!==e||n!==0&&E.nodeType!==3||(c=i+n),E!==u||a!==0&&E.nodeType!==3||(s=i+a),E.nodeType===3&&(i+=E.nodeValue.length),(p=E.firstChild)!==null;)g=E,E=p;for(;;){if(E===l)break t;if(g===e&&++m===n&&(c=i),g===u&&++S===a&&(s=i),(p=E.nextSibling)!==null)break;E=g,g=E.parentNode}E=p}e=c===-1||s===-1?null:{start:c,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;for(uf={focusedElem:l,selectionRange:e},Vu=!1,Kl=t;Kl!==null;)if(t=Kl,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Kl=l;else for(;Kl!==null;){switch(t=Kl,u=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(e=0;e<l.length;e++)n=l[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&u!==null){l=void 0,e=t,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var Y=ke(e.type,n);l=a.getSnapshotBeforeUpdate(Y,u),a.__reactInternalSnapshotBeforeUpdate=l}catch(K){hl(e,e.return,K)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,e=l.nodeType,e===9)sf(l);else if(e===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":sf(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(o(163))}if(l=t.sibling,l!==null){l.return=t.return,Kl=l;break}Kl=t.return}}function od(l,t,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:ae(l,e),a&4&&hn(5,e);break;case 1:if(ae(l,e),a&4)if(l=e.stateNode,t===null)try{l.componentDidMount()}catch(i){hl(e,e.return,i)}else{var n=ke(e.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(n,t,l.__reactInternalSnapshotBeforeUpdate)}catch(i){hl(e,e.return,i)}}a&64&&nd(e),a&512&&yn(e,e.return);break;case 3:if(ae(l,e),a&64&&(l=e.updateQueue,l!==null)){if(t=null,e.child!==null)switch(e.child.tag){case 27:case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}try{ws(l,t)}catch(i){hl(e,e.return,i)}}break;case 27:t===null&&a&4&&fd(e);case 26:case 5:ae(l,e),t===null&&a&4&&id(e),a&512&&yn(e,e.return);break;case 12:ae(l,e);break;case 31:ae(l,e),a&4&&hd(l,e);break;case 13:ae(l,e),a&4&&yd(l,e),a&64&&(l=e.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(e=Th.bind(null,e),Zh(l,e))));break;case 22:if(a=e.memoizedState!==null||te,!a){t=t!==null&&t.memoizedState!==null||Ql,n=te;var u=Ql;te=a,(Ql=t)&&!u?ne(l,e,(e.subtreeFlags&8772)!==0):ae(l,e),te=n,Ql=u}break;case 30:break;default:ae(l,e)}}function dd(l){var t=l.alternate;t!==null&&(l.alternate=null,dd(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&hi(t)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Tl=null,ut=!1;function ee(l,t,e){for(e=e.child;e!==null;)rd(l,t,e),e=e.sibling}function rd(l,t,e){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(qa,e)}catch{}switch(e.tag){case 26:Ql||Lt(e,t),ee(l,t,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Ql||Lt(e,t);var a=Tl,n=ut;Ce(e.type)&&(Tl=e.stateNode,ut=!1),ee(l,t,e),Tn(e.stateNode),Tl=a,ut=n;break;case 5:Ql||Lt(e,t);case 6:if(a=Tl,n=ut,Tl=null,ee(l,t,e),Tl=a,ut=n,Tl!==null)if(ut)try{(Tl.nodeType===9?Tl.body:Tl.nodeName==="HTML"?Tl.ownerDocument.body:Tl).removeChild(e.stateNode)}catch(u){hl(e,t,u)}else try{Tl.removeChild(e.stateNode)}catch(u){hl(e,t,u)}break;case 18:Tl!==null&&(ut?(l=Tl,nr(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.stateNode),Ha(l)):nr(Tl,e.stateNode));break;case 4:a=Tl,n=ut,Tl=e.stateNode.containerInfo,ut=!0,ee(l,t,e),Tl=a,ut=n;break;case 0:case 11:case 14:case 15:Se(2,e,t),Ql||Se(4,e,t),ee(l,t,e);break;case 1:Ql||(Lt(e,t),a=e.stateNode,typeof a.componentWillUnmount=="function"&&ud(e,t,a)),ee(l,t,e);break;case 21:ee(l,t,e);break;case 22:Ql=(a=Ql)||e.memoizedState!==null,ee(l,t,e),Ql=a;break;default:ee(l,t,e)}}function hd(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{Ha(l)}catch(e){hl(t,t.return,e)}}}function yd(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Ha(l)}catch(e){hl(t,t.return,e)}}function mh(l){switch(l.tag){case 31:case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new sd),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new sd),t;default:throw Error(o(435,l.tag))}}function Eu(l,t){var e=mh(l);t.forEach(function(a){if(!e.has(a)){e.add(a);var n=Eh.bind(null,l,a);a.then(n,n)}})}function it(l,t){var e=t.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=l,i=t,c=i;l:for(;c!==null;){switch(c.tag){case 27:if(Ce(c.type)){Tl=c.stateNode,ut=!1;break l}break;case 5:Tl=c.stateNode,ut=!1;break l;case 3:case 4:Tl=c.stateNode.containerInfo,ut=!0;break l}c=c.return}if(Tl===null)throw Error(o(160));rd(u,i,n),Tl=null,ut=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)md(t,l),t=t.sibling}var qt=null;function md(l,t){var e=l.alternate,a=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:it(t,l),ct(l),a&4&&(Se(3,l,l.return),hn(3,l),Se(5,l,l.return));break;case 1:it(t,l),ct(l),a&512&&(Ql||e===null||Lt(e,e.return)),a&64&&te&&(l=l.updateQueue,l!==null&&(a=l.callbacks,a!==null&&(e=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=qt;if(it(t,l),ct(l),a&512&&(Ql||e===null||Lt(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=l.memoizedState,e===null)if(a===null)if(l.stateNode===null){l:{a=l.type,e=l.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Qa]||u[Wl]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Il(u,a,e),u[Wl]=l,Vl(u),a=u;break l;case"link":var i=mr("link","href",n).get(a+(e.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break t}}u=n.createElement(a),Il(u,a,e),n.head.appendChild(u);break;case"meta":if(i=mr("meta","content",n).get(a+(e.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break t}}u=n.createElement(a),Il(u,a,e),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Wl]=l,Vl(u),a=u}l.stateNode=a}else gr(n,l.type,l.stateNode);else l.stateNode=yr(n,a,l.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?gr(n,l.type,l.stateNode):yr(n,a,l.memoizedProps)):a===null&&l.stateNode!==null&&Bc(l,l.memoizedProps,e.memoizedProps)}break;case 27:it(t,l),ct(l),a&512&&(Ql||e===null||Lt(e,e.return)),e!==null&&a&4&&Bc(l,l.memoizedProps,e.memoizedProps);break;case 5:if(it(t,l),ct(l),a&512&&(Ql||e===null||Lt(e,e.return)),l.flags&32){n=l.stateNode;try{na(n,"")}catch(Y){hl(l,l.return,Y)}}a&4&&l.stateNode!=null&&(n=l.memoizedProps,Bc(l,n,e!==null?e.memoizedProps:n)),a&1024&&(qc=!0);break;case 6:if(it(t,l),ct(l),a&4){if(l.stateNode===null)throw Error(o(162));a=l.memoizedProps,e=l.stateNode;try{e.nodeValue=a}catch(Y){hl(l,l.return,Y)}}break;case 3:if(Qu=null,n=qt,qt=Yu(t.containerInfo),it(t,l),qt=n,ct(l),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Ha(t.containerInfo)}catch(Y){hl(l,l.return,Y)}qc&&(qc=!1,gd(l));break;case 4:a=qt,qt=Yu(l.stateNode.containerInfo),it(t,l),ct(l),qt=a;break;case 12:it(t,l),ct(l);break;case 31:it(t,l),ct(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Eu(l,a)));break;case 13:it(t,l),ct(l),l.child.flags&8192&&l.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(ju=rt()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Eu(l,a)));break;case 22:n=l.memoizedState!==null;var s=e!==null&&e.memoizedState!==null,m=te,S=Ql;if(te=m||n,Ql=S||s,it(t,l),Ql=S,te=m,ct(l),a&8192)l:for(t=l.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(e===null||s||te||Ql||$e(l)),e=null,t=l;;){if(t.tag===5||t.tag===26){if(e===null){s=e=t;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var E=s.memoizedProps.style,g=E!=null&&E.hasOwnProperty("display")?E.display:null;c.style.display=g==null||typeof g=="boolean"?"":(""+g).trim()}}catch(Y){hl(s,s.return,Y)}}}else if(t.tag===6){if(e===null){s=t;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(Y){hl(s,s.return,Y)}}}else if(t.tag===18){if(e===null){s=t;try{var p=s.stateNode;n?ur(p,!0):ur(s.stateNode,!1)}catch(Y){hl(s,s.return,Y)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===l)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break l;for(;t.sibling===null;){if(t.return===null||t.return===l)break l;e===t&&(e=null),t=t.return}e===t&&(e=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=l.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,Eu(l,e))));break;case 19:it(t,l),ct(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Eu(l,a)));break;case 30:break;case 21:break;default:it(t,l),ct(l)}}function ct(l){var t=l.flags;if(t&2){try{for(var e,a=l.return;a!==null;){if(cd(a)){e=a;break}a=a.return}if(e==null)throw Error(o(160));switch(e.tag){case 27:var n=e.stateNode,u=Hc(l);Tu(l,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(na(i,""),e.flags&=-33);var c=Hc(l);Tu(l,c,i);break;case 3:case 4:var s=e.stateNode.containerInfo,m=Hc(l);Nc(l,m,s);break;default:throw Error(o(161))}}catch(S){hl(l,l.return,S)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function gd(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;gd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function ae(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(l,t.alternate,t),t=t.sibling}function $e(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:Se(4,t,t.return),$e(t);break;case 1:Lt(t,t.return);var e=t.stateNode;typeof e.componentWillUnmount=="function"&&ud(t,t.return,e),$e(t);break;case 27:Tn(t.stateNode);case 26:case 5:Lt(t,t.return),$e(t);break;case 22:t.memoizedState===null&&$e(t);break;case 30:$e(t);break;default:$e(t)}l=l.sibling}}function ne(l,t,e){for(e=e&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=l,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:ne(n,u,e),hn(4,u);break;case 1:if(ne(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(m){hl(a,a.return,m)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)Js(s[n],c)}catch(m){hl(a,a.return,m)}}e&&i&64&&nd(u),yn(u,u.return);break;case 27:fd(u);case 26:case 5:ne(n,u,e),e&&a===null&&i&4&&id(u),yn(u,u.return);break;case 12:ne(n,u,e);break;case 31:ne(n,u,e),e&&i&4&&hd(n,u);break;case 13:ne(n,u,e),e&&i&4&&yd(n,u);break;case 22:u.memoizedState===null&&ne(n,u,e),yn(u,u.return);break;case 30:break;default:ne(n,u,e)}t=t.sibling}}function Yc(l,t){var e=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==e&&(l!=null&&l.refCount++,e!=null&&Pa(e))}function Gc(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Pa(l))}function Yt(l,t,e,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vd(l,t,e,a),t=t.sibling}function vd(l,t,e,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(l,t,e,a),n&2048&&hn(9,t);break;case 1:Yt(l,t,e,a);break;case 3:Yt(l,t,e,a),n&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Pa(l)));break;case 12:if(n&2048){Yt(l,t,e,a),l=t.stateNode;try{var u=t.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(s){hl(t,t.return,s)}}else Yt(l,t,e,a);break;case 31:Yt(l,t,e,a);break;case 13:Yt(l,t,e,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?Yt(l,t,e,a):mn(l,t):u._visibility&2?Yt(l,t,e,a):(u._visibility|=2,Ea(l,t,e,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Yc(i,t);break;case 24:Yt(l,t,e,a),n&2048&&Gc(t.alternate,t);break;default:Yt(l,t,e,a)}}function Ea(l,t,e,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=l,i=t,c=e,s=a,m=i.flags;switch(i.tag){case 0:case 11:case 15:Ea(u,i,c,s,n),hn(8,i);break;case 23:break;case 22:var S=i.stateNode;i.memoizedState!==null?S._visibility&2?Ea(u,i,c,s,n):mn(u,i):(S._visibility|=2,Ea(u,i,c,s,n)),n&&m&2048&&Yc(i.alternate,i);break;case 24:Ea(u,i,c,s,n),n&&m&2048&&Gc(i.alternate,i);break;default:Ea(u,i,c,s,n)}t=t.sibling}}function mn(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var e=l,a=t,n=a.flags;switch(a.tag){case 22:mn(e,a),n&2048&&Yc(a.alternate,a);break;case 24:mn(e,a),n&2048&&Gc(a.alternate,a);break;default:mn(e,a)}t=t.sibling}}var gn=8192;function Aa(l,t,e){if(l.subtreeFlags&gn)for(l=l.child;l!==null;)pd(l,t,e),l=l.sibling}function pd(l,t,e){switch(l.tag){case 26:Aa(l,t,e),l.flags&gn&&l.memoizedState!==null&&ty(e,qt,l.memoizedState,l.memoizedProps);break;case 5:Aa(l,t,e);break;case 3:case 4:var a=qt;qt=Yu(l.stateNode.containerInfo),Aa(l,t,e),qt=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=gn,gn=16777216,Aa(l,t,e),gn=a):Aa(l,t,e));break;default:Aa(l,t,e)}}function bd(l){var t=l.alternate;if(t!==null&&(l=t.child,l!==null)){t.child=null;do t=l.sibling,l.sibling=null,l=t;while(l!==null)}}function vn(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Kl=a,xd(a,l)}bd(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Sd(l),l=l.sibling}function Sd(l){switch(l.tag){case 0:case 11:case 15:vn(l),l.flags&2048&&Se(9,l,l.return);break;case 3:vn(l);break;case 12:vn(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&2&&(l.return===null||l.return.tag!==13)?(t._visibility&=-3,Au(l)):vn(l);break;default:vn(l)}}function Au(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Kl=a,xd(a,l)}bd(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:Se(8,t,t.return),Au(t);break;case 22:e=t.stateNode,e._visibility&2&&(e._visibility&=-3,Au(t));break;default:Au(t)}l=l.sibling}}function xd(l,t){for(;Kl!==null;){var e=Kl;switch(e.tag){case 0:case 11:case 15:Se(8,e,t);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Pa(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Kl=a;else l:for(e=l;Kl!==null;){a=Kl;var n=a.sibling,u=a.return;if(dd(a),a===e){Kl=null;break l}if(n!==null){n.return=u,Kl=n;break l}Kl=u}}}var gh={getCacheForType:function(l){var t=$l(ql),e=t.data.get(l);return e===void 0&&(e=l(),t.data.set(l,e)),e},cacheSignal:function(){return $l(ql).controller.signal}},vh=typeof WeakMap=="function"?WeakMap:Map,sl=0,pl=null,P=null,el=0,rl=0,bt=null,xe=!1,ja=!1,Qc=!1,ue=0,Dl=0,ze=0,Fe=0,Xc=0,St=0,Ca=0,pn=null,ft=null,Lc=!1,ju=0,zd=0,Cu=1/0,_u=null,Te=null,Ll=0,Ee=null,_a=null,ie=0,Zc=0,Vc=null,Td=null,bn=0,Kc=null;function xt(){return(sl&2)!==0&&el!==0?el&-el:x.T!==null?Fc():Yf()}function Ed(){if(St===0)if((el&536870912)===0||nl){var l=Nn;Nn<<=1,(Nn&3932160)===0&&(Nn=262144),St=l}else St=536870912;return l=vt.current,l!==null&&(l.flags|=32),St}function st(l,t,e){(l===pl&&(rl===2||rl===9)||l.cancelPendingCommit!==null)&&(Da(l,0),Ae(l,el,St,!1)),Ga(l,e),((sl&2)===0||l!==pl)&&(l===pl&&((sl&2)===0&&(Fe|=e),Dl===4&&Ae(l,el,St,!1)),Zt(l))}function Ad(l,t,e){if((sl&6)!==0)throw Error(o(327));var a=!e&&(t&127)===0&&(t&l.expiredLanes)===0||Ya(l,t),n=a?Sh(l,t):wc(l,t,!0),u=a;do{if(n===0){ja&&!a&&Ae(l,t,0,!1);break}else{if(e=l.current.alternate,u&&!ph(e)){n=wc(l,t,!1),u=!1;continue}if(n===2){if(u=t,l.errorRecoveryDisabledLanes&u)var i=0;else i=l.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;l:{var c=l;n=pn;var s=c.current.memoizedState.isDehydrated;if(s&&(Da(c,i).flags|=256),i=wc(c,i,!1),i!==2){if(Qc&&!s){c.errorRecoveryDisabledLanes|=u,Fe|=u,n=4;break l}u=ft,ft=n,u!==null&&(ft===null?ft=u:ft.push.apply(ft,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Da(l,0),Ae(l,t,0,!0);break}l:{switch(a=l,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ae(a,t,St,!xe);break l;case 2:ft=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=ju+300-rt(),10<n)){if(Ae(a,t,St,!xe),Yn(a,0,!0)!==0)break l;ie=t,a.timeoutHandle=er(jd.bind(null,a,e,ft,_u,Lc,t,St,Fe,Ca,xe,u,"Throttled",-0,0),n);break l}jd(a,e,ft,_u,Lc,t,St,Fe,Ca,xe,u,null,-0,0)}}break}while(!0);Zt(l)}function jd(l,t,e,a,n,u,i,c,s,m,S,E,g,p){if(l.timeoutHandle=-1,E=t.subtreeFlags,E&8192||(E&16785408)===16785408){E={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},pd(t,u,E);var Y=(u&62914560)===u?ju-rt():(u&4194048)===u?zd-rt():0;if(Y=ey(E,Y),Y!==null){ie=u,l.cancelPendingCommit=Y(Bd.bind(null,l,t,u,e,a,n,i,c,s,S,E,null,g,p)),Ae(l,u,i,!m);return}}Bd(l,t,u,e,a,n,i,c,s)}function ph(l){for(var t=l;;){var e=t.tag;if((e===0||e===11||e===15)&&t.flags&16384&&(e=t.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var n=e[a],u=n.getSnapshot;n=n.value;try{if(!mt(u(),n))return!1}catch{return!1}}if(e=t.child,t.subtreeFlags&16384&&e!==null)e.return=t,t=e;else{if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ae(l,t,e,a){t&=~Xc,t&=~Fe,l.suspendedLanes|=t,l.pingedLanes&=~t,a&&(l.warmLanes|=t),a=l.expirationTimes;for(var n=t;0<n;){var u=31-yt(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&Hf(l,e,t)}function Du(){return(sl&6)===0?(Sn(0),!1):!0}function Jc(){if(P!==null){if(rl===0)var l=P.return;else l=P,kt=Le=null,fc(l),ba=null,tn=0,l=P;for(;l!==null;)ad(l.alternate,l),l=l.return;P=null}}function Da(l,t){var e=l.timeoutHandle;e!==-1&&(l.timeoutHandle=-1,Yh(e)),e=l.cancelPendingCommit,e!==null&&(l.cancelPendingCommit=null,e()),ie=0,Jc(),pl=l,P=e=wt(l.current,null),el=t,rl=0,bt=null,xe=!1,ja=Ya(l,t),Qc=!1,Ca=St=Xc=Fe=ze=Dl=0,ft=pn=null,Lc=!1,(t&8)!==0&&(t|=t&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=t;0<a;){var n=31-yt(a),u=1<<n;t|=l[n],a&=~u}return ue=t,$n(),e}function Cd(l,t){$=null,x.H=on,t===pa||t===nu?(t=Ls(),rl=3):t===$i?(t=Ls(),rl=4):rl=t===Ec?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,P===null&&(Dl=1,pu(l,_t(t,l.current)))}function _d(){var l=vt.current;return l===null?!0:(el&4194048)===el?Rt===null:(el&62914560)===el||(el&536870912)!==0?l===Rt:!1}function Dd(){var l=x.H;return x.H=on,l===null?on:l}function Md(){var l=x.A;return x.A=gh,l}function Mu(){Dl=4,xe||(el&4194048)!==el&&vt.current!==null||(ja=!0),(ze&134217727)===0&&(Fe&134217727)===0||pl===null||Ae(pl,el,St,!1)}function wc(l,t,e){var a=sl;sl|=2;var n=Dd(),u=Md();(pl!==l||el!==t)&&(_u=null,Da(l,t)),t=!1;var i=Dl;l:do try{if(rl!==0&&P!==null){var c=P,s=bt;switch(rl){case 8:Jc(),i=6;break l;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var m=rl;if(rl=0,bt=null,Ma(l,c,s,m),e&&ja){i=0;break l}break;default:m=rl,rl=0,bt=null,Ma(l,c,s,m)}}bh(),i=Dl;break}catch(S){Cd(l,S)}while(!0);return t&&l.shellSuspendCounter++,kt=Le=null,sl=a,x.H=n,x.A=u,P===null&&(pl=null,el=0,$n()),i}function bh(){for(;P!==null;)Od(P)}function Sh(l,t){var e=sl;sl|=2;var a=Dd(),n=Md();pl!==l||el!==t?(_u=null,Cu=rt()+500,Da(l,t)):ja=Ya(l,t);l:do try{if(rl!==0&&P!==null){t=P;var u=bt;t:switch(rl){case 1:rl=0,bt=null,Ma(l,t,u,1);break;case 2:case 9:if(Qs(u)){rl=0,bt=null,Rd(t);break}t=function(){rl!==2&&rl!==9||pl!==l||(rl=7),Zt(l)},u.then(t,t);break l;case 3:rl=7;break l;case 4:rl=5;break l;case 7:Qs(u)?(rl=0,bt=null,Rd(t)):(rl=0,bt=null,Ma(l,t,u,7));break;case 5:var i=null;switch(P.tag){case 26:i=P.memoizedState;case 5:case 27:var c=P;if(i?vr(i):c.stateNode.complete){rl=0,bt=null;var s=c.sibling;if(s!==null)P=s;else{var m=c.return;m!==null?(P=m,Ou(m)):P=null}break t}}rl=0,bt=null,Ma(l,t,u,5);break;case 6:rl=0,bt=null,Ma(l,t,u,6);break;case 8:Jc(),Dl=6;break l;default:throw Error(o(462))}}xh();break}catch(S){Cd(l,S)}while(!0);return kt=Le=null,x.H=a,x.A=n,sl=e,P!==null?0:(pl=null,el=0,$n(),Dl)}function xh(){for(;P!==null&&!Vr();)Od(P)}function Od(l){var t=td(l.alternate,l,ue);l.memoizedProps=l.pendingProps,t===null?Ou(l):P=t}function Rd(l){var t=l,e=t.alternate;switch(t.tag){case 15:case 0:t=ko(e,t,t.pendingProps,t.type,void 0,el);break;case 11:t=ko(e,t,t.pendingProps,t.type.render,t.ref,el);break;case 5:fc(t);default:ad(e,t),t=P=Ds(t,ue),t=td(e,t,ue)}l.memoizedProps=l.pendingProps,t===null?Ou(l):P=t}function Ma(l,t,e,a){kt=Le=null,fc(t),ba=null,tn=0;var n=t.return;try{if(sh(l,n,t,e,el)){Dl=1,pu(l,_t(e,l.current)),P=null;return}}catch(u){if(n!==null)throw P=n,u;Dl=1,pu(l,_t(e,l.current)),P=null;return}t.flags&32768?(nl||a===1?l=!0:ja||(el&536870912)!==0?l=!1:(xe=l=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ud(t,l)):Ou(t)}function Ou(l){var t=l;do{if((t.flags&32768)!==0){Ud(t,xe);return}l=t.return;var e=rh(t.alternate,t,ue);if(e!==null){P=e;return}if(t=t.sibling,t!==null){P=t;return}P=t=l}while(t!==null);Dl===0&&(Dl=5)}function Ud(l,t){do{var e=hh(l.alternate,l);if(e!==null){e.flags&=32767,P=e;return}if(e=l.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!t&&(l=l.sibling,l!==null)){P=l;return}P=l=e}while(l!==null);Dl=6,P=null}function Bd(l,t,e,a,n,u,i,c,s){l.cancelPendingCommit=null;do Ru();while(Ll!==0);if((sl&6)!==0)throw Error(o(327));if(t!==null){if(t===l.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Hi,l0(l,e,u,i,c,s),l===pl&&(P=pl=null,el=0),_a=t,Ee=l,ie=e,Zc=u,Vc=n,Td=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Ah(Bn,function(){return Gd(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=x.T,x.T=null,n=C.p,C.p=2,i=sl,sl|=4;try{yh(l,t,e)}finally{sl=i,C.p=n,x.T=a}}Ll=1,Hd(),Nd(),qd()}}function Hd(){if(Ll===1){Ll=0;var l=Ee,t=_a,e=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||e){e=x.T,x.T=null;var a=C.p;C.p=2;var n=sl;sl|=4;try{md(t,l);var u=uf,i=Ss(l.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&bs(c.ownerDocument.documentElement,c)){if(s!==null&&Mi(c)){var m=s.start,S=s.end;if(S===void 0&&(S=m),"selectionStart"in c)c.selectionStart=m,c.selectionEnd=Math.min(S,c.value.length);else{var E=c.ownerDocument||document,g=E&&E.defaultView||window;if(g.getSelection){var p=g.getSelection(),Y=c.textContent.length,K=Math.min(s.start,Y),vl=s.end===void 0?K:Math.min(s.end,Y);!p.extend&&K>vl&&(i=vl,vl=K,K=i);var h=ps(c,K),d=ps(c,vl);if(h&&d&&(p.rangeCount!==1||p.anchorNode!==h.node||p.anchorOffset!==h.offset||p.focusNode!==d.node||p.focusOffset!==d.offset)){var y=E.createRange();y.setStart(h.node,h.offset),p.removeAllRanges(),K>vl?(p.addRange(y),p.extend(d.node,d.offset)):(y.setEnd(d.node,d.offset),p.addRange(y))}}}}for(E=[],p=c;p=p.parentNode;)p.nodeType===1&&E.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<E.length;c++){var T=E[c];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Vu=!!nf,uf=nf=null}finally{sl=n,C.p=a,x.T=e}}l.current=t,Ll=2}}function Nd(){if(Ll===2){Ll=0;var l=Ee,t=_a,e=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||e){e=x.T,x.T=null;var a=C.p;C.p=2;var n=sl;sl|=4;try{od(l,t.alternate,t)}finally{sl=n,C.p=a,x.T=e}}Ll=3}}function qd(){if(Ll===4||Ll===3){Ll=0,Kr();var l=Ee,t=_a,e=ie,a=Td;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ll=5:(Ll=0,_a=Ee=null,Yd(l,l.pendingLanes));var n=l.pendingLanes;if(n===0&&(Te=null),di(e),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(qa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=x.T,n=C.p,C.p=2,x.T=null;try{for(var u=l.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{x.T=t,C.p=n}}(ie&3)!==0&&Ru(),Zt(l),n=l.pendingLanes,(e&261930)!==0&&(n&42)!==0?l===Kc?bn++:(bn=0,Kc=l):bn=0,Sn(0)}}function Yd(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,Pa(t)))}function Ru(){return Hd(),Nd(),qd(),Gd()}function Gd(){if(Ll!==5)return!1;var l=Ee,t=Zc;Zc=0;var e=di(ie),a=x.T,n=C.p;try{C.p=32>e?32:e,x.T=null,e=Vc,Vc=null;var u=Ee,i=ie;if(Ll=0,_a=Ee=null,ie=0,(sl&6)!==0)throw Error(o(331));var c=sl;if(sl|=4,Sd(u.current),vd(u,u.current,i,e),sl=c,Sn(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(qa,u)}catch{}return!0}finally{C.p=n,x.T=a,Yd(l,t)}}function Qd(l,t,e){t=_t(e,t),t=Tc(l.stateNode,t,2),l=ve(l,t,2),l!==null&&(Ga(l,2),Zt(l))}function hl(l,t,e){if(l.tag===3)Qd(l,l,e);else for(;t!==null;){if(t.tag===3){Qd(t,l,e);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Te===null||!Te.has(a))){l=_t(e,l),e=Xo(2),a=ve(t,e,2),a!==null&&(Lo(e,a,t,l),Ga(a,2),Zt(a));break}}t=t.return}}function Wc(l,t,e){var a=l.pingCache;if(a===null){a=l.pingCache=new vh;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(e)||(Qc=!0,n.add(e),l=zh.bind(null,l,t,e),t.then(l,l))}function zh(l,t,e){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,pl===l&&(el&e)===e&&(Dl===4||Dl===3&&(el&62914560)===el&&300>rt()-ju?(sl&2)===0&&Da(l,0):Xc|=e,Ca===el&&(Ca=0)),Zt(l)}function Xd(l,t){t===0&&(t=Bf()),l=Ge(l,t),l!==null&&(Ga(l,t),Zt(l))}function Th(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),Xd(l,e)}function Eh(l,t){var e=0;switch(l.tag){case 31:case 13:var a=l.stateNode,n=l.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Xd(l,e)}function Ah(l,t){return ci(l,t)}var Uu=null,Oa=null,kc=!1,Bu=!1,$c=!1,je=0;function Zt(l){l!==Oa&&l.next===null&&(Oa===null?Uu=Oa=l:Oa=Oa.next=l),Bu=!0,kc||(kc=!0,Ch())}function Sn(l,t){if(!$c&&Bu){$c=!0;do for(var e=!1,a=Uu;a!==null;){if(l!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-yt(42|l)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,Kd(a,u))}else u=el,u=Yn(a,a===pl?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ya(a,u)||(e=!0,Kd(a,u));a=a.next}while(e);$c=!1}}function jh(){Ld()}function Ld(){Bu=kc=!1;var l=0;je!==0&&qh()&&(l=je);for(var t=rt(),e=null,a=Uu;a!==null;){var n=a.next,u=Zd(a,t);u===0?(a.next=null,e===null?Uu=n:e.next=n,n===null&&(Oa=e)):(e=a,(l!==0||(u&3)!==0)&&(Bu=!0)),a=n}Ll!==0&&Ll!==5||Sn(l),je!==0&&(je=0)}function Zd(l,t){for(var e=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,u=l.pendingLanes&-62914561;0<u;){var i=31-yt(u),c=1<<i,s=n[i];s===-1?((c&e)===0||(c&a)!==0)&&(n[i]=Pr(c,t)):s<=t&&(l.expiredLanes|=c),u&=~c}if(t=pl,e=el,e=Yn(l,l===t?e:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a=l.callbackNode,e===0||l===t&&(rl===2||rl===9)||l.cancelPendingCommit!==null)return a!==null&&a!==null&&fi(a),l.callbackNode=null,l.callbackPriority=0;if((e&3)===0||Ya(l,e)){if(t=e&-e,t===l.callbackPriority)return t;switch(a!==null&&fi(a),di(e)){case 2:case 8:e=Rf;break;case 32:e=Bn;break;case 268435456:e=Uf;break;default:e=Bn}return a=Vd.bind(null,l),e=ci(e,a),l.callbackPriority=t,l.callbackNode=e,t}return a!==null&&a!==null&&fi(a),l.callbackPriority=2,l.callbackNode=null,2}function Vd(l,t){if(Ll!==0&&Ll!==5)return l.callbackNode=null,l.callbackPriority=0,null;var e=l.callbackNode;if(Ru()&&l.callbackNode!==e)return null;var a=el;return a=Yn(l,l===pl?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(Ad(l,a,t),Zd(l,rt()),l.callbackNode!=null&&l.callbackNode===e?Vd.bind(null,l):null)}function Kd(l,t){if(Ru())return null;Ad(l,t,!0)}function Ch(){Gh(function(){(sl&6)!==0?ci(Of,jh):Ld()})}function Fc(){if(je===0){var l=ga;l===0&&(l=Hn,Hn<<=1,(Hn&261888)===0&&(Hn=256)),je=l}return je}function Jd(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Ln(""+l)}function wd(l,t){var e=t.ownerDocument.createElement("input");return e.name=t.name,e.value=t.value,l.id&&e.setAttribute("form",l.id),t.parentNode.insertBefore(e,t),l=new FormData(l),e.parentNode.removeChild(e),l}function _h(l,t,e,a,n){if(t==="submit"&&e&&e.stateNode===n){var u=Jd((n[at]||null).action),i=a.submitter;i&&(t=(t=i[at]||null)?Jd(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var c=new Jn("action","action",null,a,n);l.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(je!==0){var s=i?wd(n,i):new FormData(n);vc(e,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?wd(n,i):new FormData(n),vc(e,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var Ic=0;Ic<Bi.length;Ic++){var Pc=Bi[Ic],Dh=Pc.toLowerCase(),Mh=Pc[0].toUpperCase()+Pc.slice(1);Nt(Dh,"on"+Mh)}Nt(Ts,"onAnimationEnd"),Nt(Es,"onAnimationIteration"),Nt(As,"onAnimationStart"),Nt("dblclick","onDoubleClick"),Nt("focusin","onFocus"),Nt("focusout","onBlur"),Nt(J0,"onTransitionRun"),Nt(w0,"onTransitionStart"),Nt(W0,"onTransitionCancel"),Nt(js,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),He("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),He("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),He("onBeforeInput",["compositionend","keypress","textInput","paste"]),He("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xn="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(" "),Oh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xn));function Wd(l,t){t=(t&4)!==0;for(var e=0;e<l.length;e++){var a=l[e],n=a.event;a=a.listeners;l:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,m=c.currentTarget;if(c=c.listener,s!==u&&n.isPropagationStopped())break l;u=c,n.currentTarget=m;try{u(n)}catch(S){kn(S)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,m=c.currentTarget,c=c.listener,s!==u&&n.isPropagationStopped())break l;u=c,n.currentTarget=m;try{u(n)}catch(S){kn(S)}n.currentTarget=null,u=s}}}}function ll(l,t){var e=t[ri];e===void 0&&(e=t[ri]=new Set);var a=l+"__bubble";e.has(a)||(kd(t,l,2,!1),e.add(a))}function lf(l,t,e){var a=0;t&&(a|=4),kd(e,l,a,t)}var Hu="_reactListening"+Math.random().toString(36).slice(2);function tf(l){if(!l[Hu]){l[Hu]=!0,Xf.forEach(function(e){e!=="selectionchange"&&(Oh.has(e)||lf(e,!1,l),lf(e,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[Hu]||(t[Hu]=!0,lf("selectionchange",!1,t))}}function kd(l,t,e,a){switch(Er(t)){case 2:var n=uy;break;case 8:n=iy;break;default:n=vf}e=n.bind(null,t,e,l),n=void 0,!xi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?l.addEventListener(t,e,{capture:!0,passive:n}):l.addEventListener(t,e,!0):n!==void 0?l.addEventListener(t,e,{passive:n}):l.addEventListener(t,e,!1)}function ef(l,t,e,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)l:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Pe(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue l}c=c.parentNode}}a=a.return}Pf(function(){var m=u,S=bi(e),E=[];l:{var g=Cs.get(l);if(g!==void 0){var p=Jn,Y=l;switch(l){case"keypress":if(Vn(e)===0)break l;case"keydown":case"keyup":p=E0;break;case"focusin":Y="focus",p=Ai;break;case"focusout":Y="blur",p=Ai;break;case"beforeblur":case"afterblur":p=Ai;break;case"click":if(e.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=es;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=r0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=C0;break;case Ts:case Es:case As:p=m0;break;case js:p=D0;break;case"scroll":case"scrollend":p=o0;break;case"wheel":p=O0;break;case"copy":case"cut":case"paste":p=v0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ns;break;case"toggle":case"beforetoggle":p=U0}var K=(t&4)!==0,vl=!K&&(l==="scroll"||l==="scrollend"),h=K?g!==null?g+"Capture":null:g;K=[];for(var d=m,y;d!==null;){var T=d;if(y=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||y===null||h===null||(T=La(d,h),T!=null&&K.push(zn(d,T,y))),vl)break;d=d.return}0<K.length&&(g=new p(g,Y,null,e,S),E.push({event:g,listeners:K}))}}if((t&7)===0){l:{if(g=l==="mouseover"||l==="pointerover",p=l==="mouseout"||l==="pointerout",g&&e!==pi&&(Y=e.relatedTarget||e.fromElement)&&(Pe(Y)||Y[Ie]))break l;if((p||g)&&(g=S.window===S?S:(g=S.ownerDocument)?g.defaultView||g.parentWindow:window,p?(Y=e.relatedTarget||e.toElement,p=m,Y=Y?Pe(Y):null,Y!==null&&(vl=B(Y),K=Y.tag,Y!==vl||K!==5&&K!==27&&K!==6)&&(Y=null)):(p=null,Y=m),p!==Y)){if(K=es,T="onMouseLeave",h="onMouseEnter",d="mouse",(l==="pointerout"||l==="pointerover")&&(K=ns,T="onPointerLeave",h="onPointerEnter",d="pointer"),vl=p==null?g:Xa(p),y=Y==null?g:Xa(Y),g=new K(T,d+"leave",p,e,S),g.target=vl,g.relatedTarget=y,T=null,Pe(S)===m&&(K=new K(h,d+"enter",Y,e,S),K.target=y,K.relatedTarget=vl,T=K),vl=T,p&&Y)t:{for(K=Rh,h=p,d=Y,y=0,T=h;T;T=K(T))y++;T=0;for(var L=d;L;L=K(L))T++;for(;0<y-T;)h=K(h),y--;for(;0<T-y;)d=K(d),T--;for(;y--;){if(h===d||d!==null&&h===d.alternate){K=h;break t}h=K(h),d=K(d)}K=null}else K=null;p!==null&&$d(E,g,p,K,!1),Y!==null&&vl!==null&&$d(E,vl,Y,K,!0)}}l:{if(g=m?Xa(m):window,p=g.nodeName&&g.nodeName.toLowerCase(),p==="select"||p==="input"&&g.type==="file")var cl=rs;else if(os(g))if(hs)cl=Z0;else{cl=X0;var Q=Q0}else p=g.nodeName,!p||p.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?m&&vi(m.elementType)&&(cl=rs):cl=L0;if(cl&&(cl=cl(l,m))){ds(E,cl,e,S);break l}Q&&Q(l,g,m),l==="focusout"&&m&&g.type==="number"&&m.memoizedProps.value!=null&&gi(g,"number",g.value)}switch(Q=m?Xa(m):window,l){case"focusin":(os(Q)||Q.contentEditable==="true")&&(fa=Q,Oi=m,$a=null);break;case"focusout":$a=Oi=fa=null;break;case"mousedown":Ri=!0;break;case"contextmenu":case"mouseup":case"dragend":Ri=!1,xs(E,e,S);break;case"selectionchange":if(K0)break;case"keydown":case"keyup":xs(E,e,S)}var F;if(Ci)l:{switch(l){case"compositionstart":var al="onCompositionStart";break l;case"compositionend":al="onCompositionEnd";break l;case"compositionupdate":al="onCompositionUpdate";break l}al=void 0}else ca?fs(l,e)&&(al="onCompositionEnd"):l==="keydown"&&e.keyCode===229&&(al="onCompositionStart");al&&(us&&e.locale!=="ko"&&(ca||al!=="onCompositionStart"?al==="onCompositionEnd"&&ca&&(F=ls()):(oe=S,zi="value"in oe?oe.value:oe.textContent,ca=!0)),Q=Nu(m,al),0<Q.length&&(al=new as(al,l,null,e,S),E.push({event:al,listeners:Q}),F?al.data=F:(F=ss(e),F!==null&&(al.data=F)))),(F=H0?N0(l,e):q0(l,e))&&(al=Nu(m,"onBeforeInput"),0<al.length&&(Q=new as("onBeforeInput","beforeinput",null,e,S),E.push({event:Q,listeners:al}),Q.data=F)),_h(E,l,m,e,S)}Wd(E,t)})}function zn(l,t,e){return{instance:l,listener:t,currentTarget:e}}function Nu(l,t){for(var e=t+"Capture",a=[];l!==null;){var n=l,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=La(l,e),n!=null&&a.unshift(zn(l,n,u)),n=La(l,t),n!=null&&a.push(zn(l,n,u))),l.tag===3)return a;l=l.return}return[]}function Rh(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function $d(l,t,e,a,n){for(var u=t._reactName,i=[];e!==null&&e!==a;){var c=e,s=c.alternate,m=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||m===null||(s=m,n?(m=La(e,u),m!=null&&i.unshift(zn(e,m,s))):n||(m=La(e,u),m!=null&&i.push(zn(e,m,s)))),e=e.return}i.length!==0&&l.push({event:t,listeners:i})}var Uh=/\r\n?/g,Bh=/\u0000|\uFFFD/g;function Fd(l){return(typeof l=="string"?l:""+l).replace(Uh,`
|
|
49
|
+
`).replace(Bh,"")}function Id(l,t){return t=Fd(t),Fd(l)===t}function gl(l,t,e,a,n,u){switch(e){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||na(l,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&na(l,""+a);break;case"className":Qn(l,"class",a);break;case"tabIndex":Qn(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Qn(l,e,a);break;case"style":Ff(l,a,u);break;case"data":if(t!=="object"){Qn(l,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||e!=="href")){l.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Ln(""+a),l.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(e,"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"&&(e==="formAction"?(t!=="input"&&gl(l,t,"name",n.name,n,null),gl(l,t,"formEncType",n.formEncType,n,null),gl(l,t,"formMethod",n.formMethod,n,null),gl(l,t,"formTarget",n.formTarget,n,null)):(gl(l,t,"encType",n.encType,n,null),gl(l,t,"method",n.method,n,null),gl(l,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Ln(""+a),l.setAttribute(e,a);break;case"onClick":a!=null&&(l.onclick=Kt);break;case"onScroll":a!=null&&ll("scroll",l);break;case"onScrollEnd":a!=null&&ll("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));l.innerHTML=e}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.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"){l.removeAttribute("xlink:href");break}e=Ln(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);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"?l.setAttribute(e,""+a):l.removeAttribute(e);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"?l.setAttribute(e,""):l.removeAttribute(e);break;case"capture":case"download":a===!0?l.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,a):l.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(e,a):l.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(e):l.setAttribute(e,a);break;case"popover":ll("beforetoggle",l),ll("toggle",l),Gn(l,"popover",a);break;case"xlinkActuate":Vt(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Gn(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=f0.get(e)||e,Gn(l,e,a))}}function af(l,t,e,a,n,u){switch(e){case"style":Ff(l,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));l.innerHTML=e}}break;case"children":typeof a=="string"?na(l,a):(typeof a=="number"||typeof a=="bigint")&&na(l,""+a);break;case"onScroll":a!=null&&ll("scroll",l);break;case"onScrollEnd":a!=null&&ll("scrollend",l);break;case"onClick":a!=null&&(l.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lf.hasOwnProperty(e))l:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),t=e.slice(2,n?e.length-7:void 0),u=l[at]||null,u=u!=null?u[e]:null,typeof u=="function"&&l.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in l?l[e]=null:l.hasAttribute(e)&&l.removeAttribute(e)),l.addEventListener(t,a,n);break l}e in l?l[e]=a:a===!0?l.setAttribute(e,""):Gn(l,e,a)}}}function Il(l,t,e){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ll("error",l),ll("load",l);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:gl(l,t,u,i,e,null)}}n&&gl(l,t,"srcSet",e.srcSet,e,null),a&&gl(l,t,"src",e.src,e,null);return;case"input":ll("invalid",l);var c=u=i=n=null,s=null,m=null;for(a in e)if(e.hasOwnProperty(a)){var S=e[a];if(S!=null)switch(a){case"name":n=S;break;case"type":i=S;break;case"checked":s=S;break;case"defaultChecked":m=S;break;case"value":u=S;break;case"defaultValue":c=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(137,t));break;default:gl(l,t,a,S,e,null)}}wf(l,u,c,s,m,i,n,!1);return;case"select":ll("invalid",l),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(c=e[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:gl(l,t,n,c,e,null)}t=u,e=i,l.multiple=!!a,t!=null?aa(l,!!a,t,!1):e!=null&&aa(l,!!a,e,!0);return;case"textarea":ll("invalid",l),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:gl(l,t,i,c,e,null)}kf(l,a,n,u);return;case"option":for(s in e)if(e.hasOwnProperty(s)&&(a=e[s],a!=null))switch(s){case"selected":l.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:gl(l,t,s,a,e,null)}return;case"dialog":ll("beforetoggle",l),ll("toggle",l),ll("cancel",l),ll("close",l);break;case"iframe":case"object":ll("load",l);break;case"video":case"audio":for(a=0;a<xn.length;a++)ll(xn[a],l);break;case"image":ll("error",l),ll("load",l);break;case"details":ll("toggle",l);break;case"embed":case"source":case"link":ll("error",l),ll("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(m in e)if(e.hasOwnProperty(m)&&(a=e[m],a!=null))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:gl(l,t,m,a,e,null)}return;default:if(vi(t)){for(S in e)e.hasOwnProperty(S)&&(a=e[S],a!==void 0&&af(l,t,S,a,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(a=e[c],a!=null&&gl(l,t,c,a,e,null))}function Hh(l,t,e,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,i=null,c=null,s=null,m=null,S=null;for(p in e){var E=e[p];if(e.hasOwnProperty(p)&&E!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=E;default:a.hasOwnProperty(p)||gl(l,t,p,null,a,E)}}for(var g in a){var p=a[g];if(E=e[g],a.hasOwnProperty(g)&&(p!=null||E!=null))switch(g){case"type":u=p;break;case"name":n=p;break;case"checked":m=p;break;case"defaultChecked":S=p;break;case"value":i=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(137,t));break;default:p!==E&&gl(l,t,g,p,a,E)}}mi(l,i,c,s,m,S,u,n);return;case"select":p=i=c=g=null;for(u in e)if(s=e[u],e.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":p=s;default:a.hasOwnProperty(u)||gl(l,t,u,null,a,s)}for(n in a)if(u=a[n],s=e[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":g=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==s&&gl(l,t,n,u,a,s)}t=c,e=i,a=p,g!=null?aa(l,!!e,g,!1):!!a!=!!e&&(t!=null?aa(l,!!e,t,!0):aa(l,!!e,e?[]:"",!1));return;case"textarea":p=g=null;for(c in e)if(n=e[c],e.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:gl(l,t,c,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":g=n;break;case"defaultValue":p=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&gl(l,t,i,n,a,u)}Wf(l,g,p);return;case"option":for(var Y in e)if(g=e[Y],e.hasOwnProperty(Y)&&g!=null&&!a.hasOwnProperty(Y))switch(Y){case"selected":l.selected=!1;break;default:gl(l,t,Y,null,a,g)}for(s in a)if(g=a[s],p=e[s],a.hasOwnProperty(s)&&g!==p&&(g!=null||p!=null))switch(s){case"selected":l.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:gl(l,t,s,g,a,p)}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 K in e)g=e[K],e.hasOwnProperty(K)&&g!=null&&!a.hasOwnProperty(K)&&gl(l,t,K,null,a,g);for(m in a)if(g=a[m],p=e[m],a.hasOwnProperty(m)&&g!==p&&(g!=null||p!=null))switch(m){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(137,t));break;default:gl(l,t,m,g,a,p)}return;default:if(vi(t)){for(var vl in e)g=e[vl],e.hasOwnProperty(vl)&&g!==void 0&&!a.hasOwnProperty(vl)&&af(l,t,vl,void 0,a,g);for(S in a)g=a[S],p=e[S],!a.hasOwnProperty(S)||g===p||g===void 0&&p===void 0||af(l,t,S,g,a,p);return}}for(var h in e)g=e[h],e.hasOwnProperty(h)&&g!=null&&!a.hasOwnProperty(h)&&gl(l,t,h,null,a,g);for(E in a)g=a[E],p=e[E],!a.hasOwnProperty(E)||g===p||g==null&&p==null||gl(l,t,E,g,a,p)}function Pd(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nh(){if(typeof performance.getEntriesByType=="function"){for(var l=0,t=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&Pd(i)){for(i=0,c=n.responseEnd,a+=1;a<e.length;a++){var s=e[a],m=s.startTime;if(m>c)break;var S=s.transferSize,E=s.initiatorType;S&&Pd(E)&&(s=s.responseEnd,i+=S*(s<c?1:(c-m)/(s-m)))}if(--a,t+=8*(u+i)/(n.duration/1e3),l++,10<l)break}}if(0<l)return t/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var nf=null,uf=null;function qu(l){return l.nodeType===9?l:l.ownerDocument}function lr(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function tr(l,t){if(l===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&t==="foreignObject"?0:l}function cf(l,t){return l==="textarea"||l==="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 ff=null;function qh(){var l=window.event;return l&&l.type==="popstate"?l===ff?!1:(ff=l,!0):(ff=null,!1)}var er=typeof setTimeout=="function"?setTimeout:void 0,Yh=typeof clearTimeout=="function"?clearTimeout:void 0,ar=typeof Promise=="function"?Promise:void 0,Gh=typeof queueMicrotask=="function"?queueMicrotask:typeof ar<"u"?function(l){return ar.resolve(null).then(l).catch(Qh)}:er;function Qh(l){setTimeout(function(){throw l})}function Ce(l){return l==="head"}function nr(l,t){var e=t,a=0;do{var n=e.nextSibling;if(l.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){l.removeChild(n),Ha(t);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")Tn(l.ownerDocument.documentElement);else if(e==="head"){e=l.ownerDocument.head,Tn(e);for(var u=e.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Qa]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&Tn(l.ownerDocument.body);e=n}while(e);Ha(t)}function ur(l,t){var e=l;l=0;do{var a=e.nextSibling;if(e.nodeType===1?t?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(t?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(l===0)break;l--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||l++;e=a}while(e)}function sf(l){var t=l.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var e=t;switch(t=t.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":sf(e),hi(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}l.removeChild(e)}}function Xh(l,t,e,a){for(;l.nodeType===1;){var n=e;if(l.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[Qa])switch(t){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(u=l.getAttribute("rel"),u==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(u!==n.rel||l.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||l.getAttribute("title")!==(n.title==null?null:n.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(u=l.getAttribute("src"),(u!==(n.src==null?null:n.src)||l.getAttribute("type")!==(n.type==null?null:n.type)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&l.getAttribute("name")===u)return l}else return l;if(l=Ut(l.nextSibling),l===null)break}return null}function Lh(l,t,e){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=Ut(l.nextSibling),l===null))return null;return l}function ir(l,t){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=Ut(l.nextSibling),l===null))return null;return l}function of(l){return l.data==="$?"||l.data==="$~"}function df(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function Zh(l,t){var e=l.ownerDocument;if(l.data==="$~")l._reactRetry=t;else if(l.data!=="$?"||e.readyState!=="loading")t();else{var a=function(){t(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}function Ut(l){for(;l!=null;l=l.nextSibling){var t=l.nodeType;if(t===1||t===3)break;if(t===8){if(t=l.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return l}var rf=null;function cr(l){l=l.nextSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="/$"||e==="/&"){if(t===0)return Ut(l.nextSibling);t--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||t++}l=l.nextSibling}return null}function fr(l){l=l.previousSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(t===0)return l;t--}else e!=="/$"&&e!=="/&"||t++}l=l.previousSibling}return null}function sr(l,t,e){switch(t=qu(e),l){case"html":if(l=t.documentElement,!l)throw Error(o(452));return l;case"head":if(l=t.head,!l)throw Error(o(453));return l;case"body":if(l=t.body,!l)throw Error(o(454));return l;default:throw Error(o(451))}}function Tn(l){for(var t=l.attributes;t.length;)l.removeAttributeNode(t[0]);hi(l)}var Bt=new Map,or=new Set;function Yu(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var ce=C.d;C.d={f:Vh,r:Kh,D:Jh,C:wh,L:Wh,m:kh,X:Fh,S:$h,M:Ih};function Vh(){var l=ce.f(),t=Du();return l||t}function Kh(l){var t=la(l);t!==null&&t.tag===5&&t.type==="form"?Co(t):ce.r(l)}var Ra=typeof document>"u"?null:document;function dr(l,t,e){var a=Ra;if(a&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+l+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),or.has(n)||(or.add(n),l={rel:l,crossOrigin:e,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Il(t,"link",l),Vl(t),a.head.appendChild(t)))}}function Jh(l){ce.D(l),dr("dns-prefetch",l,null)}function wh(l,t){ce.C(l,t),dr("preconnect",l,t)}function Wh(l,t,e){ce.L(l,t,e);var a=Ra;if(a&&l&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+jt(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+jt(e.imageSizes)+'"]')):n+='[href="'+jt(l)+'"]';var u=n;switch(t){case"style":u=Ua(l);break;case"script":u=Ba(l)}Bt.has(u)||(l=H({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),Bt.set(u,l),a.querySelector(n)!==null||t==="style"&&a.querySelector(En(u))||t==="script"&&a.querySelector(An(u))||(t=a.createElement("link"),Il(t,"link",l),Vl(t),a.head.appendChild(t)))}}function kh(l,t){ce.m(l,t);var e=Ra;if(e&&l){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(l)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ba(l)}if(!Bt.has(u)&&(l=H({rel:"modulepreload",href:l},t),Bt.set(u,l),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(An(u)))return}a=e.createElement("link"),Il(a,"link",l),Vl(a),e.head.appendChild(a)}}}function $h(l,t,e){ce.S(l,t,e);var a=Ra;if(a&&l){var n=ta(a).hoistableStyles,u=Ua(l);t=t||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(En(u)))c.loading=5;else{l=H({rel:"stylesheet",href:l,"data-precedence":t},e),(e=Bt.get(u))&&hf(l,e);var s=i=a.createElement("link");Vl(s),Il(s,"link",l),s._p=new Promise(function(m,S){s.onload=m,s.onerror=S}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Gu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function Fh(l,t){ce.X(l,t);var e=Ra;if(e&&l){var a=ta(e).hoistableScripts,n=Ba(l),u=a.get(n);u||(u=e.querySelector(An(n)),u||(l=H({src:l,async:!0},t),(t=Bt.get(n))&&yf(l,t),u=e.createElement("script"),Vl(u),Il(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ih(l,t){ce.M(l,t);var e=Ra;if(e&&l){var a=ta(e).hoistableScripts,n=Ba(l),u=a.get(n);u||(u=e.querySelector(An(n)),u||(l=H({src:l,async:!0,type:"module"},t),(t=Bt.get(n))&&yf(l,t),u=e.createElement("script"),Vl(u),Il(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function rr(l,t,e,a){var n=(n=W.current)?Yu(n):null;if(!n)throw Error(o(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(t=Ua(e.href),e=ta(n).hoistableStyles,a=e.get(t),a||(a={type:"style",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=Ua(e.href);var u=ta(n).hoistableStyles,i=u.get(l);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(l,i),(u=n.querySelector(En(l)))&&!u._p&&(i.instance=u,i.state.loading=5),Bt.has(l)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},Bt.set(l,e),u||Ph(n,l,e,i.state))),t&&a===null)throw Error(o(528,""));return i}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ba(e),e=ta(n).hoistableScripts,a=e.get(t),a||(a={type:"script",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,l))}}function Ua(l){return'href="'+jt(l)+'"'}function En(l){return'link[rel="stylesheet"]['+l+"]"}function hr(l){return H({},l,{"data-precedence":l.precedence,precedence:null})}function Ph(l,t,e,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Il(t,"link",e),Vl(t),l.head.appendChild(t))}function Ba(l){return'[src="'+jt(l)+'"]'}function An(l){return"script[async]"+l}function yr(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+jt(e.href)+'"]');if(a)return t.instance=a,Vl(a),a;var n=H({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Vl(a),Il(a,"style",n),Gu(a,e.precedence,l),t.instance=a;case"stylesheet":n=Ua(e.href);var u=l.querySelector(En(n));if(u)return t.state.loading|=4,t.instance=u,Vl(u),u;a=hr(e),(n=Bt.get(n))&&hf(a,n),u=(l.ownerDocument||l).createElement("link"),Vl(u);var i=u;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Il(u,"link",a),t.state.loading|=4,Gu(u,e.precedence,l),t.instance=u;case"script":return u=Ba(e.src),(n=l.querySelector(An(u)))?(t.instance=n,Vl(n),n):(a=e,(n=Bt.get(u))&&(a=H({},e),yf(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Vl(n),Il(n,"link",a),l.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Gu(a,e.precedence,l));return t.instance}function Gu(l,t,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===t)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(l,u.nextSibling):(t=e.nodeType===9?e.head:e,t.insertBefore(l,t.firstChild))}function hf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function yf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var Qu=null;function mr(l,t,e){if(Qu===null){var a=new Map,n=Qu=new Map;n.set(e,a)}else n=Qu,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(l))return a;for(a.set(l,null),e=e.getElementsByTagName(l),n=0;n<e.length;n++){var u=e[n];if(!(u[Qa]||u[Wl]||l==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=l+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function gr(l,t,e){l=l.ownerDocument||l,l.head.insertBefore(e,t==="title"?l.querySelector("head > title"):null)}function ly(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){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 l=t.disabled,typeof t.precedence=="string"&&l==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 vr(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function ty(l,t,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=Ua(a.href),u=t.querySelector(En(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Xu.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,Vl(u);return}u=t.ownerDocument||t,a=hr(a),(n=Bt.get(n))&&hf(a,n),u=u.createElement("link"),Vl(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Il(u,"link",a),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=Xu.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var mf=0;function ey(l,t){return l.stylesheets&&l.count===0&&Zu(l,l.stylesheets),0<l.count||0<l.imgCount?function(e){var a=setTimeout(function(){if(l.stylesheets&&Zu(l,l.stylesheets),l.unsuspend){var u=l.unsuspend;l.unsuspend=null,u()}},6e4+t);0<l.imgBytes&&mf===0&&(mf=62500*Nh());var n=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Zu(l,l.stylesheets),l.unsuspend)){var u=l.unsuspend;l.unsuspend=null,u()}},(l.imgBytes>mf?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zu(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Lu=null;function Zu(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Lu=new Map,t.forEach(ay,l),Lu=null,Xu.call(l))}function ay(l,t){if(!(t.state.loading&4)){var e=Lu.get(l);if(e)var a=e.get(null);else{e=new Map,Lu.set(l,e);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=Xu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(n,l.firstChild)),t.state.loading|=4}}var jn={$$typeof:Al,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function ny(l,t,e,a,n,u,i,c,s){this.tag=1,this.containerInfo=l,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=si(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=si(0),this.hiddenUpdates=si(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function pr(l,t,e,a,n,u,i,c,s,m,S,E){return l=new ny(l,t,e,i,s,m,S,E,c),t=1,u===!0&&(t|=24),u=gt(3,null,null,t),l.current=u,u.stateNode=l,t=wi(),t.refCount++,l.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:t},Fi(u),l}function br(l){return l?(l=da,l):da}function Sr(l,t,e,a,n,u){n=br(n),a.context===null?a.context=n:a.pendingContext=n,a=ge(t),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=ve(l,a,t),e!==null&&(st(e,l,t),an(e,l,t))}function xr(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var e=l.retryLane;l.retryLane=e!==0&&e<t?e:t}}function gf(l,t){xr(l,t),(l=l.alternate)&&xr(l,t)}function zr(l){if(l.tag===13||l.tag===31){var t=Ge(l,67108864);t!==null&&st(t,l,67108864),gf(l,67108864)}}function Tr(l){if(l.tag===13||l.tag===31){var t=xt();t=oi(t);var e=Ge(l,t);e!==null&&st(e,l,t),gf(l,t)}}var Vu=!0;function uy(l,t,e,a){var n=x.T;x.T=null;var u=C.p;try{C.p=2,vf(l,t,e,a)}finally{C.p=u,x.T=n}}function iy(l,t,e,a){var n=x.T;x.T=null;var u=C.p;try{C.p=8,vf(l,t,e,a)}finally{C.p=u,x.T=n}}function vf(l,t,e,a){if(Vu){var n=pf(a);if(n===null)ef(l,t,a,Ku,e),Ar(l,a);else if(fy(n,l,t,e,a))a.stopPropagation();else if(Ar(l,a),t&4&&-1<cy.indexOf(l)){for(;n!==null;){var u=la(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Be(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-yt(i);c.entanglements[1]|=s,i&=~s}Zt(u),(sl&6)===0&&(Cu=rt()+500,Sn(0))}}break;case 31:case 13:c=Ge(u,2),c!==null&&st(c,u,2),Du(),gf(u,2)}if(u=pf(a),u===null&&ef(l,t,a,Ku,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else ef(l,t,a,null,e)}}function pf(l){return l=bi(l),bf(l)}var Ku=null;function bf(l){if(Ku=null,l=Pe(l),l!==null){var t=B(l);if(t===null)l=null;else{var e=t.tag;if(e===13){if(l=O(t),l!==null)return l;l=null}else if(e===31){if(l=R(t),l!==null)return l;l=null}else if(e===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;l=null}else t!==l&&(l=null)}}return Ku=l,null}function Er(l){switch(l){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(Jr()){case Of:return 2;case Rf:return 8;case Bn:case wr:return 32;case Uf:return 268435456;default:return 32}default:return 32}}var Sf=!1,_e=null,De=null,Me=null,Cn=new Map,_n=new Map,Oe=[],cy="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 Ar(l,t){switch(l){case"focusin":case"focusout":_e=null;break;case"dragenter":case"dragleave":De=null;break;case"mouseover":case"mouseout":Me=null;break;case"pointerover":case"pointerout":Cn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_n.delete(t.pointerId)}}function Dn(l,t,e,a,n,u){return l===null||l.nativeEvent!==u?(l={blockedOn:t,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=la(t),t!==null&&zr(t)),l):(l.eventSystemFlags|=a,t=l.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),l)}function fy(l,t,e,a,n){switch(t){case"focusin":return _e=Dn(_e,l,t,e,a,n),!0;case"dragenter":return De=Dn(De,l,t,e,a,n),!0;case"mouseover":return Me=Dn(Me,l,t,e,a,n),!0;case"pointerover":var u=n.pointerId;return Cn.set(u,Dn(Cn.get(u)||null,l,t,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,_n.set(u,Dn(_n.get(u)||null,l,t,e,a,n)),!0}return!1}function jr(l){var t=Pe(l.target);if(t!==null){var e=B(t);if(e!==null){if(t=e.tag,t===13){if(t=O(e),t!==null){l.blockedOn=t,Gf(l.priority,function(){Tr(e)});return}}else if(t===31){if(t=R(e),t!==null){l.blockedOn=t,Gf(l.priority,function(){Tr(e)});return}}else if(t===3&&e.stateNode.current.memoizedState.isDehydrated){l.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Ju(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var e=pf(l.nativeEvent);if(e===null){e=l.nativeEvent;var a=new e.constructor(e.type,e);pi=a,e.target.dispatchEvent(a),pi=null}else return t=la(e),t!==null&&zr(t),l.blockedOn=e,!1;t.shift()}return!0}function Cr(l,t,e){Ju(l)&&e.delete(t)}function sy(){Sf=!1,_e!==null&&Ju(_e)&&(_e=null),De!==null&&Ju(De)&&(De=null),Me!==null&&Ju(Me)&&(Me=null),Cn.forEach(Cr),_n.forEach(Cr)}function wu(l,t){l.blockedOn===t&&(l.blockedOn=null,Sf||(Sf=!0,b.unstable_scheduleCallback(b.unstable_NormalPriority,sy)))}var Wu=null;function _r(l){Wu!==l&&(Wu=l,b.unstable_scheduleCallback(b.unstable_NormalPriority,function(){Wu===l&&(Wu=null);for(var t=0;t<l.length;t+=3){var e=l[t],a=l[t+1],n=l[t+2];if(typeof a!="function"){if(bf(a||e)===null)continue;break}var u=la(e);u!==null&&(l.splice(t,3),t-=3,vc(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function Ha(l){function t(s){return wu(s,l)}_e!==null&&wu(_e,l),De!==null&&wu(De,l),Me!==null&&wu(Me,l),Cn.forEach(t),_n.forEach(t);for(var e=0;e<Oe.length;e++){var a=Oe[e];a.blockedOn===l&&(a.blockedOn=null)}for(;0<Oe.length&&(e=Oe[0],e.blockedOn===null);)jr(e),e.blockedOn===null&&Oe.shift();if(e=(l.ownerDocument||l).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[at]||null;if(typeof u=="function")i||_r(e);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[at]||null)c=i.formAction;else if(bf(n)!==null)continue}else c=i.action;typeof c=="function"?e[a+1]=c:(e.splice(a,3),a-=3),_r(e)}}}function Dr(){function l(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){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",l),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function xf(l){this._internalRoot=l}ku.prototype.render=xf.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(o(409));var e=t.current,a=xt();Sr(e,a,l,t,null,null)},ku.prototype.unmount=xf.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;Sr(l.current,2,null,l,null,null),Du(),t[Ie]=null}};function ku(l){this._internalRoot=l}ku.prototype.unstable_scheduleHydration=function(l){if(l){var t=Yf();l={blockedOn:null,target:l,priority:t};for(var e=0;e<Oe.length&&t!==0&&t<Oe[e].priority;e++);Oe.splice(e,0,l),e===0&&jr(l)}};var Mr=U.version;if(Mr!=="19.2.4")throw Error(o(527,Mr,"19.2.4"));C.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(o(188)):(l=Object.keys(l).join(","),Error(o(268,l)));return l=v(t),l=l!==null?G(l):null,l=l===null?null:l.stateNode,l};var oy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$u.isDisabled&&$u.supportsFiber)try{qa=$u.inject(oy),ht=$u}catch{}}return On.createRoot=function(l,t){if(!M(l))throw Error(o(299));var e=!1,a="",n=qo,u=Yo,i=Go;return t!=null&&(t.unstable_strictMode===!0&&(e=!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&&(i=t.onRecoverableError)),t=pr(l,1,!1,null,null,e,a,null,n,u,i,Dr),l[Ie]=t.current,tf(l),new xf(t)},On.hydrateRoot=function(l,t,e){if(!M(l))throw Error(o(299));var a=!1,n="",u=qo,i=Yo,c=Go,s=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(s=e.formState)),t=pr(l,1,!0,t,e??null,a,n,s,u,i,c,Dr),t.context=br(null),e=t.current,a=xt(),a=oi(a),n=ge(a),n.callback=null,ve(e,n,a),e=a,t.current.lanes=e,Ga(t,e),Zt(t),l[Ie]=t.current,tf(l),new ku(t)},On.version="19.2.4",On}var Qr;function Sy(){if(Qr)return Ef.exports;Qr=1;function b(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b)}catch(U){console.error(U)}}return b(),Ef.exports=by(),Ef.exports}var xy=Sy();function zy(b){const U=X.useRef(null),[j,o]=X.useState(!1),[M,B]=X.useState([]),O=X.useRef(void 0),R=X.useCallback(()=>{try{const v=new WebSocket(b);U.current=v,v.onopen=()=>o(!0),v.onmessage=G=>{try{const H=JSON.parse(G.data);B(tl=>[...tl.slice(-500),H])}catch{}},v.onclose=()=>{o(!1),O.current=setTimeout(R,3e3)},v.onerror=()=>{v.close()}}catch{O.current=setTimeout(R,3e3)}},[b]);X.useEffect(()=>(R(),()=>{var v;clearTimeout(O.current),(v=U.current)==null||v.close()}),[R]);const D=X.useCallback((v,G)=>{var H;((H=U.current)==null?void 0:H.readyState)===WebSocket.OPEN&&U.current.send(JSON.stringify({type:v,payload:G}))},[]);return{connected:j,messages:M,send:D}}const Ty=[{id:"chat",label:"Chat",icon:">"},{id:"events",label:"Events",icon:"#"},{id:"status",label:"Status",icon:"~"},{id:"memory",label:"Memory",icon:"@"},{id:"kanban",label:"Kanban",icon:"="},{id:"crm",label:"People",icon:"&"},{id:"apps",label:"Apps",icon:"+"}];function Ey({view:b,onViewChange:U,connected:j,isMobile:o,onClose:M}){const B=o?{...ot.nav,...ot.navMobile}:ot.nav;return f.jsxs("nav",{style:B,children:[f.jsxs("div",{style:ot.brandRow,children:[f.jsxs("div",{style:ot.brand,children:[f.jsx("div",{style:ot.logo,children:"H"}),f.jsx("span",{style:ot.title,children:"HomarUScc"})]}),o&&M&&f.jsx("button",{onClick:M,style:ot.closeBtn,"aria-label":"Close menu",children:"×"})]}),f.jsxs("div",{style:ot.status,children:[f.jsx("span",{style:{...ot.dot,background:j?"#4ade80":"#f87171"}}),f.jsx("span",{style:ot.statusText,children:j?"Connected":"Disconnected"})]}),f.jsx("div",{style:ot.menu,children:Ty.map(O=>f.jsxs("button",{onClick:()=>U(O.id),style:{...ot.menuItem,background:b===O.id?"#1e1e2e":"transparent",color:b===O.id?"#c4b5fd":"#8888a0"},children:[f.jsx("span",{style:ot.icon,children:O.icon}),O.label]},O.id))})]})}const ot={nav:{width:200,background:"#12121a",borderRight:"1px solid #1e1e2e",display:"flex",flexDirection:"column",padding:"16px 0"},navMobile:{position:"fixed",top:0,left:0,bottom:0,zIndex:200,width:240,boxShadow:"4px 0 24px rgba(0,0,0,0.5)"},brandRow:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 16px 16px",borderBottom:"1px solid #1e1e2e"},brand:{display:"flex",alignItems:"center",gap:8},logo:{width:28,height:28,background:"linear-gradient(135deg, #7c3aed, #c4b5fd)",borderRadius:6,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:14,color:"#fff"},title:{fontWeight:600,fontSize:14,color:"#e0e0e8"},closeBtn:{background:"none",border:"none",color:"#8888a0",fontSize:22,cursor:"pointer",padding:"0 4px",fontFamily:"inherit"},status:{display:"flex",alignItems:"center",gap:6,padding:"12px 16px",fontSize:11},dot:{width:6,height:6,borderRadius:"50%",display:"inline-block"},statusText:{color:"#8888a0"},menu:{display:"flex",flexDirection:"column",gap:2,padding:"8px 8px"},menuItem:{display:"flex",alignItems:"center",gap:8,padding:"8px 12px",border:"none",borderRadius:6,cursor:"pointer",fontSize:13,fontFamily:"inherit",transition:"all 0.15s"},icon:{width:16,textAlign:"center",fontWeight:700,fontSize:14}};function Ay({messages:b,send:U}){const[j,o]=X.useState(""),M=X.useRef(null),B=X.useMemo(()=>b.filter(R=>R.type==="chat").map(R=>R.payload),[b]);X.useEffect(()=>{var R;(R=M.current)==null||R.scrollIntoView({behavior:"smooth"})},[B]);const O=()=>{j.trim()&&(U("chat",{text:j}),o(""))};return f.jsxs("div",{style:dt.container,children:[f.jsxs("div",{style:dt.header,children:[f.jsx("h2",{style:dt.title,children:"Chat"}),f.jsx("span",{style:dt.subtitle,children:"Messages flow through Claude Code via MCP"})]}),f.jsxs("div",{style:dt.messages,children:[B.length===0&&f.jsx("div",{style:dt.empty,children:"No messages yet. Send a message to interact with Claude Code."}),B.map((R,D)=>{const v=R.from==="user"||R.from==="dashboard-user";return f.jsx("div",{style:{...dt.message,alignSelf:v?"flex-end":"flex-start"},children:f.jsxs("div",{style:{...dt.bubble,background:v?"#2e1065":"#1e1e2e",borderColor:v?"#7c3aed":"#2e2e3e"},children:[f.jsx("div",{style:dt.msgFrom,children:v?"you":R.from}),f.jsx("div",{style:dt.msgText,children:R.text}),f.jsx("div",{style:dt.msgTime,children:new Date(R.timestamp).toLocaleTimeString()})]})},D)}),f.jsx("div",{ref:M})]}),f.jsxs("div",{style:dt.inputArea,children:[f.jsx("input",{style:dt.input,value:j,onChange:R=>o(R.target.value),onKeyDown:R=>R.key==="Enter"&&O(),placeholder:"Type a message..."}),f.jsx("button",{style:dt.sendBtn,onClick:O,children:"Send"})]})]})}const dt={container:{display:"flex",flexDirection:"column",height:"100%"},header:{padding:"16px 20px",borderBottom:"1px solid #1e1e2e"},title:{margin:0,fontSize:16,fontWeight:600,color:"#e0e0e8"},subtitle:{fontSize:11,color:"#6b6b80",marginTop:2,display:"block"},messages:{flex:1,overflow:"auto",padding:"16px 20px",display:"flex",flexDirection:"column",gap:8},empty:{color:"#6b6b80",fontSize:13,textAlign:"center",marginTop:40},message:{maxWidth:"80%",display:"flex"},bubble:{padding:"8px 12px",borderRadius:8,border:"1px solid",fontSize:13,lineHeight:1.5},msgFrom:{fontSize:10,fontWeight:600,color:"#8888a0",marginBottom:2},msgText:{color:"#e0e0e8",whiteSpace:"pre-wrap",wordBreak:"break-word"},msgTime:{fontSize:10,color:"#555568",marginTop:4,textAlign:"right"},inputArea:{display:"flex",gap:8,padding:"12px 20px",borderTop:"1px solid #1e1e2e",background:"#0e0e16"},input:{flex:1,padding:"10px 14px",background:"#1a1a24",border:"1px solid #2e2e3e",borderRadius:8,color:"#e0e0e8",fontSize:13,fontFamily:"inherit",outline:"none"},sendBtn:{padding:"10px 20px",background:"#7c3aed",color:"#fff",border:"none",borderRadius:8,cursor:"pointer",fontWeight:600,fontSize:13,fontFamily:"inherit"}};function jy({messages:b}){const U=X.useMemo(()=>b.filter(j=>j.type==="event").map(j=>j.payload).reverse(),[b]);return f.jsxs("div",{style:Ht.container,children:[f.jsxs("div",{style:Ht.header,children:[f.jsx("h2",{style:Ht.title,children:"Event Log"}),f.jsxs("span",{style:Ht.count,children:[U.length," events"]})]}),f.jsxs("div",{style:Ht.list,children:[U.length===0&&f.jsx("div",{style:Ht.empty,children:"No events yet"}),U.map((j,o)=>f.jsxs("div",{style:Ht.event,children:[f.jsxs("div",{style:Ht.eventHeader,children:[f.jsx("span",{style:{...Ht.badge,background:Cy(j.type)},children:j.type}),f.jsx("span",{style:Ht.source,children:j.source}),f.jsx("span",{style:Ht.time,children:new Date(j.timestamp).toLocaleTimeString()})]}),f.jsx("div",{style:Ht.payload,children:JSON.stringify(j.payload,null,2).slice(0,300)})]},`${j.id}-${o}`))]})]})}function Cy(b){switch(b){case"message":return"#1e40af";case"timer_fired":return"#92400e";case"tool_call":return"#065f46";default:return"#374151"}}const Ht={container:{display:"flex",flexDirection:"column",height:"100%"},header:{padding:"16px 20px",borderBottom:"1px solid #1e1e2e",display:"flex",alignItems:"center",gap:12},title:{margin:0,fontSize:16,fontWeight:600},count:{fontSize:11,color:"#6b6b80",background:"#1a1a24",padding:"2px 8px",borderRadius:10},list:{flex:1,overflow:"auto",padding:"8px 20px"},empty:{color:"#6b6b80",fontSize:13,textAlign:"center",marginTop:40},event:{padding:"10px 0",borderBottom:"1px solid #1a1a24"},eventHeader:{display:"flex",alignItems:"center",gap:8,marginBottom:4},badge:{fontSize:10,fontWeight:600,padding:"2px 6px",borderRadius:4,color:"#fff"},source:{fontSize:11,color:"#8888a0"},time:{fontSize:10,color:"#555568",marginLeft:"auto"},payload:{fontSize:11,color:"#6b6b80",fontFamily:"inherit",whiteSpace:"pre-wrap",lineHeight:1.4,maxHeight:80,overflow:"hidden"}};function _y({messages:b,send:U}){const j=X.useMemo(()=>{const o=b.filter(M=>M.type==="status");return o.length===0?null:o[o.length-1].payload},[b]);return X.useEffect(()=>{U("status",{});const o=setInterval(()=>U("status",{}),5e3);return()=>clearInterval(o)},[U]),j?f.jsxs("div",{style:I.container,children:[f.jsx("div",{style:I.header,children:f.jsx("h2",{style:I.title,children:"System Status"})}),f.jsxs("div",{style:I.grid,children:[f.jsxs("div",{style:I.card,children:[f.jsx("div",{style:I.cardTitle,children:"Loop State"}),f.jsx("div",{style:{...I.cardValue,color:j.state==="running"?"#4ade80":"#f87171"},children:j.state})]}),f.jsxs("div",{style:I.card,children:[f.jsx("div",{style:I.cardTitle,children:"Event Queue"}),f.jsx("div",{style:I.cardValue,children:j.queue.size})]}),f.jsxs("div",{style:I.card,children:[f.jsx("div",{style:I.cardTitle,children:"Timers"}),f.jsx("div",{style:I.cardValue,children:j.timers})]}),f.jsxs("div",{style:I.card,children:[f.jsx("div",{style:I.cardTitle,children:"Event History"}),f.jsx("div",{style:I.cardValue,children:j.eventHistory})]})]}),f.jsxs("div",{style:I.section,children:[f.jsx("h3",{style:I.sectionTitle,children:"Channels"}),Object.entries(j.channels).map(([o,M])=>f.jsxs("div",{style:I.row,children:[f.jsx("span",{style:{...I.dot,background:M.healthy?"#4ade80":"#f87171"}}),f.jsx("span",{style:I.label,children:o}),f.jsx("span",{style:I.detail,children:M.message||(M.healthy?"healthy":"unhealthy")})]},o)),Object.keys(j.channels).length===0&&f.jsx("div",{style:I.none,children:"No channels configured"})]}),f.jsxs("div",{style:I.section,children:[f.jsx("h3",{style:I.sectionTitle,children:"Memory"}),f.jsxs("div",{style:I.row,children:[f.jsx("span",{style:I.label,children:"Files"}),f.jsx("span",{style:I.detail,children:j.memory.fileCount})]}),f.jsxs("div",{style:I.row,children:[f.jsx("span",{style:I.label,children:"Chunks"}),f.jsx("span",{style:I.detail,children:j.memory.chunkCount})]}),j.memory.indexedPaths.map((o,M)=>f.jsxs("div",{style:I.row,children:[f.jsx("span",{style:I.label,children:"Path"}),f.jsx("span",{style:I.detail,children:o})]},M))]}),j.skills.length>0&&f.jsxs("div",{style:I.section,children:[f.jsx("h3",{style:I.sectionTitle,children:"Skills"}),j.skills.map((o,M)=>f.jsxs("div",{style:I.row,children:[f.jsx("span",{style:{...I.dot,background:o.state==="running"?"#4ade80":"#facc15"}}),f.jsx("span",{style:I.label,children:o.name}),f.jsx("span",{style:I.detail,children:o.state})]},M))]})]}):f.jsx("div",{style:I.loading,children:"Loading status..."})}const I={container:{height:"100%",overflow:"auto",padding:"16px 20px"},loading:{color:"#6b6b80",padding:40,textAlign:"center"},header:{marginBottom:16},title:{margin:0,fontSize:16,fontWeight:600},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:12,marginBottom:24},card:{background:"#14141e",border:"1px solid #1e1e2e",borderRadius:8,padding:"12px 16px"},cardTitle:{fontSize:10,fontWeight:600,color:"#6b6b80",textTransform:"uppercase",letterSpacing:.5},cardValue:{fontSize:24,fontWeight:700,color:"#c4b5fd",marginTop:4},section:{marginBottom:20},sectionTitle:{fontSize:12,fontWeight:600,color:"#8888a0",margin:"0 0 8px",textTransform:"uppercase",letterSpacing:.5},row:{display:"flex",alignItems:"center",gap:8,padding:"6px 0",fontSize:13},dot:{width:6,height:6,borderRadius:"50%",display:"inline-block",flexShrink:0},label:{color:"#e0e0e8",minWidth:80},detail:{color:"#6b6b80"},none:{color:"#555568",fontSize:12,fontStyle:"italic"}};function Dy({send:b,messages:U}){const[j,o]=X.useState(""),M=X.useMemo(()=>{const O=U.filter(R=>R.type==="search_results");return O.length===0?[]:O[O.length-1].payload},[U]),B=()=>{j.trim()&&b("search",{query:j,limit:20})};return f.jsxs("div",{style:zt.container,children:[f.jsx("div",{style:zt.header,children:f.jsx("h2",{style:zt.title,children:"Memory Browser"})}),f.jsxs("div",{style:zt.searchBar,children:[f.jsx("input",{style:zt.input,value:j,onChange:O=>o(O.target.value),onKeyDown:O=>O.key==="Enter"&&B(),placeholder:"Search memory (hybrid vector + FTS)..."}),f.jsx("button",{style:zt.searchBtn,onClick:B,children:"Search"})]}),f.jsxs("div",{style:zt.results,children:[M.length===0&&f.jsx("div",{style:zt.empty,children:"Enter a query to search the memory index"}),M.map((O,R)=>f.jsxs("div",{style:zt.result,children:[f.jsxs("div",{style:zt.resultHeader,children:[f.jsx("span",{style:zt.path,children:O.path}),f.jsxs("span",{style:zt.score,children:["score: ",O.score.toFixed(3)]})]}),f.jsx("pre",{style:zt.content,children:O.content.slice(0,500)})]},R))]})]})}const zt={container:{display:"flex",flexDirection:"column",height:"100%"},header:{padding:"16px 20px 0"},title:{margin:0,fontSize:16,fontWeight:600},searchBar:{display:"flex",gap:8,padding:"12px 20px"},input:{flex:1,padding:"10px 14px",background:"#1a1a24",border:"1px solid #2e2e3e",borderRadius:8,color:"#e0e0e8",fontSize:13,fontFamily:"inherit",outline:"none"},searchBtn:{padding:"10px 20px",background:"#7c3aed",color:"#fff",border:"none",borderRadius:8,cursor:"pointer",fontWeight:600,fontSize:13,fontFamily:"inherit"},results:{flex:1,overflow:"auto",padding:"0 20px 20px"},empty:{color:"#6b6b80",fontSize:13,textAlign:"center",marginTop:40},result:{padding:"12px 0",borderBottom:"1px solid #1a1a24"},resultHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:6},path:{fontSize:12,fontWeight:600,color:"#c4b5fd"},score:{fontSize:10,color:"#6b6b80",background:"#1a1a24",padding:"2px 6px",borderRadius:4},content:{margin:0,fontSize:11,color:"#8888a0",lineHeight:1.5,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:120,overflow:"hidden",fontFamily:"inherit"}},My=new Set(["kanban"]),ei=`http://${window.location.hostname}:${window.location.port||3120}`;function Oy(){const[b,U]=X.useState([]),[j,o]=X.useState(null),[M,B]=X.useState(null);X.useEffect(()=>{fetch(`${ei}/api/apps`).then(R=>R.json()).then(R=>U(R.filter(D=>!My.has(D.slug)))).catch(()=>{})},[]),X.useEffect(()=>{if(!j){B(null);return}fetch(`${ei}/api/apps/${j}/data`).then(R=>R.json()).then(B).catch(()=>B(null))},[j]);const O=b.find(R=>R.slug===j);return j&&O?f.jsxs("div",{style:jl.container,children:[f.jsx("button",{onClick:()=>o(null),style:jl.backBtn,children:"← All Apps"}),f.jsx(Ry,{app:O,data:M})]}):f.jsxs("div",{style:jl.container,children:[f.jsxs("div",{style:jl.header,children:[f.jsx("h2",{style:jl.title,children:"Apps"}),f.jsxs("span",{style:jl.count,children:[b.length," installed"]})]}),b.length===0&&f.jsx("div",{style:jl.empty,children:"No apps installed. Ask Caul to build one."}),f.jsx("div",{style:jl.grid,children:b.map(R=>f.jsxs("button",{onClick:()=>o(R.slug),style:jl.card,children:[R.icon&&f.jsx("img",{src:`${ei}/api/apps/${R.slug}/static/${R.icon}`,alt:R.name,style:jl.icon}),f.jsxs("div",{style:jl.cardText,children:[f.jsx("div",{style:jl.cardName,children:R.name}),f.jsx("div",{style:jl.cardDesc,children:R.description})]})]},R.slug))})]})}function Ry({app:b,data:U}){return f.jsxs("div",{style:jl.appContainer,children:[f.jsxs("div",{style:jl.appHeader,children:[b.icon&&f.jsx("img",{src:`${ei}/api/apps/${b.slug}/static/${b.icon}`,alt:b.name,style:jl.appIcon}),f.jsxs("div",{children:[f.jsx("h2",{style:jl.appTitle,children:b.name}),f.jsxs("span",{style:jl.appVersion,children:["v",b.version]})]})]}),f.jsx("p",{style:jl.appDesc,children:b.description}),U&&f.jsx("div",{style:jl.dataSection,children:Object.entries(U).map(([j,o])=>f.jsxs("div",{style:jl.dataRow,children:[f.jsx("span",{style:jl.dataKey,children:j}),f.jsx("span",{style:jl.dataValue,children:String(o)})]},j))})]})}const jl={container:{flex:1,padding:24,overflowY:"auto"},header:{display:"flex",alignItems:"baseline",gap:12,marginBottom:24},title:{margin:0,fontSize:18,fontWeight:600,color:"#e0e0e8"},count:{fontSize:12,color:"#8888a0"},empty:{color:"#8888a0",fontSize:13,padding:"40px 0",textAlign:"center"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:16},card:{display:"flex",alignItems:"center",gap:16,padding:16,background:"#12121a",border:"1px solid #1e1e2e",borderRadius:10,cursor:"pointer",textAlign:"left",fontFamily:"inherit",color:"#e0e0e8",transition:"border-color 0.15s"},icon:{width:48,height:48,borderRadius:8,objectFit:"cover"},cardText:{flex:1,minWidth:0},cardName:{fontSize:14,fontWeight:600,marginBottom:4},cardDesc:{fontSize:11,color:"#8888a0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},backBtn:{background:"none",border:"none",color:"#c4b5fd",fontSize:13,cursor:"pointer",padding:"4px 0",marginBottom:16,fontFamily:"inherit"},appContainer:{maxWidth:600,margin:"0 auto",textAlign:"center"},appHeader:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,marginBottom:16},appIcon:{width:80,height:80,borderRadius:12,objectFit:"cover"},appTitle:{margin:0,fontSize:20,fontWeight:600,color:"#e0e0e8"},appVersion:{fontSize:11,color:"#8888a0"},appDesc:{color:"#8888a0",fontSize:13,marginBottom:24},dataSection:{background:"#12121a",border:"1px solid #1e1e2e",borderRadius:10,padding:16,textAlign:"left"},dataRow:{display:"flex",justifyContent:"space-between",padding:"8px 0",borderBottom:"1px solid #1e1e2e",fontSize:13},dataKey:{color:"#c4b5fd",fontWeight:500},dataValue:{color:"#e0e0e8"}},Fu="/api/kanban/tasks",Uy=[{id:"todo",label:"To Do"},{id:"doing",label:"In Progress"},{id:"done",label:"Done"}],Rn={caul:{bg:"#1a1a3e",border:"#7c3aed",badge:"#c4b5fd",text:"#c4b5fd"},max:{bg:"#1a2e1a",border:"#22c55e",badge:"#4ade80",text:"#4ade80"}};function By(){const[b,U]=X.useState([]),[j,o]=X.useState(null),[M,B]=X.useState(null),[O,R]=X.useState(""),[D,v]=X.useState(""),[G,H]=X.useState("max"),[tl,ul]=X.useState(""),[bl,Ml]=X.useState(""),El=X.useCallback(async()=>{try{const yl=await(await fetch(Fu)).json();U(yl)}catch{}},[]);X.useEffect(()=>{El();const q=setInterval(El,1e4);return()=>clearInterval(q)},[El]);const Ol=async q=>{O.trim()&&(await fetch(Fu,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:O,description:D,assignee:G,status:q})}),R(""),v(""),H("max"),B(null),El())},Jl=async(q,yl)=>{await fetch(`${Fu}/${q}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(yl)}),El()},Al=async q=>{await fetch(`${Fu}/${q}`,{method:"DELETE"}),El()},Nl=(q,yl)=>{const J=["todo","doing","done"],Zl=J.indexOf(q.status),Rl=yl==="right"?Zl+1:Zl-1;Rl<0||Rl>=J.length||Jl(q.id,{status:J[Rl]})},wl=q=>{o(q.id),ul(q.title),Ml(q.description)},Cl=q=>{Jl(q,{title:tl,description:bl}),o(null)};return f.jsxs("div",{style:k.container,children:[f.jsxs("div",{style:k.header,children:[f.jsx("h2",{style:k.heading,children:"Kanban"}),f.jsxs("div",{style:k.legend,children:[f.jsx("span",{style:{...k.legendDot,background:Rn.caul.badge}}),f.jsx("span",{style:k.legendLabel,children:"Caul"}),f.jsx("span",{style:{...k.legendDot,background:Rn.max.badge,marginLeft:12}}),f.jsx("span",{style:k.legendLabel,children:"Max"})]})]}),f.jsx("div",{style:k.board,children:Uy.map(q=>{const yl=b.filter(J=>J.status===q.id);return f.jsxs("div",{style:k.column,children:[f.jsxs("div",{style:k.colHeader,children:[f.jsx("span",{style:k.colTitle,children:q.label}),f.jsx("span",{style:k.colCount,children:yl.length})]}),f.jsxs("div",{style:k.cardList,children:[yl.map(J=>{const Zl=Rn[J.assignee],Rl=j===J.id;return f.jsx("div",{style:{...k.card,background:Zl.bg,borderLeft:`3px solid ${Zl.border}`},children:Rl?f.jsxs("div",{style:k.editForm,children:[f.jsx("input",{style:k.editInput,value:tl,onChange:Sl=>ul(Sl.target.value),onKeyDown:Sl=>Sl.key==="Enter"&&Cl(J.id),autoFocus:!0}),f.jsx("textarea",{style:k.editTextarea,value:bl,onChange:Sl=>Ml(Sl.target.value),rows:2}),f.jsxs("div",{style:k.editActions,children:[f.jsx("button",{style:k.btnSave,onClick:()=>Cl(J.id),children:"Save"}),f.jsx("button",{style:k.btnCancel,onClick:()=>o(null),children:"Cancel"})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{style:k.cardTop,children:[f.jsx("span",{style:{...k.badge,background:Zl.badge,color:"#0a0a0f"},children:J.assignee}),f.jsxs("div",{style:k.cardActions,children:[q.id!=="todo"&&f.jsx("button",{style:k.moveBtn,onClick:()=>Nl(J,"left"),title:"Move left",children:"←"}),q.id!=="done"&&f.jsx("button",{style:k.moveBtn,onClick:()=>Nl(J,"right"),title:"Move right",children:"→"})]})]}),f.jsx("div",{style:k.cardTitle,children:J.title}),J.description&&f.jsx("div",{style:k.cardDesc,children:J.description}),f.jsxs("div",{style:k.cardFooter,children:[f.jsx("button",{style:k.btnEdit,onClick:()=>wl(J),children:"Edit"}),f.jsxs("button",{style:k.btnEdit,onClick:()=>Jl(J.id,{assignee:J.assignee==="caul"?"max":"caul"}),children:["→ ",J.assignee==="caul"?"Max":"Caul"]}),f.jsx("button",{style:k.btnDelete,onClick:()=>Al(J.id),children:"Delete"})]})]})},J.id)}),M===q.id?f.jsxs("div",{style:k.addForm,children:[f.jsx("input",{style:k.addInput,placeholder:"Task title...",value:O,onChange:J=>R(J.target.value),onKeyDown:J=>J.key==="Enter"&&Ol(q.id),autoFocus:!0}),f.jsx("textarea",{style:k.addTextarea,placeholder:"Description (optional)",value:D,onChange:J=>v(J.target.value),rows:2}),f.jsxs("div",{style:k.assigneeRow,children:[f.jsx("label",{style:k.assigneeLabel,children:"Assign to:"}),f.jsx("button",{style:{...k.assigneeBtn,background:G==="max"?Rn.max.badge:"transparent",color:G==="max"?"#0a0a0f":"#8888a0"},onClick:()=>H("max"),children:"Max"}),f.jsx("button",{style:{...k.assigneeBtn,background:G==="caul"?Rn.caul.badge:"transparent",color:G==="caul"?"#0a0a0f":"#8888a0"},onClick:()=>H("caul"),children:"Caul"})]}),f.jsxs("div",{style:k.addActions,children:[f.jsx("button",{style:k.btnSave,onClick:()=>Ol(q.id),children:"Add"}),f.jsx("button",{style:k.btnCancel,onClick:()=>B(null),children:"Cancel"})]})]}):f.jsx("button",{style:k.addBtn,onClick:()=>B(q.id),children:"+ Add task"})]})]},q.id)})})]})}const k={container:{padding:20,height:"100%",overflow:"auto",display:"flex",flexDirection:"column"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},heading:{margin:0,fontSize:18,fontWeight:600,color:"#e0e0e8"},legend:{display:"flex",alignItems:"center",gap:6,fontSize:12},legendDot:{width:10,height:10,borderRadius:"50%",display:"inline-block"},legendLabel:{color:"#8888a0"},board:{display:"flex",gap:16,flex:1,minHeight:0},column:{flex:1,minWidth:0,background:"#12121a",borderRadius:10,padding:12,display:"flex",flexDirection:"column"},colHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12,paddingBottom:8,borderBottom:"1px solid #1e1e2e"},colTitle:{fontSize:13,fontWeight:600,color:"#8888a0",textTransform:"uppercase",letterSpacing:1},colCount:{fontSize:11,color:"#555",background:"#1e1e2e",borderRadius:10,padding:"2px 8px"},cardList:{display:"flex",flexDirection:"column",gap:8,flex:1,overflow:"auto"},card:{borderRadius:8,padding:10},cardTop:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:6},badge:{fontSize:10,fontWeight:700,padding:"2px 8px",borderRadius:10,textTransform:"uppercase",letterSpacing:.5},cardActions:{display:"flex",gap:4},moveBtn:{background:"none",border:"1px solid #333",borderRadius:4,color:"#8888a0",cursor:"pointer",fontSize:12,padding:"2px 6px",fontFamily:"inherit"},cardTitle:{fontSize:13,fontWeight:600,color:"#e0e0e8",marginBottom:4},cardDesc:{fontSize:11,color:"#8888a0",lineHeight:1.4,marginBottom:8},cardFooter:{display:"flex",gap:6,marginTop:6},btnEdit:{background:"none",border:"1px solid #333",borderRadius:4,color:"#8888a0",cursor:"pointer",fontSize:10,padding:"3px 8px",fontFamily:"inherit"},btnDelete:{background:"none",border:"1px solid #4a1a1a",borderRadius:4,color:"#f87171",cursor:"pointer",fontSize:10,padding:"3px 8px",fontFamily:"inherit",marginLeft:"auto"},addBtn:{background:"none",border:"1px dashed #333",borderRadius:8,color:"#555",cursor:"pointer",fontSize:12,padding:"10px",fontFamily:"inherit",marginTop:4},addForm:{background:"#1e1e2e",borderRadius:8,padding:10,display:"flex",flexDirection:"column",gap:8},addInput:{background:"#0a0a0f",border:"1px solid #333",borderRadius:6,color:"#e0e0e8",padding:"8px 10px",fontSize:13,fontFamily:"inherit",outline:"none"},addTextarea:{background:"#0a0a0f",border:"1px solid #333",borderRadius:6,color:"#e0e0e8",padding:"8px 10px",fontSize:12,fontFamily:"inherit",outline:"none",resize:"vertical"},assigneeRow:{display:"flex",alignItems:"center",gap:8},assigneeLabel:{fontSize:11,color:"#8888a0"},assigneeBtn:{border:"1px solid #333",borderRadius:6,cursor:"pointer",fontSize:11,padding:"4px 12px",fontFamily:"inherit",fontWeight:600},addActions:{display:"flex",gap:8},btnSave:{background:"#7c3aed",border:"none",borderRadius:6,color:"#fff",cursor:"pointer",fontSize:12,padding:"6px 16px",fontFamily:"inherit",fontWeight:600},btnCancel:{background:"none",border:"1px solid #333",borderRadius:6,color:"#8888a0",cursor:"pointer",fontSize:12,padding:"6px 16px",fontFamily:"inherit"},editForm:{display:"flex",flexDirection:"column",gap:6},editInput:{background:"#0a0a0f",border:"1px solid #444",borderRadius:4,color:"#e0e0e8",padding:"6px 8px",fontSize:13,fontFamily:"inherit",outline:"none"},editTextarea:{background:"#0a0a0f",border:"1px solid #444",borderRadius:4,color:"#e0e0e8",padding:"6px 8px",fontSize:12,fontFamily:"inherit",outline:"none",resize:"vertical"},editActions:{display:"flex",gap:6}},Iu="/api/crm/contacts",Pu={personal:"#4ade80",professional:"#60a5fa","research-target":"#c4b5fd","potential-collaborator":"#f59e0b",vendor:"#f87171",friend:"#34d399"},li="#8888a0";function Hy({messages:b,send:U}){var N;const[j,o]=X.useState([]),[M,B]=X.useState(null),[O,R]=X.useState(""),[D,v]=X.useState(null),[G,H]=X.useState(!1),[tl,ul]=X.useState(!1),[bl,Ml]=X.useState(null),[El,Ol]=X.useState(""),[Jl,Al]=X.useState(""),[Nl,wl]=X.useState(""),[Cl,q]=X.useState(""),[yl,J]=X.useState(""),[Zl,Rl]=X.useState(""),[Sl,Et]=X.useState("manual"),Pl=X.useCallback(async()=>{try{const z=await fetch(Iu);o(await z.json())}catch{}},[]);X.useEffect(()=>{Pl();const z=setInterval(Pl,15e3);return()=>clearInterval(z)},[Pl]);const et=Array.from(new Set(j.flatMap(z=>z.tags))).sort(),x=j.filter(z=>{const Z=O.toLowerCase(),W=!Z||z.name.toLowerCase().includes(Z)||z.aliases.some(Xl=>Xl.toLowerCase().includes(Z))||z.context.toLowerCase().includes(Z)||(z.email??"").toLowerCase().includes(Z)||z.tags.some(Xl=>Xl.toLowerCase().includes(Z)),il=!D||z.tags.includes(D);return W&&il}),C=j.find(z=>z.slug===M),V=()=>{Ol(""),Al(""),wl(""),q(""),J(""),Rl(""),Et("manual")},ol=async()=>{El.trim()&&(await fetch(Iu,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:El,email:Jl||void 0,phone:Nl||void 0,context:Cl,tags:yl.split(",").map(z=>z.trim()).filter(Boolean),notes:Zl,source:Sl})}),V(),H(!1),Pl())},dl=async()=>{!C||!El.trim()||(await fetch(`${Iu}/${C.slug}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:El,email:Jl||void 0,phone:Nl||void 0,context:Cl,tags:yl.split(",").map(z=>z.trim()).filter(Boolean),notes:Zl,source:Sl})}),ul(!1),Pl())},r=async z=>{await fetch(`${Iu}/${z}`,{method:"DELETE"}),M===z&&B(null),Pl()},A=z=>{Ol(z.name),Al(z.email??""),wl(z.phone??""),q(z.context),J(z.tags.join(", ")),Rl(z.notes),Et(z.source),ul(!0)};return M&&C?tl?f.jsxs("div",{style:_.container,children:[f.jsx("button",{onClick:()=>{ul(!1)},style:_.backBtn,children:"← Cancel"}),f.jsx("h2",{style:_.heading,children:"Edit Contact"}),f.jsx(Lr,{name:El,setName:Ol,email:Jl,setEmail:Al,phone:Nl,setPhone:wl,context:Cl,setContext:q,tags:yl,setTags:J,notes:Zl,setNotes:Rl,source:Sl,setSource:Et,onSubmit:dl,submitLabel:"Save"})]}):f.jsxs("div",{style:_.container,children:[f.jsx("button",{onClick:()=>B(null),style:_.backBtn,children:"← All Contacts"}),f.jsxs("div",{style:_.detailCard,children:[f.jsxs("div",{style:_.detailHeader,children:[f.jsx("div",{style:_.avatar,children:(N=C.name[0])==null?void 0:N.toUpperCase()}),f.jsxs("div",{children:[f.jsx("h2",{style:_.detailName,children:C.name}),C.aliases.length>0&&f.jsxs("div",{style:_.detailAliases,children:["aka ",C.aliases.join(", ")]})]})]}),f.jsxs("div",{style:_.detailMeta,children:[C.email&&f.jsxs("div",{style:_.metaRow,children:[f.jsx("span",{style:_.metaLabel,children:"Email"}),f.jsx("span",{style:_.metaValue,children:C.email})]}),C.phone&&f.jsxs("div",{style:_.metaRow,children:[f.jsx("span",{style:_.metaLabel,children:"Phone"}),f.jsx("span",{style:_.metaValue,children:C.phone})]}),f.jsxs("div",{style:_.metaRow,children:[f.jsx("span",{style:_.metaLabel,children:"Context"}),f.jsx("span",{style:_.metaValue,children:C.context||"—"})]}),f.jsxs("div",{style:_.metaRow,children:[f.jsx("span",{style:_.metaLabel,children:"Source"}),f.jsx("span",{style:_.metaValue,children:C.source})]}),f.jsxs("div",{style:_.metaRow,children:[f.jsx("span",{style:_.metaLabel,children:"Last mentioned"}),f.jsx("span",{style:_.metaValue,children:C.lastMentioned})]}),f.jsxs("div",{style:_.metaRow,children:[f.jsx("span",{style:_.metaLabel,children:"Added"}),f.jsx("span",{style:_.metaValue,children:C.created})]})]}),C.tags.length>0&&f.jsx("div",{style:_.tagRow,children:C.tags.map(z=>f.jsx("span",{style:{..._.tag,borderColor:Pu[z]??li,color:Pu[z]??li},children:z},z))}),C.connections.length>0&&f.jsxs("div",{style:_.connectionsSection,children:[f.jsx("h3",{style:_.sectionTitle,children:"Connections"}),C.connections.map((z,Z)=>f.jsxs("div",{style:_.connectionRow,children:[f.jsx("span",{style:_.connectionName,children:z.name}),f.jsx("span",{style:_.connectionRel,children:z.relationship})]},Z))]}),C.notes&&f.jsxs("div",{style:_.notesSection,children:[f.jsx("h3",{style:_.sectionTitle,children:"Notes"}),f.jsx("div",{style:_.notesContent,children:f.jsx(Ny,{text:C.notes,onDocClick:Ml})})]}),bl&&f.jsx(Yy,{path:bl,onClose:()=>Ml(null)}),f.jsxs("div",{style:_.detailActions,children:[f.jsx("button",{style:_.btnEdit,onClick:()=>A(C),children:"Edit"}),f.jsx("button",{style:_.btnDelete,onClick:()=>r(C.slug),children:"Delete"})]})]}),f.jsx(Xr,{messages:b,send:U,context:`[CRM: viewing ${C.name}] `,placeholder:`Chat about ${C.name}...`})]}):f.jsxs("div",{style:_.container,children:[f.jsxs("div",{style:_.header,children:[f.jsx("h2",{style:_.heading,children:"Contacts"}),f.jsxs("span",{style:_.count,children:[j.length," people"]}),f.jsx("button",{style:_.addBtn,onClick:()=>{V(),H(!0)},children:"+ Add"})]}),f.jsxs("div",{style:_.filterRow,children:[f.jsx("input",{style:_.searchInput,placeholder:"Search contacts...",value:O,onChange:z=>R(z.target.value)}),et.length>0&&f.jsxs("div",{style:_.tagFilter,children:[f.jsx("button",{style:{..._.filterChip,...D===null?_.filterChipActive:{}},onClick:()=>v(null),children:"All"}),et.map(z=>f.jsx("button",{style:{..._.filterChip,...D===z?_.filterChipActive:{},borderColor:Pu[z]??li},onClick:()=>v(D===z?null:z),children:z},z))]})]}),G&&f.jsxs("div",{style:_.addFormContainer,children:[f.jsx("h3",{style:_.addFormTitle,children:"New Contact"}),f.jsx(Lr,{name:El,setName:Ol,email:Jl,setEmail:Al,phone:Nl,setPhone:wl,context:Cl,setContext:q,tags:yl,setTags:J,notes:Zl,setNotes:Rl,source:Sl,setSource:Et,onSubmit:ol,submitLabel:"Add Contact"}),f.jsx("button",{style:_.cancelFormBtn,onClick:()=>H(!1),children:"Cancel"})]}),f.jsxs("div",{style:_.contactList,children:[x.length===0&&f.jsx("div",{style:_.empty,children:j.length===0?"No contacts yet. Add one or mention someone in conversation.":"No matches."}),x.map(z=>{var Z;return f.jsxs("button",{style:_.contactCard,onClick:()=>B(z.slug),children:[f.jsx("div",{style:_.cardAvatar,children:(Z=z.name[0])==null?void 0:Z.toUpperCase()}),f.jsxs("div",{style:_.cardInfo,children:[f.jsx("div",{style:_.cardName,children:z.name}),f.jsx("div",{style:_.cardContext,children:z.context||z.email||"No context"}),f.jsx("div",{style:_.cardTags,children:z.tags.slice(0,3).map(W=>f.jsx("span",{style:{..._.cardTag,color:Pu[W]??li},children:W},W))})]}),f.jsxs("div",{style:_.cardMeta,children:[f.jsx("span",{style:_.cardDate,children:z.lastMentioned}),f.jsx("span",{style:_.cardSource,children:z.source})]})]},z.slug)})]}),f.jsx(Xr,{messages:b,send:U,context:"[CRM: contacts list] ",placeholder:"Chat about your contacts..."})]})}function Ny({text:b,onDocClick:U}){const j=/((?:HalShare|~\/\.homaruscc)\/[\w./_-]+\.md)/g,o=[];let M=0,B;for(;(B=j.exec(b))!==null;)B.index>M&&o.push({type:"text",value:b.slice(M,B.index)}),o.push({type:"link",value:B[1]}),M=B.index+B[0].length;return M<b.length&&o.push({type:"text",value:b.slice(M)}),f.jsx(f.Fragment,{children:o.map((O,R)=>O.type==="link"?f.jsx("button",{onClick:()=>U(O.value),style:Gt.fileLink,children:O.value.split("/").pop()},R):f.jsx("span",{children:O.value},R))})}function qy(b){const U=D=>D.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),j=b.split(`
|
|
50
|
+
`),o=[];let M=!1,B=!1,O=null;const R=D=>{let v=U(D);return v=v.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),v=v.replace(/\*(.+?)\*/g,"<em>$1</em>"),v=v.replace(/`(.+?)`/g,'<code style="background:#1e1e2e;padding:1px 4px;border-radius:3px">$1</code>'),v=v.replace(/\[(.+?)\]\((.+?)\)/g,'<a href="$2" style="color:#c4b5fd" target="_blank">$1</a>'),v};for(let D=0;D<j.length;D++){const v=j[D];if(v.startsWith("```")){M?(o.push("</pre>"),M=!1):(o.push('<pre style="background:#0a0a0f;padding:12px;border-radius:6px;overflow-x:auto;font-size:12px">'),M=!0);continue}if(M){o.push(U(v)),o.push(`
|
|
51
|
+
`);continue}const G=v.trim();if(O&&!G.startsWith("- ")&&!G.startsWith("* ")&&!/^\d+\.\s/.test(G)&&G!==""&&(o.push(`</${O}>`),O=null),/^-{3,}$/.test(G)||/^\*{3,}$/.test(G)){o.push('<hr style="border:none;border-top:1px solid #1e1e2e;margin:12px 0">');continue}const H=G.match(/^(#{1,6})\s+(.+)$/);if(H){const ul=H[1].length,bl=[20,17,15,14,13,12];o.push(`<h${ul} style="color:#e0e0e8;font-size:${bl[ul-1]}px;margin:16px 0 8px;font-weight:600">${R(H[2])}</h${ul}>`);continue}if(G.startsWith("|")){if(B||(o.push('<table style="width:100%;border-collapse:collapse;margin:8px 0;font-size:12px">'),B=!0),/^\|[\s-:|]+\|$/.test(G))continue;const ul=G.split("|").slice(1,-1).map(bl=>bl.trim());o.push("<tr>"),ul.forEach(bl=>o.push(`<td style="padding:6px 10px;border-bottom:1px solid #1e1e2e;color:#e0e0e8">${R(bl)}</td>`)),o.push("</tr>");continue}if(B&&!G.startsWith("|")&&(o.push("</table>"),B=!1),G.startsWith("- ")||G.startsWith("* ")){O!=="ul"&&(O&&o.push(`</${O}>`),o.push('<ul style="margin:4px 0;padding-left:20px">'),O="ul");const ul=G.replace(/^[-*]\s+/,"");ul.startsWith("[ ] ")?o.push(`<li style="margin:2px 0;color:#e0e0e8;list-style:none;margin-left:-16px">☐ ${R(ul.slice(4))}</li>`):ul.startsWith("[x] ")?o.push(`<li style="margin:2px 0;color:#8888a0;list-style:none;margin-left:-16px;text-decoration:line-through">☑ ${R(ul.slice(4))}</li>`):o.push(`<li style="margin:2px 0;color:#e0e0e8">${R(ul)}</li>`);continue}const tl=G.match(/^(\d+)\.\s+(.+)$/);if(tl){O!=="ol"&&(O&&o.push(`</${O}>`),o.push('<ol style="margin:4px 0;padding-left:20px">'),O="ol"),o.push(`<li style="margin:2px 0;color:#e0e0e8">${R(tl[2])}</li>`);continue}if(G===""){o.push("<br>");continue}o.push(`<p style="margin:4px 0;color:#e0e0e8;line-height:1.6">${R(G)}</p>`)}return M&&o.push("</pre>"),B&&o.push("</table>"),O&&o.push(`</${O}>`),o.join(`
|
|
52
|
+
`)}function Yy({path:b,onClose:U}){const[j,o]=X.useState(null),[M,B]=X.useState(!0),[O,R]=X.useState(null);return X.useEffect(()=>{B(!0),R(null),fetch(`/api/docs?path=${encodeURIComponent(b)}`).then(D=>{if(!D.ok)throw new Error("Document not found");return D.text()}).then(D=>{o(D),B(!1)}).catch(D=>{R(String(D)),B(!1)})},[b]),f.jsx("div",{style:Gt.overlay,onClick:U,children:f.jsxs("div",{style:Gt.modal,onClick:D=>D.stopPropagation(),children:[f.jsxs("div",{style:Gt.modalHeader,children:[f.jsx("span",{style:Gt.modalTitle,children:b.split("/").pop()}),f.jsx("span",{style:Gt.modalPath,children:b}),f.jsx("button",{style:Gt.closeBtn,onClick:U,children:"×"})]}),f.jsxs("div",{style:Gt.modalBody,children:[M&&f.jsx("div",{style:Gt.loading,children:"Loading..."}),O&&f.jsx("div",{style:Gt.error,children:O}),j&&f.jsx("div",{style:Gt.docContent,dangerouslySetInnerHTML:{__html:qy(j)}})]})]})})}const Gt={fileLink:{background:"none",border:"1px solid #7c3aed",borderRadius:4,color:"#c4b5fd",cursor:"pointer",fontSize:12,padding:"1px 6px",fontFamily:"inherit",fontWeight:500,display:"inline"},overlay:{position:"fixed",inset:0,background:"rgba(0,0,0,0.7)",zIndex:300,display:"flex",alignItems:"center",justifyContent:"center",padding:20},modal:{background:"#12121a",borderRadius:12,border:"1px solid #1e1e2e",width:"100%",maxWidth:800,maxHeight:"85vh",display:"flex",flexDirection:"column"},modalHeader:{display:"flex",alignItems:"center",gap:12,padding:"14px 18px",borderBottom:"1px solid #1e1e2e"},modalTitle:{fontSize:14,fontWeight:600,color:"#e0e0e8"},modalPath:{fontSize:11,color:"#555",flex:1},closeBtn:{background:"none",border:"none",color:"#8888a0",fontSize:20,cursor:"pointer",fontFamily:"inherit",padding:"0 4px"},modalBody:{flex:1,overflow:"auto",padding:18},loading:{color:"#8888a0",fontSize:13},error:{color:"#f87171",fontSize:13},docContent:{color:"#e0e0e8",fontSize:13,lineHeight:1.6,fontFamily:"inherit"}};function Xr({messages:b,send:U,context:j,placeholder:o}){const[M,B]=X.useState(""),[O,R]=X.useState(!1),D=X.useRef(null),v=b.filter(H=>H.type==="chat").map(H=>H.payload).slice(-20);X.useEffect(()=>{O&&D.current&&D.current.scrollIntoView({behavior:"smooth"})},[v.length,O]);const G=()=>{M.trim()&&(U("chat",{text:j+M}),B(""))};return O?f.jsxs("div",{style:Tt.container,children:[f.jsxs("div",{style:Tt.header,children:[f.jsx("span",{style:Tt.headerText,children:"Chat"}),f.jsx("button",{style:Tt.collapseBtn,onClick:()=>R(!1),children:"−"})]}),f.jsxs("div",{style:Tt.messageList,children:[v.map((H,tl)=>f.jsx("div",{style:{...Tt.msg,...H.from==="user"?Tt.msgUser:Tt.msgAssistant},children:f.jsx("span",{style:Tt.msgText,children:H.text.replace(/^\[CRM:.*?\]\s*/,"")})},tl)),f.jsx("div",{ref:D})]}),f.jsxs("div",{style:Tt.inputRow,children:[f.jsx("input",{style:Tt.input,value:M,onChange:H=>B(H.target.value),onKeyDown:H=>H.key==="Enter"&&G(),placeholder:o}),f.jsx("button",{style:Tt.sendBtn,onClick:G,children:"→"})]})]}):f.jsx("button",{style:Tt.toggle,onClick:()=>R(!0),children:"Chat with Caul"})}const Tt={toggle:{position:"sticky",bottom:0,marginTop:12,background:"#1e1e2e",border:"1px solid #333",borderRadius:8,color:"#c4b5fd",cursor:"pointer",fontSize:12,padding:"10px 16px",fontFamily:"inherit",fontWeight:500,textAlign:"center",width:"100%"},container:{position:"sticky",bottom:0,marginTop:12,background:"#12121a",border:"1px solid #1e1e2e",borderRadius:10,display:"flex",flexDirection:"column",maxHeight:280,minHeight:160},header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 12px",borderBottom:"1px solid #1e1e2e"},headerText:{fontSize:12,fontWeight:600,color:"#8888a0",textTransform:"uppercase",letterSpacing:1},collapseBtn:{background:"none",border:"none",color:"#8888a0",fontSize:16,cursor:"pointer",fontFamily:"inherit",padding:"0 4px"},messageList:{flex:1,overflow:"auto",padding:"8px 12px",display:"flex",flexDirection:"column",gap:4},msg:{padding:"4px 8px",borderRadius:6,fontSize:12,maxWidth:"85%",lineHeight:1.4},msgUser:{background:"#1e1e2e",color:"#c4b5fd",alignSelf:"flex-end"},msgAssistant:{background:"#0a0a0f",color:"#e0e0e8",alignSelf:"flex-start"},msgText:{whiteSpace:"pre-wrap",wordBreak:"break-word"},inputRow:{display:"flex",gap:8,padding:"8px 12px",borderTop:"1px solid #1e1e2e"},input:{flex:1,background:"#0a0a0f",border:"1px solid #333",borderRadius:6,color:"#e0e0e8",padding:"8px 10px",fontSize:12,fontFamily:"inherit",outline:"none"},sendBtn:{background:"#7c3aed",border:"none",borderRadius:6,color:"#fff",cursor:"pointer",fontSize:14,padding:"6px 12px",fontFamily:"inherit",fontWeight:600}};function Lr(b){return f.jsxs("div",{style:_.formGrid,children:[f.jsxs("div",{style:_.formRow,children:[f.jsx("label",{style:_.formLabel,children:"Name *"}),f.jsx("input",{style:_.formInput,value:b.name,onChange:U=>b.setName(U.target.value),autoFocus:!0})]}),f.jsxs("div",{style:_.formRow,children:[f.jsx("label",{style:_.formLabel,children:"Email"}),f.jsx("input",{style:_.formInput,value:b.email,onChange:U=>b.setEmail(U.target.value)})]}),f.jsxs("div",{style:_.formRow,children:[f.jsx("label",{style:_.formLabel,children:"Phone"}),f.jsx("input",{style:_.formInput,value:b.phone,onChange:U=>b.setPhone(U.target.value)})]}),f.jsxs("div",{style:_.formRow,children:[f.jsx("label",{style:_.formLabel,children:"Context"}),f.jsx("input",{style:_.formInput,value:b.context,onChange:U=>b.setContext(U.target.value),placeholder:"How you know them / who they are"})]}),f.jsxs("div",{style:_.formRow,children:[f.jsx("label",{style:_.formLabel,children:"Tags"}),f.jsx("input",{style:_.formInput,value:b.tags,onChange:U=>b.setTags(U.target.value),placeholder:"comma-separated: friend, professional"})]}),f.jsxs("div",{style:_.formRow,children:[f.jsx("label",{style:_.formLabel,children:"Source"}),f.jsx("div",{style:_.sourceRow,children:["manual","conversation","research"].map(U=>f.jsx("button",{style:{..._.sourceBtn,...b.source===U?_.sourceBtnActive:{}},onClick:()=>b.setSource(U),children:U},U))})]}),f.jsxs("div",{style:_.formRow,children:[f.jsx("label",{style:_.formLabel,children:"Notes"}),f.jsx("textarea",{style:_.formTextarea,value:b.notes,onChange:U=>b.setNotes(U.target.value),rows:4,placeholder:"Freeform notes..."})]}),f.jsx("button",{style:_.submitBtn,onClick:b.onSubmit,children:b.submitLabel})]})}const _={container:{padding:20,height:"100%",overflow:"auto",display:"flex",flexDirection:"column"},header:{display:"flex",alignItems:"center",gap:12,marginBottom:16},heading:{margin:0,fontSize:18,fontWeight:600,color:"#e0e0e8"},count:{fontSize:12,color:"#8888a0"},addBtn:{marginLeft:"auto",background:"#7c3aed",border:"none",borderRadius:6,color:"#fff",cursor:"pointer",fontSize:12,padding:"6px 16px",fontFamily:"inherit",fontWeight:600},filterRow:{display:"flex",flexDirection:"column",gap:8,marginBottom:16},searchInput:{background:"#12121a",border:"1px solid #1e1e2e",borderRadius:8,color:"#e0e0e8",padding:"10px 14px",fontSize:13,fontFamily:"inherit",outline:"none"},tagFilter:{display:"flex",gap:6,flexWrap:"wrap"},filterChip:{background:"none",border:"1px solid #333",borderRadius:12,color:"#8888a0",cursor:"pointer",fontSize:11,padding:"3px 10px",fontFamily:"inherit"},filterChipActive:{background:"#1e1e2e",color:"#c4b5fd",borderColor:"#7c3aed"},contactList:{display:"flex",flexDirection:"column",gap:6,flex:1,overflow:"auto"},contactCard:{display:"flex",alignItems:"center",gap:12,padding:"12px 14px",background:"#12121a",border:"1px solid #1e1e2e",borderRadius:10,cursor:"pointer",textAlign:"left",fontFamily:"inherit",color:"#e0e0e8"},cardAvatar:{width:36,height:36,borderRadius:"50%",background:"linear-gradient(135deg, #7c3aed, #c4b5fd)",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:14,color:"#fff",flexShrink:0},cardInfo:{flex:1,minWidth:0},cardName:{fontSize:14,fontWeight:600,marginBottom:2},cardContext:{fontSize:11,color:"#8888a0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cardTags:{display:"flex",gap:6,marginTop:4},cardTag:{fontSize:10,fontWeight:500},cardMeta:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:2,flexShrink:0},cardDate:{fontSize:10,color:"#555"},cardSource:{fontSize:9,color:"#555",textTransform:"uppercase",letterSpacing:.5},empty:{color:"#8888a0",fontSize:13,padding:"40px 0",textAlign:"center"},backBtn:{background:"none",border:"none",color:"#c4b5fd",fontSize:13,cursor:"pointer",padding:"4px 0",marginBottom:16,fontFamily:"inherit",textAlign:"left"},detailCard:{background:"#12121a",borderRadius:12,padding:20},detailHeader:{display:"flex",alignItems:"center",gap:16,marginBottom:20},avatar:{width:56,height:56,borderRadius:"50%",background:"linear-gradient(135deg, #7c3aed, #c4b5fd)",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:22,color:"#fff",flexShrink:0},detailName:{margin:0,fontSize:20,fontWeight:600,color:"#e0e0e8"},detailAliases:{fontSize:12,color:"#8888a0",marginTop:2},detailMeta:{display:"flex",flexDirection:"column",gap:8,marginBottom:16},metaRow:{display:"flex",justifyContent:"space-between",padding:"6px 0",borderBottom:"1px solid #1e1e2e",fontSize:13},metaLabel:{color:"#8888a0",fontWeight:500},metaValue:{color:"#e0e0e8"},tagRow:{display:"flex",gap:8,flexWrap:"wrap",marginBottom:16},tag:{border:"1px solid",borderRadius:12,fontSize:11,padding:"3px 10px",fontWeight:500},connectionsSection:{marginBottom:16},sectionTitle:{fontSize:13,fontWeight:600,color:"#8888a0",marginBottom:8,marginTop:0,textTransform:"uppercase",letterSpacing:1},connectionRow:{display:"flex",justifyContent:"space-between",padding:"6px 0",borderBottom:"1px solid #1e1e2e",fontSize:13},connectionName:{color:"#c4b5fd",fontWeight:500},connectionRel:{color:"#8888a0"},notesSection:{marginBottom:16},notesContent:{fontSize:13,color:"#e0e0e8",lineHeight:1.6,whiteSpace:"pre-wrap",background:"#0a0a0f",borderRadius:8,padding:12},detailActions:{display:"flex",gap:8,marginTop:16},btnEdit:{background:"#1e1e2e",border:"1px solid #333",borderRadius:6,color:"#c4b5fd",cursor:"pointer",fontSize:12,padding:"8px 20px",fontFamily:"inherit",fontWeight:500},btnDelete:{background:"none",border:"1px solid #4a1a1a",borderRadius:6,color:"#f87171",cursor:"pointer",fontSize:12,padding:"8px 20px",fontFamily:"inherit",marginLeft:"auto"},addFormContainer:{background:"#12121a",borderRadius:12,padding:20,marginBottom:16},addFormTitle:{margin:"0 0 16px",fontSize:15,fontWeight:600,color:"#e0e0e8"},cancelFormBtn:{background:"none",border:"none",color:"#8888a0",cursor:"pointer",fontSize:12,padding:"8px 0",fontFamily:"inherit",marginTop:8},formGrid:{display:"flex",flexDirection:"column",gap:12},formRow:{display:"flex",flexDirection:"column",gap:4},formLabel:{fontSize:11,color:"#8888a0",fontWeight:500,textTransform:"uppercase",letterSpacing:.5},formInput:{background:"#0a0a0f",border:"1px solid #333",borderRadius:6,color:"#e0e0e8",padding:"8px 10px",fontSize:13,fontFamily:"inherit",outline:"none"},formTextarea:{background:"#0a0a0f",border:"1px solid #333",borderRadius:6,color:"#e0e0e8",padding:"8px 10px",fontSize:13,fontFamily:"inherit",outline:"none",resize:"vertical"},sourceRow:{display:"flex",gap:8},sourceBtn:{background:"none",border:"1px solid #333",borderRadius:6,color:"#8888a0",cursor:"pointer",fontSize:11,padding:"4px 12px",fontFamily:"inherit",fontWeight:500},sourceBtnActive:{background:"#7c3aed",borderColor:"#7c3aed",color:"#fff"},submitBtn:{background:"#7c3aed",border:"none",borderRadius:6,color:"#fff",cursor:"pointer",fontSize:13,padding:"10px 20px",fontFamily:"inherit",fontWeight:600,marginTop:4}},Gy=`ws://${window.location.hostname}:${window.location.port||3120}`;function Qy(b=768){const[U,j]=X.useState(window.innerWidth<b);return X.useEffect(()=>{const o=()=>j(window.innerWidth<b);return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[b]),U}function Xy(){const[b,U]=X.useState("chat"),j=Qy(),[o,M]=X.useState(!j),{connected:B,messages:O,send:R}=zy(Gy),D=v=>{U(v),j&&M(!1)};return f.jsxs("div",{style:ti.container,children:[j&&!o&&f.jsx("button",{onClick:()=>M(!0),style:ti.hamburger,"aria-label":"Open menu",children:"☰"}),j&&o&&f.jsx("div",{style:ti.backdrop,onClick:()=>M(!1)}),o&&f.jsx(Ey,{view:b,onViewChange:D,connected:B,isMobile:j,onClose:()=>M(!1)}),f.jsxs("main",{style:ti.main,children:[b==="chat"&&f.jsx(Ay,{messages:O,send:R}),b==="events"&&f.jsx(jy,{messages:O}),b==="status"&&f.jsx(_y,{messages:O,send:R}),b==="memory"&&f.jsx(Dy,{send:R,messages:O}),b==="apps"&&f.jsx(Oy,{}),b==="kanban"&&f.jsx(By,{}),b==="crm"&&f.jsx(Hy,{messages:O,send:R})]})]})}const ti={container:{display:"flex",height:"100vh",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",background:"#0a0a0f",color:"#e0e0e8",position:"relative"},main:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},hamburger:{position:"fixed",top:12,left:12,zIndex:100,background:"#1e1e2e",border:"1px solid #2a2a3e",borderRadius:8,color:"#c4b5fd",fontSize:20,padding:"6px 10px",cursor:"pointer",fontFamily:"inherit"},backdrop:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:199}};xy.createRoot(document.getElementById("root")).render(f.jsx(X.StrictMode,{children:f.jsx(Xy,{})}));
|