hippo-memory 1.42.1 → 1.43.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 +1 -1
- package/dist/card-detail.d.ts +14 -0
- package/dist/card-detail.d.ts.map +1 -0
- package/dist/card-detail.js +15 -0
- package/dist/card-detail.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +8 -16
- package/dist/cli.js.map +1 -1
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/dashboard.js +31 -4
- package/dist/dashboard.js.map +1 -1
- package/dist/src/card-detail.js +15 -0
- package/dist/src/card-detail.js.map +1 -0
- package/dist/src/cli.js +8 -16
- package/dist/src/cli.js.map +1 -1
- package/dist/src/dashboard.js +31 -4
- package/dist/src/dashboard.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist-ui/assets/index-BgmA7Hwe.js +61 -0
- package/dist-ui/assets/{index-Bvp8ClXc.css → index-RoXXJ5dq.css} +1 -1
- package/dist-ui/index.html +2 -2
- package/extensions/openclaw-plugin/openclaw.plugin.json +1 -1
- package/extensions/openclaw-plugin/package.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/dist-ui/assets/index-DYCICKZk.js +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import{r as Md,a as n0}from"./react-CEUiQZj-.js";import{C as i0,V as Wt,M as Xa,T as Ga,Q as Fh,S as Wh,a as It,R as u0,P as s0,b as c0,c as ou,O as o0,B as qa,F as $h,d as Ih,U as f0,W as r0,H as h0,N as d0,e as m0,f as Gc,g as y0,h as p0,i as g0,j as v0,k as b0,l as S0,A as x0,m as _0,n as z0,G as T0,L as Oc,o as Hn,p as Ph,q as E0,r as td,s as M0,t as A0,D as D0,u as ed,v as j0}from"./three-BDgTxR1l.js";import{s as O0,l as C0,m as R0,c as U0,a as N0,x as B0,y as H0}from"./d3-BiWEKnn4.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))c(h);new MutationObserver(h=>{for(const y of h)if(y.type==="childList")for(const x of y.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&c(x)}).observe(document,{childList:!0,subtree:!0});function r(h){const y={};return h.integrity&&(y.integrity=h.integrity),h.referrerPolicy&&(y.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?y.credentials="include":h.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function c(h){if(h.ep)return;h.ep=!0;const y=r(h);fetch(h.href,y)}})();var Cc={exports:{}},Ln={};/**
|
|
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 ld;function L0(){if(ld)return Ln;ld=1;var o=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,h,y){var x=null;if(y!==void 0&&(x=""+y),h.key!==void 0&&(x=""+h.key),"key"in h){y={};for(var T in h)T!=="key"&&(y[T]=h[T])}else y=h;return h=y.ref,{$$typeof:o,type:c,key:x,ref:h!==void 0?h:null,props:y}}return Ln.Fragment=u,Ln.jsx=r,Ln.jsxs=r,Ln}var ad;function Y0(){return ad||(ad=1,Cc.exports=L0()),Cc.exports}var d=Y0(),Rc={exports:{}},Yn={},Uc={exports:{}},Nc={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.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 nd;function w0(){return nd||(nd=1,(function(o){function u(A,w){var P=A.length;A.push(w);t:for(;0<P;){var _t=P-1>>>1,zt=A[_t];if(0<h(zt,w))A[_t]=w,A[P]=zt,P=_t;else break t}}function r(A){return A.length===0?null:A[0]}function c(A){if(A.length===0)return null;var w=A[0],P=A.pop();if(P!==w){A[0]=P;t:for(var _t=0,zt=A.length,Qt=zt>>>1;_t<Qt;){var Et=2*(_t+1)-1,rt=A[Et],Dt=Et+1,ve=A[Dt];if(0>h(rt,P))Dt<zt&&0>h(ve,rt)?(A[_t]=ve,A[Dt]=P,_t=Dt):(A[_t]=rt,A[Et]=P,_t=Et);else if(Dt<zt&&0>h(ve,P))A[_t]=ve,A[Dt]=P,_t=Dt;else break t}}return w}function h(A,w){var P=A.sortIndex-w.sortIndex;return P!==0?P:A.id-w.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;o.unstable_now=function(){return y.now()}}else{var x=Date,T=x.now();o.unstable_now=function(){return x.now()-T}}var R=[],U=[],C=1,D=null,_=3,E=!1,N=!1,B=!1,k=!1,tt=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function q(A){for(var w=r(U);w!==null;){if(w.callback===null)c(U);else if(w.startTime<=A)c(U),w.sortIndex=w.expirationTime,u(R,w);else break;w=r(U)}}function I(A){if(B=!1,q(A),!N)if(r(R)!==null)N=!0,Q||(Q=!0,W());else{var w=r(U);w!==null&&Bt(I,w.startTime-A)}}var Q=!1,L=-1,nt=5,Y=-1;function it(){return k?!0:!(o.unstable_now()-Y<nt)}function et(){if(k=!1,Q){var A=o.unstable_now();Y=A;var w=!0;try{t:{N=!1,B&&(B=!1,V(L),L=-1),E=!0;var P=_;try{e:{for(q(A),D=r(R);D!==null&&!(D.expirationTime>A&&it());){var _t=D.callback;if(typeof _t=="function"){D.callback=null,_=D.priorityLevel;var zt=_t(D.expirationTime<=A);if(A=o.unstable_now(),typeof zt=="function"){D.callback=zt,q(A),w=!0;break e}D===r(R)&&c(R),q(A)}else c(R);D=r(R)}if(D!==null)w=!0;else{var Qt=r(U);Qt!==null&&Bt(I,Qt.startTime-A),w=!1}}break t}finally{D=null,_=P,E=!1}w=void 0}}finally{w?W():Q=!1}}}var W;if(typeof Z=="function")W=function(){Z(et)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,J=G.port2;G.port1.onmessage=et,W=function(){J.postMessage(null)}}else W=function(){tt(et,0)};function Bt(A,w){L=tt(function(){A(o.unstable_now())},w)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(A){A.callback=null},o.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<A?Math.floor(1e3/A):5},o.unstable_getCurrentPriorityLevel=function(){return _},o.unstable_next=function(A){switch(_){case 1:case 2:case 3:var w=3;break;default:w=_}var P=_;_=w;try{return A()}finally{_=P}},o.unstable_requestPaint=function(){k=!0},o.unstable_runWithPriority=function(A,w){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var P=_;_=A;try{return w()}finally{_=P}},o.unstable_scheduleCallback=function(A,w,P){var _t=o.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?_t+P:_t):P=_t,A){case 1:var zt=-1;break;case 2:zt=250;break;case 5:zt=1073741823;break;case 4:zt=1e4;break;default:zt=5e3}return zt=P+zt,A={id:C++,callback:w,priorityLevel:A,startTime:P,expirationTime:zt,sortIndex:-1},P>_t?(A.sortIndex=P,u(U,A),r(R)===null&&A===r(U)&&(B?(V(L),L=-1):B=!0,Bt(I,P-_t))):(A.sortIndex=zt,u(R,A),N||E||(N=!0,Q||(Q=!0,W()))),A},o.unstable_shouldYield=it,o.unstable_wrapCallback=function(A){var w=_;return function(){var P=_;_=w;try{return A.apply(this,arguments)}finally{_=P}}}})(Nc)),Nc}var id;function q0(){return id||(id=1,Uc.exports=w0()),Uc.exports}/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom-client.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 ud;function G0(){if(ud)return Yn;ud=1;var o=q0(),u=Md(),r=n0();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function y(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function x(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function T(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function R(t){if(y(t)!==t)throw Error(c(188))}function U(t){var e=t.alternate;if(!e){if(e=y(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return R(n),t;if(i===a)return R(n),e;i=i.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=i;else{for(var s=!1,f=n.child;f;){if(f===l){s=!0,l=n,a=i;break}if(f===a){s=!0,a=n,l=i;break}f=f.sibling}if(!s){for(f=i.child;f;){if(f===l){s=!0,l=i,a=n;break}if(f===a){s=!0,a=i,l=n;break}f=f.sibling}if(!s)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function C(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=C(t),e!==null)return e;t=t.sibling}return null}var D=Object.assign,_=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),et=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=et&&t[et]||t["@@iterator"],typeof t=="function"?t:null)}var G=Symbol.for("react.client.reference");function J(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===G?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case B:return"Fragment";case tt:return"Profiler";case k:return"StrictMode";case I:return"Suspense";case Q:return"SuspenseList";case Y:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case N:return"Portal";case Z:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L:return e=t.displayName||null,e!==null?e:J(t.type)||"Memo";case nt:e=t._payload,t=t._init;try{return J(t(e))}catch{}}return null}var Bt=Array.isArray,A=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},_t=[],zt=-1;function Qt(t){return{current:t}}function Et(t){0>zt||(t.current=_t[zt],_t[zt]=null,zt--)}function rt(t,e){zt++,_t[zt]=t.current,t.current=e}var Dt=Qt(null),ve=Qt(null),Ue=Qt(null),Al=Qt(null);function Fl(t,e){switch(rt(Ue,e),rt(ve,t),rt(Dt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?vh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=vh(e),t=bh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Et(Dt),rt(Dt,t)}function yt(){Et(Dt),Et(ve),Et(Ue)}function Ot(t){t.memoizedState!==null&&rt(Al,t);var e=Dt.current,l=bh(e,t.type);e!==l&&(rt(ve,t),rt(Dt,l))}function Pt(t){ve.current===t&&(Et(Dt),Et(ve)),Al.current===t&&(Et(Al),Rn._currentValue=P)}var Dl,Kc;function jl(t){if(Dl===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Dl=e&&e[1]||"",Kc=-1<l.stack.indexOf(`
|
|
26
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
-
`+Dl+t+Kc}var du=!1;function mu(t,e){if(!t||du)return"";du=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(z){var S=z}Reflect.construct(t,[],O)}else{try{O.call()}catch(z){S=z}t.call(O.prototype)}}else{try{throw Error()}catch(z){S=z}(O=t())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(z){if(z&&S&&typeof z.stack=="string")return[z.stack,S.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),s=i[0],f=i[1];if(s&&f){var m=s.split(`
|
|
28
|
-
`),b=f.split(`
|
|
29
|
-
`);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===b.length)for(a=m.length-1,n=b.length-1;1<=a&&0<=n&&m[a]!==b[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==b[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==b[n]){var M=`
|
|
30
|
-
`+m[a].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=a&&0<=n);break}}}finally{du=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?jl(l):""}function Bd(t,e){switch(t.tag){case 26:case 27:case 5:return jl(t.type);case 16:return jl("Lazy");case 13:return t.child!==e&&e!==null?jl("Suspense Fallback"):jl("Suspense");case 19:return jl("SuspenseList");case 0:case 15:return mu(t.type,!1);case 11:return mu(t.type.render,!1);case 1:return mu(t.type,!0);case 31:return jl("Activity");default:return""}}function kc(t){try{var e="",l=null;do e+=Bd(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
|
|
31
|
-
Error generating stack: `+a.message+`
|
|
32
|
-
`+a.stack}}var yu=Object.prototype.hasOwnProperty,pu=o.unstable_scheduleCallback,gu=o.unstable_cancelCallback,Hd=o.unstable_shouldYield,Ld=o.unstable_requestPaint,ce=o.unstable_now,Yd=o.unstable_getCurrentPriorityLevel,Jc=o.unstable_ImmediatePriority,Fc=o.unstable_UserBlockingPriority,qn=o.unstable_NormalPriority,wd=o.unstable_LowPriority,Wc=o.unstable_IdlePriority,qd=o.log,Gd=o.unstable_setDisableYieldValue,Za=null,oe=null;function ll(t){if(typeof qd=="function"&&Gd(t),oe&&typeof oe.setStrictMode=="function")try{oe.setStrictMode(Za,t)}catch{}}var fe=Math.clz32?Math.clz32:Qd,Xd=Math.log,Zd=Math.LN2;function Qd(t){return t>>>=0,t===0?32:31-(Xd(t)/Zd|0)|0}var Gn=256,Xn=262144,Zn=4194304;function Ol(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Qn(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var f=a&134217727;return f!==0?(a=f&~i,a!==0?n=Ol(a):(s&=f,s!==0?n=Ol(s):l||(l=f&~t,l!==0&&(n=Ol(l))))):(f=a&~i,f!==0?n=Ol(f):s!==0?n=Ol(s):l||(l=a&~t,l!==0&&(n=Ol(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function Qa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Vd(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 $c(){var t=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),t}function vu(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Va(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Kd(t,e,l,a,n,i){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var f=t.entanglements,m=t.expirationTimes,b=t.hiddenUpdates;for(l=s&~l;0<l;){var M=31-fe(l),O=1<<M;f[M]=0,m[M]=-1;var S=b[M];if(S!==null)for(b[M]=null,M=0;M<S.length;M++){var z=S[M];z!==null&&(z.lane&=-536870913)}l&=~O}a!==0&&Ic(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(s&~e))}function Ic(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-fe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Pc(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-fe(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function to(t,e){var l=e&-e;return l=(l&42)!==0?1:bu(l),(l&(t.suspendedLanes|e))!==0?0:l}function bu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Su(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function eo(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:Xh(t.type))}function lo(t,e){var l=w.p;try{return w.p=t,e()}finally{w.p=l}}var al=Math.random().toString(36).slice(2),Vt="__reactFiber$"+al,te="__reactProps$"+al,Wl="__reactContainer$"+al,xu="__reactEvents$"+al,kd="__reactListeners$"+al,Jd="__reactHandles$"+al,ao="__reactResources$"+al,Ka="__reactMarker$"+al;function _u(t){delete t[Vt],delete t[te],delete t[xu],delete t[kd],delete t[Jd]}function $l(t){var e=t[Vt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Wl]||l[Vt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Mh(t);t!==null;){if(l=t[Vt])return l;t=Mh(t)}return e}t=l,l=t.parentNode}return null}function Il(t){if(t=t[Vt]||t[Wl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ka(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Pl(t){var e=t[ao];return e||(e=t[ao]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Xt(t){t[Ka]=!0}var no=new Set,io={};function Cl(t,e){ta(t,e),ta(t+"Capture",e)}function ta(t,e){for(io[t]=e,t=0;t<e.length;t++)no.add(e[t])}var Fd=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]*$"),uo={},so={};function Wd(t){return yu.call(so,t)?!0:yu.call(uo,t)?!1:Fd.test(t)?so[t]=!0:(uo[t]=!0,!1)}function Vn(t,e,l){if(Wd(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Kn(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Ye(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function co(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $d(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function zu(t){if(!t._valueTracker){var e=co(t)?"checked":"value";t._valueTracker=$d(t,e,""+t[e])}}function oo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=co(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function kn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Id=/[\n"\\]/g;function Se(t){return t.replace(Id,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Tu(t,e,l,a,n,i,s,f){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+be(e)):t.value!==""+be(e)&&(t.value=""+be(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?Eu(t,s,be(e)):l!=null?Eu(t,s,be(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+be(f):t.removeAttribute("name")}function fo(t,e,l,a,n,i,s,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){zu(t);return}l=l!=null?""+be(l):"",e=e!=null?""+be(e):l,f||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),zu(t)}function Eu(t,e,l){e==="number"&&kn(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ea(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+be(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function ro(t,e,l){if(e!=null&&(e=""+be(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+be(l):""}function ho(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(c(92));if(Bt(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=be(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),zu(t)}function la(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Pd=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 mo(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Pd.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function yo(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&mo(t,n,a)}else for(var i in e)e.hasOwnProperty(i)&&mo(t,i,e[i])}function Mu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),em=/^[\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 Jn(t){return em.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function we(){}var Au=null;function Du(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var aa=null,na=null;function po(t){var e=Il(t);if(e&&(t=e.stateNode)){var l=t[te]||null;t:switch(t=e.stateNode,e.type){case"input":if(Tu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Se(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[te]||null;if(!n)throw Error(c(90));Tu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&oo(a)}break t;case"textarea":ro(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ea(t,!!l.multiple,e,!1)}}}var ju=!1;function go(t,e,l){if(ju)return t(e,l);ju=!0;try{var a=t(e);return a}finally{if(ju=!1,(aa!==null||na!==null)&&(Bi(),aa&&(e=aa,t=na,na=aa=null,po(e),t)))for(e=0;e<t.length;e++)po(t[e])}}function Ja(t,e){var l=t.stateNode;if(l===null)return null;var a=l[te]||null;if(a===null)return null;l=a[e];t:switch(e){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ou=!1;if(qe)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Ou=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{Ou=!1}var nl=null,Cu=null,Fn=null;function vo(){if(Fn)return Fn;var t,e=Cu,l=e.length,a,n="value"in nl?nl.value:nl.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var s=l-t;for(a=1;a<=s&&e[l-a]===n[i-a];a++);return Fn=n.slice(t,1<a?1-a:void 0)}function Wn(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function $n(){return!0}function bo(){return!1}function ee(t){function e(l,a,n,i,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(l=t[f],this[f]=l?l(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?$n:bo,this.isPropagationStopped=bo,this}return D(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=$n)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=$n)},persist:function(){},isPersistent:$n}),e}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=ee(Rl),Wa=D({},Rl,{view:0,detail:0}),lm=ee(Wa),Ru,Uu,$a,Pn=D({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$a&&($a&&t.type==="mousemove"?(Ru=t.screenX-$a.screenX,Uu=t.screenY-$a.screenY):Uu=Ru=0,$a=t),Ru)},movementY:function(t){return"movementY"in t?t.movementY:Uu}}),So=ee(Pn),am=D({},Pn,{dataTransfer:0}),nm=ee(am),im=D({},Wa,{relatedTarget:0}),Nu=ee(im),um=D({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),sm=ee(um),cm=D({},Rl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),om=ee(cm),fm=D({},Rl,{data:0}),xo=ee(fm),rm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mm(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=dm[t])?!!e[t]:!1}function Bu(){return mm}var ym=D({},Wa,{key:function(t){if(t.key){var e=rm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Wn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?hm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bu,charCode:function(t){return t.type==="keypress"?Wn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Wn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),pm=ee(ym),gm=D({},Pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_o=ee(gm),vm=D({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bu}),bm=ee(vm),Sm=D({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),xm=ee(Sm),_m=D({},Pn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),zm=ee(_m),Tm=D({},Rl,{newState:0,oldState:0}),Em=ee(Tm),Mm=[9,13,27,32],Hu=qe&&"CompositionEvent"in window,Ia=null;qe&&"documentMode"in document&&(Ia=document.documentMode);var Am=qe&&"TextEvent"in window&&!Ia,zo=qe&&(!Hu||Ia&&8<Ia&&11>=Ia),To=" ",Eo=!1;function Mo(t,e){switch(t){case"keyup":return Mm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ao(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ia=!1;function Dm(t,e){switch(t){case"compositionend":return Ao(e);case"keypress":return e.which!==32?null:(Eo=!0,To);case"textInput":return t=e.data,t===To&&Eo?null:t;default:return null}}function jm(t,e){if(ia)return t==="compositionend"||!Hu&&Mo(t,e)?(t=vo(),Fn=Cu=nl=null,ia=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return zo&&e.locale!=="ko"?null:e.data;default:return null}}var Om={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 Do(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Om[t.type]:e==="textarea"}function jo(t,e,l,a){aa?na?na.push(a):na=[a]:aa=a,e=Xi(e,"onChange"),0<e.length&&(l=new In("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var Pa=null,tn=null;function Cm(t){hh(t,0)}function ti(t){var e=ka(t);if(oo(e))return t}function Oo(t,e){if(t==="change")return e}var Co=!1;if(qe){var Lu;if(qe){var Yu="oninput"in document;if(!Yu){var Ro=document.createElement("div");Ro.setAttribute("oninput","return;"),Yu=typeof Ro.oninput=="function"}Lu=Yu}else Lu=!1;Co=Lu&&(!document.documentMode||9<document.documentMode)}function Uo(){Pa&&(Pa.detachEvent("onpropertychange",No),tn=Pa=null)}function No(t){if(t.propertyName==="value"&&ti(tn)){var e=[];jo(e,tn,t,Du(t)),go(Cm,e)}}function Rm(t,e,l){t==="focusin"?(Uo(),Pa=e,tn=l,Pa.attachEvent("onpropertychange",No)):t==="focusout"&&Uo()}function Um(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ti(tn)}function Nm(t,e){if(t==="click")return ti(e)}function Bm(t,e){if(t==="input"||t==="change")return ti(e)}function Hm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var re=typeof Object.is=="function"?Object.is:Hm;function en(t,e){if(re(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!yu.call(e,n)||!re(t[n],e[n]))return!1}return!0}function Bo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ho(t,e){var l=Bo(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Bo(l)}}function Lo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Lo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Yo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=kn(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=kn(t.document)}return e}function wu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Lm=qe&&"documentMode"in document&&11>=document.documentMode,ua=null,qu=null,ln=null,Gu=!1;function wo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gu||ua==null||ua!==kn(a)||(a=ua,"selectionStart"in a&&wu(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}),ln&&en(ln,a)||(ln=a,a=Xi(qu,"onSelect"),0<a.length&&(e=new In("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=ua)))}function Ul(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var sa={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionrun:Ul("Transition","TransitionRun"),transitionstart:Ul("Transition","TransitionStart"),transitioncancel:Ul("Transition","TransitionCancel"),transitionend:Ul("Transition","TransitionEnd")},Xu={},qo={};qe&&(qo=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 Nl(t){if(Xu[t])return Xu[t];if(!sa[t])return t;var e=sa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in qo)return Xu[t]=e[l];return t}var Go=Nl("animationend"),Xo=Nl("animationiteration"),Zo=Nl("animationstart"),Ym=Nl("transitionrun"),wm=Nl("transitionstart"),qm=Nl("transitioncancel"),Qo=Nl("transitionend"),Vo=new Map,Zu="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(" ");Zu.push("scrollEnd");function je(t,e){Vo.set(t,e),Cl(e,[t])}var ei=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},xe=[],ca=0,Qu=0;function li(){for(var t=ca,e=Qu=ca=0;e<t;){var l=xe[e];xe[e++]=null;var a=xe[e];xe[e++]=null;var n=xe[e];xe[e++]=null;var i=xe[e];if(xe[e++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}i!==0&&Ko(l,n,i)}}function ai(t,e,l,a){xe[ca++]=t,xe[ca++]=e,xe[ca++]=l,xe[ca++]=a,Qu|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Vu(t,e,l,a){return ai(t,e,l,a),ni(t)}function Bl(t,e){return ai(t,null,null,e),ni(t)}function Ko(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-fe(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function ni(t){if(50<En)throw En=0,tc=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var oa={};function Gm(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 he(t,e,l,a){return new Gm(t,e,l,a)}function Ku(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ge(t,e){var l=t.alternate;return l===null?(l=he(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function ko(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ii(t,e,l,a,n,i){var s=0;if(a=t,typeof t=="function")Ku(t)&&(s=1);else if(typeof t=="string")s=Ky(t,l,Dt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Y:return t=he(31,l,e,n),t.elementType=Y,t.lanes=i,t;case B:return Hl(l.children,n,i,e);case k:s=8,n|=24;break;case tt:return t=he(12,l,e,n|2),t.elementType=tt,t.lanes=i,t;case I:return t=he(13,l,e,n),t.elementType=I,t.lanes=i,t;case Q:return t=he(19,l,e,n),t.elementType=Q,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z:s=10;break t;case V:s=9;break t;case q:s=11;break t;case L:s=14;break t;case nt:s=16,a=null;break t}s=29,l=Error(c(130,t===null?"null":typeof t,"")),a=null}return e=he(s,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function Hl(t,e,l,a){return t=he(7,t,a,e),t.lanes=l,t}function ku(t,e,l){return t=he(6,t,null,e),t.lanes=l,t}function Jo(t){var e=he(18,null,null,0);return e.stateNode=t,e}function Ju(t,e,l){return e=he(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Fo=new WeakMap;function _e(t,e){if(typeof t=="object"&&t!==null){var l=Fo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:kc(e)},Fo.set(t,e),e)}return{value:t,source:e,stack:kc(e)}}var fa=[],ra=0,ui=null,an=0,ze=[],Te=0,il=null,Ne=1,Be="";function Xe(t,e){fa[ra++]=an,fa[ra++]=ui,ui=t,an=e}function Wo(t,e,l){ze[Te++]=Ne,ze[Te++]=Be,ze[Te++]=il,il=t;var a=Ne;t=Be;var n=32-fe(a)-1;a&=~(1<<n),l+=1;var i=32-fe(e)+n;if(30<i){var s=n-n%5;i=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Ne=1<<32-fe(e)+n|l<<n|a,Be=i+t}else Ne=1<<i|l<<n|a,Be=t}function Fu(t){t.return!==null&&(Xe(t,1),Wo(t,1,0))}function Wu(t){for(;t===ui;)ui=fa[--ra],fa[ra]=null,an=fa[--ra],fa[ra]=null;for(;t===il;)il=ze[--Te],ze[Te]=null,Be=ze[--Te],ze[Te]=null,Ne=ze[--Te],ze[Te]=null}function $o(t,e){ze[Te++]=Ne,ze[Te++]=Be,ze[Te++]=il,Ne=e.id,Be=e.overflow,il=t}var Kt=null,Mt=null,ft=!1,ul=null,Ee=!1,$u=Error(c(519));function sl(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nn(_e(e,t)),$u}function Io(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Vt]=t,e[te]=a,l){case"dialog":st("cancel",e),st("close",e);break;case"iframe":case"object":case"embed":st("load",e);break;case"video":case"audio":for(l=0;l<An.length;l++)st(An[l],e);break;case"source":st("error",e);break;case"img":case"image":case"link":st("error",e),st("load",e);break;case"details":st("toggle",e);break;case"input":st("invalid",e),fo(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":st("invalid",e);break;case"textarea":st("invalid",e),ho(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||ph(e.textContent,l)?(a.popover!=null&&(st("beforetoggle",e),st("toggle",e)),a.onScroll!=null&&st("scroll",e),a.onScrollEnd!=null&&st("scrollend",e),a.onClick!=null&&(e.onclick=we),e=!0):e=!1,e||sl(t,!0)}function Po(t){for(Kt=t.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Ee=!1;return;case 27:case 3:Ee=!0;return;default:Kt=Kt.return}}function ha(t){if(t!==Kt)return!1;if(!ft)return Po(t),ft=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||yc(t.type,t.memoizedProps)),l=!l),l&&Mt&&sl(t),Po(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Mt=Eh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Mt=Eh(t)}else e===27?(e=Mt,xl(t.type)?(t=Sc,Sc=null,Mt=t):Mt=e):Mt=Kt?Ae(t.stateNode.nextSibling):null;return!0}function Ll(){Mt=Kt=null,ft=!1}function Iu(){var t=ul;return t!==null&&(ie===null?ie=t:ie.push.apply(ie,t),ul=null),t}function nn(t){ul===null?ul=[t]:ul.push(t)}var Pu=Qt(null),Yl=null,Ze=null;function cl(t,e,l){rt(Pu,e._currentValue),e._currentValue=l}function Qe(t){t._currentValue=Pu.current,Et(Pu)}function ts(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function es(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var s=n.child;i=i.firstContext;t:for(;i!==null;){var f=i;i=n;for(var m=0;m<e.length;m++)if(f.context===e[m]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),ts(i.return,l,t),a||(s=null);break t}i=f.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(c(341));s.lanes|=l,i=s.alternate,i!==null&&(i.lanes|=l),ts(s,l,t),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function da(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(c(387));if(s=s.memoizedProps,s!==null){var f=n.type;re(n.pendingProps.value,s.value)||(t!==null?t.push(f):t=[f])}}else if(n===Al.current){if(s=n.alternate,s===null)throw Error(c(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Rn):t=[Rn])}n=n.return}t!==null&&es(e,t,l,a),e.flags|=262144}function si(t){for(t=t.firstContext;t!==null;){if(!re(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function wl(t){Yl=t,Ze=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function kt(t){return tf(Yl,t)}function ci(t,e){return Yl===null&&wl(t),tf(t,e)}function tf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ze===null){if(t===null)throw Error(c(308));Ze=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ze=Ze.next=e;return l}var Xm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Zm=o.unstable_scheduleCallback,Qm=o.unstable_NormalPriority,Ht={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ls(){return{controller:new Xm,data:new Map,refCount:0}}function un(t){t.refCount--,t.refCount===0&&Zm(Qm,function(){t.controller.abort()})}var sn=null,as=0,ma=0,ya=null;function Vm(t,e){if(sn===null){var l=sn=[];as=0,ma=uc(),ya={status:"pending",value:void 0,then:function(a){l.push(a)}}}return as++,e.then(ef,ef),e}function ef(){if(--as===0&&sn!==null){ya!==null&&(ya.status="fulfilled");var t=sn;sn=null,ma=0,ya=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Km(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var lf=A.S;A.S=function(t,e){qr=ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Vm(t,e),lf!==null&&lf(t,e)};var ql=Qt(null);function ns(){var t=ql.current;return t!==null?t:Tt.pooledCache}function oi(t,e){e===null?rt(ql,ql.current):rt(ql,e.pool)}function af(){var t=ns();return t===null?null:{parent:Ht._currentValue,pool:t}}var pa=Error(c(460)),is=Error(c(474)),fi=Error(c(542)),ri={then:function(){}};function nf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function uf(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(we,we),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cf(t),t;default:if(typeof e.status=="string")e.then(we,we);else{if(t=Tt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,cf(t),t}throw Xl=e,pa}}function Gl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,pa):l}}var Xl=null;function sf(){if(Xl===null)throw Error(c(459));var t=Xl;return Xl=null,t}function cf(t){if(t===pa||t===fi)throw Error(c(483))}var ga=null,cn=0;function hi(t){var e=cn;return cn+=1,ga===null&&(ga=[]),uf(ga,t,e)}function on(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function di(t,e){throw e.$$typeof===_?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function of(t){function e(g,p){if(t){var v=g.deletions;v===null?(g.deletions=[p],g.flags|=16):v.push(p)}}function l(g,p){if(!t)return null;for(;p!==null;)e(g,p),p=p.sibling;return null}function a(g){for(var p=new Map;g!==null;)g.key!==null?p.set(g.key,g):p.set(g.index,g),g=g.sibling;return p}function n(g,p){return g=Ge(g,p),g.index=0,g.sibling=null,g}function i(g,p,v){return g.index=v,t?(v=g.alternate,v!==null?(v=v.index,v<p?(g.flags|=67108866,p):v):(g.flags|=67108866,p)):(g.flags|=1048576,p)}function s(g){return t&&g.alternate===null&&(g.flags|=67108866),g}function f(g,p,v,j){return p===null||p.tag!==6?(p=ku(v,g.mode,j),p.return=g,p):(p=n(p,v),p.return=g,p)}function m(g,p,v,j){var F=v.type;return F===B?M(g,p,v.props.children,j,v.key):p!==null&&(p.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===nt&&Gl(F)===p.type)?(p=n(p,v.props),on(p,v),p.return=g,p):(p=ii(v.type,v.key,v.props,null,g.mode,j),on(p,v),p.return=g,p)}function b(g,p,v,j){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=Ju(v,g.mode,j),p.return=g,p):(p=n(p,v.children||[]),p.return=g,p)}function M(g,p,v,j,F){return p===null||p.tag!==7?(p=Hl(v,g.mode,j,F),p.return=g,p):(p=n(p,v),p.return=g,p)}function O(g,p,v){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=ku(""+p,g.mode,v),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case E:return v=ii(p.type,p.key,p.props,null,g.mode,v),on(v,p),v.return=g,v;case N:return p=Ju(p,g.mode,v),p.return=g,p;case nt:return p=Gl(p),O(g,p,v)}if(Bt(p)||W(p))return p=Hl(p,g.mode,v,null),p.return=g,p;if(typeof p.then=="function")return O(g,hi(p),v);if(p.$$typeof===Z)return O(g,ci(g,p),v);di(g,p)}return null}function S(g,p,v,j){var F=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return F!==null?null:f(g,p,""+v,j);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case E:return v.key===F?m(g,p,v,j):null;case N:return v.key===F?b(g,p,v,j):null;case nt:return v=Gl(v),S(g,p,v,j)}if(Bt(v)||W(v))return F!==null?null:M(g,p,v,j,null);if(typeof v.then=="function")return S(g,p,hi(v),j);if(v.$$typeof===Z)return S(g,p,ci(g,v),j);di(g,v)}return null}function z(g,p,v,j,F){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return g=g.get(v)||null,f(p,g,""+j,F);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case E:return g=g.get(j.key===null?v:j.key)||null,m(p,g,j,F);case N:return g=g.get(j.key===null?v:j.key)||null,b(p,g,j,F);case nt:return j=Gl(j),z(g,p,v,j,F)}if(Bt(j)||W(j))return g=g.get(v)||null,M(p,g,j,F,null);if(typeof j.then=="function")return z(g,p,v,hi(j),F);if(j.$$typeof===Z)return z(g,p,v,ci(p,j),F);di(p,j)}return null}function X(g,p,v,j){for(var F=null,ht=null,K=p,at=p=0,ot=null;K!==null&&at<v.length;at++){K.index>at?(ot=K,K=null):ot=K.sibling;var dt=S(g,K,v[at],j);if(dt===null){K===null&&(K=ot);break}t&&K&&dt.alternate===null&&e(g,K),p=i(dt,p,at),ht===null?F=dt:ht.sibling=dt,ht=dt,K=ot}if(at===v.length)return l(g,K),ft&&Xe(g,at),F;if(K===null){for(;at<v.length;at++)K=O(g,v[at],j),K!==null&&(p=i(K,p,at),ht===null?F=K:ht.sibling=K,ht=K);return ft&&Xe(g,at),F}for(K=a(K);at<v.length;at++)ot=z(K,g,at,v[at],j),ot!==null&&(t&&ot.alternate!==null&&K.delete(ot.key===null?at:ot.key),p=i(ot,p,at),ht===null?F=ot:ht.sibling=ot,ht=ot);return t&&K.forEach(function(Ml){return e(g,Ml)}),ft&&Xe(g,at),F}function $(g,p,v,j){if(v==null)throw Error(c(151));for(var F=null,ht=null,K=p,at=p=0,ot=null,dt=v.next();K!==null&&!dt.done;at++,dt=v.next()){K.index>at?(ot=K,K=null):ot=K.sibling;var Ml=S(g,K,dt.value,j);if(Ml===null){K===null&&(K=ot);break}t&&K&&Ml.alternate===null&&e(g,K),p=i(Ml,p,at),ht===null?F=Ml:ht.sibling=Ml,ht=Ml,K=ot}if(dt.done)return l(g,K),ft&&Xe(g,at),F;if(K===null){for(;!dt.done;at++,dt=v.next())dt=O(g,dt.value,j),dt!==null&&(p=i(dt,p,at),ht===null?F=dt:ht.sibling=dt,ht=dt);return ft&&Xe(g,at),F}for(K=a(K);!dt.done;at++,dt=v.next())dt=z(K,g,at,dt.value,j),dt!==null&&(t&&dt.alternate!==null&&K.delete(dt.key===null?at:dt.key),p=i(dt,p,at),ht===null?F=dt:ht.sibling=dt,ht=dt);return t&&K.forEach(function(a0){return e(g,a0)}),ft&&Xe(g,at),F}function St(g,p,v,j){if(typeof v=="object"&&v!==null&&v.type===B&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case E:t:{for(var F=v.key;p!==null;){if(p.key===F){if(F=v.type,F===B){if(p.tag===7){l(g,p.sibling),j=n(p,v.props.children),j.return=g,g=j;break t}}else if(p.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===nt&&Gl(F)===p.type){l(g,p.sibling),j=n(p,v.props),on(j,v),j.return=g,g=j;break t}l(g,p);break}else e(g,p);p=p.sibling}v.type===B?(j=Hl(v.props.children,g.mode,j,v.key),j.return=g,g=j):(j=ii(v.type,v.key,v.props,null,g.mode,j),on(j,v),j.return=g,g=j)}return s(g);case N:t:{for(F=v.key;p!==null;){if(p.key===F)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){l(g,p.sibling),j=n(p,v.children||[]),j.return=g,g=j;break t}else{l(g,p);break}else e(g,p);p=p.sibling}j=Ju(v,g.mode,j),j.return=g,g=j}return s(g);case nt:return v=Gl(v),St(g,p,v,j)}if(Bt(v))return X(g,p,v,j);if(W(v)){if(F=W(v),typeof F!="function")throw Error(c(150));return v=F.call(v),$(g,p,v,j)}if(typeof v.then=="function")return St(g,p,hi(v),j);if(v.$$typeof===Z)return St(g,p,ci(g,v),j);di(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,p!==null&&p.tag===6?(l(g,p.sibling),j=n(p,v),j.return=g,g=j):(l(g,p),j=ku(v,g.mode,j),j.return=g,g=j),s(g)):l(g,p)}return function(g,p,v,j){try{cn=0;var F=St(g,p,v,j);return ga=null,F}catch(K){if(K===pa||K===fi)throw K;var ht=he(29,K,null,g.mode);return ht.lanes=j,ht.return=g,ht}finally{}}}var Zl=of(!0),ff=of(!1),ol=!1;function us(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function fl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function rl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(mt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=ni(t),Ko(t,null,l),e}return ai(t,a,e,l),ni(t)}function fn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Pc(t,l)}}function cs(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=s:i=i.next=s,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var os=!1;function rn(){if(os){var t=ya;if(t!==null)throw t}}function hn(t,e,l,a){os=!1;var n=t.updateQueue;ol=!1;var i=n.firstBaseUpdate,s=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var m=f,b=m.next;m.next=null,s===null?i=b:s.next=b,s=m;var M=t.alternate;M!==null&&(M=M.updateQueue,f=M.lastBaseUpdate,f!==s&&(f===null?M.firstBaseUpdate=b:f.next=b,M.lastBaseUpdate=m))}if(i!==null){var O=n.baseState;s=0,M=b=m=null,f=i;do{var S=f.lane&-536870913,z=S!==f.lane;if(z?(ct&S)===S:(a&S)===S){S!==0&&S===ma&&(os=!0),M!==null&&(M=M.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var X=t,$=f;S=e;var St=l;switch($.tag){case 1:if(X=$.payload,typeof X=="function"){O=X.call(St,O,S);break t}O=X;break t;case 3:X.flags=X.flags&-65537|128;case 0:if(X=$.payload,S=typeof X=="function"?X.call(St,O,S):X,S==null)break t;O=D({},O,S);break t;case 2:ol=!0}}S=f.callback,S!==null&&(t.flags|=64,z&&(t.flags|=8192),z=n.callbacks,z===null?n.callbacks=[S]:z.push(S))}else z={lane:S,tag:f.tag,payload:f.payload,callback:f.callback,next:null},M===null?(b=M=z,m=O):M=M.next=z,s|=S;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;z=f,f=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);M===null&&(m=O),n.baseState=m,n.firstBaseUpdate=b,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),pl|=s,t.lanes=s,t.memoizedState=O}}function rf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function hf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)rf(l[t],e)}var va=Qt(null),mi=Qt(0);function df(t,e){t=Pe,rt(mi,t),rt(va,e),Pe=t|e.baseLanes}function fs(){rt(mi,Pe),rt(va,va.current)}function rs(){Pe=mi.current,Et(va),Et(mi)}var de=Qt(null),Me=null;function hl(t){var e=t.alternate;rt(Ut,Ut.current&1),rt(de,t),Me===null&&(e===null||va.current!==null||e.memoizedState!==null)&&(Me=t)}function hs(t){rt(Ut,Ut.current),rt(de,t),Me===null&&(Me=t)}function mf(t){t.tag===22?(rt(Ut,Ut.current),rt(de,t),Me===null&&(Me=t)):dl()}function dl(){rt(Ut,Ut.current),rt(de,de.current)}function me(t){Et(de),Me===t&&(Me=null),Et(Ut)}var Ut=Qt(0);function yi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||vc(l)||bc(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ve=0,lt=null,vt=null,Lt=null,pi=!1,ba=!1,Ql=!1,gi=0,dn=0,Sa=null,km=0;function Ct(){throw Error(c(321))}function ds(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!re(t[l],e[l]))return!1;return!0}function ms(t,e,l,a,n,i){return Ve=i,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?$f:js,Ql=!1,i=l(a,n),Ql=!1,ba&&(i=pf(e,l,a,n)),yf(t),i}function yf(t){A.H=pn;var e=vt!==null&&vt.next!==null;if(Ve=0,Lt=vt=lt=null,pi=!1,dn=0,Sa=null,e)throw Error(c(300));t===null||Yt||(t=t.dependencies,t!==null&&si(t)&&(Yt=!0))}function pf(t,e,l,a){lt=t;var n=0;do{if(ba&&(Sa=null),dn=0,ba=!1,25<=n)throw Error(c(301));if(n+=1,Lt=vt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}A.H=If,i=e(l,a)}while(ba);return i}function Jm(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?mn(e):e,t=t.useState()[0],(vt!==null?vt.memoizedState:null)!==t&&(lt.flags|=1024),e}function ys(){var t=gi!==0;return gi=0,t}function ps(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function gs(t){if(pi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}pi=!1}Ve=0,Lt=vt=lt=null,ba=!1,dn=gi=0,Sa=null}function $t(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?lt.memoizedState=Lt=t:Lt=Lt.next=t,Lt}function Nt(){if(vt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=vt.next;var e=Lt===null?lt.memoizedState:Lt.next;if(e!==null)Lt=e,vt=t;else{if(t===null)throw lt.alternate===null?Error(c(467)):Error(c(310));vt=t,t={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},Lt===null?lt.memoizedState=Lt=t:Lt=Lt.next=t}return Lt}function vi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mn(t){var e=dn;return dn+=1,Sa===null&&(Sa=[]),t=uf(Sa,t,e),e=lt,(Lt===null?e.memoizedState:Lt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?$f:js),t}function bi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return mn(t);if(t.$$typeof===Z)return kt(t)}throw Error(c(438,String(t)))}function vs(t){var e=null,l=lt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=lt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=vi(),lt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=it;return e.index++,l}function Ke(t,e){return typeof e=="function"?e(t):e}function Si(t){var e=Nt();return bs(e,vt,t)}function bs(t,e,l){var a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var s=n.next;n.next=i.next,i.next=s}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var f=s=null,m=null,b=e,M=!1;do{var O=b.lane&-536870913;if(O!==b.lane?(ct&O)===O:(Ve&O)===O){var S=b.revertLane;if(S===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),O===ma&&(M=!0);else if((Ve&S)===S){b=b.next,S===ma&&(M=!0);continue}else O={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},m===null?(f=m=O,s=i):m=m.next=O,lt.lanes|=S,pl|=S;O=b.action,Ql&&l(i,O),i=b.hasEagerState?b.eagerState:l(i,O)}else S={lane:O,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},m===null?(f=m=S,s=i):m=m.next=S,lt.lanes|=O,pl|=O;b=b.next}while(b!==null&&b!==e);if(m===null?s=i:m.next=f,!re(i,t.memoizedState)&&(Yt=!0,M&&(l=ya,l!==null)))throw l;t.memoizedState=i,t.baseState=s,t.baseQueue=m,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Ss(t){var e=Nt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do i=t(i,s.action),s=s.next;while(s!==n);re(i,e.memoizedState)||(Yt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function gf(t,e,l){var a=lt,n=Nt(),i=ft;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=e();var s=!re((vt||n).memoizedState,l);if(s&&(n.memoizedState=l,Yt=!0),n=n.queue,zs(Sf.bind(null,a,n,t),[t]),n.getSnapshot!==e||s||Lt!==null&&Lt.memoizedState.tag&1){if(a.flags|=2048,xa(9,{destroy:void 0},bf.bind(null,a,n,l,e),null),Tt===null)throw Error(c(349));i||(Ve&127)!==0||vf(a,e,l)}return l}function vf(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=lt.updateQueue,e===null?(e=vi(),lt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function bf(t,e,l,a){e.value=l,e.getSnapshot=a,xf(e)&&_f(t)}function Sf(t,e,l){return l(function(){xf(e)&&_f(t)})}function xf(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!re(t,l)}catch{return!0}}function _f(t){var e=Bl(t,2);e!==null&&ue(e,t,2)}function xs(t){var e=$t();if(typeof t=="function"){var l=t;if(t=l(),Ql){ll(!0);try{l()}finally{ll(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:t},e}function zf(t,e,l,a){return t.baseState=l,bs(t,vt,typeof a=="function"?a:Ke)}function Fm(t,e,l,a,n){if(zi(t))throw Error(c(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};A.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,Tf(e,i)):(i.next=l.next,e.pending=l.next=i)}}function Tf(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=A.T,s={};A.T=s;try{var f=l(n,a),m=A.S;m!==null&&m(s,f),Ef(t,e,f)}catch(b){_s(t,e,b)}finally{i!==null&&s.types!==null&&(i.types=s.types),A.T=i}}else try{i=l(n,a),Ef(t,e,i)}catch(b){_s(t,e,b)}}function Ef(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Mf(t,e,a)},function(a){return _s(t,e,a)}):Mf(t,e,l)}function Mf(t,e,l){e.status="fulfilled",e.value=l,Af(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Tf(t,l)))}function _s(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Af(e),e=e.next;while(e!==a)}t.action=null}function Af(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Df(t,e){return e}function jf(t,e){if(ft){var l=Tt.formState;if(l!==null){t:{var a=lt;if(ft){if(Mt){e:{for(var n=Mt,i=Ee;n.nodeType!==8;){if(!i){n=null;break e}if(n=Ae(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Mt=Ae(n.nextSibling),a=n.data==="F!";break t}}sl(a)}a=!1}a&&(e=l[0])}}return l=$t(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:e},l.queue=a,l=Jf.bind(null,lt,a),a.dispatch=l,a=xs(!1),i=Ds.bind(null,lt,!1,a.queue),a=$t(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Fm.bind(null,lt,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function Of(t){var e=Nt();return Cf(e,vt,t)}function Cf(t,e,l){if(e=bs(t,e,Df)[0],t=Si(Ke)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=mn(e)}catch(s){throw s===pa?fi:s}else a=e;e=Nt();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(lt.flags|=2048,xa(9,{destroy:void 0},Wm.bind(null,n,l),null)),[a,i,t]}function Wm(t,e){t.action=e}function Rf(t){var e=Nt(),l=vt;if(l!==null)return Cf(e,l,t);Nt(),e=e.memoizedState,l=Nt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function xa(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=lt.updateQueue,e===null&&(e=vi(),lt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Uf(){return Nt().memoizedState}function xi(t,e,l,a){var n=$t();lt.flags|=t,n.memoizedState=xa(1|e,{destroy:void 0},l,a===void 0?null:a)}function _i(t,e,l,a){var n=Nt();a=a===void 0?null:a;var i=n.memoizedState.inst;vt!==null&&a!==null&&ds(a,vt.memoizedState.deps)?n.memoizedState=xa(e,i,l,a):(lt.flags|=t,n.memoizedState=xa(1|e,i,l,a))}function Nf(t,e){xi(8390656,8,t,e)}function zs(t,e){_i(2048,8,t,e)}function $m(t){lt.flags|=4;var e=lt.updateQueue;if(e===null)e=vi(),lt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Bf(t){var e=Nt().memoizedState;return $m({ref:e,nextImpl:t}),function(){if((mt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Hf(t,e){return _i(4,2,t,e)}function Lf(t,e){return _i(4,4,t,e)}function Yf(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function wf(t,e,l){l=l!=null?l.concat([t]):null,_i(4,4,Yf.bind(null,e,t),l)}function Ts(){}function qf(t,e){var l=Nt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&ds(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Gf(t,e){var l=Nt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&ds(e,a[1]))return a[0];if(a=t(),Ql){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a}function Es(t,e,l){return l===void 0||(Ve&1073741824)!==0&&(ct&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Xr(),lt.lanes|=t,pl|=t,l)}function Xf(t,e,l,a){return re(l,e)?l:va.current!==null?(t=Es(t,l,a),re(t,e)||(Yt=!0),t):(Ve&42)===0||(Ve&1073741824)!==0&&(ct&261930)===0?(Yt=!0,t.memoizedState=l):(t=Xr(),lt.lanes|=t,pl|=t,e)}function Zf(t,e,l,a,n){var i=w.p;w.p=i!==0&&8>i?i:8;var s=A.T,f={};A.T=f,Ds(t,!1,e,l);try{var m=n(),b=A.S;if(b!==null&&b(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var M=Km(m,a);yn(t,e,M,ge(t))}else yn(t,e,a,ge(t))}catch(O){yn(t,e,{then:function(){},status:"rejected",reason:O},ge())}finally{w.p=i,s!==null&&f.types!==null&&(s.types=f.types),A.T=s}}function Im(){}function Ms(t,e,l,a){if(t.tag!==5)throw Error(c(476));var n=Qf(t).queue;Zf(t,n,e,P,l===null?Im:function(){return Vf(t),l(a)})}function Qf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:P},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Vf(t){var e=Qf(t);e.next===null&&(e=t.alternate.memoizedState),yn(t,e.next.queue,{},ge())}function As(){return kt(Rn)}function Kf(){return Nt().memoizedState}function kf(){return Nt().memoizedState}function Pm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ge();t=fl(l);var a=rl(e,t,l);a!==null&&(ue(a,e,l),fn(a,e,l)),e={cache:ls()},t.payload=e;return}e=e.return}}function ty(t,e,l){var a=ge();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},zi(t)?Ff(e,l):(l=Vu(t,e,l,a),l!==null&&(ue(l,t,a),Wf(l,e,a)))}function Jf(t,e,l){var a=ge();yn(t,e,l,a)}function yn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(zi(t))Ff(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,f=i(s,l);if(n.hasEagerState=!0,n.eagerState=f,re(f,s))return ai(t,e,n,0),Tt===null&&li(),!1}catch{}finally{}if(l=Vu(t,e,n,a),l!==null)return ue(l,t,a),Wf(l,e,a),!0}return!1}function Ds(t,e,l,a){if(a={lane:2,revertLane:uc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},zi(t)){if(e)throw Error(c(479))}else e=Vu(t,l,a,2),e!==null&&ue(e,t,2)}function zi(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function Ff(t,e){ba=pi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Wf(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Pc(t,l)}}var pn={readContext:kt,use:bi,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};pn.useEffectEvent=Ct;var $f={readContext:kt,use:bi,useCallback:function(t,e){return $t().memoizedState=[t,e===void 0?null:e],t},useContext:kt,useEffect:Nf,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,xi(4194308,4,Yf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return xi(4194308,4,t,e)},useInsertionEffect:function(t,e){xi(4,2,t,e)},useMemo:function(t,e){var l=$t();e=e===void 0?null:e;var a=t();if(Ql){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=$t();if(l!==void 0){var n=l(e);if(Ql){ll(!0);try{l(e)}finally{ll(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=ty.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=$t();return t={current:t},e.memoizedState=t},useState:function(t){t=xs(t);var e=t.queue,l=Jf.bind(null,lt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ts,useDeferredValue:function(t,e){var l=$t();return Es(l,t,e)},useTransition:function(){var t=xs(!1);return t=Zf.bind(null,lt,t.queue,!0,!1),$t().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=lt,n=$t();if(ft){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),Tt===null)throw Error(c(349));(ct&127)!==0||vf(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,Nf(Sf.bind(null,a,i,t),[t]),a.flags|=2048,xa(9,{destroy:void 0},bf.bind(null,a,i,l,e),null),l},useId:function(){var t=$t(),e=Tt.identifierPrefix;if(ft){var l=Be,a=Ne;l=(a&~(1<<32-fe(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=gi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=km++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:As,useFormState:jf,useActionState:jf,useOptimistic:function(t){var e=$t();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Ds.bind(null,lt,!0,l),l.dispatch=e,[t,e]},useMemoCache:vs,useCacheRefresh:function(){return $t().memoizedState=Pm.bind(null,lt)},useEffectEvent:function(t){var e=$t(),l={impl:t};return e.memoizedState=l,function(){if((mt&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},js={readContext:kt,use:bi,useCallback:qf,useContext:kt,useEffect:zs,useImperativeHandle:wf,useInsertionEffect:Hf,useLayoutEffect:Lf,useMemo:Gf,useReducer:Si,useRef:Uf,useState:function(){return Si(Ke)},useDebugValue:Ts,useDeferredValue:function(t,e){var l=Nt();return Xf(l,vt.memoizedState,t,e)},useTransition:function(){var t=Si(Ke)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:mn(t),e]},useSyncExternalStore:gf,useId:Kf,useHostTransitionStatus:As,useFormState:Of,useActionState:Of,useOptimistic:function(t,e){var l=Nt();return zf(l,vt,t,e)},useMemoCache:vs,useCacheRefresh:kf};js.useEffectEvent=Bf;var If={readContext:kt,use:bi,useCallback:qf,useContext:kt,useEffect:zs,useImperativeHandle:wf,useInsertionEffect:Hf,useLayoutEffect:Lf,useMemo:Gf,useReducer:Ss,useRef:Uf,useState:function(){return Ss(Ke)},useDebugValue:Ts,useDeferredValue:function(t,e){var l=Nt();return vt===null?Es(l,t,e):Xf(l,vt.memoizedState,t,e)},useTransition:function(){var t=Ss(Ke)[0],e=Nt().memoizedState;return[typeof t=="boolean"?t:mn(t),e]},useSyncExternalStore:gf,useId:Kf,useHostTransitionStatus:As,useFormState:Rf,useActionState:Rf,useOptimistic:function(t,e){var l=Nt();return vt!==null?zf(l,vt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:vs,useCacheRefresh:kf};If.useEffectEvent=Bf;function Os(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:D({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Cs={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=ge(),n=fl(a);n.payload=e,l!=null&&(n.callback=l),e=rl(t,n,a),e!==null&&(ue(e,t,a),fn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=ge(),n=fl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=rl(t,n,a),e!==null&&(ue(e,t,a),fn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=ge(),a=fl(l);a.tag=2,e!=null&&(a.callback=e),e=rl(t,a,l),e!==null&&(ue(e,t,l),fn(e,t,l))}};function Pf(t,e,l,a,n,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,s):e.prototype&&e.prototype.isPureReactComponent?!en(l,a)||!en(n,i):!0}function tr(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Cs.enqueueReplaceState(e,e.state,null)}function Vl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=D({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function er(t){ei(t)}function lr(t){console.error(t)}function ar(t){ei(t)}function Ti(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function nr(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Rs(t,e,l){return l=fl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ti(t,e)},l}function ir(t){return t=fl(t),t.tag=3,t}function ur(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){nr(e,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){nr(e,l,a),typeof n!="function"&&(gl===null?gl=new Set([this]):gl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function ey(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&da(e,l,n,!0),l=de.current,l!==null){switch(l.tag){case 31:case 13:return Me===null?Hi():l.alternate===null&&Rt===0&&(Rt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ri?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),ac(t,a,n)),!1;case 22:return l.flags|=65536,a===ri?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),ac(t,a,n)),!1}throw Error(c(435,l.tag))}return ac(t,a,n),Hi(),!1}if(ft)return e=de.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==$u&&(t=Error(c(422),{cause:a}),nn(_e(t,l)))):(a!==$u&&(e=Error(c(423),{cause:a}),nn(_e(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=_e(a,l),n=Rs(t.stateNode,a,n),cs(t,n),Rt!==4&&(Rt=2)),!1;var i=Error(c(520),{cause:a});if(i=_e(i,l),Tn===null?Tn=[i]:Tn.push(i),Rt!==4&&(Rt=2),e===null)return!0;a=_e(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Rs(l.stateNode,a,t),cs(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(gl===null||!gl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=ir(n),ur(n,t,l,a),cs(l,n),!1}l=l.return}while(l!==null);return!1}var Us=Error(c(461)),Yt=!1;function Jt(t,e,l,a){e.child=t===null?ff(e,null,l,a):Zl(e,t.child,l,a)}function sr(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var s={};for(var f in a)f!=="ref"&&(s[f]=a[f])}else s=a;return wl(e),a=ms(t,e,l,s,i,n),f=ys(),t!==null&&!Yt?(ps(t,e,n),ke(t,e,n)):(ft&&f&&Fu(e),e.flags|=1,Jt(t,e,a,n),e.child)}function cr(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!Ku(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,or(t,e,i,a,n)):(t=ii(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Gs(t,n)){var s=i.memoizedProps;if(l=l.compare,l=l!==null?l:en,l(s,a)&&t.ref===e.ref)return ke(t,e,n)}return e.flags|=1,t=Ge(i,a),t.ref=e.ref,t.return=e,e.child=t}function or(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(en(i,a)&&t.ref===e.ref)if(Yt=!1,e.pendingProps=a=i,Gs(t,n))(t.flags&131072)!==0&&(Yt=!0);else return e.lanes=t.lanes,ke(t,e,n)}return Ns(t,e,l,a,n)}function fr(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return rr(t,e,i,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&oi(e,i!==null?i.cachePool:null),i!==null?df(e,i):fs(),mf(e);else return a=e.lanes=536870912,rr(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(oi(e,i.cachePool),df(e,i),dl(),e.memoizedState=null):(t!==null&&oi(e,null),fs(),dl());return Jt(t,e,n,l),e.child}function gn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function rr(t,e,l,a,n){var i=ns();return i=i===null?null:{parent:Ht._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&oi(e,null),fs(),mf(e),t!==null&&da(t,e,a,!0),e.childLanes=n,null}function Ei(t,e){return e=Ai({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function hr(t,e,l){return Zl(e,t.child,null,l),t=Ei(e,e.pendingProps),t.flags|=2,me(e),e.memoizedState=null,t}function ly(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ft){if(a.mode==="hidden")return t=Ei(e,a),e.lanes=536870912,gn(null,t);if(hs(e),(t=Mt)?(t=Th(t,Ee),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:il!==null?{id:Ne,overflow:Be}:null,retryLane:536870912,hydrationErrors:null},l=Jo(t),l.return=e,e.child=l,Kt=e,Mt=null)):t=null,t===null)throw sl(e);return e.lanes=536870912,null}return Ei(e,a)}var i=t.memoizedState;if(i!==null){var s=i.dehydrated;if(hs(e),n)if(e.flags&256)e.flags&=-257,e=hr(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Yt||da(t,e,l,!1),n=(l&t.childLanes)!==0,Yt||n){if(a=Tt,a!==null&&(s=to(a,l),s!==0&&s!==i.retryLane))throw i.retryLane=s,Bl(t,s),ue(a,t,s),Us;Hi(),e=hr(t,e,l)}else t=i.treeContext,Mt=Ae(s.nextSibling),Kt=e,ft=!0,ul=null,Ee=!1,t!==null&&$o(e,t),e=Ei(e,a),e.flags|=4096;return e}return t=Ge(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Mi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Ns(t,e,l,a,n){return wl(e),l=ms(t,e,l,a,void 0,n),a=ys(),t!==null&&!Yt?(ps(t,e,n),ke(t,e,n)):(ft&&a&&Fu(e),e.flags|=1,Jt(t,e,l,n),e.child)}function dr(t,e,l,a,n,i){return wl(e),e.updateQueue=null,l=pf(e,a,l,n),yf(t),a=ys(),t!==null&&!Yt?(ps(t,e,i),ke(t,e,i)):(ft&&a&&Fu(e),e.flags|=1,Jt(t,e,l,i),e.child)}function mr(t,e,l,a,n){if(wl(e),e.stateNode===null){var i=oa,s=l.contextType;typeof s=="object"&&s!==null&&(i=kt(s)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Cs,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},us(e),s=l.contextType,i.context=typeof s=="object"&&s!==null?kt(s):oa,i.state=e.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Os(e,l,s,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&Cs.enqueueReplaceState(i,i.state,null),hn(e,a,i,n),rn(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var f=e.memoizedProps,m=Vl(l,f);i.props=m;var b=i.context,M=l.contextType;s=oa,typeof M=="object"&&M!==null&&(s=kt(M));var O=l.getDerivedStateFromProps;M=typeof O=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,M||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||b!==s)&&tr(e,i,a,s),ol=!1;var S=e.memoizedState;i.state=S,hn(e,a,i,n),rn(),b=e.memoizedState,f||S!==b||ol?(typeof O=="function"&&(Os(e,l,O,a),b=e.memoizedState),(m=ol||Pf(e,l,m,a,S,b,s))?(M||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=b),i.props=a,i.state=b,i.context=s,a=m):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,ss(t,e),s=e.memoizedProps,M=Vl(l,s),i.props=M,O=e.pendingProps,S=i.context,b=l.contextType,m=oa,typeof b=="object"&&b!==null&&(m=kt(b)),f=l.getDerivedStateFromProps,(b=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==O||S!==m)&&tr(e,i,a,m),ol=!1,S=e.memoizedState,i.state=S,hn(e,a,i,n),rn();var z=e.memoizedState;s!==O||S!==z||ol||t!==null&&t.dependencies!==null&&si(t.dependencies)?(typeof f=="function"&&(Os(e,l,f,a),z=e.memoizedState),(M=ol||Pf(e,l,M,a,S,z,m)||t!==null&&t.dependencies!==null&&si(t.dependencies))?(b||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,z,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,z,m)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=z),i.props=a,i.state=z,i.context=m,a=M):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,Mi(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=Zl(e,t.child,null,n),e.child=Zl(e,null,l,n)):Jt(t,e,l,n),e.memoizedState=i.state,t=e.child):t=ke(t,e,n),t}function yr(t,e,l,a){return Ll(),e.flags|=256,Jt(t,e,l,a),e.child}var Bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hs(t){return{baseLanes:t,cachePool:af()}}function Ls(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=pe),t}function pr(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,s;if((s=i)||(s=t!==null&&t.memoizedState===null?!1:(Ut.current&2)!==0),s&&(n=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(ft){if(n?hl(e):dl(),(t=Mt)?(t=Th(t,Ee),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:il!==null?{id:Ne,overflow:Be}:null,retryLane:536870912,hydrationErrors:null},l=Jo(t),l.return=e,e.child=l,Kt=e,Mt=null)):t=null,t===null)throw sl(e);return bc(t)?e.lanes=32:e.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(dl(),n=e.mode,f=Ai({mode:"hidden",children:f},n),a=Hl(a,n,l,null),f.return=e,a.return=e,f.sibling=a,e.child=f,a=e.child,a.memoizedState=Hs(l),a.childLanes=Ls(t,s,l),e.memoizedState=Bs,gn(null,a)):(hl(e),Ys(e,f))}var m=t.memoizedState;if(m!==null&&(f=m.dehydrated,f!==null)){if(i)e.flags&256?(hl(e),e.flags&=-257,e=ws(t,e,l)):e.memoizedState!==null?(dl(),e.child=t.child,e.flags|=128,e=null):(dl(),f=a.fallback,n=e.mode,a=Ai({mode:"visible",children:a.children},n),f=Hl(f,n,l,null),f.flags|=2,a.return=e,f.return=e,a.sibling=f,e.child=a,Zl(e,t.child,null,l),a=e.child,a.memoizedState=Hs(l),a.childLanes=Ls(t,s,l),e.memoizedState=Bs,e=gn(null,a));else if(hl(e),bc(f)){if(s=f.nextSibling&&f.nextSibling.dataset,s)var b=s.dgst;s=b,a=Error(c(419)),a.stack="",a.digest=s,nn({value:a,source:null,stack:null}),e=ws(t,e,l)}else if(Yt||da(t,e,l,!1),s=(l&t.childLanes)!==0,Yt||s){if(s=Tt,s!==null&&(a=to(s,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,Bl(t,a),ue(s,t,a),Us;vc(f)||Hi(),e=ws(t,e,l)}else vc(f)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Mt=Ae(f.nextSibling),Kt=e,ft=!0,ul=null,Ee=!1,t!==null&&$o(e,t),e=Ys(e,a.children),e.flags|=4096);return e}return n?(dl(),f=a.fallback,n=e.mode,m=t.child,b=m.sibling,a=Ge(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,b!==null?f=Ge(b,f):(f=Hl(f,n,l,null),f.flags|=2),f.return=e,a.return=e,a.sibling=f,e.child=a,gn(null,a),a=e.child,f=t.child.memoizedState,f===null?f=Hs(l):(n=f.cachePool,n!==null?(m=Ht._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=af(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Ls(t,s,l),e.memoizedState=Bs,gn(t.child,a)):(hl(e),l=t.child,t=l.sibling,l=Ge(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=l,e.memoizedState=null,l)}function Ys(t,e){return e=Ai({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ai(t,e){return t=he(22,t,null,e),t.lanes=0,t}function ws(t,e,l){return Zl(e,t.child,null,l),t=Ys(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function gr(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),ts(t.return,e,l)}function qs(t,e,l,a,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=i)}function vr(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var s=Ut.current,f=(s&2)!==0;if(f?(s=s&1|2,e.flags|=128):s&=1,rt(Ut,s),Jt(t,e,a,l),a=ft?an:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&gr(t,l,e);else if(t.tag===19)gr(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&yi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),qs(e,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&yi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}qs(e,!0,l,null,i,a);break;case"together":qs(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function ke(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),pl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(da(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=Ge(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ge(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Gs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&si(t)))}function ay(t,e,l){switch(e.tag){case 3:Fl(e,e.stateNode.containerInfo),cl(e,Ht,t.memoizedState.cache),Ll();break;case 27:case 5:Ot(e);break;case 4:Fl(e,e.stateNode.containerInfo);break;case 10:cl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,hs(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(hl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?pr(t,e,l):(hl(e),t=ke(t,e,l),t!==null?t.sibling:null);hl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(da(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return vr(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),rt(Ut,Ut.current),a)break;return null;case 22:return e.lanes=0,fr(t,e,l,e.pendingProps);case 24:cl(e,Ht,t.memoizedState.cache)}return ke(t,e,l)}function br(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Yt=!0;else{if(!Gs(t,l)&&(e.flags&128)===0)return Yt=!1,ay(t,e,l);Yt=(t.flags&131072)!==0}else Yt=!1,ft&&(e.flags&1048576)!==0&&Wo(e,an,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Gl(e.elementType),e.type=t,typeof t=="function")Ku(t)?(a=Vl(t,a),e.tag=1,e=mr(null,e,t,a,l)):(e.tag=0,e=Ns(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===q){e.tag=11,e=sr(null,e,t,a,l);break t}else if(n===L){e.tag=14,e=cr(null,e,t,a,l);break t}}throw e=J(t)||t,Error(c(306,e,""))}}return e;case 0:return Ns(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Vl(a,e.pendingProps),mr(t,e,a,n,l);case 3:t:{if(Fl(e,e.stateNode.containerInfo),t===null)throw Error(c(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,ss(t,e),hn(e,a,null,l);var s=e.memoizedState;if(a=s.cache,cl(e,Ht,a),a!==i.cache&&es(e,[Ht],l,!0),rn(),a=s.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=yr(t,e,a,l);break t}else if(a!==n){n=_e(Error(c(424)),e),nn(n),e=yr(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Mt=Ae(t.firstChild),Kt=e,ft=!0,ul=null,Ee=!0,l=ff(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ll(),a===n){e=ke(t,e,l);break t}Jt(t,e,a,l)}e=e.child}return e;case 26:return Mi(t,e),t===null?(l=Oh(e.type,null,e.pendingProps,null))?e.memoizedState=l:ft||(l=e.type,t=e.pendingProps,a=Zi(Ue.current).createElement(l),a[Vt]=e,a[te]=t,Ft(a,l,t),Xt(a),e.stateNode=a):e.memoizedState=Oh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ot(e),t===null&&ft&&(a=e.stateNode=Ah(e.type,e.pendingProps,Ue.current),Kt=e,Ee=!0,n=Mt,xl(e.type)?(Sc=n,Mt=Ae(a.firstChild)):Mt=n),Jt(t,e,e.pendingProps.children,l),Mi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ft&&((n=a=Mt)&&(a=Uy(a,e.type,e.pendingProps,Ee),a!==null?(e.stateNode=a,Kt=e,Mt=Ae(a.firstChild),Ee=!1,n=!0):n=!1),n||sl(e)),Ot(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,a=i.children,yc(n,i)?a=null:s!==null&&yc(n,s)&&(e.flags|=32),e.memoizedState!==null&&(n=ms(t,e,Jm,null,null,l),Rn._currentValue=n),Mi(t,e),Jt(t,e,a,l),e.child;case 6:return t===null&&ft&&((t=l=Mt)&&(l=Ny(l,e.pendingProps,Ee),l!==null?(e.stateNode=l,Kt=e,Mt=null,t=!0):t=!1),t||sl(e)),null;case 13:return pr(t,e,l);case 4:return Fl(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Zl(e,null,a,l):Jt(t,e,a,l),e.child;case 11:return sr(t,e,e.type,e.pendingProps,l);case 7:return Jt(t,e,e.pendingProps,l),e.child;case 8:return Jt(t,e,e.pendingProps.children,l),e.child;case 12:return Jt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,cl(e,e.type,a.value),Jt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,wl(e),n=kt(n),a=a(n),e.flags|=1,Jt(t,e,a,l),e.child;case 14:return cr(t,e,e.type,e.pendingProps,l);case 15:return or(t,e,e.type,e.pendingProps,l);case 19:return vr(t,e,l);case 31:return ly(t,e,l);case 22:return fr(t,e,l,e.pendingProps);case 24:return wl(e),a=kt(Ht),t===null?(n=ns(),n===null&&(n=Tt,i=ls(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},us(e),cl(e,Ht,n)):((t.lanes&l)!==0&&(ss(t,e),hn(e,null,null,l),rn()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),cl(e,Ht,a)):(a=i.cache,cl(e,Ht,a),a!==n.cache&&es(e,[Ht],l,!0))),Jt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function Je(t){t.flags|=4}function Xs(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Kr())t.flags|=8192;else throw Xl=ri,is}else t.flags&=-16777217}function Sr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Bh(e))if(Kr())t.flags|=8192;else throw Xl=ri,is}function Di(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?$c():536870912,t.lanes|=e,Ea|=e)}function vn(t,e){if(!ft)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function At(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function ny(t,e,l){var a=e.pendingProps;switch(Wu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(e),null;case 1:return At(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Qe(Ht),yt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ha(e)?Je(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Iu())),At(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(Je(e),i!==null?(At(e),Sr(e,i)):(At(e),Xs(e,n,null,a,l))):i?i!==t.memoizedState?(Je(e),At(e),Sr(e,i)):(At(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Je(e),At(e),Xs(e,n,t,a,l)),null;case 27:if(Pt(e),l=Ue.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Je(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return At(e),null}t=Dt.current,ha(e)?Io(e):(t=Ah(n,a,l),e.stateNode=t,Je(e))}return At(e),null;case 5:if(Pt(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Je(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return At(e),null}if(i=Dt.current,ha(e))Io(e);else{var s=Zi(Ue.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=s.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}i[Vt]=e,i[te]=a;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=i;t:switch(Ft(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Je(e)}}return At(e),Xs(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Je(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(c(166));if(t=Ue.current,ha(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Kt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Vt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||ph(t.nodeValue,l)),t||sl(e,!0)}else t=Zi(t).createTextNode(a),t[Vt]=e,e.stateNode=t}return At(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=ha(e),l!==null){if(t===null){if(!a)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Vt]=e}else Ll(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;At(e),t=!1}else l=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(me(e),e):(me(e),null);if((e.flags&128)!==0)throw Error(c(558))}return At(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ha(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(c(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[Vt]=e}else Ll(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;At(e),n=!1}else n=Iu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(me(e),e):(me(e),null)}return me(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Di(e,e.updateQueue),At(e),null);case 4:return yt(),t===null&&fc(e.stateNode.containerInfo),At(e),null;case 10:return Qe(e.type),At(e),null;case 19:if(Et(Ut),a=e.memoizedState,a===null)return At(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)vn(a,!1);else{if(Rt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=yi(t),i!==null){for(e.flags|=128,vn(a,!1),t=i.updateQueue,e.updateQueue=t,Di(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)ko(l,t),l=l.sibling;return rt(Ut,Ut.current&1|2),ft&&Xe(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ce()>Ui&&(e.flags|=128,n=!0,vn(a,!1),e.lanes=4194304)}else{if(!n)if(t=yi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Di(e,t),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ft)return At(e),null}else 2*ce()-a.renderingStartTime>Ui&&l!==536870912&&(e.flags|=128,n=!0,vn(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ce(),t.sibling=null,l=Ut.current,rt(Ut,n?l&1|2:l&1),ft&&Xe(e,a.treeForkCount),t):(At(e),null);case 22:case 23:return me(e),rs(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(At(e),e.subtreeFlags&6&&(e.flags|=8192)):At(e),l=e.updateQueue,l!==null&&Di(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&Et(ql),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Qe(Ht),At(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function iy(t,e){switch(Wu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qe(Ht),yt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Pt(e),null;case 31:if(e.memoizedState!==null){if(me(e),e.alternate===null)throw Error(c(340));Ll()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(me(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Ll()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Et(Ut),null;case 4:return yt(),null;case 10:return Qe(e.type),null;case 22:case 23:return me(e),rs(),t!==null&&Et(ql),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qe(Ht),null;case 25:return null;default:return null}}function xr(t,e){switch(Wu(e),e.tag){case 3:Qe(Ht),yt();break;case 26:case 27:case 5:Pt(e);break;case 4:yt();break;case 31:e.memoizedState!==null&&me(e);break;case 13:me(e);break;case 19:Et(Ut);break;case 10:Qe(e.type);break;case 22:case 23:me(e),rs(),t!==null&&Et(ql);break;case 24:Qe(Ht)}}function bn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,s=l.inst;a=i(),s.destroy=a}l=l.next}while(l!==n)}}catch(f){gt(e,e.return,f)}}function ml(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var s=a.inst,f=s.destroy;if(f!==void 0){s.destroy=void 0,n=e;var m=l,b=f;try{b()}catch(M){gt(n,m,M)}}}a=a.next}while(a!==i)}}catch(M){gt(e,e.return,M)}}function _r(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{hf(e,l)}catch(a){gt(t,t.return,a)}}}function zr(t,e,l){l.props=Vl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){gt(t,e,a)}}function Sn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){gt(t,e,n)}}function He(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){gt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){gt(t,e,n)}else l.current=null}function Tr(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){gt(t,t.return,n)}}function Zs(t,e,l){try{var a=t.stateNode;Ay(a,t.type,l,e),a[te]=e}catch(n){gt(t,t.return,n)}}function Er(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&xl(t.type)||t.tag===4}function Qs(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Er(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&xl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Vs(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=we));else if(a!==4&&(a===27&&xl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Vs(t,e,l),t=t.sibling;t!==null;)Vs(t,e,l),t=t.sibling}function ji(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&xl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(ji(t,e,l),t=t.sibling;t!==null;)ji(t,e,l),t=t.sibling}function Mr(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ft(e,a,l),e[Vt]=t,e[te]=l}catch(i){gt(t,t.return,i)}}var Fe=!1,wt=!1,Ks=!1,Ar=typeof WeakSet=="function"?WeakSet:Set,Zt=null;function uy(t,e){if(t=t.containerInfo,dc=Wi,t=Yo(t),wu(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var s=0,f=-1,m=-1,b=0,M=0,O=t,S=null;e:for(;;){for(var z;O!==l||n!==0&&O.nodeType!==3||(f=s+n),O!==i||a!==0&&O.nodeType!==3||(m=s+a),O.nodeType===3&&(s+=O.nodeValue.length),(z=O.firstChild)!==null;)S=O,O=z;for(;;){if(O===t)break e;if(S===l&&++b===n&&(f=s),S===i&&++M===a&&(m=s),(z=O.nextSibling)!==null)break;O=S,S=O.parentNode}O=z}l=f===-1||m===-1?null:{start:f,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(mc={focusedElem:t,selectionRange:l},Wi=!1,Zt=e;Zt!==null;)if(e=Zt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Zt=t;else for(;Zt!==null;){switch(e=Zt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var X=Vl(l.type,n);t=a.getSnapshotBeforeUpdate(X,i),a.__reactInternalSnapshotBeforeUpdate=t}catch($){gt(l,l.return,$)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)gc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":gc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,Zt=t;break}Zt=e.return}}function Dr(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:$e(t,l),a&4&&bn(5,l);break;case 1:if($e(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(s){gt(l,l.return,s)}else{var n=Vl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){gt(l,l.return,s)}}a&64&&_r(l),a&512&&Sn(l,l.return);break;case 3:if($e(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{hf(t,e)}catch(s){gt(l,l.return,s)}}break;case 27:e===null&&a&4&&Mr(l);case 26:case 5:$e(t,l),e===null&&a&4&&Tr(l),a&512&&Sn(l,l.return);break;case 12:$e(t,l);break;case 31:$e(t,l),a&4&&Cr(t,l);break;case 13:$e(t,l),a&4&&Rr(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=yy.bind(null,l),By(t,l))));break;case 22:if(a=l.memoizedState!==null||Fe,!a){e=e!==null&&e.memoizedState!==null||wt,n=Fe;var i=wt;Fe=a,(wt=e)&&!i?Ie(t,l,(l.subtreeFlags&8772)!==0):$e(t,l),Fe=n,wt=i}break;case 30:break;default:$e(t,l)}}function jr(t){var e=t.alternate;e!==null&&(t.alternate=null,jr(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&_u(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var jt=null,le=!1;function We(t,e,l){for(l=l.child;l!==null;)Or(t,e,l),l=l.sibling}function Or(t,e,l){if(oe&&typeof oe.onCommitFiberUnmount=="function")try{oe.onCommitFiberUnmount(Za,l)}catch{}switch(l.tag){case 26:wt||He(l,e),We(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:wt||He(l,e);var a=jt,n=le;xl(l.type)&&(jt=l.stateNode,le=!1),We(t,e,l),jn(l.stateNode),jt=a,le=n;break;case 5:wt||He(l,e);case 6:if(a=jt,n=le,jt=null,We(t,e,l),jt=a,le=n,jt!==null)if(le)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(l.stateNode)}catch(i){gt(l,e,i)}else try{jt.removeChild(l.stateNode)}catch(i){gt(l,e,i)}break;case 18:jt!==null&&(le?(t=jt,_h(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ua(t)):_h(jt,l.stateNode));break;case 4:a=jt,n=le,jt=l.stateNode.containerInfo,le=!0,We(t,e,l),jt=a,le=n;break;case 0:case 11:case 14:case 15:ml(2,l,e),wt||ml(4,l,e),We(t,e,l);break;case 1:wt||(He(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&zr(l,e,a)),We(t,e,l);break;case 21:We(t,e,l);break;case 22:wt=(a=wt)||l.memoizedState!==null,We(t,e,l),wt=a;break;default:We(t,e,l)}}function Cr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ua(t)}catch(l){gt(e,e.return,l)}}}function Rr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ua(t)}catch(l){gt(e,e.return,l)}}function sy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ar),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ar),e;default:throw Error(c(435,t.tag))}}function Oi(t,e){var l=sy(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=py.bind(null,t,a);a.then(n,n)}})}function ae(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=t,s=e,f=s;t:for(;f!==null;){switch(f.tag){case 27:if(xl(f.type)){jt=f.stateNode,le=!1;break t}break;case 5:jt=f.stateNode,le=!1;break t;case 3:case 4:jt=f.stateNode.containerInfo,le=!0;break t}f=f.return}if(jt===null)throw Error(c(160));Or(i,s,n),jt=null,le=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ur(e,t),e=e.sibling}var Oe=null;function Ur(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ae(e,t),ne(t),a&4&&(ml(3,t,t.return),bn(3,t),ml(5,t,t.return));break;case 1:ae(e,t),ne(t),a&512&&(wt||l===null||He(l,l.return)),a&64&&Fe&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Oe;if(ae(e,t),ne(t),a&512&&(wt||l===null||He(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Ka]||i[Vt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Ft(i,a,l),i[Vt]=t,Xt(i),a=i;break t;case"link":var s=Uh("link","href",n).get(a+(l.href||""));if(s){for(var f=0;f<s.length;f++)if(i=s[f],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(f,1);break e}}i=n.createElement(a),Ft(i,a,l),n.head.appendChild(i);break;case"meta":if(s=Uh("meta","content",n).get(a+(l.content||""))){for(f=0;f<s.length;f++)if(i=s[f],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(f,1);break e}}i=n.createElement(a),Ft(i,a,l),n.head.appendChild(i);break;default:throw Error(c(468,a))}i[Vt]=t,Xt(i),a=i}t.stateNode=a}else Nh(n,t.type,t.stateNode);else t.stateNode=Rh(n,a,t.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Nh(n,t.type,t.stateNode):Rh(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Zs(t,t.memoizedProps,l.memoizedProps)}break;case 27:ae(e,t),ne(t),a&512&&(wt||l===null||He(l,l.return)),l!==null&&a&4&&Zs(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ae(e,t),ne(t),a&512&&(wt||l===null||He(l,l.return)),t.flags&32){n=t.stateNode;try{la(n,"")}catch(X){gt(t,t.return,X)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Zs(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Ks=!0);break;case 6:if(ae(e,t),ne(t),a&4){if(t.stateNode===null)throw Error(c(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(X){gt(t,t.return,X)}}break;case 3:if(Ki=null,n=Oe,Oe=Qi(e.containerInfo),ae(e,t),Oe=n,ne(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ua(e.containerInfo)}catch(X){gt(t,t.return,X)}Ks&&(Ks=!1,Nr(t));break;case 4:a=Oe,Oe=Qi(t.stateNode.containerInfo),ae(e,t),ne(t),Oe=a;break;case 12:ae(e,t),ne(t);break;case 31:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Oi(t,a)));break;case 13:ae(e,t),ne(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ri=ce()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Oi(t,a)));break;case 22:n=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,b=Fe,M=wt;if(Fe=b||n,wt=M||m,ae(e,t),wt=M,Fe=b,ne(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||m||Fe||wt||Kl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(i=m.stateNode,n)s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{f=m.stateNode;var O=m.memoizedProps.style,S=O!=null&&O.hasOwnProperty("display")?O.display:null;f.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(X){gt(m,m.return,X)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(X){gt(m,m.return,X)}}}else if(e.tag===18){if(l===null){m=e;try{var z=m.stateNode;n?zh(z,!0):zh(m.stateNode,!1)}catch(X){gt(m,m.return,X)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Oi(t,l))));break;case 19:ae(e,t),ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Oi(t,a)));break;case 30:break;case 21:break;default:ae(e,t),ne(t)}}function ne(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Er(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,i=Qs(t);ji(t,i,n);break;case 5:var s=l.stateNode;l.flags&32&&(la(s,""),l.flags&=-33);var f=Qs(t);ji(t,f,s);break;case 3:case 4:var m=l.stateNode.containerInfo,b=Qs(t);Vs(t,b,m);break;default:throw Error(c(161))}}catch(M){gt(t,t.return,M)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Nr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Nr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function $e(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Dr(t,e.alternate,e),e=e.sibling}function Kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ml(4,e,e.return),Kl(e);break;case 1:He(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&zr(e,e.return,l),Kl(e);break;case 27:jn(e.stateNode);case 26:case 5:He(e,e.return),Kl(e);break;case 22:e.memoizedState===null&&Kl(e);break;case 30:Kl(e);break;default:Kl(e)}t=t.sibling}}function Ie(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,s=i.flags;switch(i.tag){case 0:case 11:case 15:Ie(n,i,l),bn(4,i);break;case 1:if(Ie(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(b){gt(a,a.return,b)}if(a=i,n=a.updateQueue,n!==null){var f=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)rf(m[n],f)}catch(b){gt(a,a.return,b)}}l&&s&64&&_r(i),Sn(i,i.return);break;case 27:Mr(i);case 26:case 5:Ie(n,i,l),l&&a===null&&s&4&&Tr(i),Sn(i,i.return);break;case 12:Ie(n,i,l);break;case 31:Ie(n,i,l),l&&s&4&&Cr(n,i);break;case 13:Ie(n,i,l),l&&s&4&&Rr(n,i);break;case 22:i.memoizedState===null&&Ie(n,i,l),Sn(i,i.return);break;case 30:break;default:Ie(n,i,l)}e=e.sibling}}function ks(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&un(l))}function Js(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&un(t))}function Ce(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Br(t,e,l,a),e=e.sibling}function Br(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ce(t,e,l,a),n&2048&&bn(9,e);break;case 1:Ce(t,e,l,a);break;case 3:Ce(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&un(t)));break;case 12:if(n&2048){Ce(t,e,l,a),t=e.stateNode;try{var i=e.memoizedProps,s=i.id,f=i.onPostCommit;typeof f=="function"&&f(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){gt(e,e.return,m)}}else Ce(t,e,l,a);break;case 31:Ce(t,e,l,a);break;case 13:Ce(t,e,l,a);break;case 23:break;case 22:i=e.stateNode,s=e.alternate,e.memoizedState!==null?i._visibility&2?Ce(t,e,l,a):xn(t,e):i._visibility&2?Ce(t,e,l,a):(i._visibility|=2,_a(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&ks(s,e);break;case 24:Ce(t,e,l,a),n&2048&&Js(e.alternate,e);break;default:Ce(t,e,l,a)}}function _a(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,s=e,f=l,m=a,b=s.flags;switch(s.tag){case 0:case 11:case 15:_a(i,s,f,m,n),bn(8,s);break;case 23:break;case 22:var M=s.stateNode;s.memoizedState!==null?M._visibility&2?_a(i,s,f,m,n):xn(i,s):(M._visibility|=2,_a(i,s,f,m,n)),n&&b&2048&&ks(s.alternate,s);break;case 24:_a(i,s,f,m,n),n&&b&2048&&Js(s.alternate,s);break;default:_a(i,s,f,m,n)}e=e.sibling}}function xn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:xn(l,a),n&2048&&ks(a.alternate,a);break;case 24:xn(l,a),n&2048&&Js(a.alternate,a);break;default:xn(l,a)}e=e.sibling}}var _n=8192;function za(t,e,l){if(t.subtreeFlags&_n)for(t=t.child;t!==null;)Hr(t,e,l),t=t.sibling}function Hr(t,e,l){switch(t.tag){case 26:za(t,e,l),t.flags&_n&&t.memoizedState!==null&&ky(l,Oe,t.memoizedState,t.memoizedProps);break;case 5:za(t,e,l);break;case 3:case 4:var a=Oe;Oe=Qi(t.stateNode.containerInfo),za(t,e,l),Oe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,za(t,e,l),_n=a):za(t,e,l));break;default:za(t,e,l)}}function Lr(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function zn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Zt=a,wr(a,t)}Lr(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yr(t),t=t.sibling}function Yr(t){switch(t.tag){case 0:case 11:case 15:zn(t),t.flags&2048&&ml(9,t,t.return);break;case 3:zn(t);break;case 12:zn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ci(t)):zn(t);break;default:zn(t)}}function Ci(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Zt=a,wr(a,t)}Lr(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ml(8,e,e.return),Ci(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Ci(e));break;default:Ci(e)}t=t.sibling}}function wr(t,e){for(;Zt!==null;){var l=Zt;switch(l.tag){case 0:case 11:case 15:ml(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:un(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Zt=a;else t:for(l=t;Zt!==null;){a=Zt;var n=a.sibling,i=a.return;if(jr(a),a===l){Zt=null;break t}if(n!==null){n.return=i,Zt=n;break t}Zt=i}}}var cy={getCacheForType:function(t){var e=kt(Ht),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return kt(Ht).controller.signal}},oy=typeof WeakMap=="function"?WeakMap:Map,mt=0,Tt=null,ut=null,ct=0,pt=0,ye=null,yl=!1,Ta=!1,Fs=!1,Pe=0,Rt=0,pl=0,kl=0,Ws=0,pe=0,Ea=0,Tn=null,ie=null,$s=!1,Ri=0,qr=0,Ui=1/0,Ni=null,gl=null,qt=0,vl=null,Ma=null,tl=0,Is=0,Ps=null,Gr=null,En=0,tc=null;function ge(){return(mt&2)!==0&&ct!==0?ct&-ct:A.T!==null?uc():eo()}function Xr(){if(pe===0)if((ct&536870912)===0||ft){var t=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),pe=t}else pe=536870912;return t=de.current,t!==null&&(t.flags|=32),pe}function ue(t,e,l){(t===Tt&&(pt===2||pt===9)||t.cancelPendingCommit!==null)&&(Aa(t,0),bl(t,ct,pe,!1)),Va(t,l),((mt&2)===0||t!==Tt)&&(t===Tt&&((mt&2)===0&&(kl|=l),Rt===4&&bl(t,ct,pe,!1)),Le(t))}function Zr(t,e,l){if((mt&6)!==0)throw Error(c(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Qa(t,e),n=a?hy(t,e):lc(t,e,!0),i=a;do{if(n===0){Ta&&!a&&bl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!fy(l)){n=lc(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var f=t;n=Tn;var m=f.current.memoizedState.isDehydrated;if(m&&(Aa(f,s).flags|=256),s=lc(f,s,!1),s!==2){if(Fs&&!m){f.errorRecoveryDisabledLanes|=i,kl|=i,n=4;break t}i=ie,ie=n,i!==null&&(ie===null?ie=i:ie.push.apply(ie,i))}n=s}if(i=!1,n!==2)continue}}if(n===1){Aa(t,0),bl(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:bl(a,e,pe,!yl);break t;case 2:ie=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(n=Ri+300-ce(),10<n)){if(bl(a,e,pe,!yl),Qn(a,0,!0)!==0)break t;tl=e,a.timeoutHandle=Sh(Qr.bind(null,a,l,ie,Ni,$s,e,pe,kl,Ea,yl,i,"Throttled",-0,0),n);break t}Qr(a,l,ie,Ni,$s,e,pe,kl,Ea,yl,i,null,-0,0)}}break}while(!0);Le(t)}function Qr(t,e,l,a,n,i,s,f,m,b,M,O,S,z){if(t.timeoutHandle=-1,O=e.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:we},Hr(e,i,O);var X=(i&62914560)===i?Ri-ce():(i&4194048)===i?qr-ce():0;if(X=Jy(O,X),X!==null){tl=i,t.cancelPendingCommit=X(Ir.bind(null,t,e,i,l,a,n,s,f,m,M,O,null,S,z)),bl(t,i,s,!b);return}}Ir(t,e,i,l,a,n,s,f,m)}function fy(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!re(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bl(t,e,l,a){e&=~Ws,e&=~kl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-fe(n),s=1<<i;a[i]=-1,n&=~s}l!==0&&Ic(t,l,e)}function Bi(){return(mt&6)===0?(Mn(0),!1):!0}function ec(){if(ut!==null){if(pt===0)var t=ut.return;else t=ut,Ze=Yl=null,gs(t),ga=null,cn=0,t=ut;for(;t!==null;)xr(t.alternate,t),t=t.return;ut=null}}function Aa(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Oy(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),tl=0,ec(),Tt=t,ut=l=Ge(t.current,null),ct=e,pt=0,ye=null,yl=!1,Ta=Qa(t,e),Fs=!1,Ea=pe=Ws=kl=pl=Rt=0,ie=Tn=null,$s=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-fe(a),i=1<<n;e|=t[n],a&=~i}return Pe=e,li(),l}function Vr(t,e){lt=null,A.H=pn,e===pa||e===fi?(e=sf(),pt=3):e===is?(e=sf(),pt=4):pt=e===Us?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ye=e,ut===null&&(Rt=1,Ti(t,_e(e,t.current)))}function Kr(){var t=de.current;return t===null?!0:(ct&4194048)===ct?Me===null:(ct&62914560)===ct||(ct&536870912)!==0?t===Me:!1}function kr(){var t=A.H;return A.H=pn,t===null?pn:t}function Jr(){var t=A.A;return A.A=cy,t}function Hi(){Rt=4,yl||(ct&4194048)!==ct&&de.current!==null||(Ta=!0),(pl&134217727)===0&&(kl&134217727)===0||Tt===null||bl(Tt,ct,pe,!1)}function lc(t,e,l){var a=mt;mt|=2;var n=kr(),i=Jr();(Tt!==t||ct!==e)&&(Ni=null,Aa(t,e)),e=!1;var s=Rt;t:do try{if(pt!==0&&ut!==null){var f=ut,m=ye;switch(pt){case 8:ec(),s=6;break t;case 3:case 2:case 9:case 6:de.current===null&&(e=!0);var b=pt;if(pt=0,ye=null,Da(t,f,m,b),l&&Ta){s=0;break t}break;default:b=pt,pt=0,ye=null,Da(t,f,m,b)}}ry(),s=Rt;break}catch(M){Vr(t,M)}while(!0);return e&&t.shellSuspendCounter++,Ze=Yl=null,mt=a,A.H=n,A.A=i,ut===null&&(Tt=null,ct=0,li()),s}function ry(){for(;ut!==null;)Fr(ut)}function hy(t,e){var l=mt;mt|=2;var a=kr(),n=Jr();Tt!==t||ct!==e?(Ni=null,Ui=ce()+500,Aa(t,e)):Ta=Qa(t,e);t:do try{if(pt!==0&&ut!==null){e=ut;var i=ye;e:switch(pt){case 1:pt=0,ye=null,Da(t,e,i,1);break;case 2:case 9:if(nf(i)){pt=0,ye=null,Wr(e);break}e=function(){pt!==2&&pt!==9||Tt!==t||(pt=7),Le(t)},i.then(e,e);break t;case 3:pt=7;break t;case 4:pt=5;break t;case 7:nf(i)?(pt=0,ye=null,Wr(e)):(pt=0,ye=null,Da(t,e,i,7));break;case 5:var s=null;switch(ut.tag){case 26:s=ut.memoizedState;case 5:case 27:var f=ut;if(s?Bh(s):f.stateNode.complete){pt=0,ye=null;var m=f.sibling;if(m!==null)ut=m;else{var b=f.return;b!==null?(ut=b,Li(b)):ut=null}break e}}pt=0,ye=null,Da(t,e,i,5);break;case 6:pt=0,ye=null,Da(t,e,i,6);break;case 8:ec(),Rt=6;break t;default:throw Error(c(462))}}dy();break}catch(M){Vr(t,M)}while(!0);return Ze=Yl=null,A.H=a,A.A=n,mt=l,ut!==null?0:(Tt=null,ct=0,li(),Rt)}function dy(){for(;ut!==null&&!Hd();)Fr(ut)}function Fr(t){var e=br(t.alternate,t,Pe);t.memoizedProps=t.pendingProps,e===null?Li(t):ut=e}function Wr(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=dr(l,e,e.pendingProps,e.type,void 0,ct);break;case 11:e=dr(l,e,e.pendingProps,e.type.render,e.ref,ct);break;case 5:gs(e);default:xr(l,e),e=ut=ko(e,Pe),e=br(l,e,Pe)}t.memoizedProps=t.pendingProps,e===null?Li(t):ut=e}function Da(t,e,l,a){Ze=Yl=null,gs(e),ga=null,cn=0;var n=e.return;try{if(ey(t,n,e,l,ct)){Rt=1,Ti(t,_e(l,t.current)),ut=null;return}}catch(i){if(n!==null)throw ut=n,i;Rt=1,Ti(t,_e(l,t.current)),ut=null;return}e.flags&32768?(ft||a===1?t=!0:Ta||(ct&536870912)!==0?t=!1:(yl=t=!0,(a===2||a===9||a===3||a===6)&&(a=de.current,a!==null&&a.tag===13&&(a.flags|=16384))),$r(e,t)):Li(e)}function Li(t){var e=t;do{if((e.flags&32768)!==0){$r(e,yl);return}t=e.return;var l=ny(e.alternate,e,Pe);if(l!==null){ut=l;return}if(e=e.sibling,e!==null){ut=e;return}ut=e=t}while(e!==null);Rt===0&&(Rt=5)}function $r(t,e){do{var l=iy(t.alternate,t);if(l!==null){l.flags&=32767,ut=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ut=t;return}ut=t=l}while(t!==null);Rt=6,ut=null}function Ir(t,e,l,a,n,i,s,f,m){t.cancelPendingCommit=null;do Yi();while(qt!==0);if((mt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(i=e.lanes|e.childLanes,i|=Qu,Kd(t,l,i,s,f,m),t===Tt&&(ut=Tt=null,ct=0),Ma=e,vl=t,tl=l,Is=i,Ps=n,Gr=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,gy(qn,function(){return ah(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=w.p,w.p=2,s=mt,mt|=4;try{uy(t,e,l)}finally{mt=s,w.p=n,A.T=a}}qt=1,Pr(),th(),eh()}}function Pr(){if(qt===1){qt=0;var t=vl,e=Ma,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=w.p;w.p=2;var n=mt;mt|=4;try{Ur(e,t);var i=mc,s=Yo(t.containerInfo),f=i.focusedElem,m=i.selectionRange;if(s!==f&&f&&f.ownerDocument&&Lo(f.ownerDocument.documentElement,f)){if(m!==null&&wu(f)){var b=m.start,M=m.end;if(M===void 0&&(M=b),"selectionStart"in f)f.selectionStart=b,f.selectionEnd=Math.min(M,f.value.length);else{var O=f.ownerDocument||document,S=O&&O.defaultView||window;if(S.getSelection){var z=S.getSelection(),X=f.textContent.length,$=Math.min(m.start,X),St=m.end===void 0?$:Math.min(m.end,X);!z.extend&&$>St&&(s=St,St=$,$=s);var g=Ho(f,$),p=Ho(f,St);if(g&&p&&(z.rangeCount!==1||z.anchorNode!==g.node||z.anchorOffset!==g.offset||z.focusNode!==p.node||z.focusOffset!==p.offset)){var v=O.createRange();v.setStart(g.node,g.offset),z.removeAllRanges(),$>St?(z.addRange(v),z.extend(p.node,p.offset)):(v.setEnd(p.node,p.offset),z.addRange(v))}}}}for(O=[],z=f;z=z.parentNode;)z.nodeType===1&&O.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<O.length;f++){var j=O[f];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Wi=!!dc,mc=dc=null}finally{mt=n,w.p=a,A.T=l}}t.current=e,qt=2}}function th(){if(qt===2){qt=0;var t=vl,e=Ma,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=w.p;w.p=2;var n=mt;mt|=4;try{Dr(t,e.alternate,e)}finally{mt=n,w.p=a,A.T=l}}qt=3}}function eh(){if(qt===4||qt===3){qt=0,Ld();var t=vl,e=Ma,l=tl,a=Gr;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?qt=5:(qt=0,Ma=vl=null,lh(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(gl=null),Su(l),e=e.stateNode,oe&&typeof oe.onCommitFiberRoot=="function")try{oe.onCommitFiberRoot(Za,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=A.T,n=w.p,w.p=2,A.T=null;try{for(var i=t.onRecoverableError,s=0;s<a.length;s++){var f=a[s];i(f.value,{componentStack:f.stack})}}finally{A.T=e,w.p=n}}(tl&3)!==0&&Yi(),Le(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===tc?En++:(En=0,tc=t):En=0,Mn(0)}}function lh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,un(e)))}function Yi(){return Pr(),th(),eh(),ah()}function ah(){if(qt!==5)return!1;var t=vl,e=Is;Is=0;var l=Su(tl),a=A.T,n=w.p;try{w.p=32>l?32:l,A.T=null,l=Ps,Ps=null;var i=vl,s=tl;if(qt=0,Ma=vl=null,tl=0,(mt&6)!==0)throw Error(c(331));var f=mt;if(mt|=4,Yr(i.current),Br(i,i.current,s,l),mt=f,Mn(0,!1),oe&&typeof oe.onPostCommitFiberRoot=="function")try{oe.onPostCommitFiberRoot(Za,i)}catch{}return!0}finally{w.p=n,A.T=a,lh(t,e)}}function nh(t,e,l){e=_e(l,e),e=Rs(t.stateNode,e,2),t=rl(t,e,2),t!==null&&(Va(t,2),Le(t))}function gt(t,e,l){if(t.tag===3)nh(t,t,l);else for(;e!==null;){if(e.tag===3){nh(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(gl===null||!gl.has(a))){t=_e(l,t),l=ir(2),a=rl(e,l,2),a!==null&&(ur(l,a,e,t),Va(a,2),Le(a));break}}e=e.return}}function ac(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new oy;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Fs=!0,n.add(l),t=my.bind(null,t,e,l),e.then(t,t))}function my(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Tt===t&&(ct&l)===l&&(Rt===4||Rt===3&&(ct&62914560)===ct&&300>ce()-Ri?(mt&2)===0&&Aa(t,0):Ws|=l,Ea===ct&&(Ea=0)),Le(t)}function ih(t,e){e===0&&(e=$c()),t=Bl(t,e),t!==null&&(Va(t,e),Le(t))}function yy(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),ih(t,l)}function py(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(e),ih(t,l)}function gy(t,e){return pu(t,e)}var wi=null,ja=null,nc=!1,qi=!1,ic=!1,Sl=0;function Le(t){t!==ja&&t.next===null&&(ja===null?wi=ja=t:ja=ja.next=t),qi=!0,nc||(nc=!0,by())}function Mn(t,e){if(!ic&&qi){ic=!0;do for(var l=!1,a=wi;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var s=a.suspendedLanes,f=a.pingedLanes;i=(1<<31-fe(42|t)+1)-1,i&=n&~(s&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,oh(a,i))}else i=ct,i=Qn(a,a===Tt?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Qa(a,i)||(l=!0,oh(a,i));a=a.next}while(l);ic=!1}}function vy(){uh()}function uh(){qi=nc=!1;var t=0;Sl!==0&&jy()&&(t=Sl);for(var e=ce(),l=null,a=wi;a!==null;){var n=a.next,i=sh(a,e);i===0?(a.next=null,l===null?wi=n:l.next=n,n===null&&(ja=l)):(l=a,(t!==0||(i&3)!==0)&&(qi=!0)),a=n}qt!==0&&qt!==5||Mn(t),Sl!==0&&(Sl=0)}function sh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var s=31-fe(i),f=1<<s,m=n[s];m===-1?((f&l)===0||(f&a)!==0)&&(n[s]=Vd(f,e)):m<=e&&(t.expiredLanes|=f),i&=~f}if(e=Tt,l=ct,l=Qn(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(pt===2||pt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&gu(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Qa(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&gu(a),Su(l)){case 2:case 8:l=Fc;break;case 32:l=qn;break;case 268435456:l=Wc;break;default:l=qn}return a=ch.bind(null,t),l=pu(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&gu(a),t.callbackPriority=2,t.callbackNode=null,2}function ch(t,e){if(qt!==0&&qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Yi()&&t.callbackNode!==l)return null;var a=ct;return a=Qn(t,t===Tt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Zr(t,a,e),sh(t,ce()),t.callbackNode!=null&&t.callbackNode===l?ch.bind(null,t):null)}function oh(t,e){if(Yi())return null;Zr(t,e,!0)}function by(){Cy(function(){(mt&6)!==0?pu(Jc,vy):uh()})}function uc(){if(Sl===0){var t=ma;t===0&&(t=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),Sl=t}return Sl}function fh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Jn(""+t)}function rh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Sy(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=fh((n[te]||null).action),s=a.submitter;s&&(e=(e=s[te]||null)?fh(e.formAction):s.getAttribute("formAction"),e!==null&&(i=e,s=null));var f=new In("action","action",null,a,n);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Sl!==0){var m=s?rh(n,s):new FormData(n);Ms(l,{pending:!0,data:m,method:n.method,action:i},null,m)}}else typeof i=="function"&&(f.preventDefault(),m=s?rh(n,s):new FormData(n),Ms(l,{pending:!0,data:m,method:n.method,action:i},i,m))},currentTarget:n}]})}}for(var sc=0;sc<Zu.length;sc++){var cc=Zu[sc],xy=cc.toLowerCase(),_y=cc[0].toUpperCase()+cc.slice(1);je(xy,"on"+_y)}je(Go,"onAnimationEnd"),je(Xo,"onAnimationIteration"),je(Zo,"onAnimationStart"),je("dblclick","onDoubleClick"),je("focusin","onFocus"),je("focusout","onBlur"),je(Ym,"onTransitionRun"),je(wm,"onTransitionStart"),je(qm,"onTransitionCancel"),je(Qo,"onTransitionEnd"),ta("onMouseEnter",["mouseout","mouseover"]),ta("onMouseLeave",["mouseout","mouseover"]),ta("onPointerEnter",["pointerout","pointerover"]),ta("onPointerLeave",["pointerout","pointerover"]),Cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="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(" "),zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(An));function hh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var s=a.length-1;0<=s;s--){var f=a[s],m=f.instance,b=f.currentTarget;if(f=f.listener,m!==i&&n.isPropagationStopped())break t;i=f,n.currentTarget=b;try{i(n)}catch(M){ei(M)}n.currentTarget=null,i=m}else for(s=0;s<a.length;s++){if(f=a[s],m=f.instance,b=f.currentTarget,f=f.listener,m!==i&&n.isPropagationStopped())break t;i=f,n.currentTarget=b;try{i(n)}catch(M){ei(M)}n.currentTarget=null,i=m}}}}function st(t,e){var l=e[xu];l===void 0&&(l=e[xu]=new Set);var a=t+"__bubble";l.has(a)||(dh(e,t,2,!1),l.add(a))}function oc(t,e,l){var a=0;e&&(a|=4),dh(l,t,a,e)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function fc(t){if(!t[Gi]){t[Gi]=!0,no.forEach(function(l){l!=="selectionchange"&&(zy.has(l)||oc(l,!1,t),oc(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Gi]||(e[Gi]=!0,oc("selectionchange",!1,e))}}function dh(t,e,l,a){switch(Xh(e)){case 2:var n=$y;break;case 8:n=Iy;break;default:n=Ec}l=n.bind(null,e,l,t),n=void 0,!Ou||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function rc(t,e,l,a,n){var i=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var f=a.stateNode.containerInfo;if(f===n)break;if(s===4)for(s=a.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;f!==null;){if(s=$l(f),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){a=i=s;continue t}f=f.parentNode}}a=a.return}go(function(){var b=i,M=Du(l),O=[];t:{var S=Vo.get(t);if(S!==void 0){var z=In,X=t;switch(t){case"keypress":if(Wn(l)===0)break t;case"keydown":case"keyup":z=pm;break;case"focusin":X="focus",z=Nu;break;case"focusout":X="blur",z=Nu;break;case"beforeblur":case"afterblur":z=Nu;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=So;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=nm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=bm;break;case Go:case Xo:case Zo:z=sm;break;case Qo:z=xm;break;case"scroll":case"scrollend":z=lm;break;case"wheel":z=zm;break;case"copy":case"cut":case"paste":z=om;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=_o;break;case"toggle":case"beforetoggle":z=Em}var $=(e&4)!==0,St=!$&&(t==="scroll"||t==="scrollend"),g=$?S!==null?S+"Capture":null:S;$=[];for(var p=b,v;p!==null;){var j=p;if(v=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||v===null||g===null||(j=Ja(p,g),j!=null&&$.push(Dn(p,j,v))),St)break;p=p.return}0<$.length&&(S=new z(S,X,null,l,M),O.push({event:S,listeners:$}))}}if((e&7)===0){t:{if(S=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",S&&l!==Au&&(X=l.relatedTarget||l.fromElement)&&($l(X)||X[Wl]))break t;if((z||S)&&(S=M.window===M?M:(S=M.ownerDocument)?S.defaultView||S.parentWindow:window,z?(X=l.relatedTarget||l.toElement,z=b,X=X?$l(X):null,X!==null&&(St=y(X),$=X.tag,X!==St||$!==5&&$!==27&&$!==6)&&(X=null)):(z=null,X=b),z!==X)){if($=So,j="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&($=_o,j="onPointerLeave",g="onPointerEnter",p="pointer"),St=z==null?S:ka(z),v=X==null?S:ka(X),S=new $(j,p+"leave",z,l,M),S.target=St,S.relatedTarget=v,j=null,$l(M)===b&&($=new $(g,p+"enter",X,l,M),$.target=v,$.relatedTarget=St,j=$),St=j,z&&X)e:{for($=Ty,g=z,p=X,v=0,j=g;j;j=$(j))v++;j=0;for(var F=p;F;F=$(F))j++;for(;0<v-j;)g=$(g),v--;for(;0<j-v;)p=$(p),j--;for(;v--;){if(g===p||p!==null&&g===p.alternate){$=g;break e}g=$(g),p=$(p)}$=null}else $=null;z!==null&&mh(O,S,z,$,!1),X!==null&&St!==null&&mh(O,St,X,$,!0)}}t:{if(S=b?ka(b):window,z=S.nodeName&&S.nodeName.toLowerCase(),z==="select"||z==="input"&&S.type==="file")var ht=Oo;else if(Do(S))if(Co)ht=Bm;else{ht=Um;var K=Rm}else z=S.nodeName,!z||z.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?b&&Mu(b.elementType)&&(ht=Oo):ht=Nm;if(ht&&(ht=ht(t,b))){jo(O,ht,l,M);break t}K&&K(t,S,b),t==="focusout"&&b&&S.type==="number"&&b.memoizedProps.value!=null&&Eu(S,"number",S.value)}switch(K=b?ka(b):window,t){case"focusin":(Do(K)||K.contentEditable==="true")&&(ua=K,qu=b,ln=null);break;case"focusout":ln=qu=ua=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,wo(O,l,M);break;case"selectionchange":if(Lm)break;case"keydown":case"keyup":wo(O,l,M)}var at;if(Hu)t:{switch(t){case"compositionstart":var ot="onCompositionStart";break t;case"compositionend":ot="onCompositionEnd";break t;case"compositionupdate":ot="onCompositionUpdate";break t}ot=void 0}else ia?Mo(t,l)&&(ot="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ot="onCompositionStart");ot&&(zo&&l.locale!=="ko"&&(ia||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&ia&&(at=vo()):(nl=M,Cu="value"in nl?nl.value:nl.textContent,ia=!0)),K=Xi(b,ot),0<K.length&&(ot=new xo(ot,t,null,l,M),O.push({event:ot,listeners:K}),at?ot.data=at:(at=Ao(l),at!==null&&(ot.data=at)))),(at=Am?Dm(t,l):jm(t,l))&&(ot=Xi(b,"onBeforeInput"),0<ot.length&&(K=new xo("onBeforeInput","beforeinput",null,l,M),O.push({event:K,listeners:ot}),K.data=at)),Sy(O,t,b,l,M)}hh(O,e)})}function Dn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Xi(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ja(t,l),n!=null&&a.unshift(Dn(t,n,i)),n=Ja(t,e),n!=null&&a.push(Dn(t,n,i))),t.tag===3)return a;t=t.return}return[]}function Ty(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function mh(t,e,l,a,n){for(var i=e._reactName,s=[];l!==null&&l!==a;){var f=l,m=f.alternate,b=f.stateNode;if(f=f.tag,m!==null&&m===a)break;f!==5&&f!==26&&f!==27||b===null||(m=b,n?(b=Ja(l,i),b!=null&&s.unshift(Dn(l,b,m))):n||(b=Ja(l,i),b!=null&&s.push(Dn(l,b,m)))),l=l.return}s.length!==0&&t.push({event:e,listeners:s})}var Ey=/\r\n?/g,My=/\u0000|\uFFFD/g;function yh(t){return(typeof t=="string"?t:""+t).replace(Ey,`
|
|
33
|
-
`).replace(My,"")}function ph(t,e){return e=yh(e),yh(t)===e}function bt(t,e,l,a,n,i){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||la(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&la(t,""+a);break;case"className":Kn(t,"class",a);break;case"tabIndex":Kn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(t,l,a);break;case"style":yo(t,a,i);break;case"data":if(e!=="object"){Kn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Jn(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(e!=="input"&&bt(t,e,"name",n.name,n,null),bt(t,e,"formEncType",n.formEncType,n,null),bt(t,e,"formMethod",n.formMethod,n,null),bt(t,e,"formTarget",n.formTarget,n,null)):(bt(t,e,"encType",n.encType,n,null),bt(t,e,"method",n.method,n,null),bt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Jn(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=we);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}l=Jn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":st("beforetoggle",t),st("toggle",t),Vn(t,"popover",a);break;case"xlinkActuate":Ye(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ye(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ye(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ye(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ye(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ye(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ye(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ye(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ye(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=tm.get(l)||l,Vn(t,l,a))}}function hc(t,e,l,a,n,i){switch(l){case"style":yo(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof a=="string"?la(t,a):(typeof a=="number"||typeof a=="bigint")&&la(t,""+a);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"onClick":a!=null&&(t.onclick=we);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!io.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),i=t[te]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Vn(t,l,a)}}}function Ft(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",t),st("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];if(s!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:bt(t,e,i,s,l,null)}}n&&bt(t,e,"srcSet",l.srcSet,l,null),a&&bt(t,e,"src",l.src,l,null);return;case"input":st("invalid",t);var f=i=s=n=null,m=null,b=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":s=M;break;case"checked":m=M;break;case"defaultChecked":b=M;break;case"value":i=M;break;case"defaultValue":f=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,e));break;default:bt(t,e,a,M,l,null)}}fo(t,i,f,m,b,s,n,!1);return;case"select":st("invalid",t),a=s=i=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":i=f;break;case"defaultValue":s=f;break;case"multiple":a=f;default:bt(t,e,n,f,l,null)}e=i,l=s,t.multiple=!!a,e!=null?ea(t,!!a,e,!1):l!=null&&ea(t,!!a,l,!0);return;case"textarea":st("invalid",t),i=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(f=l[s],f!=null))switch(s){case"value":a=f;break;case"defaultValue":n=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(c(91));break;default:bt(t,e,s,f,l,null)}ho(t,a,n,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:bt(t,e,m,a,l,null)}return;case"dialog":st("beforetoggle",t),st("toggle",t),st("cancel",t),st("close",t);break;case"iframe":case"object":st("load",t);break;case"video":case"audio":for(a=0;a<An.length;a++)st(An[a],t);break;case"image":st("error",t),st("load",t);break;case"details":st("toggle",t);break;case"embed":case"source":case"link":st("error",t),st("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:bt(t,e,b,a,l,null)}return;default:if(Mu(e)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&hc(t,e,M,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&bt(t,e,f,a,l,null))}function Ay(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,s=null,f=null,m=null,b=null,M=null;for(z in l){var O=l[z];if(l.hasOwnProperty(z)&&O!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":m=O;default:a.hasOwnProperty(z)||bt(t,e,z,null,a,O)}}for(var S in a){var z=a[S];if(O=l[S],a.hasOwnProperty(S)&&(z!=null||O!=null))switch(S){case"type":i=z;break;case"name":n=z;break;case"checked":b=z;break;case"defaultChecked":M=z;break;case"value":s=z;break;case"defaultValue":f=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,e));break;default:z!==O&&bt(t,e,S,z,a,O)}}Tu(t,s,f,m,b,M,i,n);return;case"select":z=s=f=S=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":z=m;default:a.hasOwnProperty(i)||bt(t,e,i,null,a,m)}for(n in a)if(i=a[n],m=l[n],a.hasOwnProperty(n)&&(i!=null||m!=null))switch(n){case"value":S=i;break;case"defaultValue":f=i;break;case"multiple":s=i;default:i!==m&&bt(t,e,n,i,a,m)}e=f,l=s,a=z,S!=null?ea(t,!!l,S,!1):!!a!=!!l&&(e!=null?ea(t,!!l,e,!0):ea(t,!!l,l?[]:"",!1));return;case"textarea":z=S=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:bt(t,e,f,null,a,n)}for(s in a)if(n=a[s],i=l[s],a.hasOwnProperty(s)&&(n!=null||i!=null))switch(s){case"value":S=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==i&&bt(t,e,s,n,a,i)}ro(t,S,z);return;case"option":for(var X in l)if(S=l[X],l.hasOwnProperty(X)&&S!=null&&!a.hasOwnProperty(X))switch(X){case"selected":t.selected=!1;break;default:bt(t,e,X,null,a,S)}for(m in a)if(S=a[m],z=l[m],a.hasOwnProperty(m)&&S!==z&&(S!=null||z!=null))switch(m){case"selected":t.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:bt(t,e,m,S,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $ in l)S=l[$],l.hasOwnProperty($)&&S!=null&&!a.hasOwnProperty($)&&bt(t,e,$,null,a,S);for(b in a)if(S=a[b],z=l[b],a.hasOwnProperty(b)&&S!==z&&(S!=null||z!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(c(137,e));break;default:bt(t,e,b,S,a,z)}return;default:if(Mu(e)){for(var St in l)S=l[St],l.hasOwnProperty(St)&&S!==void 0&&!a.hasOwnProperty(St)&&hc(t,e,St,void 0,a,S);for(M in a)S=a[M],z=l[M],!a.hasOwnProperty(M)||S===z||S===void 0&&z===void 0||hc(t,e,M,S,a,z);return}}for(var g in l)S=l[g],l.hasOwnProperty(g)&&S!=null&&!a.hasOwnProperty(g)&&bt(t,e,g,null,a,S);for(O in a)S=a[O],z=l[O],!a.hasOwnProperty(O)||S===z||S==null&&z==null||bt(t,e,O,S,a,z)}function gh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Dy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,s=n.initiatorType,f=n.duration;if(i&&f&&gh(s)){for(s=0,f=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],b=m.startTime;if(b>f)break;var M=m.transferSize,O=m.initiatorType;M&&gh(O)&&(m=m.responseEnd,s+=M*(m<f?1:(f-b)/(m-b)))}if(--a,e+=8*(i+s)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var dc=null,mc=null;function Zi(t){return t.nodeType===9?t:t.ownerDocument}function vh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function yc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var pc=null;function jy(){var t=window.event;return t&&t.type==="popstate"?t===pc?!1:(pc=t,!0):(pc=null,!1)}var Sh=typeof setTimeout=="function"?setTimeout:void 0,Oy=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Cy=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(t){return xh.resolve(null).then(t).catch(Ry)}:Sh;function Ry(t){setTimeout(function(){throw t})}function xl(t){return t==="head"}function _h(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Ua(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")jn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,jn(l);for(var i=l.firstChild;i;){var s=i.nextSibling,f=i.nodeName;i[Ka]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=s}}else l==="body"&&jn(t.ownerDocument.body);l=n}while(l);Ua(e)}function zh(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function gc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gc(l),_u(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Uy(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ka])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ae(t.nextSibling),t===null)break}return null}function Ny(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ae(t.nextSibling),t===null))return null;return t}function Th(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ae(t.nextSibling),t===null))return null;return t}function vc(t){return t.data==="$?"||t.data==="$~"}function bc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function By(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ae(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Sc=null;function Eh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ae(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Mh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Ah(t,e,l){switch(e=Zi(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function jn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);_u(t)}var De=new Map,Dh=new Set;function Qi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var el=w.d;w.d={f:Hy,r:Ly,D:Yy,C:wy,L:qy,m:Gy,X:Zy,S:Xy,M:Qy};function Hy(){var t=el.f(),e=Bi();return t||e}function Ly(t){var e=Il(t);e!==null&&e.tag===5&&e.type==="form"?Vf(e):el.r(t)}var Oa=typeof document>"u"?null:document;function jh(t,e,l){var a=Oa;if(a&&typeof e=="string"&&e){var n=Se(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Dh.has(n)||(Dh.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Ft(e,"link",t),Xt(e),a.head.appendChild(e)))}}function Yy(t){el.D(t),jh("dns-prefetch",t,null)}function wy(t,e){el.C(t,e),jh("preconnect",t,e)}function qy(t,e,l){el.L(t,e,l);var a=Oa;if(a&&t&&e){var n='link[rel="preload"][as="'+Se(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Se(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Se(l.imageSizes)+'"]')):n+='[href="'+Se(t)+'"]';var i=n;switch(e){case"style":i=Ca(t);break;case"script":i=Ra(t)}De.has(i)||(t=D({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),De.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(On(i))||e==="script"&&a.querySelector(Cn(i))||(e=a.createElement("link"),Ft(e,"link",t),Xt(e),a.head.appendChild(e)))}}function Gy(t,e){el.m(t,e);var l=Oa;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Se(a)+'"][href="'+Se(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ra(t)}if(!De.has(i)&&(t=D({rel:"modulepreload",href:t},e),De.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Cn(i)))return}a=l.createElement("link"),Ft(a,"link",t),Xt(a),l.head.appendChild(a)}}}function Xy(t,e,l){el.S(t,e,l);var a=Oa;if(a&&t){var n=Pl(a).hoistableStyles,i=Ca(t);e=e||"default";var s=n.get(i);if(!s){var f={loading:0,preload:null};if(s=a.querySelector(On(i)))f.loading=5;else{t=D({rel:"stylesheet",href:t,"data-precedence":e},l),(l=De.get(i))&&xc(t,l);var m=s=a.createElement("link");Xt(m),Ft(m,"link",t),m._p=new Promise(function(b,M){m.onload=b,m.onerror=M}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Vi(s,e,a)}s={type:"stylesheet",instance:s,count:1,state:f},n.set(i,s)}}}function Zy(t,e){el.X(t,e);var l=Oa;if(l&&t){var a=Pl(l).hoistableScripts,n=Ra(t),i=a.get(n);i||(i=l.querySelector(Cn(n)),i||(t=D({src:t,async:!0},e),(e=De.get(n))&&_c(t,e),i=l.createElement("script"),Xt(i),Ft(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Qy(t,e){el.M(t,e);var l=Oa;if(l&&t){var a=Pl(l).hoistableScripts,n=Ra(t),i=a.get(n);i||(i=l.querySelector(Cn(n)),i||(t=D({src:t,async:!0,type:"module"},e),(e=De.get(n))&&_c(t,e),i=l.createElement("script"),Xt(i),Ft(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Oh(t,e,l,a){var n=(n=Ue.current)?Qi(n):null;if(!n)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ca(l.href),l=Pl(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ca(l.href);var i=Pl(n).hoistableStyles,s=i.get(t);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,s),(i=n.querySelector(On(t)))&&!i._p&&(s.instance=i,s.state.loading=5),De.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},De.set(t,l),i||Vy(n,t,l,s.state))),e&&a===null)throw Error(c(528,""));return s}if(e&&a!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ra(l),l=Pl(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Ca(t){return'href="'+Se(t)+'"'}function On(t){return'link[rel="stylesheet"]['+t+"]"}function Ch(t){return D({},t,{"data-precedence":t.precedence,precedence:null})}function Vy(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Ft(e,"link",l),Xt(e),t.head.appendChild(e))}function Ra(t){return'[src="'+Se(t)+'"]'}function Cn(t){return"script[async]"+t}function Rh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Se(l.href)+'"]');if(a)return e.instance=a,Xt(a),a;var n=D({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Xt(a),Ft(a,"style",n),Vi(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ca(l.href);var i=t.querySelector(On(n));if(i)return e.state.loading|=4,e.instance=i,Xt(i),i;a=Ch(l),(n=De.get(n))&&xc(a,n),i=(t.ownerDocument||t).createElement("link"),Xt(i);var s=i;return s._p=new Promise(function(f,m){s.onload=f,s.onerror=m}),Ft(i,"link",a),e.state.loading|=4,Vi(i,l.precedence,t),e.instance=i;case"script":return i=Ra(l.src),(n=t.querySelector(Cn(i)))?(e.instance=n,Xt(n),n):(a=l,(n=De.get(i))&&(a=D({},l),_c(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Xt(n),Ft(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Vi(a,l.precedence,t));return e.instance}function Vi(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,s=0;s<a.length;s++){var f=a[s];if(f.dataset.precedence===e)i=f;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function xc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _c(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ki=null;function Uh(t,e,l){if(Ki===null){var a=new Map,n=Ki=new Map;n.set(l,a)}else n=Ki,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[Ka]||i[Vt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(e)||"";s=t+s;var f=a.get(s);f?f.push(i):a.set(s,[i])}}return a}function Nh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Ky(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Bh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ky(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ca(a.href),i=e.querySelector(On(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ki.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,Xt(i);return}i=e.ownerDocument||e,a=Ch(a),(n=De.get(n))&&xc(a,n),i=i.createElement("link"),Xt(i);var s=i;s._p=new Promise(function(f,m){s.onload=f,s.onerror=m}),Ft(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=ki.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var zc=0;function Jy(t,e){return t.stylesheets&&t.count===0&&Fi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Fi(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&zc===0&&(zc=62500*Dy());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Fi(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>zc?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ki(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ji=null;function Fi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ji=new Map,e.forEach(Fy,t),Ji=null,ki.call(t))}function Fy(t,e){if(!(e.state.loading&4)){var l=Ji.get(t);if(l)var a=l.get(null);else{l=new Map,Ji.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var s=n[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=e.instance,s=n.getAttribute("data-precedence"),i=l.get(s)||a,i===a&&l.set(null,n),l.set(s,n),this.count++,a=ki.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Rn={$$typeof:Z,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Wy(t,e,l,a,n,i,s,f,m){this.tag=1,this.containerInfo=t,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=vu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.hiddenUpdates=vu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Hh(t,e,l,a,n,i,s,f,m,b,M,O){return t=new Wy(t,e,l,s,m,b,M,O,f),e=1,i===!0&&(e|=24),i=he(3,null,null,e),t.current=i,i.stateNode=t,e=ls(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},us(i),t}function Lh(t){return t?(t=oa,t):oa}function Yh(t,e,l,a,n,i){n=Lh(n),a.context===null?a.context=n:a.pendingContext=n,a=fl(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=rl(t,a,e),l!==null&&(ue(l,t,e),fn(l,t,e))}function wh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Tc(t,e){wh(t,e),(t=t.alternate)&&wh(t,e)}function qh(t){if(t.tag===13||t.tag===31){var e=Bl(t,67108864);e!==null&&ue(e,t,67108864),Tc(t,67108864)}}function Gh(t){if(t.tag===13||t.tag===31){var e=ge();e=bu(e);var l=Bl(t,e);l!==null&&ue(l,t,e),Tc(t,e)}}var Wi=!0;function $y(t,e,l,a){var n=A.T;A.T=null;var i=w.p;try{w.p=2,Ec(t,e,l,a)}finally{w.p=i,A.T=n}}function Iy(t,e,l,a){var n=A.T;A.T=null;var i=w.p;try{w.p=8,Ec(t,e,l,a)}finally{w.p=i,A.T=n}}function Ec(t,e,l,a){if(Wi){var n=Mc(a);if(n===null)rc(t,e,a,$i,l),Zh(t,a);else if(t0(n,t,e,l,a))a.stopPropagation();else if(Zh(t,a),e&4&&-1<Py.indexOf(t)){for(;n!==null;){var i=Il(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=Ol(i.pendingLanes);if(s!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;s;){var m=1<<31-fe(s);f.entanglements[1]|=m,s&=~m}Le(i),(mt&6)===0&&(Ui=ce()+500,Mn(0))}}break;case 31:case 13:f=Bl(i,2),f!==null&&ue(f,i,2),Bi(),Tc(i,2)}if(i=Mc(a),i===null&&rc(t,e,a,$i,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else rc(t,e,a,null,l)}}function Mc(t){return t=Du(t),Ac(t)}var $i=null;function Ac(t){if($i=null,t=$l(t),t!==null){var e=y(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=x(e),t!==null)return t;t=null}else if(l===31){if(t=T(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return $i=t,null}function Xh(t){switch(t){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(Yd()){case Jc:return 2;case Fc:return 8;case qn:case wd:return 32;case Wc:return 268435456;default:return 32}default:return 32}}var Dc=!1,_l=null,zl=null,Tl=null,Un=new Map,Nn=new Map,El=[],Py="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 Zh(t,e){switch(t){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":zl=null;break;case"mouseover":case"mouseout":Tl=null;break;case"pointerover":case"pointerout":Un.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nn.delete(e.pointerId)}}function Bn(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=Il(e),e!==null&&qh(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function t0(t,e,l,a,n){switch(e){case"focusin":return _l=Bn(_l,t,e,l,a,n),!0;case"dragenter":return zl=Bn(zl,t,e,l,a,n),!0;case"mouseover":return Tl=Bn(Tl,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return Un.set(i,Bn(Un.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Nn.set(i,Bn(Nn.get(i)||null,t,e,l,a,n)),!0}return!1}function Qh(t){var e=$l(t.target);if(e!==null){var l=y(e);if(l!==null){if(e=l.tag,e===13){if(e=x(l),e!==null){t.blockedOn=e,lo(t.priority,function(){Gh(l)});return}}else if(e===31){if(e=T(l),e!==null){t.blockedOn=e,lo(t.priority,function(){Gh(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ii(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Mc(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Au=a,l.target.dispatchEvent(a),Au=null}else return e=Il(l),e!==null&&qh(e),t.blockedOn=l,!1;e.shift()}return!0}function Vh(t,e,l){Ii(t)&&l.delete(e)}function e0(){Dc=!1,_l!==null&&Ii(_l)&&(_l=null),zl!==null&&Ii(zl)&&(zl=null),Tl!==null&&Ii(Tl)&&(Tl=null),Un.forEach(Vh),Nn.forEach(Vh)}function Pi(t,e){t.blockedOn===e&&(t.blockedOn=null,Dc||(Dc=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,e0)))}var tu=null;function Kh(t){tu!==t&&(tu=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){tu===t&&(tu=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Ac(a||l)===null)continue;break}var i=Il(l);i!==null&&(t.splice(e,3),e-=3,Ms(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ua(t){function e(m){return Pi(m,t)}_l!==null&&Pi(_l,t),zl!==null&&Pi(zl,t),Tl!==null&&Pi(Tl,t),Un.forEach(e),Nn.forEach(e);for(var l=0;l<El.length;l++){var a=El[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<El.length&&(l=El[0],l.blockedOn===null);)Qh(l),l.blockedOn===null&&El.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],s=n[te]||null;if(typeof i=="function")s||Kh(l);else if(s){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,s=i[te]||null)f=s.formAction;else if(Ac(n)!==null)continue}else f=s.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Kh(l)}}}function kh(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function jc(t){this._internalRoot=t}eu.prototype.render=jc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,a=ge();Yh(l,a,t,e,null,null)},eu.prototype.unmount=jc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Yh(t.current,2,null,t,null,null),Bi(),e[Wl]=null}};function eu(t){this._internalRoot=t}eu.prototype.unstable_scheduleHydration=function(t){if(t){var e=eo();t={blockedOn:null,target:t,priority:e};for(var l=0;l<El.length&&e!==0&&e<El[l].priority;l++);El.splice(l,0,t),l===0&&Qh(t)}};var Jh=u.version;if(Jh!=="19.2.7")throw Error(c(527,Jh,"19.2.7"));w.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=U(e),t=t!==null?C(t):null,t=t===null?null:t.stateNode,t};var l0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Za=lu.inject(l0),oe=lu}catch{}}return Yn.createRoot=function(t,e){if(!h(t))throw Error(c(299));var l=!1,a="",n=er,i=lr,s=ar;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Hh(t,1,!1,null,null,l,a,null,n,i,s,kh),t[Wl]=e.current,fc(t),new jc(e)},Yn.hydrateRoot=function(t,e,l){if(!h(t))throw Error(c(299));var a=!1,n="",i=er,s=lr,f=ar,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=Hh(t,1,!0,e,l??null,a,n,m,i,s,f,kh),e.context=Lh(null),l=e.current,a=ge(),a=bu(a),n=fl(a),n.callback=null,rl(l,n,a),l=a,e.current.lanes=l,Va(e,l),Le(e),t[Wl]=e.current,fc(t),new eu(e)},Yn.version="19.2.7",Yn}var sd;function X0(){if(sd)return Rc.exports;sd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(u){console.error(u)}}return o(),Rc.exports=G0(),Rc.exports}var Z0=X0(),H=Md();const Q0="";async function ru(o){const u=await fetch(`${Q0}${o}`);if(!u.ok)throw new Error(`${u.status} ${u.statusText}: ${o}`);return u.json()}function V0(){return ru("/api/memories")}function K0(){return ru("/api/stats")}function k0(){return ru("/api/conflicts")}function J0(){return ru("/api/embeddings")}const cd={type:"change"},Xc={type:"start"},Ad={type:"end"},au=new u0,od=new s0,F0=Math.cos(70*c0.DEG2RAD),Gt=new Wt,se=2*Math.PI,xt={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Bc=1e-6;class W0 extends i0{constructor(u,r=null){super(u,r),this.state=xt.NONE,this.target=new Wt,this.cursor=new Wt,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:Xa.ROTATE,MIDDLE:Xa.DOLLY,RIGHT:Xa.PAN},this.touches={ONE:Ga.ROTATE,TWO:Ga.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._cursorStyle="auto",this._domElementKeyEvents=null,this._lastPosition=new Wt,this._lastQuaternion=new Fh,this._lastTargetPosition=new Wt,this._quat=new Fh().setFromUnitVectors(u.up,new Wt(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new Wh,this._sphericalDelta=new Wh,this._scale=1,this._panOffset=new Wt,this._rotateStart=new It,this._rotateEnd=new It,this._rotateDelta=new It,this._panStart=new It,this._panEnd=new It,this._panDelta=new It,this._dollyStart=new It,this._dollyEnd=new It,this._dollyDelta=new It,this._dollyDirection=new Wt,this._mouse=new It,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=I0.bind(this),this._onPointerDown=$0.bind(this),this._onPointerUp=P0.bind(this),this._onContextMenu=up.bind(this),this._onMouseWheel=lp.bind(this),this._onKeyDown=ap.bind(this),this._onTouchStart=np.bind(this),this._onTouchMove=ip.bind(this),this._onMouseDown=tp.bind(this),this._onMouseMove=ep.bind(this),this._interceptControlDown=sp.bind(this),this._interceptControlUp=cp.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}set cursorStyle(u){this._cursorStyle=u,u==="grab"?this.domElement.style.cursor="grab":this.domElement.style.cursor="auto"}get cursorStyle(){return this._cursorStyle}connect(u){super.connect(u),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction=""}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(u){u.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=u}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(cd),this.update(),this.state=xt.NONE}pan(u,r){this._pan(u,r),this.update()}dollyIn(u){this._dollyIn(u),this.update()}dollyOut(u){this._dollyOut(u),this.update()}rotateLeft(u){this._rotateLeft(u),this.update()}rotateUp(u){this._rotateUp(u),this.update()}update(u=null){const r=this.object.position;Gt.copy(r).sub(this.target),Gt.applyQuaternion(this._quat),this._spherical.setFromVector3(Gt),this.autoRotate&&this.state===xt.NONE&&this._rotateLeft(this._getAutoRotationAngle(u)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let c=this.minAzimuthAngle,h=this.maxAzimuthAngle;isFinite(c)&&isFinite(h)&&(c<-Math.PI?c+=se:c>Math.PI&&(c-=se),h<-Math.PI?h+=se:h>Math.PI&&(h-=se),c<=h?this._spherical.theta=Math.max(c,Math.min(h,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(c+h)/2?Math.max(c,this._spherical.theta):Math.min(h,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let y=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const x=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),y=x!=this._spherical.radius}if(Gt.setFromSpherical(this._spherical),Gt.applyQuaternion(this._quatInverse),r.copy(this.target).add(Gt),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let x=null;if(this.object.isPerspectiveCamera){const T=Gt.length();x=this._clampDistance(T*this._scale);const R=T-x;this.object.position.addScaledVector(this._dollyDirection,R),this.object.updateMatrixWorld(),y=!!R}else if(this.object.isOrthographicCamera){const T=new Wt(this._mouse.x,this._mouse.y,0);T.unproject(this.object);const R=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),y=R!==this.object.zoom;const U=new Wt(this._mouse.x,this._mouse.y,0);U.unproject(this.object),this.object.position.sub(U).add(T),this.object.updateMatrixWorld(),x=Gt.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;x!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(x).add(this.object.position):(au.origin.copy(this.object.position),au.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(au.direction))<F0?this.object.lookAt(this.target):(od.setFromNormalAndCoplanarPoint(this.object.up,this.target),au.intersectPlane(od,this.target))))}else if(this.object.isOrthographicCamera){const x=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),x!==this.object.zoom&&(this.object.updateProjectionMatrix(),y=!0)}return this._scale=1,this._performCursorZoom=!1,y||this._lastPosition.distanceToSquared(this.object.position)>Bc||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Bc||this._lastTargetPosition.distanceToSquared(this.target)>Bc?(this.dispatchEvent(cd),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(u){return u!==null?se/60*this.autoRotateSpeed*u:se/60/60*this.autoRotateSpeed}_getZoomScale(u){const r=Math.abs(u*.01);return Math.pow(.95,this.zoomSpeed*r)}_rotateLeft(u){this._sphericalDelta.theta-=u}_rotateUp(u){this._sphericalDelta.phi-=u}_panLeft(u,r){Gt.setFromMatrixColumn(r,0),Gt.multiplyScalar(-u),this._panOffset.add(Gt)}_panUp(u,r){this.screenSpacePanning===!0?Gt.setFromMatrixColumn(r,1):(Gt.setFromMatrixColumn(r,0),Gt.crossVectors(this.object.up,Gt)),Gt.multiplyScalar(u),this._panOffset.add(Gt)}_pan(u,r){const c=this.domElement;if(this.object.isPerspectiveCamera){const h=this.object.position;Gt.copy(h).sub(this.target);let y=Gt.length();y*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*u*y/c.clientHeight,this.object.matrix),this._panUp(2*r*y/c.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(u*(this.object.right-this.object.left)/this.object.zoom/c.clientWidth,this.object.matrix),this._panUp(r*(this.object.top-this.object.bottom)/this.object.zoom/c.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(u){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=u:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(u){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=u:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(u,r){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const c=this.domElement.getBoundingClientRect(),h=u-c.left,y=r-c.top,x=c.width,T=c.height;this._mouse.x=h/x*2-1,this._mouse.y=-(y/T)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(u){return Math.max(this.minDistance,Math.min(this.maxDistance,u))}_handleMouseDownRotate(u){this._rotateStart.set(u.clientX,u.clientY)}_handleMouseDownDolly(u){this._updateZoomParameters(u.clientX,u.clientX),this._dollyStart.set(u.clientX,u.clientY)}_handleMouseDownPan(u){this._panStart.set(u.clientX,u.clientY)}_handleMouseMoveRotate(u){this._rotateEnd.set(u.clientX,u.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const r=this.domElement;this._rotateLeft(se*this._rotateDelta.x/r.clientHeight),this._rotateUp(se*this._rotateDelta.y/r.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(u){this._dollyEnd.set(u.clientX,u.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(u){this._panEnd.set(u.clientX,u.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(u){this._updateZoomParameters(u.clientX,u.clientY),u.deltaY<0?this._dollyIn(this._getZoomScale(u.deltaY)):u.deltaY>0&&this._dollyOut(this._getZoomScale(u.deltaY)),this.update()}_handleKeyDown(u){let r=!1;switch(u.code){case this.keys.UP:u.ctrlKey||u.metaKey||u.shiftKey?this.enableRotate&&this._rotateUp(se*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),r=!0;break;case this.keys.BOTTOM:u.ctrlKey||u.metaKey||u.shiftKey?this.enableRotate&&this._rotateUp(-se*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),r=!0;break;case this.keys.LEFT:u.ctrlKey||u.metaKey||u.shiftKey?this.enableRotate&&this._rotateLeft(se*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),r=!0;break;case this.keys.RIGHT:u.ctrlKey||u.metaKey||u.shiftKey?this.enableRotate&&this._rotateLeft(-se*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),r=!0;break}r&&(u.preventDefault(),this.update())}_handleTouchStartRotate(u){if(this._pointers.length===1)this._rotateStart.set(u.pageX,u.pageY);else{const r=this._getSecondPointerPosition(u),c=.5*(u.pageX+r.x),h=.5*(u.pageY+r.y);this._rotateStart.set(c,h)}}_handleTouchStartPan(u){if(this._pointers.length===1)this._panStart.set(u.pageX,u.pageY);else{const r=this._getSecondPointerPosition(u),c=.5*(u.pageX+r.x),h=.5*(u.pageY+r.y);this._panStart.set(c,h)}}_handleTouchStartDolly(u){const r=this._getSecondPointerPosition(u),c=u.pageX-r.x,h=u.pageY-r.y,y=Math.sqrt(c*c+h*h);this._dollyStart.set(0,y)}_handleTouchStartDollyPan(u){this.enableZoom&&this._handleTouchStartDolly(u),this.enablePan&&this._handleTouchStartPan(u)}_handleTouchStartDollyRotate(u){this.enableZoom&&this._handleTouchStartDolly(u),this.enableRotate&&this._handleTouchStartRotate(u)}_handleTouchMoveRotate(u){if(this._pointers.length==1)this._rotateEnd.set(u.pageX,u.pageY);else{const c=this._getSecondPointerPosition(u),h=.5*(u.pageX+c.x),y=.5*(u.pageY+c.y);this._rotateEnd.set(h,y)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const r=this.domElement;this._rotateLeft(se*this._rotateDelta.x/r.clientHeight),this._rotateUp(se*this._rotateDelta.y/r.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(u){if(this._pointers.length===1)this._panEnd.set(u.pageX,u.pageY);else{const r=this._getSecondPointerPosition(u),c=.5*(u.pageX+r.x),h=.5*(u.pageY+r.y);this._panEnd.set(c,h)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(u){const r=this._getSecondPointerPosition(u),c=u.pageX-r.x,h=u.pageY-r.y,y=Math.sqrt(c*c+h*h);this._dollyEnd.set(0,y),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const x=(u.pageX+r.x)*.5,T=(u.pageY+r.y)*.5;this._updateZoomParameters(x,T)}_handleTouchMoveDollyPan(u){this.enableZoom&&this._handleTouchMoveDolly(u),this.enablePan&&this._handleTouchMovePan(u)}_handleTouchMoveDollyRotate(u){this.enableZoom&&this._handleTouchMoveDolly(u),this.enableRotate&&this._handleTouchMoveRotate(u)}_addPointer(u){this._pointers.push(u.pointerId)}_removePointer(u){delete this._pointerPositions[u.pointerId];for(let r=0;r<this._pointers.length;r++)if(this._pointers[r]==u.pointerId){this._pointers.splice(r,1);return}}_isTrackingPointer(u){for(let r=0;r<this._pointers.length;r++)if(this._pointers[r]==u.pointerId)return!0;return!1}_trackPointer(u){let r=this._pointerPositions[u.pointerId];r===void 0&&(r=new It,this._pointerPositions[u.pointerId]=r),r.set(u.pageX,u.pageY)}_getSecondPointerPosition(u){const r=u.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[r]}_customWheelEvent(u){const r=u.deltaMode,c={clientX:u.clientX,clientY:u.clientY,deltaY:u.deltaY};switch(r){case 1:c.deltaY*=16;break;case 2:c.deltaY*=100;break}return u.ctrlKey&&!this._controlActive&&(c.deltaY*=10),c}}function $0(o){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(o.pointerId),this.domElement.ownerDocument.addEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(o)&&(this._addPointer(o),o.pointerType==="touch"?this._onTouchStart(o):this._onMouseDown(o),this._cursorStyle==="grab"&&(this.domElement.style.cursor="grabbing")))}function I0(o){this.enabled!==!1&&(o.pointerType==="touch"?this._onTouchMove(o):this._onMouseMove(o))}function P0(o){switch(this._removePointer(o),this._pointers.length){case 0:this.domElement.releasePointerCapture(o.pointerId),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(Ad),this.state=xt.NONE,this._cursorStyle==="grab"&&(this.domElement.style.cursor="grab");break;case 1:const u=this._pointers[0],r=this._pointerPositions[u];this._onTouchStart({pointerId:u,pageX:r.x,pageY:r.y});break}}function tp(o){let u;switch(o.button){case 0:u=this.mouseButtons.LEFT;break;case 1:u=this.mouseButtons.MIDDLE;break;case 2:u=this.mouseButtons.RIGHT;break;default:u=-1}switch(u){case Xa.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(o),this.state=xt.DOLLY;break;case Xa.ROTATE:if(o.ctrlKey||o.metaKey||o.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(o),this.state=xt.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(o),this.state=xt.ROTATE}break;case Xa.PAN:if(o.ctrlKey||o.metaKey||o.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(o),this.state=xt.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(o),this.state=xt.PAN}break;default:this.state=xt.NONE}this.state!==xt.NONE&&this.dispatchEvent(Xc)}function ep(o){switch(this.state){case xt.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(o);break;case xt.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(o);break;case xt.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(o);break}}function lp(o){this.enabled===!1||this.enableZoom===!1||this.state!==xt.NONE||(o.preventDefault(),this.dispatchEvent(Xc),this._handleMouseWheel(this._customWheelEvent(o)),this.dispatchEvent(Ad))}function ap(o){this.enabled!==!1&&this._handleKeyDown(o)}function np(o){switch(this._trackPointer(o),this._pointers.length){case 1:switch(this.touches.ONE){case Ga.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(o),this.state=xt.TOUCH_ROTATE;break;case Ga.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(o),this.state=xt.TOUCH_PAN;break;default:this.state=xt.NONE}break;case 2:switch(this.touches.TWO){case Ga.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(o),this.state=xt.TOUCH_DOLLY_PAN;break;case Ga.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(o),this.state=xt.TOUCH_DOLLY_ROTATE;break;default:this.state=xt.NONE}break;default:this.state=xt.NONE}this.state!==xt.NONE&&this.dispatchEvent(Xc)}function ip(o){switch(this._trackPointer(o),this.state){case xt.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(o),this.update();break;case xt.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(o),this.update();break;case xt.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(o),this.update();break;case xt.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(o),this.update();break;default:this.state=xt.NONE}}function up(o){this.enabled!==!1&&o.preventDefault()}function sp(o){o.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function cp(o){o.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const op={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:`
|
|
34
|
-
|
|
35
|
-
varying vec2 vUv;
|
|
36
|
-
|
|
37
|
-
void main() {
|
|
38
|
-
|
|
39
|
-
vUv = uv;
|
|
40
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
41
|
-
|
|
42
|
-
}`,fragmentShader:`
|
|
43
|
-
|
|
44
|
-
uniform float opacity;
|
|
45
|
-
|
|
46
|
-
uniform sampler2D tDiffuse;
|
|
47
|
-
|
|
48
|
-
varying vec2 vUv;
|
|
49
|
-
|
|
50
|
-
void main() {
|
|
51
|
-
|
|
52
|
-
vec4 texel = texture2D( tDiffuse, vUv );
|
|
53
|
-
gl_FragColor = opacity * texel;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}`};class hu{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}const fp=new o0(-1,1,1,-1,0,1);class rp extends qa{constructor(){super(),this.setAttribute("position",new $h([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new $h([0,2,0,0,2,0],2))}}const hp=new rp;class dp{constructor(u){this._mesh=new ou(hp,u)}dispose(){this._mesh.geometry.dispose()}render(u){u.render(this._mesh,fp)}get material(){return this._mesh.material}set material(u){this._mesh.material=u}}class mp extends hu{constructor(u,r="tDiffuse"){super(),this.textureID=r,this.uniforms=null,this.material=null,u instanceof Ih?(this.uniforms=u.uniforms,this.material=u):u&&(this.uniforms=f0.clone(u.uniforms),this.material=new Ih({name:u.name!==void 0?u.name:"unspecified",defines:Object.assign({},u.defines),uniforms:this.uniforms,vertexShader:u.vertexShader,fragmentShader:u.fragmentShader})),this._fsQuad=new dp(this.material)}render(u,r,c){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=c.texture),this._fsQuad.material=this.material,this.renderToScreen?(u.setRenderTarget(null),this._fsQuad.render(u)):(u.setRenderTarget(r),this.clear&&u.clear(u.autoClearColor,u.autoClearDepth,u.autoClearStencil),this._fsQuad.render(u))}dispose(){this.material.dispose(),this._fsQuad.dispose()}}class fd extends hu{constructor(u,r){super(),this.scene=u,this.camera=r,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(u,r,c){const h=u.getContext(),y=u.state;y.buffers.color.setMask(!1),y.buffers.depth.setMask(!1),y.buffers.color.setLocked(!0),y.buffers.depth.setLocked(!0);let x,T;this.inverse?(x=0,T=1):(x=1,T=0),y.buffers.stencil.setTest(!0),y.buffers.stencil.setOp(h.REPLACE,h.REPLACE,h.REPLACE),y.buffers.stencil.setFunc(h.ALWAYS,x,4294967295),y.buffers.stencil.setClear(T),y.buffers.stencil.setLocked(!0),u.setRenderTarget(c),this.clear&&u.clear(),u.render(this.scene,this.camera),u.setRenderTarget(r),this.clear&&u.clear(),u.render(this.scene,this.camera),y.buffers.color.setLocked(!1),y.buffers.depth.setLocked(!1),y.buffers.color.setMask(!0),y.buffers.depth.setMask(!0),y.buffers.stencil.setLocked(!1),y.buffers.stencil.setFunc(h.EQUAL,1,4294967295),y.buffers.stencil.setOp(h.KEEP,h.KEEP,h.KEEP),y.buffers.stencil.setLocked(!0)}}class yp extends hu{constructor(){super(),this.needsSwap=!1}render(u){u.state.buffers.stencil.setLocked(!1),u.state.buffers.stencil.setTest(!1)}}class pp{constructor(u,r){if(this.renderer=u,this._pixelRatio=u.getPixelRatio(),r===void 0){const c=u.getSize(new It);this._width=c.width,this._height=c.height,r=new r0(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:h0}),r.texture.name="EffectComposer.rt1"}else this._width=r.width,this._height=r.height;this.renderTarget1=r,this.renderTarget2=r.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new mp(op),this.copyPass.material.blending=d0,this.timer=new m0}swapBuffers(){const u=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=u}addPass(u){this.passes.push(u),u.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(u,r){this.passes.splice(r,0,u),u.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(u){const r=this.passes.indexOf(u);r!==-1&&this.passes.splice(r,1)}isLastEnabledPass(u){for(let r=u+1;r<this.passes.length;r++)if(this.passes[r].enabled)return!1;return!0}render(u){this.timer.update(),u===void 0&&(u=this.timer.getDelta());const r=this.renderer.getRenderTarget();let c=!1;for(let h=0,y=this.passes.length;h<y;h++){const x=this.passes[h];if(x.enabled!==!1){if(x.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(h),x.render(this.renderer,this.writeBuffer,this.readBuffer,u,c),x.needsSwap){if(c){const T=this.renderer.getContext(),R=this.renderer.state.buffers.stencil;R.setFunc(T.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,u),R.setFunc(T.EQUAL,1,4294967295)}this.swapBuffers()}fd!==void 0&&(x instanceof fd?c=!0:x instanceof yp&&(c=!1))}}this.renderer.setRenderTarget(r)}reset(u){if(u===void 0){const r=this.renderer.getSize(new It);this._pixelRatio=this.renderer.getPixelRatio(),this._width=r.width,this._height=r.height,u=this.renderTarget1.clone(),u.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=u,this.renderTarget2=u.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(u,r){this._width=u,this._height=r;const c=this._width*this._pixelRatio,h=this._height*this._pixelRatio;this.renderTarget1.setSize(c,h),this.renderTarget2.setSize(c,h);for(let y=0;y<this.passes.length;y++)this.passes[y].setSize(c,h)}setPixelRatio(u){this._pixelRatio=u,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}class gp extends hu{constructor(u,r,c=null,h=null,y=null){super(),this.scene=u,this.camera=r,this.overrideMaterial=c,this.clearColor=h,this.clearAlpha=y,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this.isRenderPass=!0,this._oldClearColor=new Gc}render(u,r,c){const h=u.autoClear;u.autoClear=!1;let y,x;this.overrideMaterial!==null&&(x=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor!==null&&(u.getClearColor(this._oldClearColor),u.setClearColor(this.clearColor,u.getClearAlpha())),this.clearAlpha!==null&&(y=u.getClearAlpha(),u.setClearAlpha(this.clearAlpha)),this.clearDepth==!0&&u.clearDepth(),u.setRenderTarget(this.renderToScreen?null:c),this.clear===!0&&u.clear(u.autoClearColor,u.autoClearDepth,u.autoClearStencil),u.render(this.scene,this.camera),this.clearColor!==null&&u.setClearColor(this._oldClearColor),this.clearAlpha!==null&&u.setClearAlpha(y),this.overrideMaterial!==null&&(this.scene.overrideMaterial=x),u.autoClear=h}}const rd="#f4efe6",vp="#7c6caf",bp="#4a8ca3",Sp="#5a8f6b",xp=16052198,_p=12868668,hd=10504242,zp=8023907,Tp=12892584,Ep=16776438,Re={buffer:vp,episodic:bp,semantic:Sp},dd={query:"",layers:new Set,strengthRange:[0,1],confidences:new Set,ageMaxDays:null,frozen:!1,fadingOnly:!1,agedOutOnly:!1,colorMode:"layer",localView:null},Mp=.1;function Zc(o){return o.strength<Mp&&!o.pinned}function Ap(o){return!!(o.query.trim().length>0||o.layers.size>0||o.confidences.size>0||o.strengthRange[0]>0||o.strengthRange[1]<1||o.ageMaxDays!==null||o.fadingOnly||o.agedOutOnly||o.localView!==null)}function Dd(o,u){const r=u.trim().toLowerCase();return!r||o.content.toLowerCase().includes(r)?!0:o.tags.some(c=>c.toLowerCase().includes(r))}function Dp(o,u,r){const c=new Set,h=u.layers.size>0,y=u.confidences.size>0,[x,T]=u.strengthRange,R=x>0||T<1,U=u.ageMaxDays!==null;for(const C of o)Dd(C,u.query)&&(h&&!u.layers.has(C.layer)||y&&!u.confidences.has(C.confidence)||R&&(C.strength<x||C.strength>T)||U&&u.ageMaxDays!==null&&C.age_days>u.ageMaxDays||u.fadingOnly&&!Zc(C)||u.agedOutOnly&&!C.aged_out||u.localView!==null&&r!==void 0&&!r.has(C.id)||c.add(C.id));return c}const jp=["#1e5a7d","#2d5e2b","#6b2876","#155a5a","#8a4d2e","#6f4f1f","#2d4d6b","#4d762a","#7f4848","#4a4a72"],Op=["#1e5a7d","#155a5a","#2d4d6b","#4a4a72","#6b2876","#2d5e2b","#4d762a","#7f4848"],Hc="#6a6a6a",jd="path:";function Cp(o){let u=2166136261;for(let r=0;r<o.length;r++)u^=o.charCodeAt(r),u=u+((u<<1)+(u<<4)+(u<<7)+(u<<8)+(u<<24))>>>0;return u>>>0}function md(o,u){const{includePrefix:r,excludePrefix:c,topN:h,palette:y}=u,x=Math.min(h,y.length),T=new Map;for(const D of o)for(const _ of D.tags)r!==void 0&&!_.startsWith(r)||c!==void 0&&_.startsWith(c)||T.set(_,(T.get(_)??0)+1);const R=[...T.entries()].sort((D,_)=>_[1]-D[1]||D[0].localeCompare(_[0])).slice(0,x).map(([D])=>D),U=new Map,C=new Set;for(const D of R){const _=Cp(D)%y.length;let E=_;for(;C.has(E)&&(E=(E+1)%y.length,E!==_););C.add(E),U.set(D,y[E])}return U}function Od(o,u){const r=o.filter(c=>c.startsWith(jd)&&!(u?.has(c)??!1));return r.length===0?null:(r.sort((c,h)=>c.length-h.length||c.localeCompare(h)),r[0]??null)}function Qc(o,u){if(u==="path")return Od(o.tags);const r=o.tags.filter(c=>!c.startsWith(jd));return r.length===0?null:(r.sort((c,h)=>c.length-h.length||c.localeCompare(h)),r[0]??null)}function Rp(o,u,r,c){if(u==="layer")return Re[o.layer]??Hc;const h=Qc(o,u);return h===null?Hc:(u==="path"?c:r).get(h)??Hc}const nu={softCap:50,hardCap:300,perTagTopK:15,minShared:2};function yd(o,u){return o<u?`${o}|${u}`:`${u}|${o}`}function Cd(o,u={}){const r=u.softCap??nu.softCap,c=u.hardCap??nu.hardCap,h=u.perTagTopK??nu.perTagTopK,y=u.minShared??nu.minShared,x=u.excludePrefix,T=new Map;for(const D of o)for(const _ of D.tags){if(x!==void 0&&_.startsWith(x))continue;let E=T.get(_);E===void 0&&(E=[],T.set(_,E)),E.push(D.id)}const R=[...T.entries()].sort((D,_)=>D[1].length-_[1].length),U=new Map;for(const[,D]of R)if(!(D.length<2)&&!(D.length>=c))if(D.length<r)for(let _=0;_<D.length;_++)for(let E=_+1;E<D.length;E++){const N=yd(D[_],D[E]);U.set(N,(U.get(N)??0)+1)}else{const _=[];for(let N=0;N<D.length;N++)for(let B=N+1;B<D.length;B++){const k=yd(D[N],D[B]);_.push({key:k,current:U.get(k)??0})}_.sort((N,B)=>B.current-N.current||N.key.localeCompare(B.key));const E=_.slice(0,h);for(const{key:N}of E)U.set(N,(U.get(N)??0)+1)}const C=[];for(const[D,_]of U){if(_<y)continue;const E=D.indexOf("|"),N=D.slice(0,E),B=D.slice(E+1);C.push({a:N,b:B,count:_})}return C.sort((D,_)=>_.count-D.count||D.a.localeCompare(_.a)||D.b.localeCompare(_.b)),C}const fu=30,Jl={alphaMin:.01,maxTicks:300,linkStrength:.4,chargeStrength:-30,centerStrength:.05,collideRadius:.6,bound:fu};function Na(o,u,r){return o<u?u:o>r?r:o}function Up(o,u,r,c={}){const h=c.alphaMin??Jl.alphaMin,y=c.maxTicks??Jl.maxTicks,x=c.linkStrength??Jl.linkStrength,T=c.chargeStrength??Jl.chargeStrength,R=c.centerStrength??Jl.centerStrength,U=c.collideRadius??Jl.collideRadius,C=c.bound??Jl.bound,D=c.alphaDecay??1-Math.pow(h,1/y),_=[],E=new Map;for(const Y of o){const it=r?.get(Y.id),et=it?{id:Y.id,x:Na(it.x,-C,C),y:Na(it.z,-C,C)}:{id:Y.id,x:0,y:0};_.push(et),E.set(Y.id,et)}const N=[],B=new Set;for(const[Y,it]of u)if(E.has(Y))for(const et of it){if(!E.has(et))continue;const W=Y<et?Y:et,G=Y<et?et:Y,J=`${W}|${G}`;B.has(J)||(B.add(J),N.push({source:W,target:G}))}const k=O0(_).force("link",C0(N).id(Y=>Y.id).strength(x).distance(2.5)).force("charge",R0().strength(T)).force("center",U0(0,0).strength(R)).force("collide",N0(U)).alphaMin(h).alphaDecay(D).stop(),tt=c.projectAnchors;tt&&tt.size>0&&k.force("project-x",B0(Y=>tt.get(Y.id)?.x??0).strength(Y=>tt.get(Y.id)?.strength??0)).force("project-y",H0(Y=>tt.get(Y.id)?.y??0).strength(Y=>tt.get(Y.id)?.strength??0)),c.randomSource&&k.randomSource(c.randomSource);let V=0,Z=!1,q=!1;const I=new Set,Q=()=>V>=y||k.alpha()<=h,L=(Y,it)=>{q=Y;for(const et of I)et(Y,it)};return{tick(){if(Q()){Z===!1&&(Z=!0,q&&L(!1,"tick"));return}q||L(!0,"tick"),k.tick(),V++;for(const Y of _)Y.x=Na(Y.x,-C,C),Y.y=Na(Y.y,-C,C);Q()&&Z===!1&&(Z=!0,L(!1,"tick"))},runToCompletion(Y){const it=V,et=Y??1/0;for(!Q()&&!q&&L(!0,"reduced-motion");!Q()&&V-it<et;){k.tick(),V++;for(const W of _)W.x=Na(W.x,-C,C),W.y=Na(W.y,-C,C)}Q()&&Z===!1&&(Z=!0,q&&L(!1,"reduced-motion"))},done(){return Q()},position(Y){const it=E.get(Y);if(it)return{x:it.x,z:it.y}},ticksRun(){return V},settledPositions(){const Y=new Map;for(const it of _)Y.set(it.id,{x:it.x,z:it.y});return Y},onSettleStateChange(Y){return I.add(Y),q&&Y(!0,"tick"),()=>{I.delete(Y)}},isSettling(){return q}}}const pd=new Set(["path:skf_s"]),Np=Math.PI*(3-Math.sqrt(5)),Bp=.08;function Hp(o,u,r,c=Bp){const h=r*.6,y=2*Math.PI,x=new Map;for(const[C,D]of u.indexByTag){if(pd.has(C))continue;const _=D*Np%y;x.set(C,{x:Math.cos(_)*h,y:Math.sin(_)*h,strength:c})}const T=new Map,R=new Set;for(const C of o){const D=Od(C.tags,pd);if(D===null)continue;const _=x.get(D);_&&(T.set(C.id,_),R.add(D))}const U=[...u.indexByTag.entries()].filter(([C])=>R.has(C)).sort((C,D)=>C[1]-D[1]).map(([C])=>C);return{byTag:x,byMemoryId:T,orderedTags:U}}const Rd="hippo:projectAnchorOrder:v1",iu={indexByTag:new Map,nextIndex:0};function Ud(){return"window"in globalThis}function Lp(o){return typeof o=="string"}function Nd(o){return typeof o!="number"?!1:Number.isFinite(o)}function Yp(o){return Array.isArray(o)&&o.length===2&&Lp(o[0])&&Nd(o[1])}function wp(o){if(!o)return null;const u=o,{tags:r,nextIndex:c}=u;return!Array.isArray(r)||!Nd(c)||!r.every(Yp)?null:{tags:r,nextIndex:c}}function qp(){if(!Ud())return iu;try{const o=window.localStorage.getItem(Rd);if(!o)return iu;const u=JSON.parse(o),r=wp(u);return r===null?iu:{indexByTag:new Map(r.tags),nextIndex:r.nextIndex}}catch{return iu}}function Gp(o){if(Ud())try{const u=JSON.stringify({tags:[...o.indexByTag.entries()],nextIndex:o.nextIndex});window.localStorage.setItem(Rd,u)}catch{}}function Xp(o,u){const r=[...o].sort(),c=new Map(u.indexByTag);let h=u.nextIndex,y=!1;for(const x of r)c.has(x)||(c.set(x,h),h++,y=!0);return y?{indexByTag:c,nextIndex:h}:u}const Zp=2e3,gd=20,Qp={buffer:6,episodic:0,semantic:-6};function uu(o){return new Gc(o)}class Vp{constructor(u){this.container=u,this.initRenderer(),this.initScene(),this.initCamera(),this.initControls(),this.initPostProcessing(),this.initGrid(),this.animate()}renderer;scene;camera;controls;composer;nodes=[];tendrils=[];conflictLines=[];raycaster=new y0;mouse=new It;hoveredNode=null;selectedNode=null;highlightedIds=new Set;searchDimmed=!1;clock=new p0;gridHelper;onHoverCb=null;onClickCb=null;disposed=!1;rafId=0;paused=!1;onRenderCbs=[];currentColorMode="layer";tagPalette=new Map;pathPalette=new Map;sharedTagEdges=[];sharedTagBailed=!1;forceLayout=null;lastSettledPositions=null;settleSubscribers=new Set;currentForceUnsubscribe=null;projectAnchorLayout=null;initRenderer(){this.renderer=new g0({antialias:!0,alpha:!1}),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2)),this.renderer.setSize(this.container.clientWidth,this.container.clientHeight),this.renderer.toneMapping=v0,this.renderer.toneMappingExposure=1,this.renderer.setClearColor(xp,1),this.container.appendChild(this.renderer.domElement),this.renderer.domElement.style.display="block"}initScene(){this.scene=new b0,this.scene.background=new Gc(rd),this.scene.fog=new S0(rd,.008);const u=new x0(Ep,.65);this.scene.add(u);const r=new _0(_p,.4,100);r.position.set(0,15,10),this.scene.add(r)}initCamera(){const u=this.container.clientWidth,r=this.container.clientHeight;this.camera=new z0(60,u/r,.1,200),this.camera.position.set(0,8,28),this.camera.lookAt(0,0,0)}initControls(){this.controls=new W0(this.camera,this.renderer.domElement),this.controls.enableDamping=!0,this.controls.dampingFactor=.05,this.controls.minDistance=5,this.controls.maxDistance=80,this.controls.maxPolarAngle=Math.PI*.85,this.controls.autoRotate=!0,this.controls.autoRotateSpeed=.3}initPostProcessing(){this.container.clientWidth,this.container.clientHeight,this.composer=new pp(this.renderer),this.composer.addPass(new gp(this.scene,this.camera))}initGrid(){this.gridHelper=new T0;const u=new Oc({color:Tp,transparent:!0,opacity:.06}),r=40,h=r/20;for(let y=-r/2;y<=r/2;y+=h){const x=new qa().setFromPoints([new Wt(y,-10,-r/2),new Wt(y,-10,r/2)]);this.gridHelper.add(new Hn(x,u));const T=new qa().setFromPoints([new Wt(-r/2,-10,y),new Wt(r/2,-10,y)]);this.gridHelper.add(new Hn(T,u))}this.scene.add(this.gridHelper)}setCallbacks(u,r){this.onHoverCb=u,this.onClickCb=r}populate(u,r,c,h){for(const _ of this.nodes)this.scene.remove(_.mesh),this.scene.remove(_.halo),_.mesh.geometry.dispose(),_.halo.geometry.dispose(),_.fadingRing&&(this.scene.remove(_.fadingRing),_.fadingRing.geometry.dispose(),_.fadingRing.material.dispose());for(const _ of this.tendrils)this.scene.remove(_),_.geometry.dispose();for(const _ of this.conflictLines)this.scene.remove(_),_.geometry.dispose();for(const _ of this.sharedTagEdges)this.scene.remove(_),_.geometry.dispose(),_.material.dispose();this.nodes=[],this.tendrils=[],this.conflictLines=[],this.sharedTagEdges=[];const y=u.reduce((_,E)=>Math.max(_,E.retrieval_count),1);for(const _ of u){const E=r[_.id]??[Math.random()*2-1,Math.random()*2-1,Math.random()*2-1],N=Qp[_.layer]??0,B=E[0]*gd+(Math.random()-.5)*3,k=N+(Math.random()-.5)*2,tt=E[2]*gd+(Math.random()-.5)*3,V=uu(Re[_.layer]),q=.15+Math.log2(_.retrieval_count+1)/Math.log2(y+1)*.35,I=new Ph(q,24,24),Q=new E0({color:V,emissiveIntensity:0,roughness:.55,metalness:.05,transparent:!0,opacity:.78+_.strength*.22}),L=new ou(I,Q);L.position.set(B,k,tt),L.userData={memoryId:_.id},this.scene.add(L);const nt=new Ph(q*2.2,16,16),Y=new td({color:V,transparent:!0,opacity:.015+_.strength*.025,side:M0,depthWrite:!1}),it=new ou(nt,Y);it.position.copy(L.position),this.scene.add(it);let et;if(Zc(_)){const W=new A0(q*1.4,q*1.7,32),G=new td({color:hd,side:D0,transparent:!0,opacity:.6,depthWrite:!1});et=new ou(W,G),et.position.copy(L.position),et.lookAt(this.camera.position),this.scene.add(et)}this.nodes.push({id:_.id,memory:_,mesh:L,halo:it,basePosition:L.position.clone(),phase:Math.random()*Math.PI*2,driftSpeed:.2+Math.random()*.3,fadingRing:et})}this.buildTendrils(),this.buildConflictLines(c),this.buildSharedTagEdges(u),this.currentForceUnsubscribe&&(this.currentForceUnsubscribe(),this.currentForceUnsubscribe=null);const x=new Set(u.map(_=>_.id));if(this.lastSettledPositions)for(const _ of[...this.lastSettledPositions.keys()])x.has(_)||this.lastSettledPositions.delete(_);const T=new Map;for(const _ of this.nodes){const E=this.lastSettledPositions?.get(_.id);T.set(_.id,E??{x:_.basePosition.x,z:_.basePosition.z})}const R=qp(),U=new Set;for(const _ of u)for(const E of _.tags)E.startsWith("path:")&&U.add(E);const C=Xp([...U],R);C!==R&&Gp(C);const D=Hp(u,C,fu);this.projectAnchorLayout=D,this.forceLayout=Up(u,h,T,{projectAnchors:D.byMemoryId}),this.currentForceUnsubscribe=this.forceLayout.onSettleStateChange((_,E)=>{for(const N of this.settleSubscribers)N(_,E)}),this.setColorMode(this.currentColorMode,u)}buildSharedTagEdges(u){if(this.nodes.length>500){this.sharedTagBailed=!0;return}this.sharedTagBailed=!1;const c=Cd(u,{excludePrefix:"path:",softCap:50,hardCap:300,perTagTopK:15,minShared:2}),h=new Map;for(const y of this.nodes)h.set(y.id,y);for(const y of c){if(this.sharedTagEdges.length>=Zp)break;const x=h.get(y.a),T=h.get(y.b);if(!x||!T)continue;const R=new qa().setFromPoints([x.basePosition,T.basePosition]),U=new Oc({color:zp,transparent:!0,opacity:.18+y.count*.04,depthWrite:!1}),C=new Hn(R,U);C.userData={aId:y.a,bId:y.b},this.scene.add(C),this.sharedTagEdges.push(C)}}getProjectAnchorLayout(){return this.projectAnchorLayout}getEdgeCounts(){let u=0,r=0;for(const c of this.conflictLines){const h=c.userData.status;h==="open"?u++:h==="resolved"&&r++}return{openConflicts:u,resolvedConflicts:r,sharedTag:this.sharedTagEdges.length,sharedTagBailed:this.sharedTagBailed}}setColorMode(u,r){u==="tag"&&(this.tagPalette=md(r,{excludePrefix:"path:",topN:10,palette:jp})),u==="path"&&(this.pathPalette=md(r,{includePrefix:"path:",topN:8,palette:Op})),this.currentColorMode=u;for(const c of this.nodes){const h=Rp(c.memory,u,this.tagPalette,this.pathPalette),y=uu(h);c.mesh.material.color.copy(y),c.halo.material.color.copy(y)}}buildTendrils(){const u=this.nodes.length;if(u>500)return;const r=6,c=r*r;for(let h=0;h<u;h++){const y=this.nodes[h];for(let x=h+1;x<u;x++){const T=this.nodes[x],R=y.basePosition.x-T.basePosition.x,U=y.basePosition.y-T.basePosition.y,C=y.basePosition.z-T.basePosition.z,D=R*R+U*U+C*C;if(D>c)continue;const E=1-Math.sqrt(D)/r,N=new Wt().lerpVectors(y.basePosition,T.basePosition,.5);N.y+=(Math.random()-.5)*1.5;const k=new ed(y.basePosition,N,T.basePosition).getPoints(12),tt=new qa().setFromPoints(k),V=uu(y.mesh.userData.color??Re[y.memory.layer]),Z=uu(T.mesh.userData.color??Re[T.memory.layer]),q=V.clone().lerp(Z,.5),I=new Oc({color:q,transparent:!0,opacity:E*E*.15,depthWrite:!1}),Q=new Hn(tt,I);this.scene.add(Q),this.tendrils.push(Q)}}}buildConflictLines(u){const r=new Map;for(const c of this.nodes)r.set(c.id,c);for(const c of u){const h=r.get(c.memory_a_id),y=r.get(c.memory_b_id);if(!h||!y)continue;const x=new Wt().lerpVectors(h.basePosition,y.basePosition,.5);x.y+=1;const R=new ed(h.basePosition,x,y.basePosition).getPoints(16),U=new qa().setFromPoints(R),C=c.status==="resolved",D=new j0({color:hd,transparent:!0,opacity:.3+c.score*.4,dashSize:C?.05:.3,gapSize:C?.15:.2,depthWrite:!1}),_=new Hn(U,D);_.computeLineDistances(),_.userData={status:c.status,aId:c.memory_a_id,bId:c.memory_b_id},this.scene.add(_),this.conflictLines.push(_)}}setHighlighted(u){this.highlightedIds=u,this.searchDimmed=u.size>0,this.applyDimming()}clearHighlight(){this.highlightedIds.clear(),this.searchDimmed=!1,this.applyDimming()}applyDimming(){for(const u of this.nodes){const r=u.mesh.material,c=u.halo.material;this.searchDimmed&&!this.highlightedIds.has(u.id)?(r.opacity=.05,r.emissiveIntensity=.1,c.opacity=.01):(r.opacity=.3+u.memory.strength*.7,r.emissiveIntensity=.6+u.memory.strength*.8,c.opacity=.06+u.memory.strength*.08)}}handleMouseMove(u){const r=this.renderer.domElement.getBoundingClientRect();this.mouse.x=(u.clientX-r.left)/r.width*2-1,this.mouse.y=-((u.clientY-r.top)/r.height)*2+1,this.raycaster.setFromCamera(this.mouse,this.camera);const c=this.nodes.map(x=>x.mesh),h=this.raycaster.intersectObjects(c),y=this.hoveredNode;if(h.length>0){const T=h[0].object.userData.memoryId;this.hoveredNode=this.nodes.find(R=>R.id===T)??null,this.renderer.domElement.style.cursor="pointer",this.hoveredNode&&this.onHoverCb&&this.onHoverCb(this.hoveredNode.memory,u.clientX,u.clientY)}else this.hoveredNode=null,this.renderer.domElement.style.cursor="grab",y&&this.onHoverCb&&this.onHoverCb(null,0,0);if(y&&y!==this.hoveredNode){const x=y.mesh.material;x.emissiveIntensity=.6+y.memory.strength*.8,y.mesh.scale.setScalar(1),y.halo.material.opacity=.06+y.memory.strength*.08}if(this.hoveredNode){const x=this.hoveredNode.mesh.material;x.emissiveIntensity=2,this.hoveredNode.mesh.scale.setScalar(1.4),this.hoveredNode.halo.material.opacity=.2}}handleClick(){this.hoveredNode?(this.selectedNode&&this.selectedNode!==this.hoveredNode&&this.selectedNode.mesh.scale.setScalar(1),this.selectedNode=this.hoveredNode,this.onClickCb&&this.onClickCb(this.hoveredNode.memory)):(this.selectedNode&&this.selectedNode.mesh.scale.setScalar(1),this.selectedNode=null,this.onClickCb&&this.onClickCb(null))}deselect(){this.selectedNode&&this.selectedNode.mesh.scale.setScalar(1),this.selectedNode=null,this.onClickCb&&this.onClickCb(null)}resize(u,r){u===0||r===0||(this.camera.aspect=u/r,this.camera.updateProjectionMatrix(),this.renderer.setSize(u,r),this.composer.setSize(u,r))}animate=()=>{if(this.disposed||this.paused)return;this.rafId=requestAnimationFrame(this.animate);const u=this.clock.getElapsedTime();this.controls.update();const r=this.forceLayout!==null&&!this.forceLayout.done();if(r){this.forceLayout.tick();for(const c of this.nodes){const h=this.forceLayout.position(c.id);h&&(c.basePosition.x=h.x,c.basePosition.z=h.z)}this.forceLayout.done()&&(this.lastSettledPositions=this.forceLayout.settledPositions())}for(const c of this.nodes){if(r)c.mesh.position.copy(c.basePosition);else{const h=Math.sin(u*c.driftSpeed+c.phase),y=Math.cos(u*c.driftSpeed*.7+c.phase*1.3);c.mesh.position.x=c.basePosition.x+h*.15,c.mesh.position.y=c.basePosition.y+y*.1,c.mesh.position.z=c.basePosition.z+Math.sin(u*c.driftSpeed*.5+c.phase*.7)*.12}if(c.halo.position.copy(c.mesh.position),c===this.selectedNode){const h=1.3+.1*Math.sin(u*3+c.phase);c.mesh.scale.setScalar(h)}c.fadingRing&&(c.fadingRing.position.copy(c.mesh.position),c.fadingRing.lookAt(this.camera.position))}if(this.onRenderCbs.length>0)for(const c of this.onRenderCbs)c(this.camera,this.scene);this.composer.render()};onSettleStateChange(u){return this.settleSubscribers.add(u),this.forceLayout?.isSettling()&&u(!0,"tick"),()=>{this.settleSubscribers.delete(u)}}setReducedMotion(u){if(this.paused=u,u){if(this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=0),this.forceLayout&&!this.forceLayout.done()){this.forceLayout.runToCompletion(80);for(const r of this.nodes){const c=this.forceLayout.position(r.id);c&&(r.basePosition.x=c.x,r.basePosition.z=c.z)}this.forceLayout.done()&&(this.lastSettledPositions=this.forceLayout.settledPositions())}this.snapParticlesToFinal()}else this.rafId||this.animate()}getNodePosition(u){for(const r of this.nodes)if(r.id===u)return r.basePosition;return null}getRenderer(){return this.renderer}setFiltered(u,r){for(const c of this.nodes){const h=!r||u.has(c.id);c.mesh.visible=h,c.halo.visible=h}for(const c of[...this.conflictLines,...this.sharedTagEdges,...this.tendrils]){if(!r){c.visible=!0;continue}const h=c.userData;!h.aId||!h.bId||(c.visible=u.has(h.aId)&&u.has(h.bId))}}onRender(u){return this.onRenderCbs.push(u),()=>{const r=this.onRenderCbs.indexOf(u);r>=0&&this.onRenderCbs.splice(r,1)}}getCamera(){return this.camera}snapParticlesToFinal(){for(const u of this.nodes)u.mesh.position.copy(u.basePosition),u.halo.position.copy(u.basePosition);this.composer.render()}dispose(){this.disposed=!0,cancelAnimationFrame(this.rafId),this.controls.dispose();for(const u of this.nodes)u.mesh.geometry.dispose(),u.mesh.material.dispose(),u.halo.geometry.dispose(),u.halo.material.dispose(),u.fadingRing&&(u.fadingRing.geometry.dispose(),u.fadingRing.material.dispose());for(const u of[...this.tendrils,...this.conflictLines,...this.sharedTagEdges])u.geometry.dispose(),u.material.dispose();this.renderer.dispose(),this.renderer.domElement.parentElement&&this.renderer.domElement.parentElement.removeChild(this.renderer.domElement)}}function Kp(o){const u=Object.keys(o);if(u.length===0)return{};if(u.length===1)return Object.fromEntries([[u[0],[0,0,0]]]);const r=o[u[0]].length,c=u.length,h=new Float64Array(r);for(const V of u){const Z=o[V];for(let q=0;q<r;q++)h[q]+=Z[q]}for(let V=0;V<r;V++)h[V]/=c;const y=new Array(c);for(let V=0;V<c;V++){const Z=new Float64Array(r),q=o[u[V]];for(let I=0;I<r;I++)Z[I]=q[I]-h[I];y[V]=Z}const x=V=>{const Z=new Float64Array(r);for(let q=0;q<r;q++)Z[q]=Math.random()-.5;for(let q=0;q<100;q++){const I=new Float64Array(r);for(let L=0;L<c;L++){let nt=0;for(let Y=0;Y<r;Y++)nt+=V[L][Y]*Z[Y];for(let Y=0;Y<r;Y++)I[Y]+=V[L][Y]*nt}let Q=0;for(let L=0;L<r;L++)Q+=I[L]*I[L];if(Q=Math.sqrt(Q),Q<1e-12)return new Float64Array(r);for(let L=0;L<r;L++)Z[L]=I[L]/Q}return Z},T=(V,Z)=>V.map(q=>{let I=0;for(let L=0;L<r;L++)I+=q[L]*Z[L];const Q=new Float64Array(r);for(let L=0;L<r;L++)Q[L]=q[L]-I*Z[L];return Q}),R=(V,Z)=>{const q=new Float64Array(V);for(const Q of Z){let L=0;for(let nt=0;nt<r;nt++)L+=q[nt]*Q[nt];for(let nt=0;nt<r;nt++)q[nt]-=L*Q[nt]}let I=0;for(let Q=0;Q<r;Q++)I+=q[Q]*q[Q];if(I=Math.sqrt(I),I>1e-12)for(let Q=0;Q<r;Q++)q[Q]/=I;return q},U=x(y),C=T(y,U),D=R(x(C),[U]),_=T(C,D),E=R(x(_),[U,D]),N=[U,D,E],B=new Array(c);for(let V=0;V<c;V++){const Z=y[V],q=[0,0,0];for(let I=0;I<3;I++){let Q=0;for(let L=0;L<r;L++)Q+=Z[L]*N[I][L];q[I]=Q}B[V]=q}let k=0;for(let V=0;V<c;V++)for(let Z=0;Z<3;Z++){const q=Math.abs(B[V][Z]);q>k&&(k=q)}return Object.fromEntries(u.map((V,Z)=>k<1e-12?[V,[0,0,0]]:[V,[B[Z][0]/k,B[Z][1]/k,B[Z][2]/k]]))}const kp={openConflicts:0,resolvedConflicts:0,sharedTag:0,sharedTagBailed:!1};function Jp({memories:o,embeddings:u,conflicts:r,width:c,height:h,onHover:y,onClick:x,searchQuery:T,frozen:R,visibleIds:U,filterActive:C,colorMode:D,adjacency:_,onSceneReady:E}){const N=H.useRef(null),B=H.useRef(null),k=H.useRef(y),tt=H.useRef(x);k.current=y,tt.current=x;const[V,Z]=H.useState(kp),[q,I]=H.useState(null),[Q,L]=H.useState(void 0),nt=H.useRef("initial");H.useEffect(()=>{const W=N.current;if(!W)return;const G=new Vp(W);return G.setCallbacks((J,Bt,A)=>k.current(J,Bt,A),J=>tt.current(J)),B.current=G,E?.(G),()=>{E?.(null),G.dispose(),B.current=null}},[]),H.useEffect(()=>{const W=B.current;if(!W||o.length===0)return;const G=Kp(u);W.populate(o,G,r,_),Z(W.getEdgeCounts()),I(W.getProjectAnchorLayout())},[o,u,r,_]),H.useEffect(()=>{const W=B.current;if(W)return W.onSettleStateChange((G,J)=>{if(J==="reduced-motion"){L(void 0);return}G?L(nt.current):(L(void 0),nt.current="refresh")})},[]),H.useEffect(()=>{const W=N.current;if(!W)return;const G=()=>{const Bt=Math.floor(W.clientWidth),A=Math.floor(W.clientHeight);Bt>0&&A>0&&B.current?.resize(Bt,A)};G();const J=new ResizeObserver(G);return J.observe(W),()=>J.disconnect()},[]),H.useEffect(()=>{if(!T.trim()){B.current?.clearHighlight();return}const W=T.toLowerCase(),G=new Set;for(const J of o)(J.content.toLowerCase().includes(W)||J.tags.some(Bt=>Bt.toLowerCase().includes(W)))&&G.add(J.id);B.current?.setHighlighted(G)},[T,o]),H.useEffect(()=>{B.current?.setReducedMotion(R)},[R]),H.useEffect(()=>{B.current?.setFiltered(U,C)},[U,C]),H.useEffect(()=>{B.current?.setColorMode(D,o)},[D]);const Y=H.useCallback(W=>{B.current?.handleMouseMove(W.nativeEvent)},[]),it=H.useCallback(()=>{B.current?.handleClick()},[]),et=H.useCallback(W=>{W.key==="Escape"&&B.current?.deselect()},[]);return{containerRef:N,handleMouseMove:Y,handleClick:it,handleKeyDown:et,edgeCounts:V,forceSettling:Q,projectAnchorLayout:q}}function Fp({memory:o,x:u,y:r,colorMode:c="layer",colorTag:h=null}){const y=o.content.length>100?o.content.slice(0,100)+"…":o.content,x=Re[o.layer],T=h!==null&&(c==="tag"||c==="path");return d.jsxs("div",{style:{position:"fixed",left:u+16,top:r-12,background:"var(--glass-bg-strong)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:"1px solid var(--glass-border)",borderRadius:12,padding:"12px 14px",maxWidth:280,pointerEvents:"none",zIndex:100,boxShadow:"0 4px 24px var(--ink-shadow), 0 0 0 1px var(--glass-border)"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:8},children:[d.jsx("div",{style:{width:5,height:5,borderRadius:"50%",background:x,boxShadow:`0 0 6px ${x}60`}}),d.jsx("span",{style:{color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.5px"},children:o.layer}),d.jsx("span",{style:{color:"var(--text-faint)",fontSize:9},children:"·"}),d.jsxs("span",{style:{color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)"},children:[o.strength.toFixed(2)," str"]})]}),T&&d.jsxs("div",{style:{marginBottom:6,color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)",letterSpacing:"0.4px"},children:["color: ",h]}),d.jsx("div",{style:{color:"var(--text)",fontSize:12,lineHeight:1.5,fontFamily:"var(--font-body)"},children:y}),d.jsxs("div",{style:{marginTop:8,display:"flex",gap:8,color:"var(--text-faint)",fontSize:9,fontFamily:"var(--font-mono)"},children:[d.jsxs("span",{children:[o.retrieval_count," retrievals"]}),d.jsxs("span",{children:[o.half_life_days,"d half-life"]}),d.jsxs("span",{children:[o.age_days,"d old"]})]})]})}function Wp(o,u){const[r,c]=H.useState(o);return H.useEffect(()=>{const h=setTimeout(()=>c(o),u);return()=>clearTimeout(h)},[o,u]),r}function $p({memoryCount:o,matchCount:u,stats:r,filterState:c,frozenOrigin:h,setQuery:y,setFrozen:x,setFadingOnly:T}){const[R,U]=H.useState(c.query),C=Wp(R,150),[D,_]=H.useState(!1),E=H.useRef(null);return H.useEffect(()=>{C!==c.query&&y(C)},[C]),H.useEffect(()=>{c.query!==C&&U(c.query)},[c.query]),H.useEffect(()=>{function N(B){const k=B.target,tt=k instanceof HTMLInputElement||k instanceof HTMLTextAreaElement;B.key==="/"&&!tt?(B.preventDefault(),E.current?.focus()):B.key==="Escape"&&document.activeElement===E.current&&(U(""),y(""),E.current?.blur())}return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[y]),d.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,height:48,zIndex:20,background:"var(--glass-bg)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderBottom:"1px solid var(--glass-border)",display:"flex",alignItems:"center",padding:"0 24px",gap:20,pointerEvents:"auto"},children:[d.jsxs("div",{style:{flex:"0 0 auto",display:"flex",alignItems:"baseline",gap:12},children:[d.jsx("span",{style:{color:"var(--text)",fontSize:16,fontWeight:700,fontFamily:"var(--font-serif)",letterSpacing:"0.3px"},children:"hippo"}),d.jsx("span",{style:{color:"var(--accent)",fontSize:11,fontFamily:"var(--font-serif)",fontStyle:"italic"},children:"brain observatory"}),d.jsxs("span",{style:{color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)"},children:[o," memories"]}),(r?.at_risk??0)>0&&d.jsxs("button",{type:"button",onClick:()=>T(!c.fadingOnly),"aria-pressed":c.fadingOnly,"aria-label":`${r?.at_risk} fading, ${c.fadingOnly?"click to show all memories":"click to filter to fading memories only"}`,title:c.fadingOnly?"Showing only fading memories: click to clear":"Show only fading memories",style:{fontSize:10,fontFamily:"var(--font-mono)",padding:"2px 8px",borderRadius:3,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease",background:c.fadingOnly?"rgba(196, 92, 60, 0.10)":"transparent",border:c.fadingOnly?"1px solid var(--accent)":"1px solid transparent",color:c.fadingOnly?"var(--accent)":"var(--yellow)"},children:[r?.at_risk," fading"]})]}),d.jsx("div",{style:{flex:1}}),d.jsxs("div",{role:"search",style:{position:"relative",width:240},children:[d.jsx("input",{ref:E,type:"text",value:R,onChange:N=>U(N.target.value),onFocus:()=>_(!0),onBlur:()=>_(!1),"aria-label":"Search memories",placeholder:"search memories and tags (/)",style:{width:"100%",padding:"5px 10px",paddingRight:u!==null?48:10,background:D?"var(--ink-faint)":"var(--glass-bg)",border:D?"1px solid var(--accent-focus)":"1px solid var(--glass-border)",borderRadius:4,color:"var(--text)",fontSize:12,fontFamily:"var(--font-serif)",outline:"none",boxSizing:"border-box",transition:"border-color 200ms ease, background 200ms ease",letterSpacing:"0.2px"}}),R.length>0&&d.jsx("button",{type:"button",onClick:()=>{U(""),y(""),E.current?.focus()},"aria-label":"Clear search",title:"Clear search (Esc)",style:{position:"absolute",right:u!==null?44:4,top:"50%",transform:"translateY(-50%)",background:"transparent",border:"none",color:"var(--dim)",cursor:"pointer",fontSize:14,lineHeight:1,padding:"2px 6px",fontFamily:"var(--font-mono)"},children:"×"}),u!==null&&d.jsxs("span",{style:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",color:"var(--text-faint)",fontSize:9,fontFamily:"var(--font-mono)",pointerEvents:"none"},children:[u,"/",o]})]}),d.jsx("button",{type:"button",onClick:()=>x(!c.frozen),"aria-pressed":c.frozen,"aria-label":c.frozen?"Resume animation":"Freeze animation",title:c.frozen&&h==="os"?"Frozen because your system requests reduced motion. Click to override.":c.frozen?"Click to resume animation (or press F)":"Click to freeze animation (or press F)",style:{fontFamily:"var(--font-mono)",fontSize:10,letterSpacing:"0.8px",textTransform:"uppercase",background:c.frozen?"rgba(196,92,60,0.10)":"transparent",border:`1px solid ${c.frozen?"var(--accent)":"var(--glass-border)"}`,color:c.frozen?"var(--accent)":"var(--dim)",padding:"5px 12px",borderRadius:4,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease"},children:c.frozen?"frozen":"freeze"}),c.frozen&&h==="os"&&d.jsx("span",{className:"sr-only",children:"Animation paused: prefers-reduced-motion enabled in OS settings. Activate the freeze button to override."})]})}function Ip({stats:o,totalVisible:u,fadingOnly:r}){if(!o)return null;const c=[["buffer","Buffer"],["episodic","Episodic"],["semantic","Semantic"]],h=Math.max(...Object.values(o.by_layer),1);return d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:Pp,children:"Memory layers"}),d.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:8,marginBottom:12},children:[d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:24,color:"var(--text)"},children:u}),d.jsxs("span",{style:{fontSize:10,fontVariant:"small-caps",letterSpacing:"0.6px",color:"var(--dim)"},children:["visible of ",o.total]})]}),d.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginBottom:10},children:c.map(([y,x])=>{const T=o.by_layer[y]??0,R=Re[y],U=T/h*100;return d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"78px 1fr 32px",alignItems:"center",gap:10,fontSize:11},children:[d.jsx("span",{style:{fontVariant:"small-caps",letterSpacing:"0.5px",color:"var(--text)"},children:x}),d.jsx("div",{style:{height:6,background:"var(--ink-faint)",borderRadius:2,overflow:"hidden"},children:d.jsx("div",{style:{height:"100%",width:`${U}%`,background:R,borderRadius:2,transition:"width 200ms ease"}})}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--dim)",textAlign:"right"},children:T})]},y)})}),d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)",padding:r?"4px 8px":"0",border:r?"1px solid var(--accent)":"1px solid transparent",borderRadius:3,background:r?"rgba(196, 92, 60, 0.06)":"transparent",transition:"background 150ms ease, border-color 150ms ease, padding 150ms ease"},children:[d.jsxs("span",{children:[o.pinned," pinned"]}),o.at_risk>0&&d.jsxs("span",{style:{color:"var(--accent)",fontWeight:600},children:[o.at_risk," at risk"]}),o.aged_out>0&&d.jsxs("span",{children:[o.aged_out," aged out"]}),d.jsxs("span",{children:["avg ",o.avg_strength.toFixed(2)]})]})]})}const Pp={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},vd=[{key:"buffer",label:"buffer"},{key:"episodic",label:"episodic"},{key:"semantic",label:"semantic"}],bd=[{key:"verified",label:"verified"},{key:"observed",label:"observed"},{key:"inferred",label:"inferred"},{key:"stale",label:"stale"}];function Sd(o,u){const r=new Set(o);return r.has(u)?r.delete(u):r.add(u),r}function tg({filterState:o,stats:u,setLayers:r,setStrengthRange:c,setConfidences:h,setAgeMaxDays:y,setFadingOnly:x,setAgedOutOnly:T}){const[R,U]=o.strengthRange,C=u?.at_risk??0,D=u?.aged_out??0,_=u?.total??0;return d.jsxs("div",{style:{marginBottom:20},children:[d.jsxs("div",{style:Ba,children:[d.jsxs("div",{style:Ha,children:[d.jsx("span",{children:"Layer"}),d.jsx("span",{style:La,children:o.layers.size===0?"all":`${o.layers.size}/3`})]}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 14px"},children:vd.map(({key:E,label:N})=>{const B=o.layers.size===0||o.layers.has(E);return d.jsxs("label",{style:su,children:[d.jsx("input",{type:"checkbox",checked:B,onChange:()=>{if(o.layers.size===0){const k=vd.filter(tt=>tt.key!==E).map(tt=>tt.key);r(new Set(k))}else{const k=Sd(o.layers,E);r(k.size===0?new Set:k)}},"aria-label":`Filter ${N}`,style:{accentColor:"var(--accent)",cursor:"pointer"}}),d.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:Re[E],display:"inline-block"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:N})]},E)})})]}),d.jsxs("div",{style:Ba,children:[d.jsxs("div",{style:Ha,children:[d.jsx("span",{children:"Strength"}),d.jsxs("span",{style:La,children:[R.toFixed(2)," – ",U.toFixed(2)]})]}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[d.jsx("input",{type:"range",min:0,max:1,step:.01,value:R,"aria-label":"Strength minimum",onChange:E=>{const N=parseFloat(E.target.value);c(N>U?[U,N]:[N,U])},style:Lc}),d.jsx("input",{type:"range",min:0,max:1,step:.01,value:U,"aria-label":"Strength maximum",onChange:E=>{const N=parseFloat(E.target.value);c(N<R?[N,R]:[R,N])},style:Lc})]})]}),d.jsxs("div",{style:Ba,children:[d.jsxs("div",{style:Ha,children:[d.jsx("span",{children:"Fading only"}),d.jsx("span",{style:La,children:C===0?"(none)":`${C} of ${_}`})]}),d.jsxs("label",{style:{...su,opacity:C===0?.5:1,cursor:C===0?"not-allowed":"pointer"},children:[d.jsx("input",{type:"checkbox",checked:o.fadingOnly,disabled:C===0,onChange:E=>x(E.target.checked),"aria-label":"Show only fading memories",style:{accentColor:"var(--accent)",cursor:"inherit"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:"fading"}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:9,color:"var(--text-faint)",marginLeft:6},children:"< 0.1 strength, unpinned"})]})]}),d.jsxs("div",{style:Ba,children:[d.jsxs("div",{style:Ha,children:[d.jsx("span",{children:"Aged out only"}),d.jsx("span",{style:La,children:D===0?"(none)":`${D} of ${_}`})]}),d.jsxs("label",{style:{...su,opacity:D===0?.5:1,cursor:D===0?"not-allowed":"pointer"},children:[d.jsx("input",{type:"checkbox",checked:o.agedOutOnly,disabled:D===0,onChange:E=>T(E.target.checked),"aria-label":"Show only memories aged out of trust",style:{accentColor:"var(--accent)",cursor:"inherit"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:"aged out"}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:9,color:"var(--text-faint)",marginLeft:6},children:"not retrieved in 30d, unpinned"})]})]}),d.jsxs("div",{style:Ba,children:[d.jsxs("div",{style:Ha,children:[d.jsx("span",{children:"Confidence"}),d.jsx("span",{style:La,children:o.confidences.size===0?"all":`${o.confidences.size}/4`})]}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px 14px"},children:bd.map(({key:E,label:N})=>{const B=o.confidences.size===0||o.confidences.has(E);return d.jsxs("label",{style:su,children:[d.jsx("input",{type:"checkbox",checked:B,onChange:()=>{if(o.confidences.size===0){const k=bd.filter(tt=>tt.key!==E).map(tt=>tt.key);h(new Set(k))}else{const k=Sd(o.confidences,E);h(k.size===0?new Set:k)}},"aria-label":`Filter ${N}`,style:{accentColor:"var(--accent)",cursor:"pointer"}}),d.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:11},children:N})]},E)})})]}),d.jsxs("div",{style:Ba,children:[d.jsxs("div",{style:Ha,children:[d.jsx("span",{children:"Max age"}),d.jsx("span",{style:La,children:o.ageMaxDays===null?"any":`≤ ${o.ageMaxDays}d`})]}),d.jsx("input",{type:"range",min:0,max:365,step:1,value:o.ageMaxDays??365,"aria-label":"Max age in days",onChange:E=>{const N=parseInt(E.target.value,10);y(N>=365?null:N)},style:Lc})]})]})}const Ba={marginBottom:14},Ha={display:"flex",justifyContent:"space-between",alignItems:"baseline",fontSize:11,fontVariant:"small-caps",letterSpacing:"0.5px",color:"var(--dim)",marginBottom:5},La={fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)",letterSpacing:0},su={display:"inline-flex",alignItems:"center",gap:5,fontSize:12,cursor:"pointer",userSelect:"none"},Lc={width:"100%",accentColor:"var(--accent)"};function eg(o,u){const r=new Map;for(const c of o)if(!(u.size>0&&!u.has(c.id)))for(const h of c.tags)r.set(h,(r.get(h)??0)+1);return Array.from(r.entries()).sort((c,h)=>h[1]!==c[1]?h[1]-c[1]:c[0].localeCompare(h[0]))}function lg({memories:o,visibleIds:u,onTagClick:r,topN:c=30}){const h=eg(o,u),y=h.slice(0,c);if(y.length===0)return d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:xd,children:"Tags"}),d.jsx("div",{style:{fontSize:11,color:"var(--text-faint)",fontStyle:"italic",fontFamily:"var(--font-serif)"},children:"no tags in the current view"})]});const x=y[0][1];return d.jsxs("div",{style:{marginBottom:20},children:[d.jsxs("h3",{style:xd,children:["Tags ",d.jsxs("span",{style:{fontVariant:"normal",fontFamily:"var(--font-mono)",letterSpacing:0,color:"var(--text-faint)",fontSize:10},children:["(",h.length,")"]})]}),d.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:y.map(([T,R])=>{const U=Math.log2(R+1)/Math.log2(x+1),C=9+U*5,D=.55+U*.45,_=T.startsWith("path:");return d.jsxs("button",{type:"button",onClick:()=>r(T),"aria-label":`Filter to tag ${T} (${R} memories)`,title:`${R} memories with tag "${T}"`,style:{background:"var(--ink-faint)",color:"var(--text)",border:"1px solid var(--glass-border)",padding:"2px 8px",borderRadius:3,fontSize:C,fontFamily:"var(--font-mono)",letterSpacing:"0.2px",cursor:"pointer",transition:"background 150ms ease, border-color 150ms ease, opacity 150ms ease",opacity:_?D*.6:D,fontStyle:_?"italic":"normal"},children:[T,d.jsx("span",{style:{marginLeft:4,color:"var(--text-faint)",fontSize:Math.max(C-3,8)},children:R})]},T)})})]})}const xd={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},ag=[{key:"layer",label:"layer",aria:"Color nodes by memory layer (buffer, episodic, semantic)"},{key:"tag",label:"tag",aria:"Color nodes by their top topic tag"},{key:"path",label:"path",aria:"Color nodes by project path"}];function ng({filterState:o,setColorMode:u}){return d.jsxs("div",{role:"group","aria-label":"View settings",style:{marginBottom:20},children:[d.jsx("h3",{style:ig,children:"View"}),d.jsxs("div",{style:ug,children:[d.jsx("span",{children:"Color by"}),d.jsx("span",{style:sg,children:o.colorMode})]}),d.jsx("div",{role:"radiogroup","aria-label":"Color mode",style:cg,children:ag.map(({key:r,label:c,aria:h})=>{const y=o.colorMode===r;return d.jsx("button",{type:"button",role:"radio","aria-checked":y,"aria-label":h,onClick:()=>u(r),style:{...og,background:y?"rgba(196, 92, 60, 0.10)":"transparent",color:y?"var(--accent)":"var(--dim)",borderColor:y?"var(--accent)":"var(--glass-border)",fontWeight:y?500:400},children:c},r)})})]})}const ig={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},ug={display:"flex",justifyContent:"space-between",alignItems:"baseline",fontSize:11,fontVariant:"small-caps",letterSpacing:"0.5px",color:"var(--dim)",marginBottom:5},sg={fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)",letterSpacing:"0.5px"},cg={display:"flex",gap:4},og={flex:1,fontFamily:"var(--font-mono)",fontSize:11,padding:"5px 8px",borderRadius:3,cursor:"pointer",transition:"color 150ms ease, border-color 150ms ease, background 150ms ease",border:"1px solid"},_d=10,wc=20,cu=wc/2,qc=5,fg=qc+2;function rg({projects:o,onSelectProject:u}){if(o.length===0)return null;const r=o.slice(0,_d),c=Math.max(0,o.length-_d);return d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:hg,children:"Projects"}),d.jsx("div",{style:dg,children:"(ordered by first-seen)"}),d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[r.map(({tag:h,count:y,anchor:x})=>{const T=cu+x.x/fu*qc,R=cu+x.y/fu*qc,U=h.replace("path:","");return d.jsxs("button",{type:"button",onClick:()=>u(h),"aria-label":`Filter to project ${U}, ${y} ${y===1?"memory":"memories"}`,className:"project-row",style:mg,children:[d.jsxs("svg",{width:wc,height:wc,"aria-hidden":!0,style:{flexShrink:0},children:[d.jsx("circle",{cx:cu,cy:cu,r:fg,fill:"none",stroke:"var(--border)",strokeWidth:1}),d.jsx("circle",{cx:T,cy:R,r:2,fill:"var(--accent)"})]}),d.jsx("span",{style:yg,children:U}),d.jsx("span",{style:pg,children:y})]},h)}),c>0&&d.jsxs("div",{style:gg,children:["+",c," more"]})]})]})}const hg={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:4,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},dg={fontSize:9,color:"var(--dim)",marginBottom:8,fontStyle:"italic"},mg={display:"flex",alignItems:"center",gap:8,padding:"4px 6px",background:"transparent",border:"1px solid transparent",borderRadius:3,cursor:"pointer",transition:"background 150ms ease",width:"100%",textAlign:"left"},yg={flex:1,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)"},pg={fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)"},gg={fontSize:9,color:"var(--dim)",textAlign:"center",marginTop:4,fontStyle:"italic",opacity:.7};function vg({memories:o,stats:u,visibleIds:r,filterActive:c,selectedMemory:h,filterState:y,setQuery:x,setLayers:T,setStrengthRange:R,setConfidences:U,setAgeMaxDays:C,setFadingOnly:D,setAgedOutOnly:_,setColorMode:E,resetFilters:N,projects:B}){const k=c?r.size:o.length;return d.jsxs("aside",{"aria-label":"Filters and stats",style:{position:"absolute",top:48,right:0,width:340,height:"calc(100% - 48px)",background:"var(--glass-bg)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:"1px solid var(--glass-border)",padding:"20px",overflowY:"auto",zIndex:10,boxSizing:"border-box"},children:[d.jsx(Ip,{stats:u,totalVisible:k,fadingOnly:y.fadingOnly}),d.jsxs("div",{style:{marginBottom:20},children:[d.jsx("h3",{style:zd,children:"Selected memory"}),h?d.jsxs("div",{style:{fontSize:11,color:"var(--text)",fontFamily:"var(--font-serif)"},children:[d.jsx("div",{style:{marginBottom:4,color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:9},children:h.id}),d.jsx("div",{style:{lineHeight:1.5},children:h.content.length>140?h.content.slice(0,137)+"…":h.content}),d.jsxs("div",{style:{marginTop:6,color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:9},children:["click again or press ",d.jsx("em",{children:"esc"})," to deselect"]})]}):d.jsx("div",{style:{fontSize:11,color:"var(--text-faint)",fontStyle:"italic",fontFamily:"var(--font-serif)"},children:"click a memory to see details"})]}),d.jsx(ng,{filterState:y,setColorMode:E}),d.jsx(rg,{projects:B,onSelectProject:x}),d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"},children:[d.jsx("h3",{style:{...zd,margin:0,padding:0,border:0},children:"Filters"}),c&&d.jsx("button",{type:"button",onClick:N,"aria-label":"Reset all filters",style:{background:"transparent",border:"none",color:"var(--accent)",cursor:"pointer",fontSize:10,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.8px",padding:"2px 4px"},children:"reset"})]}),d.jsx(tg,{filterState:y,stats:u,setLayers:T,setStrengthRange:R,setConfidences:U,setAgeMaxDays:C,setFadingOnly:D,setAgedOutOnly:_}),c&&r.size===0&&d.jsx("div",{style:{fontSize:11,color:"var(--accent)",fontStyle:"italic",fontFamily:"var(--font-serif)",padding:"8px 10px",background:"var(--ink-faint)",borderRadius:3,marginBottom:16},children:"no memories match these filters"}),d.jsx(lg,{memories:o,visibleIds:c?r:new Set,onTagClick:tt=>x(tt)})]})}const zd={fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",fontWeight:400,color:"var(--dim)",marginBottom:10,paddingBottom:6,borderBottom:"1px solid var(--glass-border)"};function bg(o,u,r,c){const h=["size = retrievals","opacity = strength"],y=[];if(u&&(u.openConflicts>0&&y.push("conflicts (open)"),u.resolvedConflicts>0&&y.push("conflicts (resolved)"),u.sharedTag>0&&y.push("shared tags")),y.length>0&&h.push(`lines = ${y.join(" / ")}`),o!=="layer"&&h.push(`color = ${o}`),r){const T=r.cappedFrom!==void 0?`view = local (${r.size}, capped from ${r.cappedFrom})`:`view = local (${r.size})`;h.push(T)}c&&h.push(`layout: settling (${c})`);let x=h.join(" · ");return u?.sharedTagBailed&&u.sharedTag===0&&(x+=" · filter to <500 for tag edges"),x}function wn({children:o}){return d.jsx("span",{style:{display:"inline-block",fontFamily:"var(--font-mono)",fontSize:9,padding:"1px 5px",background:"var(--ink-faint)",border:"1px solid var(--glass-border)",borderRadius:3,color:"var(--text)",lineHeight:1.3,marginRight:3},children:o})}const Sg=[{key:"buffer",label:"buffer"},{key:"episodic",label:"episodic"},{key:"semantic",label:"semantic"}];function xg({drawerOpen:o,onToggleDrawer:u,visibleCount:r,colorMode:c="layer",edgeCounts:h,localView:y,forceSettling:x}){const T=bg(c,h,y,x);return d.jsxs("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:36,background:"var(--glass-bg)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderTop:"1px solid var(--glass-border)",display:"flex",alignItems:"center",padding:"0 24px",gap:24,fontSize:10,fontFamily:"var(--font-mono)",color:"var(--dim)",zIndex:25,pointerEvents:"auto"},children:[d.jsx("div",{style:{display:"flex",alignItems:"center",gap:14},children:Sg.map(({key:R,label:U})=>d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5},children:[d.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:Re[R],display:"inline-block"}}),d.jsx("span",{children:U})]},R))}),d.jsx("div",{style:{flex:1}}),d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14},children:[d.jsxs("span",{children:[d.jsx(wn,{children:"/"})," search"]}),d.jsxs("span",{children:[d.jsx(wn,{children:"esc"})," clear"]}),d.jsxs("span",{children:[d.jsx(wn,{children:"f"})," freeze"]}),d.jsxs("span",{children:[d.jsx(wn,{children:"click"})," open"]}),d.jsxs("span",{role:"button",tabIndex:0,onClick:u,onKeyDown:R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),u())},"aria-controls":"memory-drawer","aria-expanded":o,"aria-label":o?"L map, close memory list view":`L list (${r}), open memory list view`,style:{cursor:"pointer",color:o?"var(--accent)":"var(--dim)",transition:"color 150ms ease",userSelect:"none",padding:"6px 4px",display:"inline-flex",alignItems:"center",gap:3},children:[d.jsx(wn,{children:"L"})," ",o?"map":`list (${r})`]})]}),d.jsx("div",{style:{flex:1}}),d.jsx("div",{style:{fontStyle:"italic",fontFamily:"var(--font-serif)",fontSize:11,color:"var(--dim)",letterSpacing:"0.2px",maxWidth:"50%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:T})]})}function _g(o,u,r,c){const y=(r?o.filter(x=>u.has(x.id)):o).filter(x=>!(x.content.split(/\n/)[0]?.trim()??"").startsWith("[")).map(x=>({m:x,score:x.strength*Math.log2(x.retrieval_count+2)}));return y.sort((x,T)=>T.score-x.score),y.slice(0,c).map(x=>x.m)}function zg(o){let u=o.content.split(/\n/)[0]?.trim()??"";return u=u.replace(/^\[[^\]]*\]\s*/,""),u.length===0?"":u.length<=28?u:u.slice(0,27).trimEnd()+"…"}function Tg({memories:o,visibleIds:u,filterActive:r,scene:c,topN:h=10}){const y=H.useMemo(()=>_g(o,u,r,h),[o,u,r,h]),x=H.useRef(new Map);return H.useEffect(()=>{const T=new Set(y.map(R=>R.id));for(const R of x.current.keys())T.has(R)||x.current.delete(R)},[y]),H.useEffect(()=>{if(!c)return;const T=new Wt,R=c.getRenderer(),U=new It,C=[],D=E=>{const N=R.getSize(U),B=N.x,k=N.y;C.length=0;for(const tt of y){const V=c.getNodePosition(tt.id),Z=x.current.get(tt.id);if(!V||!Z)continue;if(T.set(V.x,V.y,V.z),T.project(E),Math.abs(T.x)>1||Math.abs(T.y)>1||T.z<-1||T.z>1){Z.style.opacity="0";continue}const q=(T.x*.5+.5)*B,I=(-T.y*.5+.5)*k,Q=q+12,L=I-8,nt=Z.offsetWidth||160,Y=Z.offsetHeight||18;let it=!1;for(const et of C)if(Q<et.x+et.w&&Q+nt>et.x&&L<et.y+et.h&&L+Y>et.y){it=!0;break}if(it){Z.style.opacity="0";continue}C.push({x:Q,y:L,w:nt,h:Y}),Z.style.transform=`translate(${Math.round(Q)}px, ${Math.round(L)}px)`,Z.style.opacity="1"}};return c.onRender(D)},[c,y]),d.jsx("div",{"aria-hidden":"true",style:{position:"absolute",top:72,left:24,right:364,bottom:60,pointerEvents:"none",zIndex:5,overflow:"hidden"},children:y.map(T=>d.jsxs("div",{ref:R=>{x.current.set(T.id,R)},style:{position:"absolute",top:0,left:0,transform:"translate(-9999px, -9999px)",opacity:0,transition:"opacity 200ms ease",fontFamily:"var(--font-serif)",fontWeight:600,fontSize:11,color:"var(--text)",background:"var(--glass-bg-strong)",padding:"2px 8px",borderRadius:3,border:"1px solid var(--glass-border)",boxShadow:"0 1px 3px var(--ink-shadow)",letterSpacing:"0.2px",whiteSpace:"nowrap",pointerEvents:"none"},children:[d.jsx("span",{style:{display:"inline-block",width:5,height:5,borderRadius:"50%",background:Re[T.layer],marginRight:5,verticalAlign:"middle"}}),zg(T)]},T.id))})}function Eg(o){return o==="tag"||o==="path"}const Td=280;function Mg(o,u){const r=o.split(/\n/)[0]?.trim()??"";return r.length<=u?r:r.slice(0,u-1).trimEnd()+"…"}function Ag({memories:o,visibleIds:u,filterActive:r,colorMode:c="layer",open:h,onClose:y,onMemorySelect:x,selectedMemoryId:T,resetFilters:R}){const U=c==="tag"||c==="path",C=H.useMemo(()=>r?o.filter(E=>u.has(E.id)):o,[o,u,r]),D=H.useRef(null);H.useEffect(()=>{if(!h)return;const E=D.current;if(!E)return;(T?E.querySelector(`tr[data-memory-id="${T}"]`):E.querySelector("tr[data-memory-id]"))?.focus()},[h,T]);function _(E){const N=D.current;if(!N)return;const B=Array.from(N.querySelectorAll("tr[data-memory-id]")),k=B.findIndex(tt=>tt===document.activeElement);if(E.key==="ArrowDown"&&k<B.length-1)E.preventDefault(),B[k+1]?.focus();else if(E.key==="ArrowUp"&&k>0)E.preventDefault(),B[k-1]?.focus();else if(E.key==="Escape")E.preventDefault(),y();else if((E.key==="Enter"||E.key===" ")&&k>=0){E.preventDefault();const V=B[k]?.dataset.memoryId,Z=V?o.find(q=>q.id===V):void 0;Z&&x(Z)}}return d.jsxs("div",{id:"memory-drawer",role:"region","aria-label":`Memory list view, ${C.length} ${C.length===1?"memory":"memories"}${r?" (filtered)":""}`,"data-drawer":"memory-list",style:{position:"absolute",bottom:36,left:0,right:0,height:Td,background:"var(--glass-bg-strong)",backdropFilter:"blur(24px)",WebkitBackdropFilter:"blur(24px)",borderTop:"1px solid var(--glass-border)",boxShadow:"0 -4px 24px var(--ink-shadow)",transform:h?"translateY(0)":`translateY(${Td}px)`,transition:"transform 250ms cubic-bezier(0.16, 1, 0.3, 1)",overflow:"hidden",zIndex:22,display:"flex",flexDirection:"column"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 20px",borderBottom:"1px solid var(--glass-border)"},children:[d.jsxs("h2",{style:{margin:0,fontSize:11,fontVariant:"small-caps",letterSpacing:"1px",color:"var(--dim)",fontWeight:400},children:["Memory list",d.jsxs("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-faint)",letterSpacing:0,fontVariant:"normal"},children:[C.length,r?" of "+o.length+" (filtered)":""]})]}),d.jsx("button",{type:"button",onClick:y,"aria-label":"Close memory list",style:{background:"var(--ink-faint)",border:"none",borderRadius:3,color:"var(--dim)",cursor:"pointer",padding:"4px 10px",fontSize:10,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.6px"},children:"close (esc)"})]}),C.length===0?d.jsxs("div",{style:{padding:"32px 20px",textAlign:"center",color:"var(--text-faint)",fontFamily:"var(--font-serif)",fontStyle:"italic",fontSize:13},children:["no memories match these filters",d.jsx("div",{style:{marginTop:12},children:d.jsx("button",{type:"button",onClick:R,style:{background:"transparent",border:"1px solid var(--accent)",color:"var(--accent)",padding:"4px 12px",borderRadius:3,fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.6px",cursor:"pointer",fontStyle:"normal"},children:"reset filters"})})]}):d.jsx("div",{style:{overflow:"auto",flex:1},children:d.jsxs("table",{onKeyDown:_,style:{width:"100%",borderCollapse:"collapse",tableLayout:"fixed"},children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{style:Ya,scope:"col",children:"id"}),d.jsx("th",{style:Ya,scope:"col",children:"content"}),d.jsx("th",{style:{...Ya,width:60},scope:"col",children:"layer"}),U&&d.jsx("th",{style:{...Ya,width:80},scope:"col",children:"tag"}),d.jsx("th",{style:{...Ya,width:70},scope:"col",children:"strength"}),d.jsx("th",{style:{...Ya,width:60},scope:"col",children:"age"})]})}),d.jsx("tbody",{ref:D,children:C.map(E=>{const N=E.id===T;return d.jsxs("tr",{"data-memory-id":E.id,tabIndex:0,role:"row","aria-selected":N,onClick:()=>x(E),onFocus:B=>{B.currentTarget.scrollIntoView({block:"nearest"})},style:{cursor:"pointer",borderLeft:N?"2px solid var(--accent)":"2px solid transparent",background:N?"rgba(196, 92, 60, 0.06)":"transparent",outline:"none"},onMouseEnter:B=>{N||(B.currentTarget.style.background="rgba(196, 185, 168, 0.12)")},onMouseLeave:B=>{N||(B.currentTarget.style.background="transparent")},children:[d.jsx("td",{style:{...wa,fontFamily:"var(--font-mono)",color:"var(--dim)",fontSize:10},children:E.id.slice(0,10)}),d.jsx("td",{style:{...wa,color:"var(--text)",fontSize:12,fontFamily:"var(--font-serif)"},children:Mg(E.content,55)}),d.jsxs("td",{style:{...wa,textAlign:"center"},children:[d.jsx("span",{title:E.layer,style:{display:"inline-block",width:7,height:7,borderRadius:"50%",background:Re[E.layer],verticalAlign:"middle"}}),Zc(E)&&d.jsx("span",{title:"fading (strength < 0.1, unpinned)",style:{display:"inline-block",width:5,height:5,borderRadius:"50%",background:"var(--accent)",verticalAlign:"middle",marginLeft:4}})]}),U&&Eg(c)&&(()=>{const B=Qc(E,c)??"";return d.jsx("td",{style:{...wa,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:B,children:B})})(),d.jsx("td",{style:{...wa,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text)"},children:E.strength.toFixed(2)}),d.jsxs("td",{style:{...wa,fontFamily:"var(--font-mono)",fontSize:11,color:"var(--dim)"},children:[E.age_days,"d"]})]},E.id)})})]})})]})}const Ya={textAlign:"left",padding:"7px 20px",fontFamily:"var(--font-serif)",fontSize:10,fontVariant:"small-caps",letterSpacing:"0.6px",color:"var(--dim)",fontWeight:400,background:"var(--map-bg)",position:"sticky",top:0},wa={padding:"7px 20px",height:28,verticalAlign:"middle",borderBottom:"1px solid var(--glass-border)"};function Dg({onActivate:o}){return d.jsx("a",{href:"#memory-drawer",onClick:u=>{u.preventDefault(),o()},onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())},style:{position:"absolute",left:-9999,top:8,zIndex:1e3,background:"var(--bg)",border:"1px solid var(--accent)",color:"var(--accent)",padding:"8px 16px",borderRadius:3,fontFamily:"var(--font-serif)",fontSize:13,textDecoration:"none"},onFocus:u=>{u.currentTarget.style.left="8px"},onBlur:u=>{u.currentTarget.style.left="-9999px"},children:"Skip to memory list"})}const jg=5,Og=60;function Cg(o,u){const r=new Map,c=(y,x)=>{if(y===x)return;let T=r.get(y);T===void 0&&(T=new Set,r.set(y,T)),T.add(x)};for(const y of u)c(y.memory_a_id,y.memory_b_id),c(y.memory_b_id,y.memory_a_id);const h=Cd(o,{excludePrefix:"path:",softCap:50,hardCap:300,perTagTopK:15,minShared:2});for(const y of h)c(y.a,y.b),c(y.b,y.a);return r}function Rg(o,u,r){const c=Math.min(Math.max(0,r),jg),h=Ed(o,u,c);return h.size>Og&&c>1?{memoryIds:Ed(o,u,1),depthUsed:1,cappedFrom:{requestedDepth:c,wouldHaveBeen:h.size}}:{memoryIds:h,depthUsed:c}}function Ed(o,u,r){const c=new Set([u]);if(r<=0)return c;let h=[u];for(let y=0;y<r;y++){const x=[];for(const T of h){const R=o.get(T);if(R)for(const U of R)c.has(U)||(c.add(U),x.push(U))}if(x.length===0)break;h=x}return c}function Ug({value:o}){return d.jsx("div",{style:{width:"100%",height:3,background:"var(--glass-border)",borderRadius:2,overflow:"hidden"},children:d.jsx("div",{style:{width:`${o*100}%`,height:"100%",borderRadius:2,background:`linear-gradient(90deg, var(--accent), ${o>.5?"var(--green)":"var(--yellow)"})`}})})}function Ng({memory:o,localView:u,setLocalView:r}){const c=u?.centerId===o.id,h=u!==null;let y,x,T;return c?(y="focused",x={...Bg,cursor:"default"},T="This memory is the focused center"):h?(y="recenter here",x=Hg,T="Recenter the focused view on this memory"):(y="focus",x=Vc,T="Focus the graph on this memory's neighborhood (depth 2)"),d.jsx("button",{type:"button","aria-label":T,title:T,onClick:()=>{c||r({centerId:o.id,depth:2})},style:x,children:y})}const Vc={background:"var(--ink-faint)",border:"1px solid var(--glass-border)",color:"var(--dim)",borderRadius:4,padding:"4px 12px",fontFamily:"var(--font-mono)",fontSize:11,cursor:"pointer"},Bg={...Vc,background:"rgba(196, 92, 60, 0.18)",border:"1px solid var(--accent)",color:"var(--accent)"},Hg={...Vc,background:"transparent",border:"1px solid transparent",color:"var(--accent)"};function Lg({memory:o,onClose:u,open:r,localView:c,setLocalView:h}){if(!o&&!r)return null;const y=o?Re[o.layer]:"var(--accent)";return d.jsx("div",{role:"dialog","aria-label":"Memory details",style:{position:"absolute",top:0,right:0,width:"min(360px, 48vw)",height:"100%",background:"var(--glass-bg-strong)",backdropFilter:"blur(24px)",WebkitBackdropFilter:"blur(24px)",borderLeft:"1px solid var(--glass-border)",overflowY:"auto",zIndex:50,transform:r?"translateX(0)":"translateX(100%)",transition:"transform 250ms cubic-bezier(0.16, 1, 0.3, 1)"},children:o&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{style:{padding:"20px 24px 16px",borderBottom:"1px solid var(--glass-border)",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[d.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[d.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:y,boxShadow:`0 0 8px ${y}40`}}),d.jsx("span",{style:{color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)",letterSpacing:"0.5px",textTransform:"uppercase"},children:o.layer}),d.jsx(Ng,{memory:o,localView:c,setLocalView:h})]}),d.jsx("button",{onClick:u,style:{background:"var(--ink-faint)",border:"none",borderRadius:4,color:"var(--dim)",cursor:"pointer",padding:"4px 10px",fontSize:11,fontFamily:"var(--font-mono)"},children:"esc"})]}),d.jsxs("div",{style:{padding:"20px 24px"},children:[d.jsx("div",{style:{color:"var(--text)",fontSize:13,lineHeight:1.7,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"var(--font-body)",marginBottom:20},children:o.content}),d.jsxs("div",{style:{marginBottom:16},children:[d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:6},children:[d.jsx("span",{style:{color:"var(--dim)",fontSize:10,fontFamily:"var(--font-mono)"},children:"STRENGTH"}),d.jsx("span",{style:{color:"var(--text)",fontSize:11,fontFamily:"var(--font-mono)"},children:o.strength.toFixed(3)})]}),d.jsx(Ug,{value:o.strength})]}),d.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 20px",fontSize:11,marginBottom:20},children:[["Half-life",`${o.half_life_days}d`],["Retrievals",String(o.retrieval_count)],["Age",`${o.age_days}d`],["Schema fit",o.schema_fit.toFixed(2)],["Valence",o.emotional_valence],["Confidence",o.aged_out?`${o.confidence} (aged out)`:o.confidence],["+7d",o.projected_strength_7d.toFixed(3)],["+30d",o.projected_strength_30d.toFixed(3)]].map(([x,T])=>d.jsxs("div",{children:[d.jsx("div",{style:{color:"var(--dim)",fontSize:9,fontFamily:"var(--font-mono)",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:2},children:x}),d.jsx("div",{style:{color:"var(--text)",fontFamily:"var(--font-mono)"},children:T})]},x))}),o.tags.length>0&&d.jsx("div",{style:{display:"flex",gap:5,flexWrap:"wrap",marginBottom:16},children:o.tags.map(x=>d.jsx("span",{style:{background:"var(--ink-faint)",color:"var(--dim)",padding:"3px 10px",borderRadius:12,fontSize:10,fontFamily:"var(--font-mono)"},children:x},x))}),d.jsxs("div",{style:{fontSize:10,color:"var(--text-faint)",fontFamily:"var(--font-mono)",borderTop:"1px solid var(--glass-border)",paddingTop:12},children:[d.jsx("div",{children:o.id}),d.jsxs("div",{style:{marginTop:4},children:[new Date(o.created).toLocaleDateString()," → ",new Date(o.last_retrieved).toLocaleDateString()]})]})]})]})})}function Yg({memories:o,embeddings:u,stats:r,conflicts:c,filterState:h,frozenOrigin:y,setQuery:x,setFrozen:T,setLayers:R,setStrengthRange:U,setConfidences:C,setAgeMaxDays:D,setFadingOnly:_,setAgedOutOnly:E,setColorMode:N,setLocalView:B,resetFilters:k}){const tt=H.useRef(null),[V,Z]=H.useState({width:0,height:0}),[q,I]=H.useState(null),[Q,L]=H.useState(null),[nt,Y]=H.useState(!1),it=H.useMemo(()=>Cg(o,c),[o,c]),et=H.useMemo(()=>{if(h.localView)return Rg(it,h.localView.centerId,h.localView.depth)},[it,h.localView]);H.useEffect(()=>{h.localView&&!o.some(yt=>yt.id===h.localView.centerId)&&B(null)},[o,h.localView]);const W=H.useMemo(()=>Dp(o,h,et?.memoryIds),[o,h,et]),G=H.useMemo(()=>Ap(h),[h]),[J,Bt]=H.useState(null);H.useEffect(()=>{function yt(Ot){Ot.target instanceof HTMLInputElement||Ot.target instanceof HTMLTextAreaElement||Ot.target instanceof HTMLElement&&Ot.target.closest('[data-drawer="memory-list"]')||(Ot.key==="l"||Ot.key==="L")&&(Ot.preventDefault(),Y(Pt=>!Pt))}return window.addEventListener("keydown",yt),()=>window.removeEventListener("keydown",yt)},[]),H.useEffect(()=>{const yt=tt.current;if(!yt)return;const Ot=new ResizeObserver(Pt=>{const Dl=Pt[0];Dl&&Z({width:Math.floor(Dl.contentRect.width),height:Math.floor(Dl.contentRect.height)})});return Ot.observe(yt),()=>Ot.disconnect()},[]);const A=H.useCallback((yt,Ot,Pt)=>{Q||I(yt?{memory:yt,x:Ot,y:Pt}:null)},[Q]),w=H.useCallback(yt=>{L(yt),I(null),yt===null&&B(null)},[B]),{containerRef:P,handleMouseMove:_t,handleClick:zt,handleKeyDown:Qt,edgeCounts:Et,forceSettling:rt,projectAnchorLayout:Dt}=Jp({memories:o,embeddings:u,conflicts:c,width:V.width,height:V.height,onHover:A,onClick:w,searchQuery:h.query,frozen:h.frozen,visibleIds:W,filterActive:G,colorMode:h.colorMode,adjacency:it,onSceneReady:Bt}),ve=H.useMemo(()=>{if(!Dt)return[];const yt=new Map;for(const Ot of o)for(const Pt of Ot.tags)Dt.byTag.has(Pt)&&yt.set(Pt,(yt.get(Pt)??0)+1);return Dt.orderedTags.map(Ot=>({tag:Ot,count:yt.get(Ot)??0,anchor:Dt.byTag.get(Ot)}))},[o,Dt]),Ue=H.useMemo(()=>!q||h.colorMode==="layer"?null:Qc(q.memory,h.colorMode),[q,h.colorMode]),Al=h.query.trim().length>0?o.filter(yt=>Dd(yt,h.query)).length:null,Fl=Q!==null;return d.jsxs("div",{ref:tt,style:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},onKeyDown:Qt,tabIndex:0,children:[d.jsx(Dg,{onActivate:()=>Y(!0)}),d.jsxs("div",{role:"region","aria-label":"Memory graph (visual representation)",style:{position:"absolute",top:72,left:24,right:364,bottom:60,border:"1px solid var(--border)",borderRadius:2,background:"var(--map-bg)",overflow:"hidden",zIndex:0},children:[d.jsx("div",{"aria-hidden":"true",style:{position:"absolute",inset:0},children:d.jsx("div",{ref:P,onMouseMove:_t,onClick:zt,style:{position:"absolute",inset:0}})}),d.jsxs("button",{type:"button",className:"sr-only",onClick:()=>Y(!0),children:["For a tabular alternative, view the memory list (",o.length," memories)"]})]}),d.jsx($p,{memoryCount:o.length,matchCount:Al,stats:r,filterState:h,frozenOrigin:y,setQuery:x,setFrozen:T,setFadingOnly:_}),d.jsx(Tg,{memories:o,visibleIds:W,filterActive:G,scene:J}),d.jsx(vg,{memories:o,stats:r,visibleIds:W,filterActive:G,selectedMemory:Q,filterState:h,setQuery:x,setLayers:R,setStrengthRange:U,setConfidences:C,setAgeMaxDays:D,setFadingOnly:_,setAgedOutOnly:E,setColorMode:N,resetFilters:k,projects:ve}),Al===0&&h.query.trim().length>0&&d.jsx("div",{style:{position:"absolute",top:56,right:24,zIndex:21,background:"var(--ink-faint)",padding:"4px 12px",borderRadius:12,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--dim)"},children:"no matches"}),q&&!Q&&d.jsx(Fp,{memory:q.memory,x:q.x,y:q.y,colorMode:h.colorMode,colorTag:Ue}),d.jsx(Lg,{memory:Q,onClose:()=>{L(null),B(null)},open:Fl,localView:h.localView,setLocalView:B}),d.jsx(Ag,{memories:o,visibleIds:W,filterActive:G,colorMode:h.colorMode,open:nt,onClose:()=>Y(!1),onMemorySelect:yt=>{L(yt),I(null)},selectedMemoryId:Q?.id??null,resetFilters:k}),d.jsx(xg,{drawerOpen:nt,onToggleDrawer:()=>Y(yt=>!yt),visibleCount:G?W.size:o.length,colorMode:h.colorMode,edgeCounts:Et,localView:et?{size:et.memoryIds.size,cappedFrom:et.cappedFrom?.wouldHaveBeen}:void 0,forceSettling:rt})]})}function wg(o){return o instanceof Error?o.message:String(o)}const qg=`
|
|
57
|
-
@keyframes hippo-float {
|
|
58
|
-
0%, 100% { transform: translateY(0px); opacity: 0.4; }
|
|
59
|
-
50% { transform: translateY(-6px); opacity: 1; }
|
|
60
|
-
}
|
|
61
|
-
`;function Gg(){const[o,u]=H.useState([]),[r,c]=H.useState(null),[h,y]=H.useState([]),[x,T]=H.useState({}),[R,U]=H.useState("loading"),[C,D]=H.useState(""),[_,E]=H.useState(dd),[N,B]=H.useState(null),k=H.useCallback(G=>{E(J=>({...J,query:G}))},[]),tt=H.useCallback(G=>{E(J=>({...J,frozen:G})),B("user")},[]);H.useEffect(()=>{if(!("window"in globalThis)||!(window.matchMedia instanceof Function))return;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(E(J=>({...J,frozen:!0})),B("os"))},[]);const V=H.useCallback(G=>{E(J=>({...J,layers:G}))},[]),Z=H.useCallback(G=>{E(J=>({...J,strengthRange:G}))},[]),q=H.useCallback(G=>{E(J=>({...J,confidences:G}))},[]),I=H.useCallback(G=>{E(J=>({...J,ageMaxDays:G}))},[]),Q=H.useCallback(()=>{E(G=>({...dd,frozen:G.frozen,colorMode:G.colorMode}))},[]),L=H.useCallback(G=>{E(J=>({...J,agedOutOnly:G}))},[]),nt=H.useCallback(G=>{E(J=>({...J,fadingOnly:G}))},[]),Y=H.useCallback(G=>{E(J=>({...J,colorMode:G}))},[]),it=H.useCallback(G=>{G!==null&&!o.some(J=>J.id===G.centerId)||E(J=>({...J,localView:G}))},[o]),[et,W]=H.useState("");return H.useEffect(()=>{_.fadingOnly&&r&&r.at_risk===0&&(E(G=>({...G,fadingOnly:!1})),W("No more fading memories — fading filter cleared."))},[_.fadingOnly,r?.at_risk]),H.useEffect(()=>{function G(J){J.target instanceof HTMLInputElement||J.target instanceof HTMLTextAreaElement||J.target instanceof HTMLElement&&J.target.closest('[data-drawer="memory-list"]')||(J.key==="f"||J.key==="F")&&tt(!_.frozen)}return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[_.frozen,tt]),H.useEffect(()=>{Promise.all([V0(),K0(),k0(),J0()]).then(([G,J,Bt,A])=>{u(G),c(J),y(Bt),T(A),U("ready")}).catch(G=>{D(wg(G)),U("error")})},[]),R==="loading"?d.jsxs("div",{style:Yc,role:"status","aria-live":"polite",children:[d.jsx("style",{children:qg}),d.jsxs("div",{style:{textAlign:"center"},children:[d.jsx("div",{style:{fontSize:32,animation:"hippo-float 2.5s ease-in-out infinite",marginBottom:16,filter:"saturate(0.7)"},children:"🧠"}),d.jsx("div",{style:{color:"var(--dim)",fontFamily:"var(--font-mono)",fontSize:11,letterSpacing:"2px"},children:"loading memories"})]})]}):R==="error"?d.jsx("div",{style:Yc,children:d.jsxs("div",{style:{textAlign:"center",maxWidth:320},children:[d.jsx("div",{style:{color:"var(--red)",fontFamily:"var(--font-mono)",fontSize:11,marginBottom:8},children:C}),d.jsx("div",{style:{color:"var(--text-faint)",fontSize:10,fontFamily:"var(--font-mono)"},children:"is hippo dashboard running?"})]})}):o.length===0?d.jsx("div",{style:Yc,children:d.jsxs("div",{style:{textAlign:"center"},children:[d.jsx("div",{style:{fontSize:32,marginBottom:16,opacity:.5},children:"🧠"}),d.jsx("div",{style:{color:"var(--dim)",fontSize:12,fontFamily:"var(--font-mono)",marginBottom:8},children:"no memories yet"}),d.jsxs("div",{style:{color:"var(--text-faint)",fontSize:10,fontFamily:"var(--font-mono)"},children:["run"," ",d.jsx("span",{style:{color:"var(--accent)"},children:"hippo remember"})," ","to begin"]})]})}):d.jsxs("main",{style:{width:"100%",height:"100%"},children:[d.jsx(Yg,{memories:o,embeddings:x,stats:r,conflicts:h,filterState:_,frozenOrigin:N,setQuery:k,setFrozen:tt,setLayers:V,setStrengthRange:Z,setConfidences:q,setAgeMaxDays:I,setFadingOnly:nt,setAgedOutOnly:L,setColorMode:Y,setLocalView:it,resetFilters:Q}),d.jsx("div",{role:"status","aria-live":"polite",className:"sr-only",children:et})]})}const Yc={width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"};Z0.createRoot(document.getElementById("root")).render(d.jsx(Gg,{}));
|