@ouro.bot/cli 0.1.0-alpha.160 → 0.1.0-alpha.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/changelog.json +7 -0
- package/dist/heart/daemon/daemon.js +40 -29
- package/dist/heart/daemon/outlook-http.js +71 -9
- package/dist/outlook-ui/assets/index-CXQG0mVx.js +61 -0
- package/dist/outlook-ui/assets/index-Gq7EdfkO.css +1 -0
- package/dist/outlook-ui/index.html +15 -0
- package/package.json +2 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
function nT(n,a){for(var s=0;s<a.length;s++){const o=a[s];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 s(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=s(u);fetch(u.href,d)}})();function aT(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var tf={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 ev;function iT(){if(ev)return Zl;ev=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(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=s,Zl.jsxs=s,Zl}var nv;function lT(){return nv||(nv=1,tf.exports=iT()),tf.exports}var v=lT(),ef={exports:{}},ot={};/**
|
|
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 av;function sT(){if(av)return ot;av=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=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(M){return M===null||typeof M!="object"?null:(M=S&&M[S]||M["@@iterator"],typeof M=="function"?M:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function A(M,$,q){this.props=M,this.context=$,this.refs=C,this.updater=q||j}A.prototype.isReactComponent={},A.prototype.setState=function(M,$){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,$,"setState")},A.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function L(){}L.prototype=A.prototype;function U(M,$,q){this.props=M,this.context=$,this.refs=C,this.updater=q||j}var Y=U.prototype=new L;Y.constructor=U,E(Y,A.prototype),Y.isPureReactComponent=!0;var X=Array.isArray;function tt(){}var Z={H:null,A:null,T:null,S:null},nt=Object.prototype.hasOwnProperty;function xt(M,$,q){var Q=q.ref;return{$$typeof:n,type:M,key:$,ref:Q!==void 0?Q:null,props:q}}function J(M,$){return xt(M.type,$,M.props)}function ft(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function vt(M){var $={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(q){return $[q]})}var Ot=/\/+/g;function Nt(M,$){return typeof M=="object"&&M!==null&&M.key!=null?vt(""+M.key):$.toString(36)}function Rt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(tt,tt):(M.status="pending",M.then(function($){M.status==="pending"&&(M.status="fulfilled",M.value=$)},function($){M.status==="pending"&&(M.status="rejected",M.reason=$)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function k(M,$,q,Q,lt){var dt=typeof M;(dt==="undefined"||dt==="boolean")&&(M=null);var bt=!1;if(M===null)bt=!0;else switch(dt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(M.$$typeof){case n:case a:bt=!0;break;case y:return bt=M._init,k(bt(M._payload),$,q,Q,lt)}}if(bt)return lt=lt(M),bt=Q===""?"."+Nt(M,0):Q,X(lt)?(q="",bt!=null&&(q=bt.replace(Ot,"$&/")+"/"),k(lt,$,q,"",function(el){return el})):lt!=null&&(ft(lt)&&(lt=J(lt,q+(lt.key==null||M&&M.key===lt.key?"":(""+lt.key).replace(Ot,"$&/")+"/")+bt)),$.push(lt)),1;bt=0;var Ft=Q===""?".":Q+":";if(X(M))for(var Vt=0;Vt<M.length;Vt++)Q=M[Vt],dt=Ft+Nt(Q,Vt),bt+=k(Q,$,q,dt,lt);else if(Vt=T(M),typeof Vt=="function")for(M=Vt.call(M),Vt=0;!(Q=M.next()).done;)Q=Q.value,dt=Ft+Nt(Q,Vt++),bt+=k(Q,$,q,dt,lt);else if(dt==="object"){if(typeof M.then=="function")return k(Rt(M),$,q,Q,lt);throw $=String(M),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return bt}function K(M,$,q){if(M==null)return M;var Q=[],lt=0;return k(M,Q,"","",function(dt){return $.call(q,dt,lt++)}),Q}function F(M){if(M._status===-1){var $=M._result;$=$(),$.then(function(q){(M._status===0||M._status===-1)&&(M._status=1,M._result=q)},function(q){(M._status===0||M._status===-1)&&(M._status=2,M._result=q)}),M._status===-1&&(M._status=0,M._result=$)}if(M._status===1)return M._result.default;throw M._result}var it=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},ct={map:K,forEach:function(M,$,q){K(M,function(){$.apply(this,arguments)},q)},count:function(M){var $=0;return K(M,function(){$++}),$},toArray:function(M){return K(M,function($){return $})||[]},only:function(M){if(!ft(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ot.Activity=b,ot.Children=ct,ot.Component=A,ot.Fragment=s,ot.Profiler=u,ot.PureComponent=U,ot.StrictMode=o,ot.Suspense=m,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ot.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Z.H.useMemoCache(M)}},ot.cache=function(M){return function(){return M.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(M,$,q){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var Q=E({},M.props),lt=M.key;if($!=null)for(dt in $.key!==void 0&&(lt=""+$.key),$)!nt.call($,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&$.ref===void 0||(Q[dt]=$[dt]);var dt=arguments.length-2;if(dt===1)Q.children=q;else if(1<dt){for(var bt=Array(dt),Ft=0;Ft<dt;Ft++)bt[Ft]=arguments[Ft+2];Q.children=bt}return xt(M.type,lt,Q)},ot.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:d,_context:M},M},ot.createElement=function(M,$,q){var Q,lt={},dt=null;if($!=null)for(Q in $.key!==void 0&&(dt=""+$.key),$)nt.call($,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(lt[Q]=$[Q]);var bt=arguments.length-2;if(bt===1)lt.children=q;else if(1<bt){for(var Ft=Array(bt),Vt=0;Vt<bt;Vt++)Ft[Vt]=arguments[Vt+2];lt.children=Ft}if(M&&M.defaultProps)for(Q in bt=M.defaultProps,bt)lt[Q]===void 0&&(lt[Q]=bt[Q]);return xt(M,dt,lt)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(M){return{$$typeof:h,render:M}},ot.isValidElement=ft,ot.lazy=function(M){return{$$typeof:y,_payload:{_status:-1,_result:M},_init:F}},ot.memo=function(M,$){return{$$typeof:p,type:M,compare:$===void 0?null:$}},ot.startTransition=function(M){var $=Z.T,q={};Z.T=q;try{var Q=M(),lt=Z.S;lt!==null&<(q,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(tt,it)}catch(dt){it(dt)}finally{$!==null&&q.types!==null&&($.types=q.types),Z.T=$}},ot.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ot.use=function(M){return Z.H.use(M)},ot.useActionState=function(M,$,q){return Z.H.useActionState(M,$,q)},ot.useCallback=function(M,$){return Z.H.useCallback(M,$)},ot.useContext=function(M){return Z.H.useContext(M)},ot.useDebugValue=function(){},ot.useDeferredValue=function(M,$){return Z.H.useDeferredValue(M,$)},ot.useEffect=function(M,$){return Z.H.useEffect(M,$)},ot.useEffectEvent=function(M){return Z.H.useEffectEvent(M)},ot.useId=function(){return Z.H.useId()},ot.useImperativeHandle=function(M,$,q){return Z.H.useImperativeHandle(M,$,q)},ot.useInsertionEffect=function(M,$){return Z.H.useInsertionEffect(M,$)},ot.useLayoutEffect=function(M,$){return Z.H.useLayoutEffect(M,$)},ot.useMemo=function(M,$){return Z.H.useMemo(M,$)},ot.useOptimistic=function(M,$){return Z.H.useOptimistic(M,$)},ot.useReducer=function(M,$,q){return Z.H.useReducer(M,$,q)},ot.useRef=function(M){return Z.H.useRef(M)},ot.useState=function(M){return Z.H.useState(M)},ot.useSyncExternalStore=function(M,$,q){return Z.H.useSyncExternalStore(M,$,q)},ot.useTransition=function(){return Z.H.useTransition()},ot.version="19.2.4",ot}var iv;function Sr(){return iv||(iv=1,ef.exports=sT()),ef.exports}var w=Sr();const st=aT(w),lv=nT({__proto__:null,default:st},[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 sv;function oT(){return sv||(sv=1,(function(n){function a(k,K){var F=k.length;k.push(K);t:for(;0<F;){var it=F-1>>>1,ct=k[it];if(0<u(ct,K))k[it]=K,k[F]=ct,F=it;else break t}}function s(k){return k.length===0?null:k[0]}function o(k){if(k.length===0)return null;var K=k[0],F=k.pop();if(F!==K){k[0]=F;t:for(var it=0,ct=k.length,M=ct>>>1;it<M;){var $=2*(it+1)-1,q=k[$],Q=$+1,lt=k[Q];if(0>u(q,F))Q<ct&&0>u(lt,q)?(k[it]=lt,k[Q]=F,it=Q):(k[it]=q,k[$]=F,it=$);else if(Q<ct&&0>u(lt,F))k[it]=lt,k[Q]=F,it=Q;else break t}}return K}function u(k,K){var F=k.sortIndex-K.sortIndex;return F!==0?F:k.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,j=!1,E=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function Y(k){for(var K=s(p);K!==null;){if(K.callback===null)o(p);else if(K.startTime<=k)o(p),K.sortIndex=K.expirationTime,a(m,K);else break;K=s(p)}}function X(k){if(E=!1,Y(k),!j)if(s(m)!==null)j=!0,tt||(tt=!0,vt());else{var K=s(p);K!==null&&Rt(X,K.startTime-k)}}var tt=!1,Z=-1,nt=5,xt=-1;function J(){return C?!0:!(n.unstable_now()-xt<nt)}function ft(){if(C=!1,tt){var k=n.unstable_now();xt=k;var K=!0;try{t:{j=!1,E&&(E=!1,L(Z),Z=-1),T=!0;var F=S;try{e:{for(Y(k),b=s(m);b!==null&&!(b.expirationTime>k&&J());){var it=b.callback;if(typeof it=="function"){b.callback=null,S=b.priorityLevel;var ct=it(b.expirationTime<=k);if(k=n.unstable_now(),typeof ct=="function"){b.callback=ct,Y(k),K=!0;break e}b===s(m)&&o(m),Y(k)}else o(m);b=s(m)}if(b!==null)K=!0;else{var M=s(p);M!==null&&Rt(X,M.startTime-k),K=!1}}break t}finally{b=null,S=F,T=!1}K=void 0}}finally{K?vt():tt=!1}}}var vt;if(typeof U=="function")vt=function(){U(ft)};else if(typeof MessageChannel<"u"){var Ot=new MessageChannel,Nt=Ot.port2;Ot.port1.onmessage=ft,vt=function(){Nt.postMessage(null)}}else vt=function(){A(ft,0)};function Rt(k,K){Z=A(function(){k(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(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(k){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var F=S;S=K;try{return k()}finally{S=F}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(k,K){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=S;S=k;try{return K()}finally{S=F}},n.unstable_scheduleCallback=function(k,K,F){var it=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?it+F:it):F=it,k){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=F+ct,k={id:y++,callback:K,priorityLevel:k,startTime:F,expirationTime:ct,sortIndex:-1},F>it?(k.sortIndex=F,a(p,k),s(m)===null&&k===s(p)&&(E?(L(Z),Z=-1):E=!0,Rt(X,F-it))):(k.sortIndex=ct,a(m,k),j||T||(j=!0,tt||(tt=!0,vt()))),k},n.unstable_shouldYield=J,n.unstable_wrapCallback=function(k){var K=S;return function(){var F=S;S=K;try{return k.apply(this,arguments)}finally{S=F}}}})(lf)),lf}var ov;function rT(){return ov||(ov=1,af.exports=oT()),af.exports}var sf={exports:{}},fe={};/**
|
|
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 rv;function uT(){if(rv)return fe;rv=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 s(){}var o={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},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 fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,fe.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)},fe.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()}},fe.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))},fe.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},fe.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})}},fe.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)},fe.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})}},fe.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)},fe.requestFormReset=function(m){o.d.r(m)},fe.unstable_batchedUpdates=function(m,p){return m(p)},fe.useFormState=function(m,p,y){return f.H.useFormState(m,p,y)},fe.useFormStatus=function(){return f.H.useHostTransitionStatus()},fe.version="19.2.4",fe}var uv;function F0(){if(uv)return sf.exports;uv=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=uT(),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 cv;function cT(){if(cv)return Ql;cv=1;var n=rT(),a=Sr(),s=F0();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(d(t)!==t)throw Error(o(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var i=t,l=e;;){var r=i.return;if(r===null)break;var c=r.alternate;if(c===null){if(l=r.return,l!==null){i=l;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===i)return m(r),t;if(c===l)return m(r),e;c=c.sibling}throw Error(o(188))}if(i.return!==l.return)i=r,l=c;else{for(var g=!1,x=r.child;x;){if(x===i){g=!0,i=r,l=c;break}if(x===l){g=!0,l=r,i=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===i){g=!0,i=c,l=r;break}if(x===l){g=!0,l=c,i=r;break}x=x.sibling}if(!g)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:e}function y(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=y(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),U=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),xt=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),ft=Symbol.iterator;function vt(t){return t===null||typeof t!="object"?null:(t=ft&&t[ft]||t["@@iterator"],typeof t=="function"?t:null)}var Ot=Symbol.for("react.client.reference");function Nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ot?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case X:return"Suspense";case tt:return"SuspenseList";case xt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case U:return t.displayName||"Context";case L:return(t._context.displayName||"Context")+".Consumer";case Y:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return e=t.displayName||null,e!==null?e:Nt(t.type)||"Memo";case nt:e=t._payload,t=t._init;try{return Nt(t(e))}catch{}}return null}var Rt=Array.isArray,k=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},it=[],ct=-1;function M(t){return{current:t}}function $(t){0>ct||(t.current=it[ct],it[ct]=null,ct--)}function q(t,e){ct++,it[ct]=t.current,t.current=e}var Q=M(null),lt=M(null),dt=M(null),bt=M(null);function Ft(t,e){switch(q(dt,e),q(lt,t),q(Q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Eg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Eg(e),t=Ag(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}$(Q),q(Q,t)}function Vt(){$(Q),$(lt),$(dt)}function el(t){t.memoizedState!==null&&q(bt,t);var e=Q.current,i=Ag(e,t.type);e!==i&&(q(lt,t),q(Q,i))}function ws(t){lt.current===t&&($(Q),$(lt)),bt.current===t&&($(bt),ql._currentValue=F)}var _r,th;function Ta(t){if(_r===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);_r=e&&e[1]||"",th=-1<i.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+_r+t+th}var Ur=!1;function kr(t,e){if(!t||Ur)return"";Ur=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(_){var V=_}Reflect.construct(t,[],G)}else{try{G.call()}catch(_){V=_}t.call(G.prototype)}}else{try{throw Error()}catch(_){V=_}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(_){if(_&&V&&typeof _.stack=="string")return[_.stack,V.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],x=c[1];if(g&&x){var N=g.split(`
|
|
44
|
+
`),R=x.split(`
|
|
45
|
+
`);for(r=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;if(l===N.length||r===R.length)for(l=N.length-1,r=R.length-1;1<=l&&0<=r&&N[l]!==R[r];)r--;for(;1<=l&&0<=r;l--,r--)if(N[l]!==R[r]){if(l!==1||r!==1)do if(l--,r--,0>r||N[l]!==R[r]){var B=`
|
|
46
|
+
`+N[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=r);break}}}finally{Ur=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ta(i):""}function Rx(t,e){switch(t.tag){case 26:case 27:case 5:return Ta(t.type);case 16:return Ta("Lazy");case 13:return t.child!==e&&e!==null?Ta("Suspense Fallback"):Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 15:return kr(t.type,!1);case 11:return kr(t.type.render,!1);case 1:return kr(t.type,!0);case 31:return Ta("Activity");default:return""}}function eh(t){try{var e="",i=null;do e+=Rx(t,i),i=t,t=t.return;while(t);return e}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Br=Object.prototype.hasOwnProperty,Hr=n.unstable_scheduleCallback,$r=n.unstable_cancelCallback,Vx=n.unstable_shouldYield,Lx=n.unstable_requestPaint,je=n.unstable_now,_x=n.unstable_getCurrentPriorityLevel,nh=n.unstable_ImmediatePriority,ah=n.unstable_UserBlockingPriority,Es=n.unstable_NormalPriority,Ux=n.unstable_LowPriority,ih=n.unstable_IdlePriority,kx=n.log,Bx=n.unstable_setDisableYieldValue,nl=null,Ne=null;function Bn(t){if(typeof kx=="function"&&Bx(t),Ne&&typeof Ne.setStrictMode=="function")try{Ne.setStrictMode(nl,t)}catch{}}var Ce=Math.clz32?Math.clz32:Gx,Hx=Math.log,$x=Math.LN2;function Gx(t){return t>>>=0,t===0?32:31-(Hx(t)/$x|0)|0}var As=256,js=262144,Ns=4194304;function wa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Cs(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var r=0,c=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?r=wa(l):(g&=x,g!==0?r=wa(g):i||(i=x&~t,i!==0&&(r=wa(i))))):(x=l&~c,x!==0?r=wa(x):g!==0?r=wa(g):i||(i=l&~t,i!==0&&(r=wa(i)))),r===0?0:e!==0&&e!==r&&(e&c)===0&&(c=r&-r,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:r}function al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Yx(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lh(){var t=Ns;return Ns<<=1,(Ns&62914560)===0&&(Ns=4194304),t}function Gr(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function il(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function qx(t,e,i,l,r,c){var g=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var x=t.entanglements,N=t.expirationTimes,R=t.hiddenUpdates;for(i=g&~i;0<i;){var B=31-Ce(i),G=1<<B;x[B]=0,N[B]=-1;var V=R[B];if(V!==null)for(R[B]=null,B=0;B<V.length;B++){var _=V[B];_!==null&&(_.lane&=-536870913)}i&=~G}l!==0&&sh(t,l,0),c!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=c&~(g&~e))}function sh(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ce(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function oh(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-Ce(i),r=1<<l;r&e|t[l]&e&&(t[l]|=e),i&=~r}}function rh(t,e){var i=e&-e;return i=(i&42)!==0?1:Yr(i),(i&(t.suspendedLanes|e))!==0?0:i}function Yr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function qr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function uh(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:Zg(t.type))}function ch(t,e){var i=K.p;try{return K.p=t,e()}finally{K.p=i}}var Hn=Math.random().toString(36).slice(2),ae="__reactFiber$"+Hn,ve="__reactProps$"+Hn,ni="__reactContainer$"+Hn,Xr="__reactEvents$"+Hn,Xx="__reactListeners$"+Hn,Kx="__reactHandles$"+Hn,fh="__reactResources$"+Hn,ll="__reactMarker$"+Hn;function Kr(t){delete t[ae],delete t[ve],delete t[Xr],delete t[Xx],delete t[Kx]}function ai(t){var e=t[ae];if(e)return e;for(var i=t.parentNode;i;){if(e=i[ni]||i[ae]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=Og(t);t!==null;){if(i=t[ae])return i;t=Og(t)}return e}t=i,i=t.parentNode}return null}function ii(t){if(t=t[ae]||t[ni]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function sl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function li(t){var e=t[fh];return e||(e=t[fh]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ee(t){t[ll]=!0}var dh=new Set,hh={};function Ea(t,e){si(t,e),si(t+"Capture",e)}function si(t,e){for(hh[t]=e,t=0;t<e.length;t++)dh.add(e[t])}var Fx=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]*$"),mh={},ph={};function Zx(t){return Br.call(ph,t)?!0:Br.call(mh,t)?!1:Fx.test(t)?ph[t]=!0:(mh[t]=!0,!1)}function Ms(t,e,i){if(Zx(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+i)}}function Ds(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function vn(t,e,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+l)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function gh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Qx(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(g){i=""+g,c.call(this,g)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fr(t){if(!t._valueTracker){var e=gh(t)?"checked":"value";t._valueTracker=Qx(t,e,""+t[e])}}function vh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=gh(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function zs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Jx=/[\n"\\]/g;function ke(t){return t.replace(Jx,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Zr(t,e,i,l,r,c,g,x){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?Qr(t,g,Ue(e)):i!=null?Qr(t,g,Ue(i)):l!=null&&t.removeAttribute("value"),r==null&&c!=null&&(t.defaultChecked=!!c),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Ue(x):t.removeAttribute("name")}function yh(t,e,i,l,r,c,g,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Fr(t);return}i=i!=null?""+Ue(i):"",e=e!=null?""+Ue(e):i,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),Fr(t)}function Qr(t,e,i){e==="number"&&zs(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function oi(t,e,i,l){if(t=t.options,e){e={};for(var r=0;r<i.length;r++)e["$"+i[r]]=!0;for(i=0;i<t.length;i++)r=e.hasOwnProperty("$"+t[i].value),t[i].selected!==r&&(t[i].selected=r),r&&l&&(t[i].defaultSelected=!0)}else{for(i=""+Ue(i),e=null,r=0;r<t.length;r++){if(t[r].value===i){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function bh(t,e,i){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Ue(i):""}function xh(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(o(92));if(Rt(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=Ue(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Fr(t)}function ri(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var Px=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 Sh(t,e,i){var l=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,i):typeof i!="number"||i===0||Px.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function Th(t,e,i){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&i[r]!==l&&Sh(t,r,l)}else for(var c in e)e.hasOwnProperty(c)&&Sh(t,c,e[c])}function Jr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wx=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"]]),Ix=/^[\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 Os(t){return Ix.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function yn(){}var Pr=null;function Wr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ui=null,ci=null;function wh(t){var e=ii(t);if(e&&(t=e.stateNode)){var i=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(Zr(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+ke(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var r=l[ve]||null;if(!r)throw Error(o(90));Zr(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<i.length;e++)l=i[e],l.form===t.form&&vh(l)}break t;case"textarea":bh(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&oi(t,!!i.multiple,e,!1)}}}var Ir=!1;function Eh(t,e,i){if(Ir)return t(e,i);Ir=!0;try{var l=t(e);return l}finally{if(Ir=!1,(ui!==null||ci!==null)&&(xo(),ui&&(e=ui,t=ci,ci=ui=null,wh(e),t)))for(e=0;e<t.length;e++)wh(t[e])}}function ol(t,e){var i=t.stateNode;if(i===null)return null;var l=i[ve]||null;if(l===null)return null;i=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,e,typeof i));return i}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tu=!1;if(bn)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){tu=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{tu=!1}var $n=null,eu=null,Rs=null;function Ah(){if(Rs)return Rs;var t,e=eu,i=e.length,l,r="value"in $n?$n.value:$n.textContent,c=r.length;for(t=0;t<i&&e[t]===r[t];t++);var g=i-t;for(l=1;l<=g&&e[i-l]===r[c-l];l++);return Rs=r.slice(t,1<l?1-l:void 0)}function Vs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ls(){return!0}function jh(){return!1}function ye(t){function e(i,l,r,c,g){this._reactName=i,this._targetInst=r,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(i=t[x],this[x]=i?i(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ls:jh,this.isPropagationStopped=jh,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ls)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),e}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_s=ye(Aa),ul=b({},Aa,{view:0,detail:0}),t1=ye(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(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==cl&&(cl&&t.type==="mousemove"?(nu=t.screenX-cl.screenX,au=t.screenY-cl.screenY):au=nu=0,cl=t),nu)},movementY:function(t){return"movementY"in t?t.movementY:au}}),Nh=ye(Us),e1=b({},Us,{dataTransfer:0}),n1=ye(e1),a1=b({},ul,{relatedTarget:0}),iu=ye(a1),i1=b({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),l1=ye(i1),s1=b({},Aa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),o1=ye(s1),r1=b({},Aa,{data:0}),Ch=ye(r1),u1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c1={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"},f1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=f1[t])?!!e[t]:!1}function lu(){return d1}var h1=b({},ul,{key:function(t){if(t.key){var e=u1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Vs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?c1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(t){return t.type==="keypress"?Vs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),m1=ye(h1),p1=b({},Us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mh=ye(p1),g1=b({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),v1=ye(g1),y1=b({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),b1=ye(y1),x1=b({},Us,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),S1=ye(x1),T1=b({},Aa,{newState:0,oldState:0}),w1=ye(T1),E1=[9,13,27,32],su=bn&&"CompositionEvent"in window,fl=null;bn&&"documentMode"in document&&(fl=document.documentMode);var A1=bn&&"TextEvent"in window&&!fl,Dh=bn&&(!su||fl&&8<fl&&11>=fl),zh=" ",Oh=!1;function Rh(t,e){switch(t){case"keyup":return E1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fi=!1;function j1(t,e){switch(t){case"compositionend":return Vh(e);case"keypress":return e.which!==32?null:(Oh=!0,zh);case"textInput":return t=e.data,t===zh&&Oh?null:t;default:return null}}function N1(t,e){if(fi)return t==="compositionend"||!su&&Rh(t,e)?(t=Ah(),Rs=eu=$n=null,fi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Dh&&e.locale!=="ko"?null:e.data;default:return null}}var C1={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 Lh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!C1[t.type]:e==="textarea"}function _h(t,e,i,l){ui?ci?ci.push(l):ci=[l]:ui=l,e=No(e,"onChange"),0<e.length&&(i=new _s("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var dl=null,hl=null;function M1(t){yg(t,0)}function ks(t){var e=sl(t);if(vh(e))return t}function Uh(t,e){if(t==="change")return e}var kh=!1;if(bn){var ou;if(bn){var ru="oninput"in document;if(!ru){var Bh=document.createElement("div");Bh.setAttribute("oninput","return;"),ru=typeof Bh.oninput=="function"}ou=ru}else ou=!1;kh=ou&&(!document.documentMode||9<document.documentMode)}function Hh(){dl&&(dl.detachEvent("onpropertychange",$h),hl=dl=null)}function $h(t){if(t.propertyName==="value"&&ks(hl)){var e=[];_h(e,hl,t,Wr(t)),Eh(M1,e)}}function D1(t,e,i){t==="focusin"?(Hh(),dl=e,hl=i,dl.attachEvent("onpropertychange",$h)):t==="focusout"&&Hh()}function z1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ks(hl)}function O1(t,e){if(t==="click")return ks(e)}function R1(t,e){if(t==="input"||t==="change")return ks(e)}function V1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Me=typeof Object.is=="function"?Object.is:V1;function ml(t,e){if(Me(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),l=Object.keys(e);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var r=i[l];if(!Br.call(e,r)||!Me(t[r],e[r]))return!1}return!0}function Gh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Yh(t,e){var i=Gh(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=e&&l>=e)return{node:i,offset:e-t};t=l}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Gh(i)}}function qh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Xh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=zs(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=zs(t.document)}return e}function uu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var L1=bn&&"documentMode"in document&&11>=document.documentMode,di=null,cu=null,pl=null,fu=!1;function Kh(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;fu||di==null||di!==zs(l)||(l=di,"selectionStart"in l&&uu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),pl&&ml(pl,l)||(pl=l,l=No(cu,"onSelect"),0<l.length&&(e=new _s("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=di)))}function ja(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,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={},Fh={};bn&&(Fh=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(t){if(du[t])return du[t];if(!hi[t])return t;var e=hi[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in Fh)return du[t]=e[i];return t}var Zh=Na("animationend"),Qh=Na("animationiteration"),Jh=Na("animationstart"),_1=Na("transitionrun"),U1=Na("transitionstart"),k1=Na("transitioncancel"),Ph=Na("transitionend"),Wh=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 Pe(t,e){Wh.set(t,e),Ea(e,[t])}var Bs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Be=[],mi=0,mu=0;function Hs(){for(var t=mi,e=mu=mi=0;e<t;){var i=Be[e];Be[e++]=null;var l=Be[e];Be[e++]=null;var r=Be[e];Be[e++]=null;var c=Be[e];if(Be[e++]=null,l!==null&&r!==null){var g=l.pending;g===null?r.next=r:(r.next=g.next,g.next=r),l.pending=r}c!==0&&Ih(i,r,c)}}function $s(t,e,i,l){Be[mi++]=t,Be[mi++]=e,Be[mi++]=i,Be[mi++]=l,mu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function pu(t,e,i,l){return $s(t,e,i,l),Gs(t)}function Ca(t,e){return $s(t,null,null,e),Gs(t)}function Ih(t,e,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var r=!1,c=t.return;c!==null;)c.childLanes|=i,l=c.alternate,l!==null&&(l.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(r=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,r&&e!==null&&(r=31-Ce(i),t=c.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=i|536870912),c):null}function Gs(t){if(50<Ul)throw Ul=0,Ec=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var pi={};function B1(t,e,i,l){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(t,e,i,l){return new B1(t,e,i,l)}function gu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function xn(t,e){var i=t.alternate;return i===null?(i=De(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function tm(t,e){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ys(t,e,i,l,r,c){var g=0;if(l=t,typeof t=="function")gu(t)&&(g=1);else if(typeof t=="string")g=qS(t,i,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case xt:return t=De(31,i,e,r),t.elementType=xt,t.lanes=c,t;case E:return Ma(i.children,r,c,e);case C:g=8,r|=24;break;case A:return t=De(12,i,e,r|2),t.elementType=A,t.lanes=c,t;case X:return t=De(13,i,e,r),t.elementType=X,t.lanes=c,t;case tt:return t=De(19,i,e,r),t.elementType=tt,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:g=10;break t;case L:g=9;break t;case Y:g=11;break t;case Z:g=14;break t;case nt:g=16,l=null;break t}g=29,i=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=De(g,i,e,r),e.elementType=t,e.type=l,e.lanes=c,e}function Ma(t,e,i,l){return t=De(7,t,l,e),t.lanes=i,t}function vu(t,e,i){return t=De(6,t,null,e),t.lanes=i,t}function em(t){var e=De(18,null,null,0);return e.stateNode=t,e}function yu(t,e,i){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var nm=new WeakMap;function He(t,e){if(typeof t=="object"&&t!==null){var i=nm.get(t);return i!==void 0?i:(e={value:t,source:e,stack:eh(e)},nm.set(t,e),e)}return{value:t,source:e,stack:eh(e)}}var gi=[],vi=0,qs=null,gl=0,$e=[],Ge=0,Gn=null,ln=1,sn="";function Sn(t,e){gi[vi++]=gl,gi[vi++]=qs,qs=t,gl=e}function am(t,e,i){$e[Ge++]=ln,$e[Ge++]=sn,$e[Ge++]=Gn,Gn=t;var l=ln;t=sn;var r=32-Ce(l)-1;l&=~(1<<r),i+=1;var c=32-Ce(e)+r;if(30<c){var g=r-r%5;c=(l&(1<<g)-1).toString(32),l>>=g,r-=g,ln=1<<32-Ce(e)+r|i<<r|l,sn=c+t}else ln=1<<c|i<<r|l,sn=t}function bu(t){t.return!==null&&(Sn(t,1),am(t,1,0))}function xu(t){for(;t===qs;)qs=gi[--vi],gi[vi]=null,gl=gi[--vi],gi[vi]=null;for(;t===Gn;)Gn=$e[--Ge],$e[Ge]=null,sn=$e[--Ge],$e[Ge]=null,ln=$e[--Ge],$e[Ge]=null}function im(t,e){$e[Ge++]=ln,$e[Ge++]=sn,$e[Ge++]=Gn,ln=e.id,sn=e.overflow,Gn=t}var ie=null,_t=null,yt=!1,Yn=null,Ye=!1,Su=Error(o(519));function qn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vl(He(e,t)),Su}function lm(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[ae]=t,e[ve]=l,i){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(i=0;i<Bl.length;i++)mt(Bl[i],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),yh(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),xh(e,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||l.suppressHydrationWarning===!0||Tg(e.textContent,i)?(l.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),l.onScroll!=null&&mt("scroll",e),l.onScrollEnd!=null&&mt("scrollend",e),l.onClick!=null&&(e.onclick=yn),e=!0):e=!1,e||qn(t,!0)}function sm(t){for(ie=t.return;ie;)switch(ie.tag){case 5:case 31:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:ie=ie.return}}function yi(t){if(t!==ie)return!1;if(!yt)return sm(t),yt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Bc(t.type,t.memoizedProps)),i=!i),i&&_t&&qn(t),sm(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=zg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=zg(t)}else e===27?(e=_t,ia(t.type)?(t=qc,qc=null,_t=t):_t=e):_t=ie?Xe(t.stateNode.nextSibling):null;return!0}function Da(){_t=ie=null,yt=!1}function Tu(){var t=Yn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Yn=null),t}function vl(t){Yn===null?Yn=[t]:Yn.push(t)}var wu=M(null),za=null,Tn=null;function Xn(t,e,i){q(wu,e._currentValue),e._currentValue=i}function wn(t){t._currentValue=wu.current,$(wu)}function Eu(t,e,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===i)break;t=t.return}}function Au(t,e,i,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var c=r.dependencies;if(c!==null){var g=r.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=r;for(var N=0;N<e.length;N++)if(x.context===e[N]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),Eu(c.return,i,t),l||(g=null);break t}c=x.next}}else if(r.tag===18){if(g=r.return,g===null)throw Error(o(341));g.lanes|=i,c=g.alternate,c!==null&&(c.lanes|=i),Eu(g,i,t),g=null}else g=r.child;if(g!==null)g.return=r;else for(g=r;g!==null;){if(g===t){g=null;break}if(r=g.sibling,r!==null){r.return=g.return,g=r;break}g=g.return}r=g}}function bi(t,e,i,l){t=null;for(var r=e,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 g=r.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var x=r.type;Me(r.pendingProps.value,g.value)||(t!==null?t.push(x):t=[x])}}else if(r===bt.current){if(g=r.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(ql):t=[ql])}r=r.return}t!==null&&Au(e,t,i,l),e.flags|=262144}function Xs(t){for(t=t.firstContext;t!==null;){if(!Me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Oa(t){za=t,Tn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return om(za,t)}function Ks(t,e){return za===null&&Oa(t),om(t,e)}function om(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},Tn===null){if(t===null)throw Error(o(308));Tn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Tn=Tn.next=e;return i}var H1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},$1=n.unstable_scheduleCallback,G1=n.unstable_NormalPriority,Zt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ju(){return{controller:new H1,data:new Map,refCount:0}}function yl(t){t.refCount--,t.refCount===0&&$1(G1,function(){t.controller.abort()})}var bl=null,Nu=0,xi=0,Si=null;function Y1(t,e){if(bl===null){var i=bl=[];Nu=0,xi=Dc(),Si={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Nu++,e.then(rm,rm),e}function rm(){if(--Nu===0&&bl!==null){Si!==null&&(Si.status="fulfilled");var t=bl;bl=null,xi=0,Si=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function q1(t,e){var i=[],l={status:"pending",value:null,reason:null,then:function(r){i.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<i.length;r++)(0,i[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<i.length;r++)(0,i[r])(void 0)}),l}var um=k.S;k.S=function(t,e){Kp=je(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Y1(t,e),um!==null&&um(t,e)};var Ra=M(null);function Cu(){var t=Ra.current;return t!==null?t:Lt.pooledCache}function Fs(t,e){e===null?q(Ra,Ra.current):q(Ra,e.pool)}function cm(){var t=Cu();return t===null?null:{parent:Zt._currentValue,pool:t}}var Ti=Error(o(460)),Mu=Error(o(474)),Zs=Error(o(542)),Qs={then:function(){}};function fm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function dm(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(yn,yn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,mm(t),t;default:if(typeof e.status=="string")e.then(yn,yn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,mm(t),t}throw La=e,Ti}}function Va(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(La=i,Ti):i}}var La=null;function hm(){if(La===null)throw Error(o(459));var t=La;return La=null,t}function mm(t){if(t===Ti||t===Zs)throw Error(o(483))}var wi=null,xl=0;function Js(t){var e=xl;return xl+=1,wi===null&&(wi=[]),dm(wi,t,e)}function Sl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ps(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function pm(t){function e(z,D){if(t){var O=z.deletions;O===null?(z.deletions=[D],z.flags|=16):O.push(D)}}function i(z,D){if(!t)return null;for(;D!==null;)e(z,D),D=D.sibling;return null}function l(z){for(var D=new Map;z!==null;)z.key!==null?D.set(z.key,z):D.set(z.index,z),z=z.sibling;return D}function r(z,D){return z=xn(z,D),z.index=0,z.sibling=null,z}function c(z,D,O){return z.index=O,t?(O=z.alternate,O!==null?(O=O.index,O<D?(z.flags|=67108866,D):O):(z.flags|=67108866,D)):(z.flags|=1048576,D)}function g(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function x(z,D,O,H){return D===null||D.tag!==6?(D=vu(O,z.mode,H),D.return=z,D):(D=r(D,O),D.return=z,D)}function N(z,D,O,H){var et=O.type;return et===E?B(z,D,O.props.children,H,O.key):D!==null&&(D.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===nt&&Va(et)===D.type)?(D=r(D,O.props),Sl(D,O),D.return=z,D):(D=Ys(O.type,O.key,O.props,null,z.mode,H),Sl(D,O),D.return=z,D)}function R(z,D,O,H){return D===null||D.tag!==4||D.stateNode.containerInfo!==O.containerInfo||D.stateNode.implementation!==O.implementation?(D=yu(O,z.mode,H),D.return=z,D):(D=r(D,O.children||[]),D.return=z,D)}function B(z,D,O,H,et){return D===null||D.tag!==7?(D=Ma(O,z.mode,H,et),D.return=z,D):(D=r(D,O),D.return=z,D)}function G(z,D,O){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=vu(""+D,z.mode,O),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case T:return O=Ys(D.type,D.key,D.props,null,z.mode,O),Sl(O,D),O.return=z,O;case j:return D=yu(D,z.mode,O),D.return=z,D;case nt:return D=Va(D),G(z,D,O)}if(Rt(D)||vt(D))return D=Ma(D,z.mode,O,null),D.return=z,D;if(typeof D.then=="function")return G(z,Js(D),O);if(D.$$typeof===U)return G(z,Ks(z,D),O);Ps(z,D)}return null}function V(z,D,O,H){var et=D!==null?D.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return et!==null?null:x(z,D,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case T:return O.key===et?N(z,D,O,H):null;case j:return O.key===et?R(z,D,O,H):null;case nt:return O=Va(O),V(z,D,O,H)}if(Rt(O)||vt(O))return et!==null?null:B(z,D,O,H,null);if(typeof O.then=="function")return V(z,D,Js(O),H);if(O.$$typeof===U)return V(z,D,Ks(z,O),H);Ps(z,O)}return null}function _(z,D,O,H,et){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return z=z.get(O)||null,x(D,z,""+H,et);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case T:return z=z.get(H.key===null?O:H.key)||null,N(D,z,H,et);case j:return z=z.get(H.key===null?O:H.key)||null,R(D,z,H,et);case nt:return H=Va(H),_(z,D,O,H,et)}if(Rt(H)||vt(H))return z=z.get(O)||null,B(D,z,H,et,null);if(typeof H.then=="function")return _(z,D,O,Js(H),et);if(H.$$typeof===U)return _(z,D,O,Ks(D,H),et);Ps(D,H)}return null}function P(z,D,O,H){for(var et=null,St=null,I=D,ut=D=0,gt=null;I!==null&&ut<O.length;ut++){I.index>ut?(gt=I,I=null):gt=I.sibling;var Tt=V(z,I,O[ut],H);if(Tt===null){I===null&&(I=gt);break}t&&I&&Tt.alternate===null&&e(z,I),D=c(Tt,D,ut),St===null?et=Tt:St.sibling=Tt,St=Tt,I=gt}if(ut===O.length)return i(z,I),yt&&Sn(z,ut),et;if(I===null){for(;ut<O.length;ut++)I=G(z,O[ut],H),I!==null&&(D=c(I,D,ut),St===null?et=I:St.sibling=I,St=I);return yt&&Sn(z,ut),et}for(I=l(I);ut<O.length;ut++)gt=_(I,z,ut,O[ut],H),gt!==null&&(t&>.alternate!==null&&I.delete(gt.key===null?ut:gt.key),D=c(gt,D,ut),St===null?et=gt:St.sibling=gt,St=gt);return t&&I.forEach(function(ua){return e(z,ua)}),yt&&Sn(z,ut),et}function at(z,D,O,H){if(O==null)throw Error(o(151));for(var et=null,St=null,I=D,ut=D=0,gt=null,Tt=O.next();I!==null&&!Tt.done;ut++,Tt=O.next()){I.index>ut?(gt=I,I=null):gt=I.sibling;var ua=V(z,I,Tt.value,H);if(ua===null){I===null&&(I=gt);break}t&&I&&ua.alternate===null&&e(z,I),D=c(ua,D,ut),St===null?et=ua:St.sibling=ua,St=ua,I=gt}if(Tt.done)return i(z,I),yt&&Sn(z,ut),et;if(I===null){for(;!Tt.done;ut++,Tt=O.next())Tt=G(z,Tt.value,H),Tt!==null&&(D=c(Tt,D,ut),St===null?et=Tt:St.sibling=Tt,St=Tt);return yt&&Sn(z,ut),et}for(I=l(I);!Tt.done;ut++,Tt=O.next())Tt=_(I,z,ut,Tt.value,H),Tt!==null&&(t&&Tt.alternate!==null&&I.delete(Tt.key===null?ut:Tt.key),D=c(Tt,D,ut),St===null?et=Tt:St.sibling=Tt,St=Tt);return t&&I.forEach(function(eT){return e(z,eT)}),yt&&Sn(z,ut),et}function Dt(z,D,O,H){if(typeof O=="object"&&O!==null&&O.type===E&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case T:t:{for(var et=O.key;D!==null;){if(D.key===et){if(et=O.type,et===E){if(D.tag===7){i(z,D.sibling),H=r(D,O.props.children),H.return=z,z=H;break t}}else if(D.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===nt&&Va(et)===D.type){i(z,D.sibling),H=r(D,O.props),Sl(H,O),H.return=z,z=H;break t}i(z,D);break}else e(z,D);D=D.sibling}O.type===E?(H=Ma(O.props.children,z.mode,H,O.key),H.return=z,z=H):(H=Ys(O.type,O.key,O.props,null,z.mode,H),Sl(H,O),H.return=z,z=H)}return g(z);case j:t:{for(et=O.key;D!==null;){if(D.key===et)if(D.tag===4&&D.stateNode.containerInfo===O.containerInfo&&D.stateNode.implementation===O.implementation){i(z,D.sibling),H=r(D,O.children||[]),H.return=z,z=H;break t}else{i(z,D);break}else e(z,D);D=D.sibling}H=yu(O,z.mode,H),H.return=z,z=H}return g(z);case nt:return O=Va(O),Dt(z,D,O,H)}if(Rt(O))return P(z,D,O,H);if(vt(O)){if(et=vt(O),typeof et!="function")throw Error(o(150));return O=et.call(O),at(z,D,O,H)}if(typeof O.then=="function")return Dt(z,D,Js(O),H);if(O.$$typeof===U)return Dt(z,D,Ks(z,O),H);Ps(z,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,D!==null&&D.tag===6?(i(z,D.sibling),H=r(D,O),H.return=z,z=H):(i(z,D),H=vu(O,z.mode,H),H.return=z,z=H),g(z)):i(z,D)}return function(z,D,O,H){try{xl=0;var et=Dt(z,D,O,H);return wi=null,et}catch(I){if(I===Ti||I===Zs)throw I;var St=De(29,I,null,z.mode);return St.lanes=H,St.return=z,St}finally{}}}var _a=pm(!0),gm=pm(!1),Kn=!1;function Du(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(wt&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=Gs(t),Ih(t,null,i),e}return $s(t,l,e,i),Gs(t)}function Tl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,oh(t,i)}}function Ou(t,e){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var r=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?r=c=g:c=c.next=g,i=i.next}while(i!==null);c===null?r=c=e:c=c.next=e}else r=c=e;i={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var Ru=!1;function wl(){if(Ru){var t=Si;if(t!==null)throw t}}function El(t,e,i,l){Ru=!1;var r=t.updateQueue;Kn=!1;var c=r.firstBaseUpdate,g=r.lastBaseUpdate,x=r.shared.pending;if(x!==null){r.shared.pending=null;var N=x,R=N.next;N.next=null,g===null?c=R:g.next=R,g=N;var B=t.alternate;B!==null&&(B=B.updateQueue,x=B.lastBaseUpdate,x!==g&&(x===null?B.firstBaseUpdate=R:x.next=R,B.lastBaseUpdate=N))}if(c!==null){var G=r.baseState;g=0,B=R=N=null,x=c;do{var V=x.lane&-536870913,_=V!==x.lane;if(_?(pt&V)===V:(l&V)===V){V!==0&&V===xi&&(Ru=!0),B!==null&&(B=B.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var P=t,at=x;V=e;var Dt=i;switch(at.tag){case 1:if(P=at.payload,typeof P=="function"){G=P.call(Dt,G,V);break t}G=P;break t;case 3:P.flags=P.flags&-65537|128;case 0:if(P=at.payload,V=typeof P=="function"?P.call(Dt,G,V):P,V==null)break t;G=b({},G,V);break t;case 2:Kn=!0}}V=x.callback,V!==null&&(t.flags|=64,_&&(t.flags|=8192),_=r.callbacks,_===null?r.callbacks=[V]:_.push(V))}else _={lane:V,tag:x.tag,payload:x.payload,callback:x.callback,next:null},B===null?(R=B=_,N=G):B=B.next=_,g|=V;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);B===null&&(N=G),r.baseState=N,r.firstBaseUpdate=R,r.lastBaseUpdate=B,c===null&&(r.shared.lanes=0),In|=g,t.lanes=g,t.memoizedState=G}}function vm(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function ym(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)vm(i[t],e)}var Ei=M(null),Ws=M(0);function bm(t,e){t=On,q(Ws,t),q(Ei,e),On=t|e.baseLanes}function Vu(){q(Ws,On),q(Ei,Ei.current)}function Lu(){On=Ws.current,$(Ei),$(Ws)}var ze=M(null),qe=null;function Qn(t){var e=t.alternate;q(qt,qt.current&1),q(ze,t),qe===null&&(e===null||Ei.current!==null||e.memoizedState!==null)&&(qe=t)}function _u(t){q(qt,qt.current),q(ze,t),qe===null&&(qe=t)}function xm(t){t.tag===22?(q(qt,qt.current),q(ze,t),qe===null&&(qe=t)):Jn()}function Jn(){q(qt,qt.current),q(ze,ze.current)}function Oe(t){$(ze),qe===t&&(qe=null),$(qt)}var qt=M(0);function Is(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Gc(i)||Yc(i)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var En=0,rt=null,Ct=null,Qt=null,to=!1,Ai=!1,Ua=!1,eo=0,Al=0,ji=null,X1=0;function Ht(){throw Error(o(321))}function Uu(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Me(t[i],e[i]))return!1;return!0}function ku(t,e,i,l,r,c){return En=c,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,k.H=t===null||t.memoizedState===null?ap:Iu,Ua=!1,c=i(l,r),Ua=!1,Ai&&(c=Tm(e,i,l,r)),Sm(t),c}function Sm(t){k.H=Cl;var e=Ct!==null&&Ct.next!==null;if(En=0,Qt=Ct=rt=null,to=!1,Al=0,ji=null,e)throw Error(o(300));t===null||Jt||(t=t.dependencies,t!==null&&Xs(t)&&(Jt=!0))}function Tm(t,e,i,l){rt=t;var r=0;do{if(Ai&&(ji=null),Al=0,Ai=!1,25<=r)throw Error(o(301));if(r+=1,Qt=Ct=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}k.H=ip,c=e(i,l)}while(Ai);return c}function K1(){var t=k.H,e=t.useState()[0];return e=typeof e.then=="function"?jl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(rt.flags|=1024),e}function Bu(){var t=eo!==0;return eo=0,t}function Hu(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function $u(t){if(to){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}to=!1}En=0,Qt=Ct=rt=null,Ai=!1,Al=eo=0,ji=null}function de(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?rt.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Xt(){if(Ct===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Qt===null?rt.memoizedState:Qt.next;if(e!==null)Qt=e,Ct=t;else{if(t===null)throw rt.alternate===null?Error(o(467)):Error(o(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Qt===null?rt.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function no(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jl(t){var e=Al;return Al+=1,ji===null&&(ji=[]),t=dm(ji,t,e),e=rt,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,k.H=e===null||e.memoizedState===null?ap:Iu),t}function ao(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return jl(t);if(t.$$typeof===U)return le(t)}throw Error(o(438,String(t)))}function Gu(t){var e=null,i=rt.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=rt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=no(),rt.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),l=0;l<t;l++)i[l]=J;return e.index++,i}function An(t,e){return typeof e=="function"?e(t):e}function io(t){var e=Xt();return Yu(e,Ct,t)}function Yu(t,e,i){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var r=t.baseQueue,c=l.pending;if(c!==null){if(r!==null){var g=r.next;r.next=c.next,c.next=g}e.baseQueue=r=c,l.pending=null}if(c=t.baseState,r===null)t.memoizedState=c;else{e=r.next;var x=g=null,N=null,R=e,B=!1;do{var G=R.lane&-536870913;if(G!==R.lane?(pt&G)===G:(En&G)===G){var V=R.revertLane;if(V===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),G===xi&&(B=!0);else if((En&V)===V){R=R.next,V===xi&&(B=!0);continue}else G={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},N===null?(x=N=G,g=c):N=N.next=G,rt.lanes|=V,In|=V;G=R.action,Ua&&i(c,G),c=R.hasEagerState?R.eagerState:i(c,G)}else V={lane:G,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},N===null?(x=N=V,g=c):N=N.next=V,rt.lanes|=G,In|=G;R=R.next}while(R!==null&&R!==e);if(N===null?g=c:N.next=x,!Me(c,t.memoizedState)&&(Jt=!0,B&&(i=Si,i!==null)))throw i;t.memoizedState=c,t.baseState=g,t.baseQueue=N,l.lastRenderedState=c}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function qu(t){var e=Xt(),i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var l=i.dispatch,r=i.pending,c=e.memoizedState;if(r!==null){i.pending=null;var g=r=r.next;do c=t(c,g.action),g=g.next;while(g!==r);Me(c,e.memoizedState)||(Jt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function wm(t,e,i){var l=rt,r=Xt(),c=yt;if(c){if(i===void 0)throw Error(o(407));i=i()}else i=e();var g=!Me((Ct||r).memoizedState,i);if(g&&(r.memoizedState=i,Jt=!0),r=r.queue,Fu(jm.bind(null,l,r,t),[t]),r.getSnapshot!==e||g||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,Ni(9,{destroy:void 0},Am.bind(null,l,r,i,e),null),Lt===null)throw Error(o(349));c||(En&127)!==0||Em(l,e,i)}return i}function Em(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=rt.updateQueue,e===null?(e=no(),rt.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Am(t,e,i,l){e.value=i,e.getSnapshot=l,Nm(e)&&Cm(t)}function jm(t,e,i){return i(function(){Nm(e)&&Cm(t)})}function Nm(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Me(t,i)}catch{return!0}}function Cm(t){var e=Ca(t,2);e!==null&&we(e,t,2)}function Xu(t){var e=de();if(typeof t=="function"){var i=t;if(t=i(),Ua){Bn(!0);try{i()}finally{Bn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:t},e}function Mm(t,e,i,l){return t.baseState=i,Yu(t,Ct,typeof l=="function"?l:An)}function F1(t,e,i,l,r){if(oo(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};k.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,Dm(e,c)):(c.next=i.next,e.pending=i.next=c)}}function Dm(t,e){var i=e.action,l=e.payload,r=t.state;if(e.isTransition){var c=k.T,g={};k.T=g;try{var x=i(r,l),N=k.S;N!==null&&N(g,x),zm(t,e,x)}catch(R){Ku(t,e,R)}finally{c!==null&&g.types!==null&&(c.types=g.types),k.T=c}}else try{c=i(r,l),zm(t,e,c)}catch(R){Ku(t,e,R)}}function zm(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Om(t,e,l)},function(l){return Ku(t,e,l)}):Om(t,e,i)}function Om(t,e,i){e.status="fulfilled",e.value=i,Rm(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,Dm(t,i)))}function Ku(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,Rm(e),e=e.next;while(e!==l)}t.action=null}function Rm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Vm(t,e){return e}function Lm(t,e){if(yt){var i=Lt.formState;if(i!==null){t:{var l=rt;if(yt){if(_t){e:{for(var r=_t,c=Ye;r.nodeType!==8;){if(!c){r=null;break e}if(r=Xe(r.nextSibling),r===null){r=null;break e}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){_t=Xe(r.nextSibling),l=r.data==="F!";break t}}qn(l)}l=!1}l&&(e=i[0])}}return i=de(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:e},i.queue=l,i=tp.bind(null,rt,l),l.dispatch=i,l=Xu(!1),c=Wu.bind(null,rt,!1,l.queue),l=de(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,i=F1.bind(null,rt,r,c,i),r.dispatch=i,l.memoizedState=t,[e,i,!1]}function _m(t){var e=Xt();return Um(e,Ct,t)}function Um(t,e,i){if(e=Yu(t,e,Vm)[0],t=io(An)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=jl(e)}catch(g){throw g===Ti?Zs:g}else l=e;e=Xt();var r=e.queue,c=r.dispatch;return i!==e.memoizedState&&(rt.flags|=2048,Ni(9,{destroy:void 0},Z1.bind(null,r,i),null)),[l,c,t]}function Z1(t,e){t.action=e}function km(t){var e=Xt(),i=Ct;if(i!==null)return Um(e,i,t);Xt(),e=e.memoizedState,i=Xt();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function Ni(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=rt.updateQueue,e===null&&(e=no(),rt.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,e.lastEffect=t),t}function Bm(){return Xt().memoizedState}function lo(t,e,i,l){var r=de();rt.flags|=t,r.memoizedState=Ni(1|e,{destroy:void 0},i,l===void 0?null:l)}function so(t,e,i,l){var r=Xt();l=l===void 0?null:l;var c=r.memoizedState.inst;Ct!==null&&l!==null&&Uu(l,Ct.memoizedState.deps)?r.memoizedState=Ni(e,c,i,l):(rt.flags|=t,r.memoizedState=Ni(1|e,c,i,l))}function Hm(t,e){lo(8390656,8,t,e)}function Fu(t,e){so(2048,8,t,e)}function Q1(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=no(),rt.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function $m(t){var e=Xt().memoizedState;return Q1({ref:e,nextImpl:t}),function(){if((wt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Gm(t,e){return so(4,2,t,e)}function Ym(t,e){return so(4,4,t,e)}function qm(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Xm(t,e,i){i=i!=null?i.concat([t]):null,so(4,4,qm.bind(null,e,t),i)}function Zu(){}function Km(t,e){var i=Xt();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Uu(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function Fm(t,e){var i=Xt();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Uu(e,l[1]))return l[0];if(l=t(),Ua){Bn(!0);try{t()}finally{Bn(!1)}}return i.memoizedState=[l,e],l}function Qu(t,e,i){return i===void 0||(En&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Zp(),rt.lanes|=t,In|=t,i)}function Zm(t,e,i,l){return Me(i,e)?i:Ei.current!==null?(t=Qu(t,i,l),Me(t,e)||(Jt=!0),t):(En&42)===0||(En&1073741824)!==0&&(pt&261930)===0?(Jt=!0,t.memoizedState=i):(t=Zp(),rt.lanes|=t,In|=t,e)}function Qm(t,e,i,l,r){var c=K.p;K.p=c!==0&&8>c?c:8;var g=k.T,x={};k.T=x,Wu(t,!1,e,i);try{var N=r(),R=k.S;if(R!==null&&R(x,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var B=q1(N,l);Nl(t,e,B,Le(t))}else Nl(t,e,l,Le(t))}catch(G){Nl(t,e,{then:function(){},status:"rejected",reason:G},Le())}finally{K.p=c,g!==null&&x.types!==null&&(g.types=x.types),k.T=g}}function J1(){}function Ju(t,e,i,l){if(t.tag!==5)throw Error(o(476));var r=Jm(t).queue;Qm(t,r,e,F,i===null?J1:function(){return Pm(t),i(l)})}function Jm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:F},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Pm(t){var e=Jm(t);e.next===null&&(e=t.alternate.memoizedState),Nl(t,e.next.queue,{},Le())}function Pu(){return le(ql)}function Wm(){return Xt().memoizedState}function Im(){return Xt().memoizedState}function P1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=Le();t=Fn(i);var l=Zn(e,t,i);l!==null&&(we(l,e,i),Tl(l,e,i)),e={cache:ju()},t.payload=e;return}e=e.return}}function W1(t,e,i){var l=Le();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},oo(t)?ep(e,i):(i=pu(t,e,i,l),i!==null&&(we(i,t,l),np(i,e,l)))}function tp(t,e,i){var l=Le();Nl(t,e,i,l)}function Nl(t,e,i,l){var r={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(oo(t))ep(e,r);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var g=e.lastRenderedState,x=c(g,i);if(r.hasEagerState=!0,r.eagerState=x,Me(x,g))return $s(t,e,r,0),Lt===null&&Hs(),!1}catch{}finally{}if(i=pu(t,e,r,l),i!==null)return we(i,t,l),np(i,e,l),!0}return!1}function Wu(t,e,i,l){if(l={lane:2,revertLane:Dc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},oo(t)){if(e)throw Error(o(479))}else e=pu(t,i,l,2),e!==null&&we(e,t,2)}function oo(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function ep(t,e){Ai=to=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function np(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,oh(t,i)}}var Cl={readContext:le,use:ao,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Cl.useEffectEvent=Ht;var ap={readContext:le,use:ao,useCallback:function(t,e){return de().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Hm,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,lo(4194308,4,qm.bind(null,e,t),i)},useLayoutEffect:function(t,e){return lo(4194308,4,t,e)},useInsertionEffect:function(t,e){lo(4,2,t,e)},useMemo:function(t,e){var i=de();e=e===void 0?null:e;var l=t();if(Ua){Bn(!0);try{t()}finally{Bn(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=de();if(i!==void 0){var r=i(e);if(Ua){Bn(!0);try{i(e)}finally{Bn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=W1.bind(null,rt,t),[l.memoizedState,t]},useRef:function(t){var e=de();return t={current:t},e.memoizedState=t},useState:function(t){t=Xu(t);var e=t.queue,i=tp.bind(null,rt,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Zu,useDeferredValue:function(t,e){var i=de();return Qu(i,t,e)},useTransition:function(){var t=Xu(!1);return t=Qm.bind(null,rt,t.queue,!0,!1),de().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=rt,r=de();if(yt){if(i===void 0)throw Error(o(407));i=i()}else{if(i=e(),Lt===null)throw Error(o(349));(pt&127)!==0||Em(l,e,i)}r.memoizedState=i;var c={value:i,getSnapshot:e};return r.queue=c,Hm(jm.bind(null,l,c,t),[t]),l.flags|=2048,Ni(9,{destroy:void 0},Am.bind(null,l,c,i,e),null),i},useId:function(){var t=de(),e=Lt.identifierPrefix;if(yt){var i=sn,l=ln;i=(l&~(1<<32-Ce(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=eo++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=X1++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Pu,useFormState:Lm,useActionState:Lm,useOptimistic:function(t){var e=de();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Wu.bind(null,rt,!0,i),i.dispatch=e,[t,e]},useMemoCache:Gu,useCacheRefresh:function(){return de().memoizedState=P1.bind(null,rt)},useEffectEvent:function(t){var e=de(),i={impl:t};return e.memoizedState=i,function(){if((wt&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Iu={readContext:le,use:ao,useCallback:Km,useContext:le,useEffect:Fu,useImperativeHandle:Xm,useInsertionEffect:Gm,useLayoutEffect:Ym,useMemo:Fm,useReducer:io,useRef:Bm,useState:function(){return io(An)},useDebugValue:Zu,useDeferredValue:function(t,e){var i=Xt();return Zm(i,Ct.memoizedState,t,e)},useTransition:function(){var t=io(An)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:jl(t),e]},useSyncExternalStore:wm,useId:Wm,useHostTransitionStatus:Pu,useFormState:_m,useActionState:_m,useOptimistic:function(t,e){var i=Xt();return Mm(i,Ct,t,e)},useMemoCache:Gu,useCacheRefresh:Im};Iu.useEffectEvent=$m;var ip={readContext:le,use:ao,useCallback:Km,useContext:le,useEffect:Fu,useImperativeHandle:Xm,useInsertionEffect:Gm,useLayoutEffect:Ym,useMemo:Fm,useReducer:qu,useRef:Bm,useState:function(){return qu(An)},useDebugValue:Zu,useDeferredValue:function(t,e){var i=Xt();return Ct===null?Qu(i,t,e):Zm(i,Ct.memoizedState,t,e)},useTransition:function(){var t=qu(An)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:jl(t),e]},useSyncExternalStore:wm,useId:Wm,useHostTransitionStatus:Pu,useFormState:km,useActionState:km,useOptimistic:function(t,e){var i=Xt();return Ct!==null?Mm(i,Ct,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Gu,useCacheRefresh:Im};ip.useEffectEvent=$m;function tc(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:b({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var ec={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=Le(),r=Fn(l);r.payload=e,i!=null&&(r.callback=i),e=Zn(t,r,l),e!==null&&(we(e,t,l),Tl(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=Le(),r=Fn(l);r.tag=1,r.payload=e,i!=null&&(r.callback=i),e=Zn(t,r,l),e!==null&&(we(e,t,l),Tl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=Le(),l=Fn(i);l.tag=2,e!=null&&(l.callback=e),e=Zn(t,l,i),e!==null&&(we(e,t,i),Tl(e,t,i))}};function lp(t,e,i,l,r,c,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,g):e.prototype&&e.prototype.isPureReactComponent?!ml(i,l)||!ml(r,c):!0}function sp(t,e,i,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,l),e.state!==t&&ec.enqueueReplaceState(e,e.state,null)}function ka(t,e){var i=e;if("ref"in e){i={};for(var l in e)l!=="ref"&&(i[l]=e[l])}if(t=t.defaultProps){i===e&&(i=b({},i));for(var r in t)i[r]===void 0&&(i[r]=t[r])}return i}function op(t){Bs(t)}function rp(t){console.error(t)}function up(t){Bs(t)}function ro(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function cp(t,e,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function nc(t,e,i){return i=Fn(i),i.tag=3,i.payload={element:null},i.callback=function(){ro(t,e)},i}function fp(t){return t=Fn(t),t.tag=3,t}function dp(t,e,i,l){var r=i.type.getDerivedStateFromError;if(typeof r=="function"){var c=l.value;t.payload=function(){return r(c)},t.callback=function(){cp(e,i,l)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){cp(e,i,l),typeof r!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function I1(t,e,i,l,r){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&bi(e,i,r,!0),i=ze.current,i!==null){switch(i.tag){case 31:case 13:return qe===null?So():i.alternate===null&&$t===0&&($t=3),i.flags&=-257,i.flags|=65536,i.lanes=r,l===Qs?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),Nc(t,l,r)),!1;case 22:return i.flags|=65536,l===Qs?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([l]):i.add(l)),Nc(t,l,r)),!1}throw Error(o(435,i.tag))}return Nc(t,l,r),So(),!1}if(yt)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Su&&(t=Error(o(422),{cause:l}),vl(He(t,i)))):(l!==Su&&(e=Error(o(423),{cause:l}),vl(He(e,i))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=He(l,i),r=nc(t.stateNode,l,r),Ou(t,r),$t!==4&&($t=2)),!1;var c=Error(o(520),{cause:l});if(c=He(c,i),_l===null?_l=[c]:_l.push(c),$t!==4&&($t=2),e===null)return!0;l=He(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=r&-r,i.lanes|=t,t=nc(i.stateNode,l,t),Ou(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ta===null||!ta.has(c))))return i.flags|=65536,r&=-r,i.lanes|=r,r=fp(r),dp(r,t,i,l),Ou(i,r),!1}i=i.return}while(i!==null);return!1}var ac=Error(o(461)),Jt=!1;function se(t,e,i,l){e.child=t===null?gm(e,null,i,l):_a(e,t.child,i,l)}function hp(t,e,i,l,r){i=i.render;var c=e.ref;if("ref"in l){var g={};for(var x in l)x!=="ref"&&(g[x]=l[x])}else g=l;return Oa(e),l=ku(t,e,i,g,c,r),x=Bu(),t!==null&&!Jt?(Hu(t,e,r),jn(t,e,r)):(yt&&x&&bu(e),e.flags|=1,se(t,e,l,r),e.child)}function mp(t,e,i,l,r){if(t===null){var c=i.type;return typeof c=="function"&&!gu(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,pp(t,e,c,l,r)):(t=Ys(i.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!fc(t,r)){var g=c.memoizedProps;if(i=i.compare,i=i!==null?i:ml,i(g,l)&&t.ref===e.ref)return jn(t,e,r)}return e.flags|=1,t=xn(c,l),t.ref=e.ref,t.return=e,e.child=t}function pp(t,e,i,l,r){if(t!==null){var c=t.memoizedProps;if(ml(c,l)&&t.ref===e.ref)if(Jt=!1,e.pendingProps=l=c,fc(t,r))(t.flags&131072)!==0&&(Jt=!0);else return e.lanes=t.lanes,jn(t,e,r)}return ic(t,e,i,l,r)}function gp(t,e,i,l){var r=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~c}else l=0,e.child=null;return vp(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Fs(e,c!==null?c.cachePool:null),c!==null?bm(e,c):Vu(),xm(e);else return l=e.lanes=536870912,vp(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Fs(e,c.cachePool),bm(e,c),Jn(),e.memoizedState=null):(t!==null&&Fs(e,null),Vu(),Jn());return se(t,e,r,i),e.child}function Ml(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function vp(t,e,i,l,r){var c=Cu();return c=c===null?null:{parent:Zt._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Fs(e,null),Vu(),xm(e),t!==null&&bi(t,e,l,!0),e.childLanes=r,null}function uo(t,e){return e=fo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function yp(t,e,i){return _a(e,t.child,null,i),t=uo(e,e.pendingProps),t.flags|=2,Oe(e),e.memoizedState=null,t}function tS(t,e,i){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(l.mode==="hidden")return t=uo(e,l),e.lanes=536870912,Ml(null,t);if(_u(e),(t=_t)?(t=Dg(t,Ye),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:ln,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},i=em(t),i.return=e,e.child=i,ie=e,_t=null)):t=null,t===null)throw qn(e);return e.lanes=536870912,null}return uo(e,l)}var c=t.memoizedState;if(c!==null){var g=c.dehydrated;if(_u(e),r)if(e.flags&256)e.flags&=-257,e=yp(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Jt||bi(t,e,i,!1),r=(i&t.childLanes)!==0,Jt||r){if(l=Lt,l!==null&&(g=rh(l,i),g!==0&&g!==c.retryLane))throw c.retryLane=g,Ca(t,g),we(l,t,g),ac;So(),e=yp(t,e,i)}else t=c.treeContext,_t=Xe(g.nextSibling),ie=e,yt=!0,Yn=null,Ye=!1,t!==null&&im(e,t),e=uo(e,l),e.flags|=4096;return e}return t=xn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function co(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function ic(t,e,i,l,r){return Oa(e),i=ku(t,e,i,l,void 0,r),l=Bu(),t!==null&&!Jt?(Hu(t,e,r),jn(t,e,r)):(yt&&l&&bu(e),e.flags|=1,se(t,e,i,r),e.child)}function bp(t,e,i,l,r,c){return Oa(e),e.updateQueue=null,i=Tm(e,l,i,r),Sm(t),l=Bu(),t!==null&&!Jt?(Hu(t,e,c),jn(t,e,c)):(yt&&l&&bu(e),e.flags|=1,se(t,e,i,c),e.child)}function xp(t,e,i,l,r){if(Oa(e),e.stateNode===null){var c=pi,g=i.contextType;typeof g=="object"&&g!==null&&(c=le(g)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ec,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},Du(e),g=i.contextType,c.context=typeof g=="object"&&g!==null?le(g):pi,c.state=e.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(tc(e,i,g,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&ec.enqueueReplaceState(c,c.state,null),El(e,l,c,r),wl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,N=ka(i,x);c.props=N;var R=c.context,B=i.contextType;g=pi,typeof B=="object"&&B!==null&&(g=le(B));var G=i.getDerivedStateFromProps;B=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||R!==g)&&sp(e,c,l,g),Kn=!1;var V=e.memoizedState;c.state=V,El(e,l,c,r),wl(),R=e.memoizedState,x||V!==R||Kn?(typeof G=="function"&&(tc(e,i,G,l),R=e.memoizedState),(N=Kn||lp(e,i,N,l,V,R,g))?(B||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"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=R),c.props=l,c.state=R,c.context=g,l=N):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,zu(t,e),g=e.memoizedProps,B=ka(i,g),c.props=B,G=e.pendingProps,V=c.context,R=i.contextType,N=pi,typeof R=="object"&&R!==null&&(N=le(R)),x=i.getDerivedStateFromProps,(R=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==G||V!==N)&&sp(e,c,l,N),Kn=!1,V=e.memoizedState,c.state=V,El(e,l,c,r),wl();var _=e.memoizedState;g!==G||V!==_||Kn||t!==null&&t.dependencies!==null&&Xs(t.dependencies)?(typeof x=="function"&&(tc(e,i,x,l),_=e.memoizedState),(B=Kn||lp(e,i,B,l,V,_,N)||t!==null&&t.dependencies!==null&&Xs(t.dependencies))?(R||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,_,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,_,N)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=_),c.props=l,c.state=_,c.context=N,l=B):(typeof c.componentDidUpdate!="function"||g===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,co(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=_a(e,t.child,null,r),e.child=_a(e,null,i,r)):se(t,e,i,r),e.memoizedState=c.state,t=e.child):t=jn(t,e,r),t}function Sp(t,e,i,l){return Da(),e.flags|=256,se(t,e,i,l),e.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(t){return{baseLanes:t,cachePool:cm()}}function oc(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Ve),t}function Tp(t,e,i){var l=e.pendingProps,r=!1,c=(e.flags&128)!==0,g;if((g=c)||(g=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),g&&(r=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(r?Qn(e):Jn(),(t=_t)?(t=Dg(t,Ye),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:ln,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},i=em(t),i.return=e,e.child=i,ie=e,_t=null)):t=null,t===null)throw qn(e);return Yc(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,r?(Jn(),r=e.mode,x=fo({mode:"hidden",children:x},r),l=Ma(l,r,i,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=sc(i),l.childLanes=oc(t,g,i),e.memoizedState=lc,Ml(null,l)):(Qn(e),rc(e,x))}var N=t.memoizedState;if(N!==null&&(x=N.dehydrated,x!==null)){if(c)e.flags&256?(Qn(e),e.flags&=-257,e=uc(t,e,i)):e.memoizedState!==null?(Jn(),e.child=t.child,e.flags|=128,e=null):(Jn(),x=l.fallback,r=e.mode,l=fo({mode:"visible",children:l.children},r),x=Ma(x,r,i,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,_a(e,t.child,null,i),l=e.child,l.memoizedState=sc(i),l.childLanes=oc(t,g,i),e.memoizedState=lc,e=Ml(null,l));else if(Qn(e),Yc(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var R=g.dgst;g=R,l=Error(o(419)),l.stack="",l.digest=g,vl({value:l,source:null,stack:null}),e=uc(t,e,i)}else if(Jt||bi(t,e,i,!1),g=(i&t.childLanes)!==0,Jt||g){if(g=Lt,g!==null&&(l=rh(g,i),l!==0&&l!==N.retryLane))throw N.retryLane=l,Ca(t,l),we(g,t,l),ac;Gc(x)||So(),e=uc(t,e,i)}else Gc(x)?(e.flags|=192,e.child=t.child,e=null):(t=N.treeContext,_t=Xe(x.nextSibling),ie=e,yt=!0,Yn=null,Ye=!1,t!==null&&im(e,t),e=rc(e,l.children),e.flags|=4096);return e}return r?(Jn(),x=l.fallback,r=e.mode,N=t.child,R=N.sibling,l=xn(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,R!==null?x=xn(R,x):(x=Ma(x,r,i,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Ml(null,l),l=e.child,x=t.child.memoizedState,x===null?x=sc(i):(r=x.cachePool,r!==null?(N=Zt._currentValue,r=r.parent!==N?{parent:N,pool:N}:r):r=cm(),x={baseLanes:x.baseLanes|i,cachePool:r}),l.memoizedState=x,l.childLanes=oc(t,g,i),e.memoizedState=lc,Ml(t.child,l)):(Qn(e),i=t.child,t=i.sibling,i=xn(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=i,e.memoizedState=null,i)}function rc(t,e){return e=fo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function fo(t,e){return t=De(22,t,null,e),t.lanes=0,t}function uc(t,e,i){return _a(e,t.child,null,i),t=rc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function wp(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Eu(t.return,e,i)}function cc(t,e,i,l,r,c){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:r,treeForkCount:c}:(g.isBackwards=e,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=i,g.tailMode=r,g.treeForkCount=c)}function Ep(t,e,i){var l=e.pendingProps,r=l.revealOrder,c=l.tail;l=l.children;var g=qt.current,x=(g&2)!==0;if(x?(g=g&1|2,e.flags|=128):g&=1,q(qt,g),se(t,e,l,i),l=yt?gl:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&wp(t,i,e);else if(t.tag===19)wp(t,i,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"forwards":for(i=e.child,r=null;i!==null;)t=i.alternate,t!==null&&Is(t)===null&&(r=i),i=i.sibling;i=r,i===null?(r=e.child,e.child=null):(r=i.sibling,i.sibling=null),cc(e,!1,r,i,c,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Is(t)===null){e.child=r;break}t=r.sibling,r.sibling=i,i=r,r=t}cc(e,!0,i,null,c,l);break;case"together":cc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function jn(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),In|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(bi(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,i=xn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=xn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function fc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Xs(t)))}function eS(t,e,i){switch(e.tag){case 3:Ft(e,e.stateNode.containerInfo),Xn(e,Zt,t.memoizedState.cache),Da();break;case 27:case 5:el(e);break;case 4:Ft(e,e.stateNode.containerInfo);break;case 10:Xn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,_u(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(e),e.flags|=128,null):(i&e.child.childLanes)!==0?Tp(t,e,i):(Qn(e),t=jn(t,e,i),t!==null?t.sibling:null);Qn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(bi(t,e,i,!1),l=(i&e.childLanes)!==0),r){if(l)return Ep(t,e,i);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),q(qt,qt.current),l)break;return null;case 22:return e.lanes=0,gp(t,e,i,e.pendingProps);case 24:Xn(e,Zt,t.memoizedState.cache)}return jn(t,e,i)}function Ap(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)Jt=!0;else{if(!fc(t,i)&&(e.flags&128)===0)return Jt=!1,eS(t,e,i);Jt=(t.flags&131072)!==0}else Jt=!1,yt&&(e.flags&1048576)!==0&&am(e,gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Va(e.elementType),e.type=t,typeof t=="function")gu(t)?(l=ka(t,l),e.tag=1,e=xp(null,e,t,l,i)):(e.tag=0,e=ic(null,e,t,l,i));else{if(t!=null){var r=t.$$typeof;if(r===Y){e.tag=11,e=hp(null,e,t,l,i);break t}else if(r===Z){e.tag=14,e=mp(null,e,t,l,i);break t}}throw e=Nt(t)||t,Error(o(306,e,""))}}return e;case 0:return ic(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,r=ka(l,e.pendingProps),xp(t,e,l,r,i);case 3:t:{if(Ft(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var c=e.memoizedState;r=c.element,zu(t,e),El(e,l,null,i);var g=e.memoizedState;if(l=g.cache,Xn(e,Zt,l),l!==c.cache&&Au(e,[Zt],i,!0),wl(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Sp(t,e,l,i);break t}else if(l!==r){r=He(Error(o(424)),e),vl(r),e=Sp(t,e,l,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(_t=Xe(t.firstChild),ie=e,yt=!0,Yn=null,Ye=!0,i=gm(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Da(),l===r){e=jn(t,e,i);break t}se(t,e,l,i)}e=e.child}return e;case 26:return co(t,e),t===null?(i=_g(e.type,null,e.pendingProps,null))?e.memoizedState=i:yt||(i=e.type,t=e.pendingProps,l=Co(dt.current).createElement(i),l[ae]=e,l[ve]=t,oe(l,i,t),ee(l),e.stateNode=l):e.memoizedState=_g(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return el(e),t===null&&yt&&(l=e.stateNode=Rg(e.type,e.pendingProps,dt.current),ie=e,Ye=!0,r=_t,ia(e.type)?(qc=r,_t=Xe(l.firstChild)):_t=r),se(t,e,e.pendingProps.children,i),co(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((r=l=_t)&&(l=zS(l,e.type,e.pendingProps,Ye),l!==null?(e.stateNode=l,ie=e,_t=Xe(l.firstChild),Ye=!1,r=!0):r=!1),r||qn(e)),el(e),r=e.type,c=e.pendingProps,g=t!==null?t.memoizedProps:null,l=c.children,Bc(r,c)?l=null:g!==null&&Bc(r,g)&&(e.flags|=32),e.memoizedState!==null&&(r=ku(t,e,K1,null,null,i),ql._currentValue=r),co(t,e),se(t,e,l,i),e.child;case 6:return t===null&&yt&&((t=i=_t)&&(i=OS(i,e.pendingProps,Ye),i!==null?(e.stateNode=i,ie=e,_t=null,t=!0):t=!1),t||qn(e)),null;case 13:return Tp(t,e,i);case 4:return Ft(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=_a(e,null,l,i):se(t,e,l,i),e.child;case 11:return hp(t,e,e.type,e.pendingProps,i);case 7:return se(t,e,e.pendingProps,i),e.child;case 8:return se(t,e,e.pendingProps.children,i),e.child;case 12:return se(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,Xn(e,e.type,l.value),se(t,e,l.children,i),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,Oa(e),r=le(r),l=l(r),e.flags|=1,se(t,e,l,i),e.child;case 14:return mp(t,e,e.type,e.pendingProps,i);case 15:return pp(t,e,e.type,e.pendingProps,i);case 19:return Ep(t,e,i);case 31:return tS(t,e,i);case 22:return gp(t,e,i,e.pendingProps);case 24:return Oa(e),l=le(Zt),t===null?(r=Cu(),r===null&&(r=Lt,c=ju(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=i),r=c),e.memoizedState={parent:l,cache:r},Du(e),Xn(e,Zt,r)):((t.lanes&i)!==0&&(zu(t,e),El(e,null,null,i),wl()),r=t.memoizedState,c=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Xn(e,Zt,l)):(l=c.cache,Xn(e,Zt,l),l!==r.cache&&Au(e,[Zt],i,!0))),se(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Nn(t){t.flags|=4}function dc(t,e,i,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(Wp())t.flags|=8192;else throw La=Qs,Mu}else t.flags&=-16777217}function jp(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!$g(e))if(Wp())t.flags|=8192;else throw La=Qs,Mu}function ho(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?lh():536870912,t.lanes|=e,zi|=e)}function Dl(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(e)for(var r=t.child;r!==null;)i|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)i|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=i,e}function nS(t,e,i){var l=e.pendingProps;switch(xu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),wn(Zt),Vt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(yi(e)?Nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Tu())),Ut(e),null;case 26:var r=e.type,c=e.memoizedState;return t===null?(Nn(e),c!==null?(Ut(e),jp(e,c)):(Ut(e),dc(e,r,null,l,i))):c?c!==t.memoizedState?(Nn(e),Ut(e),jp(e,c)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Nn(e),Ut(e),dc(e,r,t,l,i)),null;case 27:if(ws(e),i=dt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Nn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}t=Q.current,yi(e)?lm(e):(t=Rg(r,l,i),e.stateNode=t,Nn(e))}return Ut(e),null;case 5:if(ws(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Nn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}if(c=Q.current,yi(e))lm(e);else{var g=Co(dt.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(r,{is:l.is}):g.createElement(r)}}c[ae]=e,c[ve]=l;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=c;t:switch(oe(c,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Nn(e)}}return Ut(e),dc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Nn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=dt.current,yi(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,r=ie,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ae]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Tg(t.nodeValue,i)),t||qn(e,!0)}else t=Co(t).createTextNode(l),t[ae]=e,e.stateNode=t}return Ut(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=yi(e),i!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ae]=e}else Da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else i=Tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Oe(e),e):(Oe(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Ut(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=yi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(o(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[ae]=e}else Da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),r=!1}else r=Tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Oe(e),e):(Oe(e),null)}return Oe(e),(e.flags&128)!==0?(e.lanes=i,e):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==r&&(l.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),ho(e,e.updateQueue),Ut(e),null);case 4:return Vt(),t===null&&Vc(e.stateNode.containerInfo),Ut(e),null;case 10:return wn(e.type),Ut(e),null;case 19:if($(qt),l=e.memoizedState,l===null)return Ut(e),null;if(r=(e.flags&128)!==0,c=l.rendering,c===null)if(r)Dl(l,!1);else{if($t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Is(t),c!==null){for(e.flags|=128,Dl(l,!1),t=c.updateQueue,e.updateQueue=t,ho(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)tm(i,t),i=i.sibling;return q(qt,qt.current&1|2),yt&&Sn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&je()>yo&&(e.flags|=128,r=!0,Dl(l,!1),e.lanes=4194304)}else{if(!r)if(t=Is(c),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,ho(e,t),Dl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!yt)return Ut(e),null}else 2*je()-l.renderingStartTime>yo&&i!==536870912&&(e.flags|=128,r=!0,Dl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=je(),t.sibling=null,i=qt.current,q(qt,r?i&1|2:i&1),yt&&Sn(e,l.treeForkCount),t):(Ut(e),null);case 22:case 23:return Oe(e),Lu(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(i&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),i=e.updateQueue,i!==null&&ho(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==i&&(e.flags|=2048),t!==null&&$(Ra),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),wn(Zt),Ut(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function aS(t,e){switch(xu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wn(Zt),Vt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ws(e),null;case 31:if(e.memoizedState!==null){if(Oe(e),e.alternate===null)throw Error(o(340));Da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return $(qt),null;case 4:return Vt(),null;case 10:return wn(e.type),null;case 22:case 23:return Oe(e),Lu(),t!==null&&$(Ra),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wn(Zt),null;case 25:return null;default:return null}}function Np(t,e){switch(xu(e),e.tag){case 3:wn(Zt),Vt();break;case 26:case 27:case 5:ws(e);break;case 4:Vt();break;case 31:e.memoizedState!==null&&Oe(e);break;case 13:Oe(e);break;case 19:$(qt);break;case 10:wn(e.type);break;case 22:case 23:Oe(e),Lu(),t!==null&&$(Ra);break;case 24:wn(Zt)}}function zl(t,e){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var r=l.next;i=r;do{if((i.tag&t)===t){l=void 0;var c=i.create,g=i.inst;l=c(),g.destroy=l}i=i.next}while(i!==r)}}catch(x){At(e,e.return,x)}}function Pn(t,e,i){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var c=r.next;l=c;do{if((l.tag&t)===t){var g=l.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,r=e;var N=i,R=x;try{R()}catch(B){At(r,N,B)}}}l=l.next}while(l!==c)}}catch(B){At(e,e.return,B)}}function Cp(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{ym(e,i)}catch(l){At(t,t.return,l)}}}function Mp(t,e,i){i.props=ka(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){At(t,e,l)}}function Ol(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(r){At(t,e,r)}}function on(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(r){At(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(r){At(t,e,r)}else i.current=null}function Dp(t){var e=t.type,i=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break t;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(r){At(t,t.return,r)}}function hc(t,e,i){try{var l=t.stateNode;AS(l,t.type,i,e),l[ve]=e}catch(r){At(t,t.return,r)}}function zp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ia(t.type)||t.tag===4}function mc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||zp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ia(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function pc(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=yn));else if(l!==4&&(l===27&&ia(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(pc(t,e,i),t=t.sibling;t!==null;)pc(t,e,i),t=t.sibling}function mo(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(l!==4&&(l===27&&ia(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(mo(t,e,i),t=t.sibling;t!==null;)mo(t,e,i),t=t.sibling}function Op(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);oe(e,l,i),e[ae]=t,e[ve]=i}catch(c){At(t,t.return,c)}}var Cn=!1,Pt=!1,gc=!1,Rp=typeof WeakSet=="function"?WeakSet:Set,ne=null;function iS(t,e){if(t=t.containerInfo,Uc=Lo,t=Xh(t),uu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var r=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var g=0,x=-1,N=-1,R=0,B=0,G=t,V=null;e:for(;;){for(var _;G!==i||r!==0&&G.nodeType!==3||(x=g+r),G!==c||l!==0&&G.nodeType!==3||(N=g+l),G.nodeType===3&&(g+=G.nodeValue.length),(_=G.firstChild)!==null;)V=G,G=_;for(;;){if(G===t)break e;if(V===i&&++R===r&&(x=g),V===c&&++B===l&&(N=g),(_=G.nextSibling)!==null)break;G=V,V=G.parentNode}G=_}i=x===-1||N===-1?null:{start:x,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(kc={focusedElem:t,selectionRange:i},Lo=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)r=t[i],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,r=c.memoizedProps,c=c.memoizedState,l=i.stateNode;try{var P=ka(i.type,r);t=l.getSnapshotBeforeUpdate(P,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(at){At(i,i.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)$c(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":$c(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function Vp(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Dn(t,i),l&4&&zl(5,i);break;case 1:if(Dn(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(g){At(i,i.return,g)}else{var r=ka(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){At(i,i.return,g)}}l&64&&Cp(i),l&512&&Ol(i,i.return);break;case 3:if(Dn(t,i),l&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{ym(t,e)}catch(g){At(i,i.return,g)}}break;case 27:e===null&&l&4&&Op(i);case 26:case 5:Dn(t,i),e===null&&l&4&&Dp(i),l&512&&Ol(i,i.return);break;case 12:Dn(t,i);break;case 31:Dn(t,i),l&4&&Up(t,i);break;case 13:Dn(t,i),l&4&&kp(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=hS.bind(null,i),RS(t,i))));break;case 22:if(l=i.memoizedState!==null||Cn,!l){e=e!==null&&e.memoizedState!==null||Pt,r=Cn;var c=Pt;Cn=l,(Pt=e)&&!c?zn(t,i,(i.subtreeFlags&8772)!==0):Dn(t,i),Cn=r,Pt=c}break;case 30:break;default:Dn(t,i)}}function Lp(t){var e=t.alternate;e!==null&&(t.alternate=null,Lp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Kr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,be=!1;function Mn(t,e,i){for(i=i.child;i!==null;)_p(t,e,i),i=i.sibling}function _p(t,e,i){if(Ne&&typeof Ne.onCommitFiberUnmount=="function")try{Ne.onCommitFiberUnmount(nl,i)}catch{}switch(i.tag){case 26:Pt||on(i,e),Mn(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Pt||on(i,e);var l=Bt,r=be;ia(i.type)&&(Bt=i.stateNode,be=!1),Mn(t,e,i),$l(i.stateNode),Bt=l,be=r;break;case 5:Pt||on(i,e);case 6:if(l=Bt,r=be,Bt=null,Mn(t,e,i),Bt=l,be=r,Bt!==null)if(be)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(i.stateNode)}catch(c){At(i,e,c)}else try{Bt.removeChild(i.stateNode)}catch(c){At(i,e,c)}break;case 18:Bt!==null&&(be?(t=Bt,Cg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Bi(t)):Cg(Bt,i.stateNode));break;case 4:l=Bt,r=be,Bt=i.stateNode.containerInfo,be=!0,Mn(t,e,i),Bt=l,be=r;break;case 0:case 11:case 14:case 15:Pn(2,i,e),Pt||Pn(4,i,e),Mn(t,e,i);break;case 1:Pt||(on(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Mp(i,e,l)),Mn(t,e,i);break;case 21:Mn(t,e,i);break;case 22:Pt=(l=Pt)||i.memoizedState!==null,Mn(t,e,i),Pt=l;break;default:Mn(t,e,i)}}function Up(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Bi(t)}catch(i){At(e,e.return,i)}}}function kp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Bi(t)}catch(i){At(e,e.return,i)}}function lS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Rp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Rp),e;default:throw Error(o(435,t.tag))}}function po(t,e){var i=lS(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var r=mS.bind(null,t,l);l.then(r,r)}})}function xe(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var r=i[l],c=t,g=e,x=g;t:for(;x!==null;){switch(x.tag){case 27:if(ia(x.type)){Bt=x.stateNode,be=!1;break t}break;case 5:Bt=x.stateNode,be=!1;break t;case 3:case 4:Bt=x.stateNode.containerInfo,be=!0;break t}x=x.return}if(Bt===null)throw Error(o(160));_p(c,g,r),Bt=null,be=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Bp(e,t),e=e.sibling}var We=null;function Bp(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Se(t),l&4&&(Pn(3,t,t.return),zl(3,t),Pn(5,t,t.return));break;case 1:xe(e,t),Se(t),l&512&&(Pt||i===null||on(i,i.return)),l&64&&Cn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var r=We;if(xe(e,t),Se(t),l&512&&(Pt||i===null||on(i,i.return)),l&4){var c=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){t:{l=t.type,i=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":c=r.getElementsByTagName("title")[0],(!c||c[ll]||c[ae]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(l),r.head.insertBefore(c,r.querySelector("head > title"))),oe(c,l,i),c[ae]=t,ee(c),l=c;break t;case"link":var g=Bg("link","href",r).get(l+(i.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[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)){g.splice(x,1);break e}}c=r.createElement(l),oe(c,l,i),r.head.appendChild(c);break;case"meta":if(g=Bg("meta","content",r).get(l+(i.content||""))){for(x=0;x<g.length;x++)if(c=g[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)){g.splice(x,1);break e}}c=r.createElement(l),oe(c,l,i),r.head.appendChild(c);break;default:throw Error(o(468,l))}c[ae]=t,ee(c),l=c}t.stateNode=l}else Hg(r,t.type,t.stateNode);else t.stateNode=kg(r,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?Hg(r,t.type,t.stateNode):kg(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&hc(t,t.memoizedProps,i.memoizedProps)}break;case 27:xe(e,t),Se(t),l&512&&(Pt||i===null||on(i,i.return)),i!==null&&l&4&&hc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(xe(e,t),Se(t),l&512&&(Pt||i===null||on(i,i.return)),t.flags&32){r=t.stateNode;try{ri(r,"")}catch(P){At(t,t.return,P)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,hc(t,r,i!==null?i.memoizedProps:r)),l&1024&&(gc=!0);break;case 6:if(xe(e,t),Se(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(P){At(t,t.return,P)}}break;case 3:if(zo=null,r=We,We=Mo(e.containerInfo),xe(e,t),We=r,Se(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Bi(e.containerInfo)}catch(P){At(t,t.return,P)}gc&&(gc=!1,Hp(t));break;case 4:l=We,We=Mo(t.stateNode.containerInfo),xe(e,t),Se(t),We=l;break;case 12:xe(e,t),Se(t);break;case 31:xe(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,po(t,l)));break;case 13:xe(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(vo=je()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,po(t,l)));break;case 22:r=t.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,R=Cn,B=Pt;if(Cn=R||r,Pt=B||N,xe(e,t),Pt=B,Cn=R,Se(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(i===null||N||Cn||Pt||Ba(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){N=i=e;try{if(c=N.stateNode,r)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=N.stateNode;var G=N.memoizedProps.style,V=G!=null&&G.hasOwnProperty("display")?G.display:null;x.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(P){At(N,N.return,P)}}}else if(e.tag===6){if(i===null){N=e;try{N.stateNode.nodeValue=r?"":N.memoizedProps}catch(P){At(N,N.return,P)}}}else if(e.tag===18){if(i===null){N=e;try{var _=N.stateNode;r?Mg(_,!0):Mg(N.stateNode,!1)}catch(P){At(N,N.return,P)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,po(t,i))));break;case 19:xe(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,po(t,l)));break;case 30:break;case 21:break;default:xe(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(zp(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var r=i.stateNode,c=mc(t);mo(t,c,r);break;case 5:var g=i.stateNode;i.flags&32&&(ri(g,""),i.flags&=-33);var x=mc(t);mo(t,x,g);break;case 3:case 4:var N=i.stateNode.containerInfo,R=mc(t);pc(t,R,N);break;default:throw Error(o(161))}}catch(B){At(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Hp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Hp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Vp(t,e.alternate,e),e=e.sibling}function Ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Pn(4,e,e.return),Ba(e);break;case 1:on(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&Mp(e,e.return,i),Ba(e);break;case 27:$l(e.stateNode);case 26:case 5:on(e,e.return),Ba(e);break;case 22:e.memoizedState===null&&Ba(e);break;case 30:Ba(e);break;default:Ba(e)}t=t.sibling}}function zn(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,c=e,g=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),l=c,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(R){At(l,l.return,R)}if(l=c,r=l.updateQueue,r!==null){var x=l.stateNode;try{var N=r.shared.hiddenCallbacks;if(N!==null)for(r.shared.hiddenCallbacks=null,r=0;r<N.length;r++)vm(N[r],x)}catch(R){At(l,l.return,R)}}i&&g&64&&Cp(c),Ol(c,c.return);break;case 27:Op(c);case 26:case 5:zn(r,c,i),i&&l===null&&g&4&&Dp(c),Ol(c,c.return);break;case 12:zn(r,c,i);break;case 31:zn(r,c,i),i&&g&4&&Up(r,c);break;case 13:zn(r,c,i),i&&g&4&&kp(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)}e=e.sibling}}function vc(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&yl(i))}function yc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yl(t))}function Ie(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$p(t,e,i,l),e=e.sibling}function $p(t,e,i,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Ie(t,e,i,l),r&2048&&zl(9,e);break;case 1:Ie(t,e,i,l);break;case 3:Ie(t,e,i,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yl(t)));break;case 12:if(r&2048){Ie(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(N){At(e,e.return,N)}}else Ie(t,e,i,l);break;case 31:Ie(t,e,i,l);break;case 13:Ie(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,g=e.alternate,e.memoizedState!==null?c._visibility&2?Ie(t,e,i,l):Rl(t,e):c._visibility&2?Ie(t,e,i,l):(c._visibility|=2,Ci(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&vc(g,e);break;case 24:Ie(t,e,i,l),r&2048&&yc(e.alternate,e);break;default:Ie(t,e,i,l)}}function Ci(t,e,i,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,g=e,x=i,N=l,R=g.flags;switch(g.tag){case 0:case 11:case 15:Ci(c,g,x,N,r),zl(8,g);break;case 23:break;case 22:var B=g.stateNode;g.memoizedState!==null?B._visibility&2?Ci(c,g,x,N,r):Rl(c,g):(B._visibility|=2,Ci(c,g,x,N,r)),r&&R&2048&&vc(g.alternate,g);break;case 24:Ci(c,g,x,N,r),r&&R&2048&&yc(g.alternate,g);break;default:Ci(c,g,x,N,r)}e=e.sibling}}function Rl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,l=e,r=l.flags;switch(l.tag){case 22:Rl(i,l),r&2048&&vc(l.alternate,l);break;case 24:Rl(i,l),r&2048&&yc(l.alternate,l);break;default:Rl(i,l)}e=e.sibling}}var Vl=8192;function Mi(t,e,i){if(t.subtreeFlags&Vl)for(t=t.child;t!==null;)Gp(t,e,i),t=t.sibling}function Gp(t,e,i){switch(t.tag){case 26:Mi(t,e,i),t.flags&Vl&&t.memoizedState!==null&&XS(i,We,t.memoizedState,t.memoizedProps);break;case 5:Mi(t,e,i);break;case 3:case 4:var l=We;We=Mo(t.stateNode.containerInfo),Mi(t,e,i),We=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Vl,Vl=16777216,Mi(t,e,i),Vl=l):Mi(t,e,i));break;default:Mi(t,e,i)}}function Yp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ll(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];ne=l,Xp(l,t)}Yp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qp(t),t=t.sibling}function qp(t){switch(t.tag){case 0:case 11:case 15:Ll(t),t.flags&2048&&Pn(9,t,t.return);break;case 3:Ll(t);break;case 12:Ll(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,go(t)):Ll(t);break;default:Ll(t)}}function go(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];ne=l,Xp(l,t)}Yp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Pn(8,e,e.return),go(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,go(e));break;default:go(e)}t=t.sibling}}function Xp(t,e){for(;ne!==null;){var i=ne;switch(i.tag){case 0:case 11:case 15:Pn(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:yl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,ne=l;else t:for(i=t;ne!==null;){l=ne;var r=l.sibling,c=l.return;if(Lp(l),l===i){ne=null;break t}if(r!==null){r.return=c,ne=r;break t}ne=c}}}var sS={getCacheForType:function(t){var e=le(Zt),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return le(Zt).controller.signal}},oS=typeof WeakMap=="function"?WeakMap:Map,wt=0,Lt=null,ht=null,pt=0,Et=0,Re=null,Wn=!1,Di=!1,bc=!1,On=0,$t=0,In=0,Ha=0,xc=0,Ve=0,zi=0,_l=null,Te=null,Sc=!1,vo=0,Kp=0,yo=1/0,bo=null,ta=null,It=0,ea=null,Oi=null,Rn=0,Tc=0,wc=null,Fp=null,Ul=0,Ec=null;function Le(){return(wt&2)!==0&&pt!==0?pt&-pt:k.T!==null?Dc():uh()}function Zp(){if(Ve===0)if((pt&536870912)===0||yt){var t=js;js<<=1,(js&3932160)===0&&(js=262144),Ve=t}else Ve=536870912;return t=ze.current,t!==null&&(t.flags|=32),Ve}function we(t,e,i){(t===Lt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(Ri(t,0),na(t,pt,Ve,!1)),il(t,i),((wt&2)===0||t!==Lt)&&(t===Lt&&((wt&2)===0&&(Ha|=i),$t===4&&na(t,pt,Ve,!1)),rn(t))}function Qp(t,e,i){if((wt&6)!==0)throw Error(o(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||al(t,e),r=l?cS(t,e):jc(t,e,!0),c=l;do{if(r===0){Di&&!l&&na(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!rS(i)){r=jc(t,e,!1),c=!1;continue}if(r===2){if(c=e,t.errorRecoveryDisabledLanes&c)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var x=t;r=_l;var N=x.current.memoizedState.isDehydrated;if(N&&(Ri(x,g).flags|=256),g=jc(x,g,!1),g!==2){if(bc&&!N){x.errorRecoveryDisabledLanes|=c,Ha|=c,r=4;break t}c=Te,Te=r,c!==null&&(Te===null?Te=c:Te.push.apply(Te,c))}r=g}if(c=!1,r!==2)continue}}if(r===1){Ri(t,0),na(t,e,0,!0);break}t:{switch(l=t,c=r,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:na(l,e,Ve,!Wn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=vo+300-je(),10<r)){if(na(l,e,Ve,!Wn),Cs(l,0,!0)!==0)break t;Rn=e,l.timeoutHandle=jg(Jp.bind(null,l,i,Te,bo,Sc,e,Ve,Ha,zi,Wn,c,"Throttled",-0,0),r);break t}Jp(l,i,Te,bo,Sc,e,Ve,Ha,zi,Wn,c,null,-0,0)}}break}while(!0);rn(t)}function Jp(t,e,i,l,r,c,g,x,N,R,B,G,V,_){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Gp(e,c,G);var P=(c&62914560)===c?vo-je():(c&4194048)===c?Kp-je():0;if(P=KS(G,P),P!==null){Rn=c,t.cancelPendingCommit=P(ig.bind(null,t,e,c,i,l,r,g,x,N,B,G,null,V,_)),na(t,c,g,!R);return}}ig(t,e,c,i,l,r,g,x,N)}function rS(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var r=i[l],c=r.getSnapshot;r=r.value;try{if(!Me(c(),r))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function na(t,e,i,l){e&=~xc,e&=~Ha,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var c=31-Ce(r),g=1<<c;l[c]=-1,r&=~g}i!==0&&sh(t,i,e)}function xo(){return(wt&6)===0?(kl(0),!1):!0}function Ac(){if(ht!==null){if(Et===0)var t=ht.return;else t=ht,Tn=za=null,$u(t),wi=null,xl=0,t=ht;for(;t!==null;)Np(t.alternate,t),t=t.return;ht=null}}function Ri(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,CS(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Rn=0,Ac(),Lt=t,ht=i=xn(t.current,null),pt=e,Et=0,Re=null,Wn=!1,Di=al(t,e),bc=!1,zi=Ve=xc=Ha=In=$t=0,Te=_l=null,Sc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-Ce(l),c=1<<r;e|=t[r],l&=~c}return On=e,Hs(),i}function Pp(t,e){rt=null,k.H=Cl,e===Ti||e===Zs?(e=hm(),Et=3):e===Mu?(e=hm(),Et=4):Et=e===ac?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,ht===null&&($t=1,ro(t,He(e,t.current)))}function Wp(){var t=ze.current;return t===null?!0:(pt&4194048)===pt?qe===null:(pt&62914560)===pt||(pt&536870912)!==0?t===qe:!1}function Ip(){var t=k.H;return k.H=Cl,t===null?Cl:t}function tg(){var t=k.A;return k.A=sS,t}function So(){$t=4,Wn||(pt&4194048)!==pt&&ze.current!==null||(Di=!0),(In&134217727)===0&&(Ha&134217727)===0||Lt===null||na(Lt,pt,Ve,!1)}function jc(t,e,i){var l=wt;wt|=2;var r=Ip(),c=tg();(Lt!==t||pt!==e)&&(bo=null,Ri(t,e)),e=!1;var g=$t;t:do try{if(Et!==0&&ht!==null){var x=ht,N=Re;switch(Et){case 8:Ac(),g=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var R=Et;if(Et=0,Re=null,Vi(t,x,N,R),i&&Di){g=0;break t}break;default:R=Et,Et=0,Re=null,Vi(t,x,N,R)}}uS(),g=$t;break}catch(B){Pp(t,B)}while(!0);return e&&t.shellSuspendCounter++,Tn=za=null,wt=l,k.H=r,k.A=c,ht===null&&(Lt=null,pt=0,Hs()),g}function uS(){for(;ht!==null;)eg(ht)}function cS(t,e){var i=wt;wt|=2;var l=Ip(),r=tg();Lt!==t||pt!==e?(bo=null,yo=je()+500,Ri(t,e)):Di=al(t,e);t:do try{if(Et!==0&&ht!==null){e=ht;var c=Re;e:switch(Et){case 1:Et=0,Re=null,Vi(t,e,c,1);break;case 2:case 9:if(fm(c)){Et=0,Re=null,ng(e);break}e=function(){Et!==2&&Et!==9||Lt!==t||(Et=7),rn(t)},c.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:fm(c)?(Et=0,Re=null,ng(e)):(Et=0,Re=null,Vi(t,e,c,7));break;case 5:var g=null;switch(ht.tag){case 26:g=ht.memoizedState;case 5:case 27:var x=ht;if(g?$g(g):x.stateNode.complete){Et=0,Re=null;var N=x.sibling;if(N!==null)ht=N;else{var R=x.return;R!==null?(ht=R,To(R)):ht=null}break e}}Et=0,Re=null,Vi(t,e,c,5);break;case 6:Et=0,Re=null,Vi(t,e,c,6);break;case 8:Ac(),$t=6;break t;default:throw Error(o(462))}}fS();break}catch(B){Pp(t,B)}while(!0);return Tn=za=null,k.H=l,k.A=r,wt=i,ht!==null?0:(Lt=null,pt=0,Hs(),$t)}function fS(){for(;ht!==null&&!Vx();)eg(ht)}function eg(t){var e=Ap(t.alternate,t,On);t.memoizedProps=t.pendingProps,e===null?To(t):ht=e}function ng(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=bp(i,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=bp(i,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:$u(e);default:Np(i,e),e=ht=tm(e,On),e=Ap(i,e,On)}t.memoizedProps=t.pendingProps,e===null?To(t):ht=e}function Vi(t,e,i,l){Tn=za=null,$u(e),wi=null,xl=0;var r=e.return;try{if(I1(t,r,e,i,pt)){$t=1,ro(t,He(i,t.current)),ht=null;return}}catch(c){if(r!==null)throw ht=r,c;$t=1,ro(t,He(i,t.current)),ht=null;return}e.flags&32768?(yt||l===1?t=!0:Di||(pt&536870912)!==0?t=!1:(Wn=t=!0,(l===2||l===9||l===3||l===6)&&(l=ze.current,l!==null&&l.tag===13&&(l.flags|=16384))),ag(e,t)):To(e)}function To(t){var e=t;do{if((e.flags&32768)!==0){ag(e,Wn);return}t=e.return;var i=nS(e.alternate,e,On);if(i!==null){ht=i;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);$t===0&&($t=5)}function ag(t,e){do{var i=aS(t.alternate,t);if(i!==null){i.flags&=32767,ht=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=i}while(t!==null);$t=6,ht=null}function ig(t,e,i,l,r,c,g,x,N){t.cancelPendingCommit=null;do wo();while(It!==0);if((wt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=mu,qx(t,i,c,g,x,N),t===Lt&&(ht=Lt=null,pt=0),Oi=e,ea=t,Rn=i,Tc=c,wc=r,Fp=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,pS(Es,function(){return ug(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,r=K.p,K.p=2,g=wt,wt|=4;try{iS(t,e,i)}finally{wt=g,K.p=r,k.T=l}}It=1,lg(),sg(),og()}}function lg(){if(It===1){It=0;var t=ea,e=Oi,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=k.T,k.T=null;var l=K.p;K.p=2;var r=wt;wt|=4;try{Bp(e,t);var c=kc,g=Xh(t.containerInfo),x=c.focusedElem,N=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&qh(x.ownerDocument.documentElement,x)){if(N!==null&&uu(x)){var R=N.start,B=N.end;if(B===void 0&&(B=R),"selectionStart"in x)x.selectionStart=R,x.selectionEnd=Math.min(B,x.value.length);else{var G=x.ownerDocument||document,V=G&&G.defaultView||window;if(V.getSelection){var _=V.getSelection(),P=x.textContent.length,at=Math.min(N.start,P),Dt=N.end===void 0?at:Math.min(N.end,P);!_.extend&&at>Dt&&(g=Dt,Dt=at,at=g);var z=Yh(x,at),D=Yh(x,Dt);if(z&&D&&(_.rangeCount!==1||_.anchorNode!==z.node||_.anchorOffset!==z.offset||_.focusNode!==D.node||_.focusOffset!==D.offset)){var O=G.createRange();O.setStart(z.node,z.offset),_.removeAllRanges(),at>Dt?(_.addRange(O),_.extend(D.node,D.offset)):(O.setEnd(D.node,D.offset),_.addRange(O))}}}}for(G=[],_=x;_=_.parentNode;)_.nodeType===1&&G.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<G.length;x++){var H=G[x];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Lo=!!Uc,kc=Uc=null}finally{wt=r,K.p=l,k.T=i}}t.current=e,It=2}}function sg(){if(It===2){It=0;var t=ea,e=Oi,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=k.T,k.T=null;var l=K.p;K.p=2;var r=wt;wt|=4;try{Vp(t,e.alternate,e)}finally{wt=r,K.p=l,k.T=i}}It=3}}function og(){if(It===4||It===3){It=0,Lx();var t=ea,e=Oi,i=Rn,l=Fp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,Oi=ea=null,rg(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(ta=null),qr(i),e=e.stateNode,Ne&&typeof Ne.onCommitFiberRoot=="function")try{Ne.onCommitFiberRoot(nl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=k.T,r=K.p,K.p=2,k.T=null;try{for(var c=t.onRecoverableError,g=0;g<l.length;g++){var x=l[g];c(x.value,{componentStack:x.stack})}}finally{k.T=e,K.p=r}}(Rn&3)!==0&&wo(),rn(t),r=t.pendingLanes,(i&261930)!==0&&(r&42)!==0?t===Ec?Ul++:(Ul=0,Ec=t):Ul=0,kl(0)}}function rg(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yl(e)))}function wo(){return lg(),sg(),og(),ug()}function ug(){if(It!==5)return!1;var t=ea,e=Tc;Tc=0;var i=qr(Rn),l=k.T,r=K.p;try{K.p=32>i?32:i,k.T=null,i=wc,wc=null;var c=ea,g=Rn;if(It=0,Oi=ea=null,Rn=0,(wt&6)!==0)throw Error(o(331));var x=wt;if(wt|=4,qp(c.current),$p(c,c.current,g,i),wt=x,kl(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot=="function")try{Ne.onPostCommitFiberRoot(nl,c)}catch{}return!0}finally{K.p=r,k.T=l,rg(t,e)}}function cg(t,e,i){e=He(i,e),e=nc(t.stateNode,e,2),t=Zn(t,e,2),t!==null&&(il(t,2),rn(t))}function At(t,e,i){if(t.tag===3)cg(t,t,i);else for(;e!==null;){if(e.tag===3){cg(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ta===null||!ta.has(l))){t=He(i,t),i=fp(2),l=Zn(e,i,2),l!==null&&(dp(i,l,e,t),il(l,2),rn(l));break}}e=e.return}}function Nc(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new oS;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(i)||(bc=!0,r.add(i),t=dS.bind(null,t,e,i),e.then(t,t))}function dS(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Lt===t&&(pt&i)===i&&($t===4||$t===3&&(pt&62914560)===pt&&300>je()-vo?(wt&2)===0&&Ri(t,0):xc|=i,zi===pt&&(zi=0)),rn(t)}function fg(t,e){e===0&&(e=lh()),t=Ca(t,e),t!==null&&(il(t,e),rn(t))}function hS(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),fg(t,i)}function mS(t,e){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(i=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),fg(t,i)}function pS(t,e){return Hr(t,e)}var Eo=null,Li=null,Cc=!1,Ao=!1,Mc=!1,aa=0;function rn(t){t!==Li&&t.next===null&&(Li===null?Eo=Li=t:Li=Li.next=t),Ao=!0,Cc||(Cc=!0,vS())}function kl(t,e){if(!Mc&&Ao){Mc=!0;do for(var i=!1,l=Eo;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var c=0;else{var g=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Ce(42|t)+1)-1,c&=r&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,pg(l,c))}else c=pt,c=Cs(l,l===Lt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||al(l,c)||(i=!0,pg(l,c));l=l.next}while(i);Mc=!1}}function gS(){dg()}function dg(){Ao=Cc=!1;var t=0;aa!==0&&NS()&&(t=aa);for(var e=je(),i=null,l=Eo;l!==null;){var r=l.next,c=hg(l,e);c===0?(l.next=null,i===null?Eo=r:i.next=r,r===null&&(Li=i)):(i=l,(t!==0||(c&3)!==0)&&(Ao=!0)),l=r}It!==0&&It!==5||kl(t),aa!==0&&(aa=0)}function hg(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var g=31-Ce(c),x=1<<g,N=r[g];N===-1?((x&i)===0||(x&l)!==0)&&(r[g]=Yx(x,e)):N<=e&&(t.expiredLanes|=x),c&=~x}if(e=Lt,i=pt,i=Cs(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&$r(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||al(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&$r(l),qr(i)){case 2:case 8:i=ah;break;case 32:i=Es;break;case 268435456:i=ih;break;default:i=Es}return l=mg.bind(null,t),i=Hr(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&$r(l),t.callbackPriority=2,t.callbackNode=null,2}function mg(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(wo()&&t.callbackNode!==i)return null;var l=pt;return l=Cs(t,t===Lt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Qp(t,l,e),hg(t,je()),t.callbackNode!=null&&t.callbackNode===i?mg.bind(null,t):null)}function pg(t,e){if(wo())return null;Qp(t,e,!0)}function vS(){MS(function(){(wt&6)!==0?Hr(nh,gS):dg()})}function Dc(){if(aa===0){var t=xi;t===0&&(t=As,As<<=1,(As&261888)===0&&(As=256)),aa=t}return aa}function gg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Os(""+t)}function vg(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function yS(t,e,i,l,r){if(e==="submit"&&i&&i.stateNode===r){var c=gg((r[ve]||null).action),g=l.submitter;g&&(e=(e=g[ve]||null)?gg(e.formAction):g.getAttribute("formAction"),e!==null&&(c=e,g=null));var x=new _s("action","action",null,l,r);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(aa!==0){var N=g?vg(r,g):new FormData(r);Ju(i,{pending:!0,data:N,method:r.method,action:c},null,N)}}else typeof c=="function"&&(x.preventDefault(),N=g?vg(r,g):new FormData(r),Ju(i,{pending:!0,data:N,method:r.method,action:c},c,N))},currentTarget:r}]})}}for(var zc=0;zc<hu.length;zc++){var Oc=hu[zc],bS=Oc.toLowerCase(),xS=Oc[0].toUpperCase()+Oc.slice(1);Pe(bS,"on"+xS)}Pe(Zh,"onAnimationEnd"),Pe(Qh,"onAnimationIteration"),Pe(Jh,"onAnimationStart"),Pe("dblclick","onDoubleClick"),Pe("focusin","onFocus"),Pe("focusout","onBlur"),Pe(_1,"onTransitionRun"),Pe(U1,"onTransitionStart"),Pe(k1,"onTransitionCancel"),Pe(Ph,"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(" "),SS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function yg(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],r=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var g=l.length-1;0<=g;g--){var x=l[g],N=x.instance,R=x.currentTarget;if(x=x.listener,N!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=R;try{c(r)}catch(B){Bs(B)}r.currentTarget=null,c=N}else for(g=0;g<l.length;g++){if(x=l[g],N=x.instance,R=x.currentTarget,x=x.listener,N!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=R;try{c(r)}catch(B){Bs(B)}r.currentTarget=null,c=N}}}}function mt(t,e){var i=e[Xr];i===void 0&&(i=e[Xr]=new Set);var l=t+"__bubble";i.has(l)||(bg(e,t,2,!1),i.add(l))}function Rc(t,e,i){var l=0;e&&(l|=4),bg(i,t,l,e)}var jo="_reactListening"+Math.random().toString(36).slice(2);function Vc(t){if(!t[jo]){t[jo]=!0,dh.forEach(function(i){i!=="selectionchange"&&(SS.has(i)||Rc(i,!1,t),Rc(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jo]||(e[jo]=!0,Rc("selectionchange",!1,e))}}function bg(t,e,i,l){switch(Zg(e)){case 2:var r=QS;break;case 8:r=JS;break;default:r=Qc}i=r.bind(null,e,i,t),r=void 0,!tu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,i,{capture:!0,passive:r}):t.addEventListener(e,i,!0):r!==void 0?t.addEventListener(e,i,{passive:r}):t.addEventListener(e,i,!1)}function Lc(t,e,i,l,r){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var x=l.stateNode.containerInfo;if(x===r)break;if(g===4)for(g=l.return;g!==null;){var N=g.tag;if((N===3||N===4)&&g.stateNode.containerInfo===r)return;g=g.return}for(;x!==null;){if(g=ai(x),g===null)return;if(N=g.tag,N===5||N===6||N===26||N===27){l=c=g;continue t}x=x.parentNode}}l=l.return}Eh(function(){var R=c,B=Wr(i),G=[];t:{var V=Wh.get(t);if(V!==void 0){var _=_s,P=t;switch(t){case"keypress":if(Vs(i)===0)break t;case"keydown":case"keyup":_=m1;break;case"focusin":P="focus",_=iu;break;case"focusout":P="blur",_=iu;break;case"beforeblur":case"afterblur":_=iu;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=n1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=v1;break;case Zh:case Qh:case Jh:_=l1;break;case Ph:_=b1;break;case"scroll":case"scrollend":_=t1;break;case"wheel":_=S1;break;case"copy":case"cut":case"paste":_=o1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Mh;break;case"toggle":case"beforetoggle":_=w1}var at=(e&4)!==0,Dt=!at&&(t==="scroll"||t==="scrollend"),z=at?V!==null?V+"Capture":null:V;at=[];for(var D=R,O;D!==null;){var H=D;if(O=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||O===null||z===null||(H=ol(D,z),H!=null&&at.push(Hl(D,H,O))),Dt)break;D=D.return}0<at.length&&(V=new _(V,P,null,i,B),G.push({event:V,listeners:at}))}}if((e&7)===0){t:{if(V=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",V&&i!==Pr&&(P=i.relatedTarget||i.fromElement)&&(ai(P)||P[ni]))break t;if((_||V)&&(V=B.window===B?B:(V=B.ownerDocument)?V.defaultView||V.parentWindow:window,_?(P=i.relatedTarget||i.toElement,_=R,P=P?ai(P):null,P!==null&&(Dt=d(P),at=P.tag,P!==Dt||at!==5&&at!==27&&at!==6)&&(P=null)):(_=null,P=R),_!==P)){if(at=Nh,H="onMouseLeave",z="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(at=Mh,H="onPointerLeave",z="onPointerEnter",D="pointer"),Dt=_==null?V:sl(_),O=P==null?V:sl(P),V=new at(H,D+"leave",_,i,B),V.target=Dt,V.relatedTarget=O,H=null,ai(B)===R&&(at=new at(z,D+"enter",P,i,B),at.target=O,at.relatedTarget=Dt,H=at),Dt=H,_&&P)e:{for(at=TS,z=_,D=P,O=0,H=z;H;H=at(H))O++;H=0;for(var et=D;et;et=at(et))H++;for(;0<O-H;)z=at(z),O--;for(;0<H-O;)D=at(D),H--;for(;O--;){if(z===D||D!==null&&z===D.alternate){at=z;break e}z=at(z),D=at(D)}at=null}else at=null;_!==null&&xg(G,V,_,at,!1),P!==null&&Dt!==null&&xg(G,Dt,P,at,!0)}}t:{if(V=R?sl(R):window,_=V.nodeName&&V.nodeName.toLowerCase(),_==="select"||_==="input"&&V.type==="file")var St=Uh;else if(Lh(V))if(kh)St=R1;else{St=z1;var I=D1}else _=V.nodeName,!_||_.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?R&&Jr(R.elementType)&&(St=Uh):St=O1;if(St&&(St=St(t,R))){_h(G,St,i,B);break t}I&&I(t,V,R),t==="focusout"&&R&&V.type==="number"&&R.memoizedProps.value!=null&&Qr(V,"number",V.value)}switch(I=R?sl(R):window,t){case"focusin":(Lh(I)||I.contentEditable==="true")&&(di=I,cu=R,pl=null);break;case"focusout":pl=cu=di=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,Kh(G,i,B);break;case"selectionchange":if(L1)break;case"keydown":case"keyup":Kh(G,i,B)}var ut;if(su)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else fi?Rh(t,i)&&(gt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(gt="onCompositionStart");gt&&(Dh&&i.locale!=="ko"&&(fi||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&fi&&(ut=Ah()):($n=B,eu="value"in $n?$n.value:$n.textContent,fi=!0)),I=No(R,gt),0<I.length&&(gt=new Ch(gt,t,null,i,B),G.push({event:gt,listeners:I}),ut?gt.data=ut:(ut=Vh(i),ut!==null&&(gt.data=ut)))),(ut=A1?j1(t,i):N1(t,i))&&(gt=No(R,"onBeforeInput"),0<gt.length&&(I=new Ch("onBeforeInput","beforeinput",null,i,B),G.push({event:I,listeners:gt}),I.data=ut)),yS(G,t,R,i,B)}yg(G,e)})}function Hl(t,e,i){return{instance:t,listener:e,currentTarget:i}}function No(t,e){for(var i=e+"Capture",l=[];t!==null;){var r=t,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=ol(t,i),r!=null&&l.unshift(Hl(t,r,c)),r=ol(t,e),r!=null&&l.push(Hl(t,r,c))),t.tag===3)return l;t=t.return}return[]}function TS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function xg(t,e,i,l,r){for(var c=e._reactName,g=[];i!==null&&i!==l;){var x=i,N=x.alternate,R=x.stateNode;if(x=x.tag,N!==null&&N===l)break;x!==5&&x!==26&&x!==27||R===null||(N=R,r?(R=ol(i,c),R!=null&&g.unshift(Hl(i,R,N))):r||(R=ol(i,c),R!=null&&g.push(Hl(i,R,N)))),i=i.return}g.length!==0&&t.push({event:e,listeners:g})}var wS=/\r\n?/g,ES=/\u0000|\uFFFD/g;function Sg(t){return(typeof t=="string"?t:""+t).replace(wS,`
|
|
49
|
+
`).replace(ES,"")}function Tg(t,e){return e=Sg(e),Sg(t)===e}function Mt(t,e,i,l,r,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ri(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ri(t,""+l);break;case"className":Ds(t,"class",l);break;case"tabIndex":Ds(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ds(t,i,l);break;case"style":Th(t,l,c);break;case"data":if(e!=="object"){Ds(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Os(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.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"?(e!=="input"&&Mt(t,e,"name",r.name,r,null),Mt(t,e,"formEncType",r.formEncType,r,null),Mt(t,e,"formMethod",r.formMethod,r,null),Mt(t,e,"formTarget",r.formTarget,r,null)):(Mt(t,e,"encType",r.encType,r,null),Mt(t,e,"method",r.method,r,null),Mt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Os(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=yn);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=Os(""+l),t.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":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":mt("beforetoggle",t),mt("toggle",t),Ms(t,"popover",l);break;case"xlinkActuate":vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ms(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Wx.get(i)||i,Ms(t,i,l))}}function _c(t,e,i,l,r,c){switch(i){case"style":Th(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof l=="string"?ri(t,l):(typeof l=="number"||typeof l=="bigint")&&ri(t,""+l);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hh.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(r=i.endsWith("Capture"),e=i.slice(2,r?i.length-7:void 0),c=t[ve]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,r),typeof l=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,l,r);break t}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Ms(t,i,l)}}}function oe(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var l=!1,r=!1,c;for(c in i)if(i.hasOwnProperty(c)){var g=i[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,c,g,i,null)}}r&&Mt(t,e,"srcSet",i.srcSet,i,null),l&&Mt(t,e,"src",i.src,i,null);return;case"input":mt("invalid",t);var x=c=g=r=null,N=null,R=null;for(l in i)if(i.hasOwnProperty(l)){var B=i[l];if(B!=null)switch(l){case"name":r=B;break;case"type":g=B;break;case"checked":N=B;break;case"defaultChecked":R=B;break;case"value":c=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:Mt(t,e,l,B,i,null)}}yh(t,c,x,N,R,g,r,!1);return;case"select":mt("invalid",t),l=g=c=null;for(r in i)if(i.hasOwnProperty(r)&&(x=i[r],x!=null))switch(r){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":l=x;default:Mt(t,e,r,x,i,null)}e=c,i=g,t.multiple=!!l,e!=null?oi(t,!!l,e,!1):i!=null&&oi(t,!!l,i,!0);return;case"textarea":mt("invalid",t),c=r=l=null;for(g in i)if(i.hasOwnProperty(g)&&(x=i[g],x!=null))switch(g){case"value":l=x;break;case"defaultValue":r=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Mt(t,e,g,x,i,null)}xh(t,l,r,c);return;case"option":for(N in i)if(i.hasOwnProperty(N)&&(l=i[N],l!=null))switch(N){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Mt(t,e,N,l,i,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(l=0;l<Bl.length;l++)mt(Bl[l],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in i)if(i.hasOwnProperty(R)&&(l=i[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,R,l,i,null)}return;default:if(Jr(e)){for(B in i)i.hasOwnProperty(B)&&(l=i[B],l!==void 0&&_c(t,e,B,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Mt(t,e,x,l,i,null))}function AS(t,e,i,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,g=null,x=null,N=null,R=null,B=null;for(_ in i){var G=i[_];if(i.hasOwnProperty(_)&&G!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":N=G;default:l.hasOwnProperty(_)||Mt(t,e,_,null,l,G)}}for(var V in l){var _=l[V];if(G=i[V],l.hasOwnProperty(V)&&(_!=null||G!=null))switch(V){case"type":c=_;break;case"name":r=_;break;case"checked":R=_;break;case"defaultChecked":B=_;break;case"value":g=_;break;case"defaultValue":x=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:_!==G&&Mt(t,e,V,_,l,G)}}Zr(t,g,x,N,R,B,c,r);return;case"select":_=g=x=V=null;for(c in i)if(N=i[c],i.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":_=N;default:l.hasOwnProperty(c)||Mt(t,e,c,null,l,N)}for(r in l)if(c=l[r],N=i[r],l.hasOwnProperty(r)&&(c!=null||N!=null))switch(r){case"value":V=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==N&&Mt(t,e,r,c,l,N)}e=x,i=g,l=_,V!=null?oi(t,!!i,V,!1):!!l!=!!i&&(e!=null?oi(t,!!i,e,!0):oi(t,!!i,i?[]:"",!1));return;case"textarea":_=V=null;for(x in i)if(r=i[x],i.hasOwnProperty(x)&&r!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Mt(t,e,x,null,l,r)}for(g in l)if(r=l[g],c=i[g],l.hasOwnProperty(g)&&(r!=null||c!=null))switch(g){case"value":V=r;break;case"defaultValue":_=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==c&&Mt(t,e,g,r,l,c)}bh(t,V,_);return;case"option":for(var P in i)if(V=i[P],i.hasOwnProperty(P)&&V!=null&&!l.hasOwnProperty(P))switch(P){case"selected":t.selected=!1;break;default:Mt(t,e,P,null,l,V)}for(N in l)if(V=l[N],_=i[N],l.hasOwnProperty(N)&&V!==_&&(V!=null||_!=null))switch(N){case"selected":t.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Mt(t,e,N,V,l,_)}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 at in i)V=i[at],i.hasOwnProperty(at)&&V!=null&&!l.hasOwnProperty(at)&&Mt(t,e,at,null,l,V);for(R in l)if(V=l[R],_=i[R],l.hasOwnProperty(R)&&V!==_&&(V!=null||_!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,e));break;default:Mt(t,e,R,V,l,_)}return;default:if(Jr(e)){for(var Dt in i)V=i[Dt],i.hasOwnProperty(Dt)&&V!==void 0&&!l.hasOwnProperty(Dt)&&_c(t,e,Dt,void 0,l,V);for(B in l)V=l[B],_=i[B],!l.hasOwnProperty(B)||V===_||V===void 0&&_===void 0||_c(t,e,B,V,l,_);return}}for(var z in i)V=i[z],i.hasOwnProperty(z)&&V!=null&&!l.hasOwnProperty(z)&&Mt(t,e,z,null,l,V);for(G in l)V=l[G],_=i[G],!l.hasOwnProperty(G)||V===_||V==null&&_==null||Mt(t,e,G,V,l,_)}function wg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var r=i[l],c=r.transferSize,g=r.initiatorType,x=r.duration;if(c&&x&&wg(g)){for(g=0,x=r.responseEnd,l+=1;l<i.length;l++){var N=i[l],R=N.startTime;if(R>x)break;var B=N.transferSize,G=N.initiatorType;B&&wg(G)&&(N=N.responseEnd,g+=B*(N<x?1:(x-R)/(N-R)))}if(--l,e+=8*(c+g)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Uc=null,kc=null;function Co(t){return t.nodeType===9?t:t.ownerDocument}function Eg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ag(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Bc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hc=null;function NS(){var t=window.event;return t&&t.type==="popstate"?t===Hc?!1:(Hc=t,!0):(Hc=null,!1)}var jg=typeof setTimeout=="function"?setTimeout:void 0,CS=typeof clearTimeout=="function"?clearTimeout:void 0,Ng=typeof Promise=="function"?Promise:void 0,MS=typeof queueMicrotask=="function"?queueMicrotask:typeof Ng<"u"?function(t){return Ng.resolve(null).then(t).catch(DS)}:jg;function DS(t){setTimeout(function(){throw t})}function ia(t){return t==="head"}function Cg(t,e){var i=e,l=0;do{var r=i.nextSibling;if(t.removeChild(i),r&&r.nodeType===8)if(i=r.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(r),Bi(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")$l(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,$l(i);for(var c=i.firstChild;c;){var g=c.nextSibling,x=c.nodeName;c[ll]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=g}}else i==="body"&&$l(t.ownerDocument.body);i=r}while(i);Bi(e)}function Mg(t,e){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function $c(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.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}t.removeChild(i)}}function zS(t,e,i,l){for(;t.nodeType===1;){var r=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ll])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Xe(t.nextSibling),t===null)break}return null}function OS(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Xe(t.nextSibling),t===null))return null;return t}function Dg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Xe(t.nextSibling),t===null))return null;return t}function Gc(t){return t.data==="$?"||t.data==="$~"}function Yc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function RS(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var l=function(){e(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Xe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var qc=null;function zg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return Xe(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function Og(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function Rg(t,e,i){switch(e=Co(i),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function $l(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Kr(t)}var Ke=new Map,Vg=new Set;function Mo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vn=K.d;K.d={f:VS,r:LS,D:_S,C:US,L:kS,m:BS,X:$S,S:HS,M:GS};function VS(){var t=Vn.f(),e=xo();return t||e}function LS(t){var e=ii(t);e!==null&&e.tag===5&&e.type==="form"?Pm(e):Vn.r(t)}var _i=typeof document>"u"?null:document;function Lg(t,e,i){var l=_i;if(l&&typeof e=="string"&&e){var r=ke(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof i=="string"&&(r+='[crossorigin="'+i+'"]'),Vg.has(r)||(Vg.add(r),t={rel:t,crossOrigin:i,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),oe(e,"link",t),ee(e),l.head.appendChild(e)))}}function _S(t){Vn.D(t),Lg("dns-prefetch",t,null)}function US(t,e){Vn.C(t,e),Lg("preconnect",t,e)}function kS(t,e,i){Vn.L(t,e,i);var l=_i;if(l&&t&&e){var r='link[rel="preload"][as="'+ke(e)+'"]';e==="image"&&i&&i.imageSrcSet?(r+='[imagesrcset="'+ke(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(r+='[imagesizes="'+ke(i.imageSizes)+'"]')):r+='[href="'+ke(t)+'"]';var c=r;switch(e){case"style":c=Ui(t);break;case"script":c=ki(t)}Ke.has(c)||(t=b({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),Ke.set(c,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Gl(c))||e==="script"&&l.querySelector(Yl(c))||(e=l.createElement("link"),oe(e,"link",t),ee(e),l.head.appendChild(e)))}}function BS(t,e){Vn.m(t,e);var i=_i;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+ke(l)+'"][href="'+ke(t)+'"]',c=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ki(t)}if(!Ke.has(c)&&(t=b({rel:"modulepreload",href:t},e),Ke.set(c,t),i.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Yl(c)))return}l=i.createElement("link"),oe(l,"link",t),ee(l),i.head.appendChild(l)}}}function HS(t,e,i){Vn.S(t,e,i);var l=_i;if(l&&t){var r=li(l).hoistableStyles,c=Ui(t);e=e||"default";var g=r.get(c);if(!g){var x={loading:0,preload:null};if(g=l.querySelector(Gl(c)))x.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},i),(i=Ke.get(c))&&Xc(t,i);var N=g=l.createElement("link");ee(N),oe(N,"link",t),N._p=new Promise(function(R,B){N.onload=R,N.onerror=B}),N.addEventListener("load",function(){x.loading|=1}),N.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Do(g,e,l)}g={type:"stylesheet",instance:g,count:1,state:x},r.set(c,g)}}}function $S(t,e){Vn.X(t,e);var i=_i;if(i&&t){var l=li(i).hoistableScripts,r=ki(t),c=l.get(r);c||(c=i.querySelector(Yl(r)),c||(t=b({src:t,async:!0},e),(e=Ke.get(r))&&Kc(t,e),c=i.createElement("script"),ee(c),oe(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function GS(t,e){Vn.M(t,e);var i=_i;if(i&&t){var l=li(i).hoistableScripts,r=ki(t),c=l.get(r);c||(c=i.querySelector(Yl(r)),c||(t=b({src:t,async:!0,type:"module"},e),(e=Ke.get(r))&&Kc(t,e),c=i.createElement("script"),ee(c),oe(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function _g(t,e,i,l){var r=(r=dt.current)?Mo(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=Ui(i.href),i=li(r).hoistableStyles,l=i.get(e),l||(l={type:"style",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ui(i.href);var c=li(r).hoistableStyles,g=c.get(t);if(g||(r=r.ownerDocument||r,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,g),(c=r.querySelector(Gl(t)))&&!c._p&&(g.instance=c,g.state.loading=5),Ke.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ke.set(t,i),c||YS(r,t,i,g.state))),e&&l===null)throw Error(o(528,""));return g}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ki(i),i=li(r).hoistableScripts,l=i.get(e),l||(l={type:"script",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ui(t){return'href="'+ke(t)+'"'}function Gl(t){return'link[rel="stylesheet"]['+t+"]"}function Ug(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function YS(t,e,i,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),oe(e,"link",i),ee(e),t.head.appendChild(e))}function ki(t){return'[src="'+ke(t)+'"]'}function Yl(t){return"script[async]"+t}function kg(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+ke(i.href)+'"]');if(l)return e.instance=l,ee(l),l;var r=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ee(l),oe(l,"style",r),Do(l,i.precedence,t),e.instance=l;case"stylesheet":r=Ui(i.href);var c=t.querySelector(Gl(r));if(c)return e.state.loading|=4,e.instance=c,ee(c),c;l=Ug(i),(r=Ke.get(r))&&Xc(l,r),c=(t.ownerDocument||t).createElement("link"),ee(c);var g=c;return g._p=new Promise(function(x,N){g.onload=x,g.onerror=N}),oe(c,"link",l),e.state.loading|=4,Do(c,i.precedence,t),e.instance=c;case"script":return c=ki(i.src),(r=t.querySelector(Yl(c)))?(e.instance=r,ee(r),r):(l=i,(r=Ke.get(c))&&(l=b({},i),Kc(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),ee(r),oe(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Do(l,i.precedence,t));return e.instance}function Do(t,e,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,c=r,g=0;g<l.length;g++){var x=l[g];if(x.dataset.precedence===e)c=x;else if(c!==r)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Xc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Kc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var zo=null;function Bg(t,e,i){if(zo===null){var l=new Map,r=zo=new Map;r.set(i,l)}else r=zo,l=r.get(i),l||(l=new Map,r.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),r=0;r<i.length;r++){var c=i[r];if(!(c[ll]||c[ae]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(e)||"";g=t+g;var x=l.get(g);x?x.push(c):l.set(g,[c])}}return l}function Hg(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function qS(t,e,i){if(i===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function $g(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function XS(t,e,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var r=Ui(l.href),c=e.querySelector(Gl(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Oo.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,ee(c);return}c=e.ownerDocument||e,l=Ug(l),(r=Ke.get(r))&&Xc(l,r),c=c.createElement("link"),ee(c);var g=c;g._p=new Promise(function(x,N){g.onload=x,g.onerror=N}),oe(c,"link",l),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Oo.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Fc=0;function KS(t,e){return t.stylesheets&&t.count===0&&Vo(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Vo(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Fc===0&&(Fc=62500*jS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Vo(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Fc?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Oo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ro=null;function Vo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ro=new Map,e.forEach(FS,t),Ro=null,Oo.call(t))}function FS(t,e){if(!(e.state.loading&4)){var i=Ro.get(t);if(i)var l=i.get(null);else{i=new Map,Ro.set(t,i);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var g=r[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),l=g)}l&&i.set(null,l)}r=e.instance,g=r.getAttribute("data-precedence"),c=i.get(g)||l,c===l&&i.set(null,r),i.set(g,r),this.count++,l=Oo.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),c?c.parentNode.insertBefore(r,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var ql={$$typeof:U,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function ZS(t,e,i,l,r,c,g,x,N){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=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=l,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Gg(t,e,i,l,r,c,g,x,N,R,B,G){return t=new ZS(t,e,i,g,N,R,B,G,x),e=1,c===!0&&(e|=24),c=De(3,null,null,e),t.current=c,c.stateNode=t,e=ju(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},Du(c),t}function Yg(t){return t?(t=pi,t):pi}function qg(t,e,i,l,r,c){r=Yg(r),l.context===null?l.context=r:l.pendingContext=r,l=Fn(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=Zn(t,l,e),i!==null&&(we(i,t,e),Tl(i,t,e))}function Xg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function Zc(t,e){Xg(t,e),(t=t.alternate)&&Xg(t,e)}function Kg(t){if(t.tag===13||t.tag===31){var e=Ca(t,67108864);e!==null&&we(e,t,67108864),Zc(t,67108864)}}function Fg(t){if(t.tag===13||t.tag===31){var e=Le();e=Yr(e);var i=Ca(t,e);i!==null&&we(i,t,e),Zc(t,e)}}var Lo=!0;function QS(t,e,i,l){var r=k.T;k.T=null;var c=K.p;try{K.p=2,Qc(t,e,i,l)}finally{K.p=c,k.T=r}}function JS(t,e,i,l){var r=k.T;k.T=null;var c=K.p;try{K.p=8,Qc(t,e,i,l)}finally{K.p=c,k.T=r}}function Qc(t,e,i,l){if(Lo){var r=Jc(l);if(r===null)Lc(t,e,l,_o,i),Qg(t,l);else if(WS(r,t,e,i,l))l.stopPropagation();else if(Qg(t,l),e&4&&-1<PS.indexOf(t)){for(;r!==null;){var c=ii(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=wa(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var N=1<<31-Ce(g);x.entanglements[1]|=N,g&=~N}rn(c),(wt&6)===0&&(yo=je()+500,kl(0))}}break;case 31:case 13:x=Ca(c,2),x!==null&&we(x,c,2),xo(),Zc(c,2)}if(c=Jc(l),c===null&&Lc(t,e,l,_o,i),c===r)break;r=c}r!==null&&l.stopPropagation()}else Lc(t,e,l,null,i)}}function Jc(t){return t=Wr(t),Pc(t)}var _o=null;function Pc(t){if(_o=null,t=ai(t),t!==null){var e=d(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=f(e),t!==null)return t;t=null}else if(i===31){if(t=h(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return _o=t,null}function Zg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_x()){case nh:return 2;case ah:return 8;case Es:case Ux:return 32;case ih:return 268435456;default:return 32}default:return 32}}var Wc=!1,la=null,sa=null,oa=null,Xl=new Map,Kl=new Map,ra=[],PS="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 Qg(t,e){switch(t){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(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(e.pointerId)}}function Fl(t,e,i,l,r,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:l,nativeEvent:c,targetContainers:[r]},e!==null&&(e=ii(e),e!==null&&Kg(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function WS(t,e,i,l,r){switch(e){case"focusin":return la=Fl(la,t,e,i,l,r),!0;case"dragenter":return sa=Fl(sa,t,e,i,l,r),!0;case"mouseover":return oa=Fl(oa,t,e,i,l,r),!0;case"pointerover":var c=r.pointerId;return Xl.set(c,Fl(Xl.get(c)||null,t,e,i,l,r)),!0;case"gotpointercapture":return c=r.pointerId,Kl.set(c,Fl(Kl.get(c)||null,t,e,i,l,r)),!0}return!1}function Jg(t){var e=ai(t.target);if(e!==null){var i=d(e);if(i!==null){if(e=i.tag,e===13){if(e=f(i),e!==null){t.blockedOn=e,ch(t.priority,function(){Fg(i)});return}}else if(e===31){if(e=h(i),e!==null){t.blockedOn=e,ch(t.priority,function(){Fg(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Uo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Jc(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Pr=l,i.target.dispatchEvent(l),Pr=null}else return e=ii(i),e!==null&&Kg(e),t.blockedOn=i,!1;e.shift()}return!0}function Pg(t,e,i){Uo(t)&&i.delete(e)}function IS(){Wc=!1,la!==null&&Uo(la)&&(la=null),sa!==null&&Uo(sa)&&(sa=null),oa!==null&&Uo(oa)&&(oa=null),Xl.forEach(Pg),Kl.forEach(Pg)}function ko(t,e){t.blockedOn===e&&(t.blockedOn=null,Wc||(Wc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,IS)))}var Bo=null;function Wg(t){Bo!==t&&(Bo=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bo===t&&(Bo=null);for(var e=0;e<t.length;e+=3){var i=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Pc(l||i)===null)continue;break}var c=ii(i);c!==null&&(t.splice(e,3),e-=3,Ju(c,{pending:!0,data:r,method:i.method,action:l},l,r))}}))}function Bi(t){function e(N){return ko(N,t)}la!==null&&ko(la,t),sa!==null&&ko(sa,t),oa!==null&&ko(oa,t),Xl.forEach(e),Kl.forEach(e);for(var i=0;i<ra.length;i++){var l=ra[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ra.length&&(i=ra[0],i.blockedOn===null);)Jg(i),i.blockedOn===null&&ra.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var r=i[l],c=i[l+1],g=r[ve]||null;if(typeof c=="function")g||Wg(i);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(r=c,g=c[ve]||null)x=g.formAction;else if(Pc(r)!==null)continue}else x=g.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),Wg(i)}}}function Ig(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return r=g})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(i,20)}function i(){if(!l&&!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 l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Ic(t){this._internalRoot=t}Ho.prototype.render=Ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var i=e.current,l=Le();qg(i,l,t,e,null,null)},Ho.prototype.unmount=Ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;qg(t.current,2,null,t,null,null),xo(),e[ni]=null}};function Ho(t){this._internalRoot=t}Ho.prototype.unstable_scheduleHydration=function(t){if(t){var e=uh();t={blockedOn:null,target:t,priority:e};for(var i=0;i<ra.length&&e!==0&&e<ra[i].priority;i++);ra.splice(i,0,t),i===0&&Jg(t)}};var tv=a.version;if(tv!=="19.2.4")throw Error(o(527,tv,"19.2.4"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(e),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var tT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$o.isDisabled&&$o.supportsFiber)try{nl=$o.inject(tT),Ne=$o}catch{}}return Ql.createRoot=function(t,e){if(!u(t))throw Error(o(299));var i=!1,l="",r=op,c=rp,g=up;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError)),e=Gg(t,1,!1,null,null,i,l,null,r,c,g,Ig),t[ni]=e.current,Vc(t),new Ic(e)},Ql.hydrateRoot=function(t,e,i){if(!u(t))throw Error(o(299));var l=!1,r="",c=op,g=rp,x=up,N=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(r=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(N=i.formState)),e=Gg(t,1,!0,e,i??null,l,r,N,c,g,x,Ig),e.context=Yg(null),i=e.current,l=Le(),l=Yr(l),r=Fn(l),r.callback=null,Zn(i,r,l),i=l,e.current.lanes=i,il(e,i),rn(e),t[ni]=e.current,Vc(t),new Ho(e)},Ql.version="19.2.4",Ql}var fv;function fT(){if(fv)return nf.exports;fv=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=cT(),nf.exports}var dT=fT();const Z0="/outlook/api";async function ge(n){const a=await fetch(`${Z0}${n}`,{headers:{accept:"application/json"}});if(!a.ok)throw new Error(`${a.status} ${a.statusText}`);return a.json()}function hT(n){const a=new EventSource(`${Z0}/events`);return a.addEventListener("state-changed",s=>{try{const o=JSON.parse(s.data);n("state-changed",o)}catch{n("state-changed",{})}}),a.onerror=()=>{},()=>a.close()}function Qe(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 dn(n,a){if(!n)return"";if(n.length<=a)return n;const s=n.lastIndexOf(" ",a);return(s>a*.6?n.slice(0,s):n.slice(0,a))+"…"}const Q0=w.createContext(()=>{});function Qi(){return w.useContext(Q0)}const mT=new Set(["overview","sessions","work","connections","inner","memory","runtime"]);function J0(n){const a=n.replace(/^#\/?/,"");if(!a.startsWith("agent/"))return null;const s=a.split("/"),o=s[1]?decodeURIComponent(s[1]):"";if(!o)return null;const u=s[2]??"overview",d=mT.has(u)?u:"overview",f=s.slice(3),h=f.length>0?f.map(decodeURIComponent).join("/"):void 0;return{agent:o,tab:d,focus:h}}function Vf(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 pT=typeof document<"u"?st.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 gT(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function vT(n){return gT(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let yT=!1;function vd(){return yT}function Ka(n,a){if(!vd())return a&&n?n.contains(a):!1;if(!n||!a)return!1;let s=a;for(;s!==null;){if(s===n)return!0;s.tagName==="SLOT"&&s.assignedSlot?s=s.assignedSlot.parentNode:vT(s)?s=s.host:s=s.parentNode}return!1}const Ki=(n=document)=>{var a;if(!vd())return n.activeElement;let s=n.activeElement;for(;s&&"shadowRoot"in s&&(!((a=s.shadowRoot)===null||a===void 0)&&a.activeElement);)s=s.shadowRoot.activeElement;return s};function he(n){if(vd()&&n.target instanceof Element&&n.target.shadowRoot){var a,s;if("composedPath"in n)return(a=n.composedPath()[0])!==null&&a!==void 0?a:null;if("composedPath"in n.nativeEvent)return(s=n.nativeEvent.composedPath()[0])!==null&&s!==void 0?s:null}return n.target}function P0(n){var a,s,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]&&(s=P0(n[a]))&&(o&&(o+=" "),o+=s)}else for(s in n)n[s]&&(o&&(o+=" "),o+=s);return o}function Kt(){for(var n,a,s=0,o="",u=arguments.length;s<u;s++)(n=arguments[s])&&(a=P0(n))&&(o&&(o+=" "),o+=a);return o}function bT(n){if(xT())n.focus({preventScroll:!0});else{let a=ST(n);n.focus(),TT(a)}}let Go=null;function xT(){if(Go==null){Go=!1;try{document.createElement("div").focus({get preventScroll(){return Go=!0,!0}})}catch{}}return Go}function ST(n){let a=n.parentNode,s=[],o=document.scrollingElement||document.documentElement;for(;a instanceof HTMLElement&&a!==o;)(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth)&&s.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),a=a.parentNode;return o instanceof HTMLElement&&s.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),s}function TT(n){for(let{element:a,scrollTop:s,scrollLeft:o}of n)a.scrollTop=s,a.scrollLeft=o}function Tr(n){var a;if(typeof window>"u"||window.navigator==null)return!1;let s=(a=window.navigator.userAgentData)===null||a===void 0?void 0:a.brands;return Array.isArray(s)&&s.some(o=>n.test(o.brand))||n.test(window.navigator.userAgent)}function W0(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 Ji(n){let a=null;return()=>(a==null&&(a=n()),a)}const sr=Ji(function(){return W0(/^Mac/i)}),wT=Ji(function(){return W0(/^iPad/i)||sr()&&navigator.maxTouchPoints>1}),ET=Ji(function(){return Tr(/AppleWebKit/i)&&!AT()}),AT=Ji(function(){return Tr(/Chrome/i)}),jT=Ji(function(){return Tr(/Android/i)}),NT=Ji(function(){return Tr(/Firefox/i)});function cs(n,a,s=!0){var o,u;let{metaKey:d,ctrlKey:f,altKey:h,shiftKey:m}=a;NT()&&(!((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=ET()&&sr()&&!wT()?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});cs.isOpening=s,bT(n),n.dispatchEvent(p),cs.isOpening=!1}cs.isOpening=!1;function I0(){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)},[]),s=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)=>{s(u.eventTarget,u.type,d,u.options)})},[s]);return w.useEffect(()=>o,[o]),{addGlobalListener:a,removeGlobalListener:s,removeAllGlobalListeners:o}}function CT(n){return n.pointerType===""&&n.isTrusted?!0:jT()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}var MT=F0();function ty(n){let a=n;return a.nativeEvent=n,a.isDefaultPrevented=()=>a.defaultPrevented,a.isPropagationStopped=()=>a.cancelBubble,a.persist=()=>{},a}function DT(n,a){Object.defineProperty(n,"target",{value:a}),Object.defineProperty(n,"currentTarget",{value:a})}function ey(n){let a=w.useRef({isFocused:!1,observer:null});return pT(()=>{const s=a.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]),w.useCallback(s=>{let o=he(s);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=ty(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 zT=!1,ps=null;const Lf=new Set;let ns=new Map,Wa=!1,_f=!1;const OT={Tab:!0,Escape:!0};function yd(n,a){for(let s of Lf)s(n,a)}function RT(n){return!(n.metaKey||!sr()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function or(n){Wa=!0,!cs.isOpening&&RT(n)&&(ps="keyboard",yd("keyboard",n))}function Xi(n){ps="pointer","pointerType"in n&&n.pointerType,(n.type==="mousedown"||n.type==="pointerdown")&&(Wa=!0,yd("pointer",n))}function ny(n){!cs.isOpening&&CT(n)&&(Wa=!0,ps="virtual")}function ay(n){he(n)===window||he(n)===document||zT||!n.isTrusted||(!Wa&&!_f&&(ps="virtual",yd("virtual",n)),Wa=!1,_f=!1)}function iy(){Wa=!1,_f=!0}function Uf(n){if(typeof window>"u"||typeof document>"u"||ns.get(Xa(n)))return;const a=Xa(n),s=xa(n);let o=a.HTMLElement.prototype.focus;a.HTMLElement.prototype.focus=function(){Wa=!0,o.apply(this,arguments)},s.addEventListener("keydown",or,!0),s.addEventListener("keyup",or,!0),s.addEventListener("click",ny,!0),a.addEventListener("focus",ay,!0),a.addEventListener("blur",iy,!1),typeof PointerEvent<"u"&&(s.addEventListener("pointerdown",Xi,!0),s.addEventListener("pointermove",Xi,!0),s.addEventListener("pointerup",Xi,!0)),a.addEventListener("beforeunload",()=>{ly(n)},{once:!0}),ns.set(a,{focus:o})}const ly=(n,a)=>{const s=Xa(n),o=xa(n);a&&o.removeEventListener("DOMContentLoaded",a),ns.has(s)&&(s.HTMLElement.prototype.focus=ns.get(s).focus,o.removeEventListener("keydown",or,!0),o.removeEventListener("keyup",or,!0),o.removeEventListener("click",ny,!0),s.removeEventListener("focus",ay,!0),s.removeEventListener("blur",iy,!1),typeof PointerEvent<"u"&&(o.removeEventListener("pointerdown",Xi,!0),o.removeEventListener("pointermove",Xi,!0),o.removeEventListener("pointerup",Xi,!0)),ns.delete(s))};function VT(n){const a=xa(n);let s;return a.readyState!=="loading"?Uf(n):(s=()=>{Uf(n)},a.addEventListener("DOMContentLoaded",s)),()=>ly(n,s)}typeof document<"u"&&VT();function kf(){return ps!=="pointer"}const LT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _T(n,a,s){let o=xa(s?he(s):void 0),u=s?he(s):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&&!LT.has(p.type)||p instanceof f||p instanceof h&&p.isContentEditable,!(n&&a==="keyboard"&&s instanceof m&&!OT[s.key])}function UT(n,a,s){Uf(),w.useEffect(()=>{if((s==null?void 0:s.enabled)===!1)return;let o=(u,d)=>{_T(!!(s!=null&&s.isTextInput),u,d)&&n(kf())};return Lf.add(o),()=>{Lf.delete(o)}},a)}function kT(n){let{isDisabled:a,onFocus:s,onBlur:o,onFocusChange:u}=n;const d=w.useCallback(m=>{if(he(m)===m.currentTarget)return o&&o(m),u&&u(!1),!0},[o,u]),f=ey(d),h=w.useCallback(m=>{let p=he(m);const y=xa(p),b=y?Ki(y):Ki();p===m.currentTarget&&p===b&&(s&&s(m),u&&u(!0),f(m))},[u,s,f]);return{focusProps:{onFocus:!a&&(s||u||o)?h:void 0,onBlur:!a&&(o||u)?d:void 0}}}function BT(n){let{isDisabled:a,onBlurWithin:s,onFocusWithin:o,onFocusWithinChange:u}=n,d=w.useRef({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:h}=I0(),m=w.useCallback(b=>{Ka(b.currentTarget,he(b))&&d.current.isFocusWithin&&!Ka(b.currentTarget,b.relatedTarget)&&(d.current.isFocusWithin=!1,h(),s&&s(b),u&&u(!1))},[s,u,d,h]),p=ey(m),y=w.useCallback(b=>{if(!Ka(b.currentTarget,he(b)))return;let S=he(b);const T=xa(S),j=Ki(T);if(!d.current.isFocusWithin&&j===S){o&&o(b),u&&u(!0),d.current.isFocusWithin=!0,p(b);let E=b.currentTarget;f(T,"focus",C=>{let A=he(C);if(d.current.isFocusWithin&&!Ka(E,A)){let L=new T.defaultView.FocusEvent("blur",{relatedTarget:A});DT(L,E);let U=ty(L);m(U)}},{capture:!0})}},[o,u,p,f,m]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:y,onBlur:m}}}let Bf=!1,Yo=0;function HT(){Bf=!0,setTimeout(()=>{Bf=!1},50)}function dv(n){n.pointerType==="touch"&&HT()}function $T(){if(!(typeof document>"u"))return Yo===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",dv),Yo++,()=>{Yo--,!(Yo>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",dv)}}function sy(n){let{onHoverStart:a,onHoverChange:s,onHoverEnd:o,isDisabled:u}=n,[d,f]=w.useState(!1),h=w.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;w.useEffect($T,[]);let{addGlobalListener:m,removeAllGlobalListeners:p}=I0(),{hoverProps:y,triggerHoverEnd:b}=w.useMemo(()=>{let S=(E,C)=>{if(h.pointerType=C,u||C==="touch"||h.isHovered||!Ka(E.currentTarget,he(E)))return;h.isHovered=!0;let A=E.currentTarget;h.target=A,m(xa(he(E)),"pointerover",L=>{h.isHovered&&h.target&&!Ka(h.target,he(L))&&T(L,L.pointerType)},{capture:!0}),a&&a({type:"hoverstart",target:A,pointerType:C}),s&&s(!0),f(!0)},T=(E,C)=>{let A=h.target;h.pointerType="",h.target=null,!(C==="touch"||!h.isHovered||!A)&&(h.isHovered=!1,p(),o&&o({type:"hoverend",target:A,pointerType:C}),s&&s(!1),f(!1))},j={};return typeof PointerEvent<"u"&&(j.onPointerEnter=E=>{Bf&&E.pointerType==="mouse"||S(E,E.pointerType)},j.onPointerLeave=E=>{!u&&Ka(E.currentTarget,he(E))&&T(E,E.pointerType)}),{hoverProps:j,triggerHoverEnd:T}},[a,s,o,u,h,m,p]);return w.useEffect(()=>{u&&b({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:y,isHovered:d}}function oy(n={}){let{autoFocus:a=!1,isTextInput:s,within:o}=n,u=w.useRef({isFocused:!1,isFocusVisible:a||kf()}),[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=kf(),f(T),p()},[p]);UT(T=>{u.current.isFocusVisible=T,p()},[s,d],{enabled:d,isTextInput:s});let{focusProps:b}=kT({isDisabled:o,onFocusChange:y}),{focusWithinProps:S}=BT({isDisabled:!o,onFocusWithinChange:y});return{isFocused:d,isFocusVisible:h,focusProps:o?S:b}}var GT=Object.defineProperty,YT=(n,a,s)=>a in n?GT(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,of=(n,a,s)=>(YT(n,typeof a!="symbol"?a+"":a,s),s);let qT=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 qT;function Pi(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,s;return hn.isServer?null:n==null?document:(s=(a=n==null?void 0:n.getRootNode)==null?void 0:a.call(n))!=null?s:document}function ry(n){var a,s;return(s=(a=Hf(n))==null?void 0:a.activeElement)!=null?s:null}function XT(n){return ry(n)===n}function wr(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(a=>setTimeout(()=>{throw a}))}function kn(){let n=[],a={addEventListener(s,o,u,d){return s.addEventListener(o,u,d),a.add(()=>s.removeEventListener(o,u,d))},requestAnimationFrame(...s){let o=requestAnimationFrame(...s);return a.add(()=>cancelAnimationFrame(o))},nextFrame(...s){return a.requestAnimationFrame(()=>a.requestAnimationFrame(...s))},setTimeout(...s){let o=setTimeout(...s);return a.add(()=>clearTimeout(o))},microTask(...s){let o={current:!0};return wr(()=>{o.current&&s[0]()}),a.add(()=>{o.current=!1})},style(s,o,u){let d=s.style.getPropertyValue(o);return Object.assign(s.style,{[o]:u}),this.add(()=>{Object.assign(s.style,{[o]:d})})},group(s){let o=kn();return s(o),this.add(()=>o.dispose())},add(s){return n.includes(s)||n.push(s),()=>{let o=n.indexOf(s);if(o>=0)for(let u of n.splice(o,1))u()}},dispose(){for(let s of n.splice(0))s()}};return a}function gs(){let[n]=w.useState(kn);return w.useEffect(()=>()=>n.dispose(),[n]),n}let Ee=(n,a)=>{hn.isServer?w.useEffect(n,a):w.useLayoutEffect(n,a)};function ti(n){let a=w.useRef(n);return Ee(()=>{a.current=n},[n]),a}let jt=function(n){let a=ti(n);return st.useCallback((...s)=>a.current(...s),[a])};function KT(n){let a=n.width/2,s=n.height/2;return{top:n.clientY-s,right:n.clientX+a,bottom:n.clientY+s,left:n.clientX-a}}function FT(n,a){return!(!n||!a||n.right<a.left||n.left>a.right||n.bottom<a.top||n.top>a.bottom)}function uy({disabled:n=!1}={}){let a=w.useRef(null),[s,o]=w.useState(!1),u=gs(),d=jt(()=>{a.current=null,o(!1),u.dispose()}),f=jt(h=>{if(u.dispose(),a.current===null){a.current=h.currentTarget,o(!0);{let m=Pi(h.currentTarget);u.addEventListener(m,"pointerup",d,!1),u.addEventListener(m,"pointermove",p=>{if(a.current){let y=KT(p);o(FT(y,a.current.getBoundingClientRect()))}},!1),u.addEventListener(m,"pointercancel",d,!1)}}});return{pressed:s,pressProps:n?{}:{onPointerDown:f,onPointerUp:d,onClick:d}}}function ei(n){return w.useMemo(()=>n,Object.values(n))}let ZT=w.createContext(void 0);function cy(){return w.useContext(ZT)}function $f(...n){return Array.from(new Set(n.flatMap(a=>typeof a=="string"?a.split(" "):[]))).filter(Boolean).join(" ")}function Un(n,a,...s){if(n in a){let u=a[n];return typeof u=="function"?u(...s):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,Un),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 Ae(){let n=JT();return w.useCallback(a=>QT({mergeRefs:n,...a}),[n])}function QT({ourProps:n,theirProps:a,slot:s,defaultTag:o,features:u,visible:d=!0,name:f,mergeRefs:h}){h=h??PT;let m=fy(a,n);if(d)return qo(m,s,o,f,h);let p=u??0;if(p&2){let{static:y=!1,...b}=m;if(y)return qo(b,s,o,f,h)}if(p&1){let{unmount:y=!0,...b}=m;return Un(y?0:1,{0(){return null},1(){return qo({...b,hidden:!0,style:{display:"none"}},s,o,f,h)}})}return qo(m,s,o,f,h)}function qo(n,a={},s,o,u){let{as:d=s,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[j,E]of Object.entries(a))typeof E=="boolean"&&(S=!0),E===!0&&T.push(j.replace(/([A-Z])/g,C=>`-${C.toLowerCase()}`));if(S){b["data-headlessui-state"]=T.join(" ");for(let j of T)b[`data-${j}`]=""}}if(as(d)&&(Object.keys(Ga(m)).length>0||Object.keys(Ga(b)).length>0))if(!w.isValidElement(y)||Array.isArray(y)&&y.length>1||IT(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,j=typeof T=="function"?(...A)=>$f(T(...A),m.className):$f(T,m.className),E=j?{className:j}:{},C=fy(y.props,Ga(rf(m,["ref"])));for(let A in b)A in C&&delete b[A];return w.cloneElement(y,Object.assign({},C,b,p,{ref:u(WT(y),p.ref)},E))}return w.createElement(d,Object.assign({},rf(m,["ref"]),!as(d)&&p,!as(d)&&b),y)}function JT(){let n=w.useRef([]),a=w.useCallback(s=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(s):o.current=s)},[]);return(...s)=>{if(!s.every(o=>o==null))return n.current=s,a}}function PT(...n){return n.every(a=>a==null)?void 0:a=>{for(let s of n)s!=null&&(typeof s=="function"?s(a):s.current=a)}}function fy(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},s={};for(let o of n)for(let u in o)u.startsWith("on")&&typeof o[u]=="function"?(s[u]!=null||(s[u]=[]),s[u].push(o[u])):a[u]=o[u];if(a.disabled||a["aria-disabled"])for(let o in s)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(o)&&(s[o]=[u=>{var d;return(d=u==null?void 0:u.preventDefault)==null?void 0:d.call(u)}]);for(let o in s)Object.assign(a,{[o](u,...d){let f=s[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 bd(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},s={};for(let o of n)for(let u in o)u.startsWith("on")&&typeof o[u]=="function"?(s[u]!=null||(s[u]=[]),s[u].push(o[u])):a[u]=o[u];for(let o in s)Object.assign(a,{[o](...u){let d=s[o];for(let f of d)f==null||f(...u)}});return a}function ce(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 s in a)a[s]===void 0&&delete a[s];return a}function rf(n,a=[]){let s=Object.assign({},n);for(let o of a)o in s&&delete s[o];return s}function WT(n){return st.version.split(".")[0]>="19"?n.props.ref:n.ref}function as(n){return n===w.Fragment||n===Symbol.for("react.fragment")}function IT(n){return as(n.type)}let t2="button";function e2(n,a){var s;let o=cy(),{disabled:u=o||!1,autoFocus:d=!1,...f}=n,{isFocusVisible:h,focusProps:m}=oy({autoFocus:d}),{isHovered:p,hoverProps:y}=sy({isDisabled:u}),{pressed:b,pressProps:S}=uy({disabled:u}),T=bd({ref:a,type:(s=f.type)!=null?s:"button",disabled:u||void 0,autoFocus:d},m,y,S),j=ei({disabled:u,hover:p,focus:h,active:b,autofocus:d});return Ae()({ourProps:T,theirProps:f,slot:j,defaultTag:t2,name:"Button"})}let vs=ce(e2),n2="span";var ur=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(ur||{});function a2(n,a){var s;let{features:o=1,...u}=n,d={ref:a,"aria-hidden":(o&2)===2?!0:(s=u["aria-hidden"])!=null?s: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 Ae()({ourProps:d,theirProps:u,slot:{},defaultTag:n2,name:"Hidden"})}let Gf=ce(a2);function i2(n){return typeof n!="object"||n===null?!1:"nodeType"in n}function ga(n){return i2(n)&&"tagName"in n}function Ia(n){return ga(n)&&"accessKey"in n}function ma(n){return ga(n)&&"tabIndex"in n}function l2(n){return ga(n)&&"style"in n}function s2(n){return Ia(n)&&n.nodeName==="IFRAME"}function o2(n){return Ia(n)&&n.nodeName==="INPUT"}let dy=Symbol();function r2(n,a=!0){return Object.assign(n,{[dy]:a})}function gn(...n){let a=w.useRef(n);w.useEffect(()=>{a.current=n},[n]);let s=jt(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[dy]))?void 0:s}let xd=w.createContext(null);xd.displayName="DescriptionContext";function hy(){let n=w.useContext(xd);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,hy),a}return n}function u2(){let[n,a]=w.useState([]);return[n.length>0?n.join(" "):void 0,w.useMemo(()=>function(s){let o=jt(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:s.slot,name:s.name,props:s.props,value:s.value}),[o,s.slot,s.name,s.props,s.value]);return st.createElement(xd.Provider,{value:u},s.children)},[a])]}let c2="p";function f2(n,a){let s=w.useId(),o=cy(),{id:u=`headlessui-description-${s}`,...d}=n,f=hy(),h=gn(a);Ee(()=>f.register(u),[u,f.register]);let m=ei({...f.slot,disabled:o||!1}),p={ref:h,...f.props,id:u};return Ae()({ourProps:p,theirProps:d,slot:m,defaultTag:c2,name:f.name||"Description"})}let d2=ce(f2),h2=Object.assign(d2,{});var my=(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))(my||{});let py=w.createContext(()=>{});function m2(){return w.useContext(py)}function p2({value:n,children:a}){return st.createElement(py.Provider,{value:n},a)}function g2(n,a){let s=m2();return st.createElement(vs,{ref:a,...bd({onClick:s},n)})}let gy=ce(g2),vy=class extends Map{constructor(a){super(),this.factory=a}get(a){let s=super.get(a);return s===void 0&&(s=this.factory(a),this.set(a,s)),s}};var v2=Object.defineProperty,y2=(n,a,s)=>a in n?v2(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,b2=(n,a,s)=>(y2(n,a+"",s),s),yy=(n,a,s)=>{if(!a.has(n))throw TypeError("Cannot "+s)},Fe=(n,a,s)=>(yy(n,a,"read from private field"),s?s.call(n):a.get(n)),uf=(n,a,s)=>{if(a.has(n))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(n):a.set(n,s)},hv=(n,a,s,o)=>(yy(n,a,"write to private field"),a.set(n,s),s),un,Wl,Il;let x2=class{constructor(a){uf(this,un,{}),uf(this,Wl,new vy(()=>new Set)),uf(this,Il,new Set),b2(this,"disposables",kn()),hv(this,un,a),hn.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Fe(this,un)}subscribe(a,s){if(hn.isServer)return()=>{};let o={selector:a,callback:s,current:a(Fe(this,un))};return Fe(this,Il).add(o),this.disposables.add(()=>{Fe(this,Il).delete(o)})}on(a,s){return hn.isServer?()=>{}:(Fe(this,Wl).get(a).add(s),this.disposables.add(()=>{Fe(this,Wl).get(a).delete(s)}))}send(a){let s=this.reduce(Fe(this,un),a);if(s!==Fe(this,un)){hv(this,un,s);for(let o of Fe(this,Il)){let u=o.selector(Fe(this,un));by(o.current,u)||(o.current=u,o.callback(u))}for(let o of Fe(this,Wl).get(a.type))o(Fe(this,un),a)}}};un=new WeakMap,Wl=new WeakMap,Il=new WeakMap;function by(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()):mv(n)&&mv(a)?cf(Object.entries(n)[Symbol.iterator](),Object.entries(a)[Symbol.iterator]()):!1}function cf(n,a){do{let s=n.next(),o=a.next();if(s.done&&o.done)return!0;if(s.done||o.done||!Object.is(s.value,o.value))return!1}while(!0)}function mv(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;let a=Object.getPrototypeOf(n);return a===null||Object.getPrototypeOf(a)===null}var S2=Object.defineProperty,T2=(n,a,s)=>a in n?S2(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,pv=(n,a,s)=>(T2(n,typeof a!="symbol"?a+"":a,s),s),w2=(n=>(n[n.Push=0]="Push",n[n.Pop=1]="Pop",n))(w2||{});let E2={0(n,a){let s=a.id,o=n.stack,u=n.stack.indexOf(s);if(u!==-1){let d=n.stack.slice();return d.splice(u,1),d.push(s),o=d,{...n,stack:o}}return{...n,stack:[...n.stack,s]}},1(n,a){let s=a.id,o=n.stack.indexOf(s);if(o===-1)return n;let u=n.stack.slice();return u.splice(o,1),{...n,stack:u}}},A2=class xy extends x2{constructor(){super(...arguments),pv(this,"actions",{push:a=>this.send({type:0,id:a}),pop:a=>this.send({type:1,id:a})}),pv(this,"selectors",{isTop:(a,s)=>a.stack[a.stack.length-1]===s,inStack:(a,s)=>a.stack.includes(s)})}static new(){return new xy({stack:[]})}reduce(a,s){return Un(s.type,E2,a,s)}};const Sy=new vy(()=>A2.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 gv;function j2(){if(gv)return df;gv=1;var n=Sr();function a(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var s=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 j={hasValue:!1,value:null};T.current=j}else j=T.current;T=f(function(){function C(X){if(!A){if(A=!0,L=X,X=b(X),S!==void 0&&j.hasValue){var tt=j.value;if(S(tt,X))return U=tt}return U=X}if(tt=U,s(L,X))return tt;var Z=b(X);return S!==void 0&&S(tt,Z)?(L=X,tt):(L=X,U=Z)}var A=!1,L,U,Y=y===void 0?null:y;return[function(){return C(p())},Y===null?void 0:function(){return C(Y())}]},[p,y,b,S]);var E=o(m,T[0],T[1]);return d(function(){j.hasValue=!0,j.value=E},[E]),h(E),E},df}var vv;function N2(){return vv||(vv=1,ff.exports=j2()),ff.exports}var C2=N2();function Ty(n,a,s=by){return C2.useSyncExternalStoreWithSelector(jt(o=>n.subscribe(M2,o)),jt(()=>n.state),jt(()=>n.state),jt(a),s)}function M2(n){return n}function ys(n,a){let s=w.useId(),o=Sy.get(a),[u,d]=Ty(o,w.useCallback(f=>[o.selectors.isTop(f,s),o.selectors.inStack(f,s)],[o,s]));return Ee(()=>{if(n)return o.actions.push(s),()=>o.actions.pop(s)},[o,n,s]),n?d?u:!0:!1}let Yf=new Map,is=new Map;function yv(n){var a;let s=(a=is.get(n))!=null?a:0;return is.set(n,s+1),s!==0?()=>bv(n):(Yf.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0,()=>bv(n))}function bv(n){var a;let s=(a=is.get(n))!=null?a:1;if(s===1?is.delete(n):is.set(n,s-1),s!==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 D2(n,{allowed:a,disallowed:s}={}){let o=ys(n,"inert-others");Ee(()=>{var u,d;if(!o)return;let f=kn();for(let m of(u=s==null?void 0:s())!=null?u:[])m&&f.add(yv(m));let h=(d=a==null?void 0:a())!=null?d:[];for(let m of h){if(!m)continue;let p=Pi(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(yv(b));y=y.parentElement}}return f.dispose},[o,a,s])}function z2(n,a,s){let o=ti(u=>{let d=u.getBoundingClientRect();d.x===0&&d.y===0&&d.width===0&&d.height===0&&s()});w.useEffect(()=>{if(!n)return;let u=a===null?null:Ia(a)?a:a.current;if(!u)return;let d=kn();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(","),O2=["[data-autofocus]"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var Ln=(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))(Ln||{}),qf=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(qf||{}),R2=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(R2||{});function V2(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(cr)).sort((a,s)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(s.tabIndex||Number.MAX_SAFE_INTEGER)))}function L2(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(O2)).sort((a,s)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(s.tabIndex||Number.MAX_SAFE_INTEGER)))}var wy=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))(wy||{});function _2(n,a=0){var s;return n===((s=Pi(n))==null?void 0:s.body)?!1:Un(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 _n(n){n==null||n.focus({preventScroll:!0})}let k2=["textarea","input"].join(",");function B2(n){var a,s;return(s=(a=n==null?void 0:n.matches)==null?void 0:a.call(n,k2))!=null?s:!1}function H2(n,a=s=>s){return n.slice().sort((s,o)=>{let u=a(s),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 ls(n,a,{sorted:s=!0,relativeTo:o=null,skipElements:u=[]}={}){let d=Array.isArray(n)?n.length>0?Hf(n[0]):document:Hf(n),f=Array.isArray(n)?s?H2(n):n:a&64?L2(n):V2(n);u.length>0&&f.length>1&&(f=f.filter(T=>!u.some(j=>j!=null&&"current"in j?(j==null?void 0:j.current)===T:j===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!==ry(S));return a&6&&B2(S)&&S.select(),2}function Ey(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function $2(){return/Android/gi.test(window.navigator.userAgent)}function xv(){return Ey()||$2()}function Xo(n,a,s,o){let u=ti(s);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 Ay(n,a,s,o){let u=ti(s);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 Sv=30;function G2(n,a,s){let o=ti(s),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,wy.Loose)&&p.tabIndex!==-1&&h.preventDefault(),o.current(h,p)},[o,a]),d=w.useRef(null);Xo(n,"pointerdown",h=>{var m,p;xv()||(d.current=((p=(m=h.composedPath)==null?void 0:m.call(h))==null?void 0:p[0])||h.target)},!0),Xo(n,"pointerup",h=>{if(xv()||!d.current)return;let m=d.current;return d.current=null,u(h,()=>m)},!0);let f=w.useRef({x:0,y:0});Xo(n,"touchstart",h=>{f.current.x=h.touches[0].clientX,f.current.y=h.touches[0].clientY},!0),Xo(n,"touchend",h=>{let m={x:h.changedTouches[0].clientX,y:h.changedTouches[0].clientY};if(!(Math.abs(m.x-f.current.x)>=Sv||Math.abs(m.y-f.current.y)>=Sv))return u(h,()=>ma(h.target)?h.target:null)},!0),Ay(n,"blur",h=>u(h,()=>s2(window.document.activeElement)?window.document.activeElement:null),!0)}function Sd(...n){return w.useMemo(()=>Pi(...n),[...n])}function jy(n,a,s,o){let u=ti(s);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 Y2(n){return w.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot)}function q2(n,a){let s=n(),o=new Set;return{getSnapshot(){return s},subscribe(u){return o.add(u),()=>o.delete(u)},dispatch(u,...d){let f=a[u].call(s,...d);f&&(s=f,o.forEach(h=>h()))}}}function X2(){let n;return{before({doc:a}){var s;let o=a.documentElement,u=(s=a.defaultView)!=null?s:window;n=Math.max(0,u.innerWidth-o.clientWidth)},after({doc:a,d:s}){let o=a.documentElement,u=Math.max(0,o.clientWidth-o.offsetWidth),d=Math.max(0,n-u);s.style(o,"paddingRight",`${d}px`)}}}function K2(){return Ey()?{before({doc:n,d:a,meta:s}){function o(u){for(let d of s().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=kn();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)&&l2(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(o2(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 F2(){return{before({doc:n,d:a}){a.style(n.documentElement,"overflow","hidden")}}}function Tv(n){let a={};for(let s of n)Object.assign(a,s(a));return a}let Fa=q2(()=>new Map,{PUSH(n,a){var s;let o=(s=this.get(n))!=null?s:{doc:n,count:0,d:kn(),meta:new Set,computedMeta:{}};return o.count++,o.meta.add(a),o.computedMeta=Tv(o.meta),this.set(n,o),this},POP(n,a){let s=this.get(n);return s&&(s.count--,s.meta.delete(a),s.computedMeta=Tv(s.meta)),this},SCROLL_PREVENT(n){let a={doc:n.doc,d:n.d,meta(){return n.computedMeta}},s=[K2(),X2(),F2()];s.forEach(({before:o})=>o==null?void 0:o(a)),s.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[s]of n)a.set(s,s.documentElement.style.overflow);for(let s of n.values()){let o=a.get(s.doc)==="hidden",u=s.count!==0;(u&&!o||!u&&o)&&Fa.dispatch(s.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",s),s.count===0&&Fa.dispatch("TEARDOWN",s)}});function Z2(n,a,s=()=>({containers:[]})){let o=Y2(Fa),u=a?o.get(a):void 0,d=u?u.count>0:!1;return Ee(()=>{if(!(!a||!n))return Fa.dispatch("PUSH",a,s),()=>Fa.dispatch("POP",a,s)},[n,a]),d}function Q2(n,a,s=()=>[document.body]){let o=ys(n,"scroll-lock");Z2(o,a,u=>{var d;return{containers:[...(d=u.containers)!=null?d:[],s]}})}function J2(n=0){let[a,s]=w.useState(n),o=w.useCallback(m=>s(m),[]),u=w.useCallback(m=>s(p=>p|m),[]),d=w.useCallback(m=>(a&m)===m,[a]),f=w.useCallback(m=>s(p=>p&~m),[]),h=w.useCallback(m=>s(p=>p^m),[]);return{flags:a,setFlag:o,addFlag:u,hasFlag:d,removeFlag:f,toggleFlag:h}}var P2={},wv,Ev;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((wv=process==null?void 0:P2)==null?void 0:wv.NODE_ENV)==="test"&&typeof((Ev=Element==null?void 0:Element.prototype)==null?void 0:Ev.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 W2=(n=>(n[n.None=0]="None",n[n.Closed=1]="Closed",n[n.Enter=2]="Enter",n[n.Leave=4]="Leave",n))(W2||{});function I2(n){let a={};for(let s in n)n[s]===!0&&(a[`data-${s}`]="");return a}function tw(n,a,s,o){let[u,d]=w.useState(s),{hasFlag:f,addFlag:h,removeFlag:m}=J2(n&&u?3:0),p=w.useRef(!1),y=w.useRef(!1),b=gs();return Ee(()=>{var S;if(n){if(s&&d(!0),!a){s&&h(3);return}return(S=o==null?void 0:o.start)==null||S.call(o,s),ew(a,{inFlight:p,prepare(){y.current?y.current=!1:y.current=p.current,p.current=!0,!y.current&&(s?(h(3),m(4)):(h(4),m(2)))},run(){y.current?s?(m(3),h(4)):(m(4),h(3)):s?m(1):h(1)},done(){var T;y.current&&iw(a)||(p.current=!1,m(7),s||d(!1),(T=o==null?void 0:o.end)==null||T.call(o,s))}})}},[n,s,a,b]),n?[u,{closed:f(1),enter:f(2),leave:f(4),transition:f(2)||f(4)}]:[s,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function ew(n,{prepare:a,run:s,done:o,inFlight:u}){let d=kn();return aw(n,{prepare:a,inFlight:u}),d.nextFrame(()=>{s(),d.requestAnimationFrame(()=>{d.add(nw(n,o))})}),d.dispose}function nw(n,a){var s,o;let u=kn();if(!n)return u.dispose;let d=!1;u.add(()=>{d=!0});let f=(o=(s=n.getAnimations)==null?void 0:s.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 aw(n,{inFlight:a,prepare:s}){if(a!=null&&a.current){s();return}let o=n.style.transition;n.style.transition="none",s(),n.offsetHeight,n.style.transition=o}function iw(n){var a,s;return((s=(a=n.getAnimations)==null?void 0:a.call(n))!=null?s:[]).some(o=>o instanceof CSSTransition&&o.playState!=="finished")}function Td(n,a){let s=w.useRef([]),o=jt(n);w.useEffect(()=>{let u=[...s.current];for(let[d,f]of a.entries())if(s.current[d]!==f){let h=o(a,u);return s.current=a,h}},[o,...a])}let Er=w.createContext(null);Er.displayName="OpenClosedContext";var nn=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(nn||{});function Ar(){return w.useContext(Er)}function lw({value:n,children:a}){return st.createElement(Er.Provider,{value:n},a)}function sw({children:n}){return st.createElement(Er.Provider,{value:null},n)}function ow(n){function a(){document.readyState!=="loading"&&(n(),document.removeEventListener("DOMContentLoaded",a))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",a),a())}let da=[];ow(()=>{function n(a){if(!ma(a.target)||a.target===document.body||da[0]===a.target)return;let s=a.target;s=s.closest(cr),da.unshift(s??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 Ny(n){let a=jt(n),s=w.useRef(!1);w.useEffect(()=>(s.current=!1,()=>{s.current=!0,wr(()=>{s.current&&a()})}),[a])}let Cy=w.createContext(!1);function rw(){return w.useContext(Cy)}function Av(n){return st.createElement(Cy.Provider,{value:n.force},n.children)}function uw(n){let a=rw(),s=w.useContext(Dy),[o,u]=w.useState(()=>{var d;if(!a&&s!==null)return(d=s.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||s!==null&&u(s.current)},[s,u,a]),o}let My=w.Fragment,cw=ce(function(n,a){let{ownerDocument:s=null,...o}=n,u=w.useRef(null),d=gn(r2(S=>{u.current=S}),a),f=Sd(u.current),h=s??f,m=uw(h),p=w.useContext(Xf),y=gs(),b=Ae();return Ny(()=>{var S;m&&m.childNodes.length<=0&&((S=m.parentElement)==null||S.removeChild(m))}),m?MT.createPortal(st.createElement("div",{"data-headlessui-portal":"",ref:S=>{y.dispose(),p&&S&&y.add(p.register(S))}},b({ourProps:{ref:d},theirProps:o,slot:{},defaultTag:My,name:"Portal"})),m):null});function fw(n,a){let s=gn(a),{enabled:o=!0,ownerDocument:u,...d}=n,f=Ae();return o?st.createElement(cw,{...d,ownerDocument:u,ref:s}):f({ourProps:{ref:s},theirProps:d,slot:{},defaultTag:My,name:"Portal"})}let dw=w.Fragment,Dy=w.createContext(null);function hw(n,a){let{target:s,...o}=n,u={ref:gn(a)},d=Ae();return st.createElement(Dy.Provider,{value:s},d({ourProps:u,theirProps:o,defaultTag:dw,name:"Popover.Group"}))}let Xf=w.createContext(null);function mw(){let n=w.useContext(Xf),a=w.useRef([]),s=jt(d=>(a.current.push(d),n&&n.register(d),()=>o(d))),o=jt(d=>{let f=a.current.indexOf(d);f!==-1&&a.current.splice(f,1),n&&n.unregister(d)}),u=w.useMemo(()=>({register:s,unregister:o,portals:a}),[s,o,a]);return[a,w.useMemo(()=>function({children:d}){return st.createElement(Xf.Provider,{value:u},d)},[u])]}let pw=ce(fw),zy=ce(hw),gw=Object.assign(pw,{Group:zy}),vw=w.Fragment;function yw(n,a){let{...s}=n,o=!1,{isFocusVisible:u,focusProps:d}=oy(),{isHovered:f,hoverProps:h}=sy({isDisabled:o}),{pressed:m,pressProps:p}=uy({disabled:o}),y=bd({ref:a},d,h,p),b=ei({hover:f,focus:u,active:m});return Ae()({ourProps:y,theirProps:s,slot:b,defaultTag:vw,name:"DataInteractive"})}let bw=ce(yw);function xw(n,a=typeof document<"u"?document.defaultView:null,s){let o=ys(n,"escape");jy(a,"keydown",u=>{o&&(u.defaultPrevented||u.key===my.Escape&&s(u))})}function Sw(){var n;let[a]=w.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[s,o]=w.useState((n=a==null?void 0:a.matches)!=null?n:!1);return Ee(()=>{if(!a)return;function u(d){o(d.matches)}return a.addEventListener("change",u),()=>a.removeEventListener("change",u)},[a]),s}function Tw({defaultContainers:n=[],portals:a,mainTreeNode:s}={}){let o=jt(()=>{var u,d;let f=Pi(s),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"&&(s&&(m.contains(s)||m.contains((d=s==null?void 0:s.getRootNode())==null?void 0:d.host))||h.some(p=>m.contains(p))||h.push(m));return h});return{resolveContainers:o,contains:jt(u=>o().some(d=>d.contains(u)))}}let Oy=w.createContext(null);function jv({children:n,node:a}){let[s,o]=w.useState(null),u=Ry(a??s);return st.createElement(Oy.Provider,{value:u},n,u===null&&st.createElement(Gf,{features:ur.Hidden,ref:d=>{var f,h;if(d){for(let m of(h=(f=Pi(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 Ry(n=null){var a;return(a=w.useContext(Oy))!=null?a:n}function ww(){let n=typeof document>"u";return"useSyncExternalStore"in lv?(a=>a.useSyncExternalStore)(lv)(()=>()=>{},()=>!1,()=>!n):!1}function jr(){let n=ww(),[a,s]=w.useState(hn.isHandoffComplete);return a&&hn.isHandoffComplete===!1&&s(!1),w.useEffect(()=>{a!==!0&&s(!0)},[a]),w.useEffect(()=>hn.handoff(),[]),n?!1:a}function wd(){let n=w.useRef(!1);return Ee(()=>(n.current=!0,()=>{n.current=!1}),[]),n}var ts=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(ts||{});function Ew(){let n=w.useRef(0);return Ay(!0,"keydown",a=>{a.key==="Tab"&&(n.current=a.shiftKey?1:0)},!0),n}function Vy(n){if(!n)return new Set;if(typeof n=="function")return new Set(n());let a=new Set;for(let s of n.current)ga(s.current)&&a.add(s.current);return a}let Aw="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 jw(n,a){let s=w.useRef(null),o=gn(s,a),{initialFocus:u,initialFocusFallback:d,containers:f,features:h=15,...m}=n;jr()||(h=0);let p=Sd(s.current);Dw(h,{ownerDocument:p});let y=zw(h,{ownerDocument:p,container:s,initialFocus:u,initialFocusFallback:d});Ow(h,{ownerDocument:p,container:s,containers:f,previousActiveElement:y});let b=Ew(),S=jt(L=>{if(!Ia(s.current))return;let U=s.current;(Y=>Y())(()=>{Un(b.current,{[ts.Forwards]:()=>{ls(U,Ln.First,{skipElements:[L.relatedTarget,d]})},[ts.Backwards]:()=>{ls(U,Ln.Last,{skipElements:[L.relatedTarget,d]})}})})}),T=ys(!!(h&2),"focus-trap#tab-lock"),j=gs(),E=w.useRef(!1),C={ref:o,onKeyDown(L){L.key=="Tab"&&(E.current=!0,j.requestAnimationFrame(()=>{E.current=!1}))},onBlur(L){if(!(h&4))return;let U=Vy(f);Ia(s.current)&&U.add(s.current);let Y=L.relatedTarget;ma(Y)&&Y.dataset.headlessuiFocusGuard!=="true"&&(Ly(U,Y)||(E.current?ls(s.current,Un(b.current,{[ts.Forwards]:()=>Ln.Next,[ts.Backwards]:()=>Ln.Previous})|Ln.WrapAround,{relativeTo:L.target}):ma(L.target)&&_n(L.target)))}},A=Ae();return st.createElement(st.Fragment,null,T&&st.createElement(Gf,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ur.Focusable}),A({ourProps:C,theirProps:m,defaultTag:Aw,name:"FocusTrap"}),T&&st.createElement(Gf,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ur.Focusable}))}let Nw=ce(jw),Cw=Object.assign(Nw,{features:qa});function Mw(n=!0){let a=w.useRef(da.slice());return Td(([s],[o])=>{o===!0&&s===!1&&wr(()=>{a.current.splice(0)}),o===!1&&s===!0&&(a.current=da.slice())},[n,da,a]),jt(()=>{var s;return(s=a.current.find(o=>o!=null&&o.isConnected))!=null?s:null})}function Dw(n,{ownerDocument:a}){let s=!!(n&8),o=Mw(s);Td(()=>{s||XT(a==null?void 0:a.body)&&_n(o())},[s]),Ny(()=>{s&&_n(o())})}function zw(n,{ownerDocument:a,container:s,initialFocus:o,initialFocusFallback:u}){let d=w.useRef(null),f=ys(!!(n&1),"focus-trap#initial-focus"),h=wd();return Td(()=>{if(n===0)return;if(!f){u!=null&&u.current&&_n(u.current);return}let m=s.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)_n(o.current);else{if(n&16){if(ls(m,Ln.First|Ln.AutoFocus)!==qf.Error)return}else if(ls(m,Ln.First)!==qf.Error)return;if(u!=null&&u.current&&(_n(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 Ow(n,{ownerDocument:a,container:s,containers:o,previousActiveElement:u}){let d=wd(),f=!!(n&4);jy(a==null?void 0:a.defaultView,"focus",h=>{if(!f||!d.current)return;let m=Vy(o);Ia(s.current)&&m.add(s.current);let p=u.current;if(!p)return;let y=h.target;Ia(y)?Ly(m,y)?(u.current=y,_n(y)):(h.preventDefault(),h.stopPropagation(),_n(p)):_n(u.current)},!0)}function Ly(n,a){for(let s of n)if(s.contains(a))return!0;return!1}function _y(n){var a;return!!(n.enter||n.enterFrom||n.enterTo||n.leave||n.leaveFrom||n.leaveTo)||!as((a=n.as)!=null?a:ky)||st.Children.count(n.children)===1}let Nr=w.createContext(null);Nr.displayName="TransitionContext";var Rw=(n=>(n.Visible="visible",n.Hidden="hidden",n))(Rw||{});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 Lw(){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 Uy(n,a){let s=ti(n),o=w.useRef([]),u=wd(),d=gs(),f=jt((T,j=ha.Hidden)=>{let E=o.current.findIndex(({el:C})=>C===T);E!==-1&&(Un(j,{[ha.Unmount](){o.current.splice(E,1)},[ha.Hidden](){o.current[E].state="hidden"}}),d.microTask(()=>{var C;!Mr(o)&&u.current&&((C=s.current)==null||C.call(s))}))}),h=jt(T=>{let j=o.current.find(({el:E})=>E===T);return j?j.state!=="visible"&&(j.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=jt((T,j,E)=>{m.current.splice(0),a&&(a.chains.current[j]=a.chains.current[j].filter(([C])=>C!==T)),a==null||a.chains.current[j].push([T,new Promise(C=>{m.current.push(C)})]),a==null||a.chains.current[j].push([T,new Promise(C=>{Promise.all(y.current[j].map(([A,L])=>L)).then(()=>C())})]),j==="enter"?p.current=p.current.then(()=>a==null?void 0:a.wait.current).then(()=>E(j)):E(j)}),S=jt((T,j,E)=>{Promise.all(y.current[j].splice(0).map(([C,A])=>A)).then(()=>{var C;(C=m.current.shift())==null||C()}).then(()=>E(j))});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 ky=w.Fragment,By=rr.RenderStrategy;function _w(n,a){var s,o;let{transition:u=!0,beforeEnter:d,afterEnter:f,beforeLeave:h,afterLeave:m,enter:p,enterFrom:y,enterTo:b,entered:S,leave:T,leaveFrom:j,leaveTo:E,...C}=n,[A,L]=w.useState(null),U=w.useRef(null),Y=_y(n),X=gn(...Y?[U,a,L]:a===null?[]:[a]),tt=(s=C.unmount)==null||s?ha.Unmount:ha.Hidden,{show:Z,appear:nt,initial:xt}=Vw(),[J,ft]=w.useState(Z?"visible":"hidden"),vt=Lw(),{register:Ot,unregister:Nt}=vt;Ee(()=>Ot(U),[Ot,U]),Ee(()=>{if(tt===ha.Hidden&&U.current){if(Z&&J!=="visible"){ft("visible");return}return Un(J,{hidden:()=>Nt(U),visible:()=>Ot(U)})}},[J,U,Ot,Nt,Z,tt]);let Rt=jr();Ee(()=>{if(Y&&Rt&&J==="visible"&&U.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,J,Rt,Y]);let k=xt&&!nt,K=nt&&Z&&xt,F=w.useRef(!1),it=Uy(()=>{F.current||(ft("hidden"),Nt(U))},vt),ct=jt(bt=>{F.current=!0;let Ft=bt?"enter":"leave";it.onStart(U,Ft,Vt=>{Vt==="enter"?d==null||d():Vt==="leave"&&(h==null||h())})}),M=jt(bt=>{let Ft=bt?"enter":"leave";F.current=!1,it.onStop(U,Ft,Vt=>{Vt==="enter"?f==null||f():Vt==="leave"&&(m==null||m())}),Ft==="leave"&&!Mr(it)&&(ft("hidden"),Nt(U))});w.useEffect(()=>{Y&&u||(ct(Z),M(Z))},[Z,Y,u]);let $=!(!u||!Y||!Rt||k),[,q]=tw($,A,Z,{start:ct,end:M}),Q=Ga({ref:X,className:((o=$f(C.className,K&&p,K&&y,q.enter&&p,q.enter&&q.closed&&y,q.enter&&!q.closed&&b,q.leave&&T,q.leave&&!q.closed&&j,q.leave&&q.closed&&E,!q.transition&&Z&&S))==null?void 0:o.trim())||void 0,...I2(q)}),lt=0;J==="visible"&&(lt|=nn.Open),J==="hidden"&&(lt|=nn.Closed),Z&&J==="hidden"&&(lt|=nn.Opening),!Z&&J==="visible"&&(lt|=nn.Closing);let dt=Ae();return st.createElement(Cr.Provider,{value:it},st.createElement(lw,{value:lt},dt({ourProps:Q,theirProps:C,defaultTag:ky,features:By,visible:J==="visible",name:"Transition.Child"})))}function Uw(n,a){let{show:s,appear:o=!1,unmount:u=!0,...d}=n,f=w.useRef(null),h=_y(n),m=gn(...h?[f,a]:a===null?[]:[a]);jr();let p=Ar();if(s===void 0&&p!==null&&(s=(p&nn.Open)===nn.Open),s===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,b]=w.useState(s?"visible":"hidden"),S=Uy(()=>{s||b("hidden")}),[T,j]=w.useState(!0),E=w.useRef([s]);Ee(()=>{T!==!1&&E.current[E.current.length-1]!==s&&(E.current.push(s),j(!1))},[E,s]);let C=w.useMemo(()=>({show:s,appear:o,initial:T}),[s,o,T]);Ee(()=>{s?b("visible"):!Mr(S)&&f.current!==null&&b("hidden")},[s,S]);let A={unmount:u},L=jt(()=>{var X;T&&j(!1),(X=n.beforeEnter)==null||X.call(n)}),U=jt(()=>{var X;T&&j(!1),(X=n.beforeLeave)==null||X.call(n)}),Y=Ae();return st.createElement(Cr.Provider,{value:S},st.createElement(Nr.Provider,{value:C},Y({ourProps:{...A,as:w.Fragment,children:st.createElement(Hy,{ref:m,...A,...d,beforeEnter:L,beforeLeave:U})},theirProps:{},defaultTag:w.Fragment,features:By,visible:y==="visible",name:"Transition"})))}function kw(n,a){let s=w.useContext(Nr)!==null,o=Ar()!==null;return st.createElement(st.Fragment,null,!s&&o?st.createElement(Kf,{ref:a,...n}):st.createElement(Hy,{ref:a,...n}))}let Kf=ce(Uw),Hy=ce(_w),Ed=ce(kw),Bw=Object.assign(Kf,{Child:Ed,Root:Kf});var Hw=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Hw||{}),$w=(n=>(n[n.SetTitleId=0]="SetTitleId",n))($w||{});let Gw={0(n,a){return n.titleId===a.id?n:{...n,titleId:a.id}}},Ad=w.createContext(null);Ad.displayName="DialogContext";function Dr(n){let a=w.useContext(Ad);if(a===null){let s=new Error(`<${n} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,Dr),s}return a}function Yw(n,a){return Un(a.type,Gw,n,a)}let Nv=ce(function(n,a){let s=w.useId(),{id:o=`headlessui-dialog-${s}`,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&nn.Open)===nn.Open);let j=w.useRef(null),E=gn(j,a),C=Sd(j.current),A=u?0:1,[L,U]=w.useReducer(Yw,{titleId:null,descriptionId:null,panelRef:w.createRef()}),Y=jt(()=>d(!1)),X=jt(q=>U({type:0,id:q})),tt=jr()?A===0:!1,[Z,nt]=mw(),xt={get current(){var q;return(q=L.panelRef.current)!=null?q:j.current}},J=Ry(),{resolveContainers:ft}=Tw({mainTreeNode:J,portals:Z,defaultContainers:[xt]}),vt=T!==null?(T&nn.Closing)===nn.Closing:!1;D2(p||vt?!1:tt,{allowed:jt(()=>{var q,Q;return[(Q=(q=j.current)==null?void 0:q.closest("[data-headlessui-portal]"))!=null?Q:null]}),disallowed:jt(()=>{var q;return[(q=J==null?void 0:J.closest("body > *:not(#headlessui-portal-root)"))!=null?q:null]})});let Ot=Sy.get(null);Ee(()=>{if(tt)return Ot.actions.push(o),()=>Ot.actions.pop(o)},[Ot,o,tt]);let Nt=Ty(Ot,w.useCallback(q=>Ot.selectors.isTop(q,o),[Ot,o]));G2(Nt,ft,q=>{q.preventDefault(),Y()}),xw(Nt,C==null?void 0:C.defaultView,q=>{q.preventDefault(),q.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),Y()}),Q2(p||vt?!1:tt,C,ft),z2(tt,j,Y);let[Rt,k]=u2(),K=w.useMemo(()=>[{dialogState:A,close:Y,setTitleId:X,unmount:y},L],[A,Y,X,y,L]),F=ei({open:A===0}),it={ref:E,id:o,role:h,tabIndex:-1,"aria-modal":p?void 0:A===0?!0:void 0,"aria-labelledby":L.titleId,"aria-describedby":Rt,unmount:y},ct=!Sw(),M=qa.None;tt&&!p&&(M|=qa.RestoreFocus,M|=qa.TabLock,m&&(M|=qa.AutoFocus),ct&&(M|=qa.InitialFocus));let $=Ae();return st.createElement(sw,null,st.createElement(Av,{force:!0},st.createElement(gw,null,st.createElement(Ad.Provider,{value:K},st.createElement(zy,{target:j},st.createElement(Av,{force:!1},st.createElement(k,{slot:F},st.createElement(nt,null,st.createElement(Cw,{initialFocus:f,initialFocusFallback:j,containers:ft,features:M},st.createElement(p2,{value:Y},$({ourProps:it,theirProps:b,slot:F,defaultTag:qw,features:Xw,visible:A===0,name:"Dialog"})))))))))))}),qw="div",Xw=rr.RenderStrategy|rr.Static;function Kw(n,a){let{transition:s=!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||s)&&!u.static?st.createElement(jv,null,st.createElement(Bw,{show:o,transition:s,unmount:u.unmount},st.createElement(Nv,{ref:a,...u}))):st.createElement(jv,null,st.createElement(Nv,{ref:a,open:o,...u}))}let Fw="div";function Zw(n,a){let s=w.useId(),{id:o=`headlessui-dialog-panel-${s}`,transition:u=!1,...d}=n,[{dialogState:f,unmount:h},m]=Dr("Dialog.Panel"),p=gn(a,m.panelRef),y=ei({open:f===0}),b=jt(C=>{C.stopPropagation()}),S={ref:p,id:o,onClick:b},T=u?Ed:w.Fragment,j=u?{unmount:h}:{},E=Ae();return st.createElement(T,{...j},E({ourProps:S,theirProps:d,slot:y,defaultTag:Fw,name:"Dialog.Panel"}))}let Qw="div";function Jw(n,a){let{transition:s=!1,...o}=n,[{dialogState:u,unmount:d}]=Dr("Dialog.Backdrop"),f=ei({open:u===0}),h={ref:a,"aria-hidden":!0},m=s?Ed:w.Fragment,p=s?{unmount:d}:{},y=Ae();return st.createElement(m,{...p},y({ourProps:h,theirProps:o,slot:f,defaultTag:Qw,name:"Dialog.Backdrop"}))}let Pw="h2";function Ww(n,a){let s=w.useId(),{id:o=`headlessui-dialog-title-${s}`,...u}=n,[{dialogState:d,setTitleId:f}]=Dr("Dialog.Title"),h=gn(a);w.useEffect(()=>(f(o),()=>f(null)),[o,f]);let m=ei({open:d===0}),p={ref:h,id:o};return Ae()({ourProps:p,theirProps:u,slot:m,defaultTag:Pw,name:"Dialog.Title"})}let Iw=ce(Kw),$y=ce(Zw),tE=ce(Jw),eE=ce(Ww),nE=Object.assign(Iw,{Panel:$y,Title:eE,Description:h2});const fr=w.createContext({});function aE(n){const a=w.useRef(null);return a.current===null&&(a.current=n()),a.current}const iE=typeof window<"u",Gy=iE?w.useLayoutEffect:w.useEffect,jd=w.createContext(null);function Nd(n,a){n.indexOf(a)===-1&&n.push(a)}function dr(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const pn=(n,a,s)=>s>a?a:s<n?n:s;let Cd=()=>{};const va={},Yy=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function qy(n){return typeof n=="object"&&n!==null}const Xy=n=>/^0[^.\s]+$/u.test(n);function Ky(n){let a;return()=>(a===void 0&&(a=n()),a)}const Je=n=>n,lE=(n,a)=>s=>a(n(s)),bs=(...n)=>n.reduce(lE),fs=(n,a,s)=>{const o=a-n;return o===0?1:(s-n)/o};class Md{constructor(){this.subscriptions=[]}add(a){return Nd(this.subscriptions,a),()=>dr(this.subscriptions,a)}notify(a,s,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,s,o);else for(let d=0;d<u;d++){const f=this.subscriptions[d];f&&f(a,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=n=>n*1e3,Ze=n=>n/1e3;function Fy(n,a){return a?n*(1e3/a):0}const Zy=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,sE=1e-7,oE=12;function rE(n,a,s,o,u){let d,f,h=0;do f=a+(s-a)/2,d=Zy(f,o,u)-n,d>0?s=f:a=f;while(Math.abs(d)>sE&&++h<oE);return f}function xs(n,a,s,o){if(n===a&&s===o)return Je;const u=d=>rE(d,0,1,n,s);return d=>d===0||d===1?d:Zy(u(d),a,o)}const Qy=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,Jy=n=>a=>1-n(1-a),Py=xs(.33,1.53,.69,.99),Dd=Jy(Py),Wy=Qy(Dd),Iy=n=>n>=1?1:(n*=2)<1?.5*Dd(n):.5*(2-Math.pow(2,-10*(n-1))),zd=n=>1-Math.sin(Math.acos(n)),tb=Jy(zd),eb=Qy(zd),uE=xs(.42,0,1,1),cE=xs(0,0,.58,1),nb=xs(.42,0,.58,1),fE=n=>Array.isArray(n)&&typeof n[0]!="number",ab=n=>Array.isArray(n)&&typeof n[0]=="number",dE={linear:Je,easeIn:uE,easeInOut:nb,easeOut:cE,circIn:zd,circInOut:eb,circOut:tb,backIn:Dd,backInOut:Wy,backOut:Py,anticipate:Iy},hE=n=>typeof n=="string",Cv=n=>{if(ab(n)){Cd(n.length===4);const[a,s,o,u]=n;return xs(a,s,o,u)}else if(hE(n))return dE[n];return n},Ko=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mE(n,a){let s=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 j=S&&u?s:o;return b&&f.add(y),j.add(y),y},cancel:y=>{o.delete(y),f.delete(y)},process:y=>{if(h=y,u){d=!0;return}u=!0;const b=s;s=o,o=b,s.forEach(m),s.clear(),u=!1,d&&(d=!1,p.process(y))}};return p}const pE=40;function ib(n,a){let s=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=Ko.reduce((U,Y)=>(U[Y]=mE(d),U),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:y,update:b,preRender:S,render:T,postRender:j}=f,E=()=>{const U=va.useManualTiming,Y=U?u.timestamp:performance.now();s=!1,U||(u.delta=o?1e3/60:Math.max(Math.min(Y-u.timestamp,pE),1)),u.timestamp=Y,u.isProcessing=!0,h.process(u),m.process(u),p.process(u),y.process(u),b.process(u),S.process(u),T.process(u),j.process(u),u.isProcessing=!1,s&&a&&(o=!1,n(E))},C=()=>{s=!0,o=!0,u.isProcessing||n(E)};return{schedule:Ko.reduce((U,Y)=>{const X=f[Y];return U[Y]=(tt,Z=!1,nt=!1)=>(s||C(),X.schedule(tt,Z,nt)),U},{}),cancel:U=>{for(let Y=0;Y<Ko.length;Y++)f[Ko[Y]].cancel(U)},state:u,steps:f}}const{schedule:zt,cancel:ya,state:re,steps:hf}=ib(typeof requestAnimationFrame<"u"?requestAnimationFrame:Je,!0);let Io;function gE(){Io=void 0}const me={now:()=>(Io===void 0&&me.set(re.isProcessing||va.useManualTiming?re.timestamp:performance.now()),Io),set:n=>{Io=n,queueMicrotask(gE)}},lb=n=>a=>typeof a=="string"&&a.startsWith(n),sb=lb("--"),vE=lb("var(--"),Od=n=>vE(n)?yE.test(n.split("/*")[0].trim()):!1,yE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Mv(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Wi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ds={...Wi,transform:n=>pn(0,1,n)},Fo={...Wi,default:1},ss=n=>Math.round(n*1e5)/1e5,Rd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bE(n){return n==null}const xE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vd=(n,a)=>s=>!!(typeof s=="string"&&xE.test(s)&&s.startsWith(n)||a&&!bE(s)&&Object.prototype.hasOwnProperty.call(s,a)),ob=(n,a,s)=>o=>{if(typeof o!="string")return o;const[u,d,f,h]=o.match(Rd);return{[n]:parseFloat(u),[a]:parseFloat(d),[s]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},SE=n=>pn(0,255,n),mf={...Wi,transform:n=>Math.round(SE(n))},Za={test:Vd("rgb","red"),parse:ob("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:o=1})=>"rgba("+mf.transform(n)+", "+mf.transform(a)+", "+mf.transform(s)+", "+ss(ds.transform(o))+")"};function TE(n){let a="",s="",o="",u="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),o=n.substring(5,7),u=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),o=n.substring(3,4),u=n.substring(4,5),a+=a,s+=s,o+=o,u+=u),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const Ff={test:Vd("#"),parse:TE,transform:Za.transform},Ss=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ca=Ss("deg"),mn=Ss("%"),W=Ss("px"),wE=Ss("vh"),EE=Ss("vw"),Dv={...mn,parse:n=>mn.parse(n)/100,transform:n=>mn.transform(n*100)},Gi={test:Vd("hsl","hue"),parse:ob("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:o=1})=>"hsla("+Math.round(n)+", "+mn.transform(ss(a))+", "+mn.transform(ss(s))+", "+ss(ds.transform(o))+")"},Wt={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=Wt.parse(n);return a.alpha=0,Wt.transform(a)}},AE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jE(n){var a,s;return isNaN(n)&&typeof n=="string"&&(((a=n.match(Rd))==null?void 0:a.length)||0)+(((s=n.match(AE))==null?void 0:s.length)||0)>0}const rb="number",ub="color",NE="var",CE="var(",zv="${}",ME=/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(),s=[],o={color:[],number:[],var:[]},u=[];let d=0;const h=a.replace(ME,m=>(Wt.test(m)?(o.color.push(d),u.push(ub),s.push(Wt.parse(m))):m.startsWith(CE)?(o.var.push(d),u.push(NE),s.push(m)):(o.number.push(d),u.push(rb),s.push(parseFloat(m))),++d,zv)).split(zv);return{values:s,split:h,indexes:o,types:u}}function DE(n){return Fi(n).values}function cb({split:n,types:a}){const s=n.length;return o=>{let u="";for(let d=0;d<s;d++)if(u+=n[d],o[d]!==void 0){const f=a[d];f===rb?u+=ss(o[d]):f===ub?u+=Wt.transform(o[d]):u+=o[d]}return u}}function zE(n){return cb(Fi(n))}const OE=n=>typeof n=="number"?0:Wt.test(n)?Wt.getAnimatableNone(n):n,RE=(n,a)=>typeof n=="number"?a!=null&&a.trim().endsWith("/")?n:0:OE(n);function VE(n){const a=Fi(n);return cb(a)(a.values.map((o,u)=>RE(o,a.split[u])))}const an={test:jE,parse:DE,createTransformer:zE,getAnimatableNone:VE};function pf(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function LE({hue:n,saturation:a,lightness:s,alpha:o}){n/=360,a/=100,s/=100;let u=0,d=0,f=0;if(!a)u=d=f=s;else{const h=s<.5?s*(1+a):s+a-s*a,m=2*s-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 s=>s>0?a:n}const kt=(n,a,s)=>n+(a-n)*s,gf=(n,a,s)=>{const o=n*n,u=s*(a*a-o)+o;return u<0?0:Math.sqrt(u)},_E=[Ff,Za,Gi],UE=n=>_E.find(a=>a.test(n));function Ov(n){const a=UE(n);if(!a)return!1;let s=a.parse(n);return a===Gi&&(s=LE(s)),s}const Rv=(n,a)=>{const s=Ov(n),o=Ov(a);if(!s||!o)return hr(n,a);const u={...s};return d=>(u.red=gf(s.red,o.red,d),u.green=gf(s.green,o.green,d),u.blue=gf(s.blue,o.blue,d),u.alpha=kt(s.alpha,o.alpha,d),Za.transform(u))},Zf=new Set(["none","hidden"]);function kE(n,a){return Zf.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function BE(n,a){return s=>kt(n,a,s)}function Ld(n){return typeof n=="number"?BE:typeof n=="string"?Od(n)?hr:Wt.test(n)?Rv:GE:Array.isArray(n)?fb:typeof n=="object"?Wt.test(n)?Rv:HE:hr}function fb(n,a){const s=[...n],o=s.length,u=n.map((d,f)=>Ld(d)(d,a[f]));return d=>{for(let f=0;f<o;f++)s[f]=u[f](d);return s}}function HE(n,a){const s={...n,...a},o={};for(const u in s)n[u]!==void 0&&a[u]!==void 0&&(o[u]=Ld(n[u])(n[u],a[u]));return u=>{for(const d in o)s[d]=o[d](u);return s}}function $E(n,a){const s=[],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;s[u]=h,o[d]++}return s}const GE=(n,a)=>{const s=an.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?kE(n,a):bs(fb($E(o,u),u.values),s):hr(n,a)};function db(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?kt(n,a,s):Ld(n)(n,a)}const YE=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>zt.update(a,s),stop:()=>ya(a),now:()=>re.isProcessing?re.timestamp:me.now()}},hb=(n,a,s=10)=>{let o="";const u=Math.max(Math.round(a/s),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 s=50;let o=n.next(a);for(;!o.done&&a<mr;)a+=s,o=n.next(a);return a>=mr?1/0:a}function qE(n,a=100,s){const o=s({...n,keyframes:[0,a]}),u=Math.min(_d(o),mr);return{type:"keyframes",ease:d=>o.next(u*d).value/a,duration:Ze(u)}}const Gt={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 XE=12;function KE(n,a,s){let o=s;for(let u=1;u<XE;u++)o=o-n(o)/a(o);return o}const vf=.001;function FE({duration:n=Gt.duration,bounce:a=Gt.bounce,velocity:s=Gt.velocity,mass:o=Gt.mass}){let u,d,f=1-a;f=pn(Gt.minDamping,Gt.maxDamping,f),n=pn(Gt.minDuration,Gt.maxDuration,Ze(n)),f<1?(u=p=>{const y=p*f,b=y*n,S=y-s,T=Qf(p,f),j=Math.exp(-b);return vf-S/T*j},d=p=>{const b=p*f*n,S=b*s+s,T=Math.pow(f,2)*Math.pow(p,2)*n,j=Math.exp(-b),E=Qf(Math.pow(p,2),f);return(-u(p)+vf>0?-1:1)*((S-T)*j)/E}):(u=p=>{const y=Math.exp(-p*n),b=(p-s)*n+1;return-vf+y*b},d=p=>{const y=Math.exp(-p*n),b=(s-p)*(n*n);return y*b});const h=5/n,m=KE(u,d,h);if(n=_e(n),isNaN(m))return{stiffness:Gt.stiffness,damping:Gt.damping,duration:n};{const p=Math.pow(m,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:n}}}const ZE=["duration","bounce"],QE=["stiffness","damping","mass"];function Vv(n,a){return a.some(s=>n[s]!==void 0)}function JE(n){let a={velocity:Gt.velocity,stiffness:Gt.stiffness,damping:Gt.damping,mass:Gt.mass,isResolvedFromDuration:!1,...n};if(!Vv(n,QE)&&Vv(n,ZE))if(a.velocity=0,n.visualDuration){const s=n.visualDuration,o=2*Math.PI/(s*1.2),u=o*o,d=2*pn(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:Gt.mass,stiffness:u,damping:d}}else{const s=FE({...n,velocity:0});a={...a,...s,mass:Gt.mass},a.isResolvedFromDuration=!0}return a}function pr(n=Gt.visualDuration,a=Gt.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:o,restDelta:u}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],h={done:!1,value:d},{stiffness:m,damping:p,mass:y,duration:b,velocity:S,isResolvedFromDuration:T}=JE({...s,velocity:-Ze(s.velocity||0)}),j=S||0,E=p/(2*Math.sqrt(m*y)),C=f-d,A=Ze(Math.sqrt(m/y)),L=Math.abs(C)<5;o||(o=L?Gt.restSpeed.granular:Gt.restSpeed.default),u||(u=L?Gt.restDelta.granular:Gt.restDelta.default);let U,Y,X,tt,Z,nt;if(E<1)X=Qf(A,E),tt=(j+E*A*C)/X,U=J=>{const ft=Math.exp(-E*A*J);return f-ft*(tt*Math.sin(X*J)+C*Math.cos(X*J))},Z=E*A*tt+C*X,nt=E*A*C-tt*X,Y=J=>Math.exp(-E*A*J)*(Z*Math.sin(X*J)+nt*Math.cos(X*J));else if(E===1){U=ft=>f-Math.exp(-A*ft)*(C+(j+A*C)*ft);const J=j+A*C;Y=ft=>Math.exp(-A*ft)*(A*J*ft-j)}else{const J=A*Math.sqrt(E*E-1);U=Nt=>{const Rt=Math.exp(-E*A*Nt),k=Math.min(J*Nt,300);return f-Rt*((j+E*A*C)*Math.sinh(k)+J*C*Math.cosh(k))/J};const ft=(j+E*A*C)/J,vt=E*A*ft-C*J,Ot=E*A*C-ft*J;Y=Nt=>{const Rt=Math.exp(-E*A*Nt),k=Math.min(J*Nt,300);return Rt*(vt*Math.sinh(k)+Ot*Math.cosh(k))}}const xt={calculatedDuration:T&&b||null,velocity:J=>_e(Y(J)),next:J=>{if(!T&&E<1){const vt=Math.exp(-E*A*J),Ot=Math.sin(X*J),Nt=Math.cos(X*J),Rt=f-vt*(tt*Ot+C*Nt),k=_e(vt*(Z*Ot+nt*Nt));return h.done=Math.abs(k)<=o&&Math.abs(f-Rt)<=u,h.value=h.done?f:Rt,h}const ft=U(J);if(T)h.done=J>=b;else{const vt=_e(Y(J));h.done=Math.abs(vt)<=o&&Math.abs(f-ft)<=u}return h.value=h.done?f:ft,h},toString:()=>{const J=Math.min(_d(xt),mr),ft=hb(vt=>xt.next(J*vt).value,J,30);return J+"ms "+ft},toTransition:()=>{}};return xt}pr.applyToOptions=n=>{const a=qE(n,100,pr);return n.ease=a.ease,n.duration=_e(a.duration),n.type="keyframes",n};const PE=5;function mb(n,a,s){const o=Math.max(a-PE,0);return Fy(s-n(o),a-o)}function Jf({keyframes:n,velocity:a=0,power:s=.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=nt=>h!==void 0&&nt<h||m!==void 0&&nt>m,j=nt=>h===void 0?m:m===void 0||Math.abs(h-nt)<Math.abs(m-nt)?h:m;let E=s*a;const C=b+E,A=f===void 0?C:f(C);A!==C&&(E=A-b);const L=nt=>-E*Math.exp(-nt/o),U=nt=>A+L(nt),Y=nt=>{const xt=L(nt),J=U(nt);S.done=Math.abs(xt)<=p,S.value=S.done?A:J};let X,tt;const Z=nt=>{T(S.value)&&(X=nt,tt=pr({keyframes:[S.value,j(S.value)],velocity:mb(U,nt,S.value),damping:u,stiffness:d,restDelta:p,restSpeed:y}))};return Z(0),{calculatedDuration:null,next:nt=>{let xt=!1;return!tt&&X===void 0&&(xt=!0,Y(nt),Z(nt)),X!==void 0&&nt>=X?tt.next(nt-X):(!xt&&Y(nt),S)}}}function WE(n,a,s){const o=[],u=s||va.mix||db,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]||Je:a;h=bs(m,h)}o.push(h)}return o}function IE(n,a,{clamp:s=!0,ease:o,mixer:u}={}){const d=n.length;if(Cd(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=WE(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=fs(n[b],n[b+1],y);return h[b](S)};return s?y=>p(pn(n[0],n[d-1],y)):p}function t5(n,a){const s=n[n.length-1];for(let o=1;o<=a;o++){const u=fs(0,a,o);n.push(kt(s,1,u))}}function e5(n){const a=[0];return t5(a,n.length-1),a}function n5(n,a){return n.map(s=>s*a)}function a5(n,a){return n.map(()=>a||nb).splice(0,n.length-1)}function os({duration:n=300,keyframes:a,times:s,ease:o="easeInOut"}){const u=fE(o)?o.map(Cv):Cv(o),d={done:!1,value:a[0]},f=n5(s&&s.length===a.length?s:e5(a),n),h=IE(f,a,{ease:Array.isArray(u)?u:a5(a,u)});return{calculatedDuration:n,next:m=>(d.value=h(m),d.done=m>=n,d)}}const i5=n=>n!==null;function zr(n,{repeat:a,repeatType:s="loop"},o,u=1){const d=n.filter(i5),h=u<0||a&&s!=="loop"&&a%2===1?0:d.length-1;return!h||o===void 0?d[h]:o}const l5={decay:Jf,inertia:Jf,tween:os,keyframes:os,spring:pr};function pb(n){typeof n.type=="string"&&(n.type=l5[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,s){return this.finished.then(a,s)}}const s5=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:s}=this.options;s&&s.updatedAt!==me.now()&&this.tick(me.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;pb(a);const{type:s=os,repeat:o=0,repeatDelay:u=0,repeatType:d,velocity:f=0}=a;let{keyframes:h}=a;const m=s||os;m!==os&&typeof h[0]!="number"&&(this.mixKeyframes=bs(s5,db(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 s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!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:j,onUpdate:E,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)),s?this.currentTime=a:this.updateTime(a);const A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?A<0:A>u;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let U=this.currentTime,Y=o;if(b){const nt=Math.min(this.currentTime,u)/h;let xt=Math.floor(nt),J=nt%1;!J&&nt>=1&&(J=1),J===1&&xt--,xt=Math.min(xt,b+1),!!(xt%2)&&(S==="reverse"?(J=1-J,T&&(J-=T/h)):S==="mirror"&&(Y=f)),U=pn(0,1,J)*h}let X;L?(this.delayState.value=y[0],X=this.delayState):X=Y.next(U),d&&!L&&(X.value=d(X.value));let{done:tt}=X;!L&&m!==null&&(tt=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const Z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&tt);return Z&&j!==Jf&&(X.value=zr(y,this.options,C,this.speed)),E&&E(X.value),Z&&this.finish(),X}then(a,s){return this.finished.then(a,s)}get duration(){return Ze(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ze(a)}get time(){return Ze(this.currentTime)}set time(a){a=_e(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 s=this.generator.next(a).value;return mb(o=>this.generator.next(o).value,a,s)}get speed(){return this.playbackSpeed}set speed(a){const s=this.playbackSpeed!==a;s&&this.driver&&this.updateTime(me.now()),this.playbackSpeed=a,s&&this.driver&&(this.time=Ze(this.currentTime))}play(){var u,d;if(this.isStopped)return;const{driver:a=YE,startTime:s}=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=s??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(me.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(a=this.options).onComplete)==null||s.call(a)}cancel(){var a,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(a=this.options).onCancel)==null||s.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 s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),a.observe(this)}}function o5(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const Qa=n=>n*180/Math.PI,Pf=n=>{const a=Qa(Math.atan2(n[1],n[0]));return Wf(a)},r5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Pf,rotateZ:Pf,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),Lv=Pf,_v=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Uv=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),u5={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:Lv,rotate:Lv,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 td(n,a){if(!n||n==="none")return If(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,u;if(s)o=u5,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=r5,u=h}if(!u)return If(a);const d=o[a],f=u[1].split(",").map(f5);return typeof d=="function"?d(f):f[d]}const c5=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return td(s,a)};function f5(n){return parseFloat(n.trim())}const Ii=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tl=new Set(Ii),kv=n=>n===Wi||n===W,d5=new Set(["x","y","z"]),h5=Ii.filter(n=>!d5.has(n));function m5(n){const a=[];return h5.forEach(s=>{const o=n.getValue(s);o!==void 0&&(a.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),a}const pa={width:({x:n},{paddingLeft:a="0",paddingRight:s="0",boxSizing:o})=>{const u=n.max-n.min;return o==="border-box"?u:u-parseFloat(a)-parseFloat(s)},height:({y:n},{paddingTop:a="0",paddingBottom:s="0",boxSizing:o})=>{const u=n.max-n.min;return o==="border-box"?u:u-parseFloat(a)-parseFloat(s)},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})=>td(a,"x"),y:(n,{transform:a})=>td(a,"y")};pa.translateX=pa.x;pa.translateY=pa.y;const Ja=new Set;let ed=!1,nd=!1,ad=!1;function gb(){if(nd){const n=Array.from(Ja).filter(o=>o.needsMeasurement),a=new Set(n.map(o=>o.element)),s=new Map;a.forEach(o=>{const u=m5(o);u.length&&(s.set(o,u),o.render())}),n.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const u=s.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,ed=!1,Ja.forEach(n=>n.complete(ad)),Ja.clear()}function vb(){Ja.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(nd=!0)})}function p5(){ad=!0,vb(),gb(),ad=!1}class kd{constructor(a,s,o,u,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=o,this.motionValue=u,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Ja.add(this),ed||(ed=!0,zt.read(vb),zt.resolveKeyframes(gb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,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&&s){const h=o.readValue(s,f);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=f),u&&d===void 0&&u.set(a[0])}o5(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Ja.delete(this)}cancel(){this.state==="scheduled"&&(Ja.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const g5=n=>n.startsWith("--");function yb(n,a,s){g5(a)?n.style.setProperty(a,s):n.style[a]=s}const v5={};function bb(n,a){const s=Ky(n);return()=>v5[a]??s()}const y5=bb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),xb=bb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),es=([n,a,s,o])=>`cubic-bezier(${n}, ${a}, ${s}, ${o})`,Bv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:es([0,.65,.55,1]),circOut:es([.55,0,1,.45]),backIn:es([.31,.01,.66,-.59]),backOut:es([.33,1.53,.69,.99])};function Sb(n,a){if(n)return typeof n=="function"?xb()?hb(n,a):"ease-out":ab(n)?es(n):Array.isArray(n)?n.map(s=>Sb(s,a)||Bv.easeOut):Bv[n]}function b5(n,a,s,{delay:o=0,duration:u=300,repeat:d=0,repeatType:f="loop",ease:h="easeOut",times:m}={},p=void 0){const y={[a]:s};m&&(y.offset=m);const b=Sb(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 Tb(n){return typeof n=="function"&&"applyToOptions"in n}function x5({type:n,...a}){return Tb(n)&&xb()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class wb extends Ud{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:s,name:o,keyframes:u,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=a,Cd(typeof a.type!="string");const p=x5(a);this.animation=b5(s,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),yb(s,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,s;(s=(a=this.animation).finish)==null||s.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 s,o,u;const a=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((u=(o=this.animation).commitStyles)==null||u.call(o))}get duration(){var s,o;const a=((o=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:o.call(s).duration)||0;return Ze(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ze(a)}get time(){return Ze(Number(this.animation.currentTime)||0)}set time(a){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_e(a),s&&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:s,rangeEnd:o,observe:u}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&y5()?(this.animation.timeline=a,s&&(this.animation.rangeStart=s),o&&(this.animation.rangeEnd=o),Je):u(this)}}const Eb={anticipate:Iy,backInOut:Wy,circInOut:eb};function S5(n){return n in Eb}function T5(n){typeof n.ease=="string"&&S5(n.ease)&&(n.ease=Eb[n.ease])}const yf=10;class w5 extends wb{constructor(a){T5(a),pb(a),super(a),a.startTime!==void 0&&a.autoplay!==!1&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:o,onComplete:u,element:d,...f}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const h=new gr({...f,autoplay:!1}),m=Math.max(yf,me.now()-this.startTime),p=pn(0,yf,m-yf),y=h.sample(m).value,{name:b}=this.options;d&&b&&yb(d,b,y),s.setWithVelocity(h.sample(Math.max(0,m-p)).value,y,p),h.stop()}}const Hv=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(an.test(n)||n==="0")&&!n.startsWith("url("));function E5(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function A5(n,a,s,o){const u=n[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const d=n[n.length-1],f=Hv(u,a),h=Hv(d,a);return!f||!h?!1:E5(n)||(s==="spring"||Tb(s))&&o}function id(n){n.duration=0,n.type="keyframes"}const Ab=new Set(["opacity","clipPath","filter","transform"]),j5=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function N5(n){for(let a=0;a<n.length;a++)if(typeof n[a]=="string"&&j5.test(n[a]))return!0;return!1}const C5=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),M5=Ky(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function D5(n){var b;const{motionValue:a,name:s,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 M5()&&s&&(Ab.has(s)||C5.has(s)&&N5(h))&&(s!=="transform"||!y)&&!p&&!o&&u!=="mirror"&&d!==0&&f!=="inertia"}const z5=40;class O5 extends Ud{constructor({autoplay:a=!0,delay:s=0,type:o="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:f="loop",keyframes:h,name:m,motionValue:p,element:y,...b}){var j;super(),this.stop=()=>{var E,C;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=me.now();const S={autoplay:a,delay:s,type:o,repeat:u,repeatDelay:d,repeatType:f,name:m,motionValue:p,element:y,...b},T=(y==null?void 0:y.KeyframeResolver)||kd;this.keyframeResolver=new T(h,(E,C,A)=>this.onKeyframesResolved(E,C,S,!A),m,p,y),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(a,s,o,u){var A,L;this.keyframeResolver=void 0;const{name:d,type:f,velocity:h,delay:m,isHandoff:p,onUpdate:y}=o;this.resolvedAt=me.now();let b=!0;A5(a,d,f,h)||(b=!1,(va.instantAnimations||!m)&&(y==null||y(zr(a,o,s))),a[0]=a[a.length-1],id(o),o.repeat=0);const T={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>z5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:a},j=b&&!p&&D5(T),E=(L=(A=T.motionValue)==null?void 0:A.owner)==null?void 0:L.current;let C;if(j)try{C=new w5({...T,element:E})}catch{C=new gr(T)}else C=new gr(T);C.finished.then(()=>{this.notifyFinished()}).catch(Je),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,s){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),p5()),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 jb(n,a,s,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 s=="function"?s(d,f):u===1?d*o:h-d*o}const R5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V5(n){const a=R5.exec(n);if(!a)return[,];const[,s,o,u]=a;return[`--${s??o}`,u]}function Nb(n,a,s=1){const[o,u]=V5(n);if(!o)return;const d=window.getComputedStyle(a).getPropertyValue(o);if(d){const f=d.trim();return Yy(f)?parseFloat(f):f}return Od(u)?Nb(u,a,s+1):u}const L5={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},k5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B5=(n,{keyframes:a})=>a.length>2?U5:tl.has(n)?n.startsWith("scale")?_5(a[1]):L5:k5;function Cb(n,a){if(n!=null&&n.inherit&&a){const{inherit:s,...o}=n;return{...a,...o}}return n}function Bd(n,a){const s=(n==null?void 0:n[a])??(n==null?void 0:n.default)??n;return s!==n?Cb(s,n):s}const H5=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function $5(n){for(const a in n)if(!H5.has(a))return!0;return!1}const Hd=(n,a,s,o={},u,d)=>f=>{const h=Bd(o,n)||{},m=h.delay||o.delay||0;let{elapsed:p=0}=o;p=p-_e(m);const y={keyframes:Array.isArray(s)?s:[null,s],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};$5(h)||Object.assign(y,B5(n,y)),y.duration&&(y.duration=_e(y.duration)),y.repeatDelay&&(y.repeatDelay=_e(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){zt.update(()=>{y.onUpdate(S),y.onComplete()});return}}return h.isSync?new gr(y):new O5(y)};function $v(n){const a=[{},{}];return n==null||n.values.forEach((s,o)=>{a[0][o]=s.get(),a[1][o]=s.getVelocity()}),a}function $d(n,a,s,o){if(typeof a=="function"){const[u,d]=$v(o);a=a(s!==void 0?s:n.custom,u,d)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[u,d]=$v(o);a=a(s!==void 0?s:n.custom,u,d)}return a}function Pa(n,a,s){const o=n.getProps();return $d(o,a,s!==void 0?s:o.custom,n)}const Mb=new Set(["width","height","top","left","right","bottom",...Ii]),Gv=30,G5=n=>!isNaN(parseFloat(n));class Y5{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const u=me.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=s.owner}setCurrent(a){this.current=a,this.updatedAt=me.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=G5(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new Md);const o=this.events[a].add(s);return a==="change"?()=>{o(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&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=me.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Gv)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Gv);return Fy(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(s),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,s;(a=this.dependents)==null||a.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zi(n,a){return new Y5(n,a)}const ld=n=>Array.isArray(n);function q5(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Zi(s))}function X5(n){return ld(n)?n[n.length-1]||0:n}function K5(n,a){const s=Pa(n,a);let{transitionEnd:o={},transition:u={},...d}=s||{};d={...d,...o};for(const f in d){const h=X5(d[f]);q5(n,f,h)}}const ue=n=>!!(n&&n.getVelocity);function F5(n){return!!(ue(n)&&n.add)}function sd(n,a){const s=n.getValue("willChange");if(F5(s))return s.add(a);if(!s&&va.WillChange){const o=new va.WillChange("auto");n.addValue("willChange",o),o.add(a)}}function Gd(n){return n.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const Z5="framerAppearId",Db="data-"+Gd(Z5);function zb(n){return n.props[Db]}function Q5({protectedKeys:n,needsAnimating:a},s){const o=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,o}function Ob(n,a,{delay:s=0,transitionOverride:o,type:u}={}){let{transition:d,transitionEnd:f,...h}=a;const m=n.getDefaultTransition();d=d?Cb(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),j=h[S];if(j===void 0||b&&Q5(b,S))continue;const E={delay:s,...Bd(d||{},S)},C=T.get();if(C!==void 0&&!T.isAnimating()&&!Array.isArray(j)&&j===C&&!E.velocity){zt.update(()=>T.set(j));continue}let A=!1;if(window.MotionHandoffAnimation){const Y=zb(n);if(Y){const X=window.MotionHandoffAnimation(Y,S,zt);X!==null&&(E.startTime=X,A=!0)}}sd(n,S);const L=p??n.shouldReduceMotion;T.start(Hd(S,T,j,L&&Mb.has(S)?{type:!1}:E,n,A));const U=T.animation;U&&y.push(U)}if(f){const S=()=>zt.update(()=>{f&&K5(n,f)});y.length?Promise.all(y).then(S):S()}return y}function od(n,a,s={}){var m;const o=Pa(n,a,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(u=s.transitionOverride);const d=o?()=>Promise.all(Ob(n,o,s)):()=>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,s)}:()=>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(s.delay)])}function J5(n,a,s=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:s+(typeof o=="function"?0:o)+jb(n.variantChildren,m,o,u,d)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function P5(n,a,s={}){n.notify("AnimationStart",a);let o;if(Array.isArray(a)){const u=a.map(d=>od(n,d,s));o=Promise.all(u)}else if(typeof a=="string")o=od(n,a,s);else{const u=typeof a=="function"?Pa(n,a,s.custom):a;o=Promise.all(Ob(n,u,s))}return o.then(()=>{n.notify("AnimationComplete",a)})}const W5={test:n=>n==="auto",parse:n=>n},Rb=n=>a=>a.test(n),Vb=[Wi,W,mn,ca,EE,wE,W5],Yv=n=>Vb.find(Rb(n));function I5(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Xy(n):!0}const tA=new Set(["brightness","contrast","saturate","opacity"]);function eA(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[o]=s.match(Rd)||[];if(!o)return n;const u=s.replace(o,"");let d=tA.has(a)?1:0;return o!==s&&(d*=100),a+"("+d+u+")"}const nA=/\b([a-z-]*)\(.*?\)/gu,rd={...an,getAnimatableNone:n=>{const a=n.match(nA);return a?a.map(eA).join(" "):n}},ud={...an,getAnimatableNone:n=>{const a=an.parse(n);return an.createTransformer(n)(a.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},qv={...Wi,transform:Math.round},aA={rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scale:Fo,scaleX:Fo,scaleY:Fo,scaleZ:Fo,skew:ca,skewX:ca,skewY:ca,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ds,originX:Dv,originY:Dv,originZ:W},Yd={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,...aA,zIndex:qv,fillOpacity:ds,strokeOpacity:ds,numOctaves:qv},iA={...Yd,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:rd,WebkitFilter:rd,mask:ud,WebkitMask:ud},Lb=n=>iA[n],lA=new Set([rd,ud]);function _b(n,a){let s=Lb(n);return lA.has(s)||(s=an),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const sA=new Set(["auto","none","0"]);function oA(n,a,s){let o=0,u;for(;o<n.length&&!u;){const d=n[o];typeof d=="string"&&!sA.has(d)&&Fi(d).values.length&&(u=n[o]),o++}if(u&&s)for(const d of a)n[d]=_b(s,u)}class rA extends kd{constructor(a,s,o,u,d){super(a,s,o,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let b=a[y];if(typeof b=="string"&&(b=b.trim(),Od(b))){const S=Nb(b,s.current);S!==void 0&&(a[y]=S),y===a.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!Mb.has(o)||a.length!==2)return;const[u,d]=a,f=Yv(u),h=Yv(d),m=Mv(u),p=Mv(d);if(m!==p&&pa[o]){this.needsMeasurement=!0;return}if(f!==h)if(kv(f)&&kv(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:s}=this,o=[];for(let u=0;u<a.length;u++)(a[u]===null||I5(a[u]))&&o.push(u);o.length&&oA(a,o,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pa[o](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&a.getValue(o,u).jump(u,!1)}measureEndState(){var h;const{element:a,name:s,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const u=a.getValue(s);u&&u.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=pa[s](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 Ub(n,a,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const u=(s==null?void 0:s[n])??o.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(o=>o!=null)}const kb=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function uA(n){return qy(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:qd}=ib(queueMicrotask,!1),en={x:!1,y:!1};function Bb(){return en.x||en.y}function cA(n){return n==="x"||n==="y"?en[n]?null:(en[n]=!0,()=>{en[n]=!1}):en.x||en.y?null:(en.x=en.y=!0,()=>{en.x=en.y=!1})}function Hb(n,a){const s=Ub(n),o=new AbortController,u={passive:!0,...a,signal:o.signal};return[s,u,()=>o.abort()]}function fA(n){return!(n.pointerType==="touch"||Bb())}function dA(n,a,s={}){const[o,u,d]=Hb(n,s);return o.forEach(f=>{let h=!1,m=!1,p;const y=()=>{f.removeEventListener("pointerleave",j)},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)},j=C=>{if(C.pointerType!=="touch"){if(h){m=!0;return}b(C)}},E=C=>{if(!fA(C))return;m=!1;const A=a(f,C);typeof A=="function"&&(p=A,f.addEventListener("pointerleave",j,u))};f.addEventListener("pointerenter",E,u),f.addEventListener("pointerdown",T,u)}),d}const $b=(n,a)=>a?n===a?!0:$b(n,a.parentElement):!1,Xd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,hA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mA(n){return hA.has(n.tagName)||n.isContentEditable===!0}const pA=new Set(["INPUT","SELECT","TEXTAREA"]);function gA(n){return pA.has(n.tagName)||n.isContentEditable===!0}const tr=new WeakSet;function Xv(n){return a=>{a.key==="Enter"&&n(a)}}function bf(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const vA=(n,a)=>{const s=n.currentTarget;if(!s)return;const o=Xv(()=>{if(tr.has(s))return;bf(s,"down");const u=Xv(()=>{bf(s,"up")}),d=()=>bf(s,"cancel");s.addEventListener("keyup",u,a),s.addEventListener("blur",d,a)});s.addEventListener("keydown",o,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),a)};function Kv(n){return Xd(n)&&!Bb()}const Fv=new WeakSet;function yA(n,a,s={}){const[o,u,d]=Hb(n,s),f=h=>{const m=h.currentTarget;if(!Kv(h)||Fv.has(h))return;tr.add(m),s.stopPropagation&&Fv.add(h);const p=a(m,h),y=(T,j)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),tr.has(m)&&tr.delete(m),Kv(T)&&typeof p=="function"&&p(T,{success:j})},b=T=>{y(T,m===window||m===document||s.useGlobalTarget||$b(m,T.target))},S=T=>{y(T,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",S,u)};return o.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",f,u),uA(h)&&(h.addEventListener("focus",p=>vA(p,u)),!mA(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),d}function Kd(n){return qy(n)&&"ownerSVGElement"in n}const er=new WeakMap;let fa;const Gb=(n,a,s)=>(o,u)=>u&&u[0]?u[0][n+"Size"]:Kd(o)&&"getBBox"in o?o.getBBox()[a]:o[s],bA=Gb("inline","width","offsetWidth"),xA=Gb("block","height","offsetHeight");function SA({target:n,borderBoxSize:a}){var s;(s=er.get(n))==null||s.forEach(o=>{o(n,{get width(){return bA(n,a)},get height(){return xA(n,a)}})})}function TA(n){n.forEach(SA)}function wA(){typeof ResizeObserver>"u"||(fa=new ResizeObserver(TA))}function EA(n,a){fa||wA();const s=Ub(n);return s.forEach(o=>{let u=er.get(o);u||(u=new Set,er.set(o,u)),u.add(a),fa==null||fa.observe(o)}),()=>{s.forEach(o=>{const u=er.get(o);u==null||u.delete(a),u!=null&&u.size||fa==null||fa.unobserve(o)})}}const nr=new Set;let Yi;function AA(){Yi=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};nr.forEach(a=>a(n))},window.addEventListener("resize",Yi)}function jA(n){return nr.add(n),Yi||AA(),()=>{nr.delete(n),!nr.size&&typeof Yi=="function"&&(window.removeEventListener("resize",Yi),Yi=void 0)}}function Zv(n,a){return typeof n=="function"?jA(n):EA(n,a)}function NA(n){return Kd(n)&&n.tagName==="svg"}const CA=[...Vb,Wt,an],MA=n=>CA.find(Rb(n)),Qv=()=>({translate:0,scale:1,origin:0,originPoint:0}),qi=()=>({x:Qv(),y:Qv()}),Jv=()=>({min:0,max:0}),te=()=>({x:Jv(),y:Jv()}),DA=new WeakMap;function Or(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function hs(n){return typeof n=="string"||Array.isArray(n)}const Fd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zd=["initial",...Fd];function Rr(n){return Or(n.animate)||Zd.some(a=>hs(n[a]))}function Yb(n){return!!(Rr(n)||n.variants)}function zA(n,a,s){for(const o in a){const u=a[o],d=s[o];if(ue(u))n.addValue(o,u);else if(ue(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 s)a[o]===void 0&&n.removeValue(o);return a}const cd={current:null},qb={current:!1},OA=typeof window<"u";function RA(){if(qb.current=!0,!!OA)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 Pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let vr={};function Xb(n){vr=n}function VA(){return vr}class LA{scrapeMotionValuesFromProps(a,s,o){return{}}constructor({parent:a,props:s,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=kd,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=me.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,zt.render(this.render,!1,!0))};const{latestValues:p,renderState:y}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=y,this.parent=a,this.props=s,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(s),this.isVariantNode=Yb(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const T in S){const j=S[T];p[T]!==void 0&&ue(j)&&j.set(p[T])}}mount(a){var s,o;if(this.hasBeenMounted)for(const u in this.initialValues)(s=this.values.get(u))==null||s.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=a,DA.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:(qb.current||RA(),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(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];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,s){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),s.accelerate&&Ab.has(a)&&this.current instanceof HTMLElement){const{factory:f,keyframes:h,times:m,ease:p,duration:y}=s.accelerate,b=new wb({element:this.current,name:a,keyframes:h,times:m,ease:p,duration:_e(y)}),S=f(b);this.valueSubscriptions.set(a,()=>{S(),b.cancel()});return}const o=tl.has(a);o&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&zt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{u(),d&&d(),s.owner&&s.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 s=vr[a];if(!s)continue;const{isEnabled:o,Feature:u}=s;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):te()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<Pv.length;o++){const u=Pv[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=zA(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 s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const o=this.values.get(a);s!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&s!==void 0&&(o=Zi(s===null?void 0:s,{owner:this}),this.addValue(a,o)),o}readValue(a,s){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"&&(Yy(o)||Xy(o))?o=parseFloat(o):!MA(o)&&an.test(s)&&(o=_b(a,s)),this.setBaseTarget(a,ue(o)?o.get():o)),ue(o)?o.get():o}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var d;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const f=$d(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(o=f[a])}if(s&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!ue(u)?u:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new Md),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){qd.render(this.render)}}class Kb extends LA{constructor(){super(...arguments),this.KeyframeResolver=rA}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){const o=a.style;return o?o[s]:void 0}removeValueFromRenderState(a,{vars:s,style:o}){delete s[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ue(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class Sa{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Fb({top:n,left:a,right:s,bottom:o}){return{x:{min:a,max:s},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 s=a({x:n.left,y:n.top}),o=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function xf(n){return n===void 0||n===1}function fd({scale:n,scaleX:a,scaleY:s}){return!xf(n)||!xf(a)||!xf(s)}function Ya(n){return fd(n)||Zb(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Zb(n){return Wv(n.x)||Wv(n.y)}function Wv(n){return n&&n!=="0%"}function yr(n,a,s){const o=n-s,u=a*o;return s+u}function Iv(n,a,s,o,u){return u!==void 0&&(n=yr(n,u,o)),yr(n,s,o)+a}function dd(n,a=0,s=1,o,u){n.min=Iv(n.min,a,s,o,u),n.max=Iv(n.max,a,s,o,u)}function Qb(n,{x:a,y:s}){dd(n.x,a.translate,a.scale,a.originPoint),dd(n.y,s.translate,s.scale,s.originPoint)}const t0=.999999999999,e0=1.0000000000001;function kA(n,a,s,o=!1){var h;const u=s.length;if(!u)return;a.x=a.y=1;let d,f;for(let m=0;m<u;m++){d=s[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&&(fn(n.x,-d.scroll.offset.x),fn(n.y,-d.scroll.offset.y)),f&&(a.x*=f.x.scale,a.y*=f.y.scale,Qb(n,f)),o&&Ya(d.latestValues)&&ar(n,d.latestValues,(h=d.layout)==null?void 0:h.layoutBox))}a.x<e0&&a.x>t0&&(a.x=1),a.y<e0&&a.y>t0&&(a.y=1)}function fn(n,a){n.min+=a,n.max+=a}function n0(n,a,s,o,u=.5){const d=kt(n.min,n.max,u);dd(n,a,s,d,o)}function a0(n,a){return typeof n=="string"?parseFloat(n)/100*(a.max-a.min):n}function ar(n,a,s){const o=s??n;n0(n.x,a0(a.x,o.x),a.scaleX,a.scale,a.originX),n0(n.y,a0(a.y,o.y),a.scaleY,a.scale,a.originY)}function Jb(n,a){return Fb(UA(n.getBoundingClientRect(),a))}function BA(n,a,s){const o=Jb(n,s),{scroll:u}=a;return u&&(fn(o.x,u.offset.x),fn(o.y,u.offset.y)),o}const HA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$A=Ii.length;function GA(n,a,s){let o="",u=!0;for(let d=0;d<$A;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||s){const p=kb(h,Yd[f]);if(!m){u=!1;const y=HA[f]||f;o+=`${y}(${p}) `}s&&(a[f]=p)}}return o=o.trim(),s?o=s(a,u?"":o):u&&(o="none"),o}function Qd(n,a,s){const{style:o,vars:u,transformOrigin:d}=n;let f=!1,h=!1;for(const m in a){const p=a[m];if(tl.has(m)){f=!0;continue}else if(sb(m)){u[m]=p;continue}else{const y=kb(p,Yd[m]);m.startsWith("origin")?(h=!0,d[m]=y):o[m]=y}}if(a.transform||(f||s?o.transform=GA(a,n.transform,s):o.transform&&(o.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:y=0}=d;o.transformOrigin=`${m} ${p} ${y}`}}function Pb(n,{style:a,vars:s},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 s)d.setProperty(f,s[f])}function i0(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Jl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(W.test(n))n=parseFloat(n);else return n;const s=i0(n,a.target.x),o=i0(n,a.target.y);return`${s}% ${o}%`}},YA={correct:(n,{treeScale:a,projectionDelta:s})=>{const o=n,u=an.parse(n);if(u.length>5)return o;const d=an.createTransformer(n),f=typeof u[0]!="number"?1:0,h=s.x.scale*a.x,m=s.y.scale*a.y;u[0+f]/=h,u[1+f]/=m;const p=kt(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:{...Jl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jl,borderTopRightRadius:Jl,borderBottomLeftRadius:Jl,borderBottomRightRadius:Jl,boxShadow:YA};function Wb(n,{layout:a,layoutId:s}){return tl.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!hd[n]||n==="opacity")}function Jd(n,a,s){var f;const o=n.style,u=a==null?void 0:a.style,d={};if(!o)return d;for(const h in o)(ue(o[h])||u&&ue(u[h])||Wb(h,n)||((f=s==null?void 0:s.getValue(h))==null?void 0:f.liveStyle)!==void 0)&&(d[h]=o[h]);return d}function qA(n){return window.getComputedStyle(n)}class XA extends Kb{constructor(){super(...arguments),this.type="html",this.renderInstance=Pb}readValueFromInstance(a,s){var o;if(tl.has(s))return(o=this.projection)!=null&&o.isProjecting?If(s):c5(a,s);{const u=qA(a),d=(sb(s)?u.getPropertyValue(s):u[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:s}){return Jb(a,s)}build(a,s,o){Qd(a,s,o.transformTemplate)}scrapeMotionValuesFromProps(a,s,o){return Jd(a,s,o)}}const KA={offset:"stroke-dashoffset",array:"stroke-dasharray"},FA={offset:"strokeDashoffset",array:"strokeDasharray"};function ZA(n,a,s=1,o=0,u=!0){n.pathLength=1;const d=u?KA:FA;n[d.offset]=`${-o}`,n[d.array]=`${a} ${s}`}const QA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ib(n,{attrX:a,attrY:s,attrScale:o,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...h},m,p,y){if(Qd(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 QA)b[T]!==void 0&&(S[T]=b[T],delete b[T]);a!==void 0&&(b.x=a),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),u!==void 0&&ZA(b,u,d,f,!1)}const tx=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"]),ex=n=>typeof n=="string"&&n.toLowerCase()==="svg";function JA(n,a,s,o){Pb(n,a,void 0,o);for(const u in a.attrs)n.setAttribute(tx.has(u)?u:Gd(u),a.attrs[u])}function nx(n,a,s){const o=Jd(n,a,s);for(const u in n)if(ue(n[u])||ue(a[u])){const d=Ii.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[d]=n[u]}return o}class PA extends Kb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(tl.has(s)){const o=Lb(s);return o&&o.default||0}return s=tx.has(s)?s:Gd(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,o){return nx(a,s,o)}build(a,s,o){Ib(a,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,s,o,u){JA(a,s,o,u)}mount(a){this.isSVGTag=ex(a.tagName),super.mount(a)}}const WA=Zd.length;function ax(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?ax(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<WA;s++){const o=Zd[s],u=n.props[o];(hs(u)||u===!1)&&(a[o]=u)}return a}function ix(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let o=0;o<s;o++)if(a[o]!==n[o])return!1;return!0}const IA=[...Fd].reverse(),tj=Fd.length;function ej(n){return a=>Promise.all(a.map(({animation:s,options:o})=>P5(n,s,o)))}function nj(n){let a=ej(n),s=l0(),o=!0,u=!1;const d=p=>(y,b)=>{var T;const S=Pa(n,b,p==="exit"?(T=n.presenceContext)==null?void 0:T.custom:void 0);if(S){const{transition:j,transitionEnd:E,...C}=S;y={...y,...C,...E}}return y};function f(p){a=p(n)}function h(p){const{props:y}=n,b=ax(n.parent)||{},S=[],T=new Set;let j={},E=1/0;for(let A=0;A<tj;A++){const L=IA[A],U=s[L],Y=y[L]!==void 0?y[L]:b[L],X=hs(Y),tt=L===p?U.isActive:null;tt===!1&&(E=A);let Z=Y===b[L]&&Y!==y[L]&&X;if(Z&&(o||u)&&n.manuallyAnimateOnMount&&(Z=!1),U.protectedKeys={...j},!U.isActive&&tt===null||!Y&&!U.prevProp||Or(Y)||typeof Y=="boolean")continue;if(L==="exit"&&U.isActive&&tt!==!0){U.prevResolvedValues&&(j={...j,...U.prevResolvedValues});continue}const nt=aj(U.prevProp,Y);let xt=nt||L===p&&U.isActive&&!Z&&X||A>E&&X,J=!1;const ft=Array.isArray(Y)?Y:[Y];let vt=ft.reduce(d(L),{});tt===!1&&(vt={});const{prevResolvedValues:Ot={}}=U,Nt={...Ot,...vt},Rt=F=>{xt=!0,T.has(F)&&(J=!0,T.delete(F)),U.needsAnimating[F]=!0;const it=n.getValue(F);it&&(it.liveStyle=!1)};for(const F in Nt){const it=vt[F],ct=Ot[F];if(j.hasOwnProperty(F))continue;let M=!1;ld(it)&&ld(ct)?M=!ix(it,ct):M=it!==ct,M?it!=null?Rt(F):T.add(F):it!==void 0&&T.has(F)?Rt(F):U.protectedKeys[F]=!0}U.prevProp=Y,U.prevResolvedValues=vt,U.isActive&&(j={...j,...vt}),(o||u)&&n.blockInitialAnimation&&(xt=!1);const k=Z&&nt;xt&&(!k||J)&&S.push(...ft.map(F=>{const it={type:L};if(typeof F=="string"&&(o||u)&&!k&&n.manuallyAnimateOnMount&&n.parent){const{parent:ct}=n,M=Pa(ct,F);if(ct.enteringChildren&&M){const{delayChildren:$}=M.transition||{};it.delay=jb(ct.enteringChildren,n,$)}}return{animation:F,options:it}}))}if(T.size){const A={};if(typeof y.initial!="boolean"){const L=Pa(n,Array.isArray(y.initial)?y.initial[0]:y.initial);L&&L.transition&&(A.transition=L.transition)}T.forEach(L=>{const U=n.getBaseTarget(L),Y=n.getValue(L);Y&&(Y.liveStyle=!0),A[L]=U??null}),S.push({animation:A})}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(s[p].isActive===y)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(T=>{var j;return(j=T.animationState)==null?void 0:j.setActive(p,y)}),s[p].isActive=y;const b=h(p);for(const T in s)s[T].protectedKeys={};return b}return{animateChanges:h,setActive:m,setAnimateFunction:f,getState:()=>s,reset:()=>{s=l0(),u=!0}}}function aj(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!ix(a,n):!1}function $a(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function l0(){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 s0(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}const lx=1e-4,ij=1-lx,lj=1+lx,sx=.01,sj=0-sx,oj=0+sx;function pe(n){return n.max-n.min}function rj(n,a,s){return Math.abs(n-a)<=s}function o0(n,a,s,o=.5){n.origin=o,n.originPoint=kt(a.min,a.max,n.origin),n.scale=pe(s)/pe(a),n.translate=kt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=ij&&n.scale<=lj||isNaN(n.scale))&&(n.scale=1),(n.translate>=sj&&n.translate<=oj||isNaN(n.translate))&&(n.translate=0)}function rs(n,a,s,o){o0(n.x,a.x,s.x,o?o.originX:void 0),o0(n.y,a.y,s.y,o?o.originY:void 0)}function r0(n,a,s,o=0){const u=o?kt(s.min,s.max,o):s.min;n.min=u+a.min,n.max=n.min+pe(a)}function uj(n,a,s,o){r0(n.x,a.x,s.x,o==null?void 0:o.x),r0(n.y,a.y,s.y,o==null?void 0:o.y)}function u0(n,a,s,o=0){const u=o?kt(s.min,s.max,o):s.min;n.min=a.min-u,n.max=n.min+pe(a)}function br(n,a,s,o){u0(n.x,a.x,s.x,o==null?void 0:o.x),u0(n.y,a.y,s.y,o==null?void 0:o.y)}function c0(n,a,s,o,u){return n-=a,n=yr(n,1/s,o),u!==void 0&&(n=yr(n,1/u,o)),n}function cj(n,a=0,s=1,o=.5,u,d=n,f=n){if(mn.test(a)&&(a=parseFloat(a),a=kt(f.min,f.max,a/100)-f.min),typeof a!="number")return;let h=kt(d.min,d.max,o);n===d&&(h-=a),n.min=c0(n.min,a,s,h,u),n.max=c0(n.max,a,s,h,u)}function f0(n,a,[s,o,u],d,f){cj(n,a[s],a[o],a[u],a.scale,d,f)}const fj=["x","scaleX","originX"],dj=["y","scaleY","originY"];function d0(n,a,s,o){f0(n.x,a,fj,s?s.x:void 0,o?o.x:void 0),f0(n.y,a,dj,s?s.y:void 0,o?o.y:void 0)}function h0(n){return n.translate===0&&n.scale===1}function ox(n){return h0(n.x)&&h0(n.y)}function m0(n,a){return n.min===a.min&&n.max===a.max}function hj(n,a){return m0(n.x,a.x)&&m0(n.y,a.y)}function p0(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function rx(n,a){return p0(n.x,a.x)&&p0(n.y,a.y)}function g0(n){return pe(n.x)/pe(n.y)}function v0(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}function cn(n){return[n("x"),n("y")]}function mj(n,a,s){let o="";const u=n.x.translate/a.x,d=n.y.translate/a.y,f=(s==null?void 0:s.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}) `),s){const{transformPerspective:p,rotate:y,rotateX:b,rotateY:S,skewX:T,skewY:j}=s;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) `),j&&(o+=`skewY(${j}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 ux=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],pj=ux.length,y0=n=>typeof n=="string"?parseFloat(n):n,b0=n=>typeof n=="number"||W.test(n);function gj(n,a,s,o,u,d){u?(n.opacity=kt(0,s.opacity??1,vj(o)),n.opacityExit=kt(a.opacity??1,0,yj(o))):d&&(n.opacity=kt(a.opacity??1,s.opacity??1,o));for(let f=0;f<pj;f++){const h=ux[f];let m=x0(a,h),p=x0(s,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||b0(m)===b0(p)?(n[h]=Math.max(kt(y0(m),y0(p),o),0),(mn.test(p)||mn.test(m))&&(n[h]+="%")):n[h]=p}(a.rotate||s.rotate)&&(n.rotate=kt(a.rotate||0,s.rotate||0,o))}function x0(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const vj=cx(0,.5,tb),yj=cx(.5,.95,Je);function cx(n,a,s){return o=>o<n?0:o>a?1:s(fs(n,a,o))}function bj(n,a,s){const o=ue(n)?n:Zi(n);return o.start(Hd("",o,a,s)),o.animation}function ms(n,a,s,o={passive:!0}){return n.addEventListener(a,s,o),()=>n.removeEventListener(a,s)}const xj=(n,a)=>n.depth-a.depth;class Sj{constructor(){this.children=[],this.isDirty=!1}add(a){Nd(this.children,a),this.isDirty=!0}remove(a){dr(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(xj),this.isDirty=!1,this.children.forEach(a)}}function Tj(n,a){const s=me.now(),o=({timestamp:u})=>{const d=u-s;d>=a&&(ya(o),n(d-a))};return zt.setup(o,!0),()=>ya(o)}function ir(n){return ue(n)?n.get():n}class wj{constructor(){this.members=[]}add(a){Nd(this.members,a);for(let s=this.members.length-1;s>=0;s--){const o=this.members[s];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 s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){var s;for(let o=this.members.indexOf(a)-1;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1&&((s=u.instance)==null?void 0:s.isConnected)!==!1)return this.promote(u),!0}return!1}promote(a,s){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,s&&(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 s,o,u,d,f;(o=(s=a.options).onExitComplete)==null||o.call(s),(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"],Ej=1e3;let Aj=0;function Tf(n,a,s,o){const{latestValues:u}=a;u[n]&&(s[n]=u[n],a.setStaticValue(n,0),o&&(o[n]=0))}function fx(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=zb(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",zt,!(u||d))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&fx(o)}function dx({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(f={},h=a==null?void 0:a()){this.id=Aj++,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(Cj),this.nodes.forEach(Vj),this.nodes.forEach(Lj),this.nodes.forEach(Mj)},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 Sj)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Md),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=Kd(f)&&!NA(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;zt.read(()=>{b=window.innerWidth}),n(f,()=>{const T=window.innerWidth;T!==b&&(b=T,this.root.updateBlockedByResize=!0,y&&y(),y=Tj(S,250),lr.hasAnimatedSinceResize&&(lr.hasAnimatedSinceResize=!1,this.nodes.forEach(w0)))})}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 j=this.options.transition||p.getDefaultTransition()||Hj,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=p.getProps(),A=!this.targetLayout||!rx(this.targetLayout,T),L=!b&&S;if(this.options.layoutRoot||this.resumeFrom||L||b&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U={...Bd(j,"layout"),onPlay:E,onComplete:C};(p.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(y,L)}else b||w0(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&&fx(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(zj),this.nodes.forEach(S0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(T0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Oj),this.nodes.forEach(Rj),this.nodes.forEach(jj),this.nodes.forEach(Nj)):this.nodes.forEach(T0),this.clearAllSnapshots();const h=me.now();re.delta=pn(0,1e3/60,h-re.timestamp),re.timestamp=h,re.isProcessing=!0,hf.update.process(re),hf.preRender.process(re),hf.render.process(re),re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dj),this.sharedNodes.forEach(Uj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(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=te()),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:s(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&&!ox(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)),$j(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return te();const h=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(Gj))){const{scroll:y}=this.root;y&&(fn(h.x,y.offset.x),fn(h.y,y.offset.y))}return h}removeElementScroll(f){var m;const h=te();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),fn(h.x,b.offset.x),fn(h.y,b.offset.y))}return h}applyTransform(f,h=!1,m){var y,b;const p=m||te();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&&(fn(p.x,-T.scroll.offset.x),fn(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=te();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=te(),tn(b,y.measurePageBox())),d0(h,y.latestValues,(m=y.snapshot)==null?void 0:m.layoutBox,b)}return Ya(this.latestValues)&&d0(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!==re.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=re.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=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uj(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),Qb(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)||Zb(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=te(),this.relativeTargetOrigin=te(),br(this.relativeTargetOrigin,h,m,this.options.layoutAnchor||void 0),tn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var j;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===re.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;kA(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=te());const{target:T}=f;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(s0(this.prevProjectionDelta.x,this.projectionDelta.x),s0(this.prevProjectionDelta.y,this.projectionDelta.y)),rs(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!v0(this.projectionDelta.x,this.prevProjectionDelta.x)||!v0(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=te(),T=m?m.source:void 0,j=this.layout?this.layout.source:void 0,E=T!==j,C=this.getStack(),A=!C||C.members.length<=1,L=!!(E&&!A&&this.options.crossfade===!0&&!this.path.some(Bj));this.animationProgress=0;let U;this.mixTargetDelta=Y=>{const X=Y/1e3;E0(b.x,f.x,X),E0(b.y,f.y,X),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),kj(this.relativeTarget,this.relativeTargetOrigin,S,X),U&&hj(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=te()),tn(U,this.relativeTarget)),E&&(this.animationValues=y,gj(y,p,this.latestValues,X,L,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},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=zt.update(()=>{lr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zi(0)),this.motionValue.jump(0,!1),this.currentAnimation=bj(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(Ej),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&&hx(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||te();const b=pe(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+b;const S=pe(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}tn(h,m),ar(h,y),rs(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new wj),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=mj(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 j in hd){if(y[j]===void 0)continue;const{correct:E,applyTo:C,isCSSVariable:A}=hd[j],L=b==="none"?y[j]:E(y[j],p);if(C){const U=C.length;for(let Y=0;Y<U;Y++)f[C[Y]]=L}else A?this.options.visualElement.renderState.vars[j]=L:f[j]=L}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(S0),this.root.sharedNodes.clear()}}}function jj(n){n.updateLayout()}function Nj(n){var s;const a=((s=n.resumeFrom)==null?void 0:s.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")cn(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],T=pe(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 hx(d,a.layoutBox,o)&&cn(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],T=pe(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();rs(h,o,a.layoutBox);const m=qi();f?rs(m,n.applyTransform(u,!0),a.measuredBox):rs(m,o,a.layoutBox);const p=!ox(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 j=n.options.layoutAnchor||void 0,E=te();br(E,a.layoutBox,S.layoutBox,j);const C=te();br(C,o,T.layoutBox,j),rx(E,C)||(y=!0),b.options.layoutRoot&&(n.relativeTarget=C,n.relativeTargetOrigin=E,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 Cj(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 Mj(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function Dj(n){n.clearSnapshot()}function S0(n){n.clearMeasurements()}function zj(n){n.isLayoutDirty=!0,n.updateLayout()}function T0(n){n.isLayoutDirty=!1}function Oj(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function Rj(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function w0(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function Vj(n){n.resolveTargetDelta()}function Lj(n){n.calcProjection()}function _j(n){n.resetSkewAndRotation()}function Uj(n){n.removeLeadSnapshot()}function E0(n,a,s){n.translate=kt(a.translate,0,s),n.scale=kt(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function A0(n,a,s,o){n.min=kt(a.min,s.min,o),n.max=kt(a.max,s.max,o)}function kj(n,a,s,o){A0(n.x,a.x,s.x,o),A0(n.y,a.y,s.y,o)}function Bj(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const Hj={duration:.45,ease:[.4,0,.1,1]},j0=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),N0=j0("applewebkit/")&&!j0("chrome/")?Math.round:Je;function C0(n){n.min=N0(n.min),n.max=N0(n.max)}function $j(n){C0(n.x),C0(n.y)}function hx(n,a,s){return n==="position"||n==="preserve-aspect"&&!rj(g0(a),g0(s),.2)}function Gj(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const Yj=dx({attachResizeListener:(n,a)=>ms(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}),qj=n=>!n.isLayoutDirty&&n.willUpdate(!1);function M0(){const n=new Set,a=new WeakMap,s=()=>n.forEach(qj);return{add:o=>{n.add(o),a.set(o,o.addEventListener("willUpdate",s))},remove:o=>{n.delete(o);const u=a.get(o);u&&(u(),a.delete(o)),s()},dirty:s}}const wf={current:void 0},mx=dx({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!wf.current){const n=new Yj({});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"}),px=w.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Xj(n=!0){const a=w.useContext(jd);if(a===null)return[!0,null];const{isPresent:s,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!s&&o?[!1,f]:[!0]}const Kj=w.createContext(null);function Fj(){const n=w.useRef(!1);return Gy(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function Zj(){const n=Fj(),[a,s]=w.useState(0),o=w.useCallback(()=>{n.current&&s(a+1)},[a]);return[w.useCallback(()=>zt.postRender(o),[o]),a]}const gx=n=>n===!0,Qj=n=>gx(n===!0)||n==="id",vx=({children:n,id:a,inherit:s=!0})=>{const o=w.useContext(fr),u=w.useContext(Kj),[d,f]=Zj(),h=w.useRef(null),m=o.id||u;h.current===null&&(Qj(s)&&m&&(a=a?m+"-"+a:m),h.current={id:a,group:gx(s)&&o.group||M0()});const p=w.useMemo(()=>({...h.current,forceRender:d}),[f]);return v.jsx(fr.Provider,{value:p,children:n})},yx=w.createContext({strict:!1}),D0={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 z0=!1;function Jj(){if(z0)return;const n={};for(const a in D0)n[a]={isEnabled:s=>D0[a].some(o=>!!s[o])};Xb(n),z0=!0}function bx(){return Jj(),VA()}function Pj(n){const a=bx();for(const s in n)a[s]={...a[s],...n[s]};Xb(a)}const Wj=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")||Wj.has(n)}let xx=n=>!xr(n);function Ij(n){typeof n=="function"&&(xx=a=>a.startsWith("on")?!xr(a):n(a))}try{Ij(require("@emotion/is-prop-valid").default)}catch{}function t3(n,a,s){const o={};for(const u in n)u==="values"&&typeof n.values=="object"||ue(n[u])||(xx(u)||s===!0&&xr(u)||!a&&!xr(u)||n.draggable&&u.startsWith("onDrag"))&&(o[u]=n[u]);return o}const Vr=w.createContext({});function e3(n,a){if(Rr(n)){const{initial:s,animate:o}=n;return{initial:s===!1||hs(s)?s:void 0,animate:hs(o)?o:void 0}}return n.inherit!==!1?a:{}}function n3(n){const{initial:a,animate:s}=e3(n,w.useContext(Vr));return w.useMemo(()=>({initial:a,animate:s}),[O0(a),O0(s)])}function O0(n){return Array.isArray(n)?n.join(" "):n}const Pd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sx(n,a,s){for(const o in a)!ue(a[o])&&!Wb(o,s)&&(n[o]=a[o])}function a3({transformTemplate:n},a){return w.useMemo(()=>{const s=Pd();return Qd(s,a,n),Object.assign({},s.vars,s.style)},[a])}function i3(n,a){const s=n.style||{},o={};return Sx(o,s,n),Object.assign(o,a3(n,a)),o}function l3(n,a){const s={},o=i3(n,a);return n.drag&&n.dragListener!==!1&&(s.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)&&(s.tabIndex=0),s.style=o,s}const Tx=()=>({...Pd(),attrs:{}});function s3(n,a,s,o){const u=w.useMemo(()=>{const d=Tx();return Ib(d,a,ex(o),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[a]);if(n.style){const d={};Sx(d,n.style,n),u.style={...d,...u.style}}return u}const o3=["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 Wd(n){return typeof n!="string"||n.includes("-")?!1:!!(o3.indexOf(n)>-1||/[A-Z]/u.test(n))}function r3(n,a,s,{latestValues:o},u,d=!1,f){const m=(f??Wd(n)?s3:l3)(a,o,u,n),p=t3(a,typeof n=="string",d),y=n!==w.Fragment?{...p,...m,ref:s}:{},{children:b}=a,S=w.useMemo(()=>ue(b)?b.get():b,[b]);return w.createElement(n,{...y,children:S})}function u3({scrapeMotionValuesFromProps:n,createRenderState:a},s,o,u){return{latestValues:c3(s,o,u,n),renderState:a()}}function c3(n,a,s,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=Yb(n);a&&p&&!m&&n.inherit!==!1&&(f===void 0&&(f=a.initial),h===void 0&&(h=a.animate));let y=s?s.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 j=$d(n,S[T]);if(j){const{transitionEnd:E,transition:C,...A}=j;for(const L in A){let U=A[L];if(Array.isArray(U)){const Y=y?U.length-1:0;U=U[Y]}U!==null&&(u[L]=U)}for(const L in E)u[L]=E[L]}}}return u}const wx=n=>(a,s)=>{const o=w.useContext(Vr),u=w.useContext(jd),d=()=>u3(n,a,o,u);return s?d():aE(d)},f3=wx({scrapeMotionValuesFromProps:Jd,createRenderState:Pd}),d3=wx({scrapeMotionValuesFromProps:nx,createRenderState:Tx}),h3=Symbol.for("motionComponentSymbol");function m3(n,a,s){const o=w.useRef(s);w.useInsertionEffect(()=>{o.current=s});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 Ex=w.createContext({});function $i(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function p3(n,a,s,o,u,d){var U,Y;const{visualElement:f}=w.useContext(Vr),h=w.useContext(yx),m=w.useContext(jd),p=w.useContext(px),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:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:d}),T.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const j=S.current,E=w.useContext(Ex);j&&!j.projection&&u&&(j.type==="html"||j.type==="svg")&&g3(S.current,s,u,E);const C=w.useRef(!1);w.useInsertionEffect(()=>{j&&C.current&&j.update(s,m)});const A=s[Db],L=w.useRef(!!A&&typeof window<"u"&&!((U=window.MotionHandoffIsComplete)!=null&&U.call(window,A))&&((Y=window.MotionHasOptimisedAnimation)==null?void 0:Y.call(window,A)));return Gy(()=>{T.current=!0,j&&(C.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),L.current&&j.animationState&&j.animationState.animateChanges())}),w.useEffect(()=>{j&&(!L.current&&j.animationState&&j.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{var X;(X=window.MotionHandoffMarkAsComplete)==null||X.call(window,A)}),L.current=!1),j.enteringChildren=void 0)}),j}function g3(n,a,s,o){const{layoutId:u,layout:d,drag:f,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutAnchor:y,layoutCrossfade:b}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:Ax(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 Ax(n){if(n)return n.options.allowProjection!==!1?n.projection:Ax(n.parent)}function Ef(n,{forwardMotionProps:a=!1,type:s}={},o,u){o&&Pj(o);const d=s?s==="svg":Wd(n),f=d?d3:f3;function h(p,y){let b;const S={...w.useContext(px),...p,layoutId:v3(p)},{isStatic:T}=S,j=n3(p),E=f(p,T);if(!T&&typeof window<"u"){y3();const C=b3(S);b=C.MeasureLayout,j.visualElement=p3(n,E,S,u,C.ProjectionNode,d)}return v.jsxs(Vr.Provider,{value:j,children:[b&&j.visualElement?v.jsx(b,{visualElement:j.visualElement,...S}):null,r3(n,p,m3(E,j.visualElement,y),E,T,a,d)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=w.forwardRef(h);return m[h3]=n,m}function v3({layoutId:n}){const a=w.useContext(fr).id;return a&&n!==void 0?a+"-"+n:n}function y3(n,a){w.useContext(yx).strict}function b3(n){const a=bx(),{drag:s,layout:o}=a;if(!s&&!o)return{};const u={...s,...o};return{MeasureLayout:s!=null&&s.isEnabled(n)||o!=null&&o.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function x3(n,a){if(typeof Proxy>"u")return Ef;const s=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:(s.has(f)||s.set(f,Ef(f,void 0,n,a)),s.get(f))})}const S3=(n,a)=>a.isSVG??Wd(n)?new PA(a):new XA(a,{allowProjection:n!==w.Fragment});class T3 extends Sa{constructor(a){super(a),a.animationState||(a.animationState=nj(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:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let w3=0;class E3 extends Sa{constructor(){super(...arguments),this.id=w3++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=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=Pa(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);s&&!a&&u.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const A3={animation:{Feature:T3},exit:{Feature:E3}};function Ts(n){return{point:{x:n.pageX,y:n.pageY}}}const j3=n=>a=>Xd(a)&&n(a,Ts(a));function us(n,a,s,o){return ms(n,a,j3(s),o)}const jx=({current:n})=>n?n.ownerDocument.defaultView:null,R0=(n,a)=>Math.abs(n-a);function N3(n,a){const s=R0(n.x,a.x),o=R0(n.y,a.y);return Math.sqrt(s**2+o**2)}const V0=new Set(["auto","scroll"]);class Nx{constructor(a,s,{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=Zo(this.lastRawMoveEventInfo,this.transformPagePoint));const T=Af(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,E=N3(T.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!E)return;const{point:C}=T,{timestamp:A}=re;this.history.push({...C,timestamp:A});const{onStart:L,onMove:U}=this.handlers;j||(L&&L(this.lastMoveEvent,T),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,T)},this.handlePointerMove=(T,j)=>{this.lastMoveEvent=T,this.lastRawMoveEventInfo=j,this.lastMoveEventInfo=Zo(j,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(T,j)=>{this.end();const{onEnd:E,onSessionEnd:C,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=Af(T.type==="pointercancel"?this.lastMoveEventInfo:Zo(j,this.transformPagePoint),this.history);this.startEvent&&E&&E(T,L),C&&C(T,L)},!Xd(a))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=u||window;const m=Ts(a),p=Zo(m,this.transformPagePoint),{point:y}=p,{timestamp:b}=re;this.history=[{...y,timestamp:b}];const{onSessionStart:S}=s;S&&S(a,Af(p,this.history)),this.removeListeners=bs(us(this.contextWindow,"pointermove",this.handlePointerMove),us(this.contextWindow,"pointerup",this.handlePointerUp),us(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let s=a.parentElement;for(;s;){const o=getComputedStyle(s);(V0.has(o.overflowX)||V0.has(o.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.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 s=this.scrollPositions.get(a);if(!s)return;const o=a===window,u=o?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},d={x:u.x-s.x,y:u.y-s.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),zt.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 Zo(n,a){return a?{point:a(n.point)}:n}function L0(n,a){return{x:n.x-a.x,y:n.y-a.y}}function Af({point:n},a){return{point:n,delta:L0(n,Cx(a)),offset:L0(n,C3(a)),velocity:M3(a,.1)}}function C3(n){return n[0]}function Cx(n){return n[n.length-1]}function M3(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,o=null;const u=Cx(n);for(;s>=0&&(o=n[s],!(u.timestamp-o.timestamp>_e(a)));)s--;if(!o)return{x:0,y:0};o===n[0]&&n.length>2&&u.timestamp-o.timestamp>_e(a)*2&&(o=n[1]);const d=Ze(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 D3(n,{min:a,max:s},o){return a!==void 0&&n<a?n=o?kt(a,n,o.min):Math.max(n,a):s!==void 0&&n>s&&(n=o?kt(s,n,o.max):Math.min(n,s)),n}function _0(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function z3(n,{top:a,left:s,bottom:o,right:u}){return{x:_0(n.x,s,u),y:_0(n.y,a,o)}}function U0(n,a){let s=a.min-n.min,o=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,o]=[o,s]),{min:s,max:o}}function O3(n,a){return{x:U0(n.x,a.x),y:U0(n.y,a.y)}}function R3(n,a){let s=.5;const o=pe(n),u=pe(a);return u>o?s=fs(a.min,a.max-o,n.min):o>u&&(s=fs(n.min,n.max-u,a.min)),pn(0,1,s)}function V3(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const pd=.35;function L3(n=pd){return n===!1?n=0:n===!0&&(n=pd),{x:k0(n,"left","right"),y:k0(n,"top","bottom")}}function k0(n,a,s){return{min:B0(n,a),max:B0(n,s)}}function B0(n,a){return typeof n=="number"?n:n[a]||0}const _3=new WeakMap;class U3{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=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const d=b=>{s&&this.snapToCursor(Ts(b).point),this.stopAnimation()},f=(b,S)=>{const{drag:T,dragPropagation:j,onDragStart:E}=this.getProps();if(T&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cA(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),cn(A=>{let L=this.getAxisMotionValue(A).get()||0;if(mn.test(L)){const{projection:U}=this.visualElement;if(U&&U.layout){const Y=U.layout.layoutBox[A];Y&&(L=pe(Y)*(parseFloat(L)/100))}}this.originPoint[A]=L}),E&&zt.update(()=>E(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:j,onDirectionLock:E,onDrag:C}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:A}=S;if(j&&this.currentDirection===null){this.currentDirection=B3(A),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",S.point,A),this.updateAxis("y",S.point,A),this.visualElement.render(),C&&zt.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 Nx(a,{onSessionStart:d,onStart:f,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:jx(this.visualElement),element:this.visualElement.current})}stop(a,s){const o=a||this.latestPointerEvent,u=s||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&&zt.postRender(()=>h(o,u))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,s,o){const{drag:u}=this.getProps();if(!o||!Qo(a,u,this.currentDirection))return;const d=this.getAxisMotionValue(a);let f=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(f=D3(f,this.constraints[a],this.elastic[a])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:a,dragElastic:s}=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=z3(o.layoutBox,a):this.constraints=!1,this.elastic=L3(s),u!==this.constraints&&!$i(a)&&o&&this.constraints&&!this.hasMutatedConstraints&&cn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=V3(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!$i(a))return!1;const o=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=BA(o,u.root,this.visualElement.getTransformPagePoint());let f=O3(u.layout.layoutBox,d);if(s){const h=s(_A(f));this.hasMutatedConstraints=!!h,h&&(f=Fb(h))}return f}startAnimation(a){const{drag:s,dragMomentum:o,dragElastic:u,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=cn(y=>{if(!Qo(y,s,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,j={type:"inertia",velocity:o?a[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(y,j)});return Promise.all(p).then(h)}startAxisValueAnimation(a,s){const o=this.getAxisMotionValue(a);return sd(this.visualElement,a),o.start(Hd(a,o,0,s,this.visualElement,!1))}stopAnimation(){cn(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),u=o[s];return u||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){cn(s=>{const{drag:o}=this.getProps();if(!Qo(s,o,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(s);if(u&&u.layout){const{min:f,max:h}=u.layout.layoutBox[s],m=d.get()||0;d.set(a[s]-kt(f,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!$i(s)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};cn(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const m=h.get();u[f]=R3({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(),cn(f=>{if(!Qo(f,a,null))return;const h=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];h.set(kt(m,p,u[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_3.set(this.visualElement,this);const a=this.visualElement.current,s=us(a,"pointerdown",p=>{const{drag:y,dragListener:b=!0}=this.getProps(),S=p.target,T=S!==a&&gA(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=k3(a,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",u);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),zt.read(u);const h=ms(window,"resize",()=>this.scalePositionWithinConstraints()),m=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:y})=>{this.isDragging&&y&&(cn(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(),s(),f(),m&&m(),o&&o()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:f=pd,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:o,dragPropagation:u,dragConstraints:d,dragElastic:f,dragMomentum:h}}}function H0(n){let a=!0;return()=>{if(a){a=!1;return}n()}}function k3(n,a,s){const o=Zv(n,H0(s)),u=Zv(a,H0(s));return()=>{o(),u()}}function Qo(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function B3(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class H3 extends Sa{constructor(a){super(a),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new U3(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}update(){const{dragControls:a}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};a!==s&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const jf=n=>(a,s)=>{n&&zt.update(()=>n(a,s),!1,!0)};class $3 extends Sa{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(a){this.session=new Nx(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jx(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:o,onPanEnd:u}=this.node.getProps();return{onSessionStart:jf(a),onStart:jf(s),onMove:jf(o),onEnd:(d,f)=>{delete this.session,u&&zt.postRender(()=>u(d,f))}}}mount(){this.removePointerDownListener=us(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 G3 extends w.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o,layoutId:u}=this.props,{projection:d}=a;d&&(s.group&&s.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:s,visualElement:o,drag:u,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,a.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),Nf=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==d?f.willUpdate():this.safeToRemove(),a.isPresent!==d&&(d?f.promote():f.relegate()||zt.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:a,layoutAnchor:s}=this.props,{projection:o}=a;o&&(o.options.layoutAnchor=s,o.root.didUpdate(),qd.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:u}=a;Nf=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),o&&o.deregister&&o.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Mx(n){const[a,s]=Xj(),o=w.useContext(fr);return v.jsx(G3,{...n,layoutGroup:o,switchLayoutGroup:w.useContext(Ex),isPresent:a,safeToRemove:s})}const Y3={pan:{Feature:$3},drag:{Feature:H3,ProjectionNode:mx,MeasureLayout:Mx}};function $0(n,a,s){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,d=o[u];d&&zt.postRender(()=>d(a,Ts(a)))}class q3 extends Sa{mount(){const{current:a}=this.node;a&&(this.unmount=dA(a,(s,o)=>($0(this.node,o,"Start"),u=>$0(this.node,u,"End"))))}unmount(){}}class X3 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=bs(ms(this.node.current,"focus",()=>this.onFocus()),ms(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function G0(n,a,s){const{props:o}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),d=o[u];d&&zt.postRender(()=>d(a,Ts(a)))}class K3 extends Sa{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:s,propagate:o}=this.node.props;this.unmount=yA(a,(u,d)=>(G0(this.node,d,"Start"),(f,{success:h})=>G0(this.node,f,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const gd=new WeakMap,Cf=new WeakMap,F3=n=>{const a=gd.get(n.target);a&&a(n)},Z3=n=>{n.forEach(F3)};function Q3({root:n,...a}){const s=n||document;Cf.has(s)||Cf.set(s,{});const o=Cf.get(s),u=JSON.stringify(a);return o[u]||(o[u]=new IntersectionObserver(Z3,{root:n,...a})),o[u]}function J3(n,a,s){const o=Q3(a);return gd.set(n,s),o.observe(n),()=>{gd.delete(n),o.unobserve(n)}}const P3={some:0,all:1};class W3 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:s,margin:o,amount:u="some",once:d}=a,f={root:s?s.current:void 0,rootMargin:o,threshold:typeof u=="number"?u:P3[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=J3(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(I3(a,s))&&this.startObserver()}unmount(){var a;(a=this.stopObserver)==null||a.call(this),this.hasEnteredView=!1,this.isInView=!1}}function I3({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const tN={inView:{Feature:W3},tap:{Feature:K3},focus:{Feature:X3},hover:{Feature:q3}},eN={layout:{ProjectionNode:mx,MeasureLayout:Mx}},nN={...A3,...tN,...Y3,...eN},Dx=x3(nN,S3),Lr=w.forwardRef(function(a,s){return v.jsx(bw,{children:v.jsx("a",{...a,ref:s})})}),Pl={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:s,plain:o,className:u,children:d,...f},h){let m=Kt(u,Pl.base,s?Pl.outline:o?Pl.plain:Kt(Pl.solid,Pl.colors[a??"dark/zinc"]));return typeof f.href=="string"?v.jsx(Lr,{...f,className:m,ref:h,children:v.jsx(ba,{children:d})}):v.jsx(vs,{...f,className:Kt(m,"cursor-default"),ref:h,children:v.jsx(ba,{children:d})})});function ba({children:n}){return v.jsxs(v.Fragment,{children:[v.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 aN({className:n,...a}){return v.jsx("nav",{...a,className:Kt(n,"flex flex-1 items-center gap-4 py-2.5")})}function iN({className:n,...a}){let s=w.useId();return v.jsx(vx,{id:s,children:v.jsx("div",{...a,className:Kt(n,"flex items-center gap-3")})})}function lN({className:n,...a}){return v.jsx("div",{"aria-hidden":"true",...a,className:Kt(n,"-ml-4 flex-1")})}const Id=w.forwardRef(function({current:a,className:s,children:o,...u},d){let f=Kt("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 v.jsxs("span",{className:Kt(s,"relative"),children:[a&&v.jsx(Dx.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"?v.jsx(Lr,{...u,className:f,"data-current":a?"true":void 0,ref:d,children:v.jsx(ba,{children:o})}):v.jsx(vs,{...u,className:Kt("cursor-default",f),"data-current":a?"true":void 0,ref:d,children:v.jsx(ba,{children:o})})]})});function sN(){return v.jsx("svg",{"data-slot":"icon",viewBox:"0 0 20 20","aria-hidden":"true",children:v.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 oN(){return v.jsx("svg",{"data-slot":"icon",viewBox:"0 0 20 20","aria-hidden":"true",children:v.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 rN({open:n,close:a,children:s}){return v.jsxs(nE,{open:n,onClose:a,className:"lg:hidden",children:[v.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"}),v.jsx($y,{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:v.jsxs("div",{className:"flex h-full flex-col rounded-lg bg-ouro-deep shadow-xl ring-1 ring-ouro-moss/40",children:[v.jsx("div",{className:"-mb-3 px-4 pt-3",children:v.jsx(gy,{as:Id,"aria-label":"Close navigation",children:v.jsx(oN,{})})}),s]})})]})}function uN({navbar:n,sidebar:a,children:s}){let[o,u]=w.useState(!1);return v.jsxs("div",{className:"relative isolate flex min-h-svh w-full bg-ouro-void max-lg:flex-col",children:[v.jsx("div",{className:"fixed inset-y-0 left-0 w-64 max-lg:hidden",children:a}),v.jsx(rN,{open:o,close:()=>u(!1),children:a}),v.jsxs("header",{className:"flex items-center px-4 lg:hidden",children:[v.jsx("div",{className:"py-2.5",children:v.jsx(Id,{onClick:()=>u(!0),"aria-label":"Open navigation",children:v.jsx(sN,{})})}),v.jsx("div",{className:"min-w-0 flex-1",children:n})]}),v.jsx("main",{className:"flex flex-1 flex-col pb-2 lg:min-w-0 lg:pt-2 lg:pr-2 lg:pl-64",children:v.jsx("div",{className:"grow p-4 lg:rounded-lg lg:bg-ouro-deep lg:p-8 lg:ring-1 lg:ring-ouro-moss/30",children:v.jsx("div",{className:"mx-auto max-w-6xl",children:s})})})]})}function cN({className:n,...a}){return v.jsx("nav",{...a,className:Kt(n,"flex h-full min-h-0 flex-col")})}function fN({className:n,...a}){return v.jsx("div",{...a,className:Kt(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 dN({className:n,...a}){return v.jsx("div",{...a,className:Kt(n,"flex flex-1 flex-col overflow-y-auto p-4 [&>[data-slot=section]+[data-slot=section]]:mt-8")})}function hN({className:n,...a}){return v.jsx("div",{...a,className:Kt(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 Y0({className:n,...a}){let s=w.useId();return v.jsx(vx,{id:s,children:v.jsx("div",{...a,"data-slot":"section",className:Kt(n,"flex flex-col gap-0.5")})})}function q0({className:n,...a}){return v.jsx("h3",{...a,className:Kt(n,"mb-1 px-2 text-xs/6 font-medium text-zinc-500 dark:text-zinc-400")})}const mN=w.forwardRef(function({current:a,className:s,children:o,...u},d){let f=Kt("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 v.jsxs("span",{className:Kt(s,"relative"),children:[a&&v.jsx(Dx.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"?v.jsx(gy,{as:Lr,...u,className:f,"data-current":a?"true":void 0,ref:d,children:v.jsx(ba,{children:o})}):v.jsx(vs,{...u,className:Kt("cursor-default",f),"data-current":a?"true":void 0,ref:d,children:v.jsx(ba,{children:o})})]})});function pN({className:n,...a}){return v.jsx("span",{...a,className:Kt(n,"truncate")})}const gN={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 Yt({color:n="zinc",className:a,...s}){return v.jsx("span",{...s,className:Kt(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",gN[n])})}w.forwardRef(function({color:a="zinc",className:s,children:o,...u},d){let f=Kt(s,"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"?v.jsx(Lr,{...u,className:f,ref:d,children:v.jsx(ba,{children:v.jsx(Yt,{color:a,children:o})})}):v.jsx(vs,{...u,className:f,ref:d,children:v.jsx(ba,{children:v.jsx(Yt,{color:a,children:o})})})});const vN={"owed-reply":"red","blocking-obligation":"red","broken-return":"red","stale-delegation":"yellow","return-ready":"lime","overdue-habit":"yellow"},yN={"owed-reply":"owed reply","blocking-obligation":"blocking","broken-return":"broken return","stale-delegation":"stale","return-ready":"ready to return","overdue-habit":"overdue"},bN={"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"};function xN({view:n,deskPrefs:a}){const s=Qi(),[o,u]=w.useState(null),d=n.agent,f=n.work,h=n.inner,m=n.activity,p=d.degraded,y=d.attention,b=f.tasks,S=f.obligations,T=f.sessions,j=f.coding,E=d.senses??[],C=f.bridges??[];return w.useEffect(()=>{ge(`/agents/${encodeURIComponent(d.agentName)}/needs-me`).then(u)},[d.agentName]),v.jsxs("div",{className:"space-y-6",children:[o&&o.items.length>0&&v.jsxs("div",{className:"rounded-xl bg-ouro-fang/5 p-4 ring-1 ring-ouro-fang/15",children:[v.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-fang",children:["Needs me now (",o.items.length,")"]}),v.jsx("div",{className:"mt-2 space-y-1.5",children:o.items.map((A,L)=>v.jsxs("button",{onClick:()=>A.ref&&s({tab:A.ref.tab,focus:A.ref.focus}),className:"flex w-full items-start gap-2.5 rounded-lg bg-ouro-void/40 px-3 py-2.5 text-left ring-1 ring-ouro-moss/10 hover:ring-ouro-fang/20 transition-colors",children:[v.jsx(Yt,{color:vN[A.urgency]??"zinc",children:yN[A.urgency]??A.urgency}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"text-sm font-medium text-ouro-bone",children:A.label}),v.jsx("p",{className:"text-xs text-ouro-shadow truncate",children:A.detail}),v.jsx("p",{className:"text-[10px] italic text-ouro-shadow/60 mt-0.5",children:bN[A.urgency]??""})]}),A.ageMs!=null&&v.jsx("span",{className:"shrink-0 text-xs tabular-nums text-ouro-shadow",children:A.ageMs<36e5?`${Math.floor(A.ageMs/6e4)}m`:A.ageMs<864e5?`${Math.floor(A.ageMs/36e5)}h`:`${Math.floor(A.ageMs/864e5)}d`})]},L))})]}),(a==null?void 0:a.carrying)&&v.jsxs("div",{className:"rounded-xl bg-ouro-moss/10 p-4 ring-1 ring-ouro-glow/8",children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"What I'm carrying"}),v.jsx("p",{className:"mt-1 text-sm leading-relaxed text-ouro-bone",children:a.carrying})]}),(()=>{const A=(a==null?void 0:a.pinnedConstellations)??[];return A.length===0?null:v.jsxs("div",{children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Pinned threads"}),v.jsx("div",{className:"mt-2 space-y-2",children:A.map((L,U)=>v.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[v.jsx("p",{className:"font-medium text-ouro-bone",children:L.label}),v.jsxs("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[(L.friendIds??[]).map(Y=>v.jsxs("button",{onClick:()=>s({tab:"sessions"}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["friend:",Y.slice(0,8),"…"]},Y)),(L.taskRefs??[]).map(Y=>v.jsxs("button",{onClick:()=>s({tab:"work"}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["task:",Y]},Y)),(L.bridgeIds??[]).map(Y=>v.jsxs("button",{onClick:()=>s({tab:"connections",focus:Y}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["bridge:",Y.slice(0,8),"…"]},Y))]})]},U))})]})})(),v.jsxs("div",{className:"rounded-xl bg-ouro-moss/15 p-4 ring-1 ring-ouro-glow/10 sm:p-5",children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"Center of gravity"}),v.jsx("p",{className:"mt-1 font-display text-xl italic font-semibold text-ouro-bone sm:text-2xl",children:y.label}),v.jsxs("p",{className:"mt-2 text-sm leading-relaxed text-ouro-mist",children:[d.agentName," has"," ",v.jsxs(Jo,{tab:"work",children:[b.liveCount," live tasks"]}),","," ",v.jsxs(Jo,{tab:"work",children:[S.openCount," obligations"]}),","," ",v.jsxs(Jo,{tab:"work",children:[j.activeCount," coding lanes"]}),", and"," ",v.jsxs(Jo,{tab:"sessions",children:[T.liveCount," live sessions"]}),"."]}),p.status==="degraded"&&p.issues.length>0&&v.jsxs("div",{className:"mt-3 space-y-1",children:[p.issues.slice(0,5).map((A,L)=>v.jsxs("button",{onClick:()=>s({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:[v.jsx("span",{className:"mt-0.5 h-2 w-2 shrink-0 rounded-full bg-ouro-fang"}),v.jsxs("span",{className:"text-ouro-mist",children:[v.jsx("span",{className:"font-semibold text-ouro-fang",children:A.code}),v.jsxs("span",{className:"text-ouro-shadow",children:[" — ",dn(A.detail,80)]})]})]},L)),p.issues.length>5&&v.jsxs("button",{onClick:()=>s({tab:"runtime"}),className:"text-xs text-ouro-glow underline underline-offset-2",children:["+",p.issues.length-5," more issues"]})]})]}),v.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:[v.jsx(Po,{label:"Tasks",value:b.liveCount,sub:`${b.blockedCount} blocked`,onClick:()=>s({tab:"work"})}),v.jsx(Po,{label:"Obligations",value:S.openCount,sub:`${T.liveCount} sessions`,onClick:()=>s({tab:"work"})}),v.jsx(Po,{label:"Coding",value:j.activeCount,sub:`${j.blockedCount} blocked`,onClick:()=>s({tab:"work"})}),v.jsx(Po,{label:"Inner",value:h.status,sub:dn(h.summary??"",30),onClick:()=>s({tab:"inner"})})]}),v.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[v.jsx(Wo,{title:"Senses",children:E.length>0?v.jsx(SN,{items:E}):v.jsx(Mf,{children:"No active senses"})}),v.jsx(Wo,{title:"Bridges",children:C.length>0?v.jsx("div",{className:"flex flex-wrap gap-1.5",children:C.map(A=>v.jsx("button",{onClick:()=>s({tab:"connections",focus:A}),children:v.jsx(Yt,{color:"lime",children:A})},A))}):v.jsx(Mf,{children:"No active bridges"})})]}),(()=>{var U;const L=(((U=f.obligations)==null?void 0:U.items)??[]).filter(Y=>Y.status==="fulfilled");return L.length===0?null:v.jsx(Wo,{title:"Recently closed",children:v.jsx("div",{className:"space-y-1",children:L.slice(0,3).map((Y,X)=>v.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:[v.jsx(Yt,{color:"lime",children:"closed"}),v.jsx("p",{className:"text-sm text-ouro-mist truncate",children:dn(Y.content,80)}),v.jsx("span",{className:"shrink-0 text-xs text-ouro-shadow",children:Qe(Y.updatedAt)})]},X))})})})(),v.jsx(Wo,{title:"Recent activity",children:m.recent.length>0?v.jsx("div",{className:"space-y-1",children:m.recent.map((A,L)=>{const U=A.kind==="coding"||A.kind==="obligation"?"work":A.kind==="session"?"sessions":"inner";return v.jsxs("button",{onClick:()=>s({tab:U}),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:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Yt,{children:A.kind}),v.jsx("span",{className:"text-xs text-ouro-shadow",children:Qe(A.at)})]}),v.jsx("p",{className:"truncate text-sm font-medium text-ouro-bone",children:dn(A.label,100)}),v.jsx("p",{className:"truncate text-xs text-ouro-shadow",children:dn(A.detail,80)})]},L)})}):v.jsx(Mf,{children:"No recent activity yet."})})]})}function Jo({tab:n,children:a}){const s=Qi();return v.jsx("button",{onClick:()=>s({tab:n}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow transition-colors",children:a})}function Po({label:n,value:a,sub:s,onClick:o}){return v.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:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow",children:n}),v.jsx("p",{className:"mt-1 text-xl font-semibold tabular-nums text-ouro-bone",children:a}),v.jsx("p",{className:"mt-0.5 truncate text-xs text-ouro-shadow",children:s})]})}function Wo({title:n,children:a}){return v.jsxs("div",{children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n}),v.jsx("div",{className:"mt-2",children:a})]})}function SN({items:n}){return v.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(a=>v.jsx(Yt,{color:"lime",children:a},a))})}function Mf({children:n}){return v.jsx("p",{className:"text-sm text-ouro-shadow",children:n})}function zx(n){const a=n.function.name,s=TN(n.function.arguments);return a==="settle"?{kind:"response",name:a,id:n.id,deliveredText:s.answer??null,delegatedThought:null,metadata:s.intent??null,rawArgs:null}:a==="ponder"?{kind:"delegation",name:a,id:n.id,deliveredText:s.say??null,delegatedThought:s.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:s.reason??null,rawArgs:null}:a==="surface"?{kind:"surface",name:a,id:n.id,deliveredText:s.content??null,delegatedThought:null,metadata:s.delegationId??s.friendId??null,rawArgs:null}:{kind:"action",name:a,id:n.id,deliveredText:null,delegatedThought:null,metadata:null,rawArgs:n.function.arguments}}function TN(n){try{const a=JSON.parse(n);if(a&&typeof a=="object")return a}catch{}return{}}const X0={"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 wN({agentName:n,focus:a,onFocusConsumed:s,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(()=>{ge(`/agents/${encodeURIComponent(n)}/sessions`).then(E=>{d(E),a&&(S(a),s==null||s())})},[n,a]);function S(E){if(f===E){h(null),p(null);return}h(E),p(null),b(!0);const[C,A,L]=E.split("/");ge(`/agents/${encodeURIComponent(n)}/sessions/${encodeURIComponent(C)}/${encodeURIComponent(A)}/${encodeURIComponent(L)}`).then(p).catch(()=>p(null)).finally(()=>b(!1))}const T=new Set((o==null?void 0:o.starredFriends)??[]);if(!u)return v.jsx(Ox,{label:"Loading sessions"});const j=[...u.items].sort((E,C)=>{const A=T.has(E.friendId)?0:1,L=T.has(C.friendId)?0:1;return A-L});return v.jsxs("div",{className:"space-y-3",children:[v.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:[u.totalCount," sessions · ",u.activeCount," active · ",u.staleCount," stale"]}),v.jsx("div",{className:"space-y-1.5",children:j.map(E=>{var Z;const C=T.has(E.friendId),A=`${E.friendId}/${E.channel}/${E.key}`,L=f===A,U=X0[E.replyState]??X0.idle,Y=((Z=E.lastUsage)==null?void 0:Z.total_tokens)??E.estimatedTokens??0,tt=Y>0?Math.min(100,Math.round(Y/8e4*100)):0;return v.jsxs("div",{children:[v.jsxs("button",{onClick:()=>S(A),className:`flex w-full flex-col gap-1.5 rounded-lg px-3 py-3 text-left transition-colors ring-1 ${L?"bg-ouro-moss/15 ring-ouro-glow/20":"ring-ouro-moss/15 hover:bg-ouro-moss/8"}`,children:[v.jsxs("div",{className:"flex items-center justify-between gap-2",children:[v.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[C&&v.jsx("span",{className:"text-ouro-gold",title:"Starred",children:"★"}),v.jsx("span",{className:"truncate font-medium text-ouro-bone",children:E.friendName}),v.jsxs("span",{className:"shrink-0 text-xs text-ouro-shadow",children:["via ",E.channel]}),v.jsx(Yt,{color:U.color,children:U.label})]}),v.jsx("span",{className:"shrink-0 text-xs tabular-nums text-ouro-shadow",children:Qe(E.lastActivityAt)})]}),E.latestUserExcerpt&&v.jsx("p",{className:"truncate text-sm text-ouro-shadow",children:dn(E.latestUserExcerpt,120)}),v.jsxs("div",{className:"flex items-center gap-3 text-xs text-ouro-shadow",children:[v.jsxs("span",{className:"tabular-nums",children:[E.messageCount," msgs"]}),E.lastUsage&&v.jsxs("span",{className:"tabular-nums",children:[E.lastUsage.total_tokens.toLocaleString()," tok"]}),tt>0&&v.jsxs("div",{className:"flex items-center gap-1.5 flex-1 max-w-32",title:"Context pressure — steady state oscillates between 80-100%",children:[v.jsx("div",{className:"h-1 flex-1 rounded-full bg-ouro-moss/20",children:v.jsx("div",{className:`h-1 rounded-full transition-all ${tt>100?"bg-ouro-fang":tt>80?"bg-ouro-gold":"bg-ouro-glow"}`,style:{width:`${Math.min(100,tt)}%`}})}),v.jsxs("span",{className:"tabular-nums text-[10px]",children:[tt,"%"]})]})]})]}),L&&v.jsx(EN,{loading:y,transcript:m})]},A)})})]})}function EN({loading:n,transcript:a}){const s=w.useRef(null);return w.useEffect(()=>{a&&s.current&&(s.current.scrollTop=s.current.scrollHeight)},[a]),v.jsxs("div",{ref:s,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&&v.jsx(Ox,{label:"Loading transcript"}),a&&v.jsx(AN,{messages:a.messages,usage:a.lastUsage})]})}function AN({messages:n,usage:a}){const s=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 v.jsxs("div",{className:"space-y-0.5",children:[a&&v.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"]}),s.length>0&&v.jsxs("div",{className:"pb-2 mb-2 border-b border-ouro-moss/15",children:[v.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 (",s.length,")"]}),u&&s.map(h=>v.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"?v.jsx(jN,{msg:h},h.index):h.role==="assistant"?v.jsx(NN,{msg:h,toolResults:f},h.index):null)]})}function jN({msg:n}){return v.jsx("div",{className:"flex justify-start py-1",children:v.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:[v.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-gold/70",children:"user"}),v.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",n.index]})]}),v.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:n.content})]})})}function NN({msg:n,toolResults:a}){const s=(n.tool_calls??[]).map(zx),o=s.filter(f=>f.kind!=="action"),u=s.filter(f=>f.kind==="action"),d=[];for(const f of o)f.kind==="response"?d.push(v.jsx("div",{className:"flex justify-end py-1",children:v.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:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),v.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.metadata&&f.metadata!=="complete"&&v.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["intent: ",f.metadata]})]})},f.id)):f.kind==="delegation"?d.push(v.jsx("div",{className:"flex justify-end py-1",children:v.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:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),f.deliveredText&&v.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.delegatedThought&&v.jsxs("div",{className:"mt-2 rounded-lg bg-ouro-moss/20 px-2.5 py-1.5 ring-1 ring-ouro-glow/8",children:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/60",children:"→ inner dialog"}),v.jsx("p",{className:"mt-0.5 text-xs text-ouro-mist",children:f.delegatedThought})]})]})},f.id)):f.kind==="surface"?d.push(v.jsx("div",{className:"flex justify-end py-1",children:v.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:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"surfaced"}),v.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.metadata&&v.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["→ ",f.metadata]})]})},f.id)):f.kind==="rest"?d.push(v.jsx("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/50",children:"— resting —"},f.id)):f.kind==="observe"&&d.push(v.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(v.jsx("div",{className:"flex justify-end py-1",children:v.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:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),v.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(v.jsx("div",{className:"flex justify-end py-1",children:v.jsx("div",{className:"max-w-[85%] sm:max-w-[75%] space-y-1",children:u.map(f=>v.jsx(CN,{call:f,result:a.get(f.id)},f.id))})},`${n.index}-tools`)),v.jsx(v.Fragment,{children:d})}function CN({call:n,result:a}){const[s,o]=w.useState(!1);return v.jsxs("button",{onClick:()=>o(!s),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:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"font-mono text-xs text-ouro-glow",children:n.name}),!s&&v.jsx("span",{className:"text-[10px] text-ouro-shadow",children:"tap to inspect"})]}),s&&v.jsxs(v.Fragment,{children:[n.rawArgs&&v.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&&v.jsxs("div",{className:"mt-1.5 border-t border-ouro-moss/15 pt-1.5",children:[v.jsx(Yt,{children:"result"}),v.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 Ox({label:n}){return v.jsxs("div",{className:"flex items-center gap-2 py-6",children:[v.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-ouro-glow"}),v.jsxs("span",{className:"font-mono text-xs text-ouro-shadow",children:[n,"…"]})]})}function MN({agentName:n,view:a,focus:s,onFocusConsumed:o}){var S,T,j;const u=Qi(),[d,f]=w.useState(null),h=a.work,m=h.obligations,p=h.tasks;w.useEffect(()=>{ge(`/agents/${encodeURIComponent(n)}/coding`).then(f)},[n]);const y=(d==null?void 0:d.items)??[],b=new Map;for(const E of y){const C=E.obligationId;C&&(b.has(C)||b.set(C,[]),b.get(C).push(E))}return v.jsxs("div",{className:"space-y-8",children:[v.jsxs("section",{children:[v.jsx(Df,{label:`Obligations (${m.openCount} open)`}),((S=m.items)==null?void 0:S.length)>0?v.jsx("div",{className:"mt-3 space-y-3",children:m.items.map(E=>{const C=b.get(E.id)??[];return v.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Yt,{color:E.status==="pending"?"yellow":E.status==="fulfilled"?"lime":"zinc",children:E.status}),v.jsx("span",{className:"text-sm font-medium text-ouro-bone",children:dn(E.content,120)})]}),E.origin&&v.jsxs("div",{className:"mt-2 flex items-center gap-1.5 text-xs",children:[v.jsx("span",{className:"text-ouro-shadow",children:"triggered from"}),v.jsxs("button",{onClick:()=>u({tab:"sessions",focus:`${E.origin.friendId}/${E.origin.channel}/${E.origin.key}`}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:[E.origin.friendId.slice(0,8),"…/",E.origin.channel,"/",E.origin.key]})]}),E.currentSurface&&v.jsxs("div",{className:"mt-1 text-xs text-ouro-mist",children:["surface: ",v.jsx("span",{className:"text-ouro-bone",children:E.currentSurface.kind})," — ",E.currentSurface.label]}),C.length>0&&v.jsxs("div",{className:"mt-2 space-y-1",children:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow",children:"Linked coding"}),C.map(A=>v.jsxs("div",{className:"flex items-center gap-2 rounded bg-ouro-moss/10 px-2 py-1 text-xs",children:[v.jsx(Yt,{color:A.status==="failed"?"red":A.status==="running"?"lime":"zinc",children:A.status}),v.jsxs("span",{className:"text-ouro-mist truncate",children:[A.runner," — ",A.workdir]})]},A.id))]}),E.nextAction&&v.jsxs("p",{className:"mt-1.5 text-xs text-ouro-mist",children:["Next: ",E.nextAction]}),v.jsx("p",{className:"mt-1 text-xs text-ouro-shadow",children:Qe(E.updatedAt)})]},E.id)})}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No open obligations."})]}),v.jsxs("section",{children:[v.jsx(Df,{label:`Coding lanes (${y.length})`}),y.length>0?v.jsx("div",{className:"mt-3 space-y-2",children:y.map(E=>{const C=E.status,A=C==="failed",L=E.failure;return v.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Yt,{color:A?"red":C==="running"?"lime":C==="completed"?"zinc":"yellow",children:C}),v.jsx("span",{className:"text-sm font-medium text-ouro-bone",children:E.runner}),v.jsx("span",{className:"truncate text-xs text-ouro-shadow",children:E.workdir})]}),v.jsxs("div",{className:"mt-1 flex flex-wrap gap-2",children:[E.obligationId&&v.jsxs("button",{onClick:()=>u({tab:"work",focus:E.obligationId}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["obligation: ",E.obligationId.slice(0,20),"…"]}),E.taskRef&&v.jsxs("span",{className:"text-xs text-ouro-glow",children:["task: ",E.taskRef]}),E.originSession&&v.jsx("button",{onClick:()=>{const U=E.originSession;u({tab:"sessions",focus:`${U.friendId}/${U.channel}/${U.key}`})},className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:"origin session"})]}),E.checkpoint&&v.jsx("p",{className:"mt-1.5 text-xs text-ouro-mist",children:dn(E.checkpoint,100)}),v.jsxs("p",{className:"mt-1 text-xs text-ouro-shadow",children:["pid ",E.pid??"–"," · restarts ",E.restartCount," · ",Qe(E.lastActivityAt)]}),A&&L&&v.jsxs("div",{className:"mt-2 rounded bg-ouro-fang/5 p-2 text-xs ring-1 ring-ouro-fang/15",children:[v.jsx("span",{className:"font-semibold text-ouro-fang",children:"FAILURE:"})," ",v.jsxs("span",{className:"text-ouro-mist",children:[L.command," exited ",String(L.code??L.signal)]}),L.stderrTail&&v.jsx("pre",{className:"mt-1 max-h-20 overflow-y-auto font-mono text-[11px] text-ouro-shadow whitespace-pre-wrap",children:L.stderrTail})]})]},E.id)})}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No coding sessions."})]}),v.jsxs("section",{children:[v.jsx(Df,{label:`Tasks (${p.liveCount} live, ${p.blockedCount} blocked)`}),((T=p.liveTaskNames)==null?void 0:T.length)>0?v.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:p.liveTaskNames.map(E=>v.jsx(Yt,{children:E},E))}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No live tasks."}),((j=p.actionRequired)==null?void 0:j.length)>0&&v.jsxs("div",{className:"mt-3",children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-fang",children:"Action required"}),v.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:p.actionRequired.map(E=>v.jsx(Yt,{color:"red",children:E},E))})]})]})]})}function Df({label:n}){return v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n})}function DN({agentName:n,focus:a,onFocusConsumed:s}){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([ge(`${T}/attention`).then(d),ge(`${T}/bridges`).then(h),ge(`${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 v.jsxs("div",{className:"space-y-8",children:[v.jsxs("section",{children:[v.jsx(zf,{label:`Who is waiting (${(u==null?void 0:u.queueLength)??0})`}),y.length>0?v.jsx("div",{className:"mt-3 space-y-2",children:y.map((T,j)=>v.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:()=>o({tab:"sessions"}),className:"font-medium text-ouro-bone hover:text-ouro-glow transition-colors",children:T.friendName}),v.jsxs("span",{className:"text-xs text-ouro-shadow",children:["via ",T.channel]}),v.jsxs(Yt,{color:"yellow",children:["waiting ",Qe(new Date(T.timestamp).toISOString())]})]}),v.jsx("p",{className:"mt-1 text-sm text-ouro-mist",children:dn(T.delegatedContent,140)}),v.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-2 text-xs",children:[T.bridgeId&&v.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&&v.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),"…"]})]})]},j))}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"Nobody waiting."})]}),v.jsxs("section",{children:[v.jsx(zf,{label:`Bridges (${(f==null?void 0:f.totalCount)??0})`}),b.length>0?v.jsx("div",{className:"mt-3 space-y-3",children:b.map(T=>{const j=T.attachedSessions??[],E=T.task,C=T.lifecycle==="active";return v.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:[v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(Yt,{color:C?"lime":"zinc",children:T.lifecycle}),v.jsx("p",{className:"font-medium text-ouro-bone",children:T.objective})]}),T.summary&&v.jsx("p",{className:"mt-1 text-sm text-ouro-mist",children:dn(T.summary,160)}),j.length>0&&v.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:j.map((A,L)=>v.jsxs("button",{onClick:()=>o({tab:"sessions",focus:`${A.friendId}/${A.channel}/${A.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:[A.friendId,"/",A.channel,"/",A.key]},L))}),E&&v.jsxs("p",{className:"mt-1.5 text-xs",children:[v.jsxs("button",{onClick:()=>o({tab:"work"}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["task: ",E.taskName]}),v.jsxs("span",{className:"text-ouro-shadow",children:[" (",E.mode,")"]})]}),v.jsx("p",{className:"mt-1 text-xs text-ouro-shadow",children:Qe(T.updatedAt)})]},T.id)})}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No bridges."})]}),v.jsxs("section",{children:[v.jsx(zf,{label:`Friends (${(m==null?void 0:m.totalFriends)??0})`}),S.length>0?v.jsx("div",{className:"mt-3 space-y-1.5",children:S.map(T=>v.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:[v.jsxs("div",{className:"min-w-0",children:[v.jsx("button",{onClick:()=>o({tab:"sessions"}),className:"font-medium text-ouro-bone hover:text-ouro-glow transition-colors",children:T.friendName}),v.jsxs("p",{className:"text-xs text-ouro-shadow",children:[T.channels.join(", ")," · ",T.sessionCount," sessions",T.lastActivityAt&&v.jsxs(v.Fragment,{children:[" · ",Qe(T.lastActivityAt)]})]})]}),v.jsxs("div",{className:"shrink-0 text-right",children:[v.jsx("p",{className:"tabular-nums text-sm font-medium text-ouro-bone",children:T.totalTokens.toLocaleString()}),v.jsx("p",{className:"text-[10px] text-ouro-shadow",children:"tokens"})]})]},T.friendId))}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No friends."})]})]})}function zf({label:n}){return v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n})}function zN({agentName:n,view:a}){var C;const s=Qi(),[o,u]=w.useState(null),[d,f]=w.useState(null),[h,m]=w.useState(!1),p=a.inner;w.useEffect(()=>{ge(`/agents/${encodeURIComponent(n)}/habits`).then(u)},[n]);function y(){if(d){m(!h);return}ge(`/agents/${encodeURIComponent(n)}/inner-transcript`).then(A=>{f(A),m(!0)})}const b=(o==null?void 0:o.items)??[],S=b.filter(A=>A.isOverdue),T=b.filter(A=>A.status==="active"&&!A.isOverdue),j=b.filter(A=>A.status==="paused"),E=b.find(A=>{var L;return((L=A.name)==null?void 0:L.toLowerCase())==="heartbeat"});return v.jsxs("div",{className:"space-y-8",children:[E&&v.jsxs("section",{children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Heartbeat"}),v.jsx("div",{className:`mt-2 rounded-xl p-4 ring-1 ${E.isOverdue?"bg-ouro-fang/5 ring-ouro-fang/15":"bg-ouro-moss/10 ring-ouro-glow/10"}`,children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${E.isOverdue?"bg-ouro-fang animate-pulse":"bg-ouro-glow"}`}),v.jsx("span",{className:"font-medium text-ouro-bone",children:E.isOverdue?"Overdue":"Healthy"}),v.jsxs("span",{className:"text-xs text-ouro-shadow",children:["every ",E.cadence," · last ",E.lastRun?Qe(E.lastRun):"never"]})]})})]}),v.jsx("section",{children:v.jsxs("div",{className:"rounded-xl bg-ouro-moss/15 p-4 ring-1 ring-ouro-glow/10",children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"Inner work"}),v.jsx("p",{className:"mt-1 font-display text-xl italic font-semibold text-ouro-bone",children:p.status}),p.summary&&v.jsx("p",{className:"mt-2 text-sm leading-relaxed text-ouro-mist",children:p.summary}),v.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&&v.jsxs("div",{className:"mt-3",children:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow",children:"Triggered from"}),v.jsxs("button",{onClick:()=>{const A=p.origin;s({tab:"sessions",focus:`${A.friendId}/${A.channel}/${A.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&&v.jsxs("button",{onClick:()=>s({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]})]})]})}),v.jsxs("section",{children:[v.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:["Inner dialog ",d?`(${d.messages.length} total)`:""]}),d?v.jsx(ON,{messages:d.messages}):v.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"})]}),v.jsxs("section",{children:[v.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&&v.jsxs("div",{className:"mt-3",children:[v.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-fang mb-1.5",children:["Overdue (",S.length,")"]}),v.jsx("div",{className:"space-y-1.5",children:S.map(A=>v.jsx(Of,{h:A},A.name))})]}),T.length>0&&v.jsxs("div",{className:"mt-3",children:[v.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow mb-1.5",children:["Running fine (",T.length,")"]}),v.jsx("div",{className:"space-y-1.5",children:T.map(A=>v.jsx(Of,{h:A},A.name))})]}),j.length>0&&v.jsxs("div",{className:"mt-3",children:[v.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow mb-1.5",children:["Paused (",j.length,")"]}),v.jsx("div",{className:"space-y-1.5",children:j.map(A=>v.jsx(Of,{h:A},A.name))})]}),b.length===0&&v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No habits configured."})]})]})}function ON({messages:n}){const a=n.filter(h=>h.role!=="system"&&h.role!=="tool"),[s,o]=w.useState(!1),u=w.useRef(null),d=s?a:a.slice(-30),f=a.length-d.length;return w.useEffect(()=>{u.current&&(u.current.scrollTop=u.current.scrollHeight)},[d.length]),v.jsxs("div",{ref:u,className:"mt-2 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&&v.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(h=>{var m,p,y,b;if(h.role==="user"){const S=((m=h.content)==null?void 0:m.includes("[pending from"))||((p=h.content)==null?void 0:p.includes("[delegated")),T=((y=h.content)==null?void 0:y.includes("waking up"))||((b=h.content)==null?void 0:b.includes("world-state checkpoint"));return v.jsx("div",{className:"flex justify-start py-1",children:v.jsxs("div",{className:`max-w-[85%] rounded-2xl rounded-bl-sm px-3 py-2 ring-1 ${S?"bg-ouro-gold/8 ring-ouro-gold/15":T?"bg-ouro-moss/20 ring-ouro-moss/15":"bg-ouro-moss/25 ring-ouro-moss/15"}`,children:[v.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider",style:{color:S?"var(--color-ouro-gold)":"var(--color-ouro-shadow)"},children:S?"★ delegated":T?"heartbeat":"prompt"}),v.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",h.index]})]}),v.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:h.content})]})},h.index)}if(h.role==="assistant"){const S=(h.tool_calls??[]).map(zx),T=S.filter(C=>C.kind==="surface"),j=S.filter(C=>C.kind==="rest"),E=S.filter(C=>C.kind==="delegation");return v.jsxs("div",{children:[T.map(C=>v.jsx("div",{className:"flex justify-end py-1",children:v.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:[v.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow",children:"★ surfaced outward"}),v.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",h.index]})]}),v.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:C.deliveredText}),C.metadata&&v.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["→ ",C.metadata]})]})},C.id)),E.length>0&&v.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-gold/50",children:["— still thinking — #",h.index]}),j.length>0&&v.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/40",children:["— resting — #",h.index]}),T.length===0&&j.length===0&&E.length===0&&h.content&&v.jsx("div",{className:"flex justify-end py-1",children:v.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:[v.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[v.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/50",children:"thinking"}),v.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",h.index]})]}),v.jsx("p",{className:"text-sm leading-relaxed text-ouro-mist whitespace-pre-wrap break-words",children:h.content})]})})]},h.index)}return null})]})}function Of({h:n}){const a=n.isOverdue,s=n.isDegraded,o=n.status;return v.jsxs("div",{className:`rounded-lg px-3 py-2.5 ring-1 ${a?"bg-ouro-fang/5 ring-ouro-fang/15":s?"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:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Yt,{color:a?"red":s?"yellow":o==="active"?"lime":"zinc",children:a?"overdue":s?"degraded":o}),v.jsx("span",{className:"font-medium text-ouro-bone",children:n.title})]}),v.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-ouro-shadow",children:[n.cadence&&v.jsxs("span",{children:["every ",n.cadence]}),v.jsx("span",{children:n.lastRun?`last ${Qe(n.lastRun)}`:"never run"}),s&&n.degradedReason&&v.jsx("span",{className:"text-ouro-gold",children:n.degradedReason})]}),n.bodyExcerpt&&v.jsx("p",{className:"mt-1 text-xs text-ouro-shadow/70",children:n.bodyExcerpt})]})}function RN({agentName:n}){const[a,s]=w.useState(null),[o,u]=w.useState("diary");if(w.useEffect(()=>{ge(`/agents/${encodeURIComponent(n)}/memory`).then(s)},[n]),!a)return v.jsxs("div",{className:"flex items-center gap-2 py-6",children:[v.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-ouro-glow"}),v.jsx("span",{className:"font-mono text-xs text-ouro-shadow",children:"Loading…"})]});const d=a.recentDiaryEntries??[],f=a.recentJournalEntries??[];return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.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,")"]}),v.jsx("span",{className:"text-ouro-shadow/30",children:"|"}),v.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"&&v.jsx("div",{children:d.length>0?v.jsx("div",{className:"space-y-3",children:d.map(h=>v.jsxs("article",{className:"rounded-xl bg-ouro-void/40 px-4 py-3.5 ring-1 ring-ouro-moss/15",children:[v.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone",children:h.text}),v.jsxs("div",{className:"mt-2 flex items-center gap-2 text-xs text-ouro-shadow",children:[v.jsx(Yt,{children:h.source}),v.jsx("span",{children:Qe(h.createdAt)})]})]},h.id))}):v.jsx("p",{className:"text-sm text-ouro-shadow italic",children:"No diary entries yet. The agent hasn't written anything down."})}),o==="journal"&&v.jsx("div",{children:f.length>0?v.jsx("div",{className:"space-y-3",children:f.map(h=>v.jsxs("article",{className:"rounded-xl bg-ouro-void/40 px-4 py-3.5 ring-1 ring-ouro-moss/15",children:[v.jsx("p",{className:"font-medium text-ouro-bone",children:h.filename}),v.jsx("p",{className:"mt-1 text-sm leading-relaxed text-ouro-mist",children:h.preview})]},h.filename))}):v.jsx("p",{className:"text-sm text-ouro-shadow italic",children:"No journal entries yet."})})]})}function VN({agentName:n,view:a}){const[s,o]=w.useState(null),[u,d]=w.useState(null),f=a.agent,h=f.degraded,m=f.freshness;w.useEffect(()=>{Promise.all([ge("/machine/health").then(o).catch(()=>null),ge("/machine/logs").then(d).catch(()=>null)])},[n]);const p=(s==null?void 0:s.degradedComponents)??[],y=(u==null?void 0:u.entries)??[];return v.jsxs("div",{className:"space-y-8",children:[h.status==="degraded"&&h.issues.length>0&&v.jsxs("section",{children:[v.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-fang",children:["Agent issues (",h.issues.length,")"]}),v.jsx("div",{className:"mt-3 space-y-1.5",children:h.issues.map((b,S)=>v.jsxs("div",{className:"rounded-lg bg-ouro-fang/5 px-3 py-2.5 ring-1 ring-ouro-fang/15",children:[v.jsx("p",{className:"font-mono text-xs font-semibold text-ouro-fang",children:b.code}),v.jsx("p",{className:"mt-0.5 text-xs text-ouro-mist break-all",children:b.detail})]},S))})]}),v.jsxs("section",{children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Agent config"}),v.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3",children:[v.jsx(Hi,{label:"Provider",value:f.provider||"none"}),v.jsx(Hi,{label:"Enabled",value:f.enabled?"yes":"no"}),v.jsx(Hi,{label:"Freshness",value:`${m.status}${m.ageMs!=null?` (${Math.floor(m.ageMs/6e4)}m)`:""}`})]})]}),v.jsxs("section",{children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Daemon health"}),s&&s.status!=="unavailable"?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3",children:[v.jsx(Hi,{label:"Status",value:s.status}),v.jsx(Hi,{label:"Mode",value:s.mode}),v.jsx(Hi,{label:"Uptime",value:`${Math.floor(s.uptimeSeconds/60)}m`})]}),p.length>0&&v.jsxs("div",{className:"mt-3 space-y-1.5",children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-fang",children:"Degraded components"}),p.map((b,S)=>v.jsxs("div",{className:"rounded-lg bg-ouro-fang/5 px-3 py-2 ring-1 ring-ouro-fang/15",children:[v.jsx("p",{className:"text-xs font-semibold text-ouro-fang",children:b.component}),v.jsx("p",{className:"text-xs text-ouro-mist",children:b.reason})]},S))]})]}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No health file found. This is normal when not running under the daemon."})]}),v.jsxs("section",{children:[v.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?v.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 v.jsxs("div",{className:"border-b border-ouro-moss/10 px-3 py-1.5 last:border-b-0",children:[v.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[v.jsx(Yt,{color:T==="error"?"red":T==="warn"?"yellow":"zinc",children:T}),v.jsx("span",{className:"text-ouro-shadow",children:Qe(b.ts)}),v.jsx("span",{className:"font-mono text-ouro-glow",children:b.event})]}),v.jsx("p",{className:"truncate text-xs text-ouro-mist",children:b.message})]},S)})}):v.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No log entries."})]})]})}function Hi({label:n,value:a}){return v.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[v.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow",children:n}),v.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 LN(n){return n==="degraded"||n==="blocked"?"red":n==="stale"?"yellow":n==="active"?"lime":"zinc"}function _N({agentName:n,view:a,deskPrefs:s,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(j=>{d(j.tab),h(j.focus),window.history.pushState(null,"",Vf({agent:n,tab:j.tab,focus:j.focus}))},[n]),y=w.useCallback(j=>{d(j),h(void 0),window.history.pushState(null,"",Vf({agent:n,tab:j,focus:void 0}))},[n]),b=w.useCallback(()=>h(void 0),[]);if(!a||!n)return v.jsxs("div",{className:"flex flex-col items-center justify-center py-24 text-center",children:[v.jsx("p",{className:"font-display text-2xl italic text-ouro-bone",children:"Choose an agent"}),v.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 v.jsx(Q0.Provider,{value:p,children:v.jsxs("div",{children:[v.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 pb-4 border-b border-ouro-moss/30",children:[v.jsx("div",{className:"min-w-0",children:v.jsx("h1",{className:"font-display text-2xl italic font-semibold text-ouro-bone sm:text-3xl",children:n})}),v.jsx(Yt,{color:LN(T.level),children:T.label})]}),v.jsx("nav",{className:"mt-4 flex gap-0.5 overflow-x-auto border-b border-ouro-moss/20 -mx-1",children:(()=>{const j=s==null?void 0:s.tabOrder;if(!j)return Rf;const E=j.map(A=>Rf.find(L=>L.id===A)).filter(A=>A!==void 0),C=Rf.filter(A=>!j.includes(A.id));return[...E,...C]})().map(j=>v.jsx("button",{type:"button",onClick:()=>y(j.id),className:`shrink-0 px-3 py-2 text-xs font-mono uppercase tracking-wider transition-colors rounded-t-md ${u===j.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:j.label},j.id))}),v.jsxs("div",{className:"mt-6",children:[u==="overview"&&v.jsx(xN,{view:a,deskPrefs:s}),u==="sessions"&&v.jsx(wN,{agentName:n,focus:f,onFocusConsumed:b,deskPrefs:s}),u==="work"&&v.jsx(MN,{agentName:n,view:a,focus:f,onFocusConsumed:b}),u==="connections"&&v.jsx(DN,{agentName:n,focus:f,onFocusConsumed:b}),u==="inner"&&v.jsx(zN,{agentName:n,view:a}),u==="memory"&&v.jsx(RN,{agentName:n}),u==="runtime"&&v.jsx(VN,{agentName:n,view:a})]})]})})}function K0(){return J0(window.location.hash)}function UN(n){return n==="degraded"||n==="blocked"?"red":n==="stale"?"yellow":n==="active"?"lime":"zinc"}function kN(){var j,E;const[n,a]=w.useState(null),[s,o]=w.useState(((j=K0())==null?void 0:j.agent)??""),[u,d]=w.useState(null),f=w.useRef(0),h=w.useRef(K0()),m=w.useCallback(async()=>{var C;try{const A=await ge("/machine");if(a(A),!s&&A.agents.length>0){const L=((C=h.current)==null?void 0:C.agent)??A.agents[0].agentName;o(L)}}catch{}},[s]),[p,y]=w.useState(null),b=w.useCallback(async C=>{if(!C){d(null),y(null);return}try{const[A,L]=await Promise.all([ge(`/agents/${encodeURIComponent(C)}`),ge(`/agents/${encodeURIComponent(C)}/desk-prefs`)]);d(A),y(L)}catch{d(null),y(null)}},[]);w.useEffect(()=>{m()},[m]),w.useEffect(()=>{s&&b(s)},[s,b]),w.useEffect(()=>hT(()=>{const A=++f.current;m().then(()=>{f.current===A&&s&&b(s)})}),[m,b,s]),w.useEffect(()=>{const C=()=>{const A=J0(window.location.hash);A&&o(A.agent)};return window.addEventListener("hashchange",C),()=>window.removeEventListener("hashchange",C)},[]);const S=w.useCallback(C=>{o(C),window.history.pushState(null,"",Vf({agent:C,tab:"overview",focus:void 0}))},[]);if(!n)return v.jsx("div",{className:"flex h-screen items-center justify-center bg-ouro-void",children:v.jsxs("div",{className:"text-center",children:[v.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)]"}),v.jsx("p",{className:"font-mono text-sm text-ouro-mist",children:"Connecting to Outlook…"})]})});const T=n.overview.totals;return v.jsx(uN,{navbar:v.jsxs(aN,{children:[v.jsx(lN,{}),v.jsx(iN,{children:v.jsx(Id,{children:v.jsx(Yt,{color:n.overview.daemon.mode==="dev"?"yellow":"lime",children:n.overview.daemon.mode})})})]}),sidebar:v.jsxs(cN,{className:"bg-ouro-deep",children:[v.jsx(fN,{className:"border-ouro-moss/30",children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"h-3 w-3 shrink-0 rounded-full bg-ouro-glow shadow-[0_0_16px_theme(--color-ouro-glow)]"}),v.jsx("div",{className:"min-w-0",children:v.jsx("p",{className:"truncate font-display text-lg italic font-semibold text-ouro-bone",children:"Ouro Outlook"})})]})}),v.jsxs(dN,{className:"[&>[data-slot=section]+[data-slot=section]]:mt-4",children:[v.jsxs(Y0,{children:[v.jsx(q0,{className:"text-ouro-mist/60",children:"Machine"}),v.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=>v.jsxs("div",{className:"rounded-md bg-ouro-void/60 px-2 py-1.5 text-center ring-1 ring-ouro-moss/20",children:[v.jsx("div",{className:`text-base font-semibold tabular-nums ${C.alert?"text-ouro-fang":"text-ouro-bone"}`,children:C.v}),v.jsx("div",{className:"text-[9px] uppercase tracking-widest text-ouro-shadow",children:C.l})]},C.l))})]}),v.jsxs(Y0,{children:[v.jsx(q0,{className:"text-ouro-mist/60",children:"Agents"}),n.agents.map(C=>v.jsx(mN,{current:C.agentName===s,onClick:()=>S(C.agentName),children:v.jsxs("div",{className:"flex min-w-0 flex-1 items-center justify-between gap-2",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsx(pN,{className:"text-ouro-bone",children:C.agentName}),v.jsxs("p",{className:"truncate text-xs text-ouro-shadow",children:[C.tasks.liveCount,"t · ",C.obligations.openCount,"o · ",C.coding.activeCount,"c"]})]}),v.jsx(Yt,{color:UN(C.attention.level),children:C.attention.label})]})},C.agentName))]})]}),v.jsx(hN,{className:"border-ouro-moss/30",children:v.jsxs("div",{className:"px-2 text-xs text-ouro-shadow",children:[v.jsx("p",{className:"font-mono",children:n.overview.runtime.version}),v.jsxs("p",{className:"mt-0.5",children:[n.overview.daemon.mode," · ",n.overview.freshness.status]})]})}),s&&u&&v.jsx("div",{className:"px-4 py-2 border-t border-ouro-moss/20",children:v.jsx("p",{className:"text-xs italic text-ouro-shadow/70",children:(()=>{var X;const C=p==null?void 0:p.statusLine;if(C)return C;const A=u==null?void 0:u.inner;if((A==null?void 0:A.status)==="working"||A!=null&&A.hasPending)return"thinking through something privately";const U=u==null?void 0:u.work,Y=((X=U==null?void 0:U.obligations)==null?void 0:X.openCount)??0;return Y>2?"a few loose ends":Y>0?"carrying something":"steady"})()})})]}),children:v.jsx(_N,{agentName:s,view:u,deskPrefs:p,initialRoute:((E=h.current)==null?void 0:E.agent)===s?h.current:void 0})})}dT.createRoot(document.getElementById("app")).render(v.jsx(w.StrictMode,{children:v.jsx(kN,{})}));
|