nomoreide 0.1.0 → 0.1.2
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 +95 -21
- package/dist/cli/commands.js +32 -4
- package/dist/cli/commands.js.map +1 -1
- package/dist/core/config-store.d.ts +3 -1
- package/dist/core/config-store.js +11 -3
- package/dist/core/config-store.js.map +1 -1
- package/dist/core/git-manager.d.ts +12 -0
- package/dist/core/git-manager.js +86 -0
- package/dist/core/git-manager.js.map +1 -1
- package/dist/core/process-manager.d.ts +1 -0
- package/dist/core/process-manager.js +14 -0
- package/dist/core/process-manager.js.map +1 -1
- package/dist/core/types.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.d.ts +10 -2
- package/dist/mcp/server.js +66 -4
- package/dist/mcp/server.js.map +1 -1
- package/dist/web/client/assets/index-BXZhk5lu.css +1 -0
- package/dist/web/client/assets/index-DJYliB79.js +10 -0
- package/dist/web/client/index.html +2 -2
- package/dist/web/server.js +140 -9
- package/dist/web/server.js.map +1 -1
- package/dist/web/ui-lifecycle.d.ts +28 -0
- package/dist/web/ui-lifecycle.js +129 -0
- package/dist/web/ui-lifecycle.js.map +1 -0
- package/package.json +12 -1
- package/dist/web/client/assets/index-CvX1Rx-e.css +0 -1
- package/dist/web/client/assets/index-Dy5kcoI8.js +0 -11
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();var mc={exports:{}},Rs={};var Zp;function gx(){if(Zp)return Rs;Zp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:a,type:o,key:d,ref:c!==void 0?c:null,props:f}}return Rs.Fragment=i,Rs.jsx=l,Rs.jsxs=l,Rs}var Kp;function yx(){return Kp||(Kp=1,mc.exports=gx()),mc.exports}var y=yx(),pc={exports:{}},ht={};var Jp;function vx(){if(Jp)return ht;Jp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,_={};function q(A,U,J){this.props=A,this.context=U,this.refs=_,this.updater=J||E}q.prototype.isReactComponent={},q.prototype.setState=function(A,U){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,U,"setState")},q.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function H(){}H.prototype=q.prototype;function Y(A,U,J){this.props=A,this.context=U,this.refs=_,this.updater=J||E}var Q=Y.prototype=new H;Q.constructor=Y,z(Q,q.prototype),Q.isPureReactComponent=!0;var P=Array.isArray;function ut(){}var X={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function lt(A,U,J){var W=J.ref;return{$$typeof:a,type:A,key:U,ref:W!==void 0?W:null,props:J}}function at(A,U){return lt(A.type,U,A.props)}function ct(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function ft(A){var U={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return U[J]})}var Zt=/\/+/g;function zt(A,U){return typeof A=="object"&&A!==null&&A.key!=null?ft(""+A.key):U.toString(36)}function Mt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ut,ut):(A.status="pending",A.then(function(U){A.status==="pending"&&(A.status="fulfilled",A.value=U)},function(U){A.status==="pending"&&(A.status="rejected",A.reason=U)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function R(A,U,J,W,it){var ot=typeof A;(ot==="undefined"||ot==="boolean")&&(A=null);var wt=!1;if(A===null)wt=!0;else switch(ot){case"bigint":case"string":case"number":wt=!0;break;case"object":switch(A.$$typeof){case a:case i:wt=!0;break;case v:return wt=A._init,R(wt(A._payload),U,J,W,it)}}if(wt)return it=it(A),wt=W===""?"."+zt(A,0):W,P(it)?(J="",wt!=null&&(J=wt.replace(Zt,"$&/")+"/"),R(it,U,J,"",function(_n){return _n})):it!=null&&(ct(it)&&(it=at(it,J+(it.key==null||A&&A.key===it.key?"":(""+it.key).replace(Zt,"$&/")+"/")+wt)),U.push(it)),1;wt=0;var ie=W===""?".":W+":";if(P(A))for(var gt=0;gt<A.length;gt++)W=A[gt],ot=ie+zt(W,gt),wt+=R(W,U,J,ot,it);else if(gt=j(A),typeof gt=="function")for(A=gt.call(A),gt=0;!(W=A.next()).done;)W=W.value,ot=ie+zt(W,gt++),wt+=R(W,U,J,ot,it);else if(ot==="object"){if(typeof A.then=="function")return R(Mt(A),U,J,W,it);throw U=String(A),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return wt}function K(A,U,J){if(A==null)return A;var W=[],it=0;return R(A,W,"","",function(ot){return U.call(J,ot,it++)}),W}function F(A){if(A._status===-1){var U=A._result;U=U(),U.then(function(J){(A._status===0||A._status===-1)&&(A._status=1,A._result=J)},function(J){(A._status===0||A._status===-1)&&(A._status=2,A._result=J)}),A._status===-1&&(A._status=0,A._result=U)}if(A._status===1)return A._result.default;throw A._result}var dt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Z={map:K,forEach:function(A,U,J){K(A,function(){U.apply(this,arguments)},J)},count:function(A){var U=0;return K(A,function(){U++}),U},toArray:function(A){return K(A,function(U){return U})||[]},only:function(A){if(!ct(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ht.Activity=x,ht.Children=Z,ht.Component=q,ht.Fragment=l,ht.Profiler=c,ht.PureComponent=Y,ht.StrictMode=o,ht.Suspense=g,ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ht.__COMPILER_RUNTIME={__proto__:null,c:function(A){return X.H.useMemoCache(A)}},ht.cache=function(A){return function(){return A.apply(null,arguments)}},ht.cacheSignal=function(){return null},ht.cloneElement=function(A,U,J){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=z({},A.props),it=A.key;if(U!=null)for(ot in U.key!==void 0&&(it=""+U.key),U)!k.call(U,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&U.ref===void 0||(W[ot]=U[ot]);var ot=arguments.length-2;if(ot===1)W.children=J;else if(1<ot){for(var wt=Array(ot),ie=0;ie<ot;ie++)wt[ie]=arguments[ie+2];W.children=wt}return lt(A.type,it,W)},ht.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},ht.createElement=function(A,U,J){var W,it={},ot=null;if(U!=null)for(W in U.key!==void 0&&(ot=""+U.key),U)k.call(U,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(it[W]=U[W]);var wt=arguments.length-2;if(wt===1)it.children=J;else if(1<wt){for(var ie=Array(wt),gt=0;gt<wt;gt++)ie[gt]=arguments[gt+2];it.children=ie}if(A&&A.defaultProps)for(W in wt=A.defaultProps,wt)it[W]===void 0&&(it[W]=wt[W]);return lt(A,ot,it)},ht.createRef=function(){return{current:null}},ht.forwardRef=function(A){return{$$typeof:m,render:A}},ht.isValidElement=ct,ht.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:F}},ht.memo=function(A,U){return{$$typeof:p,type:A,compare:U===void 0?null:U}},ht.startTransition=function(A){var U=X.T,J={};X.T=J;try{var W=A(),it=X.S;it!==null&&it(J,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ut,dt)}catch(ot){dt(ot)}finally{U!==null&&J.types!==null&&(U.types=J.types),X.T=U}},ht.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ht.use=function(A){return X.H.use(A)},ht.useActionState=function(A,U,J){return X.H.useActionState(A,U,J)},ht.useCallback=function(A,U){return X.H.useCallback(A,U)},ht.useContext=function(A){return X.H.useContext(A)},ht.useDebugValue=function(){},ht.useDeferredValue=function(A,U){return X.H.useDeferredValue(A,U)},ht.useEffect=function(A,U){return X.H.useEffect(A,U)},ht.useEffectEvent=function(A){return X.H.useEffectEvent(A)},ht.useId=function(){return X.H.useId()},ht.useImperativeHandle=function(A,U,J){return X.H.useImperativeHandle(A,U,J)},ht.useInsertionEffect=function(A,U){return X.H.useInsertionEffect(A,U)},ht.useLayoutEffect=function(A,U){return X.H.useLayoutEffect(A,U)},ht.useMemo=function(A,U){return X.H.useMemo(A,U)},ht.useOptimistic=function(A,U){return X.H.useOptimistic(A,U)},ht.useReducer=function(A,U,J){return X.H.useReducer(A,U,J)},ht.useRef=function(A){return X.H.useRef(A)},ht.useState=function(A){return X.H.useState(A)},ht.useSyncExternalStore=function(A,U,J){return X.H.useSyncExternalStore(A,U,J)},ht.useTransition=function(){return X.H.useTransition()},ht.version="19.2.6",ht}var Fp;function hf(){return Fp||(Fp=1,pc.exports=vx()),pc.exports}var L=hf(),gc={exports:{}},Os={},yc={exports:{}},vc={};var Pp;function bx(){return Pp||(Pp=1,(function(a){function i(R,K){var F=R.length;R.push(K);t:for(;0<F;){var dt=F-1>>>1,Z=R[dt];if(0<c(Z,K))R[dt]=K,R[F]=Z,F=dt;else break t}}function l(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var K=R[0],F=R.pop();if(F!==K){R[0]=F;t:for(var dt=0,Z=R.length,A=Z>>>1;dt<A;){var U=2*(dt+1)-1,J=R[U],W=U+1,it=R[W];if(0>c(J,F))W<Z&&0>c(it,J)?(R[dt]=it,R[W]=F,dt=W):(R[dt]=J,R[U]=F,dt=U);else if(W<Z&&0>c(it,F))R[dt]=it,R[W]=F,dt=W;else break t}}return K}function c(R,K){var F=R.sortIndex-K.sortIndex;return F!==0?F:R.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();a.unstable_now=function(){return d.now()-m}}var g=[],p=[],v=1,x=null,S=3,j=!1,E=!1,z=!1,_=!1,q=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function Q(R){for(var K=l(p);K!==null;){if(K.callback===null)o(p);else if(K.startTime<=R)o(p),K.sortIndex=K.expirationTime,i(g,K);else break;K=l(p)}}function P(R){if(z=!1,Q(R),!E)if(l(g)!==null)E=!0,ut||(ut=!0,ft());else{var K=l(p);K!==null&&Mt(P,K.startTime-R)}}var ut=!1,X=-1,k=5,lt=-1;function at(){return _?!0:!(a.unstable_now()-lt<k)}function ct(){if(_=!1,ut){var R=a.unstable_now();lt=R;var K=!0;try{t:{E=!1,z&&(z=!1,H(X),X=-1),j=!0;var F=S;try{e:{for(Q(R),x=l(g);x!==null&&!(x.expirationTime>R&&at());){var dt=x.callback;if(typeof dt=="function"){x.callback=null,S=x.priorityLevel;var Z=dt(x.expirationTime<=R);if(R=a.unstable_now(),typeof Z=="function"){x.callback=Z,Q(R),K=!0;break e}x===l(g)&&o(g),Q(R)}else o(g);x=l(g)}if(x!==null)K=!0;else{var A=l(p);A!==null&&Mt(P,A.startTime-R),K=!1}}break t}finally{x=null,S=F,j=!1}K=void 0}}finally{K?ft():ut=!1}}}var ft;if(typeof Y=="function")ft=function(){Y(ct)};else if(typeof MessageChannel<"u"){var Zt=new MessageChannel,zt=Zt.port2;Zt.port1.onmessage=ct,ft=function(){zt.postMessage(null)}}else ft=function(){q(ct,0)};function Mt(R,K){X=q(function(){R(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(R){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var F=S;S=K;try{return R()}finally{S=F}},a.unstable_requestPaint=function(){_=!0},a.unstable_runWithPriority=function(R,K){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var F=S;S=R;try{return K()}finally{S=F}},a.unstable_scheduleCallback=function(R,K,F){var dt=a.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?dt+F:dt):F=dt,R){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=F+Z,R={id:v++,callback:K,priorityLevel:R,startTime:F,expirationTime:Z,sortIndex:-1},F>dt?(R.sortIndex=F,i(p,R),l(g)===null&&R===l(p)&&(z?(H(X),X=-1):z=!0,Mt(P,F-dt))):(R.sortIndex=Z,i(g,R),E||j||(E=!0,ut||(ut=!0,ft()))),R},a.unstable_shouldYield=at,a.unstable_wrapCallback=function(R){var K=S;return function(){var F=S;S=K;try{return R.apply(this,arguments)}finally{S=F}}}})(vc)),vc}var $p;function xx(){return $p||($p=1,yc.exports=bx()),yc.exports}var bc={exports:{}},me={};var Wp;function Sx(){if(Wp)return me;Wp=1;var a=hf();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,p,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:g,containerInfo:p,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,me.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,v)},me.flushSync=function(g){var p=d.T,v=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=p,o.p=v,o.d.f()}},me.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},me.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},me.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:j}):v==="script"&&o.d.X(g,{crossOrigin:x,integrity:S,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},me.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},me.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin);o.d.L(g,v,{crossOrigin:x,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})}},me.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},me.requestFormReset=function(g){o.d.r(g)},me.unstable_batchedUpdates=function(g,p){return g(p)},me.useFormState=function(g,p,v){return d.H.useFormState(g,p,v)},me.useFormStatus=function(){return d.H.useHostTransitionStatus()},me.version="19.2.6",me}var Ip;function Tx(){if(Ip)return bc.exports;Ip=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),bc.exports=Sx(),bc.exports}var tg;function Ax(){if(tg)return Os;tg=1;var a=xx(),i=hf(),l=Tx();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(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 m(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 g(t){if(f(t)!==t)throw Error(o(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,s=e;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return g(r),t;if(u===s)return g(r),e;u=u.sibling}throw Error(o(188))}if(n.return!==s.return)n=r,s=u;else{for(var h=!1,b=r.child;b;){if(b===n){h=!0,n=r,s=u;break}if(b===s){h=!0,s=r,n=u;break}b=b.sibling}if(!h){for(b=u.child;b;){if(b===n){h=!0,n=u,s=r;break}if(b===s){h=!0,s=u,n=r;break}b=b.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==s)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),at=Symbol.for("react.memo_cache_sentinel"),ct=Symbol.iterator;function ft(t){return t===null||typeof t!="object"?null:(t=ct&&t[ct]||t["@@iterator"],typeof t=="function"?t:null)}var Zt=Symbol.for("react.client.reference");function zt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Zt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case q:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case ut:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case Y:return t.displayName||"Context";case H:return(t._context.displayName||"Context")+".Consumer";case Q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X:return e=t.displayName||null,e!==null?e:zt(t.type)||"Memo";case k:e=t._payload,t=t._init;try{return zt(t(e))}catch{}}return null}var Mt=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},dt=[],Z=-1;function A(t){return{current:t}}function U(t){0>Z||(t.current=dt[Z],dt[Z]=null,Z--)}function J(t,e){Z++,dt[Z]=t.current,t.current=e}var W=A(null),it=A(null),ot=A(null),wt=A(null);function ie(t,e){switch(J(ot,e),J(it,t),J(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?pp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=pp(e),t=gp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(W),J(W,t)}function gt(){U(W),U(it),U(ot)}function _n(t){t.memoizedState!==null&&J(wt,t);var e=W.current,n=gp(e,t.type);e!==n&&(J(it,t),J(W,n))}function mn(t){it.current===t&&(U(W),U(it)),wt.current===t&&(U(wt),Cs._currentValue=F)}var Ln,Ga;function ke(t){if(Ln===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ln=e&&e[1]||"",Ga=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ln+t+Ga}var $o=!1;function Wo(t,e){if(!t||$o)return"";$o=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={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(O){var D=O}Reflect.construct(t,[],G)}else{try{G.call()}catch(O){D=O}t.call(G.prototype)}}else{try{throw Error()}catch(O){D=O}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(O){if(O&&D&&typeof O.stack=="string")return[O.stack,D.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var T=h.split(`
|
|
4
|
+
`),N=b.split(`
|
|
5
|
+
`);for(r=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;if(s===T.length||r===N.length)for(s=T.length-1,r=N.length-1;1<=s&&0<=r&&T[s]!==N[r];)r--;for(;1<=s&&0<=r;s--,r--)if(T[s]!==N[r]){if(s!==1||r!==1)do if(s--,r--,0>r||T[s]!==N[r]){var V=`
|
|
6
|
+
`+T[s].replace(" at new "," at ");return t.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",t.displayName)),V}while(1<=s&&0<=r);break}}}finally{$o=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ke(n):""}function Kv(t,e){switch(t.tag){case 26:case 27:case 5:return ke(t.type);case 16:return ke("Lazy");case 13:return t.child!==e&&e!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Wo(t.type,!1);case 11:return Wo(t.type.render,!1);case 1:return Wo(t.type,!0);case 31:return ke("Activity");default:return""}}function Zf(t){try{var e="",n=null;do e+=Kv(t,n),n=t,t=t.return;while(t);return e}catch(s){return`
|
|
7
|
+
Error generating stack: `+s.message+`
|
|
8
|
+
`+s.stack}}var Io=Object.prototype.hasOwnProperty,tr=a.unstable_scheduleCallback,er=a.unstable_cancelCallback,Jv=a.unstable_shouldYield,Fv=a.unstable_requestPaint,Ee=a.unstable_now,Pv=a.unstable_getCurrentPriorityLevel,Kf=a.unstable_ImmediatePriority,Jf=a.unstable_UserBlockingPriority,Is=a.unstable_NormalPriority,$v=a.unstable_LowPriority,Ff=a.unstable_IdlePriority,Wv=a.log,Iv=a.unstable_setDisableYieldValue,Hi=null,Me=null;function kn(t){if(typeof Wv=="function"&&Iv(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(Hi,t)}catch{}}var je=Math.clz32?Math.clz32:nb,tb=Math.log,eb=Math.LN2;function nb(t){return t>>>=0,t===0?32:31-(tb(t)/eb|0)|0}var tl=256,el=262144,nl=4194304;function pa(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 al(t,e,n){var s=t.pendingLanes;if(s===0)return 0;var r=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var b=s&134217727;return b!==0?(s=b&~u,s!==0?r=pa(s):(h&=b,h!==0?r=pa(h):n||(n=b&~t,n!==0&&(r=pa(n))))):(b=s&~u,b!==0?r=pa(b):h!==0?r=pa(h):n||(n=s&~t,n!==0&&(r=pa(n)))),r===0?0:e!==0&&e!==r&&(e&u)===0&&(u=r&-r,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:r}function Gi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ab(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 Pf(){var t=nl;return nl<<=1,(nl&62914560)===0&&(nl=4194304),t}function nr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function qi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ib(t,e,n,s,r,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=h&~n;0<n;){var V=31-je(n),G=1<<V;b[V]=0,T[V]=-1;var D=N[V];if(D!==null)for(N[V]=null,V=0;V<D.length;V++){var O=D[V];O!==null&&(O.lane&=-536870913)}n&=~G}s!==0&&$f(t,s,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function $f(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-je(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|n&261930}function Wf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var s=31-je(n),r=1<<s;r&e|t[s]&e&&(t[s]|=e),n&=~r}}function If(t,e){var n=e&-e;return n=(n&42)!==0?1:ar(n),(n&(t.suspendedLanes|e))!==0?0:n}function ar(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 ir(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function td(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:Up(t.type))}function ed(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var Bn=Math.random().toString(36).slice(2),oe="__reactFiber$"+Bn,ve="__reactProps$"+Bn,qa="__reactContainer$"+Bn,sr="__reactEvents$"+Bn,sb="__reactListeners$"+Bn,lb="__reactHandles$"+Bn,nd="__reactResources$"+Bn,Yi="__reactMarker$"+Bn;function lr(t){delete t[oe],delete t[ve],delete t[sr],delete t[sb],delete t[lb]}function Ya(t){var e=t[oe];if(e)return e;for(var n=t.parentNode;n;){if(e=n[qa]||n[oe]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ap(t);t!==null;){if(n=t[oe])return n;t=Ap(t)}return e}t=n,n=t.parentNode}return null}function Xa(t){if(t=t[oe]||t[qa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Xi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Qa(t){var e=t[nd];return e||(e=t[nd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[Yi]=!0}var ad=new Set,id={};function ga(t,e){Za(t,e),Za(t+"Capture",e)}function Za(t,e){for(id[t]=e,t=0;t<e.length;t++)ad.add(e[t])}var ob=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]*$"),sd={},ld={};function rb(t){return Io.call(ld,t)?!0:Io.call(sd,t)?!1:ob.test(t)?ld[t]=!0:(sd[t]=!0,!1)}function il(t,e,n){if(rb(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function sl(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function pn(t,e,n,s){if(s===null)t.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+s)}}function Be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function od(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ub(t,e,n){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var r=s.get,u=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function or(t){if(!t._valueTracker){var e=od(t)?"checked":"value";t._valueTracker=ub(t,e,""+t[e])}}function rd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),s="";return t&&(s=od(t)?t.checked?"true":"false":t.value),t=s,t!==n?(e.setValue(t),!0):!1}function ll(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 cb=/[\n"\\]/g;function Ue(t){return t.replace(cb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function rr(t,e,n,s,r,u,h,b){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Be(e)):t.value!==""+Be(e)&&(t.value=""+Be(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?ur(t,h,Be(e)):n!=null?ur(t,h,Be(n)):s!=null&&t.removeAttribute("value"),r==null&&u!=null&&(t.defaultChecked=!!u),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Be(b):t.removeAttribute("name")}function ud(t,e,n,s,r,u,h,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){or(t);return}n=n!=null?""+Be(n):"",e=e!=null?""+Be(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=b?t.checked:!!s,t.defaultChecked=!!s,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),or(t)}function ur(t,e,n){e==="number"&&ll(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ka(t,e,n,s){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&s&&(t[n].defaultSelected=!0)}else{for(n=""+Be(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,s&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function cd(t,e,n){if(e!=null&&(e=""+Be(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Be(n):""}function fd(t,e,n,s){if(e==null){if(s!=null){if(n!=null)throw Error(o(92));if(Mt(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),e=n}n=Be(e),t.defaultValue=n,s=t.textContent,s===n&&s!==""&&s!==null&&(t.value=s),or(t)}function Ja(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fb=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 dd(t,e,n){var s=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,n):typeof n!="number"||n===0||fb.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function hd(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var r in e)s=e[r],e.hasOwnProperty(r)&&n[r]!==s&&dd(t,r,s)}else for(var u in e)e.hasOwnProperty(u)&&dd(t,u,e[u])}function cr(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 db=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"]]),hb=/^[\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 ol(t){return hb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function gn(){}var fr=null;function dr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fa=null,Pa=null;function md(t){var e=Xa(t);if(e&&(t=e.stateNode)){var n=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(rr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ue(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var s=n[e];if(s!==t&&s.form===t.form){var r=s[ve]||null;if(!r)throw Error(o(90));rr(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)s=n[e],s.form===t.form&&rd(s)}break t;case"textarea":cd(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ka(t,!!n.multiple,e,!1)}}}var hr=!1;function pd(t,e,n){if(hr)return t(e,n);hr=!0;try{var s=t(e);return s}finally{if(hr=!1,(Fa!==null||Pa!==null)&&(Jl(),Fa&&(e=Fa,t=Pa,Pa=Fa=null,md(e),t)))for(e=0;e<t.length;e++)md(t[e])}}function Qi(t,e){var n=t.stateNode;if(n===null)return null;var s=n[ve]||null;if(s===null)return null;n=s[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":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mr=!1;if(yn)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){mr=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{mr=!1}var Un=null,pr=null,rl=null;function gd(){if(rl)return rl;var t,e=pr,n=e.length,s,r="value"in Un?Un.value:Un.textContent,u=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(s=1;s<=h&&e[n-s]===r[u-s];s++);return rl=r.slice(t,1<s?1-s:void 0)}function ul(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 cl(){return!0}function yd(){return!1}function be(t){function e(n,s,r,u,h){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?cl:yd,this.isPropagationStopped=yd,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=cl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=cl)},persist:function(){},isPersistent:cl}),e}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fl=be(ya),Ki=x({},ya,{view:0,detail:0}),mb=be(Ki),gr,yr,Ji,dl=x({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:br,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!==Ji&&(Ji&&t.type==="mousemove"?(gr=t.screenX-Ji.screenX,yr=t.screenY-Ji.screenY):yr=gr=0,Ji=t),gr)},movementY:function(t){return"movementY"in t?t.movementY:yr}}),vd=be(dl),pb=x({},dl,{dataTransfer:0}),gb=be(pb),yb=x({},Ki,{relatedTarget:0}),vr=be(yb),vb=x({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),bb=be(vb),xb=x({},ya,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Sb=be(xb),Tb=x({},ya,{data:0}),bd=be(Tb),Ab={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wb={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"},Eb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mb(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Eb[t])?!!e[t]:!1}function br(){return Mb}var jb=x({},Ki,{key:function(t){if(t.key){var e=Ab[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ul(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wb[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:br,charCode:function(t){return t.type==="keypress"?ul(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ul(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Cb=be(jb),Nb=x({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xd=be(Nb),zb=x({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:br}),Db=be(zb),Rb=x({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ob=be(Rb),Vb=x({},dl,{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}),_b=be(Vb),Lb=x({},ya,{newState:0,oldState:0}),kb=be(Lb),Bb=[9,13,27,32],xr=yn&&"CompositionEvent"in window,Fi=null;yn&&"documentMode"in document&&(Fi=document.documentMode);var Ub=yn&&"TextEvent"in window&&!Fi,Sd=yn&&(!xr||Fi&&8<Fi&&11>=Fi),Td=" ",Ad=!1;function wd(t,e){switch(t){case"keyup":return Bb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ed(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var $a=!1;function Hb(t,e){switch(t){case"compositionend":return Ed(e);case"keypress":return e.which!==32?null:(Ad=!0,Td);case"textInput":return t=e.data,t===Td&&Ad?null:t;default:return null}}function Gb(t,e){if($a)return t==="compositionend"||!xr&&wd(t,e)?(t=gd(),rl=pr=Un=null,$a=!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 Sd&&e.locale!=="ko"?null:e.data;default:return null}}var qb={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 Md(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!qb[t.type]:e==="textarea"}function jd(t,e,n,s){Fa?Pa?Pa.push(s):Pa=[s]:Fa=s,e=eo(e,"onChange"),0<e.length&&(n=new fl("onChange","change",null,n,s),t.push({event:n,listeners:e}))}var Pi=null,$i=null;function Yb(t){up(t,0)}function hl(t){var e=Xi(t);if(rd(e))return t}function Cd(t,e){if(t==="change")return e}var Nd=!1;if(yn){var Sr;if(yn){var Tr="oninput"in document;if(!Tr){var zd=document.createElement("div");zd.setAttribute("oninput","return;"),Tr=typeof zd.oninput=="function"}Sr=Tr}else Sr=!1;Nd=Sr&&(!document.documentMode||9<document.documentMode)}function Dd(){Pi&&(Pi.detachEvent("onpropertychange",Rd),$i=Pi=null)}function Rd(t){if(t.propertyName==="value"&&hl($i)){var e=[];jd(e,$i,t,dr(t)),pd(Yb,e)}}function Xb(t,e,n){t==="focusin"?(Dd(),Pi=e,$i=n,Pi.attachEvent("onpropertychange",Rd)):t==="focusout"&&Dd()}function Qb(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return hl($i)}function Zb(t,e){if(t==="click")return hl(e)}function Kb(t,e){if(t==="input"||t==="change")return hl(e)}function Jb(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ce=typeof Object.is=="function"?Object.is:Jb;function Wi(t,e){if(Ce(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),s=Object.keys(e);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!Io.call(e,r)||!Ce(t[r],e[r]))return!1}return!0}function Od(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Vd(t,e){var n=Od(t);t=0;for(var s;n;){if(n.nodeType===3){if(s=t+n.textContent.length,t<=e&&s>=e)return{node:n,offset:e-t};t=s}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Od(n)}}function _d(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?_d(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ld(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ll(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ll(t.document)}return e}function Ar(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 Fb=yn&&"documentMode"in document&&11>=document.documentMode,Wa=null,wr=null,Ii=null,Er=!1;function kd(t,e,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Er||Wa==null||Wa!==ll(s)||(s=Wa,"selectionStart"in s&&Ar(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ii&&Wi(Ii,s)||(Ii=s,s=eo(wr,"onSelect"),0<s.length&&(e=new fl("onSelect","select",null,e,n),t.push({event:e,listeners:s}),e.target=Wa)))}function va(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ia={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},Mr={},Bd={};yn&&(Bd=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function ba(t){if(Mr[t])return Mr[t];if(!Ia[t])return t;var e=Ia[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Bd)return Mr[t]=e[n];return t}var Ud=ba("animationend"),Hd=ba("animationiteration"),Gd=ba("animationstart"),Pb=ba("transitionrun"),$b=ba("transitionstart"),Wb=ba("transitioncancel"),qd=ba("transitionend"),Yd=new Map,jr="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(" ");jr.push("scrollEnd");function Pe(t,e){Yd.set(t,e),ga(e,[t])}var ml=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)},He=[],ti=0,Cr=0;function pl(){for(var t=ti,e=Cr=ti=0;e<t;){var n=He[e];He[e++]=null;var s=He[e];He[e++]=null;var r=He[e];He[e++]=null;var u=He[e];if(He[e++]=null,s!==null&&r!==null){var h=s.pending;h===null?r.next=r:(r.next=h.next,h.next=r),s.pending=r}u!==0&&Xd(n,r,u)}}function gl(t,e,n,s){He[ti++]=t,He[ti++]=e,He[ti++]=n,He[ti++]=s,Cr|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Nr(t,e,n,s){return gl(t,e,n,s),yl(t)}function xa(t,e){return gl(t,null,null,e),yl(t)}function Xd(t,e,n){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n);for(var r=!1,u=t.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(r=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,r&&e!==null&&(r=31-je(n),t=u.hiddenUpdates,s=t[r],s===null?t[r]=[e]:s.push(e),e.lane=n|536870912),u):null}function yl(t){if(50<Ss)throw Ss=0,Bu=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ei={};function Ib(t,e,n,s){this.tag=t,this.key=n,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(t,e,n,s){return new Ib(t,e,n,s)}function zr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vn(t,e){var n=t.alternate;return n===null?(n=Ne(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Qd(t,e){t.flags&=65011714;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function vl(t,e,n,s,r,u){var h=0;if(s=t,typeof t=="function")zr(t)&&(h=1);else if(typeof t=="string")h=ix(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=Ne(31,n,e,r),t.elementType=lt,t.lanes=u,t;case z:return Sa(n.children,r,u,e);case _:h=8,r|=24;break;case q:return t=Ne(12,n,e,r|2),t.elementType=q,t.lanes=u,t;case P:return t=Ne(13,n,e,r),t.elementType=P,t.lanes=u,t;case ut:return t=Ne(19,n,e,r),t.elementType=ut,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y:h=10;break t;case H:h=9;break t;case Q:h=11;break t;case X:h=14;break t;case k:h=16,s=null;break t}h=29,n=Error(o(130,t===null?"null":typeof t,"")),s=null}return e=Ne(h,n,e,r),e.elementType=t,e.type=s,e.lanes=u,e}function Sa(t,e,n,s){return t=Ne(7,t,s,e),t.lanes=n,t}function Dr(t,e,n){return t=Ne(6,t,null,e),t.lanes=n,t}function Zd(t){var e=Ne(18,null,null,0);return e.stateNode=t,e}function Rr(t,e,n){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Kd=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var n=Kd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Zf(e)},Kd.set(t,e),e)}return{value:t,source:e,stack:Zf(e)}}var ni=[],ai=0,bl=null,ts=0,qe=[],Ye=0,Hn=null,an=1,sn="";function bn(t,e){ni[ai++]=ts,ni[ai++]=bl,bl=t,ts=e}function Jd(t,e,n){qe[Ye++]=an,qe[Ye++]=sn,qe[Ye++]=Hn,Hn=t;var s=an;t=sn;var r=32-je(s)-1;s&=~(1<<r),n+=1;var u=32-je(e)+r;if(30<u){var h=r-r%5;u=(s&(1<<h)-1).toString(32),s>>=h,r-=h,an=1<<32-je(e)+r|n<<r|s,sn=u+t}else an=1<<u|n<<r|s,sn=t}function Or(t){t.return!==null&&(bn(t,1),Jd(t,1,0))}function Vr(t){for(;t===bl;)bl=ni[--ai],ni[ai]=null,ts=ni[--ai],ni[ai]=null;for(;t===Hn;)Hn=qe[--Ye],qe[Ye]=null,sn=qe[--Ye],qe[Ye]=null,an=qe[--Ye],qe[Ye]=null}function Fd(t,e){qe[Ye++]=an,qe[Ye++]=sn,qe[Ye++]=Hn,an=e.id,sn=e.overflow,Hn=t}var re=null,Bt=null,Et=!1,Gn=null,Xe=!1,_r=Error(o(519));function qn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw es(Ge(e,t)),_r}function Pd(t){var e=t.stateNode,n=t.type,s=t.memoizedProps;switch(e[oe]=t,e[ve]=s,n){case"dialog":xt("cancel",e),xt("close",e);break;case"iframe":case"object":case"embed":xt("load",e);break;case"video":case"audio":for(n=0;n<As.length;n++)xt(As[n],e);break;case"source":xt("error",e);break;case"img":case"image":case"link":xt("error",e),xt("load",e);break;case"details":xt("toggle",e);break;case"input":xt("invalid",e),ud(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":xt("invalid",e);break;case"textarea":xt("invalid",e),fd(e,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||s.suppressHydrationWarning===!0||hp(e.textContent,n)?(s.popover!=null&&(xt("beforetoggle",e),xt("toggle",e)),s.onScroll!=null&&xt("scroll",e),s.onScrollEnd!=null&&xt("scrollend",e),s.onClick!=null&&(e.onclick=gn),e=!0):e=!1,e||qn(t,!0)}function $d(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:re=re.return}}function ii(t){if(t!==re)return!1;if(!Et)return $d(t),Et=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Iu(t.type,t.memoizedProps)),n=!n),n&&Bt&&qn(t),$d(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Bt=Tp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Bt=Tp(t)}else e===27?(e=Bt,na(t.type)?(t=ic,ic=null,Bt=t):Bt=e):Bt=re?Ze(t.stateNode.nextSibling):null;return!0}function Ta(){Bt=re=null,Et=!1}function Lr(){var t=Gn;return t!==null&&(Ae===null?Ae=t:Ae.push.apply(Ae,t),Gn=null),t}function es(t){Gn===null?Gn=[t]:Gn.push(t)}var kr=A(null),Aa=null,xn=null;function Yn(t,e,n){J(kr,e._currentValue),e._currentValue=n}function Sn(t){t._currentValue=kr.current,U(kr)}function Br(t,e,n){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===n)break;t=t.return}}function Ur(t,e,n,s){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;t:for(;u!==null;){var b=u;u=r;for(var T=0;T<e.length;T++)if(b.context===e[T]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),Br(u.return,n,t),s||(h=null);break t}u=b.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Br(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function si(t,e,n,s){t=null;for(var r=e,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var b=r.type;Ce(r.pendingProps.value,h.value)||(t!==null?t.push(b):t=[b])}}else if(r===wt.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Cs):t=[Cs])}r=r.return}t!==null&&Ur(e,t,n,s),e.flags|=262144}function xl(t){for(t=t.firstContext;t!==null;){if(!Ce(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function wa(t){Aa=t,xn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return Wd(Aa,t)}function Sl(t,e){return Aa===null&&wa(t),Wd(t,e)}function Wd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},xn===null){if(t===null)throw Error(o(308));xn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else xn=xn.next=e;return n}var t1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},e1=a.unstable_scheduleCallback,n1=a.unstable_NormalPriority,Ft={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hr(){return{controller:new t1,data:new Map,refCount:0}}function ns(t){t.refCount--,t.refCount===0&&e1(n1,function(){t.controller.abort()})}var as=null,Gr=0,li=0,oi=null;function a1(t,e){if(as===null){var n=as=[];Gr=0,li=Xu(),oi={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Gr++,e.then(Id,Id),e}function Id(){if(--Gr===0&&as!==null){oi!==null&&(oi.status="fulfilled");var t=as;as=null,li=0,oi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function i1(t,e){var n=[],s={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(s.status="rejected",s.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),s}var th=R.S;R.S=function(t,e){km=Ee(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&a1(t,e),th!==null&&th(t,e)};var Ea=A(null);function qr(){var t=Ea.current;return t!==null?t:Lt.pooledCache}function Tl(t,e){e===null?J(Ea,Ea.current):J(Ea,e.pool)}function eh(){var t=qr();return t===null?null:{parent:Ft._currentValue,pool:t}}var ri=Error(o(460)),Yr=Error(o(474)),Al=Error(o(542)),wl={then:function(){}};function nh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ah(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(gn,gn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,sh(t),t;default:if(typeof e.status=="string")e.then(gn,gn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=s}},function(s){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,sh(t),t}throw ja=e,ri}}function Ma(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ja=n,ri):n}}var ja=null;function ih(){if(ja===null)throw Error(o(459));var t=ja;return ja=null,t}function sh(t){if(t===ri||t===Al)throw Error(o(483))}var ui=null,is=0;function El(t){var e=is;return is+=1,ui===null&&(ui=[]),ah(ui,t,e)}function ss(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ml(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 lh(t){function e(M,w){if(t){var C=M.deletions;C===null?(M.deletions=[w],M.flags|=16):C.push(w)}}function n(M,w){if(!t)return null;for(;w!==null;)e(M,w),w=w.sibling;return null}function s(M){for(var w=new Map;M!==null;)M.key!==null?w.set(M.key,M):w.set(M.index,M),M=M.sibling;return w}function r(M,w){return M=vn(M,w),M.index=0,M.sibling=null,M}function u(M,w,C){return M.index=C,t?(C=M.alternate,C!==null?(C=C.index,C<w?(M.flags|=67108866,w):C):(M.flags|=67108866,w)):(M.flags|=1048576,w)}function h(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function b(M,w,C,B){return w===null||w.tag!==6?(w=Dr(C,M.mode,B),w.return=M,w):(w=r(w,C),w.return=M,w)}function T(M,w,C,B){var st=C.type;return st===z?V(M,w,C.props.children,B,C.key):w!==null&&(w.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===k&&Ma(st)===w.type)?(w=r(w,C.props),ss(w,C),w.return=M,w):(w=vl(C.type,C.key,C.props,null,M.mode,B),ss(w,C),w.return=M,w)}function N(M,w,C,B){return w===null||w.tag!==4||w.stateNode.containerInfo!==C.containerInfo||w.stateNode.implementation!==C.implementation?(w=Rr(C,M.mode,B),w.return=M,w):(w=r(w,C.children||[]),w.return=M,w)}function V(M,w,C,B,st){return w===null||w.tag!==7?(w=Sa(C,M.mode,B,st),w.return=M,w):(w=r(w,C),w.return=M,w)}function G(M,w,C){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Dr(""+w,M.mode,C),w.return=M,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case j:return C=vl(w.type,w.key,w.props,null,M.mode,C),ss(C,w),C.return=M,C;case E:return w=Rr(w,M.mode,C),w.return=M,w;case k:return w=Ma(w),G(M,w,C)}if(Mt(w)||ft(w))return w=Sa(w,M.mode,C,null),w.return=M,w;if(typeof w.then=="function")return G(M,El(w),C);if(w.$$typeof===Y)return G(M,Sl(M,w),C);Ml(M,w)}return null}function D(M,w,C,B){var st=w!==null?w.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return st!==null?null:b(M,w,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case j:return C.key===st?T(M,w,C,B):null;case E:return C.key===st?N(M,w,C,B):null;case k:return C=Ma(C),D(M,w,C,B)}if(Mt(C)||ft(C))return st!==null?null:V(M,w,C,B,null);if(typeof C.then=="function")return D(M,w,El(C),B);if(C.$$typeof===Y)return D(M,w,Sl(M,C),B);Ml(M,C)}return null}function O(M,w,C,B,st){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return M=M.get(C)||null,b(w,M,""+B,st);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return M=M.get(B.key===null?C:B.key)||null,T(w,M,B,st);case E:return M=M.get(B.key===null?C:B.key)||null,N(w,M,B,st);case k:return B=Ma(B),O(M,w,C,B,st)}if(Mt(B)||ft(B))return M=M.get(C)||null,V(w,M,B,st,null);if(typeof B.then=="function")return O(M,w,C,El(B),st);if(B.$$typeof===Y)return O(M,w,C,Sl(w,B),st);Ml(w,B)}return null}function tt(M,w,C,B){for(var st=null,jt=null,nt=w,pt=w=0,Tt=null;nt!==null&&pt<C.length;pt++){nt.index>pt?(Tt=nt,nt=null):Tt=nt.sibling;var Ct=D(M,nt,C[pt],B);if(Ct===null){nt===null&&(nt=Tt);break}t&&nt&&Ct.alternate===null&&e(M,nt),w=u(Ct,w,pt),jt===null?st=Ct:jt.sibling=Ct,jt=Ct,nt=Tt}if(pt===C.length)return n(M,nt),Et&&bn(M,pt),st;if(nt===null){for(;pt<C.length;pt++)nt=G(M,C[pt],B),nt!==null&&(w=u(nt,w,pt),jt===null?st=nt:jt.sibling=nt,jt=nt);return Et&&bn(M,pt),st}for(nt=s(nt);pt<C.length;pt++)Tt=O(nt,M,pt,C[pt],B),Tt!==null&&(t&&Tt.alternate!==null&&nt.delete(Tt.key===null?pt:Tt.key),w=u(Tt,w,pt),jt===null?st=Tt:jt.sibling=Tt,jt=Tt);return t&&nt.forEach(function(oa){return e(M,oa)}),Et&&bn(M,pt),st}function rt(M,w,C,B){if(C==null)throw Error(o(151));for(var st=null,jt=null,nt=w,pt=w=0,Tt=null,Ct=C.next();nt!==null&&!Ct.done;pt++,Ct=C.next()){nt.index>pt?(Tt=nt,nt=null):Tt=nt.sibling;var oa=D(M,nt,Ct.value,B);if(oa===null){nt===null&&(nt=Tt);break}t&&nt&&oa.alternate===null&&e(M,nt),w=u(oa,w,pt),jt===null?st=oa:jt.sibling=oa,jt=oa,nt=Tt}if(Ct.done)return n(M,nt),Et&&bn(M,pt),st;if(nt===null){for(;!Ct.done;pt++,Ct=C.next())Ct=G(M,Ct.value,B),Ct!==null&&(w=u(Ct,w,pt),jt===null?st=Ct:jt.sibling=Ct,jt=Ct);return Et&&bn(M,pt),st}for(nt=s(nt);!Ct.done;pt++,Ct=C.next())Ct=O(nt,M,pt,Ct.value,B),Ct!==null&&(t&&Ct.alternate!==null&&nt.delete(Ct.key===null?pt:Ct.key),w=u(Ct,w,pt),jt===null?st=Ct:jt.sibling=Ct,jt=Ct);return t&&nt.forEach(function(px){return e(M,px)}),Et&&bn(M,pt),st}function _t(M,w,C,B){if(typeof C=="object"&&C!==null&&C.type===z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case j:t:{for(var st=C.key;w!==null;){if(w.key===st){if(st=C.type,st===z){if(w.tag===7){n(M,w.sibling),B=r(w,C.props.children),B.return=M,M=B;break t}}else if(w.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===k&&Ma(st)===w.type){n(M,w.sibling),B=r(w,C.props),ss(B,C),B.return=M,M=B;break t}n(M,w);break}else e(M,w);w=w.sibling}C.type===z?(B=Sa(C.props.children,M.mode,B,C.key),B.return=M,M=B):(B=vl(C.type,C.key,C.props,null,M.mode,B),ss(B,C),B.return=M,M=B)}return h(M);case E:t:{for(st=C.key;w!==null;){if(w.key===st)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){n(M,w.sibling),B=r(w,C.children||[]),B.return=M,M=B;break t}else{n(M,w);break}else e(M,w);w=w.sibling}B=Rr(C,M.mode,B),B.return=M,M=B}return h(M);case k:return C=Ma(C),_t(M,w,C,B)}if(Mt(C))return tt(M,w,C,B);if(ft(C)){if(st=ft(C),typeof st!="function")throw Error(o(150));return C=st.call(C),rt(M,w,C,B)}if(typeof C.then=="function")return _t(M,w,El(C),B);if(C.$$typeof===Y)return _t(M,w,Sl(M,C),B);Ml(M,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,w!==null&&w.tag===6?(n(M,w.sibling),B=r(w,C),B.return=M,M=B):(n(M,w),B=Dr(C,M.mode,B),B.return=M,M=B),h(M)):n(M,w)}return function(M,w,C,B){try{is=0;var st=_t(M,w,C,B);return ui=null,st}catch(nt){if(nt===ri||nt===Al)throw nt;var jt=Ne(29,nt,null,M.mode);return jt.lanes=B,jt.return=M,jt}}}var Ca=lh(!0),oh=lh(!1),Xn=!1;function Xr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qr(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 Qn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(t,e,n){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Nt&2)!==0){var r=s.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),s.pending=e,e=yl(t),Xd(t,null,n),e}return gl(t,s,e,n),yl(t)}function ls(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,Wf(t,n)}}function Zr(t,e){var n=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=e:u=u.next=e}else r=u=e;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Kr=!1;function os(){if(Kr){var t=oi;if(t!==null)throw t}}function rs(t,e,n,s){Kr=!1;var r=t.updateQueue;Xn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,N=T.next;T.next=null,h===null?u=N:h.next=N,h=T;var V=t.alternate;V!==null&&(V=V.updateQueue,b=V.lastBaseUpdate,b!==h&&(b===null?V.firstBaseUpdate=N:b.next=N,V.lastBaseUpdate=T))}if(u!==null){var G=r.baseState;h=0,V=N=T=null,b=u;do{var D=b.lane&-536870913,O=D!==b.lane;if(O?(St&D)===D:(s&D)===D){D!==0&&D===li&&(Kr=!0),V!==null&&(V=V.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var tt=t,rt=b;D=e;var _t=n;switch(rt.tag){case 1:if(tt=rt.payload,typeof tt=="function"){G=tt.call(_t,G,D);break t}G=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=rt.payload,D=typeof tt=="function"?tt.call(_t,G,D):tt,D==null)break t;G=x({},G,D);break t;case 2:Xn=!0}}D=b.callback,D!==null&&(t.flags|=64,O&&(t.flags|=8192),O=r.callbacks,O===null?r.callbacks=[D]:O.push(D))}else O={lane:D,tag:b.tag,payload:b.payload,callback:b.callback,next:null},V===null?(N=V=O,T=G):V=V.next=O,h|=D;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;O=b,b=O.next,O.next=null,r.lastBaseUpdate=O,r.shared.pending=null}}while(!0);V===null&&(T=G),r.baseState=T,r.firstBaseUpdate=N,r.lastBaseUpdate=V,u===null&&(r.shared.lanes=0),$n|=h,t.lanes=h,t.memoizedState=G}}function rh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function uh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)rh(n[t],e)}var ci=A(null),jl=A(0);function ch(t,e){t=zn,J(jl,t),J(ci,e),zn=t|e.baseLanes}function Jr(){J(jl,zn),J(ci,ci.current)}function Fr(){zn=jl.current,U(ci),U(jl)}var ze=A(null),Qe=null;function Kn(t){var e=t.alternate;J(Kt,Kt.current&1),J(ze,t),Qe===null&&(e===null||ci.current!==null||e.memoizedState!==null)&&(Qe=t)}function Pr(t){J(Kt,Kt.current),J(ze,t),Qe===null&&(Qe=t)}function fh(t){t.tag===22?(J(Kt,Kt.current),J(ze,t),Qe===null&&(Qe=t)):Jn()}function Jn(){J(Kt,Kt.current),J(ze,ze.current)}function De(t){U(ze),Qe===t&&(Qe=null),U(Kt)}var Kt=A(0);function Cl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||nc(n)||ac(n)))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 Tn=0,mt=null,Ot=null,Pt=null,Nl=!1,fi=!1,Na=!1,zl=0,us=0,di=null,s1=0;function Yt(){throw Error(o(321))}function $r(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ce(t[n],e[n]))return!1;return!0}function Wr(t,e,n,s,r,u){return Tn=u,mt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?Jh:hu,Na=!1,u=n(s,r),Na=!1,fi&&(u=hh(e,n,s,r)),dh(t),u}function dh(t){R.H=ds;var e=Ot!==null&&Ot.next!==null;if(Tn=0,Pt=Ot=mt=null,Nl=!1,us=0,di=null,e)throw Error(o(300));t===null||$t||(t=t.dependencies,t!==null&&xl(t)&&($t=!0))}function hh(t,e,n,s){mt=t;var r=0;do{if(fi&&(di=null),us=0,fi=!1,25<=r)throw Error(o(301));if(r+=1,Pt=Ot=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=Fh,u=e(n,s)}while(fi);return u}function l1(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?cs(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(mt.flags|=1024),e}function Ir(){var t=zl!==0;return zl=0,t}function tu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function eu(t){if(Nl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Nl=!1}Tn=0,Pt=Ot=mt=null,fi=!1,us=zl=0,di=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?mt.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Jt(){if(Ot===null){var t=mt.alternate;t=t!==null?t.memoizedState:null}else t=Ot.next;var e=Pt===null?mt.memoizedState:Pt.next;if(e!==null)Pt=e,Ot=t;else{if(t===null)throw mt.alternate===null?Error(o(467)):Error(o(310));Ot=t,t={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Pt===null?mt.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Dl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(t){var e=us;return us+=1,di===null&&(di=[]),t=ah(di,t,e),e=mt,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?Jh:hu),t}function Rl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return cs(t);if(t.$$typeof===Y)return ue(t)}throw Error(o(438,String(t)))}function nu(t){var e=null,n=mt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var s=mt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Dl(),mt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),s=0;s<t;s++)n[s]=at;return e.index++,n}function An(t,e){return typeof e=="function"?e(t):e}function Ol(t){var e=Jt();return au(e,Ot,t)}function au(t,e,n){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var r=t.baseQueue,u=s.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}e.baseQueue=r=u,s.pending=null}if(u=t.baseState,r===null)t.memoizedState=u;else{e=r.next;var b=h=null,T=null,N=e,V=!1;do{var G=N.lane&-536870913;if(G!==N.lane?(St&G)===G:(Tn&G)===G){var D=N.revertLane;if(D===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),G===li&&(V=!0);else if((Tn&D)===D){N=N.next,D===li&&(V=!0);continue}else G={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(b=T=G,h=u):T=T.next=G,mt.lanes|=D,$n|=D;G=N.action,Na&&n(u,G),u=N.hasEagerState?N.eagerState:n(u,G)}else D={lane:G,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(b=T=D,h=u):T=T.next=D,mt.lanes|=G,$n|=G;N=N.next}while(N!==null&&N!==e);if(T===null?h=u:T.next=b,!Ce(u,t.memoizedState)&&($t=!0,V&&(n=oi,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,s.lastRenderedState=u}return r===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function iu(t){var e=Jt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var s=n.dispatch,r=n.pending,u=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=t(u,h.action),h=h.next;while(h!==r);Ce(u,e.memoizedState)||($t=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,s]}function mh(t,e,n){var s=mt,r=Jt(),u=Et;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var h=!Ce((Ot||r).memoizedState,n);if(h&&(r.memoizedState=n,$t=!0),r=r.queue,ou(yh.bind(null,s,r,t),[t]),r.getSnapshot!==e||h||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,hi(9,{destroy:void 0},gh.bind(null,s,r,n,e),null),Lt===null)throw Error(o(349));u||(Tn&127)!==0||ph(s,e,n)}return n}function ph(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=mt.updateQueue,e===null?(e=Dl(),mt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function gh(t,e,n,s){e.value=n,e.getSnapshot=s,vh(e)&&bh(t)}function yh(t,e,n){return n(function(){vh(e)&&bh(t)})}function vh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ce(t,n)}catch{return!0}}function bh(t){var e=xa(t,2);e!==null&&we(e,t,2)}function su(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),Na){kn(!0);try{n()}finally{kn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:t},e}function xh(t,e,n,s){return t.baseState=n,au(t,Ot,typeof s=="function"?s:An)}function o1(t,e,n,s,r){if(Ll(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};R.T!==null?n(!0):u.isTransition=!1,s(u),n=e.pending,n===null?(u.next=e.pending=u,Sh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function Sh(t,e){var n=e.action,s=e.payload,r=t.state;if(e.isTransition){var u=R.T,h={};R.T=h;try{var b=n(r,s),T=R.S;T!==null&&T(h,b),Th(t,e,b)}catch(N){lu(t,e,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),R.T=u}}else try{u=n(r,s),Th(t,e,u)}catch(N){lu(t,e,N)}}function Th(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){Ah(t,e,s)},function(s){return lu(t,e,s)}):Ah(t,e,n)}function Ah(t,e,n){e.status="fulfilled",e.value=n,wh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Sh(t,n)))}function lu(t,e,n){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=n,wh(e),e=e.next;while(e!==s)}t.action=null}function wh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Eh(t,e){return e}function Mh(t,e){if(Et){var n=Lt.formState;if(n!==null){t:{var s=mt;if(Et){if(Bt){e:{for(var r=Bt,u=Xe;r.nodeType!==8;){if(!u){r=null;break e}if(r=Ze(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Bt=Ze(r.nextSibling),s=r.data==="F!";break t}}qn(s)}s=!1}s&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:e},n.queue=s,n=Qh.bind(null,mt,s),s.dispatch=n,s=su(!1),u=du.bind(null,mt,!1,s.queue),s=pe(),r={state:e,dispatch:null,action:t,pending:null},s.queue=r,n=o1.bind(null,mt,r,u,n),r.dispatch=n,s.memoizedState=t,[e,n,!1]}function jh(t){var e=Jt();return Ch(e,Ot,t)}function Ch(t,e,n){if(e=au(t,e,Eh)[0],t=Ol(An)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=cs(e)}catch(h){throw h===ri?Al:h}else s=e;e=Jt();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(mt.flags|=2048,hi(9,{destroy:void 0},r1.bind(null,r,n),null)),[s,u,t]}function r1(t,e){t.action=e}function Nh(t){var e=Jt(),n=Ot;if(n!==null)return Ch(e,n,t);Jt(),e=e.memoizedState,n=Jt();var s=n.queue.dispatch;return n.memoizedState=t,[e,s,!1]}function hi(t,e,n,s){return t={tag:t,create:n,deps:s,inst:e,next:null},e=mt.updateQueue,e===null&&(e=Dl(),mt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(s=n.next,n.next=t,t.next=s,e.lastEffect=t),t}function zh(){return Jt().memoizedState}function Vl(t,e,n,s){var r=pe();mt.flags|=t,r.memoizedState=hi(1|e,{destroy:void 0},n,s===void 0?null:s)}function _l(t,e,n,s){var r=Jt();s=s===void 0?null:s;var u=r.memoizedState.inst;Ot!==null&&s!==null&&$r(s,Ot.memoizedState.deps)?r.memoizedState=hi(e,u,n,s):(mt.flags|=t,r.memoizedState=hi(1|e,u,n,s))}function Dh(t,e){Vl(8390656,8,t,e)}function ou(t,e){_l(2048,8,t,e)}function u1(t){mt.flags|=4;var e=mt.updateQueue;if(e===null)e=Dl(),mt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Rh(t){var e=Jt().memoizedState;return u1({ref:e,nextImpl:t}),function(){if((Nt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Oh(t,e){return _l(4,2,t,e)}function Vh(t,e){return _l(4,4,t,e)}function _h(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Lh(t,e,n){n=n!=null?n.concat([t]):null,_l(4,4,_h.bind(null,e,t),n)}function ru(){}function kh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;return e!==null&&$r(e,s[1])?s[0]:(n.memoizedState=[t,e],t)}function Bh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;if(e!==null&&$r(e,s[1]))return s[0];if(s=t(),Na){kn(!0);try{t()}finally{kn(!1)}}return n.memoizedState=[s,e],s}function uu(t,e,n){return n===void 0||(Tn&1073741824)!==0&&(St&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Um(),mt.lanes|=t,$n|=t,n)}function Uh(t,e,n,s){return Ce(n,e)?n:ci.current!==null?(t=uu(t,n,s),Ce(t,e)||($t=!0),t):(Tn&42)===0||(Tn&1073741824)!==0&&(St&261930)===0?($t=!0,t.memoizedState=n):(t=Um(),mt.lanes|=t,$n|=t,e)}function Hh(t,e,n,s,r){var u=K.p;K.p=u!==0&&8>u?u:8;var h=R.T,b={};R.T=b,du(t,!1,e,n);try{var T=r(),N=R.S;if(N!==null&&N(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var V=i1(T,s);fs(t,e,V,Ve(t))}else fs(t,e,s,Ve(t))}catch(G){fs(t,e,{then:function(){},status:"rejected",reason:G},Ve())}finally{K.p=u,h!==null&&b.types!==null&&(h.types=b.types),R.T=h}}function c1(){}function cu(t,e,n,s){if(t.tag!==5)throw Error(o(476));var r=Gh(t).queue;Hh(t,r,e,F,n===null?c1:function(){return qh(t),n(s)})}function Gh(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 n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qh(t){var e=Gh(t);e.next===null&&(e=t.alternate.memoizedState),fs(t,e.next.queue,{},Ve())}function fu(){return ue(Cs)}function Yh(){return Jt().memoizedState}function Xh(){return Jt().memoizedState}function f1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ve();t=Qn(n);var s=Zn(e,t,n);s!==null&&(we(s,e,n),ls(s,e,n)),e={cache:Hr()},t.payload=e;return}e=e.return}}function d1(t,e,n){var s=Ve();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ll(t)?Zh(e,n):(n=Nr(t,e,n,s),n!==null&&(we(n,t,s),Kh(n,e,s)))}function Qh(t,e,n){var s=Ve();fs(t,e,n,s)}function fs(t,e,n,s){var r={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ll(t))Zh(e,r);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,b=u(h,n);if(r.hasEagerState=!0,r.eagerState=b,Ce(b,h))return gl(t,e,r,0),Lt===null&&pl(),!1}catch{}if(n=Nr(t,e,r,s),n!==null)return we(n,t,s),Kh(n,e,s),!0}return!1}function du(t,e,n,s){if(s={lane:2,revertLane:Xu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ll(t)){if(e)throw Error(o(479))}else e=Nr(t,n,s,2),e!==null&&we(e,t,2)}function Ll(t){var e=t.alternate;return t===mt||e!==null&&e===mt}function Zh(t,e){fi=Nl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Kh(t,e,n){if((n&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,Wf(t,n)}}var ds={readContext:ue,use:Rl,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};ds.useEffectEvent=Yt;var Jh={readContext:ue,use:Rl,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:Dh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Vl(4194308,4,_h.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Vl(4194308,4,t,e)},useInsertionEffect:function(t,e){Vl(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var s=t();if(Na){kn(!0);try{t()}finally{kn(!1)}}return n.memoizedState=[s,e],s},useReducer:function(t,e,n){var s=pe();if(n!==void 0){var r=n(e);if(Na){kn(!0);try{n(e)}finally{kn(!1)}}}else r=e;return s.memoizedState=s.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},s.queue=t,t=t.dispatch=d1.bind(null,mt,t),[s.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=su(t);var e=t.queue,n=Qh.bind(null,mt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:ru,useDeferredValue:function(t,e){var n=pe();return uu(n,t,e)},useTransition:function(){var t=su(!1);return t=Hh.bind(null,mt,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var s=mt,r=pe();if(Et){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Lt===null)throw Error(o(349));(St&127)!==0||ph(s,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,Dh(yh.bind(null,s,u,t),[t]),s.flags|=2048,hi(9,{destroy:void 0},gh.bind(null,s,u,n,e),null),n},useId:function(){var t=pe(),e=Lt.identifierPrefix;if(Et){var n=sn,s=an;n=(s&~(1<<32-je(s)-1)).toString(32)+n,e="_"+e+"R_"+n,n=zl++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=s1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:fu,useFormState:Mh,useActionState:Mh,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=du.bind(null,mt,!0,n),n.dispatch=e,[t,e]},useMemoCache:nu,useCacheRefresh:function(){return pe().memoizedState=f1.bind(null,mt)},useEffectEvent:function(t){var e=pe(),n={impl:t};return e.memoizedState=n,function(){if((Nt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},hu={readContext:ue,use:Rl,useCallback:kh,useContext:ue,useEffect:ou,useImperativeHandle:Lh,useInsertionEffect:Oh,useLayoutEffect:Vh,useMemo:Bh,useReducer:Ol,useRef:zh,useState:function(){return Ol(An)},useDebugValue:ru,useDeferredValue:function(t,e){var n=Jt();return Uh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=Ol(An)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:cs(t),e]},useSyncExternalStore:mh,useId:Yh,useHostTransitionStatus:fu,useFormState:jh,useActionState:jh,useOptimistic:function(t,e){var n=Jt();return xh(n,Ot,t,e)},useMemoCache:nu,useCacheRefresh:Xh};hu.useEffectEvent=Rh;var Fh={readContext:ue,use:Rl,useCallback:kh,useContext:ue,useEffect:ou,useImperativeHandle:Lh,useInsertionEffect:Oh,useLayoutEffect:Vh,useMemo:Bh,useReducer:iu,useRef:zh,useState:function(){return iu(An)},useDebugValue:ru,useDeferredValue:function(t,e){var n=Jt();return Ot===null?uu(n,t,e):Uh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=iu(An)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:cs(t),e]},useSyncExternalStore:mh,useId:Yh,useHostTransitionStatus:fu,useFormState:Nh,useActionState:Nh,useOptimistic:function(t,e){var n=Jt();return Ot!==null?xh(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:nu,useCacheRefresh:Xh};Fh.useEffectEvent=Rh;function mu(t,e,n,s){e=t.memoizedState,n=n(s,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var pu={enqueueSetState:function(t,e,n){t=t._reactInternals;var s=Ve(),r=Qn(s);r.payload=e,n!=null&&(r.callback=n),e=Zn(t,r,s),e!==null&&(we(e,t,s),ls(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var s=Ve(),r=Qn(s);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Zn(t,r,s),e!==null&&(we(e,t,s),ls(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ve(),s=Qn(n);s.tag=2,e!=null&&(s.callback=e),e=Zn(t,s,n),e!==null&&(we(e,t,n),ls(e,t,n))}};function Ph(t,e,n,s,r,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,u,h):e.prototype&&e.prototype.isPureReactComponent?!Wi(n,s)||!Wi(r,u):!0}function $h(t,e,n,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,s),e.state!==t&&pu.enqueueReplaceState(e,e.state,null)}function za(t,e){var n=e;if("ref"in e){n={};for(var s in e)s!=="ref"&&(n[s]=e[s])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Wh(t){ml(t)}function Ih(t){console.error(t)}function tm(t){ml(t)}function kl(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function em(t,e,n){try{var s=t.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function gu(t,e,n){return n=Qn(n),n.tag=3,n.payload={element:null},n.callback=function(){kl(t,e)},n}function nm(t){return t=Qn(t),t.tag=3,t}function am(t,e,n,s){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=s.value;t.payload=function(){return r(u)},t.callback=function(){em(e,n,s)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){em(e,n,s),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function h1(t,e,n,s,r){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=n.alternate,e!==null&&si(e,n,r,!0),n=ze.current,n!==null){switch(n.tag){case 31:case 13:return Qe===null?Fl():n.alternate===null&&Xt===0&&(Xt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,s===wl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([s]):e.add(s),Gu(t,s,r)),!1;case 22:return n.flags|=65536,s===wl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([s]):n.add(s)),Gu(t,s,r)),!1}throw Error(o(435,n.tag))}return Gu(t,s,r),Fl(),!1}if(Et)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,s!==_r&&(t=Error(o(422),{cause:s}),es(Ge(t,n)))):(s!==_r&&(e=Error(o(423),{cause:s}),es(Ge(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,s=Ge(s,n),r=gu(t.stateNode,s,r),Zr(t,r),Xt!==4&&(Xt=2)),!1;var u=Error(o(520),{cause:s});if(u=Ge(u,n),xs===null?xs=[u]:xs.push(u),Xt!==4&&(Xt=2),e===null)return!0;s=Ge(s,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=gu(n.stateNode,s,t),Zr(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wn===null||!Wn.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=nm(r),am(r,t,n,s),Zr(n,r),!1}n=n.return}while(n!==null);return!1}var yu=Error(o(461)),$t=!1;function ce(t,e,n,s){e.child=t===null?oh(e,null,n,s):Ca(e,t.child,n,s)}function im(t,e,n,s,r){n=n.render;var u=e.ref;if("ref"in s){var h={};for(var b in s)b!=="ref"&&(h[b]=s[b])}else h=s;return wa(e),s=Wr(t,e,n,h,u,r),b=Ir(),t!==null&&!$t?(tu(t,e,r),wn(t,e,r)):(Et&&b&&Or(e),e.flags|=1,ce(t,e,s,r),e.child)}function sm(t,e,n,s,r){if(t===null){var u=n.type;return typeof u=="function"&&!zr(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,lm(t,e,u,s,r)):(t=vl(n.type,null,s,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Eu(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Wi,n(h,s)&&t.ref===e.ref)return wn(t,e,r)}return e.flags|=1,t=vn(u,s),t.ref=e.ref,t.return=e,e.child=t}function lm(t,e,n,s,r){if(t!==null){var u=t.memoizedProps;if(Wi(u,s)&&t.ref===e.ref)if($t=!1,e.pendingProps=s=u,Eu(t,r))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,wn(t,e,r)}return vu(t,e,n,s,r)}function om(t,e,n,s){var r=s.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(s=e.child=t.child,r=0;s!==null;)r=r|s.lanes|s.childLanes,s=s.sibling;s=r&~u}else s=0,e.child=null;return rm(t,e,u,n,s)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Tl(e,u!==null?u.cachePool:null),u!==null?ch(e,u):Jr(),fh(e);else return s=e.lanes=536870912,rm(t,e,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(Tl(e,u.cachePool),ch(e,u),Jn(),e.memoizedState=null):(t!==null&&Tl(e,null),Jr(),Jn());return ce(t,e,r,n),e.child}function hs(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function rm(t,e,n,s,r){var u=qr();return u=u===null?null:{parent:Ft._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&Tl(e,null),Jr(),fh(e),t!==null&&si(t,e,s,!0),e.childLanes=r,null}function Bl(t,e){return e=Hl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function um(t,e,n){return Ca(e,t.child,null,n),t=Bl(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function m1(t,e,n){var s=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Et){if(s.mode==="hidden")return t=Bl(e,s),e.lanes=536870912,hs(null,t);if(Pr(e),(t=Bt)?(t=Sp(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Hn!==null?{id:an,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=Zd(t),n.return=e,e.child=n,re=e,Bt=null)):t=null,t===null)throw qn(e);return e.lanes=536870912,null}return Bl(e,s)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(Pr(e),r)if(e.flags&256)e.flags&=-257,e=um(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if($t||si(t,e,n,!1),r=(n&t.childLanes)!==0,$t||r){if(s=Lt,s!==null&&(h=If(s,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,xa(t,h),we(s,t,h),yu;Fl(),e=um(t,e,n)}else t=u.treeContext,Bt=Ze(h.nextSibling),re=e,Et=!0,Gn=null,Xe=!1,t!==null&&Fd(e,t),e=Bl(e,s),e.flags|=4096;return e}return t=vn(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ul(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function vu(t,e,n,s,r){return wa(e),n=Wr(t,e,n,s,void 0,r),s=Ir(),t!==null&&!$t?(tu(t,e,r),wn(t,e,r)):(Et&&s&&Or(e),e.flags|=1,ce(t,e,n,r),e.child)}function cm(t,e,n,s,r,u){return wa(e),e.updateQueue=null,n=hh(e,s,n,r),dh(t),s=Ir(),t!==null&&!$t?(tu(t,e,u),wn(t,e,u)):(Et&&s&&Or(e),e.flags|=1,ce(t,e,n,u),e.child)}function fm(t,e,n,s,r){if(wa(e),e.stateNode===null){var u=ei,h=n.contextType;typeof h=="object"&&h!==null&&(u=ue(h)),u=new n(s,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=pu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},Xr(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?ue(h):ei,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(mu(e,n,h,s),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&pu.enqueueReplaceState(u,u.state,null),rs(e,s,u,r),os(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){u=e.stateNode;var b=e.memoizedProps,T=za(n,b);u.props=T;var N=u.context,V=n.contextType;h=ei,typeof V=="object"&&V!==null&&(h=ue(V));var G=n.getDerivedStateFromProps;V=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,V||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||N!==h)&&$h(e,u,s,h),Xn=!1;var D=e.memoizedState;u.state=D,rs(e,s,u,r),os(),N=e.memoizedState,b||D!==N||Xn?(typeof G=="function"&&(mu(e,n,G,s),N=e.memoizedState),(T=Xn||Ph(e,n,T,s,D,N,h))?(V||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=N),u.props=s,u.state=N,u.context=h,s=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,Qr(t,e),h=e.memoizedProps,V=za(n,h),u.props=V,G=e.pendingProps,D=u.context,N=n.contextType,T=ei,typeof N=="object"&&N!==null&&(T=ue(N)),b=n.getDerivedStateFromProps,(N=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==G||D!==T)&&$h(e,u,s,T),Xn=!1,D=e.memoizedState,u.state=D,rs(e,s,u,r),os();var O=e.memoizedState;h!==G||D!==O||Xn||t!==null&&t.dependencies!==null&&xl(t.dependencies)?(typeof b=="function"&&(mu(e,n,b,s),O=e.memoizedState),(V=Xn||Ph(e,n,V,s,D,O,T)||t!==null&&t.dependencies!==null&&xl(t.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,O,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,O,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=O),u.props=s,u.state=O,u.context=T,s=V):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),s=!1)}return u=s,Ul(t,e),s=(e.flags&128)!==0,u||s?(u=e.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&s?(e.child=Ca(e,t.child,null,r),e.child=Ca(e,null,n,r)):ce(t,e,n,r),e.memoizedState=u.state,t=e.child):t=wn(t,e,r),t}function dm(t,e,n,s){return Ta(),e.flags|=256,ce(t,e,n,s),e.child}var bu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xu(t){return{baseLanes:t,cachePool:eh()}}function Su(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function hm(t,e,n){var s=e.pendingProps,r=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(Et){if(r?Kn(e):Jn(),(t=Bt)?(t=Sp(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Hn!==null?{id:an,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},n=Zd(t),n.return=e,e.child=n,re=e,Bt=null)):t=null,t===null)throw qn(e);return ac(t)?e.lanes=32:e.lanes=536870912,null}var b=s.children;return s=s.fallback,r?(Jn(),r=e.mode,b=Hl({mode:"hidden",children:b},r),s=Sa(s,r,n,null),b.return=e,s.return=e,b.sibling=s,e.child=b,s=e.child,s.memoizedState=xu(n),s.childLanes=Su(t,h,n),e.memoizedState=bu,hs(null,s)):(Kn(e),Tu(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(u)e.flags&256?(Kn(e),e.flags&=-257,e=Au(t,e,n)):e.memoizedState!==null?(Jn(),e.child=t.child,e.flags|=128,e=null):(Jn(),b=s.fallback,r=e.mode,s=Hl({mode:"visible",children:s.children},r),b=Sa(b,r,n,null),b.flags|=2,s.return=e,b.return=e,s.sibling=b,e.child=s,Ca(e,t.child,null,n),s=e.child,s.memoizedState=xu(n),s.childLanes=Su(t,h,n),e.memoizedState=bu,e=hs(null,s));else if(Kn(e),ac(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var N=h.dgst;h=N,s=Error(o(419)),s.stack="",s.digest=h,es({value:s,source:null,stack:null}),e=Au(t,e,n)}else if($t||si(t,e,n,!1),h=(n&t.childLanes)!==0,$t||h){if(h=Lt,h!==null&&(s=If(h,n),s!==0&&s!==T.retryLane))throw T.retryLane=s,xa(t,s),we(h,t,s),yu;nc(b)||Fl(),e=Au(t,e,n)}else nc(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Bt=Ze(b.nextSibling),re=e,Et=!0,Gn=null,Xe=!1,t!==null&&Fd(e,t),e=Tu(e,s.children),e.flags|=4096);return e}return r?(Jn(),b=s.fallback,r=e.mode,T=t.child,N=T.sibling,s=vn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,N!==null?b=vn(N,b):(b=Sa(b,r,n,null),b.flags|=2),b.return=e,s.return=e,s.sibling=b,e.child=s,hs(null,s),s=e.child,b=t.child.memoizedState,b===null?b=xu(n):(r=b.cachePool,r!==null?(T=Ft._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=eh(),b={baseLanes:b.baseLanes|n,cachePool:r}),s.memoizedState=b,s.childLanes=Su(t,h,n),e.memoizedState=bu,hs(t.child,s)):(Kn(e),n=t.child,t=n.sibling,n=vn(n,{mode:"visible",children:s.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function Tu(t,e){return e=Hl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Hl(t,e){return t=Ne(22,t,null,e),t.lanes=0,t}function Au(t,e,n){return Ca(e,t.child,null,n),t=Tu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function mm(t,e,n){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),Br(t.return,e,n)}function wu(t,e,n,s,r,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=s,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function pm(t,e,n){var s=e.pendingProps,r=s.revealOrder,u=s.tail;s=s.children;var h=Kt.current,b=(h&2)!==0;if(b?(h=h&1|2,e.flags|=128):h&=1,J(Kt,h),ce(t,e,s,n),s=Et?ts:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&mm(t,n,e);else if(t.tag===19)mm(t,n,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(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Cl(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),wu(e,!1,r,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Cl(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}wu(e,!0,n,null,u,s);break;case"together":wu(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function wn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),$n|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(si(t,e,n,!1),(n&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,n=vn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=vn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Eu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&xl(t)))}function p1(t,e,n){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),Yn(e,Ft,t.memoizedState.cache),Ta();break;case 27:case 5:_n(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:Yn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Pr(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(Kn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?hm(t,e,n):(Kn(e),t=wn(t,e,n),t!==null?t.sibling:null);Kn(e);break;case 19:var r=(t.flags&128)!==0;if(s=(n&e.childLanes)!==0,s||(si(t,e,n,!1),s=(n&e.childLanes)!==0),r){if(s)return pm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(Kt,Kt.current),s)break;return null;case 22:return e.lanes=0,om(t,e,n,e.pendingProps);case 24:Yn(e,Ft,t.memoizedState.cache)}return wn(t,e,n)}function gm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!Eu(t,n)&&(e.flags&128)===0)return $t=!1,p1(t,e,n);$t=(t.flags&131072)!==0}else $t=!1,Et&&(e.flags&1048576)!==0&&Jd(e,ts,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=Ma(e.elementType),e.type=t,typeof t=="function")zr(t)?(s=za(t,s),e.tag=1,e=fm(null,e,t,s,n)):(e.tag=0,e=vu(null,e,t,s,n));else{if(t!=null){var r=t.$$typeof;if(r===Q){e.tag=11,e=im(null,e,t,s,n);break t}else if(r===X){e.tag=14,e=sm(null,e,t,s,n);break t}}throw e=zt(t)||t,Error(o(306,e,""))}}return e;case 0:return vu(t,e,e.type,e.pendingProps,n);case 1:return s=e.type,r=za(s,e.pendingProps),fm(t,e,s,r,n);case 3:t:{if(ie(e,e.stateNode.containerInfo),t===null)throw Error(o(387));s=e.pendingProps;var u=e.memoizedState;r=u.element,Qr(t,e),rs(e,s,null,n);var h=e.memoizedState;if(s=h.cache,Yn(e,Ft,s),s!==u.cache&&Ur(e,[Ft],n,!0),os(),s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=dm(t,e,s,n);break t}else if(s!==r){r=Ge(Error(o(424)),e),es(r),e=dm(t,e,s,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Bt=Ze(t.firstChild),re=e,Et=!0,Gn=null,Xe=!0,n=oh(e,null,s,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ta(),s===r){e=wn(t,e,n);break t}ce(t,e,s,n)}e=e.child}return e;case 26:return Ul(t,e),t===null?(n=jp(e.type,null,e.pendingProps,null))?e.memoizedState=n:Et||(n=e.type,t=e.pendingProps,s=no(ot.current).createElement(n),s[oe]=e,s[ve]=t,fe(s,n,t),se(s),e.stateNode=s):e.memoizedState=jp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return _n(e),t===null&&Et&&(s=e.stateNode=wp(e.type,e.pendingProps,ot.current),re=e,Xe=!0,r=Bt,na(e.type)?(ic=r,Bt=Ze(s.firstChild)):Bt=r),ce(t,e,e.pendingProps.children,n),Ul(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Et&&((r=s=Bt)&&(s=Q1(s,e.type,e.pendingProps,Xe),s!==null?(e.stateNode=s,re=e,Bt=Ze(s.firstChild),Xe=!1,r=!0):r=!1),r||qn(e)),_n(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,s=u.children,Iu(r,u)?s=null:h!==null&&Iu(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=Wr(t,e,l1,null,null,n),Cs._currentValue=r),Ul(t,e),ce(t,e,s,n),e.child;case 6:return t===null&&Et&&((t=n=Bt)&&(n=Z1(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,re=e,Bt=null,t=!0):t=!1),t||qn(e)),null;case 13:return hm(t,e,n);case 4:return ie(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=Ca(e,null,s,n):ce(t,e,s,n),e.child;case 11:return im(t,e,e.type,e.pendingProps,n);case 7:return ce(t,e,e.pendingProps,n),e.child;case 8:return ce(t,e,e.pendingProps.children,n),e.child;case 12:return ce(t,e,e.pendingProps.children,n),e.child;case 10:return s=e.pendingProps,Yn(e,e.type,s.value),ce(t,e,s.children,n),e.child;case 9:return r=e.type._context,s=e.pendingProps.children,wa(e),r=ue(r),s=s(r),e.flags|=1,ce(t,e,s,n),e.child;case 14:return sm(t,e,e.type,e.pendingProps,n);case 15:return lm(t,e,e.type,e.pendingProps,n);case 19:return pm(t,e,n);case 31:return m1(t,e,n);case 22:return om(t,e,n,e.pendingProps);case 24:return wa(e),s=ue(Ft),t===null?(r=qr(),r===null&&(r=Lt,u=Hr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:s,cache:r},Xr(e),Yn(e,Ft,r)):((t.lanes&n)!==0&&(Qr(t,e),rs(e,null,null,n),os()),r=t.memoizedState,u=e.memoizedState,r.parent!==s?(r={parent:s,cache:s},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Yn(e,Ft,s)):(s=u.cache,Yn(e,Ft,s),s!==r.cache&&Ur(e,[Ft],n,!0))),ce(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function En(t){t.flags|=4}function Mu(t,e,n,s,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(Ym())t.flags|=8192;else throw ja=wl,Yr}else t.flags&=-16777217}function ym(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Rp(e))if(Ym())t.flags|=8192;else throw ja=wl,Yr}function Gl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Pf():536870912,t.lanes|=e,yi|=e)}function ms(t,e){if(!Et)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,s=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=s,t.childLanes=n,e}function g1(t,e,n){var s=e.pendingProps;switch(Vr(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 n=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),Sn(Ft),gt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ii(e)?En(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Lr())),Ut(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(En(e),u!==null?(Ut(e),ym(e,u)):(Ut(e),Mu(e,r,null,s,n))):u?u!==t.memoizedState?(En(e),Ut(e),ym(e,u)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&En(e),Ut(e),Mu(e,r,t,s,n)),null;case 27:if(mn(e),n=ot.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&En(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}t=W.current,ii(e)?Pd(e):(t=wp(r,s,n),e.stateNode=t,En(e))}return Ut(e),null;case 5:if(mn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&En(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}if(u=W.current,ii(e))Pd(e);else{var h=no(ot.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?h.createElement("select",{is:s.is}):h.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?h.createElement(r,{is:s.is}):h.createElement(r)}}u[oe]=e,u[ve]=s;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(fe(u,r,s),r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&En(e)}}return Ut(e),Mu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&En(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(o(166));if(t=ot.current,ii(e)){if(t=e.stateNode,n=e.memoizedProps,s=null,r=re,r!==null)switch(r.tag){case 27:case 5:s=r.memoizedProps}t[oe]=e,t=!!(t.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||hp(t.nodeValue,n)),t||qn(e,!0)}else t=no(t).createTextNode(s),t[oe]=e,e.stateNode=t}return Ut(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(s=ii(e),n!==null){if(t===null){if(!s)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[oe]=e}else Ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else n=Lr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Ut(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=ii(e),s!==null&&s.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[oe]=e}else Ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),r=!1}else r=Lr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(De(e),e):(De(e),null)}return De(e),(e.flags&128)!==0?(e.lanes=n,e):(n=s!==null,t=t!==null&&t.memoizedState!==null,n&&(s=e.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==r&&(s.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Gl(e,e.updateQueue),Ut(e),null);case 4:return gt(),t===null&&Ju(e.stateNode.containerInfo),Ut(e),null;case 10:return Sn(e.type),Ut(e),null;case 19:if(U(Kt),s=e.memoizedState,s===null)return Ut(e),null;if(r=(e.flags&128)!==0,u=s.rendering,u===null)if(r)ms(s,!1);else{if(Xt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Cl(t),u!==null){for(e.flags|=128,ms(s,!1),t=u.updateQueue,e.updateQueue=t,Gl(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Qd(n,t),n=n.sibling;return J(Kt,Kt.current&1|2),Et&&bn(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&Ee()>Zl&&(e.flags|=128,r=!0,ms(s,!1),e.lanes=4194304)}else{if(!r)if(t=Cl(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Gl(e,t),ms(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Et)return Ut(e),null}else 2*Ee()-s.renderingStartTime>Zl&&n!==536870912&&(e.flags|=128,r=!0,ms(s,!1),e.lanes=4194304);s.isBackwards?(u.sibling=e.child,e.child=u):(t=s.last,t!==null?t.sibling=u:e.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ee(),t.sibling=null,n=Kt.current,J(Kt,r?n&1|2:n&1),Et&&bn(e,s.treeForkCount),t):(Ut(e),null);case 22:case 23:return De(e),Fr(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(n&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),n=e.updateQueue,n!==null&&Gl(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==n&&(e.flags|=2048),t!==null&&U(Ea),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Sn(Ft),Ut(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function y1(t,e){switch(Vr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Sn(Ft),gt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return mn(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(o(340));Ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Kt),null;case 4:return gt(),null;case 10:return Sn(e.type),null;case 22:case 23:return De(e),Fr(),t!==null&&U(Ea),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Sn(Ft),null;case 25:return null;default:return null}}function vm(t,e){switch(Vr(e),e.tag){case 3:Sn(Ft),gt();break;case 26:case 27:case 5:mn(e);break;case 4:gt();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:U(Kt);break;case 10:Sn(e.type);break;case 22:case 23:De(e),Fr(),t!==null&&U(Ea);break;case 24:Sn(Ft)}}function ps(t,e){try{var n=e.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var r=s.next;n=r;do{if((n.tag&t)===t){s=void 0;var u=n.create,h=n.inst;s=u(),h.destroy=s}n=n.next}while(n!==r)}}catch(b){Rt(e,e.return,b)}}function Fn(t,e,n){try{var s=e.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var u=r.next;s=u;do{if((s.tag&t)===t){var h=s.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var T=n,N=b;try{N()}catch(V){Rt(r,T,V)}}}s=s.next}while(s!==u)}}catch(V){Rt(e,e.return,V)}}function bm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{uh(e,n)}catch(s){Rt(t,t.return,s)}}}function xm(t,e,n){n.props=za(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(s){Rt(t,e,s)}}function gs(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof n=="function"?t.refCleanup=n(s):n.current=s}}catch(r){Rt(t,e,r)}}function ln(t,e){var n=t.ref,s=t.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(r){Rt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Rt(t,e,r)}else n.current=null}function Sm(t){var e=t.type,n=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break t;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(r){Rt(t,t.return,r)}}function ju(t,e,n){try{var s=t.stateNode;U1(s,t.type,n,e),s[ve]=e}catch(r){Rt(t,t.return,r)}}function Tm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&na(t.type)||t.tag===4}function Cu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Tm(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&&na(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 Nu(t,e,n){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=gn));else if(s!==4&&(s===27&&na(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Nu(t,e,n),t=t.sibling;t!==null;)Nu(t,e,n),t=t.sibling}function ql(t,e,n){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(s!==4&&(s===27&&na(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ql(t,e,n),t=t.sibling;t!==null;)ql(t,e,n),t=t.sibling}function Am(t){var e=t.stateNode,n=t.memoizedProps;try{for(var s=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);fe(e,s,n),e[oe]=t,e[ve]=n}catch(u){Rt(t,t.return,u)}}var Mn=!1,Wt=!1,zu=!1,wm=typeof WeakSet=="function"?WeakSet:Set,le=null;function v1(t,e){if(t=t.containerInfo,$u=uo,t=Ld(t),Ar(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,b=-1,T=-1,N=0,V=0,G=t,D=null;e:for(;;){for(var O;G!==n||r!==0&&G.nodeType!==3||(b=h+r),G!==u||s!==0&&G.nodeType!==3||(T=h+s),G.nodeType===3&&(h+=G.nodeValue.length),(O=G.firstChild)!==null;)D=G,G=O;for(;;){if(G===t)break e;if(D===n&&++N===r&&(b=h),D===u&&++V===s&&(T=h),(O=G.nextSibling)!==null)break;G=D,D=G.parentNode}G=O}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wu={focusedElem:t,selectionRange:n},uo=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){switch(e=le,u=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(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,r=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var tt=za(n.type,r);t=s.getSnapshotBeforeUpdate(tt,u),s.__reactInternalSnapshotBeforeUpdate=t}catch(rt){Rt(n,n.return,rt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)ec(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ec(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,le=t;break}le=e.return}}function Em(t,e,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(t,n),s&4&&ps(5,n);break;case 1:if(Cn(t,n),s&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Rt(n,n.return,h)}else{var r=za(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Rt(n,n.return,h)}}s&64&&bm(n),s&512&&gs(n,n.return);break;case 3:if(Cn(t,n),s&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{uh(t,e)}catch(h){Rt(n,n.return,h)}}break;case 27:e===null&&s&4&&Am(n);case 26:case 5:Cn(t,n),e===null&&s&4&&Sm(n),s&512&&gs(n,n.return);break;case 12:Cn(t,n);break;case 31:Cn(t,n),s&4&&Cm(t,n);break;case 13:Cn(t,n),s&4&&Nm(t,n),s&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=j1.bind(null,n),K1(t,n))));break;case 22:if(s=n.memoizedState!==null||Mn,!s){e=e!==null&&e.memoizedState!==null||Wt,r=Mn;var u=Wt;Mn=s,(Wt=e)&&!u?Nn(t,n,(n.subtreeFlags&8772)!==0):Cn(t,n),Mn=r,Wt=u}break;case 30:break;default:Cn(t,n)}}function Mm(t){var e=t.alternate;e!==null&&(t.alternate=null,Mm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&lr(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 qt=null,xe=!1;function jn(t,e,n){for(n=n.child;n!==null;)jm(t,e,n),n=n.sibling}function jm(t,e,n){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(Hi,n)}catch{}switch(n.tag){case 26:Wt||ln(n,e),jn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||ln(n,e);var s=qt,r=xe;na(n.type)&&(qt=n.stateNode,xe=!1),jn(t,e,n),Es(n.stateNode),qt=s,xe=r;break;case 5:Wt||ln(n,e);case 6:if(s=qt,r=xe,qt=null,jn(t,e,n),qt=s,xe=r,qt!==null)if(xe)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(n.stateNode)}catch(u){Rt(n,e,u)}else try{qt.removeChild(n.stateNode)}catch(u){Rt(n,e,u)}break;case 18:qt!==null&&(xe?(t=qt,bp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ei(t)):bp(qt,n.stateNode));break;case 4:s=qt,r=xe,qt=n.stateNode.containerInfo,xe=!0,jn(t,e,n),qt=s,xe=r;break;case 0:case 11:case 14:case 15:Fn(2,n,e),Wt||Fn(4,n,e),jn(t,e,n);break;case 1:Wt||(ln(n,e),s=n.stateNode,typeof s.componentWillUnmount=="function"&&xm(n,e,s)),jn(t,e,n);break;case 21:jn(t,e,n);break;case 22:Wt=(s=Wt)||n.memoizedState!==null,jn(t,e,n),Wt=s;break;default:jn(t,e,n)}}function Cm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ei(t)}catch(n){Rt(e,e.return,n)}}}function Nm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ei(t)}catch(n){Rt(e,e.return,n)}}function b1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new wm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new wm),e;default:throw Error(o(435,t.tag))}}function Yl(t,e){var n=b1(t);e.forEach(function(s){if(!n.has(s)){n.add(s);var r=C1.bind(null,t,s);s.then(r,r)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=n[s],u=t,h=e,b=h;t:for(;b!==null;){switch(b.tag){case 27:if(na(b.type)){qt=b.stateNode,xe=!1;break t}break;case 5:qt=b.stateNode,xe=!1;break t;case 3:case 4:qt=b.stateNode.containerInfo,xe=!0;break t}b=b.return}if(qt===null)throw Error(o(160));jm(u,h,r),qt=null,xe=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zm(e,t),e=e.sibling}var $e=null;function zm(t,e){var n=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),Te(t),s&4&&(Fn(3,t,t.return),ps(3,t),Fn(5,t,t.return));break;case 1:Se(e,t),Te(t),s&512&&(Wt||n===null||ln(n,n.return)),s&64&&Mn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var r=$e;if(Se(e,t),Te(t),s&512&&(Wt||n===null||ln(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=t.memoizedState,n===null)if(s===null)if(t.stateNode===null){t:{s=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(s){case"title":u=r.getElementsByTagName("title")[0],(!u||u[Yi]||u[oe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(s),r.head.insertBefore(u,r.querySelector("head > title"))),fe(u,s,n),u[oe]=t,se(u),s=u;break t;case"link":var h=zp("link","href",r).get(s+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(u=h[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(b,1);break e}}u=r.createElement(s),fe(u,s,n),r.head.appendChild(u);break;case"meta":if(h=zp("meta","content",r).get(s+(n.content||""))){for(b=0;b<h.length;b++)if(u=h[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(b,1);break e}}u=r.createElement(s),fe(u,s,n),r.head.appendChild(u);break;default:throw Error(o(468,s))}u[oe]=t,se(u),s=u}t.stateNode=s}else Dp(r,t.type,t.stateNode);else t.stateNode=Np(r,s,t.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?Dp(r,t.type,t.stateNode):Np(r,s,t.memoizedProps)):s===null&&t.stateNode!==null&&ju(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),Te(t),s&512&&(Wt||n===null||ln(n,n.return)),n!==null&&s&4&&ju(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),Te(t),s&512&&(Wt||n===null||ln(n,n.return)),t.flags&32){r=t.stateNode;try{Ja(r,"")}catch(tt){Rt(t,t.return,tt)}}s&4&&t.stateNode!=null&&(r=t.memoizedProps,ju(t,r,n!==null?n.memoizedProps:r)),s&1024&&(zu=!0);break;case 6:if(Se(e,t),Te(t),s&4){if(t.stateNode===null)throw Error(o(162));s=t.memoizedProps,n=t.stateNode;try{n.nodeValue=s}catch(tt){Rt(t,t.return,tt)}}break;case 3:if(so=null,r=$e,$e=ao(e.containerInfo),Se(e,t),$e=r,Te(t),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ei(e.containerInfo)}catch(tt){Rt(t,t.return,tt)}zu&&(zu=!1,Dm(t));break;case 4:s=$e,$e=ao(t.stateNode.containerInfo),Se(e,t),Te(t),$e=s;break;case 12:Se(e,t),Te(t);break;case 31:Se(e,t),Te(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Yl(t,s)));break;case 13:Se(e,t),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ql=Ee()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Yl(t,s)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,N=Mn,V=Wt;if(Mn=N||r,Wt=V||T,Se(e,t),Wt=V,Mn=N,Te(t),s&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||Mn||Wt||Da(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var G=T.memoizedProps.style,D=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(tt){Rt(T,T.return,tt)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(tt){Rt(T,T.return,tt)}}}else if(e.tag===18){if(n===null){T=e;try{var O=T.stateNode;r?xp(O,!0):xp(T.stateNode,!1)}catch(tt){Rt(T,T.return,tt)}}}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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}s&4&&(s=t.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,Yl(t,n))));break;case 19:Se(e,t),Te(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Yl(t,s)));break;case 30:break;case 21:break;default:Se(e,t),Te(t)}}function Te(t){var e=t.flags;if(e&2){try{for(var n,s=t.return;s!==null;){if(Tm(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Cu(t);ql(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(Ja(h,""),n.flags&=-33);var b=Cu(t);ql(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,N=Cu(t);Nu(t,N,T);break;default:throw Error(o(161))}}catch(V){Rt(t,t.return,V)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Dm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Dm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Cn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Em(t,e.alternate,e),e=e.sibling}function Da(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Fn(4,e,e.return),Da(e);break;case 1:ln(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&xm(e,e.return,n),Da(e);break;case 27:Es(e.stateNode);case 26:case 5:ln(e,e.return),Da(e);break;case 22:e.memoizedState===null&&Da(e);break;case 30:Da(e);break;default:Da(e)}t=t.sibling}}function Nn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,r=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:Nn(r,u,n),ps(4,u);break;case 1:if(Nn(r,u,n),s=u,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(N){Rt(s,s.return,N)}if(s=u,r=s.updateQueue,r!==null){var b=s.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)rh(T[r],b)}catch(N){Rt(s,s.return,N)}}n&&h&64&&bm(u),gs(u,u.return);break;case 27:Am(u);case 26:case 5:Nn(r,u,n),n&&s===null&&h&4&&Sm(u),gs(u,u.return);break;case 12:Nn(r,u,n);break;case 31:Nn(r,u,n),n&&h&4&&Cm(r,u);break;case 13:Nn(r,u,n),n&&h&4&&Nm(r,u);break;case 22:u.memoizedState===null&&Nn(r,u,n),gs(u,u.return);break;case 30:break;default:Nn(r,u,n)}e=e.sibling}}function Du(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ns(n))}function Ru(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ns(t))}function We(t,e,n,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rm(t,e,n,s),e=e.sibling}function Rm(t,e,n,s){var r=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,n,s),r&2048&&ps(9,e);break;case 1:We(t,e,n,s);break;case 3:We(t,e,n,s),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ns(t)));break;case 12:if(r&2048){We(t,e,n,s),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,b=u.onPostCommit;typeof b=="function"&&b(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Rt(e,e.return,T)}}else We(t,e,n,s);break;case 31:We(t,e,n,s);break;case 13:We(t,e,n,s);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?We(t,e,n,s):ys(t,e):u._visibility&2?We(t,e,n,s):(u._visibility|=2,mi(t,e,n,s,(e.subtreeFlags&10256)!==0||!1)),r&2048&&Du(h,e);break;case 24:We(t,e,n,s),r&2048&&Ru(e.alternate,e);break;default:We(t,e,n,s)}}function mi(t,e,n,s,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,b=n,T=s,N=h.flags;switch(h.tag){case 0:case 11:case 15:mi(u,h,b,T,r),ps(8,h);break;case 23:break;case 22:var V=h.stateNode;h.memoizedState!==null?V._visibility&2?mi(u,h,b,T,r):ys(u,h):(V._visibility|=2,mi(u,h,b,T,r)),r&&N&2048&&Du(h.alternate,h);break;case 24:mi(u,h,b,T,r),r&&N&2048&&Ru(h.alternate,h);break;default:mi(u,h,b,T,r)}e=e.sibling}}function ys(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,s=e,r=s.flags;switch(s.tag){case 22:ys(n,s),r&2048&&Du(s.alternate,s);break;case 24:ys(n,s),r&2048&&Ru(s.alternate,s);break;default:ys(n,s)}e=e.sibling}}var vs=8192;function pi(t,e,n){if(t.subtreeFlags&vs)for(t=t.child;t!==null;)Om(t,e,n),t=t.sibling}function Om(t,e,n){switch(t.tag){case 26:pi(t,e,n),t.flags&vs&&t.memoizedState!==null&&sx(n,$e,t.memoizedState,t.memoizedProps);break;case 5:pi(t,e,n);break;case 3:case 4:var s=$e;$e=ao(t.stateNode.containerInfo),pi(t,e,n),$e=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=vs,vs=16777216,pi(t,e,n),vs=s):pi(t,e,n));break;default:pi(t,e,n)}}function Vm(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 bs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];le=s,Lm(s,t)}Vm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_m(t),t=t.sibling}function _m(t){switch(t.tag){case 0:case 11:case 15:bs(t),t.flags&2048&&Fn(9,t,t.return);break;case 3:bs(t);break;case 12:bs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Xl(t)):bs(t);break;default:bs(t)}}function Xl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];le=s,Lm(s,t)}Vm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Fn(8,e,e.return),Xl(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Xl(e));break;default:Xl(e)}t=t.sibling}}function Lm(t,e){for(;le!==null;){var n=le;switch(n.tag){case 0:case 11:case 15:Fn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ns(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,le=s;else t:for(n=t;le!==null;){s=le;var r=s.sibling,u=s.return;if(Mm(s),s===n){le=null;break t}if(r!==null){r.return=u,le=r;break t}le=u}}}var x1={getCacheForType:function(t){var e=ue(Ft),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ue(Ft).controller.signal}},S1=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Lt=null,bt=null,St=0,Dt=0,Re=null,Pn=!1,gi=!1,Ou=!1,zn=0,Xt=0,$n=0,Ra=0,Vu=0,Oe=0,yi=0,xs=null,Ae=null,_u=!1,Ql=0,km=0,Zl=1/0,Kl=null,Wn=null,ee=0,In=null,vi=null,Dn=0,Lu=0,ku=null,Bm=null,Ss=0,Bu=null;function Ve(){return(Nt&2)!==0&&St!==0?St&-St:R.T!==null?Xu():td()}function Um(){if(Oe===0)if((St&536870912)===0||Et){var t=el;el<<=1,(el&3932160)===0&&(el=262144),Oe=t}else Oe=536870912;return t=ze.current,t!==null&&(t.flags|=32),Oe}function we(t,e,n){(t===Lt&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)&&(bi(t,0),ta(t,St,Oe,!1)),qi(t,n),((Nt&2)===0||t!==Lt)&&(t===Lt&&((Nt&2)===0&&(Ra|=n),Xt===4&&ta(t,St,Oe,!1)),on(t))}function Hm(t,e,n){if((Nt&6)!==0)throw Error(o(327));var s=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Gi(t,e),r=s?w1(t,e):Hu(t,e,!0),u=s;do{if(r===0){gi&&!s&&ta(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!T1(n)){r=Hu(t,e,!1),u=!1;continue}if(r===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var b=t;r=xs;var T=b.current.memoizedState.isDehydrated;if(T&&(bi(b,h).flags|=256),h=Hu(b,h,!1),h!==2){if(Ou&&!T){b.errorRecoveryDisabledLanes|=u,Ra|=u,r=4;break t}u=Ae,Ae=r,u!==null&&(Ae===null?Ae=u:Ae.push.apply(Ae,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){bi(t,0),ta(t,e,0,!0);break}t:{switch(s=t,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:ta(s,e,Oe,!Pn);break t;case 2:Ae=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=Ql+300-Ee(),10<r)){if(ta(s,e,Oe,!Pn),al(s,0,!0)!==0)break t;Dn=e,s.timeoutHandle=yp(Gm.bind(null,s,n,Ae,Kl,_u,e,Oe,Ra,yi,Pn,u,"Throttled",-0,0),r);break t}Gm(s,n,Ae,Kl,_u,e,Oe,Ra,yi,Pn,u,null,-0,0)}}break}while(!0);on(t)}function Gm(t,e,n,s,r,u,h,b,T,N,V,G,D,O){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:gn},Om(e,u,G);var tt=(u&62914560)===u?Ql-Ee():(u&4194048)===u?km-Ee():0;if(tt=lx(G,tt),tt!==null){Dn=u,t.cancelPendingCommit=tt(Fm.bind(null,t,e,u,n,s,r,h,b,T,V,G,null,D,O)),ta(t,u,h,!N);return}}Fm(t,e,u,n,s,r,h,b,T)}function T1(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var r=n[s],u=r.getSnapshot;r=r.value;try{if(!Ce(u(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 ta(t,e,n,s){e&=~Vu,e&=~Ra,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var r=e;0<r;){var u=31-je(r),h=1<<u;s[u]=-1,r&=~h}n!==0&&$f(t,n,e)}function Jl(){return(Nt&6)===0?(Ts(0),!1):!0}function Uu(){if(bt!==null){if(Dt===0)var t=bt.return;else t=bt,xn=Aa=null,eu(t),ui=null,is=0,t=bt;for(;t!==null;)vm(t.alternate,t),t=t.return;bt=null}}function bi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,q1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Dn=0,Uu(),Lt=t,bt=n=vn(t.current,null),St=e,Dt=0,Re=null,Pn=!1,gi=Gi(t,e),Ou=!1,yi=Oe=Vu=Ra=$n=Xt=0,Ae=xs=null,_u=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var r=31-je(s),u=1<<r;e|=t[r],s&=~u}return zn=e,pl(),n}function qm(t,e){mt=null,R.H=ds,e===ri||e===Al?(e=ih(),Dt=3):e===Yr?(e=ih(),Dt=4):Dt=e===yu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,bt===null&&(Xt=1,kl(t,Ge(e,t.current)))}function Ym(){var t=ze.current;return t===null?!0:(St&4194048)===St?Qe===null:(St&62914560)===St||(St&536870912)!==0?t===Qe:!1}function Xm(){var t=R.H;return R.H=ds,t===null?ds:t}function Qm(){var t=R.A;return R.A=x1,t}function Fl(){Xt=4,Pn||(St&4194048)!==St&&ze.current!==null||(gi=!0),($n&134217727)===0&&(Ra&134217727)===0||Lt===null||ta(Lt,St,Oe,!1)}function Hu(t,e,n){var s=Nt;Nt|=2;var r=Xm(),u=Qm();(Lt!==t||St!==e)&&(Kl=null,bi(t,e)),e=!1;var h=Xt;t:do try{if(Dt!==0&&bt!==null){var b=bt,T=Re;switch(Dt){case 8:Uu(),h=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var N=Dt;if(Dt=0,Re=null,xi(t,b,T,N),n&&gi){h=0;break t}break;default:N=Dt,Dt=0,Re=null,xi(t,b,T,N)}}A1(),h=Xt;break}catch(V){qm(t,V)}while(!0);return e&&t.shellSuspendCounter++,xn=Aa=null,Nt=s,R.H=r,R.A=u,bt===null&&(Lt=null,St=0,pl()),h}function A1(){for(;bt!==null;)Zm(bt)}function w1(t,e){var n=Nt;Nt|=2;var s=Xm(),r=Qm();Lt!==t||St!==e?(Kl=null,Zl=Ee()+500,bi(t,e)):gi=Gi(t,e);t:do try{if(Dt!==0&&bt!==null){e=bt;var u=Re;e:switch(Dt){case 1:Dt=0,Re=null,xi(t,e,u,1);break;case 2:case 9:if(nh(u)){Dt=0,Re=null,Km(e);break}e=function(){Dt!==2&&Dt!==9||Lt!==t||(Dt=7),on(t)},u.then(e,e);break t;case 3:Dt=7;break t;case 4:Dt=5;break t;case 7:nh(u)?(Dt=0,Re=null,Km(e)):(Dt=0,Re=null,xi(t,e,u,7));break;case 5:var h=null;switch(bt.tag){case 26:h=bt.memoizedState;case 5:case 27:var b=bt;if(h?Rp(h):b.stateNode.complete){Dt=0,Re=null;var T=b.sibling;if(T!==null)bt=T;else{var N=b.return;N!==null?(bt=N,Pl(N)):bt=null}break e}}Dt=0,Re=null,xi(t,e,u,5);break;case 6:Dt=0,Re=null,xi(t,e,u,6);break;case 8:Uu(),Xt=6;break t;default:throw Error(o(462))}}E1();break}catch(V){qm(t,V)}while(!0);return xn=Aa=null,R.H=s,R.A=r,Nt=n,bt!==null?0:(Lt=null,St=0,pl(),Xt)}function E1(){for(;bt!==null&&!Jv();)Zm(bt)}function Zm(t){var e=gm(t.alternate,t,zn);t.memoizedProps=t.pendingProps,e===null?Pl(t):bt=e}function Km(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=cm(n,e,e.pendingProps,e.type,void 0,St);break;case 11:e=cm(n,e,e.pendingProps,e.type.render,e.ref,St);break;case 5:eu(e);default:vm(n,e),e=bt=Qd(e,zn),e=gm(n,e,zn)}t.memoizedProps=t.pendingProps,e===null?Pl(t):bt=e}function xi(t,e,n,s){xn=Aa=null,eu(e),ui=null,is=0;var r=e.return;try{if(h1(t,r,e,n,St)){Xt=1,kl(t,Ge(n,t.current)),bt=null;return}}catch(u){if(r!==null)throw bt=r,u;Xt=1,kl(t,Ge(n,t.current)),bt=null;return}e.flags&32768?(Et||s===1?t=!0:gi||(St&536870912)!==0?t=!1:(Pn=t=!0,(s===2||s===9||s===3||s===6)&&(s=ze.current,s!==null&&s.tag===13&&(s.flags|=16384))),Jm(e,t)):Pl(e)}function Pl(t){var e=t;do{if((e.flags&32768)!==0){Jm(e,Pn);return}t=e.return;var n=g1(e.alternate,e,zn);if(n!==null){bt=n;return}if(e=e.sibling,e!==null){bt=e;return}bt=e=t}while(e!==null);Xt===0&&(Xt=5)}function Jm(t,e){do{var n=y1(t.alternate,t);if(n!==null){n.flags&=32767,bt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){bt=t;return}bt=t=n}while(t!==null);Xt=6,bt=null}function Fm(t,e,n,s,r,u,h,b,T){t.cancelPendingCommit=null;do $l();while(ee!==0);if((Nt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Cr,ib(t,n,u,h,b,T),t===Lt&&(bt=Lt=null,St=0),vi=e,In=t,Dn=n,Lu=u,ku=r,Bm=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,N1(Is,function(){return tp(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=R.T,R.T=null,r=K.p,K.p=2,h=Nt,Nt|=4;try{v1(t,e,n)}finally{Nt=h,K.p=r,R.T=s}}ee=1,Pm(),$m(),Wm()}}function Pm(){if(ee===1){ee=0;var t=In,e=vi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var s=K.p;K.p=2;var r=Nt;Nt|=4;try{zm(e,t);var u=Wu,h=Ld(t.containerInfo),b=u.focusedElem,T=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&_d(b.ownerDocument.documentElement,b)){if(T!==null&&Ar(b)){var N=T.start,V=T.end;if(V===void 0&&(V=N),"selectionStart"in b)b.selectionStart=N,b.selectionEnd=Math.min(V,b.value.length);else{var G=b.ownerDocument||document,D=G&&G.defaultView||window;if(D.getSelection){var O=D.getSelection(),tt=b.textContent.length,rt=Math.min(T.start,tt),_t=T.end===void 0?rt:Math.min(T.end,tt);!O.extend&&rt>_t&&(h=_t,_t=rt,rt=h);var M=Vd(b,rt),w=Vd(b,_t);if(M&&w&&(O.rangeCount!==1||O.anchorNode!==M.node||O.anchorOffset!==M.offset||O.focusNode!==w.node||O.focusOffset!==w.offset)){var C=G.createRange();C.setStart(M.node,M.offset),O.removeAllRanges(),rt>_t?(O.addRange(C),O.extend(w.node,w.offset)):(C.setEnd(w.node,w.offset),O.addRange(C))}}}}for(G=[],O=b;O=O.parentNode;)O.nodeType===1&&G.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var B=G[b];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}uo=!!$u,Wu=$u=null}finally{Nt=r,K.p=s,R.T=n}}t.current=e,ee=2}}function $m(){if(ee===2){ee=0;var t=In,e=vi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var s=K.p;K.p=2;var r=Nt;Nt|=4;try{Em(t,e.alternate,e)}finally{Nt=r,K.p=s,R.T=n}}ee=3}}function Wm(){if(ee===4||ee===3){ee=0,Fv();var t=In,e=vi,n=Dn,s=Bm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,vi=In=null,Im(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Wn=null),ir(n),e=e.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(Hi,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=R.T,r=K.p,K.p=2,R.T=null;try{for(var u=t.onRecoverableError,h=0;h<s.length;h++){var b=s[h];u(b.value,{componentStack:b.stack})}}finally{R.T=e,K.p=r}}(Dn&3)!==0&&$l(),on(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===Bu?Ss++:(Ss=0,Bu=t):Ss=0,Ts(0)}}function Im(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ns(e)))}function $l(){return Pm(),$m(),Wm(),tp()}function tp(){if(ee!==5)return!1;var t=In,e=Lu;Lu=0;var n=ir(Dn),s=R.T,r=K.p;try{K.p=32>n?32:n,R.T=null,n=ku,ku=null;var u=In,h=Dn;if(ee=0,vi=In=null,Dn=0,(Nt&6)!==0)throw Error(o(331));var b=Nt;if(Nt|=4,_m(u.current),Rm(u,u.current,h,n),Nt=b,Ts(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(Hi,u)}catch{}return!0}finally{K.p=r,R.T=s,Im(t,e)}}function ep(t,e,n){e=Ge(n,e),e=gu(t.stateNode,e,2),t=Zn(t,e,2),t!==null&&(qi(t,2),on(t))}function Rt(t,e,n){if(t.tag===3)ep(t,t,n);else for(;e!==null;){if(e.tag===3){ep(e,t,n);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wn===null||!Wn.has(s))){t=Ge(n,t),n=nm(2),s=Zn(e,n,2),s!==null&&(am(n,s,e,t),qi(s,2),on(s));break}}e=e.return}}function Gu(t,e,n){var s=t.pingCache;if(s===null){s=t.pingCache=new S1;var r=new Set;s.set(e,r)}else r=s.get(e),r===void 0&&(r=new Set,s.set(e,r));r.has(n)||(Ou=!0,r.add(n),t=M1.bind(null,t,e,n),e.then(t,t))}function M1(t,e,n){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Lt===t&&(St&n)===n&&(Xt===4||Xt===3&&(St&62914560)===St&&300>Ee()-Ql?(Nt&2)===0&&bi(t,0):Vu|=n,yi===St&&(yi=0)),on(t)}function np(t,e){e===0&&(e=Pf()),t=xa(t,e),t!==null&&(qi(t,e),on(t))}function j1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),np(t,n)}function C1(t,e){var n=0;switch(t.tag){case 31:case 13:var s=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(e),np(t,n)}function N1(t,e){return tr(t,e)}var Wl=null,Si=null,qu=!1,Il=!1,Yu=!1,ea=0;function on(t){t!==Si&&t.next===null&&(Si===null?Wl=Si=t:Si=Si.next=t),Il=!0,qu||(qu=!0,D1())}function Ts(t,e){if(!Yu&&Il){Yu=!0;do for(var n=!1,s=Wl;s!==null;){if(t!==0){var r=s.pendingLanes;if(r===0)var u=0;else{var h=s.suspendedLanes,b=s.pingedLanes;u=(1<<31-je(42|t)+1)-1,u&=r&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,lp(s,u))}else u=St,u=al(s,s===Lt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Gi(s,u)||(n=!0,lp(s,u));s=s.next}while(n);Yu=!1}}function z1(){ap()}function ap(){Il=qu=!1;var t=0;ea!==0&&G1()&&(t=ea);for(var e=Ee(),n=null,s=Wl;s!==null;){var r=s.next,u=ip(s,e);u===0?(s.next=null,n===null?Wl=r:n.next=r,r===null&&(Si=n)):(n=s,(t!==0||(u&3)!==0)&&(Il=!0)),s=r}ee!==0&&ee!==5||Ts(t),ea!==0&&(ea=0)}function ip(t,e){for(var n=t.suspendedLanes,s=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-je(u),b=1<<h,T=r[h];T===-1?((b&n)===0||(b&s)!==0)&&(r[h]=ab(b,e)):T<=e&&(t.expiredLanes|=b),u&=~b}if(e=Lt,n=St,n=al(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,n===0||t===e&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&er(s),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Gi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(s!==null&&er(s),ir(n)){case 2:case 8:n=Jf;break;case 32:n=Is;break;case 268435456:n=Ff;break;default:n=Is}return s=sp.bind(null,t),n=tr(n,s),t.callbackPriority=e,t.callbackNode=n,e}return s!==null&&s!==null&&er(s),t.callbackPriority=2,t.callbackNode=null,2}function sp(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if($l()&&t.callbackNode!==n)return null;var s=St;return s=al(t,t===Lt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Hm(t,s,e),ip(t,Ee()),t.callbackNode!=null&&t.callbackNode===n?sp.bind(null,t):null)}function lp(t,e){if($l())return null;Hm(t,e,!0)}function D1(){Y1(function(){(Nt&6)!==0?tr(Kf,z1):ap()})}function Xu(){if(ea===0){var t=li;t===0&&(t=tl,tl<<=1,(tl&261888)===0&&(tl=256)),ea=t}return ea}function op(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ol(""+t)}function rp(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function R1(t,e,n,s,r){if(e==="submit"&&n&&n.stateNode===r){var u=op((r[ve]||null).action),h=s.submitter;h&&(e=(e=h[ve]||null)?op(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var b=new fl("action","action",null,s,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ea!==0){var T=h?rp(r,h):new FormData(r);cu(n,{pending:!0,data:T,method:r.method,action:u},null,T)}}else typeof u=="function"&&(b.preventDefault(),T=h?rp(r,h):new FormData(r),cu(n,{pending:!0,data:T,method:r.method,action:u},u,T))},currentTarget:r}]})}}for(var Qu=0;Qu<jr.length;Qu++){var Zu=jr[Qu],O1=Zu.toLowerCase(),V1=Zu[0].toUpperCase()+Zu.slice(1);Pe(O1,"on"+V1)}Pe(Ud,"onAnimationEnd"),Pe(Hd,"onAnimationIteration"),Pe(Gd,"onAnimationStart"),Pe("dblclick","onDoubleClick"),Pe("focusin","onFocus"),Pe("focusout","onBlur"),Pe(Pb,"onTransitionRun"),Pe($b,"onTransitionStart"),Pe(Wb,"onTransitionCancel"),Pe(qd,"onTransitionEnd"),Za("onMouseEnter",["mouseout","mouseover"]),Za("onMouseLeave",["mouseout","mouseover"]),Za("onPointerEnter",["pointerout","pointerover"]),Za("onPointerLeave",["pointerout","pointerover"]),ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var As="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(" "),_1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(As));function up(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var s=t[n],r=s.event;s=s.listeners;t:{var u=void 0;if(e)for(var h=s.length-1;0<=h;h--){var b=s[h],T=b.instance,N=b.currentTarget;if(b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=N;try{u(r)}catch(V){ml(V)}r.currentTarget=null,u=T}else for(h=0;h<s.length;h++){if(b=s[h],T=b.instance,N=b.currentTarget,b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=N;try{u(r)}catch(V){ml(V)}r.currentTarget=null,u=T}}}}function xt(t,e){var n=e[sr];n===void 0&&(n=e[sr]=new Set);var s=t+"__bubble";n.has(s)||(cp(e,t,2,!1),n.add(s))}function Ku(t,e,n){var s=0;e&&(s|=4),cp(n,t,s,e)}var to="_reactListening"+Math.random().toString(36).slice(2);function Ju(t){if(!t[to]){t[to]=!0,ad.forEach(function(n){n!=="selectionchange"&&(_1.has(n)||Ku(n,!1,t),Ku(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[to]||(e[to]=!0,Ku("selectionchange",!1,e))}}function cp(t,e,n,s){switch(Up(e)){case 2:var r=ux;break;case 8:r=cx;break;default:r=uc}n=r.bind(null,e,n,t),r=void 0,!mr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),s?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Fu(t,e,n,s,r){var u=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var h=s.tag;if(h===3||h===4){var b=s.stateNode.containerInfo;if(b===r)break;if(h===4)for(h=s.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;b!==null;){if(h=Ya(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){s=u=h;continue t}b=b.parentNode}}s=s.return}pd(function(){var N=u,V=dr(n),G=[];t:{var D=Yd.get(t);if(D!==void 0){var O=fl,tt=t;switch(t){case"keypress":if(ul(n)===0)break t;case"keydown":case"keyup":O=Cb;break;case"focusin":tt="focus",O=vr;break;case"focusout":tt="blur",O=vr;break;case"beforeblur":case"afterblur":O=vr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=vd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=gb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=Db;break;case Ud:case Hd:case Gd:O=bb;break;case qd:O=Ob;break;case"scroll":case"scrollend":O=mb;break;case"wheel":O=_b;break;case"copy":case"cut":case"paste":O=Sb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=xd;break;case"toggle":case"beforetoggle":O=kb}var rt=(e&4)!==0,_t=!rt&&(t==="scroll"||t==="scrollend"),M=rt?D!==null?D+"Capture":null:D;rt=[];for(var w=N,C;w!==null;){var B=w;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||M===null||(B=Qi(w,M),B!=null&&rt.push(ws(w,B,C))),_t)break;w=w.return}0<rt.length&&(D=new O(D,tt,null,n,V),G.push({event:D,listeners:rt}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",D&&n!==fr&&(tt=n.relatedTarget||n.fromElement)&&(Ya(tt)||tt[qa]))break t;if((O||D)&&(D=V.window===V?V:(D=V.ownerDocument)?D.defaultView||D.parentWindow:window,O?(tt=n.relatedTarget||n.toElement,O=N,tt=tt?Ya(tt):null,tt!==null&&(_t=f(tt),rt=tt.tag,tt!==_t||rt!==5&&rt!==27&&rt!==6)&&(tt=null)):(O=null,tt=N),O!==tt)){if(rt=vd,B="onMouseLeave",M="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(rt=xd,B="onPointerLeave",M="onPointerEnter",w="pointer"),_t=O==null?D:Xi(O),C=tt==null?D:Xi(tt),D=new rt(B,w+"leave",O,n,V),D.target=_t,D.relatedTarget=C,B=null,Ya(V)===N&&(rt=new rt(M,w+"enter",tt,n,V),rt.target=C,rt.relatedTarget=_t,B=rt),_t=B,O&&tt)e:{for(rt=L1,M=O,w=tt,C=0,B=M;B;B=rt(B))C++;B=0;for(var st=w;st;st=rt(st))B++;for(;0<C-B;)M=rt(M),C--;for(;0<B-C;)w=rt(w),B--;for(;C--;){if(M===w||w!==null&&M===w.alternate){rt=M;break e}M=rt(M),w=rt(w)}rt=null}else rt=null;O!==null&&fp(G,D,O,rt,!1),tt!==null&&_t!==null&&fp(G,_t,tt,rt,!0)}}t:{if(D=N?Xi(N):window,O=D.nodeName&&D.nodeName.toLowerCase(),O==="select"||O==="input"&&D.type==="file")var jt=Cd;else if(Md(D))if(Nd)jt=Kb;else{jt=Qb;var nt=Xb}else O=D.nodeName,!O||O.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?N&&cr(N.elementType)&&(jt=Cd):jt=Zb;if(jt&&(jt=jt(t,N))){jd(G,jt,n,V);break t}nt&&nt(t,D,N),t==="focusout"&&N&&D.type==="number"&&N.memoizedProps.value!=null&&ur(D,"number",D.value)}switch(nt=N?Xi(N):window,t){case"focusin":(Md(nt)||nt.contentEditable==="true")&&(Wa=nt,wr=N,Ii=null);break;case"focusout":Ii=wr=Wa=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,kd(G,n,V);break;case"selectionchange":if(Fb)break;case"keydown":case"keyup":kd(G,n,V)}var pt;if(xr)t:{switch(t){case"compositionstart":var Tt="onCompositionStart";break t;case"compositionend":Tt="onCompositionEnd";break t;case"compositionupdate":Tt="onCompositionUpdate";break t}Tt=void 0}else $a?wd(t,n)&&(Tt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Tt="onCompositionStart");Tt&&(Sd&&n.locale!=="ko"&&($a||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&$a&&(pt=gd()):(Un=V,pr="value"in Un?Un.value:Un.textContent,$a=!0)),nt=eo(N,Tt),0<nt.length&&(Tt=new bd(Tt,t,null,n,V),G.push({event:Tt,listeners:nt}),pt?Tt.data=pt:(pt=Ed(n),pt!==null&&(Tt.data=pt)))),(pt=Ub?Hb(t,n):Gb(t,n))&&(Tt=eo(N,"onBeforeInput"),0<Tt.length&&(nt=new bd("onBeforeInput","beforeinput",null,n,V),G.push({event:nt,listeners:Tt}),nt.data=pt)),R1(G,t,N,n,V)}up(G,e)})}function ws(t,e,n){return{instance:t,listener:e,currentTarget:n}}function eo(t,e){for(var n=e+"Capture",s=[];t!==null;){var r=t,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=Qi(t,n),r!=null&&s.unshift(ws(t,r,u)),r=Qi(t,e),r!=null&&s.push(ws(t,r,u))),t.tag===3)return s;t=t.return}return[]}function L1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function fp(t,e,n,s,r){for(var u=e._reactName,h=[];n!==null&&n!==s;){var b=n,T=b.alternate,N=b.stateNode;if(b=b.tag,T!==null&&T===s)break;b!==5&&b!==26&&b!==27||N===null||(T=N,r?(N=Qi(n,u),N!=null&&h.unshift(ws(n,N,T))):r||(N=Qi(n,u),N!=null&&h.push(ws(n,N,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var k1=/\r\n?/g,B1=/\u0000|\uFFFD/g;function dp(t){return(typeof t=="string"?t:""+t).replace(k1,`
|
|
9
|
+
`).replace(B1,"")}function hp(t,e){return e=dp(e),dp(t)===e}function Vt(t,e,n,s,r,u){switch(n){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Ja(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Ja(t,""+s);break;case"className":sl(t,"class",s);break;case"tabIndex":sl(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":sl(t,n,s);break;case"style":hd(t,s,u);break;case"data":if(e!=="object"){sl(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=ol(""+s),t.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Vt(t,e,"name",r.name,r,null),Vt(t,e,"formEncType",r.formEncType,r,null),Vt(t,e,"formMethod",r.formMethod,r,null),Vt(t,e,"formTarget",r.formTarget,r,null)):(Vt(t,e,"encType",r.encType,r,null),Vt(t,e,"method",r.method,r,null),Vt(t,e,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=ol(""+s),t.setAttribute(n,s);break;case"onClick":s!=null&&(t.onclick=gn);break;case"onScroll":s!=null&&xt("scroll",t);break;case"onScrollEnd":s!=null&&xt("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}n=ol(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,""+s):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":s===!0?t.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,s):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(n,s):t.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(n):t.setAttribute(n,s);break;case"popover":xt("beforetoggle",t),xt("toggle",t),il(t,"popover",s);break;case"xlinkActuate":pn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":pn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":pn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":pn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":pn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":pn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":pn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":pn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":pn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":il(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=db.get(n)||n,il(t,n,s))}}function Pu(t,e,n,s,r,u){switch(n){case"style":hd(t,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof s=="string"?Ja(t,s):(typeof s=="number"||typeof s=="bigint")&&Ja(t,""+s);break;case"onScroll":s!=null&&xt("scroll",t);break;case"onScrollEnd":s!=null&&xt("scrollend",t);break;case"onClick":s!=null&&(t.onclick=gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!id.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),u=t[ve]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,r),typeof s=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,s,r);break t}n in t?t[n]=s:s===!0?t.setAttribute(n,""):il(t,n,s)}}}function fe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xt("error",t),xt("load",t);var s=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Vt(t,e,u,h,n,null)}}r&&Vt(t,e,"srcSet",n.srcSet,n,null),s&&Vt(t,e,"src",n.src,n,null);return;case"input":xt("invalid",t);var b=u=h=r=null,T=null,N=null;for(s in n)if(n.hasOwnProperty(s)){var V=n[s];if(V!=null)switch(s){case"name":r=V;break;case"type":h=V;break;case"checked":T=V;break;case"defaultChecked":N=V;break;case"value":u=V;break;case"defaultValue":b=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,e));break;default:Vt(t,e,s,V,n,null)}}ud(t,u,b,T,N,h,r,!1);return;case"select":xt("invalid",t),s=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":u=b;break;case"defaultValue":h=b;break;case"multiple":s=b;default:Vt(t,e,r,b,n,null)}e=u,n=h,t.multiple=!!s,e!=null?Ka(t,!!s,e,!1):n!=null&&Ka(t,!!s,n,!0);return;case"textarea":xt("invalid",t),u=r=s=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":s=b;break;case"defaultValue":r=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Vt(t,e,h,b,n,null)}fd(t,s,r,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(s=n[T],s!=null)&&(T==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":Vt(t,e,T,s,n,null));return;case"dialog":xt("beforetoggle",t),xt("toggle",t),xt("cancel",t),xt("close",t);break;case"iframe":case"object":xt("load",t);break;case"video":case"audio":for(s=0;s<As.length;s++)xt(As[s],t);break;case"image":xt("error",t),xt("load",t);break;case"details":xt("toggle",t);break;case"embed":case"source":case"link":xt("error",t),xt("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(N in n)if(n.hasOwnProperty(N)&&(s=n[N],s!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Vt(t,e,N,s,n,null)}return;default:if(cr(e)){for(V in n)n.hasOwnProperty(V)&&(s=n[V],s!==void 0&&Pu(t,e,V,s,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(s=n[b],s!=null&&Vt(t,e,b,s,n,null))}function U1(t,e,n,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,b=null,T=null,N=null,V=null;for(O in n){var G=n[O];if(n.hasOwnProperty(O)&&G!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":T=G;default:s.hasOwnProperty(O)||Vt(t,e,O,null,s,G)}}for(var D in s){var O=s[D];if(G=n[D],s.hasOwnProperty(D)&&(O!=null||G!=null))switch(D){case"type":u=O;break;case"name":r=O;break;case"checked":N=O;break;case"defaultChecked":V=O;break;case"value":h=O;break;case"defaultValue":b=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:O!==G&&Vt(t,e,D,O,s,G)}}rr(t,h,b,T,N,V,u,r);return;case"select":O=h=b=D=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":O=T;default:s.hasOwnProperty(u)||Vt(t,e,u,null,s,T)}for(r in s)if(u=s[r],T=n[r],s.hasOwnProperty(r)&&(u!=null||T!=null))switch(r){case"value":D=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==T&&Vt(t,e,r,u,s,T)}e=b,n=h,s=O,D!=null?Ka(t,!!n,D,!1):!!s!=!!n&&(e!=null?Ka(t,!!n,e,!0):Ka(t,!!n,n?[]:"",!1));return;case"textarea":O=D=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Vt(t,e,b,null,s,r)}for(h in s)if(r=s[h],u=n[h],s.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":D=r;break;case"defaultValue":O=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&Vt(t,e,h,r,s,u)}cd(t,D,O);return;case"option":for(var tt in n)D=n[tt],n.hasOwnProperty(tt)&&D!=null&&!s.hasOwnProperty(tt)&&(tt==="selected"?t.selected=!1:Vt(t,e,tt,null,s,D));for(T in s)D=s[T],O=n[T],s.hasOwnProperty(T)&&D!==O&&(D!=null||O!=null)&&(T==="selected"?t.selected=D&&typeof D!="function"&&typeof D!="symbol":Vt(t,e,T,D,s,O));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 rt in n)D=n[rt],n.hasOwnProperty(rt)&&D!=null&&!s.hasOwnProperty(rt)&&Vt(t,e,rt,null,s,D);for(N in s)if(D=s[N],O=n[N],s.hasOwnProperty(N)&&D!==O&&(D!=null||O!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:Vt(t,e,N,D,s,O)}return;default:if(cr(e)){for(var _t in n)D=n[_t],n.hasOwnProperty(_t)&&D!==void 0&&!s.hasOwnProperty(_t)&&Pu(t,e,_t,void 0,s,D);for(V in s)D=s[V],O=n[V],!s.hasOwnProperty(V)||D===O||D===void 0&&O===void 0||Pu(t,e,V,D,s,O);return}}for(var M in n)D=n[M],n.hasOwnProperty(M)&&D!=null&&!s.hasOwnProperty(M)&&Vt(t,e,M,null,s,D);for(G in s)D=s[G],O=n[G],!s.hasOwnProperty(G)||D===O||D==null&&O==null||Vt(t,e,G,D,s,O)}function mp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function H1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var r=n[s],u=r.transferSize,h=r.initiatorType,b=r.duration;if(u&&b&&mp(h)){for(h=0,b=r.responseEnd,s+=1;s<n.length;s++){var T=n[s],N=T.startTime;if(N>b)break;var V=T.transferSize,G=T.initiatorType;V&&mp(G)&&(T=T.responseEnd,h+=V*(T<b?1:(b-N)/(T-N)))}if(--s,e+=8*(u+h)/(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 $u=null,Wu=null;function no(t){return t.nodeType===9?t:t.ownerDocument}function pp(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 gp(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 Iu(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 tc=null;function G1(){var t=window.event;return t&&t.type==="popstate"?t===tc?!1:(tc=t,!0):(tc=null,!1)}var yp=typeof setTimeout=="function"?setTimeout:void 0,q1=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,Y1=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(t){return vp.resolve(null).then(t).catch(X1)}:yp;function X1(t){setTimeout(function(){throw t})}function na(t){return t==="head"}function bp(t,e){var n=e,s=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(s===0){t.removeChild(r),Ei(e);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")Es(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Es(n);for(var u=n.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[Yi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&Es(t.ownerDocument.body);n=r}while(n);Ei(e)}function xp(t,e){var n=t;t=0;do{var s=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=s}while(n)}function ec(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ec(n),lr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Q1(t,e,n,s){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Yi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==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(u=t.getAttribute("src"),(u!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function Z1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ze(t.nextSibling),t===null))return null;return t}function Sp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function nc(t){return t.data==="$?"||t.data==="$~"}function ac(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function K1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var s=function(){e(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Ze(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 ic=null;function Tp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ze(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Ap(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function wp(t,e,n){switch(e=no(n),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 Es(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);lr(t)}var Ke=new Map,Ep=new Set;function ao(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Rn=K.d;K.d={f:J1,r:F1,D:P1,C:$1,L:W1,m:I1,X:ex,S:tx,M:nx};function J1(){var t=Rn.f(),e=Jl();return t||e}function F1(t){var e=Xa(t);e!==null&&e.tag===5&&e.type==="form"?qh(e):Rn.r(t)}var Ti=typeof document>"u"?null:document;function Mp(t,e,n){var s=Ti;if(s&&typeof e=="string"&&e){var r=Ue(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Ep.has(r)||(Ep.add(r),t={rel:t,crossOrigin:n,href:e},s.querySelector(r)===null&&(e=s.createElement("link"),fe(e,"link",t),se(e),s.head.appendChild(e)))}}function P1(t){Rn.D(t),Mp("dns-prefetch",t,null)}function $1(t,e){Rn.C(t,e),Mp("preconnect",t,e)}function W1(t,e,n){Rn.L(t,e,n);var s=Ti;if(s&&t&&e){var r='link[rel="preload"][as="'+Ue(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Ue(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Ue(n.imageSizes)+'"]')):r+='[href="'+Ue(t)+'"]';var u=r;switch(e){case"style":u=Ai(t);break;case"script":u=wi(t)}Ke.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ke.set(u,t),s.querySelector(r)!==null||e==="style"&&s.querySelector(Ms(u))||e==="script"&&s.querySelector(js(u))||(e=s.createElement("link"),fe(e,"link",t),se(e),s.head.appendChild(e)))}}function I1(t,e){Rn.m(t,e);var n=Ti;if(n&&t){var s=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Ue(s)+'"][href="'+Ue(t)+'"]',u=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=wi(t)}if(!Ke.has(u)&&(t=x({rel:"modulepreload",href:t},e),Ke.set(u,t),n.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(js(u)))return}s=n.createElement("link"),fe(s,"link",t),se(s),n.head.appendChild(s)}}}function tx(t,e,n){Rn.S(t,e,n);var s=Ti;if(s&&t){var r=Qa(s).hoistableStyles,u=Ai(t);e=e||"default";var h=r.get(u);if(!h){var b={loading:0,preload:null};if(h=s.querySelector(Ms(u)))b.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ke.get(u))&&sc(t,n);var T=h=s.createElement("link");se(T),fe(T,"link",t),T._p=new Promise(function(N,V){T.onload=N,T.onerror=V}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,io(h,e,s)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(u,h)}}}function ex(t,e){Rn.X(t,e);var n=Ti;if(n&&t){var s=Qa(n).hoistableScripts,r=wi(t),u=s.get(r);u||(u=n.querySelector(js(r)),u||(t=x({src:t,async:!0},e),(e=Ke.get(r))&&lc(t,e),u=n.createElement("script"),se(u),fe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function nx(t,e){Rn.M(t,e);var n=Ti;if(n&&t){var s=Qa(n).hoistableScripts,r=wi(t),u=s.get(r);u||(u=n.querySelector(js(r)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Ke.get(r))&&lc(t,e),u=n.createElement("script"),se(u),fe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function jp(t,e,n,s){var r=(r=ot.current)?ao(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ai(n.href),n=Qa(r).hoistableStyles,s=n.get(e),s||(s={type:"style",instance:null,count:0,state:null},n.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Ai(n.href);var u=Qa(r).hoistableStyles,h=u.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=r.querySelector(Ms(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Ke.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ke.set(t,n),u||ax(r,t,n,h.state))),e&&s===null)throw Error(o(528,""));return h}if(e&&s!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=wi(n),n=Qa(r).hoistableScripts,s=n.get(e),s||(s={type:"script",instance:null,count:0,state:null},n.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ai(t){return'href="'+Ue(t)+'"'}function Ms(t){return'link[rel="stylesheet"]['+t+"]"}function Cp(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function ax(t,e,n,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),fe(e,"link",n),se(e),t.head.appendChild(e))}function wi(t){return'[src="'+Ue(t)+'"]'}function js(t){return"script[async]"+t}function Np(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+Ue(n.href)+'"]');if(s)return e.instance=s,se(s),s;var r=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),se(s),fe(s,"style",r),io(s,n.precedence,t),e.instance=s;case"stylesheet":r=Ai(n.href);var u=t.querySelector(Ms(r));if(u)return e.state.loading|=4,e.instance=u,se(u),u;s=Cp(n),(r=Ke.get(r))&&sc(s,r),u=(t.ownerDocument||t).createElement("link"),se(u);var h=u;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),fe(u,"link",s),e.state.loading|=4,io(u,n.precedence,t),e.instance=u;case"script":return u=wi(n.src),(r=t.querySelector(js(u)))?(e.instance=r,se(r),r):(s=n,(r=Ke.get(u))&&(s=x({},n),lc(s,r)),t=t.ownerDocument||t,r=t.createElement("script"),se(r),fe(r,"link",s),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&&(s=e.instance,e.state.loading|=4,io(s,n.precedence,t));return e.instance}function io(t,e,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,u=r,h=0;h<s.length;h++){var b=s[h];if(b.dataset.precedence===e)u=b;else if(u!==r)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function sc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function lc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var so=null;function zp(t,e,n){if(so===null){var s=new Map,r=so=new Map;r.set(n,s)}else r=so,s=r.get(n),s||(s=new Map,r.set(n,s));if(s.has(t))return s;for(s.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var u=n[r];if(!(u[Yi]||u[oe]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var b=s.get(h);b?b.push(u):s.set(h,[u])}}return s}function Dp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function ix(t,e,n){if(n===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;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!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 Rp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function sx(t,e,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Ai(s.href),u=e.querySelector(Ms(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=lo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,se(u);return}u=e.ownerDocument||e,s=Cp(s),(r=Ke.get(r))&&sc(s,r),u=u.createElement("link"),se(u);var h=u;h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),fe(u,"link",s),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=lo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var oc=0;function lx(t,e){return t.stylesheets&&t.count===0&&ro(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var s=setTimeout(function(){if(t.stylesheets&&ro(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&oc===0&&(oc=62500*H1());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ro(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>oc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ro(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var oo=null;function ro(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,oo=new Map,e.forEach(ox,t),oo=null,lo.call(t))}function ox(t,e){if(!(e.state.loading&4)){var n=oo.get(t);if(n)var s=n.get(null);else{n=new Map,oo.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),s=h)}s&&n.set(null,s)}r=e.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||s,u===s&&n.set(null,r),n.set(h,r),this.count++,s=lo.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),u?u.parentNode.insertBefore(r,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Cs={$$typeof:Y,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function rx(t,e,n,s,r,u,h,b,T){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=nr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nr(0),this.hiddenUpdates=nr(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Op(t,e,n,s,r,u,h,b,T,N,V,G){return t=new rx(t,e,n,h,T,N,V,G,b),e=1,u===!0&&(e|=24),u=Ne(3,null,null,e),t.current=u,u.stateNode=t,e=Hr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:e},Xr(u),t}function Vp(t){return t?(t=ei,t):ei}function _p(t,e,n,s,r,u){r=Vp(r),s.context===null?s.context=r:s.pendingContext=r,s=Qn(e),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=Zn(t,s,e),n!==null&&(we(n,t,e),ls(n,t,e))}function Lp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function rc(t,e){Lp(t,e),(t=t.alternate)&&Lp(t,e)}function kp(t){if(t.tag===13||t.tag===31){var e=xa(t,67108864);e!==null&&we(e,t,67108864),rc(t,67108864)}}function Bp(t){if(t.tag===13||t.tag===31){var e=Ve();e=ar(e);var n=xa(t,e);n!==null&&we(n,t,e),rc(t,e)}}var uo=!0;function ux(t,e,n,s){var r=R.T;R.T=null;var u=K.p;try{K.p=2,uc(t,e,n,s)}finally{K.p=u,R.T=r}}function cx(t,e,n,s){var r=R.T;R.T=null;var u=K.p;try{K.p=8,uc(t,e,n,s)}finally{K.p=u,R.T=r}}function uc(t,e,n,s){if(uo){var r=cc(s);if(r===null)Fu(t,e,s,co,n),Hp(t,s);else if(dx(r,t,e,n,s))s.stopPropagation();else if(Hp(t,s),e&4&&-1<fx.indexOf(t)){for(;r!==null;){var u=Xa(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=pa(u.pendingLanes);if(h!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-je(h);b.entanglements[1]|=T,h&=~T}on(u),(Nt&6)===0&&(Zl=Ee()+500,Ts(0))}}break;case 31:case 13:b=xa(u,2),b!==null&&we(b,u,2),Jl(),rc(u,2)}if(u=cc(s),u===null&&Fu(t,e,s,co,n),u===r)break;r=u}r!==null&&s.stopPropagation()}else Fu(t,e,s,null,n)}}function cc(t){return t=dr(t),fc(t)}var co=null;function fc(t){if(co=null,t=Ya(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return co=t,null}function Up(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(Pv()){case Kf:return 2;case Jf:return 8;case Is:case $v:return 32;case Ff:return 268435456;default:return 32}default:return 32}}var dc=!1,aa=null,ia=null,sa=null,Ns=new Map,zs=new Map,la=[],fx="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 Hp(t,e){switch(t){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Ns.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(e.pointerId)}}function Ds(t,e,n,s,r,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[r]},e!==null&&(e=Xa(e),e!==null&&kp(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function dx(t,e,n,s,r){switch(e){case"focusin":return aa=Ds(aa,t,e,n,s,r),!0;case"dragenter":return ia=Ds(ia,t,e,n,s,r),!0;case"mouseover":return sa=Ds(sa,t,e,n,s,r),!0;case"pointerover":var u=r.pointerId;return Ns.set(u,Ds(Ns.get(u)||null,t,e,n,s,r)),!0;case"gotpointercapture":return u=r.pointerId,zs.set(u,Ds(zs.get(u)||null,t,e,n,s,r)),!0}return!1}function Gp(t){var e=Ya(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,ed(t.priority,function(){Bp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,ed(t.priority,function(){Bp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=cc(t.nativeEvent);if(n===null){n=t.nativeEvent;var s=new n.constructor(n.type,n);fr=s,n.target.dispatchEvent(s),fr=null}else return e=Xa(n),e!==null&&kp(e),t.blockedOn=n,!1;e.shift()}return!0}function qp(t,e,n){fo(t)&&n.delete(e)}function hx(){dc=!1,aa!==null&&fo(aa)&&(aa=null),ia!==null&&fo(ia)&&(ia=null),sa!==null&&fo(sa)&&(sa=null),Ns.forEach(qp),zs.forEach(qp)}function ho(t,e){t.blockedOn===e&&(t.blockedOn=null,dc||(dc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,hx)))}var mo=null;function Yp(t){mo!==t&&(mo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){mo===t&&(mo=null);for(var e=0;e<t.length;e+=3){var n=t[e],s=t[e+1],r=t[e+2];if(typeof s!="function"){if(fc(s||n)===null)continue;break}var u=Xa(n);u!==null&&(t.splice(e,3),e-=3,cu(u,{pending:!0,data:r,method:n.method,action:s},s,r))}}))}function Ei(t){function e(T){return ho(T,t)}aa!==null&&ho(aa,t),ia!==null&&ho(ia,t),sa!==null&&ho(sa,t),Ns.forEach(e),zs.forEach(e);for(var n=0;n<la.length;n++){var s=la[n];s.blockedOn===t&&(s.blockedOn=null)}for(;0<la.length&&(n=la[0],n.blockedOn===null);)Gp(n),n.blockedOn===null&&la.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var r=n[s],u=n[s+1],h=r[ve]||null;if(typeof u=="function")h||Yp(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[ve]||null)b=h.formAction;else if(fc(r)!==null)continue}else b=h.action;typeof b=="function"?n[s+1]=b:(n.splice(s,3),s-=3),Yp(n)}}}function Xp(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function hc(t){this._internalRoot=t}po.prototype.render=hc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,s=Ve();_p(n,s,t,e,null,null)},po.prototype.unmount=hc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;_p(t.current,2,null,t,null,null),Jl(),e[qa]=null}};function po(t){this._internalRoot=t}po.prototype.unstable_scheduleHydration=function(t){if(t){var e=td();t={blockedOn:null,target:t,priority:e};for(var n=0;n<la.length&&e!==0&&e<la[n].priority;n++);la.splice(n,0,t),n===0&&Gp(t)}};var Qp=i.version;if(Qp!=="19.2.6")throw Error(o(527,Qp,"19.2.6"));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?v(t):null,t=t===null?null:t.stateNode,t};var mx={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!go.isDisabled&&go.supportsFiber)try{Hi=go.inject(mx),Me=go}catch{}}return Os.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,s="",r=Wh,u=Ih,h=tm;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=Op(t,1,!1,null,null,n,s,null,r,u,h,Xp),t[qa]=e.current,Ju(t),new hc(e)},Os.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var s=!1,r="",u=Wh,h=Ih,b=tm,T=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Op(t,1,!0,e,n??null,s,r,T,u,h,b,Xp),e.context=Vp(null),n=e.current,s=Ve(),s=ar(s),r=Qn(s),r.callback=null,Zn(n,r,s),n=s,e.current.lanes=n,qi(e,n),on(e),t[qa]=e.current,Ju(t),new po(e)},Os.version="19.2.6",Os}var eg;function wx(){if(eg)return gc.exports;eg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),gc.exports=Ax(),gc.exports}var Oy=wx();const Vy=(...a)=>a.filter((i,l,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===l).join(" ").trim();const Ex=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Mx=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,o)=>o?o.toUpperCase():l.toLowerCase());const ng=a=>{const i=Mx(a);return i.charAt(0).toUpperCase()+i.slice(1)};var xc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const jx=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Cx=L.createContext({}),Nx=()=>L.useContext(Cx),zx=L.forwardRef(({color:a,size:i,strokeWidth:l,absoluteStrokeWidth:o,className:c="",children:f,iconNode:d,...m},g)=>{const{size:p=24,strokeWidth:v=2,absoluteStrokeWidth:x=!1,color:S="currentColor",className:j=""}=Nx()??{},E=o??x?Number(l??v)*24/Number(i??p):l??v;return L.createElement("svg",{ref:g,...xc,width:i??p??xc.width,height:i??p??xc.height,stroke:a??S,strokeWidth:E,className:Vy("lucide",j,c),...!f&&!jx(m)&&{"aria-hidden":"true"},...m},[...d.map(([z,_])=>L.createElement(z,_)),...Array.isArray(f)?f:[f]])});const At=(a,i)=>{const l=L.forwardRef(({className:o,...c},f)=>L.createElement(zx,{ref:f,iconNode:i,className:Vy(`lucide-${Ex(ng(a))}`,`lucide-${a}`,o),...c}));return l.displayName=ng(a),l};const Dx=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],mf=At("box",Dx);const Rx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ox=At("check",Rx);const Vx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Js=At("chevron-down",Vx);const _x=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Lx=At("chevron-right",_x);const kx=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Bx=At("database",kx);const Ux=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hx=At("earth",Ux);const Gx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],qx=At("external-link",Gx);const Yx=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],Xx=At("file-code-corner",Yx);const Qx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Zx=At("file-text",Qx);const Kx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Jx=At("file",Kx);const Fx=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],Px=At("flask-conical",Fx);const $x=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Wx=At("folder-plus",$x);const Ix=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],pf=At("folder",Ix);const tS=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Vo=At("git-branch",tS);const eS=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v3",key:"1jb6z3"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],nS=At("git-pull-request-create",eS);const aS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],iS=At("image",aS);const sS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_y=At("loader-circle",sS);const lS=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],oS=At("lock-keyhole",lS);const rS=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],uS=At("network",rS);const cS=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],fS=At("palette",cS);const dS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],hS=At("panel-left-close",dS);const mS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],pS=At("panel-left-open",mS);const gS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],yS=At("panel-left",gS);const vS=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],bS=At("pencil",vS);const xS=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Ly=At("play",xS);const SS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ky=At("plus",SS);const TS=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],ag=At("radio",TS);const AS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],By=At("refresh-cw",AS);const wS=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Uy=At("rotate-ccw",wS);const ES=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],MS=At("save",ES);const jS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],CS=At("search",jS);const NS=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],zS=At("server",NS);const DS=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],RS=At("settings-2",DS);const OS=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],VS=At("square-terminal",OS);const _S=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Hy=At("square",_S);const LS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gf=At("x",LS);async function kS(){return Qo("/api/dashboard")}async function BS(a){const i=await fetch(`/api/git/diff?file=${encodeURIComponent(a)}`);if(!i.ok){const l=await i.json().catch(()=>({error:i.statusText}));throw new Error(l.error||"Unable to load diff")}return i.text()}async function US(a){return Qo(`/api/fs/directories?path=${encodeURIComponent(a)}`)}async function ig(a){return(await Qo(`/api/services/${encodeURIComponent(a)}/logs`)).logs}async function Vn(a,i){const l=new URLSearchParams;for(const[o,c]of Object.entries(i))c!==void 0&&String(c).trim()&&l.set(o,String(c));await Qo(a,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function Qo(a,i){const l=await fetch(a,i),o=await l.json().catch(()=>{});if(!l.ok)throw new Error(o?.error||l.statusText);return o}function Gy(a){var i,l,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(i=0;i<c;i++)a[i]&&(l=Gy(a[i]))&&(o&&(o+=" "),o+=l)}else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function Ys(){for(var a,i,l=0,o="",c=arguments.length;l<c;l++)(a=arguments[l])&&(i=Gy(a))&&(o&&(o+=" "),o+=i);return o}const sg=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,lg=Ys,qy=(a,i)=>l=>{var o;if(i?.variants==null)return lg(a,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(p=>{const v=l?.[p],x=f?.[p];if(v===null)return null;const S=sg(v)||sg(x);return c[p][S]}),m=l&&Object.entries(l).reduce((p,v)=>{let[x,S]=v;return S===void 0||(p[x]=S),p},{}),g=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((p,v)=>{let{class:x,className:S,...j}=v;return Object.entries(j).every(E=>{let[z,_]=E;return Array.isArray(_)?_.includes({...f,...m}[z]):{...f,...m}[z]===_})?[...p,x,S]:p},[]);return lg(a,d,g,l?.class,l?.className)},HS=(a,i)=>{const l=new Array(a.length+i.length);for(let o=0;o<a.length;o++)l[o]=a[o];for(let o=0;o<i.length;o++)l[a.length+o]=i[o];return l},GS=(a,i)=>({classGroupId:a,validator:i}),Yy=(a=new Map,i=null,l)=>({nextPart:a,validators:i,classGroupId:l}),_o="-",og=[],qS="arbitrary..",YS=a=>{const i=QS(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return XS(d);const m=d.split(_o),g=m[0]===""&&m.length>1?1:0;return Xy(m,g,i)},getConflictingClassGroupIds:(d,m)=>{if(m){const g=o[d],p=l[d];return g?p?HS(p,g):g:p||og}return l[d]||og}}},Xy=(a,i,l)=>{if(a.length-i===0)return l.classGroupId;const c=a[i],f=l.nextPart.get(c);if(f){const p=Xy(a,i+1,f);if(p)return p}const d=l.validators;if(d===null)return;const m=i===0?a.join(_o):a.slice(i).join(_o),g=d.length;for(let p=0;p<g;p++){const v=d[p];if(v.validator(m))return v.classGroupId}},XS=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),l=i.indexOf(":"),o=i.slice(0,l);return o?qS+o:void 0})(),QS=a=>{const{theme:i,classGroups:l}=a;return ZS(l,i)},ZS=(a,i)=>{const l=Yy();for(const o in a){const c=a[o];yf(c,l,o,i)}return l},yf=(a,i,l,o)=>{const c=a.length;for(let f=0;f<c;f++){const d=a[f];KS(d,i,l,o)}},KS=(a,i,l,o)=>{if(typeof a=="string"){JS(a,i,l);return}if(typeof a=="function"){FS(a,i,l,o);return}PS(a,i,l,o)},JS=(a,i,l)=>{const o=a===""?i:Qy(i,a);o.classGroupId=l},FS=(a,i,l,o)=>{if($S(a)){yf(a(o),i,l,o);return}i.validators===null&&(i.validators=[]),i.validators.push(GS(l,a))},PS=(a,i,l,o)=>{const c=Object.entries(a),f=c.length;for(let d=0;d<f;d++){const[m,g]=c[d];yf(g,Qy(i,m),l,o)}},Qy=(a,i)=>{let l=a;const o=i.split(_o),c=o.length;for(let f=0;f<c;f++){const d=o[f];let m=l.nextPart.get(d);m||(m=Yy(),l.nextPart.set(d,m)),l=m}return l},$S=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,WS=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),o=Object.create(null);const c=(f,d)=>{l[f]=d,i++,i>a&&(i=0,o=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=o[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},Gc="!",rg=":",IS=[],ug=(a,i,l,o,c)=>({modifiers:a,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:o,isExternal:c}),t2=a=>{const{prefix:i,experimentalParseClassName:l}=a;let o=c=>{const f=[];let d=0,m=0,g=0,p;const v=c.length;for(let z=0;z<v;z++){const _=c[z];if(d===0&&m===0){if(_===rg){f.push(c.slice(g,z)),g=z+1;continue}if(_==="/"){p=z;continue}}_==="["?d++:_==="]"?d--:_==="("?m++:_===")"&&m--}const x=f.length===0?c:c.slice(g);let S=x,j=!1;x.endsWith(Gc)?(S=x.slice(0,-1),j=!0):x.startsWith(Gc)&&(S=x.slice(1),j=!0);const E=p&&p>g?p-g:void 0;return ug(f,j,S,E)};if(i){const c=i+rg,f=o;o=d=>d.startsWith(c)?f(d.slice(c.length)):ug(IS,!1,d,void 0,!0)}if(l){const c=o;o=f=>l({className:f,parseClassName:c})}return o},e2=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((l,o)=>{i.set(l,1e6+o)}),l=>{const o=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],m=d[0]==="[",g=i.has(d);m||g?(c.length>0&&(c.sort(),o.push(...c),c=[]),o.push(d)):c.push(d)}return c.length>0&&(c.sort(),o.push(...c)),o}},n2=a=>({cache:WS(a.cacheSize),parseClassName:t2(a),sortModifiers:e2(a),postfixLookupClassGroupIds:a2(a),...YS(a)}),a2=a=>{const i=Object.create(null),l=a.postfixLookupClassGroups;if(l)for(let o=0;o<l.length;o++)i[l[o]]=!0;return i},i2=/\s+/,s2=(a,i)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:f,postfixLookupClassGroupIds:d}=i,m=[],g=a.trim().split(i2);let p="";for(let v=g.length-1;v>=0;v-=1){const x=g[v],{isExternal:S,modifiers:j,hasImportantModifier:E,baseClassName:z,maybePostfixModifierPosition:_}=l(x);if(S){p=x+(p.length>0?" "+p:p);continue}let q=!!_,H;if(q){const X=z.substring(0,_);H=o(X);const k=H&&d[H]?o(z):void 0;k&&k!==H&&(H=k,q=!1)}else H=o(z);if(!H){if(!q){p=x+(p.length>0?" "+p:p);continue}if(H=o(z),!H){p=x+(p.length>0?" "+p:p);continue}q=!1}const Y=j.length===0?"":j.length===1?j[0]:f(j).join(":"),Q=E?Y+Gc:Y,P=Q+H;if(m.indexOf(P)>-1)continue;m.push(P);const ut=c(H,q);for(let X=0;X<ut.length;++X){const k=ut[X];m.push(Q+k)}p=x+(p.length>0?" "+p:p)}return p},l2=(...a)=>{let i=0,l,o,c="";for(;i<a.length;)(l=a[i++])&&(o=Zy(l))&&(c&&(c+=" "),c+=o);return c},Zy=a=>{if(typeof a=="string")return a;let i,l="";for(let o=0;o<a.length;o++)a[o]&&(i=Zy(a[o]))&&(l&&(l+=" "),l+=i);return l},o2=(a,...i)=>{let l,o,c,f;const d=g=>{const p=i.reduce((v,x)=>x(v),a());return l=n2(p),o=l.cache.get,c=l.cache.set,f=m,m(g)},m=g=>{const p=o(g);if(p)return p;const v=s2(g,l);return c(g,v),v};return f=d,(...g)=>f(l2(...g))},r2=[],ne=a=>{const i=l=>l[a]||r2;return i.isThemeGetter=!0,i},Ky=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,u2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,c2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,d2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,h2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ra=a=>u2.test(a),yt=a=>!!a&&!Number.isNaN(Number(a)),rn=a=>!!a&&Number.isInteger(Number(a)),Sc=a=>a.endsWith("%")&&yt(a.slice(0,-1)),On=a=>c2.test(a),Fy=()=>!0,p2=a=>f2.test(a)&&!d2.test(a),vf=()=>!1,g2=a=>h2.test(a),y2=a=>m2.test(a),v2=a=>!$(a)&&!I(a),b2=a=>a.startsWith("@container")&&(a[10]==="/"&&a[11]!==void 0||a[11]==="s"&&a[16]!==void 0&&a.startsWith("-size/",10)||a[11]==="n"&&a[18]!==void 0&&a.startsWith("-normal/",10)),x2=a=>ha(a,Wy,vf),$=a=>Ky.test(a),Oa=a=>ha(a,Iy,p2),cg=a=>ha(a,C2,yt),S2=a=>ha(a,e0,Fy),T2=a=>ha(a,t0,vf),fg=a=>ha(a,Py,vf),A2=a=>ha(a,$y,y2),yo=a=>ha(a,n0,g2),I=a=>Jy.test(a),Vs=a=>Ha(a,Iy),w2=a=>Ha(a,t0),dg=a=>Ha(a,Py),E2=a=>Ha(a,Wy),M2=a=>Ha(a,$y),vo=a=>Ha(a,n0,!0),j2=a=>Ha(a,e0,!0),ha=(a,i,l)=>{const o=Ky.exec(a);return o?o[1]?i(o[1]):l(o[2]):!1},Ha=(a,i,l=!1)=>{const o=Jy.exec(a);return o?o[1]?i(o[1]):l:!1},Py=a=>a==="position"||a==="percentage",$y=a=>a==="image"||a==="url",Wy=a=>a==="length"||a==="size"||a==="bg-size",Iy=a=>a==="length",C2=a=>a==="number",t0=a=>a==="family-name",e0=a=>a==="number"||a==="weight",n0=a=>a==="shadow",N2=()=>{const a=ne("color"),i=ne("font"),l=ne("text"),o=ne("font-weight"),c=ne("tracking"),f=ne("leading"),d=ne("breakpoint"),m=ne("container"),g=ne("spacing"),p=ne("radius"),v=ne("shadow"),x=ne("inset-shadow"),S=ne("text-shadow"),j=ne("drop-shadow"),E=ne("blur"),z=ne("perspective"),_=ne("aspect"),q=ne("ease"),H=ne("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...Q(),I,$],ut=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],k=()=>[I,$,g],lt=()=>[ra,"full","auto",...k()],at=()=>[rn,"none","subgrid",I,$],ct=()=>["auto",{span:["full",rn,I,$]},rn,I,$],ft=()=>[rn,"auto",I,$],Zt=()=>["auto","min","max","fr",I,$],zt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Mt=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...k()],K=()=>[ra,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],F=()=>[ra,"screen","full","dvw","lvw","svw","min","max","fit",...k()],dt=()=>[ra,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],Z=()=>[a,I,$],A=()=>[...Q(),dg,fg,{position:[I,$]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",E2,x2,{size:[I,$]}],W=()=>[Sc,Vs,Oa],it=()=>["","none","full",p,I,$],ot=()=>["",yt,Vs,Oa],wt=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],gt=()=>[yt,Sc,dg,fg],_n=()=>["","none",E,I,$],mn=()=>["none",yt,I,$],Ln=()=>["none",yt,I,$],Ga=()=>[yt,I,$],ke=()=>[ra,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[On],breakpoint:[On],color:[Fy],container:[On],"drop-shadow":[On],ease:["in","out","in-out"],font:[v2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[On],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[On],shadow:[On],spacing:["px",yt],text:[On],"text-shadow":[On],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ra,$,I,_]}],container:["container"],"container-type":[{"@container":["","normal","size",I,$]}],"container-named":[b2],columns:[{columns:[yt,$,I,m]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:ut()}],"overflow-x":[{"overflow-x":ut()}],"overflow-y":[{"overflow-y":ut()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:lt()}],"inset-x":[{"inset-x":lt()}],"inset-y":[{"inset-y":lt()}],start:[{"inset-s":lt(),start:lt()}],end:[{"inset-e":lt(),end:lt()}],"inset-bs":[{"inset-bs":lt()}],"inset-be":[{"inset-be":lt()}],top:[{top:lt()}],right:[{right:lt()}],bottom:[{bottom:lt()}],left:[{left:lt()}],visibility:["visible","invisible","collapse"],z:[{z:[rn,"auto",I,$]}],basis:[{basis:[ra,"full","auto",m,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[yt,ra,"auto","initial","none",$]}],grow:[{grow:["",yt,I,$]}],shrink:[{shrink:["",yt,I,$]}],order:[{order:[rn,"first","last","none",I,$]}],"grid-cols":[{"grid-cols":at()}],"col-start-end":[{col:ct()}],"col-start":[{"col-start":ft()}],"col-end":[{"col-end":ft()}],"grid-rows":[{"grid-rows":at()}],"row-start-end":[{row:ct()}],"row-start":[{"row-start":ft()}],"row-end":[{"row-end":ft()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Zt()}],"auto-rows":[{"auto-rows":Zt()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...zt(),"normal"]}],"justify-items":[{"justify-items":[...Mt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Mt()]}],"align-content":[{content:["normal",...zt()]}],"align-items":[{items:[...Mt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Mt(),{baseline:["","last"]}]}],"place-content":[{"place-content":zt()}],"place-items":[{"place-items":[...Mt(),"baseline"]}],"place-self":[{"place-self":["auto",...Mt()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...dt()]}],"min-block-size":[{"min-block":["auto",...dt()]}],"max-block-size":[{"max-block":["none",...dt()]}],w:[{w:[m,"screen",...K()]}],"min-w":[{"min-w":[m,"screen","none",...K()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",l,Vs,Oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,j2,S2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sc,$]}],"font-family":[{font:[w2,T2,i]}],"font-features":[{"font-features":[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,I,$]}],"line-clamp":[{"line-clamp":[yt,"none",I,cg]}],leading:[{leading:[f,...k()]}],"list-image":[{"list-image":["none",I,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...wt(),"wavy"]}],"text-decoration-thickness":[{decoration:[yt,"from-font","auto",I,Oa]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[yt,"auto",I,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[rn,I,$]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rn,I,$],radial:["",I,$],conic:[rn,I,$]},M2,A2]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:it()}],"rounded-s":[{"rounded-s":it()}],"rounded-e":[{"rounded-e":it()}],"rounded-t":[{"rounded-t":it()}],"rounded-r":[{"rounded-r":it()}],"rounded-b":[{"rounded-b":it()}],"rounded-l":[{"rounded-l":it()}],"rounded-ss":[{"rounded-ss":it()}],"rounded-se":[{"rounded-se":it()}],"rounded-ee":[{"rounded-ee":it()}],"rounded-es":[{"rounded-es":it()}],"rounded-tl":[{"rounded-tl":it()}],"rounded-tr":[{"rounded-tr":it()}],"rounded-br":[{"rounded-br":it()}],"rounded-bl":[{"rounded-bl":it()}],"border-w":[{border:ot()}],"border-w-x":[{"border-x":ot()}],"border-w-y":[{"border-y":ot()}],"border-w-s":[{"border-s":ot()}],"border-w-e":[{"border-e":ot()}],"border-w-bs":[{"border-bs":ot()}],"border-w-be":[{"border-be":ot()}],"border-w-t":[{"border-t":ot()}],"border-w-r":[{"border-r":ot()}],"border-w-b":[{"border-b":ot()}],"border-w-l":[{"border-l":ot()}],"divide-x":[{"divide-x":ot()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ot()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...wt(),"hidden","none"]}],"divide-style":[{divide:[...wt(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-bs":[{"border-bs":Z()}],"border-color-be":[{"border-be":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...wt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[yt,I,$]}],"outline-w":[{outline:["",yt,Vs,Oa]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",v,vo,yo]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",x,vo,yo]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:ot()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[yt,Oa]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":ot()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",S,vo,yo]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[yt,I,$]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[yt]}],"mask-image-linear-from-pos":[{"mask-linear-from":gt()}],"mask-image-linear-to-pos":[{"mask-linear-to":gt()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":gt()}],"mask-image-t-to-pos":[{"mask-t-to":gt()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":gt()}],"mask-image-r-to-pos":[{"mask-r-to":gt()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":gt()}],"mask-image-b-to-pos":[{"mask-b-to":gt()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":gt()}],"mask-image-l-to-pos":[{"mask-l-to":gt()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":gt()}],"mask-image-x-to-pos":[{"mask-x-to":gt()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":gt()}],"mask-image-y-to-pos":[{"mask-y-to":gt()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[I,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":gt()}],"mask-image-radial-to-pos":[{"mask-radial-to":gt()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Q()}],"mask-image-conic-pos":[{"mask-conic":[yt]}],"mask-image-conic-from-pos":[{"mask-conic-from":gt()}],"mask-image-conic-to-pos":[{"mask-conic-to":gt()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,$]}],filter:[{filter:["","none",I,$]}],blur:[{blur:_n()}],brightness:[{brightness:[yt,I,$]}],contrast:[{contrast:[yt,I,$]}],"drop-shadow":[{"drop-shadow":["","none",j,vo,yo]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",yt,I,$]}],"hue-rotate":[{"hue-rotate":[yt,I,$]}],invert:[{invert:["",yt,I,$]}],saturate:[{saturate:[yt,I,$]}],sepia:[{sepia:["",yt,I,$]}],"backdrop-filter":[{"backdrop-filter":["","none",I,$]}],"backdrop-blur":[{"backdrop-blur":_n()}],"backdrop-brightness":[{"backdrop-brightness":[yt,I,$]}],"backdrop-contrast":[{"backdrop-contrast":[yt,I,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",yt,I,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[yt,I,$]}],"backdrop-invert":[{"backdrop-invert":["",yt,I,$]}],"backdrop-opacity":[{"backdrop-opacity":[yt,I,$]}],"backdrop-saturate":[{"backdrop-saturate":[yt,I,$]}],"backdrop-sepia":[{"backdrop-sepia":["",yt,I,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",I,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[yt,"initial",I,$]}],ease:[{ease:["linear","initial",q,I,$]}],delay:[{delay:[yt,I,$]}],animate:[{animate:["none",H,I,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,I,$]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:mn()}],"rotate-x":[{"rotate-x":mn()}],"rotate-y":[{"rotate-y":mn()}],"rotate-z":[{"rotate-z":mn()}],scale:[{scale:Ln()}],"scale-x":[{"scale-x":Ln()}],"scale-y":[{"scale-y":Ln()}],"scale-z":[{"scale-z":Ln()}],"scale-3d":["scale-3d"],skew:[{skew:Ga()}],"skew-x":[{"skew-x":Ga()}],"skew-y":[{"skew-y":Ga()}],transform:[{transform:[I,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],zoom:[{zoom:[rn,I,$]}],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I,$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Z()}],"scrollbar-track-color":[{"scrollbar-track":Z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I,$]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[yt,Vs,Oa,cg]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},z2=o2(N2);function vt(...a){return z2(Ys(a))}const D2=qy("inline-flex h-9 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent px-3 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border-border bg-background hover:bg-muted",ghost:"hover:bg-muted",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},size:{default:"h-9 px-3",sm:"h-8 px-2.5 text-xs",icon:"size-9 p-0"}},defaultVariants:{variant:"default",size:"default"}});function Gt({className:a,variant:i,size:l,...o}){return y.jsx("button",{className:vt(D2({variant:i,size:l,className:a})),...o})}const a0=L.createContext({});function R2(a){const i=L.useRef(null);return i.current===null&&(i.current=a()),i.current}const O2=typeof window<"u",V2=O2?L.useLayoutEffect:L.useEffect,bf=L.createContext(null);function xf(a,i){a.indexOf(i)===-1&&a.push(i)}function Lo(a,i){const l=a.indexOf(i);l>-1&&a.splice(l,1)}const hn=(a,i,l)=>l>i?i:l<a?a:l;let Sf=()=>{};const fa={},i0=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function s0(a){return typeof a=="object"&&a!==null}const l0=a=>/^0[^.\s]+$/u.test(a);function o0(a){let i;return()=>(i===void 0&&(i=a()),i)}const Fe=a=>a,_2=(a,i)=>l=>i(a(l)),Fs=(...a)=>a.reduce(_2),Xs=(a,i,l)=>{const o=i-a;return o===0?1:(l-a)/o};class Tf{constructor(){this.subscriptions=[]}add(i){return xf(this.subscriptions,i),()=>Lo(this.subscriptions,i)}notify(i,l,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,l,o);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(i,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=a=>a*1e3,Je=a=>a/1e3;function r0(a,i){return i?a*(1e3/i):0}const u0=(a,i,l)=>(((1-3*l+3*i)*a+(3*l-6*i))*a+3*i)*a,L2=1e-7,k2=12;function B2(a,i,l,o,c){let f,d,m=0;do d=i+(l-i)/2,f=u0(d,o,c)-a,f>0?l=d:i=d;while(Math.abs(f)>L2&&++m<k2);return d}function Ps(a,i,l,o){if(a===i&&l===o)return Fe;const c=f=>B2(f,0,1,a,l);return f=>f===0||f===1?f:u0(c(f),i,o)}const c0=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,f0=a=>i=>1-a(1-i),d0=Ps(.33,1.53,.69,.99),Af=f0(d0),h0=c0(Af),m0=a=>a>=1?1:(a*=2)<1?.5*Af(a):.5*(2-Math.pow(2,-10*(a-1))),wf=a=>1-Math.sin(Math.acos(a)),p0=f0(wf),g0=c0(wf),U2=Ps(.42,0,1,1),H2=Ps(0,0,.58,1),y0=Ps(.42,0,.58,1),G2=a=>Array.isArray(a)&&typeof a[0]!="number",v0=a=>Array.isArray(a)&&typeof a[0]=="number",q2={linear:Fe,easeIn:U2,easeInOut:y0,easeOut:H2,circIn:wf,circInOut:g0,circOut:p0,backIn:Af,backInOut:h0,backOut:d0,anticipate:m0},Y2=a=>typeof a=="string",hg=a=>{if(v0(a)){Sf(a.length===4);const[i,l,o,c]=a;return Ps(i,l,o,c)}else if(Y2(a))return q2[a];return a},bo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function X2(a,i){let l=new Set,o=new Set,c=!1,f=!1;const d=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function g(v){d.has(v)&&(p.schedule(v),a()),v(m)}const p={schedule:(v,x=!1,S=!1)=>{const E=S&&c?l:o;return x&&d.add(v),E.add(v),v},cancel:v=>{o.delete(v),d.delete(v)},process:v=>{if(m=v,c){f=!0;return}c=!0;const x=l;l=o,o=x,l.forEach(g),l.clear(),c=!1,f&&(f=!1,p.process(v))}};return p}const Q2=40;function b0(a,i){let l=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,d=bo.reduce((Y,Q)=>(Y[Q]=X2(f),Y),{}),{setup:m,read:g,resolveKeyframes:p,preUpdate:v,update:x,preRender:S,render:j,postRender:E}=d,z=()=>{const Y=fa.useManualTiming,Q=Y?c.timestamp:performance.now();l=!1,Y||(c.delta=o?1e3/60:Math.max(Math.min(Q-c.timestamp,Q2),1)),c.timestamp=Q,c.isProcessing=!0,m.process(c),g.process(c),p.process(c),v.process(c),x.process(c),S.process(c),j.process(c),E.process(c),c.isProcessing=!1,l&&i&&(o=!1,a(z))},_=()=>{l=!0,o=!0,c.isProcessing||a(z)};return{schedule:bo.reduce((Y,Q)=>{const P=d[Q];return Y[Q]=(ut,X=!1,k=!1)=>(l||_(),P.schedule(ut,X,k)),Y},{}),cancel:Y=>{for(let Q=0;Q<bo.length;Q++)d[bo[Q]].cancel(Y)},state:c,steps:d}}const{schedule:kt,cancel:da,state:de,steps:Tc}=b0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0);let Eo;function Z2(){Eo=void 0}const ge={now:()=>(Eo===void 0&&ge.set(de.isProcessing||fa.useManualTiming?de.timestamp:performance.now()),Eo),set:a=>{Eo=a,queueMicrotask(Z2)}},x0=a=>i=>typeof i=="string"&&i.startsWith(a),S0=x0("--"),K2=x0("var(--"),Ef=a=>K2(a)?J2.test(a.split("/*")[0].trim()):!1,J2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function mg(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Li={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Qs={...Li,transform:a=>hn(0,1,a)},xo={...Li,default:1},ks=a=>Math.round(a*1e5)/1e5,Mf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function F2(a){return a==null}const P2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jf=(a,i)=>l=>!!(typeof l=="string"&&P2.test(l)&&l.startsWith(a)||i&&!F2(l)&&Object.prototype.hasOwnProperty.call(l,i)),T0=(a,i,l)=>o=>{if(typeof o!="string")return o;const[c,f,d,m]=o.match(Mf);return{[a]:parseFloat(c),[i]:parseFloat(f),[l]:parseFloat(d),alpha:m!==void 0?parseFloat(m):1}},$2=a=>hn(0,255,a),Ac={...Li,transform:a=>Math.round($2(a))},La={test:jf("rgb","red"),parse:T0("red","green","blue"),transform:({red:a,green:i,blue:l,alpha:o=1})=>"rgba("+Ac.transform(a)+", "+Ac.transform(i)+", "+Ac.transform(l)+", "+ks(Qs.transform(o))+")"};function W2(a){let i="",l="",o="",c="";return a.length>5?(i=a.substring(1,3),l=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),l=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),i+=i,l+=l,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const qc={test:jf("#"),parse:W2,transform:La.transform},$s=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),ua=$s("deg"),dn=$s("%"),et=$s("px"),I2=$s("vh"),tT=$s("vw"),pg={...dn,parse:a=>dn.parse(a)/100,transform:a=>dn.transform(a*100)},Ci={test:jf("hsl","hue"),parse:T0("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:l,alpha:o=1})=>"hsla("+Math.round(a)+", "+dn.transform(ks(i))+", "+dn.transform(ks(l))+", "+ks(Qs.transform(o))+")"},It={test:a=>La.test(a)||qc.test(a)||Ci.test(a),parse:a=>La.test(a)?La.parse(a):Ci.test(a)?Ci.parse(a):qc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?La.transform(a):Ci.transform(a),getAnimatableNone:a=>{const i=It.parse(a);return i.alpha=0,It.transform(i)}},eT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nT(a){return isNaN(a)&&typeof a=="string"&&(a.match(Mf)?.length||0)+(a.match(eT)?.length||0)>0}const A0="number",w0="color",aT="var",iT="var(",gg="${}",sT=/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 Vi(a){const i=a.toString(),l=[],o={color:[],number:[],var:[]},c=[];let f=0;const m=i.replace(sT,g=>(It.test(g)?(o.color.push(f),c.push(w0),l.push(It.parse(g))):g.startsWith(iT)?(o.var.push(f),c.push(aT),l.push(g)):(o.number.push(f),c.push(A0),l.push(parseFloat(g))),++f,gg)).split(gg);return{values:l,split:m,indexes:o,types:c}}function lT(a){return Vi(a).values}function E0({split:a,types:i}){const l=a.length;return o=>{let c="";for(let f=0;f<l;f++)if(c+=a[f],o[f]!==void 0){const d=i[f];d===A0?c+=ks(o[f]):d===w0?c+=It.transform(o[f]):c+=o[f]}return c}}function oT(a){return E0(Vi(a))}const rT=a=>typeof a=="number"?0:It.test(a)?It.getAnimatableNone(a):a,uT=(a,i)=>typeof a=="number"?i?.trim().endsWith("/")?a:0:rT(a);function cT(a){const i=Vi(a);return E0(i)(i.values.map((o,c)=>uT(o,i.split[c])))}const en={test:nT,parse:lT,createTransformer:oT,getAnimatableNone:cT};function wc(a,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(i-a)*6*l:l<1/2?i:l<2/3?a+(i-a)*(2/3-l)*6:a}function fT({hue:a,saturation:i,lightness:l,alpha:o}){a/=360,i/=100,l/=100;let c=0,f=0,d=0;if(!i)c=f=d=l;else{const m=l<.5?l*(1+i):l+i-l*i,g=2*l-m;c=wc(g,m,a+1/3),f=wc(g,m,a),d=wc(g,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:o}}function ko(a,i){return l=>l>0?i:a}const Ht=(a,i,l)=>a+(i-a)*l,Ec=(a,i,l)=>{const o=a*a,c=l*(i*i-o)+o;return c<0?0:Math.sqrt(c)},dT=[qc,La,Ci],hT=a=>dT.find(i=>i.test(a));function yg(a){const i=hT(a);if(!i)return!1;let l=i.parse(a);return i===Ci&&(l=fT(l)),l}const vg=(a,i)=>{const l=yg(a),o=yg(i);if(!l||!o)return ko(a,i);const c={...l};return f=>(c.red=Ec(l.red,o.red,f),c.green=Ec(l.green,o.green,f),c.blue=Ec(l.blue,o.blue,f),c.alpha=Ht(l.alpha,o.alpha,f),La.transform(c))},Yc=new Set(["none","hidden"]);function mT(a,i){return Yc.has(a)?l=>l<=0?a:i:l=>l>=1?i:a}function pT(a,i){return l=>Ht(a,i,l)}function Cf(a){return typeof a=="number"?pT:typeof a=="string"?Ef(a)?ko:It.test(a)?vg:vT:Array.isArray(a)?M0:typeof a=="object"?It.test(a)?vg:gT:ko}function M0(a,i){const l=[...a],o=l.length,c=a.map((f,d)=>Cf(f)(f,i[d]));return f=>{for(let d=0;d<o;d++)l[d]=c[d](f);return l}}function gT(a,i){const l={...a,...i},o={};for(const c in l)a[c]!==void 0&&i[c]!==void 0&&(o[c]=Cf(a[c])(a[c],i[c]));return c=>{for(const f in o)l[f]=o[f](c);return l}}function yT(a,i){const l=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const f=i.types[c],d=a.indexes[f][o[f]],m=a.values[d]??0;l[c]=m,o[f]++}return l}const vT=(a,i)=>{const l=en.createTransformer(i),o=Vi(a),c=Vi(i);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Yc.has(a)&&!c.values.length||Yc.has(i)&&!o.values.length?mT(a,i):Fs(M0(yT(o,c),c.values),l):ko(a,i)};function j0(a,i,l){return typeof a=="number"&&typeof i=="number"&&typeof l=="number"?Ht(a,i,l):Cf(a)(a,i)}const bT=a=>{const i=({timestamp:l})=>a(l);return{start:(l=!0)=>kt.update(i,l),stop:()=>da(i),now:()=>de.isProcessing?de.timestamp:ge.now()}},C0=(a,i,l=10)=>{let o="";const c=Math.max(Math.round(i/l),2);for(let f=0;f<c;f++)o+=Math.round(a(f/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Bo=2e4;function Nf(a){let i=0;const l=50;let o=a.next(i);for(;!o.done&&i<Bo;)i+=l,o=a.next(i);return i>=Bo?1/0:i}function xT(a,i=100,l){const o=l({...a,keyframes:[0,i]}),c=Math.min(Nf(o),Bo);return{type:"keyframes",ease:f=>o.next(c*f).value/i,duration:Je(c)}}const Qt={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 Xc(a,i){return a*Math.sqrt(1-i*i)}const ST=12;function TT(a,i,l){let o=l;for(let c=1;c<ST;c++)o=o-a(o)/i(o);return o}const Mc=.001;function AT({duration:a=Qt.duration,bounce:i=Qt.bounce,velocity:l=Qt.velocity,mass:o=Qt.mass}){let c,f,d=1-i;d=hn(Qt.minDamping,Qt.maxDamping,d),a=hn(Qt.minDuration,Qt.maxDuration,Je(a)),d<1?(c=p=>{const v=p*d,x=v*a,S=v-l,j=Xc(p,d),E=Math.exp(-x);return Mc-S/j*E},f=p=>{const x=p*d*a,S=x*l+l,j=Math.pow(d,2)*Math.pow(p,2)*a,E=Math.exp(-x),z=Xc(Math.pow(p,2),d);return(-c(p)+Mc>0?-1:1)*((S-j)*E)/z}):(c=p=>{const v=Math.exp(-p*a),x=(p-l)*a+1;return-Mc+v*x},f=p=>{const v=Math.exp(-p*a),x=(l-p)*(a*a);return v*x});const m=5/a,g=TT(c,f,m);if(a=_e(a),isNaN(g))return{stiffness:Qt.stiffness,damping:Qt.damping,duration:a};{const p=Math.pow(g,2)*o;return{stiffness:p,damping:d*2*Math.sqrt(o*p),duration:a}}}const wT=["duration","bounce"],ET=["stiffness","damping","mass"];function bg(a,i){return i.some(l=>a[l]!==void 0)}function MT(a){let i={velocity:Qt.velocity,stiffness:Qt.stiffness,damping:Qt.damping,mass:Qt.mass,isResolvedFromDuration:!1,...a};if(!bg(a,ET)&&bg(a,wT))if(i.velocity=0,a.visualDuration){const l=a.visualDuration,o=2*Math.PI/(l*1.2),c=o*o,f=2*hn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Qt.mass,stiffness:c,damping:f}}else{const l=AT({...a,velocity:0});i={...i,...l,mass:Qt.mass},i.isResolvedFromDuration=!0}return i}function Uo(a=Qt.visualDuration,i=Qt.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:c}=l;const f=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],m={done:!1,value:f},{stiffness:g,damping:p,mass:v,duration:x,velocity:S,isResolvedFromDuration:j}=MT({...l,velocity:-Je(l.velocity||0)}),E=S||0,z=p/(2*Math.sqrt(g*v)),_=d-f,q=Je(Math.sqrt(g/v)),H=Math.abs(_)<5;o||(o=H?Qt.restSpeed.granular:Qt.restSpeed.default),c||(c=H?Qt.restDelta.granular:Qt.restDelta.default);let Y,Q,P,ut,X,k;if(z<1)P=Xc(q,z),ut=(E+z*q*_)/P,Y=at=>{const ct=Math.exp(-z*q*at);return d-ct*(ut*Math.sin(P*at)+_*Math.cos(P*at))},X=z*q*ut+_*P,k=z*q*_-ut*P,Q=at=>Math.exp(-z*q*at)*(X*Math.sin(P*at)+k*Math.cos(P*at));else if(z===1){Y=ct=>d-Math.exp(-q*ct)*(_+(E+q*_)*ct);const at=E+q*_;Q=ct=>Math.exp(-q*ct)*(q*at*ct-E)}else{const at=q*Math.sqrt(z*z-1);Y=zt=>{const Mt=Math.exp(-z*q*zt),R=Math.min(at*zt,300);return d-Mt*((E+z*q*_)*Math.sinh(R)+at*_*Math.cosh(R))/at};const ct=(E+z*q*_)/at,ft=z*q*ct-_*at,Zt=z*q*_-ct*at;Q=zt=>{const Mt=Math.exp(-z*q*zt),R=Math.min(at*zt,300);return Mt*(ft*Math.sinh(R)+Zt*Math.cosh(R))}}const lt={calculatedDuration:j&&x||null,velocity:at=>_e(Q(at)),next:at=>{if(!j&&z<1){const ft=Math.exp(-z*q*at),Zt=Math.sin(P*at),zt=Math.cos(P*at),Mt=d-ft*(ut*Zt+_*zt),R=_e(ft*(X*Zt+k*zt));return m.done=Math.abs(R)<=o&&Math.abs(d-Mt)<=c,m.value=m.done?d:Mt,m}const ct=Y(at);if(j)m.done=at>=x;else{const ft=_e(Q(at));m.done=Math.abs(ft)<=o&&Math.abs(d-ct)<=c}return m.value=m.done?d:ct,m},toString:()=>{const at=Math.min(Nf(lt),Bo),ct=C0(ft=>lt.next(at*ft).value,at,30);return at+"ms "+ct},toTransition:()=>{}};return lt}Uo.applyToOptions=a=>{const i=xT(a,100,Uo);return a.ease=i.ease,a.duration=_e(i.duration),a.type="keyframes",a};const jT=5;function N0(a,i,l){const o=Math.max(i-jT,0);return r0(l-a(o),i-o)}function Qc({keyframes:a,velocity:i=0,power:l=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:m,max:g,restDelta:p=.5,restSpeed:v}){const x=a[0],S={done:!1,value:x},j=k=>m!==void 0&&k<m||g!==void 0&&k>g,E=k=>m===void 0?g:g===void 0||Math.abs(m-k)<Math.abs(g-k)?m:g;let z=l*i;const _=x+z,q=d===void 0?_:d(_);q!==_&&(z=q-x);const H=k=>-z*Math.exp(-k/o),Y=k=>q+H(k),Q=k=>{const lt=H(k),at=Y(k);S.done=Math.abs(lt)<=p,S.value=S.done?q:at};let P,ut;const X=k=>{j(S.value)&&(P=k,ut=Uo({keyframes:[S.value,E(S.value)],velocity:N0(Y,k,S.value),damping:c,stiffness:f,restDelta:p,restSpeed:v}))};return X(0),{calculatedDuration:null,next:k=>{let lt=!1;return!ut&&P===void 0&&(lt=!0,Q(k),X(k)),P!==void 0&&k>=P?ut.next(k-P):(!lt&&Q(k),S)}}}function CT(a,i,l){const o=[],c=l||fa.mix||j0,f=a.length-1;for(let d=0;d<f;d++){let m=c(a[d],a[d+1]);if(i){const g=Array.isArray(i)?i[d]||Fe:i;m=Fs(g,m)}o.push(m)}return o}function NT(a,i,{clamp:l=!0,ease:o,mixer:c}={}){const f=a.length;if(Sf(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=CT(i,o,c),g=m.length,p=v=>{if(d&&v<a[0])return i[0];let x=0;if(g>1)for(;x<a.length-2&&!(v<a[x+1]);x++);const S=Xs(a[x],a[x+1],v);return m[x](S)};return l?v=>p(hn(a[0],a[f-1],v)):p}function zT(a,i){const l=a[a.length-1];for(let o=1;o<=i;o++){const c=Xs(0,i,o);a.push(Ht(l,1,c))}}function DT(a){const i=[0];return zT(i,a.length-1),i}function RT(a,i){return a.map(l=>l*i)}function OT(a,i){return a.map(()=>i||y0).splice(0,a.length-1)}function Bs({duration:a=300,keyframes:i,times:l,ease:o="easeInOut"}){const c=G2(o)?o.map(hg):hg(o),f={done:!1,value:i[0]},d=RT(l&&l.length===i.length?l:DT(i),a),m=NT(d,i,{ease:Array.isArray(c)?c:OT(i,c)});return{calculatedDuration:a,next:g=>(f.value=m(g),f.done=g>=a,f)}}const VT=a=>a!==null;function Zo(a,{repeat:i,repeatType:l="loop"},o,c=1){const f=a.filter(VT),m=c<0||i&&l!=="loop"&&i%2===1?0:f.length-1;return!m||o===void 0?f[m]:o}const _T={decay:Qc,inertia:Qc,tween:Bs,keyframes:Bs,spring:Uo};function z0(a){typeof a.type=="string"&&(a.type=_T[a.type])}class zf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const LT=a=>a/100;class Ho extends zf{constructor(i){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=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;z0(i);const{type:l=Bs,repeat:o=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:m}=i;const g=l||Bs;g!==Bs&&typeof m[0]!="number"&&(this.mixKeyframes=Fs(LT,j0(m[0],m[1])),m=[0,100]);const p=g({...i,keyframes:m});f==="mirror"&&(this.mirroredGenerator=g({...i,keyframes:[...m].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=Nf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:o,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:m,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:x,repeatType:S,repeatDelay:j,type:E,onUpdate:z,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const q=this.currentTime-p*(this.playbackSpeed>=0?1:-1),H=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Y=this.currentTime,Q=o;if(x){const k=Math.min(this.currentTime,c)/m;let lt=Math.floor(k),at=k%1;!at&&k>=1&&(at=1),at===1&<--,lt=Math.min(lt,x+1),lt%2&&(S==="reverse"?(at=1-at,j&&(at-=j/m)):S==="mirror"&&(Q=d)),Y=hn(0,1,at)*m}let P;H?(this.delayState.value=v[0],P=this.delayState):P=Q.next(Y),f&&!H&&(P.value=f(P.value));let{done:ut}=P;!H&&g!==null&&(ut=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ut);return X&&E!==Qc&&(P.value=Zo(v,this.options,_,this.speed)),z&&z(P.value),X&&this.finish(),P}then(i,l){return this.finished.then(i,l)}get duration(){return Je(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Je(i)}get time(){return Je(this.currentTime)}set time(i){i=_e(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const l=this.generator.next(i).value;return N0(o=>this.generator.next(o).value,i,l)}get speed(){return this.playbackSpeed}set speed(i){const l=this.playbackSpeed!==i;l&&this.driver&&this.updateTime(ge.now()),this.playbackSpeed=i,l&&this.driver&&(this.time=Je(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=bT,startTime:l}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=l??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function kT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const ka=a=>a*180/Math.PI,Zc=a=>{const i=ka(Math.atan2(a[1],a[0]));return Kc(i)},BT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Zc,rotateZ:Zc,skewX:a=>ka(Math.atan(a[1])),skewY:a=>ka(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Kc=a=>(a=a%360,a<0&&(a+=360),a),xg=Zc,Sg=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Tg=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),UT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sg,scaleY:Tg,scale:a=>(Sg(a)+Tg(a))/2,rotateX:a=>Kc(ka(Math.atan2(a[6],a[5]))),rotateY:a=>Kc(ka(Math.atan2(-a[2],a[0]))),rotateZ:xg,rotate:xg,skewX:a=>ka(Math.atan(a[4])),skewY:a=>ka(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Jc(a){return a.includes("scale")?1:0}function Fc(a,i){if(!a||a==="none")return Jc(i);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(l)o=UT,c=l;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=BT,c=m}if(!c)return Jc(i);const f=o[i],d=c[1].split(",").map(GT);return typeof f=="function"?f(d):d[f]}const HT=(a,i)=>{const{transform:l="none"}=getComputedStyle(a);return Fc(l,i)};function GT(a){return parseFloat(a.trim())}const ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bi=new Set(ki),Ag=a=>a===Li||a===et,qT=new Set(["x","y","z"]),YT=ki.filter(a=>!qT.has(a));function XT(a){const i=[];return YT.forEach(l=>{const o=a.getValue(l);o!==void 0&&(i.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),i}const ca={width:({x:a},{paddingLeft:i="0",paddingRight:l="0",boxSizing:o})=>{const c=a.max-a.min;return o==="border-box"?c:c-parseFloat(i)-parseFloat(l)},height:({y:a},{paddingTop:i="0",paddingBottom:l="0",boxSizing:o})=>{const c=a.max-a.min;return o==="border-box"?c:c-parseFloat(i)-parseFloat(l)},top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Fc(i,"x"),y:(a,{transform:i})=>Fc(i,"y")};ca.translateX=ca.x;ca.translateY=ca.y;const Ba=new Set;let Pc=!1,$c=!1,Wc=!1;function D0(){if($c){const a=Array.from(Ba).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),l=new Map;i.forEach(o=>{const c=XT(o);c.length&&(l.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=l.get(o);c&&c.forEach(([f,d])=>{o.getValue(f)?.set(d)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}$c=!1,Pc=!1,Ba.forEach(a=>a.complete(Wc)),Ba.clear()}function R0(){Ba.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&($c=!0)})}function QT(){Wc=!0,R0(),D0(),Wc=!1}class Df{constructor(i,l,o,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=o,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ba.add(this),Pc||(Pc=!0,kt.read(R0),kt.resolveKeyframes(D0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:o,motionValue:c}=this;if(i[0]===null){const f=c?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(o&&l){const m=o.readValue(l,d);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}kT(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ba.delete(this)}cancel(){this.state==="scheduled"&&(Ba.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ZT=a=>a.startsWith("--");function O0(a,i,l){ZT(i)?a.style.setProperty(i,l):a.style[i]=l}const KT={};function V0(a,i){const l=o0(a);return()=>KT[i]??l()}const JT=V0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),_0=V0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ls=([a,i,l,o])=>`cubic-bezier(${a}, ${i}, ${l}, ${o})`,wg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ls([0,.65,.55,1]),circOut:Ls([.55,0,1,.45]),backIn:Ls([.31,.01,.66,-.59]),backOut:Ls([.33,1.53,.69,.99])};function L0(a,i){if(a)return typeof a=="function"?_0()?C0(a,i):"ease-out":v0(a)?Ls(a):Array.isArray(a)?a.map(l=>L0(l,i)||wg.easeOut):wg[a]}function FT(a,i,l,{delay:o=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:m="easeOut",times:g}={},p=void 0){const v={[i]:l};g&&(v.offset=g);const x=L0(m,c);Array.isArray(x)&&(v.easing=x);const S={delay:o,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(v,S)}function k0(a){return typeof a=="function"&&"applyToOptions"in a}function PT({type:a,...i}){return k0(a)&&_0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class B0 extends zf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:o,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:m,onComplete:g}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,Sf(typeof i.type!="string");const p=PT(i);this.animation=FT(l,o,c,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=Zo(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(v),O0(l,o,v),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return Je(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Je(i)}get time(){return Je(Number(this.animation.currentTime)||0)}set time(i){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_e(i),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:l,rangeEnd:o,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&JT()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),o&&(this.animation.rangeEnd=o),Fe):c(this)}}const U0={anticipate:m0,backInOut:h0,circInOut:g0};function $T(a){return a in U0}function WT(a){typeof a.ease=="string"&&$T(a.ease)&&(a.ease=U0[a.ease])}const jc=10;class IT extends B0{constructor(i){WT(i),z0(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:o,onComplete:c,element:f,...d}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const m=new Ho({...d,autoplay:!1}),g=Math.max(jc,ge.now()-this.startTime),p=hn(0,jc,g-jc),v=m.sample(g).value,{name:x}=this.options;f&&x&&O0(f,x,v),l.setWithVelocity(m.sample(Math.max(0,g-p)).value,v,p),m.stop()}}const Eg=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(en.test(a)||a==="0")&&!a.startsWith("url("));function t3(a){const i=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==i)return!0}function e3(a,i,l,o){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const f=a[a.length-1],d=Eg(c,i),m=Eg(f,i);return!d||!m?!1:t3(a)||(l==="spring"||k0(l))&&o}function Ic(a){a.duration=0,a.type="keyframes"}const H0=new Set(["opacity","clipPath","filter","transform"]),n3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function a3(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&n3.test(a[i]))return!0;return!1}const i3=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),s3=o0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function l3(a){const{motionValue:i,name:l,repeatDelay:o,repeatType:c,damping:f,type:d,keyframes:m}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:v}=i.owner.getProps();return s3()&&l&&(H0.has(l)||i3.has(l)&&a3(m))&&(l!=="transform"||!v)&&!p&&!o&&c!=="mirror"&&f!==0&&d!=="inertia"}const o3=40;class r3 extends zf{constructor({autoplay:i=!0,delay:l=0,type:o="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:m,name:g,motionValue:p,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const S={autoplay:i,delay:l,type:o,repeat:c,repeatDelay:f,repeatType:d,name:g,motionValue:p,element:v,...x},j=v?.KeyframeResolver||Df;this.keyframeResolver=new j(m,(E,z,_)=>this.onKeyframesResolved(E,z,S,!_),g,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,o,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:m,delay:g,isHandoff:p,onUpdate:v}=o;this.resolvedAt=ge.now();let x=!0;e3(i,f,d,m)||(x=!1,(fa.instantAnimations||!g)&&v?.(Zo(i,o,l)),i[0]=i[i.length-1],Ic(o),o.repeat=0);const j={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>o3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:i},E=x&&!p&&l3(j),z=j.motionValue?.owner?.current;let _;if(E)try{_=new IT({...j,element:z})}catch{_=new Ho(j)}else _=new Ho(j);_.finished.then(()=>{this.notifyFinished()}).catch(Fe),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),QT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function G0(a,i,l,o=0,c=1){const f=Array.from(a).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),d=a.size,m=(d-1)*o;return typeof l=="function"?l(f,d):c===1?f*o:m-f*o}const u3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function c3(a){const i=u3.exec(a);if(!i)return[,];const[,l,o,c]=i;return[`--${l??o}`,c]}function q0(a,i,l=1){const[o,c]=c3(a);if(!o)return;const f=window.getComputedStyle(i).getPropertyValue(o);if(f){const d=f.trim();return i0(d)?parseFloat(d):d}return Ef(c)?q0(c,i,l+1):c}const f3={type:"spring",stiffness:500,damping:25,restSpeed:10},d3=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),h3={type:"keyframes",duration:.8},m3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},p3=(a,{keyframes:i})=>i.length>2?h3:Bi.has(a)?a.startsWith("scale")?d3(i[1]):f3:m3;function Y0(a,i){if(a?.inherit&&i){const{inherit:l,...o}=a;return{...i,...o}}return a}function Rf(a,i){const l=a?.[i]??a?.default??a;return l!==a?Y0(l,a):l}const g3=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function y3(a){for(const i in a)if(!g3.has(i))return!0;return!1}const Of=(a,i,l,o={},c,f)=>d=>{const m=Rf(o,a)||{},g=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-_e(g);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:S=>{i.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{d(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:f?void 0:c};y3(m)||Object.assign(v,p3(a,v)),v.duration&&(v.duration=_e(v.duration)),v.repeatDelay&&(v.repeatDelay=_e(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Ic(v),v.delay===0&&(x=!0)),(fa.instantAnimations||fa.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,Ic(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,x&&!f&&i.get()!==void 0){const S=Zo(v.keyframes,m);if(S!==void 0){kt.update(()=>{v.onUpdate(S),v.onComplete()});return}}return m.isSync?new Ho(v):new r3(v)};function Mg(a){const i=[{},{}];return a?.values.forEach((l,o)=>{i[0][o]=l.get(),i[1][o]=l.getVelocity()}),i}function Vf(a,i,l,o){if(typeof i=="function"){const[c,f]=Mg(o);i=i(l!==void 0?l:a.custom,c,f)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,f]=Mg(o);i=i(l!==void 0?l:a.custom,c,f)}return i}function Ua(a,i,l){const o=a.getProps();return Vf(o,i,l!==void 0?l:o.custom,a)}const X0=new Set(["width","height","top","left","right","bottom",...ki]),jg=30,v3=a=>!isNaN(parseFloat(a));class b3{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ge.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=ge.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=v3(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new Tf);const o=this.events[i].add(l);return i==="change"?()=>{o(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,o){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>jg)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,jg);return r0(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(l),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _i(a,i){return new b3(a,i)}const tf=a=>Array.isArray(a);function x3(a,i,l){a.hasValue(i)?a.getValue(i).set(l):a.addValue(i,_i(l))}function S3(a){return tf(a)?a[a.length-1]||0:a}function T3(a,i){const l=Ua(a,i);let{transitionEnd:o={},transition:c={},...f}=l||{};f={...f,...o};for(const d in f){const m=S3(f[d]);x3(a,d,m)}}const he=a=>!!(a&&a.getVelocity);function A3(a){return!!(he(a)&&a.add)}function ef(a,i){const l=a.getValue("willChange");if(A3(l))return l.add(i);if(!l&&fa.WillChange){const o=new fa.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function _f(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const w3="framerAppearId",Q0="data-"+_f(w3);function Z0(a){return a.props[Q0]}function E3({protectedKeys:a,needsAnimating:i},l){const o=a.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,o}function K0(a,i,{delay:l=0,transitionOverride:o,type:c}={}){let{transition:f,transitionEnd:d,...m}=i;const g=a.getDefaultTransition();f=f?Y0(f,g):g;const p=f?.reduceMotion;o&&(f=o);const v=[],x=c&&a.animationState&&a.animationState.getState()[c];for(const S in m){const j=a.getValue(S,a.latestValues[S]??null),E=m[S];if(E===void 0||x&&E3(x,S))continue;const z={delay:l,...Rf(f||{},S)},_=j.get();if(_!==void 0&&!j.isAnimating()&&!Array.isArray(E)&&E===_&&!z.velocity){kt.update(()=>j.set(E));continue}let q=!1;if(window.MotionHandoffAnimation){const Q=Z0(a);if(Q){const P=window.MotionHandoffAnimation(Q,S,kt);P!==null&&(z.startTime=P,q=!0)}}ef(a,S);const H=p??a.shouldReduceMotion;j.start(Of(S,j,E,H&&X0.has(S)?{type:!1}:z,a,q));const Y=j.animation;Y&&v.push(Y)}if(d){const S=()=>kt.update(()=>{d&&T3(a,d)});v.length?Promise.all(v).then(S):S()}return v}function nf(a,i,l={}){const o=Ua(a,i,l.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};l.transitionOverride&&(c=l.transitionOverride);const f=o?()=>Promise.all(K0(a,o,l)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:x}=c;return M3(a,i,g,p,v,x,l)}:()=>Promise.resolve(),{when:m}=c;if(m){const[g,p]=m==="beforeChildren"?[f,d]:[d,f];return g().then(()=>p())}else return Promise.all([f(),d(l.delay)])}function M3(a,i,l=0,o=0,c=0,f=1,d){const m=[];for(const g of a.variantChildren)g.notify("AnimationStart",i),m.push(nf(g,i,{...d,delay:l+(typeof o=="function"?0:o)+G0(a.variantChildren,g,o,c,f)}).then(()=>g.notify("AnimationComplete",i)));return Promise.all(m)}function j3(a,i,l={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(f=>nf(a,f,l));o=Promise.all(c)}else if(typeof i=="string")o=nf(a,i,l);else{const c=typeof i=="function"?Ua(a,i,l.custom):i;o=Promise.all(K0(a,c,l))}return o.then(()=>{a.notify("AnimationComplete",i)})}const C3={test:a=>a==="auto",parse:a=>a},J0=a=>i=>i.test(a),F0=[Li,et,dn,ua,tT,I2,C3],Cg=a=>F0.find(J0(a));function N3(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||l0(a):!0}const z3=new Set(["brightness","contrast","saturate","opacity"]);function D3(a){const[i,l]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=l.match(Mf)||[];if(!o)return a;const c=l.replace(o,"");let f=z3.has(i)?1:0;return o!==l&&(f*=100),i+"("+f+c+")"}const R3=/\b([a-z-]*)\(.*?\)/gu,af={...en,getAnimatableNone:a=>{const i=a.match(R3);return i?i.map(D3).join(" "):a}},sf={...en,getAnimatableNone:a=>{const i=en.parse(a);return en.createTransformer(a)(i.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Ng={...Li,transform:Math.round},O3={rotate:ua,rotateX:ua,rotateY:ua,rotateZ:ua,scale:xo,scaleX:xo,scaleY:xo,scaleZ:xo,skew:ua,skewX:ua,skewY:ua,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:Qs,originX:pg,originY:pg,originZ:et},Lf={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,top:et,right:et,bottom:et,left:et,inset:et,insetBlock:et,insetBlockStart:et,insetBlockEnd:et,insetInline:et,insetInlineStart:et,insetInlineEnd:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,paddingBlock:et,paddingBlockStart:et,paddingBlockEnd:et,paddingInline:et,paddingInlineStart:et,paddingInlineEnd:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,marginBlock:et,marginBlockStart:et,marginBlockEnd:et,marginInline:et,marginInlineStart:et,marginInlineEnd:et,fontSize:et,backgroundPositionX:et,backgroundPositionY:et,...O3,zIndex:Ng,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:Ng},V3={...Lf,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:af,WebkitFilter:af,mask:sf,WebkitMask:sf},P0=a=>V3[a],_3=new Set([af,sf]);function $0(a,i){let l=P0(a);return _3.has(l)||(l=en),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const L3=new Set(["auto","none","0"]);function k3(a,i,l){let o=0,c;for(;o<a.length&&!c;){const f=a[o];typeof f=="string"&&!L3.has(f)&&Vi(f).values.length&&(c=a[o]),o++}if(c&&l)for(const f of i)a[f]=$0(l,c)}class B3 extends Df{constructor(i,l,o,c,f){super(i,l,o,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:o}=this;if(!l||!l.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let x=i[v];if(typeof x=="string"&&(x=x.trim(),Ef(x))){const S=q0(x,l.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!X0.has(o)||i.length!==2)return;const[c,f]=i,d=Cg(c),m=Cg(f),g=mg(c),p=mg(f);if(g!==p&&ca[o]){this.needsMeasurement=!0;return}if(d!==m)if(Ag(d)&&Ag(m))for(let v=0;v<i.length;v++){const x=i[v];typeof x=="string"&&(i[v]=parseFloat(x))}else ca[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||N3(i[c]))&&o.push(c);o.length&&k3(i,o,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ca[o](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const c=l[l.length-1];c!==void 0&&i.getValue(o,c).jump(c,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const c=i.getValue(l);c&&c.jump(this.measuredOrigin,!1);const f=o.length-1,d=o[f];o[f]=ca[l](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,g])=>{i.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function W0(a,i,l){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=l?.[a]??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(o=>o!=null)}const I0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function U3(a){return s0(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:kf}=b0(queueMicrotask,!1),tn={x:!1,y:!1};function tv(){return tn.x||tn.y}function H3(a){return a==="x"||a==="y"?tn[a]?null:(tn[a]=!0,()=>{tn[a]=!1}):tn.x||tn.y?null:(tn.x=tn.y=!0,()=>{tn.x=tn.y=!1})}function ev(a,i){const l=W0(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[l,c,()=>o.abort()]}function G3(a){return!(a.pointerType==="touch"||tv())}function q3(a,i,l={}){const[o,c,f]=ev(a,l);return o.forEach(d=>{let m=!1,g=!1,p;const v=()=>{d.removeEventListener("pointerleave",E)},x=_=>{p&&(p(_),p=void 0),v()},S=_=>{m=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),g&&(g=!1,x(_))},j=()=>{m=!0,window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",S,c)},E=_=>{if(_.pointerType!=="touch"){if(m){g=!0;return}x(_)}},z=_=>{if(!G3(_))return;g=!1;const q=i(d,_);typeof q=="function"&&(p=q,d.addEventListener("pointerleave",E,c))};d.addEventListener("pointerenter",z,c),d.addEventListener("pointerdown",j,c)}),f}const nv=(a,i)=>i?a===i?!0:nv(a,i.parentElement):!1,Bf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,Y3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function X3(a){return Y3.has(a.tagName)||a.isContentEditable===!0}const Q3=new Set(["INPUT","SELECT","TEXTAREA"]);function Z3(a){return Q3.has(a.tagName)||a.isContentEditable===!0}const Mo=new WeakSet;function zg(a){return i=>{i.key==="Enter"&&a(i)}}function Cc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const K3=(a,i)=>{const l=a.currentTarget;if(!l)return;const o=zg(()=>{if(Mo.has(l))return;Cc(l,"down");const c=zg(()=>{Cc(l,"up")}),f=()=>Cc(l,"cancel");l.addEventListener("keyup",c,i),l.addEventListener("blur",f,i)});l.addEventListener("keydown",o,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),i)};function Dg(a){return Bf(a)&&!tv()}const Rg=new WeakSet;function J3(a,i,l={}){const[o,c,f]=ev(a,l),d=m=>{const g=m.currentTarget;if(!Dg(m)||Rg.has(m))return;Mo.add(g),l.stopPropagation&&Rg.add(m);const p=i(g,m),v=(j,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Mo.has(g)&&Mo.delete(g),Dg(j)&&typeof p=="function"&&p(j,{success:E})},x=j=>{v(j,g===window||g===document||l.useGlobalTarget||nv(g,j.target))},S=j=>{v(j,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",S,c)};return o.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",d,c),U3(m)&&(m.addEventListener("focus",p=>K3(p,c)),!X3(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),f}function Uf(a){return s0(a)&&"ownerSVGElement"in a}const jo=new WeakMap;let Co;const av=(a,i,l)=>(o,c)=>c&&c[0]?c[0][a+"Size"]:Uf(o)&&"getBBox"in o?o.getBBox()[i]:o[l],F3=av("inline","width","offsetWidth"),P3=av("block","height","offsetHeight");function $3({target:a,borderBoxSize:i}){jo.get(a)?.forEach(l=>{l(a,{get width(){return F3(a,i)},get height(){return P3(a,i)}})})}function W3(a){a.forEach($3)}function I3(){typeof ResizeObserver>"u"||(Co=new ResizeObserver(W3))}function tA(a,i){Co||I3();const l=W0(a);return l.forEach(o=>{let c=jo.get(o);c||(c=new Set,jo.set(o,c)),c.add(i),Co?.observe(o)}),()=>{l.forEach(o=>{const c=jo.get(o);c?.delete(i),c?.size||Co?.unobserve(o)})}}const No=new Set;let Ni;function eA(){Ni=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};No.forEach(i=>i(a))},window.addEventListener("resize",Ni)}function nA(a){return No.add(a),Ni||eA(),()=>{No.delete(a),!No.size&&typeof Ni=="function"&&(window.removeEventListener("resize",Ni),Ni=void 0)}}function Og(a,i){return typeof a=="function"?nA(a):tA(a,i)}function aA(a){return Uf(a)&&a.tagName==="svg"}const iA=[...F0,It,en],sA=a=>iA.find(J0(a)),Vg=()=>({translate:0,scale:1,origin:0,originPoint:0}),zi=()=>({x:Vg(),y:Vg()}),_g=()=>({min:0,max:0}),ae=()=>({x:_g(),y:_g()}),lA=new WeakMap;function Ko(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Zs(a){return typeof a=="string"||Array.isArray(a)}const Hf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gf=["initial",...Hf];function Jo(a){return Ko(a.animate)||Gf.some(i=>Zs(a[i]))}function iv(a){return!!(Jo(a)||a.variants)}function oA(a,i,l){for(const o in i){const c=i[o],f=l[o];if(he(c))a.addValue(o,c);else if(he(f))a.addValue(o,_i(c,{owner:a}));else if(f!==c)if(a.hasValue(o)){const d=a.getValue(o);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(o);a.addValue(o,_i(d!==void 0?d:c,{owner:a}))}}for(const o in l)i[o]===void 0&&a.removeValue(o);return i}const lf={current:null},sv={current:!1},rA=typeof window<"u";function uA(){if(sv.current=!0,!!rA)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>lf.current=a.matches;a.addEventListener("change",i),i()}else lf.current=!1}const Lg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Go={};function lv(a){Go=a}function cA(){return Go}class fA{scrapeMotionValuesFromProps(i,l,o){return{}}constructor({parent:i,props:l,presenceContext:o,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:m},g={}){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=Df,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 j=ge.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,kt.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=l,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=f,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=Jo(l),this.isVariantNode=iv(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:x,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const j in S){const E=S[j];p[j]!==void 0&&he(E)&&E.set(p[j])}}mount(i){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=i,lA.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,o)=>this.bindToMotionValue(o,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(sv.current||uA(),this.shouldReduceMotion=lf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),da(this.notifyUpdate),da(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const l=this.features[i];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),l.accelerate&&H0.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:m,times:g,ease:p,duration:v}=l.accelerate,x=new B0({element:this.current,name:i,keyframes:m,times:g,ease:p,duration:_e(v)}),S=d(x);this.valueSubscriptions.set(i,()=>{S(),x.cancel()});return}const o=Bi.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&kt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{c(),f&&f(),l.owner&&l.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Go){const l=Go[i];if(!l)continue;const{isEnabled:o,Feature:c}=l;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let o=0;o<Lg.length;o++){const c=Lg[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=i[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=oA(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const o=this.values.get(i);l!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&l!==void 0&&(o=_i(l===null?void 0:l,{owner:this}),this.addValue(i,o)),o}readValue(i,l){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(i0(o)||l0(o))?o=parseFloat(o):!sA(o)&&en.test(l)&&(o=$0(i,l)),this.setBaseTarget(i,he(o)?o.get():o)),he(o)?o.get():o}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let o;if(typeof l=="string"||typeof l=="object"){const f=Vf(this.props,l,this.presenceContext?.custom);f&&(o=f[i])}if(l&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!he(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new Tf),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){kf.render(this.render)}}class ov extends fA{constructor(){super(...arguments),this.KeyframeResolver=B3}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const o=i.style;return o?o[l]:void 0}removeValueFromRenderState(i,{vars:l,style:o}){delete l[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;he(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class ma{constructor(i){this.isMounted=!1,this.node=i}update(){}}function rv({top:a,left:i,right:l,bottom:o}){return{x:{min:i,max:l},y:{min:a,max:o}}}function dA({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function hA(a,i){if(!i)return a;const l=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:o.y,right:o.x}}function Nc(a){return a===void 0||a===1}function of({scale:a,scaleX:i,scaleY:l}){return!Nc(a)||!Nc(i)||!Nc(l)}function _a(a){return of(a)||uv(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function uv(a){return kg(a.x)||kg(a.y)}function kg(a){return a&&a!=="0%"}function qo(a,i,l){const o=a-l,c=i*o;return l+c}function Bg(a,i,l,o,c){return c!==void 0&&(a=qo(a,c,o)),qo(a,l,o)+i}function rf(a,i=0,l=1,o,c){a.min=Bg(a.min,i,l,o,c),a.max=Bg(a.max,i,l,o,c)}function cv(a,{x:i,y:l}){rf(a.x,i.translate,i.scale,i.originPoint),rf(a.y,l.translate,l.scale,l.originPoint)}const Ug=.999999999999,Hg=1.0000000000001;function mA(a,i,l,o=!1){const c=l.length;if(!c)return;i.x=i.y=1;let f,d;for(let m=0;m<c;m++){f=l[m],d=f.projectionDelta;const{visualElement:g}=f.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(cn(a.x,-f.scroll.offset.x),cn(a.y,-f.scroll.offset.y)),d&&(i.x*=d.x.scale,i.y*=d.y.scale,cv(a,d)),o&&_a(f.latestValues)&&zo(a,f.latestValues,f.layout?.layoutBox))}i.x<Hg&&i.x>Ug&&(i.x=1),i.y<Hg&&i.y>Ug&&(i.y=1)}function cn(a,i){a.min+=i,a.max+=i}function Gg(a,i,l,o,c=.5){const f=Ht(a.min,a.max,c);rf(a,i,l,f,o)}function qg(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function zo(a,i,l){const o=l??a;Gg(a.x,qg(i.x,o.x),i.scaleX,i.scale,i.originX),Gg(a.y,qg(i.y,o.y),i.scaleY,i.scale,i.originY)}function fv(a,i){return rv(hA(a.getBoundingClientRect(),i))}function pA(a,i,l){const o=fv(a,l),{scroll:c}=i;return c&&(cn(o.x,c.offset.x),cn(o.y,c.offset.y)),o}const gA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yA=ki.length;function vA(a,i,l){let o="",c=!0;for(let f=0;f<yA;f++){const d=ki[f],m=a[d];if(m===void 0)continue;let g=!0;if(typeof m=="number")g=m===(d.startsWith("scale")?1:0);else{const p=parseFloat(m);g=d.startsWith("scale")?p===1:p===0}if(!g||l){const p=I0(m,Lf[d]);if(!g){c=!1;const v=gA[d]||d;o+=`${v}(${p}) `}l&&(i[d]=p)}}return o=o.trim(),l?o=l(i,c?"":o):c&&(o="none"),o}function qf(a,i,l){const{style:o,vars:c,transformOrigin:f}=a;let d=!1,m=!1;for(const g in i){const p=i[g];if(Bi.has(g)){d=!0;continue}else if(S0(g)){c[g]=p;continue}else{const v=I0(p,Lf[g]);g.startsWith("origin")?(m=!0,f[g]=v):o[g]=v}}if(i.transform||(d||l?o.transform=vA(i,a.transform,l):o.transform&&(o.transform="none")),m){const{originX:g="50%",originY:p="50%",originZ:v=0}=f;o.transformOrigin=`${g} ${p} ${v}`}}function dv(a,{style:i,vars:l},o,c){const f=a.style;let d;for(d in i)f[d]=i[d];c?.applyProjectionStyles(f,o);for(d in l)f.setProperty(d,l[d])}function Yg(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const _s={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(et.test(a))a=parseFloat(a);else return a;const l=Yg(a,i.target.x),o=Yg(a,i.target.y);return`${l}% ${o}%`}},bA={correct:(a,{treeScale:i,projectionDelta:l})=>{const o=a,c=en.parse(a);if(c.length>5)return o;const f=en.createTransformer(a),d=typeof c[0]!="number"?1:0,m=l.x.scale*i.x,g=l.y.scale*i.y;c[0+d]/=m,c[1+d]/=g;const p=Ht(m,g,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),f(c)}},uf={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:bA};function hv(a,{layout:i,layoutId:l}){return Bi.has(a)||a.startsWith("origin")||(i||l!==void 0)&&(!!uf[a]||a==="opacity")}function Yf(a,i,l){const o=a.style,c=i?.style,f={};if(!o)return f;for(const d in o)(he(o[d])||c&&he(c[d])||hv(d,a)||l?.getValue(d)?.liveStyle!==void 0)&&(f[d]=o[d]);return f}function xA(a){return window.getComputedStyle(a)}class SA extends ov{constructor(){super(...arguments),this.type="html",this.renderInstance=dv}readValueFromInstance(i,l){if(Bi.has(l))return this.projection?.isProjecting?Jc(l):HT(i,l);{const o=xA(i),c=(S0(l)?o.getPropertyValue(l):o[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return fv(i,l)}build(i,l,o){qf(i,l,o.transformTemplate)}scrapeMotionValuesFromProps(i,l,o){return Yf(i,l,o)}}const TA={offset:"stroke-dashoffset",array:"stroke-dasharray"},AA={offset:"strokeDashoffset",array:"strokeDasharray"};function wA(a,i,l=1,o=0,c=!0){a.pathLength=1;const f=c?TA:AA;a[f.offset]=`${-o}`,a[f.array]=`${i} ${l}`}const EA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function mv(a,{attrX:i,attrY:l,attrScale:o,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...m},g,p,v){if(qf(a,m,p),g){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:S}=a;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const j of EA)x[j]!==void 0&&(S[j]=x[j],delete x[j]);i!==void 0&&(x.x=i),l!==void 0&&(x.y=l),o!==void 0&&(x.scale=o),c!==void 0&&wA(x,c,f,d,!1)}const pv=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"]),gv=a=>typeof a=="string"&&a.toLowerCase()==="svg";function MA(a,i,l,o){dv(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(pv.has(c)?c:_f(c),i.attrs[c])}function yv(a,i,l){const o=Yf(a,i,l);for(const c in a)if(he(a[c])||he(i[c])){const f=ki.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[f]=a[c]}return o}class jA extends ov{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Bi.has(l)){const o=P0(l);return o&&o.default||0}return l=pv.has(l)?l:_f(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,o){return yv(i,l,o)}build(i,l,o){mv(i,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,l,o,c){MA(i,l,o,c)}mount(i){this.isSVGTag=gv(i.tagName),super.mount(i)}}const CA=Gf.length;function vv(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?vv(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const i={};for(let l=0;l<CA;l++){const o=Gf[l],c=a.props[o];(Zs(c)||c===!1)&&(i[o]=c)}return i}function bv(a,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==a.length)return!1;for(let o=0;o<l;o++)if(i[o]!==a[o])return!1;return!0}const NA=[...Hf].reverse(),zA=Hf.length;function DA(a){return i=>Promise.all(i.map(({animation:l,options:o})=>j3(a,l,o)))}function RA(a){let i=DA(a),l=Xg(),o=!0,c=!1;const f=p=>(v,x)=>{const S=Ua(a,x,p==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:j,transitionEnd:E,...z}=S;v={...v,...z,...E}}return v};function d(p){i=p(a)}function m(p){const{props:v}=a,x=vv(a.parent)||{},S=[],j=new Set;let E={},z=1/0;for(let q=0;q<zA;q++){const H=NA[q],Y=l[H],Q=v[H]!==void 0?v[H]:x[H],P=Zs(Q),ut=H===p?Y.isActive:null;ut===!1&&(z=q);let X=Q===x[H]&&Q!==v[H]&&P;if(X&&(o||c)&&a.manuallyAnimateOnMount&&(X=!1),Y.protectedKeys={...E},!Y.isActive&&ut===null||!Q&&!Y.prevProp||Ko(Q)||typeof Q=="boolean")continue;if(H==="exit"&&Y.isActive&&ut!==!0){Y.prevResolvedValues&&(E={...E,...Y.prevResolvedValues});continue}const k=OA(Y.prevProp,Q);let lt=k||H===p&&Y.isActive&&!X&&P||q>z&&P,at=!1;const ct=Array.isArray(Q)?Q:[Q];let ft=ct.reduce(f(H),{});ut===!1&&(ft={});const{prevResolvedValues:Zt={}}=Y,zt={...Zt,...ft},Mt=F=>{lt=!0,j.has(F)&&(at=!0,j.delete(F)),Y.needsAnimating[F]=!0;const dt=a.getValue(F);dt&&(dt.liveStyle=!1)};for(const F in zt){const dt=ft[F],Z=Zt[F];if(E.hasOwnProperty(F))continue;let A=!1;tf(dt)&&tf(Z)?A=!bv(dt,Z):A=dt!==Z,A?dt!=null?Mt(F):j.add(F):dt!==void 0&&j.has(F)?Mt(F):Y.protectedKeys[F]=!0}Y.prevProp=Q,Y.prevResolvedValues=ft,Y.isActive&&(E={...E,...ft}),(o||c)&&a.blockInitialAnimation&&(lt=!1);const R=X&&k;lt&&(!R||at)&&S.push(...ct.map(F=>{const dt={type:H};if(typeof F=="string"&&(o||c)&&!R&&a.manuallyAnimateOnMount&&a.parent){const{parent:Z}=a,A=Ua(Z,F);if(Z.enteringChildren&&A){const{delayChildren:U}=A.transition||{};dt.delay=G0(Z.enteringChildren,a,U)}}return{animation:F,options:dt}}))}if(j.size){const q={};if(typeof v.initial!="boolean"){const H=Ua(a,Array.isArray(v.initial)?v.initial[0]:v.initial);H&&H.transition&&(q.transition=H.transition)}j.forEach(H=>{const Y=a.getBaseTarget(H),Q=a.getValue(H);Q&&(Q.liveStyle=!0),q[H]=Y??null}),S.push({animation:q})}let _=!!S.length;return o&&(v.initial===!1||v.initial===v.animate)&&!a.manuallyAnimateOnMount&&(_=!1),o=!1,c=!1,_?i(S):Promise.resolve()}function g(p,v){if(l[p].isActive===v)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(p,v)),l[p].isActive=v;const x=m(p);for(const S in l)l[S].protectedKeys={};return x}return{animateChanges:m,setActive:g,setAnimateFunction:d,getState:()=>l,reset:()=>{l=Xg(),c=!0}}}function OA(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!bv(i,a):!1}function Va(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xg(){return{animate:Va(!0),whileInView:Va(),whileHover:Va(),whileTap:Va(),whileDrag:Va(),whileFocus:Va(),exit:Va()}}function cf(a,i){a.min=i.min,a.max=i.max}function Ie(a,i){cf(a.x,i.x),cf(a.y,i.y)}function Qg(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const xv=1e-4,VA=1-xv,_A=1+xv,Sv=.01,LA=0-Sv,kA=0+Sv;function ye(a){return a.max-a.min}function BA(a,i,l){return Math.abs(a-i)<=l}function Zg(a,i,l,o=.5){a.origin=o,a.originPoint=Ht(i.min,i.max,a.origin),a.scale=ye(l)/ye(i),a.translate=Ht(l.min,l.max,a.origin)-a.originPoint,(a.scale>=VA&&a.scale<=_A||isNaN(a.scale))&&(a.scale=1),(a.translate>=LA&&a.translate<=kA||isNaN(a.translate))&&(a.translate=0)}function Us(a,i,l,o){Zg(a.x,i.x,l.x,o?o.originX:void 0),Zg(a.y,i.y,l.y,o?o.originY:void 0)}function Kg(a,i,l,o=0){const c=o?Ht(l.min,l.max,o):l.min;a.min=c+i.min,a.max=a.min+ye(i)}function UA(a,i,l,o){Kg(a.x,i.x,l.x,o?.x),Kg(a.y,i.y,l.y,o?.y)}function Jg(a,i,l,o=0){const c=o?Ht(l.min,l.max,o):l.min;a.min=i.min-c,a.max=a.min+ye(i)}function Yo(a,i,l,o){Jg(a.x,i.x,l.x,o?.x),Jg(a.y,i.y,l.y,o?.y)}function Fg(a,i,l,o,c){return a-=i,a=qo(a,1/l,o),c!==void 0&&(a=qo(a,1/c,o)),a}function HA(a,i=0,l=1,o=.5,c,f=a,d=a){if(dn.test(i)&&(i=parseFloat(i),i=Ht(d.min,d.max,i/100)-d.min),typeof i!="number")return;let m=Ht(f.min,f.max,o);a===f&&(m-=i),a.min=Fg(a.min,i,l,m,c),a.max=Fg(a.max,i,l,m,c)}function Pg(a,i,[l,o,c],f,d){HA(a,i[l],i[o],i[c],i.scale,f,d)}const GA=["x","scaleX","originX"],qA=["y","scaleY","originY"];function $g(a,i,l,o){Pg(a.x,i,GA,l?l.x:void 0,o?o.x:void 0),Pg(a.y,i,qA,l?l.y:void 0,o?o.y:void 0)}function Wg(a){return a.translate===0&&a.scale===1}function Tv(a){return Wg(a.x)&&Wg(a.y)}function Ig(a,i){return a.min===i.min&&a.max===i.max}function YA(a,i){return Ig(a.x,i.x)&&Ig(a.y,i.y)}function ty(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function Av(a,i){return ty(a.x,i.x)&&ty(a.y,i.y)}function ey(a){return ye(a.x)/ye(a.y)}function ny(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function un(a){return[a("x"),a("y")]}function XA(a,i,l){let o="";const c=a.x.translate/i.x,f=a.y.translate/i.y,d=l?.z||0;if((c||f||d)&&(o=`translate3d(${c}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:v,rotateX:x,rotateY:S,skewX:j,skewY:E}=l;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),x&&(o+=`rotateX(${x}deg) `),S&&(o+=`rotateY(${S}deg) `),j&&(o+=`skewX(${j}deg) `),E&&(o+=`skewY(${E}deg) `)}const m=a.x.scale*i.x,g=a.y.scale*i.y;return(m!==1||g!==1)&&(o+=`scale(${m}, ${g})`),o||"none"}const wv=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],QA=wv.length,ay=a=>typeof a=="string"?parseFloat(a):a,iy=a=>typeof a=="number"||et.test(a);function ZA(a,i,l,o,c,f){c?(a.opacity=Ht(0,l.opacity??1,KA(o)),a.opacityExit=Ht(i.opacity??1,0,JA(o))):f&&(a.opacity=Ht(i.opacity??1,l.opacity??1,o));for(let d=0;d<QA;d++){const m=wv[d];let g=sy(i,m),p=sy(l,m);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||iy(g)===iy(p)?(a[m]=Math.max(Ht(ay(g),ay(p),o),0),(dn.test(p)||dn.test(g))&&(a[m]+="%")):a[m]=p}(i.rotate||l.rotate)&&(a.rotate=Ht(i.rotate||0,l.rotate||0,o))}function sy(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const KA=Ev(0,.5,p0),JA=Ev(.5,.95,Fe);function Ev(a,i,l){return o=>o<a?0:o>i?1:l(Xs(a,i,o))}function FA(a,i,l){const o=he(a)?a:_i(a);return o.start(Of("",o,i,l)),o.animation}function Ks(a,i,l,o={passive:!0}){return a.addEventListener(i,l,o),()=>a.removeEventListener(i,l)}const PA=(a,i)=>a.depth-i.depth;class $A{constructor(){this.children=[],this.isDirty=!1}add(i){xf(this.children,i),this.isDirty=!0}remove(i){Lo(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(PA),this.isDirty=!1,this.children.forEach(i)}}function WA(a,i){const l=ge.now(),o=({timestamp:c})=>{const f=c-l;f>=i&&(da(o),a(f-i))};return kt.setup(o,!0),()=>da(o)}function Do(a){return he(a)?a.get():a}class IA{constructor(){this.members=[]}add(i){xf(this.members,i);for(let l=this.members.length-1;l>=0;l--){const o=this.members[l];if(o===i||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(Lo(this.members,o),o.unmount())}i.scheduleRender()}remove(i){if(Lo(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){for(let l=this.members.indexOf(i)-1;l>=0;l--){const o=this.members[l];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(i,l){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.updateSnapshot(),i.scheduleRender();const{layoutDependency:c}=o.options,{layoutDependency:f}=i.options;(c===void 0||c!==f)&&(i.resumeFrom=o,l&&(o.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root?.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{i.options.onExitComplete?.(),i.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Ro={hasAnimatedSinceResize:!0,hasEverUpdated:!1},zc=["","X","Y","Z"],tw=1e3;let ew=0;function Dc(a,i,l,o){const{latestValues:c}=i;c[a]&&(l[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function Mv(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const l=Z0(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",kt,!(c||f))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&Mv(o)}function jv({attachResizeListener:a,defaultParent:i,measureScroll:l,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(d={},m=i?.()){this.id=ew++,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(iw),this.nodes.forEach(cw),this.nodes.forEach(fw),this.nodes.forEach(sw)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new $A)}addEventListener(d,m){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Tf),this.eventHandlers.get(d).add(m)}notifyListeners(d,...m){const g=this.eventHandlers.get(d);g&&g.notify(...m)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Uf(d)&&!aA(d),this.instance=d;const{layoutId:m,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||m)&&(this.isLayoutDirty=!0),a){let v,x=0;const S=()=>this.root.updateBlockedByResize=!1;kt.read(()=>{x=window.innerWidth}),a(d,()=>{const j=window.innerWidth;j!==x&&(x=j,this.root.updateBlockedByResize=!0,v&&v(),v=WA(S,250),Ro.hasAnimatedSinceResize&&(Ro.hasAnimatedSinceResize=!1,this.nodes.forEach(ry)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||p.getDefaultTransition()||gw,{onLayoutAnimationStart:z,onLayoutAnimationComplete:_}=p.getProps(),q=!this.targetLayout||!Av(this.targetLayout,j),H=!x&&S;if(this.options.layoutRoot||this.resumeFrom||H||x&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={...Rf(E,"layout"),onPlay:z,onComplete:_};(p.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(v,H)}else x||ry(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),da(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(dw),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:m,layout:g}=this.options;if(m===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(ow),this.nodes.forEach(ly);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(oy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rw),this.nodes.forEach(uw),this.nodes.forEach(nw),this.nodes.forEach(aw)):this.nodes.forEach(oy),this.clearAllSnapshots();const m=ge.now();de.delta=hn(0,1e3/60,m-de.timestamp),de.timestamp=m,de.isProcessing=!0,Tc.update.process(de),Tc.preRender.process(de),Tc.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lw),this.sharedNodes.forEach(hw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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 g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ae()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(m=!1),m&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!Tv(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;d&&this.instance&&(m||_a(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const m=this.measurePageBox();let g=this.removeElementScroll(m);return d&&(g=this.removeTransform(g)),yw(g),{animationId:this.root.animationId,measuredBox:m,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return ae();const m=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vw))){const{scroll:p}=this.root;p&&(cn(m.x,p.offset.x),cn(m.y,p.offset.y))}return m}removeElementScroll(d){const m=ae();if(Ie(m,d),this.scroll?.wasRoot)return m;for(let g=0;g<this.path.length;g++){const p=this.path[g],{scroll:v,options:x}=p;p!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&Ie(m,d),cn(m.x,v.offset.x),cn(m.y,v.offset.y))}return m}applyTransform(d,m=!1,g){const p=g||ae();Ie(p,d);for(let v=0;v<this.path.length;v++){const x=this.path[v];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(cn(p.x,-x.scroll.offset.x),cn(p.y,-x.scroll.offset.y)),_a(x.latestValues)&&zo(p,x.latestValues,x.layout?.layoutBox)}return _a(this.latestValues)&&zo(p,this.latestValues,this.layout?.layoutBox),p}removeTransform(d){const m=ae();Ie(m,d);for(let g=0;g<this.path.length;g++){const p=this.path[g];if(!_a(p.latestValues))continue;let v;p.instance&&(of(p.latestValues)&&p.updateSnapshot(),v=ae(),Ie(v,p.measurePageBox())),$g(m,p.latestValues,p.snapshot?.layoutBox,v)}return _a(this.latestValues)&&$g(m,this.latestValues),m}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=de.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=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),UA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ie(this.target,this.layout.layoutBox),cv(this.target,this.targetDelta)):Ie(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||of(this.parent.latestValues)||uv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,m,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Yo(this.relativeTargetOrigin,m,g,this.options.layoutAnchor||void 0),Ie(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),m=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===de.timestamp&&(g=!1),g)return;const{layout:p,layoutId:v}=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||v))return;Ie(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;mA(this.layoutCorrected,this.treeScale,this.path,m),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=ae());const{target:j}=d;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qg(this.prevProjectionDelta.x,this.projectionDelta.x),Qg(this.prevProjectionDelta.y,this.projectionDelta.y)),Us(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!ny(this.projectionDelta.x,this.prevProjectionDelta.x)||!ny(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zi(),this.projectionDelta=zi(),this.projectionDeltaWithTransform=zi()}setAnimationOrigin(d,m=!1){const g=this.snapshot,p=g?g.latestValues:{},v={...this.latestValues},x=zi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const S=ae(),j=g?g.source:void 0,E=this.layout?this.layout.source:void 0,z=j!==E,_=this.getStack(),q=!_||_.members.length<=1,H=!!(z&&!q&&this.options.crossfade===!0&&!this.path.some(pw));this.animationProgress=0;let Y;this.mixTargetDelta=Q=>{const P=Q/1e3;uy(x.x,d.x,P),uy(x.y,d.y,P),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),mw(this.relativeTarget,this.relativeTargetOrigin,S,P),Y&&YA(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=ae()),Ie(Y,this.relativeTarget)),z&&(this.animationValues=v,ZA(v,p,this.latestValues,P,H,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(da(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{Ro.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_i(0)),this.motionValue.jump(0,!1),this.currentAnimation=FA(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),d.onUpdate&&d.onUpdate(m)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:m,target:g,layout:p,latestValues:v}=d;if(!(!m||!g||!p)){if(this!==d&&this.layout&&p&&Cv(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||ae();const x=ye(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+x;const S=ye(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+S}Ie(m,g),zo(m,v),Us(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(d,m){this.sharedNodes.has(d)||this.sharedNodes.set(d,new IA),this.sharedNodes.get(d).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:m,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let m=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(m=!0),!m)return;const p={};g.z&&Dc("z",d,p,this.animationValues);for(let v=0;v<zc.length;v++)Dc(`rotate${zc[v]}`,d,p,this.animationValues),Dc(`skew${zc[v]}`,d,p,this.animationValues);d.render();for(const v in p)d.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);d.scheduleRender()}applyProjectionStyles(d,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Do(m?.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Do(m?.pointerEvents)||""),this.hasProjected&&!_a(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=XA(this.projectionDeltaWithTransform,this.treeScale,v);g&&(x=g(v,x)),d.transform=x;const{x:S,y:j}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${j.origin*100}% 0`,p.animationValues?d.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in uf){if(v[E]===void 0)continue;const{correct:z,applyTo:_,isCSSVariable:q}=uf[E],H=x==="none"?v[E]:z(v[E],p);if(_){const Y=_.length;for(let Q=0;Q<Y;Q++)d[_[Q]]=H}else q?this.options.visualElement.renderState.vars[E]=H:d[E]=H}this.options.layoutId&&(d.pointerEvents=p===this?Do(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(ly),this.root.sharedNodes.clear()}}}function nw(a){a.updateLayout()}function aw(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:o}=a.layout,{animationType:c}=a.options,f=i.source!==a.layout.source;if(c==="size")un(v=>{const x=f?i.measuredBox[v]:i.layoutBox[v],S=ye(x);x.min=l[v].min,x.max=x.min+S});else if(c==="x"||c==="y"){const v=c==="x"?"y":"x";cf(f?i.measuredBox[v]:i.layoutBox[v],l[v])}else Cv(c,i.layoutBox,l)&&un(v=>{const x=f?i.measuredBox[v]:i.layoutBox[v],S=ye(l[v]);x.max=x.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+S)});const d=zi();Us(d,l,i.layoutBox);const m=zi();f?Us(m,a.applyTransform(o,!0),i.measuredBox):Us(m,l,i.layoutBox);const g=!Tv(d);let p=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:S}=v;if(x&&S){const j=a.options.layoutAnchor||void 0,E=ae();Yo(E,i.layoutBox,x.layoutBox,j);const z=ae();Yo(z,l,S.layoutBox,j),Av(E,z)||(p=!0),v.options.layoutRoot&&(a.relativeTarget=z,a.relativeTargetOrigin=E,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:m,layoutDelta:d,hasLayoutChanged:g,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function iw(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function sw(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function lw(a){a.clearSnapshot()}function ly(a){a.clearMeasurements()}function ow(a){a.isLayoutDirty=!0,a.updateLayout()}function oy(a){a.isLayoutDirty=!1}function rw(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function uw(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function ry(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function cw(a){a.resolveTargetDelta()}function fw(a){a.calcProjection()}function dw(a){a.resetSkewAndRotation()}function hw(a){a.removeLeadSnapshot()}function uy(a,i,l){a.translate=Ht(i.translate,0,l),a.scale=Ht(i.scale,1,l),a.origin=i.origin,a.originPoint=i.originPoint}function cy(a,i,l,o){a.min=Ht(i.min,l.min,o),a.max=Ht(i.max,l.max,o)}function mw(a,i,l,o){cy(a.x,i.x,l.x,o),cy(a.y,i.y,l.y,o)}function pw(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const gw={duration:.45,ease:[.4,0,.1,1]},fy=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),dy=fy("applewebkit/")&&!fy("chrome/")?Math.round:Fe;function hy(a){a.min=dy(a.min),a.max=dy(a.max)}function yw(a){hy(a.x),hy(a.y)}function Cv(a,i,l){return a==="position"||a==="preserve-aspect"&&!BA(ey(i),ey(l),.2)}function vw(a){return a!==a.root&&a.scroll?.wasRoot}const bw=jv({attachResizeListener:(a,i)=>Ks(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Rc={current:void 0},Nv=jv({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Rc.current){const a=new bw({});a.mount(window),a.setOptions({layoutScroll:!0}),Rc.current=a}return Rc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),zv=L.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function xw(a=!0){const i=L.useContext(bf);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:c}=i,f=L.useId();L.useEffect(()=>{if(a)return c(f)},[a]);const d=L.useCallback(()=>a&&o&&o(f),[f,o,a]);return!l&&o?[!1,d]:[!0]}const Dv=L.createContext({strict:!1}),my={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 py=!1;function Sw(){if(py)return;const a={};for(const i in my)a[i]={isEnabled:l=>my[i].some(o=>!!l[o])};lv(a),py=!0}function Rv(){return Sw(),cA()}function Tw(a){const i=Rv();for(const l in a)i[l]={...i[l],...a[l]};lv(i)}const Aw=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 Xo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Aw.has(a)}let Ov=a=>!Xo(a);function ww(a){typeof a=="function"&&(Ov=i=>i.startsWith("on")?!Xo(i):a(i))}try{ww(require("@emotion/is-prop-valid").default)}catch{}function Ew(a,i,l){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||he(a[c])||(Ov(c)||l===!0&&Xo(c)||!i&&!Xo(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const Fo=L.createContext({});function Mw(a,i){if(Jo(a)){const{initial:l,animate:o}=a;return{initial:l===!1||Zs(l)?l:void 0,animate:Zs(o)?o:void 0}}return a.inherit!==!1?i:{}}function jw(a){const{initial:i,animate:l}=Mw(a,L.useContext(Fo));return L.useMemo(()=>({initial:i,animate:l}),[gy(i),gy(l)])}function gy(a){return Array.isArray(a)?a.join(" "):a}const Xf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vv(a,i,l){for(const o in i)!he(i[o])&&!hv(o,l)&&(a[o]=i[o])}function Cw({transformTemplate:a},i){return L.useMemo(()=>{const l=Xf();return qf(l,i,a),Object.assign({},l.vars,l.style)},[i])}function Nw(a,i){const l=a.style||{},o={};return Vv(o,l,a),Object.assign(o,Cw(a,i)),o}function zw(a,i){const l={},o=Nw(a,i);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=o,l}const _v=()=>({...Xf(),attrs:{}});function Dw(a,i,l,o){const c=L.useMemo(()=>{const f=_v();return mv(f,i,gv(o),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[i]);if(a.style){const f={};Vv(f,a.style,a),c.style={...f,...c.style}}return c}const Rw=["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 Qf(a){return typeof a!="string"||a.includes("-")?!1:!!(Rw.indexOf(a)>-1||/[A-Z]/u.test(a))}function Ow(a,i,l,{latestValues:o},c,f=!1,d){const g=(d??Qf(a)?Dw:zw)(i,o,c,a),p=Ew(i,typeof a=="string",f),v=a!==L.Fragment?{...p,...g,ref:l}:{},{children:x}=i,S=L.useMemo(()=>he(x)?x.get():x,[x]);return L.createElement(a,{...v,children:S})}function Vw({scrapeMotionValuesFromProps:a,createRenderState:i},l,o,c){return{latestValues:_w(l,o,c,a),renderState:i()}}function _w(a,i,l,o){const c={},f=o(a,{});for(const S in f)c[S]=Do(f[S]);let{initial:d,animate:m}=a;const g=Jo(a),p=iv(a);i&&p&&!g&&a.inherit!==!1&&(d===void 0&&(d=i.initial),m===void 0&&(m=i.animate));let v=l?l.initial===!1:!1;v=v||d===!1;const x=v?m:d;if(x&&typeof x!="boolean"&&!Ko(x)){const S=Array.isArray(x)?x:[x];for(let j=0;j<S.length;j++){const E=Vf(a,S[j]);if(E){const{transitionEnd:z,transition:_,...q}=E;for(const H in q){let Y=q[H];if(Array.isArray(Y)){const Q=v?Y.length-1:0;Y=Y[Q]}Y!==null&&(c[H]=Y)}for(const H in z)c[H]=z[H]}}}return c}const Lv=a=>(i,l)=>{const o=L.useContext(Fo),c=L.useContext(bf),f=()=>Vw(a,i,o,c);return l?f():R2(f)},Lw=Lv({scrapeMotionValuesFromProps:Yf,createRenderState:Xf}),kw=Lv({scrapeMotionValuesFromProps:yv,createRenderState:_v}),Bw=Symbol.for("motionComponentSymbol");function Uw(a,i,l){const o=L.useRef(l);L.useInsertionEffect(()=>{o.current=l});const c=L.useRef(null);return L.useCallback(f=>{f&&a.onMount?.(f);const d=o.current;if(typeof d=="function")if(f){const m=d(f);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f);i&&(f?i.mount(f):i.unmount())},[i])}const kv=L.createContext({});function Mi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function Hw(a,i,l,o,c,f){const{visualElement:d}=L.useContext(Fo),m=L.useContext(Dv),g=L.useContext(bf),p=L.useContext(zv),v=p.reducedMotion,x=p.skipAnimations,S=L.useRef(null),j=L.useRef(!1);o=o||m.renderer,!S.current&&o&&(S.current=o(a,{visualState:i,parent:d,props:l,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:f}),j.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const E=S.current,z=L.useContext(kv);E&&!E.projection&&c&&(E.type==="html"||E.type==="svg")&&Gw(S.current,l,c,z);const _=L.useRef(!1);L.useInsertionEffect(()=>{E&&_.current&&E.update(l,g)});const q=l[Q0],H=L.useRef(!!q&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(q)&&window.MotionHasOptimisedAnimation?.(q));return V2(()=>{j.current=!0,E&&(_.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),H.current&&E.animationState&&E.animationState.animateChanges())}),L.useEffect(()=>{E&&(!H.current&&E.animationState&&E.animationState.animateChanges(),H.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(q)}),H.current=!1),E.enteringChildren=void 0)}),E}function Gw(a,i,l,o){const{layoutId:c,layout:f,drag:d,dragConstraints:m,layoutScroll:g,layoutRoot:p,layoutAnchor:v,layoutCrossfade:x}=i;a.projection=new l(a.latestValues,i["data-framer-portal-id"]?void 0:Bv(a.parent)),a.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||m&&Mi(m),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:x,layoutScroll:g,layoutRoot:p,layoutAnchor:v})}function Bv(a){if(a)return a.options.allowProjection!==!1?a.projection:Bv(a.parent)}function Oc(a,{forwardMotionProps:i=!1,type:l}={},o,c){o&&Tw(o);const f=l?l==="svg":Qf(a),d=f?kw:Lw;function m(p,v){let x;const S={...L.useContext(zv),...p,layoutId:qw(p)},{isStatic:j}=S,E=jw(p),z=d(p,j);if(!j&&typeof window<"u"){Yw();const _=Xw(S);x=_.MeasureLayout,E.visualElement=Hw(a,z,S,c,_.ProjectionNode,f)}return y.jsxs(Fo.Provider,{value:E,children:[x&&E.visualElement?y.jsx(x,{visualElement:E.visualElement,...S}):null,Ow(a,p,Uw(z,E.visualElement,v),z,j,i,f)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const g=L.forwardRef(m);return g[Bw]=a,g}function qw({layoutId:a}){const i=L.useContext(a0).id;return i&&a!==void 0?i+"-"+a:a}function Yw(a,i){L.useContext(Dv).strict}function Xw(a){const i=Rv(),{drag:l,layout:o}=i;if(!l&&!o)return{};const c={...l,...o};return{MeasureLayout:l?.isEnabled(a)||o?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function Qw(a,i){if(typeof Proxy>"u")return Oc;const l=new Map,o=(f,d)=>Oc(f,d,a,i),c=(f,d)=>o(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?o:(l.has(d)||l.set(d,Oc(d,void 0,a,i)),l.get(d))})}const Zw=(a,i)=>i.isSVG??Qf(a)?new jA(i):new SA(i,{allowProjection:a!==L.Fragment});class Kw extends ma{constructor(i){super(i),i.animationState||(i.animationState=RA(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Ko(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Jw=0;class Fw extends ma{constructor(){super(...arguments),this.id=Jw++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;if(i&&o===!1){if(this.isExitComplete){const{initial:f,custom:d}=this.node.getProps();if(typeof f=="string"){const m=Ua(this.node,f,d);if(m){const{transition:g,transitionEnd:p,...v}=m;for(const x in v)this.node.getValue(x)?.jump(v[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!i);l&&!i&&c.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const Pw={animation:{Feature:Kw},exit:{Feature:Fw}};function Ws(a){return{point:{x:a.pageX,y:a.pageY}}}const $w=a=>i=>Bf(i)&&a(i,Ws(i));function Hs(a,i,l,o){return Ks(a,i,$w(l),o)}const Uv=({current:a})=>a?a.ownerDocument.defaultView:null,yy=(a,i)=>Math.abs(a-i);function Ww(a,i){const l=yy(a.x,i.x),o=yy(a.y,i.y);return Math.sqrt(l**2+o**2)}const vy=new Set(["auto","scroll"]);class Hv{constructor(i,l,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:m}={}){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=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=So(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Vc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,z=Ww(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!z)return;const{point:_}=j,{timestamp:q}=de;this.history.push({..._,timestamp:q});const{onStart:H,onMove:Y}=this.handlers;E||(H&&H(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,j)},this.handlePointerMove=(j,E)=>{this.lastMoveEvent=j,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=So(E,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(j,E)=>{this.end();const{onEnd:z,onSessionEnd:_,resumeAnimation:q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&q&&q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const H=Vc(j.type==="pointercancel"?this.lastMoveEventInfo:So(E,this.transformPagePoint),this.history);this.startEvent&&z&&z(j,H),_&&_(j,H)},!Bf(i))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=c||window;const g=Ws(i),p=So(g,this.transformPagePoint),{point:v}=p,{timestamp:x}=de;this.history=[{...v,timestamp:x}];const{onSessionStart:S}=l;S&&S(i,Vc(p,this.history)),this.removeListeners=Fs(Hs(this.contextWindow,"pointermove",this.handlePointerMove),Hs(this.contextWindow,"pointerup",this.handlePointerUp),Hs(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let l=i.parentElement;for(;l;){const o=getComputedStyle(l);(vy.has(o.overflowX)||vy.has(o.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const l=this.scrollPositions.get(i);if(!l)return;const o=i===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:c.x-l.x,y:c.y-l.y};f.x===0&&f.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,c),kt.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),da(this.updatePoint)}}function So(a,i){return i?{point:i(a.point)}:a}function by(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Vc({point:a},i){return{point:a,delta:by(a,Gv(i)),offset:by(a,Iw(i)),velocity:tE(i,.1)}}function Iw(a){return a[0]}function Gv(a){return a[a.length-1]}function tE(a,i){if(a.length<2)return{x:0,y:0};let l=a.length-1,o=null;const c=Gv(a);for(;l>=0&&(o=a[l],!(c.timestamp-o.timestamp>_e(i)));)l--;if(!o)return{x:0,y:0};o===a[0]&&a.length>2&&c.timestamp-o.timestamp>_e(i)*2&&(o=a[1]);const f=Je(c.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-o.x)/f,y:(c.y-o.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function eE(a,{min:i,max:l},o){return i!==void 0&&a<i?a=o?Ht(i,a,o.min):Math.max(a,i):l!==void 0&&a>l&&(a=o?Ht(l,a,o.max):Math.min(a,l)),a}function xy(a,i,l){return{min:i!==void 0?a.min+i:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function nE(a,{top:i,left:l,bottom:o,right:c}){return{x:xy(a.x,l,c),y:xy(a.y,i,o)}}function Sy(a,i){let l=i.min-a.min,o=i.max-a.max;return i.max-i.min<a.max-a.min&&([l,o]=[o,l]),{min:l,max:o}}function aE(a,i){return{x:Sy(a.x,i.x),y:Sy(a.y,i.y)}}function iE(a,i){let l=.5;const o=ye(a),c=ye(i);return c>o?l=Xs(i.min,i.max-o,a.min):o>c&&(l=Xs(a.min,a.max-c,i.min)),hn(0,1,l)}function sE(a,i){const l={};return i.min!==void 0&&(l.min=i.min-a.min),i.max!==void 0&&(l.max=i.max-a.min),l}const ff=.35;function lE(a=ff){return a===!1?a=0:a===!0&&(a=ff),{x:Ty(a,"left","right"),y:Ty(a,"top","bottom")}}function Ty(a,i,l){return{min:Ay(a,i),max:Ay(a,l)}}function Ay(a,i){return typeof a=="number"?a:a[i]||0}const oE=new WeakMap;class rE{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=x=>{l&&this.snapToCursor(Ws(x).point),this.stopAnimation()},d=(x,S)=>{const{drag:j,dragPropagation:E,onDragStart:z}=this.getProps();if(j&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=H3(j),!this.openDragLock))return;this.latestPointerEvent=x,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),un(q=>{let H=this.getAxisMotionValue(q).get()||0;if(dn.test(H)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const Q=Y.layout.layoutBox[q];Q&&(H=ye(Q)*(parseFloat(H)/100))}}this.originPoint[q]=H}),z&&kt.update(()=>z(x,S),!1,!0),ef(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},m=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:j,dragDirectionLock:E,onDirectionLock:z,onDrag:_}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:q}=S;if(E&&this.currentDirection===null){this.currentDirection=cE(q),this.currentDirection!==null&&z&&z(this.currentDirection);return}this.updateAxis("x",S.point,q),this.updateAxis("y",S.point,q),this.visualElement.render(),_&&kt.update(()=>_(x,S),!1,!0)},g=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Hv(i,{onSessionStart:f,onStart:d,onMove:m,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Uv(this.visualElement),element:this.visualElement.current})}stop(i,l){const o=i||this.latestPointerEvent,c=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!o)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:m}=this.getProps();m&&kt.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,o){const{drag:c}=this.getProps();if(!o||!To(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(d=eE(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&Mi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=nE(o.layoutBox,i):this.constraints=!1,this.elastic=lE(l),c!==this.constraints&&!Mi(i)&&o&&this.constraints&&!this.hasMutatedConstraints&&un(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=sE(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Mi(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=pA(o,c.root,this.visualElement.getTransformPagePoint());let d=aE(c.layout.layoutBox,f);if(l){const m=l(dA(d));this.hasMutatedConstraints=!!m,m&&(d=rv(m))}return d}startAnimation(i){const{drag:l,dragMomentum:o,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:m}=this.getProps(),g=this.constraints||{},p=un(v=>{if(!To(v,l,this.currentDirection))return;let x=g&&g[v]||{};(d===!0||d===v)&&(x={min:0,max:0});const S=c?200:1e6,j=c?40:1e7,E={type:"inertia",velocity:o?i[v]:0,bounceStiffness:S,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...f,...x};return this.startAxisValueAnimation(v,E)});return Promise.all(p).then(m)}startAxisValueAnimation(i,l){const o=this.getAxisMotionValue(i);return ef(this.visualElement,i),o.start(Of(i,o,0,l,this.visualElement,!1))}stopAnimation(){un(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),c=o[l];return c||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){un(l=>{const{drag:o}=this.getProps();if(!To(l,o,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(l);if(c&&c.layout){const{min:d,max:m}=c.layout.layoutBox[l],g=f.get()||0;f.set(i[l]-Ht(d,m,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!Mi(l)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};un(d=>{const m=this.getAxisMotionValue(d);if(m&&this.constraints!==!1){const g=m.get();c[d]=iE({min:g,max:g},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),un(d=>{if(!To(d,i,null))return;const m=this.getAxisMotionValue(d),{min:g,max:p}=this.constraints[d];m.set(Ht(g,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;oE.set(this.visualElement,this);const i=this.visualElement.current,l=Hs(i,"pointerdown",p=>{const{drag:v,dragListener:x=!0}=this.getProps(),S=p.target,j=S!==i&&Z3(S);v&&x&&!j&&this.start(p)});let o;const c=()=>{const{dragConstraints:p}=this.getProps();Mi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),o||(o=uE(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",c);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),kt.read(c);const m=Ks(window,"resize",()=>this.scalePositionWithinConstraints()),g=f.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(un(x=>{const S=this.getAxisMotionValue(x);S&&(this.originPoint[x]+=p[x].translate,S.set(S.get()+p[x].translate))}),this.visualElement.render())}));return()=>{m(),l(),d(),g&&g(),o&&o()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=ff,dragMomentum:m=!0}=i;return{...i,drag:l,dragDirectionLock:o,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:m}}}function wy(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function uE(a,i,l){const o=Og(a,wy(l)),c=Og(i,wy(l));return()=>{o(),c()}}function To(a,i,l){return(i===!0||i===a)&&(l===null||l===a)}function cE(a,i=10){let l=null;return Math.abs(a.y)>i?l="y":Math.abs(a.x)>i&&(l="x"),l}class fE extends ma{constructor(i){super(i),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new rE(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}update(){const{dragControls:i}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};i!==l&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const _c=a=>(i,l)=>{a&&kt.update(()=>a(i,l),!1,!0)};class dE extends ma{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(i){this.session=new Hv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Uv(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:_c(i),onStart:_c(l),onMove:_c(o),onEnd:(f,d)=>{delete this.session,c&&kt.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=Hs(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Lc=!1;class hE extends L.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o,layoutId:c}=this.props,{projection:f}=i;f&&(l.group&&l.group.add(f),o&&o.register&&c&&o.register(f),Lc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ro.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:o,drag:c,isPresent:f}=this.props,{projection:d}=o;return d&&(d.isPresent=f,i.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),Lc=!0,c||i.layoutDependency!==l||l===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||kt.postRender(()=>{const m=d.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:l}=this.props,{projection:o}=i;o&&(o.options.layoutAnchor=l,o.root.didUpdate(),kf.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:c}=i;Lc=!0,c&&(c.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function qv(a){const[i,l]=xw(),o=L.useContext(a0);return y.jsx(hE,{...a,layoutGroup:o,switchLayoutGroup:L.useContext(kv),isPresent:i,safeToRemove:l})}const mE={pan:{Feature:dE},drag:{Feature:fE,ProjectionNode:Nv,MeasureLayout:qv}};function Ey(a,i,l){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,f=o[c];f&&kt.postRender(()=>f(i,Ws(i)))}class pE extends ma{mount(){const{current:i}=this.node;i&&(this.unmount=q3(i,(l,o)=>(Ey(this.node,o,"Start"),c=>Ey(this.node,c,"End"))))}unmount(){}}class gE extends ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Fs(Ks(this.node.current,"focus",()=>this.onFocus()),Ks(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function My(a,i,l){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",l==="Start");const c="onTap"+(l==="End"?"":l),f=o[c];f&&kt.postRender(()=>f(i,Ws(i)))}class yE extends ma{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:o}=this.node.props;this.unmount=J3(i,(c,f)=>(My(this.node,f,"Start"),(d,{success:m})=>My(this.node,d,m?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:o?.tap===!1})}unmount(){}}const df=new WeakMap,kc=new WeakMap,vE=a=>{const i=df.get(a.target);i&&i(a)},bE=a=>{a.forEach(vE)};function xE({root:a,...i}){const l=a||document;kc.has(l)||kc.set(l,{});const o=kc.get(l),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(bE,{root:a,...i})),o[c]}function SE(a,i,l){const o=xE(i);return df.set(a,l),o.observe(a),()=>{df.delete(a),o.unobserve(a)}}const TE={some:0,all:1};class AE extends ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:i={}}=this.node.getProps(),{root:l,margin:o,amount:c="some",once:f}=i,d={root:l?l.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:TE[c]},m=g=>{const{isIntersecting:p}=g;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),S=p?v:x;S&&S(g)};this.stopObserver=SE(this.node.current,d,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(wE(i,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function wE({viewport:a={}},{viewport:i={}}={}){return l=>a[l]!==i[l]}const EE={inView:{Feature:AE},tap:{Feature:yE},focus:{Feature:gE},hover:{Feature:pE}},ME={layout:{ProjectionNode:Nv,MeasureLayout:qv}},jE={...Pw,...EE,...mE,...ME},Bc=Qw(jE,Zw),Le=({label:a,children:i,variant:l="primary",size:o="medium",icon:c,onClick:f,removable:d=!1,className:m,maxWidth:g,appearance:p,onRemove:v,isLoading:x=!1})=>{const S=CE(l),j=p??(l==="outline"?"outline":"solid"),E=a??i,z=!!f,_={primary:{solid:"bg-[#11111198] text-white border border-transparent",outline:"border-2 border-[#11111198] text-[#11111198]",subtle:"bg-[#11111140] text-[#11111198] border border-transparent"},secondary:{solid:"bg-zinc-700 text-white border border-transparent",outline:"border-2 border-zinc-400 text-zinc-800 bg-white",subtle:"bg-zinc-100 text-zinc-800 border border-zinc-300"},success:{solid:"bg-emerald-600 text-white border border-transparent",outline:"border-2 border-emerald-600 text-emerald-700",subtle:"bg-emerald-100 text-emerald-700 border border-transparent"},warning:{solid:"bg-amber-500 text-white border border-transparent",outline:"border-2 border-amber-500 text-amber-700",subtle:"bg-amber-100 text-amber-700 border border-transparent"},error:{solid:"bg-destructive text-destructive-foreground border border-transparent",outline:"border-2 border-destructive text-destructive",subtle:"bg-destructive/20 text-destructive border border-transparent"}},q={small:"text-xs px-2 py-1",medium:"text-xs px-2.5 py-1",large:"text-sm px-3 py-1.5"},H=Q=>{Q.stopPropagation(),f?.()},Y=Q=>{Q.stopPropagation(),v?.()};return y.jsxs(Bc.div,{initial:{opacity:0,scale:.95,y:8,filter:"blur(8px)"},animate:{opacity:1,scale:1,y:0,filter:"blur(0px)"},transition:{duration:.32,ease:"easeInOut",type:"spring"},whileHover:{scale:z?1.04:1,backgroundColor:z&&S==="primary"?"#111111d1":void 0,transition:{duration:.2,ease:"easeInOut",type:"spring"}},onClick:H,style:{maxWidth:g},className:vt("inline-flex max-w-full items-center gap-1.5 rounded-lg font-medium shadow-[0_0_16px_rgba(0,0,0,0.14)] backdrop-blur-sm",_[S][j],q[o],z&&"cursor-pointer",m),children:[x?y.jsx(Bc.div,{animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},className:"flex-shrink-0",children:y.jsx(_y,{className:"size-3.5"})}):c&&y.jsx("span",{className:"flex-shrink-0",children:c}),y.jsx("span",{className:"min-w-0 truncate",children:E}),d&&y.jsx(Bc.button,{initial:{opacity:0,scale:.95,filter:"blur(8px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},whileHover:{scale:1.1,opacity:1,transition:{duration:.2,ease:"easeInOut",type:"spring"}},className:"flex items-center justify-center rounded-md bg-[#11111198] p-1 opacity-70 hover:opacity-100",onClick:Y,type:"button",children:y.jsx(gf,{className:"size-3.5"})})]})};function CE(a){return a==="danger"?"error":a==="default"||a==="outline"?"primary":a}const NE=qy("rounded-lg border p-4 text-sm",{variants:{variant:{default:"border-border bg-card text-card-foreground",muted:"border-border bg-muted text-muted-foreground",destructive:"border-red-200 bg-red-50 text-red-700"}},defaultVariants:{variant:"default"}});function nn({className:a,variant:i,...l}){return y.jsx("div",{className:vt(NE({variant:i,className:a})),...l})}function Di({className:a,...i}){return y.jsx("div",{className:vt("rounded-lg border border-border bg-card text-card-foreground",a),...i})}function Gs({className:a,...i}){return y.jsx("div",{className:vt("grid gap-1.5 p-4",a),...i})}function qs({className:a,...i}){return y.jsx("h3",{className:vt("text-sm font-semibold tracking-tight",a),...i})}function Oo({className:a,...i}){return y.jsx("p",{className:vt("text-sm text-muted-foreground",a),...i})}function Ri({className:a,...i}){return y.jsx("div",{className:vt("p-4 pt-0",a),...i})}function fn({className:a,type:i,...l}){return y.jsx("input",{type:i,className:vt("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),...l})}function ji({className:a,...i}){return y.jsx("label",{className:vt("grid gap-1.5 text-xs font-medium text-muted-foreground",a),...i})}const zE=[{animationDelay:"-1.2s",transform:"rotate(.0001deg) translate(146%)"},{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},{animationDelay:"-1.0s",transform:"rotate(60deg) translate(146%)"},{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}],DE=({size:a=20,color:i="#8f8f8f"})=>y.jsx("div",{style:{width:a,height:a},children:y.jsx("div",{className:"relative left-1/2 top-1/2",style:{width:a,height:a},children:zE.map(l=>y.jsx("div",{className:"absolute -left-[10%] -top-[3.9%] h-[8%] w-[24%] animate-fade-spin rounded-[5px]",style:{backgroundColor:i,...l}},l.transform))})}),RE=[{tiny:"px-1.5 h-6 text-sm",small:"px-1.5 h-8 text-sm",medium:"px-2.5 h-10 text-sm",large:"px-3.5 h-12 text-base"},{tiny:"w-6 h-6 text-sm",small:"w-8 h-8 text-sm",medium:"w-10 h-10 text-sm",large:"w-12 h-12 text-base"}],OE={primary:"bg-gray-1000 hover:bg-gray-1000-h text-background-100 fill-background-100",secondary:"bg-background-100 hover:bg-gray-alpha-200 text-gray-1000 fill-gray-1000 border border-gray-alpha-400",tertiary:"bg-none hover:bg-gray-alpha-200 text-gray-1000 fill-gray-1000",error:"bg-red-800 hover:bg-red-900 text-white fill-white",warning:"bg-amber-800 hover:bg-amber-850 text-black fill-black"},VE={square:{tiny:"rounded",small:"rounded-md",medium:"rounded-md",large:"rounded-lg"},circle:{tiny:"rounded-[100%]",small:"rounded-[100%]",medium:"rounded-[100%]",large:"rounded-[100%]"},rounded:{tiny:"rounded-[100px]",small:"rounded-[100px]",medium:"rounded-[100px]",large:"rounded-[100px]"}},Ao=({size:a="medium",type:i="primary",variant:l="styled",shape:o="square",svgOnly:c=!1,children:f,prefix:d,suffix:m,shadow:g=!1,loading:p=!1,disabled:v=!1,fullWidth:x=!1,className:S,...j})=>y.jsxs("button",{disabled:v,tabIndex:0,className:Ys("flex items-center justify-center gap-0.5 duration-150",RE[+c][a],v||p?"cursor-not-allowed border border-gray-400 bg-gray-100 text-gray-700":OE[i],VE[o][a],g&&"shadow-border-small border-none",x&&"w-full",l==="unstyled"?"h-fit bg-transparent px-0 text-gray-1000 outline-none hover:bg-transparent":"focus:shadow-focus-ring focus:outline-0",S),type:"button",...j,children:[p?y.jsx(DE,{size:a==="large"?24:16}):d,y.jsx("span",{className:Ys("relative overflow-hidden overflow-ellipsis whitespace-nowrap font-sans",a!=="tiny"&&l!=="unstyled"&&"px-1.5"),children:f}),!p&&m]}),_E=({className:a})=>y.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:a,children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z"})}),LE=()=>y.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:"fill-gray-1000",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z"})});let Uc=null,kE=0;const te={toasts:[],listeners:new Set,add(a,i,l,o,c,f){const d=kE++,m={id:d,text:a,preserve:l,action:o,onAction:c,onUndoAction:f,type:i};if(!m.preserve){m.remaining=3e3,m.start=Date.now();const g=()=>{this.toasts=this.toasts.filter(p=>p.id!==d),this.notify()};m.timeout=setTimeout(g,m.remaining),m.pause=()=>{m.timeout&&(clearTimeout(m.timeout),m.timeout=void 0,m.remaining-=Date.now()-m.start)},m.resume=()=>{m.timeout||(m.start=Date.now(),m.timeout=setTimeout(g,m.remaining))}}this.toasts.push(m),this.notify()},remove(a){te.toasts=te.toasts.filter(i=>i.id!==a),te.notify()},subscribe(a){return te.listeners.add(a),()=>{te.listeners.delete(a)}},notify(){te.listeners.forEach(a=>a())}},BE=()=>{const[a,i]=L.useState([]),[l,o]=L.useState([]),[c,f]=L.useState(!1),d=E=>z=>{z&&E.measuredHeight==null&&(E.measuredHeight=z.getBoundingClientRect().height,te.notify())};L.useEffect(()=>(i([...te.toasts]),te.subscribe(()=>{i([...te.toasts])})),[]),L.useEffect(()=>{const E=a.filter(z=>!l.includes(z.id)).map(z=>z.id);E.length>0&&requestAnimationFrame(()=>{o(z=>[...z,...E])})},[l,a]);const g=Math.max(0,a.length-3),p=(E,z)=>{if(E===z-1)return"none";const _=z-1-E;let q=a[z-1]?.measuredHeight||63;for(let Q=z-1;Q>E;Q--)c?q+=(a[Q-1]?.measuredHeight||63)+10:q+=20;const H=-_,Y=c?1:1-.05*_;return`translate3d(0, calc(100% - ${q}px), ${H}px) scale(${Y})`},v=()=>{f(!0),te.toasts.forEach(E=>E.pause?.())},x=()=>{f(!1),te.toasts.forEach(E=>E.resume?.())},j=a.slice(g).reduce((E,z)=>E+(z.measuredHeight??63),0);return y.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[9999] w-[min(420px,calc(100vw-2rem))]",style:{height:j},children:y.jsx("div",{className:"pointer-events-auto relative w-full",style:{height:j},onMouseEnter:v,onMouseLeave:x,children:a.map((E,z)=>{const _=z>=g;return y.jsx("div",{ref:d(E),className:Ys("absolute bottom-0 right-0 h-fit rounded-xl p-4 leading-[21px] shadow-menu",{message:"bg-geist-background text-gray-1000",success:"bg-blue-700 text-contrast-fg",warning:"bg-amber-800 text-gray-1000 dark:text-gray-100",error:"bg-red-800 text-contrast-fg"}[E.type],_?"opacity-100":"opacity-0",z<g&&"pointer-events-none"),style:{width:"100%",transition:"all .35s cubic-bezier(.25,.75,.6,.98)",transform:l.includes(E.id)?p(z,a.length):"translate3d(0, 100%, 150px) scale(1)"},children:y.jsxs("div",{className:"flex flex-col items-center justify-between text-[.875rem]",children:[y.jsxs("div",{className:"flex h-full w-full items-center justify-between gap-4",children:[y.jsx("span",{children:E.text}),!E.action&&y.jsxs("div",{className:"flex gap-1",children:[E.onUndoAction&&y.jsx(Ao,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>{E.onUndoAction?.(),te.remove(E.id)},children:y.jsx(LE,{})}),y.jsx(Ao,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>te.remove(E.id),children:y.jsx(_E,{className:{message:"fill-gray-1000",success:"fill-contrast-fg",warning:"fill-gray-1000 dark:fill-gray-100",error:"fill-contrast-fg"}[E.type]})})]})]}),E.action&&y.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[y.jsx(Ao,{type:"tertiary",size:"small",onClick:()=>te.remove(E.id),children:"Dismiss"}),y.jsx(Ao,{type:"primary",size:"small",onClick:()=>{E.onAction?.(),te.remove(E.id)},children:E.action})]})]})},E.id)})})})},wo=()=>{if(Uc)return;const a=document.createElement("div");a.className="fixed bottom-4 right-4 z-[9999]",document.body.appendChild(a),Uc=Oy.createRoot(a),Uc.render(y.jsx(BE,{}))},Ui=()=>({message:L.useCallback(({text:a,preserve:i,action:l,onAction:o,onUndoAction:c})=>{wo(),te.add(a,"message",i,l,o,c)},[]),success:L.useCallback(a=>{wo(),te.add(a,"success")},[]),warning:L.useCallback(a=>{wo(),te.add(a,"warning")},[]),error:L.useCallback(a=>{wo(),te.add(a,"error")},[])});function UE({data:a,onRefresh:i}){const l=a.config.services[0]?.name??"",[o,c]=L.useState(l),[f,d]=L.useState(a.logs),[m,g]=L.useState(""),[p,v]=L.useState(!1),x=L.useRef(null),S=L.useRef({}),{error:j,message:E,success:z}=Ui(),_=L.useMemo(()=>new Set(a.config.bundles.flatMap(X=>X.services)),[a.config.bundles]),q=L.useMemo(()=>{const X=new Map;for(const k of a.config.bundles)for(const lt of k.services)X.has(lt)||X.set(lt,k.name);return X},[a.config.bundles]),H=L.useMemo(()=>a.config.services.filter(X=>!_.has(X.name)),[a.config.services,_]),Y=a.config.bundles.length>0||H.length>0,Q=m.trim().toLowerCase(),P=L.useMemo(()=>Q?f.filter(X=>GE(X).toLowerCase().includes(Q)):f,[f,Q]);L.useEffect(()=>{!o&&l&&c(l)},[l,o]),L.useEffect(()=>{if(!o){d([]);return}let X=!0;return ig(o).then(k=>{X&&d(k)}).catch(()=>{X&&d([])}),()=>{X=!1}},[o,a.runtime.services]),L.useEffect(()=>{if(!p||!o)return;let X=!0;const k=async()=>{try{const at=await ig(o);X&&d(at)}catch{X&&d([])}};k();const lt=window.setInterval(k,1e3);return()=>{X=!1,window.clearInterval(lt)}},[o,p]),L.useEffect(()=>{if(!p)return;const X=x.current;X&&(X.scrollTop=X.scrollHeight)},[p,P]),L.useEffect(()=>{const X=Object.fromEntries(a.config.services.map(lt=>[lt.name,a.runtime.services[lt.name]?.state??"stopped"])),k=S.current;if(Object.keys(k).length){const lt=new Map,at=new Map;for(const ct of a.config.services){const ft=X[ct.name],Zt=k[ct.name];if(!Zt||Zt===ft)continue;const zt=a.runtime.services[ct.name],Mt=q.get(ct.name);if(Mt){const R=lt.get(Mt)??new Map;if(R.set(ft,(R.get(ft)??0)+1),lt.set(Mt,R),ft==="exited"){const K=at.get(Mt)??[];K.push(zt?.exitCode),at.set(Mt,K)}continue}if(ft==="running")z(`${ct.name} is running.`);else if(ft==="stopped")E({text:`${ct.name} stopped.`});else if(ft==="starting")E({text:`${ct.name} is starting.`});else if(ft==="exited"){const R=zt?.exitCode===void 0||zt.exitCode===null?"":` with code ${zt.exitCode}`;j(`${ct.name} exited${R}.`)}}for(const[ct,ft]of lt)YE({exitCodes:at.get(ct)??[],groupName:ct,showErrorToast:j,showMessageToast:E,showSuccessToast:z,transitions:ft})}S.current=X},[a.config.services,a.runtime.services,q,j,E,z]);const ut=o?Q?`No log lines match "${m.trim()}".`:`No logs captured for ${o}.`:"No services registered.";return p?y.jsx("div",{className:"flex h-full min-h-0 bg-card/85",children:y.jsxs(Di,{className:"flex min-h-0 min-w-0 flex-1 flex-col rounded-none border-0 bg-transparent",children:[y.jsx(Gs,{className:"shrink-0 border-b border-border px-3 py-2",children:y.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[y.jsxs("div",{children:[y.jsx(qs,{children:"Streaming Logs"}),y.jsx(Oo,{className:"text-xs",children:"Polling the selected service every second and pinned to latest output."})]}),y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx(jy,{value:m,onChange:g}),y.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!a.config.services.length,onChange:X=>c(X.target.value),value:o,children:a.config.services.map(X=>y.jsx("option",{value:X.name,children:X.name},X.name))}),y.jsxs(Gt,{"aria-pressed":p,className:"border-emerald-600 bg-emerald-50 text-emerald-700",onClick:()=>v(!1),size:"sm",type:"button",variant:"outline",children:[y.jsx(ag,{}),"Streaming"]})]})]})}),y.jsx(Ri,{className:"min-h-0 flex-1 p-0",children:y.jsx(Cy,{containerRef:x,emptyText:ut,logs:P,query:m})})]})}):y.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden bg-card/85 xl:grid-cols-[minmax(0,1fr)_340px]",children:[y.jsxs("div",{className:"min-h-0 min-w-0 overflow-auto",children:[y.jsxs(Di,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[y.jsxs(Gs,{className:"border-b border-border px-3 py-2",children:[y.jsx(qs,{children:"Services"}),y.jsx(Oo,{className:"text-xs",children:"Grouped services are nested; ungrouped services stay standalone."})]}),y.jsx(Ri,{className:"p-0",children:Y?y.jsxs("div",{className:"divide-y divide-border",children:[a.config.bundles.map(X=>y.jsx(HE,{group:X,onRefresh:i,ports:a.ports,allServices:a.config.services,services:a.config.services.filter(k=>X.services.includes(k.name)),statuses:a.runtime.services},X.name)),H.length?y.jsxs("div",{children:[a.config.bundles.length?y.jsx("div",{className:"bg-muted/55 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:"Ungrouped Services"}):null,y.jsx("div",{className:"divide-y divide-border",children:H.map(X=>y.jsx(Yv,{service:X,status:a.runtime.services[X.name],ports:a.ports,onRefresh:i},X.name))})]}):null]}):y.jsx(Zv,{label:"No services registered yet."})})]}),y.jsxs(Di,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[y.jsx(Gs,{className:"border-b border-border px-3 py-2",children:y.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[y.jsxs("div",{children:[y.jsx(qs,{children:"Recent Logs"}),y.jsx(Oo,{className:"text-xs",children:"Updates with dashboard refresh. Use Stream for a full-page live view."})]}),y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx(jy,{value:m,onChange:g}),y.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!a.config.services.length,onChange:X=>c(X.target.value),value:o,children:a.config.services.map(X=>y.jsx("option",{value:X.name,children:X.name},X.name))}),y.jsxs(Gt,{"aria-pressed":p,disabled:!o,onClick:()=>v(!0),size:"sm",type:"button",variant:"outline",children:[y.jsx(ag,{}),"Stream"]})]})]})}),y.jsx(Ri,{className:"min-w-0 p-0",children:y.jsx(Cy,{className:"max-h-[320px]",containerRef:x,emptyText:ut,logs:P,query:m})})]})]}),y.jsxs("div",{className:"min-h-0 overflow-auto border-l border-border",children:[y.jsx(XE,{ports:a.ports}),y.jsx(Ny,{description:"Register a process command.",icon:y.jsx(ky,{className:"size-4"}),title:"Add Service",children:y.jsx(FE,{onRefresh:i,cwd:a.cwd})}),y.jsx(Ny,{description:"Choose services to run together.",icon:y.jsx(mf,{className:"size-4"}),title:"Create Group",children:y.jsx(Qv,{services:a.config.services,onRefresh:i})})]})]})}function HE({allServices:a,group:i,onRefresh:l,ports:o,services:c,statuses:f}){const[d,m]=L.useState(!1);return y.jsxs("section",{children:[y.jsxs("div",{className:"grid gap-2 bg-muted/35 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx(mf,{className:"size-3.5 text-muted-foreground"}),y.jsx(Le,{appearance:"subtle",className:"shadow-none",size:"small",variant:"secondary",children:"group"}),y.jsx("span",{className:"text-sm font-medium",children:i.name}),y.jsx(Le,{variant:"secondary",children:i.services.length})]}),y.jsx("div",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:i.services.join(", ")})]}),y.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[y.jsxs(Gt,{"aria-expanded":d,onClick:()=>m(g=>!g),size:"sm",type:"button",variant:"outline",children:[y.jsx(bS,{}),"Edit"]}),y.jsx(Oi,{icon:y.jsx(Ly,{}),label:"Start",targetLabel:`group ${i.name}`,url:`/api/bundles/${encodeURIComponent(i.name)}/start`,onRefresh:l}),y.jsx(Oi,{icon:y.jsx(Hy,{}),label:"Stop",targetLabel:`group ${i.name}`,url:`/api/bundles/${encodeURIComponent(i.name)}/stop`,onRefresh:l}),y.jsx(Oi,{icon:y.jsx(Uy,{}),label:"Restart",targetLabel:`group ${i.name}`,url:`/api/bundles/${encodeURIComponent(i.name)}/restart`,onRefresh:l})]})]}),d?y.jsx("div",{className:"border-t border-border bg-background/65 p-3",children:y.jsx(Qv,{initialName:i.name,initialServices:i.services,onRefresh:l,onSaved:()=>m(!1),originalName:i.name,services:a,submitLabel:"Save Group"})}):null,y.jsx("div",{className:"divide-y divide-border border-t border-border bg-background/45",children:c.length?c.map(g=>y.jsx(Yv,{service:g,status:f[g.name],ports:o,onRefresh:l},g.name)):y.jsx(nn,{variant:"muted",className:"m-4",children:"This group does not match any registered services."})})]})}function jy({onChange:a,value:i}){return y.jsxs("label",{className:"relative block",children:[y.jsx(CS,{className:"pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),y.jsx(fn,{"aria-label":"Search logs",className:"h-8 w-44 pl-7 text-xs",onChange:l=>a(l.target.value),placeholder:"Search logs",value:i})]})}function Cy({className:a,containerRef:i,emptyText:l,logs:o,query:c}){return y.jsx("div",{className:vt("h-full max-w-full overflow-auto font-mono text-[11px] leading-5",a),ref:i,role:"log",children:o.length?o.map((f,d)=>y.jsxs("div",{className:vt("grid min-w-max grid-cols-[168px_58px_minmax(420px,1fr)] gap-2 border-b border-border/45 px-3 py-0.5",f.stream==="stderr"?"bg-red-50/70 text-red-800":"bg-emerald-50/35 text-zinc-800"),children:[y.jsx("span",{className:"text-muted-foreground",children:f.timestamp}),y.jsx("span",{className:vt("font-semibold uppercase",f.stream==="stderr"?"text-red-700":"text-emerald-700"),children:f.stream}),y.jsx("span",{className:"whitespace-pre-wrap break-words",children:qE(f.text,c)})]},`${f.timestamp}-${f.stream}-${d}`)):y.jsx("div",{className:"p-3 text-muted-foreground",children:l})})}function GE(a){return`${a.timestamp} ${a.stream} ${a.text}`}function qE(a,i){const l=i.trim();if(!l)return a;const o=a.toLowerCase(),c=l.toLowerCase(),f=[];let d=0,m=o.indexOf(c);for(;m!==-1;){m>d&&f.push(a.slice(d,m));const g=m+l.length;f.push(y.jsx("mark",{className:"rounded bg-amber-200 px-0.5 text-amber-950",children:a.slice(m,g)},`${m}-${g}`)),d=g,m=o.indexOf(c,d)}return d<a.length&&f.push(a.slice(d)),f}function YE({exitCodes:a,groupName:i,showErrorToast:l,showMessageToast:o,showSuccessToast:c,transitions:f}){if(f.size===1){const[g]=f.keys();if(g==="running")c(`${i} group is running.`);else if(g==="stopped")o({text:`${i} group stopped.`});else if(g==="starting")o({text:`${i} group is starting.`});else if(g==="exited"){const p=a.filter(x=>x!=null),v=p.length?` with code ${p.join(", ")}`:"";l(`${i} group exited${v}.`)}return}const d=[...f.entries()].map(([g,p])=>`${p} ${g}`).join(", "),m=`${i} group updated: ${d}.`;f.has("exited")?l(m):o({text:m})}function Ny({children:a,description:i,icon:l,title:o}){const[c,f]=L.useState(!1);return y.jsxs(Di,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[y.jsxs("button",{className:"flex w-full items-center justify-between gap-2 px-3 py-2 text-left",onClick:()=>f(d=>!d),type:"button",children:[y.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[l,y.jsxs("span",{className:"min-w-0",children:[y.jsx("span",{className:"block text-sm font-semibold",children:o}),y.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:i})]})]}),y.jsx(Js,{className:vt("size-4 transition-transform",c&&"rotate-180")})]}),c?y.jsx(Ri,{className:"border-t border-border p-3",children:a}):null]})}function Yv({service:a,status:i,ports:l,onRefresh:o}){const c=i?.state??"stopped",f=i?.url??(a.port?ZE(a.port):void 0),d=a.port?l.find(p=>p.port===a.port):void 0,m=KE(i?.url),g=m?l.find(p=>p.port===m):void 0;return y.jsxs("div",{className:"grid gap-2 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx(mf,{className:"size-3.5 text-muted-foreground"}),y.jsx("span",{className:"text-sm font-medium",children:a.name}),y.jsx(JE,{state:c}),a.port?y.jsxs(Le,{variant:"outline",children:[":",a.port]}):null,d?y.jsx(Xv,{port:d,compact:!0}):null,g&&g.port!==a.port?y.jsxs(Le,{variant:"success",children:["actual :",g.port]}):null]}),y.jsx("div",{className:"mt-0.5 truncate font-mono text-[11px] text-muted-foreground",children:a.command}),y.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:a.cwd})]}),y.jsxs("div",{className:"flex flex-wrap justify-end gap-1.5",children:[y.jsx(QE,{service:a,onRefresh:o}),f?y.jsxs(Gt,{onClick:()=>window.open(f,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",title:f,children:[y.jsx(qx,{}),"Open"]}):null,y.jsx(Oi,{icon:y.jsx(Ly,{}),label:"Start",targetLabel:a.name,url:`/api/services/${encodeURIComponent(a.name)}/start`,onRefresh:o}),y.jsx(Oi,{icon:y.jsx(Hy,{}),label:"Stop",targetLabel:a.name,url:`/api/services/${encodeURIComponent(a.name)}/stop`,onRefresh:o}),y.jsx(Oi,{icon:y.jsx(Uy,{}),label:"Restart",targetLabel:a.name,url:`/api/services/${encodeURIComponent(a.name)}/restart`,onRefresh:o})]})]})}function XE({ports:a}){const i=a.filter(o=>o.state==="occupied").length,l=a.filter(o=>o.state==="managed").length;return y.jsxs(Di,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[y.jsxs(Gs,{className:"border-b border-border px-3 py-2",children:[y.jsxs(qs,{className:"flex items-center gap-2",children:[y.jsx(uS,{className:"size-3.5"}),"Ports"]}),y.jsxs(Oo,{className:"text-xs",children:[l," managed, ",i," occupied by other"]})]}),y.jsx(Ri,{className:"p-0",children:a.length?y.jsx("div",{className:"divide-y divide-border",children:a.map(o=>y.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-center gap-2 px-3 py-2",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsxs("div",{className:"font-mono text-xs",children:[":",o.port]}),y.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:o.services.join(", ")||"Unassigned"}),o.urls[0]?y.jsx("div",{className:"truncate font-mono text-[10px] text-muted-foreground",children:o.urls[0]}):null]}),y.jsx(Xv,{port:o})]},o.port))}):y.jsx(Zv,{label:"No configured ports yet."})})]})}function Xv({compact:a,port:i}){const l=i.state==="managed"?"managed":i.state==="occupied"?"occupied by other":"available",o=i.state==="managed"?"success":i.state==="occupied"?"warning":"outline";return y.jsx(Le,{className:vt(a&&"max-w-36 truncate"),variant:o,children:l})}function QE({service:a,onRefresh:i}){const[l,o]=L.useState(a.port?String(a.port):""),[c,f]=L.useState(!1),{error:d,success:m}=Ui(),g=l.trim()!==(a.port?String(a.port):"");L.useEffect(()=>{o(a.port?String(a.port):"")},[a.port]);async function p(v){v.preventDefault(),f(!0);try{await Vn("/api/services",{name:a.name,command:a.command,cwd:a.cwd,port:l,description:a.description}),m(`Port saved for ${a.name}.`),await i()}catch(x){d(Po("Save port",a.name,x))}finally{f(!1)}}return y.jsxs("form",{className:"flex items-center gap-1.5",onSubmit:p,children:[y.jsx(fn,{"aria-label":`Port for ${a.name}`,className:"h-8 w-20 font-mono text-xs",inputMode:"numeric",min:1,max:65535,onChange:v=>o(v.target.value),placeholder:"port",type:"number",value:l}),y.jsx(Gt,{"aria-label":`Save port for ${a.name}`,disabled:c||!g,className:"size-8",size:"icon",title:"Save port",type:"submit",variant:"outline",children:y.jsx(MS,{})})]})}function ZE(a){return`http://127.0.0.1:${a}`}function KE(a){if(a)try{const i=new URL(a);return i.port?Number(i.port):void 0}catch{return}}function JE({state:a}){return y.jsx(Le,{variant:a==="running"?"success":a==="exited"?"danger":a==="starting"?"warning":"outline",className:vt(a==="running"&&"font-mono"),children:a})}function Oi({icon:a,label:i,targetLabel:l,url:o,onRefresh:c}){const[f,d]=L.useState(!1),{error:m,success:g}=Ui();return y.jsxs(Gt,{variant:"outline",size:"sm",disabled:f,onClick:async()=>{d(!0);try{await Vn(o,{}),g(`${i} requested for ${l}.`),await c()}catch(p){m(Po(i,l,p))}finally{d(!1)}},children:[a,i]})}function Po(a,i,l){const o=l instanceof Error?l.message:String(l);return`${a} failed for ${i}: ${o}`}function FE({cwd:a,onRefresh:i}){const{error:l,success:o}=Ui();async function c(f){f.preventDefault();const d=f.currentTarget,m=new FormData(d),g=String(m.get("name")??"");try{await Vn("/api/services",{name:g,command:String(m.get("command")??""),cwd:String(m.get("cwd")??""),port:String(m.get("port")??""),description:String(m.get("description")??"")}),d.reset(),o(`${g} added.`),await i()}catch(p){l(Po("Add service",g||"service",p))}}return y.jsxs("form",{className:"grid gap-2.5",onSubmit:c,children:[y.jsxs(ji,{children:["Name",y.jsx(fn,{className:"h-8 text-sm",name:"name",placeholder:"backend",required:!0})]}),y.jsxs(ji,{children:["Command",y.jsx(fn,{className:"h-8 text-sm",name:"command",placeholder:"npm run dev",required:!0})]}),y.jsxs(ji,{children:["Working Directory",y.jsx(fn,{className:"h-8 text-sm",name:"cwd",defaultValue:a,required:!0})]}),y.jsxs(ji,{children:["Port",y.jsx(fn,{className:"h-8 text-sm",name:"port",inputMode:"numeric",placeholder:"3001"})]}),y.jsxs(ji,{children:["Description",y.jsx(fn,{className:"h-8 text-sm",name:"description",placeholder:"API server"})]}),y.jsx(Gt,{className:"h-8",type:"submit",children:"Add Service"})]})}function Qv({initialName:a="",initialServices:i=[],onSaved:l,onRefresh:o,originalName:c,services:f,submitLabel:d="Save Group"}){const{error:m,success:g}=Ui();async function p(v){v.preventDefault();const x=v.currentTarget,S=new FormData(x),j=String(S.get("name")??""),E=S.getAll("services").map(z=>String(z)).filter(Boolean);try{await Vn("/api/bundles",{name:j,originalName:c,services:E.join(",")}),x.reset(),g(`${j} group saved.`),await o(),l?.()}catch(z){m(Po("Save group",j||"group",z))}}return y.jsxs("form",{className:"grid gap-2.5",onSubmit:p,children:[y.jsxs(ji,{children:["Group name",y.jsx(fn,{className:"h-8 text-sm",defaultValue:a,name:"name",placeholder:"full-stack",required:!0})]}),y.jsxs("fieldset",{className:"grid gap-1.5",children:[y.jsx("legend",{className:"text-xs font-medium",children:"Services"}),f.length?f.map(v=>y.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border px-2.5 py-1.5 text-sm",children:[y.jsx("input",{className:"size-4 accent-primary",defaultChecked:i.includes(v.name),name:"services",type:"checkbox",value:v.name}),y.jsxs("span",{className:"min-w-0",children:[y.jsx("span",{className:"block truncate text-sm font-medium",children:v.name}),y.jsx("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:v.command})]})]},v.name)):y.jsx(nn,{variant:"muted",children:"Add services before creating a group."})]}),y.jsx(Gt,{className:"h-8",disabled:!f.length,type:"submit",children:d})]})}function Zv({label:a}){return y.jsx(nn,{variant:"muted",className:"m-4 text-center",children:a})}function PE({diff:a}){const i=$E(a);return y.jsx("div",{className:"h-full min-h-0 overflow-auto bg-white text-xs leading-6",children:y.jsx("div",{className:"min-w-max font-mono",children:i.map((l,o)=>y.jsxs("div",{className:vt("grid grid-cols-[3rem_3rem_minmax(40rem,1fr)]",l.kind==="add"&&"bg-emerald-50 text-emerald-800",l.kind==="delete"&&"bg-red-50 text-red-800",l.kind==="hunk"&&"bg-muted text-muted-foreground"),children:[y.jsx(zy,{value:l.oldLine}),y.jsx(zy,{value:l.newLine}),y.jsx("span",{className:"whitespace-pre px-2",children:l.content||" "})]},`${o}-${l.content}`))})})}function $E(a){const i=WE(a);return i.some(l=>l.kind==="hunk")?i.filter(l=>l.kind!=="meta"):i}function WE(a){let i=null,l=null;return a.split(`
|
|
10
|
+
`).map(o=>{if(IE(o))return i=null,l=null,{content:o,kind:"meta",oldLine:null,newLine:null};if(o.startsWith("@@")){const f=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(o);return f&&(i=Number(f[1]),l=Number(f[2])),{content:o,kind:"hunk",oldLine:null,newLine:null}}if(i===null||l===null)return{content:o,kind:"meta",oldLine:null,newLine:null};if(o.startsWith("\\ No newline"))return{content:o,kind:"meta",oldLine:null,newLine:null};if(o.startsWith("+")&&!o.startsWith("+++")){const f={content:o,kind:"add",oldLine:null,newLine:l};return l+=1,f}if(o.startsWith("-")&&!o.startsWith("---")){const f={content:o,kind:"delete",oldLine:i,newLine:null};return i+=1,f}const c={content:o,kind:"context",oldLine:i,newLine:l};return i+=1,l+=1,c})}function IE(a){return a.startsWith("diff --git ")||a.startsWith("index ")||a.startsWith("--- ")||a.startsWith("+++ ")||a.startsWith("new file mode ")||a.startsWith("deleted file mode ")||a.startsWith("old mode ")||a.startsWith("new mode ")||a.startsWith("similarity index ")||a.startsWith("rename from ")||a.startsWith("rename to ")||a.startsWith("Binary files ")}function zy({value:a}){return y.jsx("span",{className:vt("select-none border-r border-border/70 px-2 text-right text-muted-foreground",a===null&&"text-transparent"),children:a??"-"})}const tM=new Set(["c","cpp","cs","go","java","js","jsx","kt","mjs","py","rs","swift","ts","tsx"]),eM=new Set([".env",".gitignore","components.json","dockerfile","package.json","tsconfig.json","vite.config.ts"]),nM=new Set(["conf","config","ini","toml","yaml","yml"]),aM=new Set(["csv","json","sql","xml"]),iM=new Set(["md","mdx","rst","txt"]),sM=new Set(["gif","jpeg","jpg","png","svg","webp"]),lM=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock"]),oM=new Set(["css","less","sass","scss"]);function rM(a){const i=a.split("/").pop()?.toLowerCase()??a.toLowerCase(),l=i.includes(".")?i.split(".").pop()??"":"";return lM.has(i)||i.endsWith(".lock")?"lock":uM(i)?"test":eM.has(i)||nM.has(l)?"config":oM.has(l)?"style":sM.has(l)?"image":iM.has(l)?"document":aM.has(l)?"data":tM.has(l)?"code":"generic"}function uM(a){return a.includes(".test.")||a.includes(".spec.")||a.endsWith("_test.go")}function cM({branch:a,error:i,files:l,selectedFile:o,onSelectFile:c}){const f=L.useMemo(()=>pM(l).filter(g=>g.files.length),[l]),[d,m]=L.useState({staged:!1,unstaged:!1,untracked:!1});return y.jsxs(Di,{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-none border-0 bg-transparent",children:[y.jsx(Gs,{className:"border-b border-border px-2.5 py-1.5",children:y.jsxs(qs,{className:"flex items-center justify-between gap-2",children:[y.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[y.jsx(Vo,{className:"size-3.5"}),y.jsx("span",{className:"truncate",children:"Changes"})]}),y.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[a?y.jsx(Le,{variant:"outline",children:a}):null,y.jsx(Le,{variant:"secondary",children:l.length})]})]})}),y.jsx(Ri,{className:"min-h-0 flex-1 overflow-auto p-0",children:f.length?f.map(g=>y.jsx(fM,{collapsed:d[g.id],group:g,onSelectFile:c,onToggle:()=>m(p=>({...p,[g.id]:!p[g.id]})),selectedFile:o},g.id)):y.jsx(nn,{variant:"muted",className:"m-3 text-center",children:i??"No changed files."})})]})}function fM({collapsed:a,group:i,onSelectFile:l,onToggle:o,selectedFile:c}){const f=a?Lx:Js;return y.jsxs("section",{className:"border-b border-border last:border-b-0",children:[y.jsxs("button",{className:"flex w-full items-center justify-between gap-2 bg-muted/55 px-2.5 py-1 text-left text-[10px] font-semibold uppercase text-muted-foreground hover:bg-muted",onClick:o,type:"button",children:[y.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[y.jsx(f,{className:"size-3.5"}),y.jsx("span",{className:"truncate",children:i.label})]}),y.jsx(Le,{className:"min-w-6 justify-center font-mono shadow-none",size:"small",variant:"outline",children:i.files.length})]}),a?null:y.jsx("div",{children:i.files.map(d=>y.jsx(dM,{active:c===d.path,file:d,group:i.id,onClick:()=>l(d.path)},d.path))})]})}function dM({active:a,file:i,group:l,onClick:o}){const c=i.path.split("/").pop()||i.path,f=i.path.split("/").slice(0,-1).join("/");return y.jsxs(Gt,{className:vt("grid h-auto w-full grid-cols-[1fr_auto] items-center gap-2 rounded-none border-b border-border px-2.5 py-1.5 text-left",a&&"bg-muted"),onClick:o,type:"button",variant:"ghost",children:[y.jsxs("span",{className:"min-w-0",children:[y.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[y.jsx(mM,{path:i.path}),y.jsx("span",{className:"truncate text-[13px] font-medium",children:c})]}),f?y.jsx("span",{className:"block truncate pl-5 text-[10px] text-muted-foreground",children:f}):null]}),y.jsx("span",{className:vt("w-3.5 shrink-0 text-center font-mono text-[11px] font-semibold",l==="untracked"&&"text-amber-700",l==="staged"&&"text-emerald-700",l==="unstaged"&&"text-zinc-800"),children:hM(i,l)})]})}function hM(a,i){return i==="untracked"?"?":i==="staged"?a.index.trim():a.workingTree.trim()}function mM({path:a}){const i=rM(a),l=gM[i];return y.jsx(l,{"aria-label":`${i} file`,className:vt("size-3.5 shrink-0",yM[i])})}function pM(a){return[{id:"unstaged",label:"Changes",files:a.filter(i=>!(i.index==="?"&&i.workingTree==="?")&&i.workingTree.trim())},{id:"staged",label:"Staged Changes",files:a.filter(i=>!(i.index==="?"&&i.workingTree==="?")&&i.index.trim()&&!i.workingTree.trim())},{id:"untracked",label:"Untracked Files",files:a.filter(i=>i.index==="?"&&i.workingTree==="?")}]}const gM={code:Xx,config:RS,data:Bx,document:Zx,generic:Jx,image:iS,lock:oS,style:fS,test:Px},yM={code:"text-sky-600",config:"text-zinc-600",data:"text-emerald-700",document:"text-blue-700",generic:"text-muted-foreground",image:"text-fuchsia-700",lock:"text-amber-700",style:"text-rose-700",test:"text-violet-700"};function vM({data:a}){const[i,l]=L.useState(a.git.status?.files[0]?.path??""),[o,c]=L.useState(""),[f,d]=L.useState(null);return L.useEffect(()=>{const m=a.git.status?.files[0]?.path??"";l(g=>g&&a.git.status?.files.some(p=>p.path===g)?g:m)},[a.git.status?.files]),L.useEffect(()=>{if(!i){c("");return}let m=!0;return d(null),BS(i).then(g=>{m&&c(g)}).catch(g=>{m&&d(g instanceof Error?g.message:String(g))}),()=>{m=!1}},[i]),y.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden border-0 bg-card/85 xl:grid-cols-[320px_minmax(0,1fr)]",children:[y.jsx("aside",{className:"flex min-h-0 flex-col overflow-hidden",children:y.jsx(cM,{branch:a.git.status?.branch||void 0,error:a.git.error,files:a.git.status?.files??[],selectedFile:i,onSelectFile:l})}),y.jsxs("section",{className:"flex min-h-0 min-w-0 flex-col border-l border-border bg-white",children:[y.jsx("div",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-border px-3 py-1.5",children:y.jsxs("div",{className:"min-w-0",children:[y.jsx("h2",{className:"truncate text-[13px] font-semibold tracking-tight",children:i||"Diff"}),y.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Long rows scroll horizontally inside the editor pane."})]})}),y.jsx("div",{className:"min-h-0 min-w-0 flex-1",children:f?y.jsx("div",{className:"p-4",children:y.jsx(nn,{variant:"destructive",children:f})}):i?y.jsx(PE,{diff:o||"No unstaged diff for this file."}):y.jsx("div",{className:"p-4",children:y.jsx(nn,{variant:"muted",className:"border-dashed p-12 text-center",children:"Select a changed file to inspect its diff."})})})]})]})}function bM({initialPath:a,onSelect:i,selectedPath:l}){const[o,c]=L.useState(a),[f,d]=L.useState(null),[m,g]=L.useState(null),[p,v]=L.useState(!1);return L.useEffect(()=>{c(a)},[a]),L.useEffect(()=>{let x=!0;return v(!0),g(null),US(o).then(S=>{x&&(d(S),i(S.path))}).catch(S=>{x&&g(S instanceof Error?S.message:String(S))}).finally(()=>{x&&v(!1)}),()=>{x=!1}},[o,i]),y.jsxs("div",{className:"rounded-md border border-border bg-background",children:[y.jsxs("div",{className:"flex items-center gap-2 border-b border-border p-2",children:[y.jsx(Gt,{"aria-label":"Open parent folder",disabled:!f||f.parent===f.path,onClick:()=>f&&c(f.parent),size:"icon",type:"button",variant:"ghost",children:y.jsx(Js,{className:"rotate-90"})}),y.jsx("div",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f?.path??o}),p?y.jsx(_y,{className:"size-4 animate-spin text-muted-foreground"}):null]}),y.jsxs("div",{className:"max-h-56 overflow-auto p-1",children:[m?y.jsx(nn,{variant:"destructive",className:"m-1",children:m}):null,!m&&f?.entries.length===0?y.jsx(nn,{variant:"muted",className:"m-1 text-center",children:"No folders here."}):null,f?.entries.map(x=>y.jsxs(Gt,{className:vt("h-8 w-full justify-start rounded-sm px-2 text-left",l===x.path&&"bg-muted"),onClick:()=>c(x.path),title:x.path,type:"button",variant:"ghost",children:[y.jsx(pf,{className:"text-accent"}),y.jsx("span",{className:"truncate",children:x.name})]},x.path))]})]})}function Hc(a){return a.split(/[\\/]/).filter(Boolean).pop()??"project"}function xM({data:a,onRefresh:i}){const[l,o]=L.useState(!1),[c,f]=L.useState(a.git.cwd),[d,m]=L.useState(null),[g,p]=L.useState(!1),[v,x]=L.useState(a.git.cwd),S=L.useRef(null),j=a.git.selectedRepository,E=j?.name??Hc(a.git.cwd);L.useEffect(()=>{f(a.git.cwd),x(a.git.cwd)},[a.git.cwd]),L.useEffect(()=>{if(!l)return;function H(Y){S.current&&Y.target instanceof Node&&!S.current.contains(Y.target)&&o(!1)}return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[l]);const z=L.useCallback(H=>{f(H),m(null)},[]);async function _(H){await Vn("/api/git/select",{name:H}),o(!1),await i()}async function q(H){H.preventDefault();const Y=c.trim();if(!SM(Y)){m("Please add an absolute path. Paths beginning with ~ are not expanded here.");return}try{await Vn("/api/git/repositories",{name:Hc(Y),path:Y}),o(!1),m(null),await i()}catch(Q){m(Q instanceof Error?Q.message:String(Q))}}return y.jsxs("div",{className:"relative z-30",ref:S,children:[y.jsxs(Gt,{className:"max-w-[220px] justify-start gap-2 rounded-md border-border bg-card",onClick:()=>o(H=>!H),size:"sm",type:"button",variant:"outline",children:[y.jsx(pf,{className:"text-muted-foreground"}),y.jsx("span",{className:"truncate",children:E}),y.jsx(Js,{className:vt("ml-auto transition-transform",l&&"rotate-180")})]}),l?y.jsxs("div",{className:"absolute right-0 top-10 w-[min(520px,calc(100vw-2rem))] overflow-hidden rounded-xl border border-border bg-card shadow-lg",children:[y.jsxs("div",{className:"flex items-start gap-3 border-b border-border p-3",children:[y.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg border border-border bg-background",children:y.jsx(Hx,{className:"size-4"})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:"text-sm font-semibold",children:"Git Projects"}),y.jsx("div",{className:"truncate font-mono text-xs text-muted-foreground",children:j?.path??a.git.cwd})]}),y.jsx(Le,{variant:"outline",children:a.config.gitRepositories.length})]}),y.jsx("div",{className:"max-h-72 overflow-auto",children:a.config.gitRepositories.length?y.jsx("div",{className:"divide-y divide-border",children:a.config.gitRepositories.map(H=>{const Y=H.name===j?.name;return y.jsxs("button",{className:vt("grid w-full grid-cols-[1fr_auto] items-center gap-4 px-4 py-3 text-left transition-colors hover:bg-muted",Y&&"bg-muted/70"),onClick:()=>{_(H.name)},type:"button",children:[y.jsxs("span",{className:"min-w-0",children:[y.jsx("span",{className:"block truncate font-medium",children:H.name}),y.jsx("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:H.path})]}),Y?y.jsx(Ox,{className:"size-4"}):null]},H.name)})}):y.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:"No saved Git projects yet."})}),y.jsxs("div",{className:"border-t border-border bg-muted/20 p-3",children:[y.jsx("div",{className:"mb-2 text-xs font-semibold uppercase text-muted-foreground",children:"Current Path"}),y.jsx("div",{className:"mb-4 truncate rounded-md border border-border bg-background px-3 py-2 font-mono text-xs",children:a.git.cwd}),y.jsxs("form",{className:"grid gap-2 sm:grid-cols-[1fr_auto]",onSubmit:q,children:[y.jsx(fn,{"aria-label":"Paste absolute path",onChange:H=>{f(H.target.value),m(null)},placeholder:"/Users/you/projects/app",value:c}),y.jsxs(Gt,{type:"submit",children:[y.jsx(ky,{}),"Add ",Hc(c)]})]}),y.jsx(nn,{className:vt("mt-2 px-3 py-2 text-xs",d?"":"border-dashed"),variant:d?"destructive":"muted",children:d??"Please add an absolute path. Paths beginning with ~ are not expanded."}),y.jsxs(Gt,{className:"mt-3 w-full",onClick:()=>{x(c||a.git.cwd),p(!0)},type:"button",variant:"outline",children:[y.jsx(Wx,{}),"Browse folders"]})]})]}):null,g?y.jsx(TM,{initialPath:c||a.git.cwd,selectedPath:v,onCancel:()=>p(!1),onSelect:x,onUse:()=>{z(v),p(!1)}}):null]})}function SM(a){return a.startsWith("/")}function TM({initialPath:a,onCancel:i,onSelect:l,onUse:o,selectedPath:c}){return y.jsx("div",{className:"fixed inset-0 z-50 grid place-items-center bg-black/35 px-4",children:y.jsxs("div",{className:"w-full max-w-2xl rounded-xl border border-border bg-card p-4 shadow-xl",children:[y.jsxs("div",{className:"mb-3 flex items-center gap-3",children:[y.jsx("div",{className:"flex size-8 items-center justify-center rounded-lg border border-border bg-background",children:y.jsx(pf,{className:"size-4"})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:"text-sm font-semibold",children:"Choose Git Project Folder"}),y.jsx("div",{className:"truncate font-mono text-xs text-muted-foreground",children:c})]}),y.jsx(Gt,{"aria-label":"Close folder picker",onClick:i,size:"icon",variant:"ghost",children:y.jsx(gf,{})})]}),y.jsx(bM,{initialPath:a,onSelect:l,selectedPath:c}),y.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[y.jsx(Gt,{onClick:i,type:"button",variant:"outline",children:"Cancel"}),y.jsx(Gt,{onClick:o,type:"button",children:"Use this folder"})]})]})})}function AM({branches:a,currentBranch:i,disabled:l,onRefresh:o}){const[c,f]=L.useState(!1),[d,m]=L.useState(""),[g,p]=L.useState(null),[v,x]=L.useState(null),[S,j]=L.useState(null),E=a.filter(Q=>!Q.remote),z=a.filter(Q=>Q.remote);async function _(Q,P){p(Q),j(null),x(null);try{await P(),await o()}catch(ut){j(ut instanceof Error?ut.message:String(ut))}finally{p(null)}}async function q(Q){await _(`switch:${Q}`,async()=>{await Vn("/api/git/branches/switch",{name:Q}),f(!1)})}async function H(){await _("fetch",async()=>{await Vn("/api/git/fetch",{}),x("Fetched latest branch refs.")})}async function Y(Q){Q.preventDefault();const P=d.trim();if(!P){j("Branch name is required.");return}await _("create",async()=>{await Vn("/api/git/branches",{name:P}),m(""),f(!1)})}return y.jsxs("div",{className:"fixed bottom-3 right-4 z-50 flex items-end",children:[c?y.jsxs("div",{"aria-label":"Switch Git branch",className:"mb-11 w-[min(460px,calc(100vw-2rem))] rounded-lg border border-border bg-card shadow-xl",role:"dialog",children:[y.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border p-3",children:[y.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[y.jsx(Vo,{className:"size-4 text-muted-foreground"}),y.jsx("span",{className:"truncate text-sm font-semibold",children:i||"Branches"})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[y.jsx(Gt,{"aria-label":"Fetch branches",disabled:l||g!==null,onClick:()=>{H()},size:"icon",title:"Fetch branches",type:"button",variant:"ghost",children:y.jsx(By,{className:vt(g==="fetch"&&"animate-spin")})}),y.jsx(Gt,{"aria-label":"Close branch dialog",onClick:()=>f(!1),size:"icon",type:"button",variant:"ghost",children:y.jsx(gf,{})})]})]}),y.jsx("div",{className:"max-h-72 overflow-auto",children:a.length?y.jsxs(y.Fragment,{children:[y.jsx(Dy,{branches:E,busy:g!==null,disabled:l,label:"Local",onSwitch:q}),y.jsx(Dy,{branches:z,busy:g!==null,disabled:l,label:"Remote",onSwitch:q})]}):y.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"No branches found."})}),y.jsxs("div",{className:"border-t border-border p-3",children:[y.jsxs("form",{className:"grid gap-2 sm:grid-cols-[1fr_auto]",onSubmit:Y,children:[y.jsx(fn,{"aria-label":"New branch name",disabled:l||g!==null,onChange:Q=>{m(Q.target.value),j(null),x(null)},placeholder:"feature/new-work",value:d}),y.jsxs(Gt,{disabled:l||g!==null,type:"submit",children:[y.jsx(nS,{}),"Create"]})]}),S||v?y.jsx(nn,{className:"mt-3 px-3 py-2 text-xs",variant:S?"destructive":"muted",children:S??v}):null]})]}):null,y.jsxs(Gt,{className:"h-8 max-w-[260px] gap-2 rounded-md shadow-lg",disabled:l,onClick:()=>f(Q=>!Q),size:"sm",title:"Switch Git branch",type:"button",variant:"default",children:[y.jsx(Vo,{className:"size-4"}),y.jsx("span",{className:"truncate font-mono text-xs",children:i||"No branch"}),y.jsx(Js,{className:vt("size-4 transition-transform",c&&"rotate-180")})]})]})}function Dy({branches:a,busy:i,disabled:l,label:o,onSwitch:c}){return y.jsxs("section",{children:[y.jsx("div",{className:"border-b border-border bg-muted/60 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:o}),a.length?a.map(f=>y.jsxs("button",{className:vt("grid w-full grid-cols-[1fr_auto] items-center gap-2 border-b border-border px-3 py-2 text-left text-sm last:border-b-0 hover:bg-muted",f.current&&"bg-muted/70"),disabled:l||i||f.current,onClick:()=>{c(f.name)},type:"button",children:[y.jsxs("span",{className:"min-w-0",children:[y.jsx("span",{className:"block truncate font-medium",children:f.name}),f.upstream?y.jsxs("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:["tracks ",f.upstream]}):null]}),y.jsx(Le,{variant:f.current?"success":f.remote?"outline":"secondary",children:f.current?"current":f.remote?"remote":"local"})]},`${f.remote?"remote":"local"}:${f.name}`)):y.jsxs("div",{className:"border-b border-border px-3 py-3 text-sm text-muted-foreground",children:["No ",o.toLowerCase()," branches."]})]})}function wM(){const[a,i]=L.useState(()=>window.location.pathname.startsWith("/git")?"git":"services"),[l,o]=L.useState(null),[c,f]=L.useState(null),[d,m]=L.useState(!0),{error:g,success:p}=Ui(),[v,x]=L.useState(()=>window.localStorage.getItem("nomoreide:sidebar")==="collapsed"),S=L.useCallback(async(E={})=>{E.silent||m(!0),f(null);try{o(await kS()),E.notify&&p("Dashboard refreshed.")}catch(z){const _=z instanceof Error?z.message:String(z);f(_),g(_)}finally{m(!1)}},[g,p]);L.useEffect(()=>{S()},[S]),L.useEffect(()=>{function E(){document.visibilityState==="visible"&&S({silent:!0})}const z=window.setInterval(E,5e3);return window.addEventListener("focus",E),document.addEventListener("visibilitychange",E),()=>{window.clearInterval(z),window.removeEventListener("focus",E),document.removeEventListener("visibilitychange",E)}},[a,S]),L.useEffect(()=>{const E=a==="git"?"/git":"/";window.location.pathname!==E&&window.history.pushState(null,"",E)},[a]),L.useEffect(()=>{window.localStorage.setItem("nomoreide:sidebar",v?"collapsed":"expanded")},[v]);const j=L.useMemo(()=>l?Object.values(l.runtime.services).filter(E=>E.state==="running").length:0,[l]);return y.jsxs("div",{className:"h-screen overflow-hidden",children:[y.jsxs("div",{className:"mx-auto flex h-screen max-w-[1500px]",children:[y.jsxs("aside",{className:vt("hidden h-screen shrink-0 overflow-auto border-r border-border bg-card/85 px-4 py-5 backdrop-blur transition-[width] duration-200 md:block",v?"w-[76px]":"w-64"),children:[y.jsxs("div",{className:vt("flex items-center px-2",v?"justify-center":"gap-3"),children:[y.jsx("div",{className:"flex size-9 items-center justify-center rounded-md bg-primary text-primary-foreground",children:y.jsx(VS,{className:"size-5"})}),y.jsxs("div",{className:vt("min-w-0",v&&"hidden"),children:[y.jsx("div",{className:"text-sm font-semibold",children:"NoMoreIDE"}),y.jsx("div",{className:"font-mono text-[11px] text-muted-foreground",children:"127.0.0.1 console"})]}),y.jsx(Gt,{"aria-label":v?"Expand navigation":"Collapse navigation",className:vt("ml-auto",v&&"hidden"),size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:y.jsx(hS,{})})]}),y.jsx("div",{className:vt("mt-4",!v&&"hidden"),children:y.jsx(Gt,{"aria-label":"Expand navigation",className:"w-full",size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:y.jsx(pS,{})})}),y.jsxs("nav",{className:"mt-5 grid gap-1",children:[y.jsx(Ry,{active:a==="services",badge:j,collapsed:v,icon:y.jsx(zS,{}),label:"Services",onClick:()=>i("services")}),y.jsx(Ry,{active:a==="git",collapsed:v,icon:y.jsx(Vo,{}),label:"Git Review",onClick:()=>i("git")})]})]}),y.jsxs("main",{className:"flex h-screen min-w-0 flex-1 flex-col px-0 py-0",children:[y.jsxs("header",{className:vt("flex shrink-0 flex-wrap items-center justify-between gap-3 border border-border bg-card/90 px-4 py-3 backdrop-blur","border-x-0 border-t-0 border-b"),children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(yS,{className:"size-4 text-muted-foreground md:hidden"}),y.jsxs("div",{children:[y.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:a==="git"?"Git Review":"Services"}),y.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:l?.git.selectedRepository?.name??l?.git.cwd??"Local workspace"})]})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[c?y.jsx(Le,{variant:"danger",children:c}):null,l&&a==="git"?y.jsx(xM,{data:l,onRefresh:S}):null,y.jsxs(Gt,{variant:"outline",size:"sm",onClick:()=>{S({notify:!0})},children:[y.jsx(By,{className:vt(d&&"animate-spin")}),"Refresh"]})]})]}),d&&!l?y.jsx(nn,{variant:"muted",children:"Loading NoMoreIDE state..."}):null,y.jsxs("div",{className:"min-h-0 flex-1 overflow-hidden",children:[l&&a==="services"?y.jsx(UE,{data:l,onRefresh:S}):null,l&&a==="git"?y.jsx(vM,{data:l}):null]})]})]}),l&&a==="git"?y.jsx(AM,{branches:l.git.branches,currentBranch:l.git.status?.branch||void 0,disabled:!l.git.status,onRefresh:S}):null]})}function Ry({active:a,badge:i,collapsed:l,icon:o,label:c,onClick:f}){return y.jsxs(Gt,{"aria-label":c,title:l?c:void 0,className:vt("w-full",l?"relative justify-center px-0":"justify-start"),variant:a?"default":"ghost",onClick:f,type:"button",children:[y.jsx("span",{className:vt(l&&"[&_svg]:size-4"),children:o}),y.jsx("span",{className:vt("min-w-0 flex-1 text-left",l&&"hidden"),children:c}),i!==void 0?y.jsx(Le,{appearance:i>0?"solid":"outline",className:vt("min-w-6 justify-center px-1.5 font-mono shadow-none",a?"border-primary-foreground/40 bg-primary-foreground/15 text-primary-foreground":i>0?"":"border-border bg-background text-muted-foreground",l&&"absolute right-1.5 top-1.5 h-4 min-w-4 rounded-full px-1 text-[10px] leading-none shadow-none"),size:"small",variant:i>0?"success":"outline",children:i}):null]})}Oy.createRoot(document.getElementById("root")).render(y.jsx(L.StrictMode,{children:y.jsx(wM,{})}));
|