@ouro.bot/cli 0.1.0-alpha.176 → 0.1.0-alpha.178
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/changelog.json +12 -0
- package/dist/outlook-ui/assets/index-DN6vVYPm.css +1 -0
- package/dist/outlook-ui/assets/index-M1l1tDTX.js +61 -0
- package/dist/outlook-ui/index.html +15 -0
- package/dist/senses/cli/adapter.js +1 -34
- package/dist/senses/cli/inline-diff.js +0 -4
- package/dist/senses/cli/message-list.js +1 -34
- package/dist/senses/cli/ouro-tui.js +1 -34
- package/dist/senses/cli/status-line.js +0 -4
- package/dist/senses/cli/tool-render.js +0 -4
- package/dist/senses/cli/virtual-list.js +1 -34
- package/package.json +4 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
function aT(n,a){for(var l=0;l<a.length;l++){const o=a[l];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in n)){const d=Object.getOwnPropertyDescriptor(o,u);d&&Object.defineProperty(n,u,d.get?d:{enumerable:!0,get:()=>o[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function l(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(u){if(u.ep)return;u.ep=!0;const d=l(u);fetch(u.href,d)}})();function iT(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ef={exports:{}},Zl={};/**
|
|
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 nv;function lT(){if(nv)return Zl;nv=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(o,u,d){var f=null;if(d!==void 0&&(f=""+d),u.key!==void 0&&(f=""+u.key),"key"in u){d={};for(var h in u)h!=="key"&&(d[h]=u[h])}else d=u;return u=d.ref,{$$typeof:n,type:o,key:f,ref:u!==void 0?u:null,props:d}}return Zl.Fragment=a,Zl.jsx=l,Zl.jsxs=l,Zl}var av;function sT(){return av||(av=1,ef.exports=lT()),ef.exports}var g=sT(),tf={exports:{}},re={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var iv;function oT(){if(iv)return re;iv=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function T(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,C={};function D(N,G,X){this.props=N,this.context=G,this.refs=C,this.updater=X||E}D.prototype.isReactComponent={},D.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,G,"setState")},D.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function O(){}O.prototype=D.prototype;function R(N,G,X){this.props=N,this.context=G,this.refs=C,this.updater=X||E}var B=R.prototype=new O;B.constructor=R,j(B,D.prototype),B.isPureReactComponent=!0;var q=Array.isArray;function Z(){}var F={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function he(N,G,X){var P=X.ref;return{$$typeof:n,type:N,key:G,ref:P!==void 0?P:null,props:X}}function J(N,G){return he(N.type,G,N.props)}function oe(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function me(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(X){return G[X]})}var Oe=/\/+/g;function Ne(N,G){return typeof N=="object"&&N!==null&&N.key!=null?me(""+N.key):G.toString(36)}function Re(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(Z,Z):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function U(N,G,X,P,le){var de=typeof N;(de==="undefined"||de==="boolean")&&(N=null);var xe=!1;if(N===null)xe=!0;else switch(de){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(N.$$typeof){case n:case a:xe=!0;break;case y:return xe=N._init,U(xe(N._payload),G,X,P,le)}}if(xe)return le=le(N),xe=P===""?"."+Ne(N,0):P,q(le)?(X="",xe!=null&&(X=xe.replace(Oe,"$&/")+"/"),U(le,G,X,"",function(tl){return tl})):le!=null&&(oe(le)&&(le=J(le,X+(le.key==null||N&&N.key===le.key?"":(""+le.key).replace(Oe,"$&/")+"/")+xe)),G.push(le)),1;xe=0;var Fe=P===""?".":P+":";if(q(N))for(var Le=0;Le<N.length;Le++)P=N[Le],de=Fe+Ne(P,Le),xe+=U(P,G,X,de,le);else if(Le=T(N),typeof Le=="function")for(N=Le.call(N),Le=0;!(P=N.next()).done;)P=P.value,de=Fe+Ne(P,Le++),xe+=U(P,G,X,de,le);else if(de==="object"){if(typeof N.then=="function")return U(Re(N),G,X,P,le);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return xe}function K(N,G,X){if(N==null)return N;var P=[],le=0;return U(N,P,"","",function(de){return G.call(X,de,le++)}),P}function Q(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(X){(N._status===0||N._status===-1)&&(N._status=1,N._result=X)},function(X){(N._status===0||N._status===-1)&&(N._status=2,N._result=X)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var ie=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},fe={map:K,forEach:function(N,G,X){K(N,function(){G.apply(this,arguments)},X)},count:function(N){var G=0;return K(N,function(){G++}),G},toArray:function(N){return K(N,function(G){return G})||[]},only:function(N){if(!oe(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return re.Activity=b,re.Children=fe,re.Component=D,re.Fragment=l,re.Profiler=u,re.PureComponent=R,re.StrictMode=o,re.Suspense=m,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,re.__COMPILER_RUNTIME={__proto__:null,c:function(N){return F.H.useMemoCache(N)}},re.cache=function(N){return function(){return N.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(N,G,X){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var P=j({},N.props),le=N.key;if(G!=null)for(de in G.key!==void 0&&(le=""+G.key),G)!te.call(G,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&G.ref===void 0||(P[de]=G[de]);var de=arguments.length-2;if(de===1)P.children=X;else if(1<de){for(var xe=Array(de),Fe=0;Fe<de;Fe++)xe[Fe]=arguments[Fe+2];P.children=xe}return he(N.type,le,P)},re.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},re.createElement=function(N,G,X){var P,le={},de=null;if(G!=null)for(P in G.key!==void 0&&(de=""+G.key),G)te.call(G,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(le[P]=G[P]);var xe=arguments.length-2;if(xe===1)le.children=X;else if(1<xe){for(var Fe=Array(xe),Le=0;Le<xe;Le++)Fe[Le]=arguments[Le+2];le.children=Fe}if(N&&N.defaultProps)for(P in xe=N.defaultProps,xe)le[P]===void 0&&(le[P]=xe[P]);return he(N,de,le)},re.createRef=function(){return{current:null}},re.forwardRef=function(N){return{$$typeof:h,render:N}},re.isValidElement=oe,re.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:Q}},re.memo=function(N,G){return{$$typeof:p,type:N,compare:G===void 0?null:G}},re.startTransition=function(N){var G=F.T,X={};F.T=X;try{var P=N(),le=F.S;le!==null&&le(X,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(Z,ie)}catch(de){ie(de)}finally{G!==null&&X.types!==null&&(G.types=X.types),F.T=G}},re.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},re.use=function(N){return F.H.use(N)},re.useActionState=function(N,G,X){return F.H.useActionState(N,G,X)},re.useCallback=function(N,G){return F.H.useCallback(N,G)},re.useContext=function(N){return F.H.useContext(N)},re.useDebugValue=function(){},re.useDeferredValue=function(N,G){return F.H.useDeferredValue(N,G)},re.useEffect=function(N,G){return F.H.useEffect(N,G)},re.useEffectEvent=function(N){return F.H.useEffectEvent(N)},re.useId=function(){return F.H.useId()},re.useImperativeHandle=function(N,G,X){return F.H.useImperativeHandle(N,G,X)},re.useInsertionEffect=function(N,G){return F.H.useInsertionEffect(N,G)},re.useLayoutEffect=function(N,G){return F.H.useLayoutEffect(N,G)},re.useMemo=function(N,G){return F.H.useMemo(N,G)},re.useOptimistic=function(N,G){return F.H.useOptimistic(N,G)},re.useReducer=function(N,G,X){return F.H.useReducer(N,G,X)},re.useRef=function(N){return F.H.useRef(N)},re.useState=function(N){return F.H.useState(N)},re.useSyncExternalStore=function(N,G,X){return F.H.useSyncExternalStore(N,G,X)},re.useTransition=function(){return F.H.useTransition()},re.version="19.2.4",re}var lv;function Sr(){return lv||(lv=1,tf.exports=oT()),tf.exports}var w=Sr();const se=iT(w),sv=aT({__proto__:null,default:se},[w]);var nf={exports:{}},Ql={},af={exports:{}},lf={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var ov;function rT(){return ov||(ov=1,(function(n){function a(U,K){var Q=U.length;U.push(K);e:for(;0<Q;){var ie=Q-1>>>1,fe=U[ie];if(0<u(fe,K))U[ie]=K,U[Q]=fe,Q=ie;else break e}}function l(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var K=U[0],Q=U.pop();if(Q!==K){U[0]=Q;e:for(var ie=0,fe=U.length,N=fe>>>1;ie<N;){var G=2*(ie+1)-1,X=U[G],P=G+1,le=U[P];if(0>u(X,Q))P<fe&&0>u(le,X)?(U[ie]=le,U[P]=Q,ie=P):(U[ie]=X,U[G]=Q,ie=G);else if(P<fe&&0>u(le,Q))U[ie]=le,U[P]=Q,ie=P;else break e}}return K}function u(U,K){var Q=U.sortIndex-K.sortIndex;return Q!==0?Q:U.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var m=[],p=[],y=1,b=null,S=3,T=!1,E=!1,j=!1,C=!1,D=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function B(U){for(var K=l(p);K!==null;){if(K.callback===null)o(p);else if(K.startTime<=U)o(p),K.sortIndex=K.expirationTime,a(m,K);else break;K=l(p)}}function q(U){if(j=!1,B(U),!E)if(l(m)!==null)E=!0,Z||(Z=!0,me());else{var K=l(p);K!==null&&Re(q,K.startTime-U)}}var Z=!1,F=-1,te=5,he=-1;function J(){return C?!0:!(n.unstable_now()-he<te)}function oe(){if(C=!1,Z){var U=n.unstable_now();he=U;var K=!0;try{e:{E=!1,j&&(j=!1,O(F),F=-1),T=!0;var Q=S;try{t:{for(B(U),b=l(m);b!==null&&!(b.expirationTime>U&&J());){var ie=b.callback;if(typeof ie=="function"){b.callback=null,S=b.priorityLevel;var fe=ie(b.expirationTime<=U);if(U=n.unstable_now(),typeof fe=="function"){b.callback=fe,B(U),K=!0;break t}b===l(m)&&o(m),B(U)}else o(m);b=l(m)}if(b!==null)K=!0;else{var N=l(p);N!==null&&Re(q,N.startTime-U),K=!1}}break e}finally{b=null,S=Q,T=!1}K=void 0}}finally{K?me():Z=!1}}}var me;if(typeof R=="function")me=function(){R(oe)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,Ne=Oe.port2;Oe.port1.onmessage=oe,me=function(){Ne.postMessage(null)}}else me=function(){D(oe,0)};function Re(U,K){F=D(function(){U(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(U){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var Q=S;S=K;try{return U()}finally{S=Q}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Q=S;S=U;try{return K()}finally{S=Q}},n.unstable_scheduleCallback=function(U,K,Q){var ie=n.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ie+Q:ie):Q=ie,U){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=Q+fe,U={id:y++,callback:K,priorityLevel:U,startTime:Q,expirationTime:fe,sortIndex:-1},Q>ie?(U.sortIndex=Q,a(p,U),l(m)===null&&U===l(p)&&(j?(O(F),F=-1):j=!0,Re(q,Q-ie))):(U.sortIndex=fe,a(m,U),E||T||(E=!0,Z||(Z=!0,me()))),U},n.unstable_shouldYield=J,n.unstable_wrapCallback=function(U){var K=S;return function(){var Q=S;S=K;try{return U.apply(this,arguments)}finally{S=Q}}}})(lf)),lf}var rv;function uT(){return rv||(rv=1,af.exports=rT()),af.exports}var sf={exports:{}},dt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var uv;function cT(){if(uv)return dt;uv=1;var n=Sr();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(m,p,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:m,containerInfo:p,implementation:y}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,dt.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return d(m,p,null,y)},dt.flushSync=function(m){var p=f.T,y=o.p;try{if(f.T=null,o.p=2,m)return m()}finally{f.T=p,o.p=y,o.d.f()}},dt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},dt.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},dt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,b=h(y,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:T}):y==="script"&&o.d.X(m,{crossOrigin:b,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},dt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=h(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},dt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,b=h(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},dt.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=h(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},dt.requestFormReset=function(m){o.d.r(m)},dt.unstable_batchedUpdates=function(m,p){return m(p)},dt.useFormState=function(m,p,y){return f.H.useFormState(m,p,y)},dt.useFormStatus=function(){return f.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var cv;function Q0(){if(cv)return sf.exports;cv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),sf.exports=cT(),sf.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var fv;function fT(){if(fv)return Ql;fv=1;var n=uT(),a=Sr(),l=Q0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(d(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var i=e,s=t;;){var r=i.return;if(r===null)break;var c=r.alternate;if(c===null){if(s=r.return,s!==null){i=s;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===i)return m(r),e;if(c===s)return m(r),t;c=c.sibling}throw Error(o(188))}if(i.return!==s.return)i=r,s=c;else{for(var v=!1,x=r.child;x;){if(x===i){v=!0,i=r,s=c;break}if(x===s){v=!0,s=r,i=c;break}x=x.sibling}if(!v){for(x=c.child;x;){if(x===i){v=!0,i=c,s=r;break}if(x===s){v=!0,s=c,i=r;break}x=x.sibling}if(!v)throw Error(o(189))}}if(i.alternate!==s)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case D:return"Profiler";case C:return"StrictMode";case q:return"Suspense";case Z:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var Re=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ie=[],fe=-1;function N(e){return{current:e}}function G(e){0>fe||(e.current=ie[fe],ie[fe]=null,fe--)}function X(e,t){fe++,ie[fe]=e.current,e.current=t}var P=N(null),le=N(null),de=N(null),xe=N(null);function Fe(e,t){switch(X(de,t),X(le,e),X(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ag(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ag(t),e=jg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(P),X(P,e)}function Le(){G(P),G(le),G(de)}function tl(e){e.memoizedState!==null&&X(xe,e);var t=P.current,i=jg(t,e.type);t!==i&&(X(le,e),X(P,i))}function Es(e){le.current===e&&(G(P),G(le)),xe.current===e&&(G(xe),ql._currentValue=Q)}var kr,th;function Ta(e){if(kr===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);kr=t&&t[1]||"",th=-1<i.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+kr+e+th}var _r=!1;function Ur(e,t){if(!e||_r)return"";_r=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(_){var k=_}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(_){k=_}e.call(Y.prototype)}}else{try{throw Error()}catch(_){k=_}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(_){if(_&&k&&typeof _.stack=="string")return[_.stack,k.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),v=c[0],x=c[1];if(v&&x){var A=v.split(`
|
|
44
|
+
`),V=x.split(`
|
|
45
|
+
`);for(r=s=0;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;for(;r<V.length&&!V[r].includes("DetermineComponentFrameRoot");)r++;if(s===A.length||r===V.length)for(s=A.length-1,r=V.length-1;1<=s&&0<=r&&A[s]!==V[r];)r--;for(;1<=s&&0<=r;s--,r--)if(A[s]!==V[r]){if(s!==1||r!==1)do if(s--,r--,0>r||A[s]!==V[r]){var H=`
|
|
46
|
+
`+A[s].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=s&&0<=r);break}}}finally{_r=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Ta(i):""}function Lx(e,t){switch(e.tag){case 26:case 27:case 5:return Ta(e.type);case 16:return Ta("Lazy");case 13:return e.child!==t&&t!==null?Ta("Suspense Fallback"):Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 15:return Ur(e.type,!1);case 11:return Ur(e.type.render,!1);case 1:return Ur(e.type,!0);case 31:return Ta("Activity");default:return""}}function nh(e){try{var t="",i=null;do t+=Lx(e,i),i=e,e=e.return;while(e);return t}catch(s){return`
|
|
47
|
+
Error generating stack: `+s.message+`
|
|
48
|
+
`+s.stack}}var Br=Object.prototype.hasOwnProperty,Hr=n.unstable_scheduleCallback,$r=n.unstable_cancelCallback,Vx=n.unstable_shouldYield,kx=n.unstable_requestPaint,jt=n.unstable_now,_x=n.unstable_getCurrentPriorityLevel,ah=n.unstable_ImmediatePriority,ih=n.unstable_UserBlockingPriority,As=n.unstable_NormalPriority,Ux=n.unstable_LowPriority,lh=n.unstable_IdlePriority,Bx=n.log,Hx=n.unstable_setDisableYieldValue,nl=null,Nt=null;function Bn(e){if(typeof Bx=="function"&&Hx(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(nl,e)}catch{}}var Ct=Math.clz32?Math.clz32:Yx,$x=Math.log,Gx=Math.LN2;function Yx(e){return e>>>=0,e===0?32:31-($x(e)/Gx|0)|0}var js=256,Ns=262144,Cs=4194304;function wa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ms(e,t,i){var s=e.pendingLanes;if(s===0)return 0;var r=0,c=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~c,s!==0?r=wa(s):(v&=x,v!==0?r=wa(v):i||(i=x&~e,i!==0&&(r=wa(i))))):(x=s&~c,x!==0?r=wa(x):v!==0?r=wa(v):i||(i=s&~e,i!==0&&(r=wa(i)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,i=t&-t,c>=i||c===32&&(i&4194048)!==0)?t:r}function al(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sh(){var e=Cs;return Cs<<=1,(Cs&62914560)===0&&(Cs=4194304),e}function Gr(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xx(e,t,i,s,r,c){var v=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var x=e.entanglements,A=e.expirationTimes,V=e.hiddenUpdates;for(i=v&~i;0<i;){var H=31-Ct(i),Y=1<<H;x[H]=0,A[H]=-1;var k=V[H];if(k!==null)for(V[H]=null,H=0;H<k.length;H++){var _=k[H];_!==null&&(_.lane&=-536870913)}i&=~Y}s!==0&&oh(e,s,0),c!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=c&~(v&~t))}function oh(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Ct(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|i&261930}function rh(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var s=31-Ct(i),r=1<<s;r&t|e[s]&t&&(e[s]|=t),i&=~r}}function uh(e,t){var i=t&-t;return i=(i&42)!==0?1:Yr(i),(i&(e.suspendedLanes|t))!==0?0:i}function Yr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function qr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ch(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Qg(e.type))}function fh(e,t){var i=K.p;try{return K.p=e,t()}finally{K.p=i}}var Hn=Math.random().toString(36).slice(2),it="__reactFiber$"+Hn,vt="__reactProps$"+Hn,ni="__reactContainer$"+Hn,Xr="__reactEvents$"+Hn,Kx="__reactListeners$"+Hn,Fx="__reactHandles$"+Hn,dh="__reactResources$"+Hn,ll="__reactMarker$"+Hn;function Kr(e){delete e[it],delete e[vt],delete e[Xr],delete e[Kx],delete e[Fx]}function ai(e){var t=e[it];if(t)return t;for(var i=e.parentNode;i;){if(t=i[ni]||i[it]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Rg(e);e!==null;){if(i=e[it])return i;e=Rg(e)}return t}e=i,i=e.parentNode}return null}function ii(e){if(e=e[it]||e[ni]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function sl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function li(e){var t=e[dh];return t||(t=e[dh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[ll]=!0}var hh=new Set,mh={};function Ea(e,t){si(e,t),si(e+"Capture",t)}function si(e,t){for(mh[e]=t,e=0;e<t.length;e++)hh.add(t[e])}var Zx=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]*$"),ph={},gh={};function Qx(e){return Br.call(gh,e)?!0:Br.call(ph,e)?!1:Zx.test(e)?gh[e]=!0:(ph[e]=!0,!1)}function Ds(e,t,i){if(Qx(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function zs(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function vn(e,t,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+s)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Px(e,t,i){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var r=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(v){i=""+v,c.call(this,v)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fr(e){if(!e._valueTracker){var t=vh(e)?"checked":"value";e._valueTracker=Px(e,t,""+e[t])}}function yh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),s="";return e&&(s=vh(e)?e.checked?"true":"false":e.value),e=s,e!==i?(t.setValue(e),!0):!1}function Os(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Jx=/[\n"\\]/g;function Ht(e){return e.replace(Jx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zr(e,t,i,s,r,c,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Qr(e,v,Bt(t)):i!=null?Qr(e,v,Bt(i)):s!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Bt(x):e.removeAttribute("name")}function bh(e,t,i,s,r,c,v,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Fr(e);return}i=i!=null?""+Bt(i):"",t=t!=null?""+Bt(t):i,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Fr(e)}function Qr(e,t,i){t==="number"&&Os(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function oi(e,t,i,s){if(e=e.options,t){t={};for(var r=0;r<i.length;r++)t["$"+i[r]]=!0;for(i=0;i<e.length;i++)r=t.hasOwnProperty("$"+e[i].value),e[i].selected!==r&&(e[i].selected=r),r&&s&&(e[i].defaultSelected=!0)}else{for(i=""+Bt(i),t=null,r=0;r<e.length;r++){if(e[r].value===i){e[r].selected=!0,s&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function xh(e,t,i){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Bt(i):""}function Sh(e,t,i,s){if(t==null){if(s!=null){if(i!=null)throw Error(o(92));if(Re(s)){if(1<s.length)throw Error(o(93));s=s[0]}i=s}i==null&&(i=""),t=i}i=Bt(t),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s),Fr(e)}function ri(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Wx=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 Th(e,t,i){var s=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,i):typeof i!="number"||i===0||Wx.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function wh(e,t,i){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var r in t)s=t[r],t.hasOwnProperty(r)&&i[r]!==s&&Th(e,r,s)}else for(var c in t)t.hasOwnProperty(c)&&Th(e,c,t[c])}function Pr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ix=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"]]),e1=/^[\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 Rs(e){return e1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var Jr=null;function Wr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,ci=null;function Eh(e){var t=ii(e);if(t&&(e=t.stateNode)){var i=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zr(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var s=i[t];if(s!==e&&s.form===e.form){var r=s[vt]||null;if(!r)throw Error(o(90));Zr(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<i.length;t++)s=i[t],s.form===e.form&&yh(s)}break e;case"textarea":xh(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&oi(e,!!i.multiple,t,!1)}}}var Ir=!1;function Ah(e,t,i){if(Ir)return e(t,i);Ir=!0;try{var s=e(t);return s}finally{if(Ir=!1,(ui!==null||ci!==null)&&(So(),ui&&(t=ui,e=ci,ci=ui=null,Eh(t),e)))for(t=0;t<e.length;t++)Eh(e[t])}}function ol(e,t){var i=e.stateNode;if(i===null)return null;var s=i[vt]||null;if(s===null)return null;i=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=!1;if(bn)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){eu=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{eu=!1}var $n=null,tu=null,Ls=null;function jh(){if(Ls)return Ls;var e,t=tu,i=t.length,s,r="value"in $n?$n.value:$n.textContent,c=r.length;for(e=0;e<i&&t[e]===r[e];e++);var v=i-e;for(s=1;s<=v&&t[i-s]===r[c-s];s++);return Ls=r.slice(e,1<s?1-s:void 0)}function Vs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ks(){return!0}function Nh(){return!1}function yt(e){function t(i,s,r,c,v){this._reactName=i,this._targetInst=r,this.type=s,this.nativeEvent=c,this.target=v,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(i=e[x],this[x]=i?i(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ks:Nh,this.isPropagationStopped=Nh,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ks)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ks)},persist:function(){},isPersistent:ks}),t}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_s=yt(Aa),ul=b({},Aa,{view:0,detail:0}),t1=yt(ul),nu,au,cl,Us=b({},ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cl&&(cl&&e.type==="mousemove"?(nu=e.screenX-cl.screenX,au=e.screenY-cl.screenY):au=nu=0,cl=e),nu)},movementY:function(e){return"movementY"in e?e.movementY:au}}),Ch=yt(Us),n1=b({},Us,{dataTransfer:0}),a1=yt(n1),i1=b({},ul,{relatedTarget:0}),iu=yt(i1),l1=b({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),s1=yt(l1),o1=b({},Aa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),r1=yt(o1),u1=b({},Aa,{data:0}),Mh=yt(u1),c1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f1={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"},d1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=d1[e])?!!t[e]:!1}function lu(){return h1}var m1=b({},ul,{key:function(e){if(e.key){var t=c1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?f1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),p1=yt(m1),g1=b({},Us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dh=yt(g1),v1=b({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),y1=yt(v1),b1=b({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=yt(b1),S1=b({},Us,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),T1=yt(S1),w1=b({},Aa,{newState:0,oldState:0}),E1=yt(w1),A1=[9,13,27,32],su=bn&&"CompositionEvent"in window,fl=null;bn&&"documentMode"in document&&(fl=document.documentMode);var j1=bn&&"TextEvent"in window&&!fl,zh=bn&&(!su||fl&&8<fl&&11>=fl),Oh=" ",Rh=!1;function Lh(e,t){switch(e){case"keyup":return A1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fi=!1;function N1(e,t){switch(e){case"compositionend":return Vh(t);case"keypress":return t.which!==32?null:(Rh=!0,Oh);case"textInput":return e=t.data,e===Oh&&Rh?null:e;default:return null}}function C1(e,t){if(fi)return e==="compositionend"||!su&&Lh(e,t)?(e=jh(),Ls=tu=$n=null,fi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zh&&t.locale!=="ko"?null:t.data;default:return null}}var M1={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 kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!M1[e.type]:t==="textarea"}function _h(e,t,i,s){ui?ci?ci.push(s):ci=[s]:ui=s,t=Co(t,"onChange"),0<t.length&&(i=new _s("onChange","change",null,i,s),e.push({event:i,listeners:t}))}var dl=null,hl=null;function D1(e){bg(e,0)}function Bs(e){var t=sl(e);if(yh(t))return e}function Uh(e,t){if(e==="change")return t}var Bh=!1;if(bn){var ou;if(bn){var ru="oninput"in document;if(!ru){var Hh=document.createElement("div");Hh.setAttribute("oninput","return;"),ru=typeof Hh.oninput=="function"}ou=ru}else ou=!1;Bh=ou&&(!document.documentMode||9<document.documentMode)}function $h(){dl&&(dl.detachEvent("onpropertychange",Gh),hl=dl=null)}function Gh(e){if(e.propertyName==="value"&&Bs(hl)){var t=[];_h(t,hl,e,Wr(e)),Ah(D1,t)}}function z1(e,t,i){e==="focusin"?($h(),dl=t,hl=i,dl.attachEvent("onpropertychange",Gh)):e==="focusout"&&$h()}function O1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bs(hl)}function R1(e,t){if(e==="click")return Bs(t)}function L1(e,t){if(e==="input"||e==="change")return Bs(t)}function V1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:V1;function ml(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var r=i[s];if(!Br.call(t,r)||!Mt(e[r],t[r]))return!1}return!0}function Yh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qh(e,t){var i=Yh(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=t&&s>=t)return{node:i,offset:t-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Yh(i)}}function Xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Os(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Os(e.document)}return t}function uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var k1=bn&&"documentMode"in document&&11>=document.documentMode,di=null,cu=null,pl=null,fu=!1;function Fh(e,t,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;fu||di==null||di!==Os(s)||(s=di,"selectionStart"in s&&uu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),pl&&ml(pl,s)||(pl=s,s=Co(cu,"onSelect"),0<s.length&&(t=new _s("onSelect","select",null,t,i),e.push({event:t,listeners:s}),t.target=di)))}function ja(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var hi={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},du={},Zh={};bn&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete hi.animationend.animation,delete hi.animationiteration.animation,delete hi.animationstart.animation),"TransitionEvent"in window||delete hi.transitionend.transition);function Na(e){if(du[e])return du[e];if(!hi[e])return e;var t=hi[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Zh)return du[e]=t[i];return e}var Qh=Na("animationend"),Ph=Na("animationiteration"),Jh=Na("animationstart"),_1=Na("transitionrun"),U1=Na("transitionstart"),B1=Na("transitioncancel"),Wh=Na("transitionend"),Ih=new Map,hu="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(" ");hu.push("scrollEnd");function Wt(e,t){Ih.set(e,t),Ea(t,[e])}var Hs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},$t=[],mi=0,mu=0;function $s(){for(var e=mi,t=mu=mi=0;t<e;){var i=$t[t];$t[t++]=null;var s=$t[t];$t[t++]=null;var r=$t[t];$t[t++]=null;var c=$t[t];if($t[t++]=null,s!==null&&r!==null){var v=s.pending;v===null?r.next=r:(r.next=v.next,v.next=r),s.pending=r}c!==0&&em(i,r,c)}}function Gs(e,t,i,s){$t[mi++]=e,$t[mi++]=t,$t[mi++]=i,$t[mi++]=s,mu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function pu(e,t,i,s){return Gs(e,t,i,s),Ys(e)}function Ca(e,t){return Gs(e,null,null,t),Ys(e)}function em(e,t,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var r=!1,c=e.return;c!==null;)c.childLanes|=i,s=c.alternate,s!==null&&(s.childLanes|=i),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(r=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,r&&t!==null&&(r=31-Ct(i),e=c.hiddenUpdates,s=e[r],s===null?e[r]=[t]:s.push(t),t.lane=i|536870912),c):null}function Ys(e){if(50<_l)throw _l=0,Ec=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pi={};function H1(e,t,i,s){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,i,s){return new H1(e,t,i,s)}function gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var i=e.alternate;return i===null?(i=Dt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function tm(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qs(e,t,i,s,r,c){var v=0;if(s=e,typeof e=="function")gu(e)&&(v=1);else if(typeof e=="string")v=XS(e,i,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Dt(31,i,t,r),e.elementType=he,e.lanes=c,e;case j:return Ma(i.children,r,c,t);case C:v=8,r|=24;break;case D:return e=Dt(12,i,t,r|2),e.elementType=D,e.lanes=c,e;case q:return e=Dt(13,i,t,r),e.elementType=q,e.lanes=c,e;case Z:return e=Dt(19,i,t,r),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:v=10;break e;case O:v=9;break e;case B:v=11;break e;case F:v=14;break e;case te:v=16,s=null;break e}v=29,i=Error(o(130,e===null?"null":typeof e,"")),s=null}return t=Dt(v,i,t,r),t.elementType=e,t.type=s,t.lanes=c,t}function Ma(e,t,i,s){return e=Dt(7,e,s,t),e.lanes=i,e}function vu(e,t,i){return e=Dt(6,e,null,t),e.lanes=i,e}function nm(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function yu(e,t,i){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var am=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var i=am.get(e);return i!==void 0?i:(t={value:e,source:t,stack:nh(t)},am.set(e,t),t)}return{value:e,source:t,stack:nh(t)}}var gi=[],vi=0,Xs=null,gl=0,Yt=[],qt=0,Gn=null,sn=1,on="";function Sn(e,t){gi[vi++]=gl,gi[vi++]=Xs,Xs=e,gl=t}function im(e,t,i){Yt[qt++]=sn,Yt[qt++]=on,Yt[qt++]=Gn,Gn=e;var s=sn;e=on;var r=32-Ct(s)-1;s&=~(1<<r),i+=1;var c=32-Ct(t)+r;if(30<c){var v=r-r%5;c=(s&(1<<v)-1).toString(32),s>>=v,r-=v,sn=1<<32-Ct(t)+r|i<<r|s,on=c+e}else sn=1<<c|i<<r|s,on=e}function bu(e){e.return!==null&&(Sn(e,1),im(e,1,0))}function xu(e){for(;e===Xs;)Xs=gi[--vi],gi[vi]=null,gl=gi[--vi],gi[vi]=null;for(;e===Gn;)Gn=Yt[--qt],Yt[qt]=null,on=Yt[--qt],Yt[qt]=null,sn=Yt[--qt],Yt[qt]=null}function lm(e,t){Yt[qt++]=sn,Yt[qt++]=on,Yt[qt++]=Gn,sn=t.id,on=t.overflow,Gn=e}var lt=null,ke=null,be=!1,Yn=null,Xt=!1,Su=Error(o(519));function qn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vl(Gt(t,e)),Su}function sm(e){var t=e.stateNode,i=e.type,s=e.memoizedProps;switch(t[it]=e,t[vt]=s,i){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(i=0;i<Bl.length;i++)ge(Bl[i],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),bh(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),Sh(t,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||s.suppressHydrationWarning===!0||wg(t.textContent,i)?(s.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),s.onScroll!=null&&ge("scroll",t),s.onScrollEnd!=null&&ge("scrollend",t),s.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||qn(e,!0)}function om(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:lt=lt.return}}function yi(e){if(e!==lt)return!1;if(!be)return om(e),be=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Bc(e.type,e.memoizedProps)),i=!i),i&&ke&&qn(e),om(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=Og(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ke=Og(e)}else t===27?(t=ke,ia(e.type)?(e=qc,qc=null,ke=e):ke=t):ke=lt?Ft(e.stateNode.nextSibling):null;return!0}function Da(){ke=lt=null,be=!1}function Tu(){var e=Yn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Yn=null),e}function vl(e){Yn===null?Yn=[e]:Yn.push(e)}var wu=N(null),za=null,Tn=null;function Xn(e,t,i){X(wu,t._currentValue),t._currentValue=i}function wn(e){e._currentValue=wu.current,G(wu)}function Eu(e,t,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===i)break;e=e.return}}function Au(e,t,i,s){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var c=r.dependencies;if(c!==null){var v=r.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=r;for(var A=0;A<t.length;A++)if(x.context===t[A]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),Eu(c.return,i,e),s||(v=null);break e}c=x.next}}else if(r.tag===18){if(v=r.return,v===null)throw Error(o(341));v.lanes|=i,c=v.alternate,c!==null&&(c.lanes|=i),Eu(v,i,e),v=null}else v=r.child;if(v!==null)v.return=r;else for(v=r;v!==null;){if(v===e){v=null;break}if(r=v.sibling,r!==null){r.return=v.return,v=r;break}v=v.return}r=v}}function bi(e,t,i,s){e=null;for(var r=t,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var v=r.alternate;if(v===null)throw Error(o(387));if(v=v.memoizedProps,v!==null){var x=r.type;Mt(r.pendingProps.value,v.value)||(e!==null?e.push(x):e=[x])}}else if(r===xe.current){if(v=r.alternate,v===null)throw Error(o(387));v.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ql):e=[ql])}r=r.return}e!==null&&Au(t,e,i,s),t.flags|=262144}function Ks(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){za=e,Tn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return rm(za,e)}function Fs(e,t){return za===null&&Oa(e),rm(e,t)}function rm(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Tn===null){if(e===null)throw Error(o(308));Tn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tn=Tn.next=t;return i}var $1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},G1=n.unstable_scheduleCallback,Y1=n.unstable_NormalPriority,Ze={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ju(){return{controller:new $1,data:new Map,refCount:0}}function yl(e){e.refCount--,e.refCount===0&&G1(Y1,function(){e.controller.abort()})}var bl=null,Nu=0,xi=0,Si=null;function q1(e,t){if(bl===null){var i=bl=[];Nu=0,xi=Dc(),Si={status:"pending",value:void 0,then:function(s){i.push(s)}}}return Nu++,t.then(um,um),t}function um(){if(--Nu===0&&bl!==null){Si!==null&&(Si.status="fulfilled");var e=bl;bl=null,xi=0,Si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function X1(e,t){var i=[],s={status:"pending",value:null,reason:null,then:function(r){i.push(r)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var r=0;r<i.length;r++)(0,i[r])(t)},function(r){for(s.status="rejected",s.reason=r,r=0;r<i.length;r++)(0,i[r])(void 0)}),s}var cm=U.S;U.S=function(e,t){Fp=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&q1(e,t),cm!==null&&cm(e,t)};var Ra=N(null);function Cu(){var e=Ra.current;return e!==null?e:Ve.pooledCache}function Zs(e,t){t===null?X(Ra,Ra.current):X(Ra,t.pool)}function fm(){var e=Cu();return e===null?null:{parent:Ze._currentValue,pool:e}}var Ti=Error(o(460)),Mu=Error(o(474)),Qs=Error(o(542)),Ps={then:function(){}};function dm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function hm(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(yn,yn),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pm(e),e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=s}},function(s){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pm(e),e}throw Va=t,Ti}}function La(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Va=i,Ti):i}}var Va=null;function mm(){if(Va===null)throw Error(o(459));var e=Va;return Va=null,e}function pm(e){if(e===Ti||e===Qs)throw Error(o(483))}var wi=null,xl=0;function Js(e){var t=xl;return xl+=1,wi===null&&(wi=[]),hm(wi,e,t)}function Sl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ws(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function gm(e){function t(z,M){if(e){var L=z.deletions;L===null?(z.deletions=[M],z.flags|=16):L.push(M)}}function i(z,M){if(!e)return null;for(;M!==null;)t(z,M),M=M.sibling;return null}function s(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function r(z,M){return z=xn(z,M),z.index=0,z.sibling=null,z}function c(z,M,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<M?(z.flags|=67108866,M):L):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function v(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function x(z,M,L,$){return M===null||M.tag!==6?(M=vu(L,z.mode,$),M.return=z,M):(M=r(M,L),M.return=z,M)}function A(z,M,L,$){var ne=L.type;return ne===j?H(z,M,L.props.children,$,L.key):M!==null&&(M.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===te&&La(ne)===M.type)?(M=r(M,L.props),Sl(M,L),M.return=z,M):(M=qs(L.type,L.key,L.props,null,z.mode,$),Sl(M,L),M.return=z,M)}function V(z,M,L,$){return M===null||M.tag!==4||M.stateNode.containerInfo!==L.containerInfo||M.stateNode.implementation!==L.implementation?(M=yu(L,z.mode,$),M.return=z,M):(M=r(M,L.children||[]),M.return=z,M)}function H(z,M,L,$,ne){return M===null||M.tag!==7?(M=Ma(L,z.mode,$,ne),M.return=z,M):(M=r(M,L),M.return=z,M)}function Y(z,M,L){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=vu(""+M,z.mode,L),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return L=qs(M.type,M.key,M.props,null,z.mode,L),Sl(L,M),L.return=z,L;case E:return M=yu(M,z.mode,L),M.return=z,M;case te:return M=La(M),Y(z,M,L)}if(Re(M)||me(M))return M=Ma(M,z.mode,L,null),M.return=z,M;if(typeof M.then=="function")return Y(z,Js(M),L);if(M.$$typeof===R)return Y(z,Fs(z,M),L);Ws(z,M)}return null}function k(z,M,L,$){var ne=M!==null?M.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ne!==null?null:x(z,M,""+L,$);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return L.key===ne?A(z,M,L,$):null;case E:return L.key===ne?V(z,M,L,$):null;case te:return L=La(L),k(z,M,L,$)}if(Re(L)||me(L))return ne!==null?null:H(z,M,L,$,null);if(typeof L.then=="function")return k(z,M,Js(L),$);if(L.$$typeof===R)return k(z,M,Fs(z,L),$);Ws(z,L)}return null}function _(z,M,L,$,ne){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return z=z.get(L)||null,x(M,z,""+$,ne);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return z=z.get($.key===null?L:$.key)||null,A(M,z,$,ne);case E:return z=z.get($.key===null?L:$.key)||null,V(M,z,$,ne);case te:return $=La($),_(z,M,L,$,ne)}if(Re($)||me($))return z=z.get(L)||null,H(M,z,$,ne,null);if(typeof $.then=="function")return _(z,M,L,Js($),ne);if($.$$typeof===R)return _(z,M,L,Fs(M,$),ne);Ws(M,$)}return null}function W(z,M,L,$){for(var ne=null,Se=null,ee=M,ce=M=0,ye=null;ee!==null&&ce<L.length;ce++){ee.index>ce?(ye=ee,ee=null):ye=ee.sibling;var Te=k(z,ee,L[ce],$);if(Te===null){ee===null&&(ee=ye);break}e&&ee&&Te.alternate===null&&t(z,ee),M=c(Te,M,ce),Se===null?ne=Te:Se.sibling=Te,Se=Te,ee=ye}if(ce===L.length)return i(z,ee),be&&Sn(z,ce),ne;if(ee===null){for(;ce<L.length;ce++)ee=Y(z,L[ce],$),ee!==null&&(M=c(ee,M,ce),Se===null?ne=ee:Se.sibling=ee,Se=ee);return be&&Sn(z,ce),ne}for(ee=s(ee);ce<L.length;ce++)ye=_(ee,z,ce,L[ce],$),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?ce:ye.key),M=c(ye,M,ce),Se===null?ne=ye:Se.sibling=ye,Se=ye);return e&&ee.forEach(function(ua){return t(z,ua)}),be&&Sn(z,ce),ne}function ae(z,M,L,$){if(L==null)throw Error(o(151));for(var ne=null,Se=null,ee=M,ce=M=0,ye=null,Te=L.next();ee!==null&&!Te.done;ce++,Te=L.next()){ee.index>ce?(ye=ee,ee=null):ye=ee.sibling;var ua=k(z,ee,Te.value,$);if(ua===null){ee===null&&(ee=ye);break}e&&ee&&ua.alternate===null&&t(z,ee),M=c(ua,M,ce),Se===null?ne=ua:Se.sibling=ua,Se=ua,ee=ye}if(Te.done)return i(z,ee),be&&Sn(z,ce),ne;if(ee===null){for(;!Te.done;ce++,Te=L.next())Te=Y(z,Te.value,$),Te!==null&&(M=c(Te,M,ce),Se===null?ne=Te:Se.sibling=Te,Se=Te);return be&&Sn(z,ce),ne}for(ee=s(ee);!Te.done;ce++,Te=L.next())Te=_(ee,z,ce,Te.value,$),Te!==null&&(e&&Te.alternate!==null&&ee.delete(Te.key===null?ce:Te.key),M=c(Te,M,ce),Se===null?ne=Te:Se.sibling=Te,Se=Te);return e&&ee.forEach(function(nT){return t(z,nT)}),be&&Sn(z,ce),ne}function De(z,M,L,$){if(typeof L=="object"&&L!==null&&L.type===j&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case T:e:{for(var ne=L.key;M!==null;){if(M.key===ne){if(ne=L.type,ne===j){if(M.tag===7){i(z,M.sibling),$=r(M,L.props.children),$.return=z,z=$;break e}}else if(M.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===te&&La(ne)===M.type){i(z,M.sibling),$=r(M,L.props),Sl($,L),$.return=z,z=$;break e}i(z,M);break}else t(z,M);M=M.sibling}L.type===j?($=Ma(L.props.children,z.mode,$,L.key),$.return=z,z=$):($=qs(L.type,L.key,L.props,null,z.mode,$),Sl($,L),$.return=z,z=$)}return v(z);case E:e:{for(ne=L.key;M!==null;){if(M.key===ne)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){i(z,M.sibling),$=r(M,L.children||[]),$.return=z,z=$;break e}else{i(z,M);break}else t(z,M);M=M.sibling}$=yu(L,z.mode,$),$.return=z,z=$}return v(z);case te:return L=La(L),De(z,M,L,$)}if(Re(L))return W(z,M,L,$);if(me(L)){if(ne=me(L),typeof ne!="function")throw Error(o(150));return L=ne.call(L),ae(z,M,L,$)}if(typeof L.then=="function")return De(z,M,Js(L),$);if(L.$$typeof===R)return De(z,M,Fs(z,L),$);Ws(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(i(z,M.sibling),$=r(M,L),$.return=z,z=$):(i(z,M),$=vu(L,z.mode,$),$.return=z,z=$),v(z)):i(z,M)}return function(z,M,L,$){try{xl=0;var ne=De(z,M,L,$);return wi=null,ne}catch(ee){if(ee===Ti||ee===Qs)throw ee;var Se=Dt(29,ee,null,z.mode);return Se.lanes=$,Se.return=z,Se}finally{}}}var ka=gm(!0),vm=gm(!1),Kn=!1;function Du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(we&2)!==0){var r=s.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,t=Ys(e),em(e,null,i),t}return Gs(e,s,t,i),Ys(e)}function Tl(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,rh(e,i)}}function Ou(e,t){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var r=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?r=c=v:c=c.next=v,i=i.next}while(i!==null);c===null?r=c=t:c=c.next=t}else r=c=t;i={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Ru=!1;function wl(){if(Ru){var e=Si;if(e!==null)throw e}}function El(e,t,i,s){Ru=!1;var r=e.updateQueue;Kn=!1;var c=r.firstBaseUpdate,v=r.lastBaseUpdate,x=r.shared.pending;if(x!==null){r.shared.pending=null;var A=x,V=A.next;A.next=null,v===null?c=V:v.next=V,v=A;var H=e.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==v&&(x===null?H.firstBaseUpdate=V:x.next=V,H.lastBaseUpdate=A))}if(c!==null){var Y=r.baseState;v=0,H=V=A=null,x=c;do{var k=x.lane&-536870913,_=k!==x.lane;if(_?(ve&k)===k:(s&k)===k){k!==0&&k===xi&&(Ru=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var W=e,ae=x;k=t;var De=i;switch(ae.tag){case 1:if(W=ae.payload,typeof W=="function"){Y=W.call(De,Y,k);break e}Y=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ae.payload,k=typeof W=="function"?W.call(De,Y,k):W,k==null)break e;Y=b({},Y,k);break e;case 2:Kn=!0}}k=x.callback,k!==null&&(e.flags|=64,_&&(e.flags|=8192),_=r.callbacks,_===null?r.callbacks=[k]:_.push(k))}else _={lane:k,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(V=H=_,A=Y):H=H.next=_,v|=k;if(x=x.next,x===null){if(x=r.shared.pending,x===null)break;_=x,x=_.next,_.next=null,r.lastBaseUpdate=_,r.shared.pending=null}}while(!0);H===null&&(A=Y),r.baseState=A,r.firstBaseUpdate=V,r.lastBaseUpdate=H,c===null&&(r.shared.lanes=0),In|=v,e.lanes=v,e.memoizedState=Y}}function ym(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function bm(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)ym(i[e],t)}var Ei=N(null),Is=N(0);function xm(e,t){e=On,X(Is,e),X(Ei,t),On=e|t.baseLanes}function Lu(){X(Is,On),X(Ei,Ei.current)}function Vu(){On=Is.current,G(Ei),G(Is)}var zt=N(null),Kt=null;function Qn(e){var t=e.alternate;X(qe,qe.current&1),X(zt,e),Kt===null&&(t===null||Ei.current!==null||t.memoizedState!==null)&&(Kt=e)}function ku(e){X(qe,qe.current),X(zt,e),Kt===null&&(Kt=e)}function Sm(e){e.tag===22?(X(qe,qe.current),X(zt,e),Kt===null&&(Kt=e)):Pn()}function Pn(){X(qe,qe.current),X(zt,zt.current)}function Ot(e){G(zt),Kt===e&&(Kt=null),G(qe)}var qe=N(0);function eo(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Gc(i)||Yc(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var En=0,ue=null,Ce=null,Qe=null,to=!1,Ai=!1,_a=!1,no=0,Al=0,ji=null,K1=0;function $e(){throw Error(o(321))}function _u(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Mt(e[i],t[i]))return!1;return!0}function Uu(e,t,i,s,r,c){return En=c,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?ip:Iu,_a=!1,c=i(s,r),_a=!1,Ai&&(c=wm(t,i,s,r)),Tm(e),c}function Tm(e){U.H=Cl;var t=Ce!==null&&Ce.next!==null;if(En=0,Qe=Ce=ue=null,to=!1,Al=0,ji=null,t)throw Error(o(300));e===null||Pe||(e=e.dependencies,e!==null&&Ks(e)&&(Pe=!0))}function wm(e,t,i,s){ue=e;var r=0;do{if(Ai&&(ji=null),Al=0,Ai=!1,25<=r)throw Error(o(301));if(r+=1,Qe=Ce=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=lp,c=t(i,s)}while(Ai);return c}function F1(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?jl(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ue.flags|=1024),t}function Bu(){var e=no!==0;return no=0,e}function Hu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function $u(e){if(to){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}to=!1}En=0,Qe=Ce=ue=null,Ai=!1,Al=no=0,ji=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Xe(){if(Ce===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Qe===null?ue.memoizedState:Qe.next;if(t!==null)Qe=t,Ce=e;else{if(e===null)throw ue.alternate===null?Error(o(467)):Error(o(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jl(e){var t=Al;return Al+=1,ji===null&&(ji=[]),e=hm(ji,e,t),t=ue,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?ip:Iu),e}function io(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return jl(e);if(e.$$typeof===R)return st(e)}throw Error(o(438,String(e)))}function Gu(e){var t=null,i=ue.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var s=ue.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=ao(),ue.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),s=0;s<e;s++)i[s]=J;return t.index++,i}function An(e,t){return typeof t=="function"?t(e):t}function lo(e){var t=Xe();return Yu(t,Ce,e)}function Yu(e,t,i){var s=e.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=i;var r=e.baseQueue,c=s.pending;if(c!==null){if(r!==null){var v=r.next;r.next=c.next,c.next=v}t.baseQueue=r=c,s.pending=null}if(c=e.baseState,r===null)e.memoizedState=c;else{t=r.next;var x=v=null,A=null,V=t,H=!1;do{var Y=V.lane&-536870913;if(Y!==V.lane?(ve&Y)===Y:(En&Y)===Y){var k=V.revertLane;if(k===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),Y===xi&&(H=!0);else if((En&k)===k){V=V.next,k===xi&&(H=!0);continue}else Y={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(x=A=Y,v=c):A=A.next=Y,ue.lanes|=k,In|=k;Y=V.action,_a&&i(c,Y),c=V.hasEagerState?V.eagerState:i(c,Y)}else k={lane:Y,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(x=A=k,v=c):A=A.next=k,ue.lanes|=Y,In|=Y;V=V.next}while(V!==null&&V!==t);if(A===null?v=c:A.next=x,!Mt(c,e.memoizedState)&&(Pe=!0,H&&(i=Si,i!==null)))throw i;e.memoizedState=c,e.baseState=v,e.baseQueue=A,s.lastRenderedState=c}return r===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function qu(e){var t=Xe(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var s=i.dispatch,r=i.pending,c=t.memoizedState;if(r!==null){i.pending=null;var v=r=r.next;do c=e(c,v.action),v=v.next;while(v!==r);Mt(c,t.memoizedState)||(Pe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,s]}function Em(e,t,i){var s=ue,r=Xe(),c=be;if(c){if(i===void 0)throw Error(o(407));i=i()}else i=t();var v=!Mt((Ce||r).memoizedState,i);if(v&&(r.memoizedState=i,Pe=!0),r=r.queue,Fu(Nm.bind(null,s,r,e),[e]),r.getSnapshot!==t||v||Qe!==null&&Qe.memoizedState.tag&1){if(s.flags|=2048,Ni(9,{destroy:void 0},jm.bind(null,s,r,i,t),null),Ve===null)throw Error(o(349));c||(En&127)!==0||Am(s,t,i)}return i}function Am(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=ue.updateQueue,t===null?(t=ao(),ue.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function jm(e,t,i,s){t.value=i,t.getSnapshot=s,Cm(t)&&Mm(e)}function Nm(e,t,i){return i(function(){Cm(t)&&Mm(e)})}function Cm(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Mt(e,i)}catch{return!0}}function Mm(e){var t=Ca(e,2);t!==null&&wt(t,e,2)}function Xu(e){var t=ht();if(typeof e=="function"){var i=e;if(e=i(),_a){Bn(!0);try{i()}finally{Bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},t}function Dm(e,t,i,s){return e.baseState=i,Yu(e,Ce,typeof s=="function"?s:An)}function Z1(e,t,i,s,r){if(ro(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){c.listeners.push(v)}};U.T!==null?i(!0):c.isTransition=!1,s(c),i=t.pending,i===null?(c.next=t.pending=c,zm(t,c)):(c.next=i.next,t.pending=i.next=c)}}function zm(e,t){var i=t.action,s=t.payload,r=e.state;if(t.isTransition){var c=U.T,v={};U.T=v;try{var x=i(r,s),A=U.S;A!==null&&A(v,x),Om(e,t,x)}catch(V){Ku(e,t,V)}finally{c!==null&&v.types!==null&&(c.types=v.types),U.T=c}}else try{c=i(r,s),Om(e,t,c)}catch(V){Ku(e,t,V)}}function Om(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){Rm(e,t,s)},function(s){return Ku(e,t,s)}):Rm(e,t,i)}function Rm(e,t,i){t.status="fulfilled",t.value=i,Lm(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,zm(e,i)))}function Ku(e,t,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=i,Lm(t),t=t.next;while(t!==s)}e.action=null}function Lm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vm(e,t){return t}function km(e,t){if(be){var i=Ve.formState;if(i!==null){e:{var s=ue;if(be){if(ke){t:{for(var r=ke,c=Xt;r.nodeType!==8;){if(!c){r=null;break t}if(r=Ft(r.nextSibling),r===null){r=null;break t}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){ke=Ft(r.nextSibling),s=r.data==="F!";break e}}qn(s)}s=!1}s&&(t=i[0])}}return i=ht(),i.memoizedState=i.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:t},i.queue=s,i=tp.bind(null,ue,s),s.dispatch=i,s=Xu(!1),c=Wu.bind(null,ue,!1,s.queue),s=ht(),r={state:t,dispatch:null,action:e,pending:null},s.queue=r,i=Z1.bind(null,ue,r,c,i),r.dispatch=i,s.memoizedState=e,[t,i,!1]}function _m(e){var t=Xe();return Um(t,Ce,e)}function Um(e,t,i){if(t=Yu(e,t,Vm)[0],e=lo(An)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=jl(t)}catch(v){throw v===Ti?Qs:v}else s=t;t=Xe();var r=t.queue,c=r.dispatch;return i!==t.memoizedState&&(ue.flags|=2048,Ni(9,{destroy:void 0},Q1.bind(null,r,i),null)),[s,c,e]}function Q1(e,t){e.action=t}function Bm(e){var t=Xe(),i=Ce;if(i!==null)return Um(t,i,e);Xe(),t=t.memoizedState,i=Xe();var s=i.queue.dispatch;return i.memoizedState=e,[t,s,!1]}function Ni(e,t,i,s){return e={tag:e,create:i,deps:s,inst:t,next:null},t=ue.updateQueue,t===null&&(t=ao(),ue.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,t.lastEffect=e),e}function Hm(){return Xe().memoizedState}function so(e,t,i,s){var r=ht();ue.flags|=e,r.memoizedState=Ni(1|t,{destroy:void 0},i,s===void 0?null:s)}function oo(e,t,i,s){var r=Xe();s=s===void 0?null:s;var c=r.memoizedState.inst;Ce!==null&&s!==null&&_u(s,Ce.memoizedState.deps)?r.memoizedState=Ni(t,c,i,s):(ue.flags|=e,r.memoizedState=Ni(1|t,c,i,s))}function $m(e,t){so(8390656,8,e,t)}function Fu(e,t){oo(2048,8,e,t)}function P1(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=ao(),ue.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Gm(e){var t=Xe().memoizedState;return P1({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Ym(e,t){return oo(4,2,e,t)}function qm(e,t){return oo(4,4,e,t)}function Xm(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Km(e,t,i){i=i!=null?i.concat([e]):null,oo(4,4,Xm.bind(null,t,e),i)}function Zu(){}function Fm(e,t){var i=Xe();t=t===void 0?null:t;var s=i.memoizedState;return t!==null&&_u(t,s[1])?s[0]:(i.memoizedState=[e,t],e)}function Zm(e,t){var i=Xe();t=t===void 0?null:t;var s=i.memoizedState;if(t!==null&&_u(t,s[1]))return s[0];if(s=e(),_a){Bn(!0);try{e()}finally{Bn(!1)}}return i.memoizedState=[s,t],s}function Qu(e,t,i){return i===void 0||(En&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Qp(),ue.lanes|=e,In|=e,i)}function Qm(e,t,i,s){return Mt(i,t)?i:Ei.current!==null?(e=Qu(e,i,s),Mt(e,t)||(Pe=!0),e):(En&42)===0||(En&1073741824)!==0&&(ve&261930)===0?(Pe=!0,e.memoizedState=i):(e=Qp(),ue.lanes|=e,In|=e,t)}function Pm(e,t,i,s,r){var c=K.p;K.p=c!==0&&8>c?c:8;var v=U.T,x={};U.T=x,Wu(e,!1,t,i);try{var A=r(),V=U.S;if(V!==null&&V(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var H=X1(A,s);Nl(e,t,H,Vt(e))}else Nl(e,t,s,Vt(e))}catch(Y){Nl(e,t,{then:function(){},status:"rejected",reason:Y},Vt())}finally{K.p=c,v!==null&&x.types!==null&&(v.types=x.types),U.T=v}}function J1(){}function Pu(e,t,i,s){if(e.tag!==5)throw Error(o(476));var r=Jm(e).queue;Pm(e,r,t,Q,i===null?J1:function(){return Wm(e),i(s)})}function Jm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:Q},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wm(e){var t=Jm(e);t.next===null&&(t=e.alternate.memoizedState),Nl(e,t.next.queue,{},Vt())}function Ju(){return st(ql)}function Im(){return Xe().memoizedState}function ep(){return Xe().memoizedState}function W1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Vt();e=Fn(i);var s=Zn(t,e,i);s!==null&&(wt(s,t,i),Tl(s,t,i)),t={cache:ju()},e.payload=t;return}t=t.return}}function I1(e,t,i){var s=Vt();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ro(e)?np(t,i):(i=pu(e,t,i,s),i!==null&&(wt(i,e,s),ap(i,t,s)))}function tp(e,t,i){var s=Vt();Nl(e,t,i,s)}function Nl(e,t,i,s){var r={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ro(e))np(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var v=t.lastRenderedState,x=c(v,i);if(r.hasEagerState=!0,r.eagerState=x,Mt(x,v))return Gs(e,t,r,0),Ve===null&&$s(),!1}catch{}finally{}if(i=pu(e,t,r,s),i!==null)return wt(i,e,s),ap(i,t,s),!0}return!1}function Wu(e,t,i,s){if(s={lane:2,revertLane:Dc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ro(e)){if(t)throw Error(o(479))}else t=pu(e,i,s,2),t!==null&&wt(t,e,2)}function ro(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function np(e,t){Ai=to=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function ap(e,t,i){if((i&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,rh(e,i)}}var Cl={readContext:st,use:io,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};Cl.useEffectEvent=$e;var ip={readContext:st,use:io,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:$m,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,so(4194308,4,Xm.bind(null,t,e),i)},useLayoutEffect:function(e,t){return so(4194308,4,e,t)},useInsertionEffect:function(e,t){so(4,2,e,t)},useMemo:function(e,t){var i=ht();t=t===void 0?null:t;var s=e();if(_a){Bn(!0);try{e()}finally{Bn(!1)}}return i.memoizedState=[s,t],s},useReducer:function(e,t,i){var s=ht();if(i!==void 0){var r=i(t);if(_a){Bn(!0);try{i(t)}finally{Bn(!1)}}}else r=t;return s.memoizedState=s.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},s.queue=e,e=e.dispatch=I1.bind(null,ue,e),[s.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Xu(e);var t=e.queue,i=tp.bind(null,ue,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Zu,useDeferredValue:function(e,t){var i=ht();return Qu(i,e,t)},useTransition:function(){var e=Xu(!1);return e=Pm.bind(null,ue,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var s=ue,r=ht();if(be){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),Ve===null)throw Error(o(349));(ve&127)!==0||Am(s,t,i)}r.memoizedState=i;var c={value:i,getSnapshot:t};return r.queue=c,$m(Nm.bind(null,s,c,e),[e]),s.flags|=2048,Ni(9,{destroy:void 0},jm.bind(null,s,c,i,t),null),i},useId:function(){var e=ht(),t=Ve.identifierPrefix;if(be){var i=on,s=sn;i=(s&~(1<<32-Ct(s)-1)).toString(32)+i,t="_"+t+"R_"+i,i=no++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=K1++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ju,useFormState:km,useActionState:km,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Wu.bind(null,ue,!0,i),i.dispatch=t,[e,t]},useMemoCache:Gu,useCacheRefresh:function(){return ht().memoizedState=W1.bind(null,ue)},useEffectEvent:function(e){var t=ht(),i={impl:e};return t.memoizedState=i,function(){if((we&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Iu={readContext:st,use:io,useCallback:Fm,useContext:st,useEffect:Fu,useImperativeHandle:Km,useInsertionEffect:Ym,useLayoutEffect:qm,useMemo:Zm,useReducer:lo,useRef:Hm,useState:function(){return lo(An)},useDebugValue:Zu,useDeferredValue:function(e,t){var i=Xe();return Qm(i,Ce.memoizedState,e,t)},useTransition:function(){var e=lo(An)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:jl(e),t]},useSyncExternalStore:Em,useId:Im,useHostTransitionStatus:Ju,useFormState:_m,useActionState:_m,useOptimistic:function(e,t){var i=Xe();return Dm(i,Ce,e,t)},useMemoCache:Gu,useCacheRefresh:ep};Iu.useEffectEvent=Gm;var lp={readContext:st,use:io,useCallback:Fm,useContext:st,useEffect:Fu,useImperativeHandle:Km,useInsertionEffect:Ym,useLayoutEffect:qm,useMemo:Zm,useReducer:qu,useRef:Hm,useState:function(){return qu(An)},useDebugValue:Zu,useDeferredValue:function(e,t){var i=Xe();return Ce===null?Qu(i,e,t):Qm(i,Ce.memoizedState,e,t)},useTransition:function(){var e=qu(An)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:jl(e),t]},useSyncExternalStore:Em,useId:Im,useHostTransitionStatus:Ju,useFormState:Bm,useActionState:Bm,useOptimistic:function(e,t){var i=Xe();return Ce!==null?Dm(i,Ce,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Gu,useCacheRefresh:ep};lp.useEffectEvent=Gm;function ec(e,t,i,s){t=e.memoizedState,i=i(s,t),i=i==null?t:b({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var tc={enqueueSetState:function(e,t,i){e=e._reactInternals;var s=Vt(),r=Fn(s);r.payload=t,i!=null&&(r.callback=i),t=Zn(e,r,s),t!==null&&(wt(t,e,s),Tl(t,e,s))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var s=Vt(),r=Fn(s);r.tag=1,r.payload=t,i!=null&&(r.callback=i),t=Zn(e,r,s),t!==null&&(wt(t,e,s),Tl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Vt(),s=Fn(i);s.tag=2,t!=null&&(s.callback=t),t=Zn(e,s,i),t!==null&&(wt(t,e,i),Tl(t,e,i))}};function sp(e,t,i,s,r,c,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,v):t.prototype&&t.prototype.isPureReactComponent?!ml(i,s)||!ml(r,c):!0}function op(e,t,i,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,s),t.state!==e&&tc.enqueueReplaceState(t,t.state,null)}function Ua(e,t){var i=t;if("ref"in t){i={};for(var s in t)s!=="ref"&&(i[s]=t[s])}if(e=e.defaultProps){i===t&&(i=b({},i));for(var r in e)i[r]===void 0&&(i[r]=e[r])}return i}function rp(e){Hs(e)}function up(e){console.error(e)}function cp(e){Hs(e)}function uo(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function fp(e,t,i){try{var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function nc(e,t,i){return i=Fn(i),i.tag=3,i.payload={element:null},i.callback=function(){uo(e,t)},i}function dp(e){return e=Fn(e),e.tag=3,e}function hp(e,t,i,s){var r=i.type.getDerivedStateFromError;if(typeof r=="function"){var c=s.value;e.payload=function(){return r(c)},e.callback=function(){fp(t,i,s)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){fp(t,i,s),typeof r!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function eS(e,t,i,s,r){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=i.alternate,t!==null&&bi(t,i,r,!0),i=zt.current,i!==null){switch(i.tag){case 31:case 13:return Kt===null?To():i.alternate===null&&Ge===0&&(Ge=3),i.flags&=-257,i.flags|=65536,i.lanes=r,s===Ps?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([s]):t.add(s),Nc(e,s,r)),!1;case 22:return i.flags|=65536,s===Ps?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([s]):i.add(s)),Nc(e,s,r)),!1}throw Error(o(435,i.tag))}return Nc(e,s,r),To(),!1}if(be)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,s!==Su&&(e=Error(o(422),{cause:s}),vl(Gt(e,i)))):(s!==Su&&(t=Error(o(423),{cause:s}),vl(Gt(t,i))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,s=Gt(s,i),r=nc(e.stateNode,s,r),Ou(e,r),Ge!==4&&(Ge=2)),!1;var c=Error(o(520),{cause:s});if(c=Gt(c,i),kl===null?kl=[c]:kl.push(c),Ge!==4&&(Ge=2),t===null)return!0;s=Gt(s,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=r&-r,i.lanes|=e,e=nc(i.stateNode,s,e),Ou(i,e),!1;case 1:if(t=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ea===null||!ea.has(c))))return i.flags|=65536,r&=-r,i.lanes|=r,r=dp(r),hp(r,e,i,s),Ou(i,r),!1}i=i.return}while(i!==null);return!1}var ac=Error(o(461)),Pe=!1;function ot(e,t,i,s){t.child=e===null?vm(t,null,i,s):ka(t,e.child,i,s)}function mp(e,t,i,s,r){i=i.render;var c=t.ref;if("ref"in s){var v={};for(var x in s)x!=="ref"&&(v[x]=s[x])}else v=s;return Oa(t),s=Uu(e,t,i,v,c,r),x=Bu(),e!==null&&!Pe?(Hu(e,t,r),jn(e,t,r)):(be&&x&&bu(t),t.flags|=1,ot(e,t,s,r),t.child)}function pp(e,t,i,s,r){if(e===null){var c=i.type;return typeof c=="function"&&!gu(c)&&c.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=c,gp(e,t,c,s,r)):(e=qs(i.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!fc(e,r)){var v=c.memoizedProps;if(i=i.compare,i=i!==null?i:ml,i(v,s)&&e.ref===t.ref)return jn(e,t,r)}return t.flags|=1,e=xn(c,s),e.ref=t.ref,e.return=t,t.child=e}function gp(e,t,i,s,r){if(e!==null){var c=e.memoizedProps;if(ml(c,s)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=s=c,fc(e,r))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,jn(e,t,r)}return ic(e,t,i,s,r)}function vp(e,t,i,s){var r=s.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,e!==null){for(s=t.child=e.child,r=0;s!==null;)r=r|s.lanes|s.childLanes,s=s.sibling;s=r&~c}else s=0,t.child=null;return yp(e,t,c,i,s)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zs(t,c!==null?c.cachePool:null),c!==null?xm(t,c):Lu(),Sm(t);else return s=t.lanes=536870912,yp(e,t,c!==null?c.baseLanes|i:i,i,s)}else c!==null?(Zs(t,c.cachePool),xm(t,c),Pn(),t.memoizedState=null):(e!==null&&Zs(t,null),Lu(),Pn());return ot(e,t,r,i),t.child}function Ml(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function yp(e,t,i,s,r){var c=Cu();return c=c===null?null:{parent:Ze._currentValue,pool:c},t.memoizedState={baseLanes:i,cachePool:c},e!==null&&Zs(t,null),Lu(),Sm(t),e!==null&&bi(e,t,s,!0),t.childLanes=r,null}function co(e,t){return t=ho({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function bp(e,t,i){return ka(t,e.child,null,i),e=co(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function tS(e,t,i){var s=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(s.mode==="hidden")return e=co(t,s),t.lanes=536870912,Ml(null,e);if(ku(t),(e=ke)?(e=zg(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=nm(e),i.return=t,t.child=i,lt=t,ke=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return co(t,s)}var c=e.memoizedState;if(c!==null){var v=c.dehydrated;if(ku(t),r)if(t.flags&256)t.flags&=-257,t=bp(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Pe||bi(e,t,i,!1),r=(i&e.childLanes)!==0,Pe||r){if(s=Ve,s!==null&&(v=uh(s,i),v!==0&&v!==c.retryLane))throw c.retryLane=v,Ca(e,v),wt(s,e,v),ac;To(),t=bp(e,t,i)}else e=c.treeContext,ke=Ft(v.nextSibling),lt=t,be=!0,Yn=null,Xt=!1,e!==null&&lm(t,e),t=co(t,s),t.flags|=4096;return t}return e=xn(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fo(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function ic(e,t,i,s,r){return Oa(t),i=Uu(e,t,i,s,void 0,r),s=Bu(),e!==null&&!Pe?(Hu(e,t,r),jn(e,t,r)):(be&&s&&bu(t),t.flags|=1,ot(e,t,i,r),t.child)}function xp(e,t,i,s,r,c){return Oa(t),t.updateQueue=null,i=wm(t,s,i,r),Tm(e),s=Bu(),e!==null&&!Pe?(Hu(e,t,c),jn(e,t,c)):(be&&s&&bu(t),t.flags|=1,ot(e,t,i,c),t.child)}function Sp(e,t,i,s,r){if(Oa(t),t.stateNode===null){var c=pi,v=i.contextType;typeof v=="object"&&v!==null&&(c=st(v)),c=new i(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=tc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},Du(t),v=i.contextType,c.context=typeof v=="object"&&v!==null?st(v):pi,c.state=t.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(ec(t,i,v,s),c.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(v=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),v!==c.state&&tc.enqueueReplaceState(c,c.state,null),El(t,s,c,r),wl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,A=Ua(i,x);c.props=A;var V=c.context,H=i.contextType;v=pi,typeof H=="object"&&H!==null&&(v=st(H));var Y=i.getDerivedStateFromProps;H=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||V!==v)&&op(t,c,s,v),Kn=!1;var k=t.memoizedState;c.state=k,El(t,s,c,r),wl(),V=t.memoizedState,x||k!==V||Kn?(typeof Y=="function"&&(ec(t,i,Y,s),V=t.memoizedState),(A=Kn||sp(t,i,A,s,k,V,v))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=V),c.props=s,c.state=V,c.context=v,s=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{c=t.stateNode,zu(e,t),v=t.memoizedProps,H=Ua(i,v),c.props=H,Y=t.pendingProps,k=c.context,V=i.contextType,A=pi,typeof V=="object"&&V!==null&&(A=st(V)),x=i.getDerivedStateFromProps,(V=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v!==Y||k!==A)&&op(t,c,s,A),Kn=!1,k=t.memoizedState,c.state=k,El(t,s,c,r),wl();var _=t.memoizedState;v!==Y||k!==_||Kn||e!==null&&e.dependencies!==null&&Ks(e.dependencies)?(typeof x=="function"&&(ec(t,i,x,s),_=t.memoizedState),(H=Kn||sp(t,i,H,s,k,_,A)||e!==null&&e.dependencies!==null&&Ks(e.dependencies))?(V||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,_,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,_,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=_),c.props=s,c.state=_,c.context=A,s=H):(typeof c.componentDidUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,fo(e,t),s=(t.flags&128)!==0,c||s?(c=t.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&s?(t.child=ka(t,e.child,null,r),t.child=ka(t,null,i,r)):ot(e,t,i,r),t.memoizedState=c.state,e=t.child):e=jn(e,t,r),e}function Tp(e,t,i,s){return Da(),t.flags|=256,ot(e,t,i,s),t.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(e){return{baseLanes:e,cachePool:fm()}}function oc(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=Lt),e}function wp(e,t,i){var s=t.pendingProps,r=!1,c=(t.flags&128)!==0,v;if((v=c)||(v=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),v&&(r=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(r?Qn(t):Pn(),(e=ke)?(e=zg(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=nm(e),i.return=t,t.child=i,lt=t,ke=null)):e=null,e===null)throw qn(t);return Yc(e)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,r?(Pn(),r=t.mode,x=ho({mode:"hidden",children:x},r),s=Ma(s,r,i,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=sc(i),s.childLanes=oc(e,v,i),t.memoizedState=lc,Ml(null,s)):(Qn(t),rc(t,x))}var A=e.memoizedState;if(A!==null&&(x=A.dehydrated,x!==null)){if(c)t.flags&256?(Qn(t),t.flags&=-257,t=uc(e,t,i)):t.memoizedState!==null?(Pn(),t.child=e.child,t.flags|=128,t=null):(Pn(),x=s.fallback,r=t.mode,s=ho({mode:"visible",children:s.children},r),x=Ma(x,r,i,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,ka(t,e.child,null,i),s=t.child,s.memoizedState=sc(i),s.childLanes=oc(e,v,i),t.memoizedState=lc,t=Ml(null,s));else if(Qn(t),Yc(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var V=v.dgst;v=V,s=Error(o(419)),s.stack="",s.digest=v,vl({value:s,source:null,stack:null}),t=uc(e,t,i)}else if(Pe||bi(e,t,i,!1),v=(i&e.childLanes)!==0,Pe||v){if(v=Ve,v!==null&&(s=uh(v,i),s!==0&&s!==A.retryLane))throw A.retryLane=s,Ca(e,s),wt(v,e,s),ac;Gc(x)||To(),t=uc(e,t,i)}else Gc(x)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,ke=Ft(x.nextSibling),lt=t,be=!0,Yn=null,Xt=!1,e!==null&&lm(t,e),t=rc(t,s.children),t.flags|=4096);return t}return r?(Pn(),x=s.fallback,r=t.mode,A=e.child,V=A.sibling,s=xn(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,V!==null?x=xn(V,x):(x=Ma(x,r,i,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,Ml(null,s),s=t.child,x=e.child.memoizedState,x===null?x=sc(i):(r=x.cachePool,r!==null?(A=Ze._currentValue,r=r.parent!==A?{parent:A,pool:A}:r):r=fm(),x={baseLanes:x.baseLanes|i,cachePool:r}),s.memoizedState=x,s.childLanes=oc(e,v,i),t.memoizedState=lc,Ml(e.child,s)):(Qn(t),i=e.child,e=i.sibling,i=xn(i,{mode:"visible",children:s.children}),i.return=t,i.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=i,t.memoizedState=null,i)}function rc(e,t){return t=ho({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ho(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function uc(e,t,i){return ka(t,e.child,null,i),e=rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ep(e,t,i){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Eu(e.return,t,i)}function cc(e,t,i,s,r,c){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:r,treeForkCount:c}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=i,v.tailMode=r,v.treeForkCount=c)}function Ap(e,t,i){var s=t.pendingProps,r=s.revealOrder,c=s.tail;s=s.children;var v=qe.current,x=(v&2)!==0;if(x?(v=v&1|2,t.flags|=128):v&=1,X(qe,v),ot(e,t,s,i),s=be?gl:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ep(e,i,t);else if(e.tag===19)Ep(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(i=t.child,r=null;i!==null;)e=i.alternate,e!==null&&eo(e)===null&&(r=i),i=i.sibling;i=r,i===null?(r=t.child,t.child=null):(r=i.sibling,i.sibling=null),cc(t,!1,r,i,c,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&eo(e)===null){t.child=r;break}e=r.sibling,r.sibling=i,i=r,r=e}cc(t,!0,i,null,c,s);break;case"together":cc(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function jn(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(bi(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=xn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=xn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ks(e)))}function nS(e,t,i){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),Xn(t,Ze,e.memoizedState.cache),Da();break;case 27:case 5:tl(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:Xn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ku(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Qn(t),t.flags|=128,null):(i&t.child.childLanes)!==0?wp(e,t,i):(Qn(t),e=jn(e,t,i),e!==null?e.sibling:null);Qn(t);break;case 19:var r=(e.flags&128)!==0;if(s=(i&t.childLanes)!==0,s||(bi(e,t,i,!1),s=(i&t.childLanes)!==0),r){if(s)return Ap(e,t,i);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),X(qe,qe.current),s)break;return null;case 22:return t.lanes=0,vp(e,t,i,t.pendingProps);case 24:Xn(t,Ze,e.memoizedState.cache)}return jn(e,t,i)}function jp(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!fc(e,i)&&(t.flags&128)===0)return Pe=!1,nS(e,t,i);Pe=(e.flags&131072)!==0}else Pe=!1,be&&(t.flags&1048576)!==0&&im(t,gl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=La(t.elementType),t.type=e,typeof e=="function")gu(e)?(s=Ua(e,s),t.tag=1,t=Sp(null,t,e,s,i)):(t.tag=0,t=ic(null,t,e,s,i));else{if(e!=null){var r=e.$$typeof;if(r===B){t.tag=11,t=mp(null,t,e,s,i);break e}else if(r===F){t.tag=14,t=pp(null,t,e,s,i);break e}}throw t=Ne(e)||e,Error(o(306,t,""))}}return t;case 0:return ic(e,t,t.type,t.pendingProps,i);case 1:return s=t.type,r=Ua(s,t.pendingProps),Sp(e,t,s,r,i);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));s=t.pendingProps;var c=t.memoizedState;r=c.element,zu(e,t),El(t,s,null,i);var v=t.memoizedState;if(s=v.cache,Xn(t,Ze,s),s!==c.cache&&Au(t,[Ze],i,!0),wl(),s=v.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Tp(e,t,s,i);break e}else if(s!==r){r=Gt(Error(o(424)),t),vl(r),t=Tp(e,t,s,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=Ft(e.firstChild),lt=t,be=!0,Yn=null,Xt=!0,i=vm(t,null,s,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Da(),s===r){t=jn(e,t,i);break e}ot(e,t,s,i)}t=t.child}return t;case 26:return fo(e,t),e===null?(i=_g(t.type,null,t.pendingProps,null))?t.memoizedState=i:be||(i=t.type,e=t.pendingProps,s=Mo(de.current).createElement(i),s[it]=t,s[vt]=e,rt(s,i,e),tt(s),t.stateNode=s):t.memoizedState=_g(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return tl(t),e===null&&be&&(s=t.stateNode=Lg(t.type,t.pendingProps,de.current),lt=t,Xt=!0,r=ke,ia(t.type)?(qc=r,ke=Ft(s.firstChild)):ke=r),ot(e,t,t.pendingProps.children,i),fo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((r=s=ke)&&(s=OS(s,t.type,t.pendingProps,Xt),s!==null?(t.stateNode=s,lt=t,ke=Ft(s.firstChild),Xt=!1,r=!0):r=!1),r||qn(t)),tl(t),r=t.type,c=t.pendingProps,v=e!==null?e.memoizedProps:null,s=c.children,Bc(r,c)?s=null:v!==null&&Bc(r,v)&&(t.flags|=32),t.memoizedState!==null&&(r=Uu(e,t,F1,null,null,i),ql._currentValue=r),fo(e,t),ot(e,t,s,i),t.child;case 6:return e===null&&be&&((e=i=ke)&&(i=RS(i,t.pendingProps,Xt),i!==null?(t.stateNode=i,lt=t,ke=null,e=!0):e=!1),e||qn(t)),null;case 13:return wp(e,t,i);case 4:return Fe(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ka(t,null,s,i):ot(e,t,s,i),t.child;case 11:return mp(e,t,t.type,t.pendingProps,i);case 7:return ot(e,t,t.pendingProps,i),t.child;case 8:return ot(e,t,t.pendingProps.children,i),t.child;case 12:return ot(e,t,t.pendingProps.children,i),t.child;case 10:return s=t.pendingProps,Xn(t,t.type,s.value),ot(e,t,s.children,i),t.child;case 9:return r=t.type._context,s=t.pendingProps.children,Oa(t),r=st(r),s=s(r),t.flags|=1,ot(e,t,s,i),t.child;case 14:return pp(e,t,t.type,t.pendingProps,i);case 15:return gp(e,t,t.type,t.pendingProps,i);case 19:return Ap(e,t,i);case 31:return tS(e,t,i);case 22:return vp(e,t,i,t.pendingProps);case 24:return Oa(t),s=st(Ze),e===null?(r=Cu(),r===null&&(r=Ve,c=ju(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=i),r=c),t.memoizedState={parent:s,cache:r},Du(t),Xn(t,Ze,r)):((e.lanes&i)!==0&&(zu(e,t),El(t,null,null,i),wl()),r=e.memoizedState,c=t.memoizedState,r.parent!==s?(r={parent:s,cache:s},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Xn(t,Ze,s)):(s=c.cache,Xn(t,Ze,s),s!==r.cache&&Au(t,[Ze],i,!0))),ot(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Nn(e){e.flags|=4}function dc(e,t,i,s,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Ip())e.flags|=8192;else throw Va=Ps,Mu}else e.flags&=-16777217}function Np(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gg(t))if(Ip())e.flags|=8192;else throw Va=Ps,Mu}function mo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sh():536870912,e.lanes|=t,zi|=t)}function Dl(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(t)for(var r=e.child;r!==null;)i|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)i|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=i,t}function aS(e,t,i){var s=t.pendingProps;switch(xu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return i=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),wn(Ze),Le(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(yi(t)?Nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tu())),_e(t),null;case 26:var r=t.type,c=t.memoizedState;return e===null?(Nn(t),c!==null?(_e(t),Np(t,c)):(_e(t),dc(t,r,null,s,i))):c?c!==e.memoizedState?(Nn(t),_e(t),Np(t,c)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Nn(t),_e(t),dc(t,r,e,s,i)),null;case 27:if(Es(t),i=de.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Nn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return _e(t),null}e=P.current,yi(t)?sm(t):(e=Lg(r,s,i),t.stateNode=e,Nn(t))}return _e(t),null;case 5:if(Es(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Nn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return _e(t),null}if(c=P.current,yi(t))sm(t);else{var v=Mo(de.current);switch(c){case 1:c=v.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=v.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=v.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=v.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=v.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?v.createElement(r,{is:s.is}):v.createElement(r)}}c[it]=t,c[vt]=s;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)c.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=c;e:switch(rt(c,r,s),r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Nn(t)}}return _e(t),dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Nn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=de.current,yi(t)){if(e=t.stateNode,i=t.memoizedProps,s=null,r=lt,r!==null)switch(r.tag){case 27:case 5:s=r.memoizedProps}e[it]=t,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||wg(e.nodeValue,i)),e||qn(t,!0)}else e=Mo(e).createTextNode(s),e[it]=t,t.stateNode=e}return _e(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(s=yi(t),i!==null){if(e===null){if(!s)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[it]=t}else Da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else i=Tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(o(558))}return _e(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=yi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[it]=t}else Da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),r=!1}else r=Tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=i,t):(i=s!==null,e=e!==null&&e.memoizedState!==null,i&&(s=t.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==r&&(s.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),mo(t,t.updateQueue),_e(t),null);case 4:return Le(),e===null&&Lc(t.stateNode.containerInfo),_e(t),null;case 10:return wn(t.type),_e(t),null;case 19:if(G(qe),s=t.memoizedState,s===null)return _e(t),null;if(r=(t.flags&128)!==0,c=s.rendering,c===null)if(r)Dl(s,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=eo(e),c!==null){for(t.flags|=128,Dl(s,!1),e=c.updateQueue,t.updateQueue=e,mo(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)tm(i,e),i=i.sibling;return X(qe,qe.current&1|2),be&&Sn(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&jt()>bo&&(t.flags|=128,r=!0,Dl(s,!1),t.lanes=4194304)}else{if(!r)if(e=eo(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,mo(t,e),Dl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!be)return _e(t),null}else 2*jt()-s.renderingStartTime>bo&&i!==536870912&&(t.flags|=128,r=!0,Dl(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(e=s.last,e!==null?e.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=jt(),e.sibling=null,i=qe.current,X(qe,r?i&1|2:i&1),be&&Sn(t,s.treeForkCount),e):(_e(t),null);case 22:case 23:return Ot(t),Vu(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(i&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),i=t.updateQueue,i!==null&&mo(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==i&&(t.flags|=2048),e!==null&&G(Ra),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),wn(Ze),_e(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function iS(e,t){switch(xu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wn(Ze),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Es(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(o(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(qe),null;case 4:return Le(),null;case 10:return wn(t.type),null;case 22:case 23:return Ot(t),Vu(),e!==null&&G(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wn(Ze),null;case 25:return null;default:return null}}function Cp(e,t){switch(xu(t),t.tag){case 3:wn(Ze),Le();break;case 26:case 27:case 5:Es(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:G(qe);break;case 10:wn(t.type);break;case 22:case 23:Ot(t),Vu(),e!==null&&G(Ra);break;case 24:wn(Ze)}}function zl(e,t){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var r=s.next;i=r;do{if((i.tag&e)===e){s=void 0;var c=i.create,v=i.inst;s=c(),v.destroy=s}i=i.next}while(i!==r)}}catch(x){Ae(t,t.return,x)}}function Jn(e,t,i){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var c=r.next;s=c;do{if((s.tag&e)===e){var v=s.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,r=t;var A=i,V=x;try{V()}catch(H){Ae(r,A,H)}}}s=s.next}while(s!==c)}}catch(H){Ae(t,t.return,H)}}function Mp(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{bm(t,i)}catch(s){Ae(e,e.return,s)}}}function Dp(e,t,i){i.props=Ua(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(s){Ae(e,t,s)}}function Ol(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof i=="function"?e.refCleanup=i(s):i.current=s}}catch(r){Ae(e,t,r)}}function rn(e,t){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(r){Ae(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(r){Ae(e,t,r)}else i.current=null}function zp(e){var t=e.type,i=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(r){Ae(e,e.return,r)}}function hc(e,t,i){try{var s=e.stateNode;jS(s,e.type,i,t),s[vt]=t}catch(r){Ae(e,e.return,r)}}function Op(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ia(e.type)||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Op(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ia(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pc(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=yn));else if(s!==4&&(s===27&&ia(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(pc(e,t,i),e=e.sibling;e!==null;)pc(e,t,i),e=e.sibling}function po(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(s!==4&&(s===27&&ia(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(po(e,t,i),e=e.sibling;e!==null;)po(e,t,i),e=e.sibling}function Rp(e){var t=e.stateNode,i=e.memoizedProps;try{for(var s=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);rt(t,s,i),t[it]=e,t[vt]=i}catch(c){Ae(e,e.return,c)}}var Cn=!1,Je=!1,gc=!1,Lp=typeof WeakSet=="function"?WeakSet:Set,nt=null;function lS(e,t){if(e=e.containerInfo,_c=ko,e=Kh(e),uu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var r=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var v=0,x=-1,A=-1,V=0,H=0,Y=e,k=null;t:for(;;){for(var _;Y!==i||r!==0&&Y.nodeType!==3||(x=v+r),Y!==c||s!==0&&Y.nodeType!==3||(A=v+s),Y.nodeType===3&&(v+=Y.nodeValue.length),(_=Y.firstChild)!==null;)k=Y,Y=_;for(;;){if(Y===e)break t;if(k===i&&++V===r&&(x=v),k===c&&++H===s&&(A=v),(_=Y.nextSibling)!==null)break;Y=k,k=Y.parentNode}Y=_}i=x===-1||A===-1?null:{start:x,end:A}}else i=null}i=i||{start:0,end:0}}else i=null;for(Uc={focusedElem:e,selectionRange:i},ko=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)r=e[i],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,i=t,r=c.memoizedProps,c=c.memoizedState,s=i.stateNode;try{var W=Ua(i.type,r);e=s.getSnapshotBeforeUpdate(W,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Ae(i,i.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)$c(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$c(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function Vp(e,t,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Dn(e,i),s&4&&zl(5,i);break;case 1:if(Dn(e,i),s&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(v){Ae(i,i.return,v)}else{var r=Ua(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Ae(i,i.return,v)}}s&64&&Mp(i),s&512&&Ol(i,i.return);break;case 3:if(Dn(e,i),s&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{bm(e,t)}catch(v){Ae(i,i.return,v)}}break;case 27:t===null&&s&4&&Rp(i);case 26:case 5:Dn(e,i),t===null&&s&4&&zp(i),s&512&&Ol(i,i.return);break;case 12:Dn(e,i);break;case 31:Dn(e,i),s&4&&Up(e,i);break;case 13:Dn(e,i),s&4&&Bp(e,i),s&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=mS.bind(null,i),LS(e,i))));break;case 22:if(s=i.memoizedState!==null||Cn,!s){t=t!==null&&t.memoizedState!==null||Je,r=Cn;var c=Je;Cn=s,(Je=t)&&!c?zn(e,i,(i.subtreeFlags&8772)!==0):Dn(e,i),Cn=r,Je=c}break;case 30:break;default:Dn(e,i)}}function kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Kr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,bt=!1;function Mn(e,t,i){for(i=i.child;i!==null;)_p(e,t,i),i=i.sibling}function _p(e,t,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(nl,i)}catch{}switch(i.tag){case 26:Je||rn(i,t),Mn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Je||rn(i,t);var s=Be,r=bt;ia(i.type)&&(Be=i.stateNode,bt=!1),Mn(e,t,i),$l(i.stateNode),Be=s,bt=r;break;case 5:Je||rn(i,t);case 6:if(s=Be,r=bt,Be=null,Mn(e,t,i),Be=s,bt=r,Be!==null)if(bt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(i.stateNode)}catch(c){Ae(i,t,c)}else try{Be.removeChild(i.stateNode)}catch(c){Ae(i,t,c)}break;case 18:Be!==null&&(bt?(e=Be,Mg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Bi(e)):Mg(Be,i.stateNode));break;case 4:s=Be,r=bt,Be=i.stateNode.containerInfo,bt=!0,Mn(e,t,i),Be=s,bt=r;break;case 0:case 11:case 14:case 15:Jn(2,i,t),Je||Jn(4,i,t),Mn(e,t,i);break;case 1:Je||(rn(i,t),s=i.stateNode,typeof s.componentWillUnmount=="function"&&Dp(i,t,s)),Mn(e,t,i);break;case 21:Mn(e,t,i);break;case 22:Je=(s=Je)||i.memoizedState!==null,Mn(e,t,i),Je=s;break;default:Mn(e,t,i)}}function Up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bi(e)}catch(i){Ae(t,t.return,i)}}}function Bp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bi(e)}catch(i){Ae(t,t.return,i)}}function sS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Lp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Lp),t;default:throw Error(o(435,e.tag))}}function go(e,t){var i=sS(e);t.forEach(function(s){if(!i.has(s)){i.add(s);var r=pS.bind(null,e,s);s.then(r,r)}})}function xt(e,t){var i=t.deletions;if(i!==null)for(var s=0;s<i.length;s++){var r=i[s],c=e,v=t,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(ia(x.type)){Be=x.stateNode,bt=!1;break e}break;case 5:Be=x.stateNode,bt=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,bt=!0;break e}x=x.return}if(Be===null)throw Error(o(160));_p(c,v,r),Be=null,bt=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hp(t,e),t=t.sibling}var It=null;function Hp(e,t){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),St(e),s&4&&(Jn(3,e,e.return),zl(3,e),Jn(5,e,e.return));break;case 1:xt(t,e),St(e),s&512&&(Je||i===null||rn(i,i.return)),s&64&&Cn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var r=It;if(xt(t,e),St(e),s&512&&(Je||i===null||rn(i,i.return)),s&4){var c=i!==null?i.memoizedState:null;if(s=e.memoizedState,i===null)if(s===null)if(e.stateNode===null){e:{s=e.type,i=e.memoizedProps,r=r.ownerDocument||r;t:switch(s){case"title":c=r.getElementsByTagName("title")[0],(!c||c[ll]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(s),r.head.insertBefore(c,r.querySelector("head > title"))),rt(c,s,i),c[it]=e,tt(c),s=c;break e;case"link":var v=Hg("link","href",r).get(s+(i.href||""));if(v){for(var x=0;x<v.length;x++)if(c=v[x],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(x,1);break t}}c=r.createElement(s),rt(c,s,i),r.head.appendChild(c);break;case"meta":if(v=Hg("meta","content",r).get(s+(i.content||""))){for(x=0;x<v.length;x++)if(c=v[x],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(x,1);break t}}c=r.createElement(s),rt(c,s,i),r.head.appendChild(c);break;default:throw Error(o(468,s))}c[it]=e,tt(c),s=c}e.stateNode=s}else $g(r,e.type,e.stateNode);else e.stateNode=Bg(r,s,e.memoizedProps);else c!==s?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,s===null?$g(r,e.type,e.stateNode):Bg(r,s,e.memoizedProps)):s===null&&e.stateNode!==null&&hc(e,e.memoizedProps,i.memoizedProps)}break;case 27:xt(t,e),St(e),s&512&&(Je||i===null||rn(i,i.return)),i!==null&&s&4&&hc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(xt(t,e),St(e),s&512&&(Je||i===null||rn(i,i.return)),e.flags&32){r=e.stateNode;try{ri(r,"")}catch(W){Ae(e,e.return,W)}}s&4&&e.stateNode!=null&&(r=e.memoizedProps,hc(e,r,i!==null?i.memoizedProps:r)),s&1024&&(gc=!0);break;case 6:if(xt(t,e),St(e),s&4){if(e.stateNode===null)throw Error(o(162));s=e.memoizedProps,i=e.stateNode;try{i.nodeValue=s}catch(W){Ae(e,e.return,W)}}break;case 3:if(Oo=null,r=It,It=Do(t.containerInfo),xt(t,e),It=r,St(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{Bi(t.containerInfo)}catch(W){Ae(e,e.return,W)}gc&&(gc=!1,$p(e));break;case 4:s=It,It=Do(e.stateNode.containerInfo),xt(t,e),St(e),It=s;break;case 12:xt(t,e),St(e);break;case 31:xt(t,e),St(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,go(e,s)));break;case 13:xt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(yo=jt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,go(e,s)));break;case 22:r=e.memoizedState!==null;var A=i!==null&&i.memoizedState!==null,V=Cn,H=Je;if(Cn=V||r,Je=H||A,xt(t,e),Je=H,Cn=V,St(e),s&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(i===null||A||Cn||Je||Ba(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){A=i=t;try{if(c=A.stateNode,r)v=c.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=A.stateNode;var Y=A.memoizedProps.style,k=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(W){Ae(A,A.return,W)}}}else if(t.tag===6){if(i===null){A=t;try{A.stateNode.nodeValue=r?"":A.memoizedProps}catch(W){Ae(A,A.return,W)}}}else if(t.tag===18){if(i===null){A=t;try{var _=A.stateNode;r?Dg(_,!0):Dg(A.stateNode,!1)}catch(W){Ae(A,A.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,go(e,i))));break;case 19:xt(t,e),St(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,go(e,s)));break;case 30:break;case 21:break;default:xt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var i,s=e.return;s!==null;){if(Op(s)){i=s;break}s=s.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var r=i.stateNode,c=mc(e);po(e,c,r);break;case 5:var v=i.stateNode;i.flags&32&&(ri(v,""),i.flags&=-33);var x=mc(e);po(e,x,v);break;case 3:case 4:var A=i.stateNode.containerInfo,V=mc(e);pc(e,V,A);break;default:throw Error(o(161))}}catch(H){Ae(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $p(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$p(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vp(e,t.alternate,t),t=t.sibling}function Ba(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jn(4,t,t.return),Ba(t);break;case 1:rn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Dp(t,t.return,i),Ba(t);break;case 27:$l(t.stateNode);case 26:case 5:rn(t,t.return),Ba(t);break;case 22:t.memoizedState===null&&Ba(t);break;case 30:Ba(t);break;default:Ba(t)}e=e.sibling}}function zn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,r=e,c=t,v=c.flags;switch(c.tag){case 0:case 11:case 15:zn(r,c,i),zl(4,c);break;case 1:if(zn(r,c,i),s=c,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(V){Ae(s,s.return,V)}if(s=c,r=s.updateQueue,r!==null){var x=s.stateNode;try{var A=r.shared.hiddenCallbacks;if(A!==null)for(r.shared.hiddenCallbacks=null,r=0;r<A.length;r++)ym(A[r],x)}catch(V){Ae(s,s.return,V)}}i&&v&64&&Mp(c),Ol(c,c.return);break;case 27:Rp(c);case 26:case 5:zn(r,c,i),i&&s===null&&v&4&&zp(c),Ol(c,c.return);break;case 12:zn(r,c,i);break;case 31:zn(r,c,i),i&&v&4&&Up(r,c);break;case 13:zn(r,c,i),i&&v&4&&Bp(r,c);break;case 22:c.memoizedState===null&&zn(r,c,i),Ol(c,c.return);break;case 30:break;default:zn(r,c,i)}t=t.sibling}}function vc(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&yl(i))}function yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e))}function en(e,t,i,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gp(e,t,i,s),t=t.sibling}function Gp(e,t,i,s){var r=t.flags;switch(t.tag){case 0:case 11:case 15:en(e,t,i,s),r&2048&&zl(9,t);break;case 1:en(e,t,i,s);break;case 3:en(e,t,i,s),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e)));break;case 12:if(r&2048){en(e,t,i,s),e=t.stateNode;try{var c=t.memoizedProps,v=c.id,x=c.onPostCommit;typeof x=="function"&&x(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Ae(t,t.return,A)}}else en(e,t,i,s);break;case 31:en(e,t,i,s);break;case 13:en(e,t,i,s);break;case 23:break;case 22:c=t.stateNode,v=t.alternate,t.memoizedState!==null?c._visibility&2?en(e,t,i,s):Rl(e,t):c._visibility&2?en(e,t,i,s):(c._visibility|=2,Ci(e,t,i,s,(t.subtreeFlags&10256)!==0||!1)),r&2048&&vc(v,t);break;case 24:en(e,t,i,s),r&2048&&yc(t.alternate,t);break;default:en(e,t,i,s)}}function Ci(e,t,i,s,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,v=t,x=i,A=s,V=v.flags;switch(v.tag){case 0:case 11:case 15:Ci(c,v,x,A,r),zl(8,v);break;case 23:break;case 22:var H=v.stateNode;v.memoizedState!==null?H._visibility&2?Ci(c,v,x,A,r):Rl(c,v):(H._visibility|=2,Ci(c,v,x,A,r)),r&&V&2048&&vc(v.alternate,v);break;case 24:Ci(c,v,x,A,r),r&&V&2048&&yc(v.alternate,v);break;default:Ci(c,v,x,A,r)}t=t.sibling}}function Rl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,s=t,r=s.flags;switch(s.tag){case 22:Rl(i,s),r&2048&&vc(s.alternate,s);break;case 24:Rl(i,s),r&2048&&yc(s.alternate,s);break;default:Rl(i,s)}t=t.sibling}}var Ll=8192;function Mi(e,t,i){if(e.subtreeFlags&Ll)for(e=e.child;e!==null;)Yp(e,t,i),e=e.sibling}function Yp(e,t,i){switch(e.tag){case 26:Mi(e,t,i),e.flags&Ll&&e.memoizedState!==null&&KS(i,It,e.memoizedState,e.memoizedProps);break;case 5:Mi(e,t,i);break;case 3:case 4:var s=It;It=Do(e.stateNode.containerInfo),Mi(e,t,i),It=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Ll,Ll=16777216,Mi(e,t,i),Ll=s):Mi(e,t,i));break;default:Mi(e,t,i)}}function qp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var s=t[i];nt=s,Kp(s,e)}qp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xp(e),e=e.sibling}function Xp(e){switch(e.tag){case 0:case 11:case 15:Vl(e),e.flags&2048&&Jn(9,e,e.return);break;case 3:Vl(e);break;case 12:Vl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vo(e)):Vl(e);break;default:Vl(e)}}function vo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var s=t[i];nt=s,Kp(s,e)}qp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jn(8,t,t.return),vo(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,vo(t));break;default:vo(t)}e=e.sibling}}function Kp(e,t){for(;nt!==null;){var i=nt;switch(i.tag){case 0:case 11:case 15:Jn(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:yl(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,nt=s;else e:for(i=e;nt!==null;){s=nt;var r=s.sibling,c=s.return;if(kp(s),s===i){nt=null;break e}if(r!==null){r.return=c,nt=r;break e}nt=c}}}var oS={getCacheForType:function(e){var t=st(Ze),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return st(Ze).controller.signal}},rS=typeof WeakMap=="function"?WeakMap:Map,we=0,Ve=null,pe=null,ve=0,Ee=0,Rt=null,Wn=!1,Di=!1,bc=!1,On=0,Ge=0,In=0,Ha=0,xc=0,Lt=0,zi=0,kl=null,Tt=null,Sc=!1,yo=0,Fp=0,bo=1/0,xo=null,ea=null,Ie=0,ta=null,Oi=null,Rn=0,Tc=0,wc=null,Zp=null,_l=0,Ec=null;function Vt(){return(we&2)!==0&&ve!==0?ve&-ve:U.T!==null?Dc():ch()}function Qp(){if(Lt===0)if((ve&536870912)===0||be){var e=Ns;Ns<<=1,(Ns&3932160)===0&&(Ns=262144),Lt=e}else Lt=536870912;return e=zt.current,e!==null&&(e.flags|=32),Lt}function wt(e,t,i){(e===Ve&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Ri(e,0),na(e,ve,Lt,!1)),il(e,i),((we&2)===0||e!==Ve)&&(e===Ve&&((we&2)===0&&(Ha|=i),Ge===4&&na(e,ve,Lt,!1)),un(e))}function Pp(e,t,i){if((we&6)!==0)throw Error(o(327));var s=!i&&(t&127)===0&&(t&e.expiredLanes)===0||al(e,t),r=s?fS(e,t):jc(e,t,!0),c=s;do{if(r===0){Di&&!s&&na(e,t,0,!1);break}else{if(i=e.current.alternate,c&&!uS(i)){r=jc(e,t,!1),c=!1;continue}if(r===2){if(c=t,e.errorRecoveryDisabledLanes&c)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var x=e;r=kl;var A=x.current.memoizedState.isDehydrated;if(A&&(Ri(x,v).flags|=256),v=jc(x,v,!1),v!==2){if(bc&&!A){x.errorRecoveryDisabledLanes|=c,Ha|=c,r=4;break e}c=Tt,Tt=r,c!==null&&(Tt===null?Tt=c:Tt.push.apply(Tt,c))}r=v}if(c=!1,r!==2)continue}}if(r===1){Ri(e,0),na(e,t,0,!0);break}e:{switch(s=e,c=r,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:na(s,t,Lt,!Wn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=yo+300-jt(),10<r)){if(na(s,t,Lt,!Wn),Ms(s,0,!0)!==0)break e;Rn=t,s.timeoutHandle=Ng(Jp.bind(null,s,i,Tt,xo,Sc,t,Lt,Ha,zi,Wn,c,"Throttled",-0,0),r);break e}Jp(s,i,Tt,xo,Sc,t,Lt,Ha,zi,Wn,c,null,-0,0)}}break}while(!0);un(e)}function Jp(e,t,i,s,r,c,v,x,A,V,H,Y,k,_){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Yp(t,c,Y);var W=(c&62914560)===c?yo-jt():(c&4194048)===c?Fp-jt():0;if(W=FS(Y,W),W!==null){Rn=c,e.cancelPendingCommit=W(lg.bind(null,e,t,c,i,s,r,v,x,A,H,Y,null,k,_)),na(e,c,v,!V);return}}lg(e,t,c,i,s,r,v,x,A)}function uS(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var r=i[s],c=r.getSnapshot;r=r.value;try{if(!Mt(c(),r))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function na(e,t,i,s){t&=~xc,t&=~Ha,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var r=t;0<r;){var c=31-Ct(r),v=1<<c;s[c]=-1,r&=~v}i!==0&&oh(e,i,t)}function So(){return(we&6)===0?(Ul(0),!1):!0}function Ac(){if(pe!==null){if(Ee===0)var e=pe.return;else e=pe,Tn=za=null,$u(e),wi=null,xl=0,e=pe;for(;e!==null;)Cp(e.alternate,e),e=e.return;pe=null}}function Ri(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,MS(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Rn=0,Ac(),Ve=e,pe=i=xn(e.current,null),ve=t,Ee=0,Rt=null,Wn=!1,Di=al(e,t),bc=!1,zi=Lt=xc=Ha=In=Ge=0,Tt=kl=null,Sc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var r=31-Ct(s),c=1<<r;t|=e[r],s&=~c}return On=t,$s(),i}function Wp(e,t){ue=null,U.H=Cl,t===Ti||t===Qs?(t=mm(),Ee=3):t===Mu?(t=mm(),Ee=4):Ee=t===ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,pe===null&&(Ge=1,uo(e,Gt(t,e.current)))}function Ip(){var e=zt.current;return e===null?!0:(ve&4194048)===ve?Kt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Kt:!1}function eg(){var e=U.H;return U.H=Cl,e===null?Cl:e}function tg(){var e=U.A;return U.A=oS,e}function To(){Ge=4,Wn||(ve&4194048)!==ve&&zt.current!==null||(Di=!0),(In&134217727)===0&&(Ha&134217727)===0||Ve===null||na(Ve,ve,Lt,!1)}function jc(e,t,i){var s=we;we|=2;var r=eg(),c=tg();(Ve!==e||ve!==t)&&(xo=null,Ri(e,t)),t=!1;var v=Ge;e:do try{if(Ee!==0&&pe!==null){var x=pe,A=Rt;switch(Ee){case 8:Ac(),v=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var V=Ee;if(Ee=0,Rt=null,Li(e,x,A,V),i&&Di){v=0;break e}break;default:V=Ee,Ee=0,Rt=null,Li(e,x,A,V)}}cS(),v=Ge;break}catch(H){Wp(e,H)}while(!0);return t&&e.shellSuspendCounter++,Tn=za=null,we=s,U.H=r,U.A=c,pe===null&&(Ve=null,ve=0,$s()),v}function cS(){for(;pe!==null;)ng(pe)}function fS(e,t){var i=we;we|=2;var s=eg(),r=tg();Ve!==e||ve!==t?(xo=null,bo=jt()+500,Ri(e,t)):Di=al(e,t);e:do try{if(Ee!==0&&pe!==null){t=pe;var c=Rt;t:switch(Ee){case 1:Ee=0,Rt=null,Li(e,t,c,1);break;case 2:case 9:if(dm(c)){Ee=0,Rt=null,ag(t);break}t=function(){Ee!==2&&Ee!==9||Ve!==e||(Ee=7),un(e)},c.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:dm(c)?(Ee=0,Rt=null,ag(t)):(Ee=0,Rt=null,Li(e,t,c,7));break;case 5:var v=null;switch(pe.tag){case 26:v=pe.memoizedState;case 5:case 27:var x=pe;if(v?Gg(v):x.stateNode.complete){Ee=0,Rt=null;var A=x.sibling;if(A!==null)pe=A;else{var V=x.return;V!==null?(pe=V,wo(V)):pe=null}break t}}Ee=0,Rt=null,Li(e,t,c,5);break;case 6:Ee=0,Rt=null,Li(e,t,c,6);break;case 8:Ac(),Ge=6;break e;default:throw Error(o(462))}}dS();break}catch(H){Wp(e,H)}while(!0);return Tn=za=null,U.H=s,U.A=r,we=i,pe!==null?0:(Ve=null,ve=0,$s(),Ge)}function dS(){for(;pe!==null&&!Vx();)ng(pe)}function ng(e){var t=jp(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?wo(e):pe=t}function ag(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=xp(i,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=xp(i,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:$u(t);default:Cp(i,t),t=pe=tm(t,On),t=jp(i,t,On)}e.memoizedProps=e.pendingProps,t===null?wo(e):pe=t}function Li(e,t,i,s){Tn=za=null,$u(t),wi=null,xl=0;var r=t.return;try{if(eS(e,r,t,i,ve)){Ge=1,uo(e,Gt(i,e.current)),pe=null;return}}catch(c){if(r!==null)throw pe=r,c;Ge=1,uo(e,Gt(i,e.current)),pe=null;return}t.flags&32768?(be||s===1?e=!0:Di||(ve&536870912)!==0?e=!1:(Wn=e=!0,(s===2||s===9||s===3||s===6)&&(s=zt.current,s!==null&&s.tag===13&&(s.flags|=16384))),ig(t,e)):wo(t)}function wo(e){var t=e;do{if((t.flags&32768)!==0){ig(t,Wn);return}e=t.return;var i=aS(t.alternate,t,On);if(i!==null){pe=i;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);Ge===0&&(Ge=5)}function ig(e,t){do{var i=iS(e.alternate,e);if(i!==null){i.flags&=32767,pe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=i}while(e!==null);Ge=6,pe=null}function lg(e,t,i,s,r,c,v,x,A){e.cancelPendingCommit=null;do Eo();while(Ie!==0);if((we&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=mu,Xx(e,i,c,v,x,A),e===Ve&&(pe=Ve=null,ve=0),Oi=t,ta=e,Rn=i,Tc=c,wc=r,Zp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gS(As,function(){return cg(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,r=K.p,K.p=2,v=we,we|=4;try{lS(e,t,i)}finally{we=v,K.p=r,U.T=s}}Ie=1,sg(),og(),rg()}}function sg(){if(Ie===1){Ie=0;var e=ta,t=Oi,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var s=K.p;K.p=2;var r=we;we|=4;try{Hp(t,e);var c=Uc,v=Kh(e.containerInfo),x=c.focusedElem,A=c.selectionRange;if(v!==x&&x&&x.ownerDocument&&Xh(x.ownerDocument.documentElement,x)){if(A!==null&&uu(x)){var V=A.start,H=A.end;if(H===void 0&&(H=V),"selectionStart"in x)x.selectionStart=V,x.selectionEnd=Math.min(H,x.value.length);else{var Y=x.ownerDocument||document,k=Y&&Y.defaultView||window;if(k.getSelection){var _=k.getSelection(),W=x.textContent.length,ae=Math.min(A.start,W),De=A.end===void 0?ae:Math.min(A.end,W);!_.extend&&ae>De&&(v=De,De=ae,ae=v);var z=qh(x,ae),M=qh(x,De);if(z&&M&&(_.rangeCount!==1||_.anchorNode!==z.node||_.anchorOffset!==z.offset||_.focusNode!==M.node||_.focusOffset!==M.offset)){var L=Y.createRange();L.setStart(z.node,z.offset),_.removeAllRanges(),ae>De?(_.addRange(L),_.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),_.addRange(L))}}}}for(Y=[],_=x;_=_.parentNode;)_.nodeType===1&&Y.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Y.length;x++){var $=Y[x];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}ko=!!_c,Uc=_c=null}finally{we=r,K.p=s,U.T=i}}e.current=t,Ie=2}}function og(){if(Ie===2){Ie=0;var e=ta,t=Oi,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var s=K.p;K.p=2;var r=we;we|=4;try{Vp(e,t.alternate,t)}finally{we=r,K.p=s,U.T=i}}Ie=3}}function rg(){if(Ie===4||Ie===3){Ie=0,kx();var e=ta,t=Oi,i=Rn,s=Zp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,Oi=ta=null,ug(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ea=null),qr(i),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(nl,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=U.T,r=K.p,K.p=2,U.T=null;try{for(var c=e.onRecoverableError,v=0;v<s.length;v++){var x=s[v];c(x.value,{componentStack:x.stack})}}finally{U.T=t,K.p=r}}(Rn&3)!==0&&Eo(),un(e),r=e.pendingLanes,(i&261930)!==0&&(r&42)!==0?e===Ec?_l++:(_l=0,Ec=e):_l=0,Ul(0)}}function ug(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yl(t)))}function Eo(){return sg(),og(),rg(),cg()}function cg(){if(Ie!==5)return!1;var e=ta,t=Tc;Tc=0;var i=qr(Rn),s=U.T,r=K.p;try{K.p=32>i?32:i,U.T=null,i=wc,wc=null;var c=ta,v=Rn;if(Ie=0,Oi=ta=null,Rn=0,(we&6)!==0)throw Error(o(331));var x=we;if(we|=4,Xp(c.current),Gp(c,c.current,v,i),we=x,Ul(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(nl,c)}catch{}return!0}finally{K.p=r,U.T=s,ug(e,t)}}function fg(e,t,i){t=Gt(i,t),t=nc(e.stateNode,t,2),e=Zn(e,t,2),e!==null&&(il(e,2),un(e))}function Ae(e,t,i){if(e.tag===3)fg(e,e,i);else for(;t!==null;){if(t.tag===3){fg(t,e,i);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ea===null||!ea.has(s))){e=Gt(i,e),i=dp(2),s=Zn(t,i,2),s!==null&&(hp(i,s,t,e),il(s,2),un(s));break}}t=t.return}}function Nc(e,t,i){var s=e.pingCache;if(s===null){s=e.pingCache=new rS;var r=new Set;s.set(t,r)}else r=s.get(t),r===void 0&&(r=new Set,s.set(t,r));r.has(i)||(bc=!0,r.add(i),e=hS.bind(null,e,t,i),t.then(e,e))}function hS(e,t,i){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ve===e&&(ve&i)===i&&(Ge===4||Ge===3&&(ve&62914560)===ve&&300>jt()-yo?(we&2)===0&&Ri(e,0):xc|=i,zi===ve&&(zi=0)),un(e)}function dg(e,t){t===0&&(t=sh()),e=Ca(e,t),e!==null&&(il(e,t),un(e))}function mS(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),dg(e,i)}function pS(e,t){var i=0;switch(e.tag){case 31:case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(i=r.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(t),dg(e,i)}function gS(e,t){return Hr(e,t)}var Ao=null,Vi=null,Cc=!1,jo=!1,Mc=!1,aa=0;function un(e){e!==Vi&&e.next===null&&(Vi===null?Ao=Vi=e:Vi=Vi.next=e),jo=!0,Cc||(Cc=!0,yS())}function Ul(e,t){if(!Mc&&jo){Mc=!0;do for(var i=!1,s=Ao;s!==null;){if(e!==0){var r=s.pendingLanes;if(r===0)var c=0;else{var v=s.suspendedLanes,x=s.pingedLanes;c=(1<<31-Ct(42|e)+1)-1,c&=r&~(v&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,gg(s,c))}else c=ve,c=Ms(s,s===Ve?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||al(s,c)||(i=!0,gg(s,c));s=s.next}while(i);Mc=!1}}function vS(){hg()}function hg(){jo=Cc=!1;var e=0;aa!==0&&CS()&&(e=aa);for(var t=jt(),i=null,s=Ao;s!==null;){var r=s.next,c=mg(s,t);c===0?(s.next=null,i===null?Ao=r:i.next=r,r===null&&(Vi=i)):(i=s,(e!==0||(c&3)!==0)&&(jo=!0)),s=r}Ie!==0&&Ie!==5||Ul(e),aa!==0&&(aa=0)}function mg(e,t){for(var i=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var v=31-Ct(c),x=1<<v,A=r[v];A===-1?((x&i)===0||(x&s)!==0)&&(r[v]=qx(x,t)):A<=t&&(e.expiredLanes|=x),c&=~x}if(t=Ve,i=ve,i=Ms(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,i===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&$r(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||al(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(s!==null&&$r(s),qr(i)){case 2:case 8:i=ih;break;case 32:i=As;break;case 268435456:i=lh;break;default:i=As}return s=pg.bind(null,e),i=Hr(i,s),e.callbackPriority=t,e.callbackNode=i,t}return s!==null&&s!==null&&$r(s),e.callbackPriority=2,e.callbackNode=null,2}function pg(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Eo()&&e.callbackNode!==i)return null;var s=ve;return s=Ms(e,e===Ve?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Pp(e,s,t),mg(e,jt()),e.callbackNode!=null&&e.callbackNode===i?pg.bind(null,e):null)}function gg(e,t){if(Eo())return null;Pp(e,t,!0)}function yS(){DS(function(){(we&6)!==0?Hr(ah,vS):hg()})}function Dc(){if(aa===0){var e=xi;e===0&&(e=js,js<<=1,(js&261888)===0&&(js=256)),aa=e}return aa}function vg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rs(""+e)}function yg(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function bS(e,t,i,s,r){if(t==="submit"&&i&&i.stateNode===r){var c=vg((r[vt]||null).action),v=s.submitter;v&&(t=(t=v[vt]||null)?vg(t.formAction):v.getAttribute("formAction"),t!==null&&(c=t,v=null));var x=new _s("action","action",null,s,r);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(aa!==0){var A=v?yg(r,v):new FormData(r);Pu(i,{pending:!0,data:A,method:r.method,action:c},null,A)}}else typeof c=="function"&&(x.preventDefault(),A=v?yg(r,v):new FormData(r),Pu(i,{pending:!0,data:A,method:r.method,action:c},c,A))},currentTarget:r}]})}}for(var zc=0;zc<hu.length;zc++){var Oc=hu[zc],xS=Oc.toLowerCase(),SS=Oc[0].toUpperCase()+Oc.slice(1);Wt(xS,"on"+SS)}Wt(Qh,"onAnimationEnd"),Wt(Ph,"onAnimationIteration"),Wt(Jh,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(_1,"onTransitionRun"),Wt(U1,"onTransitionStart"),Wt(B1,"onTransitionCancel"),Wt(Wh,"onTransitionEnd"),si("onMouseEnter",["mouseout","mouseover"]),si("onMouseLeave",["mouseout","mouseover"]),si("onPointerEnter",["pointerout","pointerover"]),si("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bl="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(" "),TS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function bg(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var s=e[i],r=s.event;s=s.listeners;e:{var c=void 0;if(t)for(var v=s.length-1;0<=v;v--){var x=s[v],A=x.instance,V=x.currentTarget;if(x=x.listener,A!==c&&r.isPropagationStopped())break e;c=x,r.currentTarget=V;try{c(r)}catch(H){Hs(H)}r.currentTarget=null,c=A}else for(v=0;v<s.length;v++){if(x=s[v],A=x.instance,V=x.currentTarget,x=x.listener,A!==c&&r.isPropagationStopped())break e;c=x,r.currentTarget=V;try{c(r)}catch(H){Hs(H)}r.currentTarget=null,c=A}}}}function ge(e,t){var i=t[Xr];i===void 0&&(i=t[Xr]=new Set);var s=e+"__bubble";i.has(s)||(xg(t,e,2,!1),i.add(s))}function Rc(e,t,i){var s=0;t&&(s|=4),xg(i,e,s,t)}var No="_reactListening"+Math.random().toString(36).slice(2);function Lc(e){if(!e[No]){e[No]=!0,hh.forEach(function(i){i!=="selectionchange"&&(TS.has(i)||Rc(i,!1,e),Rc(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[No]||(t[No]=!0,Rc("selectionchange",!1,t))}}function xg(e,t,i,s){switch(Qg(t)){case 2:var r=PS;break;case 8:r=JS;break;default:r=Qc}i=r.bind(null,t,i,e),r=void 0,!eu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,i,{capture:!0,passive:r}):e.addEventListener(t,i,!0):r!==void 0?e.addEventListener(t,i,{passive:r}):e.addEventListener(t,i,!1)}function Vc(e,t,i,s,r){var c=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var x=s.stateNode.containerInfo;if(x===r)break;if(v===4)for(v=s.return;v!==null;){var A=v.tag;if((A===3||A===4)&&v.stateNode.containerInfo===r)return;v=v.return}for(;x!==null;){if(v=ai(x),v===null)return;if(A=v.tag,A===5||A===6||A===26||A===27){s=c=v;continue e}x=x.parentNode}}s=s.return}Ah(function(){var V=c,H=Wr(i),Y=[];e:{var k=Ih.get(e);if(k!==void 0){var _=_s,W=e;switch(e){case"keypress":if(Vs(i)===0)break e;case"keydown":case"keyup":_=p1;break;case"focusin":W="focus",_=iu;break;case"focusout":W="blur",_=iu;break;case"beforeblur":case"afterblur":_=iu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=a1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=y1;break;case Qh:case Ph:case Jh:_=s1;break;case Wh:_=x1;break;case"scroll":case"scrollend":_=t1;break;case"wheel":_=T1;break;case"copy":case"cut":case"paste":_=r1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Dh;break;case"toggle":case"beforetoggle":_=E1}var ae=(t&4)!==0,De=!ae&&(e==="scroll"||e==="scrollend"),z=ae?k!==null?k+"Capture":null:k;ae=[];for(var M=V,L;M!==null;){var $=M;if(L=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||L===null||z===null||($=ol(M,z),$!=null&&ae.push(Hl(M,$,L))),De)break;M=M.return}0<ae.length&&(k=new _(k,W,null,i,H),Y.push({event:k,listeners:ae}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",k&&i!==Jr&&(W=i.relatedTarget||i.fromElement)&&(ai(W)||W[ni]))break e;if((_||k)&&(k=H.window===H?H:(k=H.ownerDocument)?k.defaultView||k.parentWindow:window,_?(W=i.relatedTarget||i.toElement,_=V,W=W?ai(W):null,W!==null&&(De=d(W),ae=W.tag,W!==De||ae!==5&&ae!==27&&ae!==6)&&(W=null)):(_=null,W=V),_!==W)){if(ae=Ch,$="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Dh,$="onPointerLeave",z="onPointerEnter",M="pointer"),De=_==null?k:sl(_),L=W==null?k:sl(W),k=new ae($,M+"leave",_,i,H),k.target=De,k.relatedTarget=L,$=null,ai(H)===V&&(ae=new ae(z,M+"enter",W,i,H),ae.target=L,ae.relatedTarget=De,$=ae),De=$,_&&W)t:{for(ae=wS,z=_,M=W,L=0,$=z;$;$=ae($))L++;$=0;for(var ne=M;ne;ne=ae(ne))$++;for(;0<L-$;)z=ae(z),L--;for(;0<$-L;)M=ae(M),$--;for(;L--;){if(z===M||M!==null&&z===M.alternate){ae=z;break t}z=ae(z),M=ae(M)}ae=null}else ae=null;_!==null&&Sg(Y,k,_,ae,!1),W!==null&&De!==null&&Sg(Y,De,W,ae,!0)}}e:{if(k=V?sl(V):window,_=k.nodeName&&k.nodeName.toLowerCase(),_==="select"||_==="input"&&k.type==="file")var Se=Uh;else if(kh(k))if(Bh)Se=L1;else{Se=O1;var ee=z1}else _=k.nodeName,!_||_.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?V&&Pr(V.elementType)&&(Se=Uh):Se=R1;if(Se&&(Se=Se(e,V))){_h(Y,Se,i,H);break e}ee&&ee(e,k,V),e==="focusout"&&V&&k.type==="number"&&V.memoizedProps.value!=null&&Qr(k,"number",k.value)}switch(ee=V?sl(V):window,e){case"focusin":(kh(ee)||ee.contentEditable==="true")&&(di=ee,cu=V,pl=null);break;case"focusout":pl=cu=di=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,Fh(Y,i,H);break;case"selectionchange":if(k1)break;case"keydown":case"keyup":Fh(Y,i,H)}var ce;if(su)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else fi?Lh(e,i)&&(ye="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ye="onCompositionStart");ye&&(zh&&i.locale!=="ko"&&(fi||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&fi&&(ce=jh()):($n=H,tu="value"in $n?$n.value:$n.textContent,fi=!0)),ee=Co(V,ye),0<ee.length&&(ye=new Mh(ye,e,null,i,H),Y.push({event:ye,listeners:ee}),ce?ye.data=ce:(ce=Vh(i),ce!==null&&(ye.data=ce)))),(ce=j1?N1(e,i):C1(e,i))&&(ye=Co(V,"onBeforeInput"),0<ye.length&&(ee=new Mh("onBeforeInput","beforeinput",null,i,H),Y.push({event:ee,listeners:ye}),ee.data=ce)),bS(Y,e,V,i,H)}bg(Y,t)})}function Hl(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Co(e,t){for(var i=t+"Capture",s=[];e!==null;){var r=e,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=ol(e,i),r!=null&&s.unshift(Hl(e,r,c)),r=ol(e,t),r!=null&&s.push(Hl(e,r,c))),e.tag===3)return s;e=e.return}return[]}function wS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sg(e,t,i,s,r){for(var c=t._reactName,v=[];i!==null&&i!==s;){var x=i,A=x.alternate,V=x.stateNode;if(x=x.tag,A!==null&&A===s)break;x!==5&&x!==26&&x!==27||V===null||(A=V,r?(V=ol(i,c),V!=null&&v.unshift(Hl(i,V,A))):r||(V=ol(i,c),V!=null&&v.push(Hl(i,V,A)))),i=i.return}v.length!==0&&e.push({event:t,listeners:v})}var ES=/\r\n?/g,AS=/\u0000|\uFFFD/g;function Tg(e){return(typeof e=="string"?e:""+e).replace(ES,`
|
|
49
|
+
`).replace(AS,"")}function wg(e,t){return t=Tg(t),Tg(e)===t}function Me(e,t,i,s,r,c){switch(i){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ri(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ri(e,""+s);break;case"className":zs(e,"class",s);break;case"tabIndex":zs(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":zs(e,i,s);break;case"style":wh(e,s,c);break;case"data":if(t!=="object"){zs(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Rs(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(i,"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 c=="function"&&(i==="formAction"?(t!=="input"&&Me(e,t,"name",r.name,r,null),Me(e,t,"formEncType",r.formEncType,r,null),Me(e,t,"formMethod",r.formMethod,r,null),Me(e,t,"formTarget",r.formTarget,r,null)):(Me(e,t,"encType",r.encType,r,null),Me(e,t,"method",r.method,r,null),Me(e,t,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Rs(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(e.onclick=yn);break;case"onScroll":s!=null&&ge("scroll",e);break;case"onScrollEnd":s!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}i=Rs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""+s):e.removeAttribute(i);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,s):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(i,s):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):e.setAttribute(i,s);break;case"popover":ge("beforetoggle",e),ge("toggle",e),Ds(e,"popover",s);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ds(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Ix.get(i)||i,Ds(e,i,s))}}function kc(e,t,i,s,r,c){switch(i){case"style":wh(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof s=="string"?ri(e,s):(typeof s=="number"||typeof s=="bigint")&&ri(e,""+s);break;case"onScroll":s!=null&&ge("scroll",e);break;case"onScrollEnd":s!=null&&ge("scrollend",e);break;case"onClick":s!=null&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(r=i.endsWith("Capture"),t=i.slice(2,r?i.length-7:void 0),c=e[vt]||null,c=c!=null?c[i]:null,typeof c=="function"&&e.removeEventListener(t,c,r),typeof s=="function")){typeof c!="function"&&c!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,s,r);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):Ds(e,i,s)}}}function rt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var s=!1,r=!1,c;for(c in i)if(i.hasOwnProperty(c)){var v=i[c];if(v!=null)switch(c){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,c,v,i,null)}}r&&Me(e,t,"srcSet",i.srcSet,i,null),s&&Me(e,t,"src",i.src,i,null);return;case"input":ge("invalid",e);var x=c=v=r=null,A=null,V=null;for(s in i)if(i.hasOwnProperty(s)){var H=i[s];if(H!=null)switch(s){case"name":r=H;break;case"type":v=H;break;case"checked":A=H;break;case"defaultChecked":V=H;break;case"value":c=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:Me(e,t,s,H,i,null)}}bh(e,c,x,A,V,v,r,!1);return;case"select":ge("invalid",e),s=v=c=null;for(r in i)if(i.hasOwnProperty(r)&&(x=i[r],x!=null))switch(r){case"value":c=x;break;case"defaultValue":v=x;break;case"multiple":s=x;default:Me(e,t,r,x,i,null)}t=c,i=v,e.multiple=!!s,t!=null?oi(e,!!s,t,!1):i!=null&&oi(e,!!s,i,!0);return;case"textarea":ge("invalid",e),c=r=s=null;for(v in i)if(i.hasOwnProperty(v)&&(x=i[v],x!=null))switch(v){case"value":s=x;break;case"defaultValue":r=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Me(e,t,v,x,i,null)}Sh(e,s,r,c);return;case"option":for(A in i)if(i.hasOwnProperty(A)&&(s=i[A],s!=null))switch(A){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Me(e,t,A,s,i,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(s=0;s<Bl.length;s++)ge(Bl[s],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in i)if(i.hasOwnProperty(V)&&(s=i[V],s!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,V,s,i,null)}return;default:if(Pr(t)){for(H in i)i.hasOwnProperty(H)&&(s=i[H],s!==void 0&&kc(e,t,H,s,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(s=i[x],s!=null&&Me(e,t,x,s,i,null))}function jS(e,t,i,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,v=null,x=null,A=null,V=null,H=null;for(_ in i){var Y=i[_];if(i.hasOwnProperty(_)&&Y!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":A=Y;default:s.hasOwnProperty(_)||Me(e,t,_,null,s,Y)}}for(var k in s){var _=s[k];if(Y=i[k],s.hasOwnProperty(k)&&(_!=null||Y!=null))switch(k){case"type":c=_;break;case"name":r=_;break;case"checked":V=_;break;case"defaultChecked":H=_;break;case"value":v=_;break;case"defaultValue":x=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:_!==Y&&Me(e,t,k,_,s,Y)}}Zr(e,v,x,A,V,H,c,r);return;case"select":_=v=x=k=null;for(c in i)if(A=i[c],i.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":_=A;default:s.hasOwnProperty(c)||Me(e,t,c,null,s,A)}for(r in s)if(c=s[r],A=i[r],s.hasOwnProperty(r)&&(c!=null||A!=null))switch(r){case"value":k=c;break;case"defaultValue":x=c;break;case"multiple":v=c;default:c!==A&&Me(e,t,r,c,s,A)}t=x,i=v,s=_,k!=null?oi(e,!!i,k,!1):!!s!=!!i&&(t!=null?oi(e,!!i,t,!0):oi(e,!!i,i?[]:"",!1));return;case"textarea":_=k=null;for(x in i)if(r=i[x],i.hasOwnProperty(x)&&r!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Me(e,t,x,null,s,r)}for(v in s)if(r=s[v],c=i[v],s.hasOwnProperty(v)&&(r!=null||c!=null))switch(v){case"value":k=r;break;case"defaultValue":_=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==c&&Me(e,t,v,r,s,c)}xh(e,k,_);return;case"option":for(var W in i)if(k=i[W],i.hasOwnProperty(W)&&k!=null&&!s.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Me(e,t,W,null,s,k)}for(A in s)if(k=s[A],_=i[A],s.hasOwnProperty(A)&&k!==_&&(k!=null||_!=null))switch(A){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Me(e,t,A,k,s,_)}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 ae in i)k=i[ae],i.hasOwnProperty(ae)&&k!=null&&!s.hasOwnProperty(ae)&&Me(e,t,ae,null,s,k);for(V in s)if(k=s[V],_=i[V],s.hasOwnProperty(V)&&k!==_&&(k!=null||_!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,t));break;default:Me(e,t,V,k,s,_)}return;default:if(Pr(t)){for(var De in i)k=i[De],i.hasOwnProperty(De)&&k!==void 0&&!s.hasOwnProperty(De)&&kc(e,t,De,void 0,s,k);for(H in s)k=s[H],_=i[H],!s.hasOwnProperty(H)||k===_||k===void 0&&_===void 0||kc(e,t,H,k,s,_);return}}for(var z in i)k=i[z],i.hasOwnProperty(z)&&k!=null&&!s.hasOwnProperty(z)&&Me(e,t,z,null,s,k);for(Y in s)k=s[Y],_=i[Y],!s.hasOwnProperty(Y)||k===_||k==null&&_==null||Me(e,t,Y,k,s,_)}function Eg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var r=i[s],c=r.transferSize,v=r.initiatorType,x=r.duration;if(c&&x&&Eg(v)){for(v=0,x=r.responseEnd,s+=1;s<i.length;s++){var A=i[s],V=A.startTime;if(V>x)break;var H=A.transferSize,Y=A.initiatorType;H&&Eg(Y)&&(A=A.responseEnd,v+=H*(A<x?1:(x-V)/(A-V)))}if(--s,t+=8*(c+v)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _c=null,Uc=null;function Mo(e){return e.nodeType===9?e:e.ownerDocument}function Ag(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Bc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hc=null;function CS(){var e=window.event;return e&&e.type==="popstate"?e===Hc?!1:(Hc=e,!0):(Hc=null,!1)}var Ng=typeof setTimeout=="function"?setTimeout:void 0,MS=typeof clearTimeout=="function"?clearTimeout:void 0,Cg=typeof Promise=="function"?Promise:void 0,DS=typeof queueMicrotask=="function"?queueMicrotask:typeof Cg<"u"?function(e){return Cg.resolve(null).then(e).catch(zS)}:Ng;function zS(e){setTimeout(function(){throw e})}function ia(e){return e==="head"}function Mg(e,t){var i=t,s=0;do{var r=i.nextSibling;if(e.removeChild(i),r&&r.nodeType===8)if(i=r.data,i==="/$"||i==="/&"){if(s===0){e.removeChild(r),Bi(t);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")$l(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,$l(i);for(var c=i.firstChild;c;){var v=c.nextSibling,x=c.nodeName;c[ll]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=v}}else i==="body"&&$l(e.ownerDocument.body);i=r}while(i);Bi(t)}function Dg(e,t){var i=e;e=0;do{var s=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=s}while(i)}function $c(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":$c(i),Kr(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function OS(e,t,i,s){for(;e.nodeType===1;){var r=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ll])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function RS(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Ft(e.nextSibling),e===null))return null;return e}function zg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function Gc(e){return e.data==="$?"||e.data==="$~"}function Yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function LS(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var s=function(){t(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Ft(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var qc=null;function Og(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return Ft(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Rg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Lg(e,t,i){switch(t=Mo(i),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function $l(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Kr(e)}var Zt=new Map,Vg=new Set;function Do(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=K.d;K.d={f:VS,r:kS,D:_S,C:US,L:BS,m:HS,X:GS,S:$S,M:YS};function VS(){var e=Ln.f(),t=So();return e||t}function kS(e){var t=ii(e);t!==null&&t.tag===5&&t.type==="form"?Wm(t):Ln.r(e)}var ki=typeof document>"u"?null:document;function kg(e,t,i){var s=ki;if(s&&typeof t=="string"&&t){var r=Ht(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof i=="string"&&(r+='[crossorigin="'+i+'"]'),Vg.has(r)||(Vg.add(r),e={rel:e,crossOrigin:i,href:t},s.querySelector(r)===null&&(t=s.createElement("link"),rt(t,"link",e),tt(t),s.head.appendChild(t)))}}function _S(e){Ln.D(e),kg("dns-prefetch",e,null)}function US(e,t){Ln.C(e,t),kg("preconnect",e,t)}function BS(e,t,i){Ln.L(e,t,i);var s=ki;if(s&&e&&t){var r='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&i&&i.imageSrcSet?(r+='[imagesrcset="'+Ht(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(r+='[imagesizes="'+Ht(i.imageSizes)+'"]')):r+='[href="'+Ht(e)+'"]';var c=r;switch(t){case"style":c=_i(e);break;case"script":c=Ui(e)}Zt.has(c)||(e=b({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Zt.set(c,e),s.querySelector(r)!==null||t==="style"&&s.querySelector(Gl(c))||t==="script"&&s.querySelector(Yl(c))||(t=s.createElement("link"),rt(t,"link",e),tt(t),s.head.appendChild(t)))}}function HS(e,t){Ln.m(e,t);var i=ki;if(i&&e){var s=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Ht(s)+'"][href="'+Ht(e)+'"]',c=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ui(e)}if(!Zt.has(c)&&(e=b({rel:"modulepreload",href:e},t),Zt.set(c,e),i.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Yl(c)))return}s=i.createElement("link"),rt(s,"link",e),tt(s),i.head.appendChild(s)}}}function $S(e,t,i){Ln.S(e,t,i);var s=ki;if(s&&e){var r=li(s).hoistableStyles,c=_i(e);t=t||"default";var v=r.get(c);if(!v){var x={loading:0,preload:null};if(v=s.querySelector(Gl(c)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Zt.get(c))&&Xc(e,i);var A=v=s.createElement("link");tt(A),rt(A,"link",e),A._p=new Promise(function(V,H){A.onload=V,A.onerror=H}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,zo(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:x},r.set(c,v)}}}function GS(e,t){Ln.X(e,t);var i=ki;if(i&&e){var s=li(i).hoistableScripts,r=Ui(e),c=s.get(r);c||(c=i.querySelector(Yl(r)),c||(e=b({src:e,async:!0},t),(t=Zt.get(r))&&Kc(e,t),c=i.createElement("script"),tt(c),rt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(r,c))}}function YS(e,t){Ln.M(e,t);var i=ki;if(i&&e){var s=li(i).hoistableScripts,r=Ui(e),c=s.get(r);c||(c=i.querySelector(Yl(r)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Zt.get(r))&&Kc(e,t),c=i.createElement("script"),tt(c),rt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(r,c))}}function _g(e,t,i,s){var r=(r=de.current)?Do(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=_i(i.href),i=li(r).hoistableStyles,s=i.get(t),s||(s={type:"style",instance:null,count:0,state:null},i.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=_i(i.href);var c=li(r).hoistableStyles,v=c.get(e);if(v||(r=r.ownerDocument||r,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,v),(c=r.querySelector(Gl(e)))&&!c._p&&(v.instance=c,v.state.loading=5),Zt.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Zt.set(e,i),c||qS(r,e,i,v.state))),t&&s===null)throw Error(o(528,""));return v}if(t&&s!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ui(i),i=li(r).hoistableScripts,s=i.get(t),s||(s={type:"script",instance:null,count:0,state:null},i.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function _i(e){return'href="'+Ht(e)+'"'}function Gl(e){return'link[rel="stylesheet"]['+e+"]"}function Ug(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function qS(e,t,i,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),rt(t,"link",i),tt(t),e.head.appendChild(t))}function Ui(e){return'[src="'+Ht(e)+'"]'}function Yl(e){return"script[async]"+e}function Bg(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Ht(i.href)+'"]');if(s)return t.instance=s,tt(s),s;var r=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),tt(s),rt(s,"style",r),zo(s,i.precedence,e),t.instance=s;case"stylesheet":r=_i(i.href);var c=e.querySelector(Gl(r));if(c)return t.state.loading|=4,t.instance=c,tt(c),c;s=Ug(i),(r=Zt.get(r))&&Xc(s,r),c=(e.ownerDocument||e).createElement("link"),tt(c);var v=c;return v._p=new Promise(function(x,A){v.onload=x,v.onerror=A}),rt(c,"link",s),t.state.loading|=4,zo(c,i.precedence,e),t.instance=c;case"script":return c=Ui(i.src),(r=e.querySelector(Yl(c)))?(t.instance=r,tt(r),r):(s=i,(r=Zt.get(c))&&(s=b({},i),Kc(s,r)),e=e.ownerDocument||e,r=e.createElement("script"),tt(r),rt(r,"link",s),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,zo(s,i.precedence,e));return t.instance}function zo(e,t,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,c=r,v=0;v<s.length;v++){var x=s[v];if(x.dataset.precedence===t)c=x;else if(c!==r)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Oo=null;function Hg(e,t,i){if(Oo===null){var s=new Map,r=Oo=new Map;r.set(i,s)}else r=Oo,s=r.get(i),s||(s=new Map,r.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),r=0;r<i.length;r++){var c=i[r];if(!(c[ll]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var v=c.getAttribute(t)||"";v=e+v;var x=s.get(v);x?x.push(c):s.set(v,[c])}}return s}function $g(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function XS(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function KS(e,t,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var r=_i(s.href),c=t.querySelector(Gl(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ro.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=c,tt(c);return}c=t.ownerDocument||t,s=Ug(s),(r=Zt.get(r))&&Xc(s,r),c=c.createElement("link"),tt(c);var v=c;v._p=new Promise(function(x,A){v.onload=x,v.onerror=A}),rt(c,"link",s),i.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ro.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Fc=0;function FS(e,t){return e.stylesheets&&e.count===0&&Vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var s=setTimeout(function(){if(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Fc===0&&(Fc=62500*NS());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Fc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function Ro(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Lo=null;function Vo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Lo=new Map,t.forEach(ZS,e),Lo=null,Ro.call(e))}function ZS(e,t){if(!(t.state.loading&4)){var i=Lo.get(e);if(i)var s=i.get(null);else{i=new Map,Lo.set(e,i);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var v=r[c];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),s=v)}s&&i.set(null,s)}r=t.instance,v=r.getAttribute("data-precedence"),c=i.get(v)||s,c===s&&i.set(null,r),i.set(v,r),this.count++,s=Ro.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),c?c.parentNode.insertBefore(r,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var ql={$$typeof:R,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function QS(e,t,i,s,r,c,v,x,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gr(0),this.hiddenUpdates=Gr(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Yg(e,t,i,s,r,c,v,x,A,V,H,Y){return e=new QS(e,t,i,v,A,V,H,Y,x),t=1,c===!0&&(t|=24),c=Dt(3,null,null,t),e.current=c,c.stateNode=e,t=ju(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:i,cache:t},Du(c),e}function qg(e){return e?(e=pi,e):pi}function Xg(e,t,i,s,r,c){r=qg(r),s.context===null?s.context=r:s.pendingContext=r,s=Fn(t),s.payload={element:i},c=c===void 0?null:c,c!==null&&(s.callback=c),i=Zn(e,s,t),i!==null&&(wt(i,e,t),Tl(i,e,t))}function Kg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Zc(e,t){Kg(e,t),(e=e.alternate)&&Kg(e,t)}function Fg(e){if(e.tag===13||e.tag===31){var t=Ca(e,67108864);t!==null&&wt(t,e,67108864),Zc(e,67108864)}}function Zg(e){if(e.tag===13||e.tag===31){var t=Vt();t=Yr(t);var i=Ca(e,t);i!==null&&wt(i,e,t),Zc(e,t)}}var ko=!0;function PS(e,t,i,s){var r=U.T;U.T=null;var c=K.p;try{K.p=2,Qc(e,t,i,s)}finally{K.p=c,U.T=r}}function JS(e,t,i,s){var r=U.T;U.T=null;var c=K.p;try{K.p=8,Qc(e,t,i,s)}finally{K.p=c,U.T=r}}function Qc(e,t,i,s){if(ko){var r=Pc(s);if(r===null)Vc(e,t,s,_o,i),Pg(e,s);else if(IS(r,e,t,i,s))s.stopPropagation();else if(Pg(e,s),t&4&&-1<WS.indexOf(e)){for(;r!==null;){var c=ii(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var v=wa(c.pendingLanes);if(v!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var A=1<<31-Ct(v);x.entanglements[1]|=A,v&=~A}un(c),(we&6)===0&&(bo=jt()+500,Ul(0))}}break;case 31:case 13:x=Ca(c,2),x!==null&&wt(x,c,2),So(),Zc(c,2)}if(c=Pc(s),c===null&&Vc(e,t,s,_o,i),c===r)break;r=c}r!==null&&s.stopPropagation()}else Vc(e,t,s,null,i)}}function Pc(e){return e=Wr(e),Jc(e)}var _o=null;function Jc(e){if(_o=null,e=ai(e),e!==null){var t=d(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===31){if(e=h(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _o=e,null}function Qg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_x()){case ah:return 2;case ih:return 8;case As:case Ux:return 32;case lh:return 268435456;default:return 32}default:return 32}}var Wc=!1,la=null,sa=null,oa=null,Xl=new Map,Kl=new Map,ra=[],WS="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 Pg(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":oa=null;break;case"pointerover":case"pointerout":Xl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(t.pointerId)}}function Fl(e,t,i,s,r,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:i,eventSystemFlags:s,nativeEvent:c,targetContainers:[r]},t!==null&&(t=ii(t),t!==null&&Fg(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function IS(e,t,i,s,r){switch(t){case"focusin":return la=Fl(la,e,t,i,s,r),!0;case"dragenter":return sa=Fl(sa,e,t,i,s,r),!0;case"mouseover":return oa=Fl(oa,e,t,i,s,r),!0;case"pointerover":var c=r.pointerId;return Xl.set(c,Fl(Xl.get(c)||null,e,t,i,s,r)),!0;case"gotpointercapture":return c=r.pointerId,Kl.set(c,Fl(Kl.get(c)||null,e,t,i,s,r)),!0}return!1}function Jg(e){var t=ai(e.target);if(t!==null){var i=d(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,fh(e.priority,function(){Zg(i)});return}}else if(t===31){if(t=h(i),t!==null){e.blockedOn=t,fh(e.priority,function(){Zg(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Uo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Pc(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i);Jr=s,i.target.dispatchEvent(s),Jr=null}else return t=ii(i),t!==null&&Fg(t),e.blockedOn=i,!1;t.shift()}return!0}function Wg(e,t,i){Uo(e)&&i.delete(t)}function eT(){Wc=!1,la!==null&&Uo(la)&&(la=null),sa!==null&&Uo(sa)&&(sa=null),oa!==null&&Uo(oa)&&(oa=null),Xl.forEach(Wg),Kl.forEach(Wg)}function Bo(e,t){e.blockedOn===t&&(e.blockedOn=null,Wc||(Wc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,eT)))}var Ho=null;function Ig(e){Ho!==e&&(Ho=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ho===e&&(Ho=null);for(var t=0;t<e.length;t+=3){var i=e[t],s=e[t+1],r=e[t+2];if(typeof s!="function"){if(Jc(s||i)===null)continue;break}var c=ii(i);c!==null&&(e.splice(t,3),t-=3,Pu(c,{pending:!0,data:r,method:i.method,action:s},s,r))}}))}function Bi(e){function t(A){return Bo(A,e)}la!==null&&Bo(la,e),sa!==null&&Bo(sa,e),oa!==null&&Bo(oa,e),Xl.forEach(t),Kl.forEach(t);for(var i=0;i<ra.length;i++){var s=ra[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ra.length&&(i=ra[0],i.blockedOn===null);)Jg(i),i.blockedOn===null&&ra.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var r=i[s],c=i[s+1],v=r[vt]||null;if(typeof c=="function")v||Ig(i);else if(v){var x=null;if(c&&c.hasAttribute("formAction")){if(r=c,v=c[vt]||null)x=v.formAction;else if(Jc(r)!==null)continue}else x=v.action;typeof x=="function"?i[s+1]=x:(i.splice(s,3),s-=3),Ig(i)}}}function ev(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(v){return r=v})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Ic(e){this._internalRoot=e}$o.prototype.render=Ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var i=t.current,s=Vt();Xg(i,s,e,t,null,null)},$o.prototype.unmount=Ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xg(e.current,2,null,e,null,null),So(),t[ni]=null}};function $o(e){this._internalRoot=e}$o.prototype.unstable_scheduleHydration=function(e){if(e){var t=ch();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ra.length&&t!==0&&t<ra[i].priority;i++);ra.splice(i,0,e),i===0&&Jg(e)}};var tv=a.version;if(tv!=="19.2.4")throw Error(o(527,tv,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var tT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Go.isDisabled&&Go.supportsFiber)try{nl=Go.inject(tT),Nt=Go}catch{}}return Ql.createRoot=function(e,t){if(!u(e))throw Error(o(299));var i=!1,s="",r=rp,c=up,v=cp;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=Yg(e,1,!1,null,null,i,s,null,r,c,v,ev),e[ni]=t.current,Lc(e),new Ic(t)},Ql.hydrateRoot=function(e,t,i){if(!u(e))throw Error(o(299));var s=!1,r="",c=rp,v=up,x=cp,A=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(r=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(A=i.formState)),t=Yg(e,1,!0,t,i??null,s,r,A,c,v,x,ev),t.context=qg(null),i=t.current,s=Vt(),s=Yr(s),r=Fn(s),r.callback=null,Zn(i,r,s),i=s,t.current.lanes=i,il(t,i),un(t),e[ni]=t.current,Lc(e),new $o(t)},Ql.version="19.2.4",Ql}var dv;function dT(){if(dv)return nf.exports;dv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),nf.exports=fT(),nf.exports}var hT=dT();const P0="/outlook/api";async function at(n){const a=await fetch(`${P0}${n}`,{headers:{accept:"application/json"}});if(!a.ok)throw new Error(`${a.status} ${a.statusText}`);return a.json()}function mT(n){const a=new EventSource(`${P0}/events`);return a.addEventListener("state-changed",l=>{try{const o=JSON.parse(l.data);n("state-changed",o)}catch{n("state-changed",{})}}),a.onerror=()=>{},()=>a.close()}function _t(n){if(!n)return"unknown";const a=Date.now()-new Date(n).getTime();return a<0||a<6e4?"just now":a<36e5?`${Math.floor(a/6e4)}m ago`:a<864e5?`${Math.floor(a/36e5)}h ago`:`${Math.floor(a/864e5)}d ago`}function kt(n,a){if(!n)return"";if(n.length<=a)return n;const l=n.lastIndexOf(" ",a);return(l>a*.6?n.slice(0,l):n.slice(0,a))+"…"}const J0=w.createContext(()=>{});function Qi(){return w.useContext(J0)}const pT=new Set(["overview","sessions","work","connections","inner","memory","runtime"]);function W0(n){const a=n.replace(/^#\/?/,"");if(!a.startsWith("agent/"))return null;const l=a.split("/"),o=l[1]?decodeURIComponent(l[1]):"";if(!o)return null;const u=l[2]??"overview",d=pT.has(u)?u:"overview",f=l.slice(3),h=f.length>0?f.map(decodeURIComponent).join("/"):void 0;return{agent:o,tab:d,focus:h}}function Lf(n){let a=`#/agent/${encodeURIComponent(n.agent)}`;return(n.tab!=="overview"||n.focus)&&(a+=`/${n.tab}`),n.focus&&(a+=`/${n.focus.split("/").map(encodeURIComponent).join("/")}`),a}const gT=typeof document<"u"?se.useLayoutEffect:()=>{},xa=n=>{var a;return(a=n==null?void 0:n.ownerDocument)!==null&&a!==void 0?a:document},Xa=n=>n&&"window"in n&&n.window===n?n:xa(n).defaultView||window;function vT(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function yT(n){return vT(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let bT=!1;function yd(){return bT}function Ka(n,a){if(!yd())return a&&n?n.contains(a):!1;if(!n||!a)return!1;let l=a;for(;l!==null;){if(l===n)return!0;l.tagName==="SLOT"&&l.assignedSlot?l=l.assignedSlot.parentNode:yT(l)?l=l.host:l=l.parentNode}return!1}const Ki=(n=document)=>{var a;if(!yd())return n.activeElement;let l=n.activeElement;for(;l&&"shadowRoot"in l&&(!((a=l.shadowRoot)===null||a===void 0)&&a.activeElement);)l=l.shadowRoot.activeElement;return l};function mt(n){if(yd()&&n.target instanceof Element&&n.target.shadowRoot){var a,l;if("composedPath"in n)return(a=n.composedPath()[0])!==null&&a!==void 0?a:null;if("composedPath"in n.nativeEvent)return(l=n.nativeEvent.composedPath()[0])!==null&&l!==void 0?l:null}return n.target}function I0(n){var a,l,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(a=0;a<u;a++)n[a]&&(l=I0(n[a]))&&(o&&(o+=" "),o+=l)}else for(l in n)n[l]&&(o&&(o+=" "),o+=l);return o}function Ke(){for(var n,a,l=0,o="",u=arguments.length;l<u;l++)(n=arguments[l])&&(a=I0(n))&&(o&&(o+=" "),o+=a);return o}function xT(n){if(ST())n.focus({preventScroll:!0});else{let a=TT(n);n.focus(),wT(a)}}let Yo=null;function ST(){if(Yo==null){Yo=!1;try{document.createElement("div").focus({get preventScroll(){return Yo=!0,!0}})}catch{}}return Yo}function TT(n){let a=n.parentNode,l=[],o=document.scrollingElement||document.documentElement;for(;a instanceof HTMLElement&&a!==o;)(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth)&&l.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),a=a.parentNode;return o instanceof HTMLElement&&l.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),l}function wT(n){for(let{element:a,scrollTop:l,scrollLeft:o}of n)a.scrollTop=l,a.scrollLeft=o}function Tr(n){var a;if(typeof window>"u"||window.navigator==null)return!1;let l=(a=window.navigator.userAgentData)===null||a===void 0?void 0:a.brands;return Array.isArray(l)&&l.some(o=>n.test(o.brand))||n.test(window.navigator.userAgent)}function ey(n){var a;return typeof window<"u"&&window.navigator!=null?n.test(((a=window.navigator.userAgentData)===null||a===void 0?void 0:a.platform)||window.navigator.platform):!1}function Pi(n){let a=null;return()=>(a==null&&(a=n()),a)}const sr=Pi(function(){return ey(/^Mac/i)}),ET=Pi(function(){return ey(/^iPad/i)||sr()&&navigator.maxTouchPoints>1}),AT=Pi(function(){return Tr(/AppleWebKit/i)&&!jT()}),jT=Pi(function(){return Tr(/Chrome/i)}),NT=Pi(function(){return Tr(/Android/i)}),CT=Pi(function(){return Tr(/Firefox/i)});function fs(n,a,l=!0){var o,u;let{metaKey:d,ctrlKey:f,altKey:h,shiftKey:m}=a;CT()&&(!((u=window.event)===null||u===void 0||(o=u.type)===null||o===void 0)&&o.startsWith("key"))&&n.target==="_blank"&&(sr()?d=!0:f=!0);let p=AT()&&sr()&&!ET()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:d,ctrlKey:f,altKey:h,shiftKey:m}):new MouseEvent("click",{metaKey:d,ctrlKey:f,altKey:h,shiftKey:m,detail:1,bubbles:!0,cancelable:!0});fs.isOpening=l,xT(n),n.dispatchEvent(p),fs.isOpening=!1}fs.isOpening=!1;function ty(){let n=w.useRef(new Map),a=w.useCallback((u,d,f,h)=>{let m=h!=null&&h.once?(...p)=>{n.current.delete(f),f(...p)}:f;n.current.set(f,{type:d,eventTarget:u,fn:m,options:h}),u.addEventListener(d,m,h)},[]),l=w.useCallback((u,d,f,h)=>{var m;let p=((m=n.current.get(f))===null||m===void 0?void 0:m.fn)||f;u.removeEventListener(d,p,h),n.current.delete(f)},[]),o=w.useCallback(()=>{n.current.forEach((u,d)=>{l(u.eventTarget,u.type,d,u.options)})},[l]);return w.useEffect(()=>o,[o]),{addGlobalListener:a,removeGlobalListener:l,removeAllGlobalListeners:o}}function MT(n){return n.pointerType===""&&n.isTrusted?!0:NT()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}var DT=Q0();function ny(n){let a=n;return a.nativeEvent=n,a.isDefaultPrevented=()=>a.defaultPrevented,a.isPropagationStopped=()=>a.cancelBubble,a.persist=()=>{},a}function zT(n,a){Object.defineProperty(n,"target",{value:a}),Object.defineProperty(n,"currentTarget",{value:a})}function ay(n){let a=w.useRef({isFocused:!1,observer:null});return gT(()=>{const l=a.current;return()=>{l.observer&&(l.observer.disconnect(),l.observer=null)}},[]),w.useCallback(l=>{let o=mt(l);if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){a.current.isFocused=!0;let u=o,d=f=>{if(a.current.isFocused=!1,u.disabled){let h=ny(f);n==null||n(h)}a.current.observer&&(a.current.observer.disconnect(),a.current.observer=null)};u.addEventListener("focusout",d,{once:!0}),a.current.observer=new MutationObserver(()=>{if(a.current.isFocused&&u.disabled){var f;(f=a.current.observer)===null||f===void 0||f.disconnect();let h=u===Ki()?null:Ki();u.dispatchEvent(new FocusEvent("blur",{relatedTarget:h})),u.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:h}))}}),a.current.observer.observe(u,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let OT=!1,gs=null;const Vf=new Set;let as=new Map,Wa=!1,kf=!1;const RT={Tab:!0,Escape:!0};function bd(n,a){for(let l of Vf)l(n,a)}function LT(n){return!(n.metaKey||!sr()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function or(n){Wa=!0,!fs.isOpening&<(n)&&(gs="keyboard",bd("keyboard",n))}function Xi(n){gs="pointer","pointerType"in n&&n.pointerType,(n.type==="mousedown"||n.type==="pointerdown")&&(Wa=!0,bd("pointer",n))}function iy(n){!fs.isOpening&&MT(n)&&(Wa=!0,gs="virtual")}function ly(n){mt(n)===window||mt(n)===document||OT||!n.isTrusted||(!Wa&&!kf&&(gs="virtual",bd("virtual",n)),Wa=!1,kf=!1)}function sy(){Wa=!1,kf=!0}function _f(n){if(typeof window>"u"||typeof document>"u"||as.get(Xa(n)))return;const a=Xa(n),l=xa(n);let o=a.HTMLElement.prototype.focus;a.HTMLElement.prototype.focus=function(){Wa=!0,o.apply(this,arguments)},l.addEventListener("keydown",or,!0),l.addEventListener("keyup",or,!0),l.addEventListener("click",iy,!0),a.addEventListener("focus",ly,!0),a.addEventListener("blur",sy,!1),typeof PointerEvent<"u"&&(l.addEventListener("pointerdown",Xi,!0),l.addEventListener("pointermove",Xi,!0),l.addEventListener("pointerup",Xi,!0)),a.addEventListener("beforeunload",()=>{oy(n)},{once:!0}),as.set(a,{focus:o})}const oy=(n,a)=>{const l=Xa(n),o=xa(n);a&&o.removeEventListener("DOMContentLoaded",a),as.has(l)&&(l.HTMLElement.prototype.focus=as.get(l).focus,o.removeEventListener("keydown",or,!0),o.removeEventListener("keyup",or,!0),o.removeEventListener("click",iy,!0),l.removeEventListener("focus",ly,!0),l.removeEventListener("blur",sy,!1),typeof PointerEvent<"u"&&(o.removeEventListener("pointerdown",Xi,!0),o.removeEventListener("pointermove",Xi,!0),o.removeEventListener("pointerup",Xi,!0)),as.delete(l))};function VT(n){const a=xa(n);let l;return a.readyState!=="loading"?_f(n):(l=()=>{_f(n)},a.addEventListener("DOMContentLoaded",l)),()=>oy(n,l)}typeof document<"u"&&VT();function Uf(){return gs!=="pointer"}const kT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _T(n,a,l){let o=xa(l?mt(l):void 0),u=l?mt(l):void 0;const d=typeof window<"u"?Xa(u).HTMLInputElement:HTMLInputElement,f=typeof window<"u"?Xa(u).HTMLTextAreaElement:HTMLTextAreaElement,h=typeof window<"u"?Xa(u).HTMLElement:HTMLElement,m=typeof window<"u"?Xa(u).KeyboardEvent:KeyboardEvent;let p=Ki(o);return n=n||p instanceof d&&!kT.has(p.type)||p instanceof f||p instanceof h&&p.isContentEditable,!(n&&a==="keyboard"&&l instanceof m&&!RT[l.key])}function UT(n,a,l){_f(),w.useEffect(()=>{if((l==null?void 0:l.enabled)===!1)return;let o=(u,d)=>{_T(!!(l!=null&&l.isTextInput),u,d)&&n(Uf())};return Vf.add(o),()=>{Vf.delete(o)}},a)}function BT(n){let{isDisabled:a,onFocus:l,onBlur:o,onFocusChange:u}=n;const d=w.useCallback(m=>{if(mt(m)===m.currentTarget)return o&&o(m),u&&u(!1),!0},[o,u]),f=ay(d),h=w.useCallback(m=>{let p=mt(m);const y=xa(p),b=y?Ki(y):Ki();p===m.currentTarget&&p===b&&(l&&l(m),u&&u(!0),f(m))},[u,l,f]);return{focusProps:{onFocus:!a&&(l||u||o)?h:void 0,onBlur:!a&&(o||u)?d:void 0}}}function HT(n){let{isDisabled:a,onBlurWithin:l,onFocusWithin:o,onFocusWithinChange:u}=n,d=w.useRef({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:h}=ty(),m=w.useCallback(b=>{Ka(b.currentTarget,mt(b))&&d.current.isFocusWithin&&!Ka(b.currentTarget,b.relatedTarget)&&(d.current.isFocusWithin=!1,h(),l&&l(b),u&&u(!1))},[l,u,d,h]),p=ay(m),y=w.useCallback(b=>{if(!Ka(b.currentTarget,mt(b)))return;let S=mt(b);const T=xa(S),E=Ki(T);if(!d.current.isFocusWithin&&E===S){o&&o(b),u&&u(!0),d.current.isFocusWithin=!0,p(b);let j=b.currentTarget;f(T,"focus",C=>{let D=mt(C);if(d.current.isFocusWithin&&!Ka(j,D)){let O=new T.defaultView.FocusEvent("blur",{relatedTarget:D});zT(O,j);let R=ny(O);m(R)}},{capture:!0})}},[o,u,p,f,m]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:y,onBlur:m}}}let Bf=!1,qo=0;function $T(){Bf=!0,setTimeout(()=>{Bf=!1},50)}function hv(n){n.pointerType==="touch"&&$T()}function GT(){if(!(typeof document>"u"))return qo===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",hv),qo++,()=>{qo--,!(qo>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",hv)}}function ry(n){let{onHoverStart:a,onHoverChange:l,onHoverEnd:o,isDisabled:u}=n,[d,f]=w.useState(!1),h=w.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;w.useEffect(GT,[]);let{addGlobalListener:m,removeAllGlobalListeners:p}=ty(),{hoverProps:y,triggerHoverEnd:b}=w.useMemo(()=>{let S=(j,C)=>{if(h.pointerType=C,u||C==="touch"||h.isHovered||!Ka(j.currentTarget,mt(j)))return;h.isHovered=!0;let D=j.currentTarget;h.target=D,m(xa(mt(j)),"pointerover",O=>{h.isHovered&&h.target&&!Ka(h.target,mt(O))&&T(O,O.pointerType)},{capture:!0}),a&&a({type:"hoverstart",target:D,pointerType:C}),l&&l(!0),f(!0)},T=(j,C)=>{let D=h.target;h.pointerType="",h.target=null,!(C==="touch"||!h.isHovered||!D)&&(h.isHovered=!1,p(),o&&o({type:"hoverend",target:D,pointerType:C}),l&&l(!1),f(!1))},E={};return typeof PointerEvent<"u"&&(E.onPointerEnter=j=>{Bf&&j.pointerType==="mouse"||S(j,j.pointerType)},E.onPointerLeave=j=>{!u&&Ka(j.currentTarget,mt(j))&&T(j,j.pointerType)}),{hoverProps:E,triggerHoverEnd:T}},[a,l,o,u,h,m,p]);return w.useEffect(()=>{u&&b({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:y,isHovered:d}}function uy(n={}){let{autoFocus:a=!1,isTextInput:l,within:o}=n,u=w.useRef({isFocused:!1,isFocusVisible:a||Uf()}),[d,f]=w.useState(!1),[h,m]=w.useState(()=>u.current.isFocused&&u.current.isFocusVisible),p=w.useCallback(()=>m(u.current.isFocused&&u.current.isFocusVisible),[]),y=w.useCallback(T=>{u.current.isFocused=T,u.current.isFocusVisible=Uf(),f(T),p()},[p]);UT(T=>{u.current.isFocusVisible=T,p()},[l,d],{enabled:d,isTextInput:l});let{focusProps:b}=BT({isDisabled:o,onFocusChange:y}),{focusWithinProps:S}=HT({isDisabled:!o,onFocusWithinChange:y});return{isFocused:d,isFocusVisible:h,focusProps:o?S:b}}var YT=Object.defineProperty,qT=(n,a,l)=>a in n?YT(n,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[a]=l,of=(n,a,l)=>(qT(n,typeof a!="symbol"?a+"":a,l),l);let XT=class{constructor(){of(this,"current",this.detect()),of(this,"handoffState","pending"),of(this,"currentId",0)}set(a){this.current!==a&&(this.handoffState="pending",this.currentId=0,this.current=a)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hn=new XT;function Ji(n){var a;return hn.isServer?null:n==null?document:(a=n==null?void 0:n.ownerDocument)!=null?a:document}function Hf(n){var a,l;return hn.isServer?null:n==null?document:(l=(a=n==null?void 0:n.getRootNode)==null?void 0:a.call(n))!=null?l:document}function cy(n){var a,l;return(l=(a=Hf(n))==null?void 0:a.activeElement)!=null?l:null}function KT(n){return cy(n)===n}function wr(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(a=>setTimeout(()=>{throw a}))}function Un(){let n=[],a={addEventListener(l,o,u,d){return l.addEventListener(o,u,d),a.add(()=>l.removeEventListener(o,u,d))},requestAnimationFrame(...l){let o=requestAnimationFrame(...l);return a.add(()=>cancelAnimationFrame(o))},nextFrame(...l){return a.requestAnimationFrame(()=>a.requestAnimationFrame(...l))},setTimeout(...l){let o=setTimeout(...l);return a.add(()=>clearTimeout(o))},microTask(...l){let o={current:!0};return wr(()=>{o.current&&l[0]()}),a.add(()=>{o.current=!1})},style(l,o,u){let d=l.style.getPropertyValue(o);return Object.assign(l.style,{[o]:u}),this.add(()=>{Object.assign(l.style,{[o]:d})})},group(l){let o=Un();return l(o),this.add(()=>o.dispose())},add(l){return n.includes(l)||n.push(l),()=>{let o=n.indexOf(l);if(o>=0)for(let u of n.splice(o,1))u()}},dispose(){for(let l of n.splice(0))l()}};return a}function vs(){let[n]=w.useState(Un);return w.useEffect(()=>()=>n.dispose(),[n]),n}let Et=(n,a)=>{hn.isServer?w.useEffect(n,a):w.useLayoutEffect(n,a)};function ei(n){let a=w.useRef(n);return Et(()=>{a.current=n},[n]),a}let je=function(n){let a=ei(n);return se.useCallback((...l)=>a.current(...l),[a])};function FT(n){let a=n.width/2,l=n.height/2;return{top:n.clientY-l,right:n.clientX+a,bottom:n.clientY+l,left:n.clientX-a}}function ZT(n,a){return!(!n||!a||n.right<a.left||n.left>a.right||n.bottom<a.top||n.top>a.bottom)}function fy({disabled:n=!1}={}){let a=w.useRef(null),[l,o]=w.useState(!1),u=vs(),d=je(()=>{a.current=null,o(!1),u.dispose()}),f=je(h=>{if(u.dispose(),a.current===null){a.current=h.currentTarget,o(!0);{let m=Ji(h.currentTarget);u.addEventListener(m,"pointerup",d,!1),u.addEventListener(m,"pointermove",p=>{if(a.current){let y=FT(p);o(ZT(y,a.current.getBoundingClientRect()))}},!1),u.addEventListener(m,"pointercancel",d,!1)}}});return{pressed:l,pressProps:n?{}:{onPointerDown:f,onPointerUp:d,onClick:d}}}function ti(n){return w.useMemo(()=>n,Object.values(n))}let QT=w.createContext(void 0);function dy(){return w.useContext(QT)}function $f(...n){return Array.from(new Set(n.flatMap(a=>typeof a=="string"?a.split(" "):[]))).filter(Boolean).join(" ")}function _n(n,a,...l){if(n in a){let u=a[n];return typeof u=="function"?u(...l):u}let o=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(a).map(u=>`"${u}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,_n),o}var rr=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(rr||{}),ha=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(ha||{});function At(){let n=JT();return w.useCallback(a=>PT({mergeRefs:n,...a}),[n])}function PT({ourProps:n,theirProps:a,slot:l,defaultTag:o,features:u,visible:d=!0,name:f,mergeRefs:h}){h=h??WT;let m=hy(a,n);if(d)return Xo(m,l,o,f,h);let p=u??0;if(p&2){let{static:y=!1,...b}=m;if(y)return Xo(b,l,o,f,h)}if(p&1){let{unmount:y=!0,...b}=m;return _n(y?0:1,{0(){return null},1(){return Xo({...b,hidden:!0,style:{display:"none"}},l,o,f,h)}})}return Xo(m,l,o,f,h)}function Xo(n,a={},l,o,u){let{as:d=l,children:f,refName:h="ref",...m}=rf(n,["unmount","static"]),p=n.ref!==void 0?{[h]:n.ref}:{},y=typeof f=="function"?f(a):f;"className"in m&&m.className&&typeof m.className=="function"&&(m.className=m.className(a)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let b={};if(a){let S=!1,T=[];for(let[E,j]of Object.entries(a))typeof j=="boolean"&&(S=!0),j===!0&&T.push(E.replace(/([A-Z])/g,C=>`-${C.toLowerCase()}`));if(S){b["data-headlessui-state"]=T.join(" ");for(let E of T)b[`data-${E}`]=""}}if(is(d)&&(Object.keys(Ga(m)).length>0||Object.keys(Ga(b)).length>0))if(!w.isValidElement(y)||Array.isArray(y)&&y.length>1||e2(y)){if(Object.keys(Ga(m)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ga(m)).concat(Object.keys(Ga(b))).map(S=>` - ${S}`).join(`
|
|
50
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
|
|
51
|
+
`)].join(`
|
|
52
|
+
`))}else{let S=y.props,T=S==null?void 0:S.className,E=typeof T=="function"?(...D)=>$f(T(...D),m.className):$f(T,m.className),j=E?{className:E}:{},C=hy(y.props,Ga(rf(m,["ref"])));for(let D in b)D in C&&delete b[D];return w.cloneElement(y,Object.assign({},C,b,p,{ref:u(IT(y),p.ref)},j))}return w.createElement(d,Object.assign({},rf(m,["ref"]),!is(d)&&p,!is(d)&&b),y)}function JT(){let n=w.useRef([]),a=w.useCallback(l=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(l):o.current=l)},[]);return(...l)=>{if(!l.every(o=>o==null))return n.current=l,a}}function WT(...n){return n.every(a=>a==null)?void 0:a=>{for(let l of n)l!=null&&(typeof l=="function"?l(a):l.current=a)}}function hy(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},l={};for(let o of n)for(let u in o)u.startsWith("on")&&typeof o[u]=="function"?(l[u]!=null||(l[u]=[]),l[u].push(o[u])):a[u]=o[u];if(a.disabled||a["aria-disabled"])for(let o in l)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(o)&&(l[o]=[u=>{var d;return(d=u==null?void 0:u.preventDefault)==null?void 0:d.call(u)}]);for(let o in l)Object.assign(a,{[o](u,...d){let f=l[o];for(let h of f){if((u instanceof Event||(u==null?void 0:u.nativeEvent)instanceof Event)&&u.defaultPrevented)return;h(u,...d)}}});return a}function xd(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},l={};for(let o of n)for(let u in o)u.startsWith("on")&&typeof o[u]=="function"?(l[u]!=null||(l[u]=[]),l[u].push(o[u])):a[u]=o[u];for(let o in l)Object.assign(a,{[o](...u){let d=l[o];for(let f of d)f==null||f(...u)}});return a}function ft(n){var a;return Object.assign(w.forwardRef(n),{displayName:(a=n.displayName)!=null?a:n.name})}function Ga(n){let a=Object.assign({},n);for(let l in a)a[l]===void 0&&delete a[l];return a}function rf(n,a=[]){let l=Object.assign({},n);for(let o of a)o in l&&delete l[o];return l}function IT(n){return se.version.split(".")[0]>="19"?n.props.ref:n.ref}function is(n){return n===w.Fragment||n===Symbol.for("react.fragment")}function e2(n){return is(n.type)}let t2="button";function n2(n,a){var l;let o=dy(),{disabled:u=o||!1,autoFocus:d=!1,...f}=n,{isFocusVisible:h,focusProps:m}=uy({autoFocus:d}),{isHovered:p,hoverProps:y}=ry({isDisabled:u}),{pressed:b,pressProps:S}=fy({disabled:u}),T=xd({ref:a,type:(l=f.type)!=null?l:"button",disabled:u||void 0,autoFocus:d},m,y,S),E=ti({disabled:u,hover:p,focus:h,active:b,autofocus:d});return At()({ourProps:T,theirProps:f,slot:E,defaultTag:t2,name:"Button"})}let ys=ft(n2),a2="span";var ur=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(ur||{});function i2(n,a){var l;let{features:o=1,...u}=n,d={ref:a,"aria-hidden":(o&2)===2?!0:(l=u["aria-hidden"])!=null?l:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return At()({ourProps:d,theirProps:u,slot:{},defaultTag:a2,name:"Hidden"})}let Gf=ft(i2);function l2(n){return typeof n!="object"||n===null?!1:"nodeType"in n}function ga(n){return l2(n)&&"tagName"in n}function Ia(n){return ga(n)&&"accessKey"in n}function ma(n){return ga(n)&&"tabIndex"in n}function s2(n){return ga(n)&&"style"in n}function o2(n){return Ia(n)&&n.nodeName==="IFRAME"}function r2(n){return Ia(n)&&n.nodeName==="INPUT"}let my=Symbol();function u2(n,a=!0){return Object.assign(n,{[my]:a})}function gn(...n){let a=w.useRef(n);w.useEffect(()=>{a.current=n},[n]);let l=je(o=>{for(let u of a.current)u!=null&&(typeof u=="function"?u(o):u.current=o)});return n.every(o=>o==null||(o==null?void 0:o[my]))?void 0:l}let Sd=w.createContext(null);Sd.displayName="DescriptionContext";function py(){let n=w.useContext(Sd);if(n===null){let a=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(a,py),a}return n}function c2(){let[n,a]=w.useState([]);return[n.length>0?n.join(" "):void 0,w.useMemo(()=>function(l){let o=je(d=>(a(f=>[...f,d]),()=>a(f=>{let h=f.slice(),m=h.indexOf(d);return m!==-1&&h.splice(m,1),h}))),u=w.useMemo(()=>({register:o,slot:l.slot,name:l.name,props:l.props,value:l.value}),[o,l.slot,l.name,l.props,l.value]);return se.createElement(Sd.Provider,{value:u},l.children)},[a])]}let f2="p";function d2(n,a){let l=w.useId(),o=dy(),{id:u=`headlessui-description-${l}`,...d}=n,f=py(),h=gn(a);Et(()=>f.register(u),[u,f.register]);let m=ti({...f.slot,disabled:o||!1}),p={ref:h,...f.props,id:u};return At()({ourProps:p,theirProps:d,slot:m,defaultTag:f2,name:f.name||"Description"})}let h2=ft(d2),m2=Object.assign(h2,{});var gy=(n=>(n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n))(gy||{});let vy=w.createContext(()=>{});function p2(){return w.useContext(vy)}function g2({value:n,children:a}){return se.createElement(vy.Provider,{value:n},a)}function v2(n,a){let l=p2();return se.createElement(ys,{ref:a,...xd({onClick:l},n)})}let yy=ft(v2),by=class extends Map{constructor(a){super(),this.factory=a}get(a){let l=super.get(a);return l===void 0&&(l=this.factory(a),this.set(a,l)),l}};var y2=Object.defineProperty,b2=(n,a,l)=>a in n?y2(n,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[a]=l,x2=(n,a,l)=>(b2(n,a+"",l),l),xy=(n,a,l)=>{if(!a.has(n))throw TypeError("Cannot "+l)},Qt=(n,a,l)=>(xy(n,a,"read from private field"),l?l.call(n):a.get(n)),uf=(n,a,l)=>{if(a.has(n))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(n):a.set(n,l)},mv=(n,a,l,o)=>(xy(n,a,"write to private field"),a.set(n,l),l),cn,Il,es;let S2=class{constructor(a){uf(this,cn,{}),uf(this,Il,new by(()=>new Set)),uf(this,es,new Set),x2(this,"disposables",Un()),mv(this,cn,a),hn.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Qt(this,cn)}subscribe(a,l){if(hn.isServer)return()=>{};let o={selector:a,callback:l,current:a(Qt(this,cn))};return Qt(this,es).add(o),this.disposables.add(()=>{Qt(this,es).delete(o)})}on(a,l){return hn.isServer?()=>{}:(Qt(this,Il).get(a).add(l),this.disposables.add(()=>{Qt(this,Il).get(a).delete(l)}))}send(a){let l=this.reduce(Qt(this,cn),a);if(l!==Qt(this,cn)){mv(this,cn,l);for(let o of Qt(this,es)){let u=o.selector(Qt(this,cn));Sy(o.current,u)||(o.current=u,o.callback(u))}for(let o of Qt(this,Il).get(a.type))o(Qt(this,cn),a)}}};cn=new WeakMap,Il=new WeakMap,es=new WeakMap;function Sy(n,a){return Object.is(n,a)?!0:typeof n!="object"||n===null||typeof a!="object"||a===null?!1:Array.isArray(n)&&Array.isArray(a)?n.length!==a.length?!1:cf(n[Symbol.iterator](),a[Symbol.iterator]()):n instanceof Map&&a instanceof Map||n instanceof Set&&a instanceof Set?n.size!==a.size?!1:cf(n.entries(),a.entries()):pv(n)&&pv(a)?cf(Object.entries(n)[Symbol.iterator](),Object.entries(a)[Symbol.iterator]()):!1}function cf(n,a){do{let l=n.next(),o=a.next();if(l.done&&o.done)return!0;if(l.done||o.done||!Object.is(l.value,o.value))return!1}while(!0)}function pv(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;let a=Object.getPrototypeOf(n);return a===null||Object.getPrototypeOf(a)===null}var T2=Object.defineProperty,w2=(n,a,l)=>a in n?T2(n,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[a]=l,gv=(n,a,l)=>(w2(n,typeof a!="symbol"?a+"":a,l),l),E2=(n=>(n[n.Push=0]="Push",n[n.Pop=1]="Pop",n))(E2||{});let A2={0(n,a){let l=a.id,o=n.stack,u=n.stack.indexOf(l);if(u!==-1){let d=n.stack.slice();return d.splice(u,1),d.push(l),o=d,{...n,stack:o}}return{...n,stack:[...n.stack,l]}},1(n,a){let l=a.id,o=n.stack.indexOf(l);if(o===-1)return n;let u=n.stack.slice();return u.splice(o,1),{...n,stack:u}}},j2=class Ty extends S2{constructor(){super(...arguments),gv(this,"actions",{push:a=>this.send({type:0,id:a}),pop:a=>this.send({type:1,id:a})}),gv(this,"selectors",{isTop:(a,l)=>a.stack[a.stack.length-1]===l,inStack:(a,l)=>a.stack.includes(l)})}static new(){return new Ty({stack:[]})}reduce(a,l){return _n(l.type,A2,a,l)}};const wy=new by(()=>j2.new());var ff={exports:{}},df={};/**
|
|
53
|
+
* @license React
|
|
54
|
+
* use-sync-external-store-with-selector.production.js
|
|
55
|
+
*
|
|
56
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the MIT license found in the
|
|
59
|
+
* LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/var vv;function N2(){if(vv)return df;vv=1;var n=Sr();function a(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var l=typeof Object.is=="function"?Object.is:a,o=n.useSyncExternalStore,u=n.useRef,d=n.useEffect,f=n.useMemo,h=n.useDebugValue;return df.useSyncExternalStoreWithSelector=function(m,p,y,b,S){var T=u(null);if(T.current===null){var E={hasValue:!1,value:null};T.current=E}else E=T.current;T=f(function(){function C(q){if(!D){if(D=!0,O=q,q=b(q),S!==void 0&&E.hasValue){var Z=E.value;if(S(Z,q))return R=Z}return R=q}if(Z=R,l(O,q))return Z;var F=b(q);return S!==void 0&&S(Z,F)?(O=q,Z):(O=q,R=F)}var D=!1,O,R,B=y===void 0?null:y;return[function(){return C(p())},B===null?void 0:function(){return C(B())}]},[p,y,b,S]);var j=o(m,T[0],T[1]);return d(function(){E.hasValue=!0,E.value=j},[j]),h(j),j},df}var yv;function C2(){return yv||(yv=1,ff.exports=N2()),ff.exports}var M2=C2();function Ey(n,a,l=Sy){return M2.useSyncExternalStoreWithSelector(je(o=>n.subscribe(D2,o)),je(()=>n.state),je(()=>n.state),je(a),l)}function D2(n){return n}function bs(n,a){let l=w.useId(),o=wy.get(a),[u,d]=Ey(o,w.useCallback(f=>[o.selectors.isTop(f,l),o.selectors.inStack(f,l)],[o,l]));return Et(()=>{if(n)return o.actions.push(l),()=>o.actions.pop(l)},[o,n,l]),n?d?u:!0:!1}let Yf=new Map,ls=new Map;function bv(n){var a;let l=(a=ls.get(n))!=null?a:0;return ls.set(n,l+1),l!==0?()=>xv(n):(Yf.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0,()=>xv(n))}function xv(n){var a;let l=(a=ls.get(n))!=null?a:1;if(l===1?ls.delete(n):ls.set(n,l-1),l!==1)return;let o=Yf.get(n);o&&(o["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",o["aria-hidden"]),n.inert=o.inert,Yf.delete(n))}function z2(n,{allowed:a,disallowed:l}={}){let o=bs(n,"inert-others");Et(()=>{var u,d;if(!o)return;let f=Un();for(let m of(u=l==null?void 0:l())!=null?u:[])m&&f.add(bv(m));let h=(d=a==null?void 0:a())!=null?d:[];for(let m of h){if(!m)continue;let p=Ji(m);if(!p)continue;let y=m.parentElement;for(;y&&y!==p.body;){for(let b of y.children)h.some(S=>b.contains(S))||f.add(bv(b));y=y.parentElement}}return f.dispose},[o,a,l])}function O2(n,a,l){let o=ei(u=>{let d=u.getBoundingClientRect();d.x===0&&d.y===0&&d.width===0&&d.height===0&&l()});w.useEffect(()=>{if(!n)return;let u=a===null?null:Ia(a)?a:a.current;if(!u)return;let d=Un();if(typeof ResizeObserver<"u"){let f=new ResizeObserver(()=>o.current(u));f.observe(u),d.add(()=>f.disconnect())}if(typeof IntersectionObserver<"u"){let f=new IntersectionObserver(()=>o.current(u));f.observe(u),d.add(()=>f.disconnect())}return()=>d.dispose()},[a,o,n])}let cr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(n=>`${n}:not([tabindex='-1'])`).join(","),R2=["[data-autofocus]"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var Vn=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n))(Vn||{}),qf=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(qf||{}),L2=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(L2||{});function V2(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(cr)).sort((a,l)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(l.tabIndex||Number.MAX_SAFE_INTEGER)))}function k2(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(R2)).sort((a,l)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(l.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ay=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))(Ay||{});function _2(n,a=0){var l;return n===((l=Ji(n))==null?void 0:l.body)?!1:_n(a,{0(){return n.matches(cr)},1(){let o=n;for(;o!==null;){if(o.matches(cr))return!0;o=o.parentElement}return!1}})}var U2=(n=>(n[n.Keyboard=0]="Keyboard",n[n.Mouse=1]="Mouse",n))(U2||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",n=>{n.metaKey||n.altKey||n.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",n=>{n.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:n.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function kn(n){n==null||n.focus({preventScroll:!0})}let B2=["textarea","input"].join(",");function H2(n){var a,l;return(l=(a=n==null?void 0:n.matches)==null?void 0:a.call(n,B2))!=null?l:!1}function $2(n,a=l=>l){return n.slice().sort((l,o)=>{let u=a(l),d=a(o);if(u===null||d===null)return 0;let f=u.compareDocumentPosition(d);return f&Node.DOCUMENT_POSITION_FOLLOWING?-1:f&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ss(n,a,{sorted:l=!0,relativeTo:o=null,skipElements:u=[]}={}){let d=Array.isArray(n)?n.length>0?Hf(n[0]):document:Hf(n),f=Array.isArray(n)?l?$2(n):n:a&64?k2(n):V2(n);u.length>0&&f.length>1&&(f=f.filter(T=>!u.some(E=>E!=null&&"current"in E?(E==null?void 0:E.current)===T:E===T))),o=o??(d==null?void 0:d.activeElement);let h=(()=>{if(a&5)return 1;if(a&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=(()=>{if(a&1)return 0;if(a&2)return Math.max(0,f.indexOf(o))-1;if(a&4)return Math.max(0,f.indexOf(o))+1;if(a&8)return f.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=a&32?{preventScroll:!0}:{},y=0,b=f.length,S;do{if(y>=b||y+b<=0)return 0;let T=m+y;if(a&16)T=(T+b)%b;else{if(T<0)return 3;if(T>=b)return 1}S=f[T],S==null||S.focus(p),y+=h}while(S!==cy(S));return a&6&&H2(S)&&S.select(),2}function jy(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function G2(){return/Android/gi.test(window.navigator.userAgent)}function Sv(){return jy()||G2()}function Ko(n,a,l,o){let u=ei(l);w.useEffect(()=>{if(!n)return;function d(f){u.current(f)}return document.addEventListener(a,d,o),()=>document.removeEventListener(a,d,o)},[n,a,o])}function Ny(n,a,l,o){let u=ei(l);w.useEffect(()=>{if(!n)return;function d(f){u.current(f)}return window.addEventListener(a,d,o),()=>window.removeEventListener(a,d,o)},[n,a,o])}const Tv=30;function Y2(n,a,l){let o=ei(l),u=w.useCallback(function(h,m){if(h.defaultPrevented)return;let p=m(h);if(p===null||!p.getRootNode().contains(p)||!p.isConnected)return;let y=(function b(S){return typeof S=="function"?b(S()):Array.isArray(S)||S instanceof Set?S:[S]})(a);for(let b of y)if(b!==null&&(b.contains(p)||h.composed&&h.composedPath().includes(b)))return;return!_2(p,Ay.Loose)&&p.tabIndex!==-1&&h.preventDefault(),o.current(h,p)},[o,a]),d=w.useRef(null);Ko(n,"pointerdown",h=>{var m,p;Sv()||(d.current=((p=(m=h.composedPath)==null?void 0:m.call(h))==null?void 0:p[0])||h.target)},!0),Ko(n,"pointerup",h=>{if(Sv()||!d.current)return;let m=d.current;return d.current=null,u(h,()=>m)},!0);let f=w.useRef({x:0,y:0});Ko(n,"touchstart",h=>{f.current.x=h.touches[0].clientX,f.current.y=h.touches[0].clientY},!0),Ko(n,"touchend",h=>{let m={x:h.changedTouches[0].clientX,y:h.changedTouches[0].clientY};if(!(Math.abs(m.x-f.current.x)>=Tv||Math.abs(m.y-f.current.y)>=Tv))return u(h,()=>ma(h.target)?h.target:null)},!0),Ny(n,"blur",h=>u(h,()=>o2(window.document.activeElement)?window.document.activeElement:null),!0)}function Td(...n){return w.useMemo(()=>Ji(...n),[...n])}function Cy(n,a,l,o){let u=ei(l);w.useEffect(()=>{n=n??window;function d(f){u.current(f)}return n.addEventListener(a,d,o),()=>n.removeEventListener(a,d,o)},[n,a,o])}function q2(n){return w.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot)}function X2(n,a){let l=n(),o=new Set;return{getSnapshot(){return l},subscribe(u){return o.add(u),()=>o.delete(u)},dispatch(u,...d){let f=a[u].call(l,...d);f&&(l=f,o.forEach(h=>h()))}}}function K2(){let n;return{before({doc:a}){var l;let o=a.documentElement,u=(l=a.defaultView)!=null?l:window;n=Math.max(0,u.innerWidth-o.clientWidth)},after({doc:a,d:l}){let o=a.documentElement,u=Math.max(0,o.clientWidth-o.offsetWidth),d=Math.max(0,n-u);l.style(o,"paddingRight",`${d}px`)}}}function F2(){return jy()?{before({doc:n,d:a,meta:l}){function o(u){for(let d of l().containers)for(let f of d())if(f.contains(u))return!0;return!1}a.microTask(()=>{var u;if(window.getComputedStyle(n.documentElement).scrollBehavior!=="auto"){let h=Un();h.style(n.documentElement,"scrollBehavior","auto"),a.add(()=>a.microTask(()=>h.dispose()))}let d=(u=window.scrollY)!=null?u:window.pageYOffset,f=null;a.addEventListener(n,"click",h=>{if(ma(h.target))try{let m=h.target.closest("a");if(!m)return;let{hash:p}=new URL(m.href),y=n.querySelector(p);ma(y)&&!o(y)&&(f=y)}catch{}},!0),a.group(h=>{a.addEventListener(n,"touchstart",m=>{if(h.dispose(),ma(m.target)&&s2(m.target))if(o(m.target)){let p=m.target;for(;p.parentElement&&o(p.parentElement);)p=p.parentElement;h.style(p,"overscrollBehavior","contain")}else h.style(m.target,"touchAction","none")})}),a.addEventListener(n,"touchmove",h=>{if(ma(h.target)){if(r2(h.target))return;if(o(h.target)){let m=h.target;for(;m.parentElement&&m.dataset.headlessuiPortal!==""&&!(m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth);)m=m.parentElement;m.dataset.headlessuiPortal===""&&h.preventDefault()}else h.preventDefault()}},{passive:!1}),a.add(()=>{var h;let m=(h=window.scrollY)!=null?h:window.pageYOffset;d!==m&&window.scrollTo(0,d),f&&f.isConnected&&(f.scrollIntoView({block:"nearest"}),f=null)})})}}:{}}function Z2(){return{before({doc:n,d:a}){a.style(n.documentElement,"overflow","hidden")}}}function wv(n){let a={};for(let l of n)Object.assign(a,l(a));return a}let Fa=X2(()=>new Map,{PUSH(n,a){var l;let o=(l=this.get(n))!=null?l:{doc:n,count:0,d:Un(),meta:new Set,computedMeta:{}};return o.count++,o.meta.add(a),o.computedMeta=wv(o.meta),this.set(n,o),this},POP(n,a){let l=this.get(n);return l&&(l.count--,l.meta.delete(a),l.computedMeta=wv(l.meta)),this},SCROLL_PREVENT(n){let a={doc:n.doc,d:n.d,meta(){return n.computedMeta}},l=[F2(),K2(),Z2()];l.forEach(({before:o})=>o==null?void 0:o(a)),l.forEach(({after:o})=>o==null?void 0:o(a))},SCROLL_ALLOW({d:n}){n.dispose()},TEARDOWN({doc:n}){this.delete(n)}});Fa.subscribe(()=>{let n=Fa.getSnapshot(),a=new Map;for(let[l]of n)a.set(l,l.documentElement.style.overflow);for(let l of n.values()){let o=a.get(l.doc)==="hidden",u=l.count!==0;(u&&!o||!u&&o)&&Fa.dispatch(l.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",l),l.count===0&&Fa.dispatch("TEARDOWN",l)}});function Q2(n,a,l=()=>({containers:[]})){let o=q2(Fa),u=a?o.get(a):void 0,d=u?u.count>0:!1;return Et(()=>{if(!(!a||!n))return Fa.dispatch("PUSH",a,l),()=>Fa.dispatch("POP",a,l)},[n,a]),d}function P2(n,a,l=()=>[document.body]){let o=bs(n,"scroll-lock");Q2(o,a,u=>{var d;return{containers:[...(d=u.containers)!=null?d:[],l]}})}function J2(n=0){let[a,l]=w.useState(n),o=w.useCallback(m=>l(m),[]),u=w.useCallback(m=>l(p=>p|m),[]),d=w.useCallback(m=>(a&m)===m,[a]),f=w.useCallback(m=>l(p=>p&~m),[]),h=w.useCallback(m=>l(p=>p^m),[]);return{flags:a,setFlag:o,addFlag:u,hasFlag:d,removeFlag:f,toggleFlag:h}}var W2={},Ev,Av;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Ev=process==null?void 0:W2)==null?void 0:Ev.NODE_ENV)==="test"&&typeof((Av=Element==null?void 0:Element.prototype)==null?void 0:Av.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
61
|
+
`)),[]});var I2=(n=>(n[n.None=0]="None",n[n.Closed=1]="Closed",n[n.Enter=2]="Enter",n[n.Leave=4]="Leave",n))(I2||{});function ew(n){let a={};for(let l in n)n[l]===!0&&(a[`data-${l}`]="");return a}function tw(n,a,l,o){let[u,d]=w.useState(l),{hasFlag:f,addFlag:h,removeFlag:m}=J2(n&&u?3:0),p=w.useRef(!1),y=w.useRef(!1),b=vs();return Et(()=>{var S;if(n){if(l&&d(!0),!a){l&&h(3);return}return(S=o==null?void 0:o.start)==null||S.call(o,l),nw(a,{inFlight:p,prepare(){y.current?y.current=!1:y.current=p.current,p.current=!0,!y.current&&(l?(h(3),m(4)):(h(4),m(2)))},run(){y.current?l?(m(3),h(4)):(m(4),h(3)):l?m(1):h(1)},done(){var T;y.current&&lw(a)||(p.current=!1,m(7),l||d(!1),(T=o==null?void 0:o.end)==null||T.call(o,l))}})}},[n,l,a,b]),n?[u,{closed:f(1),enter:f(2),leave:f(4),transition:f(2)||f(4)}]:[l,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function nw(n,{prepare:a,run:l,done:o,inFlight:u}){let d=Un();return iw(n,{prepare:a,inFlight:u}),d.nextFrame(()=>{l(),d.requestAnimationFrame(()=>{d.add(aw(n,o))})}),d.dispose}function aw(n,a){var l,o;let u=Un();if(!n)return u.dispose;let d=!1;u.add(()=>{d=!0});let f=(o=(l=n.getAnimations)==null?void 0:l.call(n).filter(h=>h instanceof CSSTransition))!=null?o:[];return f.length===0?(a(),u.dispose):(Promise.allSettled(f.map(h=>h.finished)).then(()=>{d||a()}),u.dispose)}function iw(n,{inFlight:a,prepare:l}){if(a!=null&&a.current){l();return}let o=n.style.transition;n.style.transition="none",l(),n.offsetHeight,n.style.transition=o}function lw(n){var a,l;return((l=(a=n.getAnimations)==null?void 0:a.call(n))!=null?l:[]).some(o=>o instanceof CSSTransition&&o.playState!=="finished")}function wd(n,a){let l=w.useRef([]),o=je(n);w.useEffect(()=>{let u=[...l.current];for(let[d,f]of a.entries())if(l.current[d]!==f){let h=o(a,u);return l.current=a,h}},[o,...a])}let Er=w.createContext(null);Er.displayName="OpenClosedContext";var an=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(an||{});function Ar(){return w.useContext(Er)}function sw({value:n,children:a}){return se.createElement(Er.Provider,{value:n},a)}function ow({children:n}){return se.createElement(Er.Provider,{value:null},n)}function rw(n){function a(){document.readyState!=="loading"&&(n(),document.removeEventListener("DOMContentLoaded",a))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",a),a())}let da=[];rw(()=>{function n(a){if(!ma(a.target)||a.target===document.body||da[0]===a.target)return;let l=a.target;l=l.closest(cr),da.unshift(l??a.target),da=da.filter(o=>o!=null&&o.isConnected),da.splice(10)}window.addEventListener("click",n,{capture:!0}),window.addEventListener("mousedown",n,{capture:!0}),window.addEventListener("focus",n,{capture:!0}),document.body.addEventListener("click",n,{capture:!0}),document.body.addEventListener("mousedown",n,{capture:!0}),document.body.addEventListener("focus",n,{capture:!0})});function My(n){let a=je(n),l=w.useRef(!1);w.useEffect(()=>(l.current=!1,()=>{l.current=!0,wr(()=>{l.current&&a()})}),[a])}let Dy=w.createContext(!1);function uw(){return w.useContext(Dy)}function jv(n){return se.createElement(Dy.Provider,{value:n.force},n.children)}function cw(n){let a=uw(),l=w.useContext(Oy),[o,u]=w.useState(()=>{var d;if(!a&&l!==null)return(d=l.current)!=null?d:null;if(hn.isServer)return null;let f=n==null?void 0:n.getElementById("headlessui-portal-root");if(f)return f;if(n===null)return null;let h=n.createElement("div");return h.setAttribute("id","headlessui-portal-root"),n.body.appendChild(h)});return w.useEffect(()=>{o!==null&&(n!=null&&n.body.contains(o)||n==null||n.body.appendChild(o))},[o,n]),w.useEffect(()=>{a||l!==null&&u(l.current)},[l,u,a]),o}let zy=w.Fragment,fw=ft(function(n,a){let{ownerDocument:l=null,...o}=n,u=w.useRef(null),d=gn(u2(S=>{u.current=S}),a),f=Td(u.current),h=l??f,m=cw(h),p=w.useContext(Xf),y=vs(),b=At();return My(()=>{var S;m&&m.childNodes.length<=0&&((S=m.parentElement)==null||S.removeChild(m))}),m?DT.createPortal(se.createElement("div",{"data-headlessui-portal":"",ref:S=>{y.dispose(),p&&S&&y.add(p.register(S))}},b({ourProps:{ref:d},theirProps:o,slot:{},defaultTag:zy,name:"Portal"})),m):null});function dw(n,a){let l=gn(a),{enabled:o=!0,ownerDocument:u,...d}=n,f=At();return o?se.createElement(fw,{...d,ownerDocument:u,ref:l}):f({ourProps:{ref:l},theirProps:d,slot:{},defaultTag:zy,name:"Portal"})}let hw=w.Fragment,Oy=w.createContext(null);function mw(n,a){let{target:l,...o}=n,u={ref:gn(a)},d=At();return se.createElement(Oy.Provider,{value:l},d({ourProps:u,theirProps:o,defaultTag:hw,name:"Popover.Group"}))}let Xf=w.createContext(null);function pw(){let n=w.useContext(Xf),a=w.useRef([]),l=je(d=>(a.current.push(d),n&&n.register(d),()=>o(d))),o=je(d=>{let f=a.current.indexOf(d);f!==-1&&a.current.splice(f,1),n&&n.unregister(d)}),u=w.useMemo(()=>({register:l,unregister:o,portals:a}),[l,o,a]);return[a,w.useMemo(()=>function({children:d}){return se.createElement(Xf.Provider,{value:u},d)},[u])]}let gw=ft(dw),Ry=ft(mw),vw=Object.assign(gw,{Group:Ry}),yw=w.Fragment;function bw(n,a){let{...l}=n,o=!1,{isFocusVisible:u,focusProps:d}=uy(),{isHovered:f,hoverProps:h}=ry({isDisabled:o}),{pressed:m,pressProps:p}=fy({disabled:o}),y=xd({ref:a},d,h,p),b=ti({hover:f,focus:u,active:m});return At()({ourProps:y,theirProps:l,slot:b,defaultTag:yw,name:"DataInteractive"})}let xw=ft(bw);function Sw(n,a=typeof document<"u"?document.defaultView:null,l){let o=bs(n,"escape");Cy(a,"keydown",u=>{o&&(u.defaultPrevented||u.key===gy.Escape&&l(u))})}function Tw(){var n;let[a]=w.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[l,o]=w.useState((n=a==null?void 0:a.matches)!=null?n:!1);return Et(()=>{if(!a)return;function u(d){o(d.matches)}return a.addEventListener("change",u),()=>a.removeEventListener("change",u)},[a]),l}function ww({defaultContainers:n=[],portals:a,mainTreeNode:l}={}){let o=je(()=>{var u,d;let f=Ji(l),h=[];for(let m of n)m!==null&&(ga(m)?h.push(m):"current"in m&&ga(m.current)&&h.push(m.current));if(a!=null&&a.current)for(let m of a.current)h.push(m);for(let m of(u=f==null?void 0:f.querySelectorAll("html > *, body > *"))!=null?u:[])m!==document.body&&m!==document.head&&ga(m)&&m.id!=="headlessui-portal-root"&&(l&&(m.contains(l)||m.contains((d=l==null?void 0:l.getRootNode())==null?void 0:d.host))||h.some(p=>m.contains(p))||h.push(m));return h});return{resolveContainers:o,contains:je(u=>o().some(d=>d.contains(u)))}}let Ly=w.createContext(null);function Nv({children:n,node:a}){let[l,o]=w.useState(null),u=Vy(a??l);return se.createElement(Ly.Provider,{value:u},n,u===null&&se.createElement(Gf,{features:ur.Hidden,ref:d=>{var f,h;if(d){for(let m of(h=(f=Ji(d))==null?void 0:f.querySelectorAll("html > *, body > *"))!=null?h:[])if(m!==document.body&&m!==document.head&&ga(m)&&m!=null&&m.contains(d)){o(m);break}}}}))}function Vy(n=null){var a;return(a=w.useContext(Ly))!=null?a:n}function Ew(){let n=typeof document>"u";return"useSyncExternalStore"in sv?(a=>a.useSyncExternalStore)(sv)(()=>()=>{},()=>!1,()=>!n):!1}function jr(){let n=Ew(),[a,l]=w.useState(hn.isHandoffComplete);return a&&hn.isHandoffComplete===!1&&l(!1),w.useEffect(()=>{a!==!0&&l(!0)},[a]),w.useEffect(()=>hn.handoff(),[]),n?!1:a}function Ed(){let n=w.useRef(!1);return Et(()=>(n.current=!0,()=>{n.current=!1}),[]),n}var ts=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(ts||{});function Aw(){let n=w.useRef(0);return Ny(!0,"keydown",a=>{a.key==="Tab"&&(n.current=a.shiftKey?1:0)},!0),n}function ky(n){if(!n)return new Set;if(typeof n=="function")return new Set(n());let a=new Set;for(let l of n.current)ga(l.current)&&a.add(l.current);return a}let jw="div";var qa=(n=>(n[n.None=0]="None",n[n.InitialFocus=1]="InitialFocus",n[n.TabLock=2]="TabLock",n[n.FocusLock=4]="FocusLock",n[n.RestoreFocus=8]="RestoreFocus",n[n.AutoFocus=16]="AutoFocus",n))(qa||{});function Nw(n,a){let l=w.useRef(null),o=gn(l,a),{initialFocus:u,initialFocusFallback:d,containers:f,features:h=15,...m}=n;jr()||(h=0);let p=Td(l.current);zw(h,{ownerDocument:p});let y=Ow(h,{ownerDocument:p,container:l,initialFocus:u,initialFocusFallback:d});Rw(h,{ownerDocument:p,container:l,containers:f,previousActiveElement:y});let b=Aw(),S=je(O=>{if(!Ia(l.current))return;let R=l.current;(B=>B())(()=>{_n(b.current,{[ts.Forwards]:()=>{ss(R,Vn.First,{skipElements:[O.relatedTarget,d]})},[ts.Backwards]:()=>{ss(R,Vn.Last,{skipElements:[O.relatedTarget,d]})}})})}),T=bs(!!(h&2),"focus-trap#tab-lock"),E=vs(),j=w.useRef(!1),C={ref:o,onKeyDown(O){O.key=="Tab"&&(j.current=!0,E.requestAnimationFrame(()=>{j.current=!1}))},onBlur(O){if(!(h&4))return;let R=ky(f);Ia(l.current)&&R.add(l.current);let B=O.relatedTarget;ma(B)&&B.dataset.headlessuiFocusGuard!=="true"&&(_y(R,B)||(j.current?ss(l.current,_n(b.current,{[ts.Forwards]:()=>Vn.Next,[ts.Backwards]:()=>Vn.Previous})|Vn.WrapAround,{relativeTo:O.target}):ma(O.target)&&kn(O.target)))}},D=At();return se.createElement(se.Fragment,null,T&&se.createElement(Gf,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ur.Focusable}),D({ourProps:C,theirProps:m,defaultTag:jw,name:"FocusTrap"}),T&&se.createElement(Gf,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ur.Focusable}))}let Cw=ft(Nw),Mw=Object.assign(Cw,{features:qa});function Dw(n=!0){let a=w.useRef(da.slice());return wd(([l],[o])=>{o===!0&&l===!1&&wr(()=>{a.current.splice(0)}),o===!1&&l===!0&&(a.current=da.slice())},[n,da,a]),je(()=>{var l;return(l=a.current.find(o=>o!=null&&o.isConnected))!=null?l:null})}function zw(n,{ownerDocument:a}){let l=!!(n&8),o=Dw(l);wd(()=>{l||KT(a==null?void 0:a.body)&&kn(o())},[l]),My(()=>{l&&kn(o())})}function Ow(n,{ownerDocument:a,container:l,initialFocus:o,initialFocusFallback:u}){let d=w.useRef(null),f=bs(!!(n&1),"focus-trap#initial-focus"),h=Ed();return wd(()=>{if(n===0)return;if(!f){u!=null&&u.current&&kn(u.current);return}let m=l.current;m&&wr(()=>{if(!h.current)return;let p=a==null?void 0:a.activeElement;if(o!=null&&o.current){if((o==null?void 0:o.current)===p){d.current=p;return}}else if(m.contains(p)){d.current=p;return}if(o!=null&&o.current)kn(o.current);else{if(n&16){if(ss(m,Vn.First|Vn.AutoFocus)!==qf.Error)return}else if(ss(m,Vn.First)!==qf.Error)return;if(u!=null&&u.current&&(kn(u.current),(a==null?void 0:a.activeElement)===u.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}d.current=a==null?void 0:a.activeElement})},[u,f,n]),d}function Rw(n,{ownerDocument:a,container:l,containers:o,previousActiveElement:u}){let d=Ed(),f=!!(n&4);Cy(a==null?void 0:a.defaultView,"focus",h=>{if(!f||!d.current)return;let m=ky(o);Ia(l.current)&&m.add(l.current);let p=u.current;if(!p)return;let y=h.target;Ia(y)?_y(m,y)?(u.current=y,kn(y)):(h.preventDefault(),h.stopPropagation(),kn(p)):kn(u.current)},!0)}function _y(n,a){for(let l of n)if(l.contains(a))return!0;return!1}function Uy(n){var a;return!!(n.enter||n.enterFrom||n.enterTo||n.leave||n.leaveFrom||n.leaveTo)||!is((a=n.as)!=null?a:Hy)||se.Children.count(n.children)===1}let Nr=w.createContext(null);Nr.displayName="TransitionContext";var Lw=(n=>(n.Visible="visible",n.Hidden="hidden",n))(Lw||{});function Vw(){let n=w.useContext(Nr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}function kw(){let n=w.useContext(Cr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}let Cr=w.createContext(null);Cr.displayName="NestingContext";function Mr(n){return"children"in n?Mr(n.children):n.current.filter(({el:a})=>a.current!==null).filter(({state:a})=>a==="visible").length>0}function By(n,a){let l=ei(n),o=w.useRef([]),u=Ed(),d=vs(),f=je((T,E=ha.Hidden)=>{let j=o.current.findIndex(({el:C})=>C===T);j!==-1&&(_n(E,{[ha.Unmount](){o.current.splice(j,1)},[ha.Hidden](){o.current[j].state="hidden"}}),d.microTask(()=>{var C;!Mr(o)&&u.current&&((C=l.current)==null||C.call(l))}))}),h=je(T=>{let E=o.current.find(({el:j})=>j===T);return E?E.state!=="visible"&&(E.state="visible"):o.current.push({el:T,state:"visible"}),()=>f(T,ha.Unmount)}),m=w.useRef([]),p=w.useRef(Promise.resolve()),y=w.useRef({enter:[],leave:[]}),b=je((T,E,j)=>{m.current.splice(0),a&&(a.chains.current[E]=a.chains.current[E].filter(([C])=>C!==T)),a==null||a.chains.current[E].push([T,new Promise(C=>{m.current.push(C)})]),a==null||a.chains.current[E].push([T,new Promise(C=>{Promise.all(y.current[E].map(([D,O])=>O)).then(()=>C())})]),E==="enter"?p.current=p.current.then(()=>a==null?void 0:a.wait.current).then(()=>j(E)):j(E)}),S=je((T,E,j)=>{Promise.all(y.current[E].splice(0).map(([C,D])=>D)).then(()=>{var C;(C=m.current.shift())==null||C()}).then(()=>j(E))});return w.useMemo(()=>({children:o,register:h,unregister:f,onStart:b,onStop:S,wait:p,chains:y}),[h,f,o,b,S,y,p])}let Hy=w.Fragment,$y=rr.RenderStrategy;function _w(n,a){var l,o;let{transition:u=!0,beforeEnter:d,afterEnter:f,beforeLeave:h,afterLeave:m,enter:p,enterFrom:y,enterTo:b,entered:S,leave:T,leaveFrom:E,leaveTo:j,...C}=n,[D,O]=w.useState(null),R=w.useRef(null),B=Uy(n),q=gn(...B?[R,a,O]:a===null?[]:[a]),Z=(l=C.unmount)==null||l?ha.Unmount:ha.Hidden,{show:F,appear:te,initial:he}=Vw(),[J,oe]=w.useState(F?"visible":"hidden"),me=kw(),{register:Oe,unregister:Ne}=me;Et(()=>Oe(R),[Oe,R]),Et(()=>{if(Z===ha.Hidden&&R.current){if(F&&J!=="visible"){oe("visible");return}return _n(J,{hidden:()=>Ne(R),visible:()=>Oe(R)})}},[J,R,Oe,Ne,F,Z]);let Re=jr();Et(()=>{if(B&&Re&&J==="visible"&&R.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[R,J,Re,B]);let U=he&&!te,K=te&&F&&he,Q=w.useRef(!1),ie=By(()=>{Q.current||(oe("hidden"),Ne(R))},me),fe=je(xe=>{Q.current=!0;let Fe=xe?"enter":"leave";ie.onStart(R,Fe,Le=>{Le==="enter"?d==null||d():Le==="leave"&&(h==null||h())})}),N=je(xe=>{let Fe=xe?"enter":"leave";Q.current=!1,ie.onStop(R,Fe,Le=>{Le==="enter"?f==null||f():Le==="leave"&&(m==null||m())}),Fe==="leave"&&!Mr(ie)&&(oe("hidden"),Ne(R))});w.useEffect(()=>{B&&u||(fe(F),N(F))},[F,B,u]);let G=!(!u||!B||!Re||U),[,X]=tw(G,D,F,{start:fe,end:N}),P=Ga({ref:q,className:((o=$f(C.className,K&&p,K&&y,X.enter&&p,X.enter&&X.closed&&y,X.enter&&!X.closed&&b,X.leave&&T,X.leave&&!X.closed&&E,X.leave&&X.closed&&j,!X.transition&&F&&S))==null?void 0:o.trim())||void 0,...ew(X)}),le=0;J==="visible"&&(le|=an.Open),J==="hidden"&&(le|=an.Closed),F&&J==="hidden"&&(le|=an.Opening),!F&&J==="visible"&&(le|=an.Closing);let de=At();return se.createElement(Cr.Provider,{value:ie},se.createElement(sw,{value:le},de({ourProps:P,theirProps:C,defaultTag:Hy,features:$y,visible:J==="visible",name:"Transition.Child"})))}function Uw(n,a){let{show:l,appear:o=!1,unmount:u=!0,...d}=n,f=w.useRef(null),h=Uy(n),m=gn(...h?[f,a]:a===null?[]:[a]);jr();let p=Ar();if(l===void 0&&p!==null&&(l=(p&an.Open)===an.Open),l===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,b]=w.useState(l?"visible":"hidden"),S=By(()=>{l||b("hidden")}),[T,E]=w.useState(!0),j=w.useRef([l]);Et(()=>{T!==!1&&j.current[j.current.length-1]!==l&&(j.current.push(l),E(!1))},[j,l]);let C=w.useMemo(()=>({show:l,appear:o,initial:T}),[l,o,T]);Et(()=>{l?b("visible"):!Mr(S)&&f.current!==null&&b("hidden")},[l,S]);let D={unmount:u},O=je(()=>{var q;T&&E(!1),(q=n.beforeEnter)==null||q.call(n)}),R=je(()=>{var q;T&&E(!1),(q=n.beforeLeave)==null||q.call(n)}),B=At();return se.createElement(Cr.Provider,{value:S},se.createElement(Nr.Provider,{value:C},B({ourProps:{...D,as:w.Fragment,children:se.createElement(Gy,{ref:m,...D,...d,beforeEnter:O,beforeLeave:R})},theirProps:{},defaultTag:w.Fragment,features:$y,visible:y==="visible",name:"Transition"})))}function Bw(n,a){let l=w.useContext(Nr)!==null,o=Ar()!==null;return se.createElement(se.Fragment,null,!l&&o?se.createElement(Kf,{ref:a,...n}):se.createElement(Gy,{ref:a,...n}))}let Kf=ft(Uw),Gy=ft(_w),Ad=ft(Bw),Hw=Object.assign(Kf,{Child:Ad,Root:Kf});var $w=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))($w||{}),Gw=(n=>(n[n.SetTitleId=0]="SetTitleId",n))(Gw||{});let Yw={0(n,a){return n.titleId===a.id?n:{...n,titleId:a.id}}},jd=w.createContext(null);jd.displayName="DialogContext";function Dr(n){let a=w.useContext(jd);if(a===null){let l=new Error(`<${n} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,Dr),l}return a}function qw(n,a){return _n(a.type,Yw,n,a)}let Cv=ft(function(n,a){let l=w.useId(),{id:o=`headlessui-dialog-${l}`,open:u,onClose:d,initialFocus:f,role:h="dialog",autoFocus:m=!0,__demoMode:p=!1,unmount:y=!1,...b}=n,S=w.useRef(!1);h=(function(){return h==="dialog"||h==="alertdialog"?h:(S.current||(S.current=!0,console.warn(`Invalid role [${h}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let T=Ar();u===void 0&&T!==null&&(u=(T&an.Open)===an.Open);let E=w.useRef(null),j=gn(E,a),C=Td(E.current),D=u?0:1,[O,R]=w.useReducer(qw,{titleId:null,descriptionId:null,panelRef:w.createRef()}),B=je(()=>d(!1)),q=je(X=>R({type:0,id:X})),Z=jr()?D===0:!1,[F,te]=pw(),he={get current(){var X;return(X=O.panelRef.current)!=null?X:E.current}},J=Vy(),{resolveContainers:oe}=ww({mainTreeNode:J,portals:F,defaultContainers:[he]}),me=T!==null?(T&an.Closing)===an.Closing:!1;z2(p||me?!1:Z,{allowed:je(()=>{var X,P;return[(P=(X=E.current)==null?void 0:X.closest("[data-headlessui-portal]"))!=null?P:null]}),disallowed:je(()=>{var X;return[(X=J==null?void 0:J.closest("body > *:not(#headlessui-portal-root)"))!=null?X:null]})});let Oe=wy.get(null);Et(()=>{if(Z)return Oe.actions.push(o),()=>Oe.actions.pop(o)},[Oe,o,Z]);let Ne=Ey(Oe,w.useCallback(X=>Oe.selectors.isTop(X,o),[Oe,o]));Y2(Ne,oe,X=>{X.preventDefault(),B()}),Sw(Ne,C==null?void 0:C.defaultView,X=>{X.preventDefault(),X.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),B()}),P2(p||me?!1:Z,C,oe),O2(Z,E,B);let[Re,U]=c2(),K=w.useMemo(()=>[{dialogState:D,close:B,setTitleId:q,unmount:y},O],[D,B,q,y,O]),Q=ti({open:D===0}),ie={ref:j,id:o,role:h,tabIndex:-1,"aria-modal":p?void 0:D===0?!0:void 0,"aria-labelledby":O.titleId,"aria-describedby":Re,unmount:y},fe=!Tw(),N=qa.None;Z&&!p&&(N|=qa.RestoreFocus,N|=qa.TabLock,m&&(N|=qa.AutoFocus),fe&&(N|=qa.InitialFocus));let G=At();return se.createElement(ow,null,se.createElement(jv,{force:!0},se.createElement(vw,null,se.createElement(jd.Provider,{value:K},se.createElement(Ry,{target:E},se.createElement(jv,{force:!1},se.createElement(U,{slot:Q},se.createElement(te,null,se.createElement(Mw,{initialFocus:f,initialFocusFallback:E,containers:oe,features:N},se.createElement(g2,{value:B},G({ourProps:ie,theirProps:b,slot:Q,defaultTag:Xw,features:Kw,visible:D===0,name:"Dialog"})))))))))))}),Xw="div",Kw=rr.RenderStrategy|rr.Static;function Fw(n,a){let{transition:l=!1,open:o,...u}=n,d=Ar(),f=n.hasOwnProperty("open")||d!==null,h=n.hasOwnProperty("onClose");if(!f&&!h)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!f)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!h)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!d&&typeof n.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n.open}`);if(typeof n.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${n.onClose}`);return(o!==void 0||l)&&!u.static?se.createElement(Nv,null,se.createElement(Hw,{show:o,transition:l,unmount:u.unmount},se.createElement(Cv,{ref:a,...u}))):se.createElement(Nv,null,se.createElement(Cv,{ref:a,open:o,...u}))}let Zw="div";function Qw(n,a){let l=w.useId(),{id:o=`headlessui-dialog-panel-${l}`,transition:u=!1,...d}=n,[{dialogState:f,unmount:h},m]=Dr("Dialog.Panel"),p=gn(a,m.panelRef),y=ti({open:f===0}),b=je(C=>{C.stopPropagation()}),S={ref:p,id:o,onClick:b},T=u?Ad:w.Fragment,E=u?{unmount:h}:{},j=At();return se.createElement(T,{...E},j({ourProps:S,theirProps:d,slot:y,defaultTag:Zw,name:"Dialog.Panel"}))}let Pw="div";function Jw(n,a){let{transition:l=!1,...o}=n,[{dialogState:u,unmount:d}]=Dr("Dialog.Backdrop"),f=ti({open:u===0}),h={ref:a,"aria-hidden":!0},m=l?Ad:w.Fragment,p=l?{unmount:d}:{},y=At();return se.createElement(m,{...p},y({ourProps:h,theirProps:o,slot:f,defaultTag:Pw,name:"Dialog.Backdrop"}))}let Ww="h2";function Iw(n,a){let l=w.useId(),{id:o=`headlessui-dialog-title-${l}`,...u}=n,[{dialogState:d,setTitleId:f}]=Dr("Dialog.Title"),h=gn(a);w.useEffect(()=>(f(o),()=>f(null)),[o,f]);let m=ti({open:d===0}),p={ref:h,id:o};return At()({ourProps:p,theirProps:u,slot:m,defaultTag:Ww,name:"Dialog.Title"})}let eE=ft(Fw),Yy=ft(Qw),tE=ft(Jw),nE=ft(Iw),aE=Object.assign(eE,{Panel:Yy,Title:nE,Description:m2});const fr=w.createContext({});function iE(n){const a=w.useRef(null);return a.current===null&&(a.current=n()),a.current}const lE=typeof window<"u",qy=lE?w.useLayoutEffect:w.useEffect,Nd=w.createContext(null);function Cd(n,a){n.indexOf(a)===-1&&n.push(a)}function dr(n,a){const l=n.indexOf(a);l>-1&&n.splice(l,1)}const pn=(n,a,l)=>l>a?a:l<n?n:l;let Md=()=>{};const va={},Xy=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Ky(n){return typeof n=="object"&&n!==null}const Fy=n=>/^0[^.\s]+$/u.test(n);function Zy(n){let a;return()=>(a===void 0&&(a=n()),a)}const Jt=n=>n,sE=(n,a)=>l=>a(n(l)),xs=(...n)=>n.reduce(sE),ds=(n,a,l)=>{const o=a-n;return o===0?1:(l-n)/o};class Dd{constructor(){this.subscriptions=[]}add(a){return Cd(this.subscriptions,a),()=>dr(this.subscriptions,a)}notify(a,l,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,l,o);else for(let d=0;d<u;d++){const f=this.subscriptions[d];f&&f(a,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ut=n=>n*1e3,Pt=n=>n/1e3;function Qy(n,a){return a?n*(1e3/a):0}const Py=(n,a,l)=>(((1-3*l+3*a)*n+(3*l-6*a))*n+3*a)*n,oE=1e-7,rE=12;function uE(n,a,l,o,u){let d,f,h=0;do f=a+(l-a)/2,d=Py(f,o,u)-n,d>0?l=f:a=f;while(Math.abs(d)>oE&&++h<rE);return f}function Ss(n,a,l,o){if(n===a&&l===o)return Jt;const u=d=>uE(d,0,1,n,l);return d=>d===0||d===1?d:Py(u(d),a,o)}const Jy=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,Wy=n=>a=>1-n(1-a),Iy=Ss(.33,1.53,.69,.99),zd=Wy(Iy),eb=Jy(zd),tb=n=>n>=1?1:(n*=2)<1?.5*zd(n):.5*(2-Math.pow(2,-10*(n-1))),Od=n=>1-Math.sin(Math.acos(n)),nb=Wy(Od),ab=Jy(Od),cE=Ss(.42,0,1,1),fE=Ss(0,0,.58,1),ib=Ss(.42,0,.58,1),dE=n=>Array.isArray(n)&&typeof n[0]!="number",lb=n=>Array.isArray(n)&&typeof n[0]=="number",hE={linear:Jt,easeIn:cE,easeInOut:ib,easeOut:fE,circIn:Od,circInOut:ab,circOut:nb,backIn:zd,backInOut:eb,backOut:Iy,anticipate:tb},mE=n=>typeof n=="string",Mv=n=>{if(lb(n)){Md(n.length===4);const[a,l,o,u]=n;return Ss(a,l,o,u)}else if(mE(n))return hE[n];return n},Fo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pE(n,a){let l=new Set,o=new Set,u=!1,d=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(y){f.has(y)&&(p.schedule(y),n()),y(h)}const p={schedule:(y,b=!1,S=!1)=>{const E=S&&u?l:o;return b&&f.add(y),E.add(y),y},cancel:y=>{o.delete(y),f.delete(y)},process:y=>{if(h=y,u){d=!0;return}u=!0;const b=l;l=o,o=b,l.forEach(m),l.clear(),u=!1,d&&(d=!1,p.process(y))}};return p}const gE=40;function sb(n,a){let l=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>l=!0,f=Fo.reduce((R,B)=>(R[B]=pE(d),R),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:y,update:b,preRender:S,render:T,postRender:E}=f,j=()=>{const R=va.useManualTiming,B=R?u.timestamp:performance.now();l=!1,R||(u.delta=o?1e3/60:Math.max(Math.min(B-u.timestamp,gE),1)),u.timestamp=B,u.isProcessing=!0,h.process(u),m.process(u),p.process(u),y.process(u),b.process(u),S.process(u),T.process(u),E.process(u),u.isProcessing=!1,l&&a&&(o=!1,n(j))},C=()=>{l=!0,o=!0,u.isProcessing||n(j)};return{schedule:Fo.reduce((R,B)=>{const q=f[B];return R[B]=(Z,F=!1,te=!1)=>(l||C(),q.schedule(Z,F,te)),R},{}),cancel:R=>{for(let B=0;B<Fo.length;B++)f[Fo[B]].cancel(R)},state:u,steps:f}}const{schedule:ze,cancel:ya,state:ut,steps:hf}=sb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Jt,!0);let Io;function vE(){Io=void 0}const pt={now:()=>(Io===void 0&&pt.set(ut.isProcessing||va.useManualTiming?ut.timestamp:performance.now()),Io),set:n=>{Io=n,queueMicrotask(vE)}},ob=n=>a=>typeof a=="string"&&a.startsWith(n),rb=ob("--"),yE=ob("var(--"),Rd=n=>yE(n)?bE.test(n.split("/*")[0].trim()):!1,bE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Dv(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Wi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},hs={...Wi,transform:n=>pn(0,1,n)},Zo={...Wi,default:1},os=n=>Math.round(n*1e5)/1e5,Ld=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xE(n){return n==null}const SE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vd=(n,a)=>l=>!!(typeof l=="string"&&SE.test(l)&&l.startsWith(n)||a&&!xE(l)&&Object.prototype.hasOwnProperty.call(l,a)),ub=(n,a,l)=>o=>{if(typeof o!="string")return o;const[u,d,f,h]=o.match(Ld);return{[n]:parseFloat(u),[a]:parseFloat(d),[l]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},TE=n=>pn(0,255,n),mf={...Wi,transform:n=>Math.round(TE(n))},Za={test:Vd("rgb","red"),parse:ub("red","green","blue"),transform:({red:n,green:a,blue:l,alpha:o=1})=>"rgba("+mf.transform(n)+", "+mf.transform(a)+", "+mf.transform(l)+", "+os(hs.transform(o))+")"};function wE(n){let a="",l="",o="",u="";return n.length>5?(a=n.substring(1,3),l=n.substring(3,5),o=n.substring(5,7),u=n.substring(7,9)):(a=n.substring(1,2),l=n.substring(2,3),o=n.substring(3,4),u=n.substring(4,5),a+=a,l+=l,o+=o,u+=u),{red:parseInt(a,16),green:parseInt(l,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const Ff={test:Vd("#"),parse:wE,transform:Za.transform},Ts=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ca=Ts("deg"),mn=Ts("%"),I=Ts("px"),EE=Ts("vh"),AE=Ts("vw"),zv={...mn,parse:n=>mn.parse(n)/100,transform:n=>mn.transform(n*100)},Gi={test:Vd("hsl","hue"),parse:ub("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:l,alpha:o=1})=>"hsla("+Math.round(n)+", "+mn.transform(os(a))+", "+mn.transform(os(l))+", "+os(hs.transform(o))+")"},We={test:n=>Za.test(n)||Ff.test(n)||Gi.test(n),parse:n=>Za.test(n)?Za.parse(n):Gi.test(n)?Gi.parse(n):Ff.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Za.transform(n):Gi.transform(n),getAnimatableNone:n=>{const a=We.parse(n);return a.alpha=0,We.transform(a)}},jE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function NE(n){var a,l;return isNaN(n)&&typeof n=="string"&&(((a=n.match(Ld))==null?void 0:a.length)||0)+(((l=n.match(jE))==null?void 0:l.length)||0)>0}const cb="number",fb="color",CE="var",ME="var(",Ov="${}",DE=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fi(n){const a=n.toString(),l=[],o={color:[],number:[],var:[]},u=[];let d=0;const h=a.replace(DE,m=>(We.test(m)?(o.color.push(d),u.push(fb),l.push(We.parse(m))):m.startsWith(ME)?(o.var.push(d),u.push(CE),l.push(m)):(o.number.push(d),u.push(cb),l.push(parseFloat(m))),++d,Ov)).split(Ov);return{values:l,split:h,indexes:o,types:u}}function zE(n){return Fi(n).values}function db({split:n,types:a}){const l=n.length;return o=>{let u="";for(let d=0;d<l;d++)if(u+=n[d],o[d]!==void 0){const f=a[d];f===cb?u+=os(o[d]):f===fb?u+=We.transform(o[d]):u+=o[d]}return u}}function OE(n){return db(Fi(n))}const RE=n=>typeof n=="number"?0:We.test(n)?We.getAnimatableNone(n):n,LE=(n,a)=>typeof n=="number"?a!=null&&a.trim().endsWith("/")?n:0:RE(n);function VE(n){const a=Fi(n);return db(a)(a.values.map((o,u)=>LE(o,a.split[u])))}const ln={test:NE,parse:zE,createTransformer:OE,getAnimatableNone:VE};function pf(n,a,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?n+(a-n)*6*l:l<1/2?a:l<2/3?n+(a-n)*(2/3-l)*6:n}function kE({hue:n,saturation:a,lightness:l,alpha:o}){n/=360,a/=100,l/=100;let u=0,d=0,f=0;if(!a)u=d=f=l;else{const h=l<.5?l*(1+a):l+a-l*a,m=2*l-h;u=pf(m,h,n+1/3),d=pf(m,h,n),f=pf(m,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function hr(n,a){return l=>l>0?a:n}const Ue=(n,a,l)=>n+(a-n)*l,gf=(n,a,l)=>{const o=n*n,u=l*(a*a-o)+o;return u<0?0:Math.sqrt(u)},_E=[Ff,Za,Gi],UE=n=>_E.find(a=>a.test(n));function Rv(n){const a=UE(n);if(!a)return!1;let l=a.parse(n);return a===Gi&&(l=kE(l)),l}const Lv=(n,a)=>{const l=Rv(n),o=Rv(a);if(!l||!o)return hr(n,a);const u={...l};return d=>(u.red=gf(l.red,o.red,d),u.green=gf(l.green,o.green,d),u.blue=gf(l.blue,o.blue,d),u.alpha=Ue(l.alpha,o.alpha,d),Za.transform(u))},Zf=new Set(["none","hidden"]);function BE(n,a){return Zf.has(n)?l=>l<=0?n:a:l=>l>=1?a:n}function HE(n,a){return l=>Ue(n,a,l)}function kd(n){return typeof n=="number"?HE:typeof n=="string"?Rd(n)?hr:We.test(n)?Lv:YE:Array.isArray(n)?hb:typeof n=="object"?We.test(n)?Lv:$E:hr}function hb(n,a){const l=[...n],o=l.length,u=n.map((d,f)=>kd(d)(d,a[f]));return d=>{for(let f=0;f<o;f++)l[f]=u[f](d);return l}}function $E(n,a){const l={...n,...a},o={};for(const u in l)n[u]!==void 0&&a[u]!==void 0&&(o[u]=kd(n[u])(n[u],a[u]));return u=>{for(const d in o)l[d]=o[d](u);return l}}function GE(n,a){const l=[],o={color:0,var:0,number:0};for(let u=0;u<a.values.length;u++){const d=a.types[u],f=n.indexes[d][o[d]],h=n.values[f]??0;l[u]=h,o[d]++}return l}const YE=(n,a)=>{const l=ln.createTransformer(a),o=Fi(n),u=Fi(a);return o.indexes.var.length===u.indexes.var.length&&o.indexes.color.length===u.indexes.color.length&&o.indexes.number.length>=u.indexes.number.length?Zf.has(n)&&!u.values.length||Zf.has(a)&&!o.values.length?BE(n,a):xs(hb(GE(o,u),u.values),l):hr(n,a)};function mb(n,a,l){return typeof n=="number"&&typeof a=="number"&&typeof l=="number"?Ue(n,a,l):kd(n)(n,a)}const qE=n=>{const a=({timestamp:l})=>n(l);return{start:(l=!0)=>ze.update(a,l),stop:()=>ya(a),now:()=>ut.isProcessing?ut.timestamp:pt.now()}},pb=(n,a,l=10)=>{let o="";const u=Math.max(Math.round(a/l),2);for(let d=0;d<u;d++)o+=Math.round(n(d/(u-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},mr=2e4;function _d(n){let a=0;const l=50;let o=n.next(a);for(;!o.done&&a<mr;)a+=l,o=n.next(a);return a>=mr?1/0:a}function XE(n,a=100,l){const o=l({...n,keyframes:[0,a]}),u=Math.min(_d(o),mr);return{type:"keyframes",ease:d=>o.next(u*d).value/a,duration:Pt(u)}}const Ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Qf(n,a){return n*Math.sqrt(1-a*a)}const KE=12;function FE(n,a,l){let o=l;for(let u=1;u<KE;u++)o=o-n(o)/a(o);return o}const vf=.001;function ZE({duration:n=Ye.duration,bounce:a=Ye.bounce,velocity:l=Ye.velocity,mass:o=Ye.mass}){let u,d,f=1-a;f=pn(Ye.minDamping,Ye.maxDamping,f),n=pn(Ye.minDuration,Ye.maxDuration,Pt(n)),f<1?(u=p=>{const y=p*f,b=y*n,S=y-l,T=Qf(p,f),E=Math.exp(-b);return vf-S/T*E},d=p=>{const b=p*f*n,S=b*l+l,T=Math.pow(f,2)*Math.pow(p,2)*n,E=Math.exp(-b),j=Qf(Math.pow(p,2),f);return(-u(p)+vf>0?-1:1)*((S-T)*E)/j}):(u=p=>{const y=Math.exp(-p*n),b=(p-l)*n+1;return-vf+y*b},d=p=>{const y=Math.exp(-p*n),b=(l-p)*(n*n);return y*b});const h=5/n,m=FE(u,d,h);if(n=Ut(n),isNaN(m))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:n};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:n}}}const QE=["duration","bounce"],PE=["stiffness","damping","mass"];function Vv(n,a){return a.some(l=>n[l]!==void 0)}function JE(n){let a={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...n};if(!Vv(n,PE)&&Vv(n,QE))if(a.velocity=0,n.visualDuration){const l=n.visualDuration,o=2*Math.PI/(l*1.2),u=o*o,d=2*pn(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:Ye.mass,stiffness:u,damping:d}}else{const l=ZE({...n,velocity:0});a={...a,...l,mass:Ye.mass},a.isResolvedFromDuration=!0}return a}function pr(n=Ye.visualDuration,a=Ye.bounce){const l=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:o,restDelta:u}=l;const d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],h={done:!1,value:d},{stiffness:m,damping:p,mass:y,duration:b,velocity:S,isResolvedFromDuration:T}=JE({...l,velocity:-Pt(l.velocity||0)}),E=S||0,j=p/(2*Math.sqrt(m*y)),C=f-d,D=Pt(Math.sqrt(m/y)),O=Math.abs(C)<5;o||(o=O?Ye.restSpeed.granular:Ye.restSpeed.default),u||(u=O?Ye.restDelta.granular:Ye.restDelta.default);let R,B,q,Z,F,te;if(j<1)q=Qf(D,j),Z=(E+j*D*C)/q,R=J=>{const oe=Math.exp(-j*D*J);return f-oe*(Z*Math.sin(q*J)+C*Math.cos(q*J))},F=j*D*Z+C*q,te=j*D*C-Z*q,B=J=>Math.exp(-j*D*J)*(F*Math.sin(q*J)+te*Math.cos(q*J));else if(j===1){R=oe=>f-Math.exp(-D*oe)*(C+(E+D*C)*oe);const J=E+D*C;B=oe=>Math.exp(-D*oe)*(D*J*oe-E)}else{const J=D*Math.sqrt(j*j-1);R=Ne=>{const Re=Math.exp(-j*D*Ne),U=Math.min(J*Ne,300);return f-Re*((E+j*D*C)*Math.sinh(U)+J*C*Math.cosh(U))/J};const oe=(E+j*D*C)/J,me=j*D*oe-C*J,Oe=j*D*C-oe*J;B=Ne=>{const Re=Math.exp(-j*D*Ne),U=Math.min(J*Ne,300);return Re*(me*Math.sinh(U)+Oe*Math.cosh(U))}}const he={calculatedDuration:T&&b||null,velocity:J=>Ut(B(J)),next:J=>{if(!T&&j<1){const me=Math.exp(-j*D*J),Oe=Math.sin(q*J),Ne=Math.cos(q*J),Re=f-me*(Z*Oe+C*Ne),U=Ut(me*(F*Oe+te*Ne));return h.done=Math.abs(U)<=o&&Math.abs(f-Re)<=u,h.value=h.done?f:Re,h}const oe=R(J);if(T)h.done=J>=b;else{const me=Ut(B(J));h.done=Math.abs(me)<=o&&Math.abs(f-oe)<=u}return h.value=h.done?f:oe,h},toString:()=>{const J=Math.min(_d(he),mr),oe=pb(me=>he.next(J*me).value,J,30);return J+"ms "+oe},toTransition:()=>{}};return he}pr.applyToOptions=n=>{const a=XE(n,100,pr);return n.ease=a.ease,n.duration=Ut(a.duration),n.type="keyframes",n};const WE=5;function gb(n,a,l){const o=Math.max(a-WE,0);return Qy(l-n(o),a-o)}function Pf({keyframes:n,velocity:a=0,power:l=.8,timeConstant:o=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:f,min:h,max:m,restDelta:p=.5,restSpeed:y}){const b=n[0],S={done:!1,value:b},T=te=>h!==void 0&&te<h||m!==void 0&&te>m,E=te=>h===void 0?m:m===void 0||Math.abs(h-te)<Math.abs(m-te)?h:m;let j=l*a;const C=b+j,D=f===void 0?C:f(C);D!==C&&(j=D-b);const O=te=>-j*Math.exp(-te/o),R=te=>D+O(te),B=te=>{const he=O(te),J=R(te);S.done=Math.abs(he)<=p,S.value=S.done?D:J};let q,Z;const F=te=>{T(S.value)&&(q=te,Z=pr({keyframes:[S.value,E(S.value)],velocity:gb(R,te,S.value),damping:u,stiffness:d,restDelta:p,restSpeed:y}))};return F(0),{calculatedDuration:null,next:te=>{let he=!1;return!Z&&q===void 0&&(he=!0,B(te),F(te)),q!==void 0&&te>=q?Z.next(te-q):(!he&&B(te),S)}}}function IE(n,a,l){const o=[],u=l||va.mix||mb,d=n.length-1;for(let f=0;f<d;f++){let h=u(n[f],n[f+1]);if(a){const m=Array.isArray(a)?a[f]||Jt:a;h=xs(m,h)}o.push(h)}return o}function e5(n,a,{clamp:l=!0,ease:o,mixer:u}={}){const d=n.length;if(Md(d===a.length),d===1)return()=>a[0];if(d===2&&a[0]===a[1])return()=>a[1];const f=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=IE(a,o,u),m=h.length,p=y=>{if(f&&y<n[0])return a[0];let b=0;if(m>1)for(;b<n.length-2&&!(y<n[b+1]);b++);const S=ds(n[b],n[b+1],y);return h[b](S)};return l?y=>p(pn(n[0],n[d-1],y)):p}function t5(n,a){const l=n[n.length-1];for(let o=1;o<=a;o++){const u=ds(0,a,o);n.push(Ue(l,1,u))}}function n5(n){const a=[0];return t5(a,n.length-1),a}function a5(n,a){return n.map(l=>l*a)}function i5(n,a){return n.map(()=>a||ib).splice(0,n.length-1)}function rs({duration:n=300,keyframes:a,times:l,ease:o="easeInOut"}){const u=dE(o)?o.map(Mv):Mv(o),d={done:!1,value:a[0]},f=a5(l&&l.length===a.length?l:n5(a),n),h=e5(f,a,{ease:Array.isArray(u)?u:i5(a,u)});return{calculatedDuration:n,next:m=>(d.value=h(m),d.done=m>=n,d)}}const l5=n=>n!==null;function zr(n,{repeat:a,repeatType:l="loop"},o,u=1){const d=n.filter(l5),h=u<0||a&&l!=="loop"&&a%2===1?0:d.length-1;return!h||o===void 0?d[h]:o}const s5={decay:Pf,inertia:Pf,tween:rs,keyframes:rs,spring:pr};function vb(n){typeof n.type=="string"&&(n.type=s5[n.type])}class Ud{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,l){return this.finished.then(a,l)}}const o5=n=>n/100;class gr extends Ud{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var o,u;const{motionValue:l}=this.options;l&&l.updatedAt!==pt.now()&&this.tick(pt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(o=this.options).onStop)==null||u.call(o))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;vb(a);const{type:l=rs,repeat:o=0,repeatDelay:u=0,repeatType:d,velocity:f=0}=a;let{keyframes:h}=a;const m=l||rs;m!==rs&&typeof h[0]!="number"&&(this.mixKeyframes=xs(o5,mb(h[0],h[1])),h=[0,100]);const p=m({...a,keyframes:h});d==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=_d(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(o+1)-u,this.generator=p}updateTime(a){const l=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(a,l=!1){const{generator:o,totalDuration:u,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:y,repeat:b,repeatType:S,repeatDelay:T,type:E,onUpdate:j,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-u/this.speed,this.startTime)),l?this.currentTime=a:this.updateTime(a);const D=this.currentTime-p*(this.playbackSpeed>=0?1:-1),O=this.playbackSpeed>=0?D<0:D>u;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let R=this.currentTime,B=o;if(b){const te=Math.min(this.currentTime,u)/h;let he=Math.floor(te),J=te%1;!J&&te>=1&&(J=1),J===1&&he--,he=Math.min(he,b+1),!!(he%2)&&(S==="reverse"?(J=1-J,T&&(J-=T/h)):S==="mirror"&&(B=f)),R=pn(0,1,J)*h}let q;O?(this.delayState.value=y[0],q=this.delayState):q=B.next(R),d&&!O&&(q.value=d(q.value));let{done:Z}=q;!O&&m!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return F&&E!==Pf&&(q.value=zr(y,this.options,C,this.speed)),j&&j(q.value),F&&this.finish(),q}then(a,l){return this.finished.then(a,l)}get duration(){return Pt(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Pt(a)}get time(){return Pt(this.currentTime)}set time(a){a=Ut(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){const a=this.currentTime;if(a<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(a);const l=this.generator.next(a).value;return gb(o=>this.generator.next(o).value,a,l)}get speed(){return this.playbackSpeed}set speed(a){const l=this.playbackSpeed!==a;l&&this.driver&&this.updateTime(pt.now()),this.playbackSpeed=a,l&&this.driver&&(this.time=Pt(this.currentTime))}play(){var u,d;if(this.isStopped)return;const{driver:a=qE,startTime:l}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),(d=(u=this.options).onPlay)==null||d.call(u);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=l??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(pt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(a=this.options).onComplete)==null||l.call(a)}cancel(){var a,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(a=this.options).onCancel)==null||l.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),a.observe(this)}}function r5(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const Qa=n=>n*180/Math.PI,Jf=n=>{const a=Qa(Math.atan2(n[1],n[0]));return Wf(a)},u5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Jf,rotateZ:Jf,skewX:n=>Qa(Math.atan(n[1])),skewY:n=>Qa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Wf=n=>(n=n%360,n<0&&(n+=360),n),kv=Jf,_v=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Uv=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),c5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_v,scaleY:Uv,scale:n=>(_v(n)+Uv(n))/2,rotateX:n=>Wf(Qa(Math.atan2(n[6],n[5]))),rotateY:n=>Wf(Qa(Math.atan2(-n[2],n[0]))),rotateZ:kv,rotate:kv,skewX:n=>Qa(Math.atan(n[4])),skewY:n=>Qa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function If(n){return n.includes("scale")?1:0}function ed(n,a){if(!n||n==="none")return If(a);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,u;if(l)o=c5,u=l;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=u5,u=h}if(!u)return If(a);const d=o[a],f=u[1].split(",").map(d5);return typeof d=="function"?d(f):f[d]}const f5=(n,a)=>{const{transform:l="none"}=getComputedStyle(n);return ed(l,a)};function d5(n){return parseFloat(n.trim())}const Ii=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],el=new Set(Ii),Bv=n=>n===Wi||n===I,h5=new Set(["x","y","z"]),m5=Ii.filter(n=>!h5.has(n));function p5(n){const a=[];return m5.forEach(l=>{const o=n.getValue(l);o!==void 0&&(a.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),a}const pa={width:({x:n},{paddingLeft:a="0",paddingRight:l="0",boxSizing:o})=>{const u=n.max-n.min;return o==="border-box"?u:u-parseFloat(a)-parseFloat(l)},height:({y:n},{paddingTop:a="0",paddingBottom:l="0",boxSizing:o})=>{const u=n.max-n.min;return o==="border-box"?u:u-parseFloat(a)-parseFloat(l)},top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>ed(a,"x"),y:(n,{transform:a})=>ed(a,"y")};pa.translateX=pa.x;pa.translateY=pa.y;const Pa=new Set;let td=!1,nd=!1,ad=!1;function yb(){if(nd){const n=Array.from(Pa).filter(o=>o.needsMeasurement),a=new Set(n.map(o=>o.element)),l=new Map;a.forEach(o=>{const u=p5(o);u.length&&(l.set(o,u),o.render())}),n.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const u=l.get(o);u&&u.forEach(([d,f])=>{var h;(h=o.getValue(d))==null||h.set(f)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}nd=!1,td=!1,Pa.forEach(n=>n.complete(ad)),Pa.clear()}function bb(){Pa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(nd=!0)})}function g5(){ad=!0,bb(),yb(),ad=!1}class Bd{constructor(a,l,o,u,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=l,this.name=o,this.motionValue=u,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Pa.add(this),td||(td=!0,ze.read(bb),ze.resolveKeyframes(yb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:l,element:o,motionValue:u}=this;if(a[0]===null){const d=u==null?void 0:u.get(),f=a[a.length-1];if(d!==void 0)a[0]=d;else if(o&&l){const h=o.readValue(l,f);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=f),u&&d===void 0&&u.set(a[0])}r5(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Pa.delete(this)}cancel(){this.state==="scheduled"&&(Pa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const v5=n=>n.startsWith("--");function xb(n,a,l){v5(a)?n.style.setProperty(a,l):n.style[a]=l}const y5={};function Sb(n,a){const l=Zy(n);return()=>y5[a]??l()}const b5=Sb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Tb=Sb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ns=([n,a,l,o])=>`cubic-bezier(${n}, ${a}, ${l}, ${o})`,Hv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ns([0,.65,.55,1]),circOut:ns([.55,0,1,.45]),backIn:ns([.31,.01,.66,-.59]),backOut:ns([.33,1.53,.69,.99])};function wb(n,a){if(n)return typeof n=="function"?Tb()?pb(n,a):"ease-out":lb(n)?ns(n):Array.isArray(n)?n.map(l=>wb(l,a)||Hv.easeOut):Hv[n]}function x5(n,a,l,{delay:o=0,duration:u=300,repeat:d=0,repeatType:f="loop",ease:h="easeOut",times:m}={},p=void 0){const y={[a]:l};m&&(y.offset=m);const b=wb(h,u);Array.isArray(b)&&(y.easing=b);const S={delay:o,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(y,S)}function Eb(n){return typeof n=="function"&&"applyToOptions"in n}function S5({type:n,...a}){return Eb(n)&&Tb()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class Ab extends Ud{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:l,name:o,keyframes:u,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=a,Md(typeof a.type!="string");const p=S5(a);this.animation=x5(l,o,u,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const y=zr(u,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(y),xb(l,o,y),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,l;(l=(a=this.animation).finish)==null||l.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,o,u;const a=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((u=(o=this.animation).commitStyles)==null||u.call(o))}get duration(){var l,o;const a=((o=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:o.call(l).duration)||0;return Pt(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Pt(a)}get time(){return Pt(Number(this.animation.currentTime)||0)}set time(a){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ut(a),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,rangeStart:l,rangeEnd:o,observe:u}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&b5()?(this.animation.timeline=a,l&&(this.animation.rangeStart=l),o&&(this.animation.rangeEnd=o),Jt):u(this)}}const jb={anticipate:tb,backInOut:eb,circInOut:ab};function T5(n){return n in jb}function w5(n){typeof n.ease=="string"&&T5(n.ease)&&(n.ease=jb[n.ease])}const yf=10;class E5 extends Ab{constructor(a){w5(a),vb(a),super(a),a.startTime!==void 0&&a.autoplay!==!1&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:l,onUpdate:o,onComplete:u,element:d,...f}=this.options;if(!l)return;if(a!==void 0){l.set(a);return}const h=new gr({...f,autoplay:!1}),m=Math.max(yf,pt.now()-this.startTime),p=pn(0,yf,m-yf),y=h.sample(m).value,{name:b}=this.options;d&&b&&xb(d,b,y),l.setWithVelocity(h.sample(Math.max(0,m-p)).value,y,p),h.stop()}}const $v=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(ln.test(n)||n==="0")&&!n.startsWith("url("));function A5(n){const a=n[0];if(n.length===1)return!0;for(let l=0;l<n.length;l++)if(n[l]!==a)return!0}function j5(n,a,l,o){const u=n[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const d=n[n.length-1],f=$v(u,a),h=$v(d,a);return!f||!h?!1:A5(n)||(l==="spring"||Eb(l))&&o}function id(n){n.duration=0,n.type="keyframes"}const Nb=new Set(["opacity","clipPath","filter","transform"]),N5=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function C5(n){for(let a=0;a<n.length;a++)if(typeof n[a]=="string"&&N5.test(n[a]))return!0;return!1}const M5=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),D5=Zy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z5(n){var b;const{motionValue:a,name:l,repeatDelay:o,repeatType:u,damping:d,type:f,keyframes:h}=n;if(!(((b=a==null?void 0:a.owner)==null?void 0:b.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:y}=a.owner.getProps();return D5()&&l&&(Nb.has(l)||M5.has(l)&&C5(h))&&(l!=="transform"||!y)&&!p&&!o&&u!=="mirror"&&d!==0&&f!=="inertia"}const O5=40;class R5 extends Ud{constructor({autoplay:a=!0,delay:l=0,type:o="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:f="loop",keyframes:h,name:m,motionValue:p,element:y,...b}){var E;super(),this.stop=()=>{var j,C;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=pt.now();const S={autoplay:a,delay:l,type:o,repeat:u,repeatDelay:d,repeatType:f,name:m,motionValue:p,element:y,...b},T=(y==null?void 0:y.KeyframeResolver)||Bd;this.keyframeResolver=new T(h,(j,C,D)=>this.onKeyframesResolved(j,C,S,!D),m,p,y),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(a,l,o,u){var D,O;this.keyframeResolver=void 0;const{name:d,type:f,velocity:h,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=pt.now();let b=!0;j5(a,d,f,h)||(b=!1,(va.instantAnimations||!m)&&(y==null||y(zr(a,o,l))),a[0]=a[a.length-1],id(o),o.repeat=0);const T={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>O5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:a},E=b&&!p&&z5(T),j=(O=(D=T.motionValue)==null?void 0:D.owner)==null?void 0:O.current;let C;if(E)try{C=new E5({...T,element:j})}catch{C=new gr(T)}else C=new gr(T);C.finished.then(()=>{this.notifyFinished()}).catch(Jt),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(a,l){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),g5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function Cb(n,a,l,o=0,u=1){const d=Array.from(n).sort((p,y)=>p.sortNodePosition(y)).indexOf(a),f=n.size,h=(f-1)*o;return typeof l=="function"?l(d,f):u===1?d*o:h-d*o}const L5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V5(n){const a=L5.exec(n);if(!a)return[,];const[,l,o,u]=a;return[`--${l??o}`,u]}function Mb(n,a,l=1){const[o,u]=V5(n);if(!o)return;const d=window.getComputedStyle(a).getPropertyValue(o);if(d){const f=d.trim();return Xy(f)?parseFloat(f):f}return Rd(u)?Mb(u,a,l+1):u}const k5={type:"spring",stiffness:500,damping:25,restSpeed:10},_5=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),U5={type:"keyframes",duration:.8},B5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H5=(n,{keyframes:a})=>a.length>2?U5:el.has(n)?n.startsWith("scale")?_5(a[1]):k5:B5;function Db(n,a){if(n!=null&&n.inherit&&a){const{inherit:l,...o}=n;return{...a,...o}}return n}function Hd(n,a){const l=(n==null?void 0:n[a])??(n==null?void 0:n.default)??n;return l!==n?Db(l,n):l}const $5=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function G5(n){for(const a in n)if(!$5.has(a))return!0;return!1}const $d=(n,a,l,o={},u,d)=>f=>{const h=Hd(o,n)||{},m=h.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Ut(m);const y={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:S=>{a.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:d?void 0:u};G5(h)||Object.assign(y,H5(n,y)),y.duration&&(y.duration=Ut(y.duration)),y.repeatDelay&&(y.repeatDelay=Ut(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(id(y),y.delay===0&&(b=!0)),(va.instantAnimations||va.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(b=!0,id(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,b&&!d&&a.get()!==void 0){const S=zr(y.keyframes,h);if(S!==void 0){ze.update(()=>{y.onUpdate(S),y.onComplete()});return}}return h.isSync?new gr(y):new R5(y)};function Gv(n){const a=[{},{}];return n==null||n.values.forEach((l,o)=>{a[0][o]=l.get(),a[1][o]=l.getVelocity()}),a}function Gd(n,a,l,o){if(typeof a=="function"){const[u,d]=Gv(o);a=a(l!==void 0?l:n.custom,u,d)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[u,d]=Gv(o);a=a(l!==void 0?l:n.custom,u,d)}return a}function Ja(n,a,l){const o=n.getProps();return Gd(o,a,l!==void 0?l:o.custom,n)}const zb=new Set(["width","height","top","left","right","bottom",...Ii]),Yv=30,Y5=n=>!isNaN(parseFloat(n));class q5{constructor(a,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const u=pt.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=l.owner}setCurrent(a){this.current=a,this.updatedAt=pt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=Y5(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,l){this.events[a]||(this.events[a]=new Dd);const o=this.events[a].add(l);return a==="change"?()=>{o(),ze.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,l){this.passiveEffect=a,this.stopPassiveEffect=l}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,l,o){this.set(l),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,l=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=pt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Yv)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Yv);return Qy(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(a){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=a(l),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var a,l;(a=this.dependents)==null||a.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zi(n,a){return new q5(n,a)}const ld=n=>Array.isArray(n);function X5(n,a,l){n.hasValue(a)?n.getValue(a).set(l):n.addValue(a,Zi(l))}function K5(n){return ld(n)?n[n.length-1]||0:n}function F5(n,a){const l=Ja(n,a);let{transitionEnd:o={},transition:u={},...d}=l||{};d={...d,...o};for(const f in d){const h=K5(d[f]);X5(n,f,h)}}const ct=n=>!!(n&&n.getVelocity);function Z5(n){return!!(ct(n)&&n.add)}function sd(n,a){const l=n.getValue("willChange");if(Z5(l))return l.add(a);if(!l&&va.WillChange){const o=new va.WillChange("auto");n.addValue("willChange",o),o.add(a)}}function Yd(n){return n.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const Q5="framerAppearId",Ob="data-"+Yd(Q5);function Rb(n){return n.props[Ob]}function P5({protectedKeys:n,needsAnimating:a},l){const o=n.hasOwnProperty(l)&&a[l]!==!0;return a[l]=!1,o}function Lb(n,a,{delay:l=0,transitionOverride:o,type:u}={}){let{transition:d,transitionEnd:f,...h}=a;const m=n.getDefaultTransition();d=d?Db(d,m):m;const p=d==null?void 0:d.reduceMotion;o&&(d=o);const y=[],b=u&&n.animationState&&n.animationState.getState()[u];for(const S in h){const T=n.getValue(S,n.latestValues[S]??null),E=h[S];if(E===void 0||b&&P5(b,S))continue;const j={delay:l,...Hd(d||{},S)},C=T.get();if(C!==void 0&&!T.isAnimating()&&!Array.isArray(E)&&E===C&&!j.velocity){ze.update(()=>T.set(E));continue}let D=!1;if(window.MotionHandoffAnimation){const B=Rb(n);if(B){const q=window.MotionHandoffAnimation(B,S,ze);q!==null&&(j.startTime=q,D=!0)}}sd(n,S);const O=p??n.shouldReduceMotion;T.start($d(S,T,E,O&&zb.has(S)?{type:!1}:j,n,D));const R=T.animation;R&&y.push(R)}if(f){const S=()=>ze.update(()=>{f&&F5(n,f)});y.length?Promise.all(y).then(S):S()}return y}function od(n,a,l={}){var m;const o=Ja(n,a,l.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=o||{};l.transitionOverride&&(u=l.transitionOverride);const d=o?()=>Promise.all(Lb(n,o,l)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:b,staggerDirection:S}=u;return J5(n,a,p,y,b,S,l)}:()=>Promise.resolve(),{when:h}=u;if(h){const[p,y]=h==="beforeChildren"?[d,f]:[f,d];return p().then(()=>y())}else return Promise.all([d(),f(l.delay)])}function J5(n,a,l=0,o=0,u=0,d=1,f){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),h.push(od(m,a,{...f,delay:l+(typeof o=="function"?0:o)+Cb(n.variantChildren,m,o,u,d)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function W5(n,a,l={}){n.notify("AnimationStart",a);let o;if(Array.isArray(a)){const u=a.map(d=>od(n,d,l));o=Promise.all(u)}else if(typeof a=="string")o=od(n,a,l);else{const u=typeof a=="function"?Ja(n,a,l.custom):a;o=Promise.all(Lb(n,u,l))}return o.then(()=>{n.notify("AnimationComplete",a)})}const I5={test:n=>n==="auto",parse:n=>n},Vb=n=>a=>a.test(n),kb=[Wi,I,mn,ca,AE,EE,I5],qv=n=>kb.find(Vb(n));function eA(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Fy(n):!0}const tA=new Set(["brightness","contrast","saturate","opacity"]);function nA(n){const[a,l]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[o]=l.match(Ld)||[];if(!o)return n;const u=l.replace(o,"");let d=tA.has(a)?1:0;return o!==l&&(d*=100),a+"("+d+u+")"}const aA=/\b([a-z-]*)\(.*?\)/gu,rd={...ln,getAnimatableNone:n=>{const a=n.match(aA);return a?a.map(nA).join(" "):n}},ud={...ln,getAnimatableNone:n=>{const a=ln.parse(n);return ln.createTransformer(n)(a.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Xv={...Wi,transform:Math.round},iA={rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scale:Zo,scaleX:Zo,scaleY:Zo,scaleZ:Zo,skew:ca,skewX:ca,skewY:ca,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:hs,originX:zv,originY:zv,originZ:I},qd={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...iA,zIndex:Xv,fillOpacity:hs,strokeOpacity:hs,numOctaves:Xv},lA={...qd,color:We,backgroundColor:We,outlineColor:We,fill:We,stroke:We,borderColor:We,borderTopColor:We,borderRightColor:We,borderBottomColor:We,borderLeftColor:We,filter:rd,WebkitFilter:rd,mask:ud,WebkitMask:ud},_b=n=>lA[n],sA=new Set([rd,ud]);function Ub(n,a){let l=_b(n);return sA.has(l)||(l=ln),l.getAnimatableNone?l.getAnimatableNone(a):void 0}const oA=new Set(["auto","none","0"]);function rA(n,a,l){let o=0,u;for(;o<n.length&&!u;){const d=n[o];typeof d=="string"&&!oA.has(d)&&Fi(d).values.length&&(u=n[o]),o++}if(u&&l)for(const d of a)n[d]=Ub(l,u)}class uA extends Bd{constructor(a,l,o,u,d){super(a,l,o,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:l,name:o}=this;if(!l||!l.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let b=a[y];if(typeof b=="string"&&(b=b.trim(),Rd(b))){const S=Mb(b,l.current);S!==void 0&&(a[y]=S),y===a.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!zb.has(o)||a.length!==2)return;const[u,d]=a,f=qv(u),h=qv(d),m=Dv(u),p=Dv(d);if(m!==p&&pa[o]){this.needsMeasurement=!0;return}if(f!==h)if(Bv(f)&&Bv(h))for(let y=0;y<a.length;y++){const b=a[y];typeof b=="string"&&(a[y]=parseFloat(b))}else pa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:l}=this,o=[];for(let u=0;u<a.length;u++)(a[u]===null||eA(a[u]))&&o.push(u);o.length&&rA(a,o,l)}measureInitialState(){const{element:a,unresolvedKeyframes:l,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pa[o](a.measureViewportBox(),window.getComputedStyle(a.current)),l[0]=this.measuredOrigin;const u=l[l.length-1];u!==void 0&&a.getValue(o,u).jump(u,!1)}measureEndState(){var h;const{element:a,name:l,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const u=a.getValue(l);u&&u.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=pa[l](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,p])=>{a.getValue(m).set(p)}),this.resolveNoneKeyframes()}}function Bb(n,a,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const u=(l==null?void 0:l[n])??o.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(o=>o!=null)}const Hb=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function cA(n){return Ky(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Xd}=sb(queueMicrotask,!1),nn={x:!1,y:!1};function $b(){return nn.x||nn.y}function fA(n){return n==="x"||n==="y"?nn[n]?null:(nn[n]=!0,()=>{nn[n]=!1}):nn.x||nn.y?null:(nn.x=nn.y=!0,()=>{nn.x=nn.y=!1})}function Gb(n,a){const l=Bb(n),o=new AbortController,u={passive:!0,...a,signal:o.signal};return[l,u,()=>o.abort()]}function dA(n){return!(n.pointerType==="touch"||$b())}function hA(n,a,l={}){const[o,u,d]=Gb(n,l);return o.forEach(f=>{let h=!1,m=!1,p;const y=()=>{f.removeEventListener("pointerleave",E)},b=C=>{p&&(p(C),p=void 0),y()},S=C=>{h=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),m&&(m=!1,b(C))},T=()=>{h=!0,window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",S,u)},E=C=>{if(C.pointerType!=="touch"){if(h){m=!0;return}b(C)}},j=C=>{if(!dA(C))return;m=!1;const D=a(f,C);typeof D=="function"&&(p=D,f.addEventListener("pointerleave",E,u))};f.addEventListener("pointerenter",j,u),f.addEventListener("pointerdown",T,u)}),d}const Yb=(n,a)=>a?n===a?!0:Yb(n,a.parentElement):!1,Kd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,mA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pA(n){return mA.has(n.tagName)||n.isContentEditable===!0}const gA=new Set(["INPUT","SELECT","TEXTAREA"]);function vA(n){return gA.has(n.tagName)||n.isContentEditable===!0}const er=new WeakSet;function Kv(n){return a=>{a.key==="Enter"&&n(a)}}function bf(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const yA=(n,a)=>{const l=n.currentTarget;if(!l)return;const o=Kv(()=>{if(er.has(l))return;bf(l,"down");const u=Kv(()=>{bf(l,"up")}),d=()=>bf(l,"cancel");l.addEventListener("keyup",u,a),l.addEventListener("blur",d,a)});l.addEventListener("keydown",o,a),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),a)};function Fv(n){return Kd(n)&&!$b()}const Zv=new WeakSet;function bA(n,a,l={}){const[o,u,d]=Gb(n,l),f=h=>{const m=h.currentTarget;if(!Fv(h)||Zv.has(h))return;er.add(m),l.stopPropagation&&Zv.add(h);const p=a(m,h),y=(T,E)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),er.has(m)&&er.delete(m),Fv(T)&&typeof p=="function"&&p(T,{success:E})},b=T=>{y(T,m===window||m===document||l.useGlobalTarget||Yb(m,T.target))},S=T=>{y(T,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",S,u)};return o.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",f,u),cA(h)&&(h.addEventListener("focus",p=>yA(p,u)),!pA(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),d}function Fd(n){return Ky(n)&&"ownerSVGElement"in n}const tr=new WeakMap;let fa;const qb=(n,a,l)=>(o,u)=>u&&u[0]?u[0][n+"Size"]:Fd(o)&&"getBBox"in o?o.getBBox()[a]:o[l],xA=qb("inline","width","offsetWidth"),SA=qb("block","height","offsetHeight");function TA({target:n,borderBoxSize:a}){var l;(l=tr.get(n))==null||l.forEach(o=>{o(n,{get width(){return xA(n,a)},get height(){return SA(n,a)}})})}function wA(n){n.forEach(TA)}function EA(){typeof ResizeObserver>"u"||(fa=new ResizeObserver(wA))}function AA(n,a){fa||EA();const l=Bb(n);return l.forEach(o=>{let u=tr.get(o);u||(u=new Set,tr.set(o,u)),u.add(a),fa==null||fa.observe(o)}),()=>{l.forEach(o=>{const u=tr.get(o);u==null||u.delete(a),u!=null&&u.size||fa==null||fa.unobserve(o)})}}const nr=new Set;let Yi;function jA(){Yi=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};nr.forEach(a=>a(n))},window.addEventListener("resize",Yi)}function NA(n){return nr.add(n),Yi||jA(),()=>{nr.delete(n),!nr.size&&typeof Yi=="function"&&(window.removeEventListener("resize",Yi),Yi=void 0)}}function Qv(n,a){return typeof n=="function"?NA(n):AA(n,a)}function CA(n){return Fd(n)&&n.tagName==="svg"}const MA=[...kb,We,ln],DA=n=>MA.find(Vb(n)),Pv=()=>({translate:0,scale:1,origin:0,originPoint:0}),qi=()=>({x:Pv(),y:Pv()}),Jv=()=>({min:0,max:0}),et=()=>({x:Jv(),y:Jv()}),zA=new WeakMap;function Or(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function ms(n){return typeof n=="string"||Array.isArray(n)}const Zd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qd=["initial",...Zd];function Rr(n){return Or(n.animate)||Qd.some(a=>ms(n[a]))}function Xb(n){return!!(Rr(n)||n.variants)}function OA(n,a,l){for(const o in a){const u=a[o],d=l[o];if(ct(u))n.addValue(o,u);else if(ct(d))n.addValue(o,Zi(u,{owner:n}));else if(d!==u)if(n.hasValue(o)){const f=n.getValue(o);f.liveStyle===!0?f.jump(u):f.hasAnimated||f.set(u)}else{const f=n.getStaticValue(o);n.addValue(o,Zi(f!==void 0?f:u,{owner:n}))}}for(const o in l)a[o]===void 0&&n.removeValue(o);return a}const cd={current:null},Kb={current:!1},RA=typeof window<"u";function LA(){if(Kb.current=!0,!!RA)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>cd.current=n.matches;n.addEventListener("change",a),a()}else cd.current=!1}const Wv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let vr={};function Fb(n){vr=n}function VA(){return vr}class kA{scrapeMotionValuesFromProps(a,l,o){return{}}constructor({parent:a,props:l,presenceContext:o,reducedMotionConfig:u,skipAnimations:d,blockInitialAnimation:f,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Bd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=pt.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,ze.render(this.render,!1,!0))};const{latestValues:p,renderState:y}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=y,this.parent=a,this.props=l,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=d,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=Rr(l),this.isVariantNode=Xb(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const T in S){const E=S[T];p[T]!==void 0&&ct(E)&&E.set(p[T])}}mount(a){var l,o;if(this.hasBeenMounted)for(const u in this.initialValues)(l=this.values.get(u))==null||l.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=a,zA.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,d)=>this.bindToMotionValue(d,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Kb.current||LA(),this.shouldReduceMotion=cd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),ya(this.notifyUpdate),ya(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const o=this.features[l];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,l){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),l.accelerate&&Nb.has(a)&&this.current instanceof HTMLElement){const{factory:f,keyframes:h,times:m,ease:p,duration:y}=l.accelerate,b=new Ab({element:this.current,name:a,keyframes:h,times:m,ease:p,duration:Ut(y)}),S=f(b);this.valueSubscriptions.set(a,()=>{S(),b.cancel()});return}const o=el.has(a);o&&this.onBindTransform&&this.onBindTransform();const u=l.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&ze.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,a,l)),this.valueSubscriptions.set(a,()=>{u(),d&&d(),l.owner&&l.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in vr){const l=vr[a];if(!l)continue;const{isEnabled:o,Feature:u}=l;if(!this.features[a]&&u&&o(this.props)&&(this.features[a]=new u(this)),this.features[a]){const d=this.features[a];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,l){this.latestValues[a]=l}update(a,l){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let o=0;o<Wv.length;o++){const u=Wv[o];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,f=a[d];f&&(this.propEventSubscriptions[u]=this.on(u,f))}this.prevMotionValues=OA(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(a),()=>l.variantChildren.delete(a)}addValue(a,l){const o=this.values.get(a);l!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,l),this.values.set(a,l),this.latestValues[a]=l.get())}removeValue(a){this.values.delete(a);const l=this.valueSubscriptions.get(a);l&&(l(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,l){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&l!==void 0&&(o=Zi(l===null?void 0:l,{owner:this}),this.addValue(a,o)),o}readValue(a,l){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(Xy(o)||Fy(o))?o=parseFloat(o):!DA(o)&&ln.test(l)&&(o=Ub(a,l)),this.setBaseTarget(a,ct(o)?o.get():o)),ct(o)?o.get():o}setBaseTarget(a,l){this.baseTarget[a]=l}getBaseTarget(a){var d;const{initial:l}=this.props;let o;if(typeof l=="string"||typeof l=="object"){const f=Gd(this.props,l,(d=this.presenceContext)==null?void 0:d.custom);f&&(o=f[a])}if(l&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!ct(u)?u:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,l){return this.events[a]||(this.events[a]=new Dd),this.events[a].add(l)}notify(a,...l){this.events[a]&&this.events[a].notify(...l)}scheduleRenderMicrotask(){Xd.render(this.render)}}class Zb extends kA{constructor(){super(...arguments),this.KeyframeResolver=uA}sortInstanceNodePosition(a,l){return a.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(a,l){const o=a.style;return o?o[l]:void 0}removeValueFromRenderState(a,{vars:l,style:o}){delete l[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ct(a)&&(this.childSubscription=a.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class Sa{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Qb({top:n,left:a,right:l,bottom:o}){return{x:{min:a,max:l},y:{min:n,max:o}}}function _A({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function UA(n,a){if(!a)return n;const l=a({x:n.left,y:n.top}),o=a({x:n.right,y:n.bottom});return{top:l.y,left:l.x,bottom:o.y,right:o.x}}function xf(n){return n===void 0||n===1}function fd({scale:n,scaleX:a,scaleY:l}){return!xf(n)||!xf(a)||!xf(l)}function Ya(n){return fd(n)||Pb(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Pb(n){return Iv(n.x)||Iv(n.y)}function Iv(n){return n&&n!=="0%"}function yr(n,a,l){const o=n-l,u=a*o;return l+u}function e0(n,a,l,o,u){return u!==void 0&&(n=yr(n,u,o)),yr(n,l,o)+a}function dd(n,a=0,l=1,o,u){n.min=e0(n.min,a,l,o,u),n.max=e0(n.max,a,l,o,u)}function Jb(n,{x:a,y:l}){dd(n.x,a.translate,a.scale,a.originPoint),dd(n.y,l.translate,l.scale,l.originPoint)}const t0=.999999999999,n0=1.0000000000001;function BA(n,a,l,o=!1){var h;const u=l.length;if(!u)return;a.x=a.y=1;let d,f;for(let m=0;m<u;m++){d=l[m],f=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(dn(n.x,-d.scroll.offset.x),dn(n.y,-d.scroll.offset.y)),f&&(a.x*=f.x.scale,a.y*=f.y.scale,Jb(n,f)),o&&Ya(d.latestValues)&&ar(n,d.latestValues,(h=d.layout)==null?void 0:h.layoutBox))}a.x<n0&&a.x>t0&&(a.x=1),a.y<n0&&a.y>t0&&(a.y=1)}function dn(n,a){n.min+=a,n.max+=a}function a0(n,a,l,o,u=.5){const d=Ue(n.min,n.max,u);dd(n,a,l,d,o)}function i0(n,a){return typeof n=="string"?parseFloat(n)/100*(a.max-a.min):n}function ar(n,a,l){const o=l??n;a0(n.x,i0(a.x,o.x),a.scaleX,a.scale,a.originX),a0(n.y,i0(a.y,o.y),a.scaleY,a.scale,a.originY)}function Wb(n,a){return Qb(UA(n.getBoundingClientRect(),a))}function HA(n,a,l){const o=Wb(n,l),{scroll:u}=a;return u&&(dn(o.x,u.offset.x),dn(o.y,u.offset.y)),o}const $A={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GA=Ii.length;function YA(n,a,l){let o="",u=!0;for(let d=0;d<GA;d++){const f=Ii[d],h=n[f];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(f.startsWith("scale")?1:0);else{const p=parseFloat(h);m=f.startsWith("scale")?p===1:p===0}if(!m||l){const p=Hb(h,qd[f]);if(!m){u=!1;const y=$A[f]||f;o+=`${y}(${p}) `}l&&(a[f]=p)}}return o=o.trim(),l?o=l(a,u?"":o):u&&(o="none"),o}function Pd(n,a,l){const{style:o,vars:u,transformOrigin:d}=n;let f=!1,h=!1;for(const m in a){const p=a[m];if(el.has(m)){f=!0;continue}else if(rb(m)){u[m]=p;continue}else{const y=Hb(p,qd[m]);m.startsWith("origin")?(h=!0,d[m]=y):o[m]=y}}if(a.transform||(f||l?o.transform=YA(a,n.transform,l):o.transform&&(o.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:y=0}=d;o.transformOrigin=`${m} ${p} ${y}`}}function Ib(n,{style:a,vars:l},o,u){const d=n.style;let f;for(f in a)d[f]=a[f];u==null||u.applyProjectionStyles(d,o);for(f in l)d.setProperty(f,l[f])}function l0(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Pl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(I.test(n))n=parseFloat(n);else return n;const l=l0(n,a.target.x),o=l0(n,a.target.y);return`${l}% ${o}%`}},qA={correct:(n,{treeScale:a,projectionDelta:l})=>{const o=n,u=ln.parse(n);if(u.length>5)return o;const d=ln.createTransformer(n),f=typeof u[0]!="number"?1:0,h=l.x.scale*a.x,m=l.y.scale*a.y;u[0+f]/=h,u[1+f]/=m;const p=Ue(h,m,.5);return typeof u[2+f]=="number"&&(u[2+f]/=p),typeof u[3+f]=="number"&&(u[3+f]/=p),d(u)}},hd={borderRadius:{...Pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pl,borderTopRightRadius:Pl,borderBottomLeftRadius:Pl,borderBottomRightRadius:Pl,boxShadow:qA};function ex(n,{layout:a,layoutId:l}){return el.has(n)||n.startsWith("origin")||(a||l!==void 0)&&(!!hd[n]||n==="opacity")}function Jd(n,a,l){var f;const o=n.style,u=a==null?void 0:a.style,d={};if(!o)return d;for(const h in o)(ct(o[h])||u&&ct(u[h])||ex(h,n)||((f=l==null?void 0:l.getValue(h))==null?void 0:f.liveStyle)!==void 0)&&(d[h]=o[h]);return d}function XA(n){return window.getComputedStyle(n)}class KA extends Zb{constructor(){super(...arguments),this.type="html",this.renderInstance=Ib}readValueFromInstance(a,l){var o;if(el.has(l))return(o=this.projection)!=null&&o.isProjecting?If(l):f5(a,l);{const u=XA(a),d=(rb(l)?u.getPropertyValue(l):u[l])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:l}){return Wb(a,l)}build(a,l,o){Pd(a,l,o.transformTemplate)}scrapeMotionValuesFromProps(a,l,o){return Jd(a,l,o)}}const FA={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZA={offset:"strokeDashoffset",array:"strokeDasharray"};function QA(n,a,l=1,o=0,u=!0){n.pathLength=1;const d=u?FA:ZA;n[d.offset]=`${-o}`,n[d.array]=`${a} ${l}`}const PA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tx(n,{attrX:a,attrY:l,attrScale:o,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...h},m,p,y){if(Pd(n,h,p),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:S}=n;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete b.transformBox);for(const T of PA)b[T]!==void 0&&(S[T]=b[T],delete b[T]);a!==void 0&&(b.x=a),l!==void 0&&(b.y=l),o!==void 0&&(b.scale=o),u!==void 0&&QA(b,u,d,f,!1)}const nx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ax=n=>typeof n=="string"&&n.toLowerCase()==="svg";function JA(n,a,l,o){Ib(n,a,void 0,o);for(const u in a.attrs)n.setAttribute(nx.has(u)?u:Yd(u),a.attrs[u])}function ix(n,a,l){const o=Jd(n,a,l);for(const u in n)if(ct(n[u])||ct(a[u])){const d=Ii.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[d]=n[u]}return o}class WA extends Zb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(a,l){return a[l]}readValueFromInstance(a,l){if(el.has(l)){const o=_b(l);return o&&o.default||0}return l=nx.has(l)?l:Yd(l),a.getAttribute(l)}scrapeMotionValuesFromProps(a,l,o){return ix(a,l,o)}build(a,l,o){tx(a,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,l,o,u){JA(a,l,o,u)}mount(a){this.isSVGTag=ax(a.tagName),super.mount(a)}}const IA=Qd.length;function lx(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?lx(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const a={};for(let l=0;l<IA;l++){const o=Qd[l],u=n.props[o];(ms(u)||u===!1)&&(a[o]=u)}return a}function sx(n,a){if(!Array.isArray(a))return!1;const l=a.length;if(l!==n.length)return!1;for(let o=0;o<l;o++)if(a[o]!==n[o])return!1;return!0}const ej=[...Zd].reverse(),tj=Zd.length;function nj(n){return a=>Promise.all(a.map(({animation:l,options:o})=>W5(n,l,o)))}function aj(n){let a=nj(n),l=s0(),o=!0,u=!1;const d=p=>(y,b)=>{var T;const S=Ja(n,b,p==="exit"?(T=n.presenceContext)==null?void 0:T.custom:void 0);if(S){const{transition:E,transitionEnd:j,...C}=S;y={...y,...C,...j}}return y};function f(p){a=p(n)}function h(p){const{props:y}=n,b=lx(n.parent)||{},S=[],T=new Set;let E={},j=1/0;for(let D=0;D<tj;D++){const O=ej[D],R=l[O],B=y[O]!==void 0?y[O]:b[O],q=ms(B),Z=O===p?R.isActive:null;Z===!1&&(j=D);let F=B===b[O]&&B!==y[O]&&q;if(F&&(o||u)&&n.manuallyAnimateOnMount&&(F=!1),R.protectedKeys={...E},!R.isActive&&Z===null||!B&&!R.prevProp||Or(B)||typeof B=="boolean")continue;if(O==="exit"&&R.isActive&&Z!==!0){R.prevResolvedValues&&(E={...E,...R.prevResolvedValues});continue}const te=ij(R.prevProp,B);let he=te||O===p&&R.isActive&&!F&&q||D>j&&q,J=!1;const oe=Array.isArray(B)?B:[B];let me=oe.reduce(d(O),{});Z===!1&&(me={});const{prevResolvedValues:Oe={}}=R,Ne={...Oe,...me},Re=Q=>{he=!0,T.has(Q)&&(J=!0,T.delete(Q)),R.needsAnimating[Q]=!0;const ie=n.getValue(Q);ie&&(ie.liveStyle=!1)};for(const Q in Ne){const ie=me[Q],fe=Oe[Q];if(E.hasOwnProperty(Q))continue;let N=!1;ld(ie)&&ld(fe)?N=!sx(ie,fe):N=ie!==fe,N?ie!=null?Re(Q):T.add(Q):ie!==void 0&&T.has(Q)?Re(Q):R.protectedKeys[Q]=!0}R.prevProp=B,R.prevResolvedValues=me,R.isActive&&(E={...E,...me}),(o||u)&&n.blockInitialAnimation&&(he=!1);const U=F&&te;he&&(!U||J)&&S.push(...oe.map(Q=>{const ie={type:O};if(typeof Q=="string"&&(o||u)&&!U&&n.manuallyAnimateOnMount&&n.parent){const{parent:fe}=n,N=Ja(fe,Q);if(fe.enteringChildren&&N){const{delayChildren:G}=N.transition||{};ie.delay=Cb(fe.enteringChildren,n,G)}}return{animation:Q,options:ie}}))}if(T.size){const D={};if(typeof y.initial!="boolean"){const O=Ja(n,Array.isArray(y.initial)?y.initial[0]:y.initial);O&&O.transition&&(D.transition=O.transition)}T.forEach(O=>{const R=n.getBaseTarget(O),B=n.getValue(O);B&&(B.liveStyle=!0),D[O]=R??null}),S.push({animation:D})}let C=!!S.length;return o&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(C=!1),o=!1,u=!1,C?a(S):Promise.resolve()}function m(p,y){var S;if(l[p].isActive===y)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(T=>{var E;return(E=T.animationState)==null?void 0:E.setActive(p,y)}),l[p].isActive=y;const b=h(p);for(const T in l)l[T].protectedKeys={};return b}return{animateChanges:h,setActive:m,setAnimateFunction:f,getState:()=>l,reset:()=>{l=s0(),u=!0}}}function ij(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!sx(a,n):!1}function $a(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s0(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}function md(n,a){n.min=a.min,n.max=a.max}function tn(n,a){md(n.x,a.x),md(n.y,a.y)}function o0(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}const ox=1e-4,lj=1-ox,sj=1+ox,rx=.01,oj=0-rx,rj=0+rx;function gt(n){return n.max-n.min}function uj(n,a,l){return Math.abs(n-a)<=l}function r0(n,a,l,o=.5){n.origin=o,n.originPoint=Ue(a.min,a.max,n.origin),n.scale=gt(l)/gt(a),n.translate=Ue(l.min,l.max,n.origin)-n.originPoint,(n.scale>=lj&&n.scale<=sj||isNaN(n.scale))&&(n.scale=1),(n.translate>=oj&&n.translate<=rj||isNaN(n.translate))&&(n.translate=0)}function us(n,a,l,o){r0(n.x,a.x,l.x,o?o.originX:void 0),r0(n.y,a.y,l.y,o?o.originY:void 0)}function u0(n,a,l,o=0){const u=o?Ue(l.min,l.max,o):l.min;n.min=u+a.min,n.max=n.min+gt(a)}function cj(n,a,l,o){u0(n.x,a.x,l.x,o==null?void 0:o.x),u0(n.y,a.y,l.y,o==null?void 0:o.y)}function c0(n,a,l,o=0){const u=o?Ue(l.min,l.max,o):l.min;n.min=a.min-u,n.max=n.min+gt(a)}function br(n,a,l,o){c0(n.x,a.x,l.x,o==null?void 0:o.x),c0(n.y,a.y,l.y,o==null?void 0:o.y)}function f0(n,a,l,o,u){return n-=a,n=yr(n,1/l,o),u!==void 0&&(n=yr(n,1/u,o)),n}function fj(n,a=0,l=1,o=.5,u,d=n,f=n){if(mn.test(a)&&(a=parseFloat(a),a=Ue(f.min,f.max,a/100)-f.min),typeof a!="number")return;let h=Ue(d.min,d.max,o);n===d&&(h-=a),n.min=f0(n.min,a,l,h,u),n.max=f0(n.max,a,l,h,u)}function d0(n,a,[l,o,u],d,f){fj(n,a[l],a[o],a[u],a.scale,d,f)}const dj=["x","scaleX","originX"],hj=["y","scaleY","originY"];function h0(n,a,l,o){d0(n.x,a,dj,l?l.x:void 0,o?o.x:void 0),d0(n.y,a,hj,l?l.y:void 0,o?o.y:void 0)}function m0(n){return n.translate===0&&n.scale===1}function ux(n){return m0(n.x)&&m0(n.y)}function p0(n,a){return n.min===a.min&&n.max===a.max}function mj(n,a){return p0(n.x,a.x)&&p0(n.y,a.y)}function g0(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function cx(n,a){return g0(n.x,a.x)&&g0(n.y,a.y)}function v0(n){return gt(n.x)/gt(n.y)}function y0(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}function fn(n){return[n("x"),n("y")]}function pj(n,a,l){let o="";const u=n.x.translate/a.x,d=n.y.translate/a.y,f=(l==null?void 0:l.z)||0;if((u||d||f)&&(o=`translate3d(${u}px, ${d}px, ${f}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),l){const{transformPerspective:p,rotate:y,rotateX:b,rotateY:S,skewX:T,skewY:E}=l;p&&(o=`perspective(${p}px) ${o}`),y&&(o+=`rotate(${y}deg) `),b&&(o+=`rotateX(${b}deg) `),S&&(o+=`rotateY(${S}deg) `),T&&(o+=`skewX(${T}deg) `),E&&(o+=`skewY(${E}deg) `)}const h=n.x.scale*a.x,m=n.y.scale*a.y;return(h!==1||m!==1)&&(o+=`scale(${h}, ${m})`),o||"none"}const fx=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],gj=fx.length,b0=n=>typeof n=="string"?parseFloat(n):n,x0=n=>typeof n=="number"||I.test(n);function vj(n,a,l,o,u,d){u?(n.opacity=Ue(0,l.opacity??1,yj(o)),n.opacityExit=Ue(a.opacity??1,0,bj(o))):d&&(n.opacity=Ue(a.opacity??1,l.opacity??1,o));for(let f=0;f<gj;f++){const h=fx[f];let m=S0(a,h),p=S0(l,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||x0(m)===x0(p)?(n[h]=Math.max(Ue(b0(m),b0(p),o),0),(mn.test(p)||mn.test(m))&&(n[h]+="%")):n[h]=p}(a.rotate||l.rotate)&&(n.rotate=Ue(a.rotate||0,l.rotate||0,o))}function S0(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const yj=dx(0,.5,nb),bj=dx(.5,.95,Jt);function dx(n,a,l){return o=>o<n?0:o>a?1:l(ds(n,a,o))}function xj(n,a,l){const o=ct(n)?n:Zi(n);return o.start($d("",o,a,l)),o.animation}function ps(n,a,l,o={passive:!0}){return n.addEventListener(a,l,o),()=>n.removeEventListener(a,l)}const Sj=(n,a)=>n.depth-a.depth;class Tj{constructor(){this.children=[],this.isDirty=!1}add(a){Cd(this.children,a),this.isDirty=!0}remove(a){dr(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(Sj),this.isDirty=!1,this.children.forEach(a)}}function wj(n,a){const l=pt.now(),o=({timestamp:u})=>{const d=u-l;d>=a&&(ya(o),n(d-a))};return ze.setup(o,!0),()=>ya(o)}function ir(n){return ct(n)?n.get():n}class Ej{constructor(){this.members=[]}add(a){Cd(this.members,a);for(let l=this.members.length-1;l>=0;l--){const o=this.members[l];if(o===a||o===this.lead||o===this.prevLead)continue;const u=o.instance;(!u||u.isConnected===!1)&&!o.snapshot&&(dr(this.members,o),o.unmount())}a.scheduleRender()}remove(a){if(dr(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(a){var l;for(let o=this.members.indexOf(a)-1;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1&&((l=u.instance)==null?void 0:l.isConnected)!==!1)return this.promote(u),!0}return!1}promote(a,l){var u;const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.updateSnapshot(),a.scheduleRender();const{layoutDependency:d}=o.options,{layoutDependency:f}=a.options;(d===void 0||d!==f)&&(a.resumeFrom=o,l&&(o.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),(u=a.root)!=null&&u.isUpdating&&(a.isLayoutDirty=!0)),a.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{var l,o,u,d,f;(o=(l=a.options).onExitComplete)==null||o.call(l),(f=(u=a.resumingFrom)==null?void 0:(d=u.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){var a;(a=this.lead)!=null&&a.snapshot&&(this.lead.snapshot=void 0)}}const lr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Sf=["","X","Y","Z"],Aj=1e3;let jj=0;function Tf(n,a,l,o){const{latestValues:u}=a;u[n]&&(l[n]=u[n],a.setStaticValue(n,0),o&&(o[n]=0))}function hx(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const l=Rb(a);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",ze,!(u||d))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&hx(o)}function mx({attachResizeListener:n,defaultParent:a,measureScroll:l,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(f={},h=a==null?void 0:a()){this.id=jj++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Mj),this.nodes.forEach(Vj),this.nodes.forEach(kj),this.nodes.forEach(Dj)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Tj)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Dd),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const m=this.eventHandlers.get(f);m&&m.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Fd(f)&&!CA(f),this.instance=f;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let y,b=0;const S=()=>this.root.updateBlockedByResize=!1;ze.read(()=>{b=window.innerWidth}),n(f,()=>{const T=window.innerWidth;T!==b&&(b=T,this.root.updateBlockedByResize=!0,y&&y(),y=wj(S,250),lr.hasAnimatedSinceResize&&(lr.hasAnimatedSinceResize=!1,this.nodes.forEach(E0)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||p.getDefaultTransition()||$j,{onLayoutAnimationStart:j,onLayoutAnimationComplete:C}=p.getProps(),D=!this.targetLayout||!cx(this.targetLayout,T),O=!b&&S;if(this.options.layoutRoot||this.resumeFrom||O||b&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Hd(E,"layout"),onPlay:j,onComplete:C};(p.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(y,O)}else b||E0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ya(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_j),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const m=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),m&&this.nodes.forEach(Oj),this.nodes.forEach(T0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(w0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rj),this.nodes.forEach(Lj),this.nodes.forEach(Nj),this.nodes.forEach(Cj)):this.nodes.forEach(w0),this.clearAllSnapshots();const h=pt.now();ut.delta=pn(0,1e3/60,h-ut.timestamp),ut.timestamp=h,ut.isProcessing=!0,hf.update.process(ut),hf.preRender.process(ut),hf.render.process(ut),ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zj),this.sharedNodes.forEach(Uj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gt(this.snapshot.measuredBox.x)&&!gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=et()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const m=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!u)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!ux(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;f&&this.instance&&(h||Ya(this.latestValues)||y)&&(u(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return f&&(m=this.removeTransform(m)),Gj(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return et();const h=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(Yj))){const{scroll:y}=this.root;y&&(dn(h.x,y.offset.x),dn(h.y,y.offset.y))}return h}removeElementScroll(f){var m;const h=et();if(tn(h,f),(m=this.scroll)!=null&&m.wasRoot)return h;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:b,options:S}=y;y!==this.root&&b&&S.layoutScroll&&(b.wasRoot&&tn(h,f),dn(h.x,b.offset.x),dn(h.y,b.offset.y))}return h}applyTransform(f,h=!1,m){var y,b;const p=m||et();tn(p,f);for(let S=0;S<this.path.length;S++){const T=this.path[S];!h&&T.options.layoutScroll&&T.scroll&&T!==T.root&&(dn(p.x,-T.scroll.offset.x),dn(p.y,-T.scroll.offset.y)),Ya(T.latestValues)&&ar(p,T.latestValues,(y=T.layout)==null?void 0:y.layoutBox)}return Ya(this.latestValues)&&ar(p,this.latestValues,(b=this.layout)==null?void 0:b.layoutBox),p}removeTransform(f){var m;const h=et();tn(h,f);for(let p=0;p<this.path.length;p++){const y=this.path[p];if(!Ya(y.latestValues))continue;let b;y.instance&&(fd(y.latestValues)&&y.updateSnapshot(),b=et(),tn(b,y.measurePageBox())),h0(h,y.latestValues,(m=y.snapshot)==null?void 0:m.layoutBox,b)}return Ya(this.latestValues)&&h0(h,this.latestValues),h}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var T;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=ut.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):tn(this.target,this.layout.layoutBox),Jb(this.target,this.targetDelta)):tn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fd(this.parent.latestValues)||Pb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,h,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),br(this.relativeTargetOrigin,h,m,this.options.layoutAnchor||void 0),tn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ut.timestamp&&(m=!1),m)return;const{layout:p,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||y))return;tn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;BA(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=et());const{target:T}=f;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(o0(this.prevProjectionDelta.x,this.projectionDelta.x),o0(this.prevProjectionDelta.y,this.projectionDelta.y)),us(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!y0(this.projectionDelta.x,this.prevProjectionDelta.x)||!y0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qi(),this.projectionDelta=qi(),this.projectionDeltaWithTransform=qi()}setAnimationOrigin(f,h=!1){const m=this.snapshot,p=m?m.latestValues:{},y={...this.latestValues},b=qi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=et(),T=m?m.source:void 0,E=this.layout?this.layout.source:void 0,j=T!==E,C=this.getStack(),D=!C||C.members.length<=1,O=!!(j&&!D&&this.options.crossfade===!0&&!this.path.some(Hj));this.animationProgress=0;let R;this.mixTargetDelta=B=>{const q=B/1e3;A0(b.x,f.x,q),A0(b.y,f.y,q),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(br(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Bj(this.relativeTarget,this.relativeTargetOrigin,S,q),R&&mj(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=et()),tn(R,this.relativeTarget)),j&&(this.animationValues=y,vj(y,p,this.latestValues,q,O,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var h,m,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||p.stop(),this.pendingAnimation&&(ya(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{lr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zi(0)),this.motionValue.jump(0,!1),this.currentAnimation=xj(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Aj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:y}=f;if(!(!h||!m||!p)){if(this!==f&&this.layout&&p&&px(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||et();const b=gt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+b;const S=gt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}tn(h,m),ar(h,y),us(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new Ej),this.sharedNodes.get(f).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var h;const{layoutId:f}=this.options;return f?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:f}=this.options;return f?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&Tf("z",f,p,this.animationValues);for(let y=0;y<Sf.length;y++)Tf(`rotate${Sf[y]}`,f,p,this.animationValues),Tf(`skew${Sf[y]}`,f,p,this.animationValues);f.render();for(const y in p)f.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);f.scheduleRender()}applyProjectionStyles(f,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=ir(h==null?void 0:h.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=ir(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Ya(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=pj(this.projectionDeltaWithTransform,this.treeScale,y);m&&(b=m(y,b)),f.transform=b;const{x:S,y:T}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,p.animationValues?f.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const E in hd){if(y[E]===void 0)continue;const{correct:j,applyTo:C,isCSSVariable:D}=hd[E],O=b==="none"?y[E]:j(y[E],p);if(C){const R=C.length;for(let B=0;B<R;B++)f[C[B]]=O}else D?this.options.visualElement.renderState.vars[E]=O:f[E]=O}this.options.layoutId&&(f.pointerEvents=p===this?ir(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var h;return(h=f.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(T0),this.root.sharedNodes.clear()}}}function Nj(n){n.updateLayout()}function Cj(n){var l;const a=((l=n.resumeFrom)==null?void 0:l.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=n.layout,{animationType:d}=n.options,f=a.source!==n.layout.source;if(d==="size")fn(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],T=gt(S);S.min=o[b].min,S.max=S.min+T});else if(d==="x"||d==="y"){const b=d==="x"?"y":"x";md(f?a.measuredBox[b]:a.layoutBox[b],o[b])}else px(d,a.layoutBox,o)&&fn(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],T=gt(o[b]);S.max=S.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[b].max=n.relativeTarget[b].min+T)});const h=qi();us(h,o,a.layoutBox);const m=qi();f?us(m,n.applyTransform(u,!0),a.measuredBox):us(m,o,a.layoutBox);const p=!ux(h);let y=!1;if(!n.resumeFrom){const b=n.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:S,layout:T}=b;if(S&&T){const E=n.options.layoutAnchor||void 0,j=et();br(j,a.layoutBox,S.layoutBox,E);const C=et();br(C,o,T.layoutBox,E),cx(j,C)||(y=!0),b.options.layoutRoot&&(n.relativeTarget=C,n.relativeTargetOrigin=j,n.relativeParent=b)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:a,delta:m,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function Mj(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function Dj(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function zj(n){n.clearSnapshot()}function T0(n){n.clearMeasurements()}function Oj(n){n.isLayoutDirty=!0,n.updateLayout()}function w0(n){n.isLayoutDirty=!1}function Rj(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function Lj(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function E0(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function Vj(n){n.resolveTargetDelta()}function kj(n){n.calcProjection()}function _j(n){n.resetSkewAndRotation()}function Uj(n){n.removeLeadSnapshot()}function A0(n,a,l){n.translate=Ue(a.translate,0,l),n.scale=Ue(a.scale,1,l),n.origin=a.origin,n.originPoint=a.originPoint}function j0(n,a,l,o){n.min=Ue(a.min,l.min,o),n.max=Ue(a.max,l.max,o)}function Bj(n,a,l,o){j0(n.x,a.x,l.x,o),j0(n.y,a.y,l.y,o)}function Hj(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const $j={duration:.45,ease:[.4,0,.1,1]},N0=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),C0=N0("applewebkit/")&&!N0("chrome/")?Math.round:Jt;function M0(n){n.min=C0(n.min),n.max=C0(n.max)}function Gj(n){M0(n.x),M0(n.y)}function px(n,a,l){return n==="position"||n==="preserve-aspect"&&!uj(v0(a),v0(l),.2)}function Yj(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const qj=mx({attachResizeListener:(n,a)=>ps(n,"resize",a),measureScroll:()=>{var n,a;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Xj=n=>!n.isLayoutDirty&&n.willUpdate(!1);function D0(){const n=new Set,a=new WeakMap,l=()=>n.forEach(Xj);return{add:o=>{n.add(o),a.set(o,o.addEventListener("willUpdate",l))},remove:o=>{n.delete(o);const u=a.get(o);u&&(u(),a.delete(o)),l()},dirty:l}}const wf={current:void 0},gx=mx({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!wf.current){const n=new qj({});n.mount(window),n.setOptions({layoutScroll:!0}),wf.current=n}return wf.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),vx=w.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Kj(n=!0){const a=w.useContext(Nd);if(a===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:u}=a,d=w.useId();w.useEffect(()=>{if(n)return u(d)},[n]);const f=w.useCallback(()=>n&&o&&o(d),[d,o,n]);return!l&&o?[!1,f]:[!0]}const Fj=w.createContext(null);function Zj(){const n=w.useRef(!1);return qy(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function Qj(){const n=Zj(),[a,l]=w.useState(0),o=w.useCallback(()=>{n.current&&l(a+1)},[a]);return[w.useCallback(()=>ze.postRender(o),[o]),a]}const yx=n=>n===!0,Pj=n=>yx(n===!0)||n==="id",bx=({children:n,id:a,inherit:l=!0})=>{const o=w.useContext(fr),u=w.useContext(Fj),[d,f]=Qj(),h=w.useRef(null),m=o.id||u;h.current===null&&(Pj(l)&&m&&(a=a?m+"-"+a:m),h.current={id:a,group:yx(l)&&o.group||D0()});const p=w.useMemo(()=>({...h.current,forceRender:d}),[f]);return g.jsx(fr.Provider,{value:p,children:n})},xx=w.createContext({strict:!1}),z0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let O0=!1;function Jj(){if(O0)return;const n={};for(const a in z0)n[a]={isEnabled:l=>z0[a].some(o=>!!l[o])};Fb(n),O0=!0}function Sx(){return Jj(),VA()}function Wj(n){const a=Sx();for(const l in n)a[l]={...a[l],...n[l]};Fb(a)}const Ij=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function xr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Ij.has(n)}let Tx=n=>!xr(n);function eN(n){typeof n=="function"&&(Tx=a=>a.startsWith("on")?!xr(a):n(a))}try{eN(require("@emotion/is-prop-valid").default)}catch{}function tN(n,a,l){const o={};for(const u in n)u==="values"&&typeof n.values=="object"||ct(n[u])||(Tx(u)||l===!0&&xr(u)||!a&&!xr(u)||n.draggable&&u.startsWith("onDrag"))&&(o[u]=n[u]);return o}const Lr=w.createContext({});function nN(n,a){if(Rr(n)){const{initial:l,animate:o}=n;return{initial:l===!1||ms(l)?l:void 0,animate:ms(o)?o:void 0}}return n.inherit!==!1?a:{}}function aN(n){const{initial:a,animate:l}=nN(n,w.useContext(Lr));return w.useMemo(()=>({initial:a,animate:l}),[R0(a),R0(l)])}function R0(n){return Array.isArray(n)?n.join(" "):n}const Wd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wx(n,a,l){for(const o in a)!ct(a[o])&&!ex(o,l)&&(n[o]=a[o])}function iN({transformTemplate:n},a){return w.useMemo(()=>{const l=Wd();return Pd(l,a,n),Object.assign({},l.vars,l.style)},[a])}function lN(n,a){const l=n.style||{},o={};return wx(o,l,n),Object.assign(o,iN(n,a)),o}function sN(n,a){const l={},o=lN(n,a);return n.drag&&n.dragListener!==!1&&(l.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(l.tabIndex=0),l.style=o,l}const Ex=()=>({...Wd(),attrs:{}});function oN(n,a,l,o){const u=w.useMemo(()=>{const d=Ex();return tx(d,a,ax(o),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[a]);if(n.style){const d={};wx(d,n.style,n),u.style={...d,...u.style}}return u}const rN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Id(n){return typeof n!="string"||n.includes("-")?!1:!!(rN.indexOf(n)>-1||/[A-Z]/u.test(n))}function uN(n,a,l,{latestValues:o},u,d=!1,f){const m=(f??Id(n)?oN:sN)(a,o,u,n),p=tN(a,typeof n=="string",d),y=n!==w.Fragment?{...p,...m,ref:l}:{},{children:b}=a,S=w.useMemo(()=>ct(b)?b.get():b,[b]);return w.createElement(n,{...y,children:S})}function cN({scrapeMotionValuesFromProps:n,createRenderState:a},l,o,u){return{latestValues:fN(l,o,u,n),renderState:a()}}function fN(n,a,l,o){const u={},d=o(n,{});for(const S in d)u[S]=ir(d[S]);let{initial:f,animate:h}=n;const m=Rr(n),p=Xb(n);a&&p&&!m&&n.inherit!==!1&&(f===void 0&&(f=a.initial),h===void 0&&(h=a.animate));let y=l?l.initial===!1:!1;y=y||f===!1;const b=y?h:f;if(b&&typeof b!="boolean"&&!Or(b)){const S=Array.isArray(b)?b:[b];for(let T=0;T<S.length;T++){const E=Gd(n,S[T]);if(E){const{transitionEnd:j,transition:C,...D}=E;for(const O in D){let R=D[O];if(Array.isArray(R)){const B=y?R.length-1:0;R=R[B]}R!==null&&(u[O]=R)}for(const O in j)u[O]=j[O]}}}return u}const Ax=n=>(a,l)=>{const o=w.useContext(Lr),u=w.useContext(Nd),d=()=>cN(n,a,o,u);return l?d():iE(d)},dN=Ax({scrapeMotionValuesFromProps:Jd,createRenderState:Wd}),hN=Ax({scrapeMotionValuesFromProps:ix,createRenderState:Ex}),mN=Symbol.for("motionComponentSymbol");function pN(n,a,l){const o=w.useRef(l);w.useInsertionEffect(()=>{o.current=l});const u=w.useRef(null);return w.useCallback(d=>{var h;d&&((h=n.onMount)==null||h.call(n,d));const f=o.current;if(typeof f=="function")if(d){const m=f(d);typeof m=="function"&&(u.current=m)}else u.current?(u.current(),u.current=null):f(d);else f&&(f.current=d);a&&(d?a.mount(d):a.unmount())},[a])}const jx=w.createContext({});function $i(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function gN(n,a,l,o,u,d){var R,B;const{visualElement:f}=w.useContext(Lr),h=w.useContext(xx),m=w.useContext(Nd),p=w.useContext(vx),y=p.reducedMotion,b=p.skipAnimations,S=w.useRef(null),T=w.useRef(!1);o=o||h.renderer,!S.current&&o&&(S.current=o(n,{visualState:a,parent:f,props:l,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:d}),T.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const E=S.current,j=w.useContext(jx);E&&!E.projection&&u&&(E.type==="html"||E.type==="svg")&&vN(S.current,l,u,j);const C=w.useRef(!1);w.useInsertionEffect(()=>{E&&C.current&&E.update(l,m)});const D=l[Ob],O=w.useRef(!!D&&typeof window<"u"&&!((R=window.MotionHandoffIsComplete)!=null&&R.call(window,D))&&((B=window.MotionHasOptimisedAnimation)==null?void 0:B.call(window,D)));return qy(()=>{T.current=!0,E&&(C.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),O.current&&E.animationState&&E.animationState.animateChanges())}),w.useEffect(()=>{E&&(!O.current&&E.animationState&&E.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{var q;(q=window.MotionHandoffMarkAsComplete)==null||q.call(window,D)}),O.current=!1),E.enteringChildren=void 0)}),E}function vN(n,a,l,o){const{layoutId:u,layout:d,drag:f,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutAnchor:y,layoutCrossfade:b}=a;n.projection=new l(n.latestValues,a["data-framer-portal-id"]?void 0:Nx(n.parent)),n.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!f||h&&$i(h),visualElement:n,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:b,layoutScroll:m,layoutRoot:p,layoutAnchor:y})}function Nx(n){if(n)return n.options.allowProjection!==!1?n.projection:Nx(n.parent)}function Ef(n,{forwardMotionProps:a=!1,type:l}={},o,u){o&&Wj(o);const d=l?l==="svg":Id(n),f=d?hN:dN;function h(p,y){let b;const S={...w.useContext(vx),...p,layoutId:yN(p)},{isStatic:T}=S,E=aN(p),j=f(p,T);if(!T&&typeof window<"u"){bN();const C=xN(S);b=C.MeasureLayout,E.visualElement=gN(n,j,S,u,C.ProjectionNode,d)}return g.jsxs(Lr.Provider,{value:E,children:[b&&E.visualElement?g.jsx(b,{visualElement:E.visualElement,...S}):null,uN(n,p,pN(j,E.visualElement,y),j,T,a,d)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=w.forwardRef(h);return m[mN]=n,m}function yN({layoutId:n}){const a=w.useContext(fr).id;return a&&n!==void 0?a+"-"+n:n}function bN(n,a){w.useContext(xx).strict}function xN(n){const a=Sx(),{drag:l,layout:o}=a;if(!l&&!o)return{};const u={...l,...o};return{MeasureLayout:l!=null&&l.isEnabled(n)||o!=null&&o.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function SN(n,a){if(typeof Proxy>"u")return Ef;const l=new Map,o=(d,f)=>Ef(d,f,n,a),u=(d,f)=>o(d,f);return new Proxy(u,{get:(d,f)=>f==="create"?o:(l.has(f)||l.set(f,Ef(f,void 0,n,a)),l.get(f))})}const TN=(n,a)=>a.isSVG??Id(n)?new WA(a):new KA(a,{allowProjection:n!==w.Fragment});class wN extends Sa{constructor(a){super(a),a.animationState||(a.animationState=aj(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Or(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:l}=this.node.prevProps||{};a!==l&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let EN=0;class AN extends Sa{constructor(){super(...arguments),this.id=EN++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:l}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;if(a&&o===!1){if(this.isExitComplete){const{initial:f,custom:h}=this.node.getProps();if(typeof f=="string"){const m=Ja(this.node,f,h);if(m){const{transition:p,transitionEnd:y,...b}=m;for(const S in b)(d=this.node.getValue(S))==null||d.jump(b[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const u=this.node.animationState.setActive("exit",!a);l&&!a&&u.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:a,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const jN={animation:{Feature:wN},exit:{Feature:AN}};function ws(n){return{point:{x:n.pageX,y:n.pageY}}}const NN=n=>a=>Kd(a)&&n(a,ws(a));function cs(n,a,l,o){return ps(n,a,NN(l),o)}const Cx=({current:n})=>n?n.ownerDocument.defaultView:null,L0=(n,a)=>Math.abs(n-a);function CN(n,a){const l=L0(n.x,a.x),o=L0(n.y,a.y);return Math.sqrt(l**2+o**2)}const V0=new Set(["auto","scroll"]);class Mx{constructor(a,l,{transformPagePoint:o,contextWindow:u=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=T=>{this.handleScroll(T.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Qo(this.lastRawMoveEventInfo,this.transformPagePoint));const T=Af(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,j=CN(T.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!j)return;const{point:C}=T,{timestamp:D}=ut;this.history.push({...C,timestamp:D});const{onStart:O,onMove:R}=this.handlers;E||(O&&O(this.lastMoveEvent,T),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,T)},this.handlePointerMove=(T,E)=>{this.lastMoveEvent=T,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=Qo(E,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(T,E)=>{this.end();const{onEnd:j,onSessionEnd:C,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=Af(T.type==="pointercancel"?this.lastMoveEventInfo:Qo(E,this.transformPagePoint),this.history);this.startEvent&&j&&j(T,O),C&&C(T,O)},!Kd(a))return;this.dragSnapToOrigin=d,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=u||window;const m=ws(a),p=Qo(m,this.transformPagePoint),{point:y}=p,{timestamp:b}=ut;this.history=[{...y,timestamp:b}];const{onSessionStart:S}=l;S&&S(a,Af(p,this.history)),this.removeListeners=xs(cs(this.contextWindow,"pointermove",this.handlePointerMove),cs(this.contextWindow,"pointerup",this.handlePointerUp),cs(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let l=a.parentElement;for(;l;){const o=getComputedStyle(l);(V0.has(o.overflowX)||V0.has(o.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const l=this.scrollPositions.get(a);if(!l)return;const o=a===window,u=o?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},d={x:u.x-l.x,y:u.y-l.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(a,u),ze.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ya(this.updatePoint)}}function Qo(n,a){return a?{point:a(n.point)}:n}function k0(n,a){return{x:n.x-a.x,y:n.y-a.y}}function Af({point:n},a){return{point:n,delta:k0(n,Dx(a)),offset:k0(n,MN(a)),velocity:DN(a,.1)}}function MN(n){return n[0]}function Dx(n){return n[n.length-1]}function DN(n,a){if(n.length<2)return{x:0,y:0};let l=n.length-1,o=null;const u=Dx(n);for(;l>=0&&(o=n[l],!(u.timestamp-o.timestamp>Ut(a)));)l--;if(!o)return{x:0,y:0};o===n[0]&&n.length>2&&u.timestamp-o.timestamp>Ut(a)*2&&(o=n[1]);const d=Pt(u.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(u.x-o.x)/d,y:(u.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function zN(n,{min:a,max:l},o){return a!==void 0&&n<a?n=o?Ue(a,n,o.min):Math.max(n,a):l!==void 0&&n>l&&(n=o?Ue(l,n,o.max):Math.min(n,l)),n}function _0(n,a,l){return{min:a!==void 0?n.min+a:void 0,max:l!==void 0?n.max+l-(n.max-n.min):void 0}}function ON(n,{top:a,left:l,bottom:o,right:u}){return{x:_0(n.x,l,u),y:_0(n.y,a,o)}}function U0(n,a){let l=a.min-n.min,o=a.max-n.max;return a.max-a.min<n.max-n.min&&([l,o]=[o,l]),{min:l,max:o}}function RN(n,a){return{x:U0(n.x,a.x),y:U0(n.y,a.y)}}function LN(n,a){let l=.5;const o=gt(n),u=gt(a);return u>o?l=ds(a.min,a.max-o,n.min):o>u&&(l=ds(n.min,n.max-u,a.min)),pn(0,1,l)}function VN(n,a){const l={};return a.min!==void 0&&(l.min=a.min-n.min),a.max!==void 0&&(l.max=a.max-n.min),l}const pd=.35;function kN(n=pd){return n===!1?n=0:n===!0&&(n=pd),{x:B0(n,"left","right"),y:B0(n,"top","bottom")}}function B0(n,a,l){return{min:H0(n,a),max:H0(n,l)}}function H0(n,a){return typeof n=="number"?n:n[a]||0}const _N=new WeakMap;class UN{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:l=!1,distanceThreshold:o}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const d=b=>{l&&this.snapToCursor(ws(b).point),this.stopAnimation()},f=(b,S)=>{const{drag:T,dragPropagation:E,onDragStart:j}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fA(T),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fn(D=>{let O=this.getAxisMotionValue(D).get()||0;if(mn.test(O)){const{projection:R}=this.visualElement;if(R&&R.layout){const B=R.layout.layoutBox[D];B&&(O=gt(B)*(parseFloat(O)/100))}}this.originPoint[D]=O}),j&&ze.update(()=>j(b,S),!1,!0),sd(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},h=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:j,onDrag:C}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:D}=S;if(E&&this.currentDirection===null){this.currentDirection=HN(D),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",S.point,D),this.updateAxis("y",S.point,D),this.visualElement.render(),C&&ze.update(()=>C(b,S),!1,!0)},m=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Mx(a,{onSessionStart:d,onStart:f,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:Cx(this.visualElement),element:this.visualElement.current})}stop(a,l){const o=a||this.latestPointerEvent,u=l||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!u||!o)return;const{velocity:f}=u;this.startAnimation(f);const{onDragEnd:h}=this.getProps();h&&ze.postRender(()=>h(o,u))}cancel(){this.isDragging=!1;const{projection:a,animationState:l}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,l,o){const{drag:u}=this.getProps();if(!o||!Po(a,u,this.currentDirection))return;const d=this.getAxisMotionValue(a);let f=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(f=zN(f,this.constraints[a],this.elastic[a])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:a,dragElastic:l}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,u=this.constraints;a&&$i(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=ON(o.layoutBox,a):this.constraints=!1,this.elastic=kN(l),u!==this.constraints&&!$i(a)&&o&&this.constraints&&!this.hasMutatedConstraints&&fn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=VN(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:l}=this.getProps();if(!a||!$i(a))return!1;const o=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=HA(o,u.root,this.visualElement.getTransformPagePoint());let f=RN(u.layout.layoutBox,d);if(l){const h=l(_A(f));this.hasMutatedConstraints=!!h,h&&(f=Qb(h))}return f}startAnimation(a){const{drag:l,dragMomentum:o,dragElastic:u,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=fn(y=>{if(!Po(y,l,this.currentDirection))return;let b=m&&m[y]||{};(f===!0||f===y)&&(b={min:0,max:0});const S=u?200:1e6,T=u?40:1e7,E={type:"inertia",velocity:o?a[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(y,E)});return Promise.all(p).then(h)}startAxisValueAnimation(a,l){const o=this.getAxisMotionValue(a);return sd(this.visualElement,a),o.start($d(a,o,0,l,this.visualElement,!1))}stopAnimation(){fn(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const l=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),u=o[l];return u||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){fn(l=>{const{drag:o}=this.getProps();if(!Po(l,o,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(l);if(u&&u.layout){const{min:f,max:h}=u.layout.layoutBox[l],m=d.get()||0;d.set(a[l]-Ue(f,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!$i(l)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};fn(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const m=h.get();u[f]=LN({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),fn(f=>{if(!Po(f,a,null))return;const h=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];h.set(Ue(m,p,u[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_N.set(this.visualElement,this);const a=this.visualElement.current,l=cs(a,"pointerdown",p=>{const{drag:y,dragListener:b=!0}=this.getProps(),S=p.target,T=S!==a&&vA(S);y&&b&&!T&&this.start(p)});let o;const u=()=>{const{dragConstraints:p}=this.getProps();$i(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),o||(o=BN(a,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",u);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),ze.read(u);const h=ps(window,"resize",()=>this.scalePositionWithinConstraints()),m=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:y})=>{this.isDragging&&y&&(fn(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=p[b].translate,S.set(S.get()+p[b].translate))}),this.visualElement.render())}));return()=>{h(),l(),f(),m&&m(),o&&o()}}getProps(){const a=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:f=pd,dragMomentum:h=!0}=a;return{...a,drag:l,dragDirectionLock:o,dragPropagation:u,dragConstraints:d,dragElastic:f,dragMomentum:h}}}function $0(n){let a=!0;return()=>{if(a){a=!1;return}n()}}function BN(n,a,l){const o=Qv(n,$0(l)),u=Qv(a,$0(l));return()=>{o(),u()}}function Po(n,a,l){return(a===!0||a===n)&&(l===null||l===n)}function HN(n,a=10){let l=null;return Math.abs(n.y)>a?l="y":Math.abs(n.x)>a&&(l="x"),l}class $N extends Sa{constructor(a){super(a),this.removeGroupControls=Jt,this.removeListeners=Jt,this.controls=new UN(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Jt}update(){const{dragControls:a}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};a!==l&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const jf=n=>(a,l)=>{n&&ze.update(()=>n(a,l),!1,!0)};class GN extends Sa{constructor(){super(...arguments),this.removePointerDownListener=Jt}onPointerDown(a){this.session=new Mx(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cx(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:l,onPan:o,onPanEnd:u}=this.node.getProps();return{onSessionStart:jf(a),onStart:jf(l),onMove:jf(o),onEnd:(d,f)=>{delete this.session,u&&ze.postRender(()=>u(d,f))}}}mount(){this.removePointerDownListener=cs(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Nf=!1;class YN extends w.Component{componentDidMount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:o,layoutId:u}=this.props,{projection:d}=a;d&&(l.group&&l.group.add(d),o&&o.register&&u&&o.register(d),Nf&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),lr.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:l,visualElement:o,drag:u,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,a.layoutDependency!==l&&f.setOptions({...f.options,layoutDependency:l}),Nf=!0,u||a.layoutDependency!==l||l===void 0||a.isPresent!==d?f.willUpdate():this.safeToRemove(),a.isPresent!==d&&(d?f.promote():f.relegate()||ze.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:a,layoutAnchor:l}=this.props,{projection:o}=a;o&&(o.options.layoutAnchor=l,o.root.didUpdate(),Xd.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:u}=a;Nf=!0,u&&(u.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(u),o&&o.deregister&&o.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function zx(n){const[a,l]=Kj(),o=w.useContext(fr);return g.jsx(YN,{...n,layoutGroup:o,switchLayoutGroup:w.useContext(jx),isPresent:a,safeToRemove:l})}const qN={pan:{Feature:GN},drag:{Feature:$N,ProjectionNode:gx,MeasureLayout:zx}};function G0(n,a,l){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",l==="Start");const u="onHover"+l,d=o[u];d&&ze.postRender(()=>d(a,ws(a)))}class XN extends Sa{mount(){const{current:a}=this.node;a&&(this.unmount=hA(a,(l,o)=>(G0(this.node,o,"Start"),u=>G0(this.node,u,"End"))))}unmount(){}}class KN extends Sa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xs(ps(this.node.current,"focus",()=>this.onFocus()),ps(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Y0(n,a,l){const{props:o}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",l==="Start");const u="onTap"+(l==="End"?"":l),d=o[u];d&&ze.postRender(()=>d(a,ws(a)))}class FN extends Sa{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:l,propagate:o}=this.node.props;this.unmount=bA(a,(u,d)=>(Y0(this.node,d,"Start"),(f,{success:h})=>Y0(this.node,f,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const gd=new WeakMap,Cf=new WeakMap,ZN=n=>{const a=gd.get(n.target);a&&a(n)},QN=n=>{n.forEach(ZN)};function PN({root:n,...a}){const l=n||document;Cf.has(l)||Cf.set(l,{});const o=Cf.get(l),u=JSON.stringify(a);return o[u]||(o[u]=new IntersectionObserver(QN,{root:n,...a})),o[u]}function JN(n,a,l){const o=PN(a);return gd.set(n,l),o.observe(n),()=>{gd.delete(n),o.unobserve(n)}}const WN={some:0,all:1};class IN extends Sa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var m;(m=this.stopObserver)==null||m.call(this);const{viewport:a={}}=this.node.getProps(),{root:l,margin:o,amount:u="some",once:d}=a,f={root:l?l.current:void 0,rootMargin:o,threshold:typeof u=="number"?u:WN[u]},h=p=>{const{isIntersecting:y}=p;if(this.isInView===y||(this.isInView=y,d&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:b,onViewportLeave:S}=this.node.getProps(),T=y?b:S;T&&T(p)};this.stopObserver=JN(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:l}=this.node;["amount","margin","root"].some(e3(a,l))&&this.startObserver()}unmount(){var a;(a=this.stopObserver)==null||a.call(this),this.hasEnteredView=!1,this.isInView=!1}}function e3({viewport:n={}},{viewport:a={}}={}){return l=>n[l]!==a[l]}const t3={inView:{Feature:IN},tap:{Feature:FN},focus:{Feature:KN},hover:{Feature:XN}},n3={layout:{ProjectionNode:gx,MeasureLayout:zx}},a3={...jN,...t3,...qN,...n3},Ox=SN(a3,TN),Vr=w.forwardRef(function(a,l){return g.jsx(xw,{children:g.jsx("a",{...a,ref:l})})}),Jl={base:["relative isolate inline-flex items-baseline justify-center gap-x-2 rounded-lg border text-base/6 font-semibold","px-[calc(--spacing(3.5)-1px)] py-[calc(--spacing(2.5)-1px)] sm:px-[calc(--spacing(3)-1px)] sm:py-[calc(--spacing(1.5)-1px)] sm:text-sm/6","focus:not-data-focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500","data-disabled:opacity-50","*:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:self-center *:data-[slot=icon]:text-(--btn-icon) sm:*:data-[slot=icon]:my-1 sm:*:data-[slot=icon]:size-4 forced-colors:[--btn-icon:ButtonText] forced-colors:data-hover:[--btn-icon:ButtonText]"],solid:["border-transparent bg-(--btn-border)","dark:bg-(--btn-bg)","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(var(--radius-lg)-1px)] before:bg-(--btn-bg)","before:shadow-sm","dark:before:hidden","dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(var(--radius-lg)-1px)]","after:shadow-[inset_0_1px_--theme(--color-white/15%)]","data-active:after:bg-(--btn-hover-overlay) data-hover:after:bg-(--btn-hover-overlay)","dark:after:-inset-px dark:after:rounded-lg","data-disabled:before:shadow-none data-disabled:after:shadow-none"],outline:["border-zinc-950/10 text-zinc-950 data-active:bg-zinc-950/2.5 data-hover:bg-zinc-950/2.5","dark:border-white/15 dark:text-white dark:[--btn-bg:transparent] dark:data-active:bg-white/5 dark:data-hover:bg-white/5","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],plain:["border-transparent text-zinc-950 data-active:bg-zinc-950/5 data-hover:bg-zinc-950/5","dark:text-white dark:data-active:bg-white/10 dark:data-hover:bg-white/10","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],colors:{"dark/zinc":["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:text-white dark:[--btn-bg:var(--color-zinc-600)] dark:[--btn-hover-overlay:var(--color-white)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],light:["text-zinc-950 [--btn-bg:white] [--btn-border:var(--color-zinc-950)]/10 [--btn-hover-overlay:var(--color-zinc-950)]/2.5 data-active:[--btn-border:var(--color-zinc-950)]/15 data-hover:[--btn-border:var(--color-zinc-950)]/15","dark:text-white dark:[--btn-hover-overlay:var(--color-white)]/5 dark:[--btn-bg:var(--color-zinc-800)]","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],"dark/white":["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:text-zinc-950 dark:[--btn-bg:white] dark:[--btn-hover-overlay:var(--color-zinc-950)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],dark:["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:[--btn-hover-overlay:var(--color-white)]/5 dark:[--btn-bg:var(--color-zinc-800)]","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],white:["text-zinc-950 [--btn-bg:white] [--btn-border:var(--color-zinc-950)]/10 [--btn-hover-overlay:var(--color-zinc-950)]/2.5 data-active:[--btn-border:var(--color-zinc-950)]/15 data-hover:[--btn-border:var(--color-zinc-950)]/15","dark:[--btn-hover-overlay:var(--color-zinc-950)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-500)] data-hover:[--btn-icon:var(--color-zinc-500)]"],zinc:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-zinc-600)] [--btn-border:var(--color-zinc-700)]/90","dark:[--btn-hover-overlay:var(--color-white)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],indigo:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-indigo-500)] [--btn-border:var(--color-indigo-600)]/90","[--btn-icon:var(--color-indigo-300)] data-active:[--btn-icon:var(--color-indigo-200)] data-hover:[--btn-icon:var(--color-indigo-200)]"],cyan:["text-cyan-950 [--btn-bg:var(--color-cyan-300)] [--btn-border:var(--color-cyan-400)]/80 [--btn-hover-overlay:var(--color-white)]/25","[--btn-icon:var(--color-cyan-500)]"],red:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-red-600)] [--btn-border:var(--color-red-700)]/90","[--btn-icon:var(--color-red-300)] data-active:[--btn-icon:var(--color-red-200)] data-hover:[--btn-icon:var(--color-red-200)]"],orange:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-orange-500)] [--btn-border:var(--color-orange-600)]/90","[--btn-icon:var(--color-orange-300)] data-active:[--btn-icon:var(--color-orange-200)] data-hover:[--btn-icon:var(--color-orange-200)]"],amber:["text-amber-950 [--btn-hover-overlay:var(--color-white)]/25 [--btn-bg:var(--color-amber-400)] [--btn-border:var(--color-amber-500)]/80","[--btn-icon:var(--color-amber-600)]"],yellow:["text-yellow-950 [--btn-hover-overlay:var(--color-white)]/25 [--btn-bg:var(--color-yellow-300)] [--btn-border:var(--color-yellow-400)]/80","[--btn-icon:var(--color-yellow-600)] data-active:[--btn-icon:var(--color-yellow-700)] data-hover:[--btn-icon:var(--color-yellow-700)]"],lime:["text-lime-950 [--btn-hover-overlay:var(--color-white)]/25 [--btn-bg:var(--color-lime-300)] [--btn-border:var(--color-lime-400)]/80","[--btn-icon:var(--color-lime-600)] data-active:[--btn-icon:var(--color-lime-700)] data-hover:[--btn-icon:var(--color-lime-700)]"],green:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-green-600)] [--btn-border:var(--color-green-700)]/90","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],emerald:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-emerald-600)] [--btn-border:var(--color-emerald-700)]/90","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],teal:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-teal-600)] [--btn-border:var(--color-teal-700)]/90","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],sky:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-sky-500)] [--btn-border:var(--color-sky-600)]/80","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],blue:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-blue-600)] [--btn-border:var(--color-blue-700)]/90","[--btn-icon:var(--color-blue-400)] data-active:[--btn-icon:var(--color-blue-300)] data-hover:[--btn-icon:var(--color-blue-300)]"],violet:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-violet-500)] [--btn-border:var(--color-violet-600)]/90","[--btn-icon:var(--color-violet-300)] data-active:[--btn-icon:var(--color-violet-200)] data-hover:[--btn-icon:var(--color-violet-200)]"],purple:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-purple-500)] [--btn-border:var(--color-purple-600)]/90","[--btn-icon:var(--color-purple-300)] data-active:[--btn-icon:var(--color-purple-200)] data-hover:[--btn-icon:var(--color-purple-200)]"],fuchsia:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-fuchsia-500)] [--btn-border:var(--color-fuchsia-600)]/90","[--btn-icon:var(--color-fuchsia-300)] data-active:[--btn-icon:var(--color-fuchsia-200)] data-hover:[--btn-icon:var(--color-fuchsia-200)]"],pink:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-pink-500)] [--btn-border:var(--color-pink-600)]/90","[--btn-icon:var(--color-pink-300)] data-active:[--btn-icon:var(--color-pink-200)] data-hover:[--btn-icon:var(--color-pink-200)]"],rose:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-rose-500)] [--btn-border:var(--color-rose-600)]/90","[--btn-icon:var(--color-rose-300)] data-active:[--btn-icon:var(--color-rose-200)] data-hover:[--btn-icon:var(--color-rose-200)]"]}};w.forwardRef(function({color:a,outline:l,plain:o,className:u,children:d,...f},h){let m=Ke(u,Jl.base,l?Jl.outline:o?Jl.plain:Ke(Jl.solid,Jl.colors[a??"dark/zinc"]));return typeof f.href=="string"?g.jsx(Vr,{...f,className:m,ref:h,children:g.jsx(ba,{children:d})}):g.jsx(ys,{...f,className:Ke(m,"cursor-default"),ref:h,children:g.jsx(ba,{children:d})})});function ba({children:n}){return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"absolute top-1/2 left-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 pointer-fine:hidden","aria-hidden":"true"}),n]})}function i3({className:n,...a}){return g.jsx("nav",{...a,className:Ke(n,"flex flex-1 items-center gap-4 py-2.5")})}function l3({className:n,...a}){let l=w.useId();return g.jsx(bx,{id:l,children:g.jsx("div",{...a,className:Ke(n,"flex items-center gap-3")})})}function s3({className:n,...a}){return g.jsx("div",{"aria-hidden":"true",...a,className:Ke(n,"-ml-4 flex-1")})}const eh=w.forwardRef(function({current:a,className:l,children:o,...u},d){let f=Ke("relative flex min-w-0 items-center gap-3 rounded-lg p-2 text-left text-base/6 font-medium text-zinc-950 sm:text-sm/5","*:data-[slot=icon]:size-6 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:fill-zinc-500 sm:*:data-[slot=icon]:size-5","*:not-nth-2:last:data-[slot=icon]:ml-auto *:not-nth-2:last:data-[slot=icon]:size-5 sm:*:not-nth-2:last:data-[slot=icon]:size-4","*:data-[slot=avatar]:-m-0.5 *:data-[slot=avatar]:size-7 *:data-[slot=avatar]:[--avatar-radius:var(--radius-md)] sm:*:data-[slot=avatar]:size-6","data-hover:bg-zinc-950/5 data-hover:*:data-[slot=icon]:fill-zinc-950","data-active:bg-zinc-950/5 data-active:*:data-[slot=icon]:fill-zinc-950","dark:text-white dark:*:data-[slot=icon]:fill-zinc-400","dark:data-hover:bg-white/5 dark:data-hover:*:data-[slot=icon]:fill-white","dark:data-active:bg-white/5 dark:data-active:*:data-[slot=icon]:fill-white");return g.jsxs("span",{className:Ke(l,"relative"),children:[a&&g.jsx(Ox.span,{layoutId:"current-indicator",className:"absolute inset-x-2 -bottom-2.5 h-0.5 rounded-full bg-zinc-950 dark:bg-white"}),typeof u.href=="string"?g.jsx(Vr,{...u,className:f,"data-current":a?"true":void 0,ref:d,children:g.jsx(ba,{children:o})}):g.jsx(ys,{...u,className:Ke("cursor-default",f),"data-current":a?"true":void 0,ref:d,children:g.jsx(ba,{children:o})})]})});function o3(){return g.jsx("svg",{"data-slot":"icon",viewBox:"0 0 20 20","aria-hidden":"true",children:g.jsx("path",{d:"M2 6.75C2 6.33579 2.33579 6 2.75 6H17.25C17.6642 6 18 6.33579 18 6.75C18 7.16421 17.6642 7.5 17.25 7.5H2.75C2.33579 7.5 2 7.16421 2 6.75ZM2 13.25C2 12.8358 2.33579 12.5 2.75 12.5H17.25C17.6642 12.5 18 12.8358 18 13.25C18 13.6642 17.6642 14 17.25 14H2.75C2.33579 14 2 13.6642 2 13.25Z"})})}function r3(){return g.jsx("svg",{"data-slot":"icon",viewBox:"0 0 20 20","aria-hidden":"true",children:g.jsx("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})})}function u3({open:n,close:a,children:l}){return g.jsxs(aE,{open:n,onClose:a,className:"lg:hidden",children:[g.jsx(tE,{transition:!0,className:"fixed inset-0 bg-black/30 transition data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in"}),g.jsx(Yy,{transition:!0,className:"fixed inset-y-0 w-full max-w-80 p-2 transition duration-300 ease-in-out data-closed:-translate-x-full",children:g.jsxs("div",{className:"flex h-full flex-col rounded-lg bg-ouro-deep shadow-xl ring-1 ring-ouro-moss/40",children:[g.jsx("div",{className:"-mb-3 px-4 pt-3",children:g.jsx(yy,{as:eh,"aria-label":"Close navigation",children:g.jsx(r3,{})})}),l]})})]})}function c3({navbar:n,sidebar:a,children:l}){let[o,u]=w.useState(!1);return g.jsxs("div",{className:"relative isolate flex min-h-svh w-full bg-ouro-void max-lg:flex-col",children:[g.jsx("div",{className:"fixed inset-y-0 left-0 w-64 max-lg:hidden border-r border-zinc-200 dark:border-ouro-moss/30",children:a}),g.jsx(u3,{open:o,close:()=>u(!1),children:a}),g.jsxs("header",{className:"flex items-center px-4 lg:hidden",children:[g.jsx("div",{className:"py-2.5",children:g.jsx(eh,{onClick:()=>u(!0),"aria-label":"Open navigation",children:g.jsx(o3,{})})}),g.jsx("div",{className:"min-w-0 flex-1",children:n})]}),g.jsx("main",{className:"flex flex-1 flex-col lg:min-w-0 lg:pl-64",children:g.jsx("div",{className:"grow bg-ouro-deep p-4 lg:p-8",children:g.jsx("div",{className:"mx-auto max-w-6xl",children:l})})})]})}function f3({className:n,...a}){return g.jsx("nav",{...a,className:Ke(n,"flex h-full min-h-0 flex-col")})}function d3({className:n,...a}){return g.jsx("div",{...a,className:Ke(n,"flex flex-col border-b border-zinc-950/5 p-4 dark:border-white/5 [&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function h3({className:n,...a}){return g.jsx("div",{...a,className:Ke(n,"flex flex-1 flex-col overflow-y-auto p-4 [&>[data-slot=section]+[data-slot=section]]:mt-8")})}function m3({className:n,...a}){return g.jsx("div",{...a,className:Ke(n,"flex flex-col border-t border-zinc-950/5 p-4 dark:border-white/5 [&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function q0({className:n,...a}){let l=w.useId();return g.jsx(bx,{id:l,children:g.jsx("div",{...a,"data-slot":"section",className:Ke(n,"flex flex-col gap-0.5")})})}function X0({className:n,...a}){return g.jsx("h3",{...a,className:Ke(n,"mb-1 px-2 text-xs/6 font-medium text-zinc-500 dark:text-zinc-400")})}const p3=w.forwardRef(function({current:a,className:l,children:o,...u},d){let f=Ke("flex w-full items-center gap-3 rounded-lg px-2 py-2.5 text-left text-base/6 font-medium text-zinc-950 sm:py-2 sm:text-sm/5","*:data-[slot=icon]:size-6 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:fill-zinc-500 sm:*:data-[slot=icon]:size-5","*:last:data-[slot=icon]:ml-auto *:last:data-[slot=icon]:size-5 sm:*:last:data-[slot=icon]:size-4","*:data-[slot=avatar]:-m-0.5 *:data-[slot=avatar]:size-7 sm:*:data-[slot=avatar]:size-6","data-hover:bg-zinc-950/5 data-hover:*:data-[slot=icon]:fill-zinc-950","data-active:bg-zinc-950/5 data-active:*:data-[slot=icon]:fill-zinc-950","data-current:*:data-[slot=icon]:fill-zinc-950","dark:text-white dark:*:data-[slot=icon]:fill-zinc-400","dark:data-hover:bg-white/5 dark:data-hover:*:data-[slot=icon]:fill-white","dark:data-active:bg-white/5 dark:data-active:*:data-[slot=icon]:fill-white","dark:data-current:*:data-[slot=icon]:fill-white");return g.jsxs("span",{className:Ke(l,"relative"),children:[a&&g.jsx(Ox.span,{layoutId:"current-indicator",className:"absolute inset-y-2 -left-4 w-0.5 rounded-full bg-zinc-950 dark:bg-white"}),typeof u.href=="string"?g.jsx(yy,{as:Vr,...u,className:f,"data-current":a?"true":void 0,ref:d,children:g.jsx(ba,{children:o})}):g.jsx(ys,{...u,className:Ke("cursor-default",f),"data-current":a?"true":void 0,ref:d,children:g.jsx(ba,{children:o})})]})});function g3({className:n,...a}){return g.jsx("span",{...a,className:Ke(n,"truncate")})}const v3={red:"bg-red-500/15 text-red-700 group-data-hover:bg-red-500/25 dark:bg-red-500/10 dark:text-red-400 dark:group-data-hover:bg-red-500/20",orange:"bg-orange-500/15 text-orange-700 group-data-hover:bg-orange-500/25 dark:bg-orange-500/10 dark:text-orange-400 dark:group-data-hover:bg-orange-500/20",amber:"bg-amber-400/20 text-amber-700 group-data-hover:bg-amber-400/30 dark:bg-amber-400/10 dark:text-amber-400 dark:group-data-hover:bg-amber-400/15",yellow:"bg-yellow-400/20 text-yellow-700 group-data-hover:bg-yellow-400/30 dark:bg-yellow-400/10 dark:text-yellow-300 dark:group-data-hover:bg-yellow-400/15",lime:"bg-lime-400/20 text-lime-700 group-data-hover:bg-lime-400/30 dark:bg-lime-400/10 dark:text-lime-300 dark:group-data-hover:bg-lime-400/15",green:"bg-green-500/15 text-green-700 group-data-hover:bg-green-500/25 dark:bg-green-500/10 dark:text-green-400 dark:group-data-hover:bg-green-500/20",emerald:"bg-emerald-500/15 text-emerald-700 group-data-hover:bg-emerald-500/25 dark:bg-emerald-500/10 dark:text-emerald-400 dark:group-data-hover:bg-emerald-500/20",teal:"bg-teal-500/15 text-teal-700 group-data-hover:bg-teal-500/25 dark:bg-teal-500/10 dark:text-teal-300 dark:group-data-hover:bg-teal-500/20",cyan:"bg-cyan-400/20 text-cyan-700 group-data-hover:bg-cyan-400/30 dark:bg-cyan-400/10 dark:text-cyan-300 dark:group-data-hover:bg-cyan-400/15",sky:"bg-sky-500/15 text-sky-700 group-data-hover:bg-sky-500/25 dark:bg-sky-500/10 dark:text-sky-300 dark:group-data-hover:bg-sky-500/20",blue:"bg-blue-500/15 text-blue-700 group-data-hover:bg-blue-500/25 dark:text-blue-400 dark:group-data-hover:bg-blue-500/25",indigo:"bg-indigo-500/15 text-indigo-700 group-data-hover:bg-indigo-500/25 dark:text-indigo-400 dark:group-data-hover:bg-indigo-500/20",violet:"bg-violet-500/15 text-violet-700 group-data-hover:bg-violet-500/25 dark:text-violet-400 dark:group-data-hover:bg-violet-500/20",purple:"bg-purple-500/15 text-purple-700 group-data-hover:bg-purple-500/25 dark:text-purple-400 dark:group-data-hover:bg-purple-500/20",fuchsia:"bg-fuchsia-400/15 text-fuchsia-700 group-data-hover:bg-fuchsia-400/25 dark:bg-fuchsia-400/10 dark:text-fuchsia-400 dark:group-data-hover:bg-fuchsia-400/20",pink:"bg-pink-400/15 text-pink-700 group-data-hover:bg-pink-400/25 dark:bg-pink-400/10 dark:text-pink-400 dark:group-data-hover:bg-pink-400/20",rose:"bg-rose-400/15 text-rose-700 group-data-hover:bg-rose-400/25 dark:bg-rose-400/10 dark:text-rose-400 dark:group-data-hover:bg-rose-400/20",zinc:"bg-zinc-600/10 text-zinc-700 group-data-hover:bg-zinc-600/20 dark:bg-white/5 dark:text-zinc-400 dark:group-data-hover:bg-white/10"};function He({color:n="zinc",className:a,...l}){return g.jsx("span",{...l,className:Ke(a,"inline-flex items-center gap-x-1.5 rounded-md px-1.5 py-0.5 text-sm/5 font-medium sm:text-xs/5 forced-colors:outline",v3[n])})}w.forwardRef(function({color:a="zinc",className:l,children:o,...u},d){let f=Ke(l,"group relative inline-flex rounded-md focus:not-data-focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500");return typeof u.href=="string"?g.jsx(Vr,{...u,className:f,ref:d,children:g.jsx(ba,{children:g.jsx(He,{color:a,children:o})})}):g.jsx(ys,{...u,className:f,ref:d,children:g.jsx(ba,{children:g.jsx(He,{color:a,children:o})})})});function y3(n){w.useEffect(()=>{if(!n)return;function a(l){if(!(l.target instanceof HTMLInputElement||l.target instanceof HTMLTextAreaElement))switch(l.key){case"1":n({tab:"overview"});break;case"2":n({tab:"sessions"});break;case"3":n({tab:"work"});break;case"4":n({tab:"connections"});break;case"5":n({tab:"inner"});break;case"6":n({tab:"memory"});break;case"7":n({tab:"runtime"});break;case"Escape":{document.activeElement instanceof HTMLElement&&document.activeElement.blur();break}}}return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[n])}const b3={"owed-reply":"red","blocking-obligation":"red","broken-return":"red","stale-delegation":"yellow","return-ready":"lime","overdue-habit":"yellow"},x3={"owed-reply":"owed reply","blocking-obligation":"blocking","broken-return":"broken return","stale-delegation":"stale","return-ready":"ready to return","overdue-habit":"overdue"},S3={"owed-reply":"Someone spoke last and is waiting for your response","blocking-obligation":"This obligation is open and blocking forward progress","broken-return":"Work was done but the result was never returned to the requester","stale-delegation":"This was delegated to you and hasn't been addressed","return-ready":"The result is ready — deliver it to close the loop","overdue-habit":"This routine is past its scheduled cadence"},T3=new Set(["stale-delegation"]),w3=new Set(["owed-reply","blocking-obligation","broken-return","return-ready","overdue-habit"]);function E3({view:n,deskPrefs:a}){const l=Qi(),[o,u]=w.useState(null),[d,f]=w.useState(null),h=n.agent,m=n.work,p=n.inner,y=n.activity,b=h.degraded,S=h.attention,T=m.tasks,E=m.obligations,j=m.sessions,C=m.coding,D=h.senses??[],O=m.bridges??[];return w.useEffect(()=>{at(`/agents/${encodeURIComponent(h.agentName)}/needs-me`).then(u),at(`/agents/${encodeURIComponent(h.agentName)}/coding`).then(f)},[h.agentName]),g.jsxs("div",{className:"space-y-6",children:[o&&o.items.length>0&&(()=>{const R=o.items.filter(q=>w3.has(q.urgency)),B=o.items.filter(q=>T3.has(q.urgency));return g.jsxs("div",{className:"space-y-3",children:[R.length>0&&g.jsxs("div",{className:"rounded-xl bg-ouro-fang/5 p-4 ring-1 ring-ouro-fang/15",children:[g.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-fang",children:["Action now (",R.length,")"]}),g.jsx("div",{className:"mt-2 space-y-1.5",children:R.map((q,Z)=>g.jsx(K0,{item:q,nav:l,agentName:h.agentName,onDismiss:()=>{u(F=>F&&{items:F.items.filter((te,he)=>o.items.indexOf(q)!==he)})}},`action-${Z}`))})]}),B.length>0&&g.jsxs("div",{className:"rounded-xl bg-ouro-gold/5 p-4 ring-1 ring-ouro-gold/15",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-gold",children:["Stale (",B.length,")"]}),g.jsx("button",{onClick:async()=>{var q;for(const Z of B)(q=Z.ref)!=null&&q.focus&&await fetch(`/outlook/api/agents/${encodeURIComponent(h.agentName)}/dismiss-obligation`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({obligationId:Z.ref.focus})});at(`/agents/${encodeURIComponent(h.agentName)}/needs-me`).then(u)},className:"text-xs text-ouro-gold underline underline-offset-2 hover:text-ouro-bone transition-colors",children:"Clear all stale"})]}),g.jsx("div",{className:"mt-2 space-y-1.5",children:B.map((q,Z)=>g.jsx(K0,{item:q,nav:l,agentName:h.agentName,onDismiss:()=>{at(`/agents/${encodeURIComponent(h.agentName)}/needs-me`).then(u)}},`stale-${Z}`))})]})]})})(),(a==null?void 0:a.carrying)&&g.jsxs("div",{className:"rounded-xl bg-ouro-moss/10 p-4 ring-1 ring-ouro-glow/8",children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"What I'm carrying"}),g.jsx("p",{className:"mt-1 text-sm leading-relaxed text-ouro-bone",children:a.carrying})]}),(()=>{const R=(a==null?void 0:a.pinnedConstellations)??[];return R.length===0?null:g.jsxs("div",{children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Pinned threads"}),g.jsx("div",{className:"mt-2 space-y-2",children:R.map((B,q)=>g.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[g.jsx("p",{className:"font-medium text-ouro-bone",children:B.label}),g.jsxs("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[(B.friendIds??[]).map(Z=>g.jsxs("button",{onClick:()=>l({tab:"sessions"}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["friend:",Z.slice(0,8),"…"]},Z)),(B.taskRefs??[]).map(Z=>g.jsxs("button",{onClick:()=>l({tab:"work"}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["task:",Z]},Z)),(B.bridgeIds??[]).map(Z=>g.jsxs("button",{onClick:()=>l({tab:"connections",focus:Z}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["bridge:",Z.slice(0,8),"…"]},Z))]})]},q))})]})})(),g.jsxs("div",{className:"rounded-xl bg-ouro-moss/15 p-4 ring-1 ring-ouro-glow/10 sm:p-5",children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"Center of gravity"}),g.jsx("p",{className:"mt-1 font-display text-xl italic font-semibold text-ouro-bone sm:text-2xl",children:S.label}),g.jsxs("p",{className:"mt-2 text-sm leading-relaxed text-ouro-mist",children:[h.agentName," has"," ",g.jsxs(Jo,{tab:"work",children:[T.liveCount," live tasks"]}),","," ",g.jsxs(Jo,{tab:"work",children:[E.openCount," obligations"]}),","," ",g.jsxs(Jo,{tab:"work",children:[C.activeCount," coding lanes"]}),", and"," ",g.jsxs(Jo,{tab:"sessions",children:[j.liveCount," live sessions"]}),"."]}),b.status==="degraded"&&b.issues.length>0&&g.jsxs("div",{className:"mt-3 space-y-1",children:[b.issues.slice(0,5).map((R,B)=>g.jsxs("button",{onClick:()=>l({tab:"runtime"}),className:"flex w-full items-start gap-2 rounded-lg bg-ouro-fang/5 px-3 py-2 text-left text-sm ring-1 ring-ouro-fang/10 hover:ring-ouro-fang/25 transition-colors",children:[g.jsx("span",{className:"mt-0.5 h-2 w-2 shrink-0 rounded-full bg-ouro-fang"}),g.jsxs("span",{className:"text-ouro-mist",children:[g.jsx("span",{className:"font-semibold text-ouro-fang",children:R.code}),g.jsxs("span",{className:"text-ouro-shadow",children:[" — ",kt(R.detail,80)]})]})]},B)),b.issues.length>5&&g.jsxs("button",{onClick:()=>l({tab:"runtime"}),className:"text-xs text-ouro-glow underline underline-offset-2",children:["+",b.issues.length-5," more issues"]})]})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:[g.jsx(Wo,{label:"Tasks",value:T.liveCount,sub:`${T.blockedCount} blocked`,onClick:()=>l({tab:"work"})}),g.jsx(Wo,{label:"Obligations",value:E.openCount,sub:`${j.liveCount} sessions`,onClick:()=>l({tab:"work"})}),g.jsx(Wo,{label:"Coding",value:C.activeCount,sub:`${C.blockedCount} blocked`,onClick:()=>l({tab:"work"})}),g.jsx(Wo,{label:"Inner",value:p.status,sub:kt(p.summary??"",30),onClick:()=>l({tab:"inner"})})]}),d&&d.items.length>0&&(()=>{const R=d.items.filter(B=>["spawning","running","waiting_input","stalled"].includes(B.status));return R.length===0?null:g.jsx(Wl,{title:`Active coding (${R.length})`,children:g.jsx("div",{className:"space-y-1.5",children:R.map(B=>g.jsxs("button",{onClick:()=>l({tab:"work"}),className:"flex w-full items-center gap-2 rounded-lg bg-ouro-void/40 px-3 py-2 text-left ring-1 ring-ouro-moss/15 hover:ring-ouro-glow/20 transition-colors",children:[g.jsx(He,{color:B.status==="running"?"lime":B.status==="waiting_input"?"yellow":"zinc",children:B.status}),g.jsxs("span",{className:"truncate text-sm text-ouro-bone",children:[B.runner," — ",kt(B.workdir,40)]}),g.jsx("span",{className:"shrink-0 text-xs text-ouro-shadow",children:_t(B.lastActivityAt)})]},B.id))})})})(),g.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[g.jsx(Wl,{title:"Senses",children:D.length>0?g.jsx(A3,{items:D}):g.jsx(Mf,{children:"No active senses"})}),g.jsx(Wl,{title:"Bridges",children:O.length>0?g.jsx("div",{className:"flex flex-wrap gap-1.5",children:O.map(R=>g.jsx("button",{onClick:()=>l({tab:"connections",focus:R}),children:g.jsx(He,{color:"lime",children:R})},R))}):g.jsx(Mf,{children:"No active bridges"})})]}),(()=>{var q;const B=(((q=m.obligations)==null?void 0:q.items)??[]).filter(Z=>Z.status==="fulfilled");return B.length===0?null:g.jsx(Wl,{title:"Recently closed",children:g.jsx("div",{className:"space-y-1",children:B.slice(0,3).map((Z,F)=>g.jsxs("div",{className:"flex items-center gap-2 rounded-lg px-3 py-2 bg-ouro-glow/5 ring-1 ring-ouro-glow/10",children:[g.jsx(He,{color:"lime",children:"closed"}),g.jsx("p",{className:"text-sm text-ouro-mist truncate",children:kt(Z.content,80)}),g.jsx("span",{className:"shrink-0 text-xs text-ouro-shadow",children:_t(Z.updatedAt)})]},F))})})})(),g.jsx(Wl,{title:"Recent activity",children:y.recent.length>0?g.jsx("div",{className:"space-y-1",children:y.recent.map((R,B)=>{const q=R.kind==="coding"||R.kind==="obligation"?"work":R.kind==="session"?"sessions":"inner";return g.jsxs("button",{onClick:()=>l({tab:q}),className:"flex w-full flex-col gap-0.5 rounded-lg px-3 py-2.5 text-left hover:bg-ouro-moss/10 transition-colors",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(He,{children:R.kind}),g.jsx("span",{className:"text-xs text-ouro-shadow",children:_t(R.at)})]}),g.jsx("p",{className:"truncate text-sm font-medium text-ouro-bone",children:kt(R.label,100)}),g.jsx("p",{className:"truncate text-xs text-ouro-shadow",children:kt(R.detail,80)})]},B)})}):g.jsx(Mf,{children:"No recent activity yet."})})]})}function K0({item:n,nav:a,agentName:l,onDismiss:o}){var d;const u=n.urgency==="return-ready";return g.jsxs("div",{className:`flex w-full items-start gap-2.5 rounded-lg px-3 py-2.5 text-left ring-1 transition-colors ${u?"bg-ouro-glow/5 ring-ouro-glow/15":"bg-ouro-void/40 ring-ouro-moss/10"}`,children:[g.jsxs("button",{onClick:()=>n.ref&&a({tab:n.ref.tab,focus:n.ref.focus}),className:"flex min-w-0 flex-1 items-start gap-2.5",children:[g.jsx(He,{color:b3[n.urgency]??"zinc",children:x3[n.urgency]??n.urgency}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("p",{className:`text-sm font-medium ${u?"text-ouro-glow":"text-ouro-bone"}`,children:n.label}),g.jsx("p",{className:"text-xs text-ouro-shadow truncate",children:n.detail}),g.jsx("p",{className:"text-[10px] italic text-ouro-shadow/60 mt-0.5",children:S3[n.urgency]??""})]}),n.ageMs!=null&&g.jsx("span",{className:"shrink-0 text-xs tabular-nums text-ouro-shadow",children:n.ageMs<36e5?`${Math.floor(n.ageMs/6e4)}m`:n.ageMs<864e5?`${Math.floor(n.ageMs/36e5)}h`:`${Math.floor(n.ageMs/864e5)}d`})]}),((d=n.ref)==null?void 0:d.focus)&&g.jsx("button",{onClick:async f=>{f.stopPropagation(),await fetch(`/outlook/api/agents/${encodeURIComponent(l)}/dismiss-obligation`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({obligationId:n.ref.focus})}),o()},className:"shrink-0 text-xs text-ouro-shadow hover:text-ouro-fang transition-colors",title:"Dismiss",children:"✕"})]})}function Jo({tab:n,children:a}){const l=Qi();return g.jsx("button",{onClick:()=>l({tab:n}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow transition-colors",children:a})}function Wo({label:n,value:a,sub:l,onClick:o}){return g.jsxs("button",{onClick:o,className:"rounded-xl bg-ouro-void/50 p-3 text-left ring-1 ring-ouro-moss/20 hover:ring-ouro-glow/20 transition-all",children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow",children:n}),g.jsx("p",{className:"mt-1 text-xl font-semibold tabular-nums text-ouro-bone",children:a}),g.jsx("p",{className:"mt-0.5 truncate text-xs text-ouro-shadow",children:l})]})}function Wl({title:n,children:a}){return g.jsxs("div",{children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n}),g.jsx("div",{className:"mt-2",children:a})]})}function A3({items:n}){return g.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(a=>g.jsx(He,{color:"lime",children:a},a))})}function Mf({children:n}){return g.jsx("p",{className:"text-sm text-ouro-shadow",children:n})}function vd(n){const a=n.function.name,l=j3(n.function.arguments);return a==="settle"?{kind:"response",name:a,id:n.id,deliveredText:l.answer??null,delegatedThought:null,metadata:l.intent??null,rawArgs:null}:a==="ponder"?{kind:"delegation",name:a,id:n.id,deliveredText:l.say??null,delegatedThought:l.thought??null,metadata:null,rawArgs:null}:a==="rest"?{kind:"rest",name:a,id:n.id,deliveredText:null,delegatedThought:null,metadata:null,rawArgs:null}:a==="observe"?{kind:"observe",name:a,id:n.id,deliveredText:null,delegatedThought:null,metadata:l.reason??null,rawArgs:null}:a==="surface"?{kind:"surface",name:a,id:n.id,deliveredText:l.content??null,delegatedThought:null,metadata:l.delegationId??l.friendId??null,rawArgs:null}:{kind:"action",name:a,id:n.id,deliveredText:null,delegatedThought:null,metadata:null,rawArgs:n.function.arguments}}function j3(n){try{const a=JSON.parse(n);if(a&&typeof a=="object")return a}catch{}return{}}const F0={"needs-reply":{color:"red",label:"needs reply"},"on-hold":{color:"yellow",label:"on hold"},monitoring:{color:"zinc",label:"monitoring"},idle:{color:"zinc",label:"idle"}};function N3({agentName:n,focus:a,onFocusConsumed:l,deskPrefs:o}){Qi();const[u,d]=w.useState(null),[f,h]=w.useState(null),[m,p]=w.useState(null),[y,b]=w.useState(!1);w.useEffect(()=>{at(`/agents/${encodeURIComponent(n)}/sessions`).then(O=>{d(O),a&&(S(a),l==null||l())})},[n,a]);function S(O){if(f===O){h(null),p(null);return}h(O),p(null),b(!0);const[R,B,q]=O.split("/");at(`/agents/${encodeURIComponent(n)}/sessions/${encodeURIComponent(R)}/${encodeURIComponent(B)}/${encodeURIComponent(q)}`).then(p).catch(()=>p(null)).finally(()=>b(!1))}const T=new Set((o==null?void 0:o.starredFriends)??[]);if(!u)return g.jsx(Rx,{label:"Loading sessions"});const E=new Map;for(const O of u.items)E.has(O.friendId)||E.set(O.friendId,[]),E.get(O.friendId).push(O);const j=[...E.entries()].sort((O,R)=>{const B=T.has(O[0])?0:1,q=T.has(R[0])?0:1;return B!==q?B-q:R[1].length-O[1].length}),C=[],D=new Map;for(const[O,R]of j)D.set(C.length,{name:R[0].friendName,channels:R.length,starred:T.has(O)}),C.push(...R);return g.jsxs("div",{className:"space-y-3",children:[g.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:[u.totalCount," sessions · ",u.activeCount," active · ",u.staleCount," stale"]}),g.jsx("div",{className:"space-y-1.5",children:C.map((O,R)=>{var me;const B=D.get(R),q=T.has(O.friendId),Z=`${O.friendId}/${O.channel}/${O.key}`,F=f===Z,te=F0[O.replyState]??F0.idle,he=((me=O.lastUsage)==null?void 0:me.total_tokens)??O.estimatedTokens??0,oe=he>0?Math.min(100,Math.round(he/8e4*100)):0;return g.jsxs("div",{children:[B&&B.channels>1&&g.jsxs("div",{className:"flex items-center gap-2 pt-3 pb-1",children:[B.starred&&g.jsx("span",{className:"text-ouro-gold text-sm",children:"★"}),g.jsx("span",{className:"font-medium text-ouro-bone text-sm",children:B.name}),g.jsxs("span",{className:"text-xs text-ouro-shadow",children:[B.channels," channels"]})]}),g.jsxs("button",{onClick:()=>S(Z),className:`flex w-full flex-col gap-1.5 rounded-lg px-3 py-3 text-left transition-colors ring-1 ${F?"bg-ouro-moss/15 ring-ouro-glow/20":"ring-ouro-moss/15 hover:bg-ouro-moss/8"}`,children:[g.jsxs("div",{className:"flex items-center justify-between gap-2",children:[g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[q&&g.jsx("span",{className:"text-ouro-gold",title:"Starred",children:"★"}),g.jsx("span",{className:"truncate font-medium text-ouro-bone",children:O.friendName}),g.jsxs("span",{className:"shrink-0 text-xs text-ouro-shadow",children:["via ",O.channel]}),g.jsx(He,{color:te.color,children:te.label})]}),g.jsx("span",{className:"shrink-0 text-xs tabular-nums text-ouro-shadow",children:_t(O.lastActivityAt)})]}),O.latestUserExcerpt&&g.jsxs("p",{className:"truncate text-xs text-ouro-gold/70",children:[g.jsx("span",{className:"font-mono text-[9px] uppercase tracking-wider",children:"in:"})," ",kt(O.latestUserExcerpt,100)]}),O.latestAssistantExcerpt&&g.jsxs("p",{className:"truncate text-xs text-ouro-glow/60",children:[g.jsx("span",{className:"font-mono text-[9px] uppercase tracking-wider",children:"out:"})," ",kt(O.latestAssistantExcerpt,100)]}),g.jsxs("div",{className:"flex items-center gap-3 text-xs text-ouro-shadow",children:[g.jsxs("span",{className:"tabular-nums",children:[O.messageCount," msgs"]}),O.lastUsage&&g.jsxs("span",{className:"tabular-nums",children:[O.lastUsage.total_tokens.toLocaleString()," tok"]}),oe>0&&g.jsxs("div",{className:"flex items-center gap-1.5 flex-1 max-w-32",title:"Context pressure — steady state oscillates between 80-100%",children:[g.jsx("div",{className:"h-1 flex-1 rounded-full bg-ouro-moss/20",children:g.jsx("div",{className:`h-1 rounded-full transition-all ${oe>100?"bg-ouro-fang":oe>80?"bg-ouro-gold":"bg-ouro-glow"}`,style:{width:`${Math.min(100,oe)}%`}})}),g.jsxs("span",{className:"tabular-nums text-[10px]",children:[oe,"%"]})]})]})]}),F&&g.jsx(C3,{loading:y,transcript:m})]},Z)})})]})}function C3({loading:n,transcript:a}){const l=w.useRef(null);return w.useEffect(()=>{a&&l.current&&(l.current.scrollTop=l.current.scrollHeight)},[a]),g.jsxs("div",{ref:l,className:"mt-1 max-h-[70vh] overflow-y-auto rounded-lg bg-ouro-void/60 p-3 ring-1 ring-ouro-moss/15",children:[n&&g.jsx(Rx,{label:"Loading transcript"}),a&&g.jsx(M3,{messages:a.messages,usage:a.lastUsage})]})}function M3({messages:n,usage:a}){const l=n.filter(h=>h.role==="system"),o=n.filter(h=>h.role!=="system"),[u,d]=w.useState(!1),f=new Map;for(const h of o)h.role==="tool"&&h.tool_call_id&&f.set(h.tool_call_id,h);return g.jsxs("div",{className:"space-y-0.5",children:[a&&g.jsxs("p",{className:"pb-2 font-mono text-[10px] text-ouro-shadow",children:[a.input_tokens.toLocaleString()," in · ",a.output_tokens.toLocaleString()," out · ",a.total_tokens.toLocaleString()," total"]}),l.length>0&&g.jsxs("div",{className:"pb-2 mb-2 border-b border-ouro-moss/15",children:[g.jsxs("button",{onClick:()=>d(!u),className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow hover:text-ouro-mist transition-colors",children:[u?"▼":"▶"," system context (",l.length,")"]}),u&&l.map(h=>g.jsx("div",{className:"mt-2 max-h-60 overflow-y-auto rounded bg-ouro-void/40 p-2 text-xs text-ouro-shadow whitespace-pre-wrap break-words",children:h.content},h.index))]}),o.map(h=>h.role==="tool"?null:h.role==="user"?g.jsx(D3,{msg:h},h.index):h.role==="assistant"?g.jsx(z3,{msg:h,toolResults:f},h.index):null)]})}function D3({msg:n}){return g.jsx("div",{className:"flex justify-start py-1",children:g.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-bl-sm bg-ouro-moss/25 px-3.5 py-2 ring-1 ring-ouro-moss/15",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-gold/70",children:"user"}),g.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",n.index]})]}),g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:n.content})]})})}function z3({msg:n,toolResults:a}){const l=(n.tool_calls??[]).map(vd),o=l.filter(f=>f.kind!=="action"),u=l.filter(f=>f.kind==="action"),d=[];for(const f of o)f.kind==="response"?d.push(g.jsx("div",{className:"flex justify-end py-1",children:g.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-glow/8 px-3.5 py-2 ring-1 ring-ouro-glow/12",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.metadata&&f.metadata!=="complete"&&g.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["intent: ",f.metadata]})]})},f.id)):f.kind==="delegation"?d.push(g.jsx("div",{className:"flex justify-end py-1",children:g.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-glow/8 px-3.5 py-2 ring-1 ring-ouro-glow/12",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),f.deliveredText&&g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.delegatedThought&&g.jsxs("div",{className:"mt-2 rounded-lg bg-ouro-moss/20 px-2.5 py-1.5 ring-1 ring-ouro-glow/8",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/60",children:"→ inner dialog"}),g.jsx("p",{className:"mt-0.5 text-xs text-ouro-mist",children:f.delegatedThought})]})]})},f.id)):f.kind==="surface"?d.push(g.jsx("div",{className:"flex justify-end py-1",children:g.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-scale/12 px-3.5 py-2 ring-1 ring-ouro-scale/15",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"surfaced"}),g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.metadata&&g.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["→ ",f.metadata]})]})},f.id)):f.kind==="rest"?d.push(g.jsx("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/50",children:"— resting —"},f.id)):f.kind==="observe"&&d.push(g.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/50",children:["— observed",f.metadata?`: ${f.metadata}`:""," —"]},f.id));return n.content&&o.length===0&&d.push(g.jsx("div",{className:"flex justify-end py-1",children:g.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-glow/8 px-3.5 py-2 ring-1 ring-ouro-glow/12",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:n.content})]})},`${n.index}-content`)),u.length>0&&d.push(g.jsx("div",{className:"flex justify-end py-1",children:g.jsx("div",{className:"max-w-[85%] sm:max-w-[75%] space-y-1",children:u.map(f=>g.jsx(O3,{call:f,result:a.get(f.id)},f.id))})},`${n.index}-tools`)),g.jsx(g.Fragment,{children:d})}function O3({call:n,result:a}){const[l,o]=w.useState(!1);return g.jsxs("button",{onClick:()=>o(!l),className:"w-full text-left rounded-lg bg-ouro-moss/10 px-2.5 py-1.5 text-sm ring-1 ring-ouro-moss/12 hover:ring-ouro-glow/15 transition-colors",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"font-mono text-xs text-ouro-glow",children:n.name}),!l&&g.jsx("span",{className:"text-[10px] text-ouro-shadow",children:"tap to inspect"})]}),l&&g.jsxs(g.Fragment,{children:[n.rawArgs&&g.jsx("pre",{className:"mt-1.5 max-h-24 overflow-y-auto rounded bg-ouro-void/40 p-1.5 font-mono text-[11px] text-ouro-shadow whitespace-pre-wrap break-words",children:n.rawArgs}),a&&g.jsxs("div",{className:"mt-1.5 border-t border-ouro-moss/15 pt-1.5",children:[g.jsx(He,{children:"result"}),g.jsx("pre",{className:"mt-1 max-h-32 overflow-y-auto rounded bg-ouro-void/40 p-1.5 font-mono text-[11px] text-ouro-mist whitespace-pre-wrap break-words",children:a.content})]})]})]})}function Rx({label:n}){return g.jsxs("div",{className:"flex items-center gap-2 py-6",children:[g.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-ouro-glow"}),g.jsxs("span",{className:"font-mono text-xs text-ouro-shadow",children:[n,"…"]})]})}function R3({agentName:n,view:a,focus:l,onFocusConsumed:o}){var S,T,E;const u=Qi(),[d,f]=w.useState(null),h=a.work,m=h.obligations,p=h.tasks;w.useEffect(()=>{at(`/agents/${encodeURIComponent(n)}/coding`).then(f)},[n]);const y=(d==null?void 0:d.items)??[],b=new Map;for(const j of y){const C=j.obligationId;C&&(b.has(C)||b.set(C,[]),b.get(C).push(j))}return g.jsxs("div",{className:"space-y-8",children:[g.jsxs("section",{children:[g.jsx(Df,{label:`Obligations (${m.openCount} open)`}),((S=m.items)==null?void 0:S.length)>0?g.jsx("div",{className:"mt-3 space-y-3",children:m.items.map(j=>{const C=b.get(j.id)??[];return g.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[g.jsxs("div",{className:"flex items-start gap-2",children:[g.jsx(He,{color:j.status==="pending"?"yellow":j.status==="fulfilled"?"lime":"zinc",children:j.status}),g.jsx("span",{className:"text-sm font-medium text-ouro-bone",children:kt(j.content,120)})]}),j.origin&&g.jsxs("button",{onClick:()=>u({tab:"sessions",focus:`${j.origin.friendId}/${j.origin.channel}/${j.origin.key}`}),className:"mt-2 flex w-full items-center gap-2 rounded-md bg-ouro-moss/8 px-2.5 py-1.5 text-left text-xs ring-1 ring-ouro-moss/10 hover:ring-ouro-glow/20 transition-colors",children:[g.jsx("span",{className:"text-ouro-shadow",children:"from"}),g.jsx("span",{className:"font-medium text-ouro-glow",children:j.origin.channel}),g.jsx("span",{className:"text-ouro-shadow",children:"→"}),g.jsx("span",{className:"text-ouro-mist truncate",children:j.origin.key}),g.jsx("span",{className:"ml-auto text-ouro-shadow",children:"open session →"})]}),j.currentSurface&&g.jsxs("div",{className:"mt-1 text-xs text-ouro-mist",children:["surface: ",g.jsx("span",{className:"text-ouro-bone",children:j.currentSurface.kind})," — ",j.currentSurface.label]}),C.length>0&&g.jsxs("div",{className:"mt-2 space-y-1",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow",children:"Linked coding"}),C.map(D=>g.jsxs("div",{className:"flex items-center gap-2 rounded bg-ouro-moss/10 px-2 py-1 text-xs",children:[g.jsx(He,{color:D.status==="failed"?"red":D.status==="running"?"lime":"zinc",children:D.status}),g.jsxs("span",{className:"text-ouro-mist truncate",children:[D.runner," — ",D.workdir]})]},D.id))]}),j.nextAction&&g.jsxs("p",{className:"mt-1.5 text-xs text-ouro-mist",children:["Next: ",j.nextAction]}),g.jsx("p",{className:"mt-1 text-xs text-ouro-shadow",children:_t(j.updatedAt)})]},j.id)})}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No open obligations."})]}),g.jsxs("section",{children:[g.jsx(Df,{label:`Coding lanes (${y.length})`}),y.length>0?g.jsx("div",{className:"mt-3 space-y-2",children:y.map(j=>{const C=j.status,D=C==="failed",O=j.failure;return g.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(He,{color:D?"red":C==="running"?"lime":C==="completed"?"zinc":"yellow",children:C}),g.jsx("span",{className:"text-sm font-medium text-ouro-bone",children:j.runner}),g.jsx("span",{className:"truncate text-xs text-ouro-shadow",children:j.workdir})]}),g.jsxs("div",{className:"mt-1 flex flex-wrap gap-2",children:[j.obligationId&&g.jsxs("button",{onClick:()=>u({tab:"work",focus:j.obligationId}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["obligation: ",j.obligationId.slice(0,20),"…"]}),j.taskRef&&g.jsxs("span",{className:"text-xs text-ouro-glow",children:["task: ",j.taskRef]}),j.originSession&&g.jsx("button",{onClick:()=>{const R=j.originSession;u({tab:"sessions",focus:`${R.friendId}/${R.channel}/${R.key}`})},className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:"origin session"})]}),j.checkpoint&&g.jsx("p",{className:"mt-1.5 text-xs text-ouro-mist",children:kt(j.checkpoint,100)}),g.jsxs("p",{className:"mt-1 text-xs text-ouro-shadow",children:["pid ",j.pid??"–"," · restarts ",j.restartCount," · ",_t(j.lastActivityAt)]}),D&&O&&g.jsxs("div",{className:"mt-2 rounded bg-ouro-fang/5 p-2 text-xs ring-1 ring-ouro-fang/15",children:[g.jsx("span",{className:"font-semibold text-ouro-fang",children:"FAILURE:"})," ",g.jsxs("span",{className:"text-ouro-mist",children:[O.command," exited ",String(O.code??O.signal)]}),O.stderrTail&&g.jsx("pre",{className:"mt-1 max-h-20 overflow-y-auto font-mono text-[11px] text-ouro-shadow whitespace-pre-wrap",children:O.stderrTail})]})]},j.id)})}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No coding sessions."})]}),g.jsxs("section",{children:[g.jsx(Df,{label:`Tasks (${p.liveCount} live, ${p.blockedCount} blocked)`}),((T=p.liveTaskNames)==null?void 0:T.length)>0?g.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:p.liveTaskNames.map(j=>g.jsx(He,{children:j},j))}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No live tasks."}),((E=p.actionRequired)==null?void 0:E.length)>0&&g.jsxs("div",{className:"mt-3",children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-fang",children:"Action required"}),g.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:p.actionRequired.map(j=>g.jsx(He,{color:"red",children:j},j))})]})]})]})}function Df({label:n}){return g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n})}function L3({agentName:n,focus:a,onFocusConsumed:l}){const o=Qi(),[u,d]=w.useState(null),[f,h]=w.useState(null),[m,p]=w.useState(null);w.useEffect(()=>{const T=`/agents/${encodeURIComponent(n)}`;Promise.all([at(`${T}/attention`).then(d),at(`${T}/bridges`).then(h),at(`${T}/friends`).then(p)])},[n]);const y=(u==null?void 0:u.queueItems)??[],b=(f==null?void 0:f.items)??[],S=(m==null?void 0:m.friends)??[];return g.jsxs("div",{className:"space-y-8",children:[g.jsxs("section",{children:[g.jsx(zf,{label:`Who is waiting (${(u==null?void 0:u.queueLength)??0})`}),y.length>0?g.jsx("div",{className:"mt-3 space-y-2",children:y.map((T,E)=>g.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("button",{onClick:()=>o({tab:"sessions"}),className:"font-medium text-ouro-bone hover:text-ouro-glow transition-colors",children:T.friendName}),g.jsxs("span",{className:"text-xs text-ouro-shadow",children:["via ",T.channel]}),g.jsxs(He,{color:"yellow",children:["waiting ",_t(new Date(T.timestamp).toISOString())]})]}),g.jsx("p",{className:"mt-1 text-sm text-ouro-mist",children:kt(T.delegatedContent,140)}),g.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-2 text-xs",children:[T.bridgeId&&g.jsxs("button",{onClick:()=>o({tab:"connections",focus:T.bridgeId}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["bridge: ",T.bridgeId.slice(0,12),"…"]}),T.obligationId&&g.jsxs("button",{onClick:()=>o({tab:"work",focus:T.obligationId}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["obligation: ",T.obligationId.slice(0,16),"…"]})]})]},E))}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"Nobody waiting."})]}),g.jsxs("section",{children:[g.jsx(zf,{label:`Bridges (${(f==null?void 0:f.totalCount)??0})`}),b.length>0?g.jsx("div",{className:"mt-3 space-y-3",children:b.map(T=>{const E=T.attachedSessions??[],j=T.task,C=T.lifecycle==="active";return g.jsxs("div",{className:`rounded-lg px-3 py-3 ring-1 ${C?"bg-ouro-moss/10 ring-ouro-glow/12":"bg-ouro-void/40 ring-ouro-moss/15"}`,children:[g.jsxs("div",{className:"flex items-start gap-2",children:[g.jsx(He,{color:C?"lime":"zinc",children:T.lifecycle}),g.jsx("p",{className:"font-medium text-ouro-bone",children:T.objective})]}),T.summary&&g.jsx("p",{className:"mt-1 text-sm text-ouro-mist",children:kt(T.summary,160)}),E.length>0&&g.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:E.map((D,O)=>g.jsxs("button",{onClick:()=>o({tab:"sessions",focus:`${D.friendId}/${D.channel}/${D.key}`}),className:"rounded-md bg-ouro-moss/10 px-2 py-0.5 font-mono text-[11px] text-ouro-glow ring-1 ring-ouro-moss/12 hover:ring-ouro-glow/25 transition-colors",children:[D.friendId,"/",D.channel,"/",D.key]},O))}),j&&g.jsxs("p",{className:"mt-1.5 text-xs",children:[g.jsxs("button",{onClick:()=>o({tab:"work"}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["task: ",j.taskName]}),g.jsxs("span",{className:"text-ouro-shadow",children:[" (",j.mode,")"]})]}),g.jsx("p",{className:"mt-1 text-xs text-ouro-shadow",children:_t(T.updatedAt)})]},T.id)})}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No bridges."})]}),g.jsxs("section",{children:[g.jsx(zf,{label:`Friends (${(m==null?void 0:m.totalFriends)??0})`}),S.length>0?g.jsx("div",{className:"mt-3 space-y-1.5",children:S.map(T=>g.jsxs("div",{className:"flex items-center justify-between rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsx("button",{onClick:()=>o({tab:"sessions"}),className:"font-medium text-ouro-bone hover:text-ouro-glow transition-colors",children:T.friendName}),g.jsxs("p",{className:"text-xs text-ouro-shadow",children:[T.channels.join(", ")," · ",T.sessionCount," sessions",T.lastActivityAt&&g.jsxs(g.Fragment,{children:[" · ",_t(T.lastActivityAt)]})]})]}),g.jsxs("div",{className:"shrink-0 text-right",children:[g.jsx("p",{className:"tabular-nums text-sm font-medium text-ouro-bone",children:T.totalTokens.toLocaleString()}),g.jsx("p",{className:"text-[10px] text-ouro-shadow",children:"tokens"})]})]},T.friendId))}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No friends."})]})]})}function zf({label:n}){return g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n})}function V3({agentName:n,view:a}){var C;const l=Qi(),[o,u]=w.useState(null),[d,f]=w.useState(null),[h,m]=w.useState(!1),p=a.inner;w.useEffect(()=>{at(`/agents/${encodeURIComponent(n)}/habits`).then(u)},[n]);function y(){if(d){m(!h);return}at(`/agents/${encodeURIComponent(n)}/inner-transcript`).then(D=>{f(D),m(!0)})}const b=(o==null?void 0:o.items)??[],S=b.filter(D=>D.isOverdue),T=b.filter(D=>D.status==="active"&&!D.isOverdue),E=b.filter(D=>D.status==="paused"),j=b.find(D=>{var O;return((O=D.name)==null?void 0:O.toLowerCase())==="heartbeat"});return g.jsxs("div",{className:"space-y-8",children:[j&&g.jsxs("section",{children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Heartbeat"}),g.jsx("div",{className:`mt-2 rounded-xl p-4 ring-1 ${j.isOverdue?"bg-ouro-fang/5 ring-ouro-fang/15":"bg-ouro-moss/10 ring-ouro-glow/10"}`,children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${j.isOverdue?"bg-ouro-fang animate-pulse":"bg-ouro-glow"}`}),g.jsx("span",{className:"font-medium text-ouro-bone",children:j.isOverdue?"Overdue":"Healthy"}),g.jsxs("span",{className:"text-xs text-ouro-shadow",children:["every ",j.cadence," · last ",j.lastRun?_t(j.lastRun):"never"]})]})})]}),g.jsx("section",{children:g.jsxs("div",{className:"rounded-xl bg-ouro-moss/15 p-4 ring-1 ring-ouro-glow/10",children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"Inner work"}),g.jsx("p",{className:"mt-1 font-display text-xl italic font-semibold text-ouro-bone",children:p.status}),p.summary&&g.jsx("p",{className:"mt-2 text-sm leading-relaxed text-ouro-mist",children:p.summary}),g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:p.hasPending?"Pending inner work queued.":"No pending inner work."}),p.mode==="deep"&&p.origin&&g.jsxs("div",{className:"mt-3",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow",children:"Triggered from"}),g.jsxs("button",{onClick:()=>{const D=p.origin;l({tab:"sessions",focus:`${D.friendId}/${D.channel}/${D.key}`})},className:"mt-1 text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:[(C=p.origin.friendId)==null?void 0:C.slice(0,8),"…/",p.origin.channel,"/",p.origin.key]}),p.obligationStatus&&g.jsxs("button",{onClick:()=>l({tab:"work"}),className:"ml-2 text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["obligation: ",p.obligationStatus]})]})]})}),g.jsxs("section",{children:[g.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:["Inner dialog ",d?`(${d.messages.length} total)`:""]}),d?g.jsx(k3,{messages:d.messages}):g.jsx("button",{onClick:y,className:"mt-2 w-full rounded-lg px-3 py-2.5 text-left font-mono text-xs text-ouro-glow ring-1 ring-ouro-moss/15 hover:ring-ouro-glow/20 transition-colors",children:"Load inner dialog"})]}),g.jsxs("section",{children:[g.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:["Habits (",(o==null?void 0:o.totalCount)??0,")"]}),S.length>0&&g.jsxs("div",{className:"mt-3",children:[g.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-fang mb-1.5",children:["Overdue (",S.length,")"]}),g.jsx("div",{className:"space-y-1.5",children:S.map(D=>g.jsx(Of,{h:D},D.name))})]}),T.length>0&&g.jsxs("div",{className:"mt-3",children:[g.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow mb-1.5",children:["Running fine (",T.length,")"]}),g.jsx("div",{className:"space-y-1.5",children:T.map(D=>g.jsx(Of,{h:D},D.name))})]}),E.length>0&&g.jsxs("div",{className:"mt-3",children:[g.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow mb-1.5",children:["Paused (",E.length,")"]}),g.jsx("div",{className:"space-y-1.5",children:E.map(D=>g.jsx(Of,{h:D},D.name))})]}),b.length===0&&g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No habits configured."})]})]})}function k3({messages:n}){const a=n.filter(p=>p.role!=="system"&&p.role!=="tool"),[l,o]=w.useState(!1),u=w.useRef(null),d=l?a:a.slice(-30),f=a.length-d.length;w.useEffect(()=>{u.current&&(u.current.scrollTop=u.current.scrollHeight)},[d.length]);const h=[];for(const p of a){if(p.role!=="assistant")continue;const y=(p.tool_calls??[]).map(vd);for(const b of y)b.kind==="surface"&&h.push({index:p.index,kind:"surfaced",label:kt(b.deliveredText??"",40)}),b.kind==="rest"&&h.push({index:p.index,kind:"resting",label:"resting"}),b.kind==="delegation"&&h.push({index:p.index,kind:"delegated",label:"continued thinking"})}function m(p){var b;const y=(b=u.current)==null?void 0:b.querySelector(`[data-msg-index="${p}"]`);y&&y.scrollIntoView({behavior:"smooth",block:"center"})}return g.jsxs("div",{children:[h.length>0&&g.jsx("div",{className:"mt-2 mb-1 flex flex-wrap gap-1",children:h.map((p,y)=>g.jsxs("button",{onClick:()=>{o(!0),setTimeout(()=>m(p.index),100)},className:`rounded-md px-2 py-0.5 text-[10px] font-mono ring-1 transition-colors ${p.kind==="surfaced"?"bg-ouro-scale/10 text-ouro-glow ring-ouro-scale/20 hover:ring-ouro-glow/30":p.kind==="resting"?"bg-ouro-void/40 text-ouro-shadow ring-ouro-moss/10":"bg-ouro-gold/5 text-ouro-gold ring-ouro-gold/10"}`,children:[p.kind==="surfaced"?"★":p.kind==="resting"?"—":"→"," #",p.index]},y))}),g.jsxs("div",{ref:u,className:"max-h-[60vh] overflow-y-auto rounded-lg bg-ouro-void/60 p-3 ring-1 ring-ouro-moss/15 space-y-1",children:[f>0&&g.jsxs("button",{onClick:()=>o(!0),className:"w-full rounded-lg px-3 py-2 text-center font-mono text-xs text-ouro-shadow hover:text-ouro-mist ring-1 ring-ouro-moss/10 hover:ring-ouro-moss/20 transition-colors mb-2",children:["Load ",f," earlier messages"]}),d.map(p=>{var y,b,S,T;if(p.role==="user"){const E=((y=p.content)==null?void 0:y.includes("[pending from"))||((b=p.content)==null?void 0:b.includes("[delegated")),j=((S=p.content)==null?void 0:S.includes("waking up"))||((T=p.content)==null?void 0:T.includes("world-state checkpoint"));return g.jsx("div",{"data-msg-index":p.index,className:"flex justify-start py-1",children:g.jsxs("div",{className:`max-w-[85%] rounded-2xl rounded-bl-sm px-3 py-2 ring-1 ${E?"bg-ouro-gold/8 ring-ouro-gold/15":j?"bg-ouro-moss/20 ring-ouro-moss/15":"bg-ouro-moss/25 ring-ouro-moss/15"}`,children:[g.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider",style:{color:E?"var(--color-ouro-gold)":"var(--color-ouro-shadow)"},children:E?"★ delegated":j?"heartbeat":"prompt"}),g.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",p.index]})]}),g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:p.content})]})},p.index)}if(p.role==="assistant"){const E=(p.tool_calls??[]).map(vd),j=E.filter(O=>O.kind==="surface"),C=E.filter(O=>O.kind==="rest"),D=E.filter(O=>O.kind==="delegation");return g.jsxs("div",{"data-msg-index":p.index,children:[j.map(O=>g.jsx("div",{className:"flex justify-end py-1",children:g.jsxs("div",{className:"max-w-[85%] rounded-2xl rounded-br-sm bg-ouro-scale/15 px-3 py-2 ring-1 ring-ouro-scale/20",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow",children:"★ surfaced outward"}),g.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",p.index]})]}),g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:O.deliveredText}),O.metadata&&g.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["→ ",O.metadata]})]})},O.id)),D.length>0&&g.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-gold/50",children:["— still thinking — #",p.index]}),C.length>0&&g.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/40",children:["— resting — #",p.index]}),j.length===0&&C.length===0&&D.length===0&&p.content&&g.jsx("div",{className:"flex justify-end py-1",children:g.jsxs("div",{className:"max-w-[85%] rounded-2xl rounded-br-sm bg-ouro-glow/6 px-3 py-2 ring-1 ring-ouro-glow/8",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[g.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/50",children:"thinking"}),g.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",p.index]})]}),g.jsx("p",{className:"text-sm leading-relaxed text-ouro-mist whitespace-pre-wrap break-words",children:p.content})]})})]},p.index)}return null})]})]})}function Of({h:n}){const a=n.isOverdue,l=n.isDegraded,o=n.status;return g.jsxs("div",{className:`rounded-lg px-3 py-2.5 ring-1 ${a?"bg-ouro-fang/5 ring-ouro-fang/15":l?"bg-ouro-gold/5 ring-ouro-gold/15":o==="paused"?"bg-ouro-void/30 ring-ouro-moss/10":"bg-ouro-void/40 ring-ouro-moss/15"}`,children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(He,{color:a?"red":l?"yellow":o==="active"?"lime":"zinc",children:a?"overdue":l?"degraded":o}),g.jsx("span",{className:"font-medium text-ouro-bone",children:n.title})]}),g.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-ouro-shadow",children:[n.cadence&&g.jsxs("span",{children:["every ",n.cadence]}),g.jsx("span",{children:n.lastRun?`last ${_t(n.lastRun)}`:"never run"}),l&&n.degradedReason&&g.jsx("span",{className:"text-ouro-gold",children:n.degradedReason}),!a&&!l&&o==="active"&&n.lastRun&&g.jsx("span",{className:"text-ouro-glow",children:"on schedule"}),a&&n.overdueMs&&g.jsxs("span",{className:"text-ouro-fang",children:[Math.floor(n.overdueMs/6e4),"m overdue"]}),!n.lastRun&&o==="active"&&g.jsx("span",{className:"text-ouro-gold",children:"never fired — may be misconfigured"})]}),n.bodyExcerpt&&g.jsx("p",{className:"mt-1 text-xs text-ouro-shadow/70",children:n.bodyExcerpt})]})}function _3({agentName:n}){const[a,l]=w.useState(null),[o,u]=w.useState("diary");if(w.useEffect(()=>{at(`/agents/${encodeURIComponent(n)}/memory`).then(l)},[n]),!a)return g.jsxs("div",{className:"flex items-center gap-2 py-6",children:[g.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-ouro-glow"}),g.jsx("span",{className:"font-mono text-xs text-ouro-shadow",children:"Loading…"})]});const d=a.recentDiaryEntries??[],f=a.recentJournalEntries??[];return g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("button",{onClick:()=>u("diary"),className:`font-mono text-xs uppercase tracking-wider transition-colors ${o==="diary"?"text-ouro-glow":"text-ouro-shadow hover:text-ouro-mist"}`,children:["Diary (",a.diaryEntryCount,")"]}),g.jsx("span",{className:"text-ouro-shadow/30",children:"|"}),g.jsxs("button",{onClick:()=>u("journal"),className:`font-mono text-xs uppercase tracking-wider transition-colors ${o==="journal"?"text-ouro-glow":"text-ouro-shadow hover:text-ouro-mist"}`,children:["Journal (",a.journalEntryCount,")"]})]}),o==="diary"&&g.jsx("div",{children:d.length>0?g.jsx("div",{className:"space-y-3",children:d.map(h=>g.jsxs("article",{className:"rounded-xl bg-ouro-void/40 px-4 py-3.5 ring-1 ring-ouro-moss/15",children:[g.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone",children:h.text}),g.jsxs("div",{className:"mt-2 flex items-center gap-2 text-xs text-ouro-shadow",children:[g.jsx(He,{children:h.source}),g.jsx("span",{children:_t(h.createdAt)})]})]},h.id))}):g.jsx("p",{className:"text-sm text-ouro-shadow italic",children:"No diary entries yet. The agent hasn't written anything down."})}),o==="journal"&&g.jsx("div",{children:f.length>0?g.jsx("div",{className:"space-y-3",children:f.map(h=>g.jsxs("article",{className:"rounded-xl bg-ouro-void/40 px-4 py-3.5 ring-1 ring-ouro-moss/15",children:[g.jsx("p",{className:"font-medium text-ouro-bone",children:h.filename}),g.jsx("p",{className:"mt-1 text-sm leading-relaxed text-ouro-mist",children:h.preview})]},h.filename))}):g.jsx("p",{className:"text-sm text-ouro-shadow italic",children:"No journal entries yet."})})]})}function U3({agentName:n,view:a}){const[l,o]=w.useState(null),[u,d]=w.useState(null),f=a.agent,h=f.degraded,m=f.freshness;w.useEffect(()=>{Promise.all([at("/machine/health").then(o).catch(()=>null),at("/machine/logs").then(d).catch(()=>null)])},[n]);const p=(l==null?void 0:l.degradedComponents)??[],y=(u==null?void 0:u.entries)??[];return g.jsxs("div",{className:"space-y-8",children:[h.status==="degraded"&&h.issues.length>0&&g.jsxs("section",{children:[g.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-fang",children:["Agent issues (",h.issues.length,")"]}),g.jsx("div",{className:"mt-3 space-y-1.5",children:h.issues.map((b,S)=>g.jsxs("div",{className:"rounded-lg bg-ouro-fang/5 px-3 py-2.5 ring-1 ring-ouro-fang/15",children:[g.jsx("p",{className:"font-mono text-xs font-semibold text-ouro-fang",children:b.code}),g.jsx("p",{className:"mt-0.5 text-xs text-ouro-mist break-all",children:b.detail})]},S))})]}),g.jsxs("section",{children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Agent config"}),g.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3",children:[g.jsx(Hi,{label:"Provider",value:f.provider||"none"}),g.jsx(Hi,{label:"Enabled",value:f.enabled?"yes":"no"}),g.jsx(Hi,{label:"Freshness",value:`${m.status}${m.ageMs!=null?` (${Math.floor(m.ageMs/6e4)}m)`:""}`})]})]}),g.jsxs("section",{children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Daemon health"}),l&&l.status!=="unavailable"?g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3",children:[g.jsx(Hi,{label:"Status",value:l.status}),g.jsx(Hi,{label:"Mode",value:l.mode}),g.jsx(Hi,{label:"Uptime",value:`${Math.floor(l.uptimeSeconds/60)}m`})]}),p.length>0&&g.jsxs("div",{className:"mt-3 space-y-1.5",children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-fang",children:"Degraded components"}),p.map((b,S)=>g.jsxs("div",{className:"rounded-lg bg-ouro-fang/5 px-3 py-2 ring-1 ring-ouro-fang/15",children:[g.jsx("p",{className:"text-xs font-semibold text-ouro-fang",children:b.component}),g.jsx("p",{className:"text-xs text-ouro-mist",children:b.reason})]},S))]})]}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No health file found. This is normal when not running under the daemon."})]}),g.jsxs("section",{children:[g.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:["Recent logs (",(u==null?void 0:u.totalLines)??0," total)"]}),y.length>0?g.jsx("div",{className:"mt-3 max-h-96 overflow-y-auto rounded-lg bg-ouro-void/40 ring-1 ring-ouro-moss/15",children:[...y].reverse().slice(0,50).map((b,S)=>{const T=b.level;return g.jsxs("div",{className:"border-b border-ouro-moss/10 px-3 py-1.5 last:border-b-0",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[g.jsx(He,{color:T==="error"?"red":T==="warn"?"yellow":"zinc",children:T}),g.jsx("span",{className:"text-ouro-shadow",children:_t(b.ts)}),g.jsx("span",{className:"font-mono text-ouro-glow",children:b.event})]}),g.jsx("p",{className:"truncate text-xs text-ouro-mist",children:b.message})]},S)})}):g.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No log entries."})]})]})}function Hi({label:n,value:a}){return g.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[g.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow",children:n}),g.jsx("p",{className:"mt-1 text-sm font-medium text-ouro-bone",children:a})]})}const Rf=[{id:"overview",label:"Overview"},{id:"sessions",label:"Sessions"},{id:"work",label:"Work"},{id:"connections",label:"Connections"},{id:"inner",label:"Inner"},{id:"memory",label:"Diary & Journal"},{id:"runtime",label:"Runtime"}];function B3(n){return n==="degraded"||n==="blocked"?"red":n==="stale"?"yellow":n==="active"?"lime":"zinc"}function H3({agentName:n,view:a,deskPrefs:l,initialRoute:o}){const[u,d]=w.useState((o==null?void 0:o.tab)??"overview"),[f,h]=w.useState(o==null?void 0:o.focus),m=w.useRef(!1);w.useEffect(()=>{(o==null?void 0:o.agent)===n&&!m.current?(m.current=!0,d(o.tab),h(o.focus)):(d("overview"),h(void 0))},[n]);const p=w.useCallback(E=>{d(E.tab),h(E.focus),window.history.pushState(null,"",Lf({agent:n,tab:E.tab,focus:E.focus}))},[n]),y=w.useCallback(E=>{d(E),h(void 0),window.history.pushState(null,"",Lf({agent:n,tab:E,focus:void 0}))},[n]),b=w.useCallback(()=>h(void 0),[]);if(y3(p),!a||!n)return g.jsxs("div",{className:"flex flex-col items-center justify-center py-24 text-center",children:[g.jsx("p",{className:"font-display text-2xl italic text-ouro-bone",children:"Choose an agent"}),g.jsx("p",{className:"mt-2 text-sm text-ouro-mist",children:"Select an agent from the sidebar to inspect its state."})]});const T=a.agent.attention;return g.jsx(J0.Provider,{value:p,children:g.jsxs("div",{children:[g.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 pb-4 border-b border-ouro-moss/30",children:[g.jsx("div",{className:"min-w-0",children:g.jsx("h1",{className:"font-display text-2xl italic font-semibold text-ouro-bone sm:text-3xl",children:n})}),g.jsx(He,{color:B3(T.level),children:T.label})]}),g.jsx("nav",{className:"mt-4 flex gap-0.5 overflow-x-auto border-b border-ouro-moss/20 -mx-1",children:(()=>{const E=l==null?void 0:l.tabOrder;if(!E)return Rf;const j=E.map(D=>Rf.find(O=>O.id===D)).filter(D=>D!==void 0),C=Rf.filter(D=>!E.includes(D.id));return[...j,...C]})().map(E=>g.jsx("button",{type:"button",onClick:()=>y(E.id),className:`shrink-0 px-3 py-2 text-xs font-mono uppercase tracking-wider transition-colors rounded-t-md ${u===E.id?"bg-ouro-moss/20 text-ouro-glow border-b-2 border-ouro-glow":"text-ouro-shadow hover:text-ouro-mist hover:bg-ouro-moss/10"}`,children:E.label},E.id))}),g.jsxs("div",{className:"mt-6",children:[u==="overview"&&g.jsx(E3,{view:a,deskPrefs:l}),u==="sessions"&&g.jsx(N3,{agentName:n,focus:f,onFocusConsumed:b,deskPrefs:l}),u==="work"&&g.jsx(R3,{agentName:n,view:a,focus:f,onFocusConsumed:b}),u==="connections"&&g.jsx(L3,{agentName:n,focus:f,onFocusConsumed:b}),u==="inner"&&g.jsx(V3,{agentName:n,view:a}),u==="memory"&&g.jsx(_3,{agentName:n}),u==="runtime"&&g.jsx(U3,{agentName:n,view:a})]})]})})}function Z0(){return W0(window.location.hash)}function $3(n){return n==="degraded"||n==="blocked"?"red":n==="stale"?"yellow":n==="active"?"lime":"zinc"}function G3(){var E,j;const[n,a]=w.useState(null),[l,o]=w.useState(((E=Z0())==null?void 0:E.agent)??""),[u,d]=w.useState(null),f=w.useRef(0),h=w.useRef(Z0()),m=w.useCallback(async()=>{var C;try{const D=await at("/machine");if(a(D),!l&&D.agents.length>0){const O=((C=h.current)==null?void 0:C.agent)??D.agents[0].agentName;o(O)}}catch{}},[l]),[p,y]=w.useState(null),b=w.useCallback(async C=>{if(!C){d(null),y(null);return}try{const[D,O]=await Promise.all([at(`/agents/${encodeURIComponent(C)}`),at(`/agents/${encodeURIComponent(C)}/desk-prefs`)]);d(D),y(O)}catch{d(null),y(null)}},[]);w.useEffect(()=>{m()},[m]),w.useEffect(()=>{l&&b(l)},[l,b]),w.useEffect(()=>mT(()=>{const D=++f.current;m().then(()=>{f.current===D&&l&&b(l)})}),[m,b,l]),w.useEffect(()=>{const C=()=>{const D=W0(window.location.hash);D&&o(D.agent)};return window.addEventListener("hashchange",C),()=>window.removeEventListener("hashchange",C)},[]);const S=w.useCallback(C=>{o(C),window.history.pushState(null,"",Lf({agent:C,tab:"overview",focus:void 0}))},[]);if(!n)return g.jsx("div",{className:"flex h-screen items-center justify-center bg-ouro-void",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"mx-auto mb-4 h-4 w-4 animate-pulse rounded-full bg-ouro-glow shadow-[0_0_20px_theme(--color-ouro-glow)]"}),g.jsx("p",{className:"font-mono text-sm text-ouro-mist",children:"Connecting to Outlook…"})]})});const T=n.overview.totals;return g.jsx(c3,{navbar:g.jsxs(i3,{children:[g.jsx(s3,{}),g.jsx(l3,{children:g.jsx(eh,{children:g.jsx(He,{color:n.overview.daemon.mode==="dev"?"yellow":"lime",children:n.overview.daemon.mode})})})]}),sidebar:g.jsxs(f3,{className:"bg-ouro-deep",children:[g.jsx(d3,{className:"border-ouro-moss/30",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"h-3 w-3 shrink-0 rounded-full bg-ouro-glow shadow-[0_0_16px_theme(--color-ouro-glow)]"}),g.jsx("div",{className:"min-w-0",children:g.jsx("p",{className:"truncate font-display text-lg italic font-semibold text-ouro-bone",children:"Ouro Outlook"})})]})}),g.jsxs(h3,{className:"[&>[data-slot=section]+[data-slot=section]]:mt-4",children:[g.jsxs(q0,{children:[g.jsx(X0,{className:"text-ouro-mist/60",children:"Machine"}),g.jsx("div",{className:"grid grid-cols-3 gap-1.5 px-2",children:[{v:T.liveTasks??0,l:"Tasks",alert:(T.blockedTasks??0)>0},{v:T.openObligations??0,l:"Oblig."},{v:T.activeCodingAgents??0,l:"Coding"}].map(C=>g.jsxs("div",{className:"rounded-md bg-ouro-void/60 px-2 py-1.5 text-center ring-1 ring-ouro-moss/20",children:[g.jsx("div",{className:`text-base font-semibold tabular-nums ${C.alert?"text-ouro-fang":"text-ouro-bone"}`,children:C.v}),g.jsx("div",{className:"text-[9px] uppercase tracking-widest text-ouro-shadow",children:C.l})]},C.l))})]}),g.jsxs(q0,{children:[g.jsx(X0,{className:"text-ouro-mist/60",children:"Agents"}),n.agents.map(C=>g.jsx(p3,{current:C.agentName===l,onClick:()=>S(C.agentName),children:g.jsxs("div",{className:"flex min-w-0 flex-1 items-center justify-between gap-2",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsx(g3,{className:"text-ouro-bone",children:C.agentName}),g.jsxs("p",{className:"truncate text-xs text-ouro-shadow",children:[C.tasks.liveCount,"t · ",C.obligations.openCount,"o · ",C.coding.activeCount,"c"]})]}),g.jsx(He,{color:$3(C.attention.level),children:C.attention.label})]})},C.agentName))]})]}),g.jsx(m3,{className:"border-ouro-moss/30",children:g.jsxs("div",{className:"px-2 text-xs text-ouro-shadow",children:[g.jsx("p",{className:"font-mono",children:n.overview.runtime.version}),g.jsxs("p",{className:"mt-0.5",children:[n.overview.daemon.mode," · ",n.overview.freshness.status]})]})}),l&&u&&g.jsx("div",{className:"px-4 py-2 border-t border-ouro-moss/20",children:g.jsx("p",{className:"text-xs italic text-ouro-shadow/70",children:(()=>{var q;const C=p==null?void 0:p.statusLine;if(C)return C;const D=u==null?void 0:u.inner;if((D==null?void 0:D.status)==="working"||D!=null&&D.hasPending)return"thinking through something privately";const R=u==null?void 0:u.work,B=((q=R==null?void 0:R.obligations)==null?void 0:q.openCount)??0;return B>2?"a few loose ends":B>0?"carrying something":"steady"})()})})]}),children:g.jsx(H3,{agentName:l,view:u,deskPrefs:p,initialRoute:((j=h.current)==null?void 0:j.agent)===l?h.current:void 0})})}hT.createRoot(document.getElementById("app")).render(g.jsx(w.StrictMode,{children:g.jsx(G3,{})}));
|