nomoreide 0.1.2 → 0.1.3

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.
@@ -0,0 +1,11 @@
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 yc={exports:{}},Vs={};var F0;function bb(){if(F0)return Vs;F0=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 p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:a,type:o,key:d,ref:c!==void 0?c:null,props:f}}return Vs.Fragment=i,Vs.jsx=l,Vs.jsxs=l,Vs}var P0;function xb(){return P0||(P0=1,yc.exports=bb()),yc.exports}var y=xb(),vc={exports:{}},dt={};var $0;function Sb(){if($0)return dt;$0=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"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function j(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,_={};function B(w,G,F){this.props=w,this.context=G,this.refs=_,this.updater=F||E}B.prototype.isReactComponent={},B.prototype.setState=function(w,G){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,G,"setState")},B.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function O(){}O.prototype=B.prototype;function U(w,G,F){this.props=w,this.context=G,this.refs=_,this.updater=F||E}var X=U.prototype=new O;X.constructor=U,N(X,B.prototype),X.isPureReactComponent=!0;var $=Array.isArray;function ut(){}var W={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function Z(w,G,F){var tt=F.ref;return{$$typeof:a,type:w,key:G,ref:tt!==void 0?tt:null,props:F}}function I(w,G){return Z(w.type,G,w.props)}function ft(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function gt(w){var G={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(F){return G[F]})}var Dt=/\/+/g;function At(w,G){return typeof w=="object"&&w!==null&&w.key!=null?gt(""+w.key):G.toString(36)}function zt(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ut,ut):(w.status="pending",w.then(function(G){w.status==="pending"&&(w.status="fulfilled",w.value=G)},function(G){w.status==="pending"&&(w.status="rejected",w.reason=G)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function R(w,G,F,tt,st){var ot=typeof w;(ot==="undefined"||ot==="boolean")&&(w=null);var Et=!1;if(w===null)Et=!0;else switch(ot){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(w.$$typeof){case a:case i:Et=!0;break;case v:return Et=w._init,R(Et(w._payload),G,F,tt,st)}}if(Et)return st=st(w),Et=tt===""?"."+At(w,0):tt,$(st)?(F="",Et!=null&&(F=Et.replace(Dt,"$&/")+"/"),R(st,G,F,"",function(kn){return kn})):st!=null&&(ft(st)&&(st=I(st,F+(st.key==null||w&&w.key===st.key?"":(""+st.key).replace(Dt,"$&/")+"/")+Et)),G.push(st)),1;Et=0;var ie=tt===""?".":tt+":";if($(w))for(var yt=0;yt<w.length;yt++)tt=w[yt],ot=ie+At(tt,yt),Et+=R(tt,G,F,ot,st);else if(yt=j(w),typeof yt=="function")for(w=yt.call(w),yt=0;!(tt=w.next()).done;)tt=tt.value,ot=ie+At(tt,yt++),Et+=R(tt,G,F,ot,st);else if(ot==="object"){if(typeof w.then=="function")return R(zt(w),G,F,tt,st);throw G=String(w),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Et}function Q(w,G,F){if(w==null)return w;var tt=[],st=0;return R(w,tt,"","",function(ot){return G.call(F,ot,st++)}),tt}function J(w){if(w._status===-1){var G=w._result;G=G(),G.then(function(F){(w._status===0||w._status===-1)&&(w._status=1,w._result=F)},function(F){(w._status===0||w._status===-1)&&(w._status=2,w._result=F)}),w._status===-1&&(w._status=0,w._result=G)}if(w._status===1)return w._result.default;throw w._result}var ct=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},K={map:Q,forEach:function(w,G,F){Q(w,function(){G.apply(this,arguments)},F)},count:function(w){var G=0;return Q(w,function(){G++}),G},toArray:function(w){return Q(w,function(G){return G})||[]},only:function(w){if(!ft(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return dt.Activity=x,dt.Children=K,dt.Component=B,dt.Fragment=l,dt.Profiler=c,dt.PureComponent=U,dt.StrictMode=o,dt.Suspense=g,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,dt.__COMPILER_RUNTIME={__proto__:null,c:function(w){return W.H.useMemoCache(w)}},dt.cache=function(w){return function(){return w.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(w,G,F){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var tt=N({},w.props),st=w.key;if(G!=null)for(ot in G.key!==void 0&&(st=""+G.key),G)!Y.call(G,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&G.ref===void 0||(tt[ot]=G[ot]);var ot=arguments.length-2;if(ot===1)tt.children=F;else if(1<ot){for(var Et=Array(ot),ie=0;ie<ot;ie++)Et[ie]=arguments[ie+2];tt.children=Et}return Z(w.type,st,tt)},dt.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},dt.createElement=function(w,G,F){var tt,st={},ot=null;if(G!=null)for(tt in G.key!==void 0&&(ot=""+G.key),G)Y.call(G,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(st[tt]=G[tt]);var Et=arguments.length-2;if(Et===1)st.children=F;else if(1<Et){for(var ie=Array(Et),yt=0;yt<Et;yt++)ie[yt]=arguments[yt+2];st.children=ie}if(w&&w.defaultProps)for(tt in Et=w.defaultProps,Et)st[tt]===void 0&&(st[tt]=Et[tt]);return Z(w,ot,st)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(w){return{$$typeof:p,render:w}},dt.isValidElement=ft,dt.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:J}},dt.memo=function(w,G){return{$$typeof:m,type:w,compare:G===void 0?null:G}},dt.startTransition=function(w){var G=W.T,F={};W.T=F;try{var tt=w(),st=W.S;st!==null&&st(F,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(ut,ct)}catch(ot){ct(ot)}finally{G!==null&&F.types!==null&&(G.types=F.types),W.T=G}},dt.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},dt.use=function(w){return W.H.use(w)},dt.useActionState=function(w,G,F){return W.H.useActionState(w,G,F)},dt.useCallback=function(w,G){return W.H.useCallback(w,G)},dt.useContext=function(w){return W.H.useContext(w)},dt.useDebugValue=function(){},dt.useDeferredValue=function(w,G){return W.H.useDeferredValue(w,G)},dt.useEffect=function(w,G){return W.H.useEffect(w,G)},dt.useEffectEvent=function(w){return W.H.useEffectEvent(w)},dt.useId=function(){return W.H.useId()},dt.useImperativeHandle=function(w,G,F){return W.H.useImperativeHandle(w,G,F)},dt.useInsertionEffect=function(w,G){return W.H.useInsertionEffect(w,G)},dt.useLayoutEffect=function(w,G){return W.H.useLayoutEffect(w,G)},dt.useMemo=function(w,G){return W.H.useMemo(w,G)},dt.useOptimistic=function(w,G){return W.H.useOptimistic(w,G)},dt.useReducer=function(w,G,F){return W.H.useReducer(w,G,F)},dt.useRef=function(w){return W.H.useRef(w)},dt.useState=function(w){return W.H.useState(w)},dt.useSyncExternalStore=function(w,G,F){return W.H.useSyncExternalStore(w,G,F)},dt.useTransition=function(){return W.H.useTransition()},dt.version="19.2.6",dt}var W0;function yf(){return W0||(W0=1,vc.exports=Sb()),vc.exports}var L=yf(),bc={exports:{}},Os={},xc={exports:{}},Sc={};var I0;function Tb(){return I0||(I0=1,(function(a){function i(R,Q){var J=R.length;R.push(Q);t:for(;0<J;){var ct=J-1>>>1,K=R[ct];if(0<c(K,Q))R[ct]=Q,R[J]=K,J=ct;else break t}}function l(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var Q=R[0],J=R.pop();if(J!==Q){R[0]=J;t:for(var ct=0,K=R.length,w=K>>>1;ct<w;){var G=2*(ct+1)-1,F=R[G],tt=G+1,st=R[tt];if(0>c(F,J))tt<K&&0>c(st,F)?(R[ct]=st,R[tt]=J,ct=tt):(R[ct]=F,R[G]=J,ct=G);else if(tt<K&&0>c(st,J))R[ct]=st,R[tt]=J,ct=tt;else break t}}return Q}function c(R,Q){var J=R.sortIndex-Q.sortIndex;return J!==0?J:R.id-Q.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,p=d.now();a.unstable_now=function(){return d.now()-p}}var g=[],m=[],v=1,x=null,S=3,j=!1,E=!1,N=!1,_=!1,B=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function X(R){for(var Q=l(m);Q!==null;){if(Q.callback===null)o(m);else if(Q.startTime<=R)o(m),Q.sortIndex=Q.expirationTime,i(g,Q);else break;Q=l(m)}}function $(R){if(N=!1,X(R),!E)if(l(g)!==null)E=!0,ut||(ut=!0,gt());else{var Q=l(m);Q!==null&&zt($,Q.startTime-R)}}var ut=!1,W=-1,Y=5,Z=-1;function I(){return _?!0:!(a.unstable_now()-Z<Y)}function ft(){if(_=!1,ut){var R=a.unstable_now();Z=R;var Q=!0;try{t:{E=!1,N&&(N=!1,O(W),W=-1),j=!0;var J=S;try{e:{for(X(R),x=l(g);x!==null&&!(x.expirationTime>R&&I());){var ct=x.callback;if(typeof ct=="function"){x.callback=null,S=x.priorityLevel;var K=ct(x.expirationTime<=R);if(R=a.unstable_now(),typeof K=="function"){x.callback=K,X(R),Q=!0;break e}x===l(g)&&o(g),X(R)}else o(g);x=l(g)}if(x!==null)Q=!0;else{var w=l(m);w!==null&&zt($,w.startTime-R),Q=!1}}break t}finally{x=null,S=J,j=!1}Q=void 0}}finally{Q?gt():ut=!1}}}var gt;if(typeof U=="function")gt=function(){U(ft)};else if(typeof MessageChannel<"u"){var Dt=new MessageChannel,At=Dt.port2;Dt.port1.onmessage=ft,gt=function(){At.postMessage(null)}}else gt=function(){B(ft,0)};function zt(R,Q){W=B(function(){R(a.unstable_now())},Q)}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"):Y=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 Q=3;break;default:Q=S}var J=S;S=Q;try{return R()}finally{S=J}},a.unstable_requestPaint=function(){_=!0},a.unstable_runWithPriority=function(R,Q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var J=S;S=R;try{return Q()}finally{S=J}},a.unstable_scheduleCallback=function(R,Q,J){var ct=a.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ct+J:ct):J=ct,R){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=J+K,R={id:v++,callback:Q,priorityLevel:R,startTime:J,expirationTime:K,sortIndex:-1},J>ct?(R.sortIndex=J,i(m,R),l(g)===null&&R===l(m)&&(N?(O(W),W=-1):N=!0,zt($,J-ct))):(R.sortIndex=K,i(g,R),E||j||(E=!0,ut||(ut=!0,gt()))),R},a.unstable_shouldYield=I,a.unstable_wrapCallback=function(R){var Q=S;return function(){var J=S;S=Q;try{return R.apply(this,arguments)}finally{S=J}}}})(Sc)),Sc}var t1;function wb(){return t1||(t1=1,xc.exports=Tb()),xc.exports}var Tc={exports:{}},me={};var e1;function Ab(){if(e1)return me;e1=1;var a=yf();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" 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,m,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:g,containerInfo:m,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,me.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(g,m,null,v)},me.flushSync=function(g){var m=d.T,v=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=m,o.p=v,o.d.f()}},me.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},me.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},me.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,j=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:j}):v==="script"&&o.d.X(g,{crossOrigin:x,integrity:S,fetchPriority:j,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},me.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},me.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin);o.d.L(g,v,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},me.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=p(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},me.requestFormReset=function(g){o.d.r(g)},me.unstable_batchedUpdates=function(g,m){return g(m)},me.useFormState=function(g,m,v){return d.H.useFormState(g,m,v)},me.useFormStatus=function(){return d.H.useHostTransitionStatus()},me.version="19.2.6",me}var n1;function Eb(){if(n1)return Tc.exports;n1=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(),Tc.exports=Ab(),Tc.exports}var a1;function Mb(){if(a1)return Os;a1=1;var a=wb(),i=yf(),l=Eb();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 p(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 m(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"),N=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),U=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),ft=Symbol.iterator;function gt(t){return t===null||typeof t!="object"?null:(t=ft&&t[ft]||t["@@iterator"],typeof t=="function"?t:null)}var Dt=Symbol.for("react.client.reference");function At(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Dt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case B:return"Profiler";case _:return"StrictMode";case $:return"Suspense";case ut:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case U:return t.displayName||"Context";case O:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case W:return e=t.displayName||null,e!==null?e:At(t.type)||"Memo";case Y:e=t._payload,t=t._init;try{return At(t(e))}catch{}}return null}var zt=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ct=[],K=-1;function w(t){return{current:t}}function G(t){0>K||(t.current=ct[K],ct[K]=null,K--)}function F(t,e){K++,ct[K]=t.current,t.current=e}var tt=w(null),st=w(null),ot=w(null),Et=w(null);function ie(t,e){switch(F(ot,e),F(st,t),F(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?v0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=v0(e),t=b0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(tt),F(tt,t)}function yt(){G(tt),G(st),G(ot)}function kn(t){t.memoizedState!==null&&F(Et,t);var e=tt.current,n=b0(e,t.type);e!==n&&(F(st,t),F(tt,n))}function gn(t){st.current===t&&(G(tt),G(st)),Et.current===t&&(G(Et),zs._currentValue=J)}var Ln,Za;function Le(t){if(Ln===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ln=e&&e[1]||"",Za=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Ln+t+Za}var tr=!1;function er(t,e){if(!t||tr)return"";tr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(V){var D=V}Reflect.construct(t,[],q)}else{try{q.call()}catch(V){D=V}t.call(q.prototype)}}else{try{throw Error()}catch(V){D=V}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(V){if(V&&D&&typeof V.stack=="string")return[V.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
+ `),z=b.split(`
5
+ `);for(r=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(s===T.length||r===z.length)for(s=T.length-1,r=z.length-1;1<=s&&0<=r&&T[s]!==z[r];)r--;for(;1<=s&&0<=r;s--,r--)if(T[s]!==z[r]){if(s!==1||r!==1)do if(s--,r--,0>r||T[s]!==z[r]){var k=`
6
+ `+T[s].replace(" at new "," at ");return t.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",t.displayName)),k}while(1<=s&&0<=r);break}}}finally{tr=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Le(n):""}function Py(t,e){switch(t.tag){case 26:case 27:case 5:return Le(t.type);case 16:return Le("Lazy");case 13:return t.child!==e&&e!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return er(t.type,!1);case 11:return er(t.type.render,!1);case 1:return er(t.type,!0);case 31:return Le("Activity");default:return""}}function Ff(t){try{var e="",n=null;do e+=Py(t,n),n=t,t=t.return;while(t);return e}catch(s){return`
7
+ Error generating stack: `+s.message+`
8
+ `+s.stack}}var nr=Object.prototype.hasOwnProperty,ar=a.unstable_scheduleCallback,ir=a.unstable_cancelCallback,$y=a.unstable_shouldYield,Wy=a.unstable_requestPaint,Ee=a.unstable_now,Iy=a.unstable_getCurrentPriorityLevel,Pf=a.unstable_ImmediatePriority,$f=a.unstable_UserBlockingPriority,nl=a.unstable_NormalPriority,tv=a.unstable_LowPriority,Wf=a.unstable_IdlePriority,ev=a.log,nv=a.unstable_setDisableYieldValue,Gi=null,Me=null;function Bn(t){if(typeof ev=="function"&&nv(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(Gi,t)}catch{}}var je=Math.clz32?Math.clz32:sv,av=Math.log,iv=Math.LN2;function sv(t){return t>>>=0,t===0?32:31-(av(t)/iv|0)|0}var al=256,il=262144,sl=4194304;function ba(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 ll(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=ba(s):(h&=b,h!==0?r=ba(h):n||(n=b&~t,n!==0&&(r=ba(n))))):(b=s&~u,b!==0?r=ba(b):h!==0?r=ba(h):n||(n=s&~t,n!==0&&(r=ba(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 qi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function lv(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 If(){var t=sl;return sl<<=1,(sl&62914560)===0&&(sl=4194304),t}function sr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Yi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ov(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,z=t.hiddenUpdates;for(n=h&~n;0<n;){var k=31-je(n),q=1<<k;b[k]=0,T[k]=-1;var D=z[k];if(D!==null)for(z[k]=null,k=0;k<D.length;k++){var V=D[k];V!==null&&(V.lane&=-536870913)}n&=~q}s!==0&&td(t,s,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function td(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 ed(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 nd(t,e){var n=e&-e;return n=(n&42)!==0?1:lr(n),(n&(t.suspendedLanes|e))!==0?0:n}function lr(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 or(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ad(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:q0(t.type))}function id(t,e){var n=Q.p;try{return Q.p=t,e()}finally{Q.p=n}}var Un=Math.random().toString(36).slice(2),oe="__reactFiber$"+Un,ve="__reactProps$"+Un,Qa="__reactContainer$"+Un,rr="__reactEvents$"+Un,rv="__reactListeners$"+Un,uv="__reactHandles$"+Un,sd="__reactResources$"+Un,Xi="__reactMarker$"+Un;function ur(t){delete t[oe],delete t[ve],delete t[rr],delete t[rv],delete t[uv]}function Ka(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=M0(t);t!==null;){if(n=t[oe])return n;t=M0(t)}return e}t=n,n=t.parentNode}return null}function Ja(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 Zi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Fa(t){var e=t[sd];return e||(e=t[sd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[Xi]=!0}var ld=new Set,od={};function xa(t,e){Pa(t,e),Pa(t+"Capture",e)}function Pa(t,e){for(od[t]=e,t=0;t<e.length;t++)ld.add(e[t])}var cv=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]*$"),rd={},ud={};function fv(t){return nr.call(ud,t)?!0:nr.call(rd,t)?!1:cv.test(t)?ud[t]=!0:(rd[t]=!0,!1)}function ol(t,e,n){if(fv(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 rl(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 yn(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 cd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function dv(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 cr(t){if(!t._valueTracker){var e=cd(t)?"checked":"value";t._valueTracker=dv(t,e,""+t[e])}}function fd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),s="";return t&&(s=cd(t)?t.checked?"true":"false":t.value),t=s,t!==n?(e.setValue(t),!0):!1}function ul(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 hv=/[\n"\\]/g;function Ue(t){return t.replace(hv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function fr(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?dr(t,h,Be(e)):n!=null?dr(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 dd(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)){cr(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),cr(t)}function dr(t,e,n){e==="number"&&ul(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function $a(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 hd(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 md(t,e,n,s){if(e==null){if(s!=null){if(n!=null)throw Error(o(92));if(zt(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),cr(t)}function Wa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var mv=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 pd(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||mv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function gd(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&&pd(t,r,s)}else for(var u in e)e.hasOwnProperty(u)&&pd(t,u,e[u])}function hr(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 pv=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"]]),gv=/^[\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 cl(t){return gv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function vn(){}var mr=null;function pr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ia=null,ti=null;function yd(t){var e=Ja(t);if(e&&(t=e.stateNode)){var n=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(fr(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));fr(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&&fd(s)}break t;case"textarea":hd(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&$a(t,!!n.multiple,e,!1)}}}var gr=!1;function vd(t,e,n){if(gr)return t(e,n);gr=!0;try{var s=t(e);return s}finally{if(gr=!1,(Ia!==null||ti!==null)&&($l(),Ia&&(e=Ia,t=ti,ti=Ia=null,yd(e),t)))for(e=0;e<t.length;e++)yd(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 bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yr=!1;if(bn)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){yr=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{yr=!1}var Hn=null,vr=null,fl=null;function bd(){if(fl)return fl;var t,e=vr,n=e.length,s,r="value"in Hn?Hn.value:Hn.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 fl=r.slice(t,1<s?1-s:void 0)}function dl(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 hl(){return!0}function xd(){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)?hl:xd,this.isPropagationStopped=xd,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=hl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),e}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=be(Sa),Ji=x({},Sa,{view:0,detail:0}),yv=be(Ji),br,xr,Fi,pl=x({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tr,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!==Fi&&(Fi&&t.type==="mousemove"?(br=t.screenX-Fi.screenX,xr=t.screenY-Fi.screenY):xr=br=0,Fi=t),br)},movementY:function(t){return"movementY"in t?t.movementY:xr}}),Sd=be(pl),vv=x({},pl,{dataTransfer:0}),bv=be(vv),xv=x({},Ji,{relatedTarget:0}),Sr=be(xv),Sv=x({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),Tv=be(Sv),wv=x({},Sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Av=be(wv),Ev=x({},Sa,{data:0}),Td=be(Ev),Mv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jv={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"},Cv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Cv[t])?!!e[t]:!1}function Tr(){return zv}var Nv=x({},Ji,{key:function(t){if(t.key){var e=Mv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=dl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?jv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tr,charCode:function(t){return t.type==="keypress"?dl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?dl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Dv=be(Nv),Rv=x({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wd=be(Rv),Vv=x({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tr}),Ov=be(Vv),_v=x({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),kv=be(_v),Lv=x({},pl,{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}),Bv=be(Lv),Uv=x({},Sa,{newState:0,oldState:0}),Hv=be(Uv),Gv=[9,13,27,32],wr=bn&&"CompositionEvent"in window,Pi=null;bn&&"documentMode"in document&&(Pi=document.documentMode);var qv=bn&&"TextEvent"in window&&!Pi,Ad=bn&&(!wr||Pi&&8<Pi&&11>=Pi),Ed=" ",Md=!1;function jd(t,e){switch(t){case"keyup":return Gv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ei=!1;function Yv(t,e){switch(t){case"compositionend":return Cd(e);case"keypress":return e.which!==32?null:(Md=!0,Ed);case"textInput":return t=e.data,t===Ed&&Md?null:t;default:return null}}function Xv(t,e){if(ei)return t==="compositionend"||!wr&&jd(t,e)?(t=bd(),fl=vr=Hn=null,ei=!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 Ad&&e.locale!=="ko"?null:e.data;default:return null}}var Zv={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 zd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Zv[t.type]:e==="textarea"}function Nd(t,e,n,s){Ia?ti?ti.push(s):ti=[s]:Ia=s,e=io(e,"onChange"),0<e.length&&(n=new ml("onChange","change",null,n,s),t.push({event:n,listeners:e}))}var $i=null,Wi=null;function Qv(t){d0(t,0)}function gl(t){var e=Zi(t);if(fd(e))return t}function Dd(t,e){if(t==="change")return e}var Rd=!1;if(bn){var Ar;if(bn){var Er="oninput"in document;if(!Er){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Er=typeof Vd.oninput=="function"}Ar=Er}else Ar=!1;Rd=Ar&&(!document.documentMode||9<document.documentMode)}function Od(){$i&&($i.detachEvent("onpropertychange",_d),Wi=$i=null)}function _d(t){if(t.propertyName==="value"&&gl(Wi)){var e=[];Nd(e,Wi,t,pr(t)),vd(Qv,e)}}function Kv(t,e,n){t==="focusin"?(Od(),$i=e,Wi=n,$i.attachEvent("onpropertychange",_d)):t==="focusout"&&Od()}function Jv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return gl(Wi)}function Fv(t,e){if(t==="click")return gl(e)}function Pv(t,e){if(t==="input"||t==="change")return gl(e)}function $v(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ce=typeof Object.is=="function"?Object.is:$v;function Ii(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(!nr.call(e,r)||!Ce(t[r],e[r]))return!1}return!0}function kd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ld(t,e){var n=kd(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=kd(n)}}function Bd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Bd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ud(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ul(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=ul(t.document)}return e}function Mr(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 Wv=bn&&"documentMode"in document&&11>=document.documentMode,ni=null,jr=null,ts=null,Cr=!1;function Hd(t,e,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cr||ni==null||ni!==ul(s)||(s=ni,"selectionStart"in s&&Mr(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}),ts&&Ii(ts,s)||(ts=s,s=io(jr,"onSelect"),0<s.length&&(e=new ml("onSelect","select",null,e,n),t.push({event:e,listeners:s}),e.target=ni)))}function Ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ai={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},zr={},Gd={};bn&&(Gd=document.createElement("div").style,"AnimationEvent"in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),"TransitionEvent"in window||delete ai.transitionend.transition);function wa(t){if(zr[t])return zr[t];if(!ai[t])return t;var e=ai[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Gd)return zr[t]=e[n];return t}var qd=wa("animationend"),Yd=wa("animationiteration"),Xd=wa("animationstart"),Iv=wa("transitionrun"),t2=wa("transitionstart"),e2=wa("transitioncancel"),Zd=wa("transitionend"),Qd=new Map,Nr="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(" ");Nr.push("scrollEnd");function Pe(t,e){Qd.set(t,e),xa(e,[t])}var yl=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=[],ii=0,Dr=0;function vl(){for(var t=ii,e=Dr=ii=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&&Kd(n,r,u)}}function bl(t,e,n,s){He[ii++]=t,He[ii++]=e,He[ii++]=n,He[ii++]=s,Dr|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Rr(t,e,n,s){return bl(t,e,n,s),xl(t)}function Aa(t,e){return bl(t,null,null,e),xl(t)}function Kd(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 xl(t){if(50<Ts)throw Ts=0,Gu=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var si={};function n2(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 ze(t,e,n,s){return new n2(t,e,n,s)}function Vr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function xn(t,e){var n=t.alternate;return n===null?(n=ze(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 Jd(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 Sl(t,e,n,s,r,u){var h=0;if(s=t,typeof t=="function")Vr(t)&&(h=1);else if(typeof t=="string")h=ob(t,n,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=ze(31,n,e,r),t.elementType=Z,t.lanes=u,t;case N:return Ea(n.children,r,u,e);case _:h=8,r|=24;break;case B:return t=ze(12,n,e,r|2),t.elementType=B,t.lanes=u,t;case $:return t=ze(13,n,e,r),t.elementType=$,t.lanes=u,t;case ut:return t=ze(19,n,e,r),t.elementType=ut,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:h=10;break t;case O:h=9;break t;case X:h=11;break t;case W:h=14;break t;case Y:h=16,s=null;break t}h=29,n=Error(o(130,t===null?"null":typeof t,"")),s=null}return e=ze(h,n,e,r),e.elementType=t,e.type=s,e.lanes=u,e}function Ea(t,e,n,s){return t=ze(7,t,s,e),t.lanes=n,t}function Or(t,e,n){return t=ze(6,t,null,e),t.lanes=n,t}function Fd(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function _r(t,e,n){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Pd=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var n=Pd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ff(e)},Pd.set(t,e),e)}return{value:t,source:e,stack:Ff(e)}}var li=[],oi=0,Tl=null,es=0,qe=[],Ye=0,Gn=null,sn=1,ln="";function Sn(t,e){li[oi++]=es,li[oi++]=Tl,Tl=t,es=e}function $d(t,e,n){qe[Ye++]=sn,qe[Ye++]=ln,qe[Ye++]=Gn,Gn=t;var s=sn;t=ln;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,sn=1<<32-je(e)+r|n<<r|s,ln=u+t}else sn=1<<u|n<<r|s,ln=t}function kr(t){t.return!==null&&(Sn(t,1),$d(t,1,0))}function Lr(t){for(;t===Tl;)Tl=li[--oi],li[oi]=null,es=li[--oi],li[oi]=null;for(;t===Gn;)Gn=qe[--Ye],qe[Ye]=null,ln=qe[--Ye],qe[Ye]=null,sn=qe[--Ye],qe[Ye]=null}function Wd(t,e){qe[Ye++]=sn,qe[Ye++]=ln,qe[Ye++]=Gn,sn=e.id,ln=e.overflow,Gn=t}var re=null,Ht=null,Mt=!1,qn=null,Xe=!1,Br=Error(o(519));function Yn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ns(Ge(e,t)),Br}function Id(t){var e=t.stateNode,n=t.type,s=t.memoizedProps;switch(e[oe]=t,e[ve]=s,n){case"dialog":St("cancel",e),St("close",e);break;case"iframe":case"object":case"embed":St("load",e);break;case"video":case"audio":for(n=0;n<As.length;n++)St(As[n],e);break;case"source":St("error",e);break;case"img":case"image":case"link":St("error",e),St("load",e);break;case"details":St("toggle",e);break;case"input":St("invalid",e),dd(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":St("invalid",e);break;case"textarea":St("invalid",e),md(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||g0(e.textContent,n)?(s.popover!=null&&(St("beforetoggle",e),St("toggle",e)),s.onScroll!=null&&St("scroll",e),s.onScrollEnd!=null&&St("scrollend",e),s.onClick!=null&&(e.onclick=vn),e=!0):e=!1,e||Yn(t,!0)}function th(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 ri(t){if(t!==re)return!1;if(!Mt)return th(t),Mt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||nc(t.type,t.memoizedProps)),n=!n),n&&Ht&&Yn(t),th(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ht=E0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ht=E0(t)}else e===27?(e=Ht,aa(t.type)?(t=oc,oc=null,Ht=t):Ht=e):Ht=re?Qe(t.stateNode.nextSibling):null;return!0}function Ma(){Ht=re=null,Mt=!1}function Ur(){var t=qn;return t!==null&&(we===null?we=t:we.push.apply(we,t),qn=null),t}function ns(t){qn===null?qn=[t]:qn.push(t)}var Hr=w(null),ja=null,Tn=null;function Xn(t,e,n){F(Hr,e._currentValue),e._currentValue=n}function wn(t){t._currentValue=Hr.current,G(Hr)}function Gr(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 qr(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),Gr(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),Gr(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 ui(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===Et.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(zs):t=[zs])}r=r.return}t!==null&&qr(e,t,n,s),e.flags|=262144}function wl(t){for(t=t.firstContext;t!==null;){if(!Ce(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ca(t){ja=t,Tn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return eh(ja,t)}function Al(t,e){return ja===null&&Ca(t),eh(t,e)}function eh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Tn===null){if(t===null)throw Error(o(308));Tn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Tn=Tn.next=e;return n}var a2=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()})}},i2=a.unstable_scheduleCallback,s2=a.unstable_NormalPriority,Ft={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yr(){return{controller:new a2,data:new Map,refCount:0}}function as(t){t.refCount--,t.refCount===0&&i2(s2,function(){t.controller.abort()})}var is=null,Xr=0,ci=0,fi=null;function l2(t,e){if(is===null){var n=is=[];Xr=0,ci=Ku(),fi={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Xr++,e.then(nh,nh),e}function nh(){if(--Xr===0&&is!==null){fi!==null&&(fi.status="fulfilled");var t=is;is=null,ci=0,fi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function o2(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 ah=R.S;R.S=function(t,e){Hm=Ee(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&l2(t,e),ah!==null&&ah(t,e)};var za=w(null);function Zr(){var t=za.current;return t!==null?t:Bt.pooledCache}function El(t,e){e===null?F(za,za.current):F(za,e.pool)}function ih(){var t=Zr();return t===null?null:{parent:Ft._currentValue,pool:t}}var di=Error(o(460)),Qr=Error(o(474)),Ml=Error(o(542)),jl={then:function(){}};function sh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function lh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(vn,vn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,rh(t),t;default:if(typeof e.status=="string")e.then(vn,vn);else{if(t=Bt,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,rh(t),t}throw Da=e,di}}function Na(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Da=n,di):n}}var Da=null;function oh(){if(Da===null)throw Error(o(459));var t=Da;return Da=null,t}function rh(t){if(t===di||t===Ml)throw Error(o(483))}var hi=null,ss=0;function Cl(t){var e=ss;return ss+=1,hi===null&&(hi=[]),lh(hi,t,e)}function ls(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function zl(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 uh(t){function e(M,A){if(t){var C=M.deletions;C===null?(M.deletions=[A],M.flags|=16):C.push(A)}}function n(M,A){if(!t)return null;for(;A!==null;)e(M,A),A=A.sibling;return null}function s(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function r(M,A){return M=xn(M,A),M.index=0,M.sibling=null,M}function u(M,A,C){return M.index=C,t?(C=M.alternate,C!==null?(C=C.index,C<A?(M.flags|=67108866,A):C):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function h(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function b(M,A,C,H){return A===null||A.tag!==6?(A=Or(C,M.mode,H),A.return=M,A):(A=r(A,C),A.return=M,A)}function T(M,A,C,H){var lt=C.type;return lt===N?k(M,A,C.props.children,H,C.key):A!==null&&(A.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Y&&Na(lt)===A.type)?(A=r(A,C.props),ls(A,C),A.return=M,A):(A=Sl(C.type,C.key,C.props,null,M.mode,H),ls(A,C),A.return=M,A)}function z(M,A,C,H){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=_r(C,M.mode,H),A.return=M,A):(A=r(A,C.children||[]),A.return=M,A)}function k(M,A,C,H,lt){return A===null||A.tag!==7?(A=Ea(C,M.mode,H,lt),A.return=M,A):(A=r(A,C),A.return=M,A)}function q(M,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Or(""+A,M.mode,C),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return C=Sl(A.type,A.key,A.props,null,M.mode,C),ls(C,A),C.return=M,C;case E:return A=_r(A,M.mode,C),A.return=M,A;case Y:return A=Na(A),q(M,A,C)}if(zt(A)||gt(A))return A=Ea(A,M.mode,C,null),A.return=M,A;if(typeof A.then=="function")return q(M,Cl(A),C);if(A.$$typeof===U)return q(M,Al(M,A),C);zl(M,A)}return null}function D(M,A,C,H){var lt=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return lt!==null?null:b(M,A,""+C,H);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case j:return C.key===lt?T(M,A,C,H):null;case E:return C.key===lt?z(M,A,C,H):null;case Y:return C=Na(C),D(M,A,C,H)}if(zt(C)||gt(C))return lt!==null?null:k(M,A,C,H,null);if(typeof C.then=="function")return D(M,A,Cl(C),H);if(C.$$typeof===U)return D(M,A,Al(M,C),H);zl(M,C)}return null}function V(M,A,C,H,lt){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return M=M.get(C)||null,b(A,M,""+H,lt);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case j:return M=M.get(H.key===null?C:H.key)||null,T(A,M,H,lt);case E:return M=M.get(H.key===null?C:H.key)||null,z(A,M,H,lt);case Y:return H=Na(H),V(M,A,C,H,lt)}if(zt(H)||gt(H))return M=M.get(C)||null,k(A,M,H,lt,null);if(typeof H.then=="function")return V(M,A,C,Cl(H),lt);if(H.$$typeof===U)return V(M,A,C,Al(A,H),lt);zl(A,H)}return null}function nt(M,A,C,H){for(var lt=null,jt=null,it=A,mt=A=0,wt=null;it!==null&&mt<C.length;mt++){it.index>mt?(wt=it,it=null):wt=it.sibling;var Ct=D(M,it,C[mt],H);if(Ct===null){it===null&&(it=wt);break}t&&it&&Ct.alternate===null&&e(M,it),A=u(Ct,A,mt),jt===null?lt=Ct:jt.sibling=Ct,jt=Ct,it=wt}if(mt===C.length)return n(M,it),Mt&&Sn(M,mt),lt;if(it===null){for(;mt<C.length;mt++)it=q(M,C[mt],H),it!==null&&(A=u(it,A,mt),jt===null?lt=it:jt.sibling=it,jt=it);return Mt&&Sn(M,mt),lt}for(it=s(it);mt<C.length;mt++)wt=V(it,M,mt,C[mt],H),wt!==null&&(t&&wt.alternate!==null&&it.delete(wt.key===null?mt:wt.key),A=u(wt,A,mt),jt===null?lt=wt:jt.sibling=wt,jt=wt);return t&&it.forEach(function(ra){return e(M,ra)}),Mt&&Sn(M,mt),lt}function rt(M,A,C,H){if(C==null)throw Error(o(151));for(var lt=null,jt=null,it=A,mt=A=0,wt=null,Ct=C.next();it!==null&&!Ct.done;mt++,Ct=C.next()){it.index>mt?(wt=it,it=null):wt=it.sibling;var ra=D(M,it,Ct.value,H);if(ra===null){it===null&&(it=wt);break}t&&it&&ra.alternate===null&&e(M,it),A=u(ra,A,mt),jt===null?lt=ra:jt.sibling=ra,jt=ra,it=wt}if(Ct.done)return n(M,it),Mt&&Sn(M,mt),lt;if(it===null){for(;!Ct.done;mt++,Ct=C.next())Ct=q(M,Ct.value,H),Ct!==null&&(A=u(Ct,A,mt),jt===null?lt=Ct:jt.sibling=Ct,jt=Ct);return Mt&&Sn(M,mt),lt}for(it=s(it);!Ct.done;mt++,Ct=C.next())Ct=V(it,M,mt,Ct.value,H),Ct!==null&&(t&&Ct.alternate!==null&&it.delete(Ct.key===null?mt:Ct.key),A=u(Ct,A,mt),jt===null?lt=Ct:jt.sibling=Ct,jt=Ct);return t&&it.forEach(function(vb){return e(M,vb)}),Mt&&Sn(M,mt),lt}function Lt(M,A,C,H){if(typeof C=="object"&&C!==null&&C.type===N&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case j:t:{for(var lt=C.key;A!==null;){if(A.key===lt){if(lt=C.type,lt===N){if(A.tag===7){n(M,A.sibling),H=r(A,C.props.children),H.return=M,M=H;break t}}else if(A.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Y&&Na(lt)===A.type){n(M,A.sibling),H=r(A,C.props),ls(H,C),H.return=M,M=H;break t}n(M,A);break}else e(M,A);A=A.sibling}C.type===N?(H=Ea(C.props.children,M.mode,H,C.key),H.return=M,M=H):(H=Sl(C.type,C.key,C.props,null,M.mode,H),ls(H,C),H.return=M,M=H)}return h(M);case E:t:{for(lt=C.key;A!==null;){if(A.key===lt)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(M,A.sibling),H=r(A,C.children||[]),H.return=M,M=H;break t}else{n(M,A);break}else e(M,A);A=A.sibling}H=_r(C,M.mode,H),H.return=M,M=H}return h(M);case Y:return C=Na(C),Lt(M,A,C,H)}if(zt(C))return nt(M,A,C,H);if(gt(C)){if(lt=gt(C),typeof lt!="function")throw Error(o(150));return C=lt.call(C),rt(M,A,C,H)}if(typeof C.then=="function")return Lt(M,A,Cl(C),H);if(C.$$typeof===U)return Lt(M,A,Al(M,C),H);zl(M,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(M,A.sibling),H=r(A,C),H.return=M,M=H):(n(M,A),H=Or(C,M.mode,H),H.return=M,M=H),h(M)):n(M,A)}return function(M,A,C,H){try{ss=0;var lt=Lt(M,A,C,H);return hi=null,lt}catch(it){if(it===di||it===Ml)throw it;var jt=ze(29,it,null,M.mode);return jt.lanes=H,jt.return=M,jt}}}var Ra=uh(!0),ch=uh(!1),Zn=!1;function Kr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jr(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 Kn(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=xl(t),Kd(t,null,n),e}return bl(t,s,e,n),xl(t)}function os(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,ed(t,n)}}function Fr(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 Pr=!1;function rs(){if(Pr){var t=fi;if(t!==null)throw t}}function us(t,e,n,s){Pr=!1;var r=t.updateQueue;Zn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,z=T.next;T.next=null,h===null?u=z:h.next=z,h=T;var k=t.alternate;k!==null&&(k=k.updateQueue,b=k.lastBaseUpdate,b!==h&&(b===null?k.firstBaseUpdate=z:b.next=z,k.lastBaseUpdate=T))}if(u!==null){var q=r.baseState;h=0,k=z=T=null,b=u;do{var D=b.lane&-536870913,V=D!==b.lane;if(V?(Tt&D)===D:(s&D)===D){D!==0&&D===ci&&(Pr=!0),k!==null&&(k=k.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var nt=t,rt=b;D=e;var Lt=n;switch(rt.tag){case 1:if(nt=rt.payload,typeof nt=="function"){q=nt.call(Lt,q,D);break t}q=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=rt.payload,D=typeof nt=="function"?nt.call(Lt,q,D):nt,D==null)break t;q=x({},q,D);break t;case 2:Zn=!0}}D=b.callback,D!==null&&(t.flags|=64,V&&(t.flags|=8192),V=r.callbacks,V===null?r.callbacks=[D]:V.push(D))}else V={lane:D,tag:b.tag,payload:b.payload,callback:b.callback,next:null},k===null?(z=k=V,T=q):k=k.next=V,h|=D;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;V=b,b=V.next,V.next=null,r.lastBaseUpdate=V,r.shared.pending=null}}while(!0);k===null&&(T=q),r.baseState=T,r.firstBaseUpdate=z,r.lastBaseUpdate=k,u===null&&(r.shared.lanes=0),Wn|=h,t.lanes=h,t.memoizedState=q}}function fh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function dh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)fh(n[t],e)}var mi=w(null),Nl=w(0);function hh(t,e){t=Rn,F(Nl,t),F(mi,e),Rn=t|e.baseLanes}function $r(){F(Nl,Rn),F(mi,mi.current)}function Wr(){Rn=Nl.current,G(mi),G(Nl)}var Ne=w(null),Ze=null;function Jn(t){var e=t.alternate;F(Kt,Kt.current&1),F(Ne,t),Ze===null&&(e===null||mi.current!==null||e.memoizedState!==null)&&(Ze=t)}function Ir(t){F(Kt,Kt.current),F(Ne,t),Ze===null&&(Ze=t)}function mh(t){t.tag===22?(F(Kt,Kt.current),F(Ne,t),Ze===null&&(Ze=t)):Fn()}function Fn(){F(Kt,Kt.current),F(Ne,Ne.current)}function De(t){G(Ne),Ze===t&&(Ze=null),G(Kt)}var Kt=w(0);function Dl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sc(n)||lc(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 An=0,ht=null,_t=null,Pt=null,Rl=!1,pi=!1,Va=!1,Vl=0,cs=0,gi=null,r2=0;function Xt(){throw Error(o(321))}function tu(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 eu(t,e,n,s,r,u){return An=u,ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?$h:gu,Va=!1,u=n(s,r),Va=!1,pi&&(u=gh(e,n,s,r)),ph(t),u}function ph(t){R.H=hs;var e=_t!==null&&_t.next!==null;if(An=0,Pt=_t=ht=null,Rl=!1,cs=0,gi=null,e)throw Error(o(300));t===null||$t||(t=t.dependencies,t!==null&&wl(t)&&($t=!0))}function gh(t,e,n,s){ht=t;var r=0;do{if(pi&&(gi=null),cs=0,pi=!1,25<=r)throw Error(o(301));if(r+=1,Pt=_t=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=Wh,u=e(n,s)}while(pi);return u}function u2(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?fs(e):e,t=t.useState()[0],(_t!==null?_t.memoizedState:null)!==t&&(ht.flags|=1024),e}function nu(){var t=Vl!==0;return Vl=0,t}function au(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function iu(t){if(Rl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Rl=!1}An=0,Pt=_t=ht=null,pi=!1,cs=Vl=0,gi=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?ht.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Jt(){if(_t===null){var t=ht.alternate;t=t!==null?t.memoizedState:null}else t=_t.next;var e=Pt===null?ht.memoizedState:Pt.next;if(e!==null)Pt=e,_t=t;else{if(t===null)throw ht.alternate===null?Error(o(467)):Error(o(310));_t=t,t={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},Pt===null?ht.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Ol(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fs(t){var e=cs;return cs+=1,gi===null&&(gi=[]),t=lh(gi,t,e),e=ht,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?$h:gu),t}function _l(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return fs(t);if(t.$$typeof===U)return ue(t)}throw Error(o(438,String(t)))}function su(t){var e=null,n=ht.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var s=ht.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=Ol(),ht.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]=I;return e.index++,n}function En(t,e){return typeof e=="function"?e(t):e}function kl(t){var e=Jt();return lu(e,_t,t)}function lu(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,z=e,k=!1;do{var q=z.lane&-536870913;if(q!==z.lane?(Tt&q)===q:(An&q)===q){var D=z.revertLane;if(D===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),q===ci&&(k=!0);else if((An&D)===D){z=z.next,D===ci&&(k=!0);continue}else q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(b=T=q,h=u):T=T.next=q,ht.lanes|=D,Wn|=D;q=z.action,Va&&n(u,q),u=z.hasEagerState?z.eagerState:n(u,q)}else D={lane:q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(b=T=D,h=u):T=T.next=D,ht.lanes|=q,Wn|=q;z=z.next}while(z!==null&&z!==e);if(T===null?h=u:T.next=b,!Ce(u,t.memoizedState)&&($t=!0,k&&(n=fi,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 ou(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 yh(t,e,n){var s=ht,r=Jt(),u=Mt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var h=!Ce((_t||r).memoizedState,n);if(h&&(r.memoizedState=n,$t=!0),r=r.queue,cu(xh.bind(null,s,r,t),[t]),r.getSnapshot!==e||h||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,yi(9,{destroy:void 0},bh.bind(null,s,r,n,e),null),Bt===null)throw Error(o(349));u||(An&127)!==0||vh(s,e,n)}return n}function vh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ht.updateQueue,e===null?(e=Ol(),ht.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function bh(t,e,n,s){e.value=n,e.getSnapshot=s,Sh(e)&&Th(t)}function xh(t,e,n){return n(function(){Sh(e)&&Th(t)})}function Sh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ce(t,n)}catch{return!0}}function Th(t){var e=Aa(t,2);e!==null&&Ae(e,t,2)}function ru(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),Va){Bn(!0);try{n()}finally{Bn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:t},e}function wh(t,e,n,s){return t.baseState=n,lu(t,_t,typeof s=="function"?s:En)}function c2(t,e,n,s,r){if(Ul(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,Ah(e,u)):(u.next=n.next,e.pending=n.next=u)}}function Ah(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),Eh(t,e,b)}catch(z){uu(t,e,z)}finally{u!==null&&h.types!==null&&(u.types=h.types),R.T=u}}else try{u=n(r,s),Eh(t,e,u)}catch(z){uu(t,e,z)}}function Eh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){Mh(t,e,s)},function(s){return uu(t,e,s)}):Mh(t,e,n)}function Mh(t,e,n){e.status="fulfilled",e.value=n,jh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Ah(t,n)))}function uu(t,e,n){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=n,jh(e),e=e.next;while(e!==s)}t.action=null}function jh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ch(t,e){return e}function zh(t,e){if(Mt){var n=Bt.formState;if(n!==null){t:{var s=ht;if(Mt){if(Ht){e:{for(var r=Ht,u=Xe;r.nodeType!==8;){if(!u){r=null;break e}if(r=Qe(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Ht=Qe(r.nextSibling),s=r.data==="F!";break t}}Yn(s)}s=!1}s&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:e},n.queue=s,n=Jh.bind(null,ht,s),s.dispatch=n,s=ru(!1),u=pu.bind(null,ht,!1,s.queue),s=pe(),r={state:e,dispatch:null,action:t,pending:null},s.queue=r,n=c2.bind(null,ht,r,u,n),r.dispatch=n,s.memoizedState=t,[e,n,!1]}function Nh(t){var e=Jt();return Dh(e,_t,t)}function Dh(t,e,n){if(e=lu(t,e,Ch)[0],t=kl(En)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=fs(e)}catch(h){throw h===di?Ml:h}else s=e;e=Jt();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(ht.flags|=2048,yi(9,{destroy:void 0},f2.bind(null,r,n),null)),[s,u,t]}function f2(t,e){t.action=e}function Rh(t){var e=Jt(),n=_t;if(n!==null)return Dh(e,n,t);Jt(),e=e.memoizedState,n=Jt();var s=n.queue.dispatch;return n.memoizedState=t,[e,s,!1]}function yi(t,e,n,s){return t={tag:t,create:n,deps:s,inst:e,next:null},e=ht.updateQueue,e===null&&(e=Ol(),ht.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 Vh(){return Jt().memoizedState}function Ll(t,e,n,s){var r=pe();ht.flags|=t,r.memoizedState=yi(1|e,{destroy:void 0},n,s===void 0?null:s)}function Bl(t,e,n,s){var r=Jt();s=s===void 0?null:s;var u=r.memoizedState.inst;_t!==null&&s!==null&&tu(s,_t.memoizedState.deps)?r.memoizedState=yi(e,u,n,s):(ht.flags|=t,r.memoizedState=yi(1|e,u,n,s))}function Oh(t,e){Ll(8390656,8,t,e)}function cu(t,e){Bl(2048,8,t,e)}function d2(t){ht.flags|=4;var e=ht.updateQueue;if(e===null)e=Ol(),ht.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function _h(t){var e=Jt().memoizedState;return d2({ref:e,nextImpl:t}),function(){if((Nt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function kh(t,e){return Bl(4,2,t,e)}function Lh(t,e){return Bl(4,4,t,e)}function Bh(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 Uh(t,e,n){n=n!=null?n.concat([t]):null,Bl(4,4,Bh.bind(null,e,t),n)}function fu(){}function Hh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;return e!==null&&tu(e,s[1])?s[0]:(n.memoizedState=[t,e],t)}function Gh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;if(e!==null&&tu(e,s[1]))return s[0];if(s=t(),Va){Bn(!0);try{t()}finally{Bn(!1)}}return n.memoizedState=[s,e],s}function du(t,e,n){return n===void 0||(An&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=qm(),ht.lanes|=t,Wn|=t,n)}function qh(t,e,n,s){return Ce(n,e)?n:mi.current!==null?(t=du(t,n,s),Ce(t,e)||($t=!0),t):(An&42)===0||(An&1073741824)!==0&&(Tt&261930)===0?($t=!0,t.memoizedState=n):(t=qm(),ht.lanes|=t,Wn|=t,e)}function Yh(t,e,n,s,r){var u=Q.p;Q.p=u!==0&&8>u?u:8;var h=R.T,b={};R.T=b,pu(t,!1,e,n);try{var T=r(),z=R.S;if(z!==null&&z(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var k=o2(T,s);ds(t,e,k,Oe(t))}else ds(t,e,s,Oe(t))}catch(q){ds(t,e,{then:function(){},status:"rejected",reason:q},Oe())}finally{Q.p=u,h!==null&&b.types!==null&&(h.types=b.types),R.T=h}}function h2(){}function hu(t,e,n,s){if(t.tag!==5)throw Error(o(476));var r=Xh(t).queue;Yh(t,r,e,J,n===null?h2:function(){return Zh(t),n(s)})}function Xh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:J},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Zh(t){var e=Xh(t);e.next===null&&(e=t.alternate.memoizedState),ds(t,e.next.queue,{},Oe())}function mu(){return ue(zs)}function Qh(){return Jt().memoizedState}function Kh(){return Jt().memoizedState}function m2(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Oe();t=Qn(n);var s=Kn(e,t,n);s!==null&&(Ae(s,e,n),os(s,e,n)),e={cache:Yr()},t.payload=e;return}e=e.return}}function p2(t,e,n){var s=Oe();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ul(t)?Fh(e,n):(n=Rr(t,e,n,s),n!==null&&(Ae(n,t,s),Ph(n,e,s)))}function Jh(t,e,n){var s=Oe();ds(t,e,n,s)}function ds(t,e,n,s){var r={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ul(t))Fh(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 bl(t,e,r,0),Bt===null&&vl(),!1}catch{}if(n=Rr(t,e,r,s),n!==null)return Ae(n,t,s),Ph(n,e,s),!0}return!1}function pu(t,e,n,s){if(s={lane:2,revertLane:Ku(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ul(t)){if(e)throw Error(o(479))}else e=Rr(t,n,s,2),e!==null&&Ae(e,t,2)}function Ul(t){var e=t.alternate;return t===ht||e!==null&&e===ht}function Fh(t,e){pi=Rl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Ph(t,e,n){if((n&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,ed(t,n)}}var hs={readContext:ue,use:_l,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};hs.useEffectEvent=Xt;var $h={readContext:ue,use:_l,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:Oh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ll(4194308,4,Bh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ll(4194308,4,t,e)},useInsertionEffect:function(t,e){Ll(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var s=t();if(Va){Bn(!0);try{t()}finally{Bn(!1)}}return n.memoizedState=[s,e],s},useReducer:function(t,e,n){var s=pe();if(n!==void 0){var r=n(e);if(Va){Bn(!0);try{n(e)}finally{Bn(!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=p2.bind(null,ht,t),[s.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=ru(t);var e=t.queue,n=Jh.bind(null,ht,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:fu,useDeferredValue:function(t,e){var n=pe();return du(n,t,e)},useTransition:function(){var t=ru(!1);return t=Yh.bind(null,ht,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var s=ht,r=pe();if(Mt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Bt===null)throw Error(o(349));(Tt&127)!==0||vh(s,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,Oh(xh.bind(null,s,u,t),[t]),s.flags|=2048,yi(9,{destroy:void 0},bh.bind(null,s,u,n,e),null),n},useId:function(){var t=pe(),e=Bt.identifierPrefix;if(Mt){var n=ln,s=sn;n=(s&~(1<<32-je(s)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Vl++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=r2++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:mu,useFormState:zh,useActionState:zh,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=pu.bind(null,ht,!0,n),n.dispatch=e,[t,e]},useMemoCache:su,useCacheRefresh:function(){return pe().memoizedState=m2.bind(null,ht)},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)}}},gu={readContext:ue,use:_l,useCallback:Hh,useContext:ue,useEffect:cu,useImperativeHandle:Uh,useInsertionEffect:kh,useLayoutEffect:Lh,useMemo:Gh,useReducer:kl,useRef:Vh,useState:function(){return kl(En)},useDebugValue:fu,useDeferredValue:function(t,e){var n=Jt();return qh(n,_t.memoizedState,t,e)},useTransition:function(){var t=kl(En)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:fs(t),e]},useSyncExternalStore:yh,useId:Qh,useHostTransitionStatus:mu,useFormState:Nh,useActionState:Nh,useOptimistic:function(t,e){var n=Jt();return wh(n,_t,t,e)},useMemoCache:su,useCacheRefresh:Kh};gu.useEffectEvent=_h;var Wh={readContext:ue,use:_l,useCallback:Hh,useContext:ue,useEffect:cu,useImperativeHandle:Uh,useInsertionEffect:kh,useLayoutEffect:Lh,useMemo:Gh,useReducer:ou,useRef:Vh,useState:function(){return ou(En)},useDebugValue:fu,useDeferredValue:function(t,e){var n=Jt();return _t===null?du(n,t,e):qh(n,_t.memoizedState,t,e)},useTransition:function(){var t=ou(En)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:fs(t),e]},useSyncExternalStore:yh,useId:Qh,useHostTransitionStatus:mu,useFormState:Rh,useActionState:Rh,useOptimistic:function(t,e){var n=Jt();return _t!==null?wh(n,_t,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:su,useCacheRefresh:Kh};Wh.useEffectEvent=_h;function yu(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 vu={enqueueSetState:function(t,e,n){t=t._reactInternals;var s=Oe(),r=Qn(s);r.payload=e,n!=null&&(r.callback=n),e=Kn(t,r,s),e!==null&&(Ae(e,t,s),os(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var s=Oe(),r=Qn(s);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Kn(t,r,s),e!==null&&(Ae(e,t,s),os(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Oe(),s=Qn(n);s.tag=2,e!=null&&(s.callback=e),e=Kn(t,s,n),e!==null&&(Ae(e,t,n),os(e,t,n))}};function Ih(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?!Ii(n,s)||!Ii(r,u):!0}function tm(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&&vu.enqueueReplaceState(e,e.state,null)}function Oa(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 em(t){yl(t)}function nm(t){console.error(t)}function am(t){yl(t)}function Hl(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function im(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 bu(t,e,n){return n=Qn(n),n.tag=3,n.payload={element:null},n.callback=function(){Hl(t,e)},n}function sm(t){return t=Qn(t),t.tag=3,t}function lm(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(){im(e,n,s)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){im(e,n,s),typeof r!="function"&&(In===null?In=new Set([this]):In.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function g2(t,e,n,s,r){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=n.alternate,e!==null&&ui(e,n,r,!0),n=Ne.current,n!==null){switch(n.tag){case 31:case 13:return Ze===null?Wl():n.alternate===null&&Zt===0&&(Zt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,s===jl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([s]):e.add(s),Xu(t,s,r)),!1;case 22:return n.flags|=65536,s===jl?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)),Xu(t,s,r)),!1}throw Error(o(435,n.tag))}return Xu(t,s,r),Wl(),!1}if(Mt)return e=Ne.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,s!==Br&&(t=Error(o(422),{cause:s}),ns(Ge(t,n)))):(s!==Br&&(e=Error(o(423),{cause:s}),ns(Ge(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,s=Ge(s,n),r=bu(t.stateNode,s,r),Fr(t,r),Zt!==4&&(Zt=2)),!1;var u=Error(o(520),{cause:s});if(u=Ge(u,n),Ss===null?Ss=[u]:Ss.push(u),Zt!==4&&(Zt=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=bu(n.stateNode,s,t),Fr(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"&&(In===null||!In.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=sm(r),lm(r,t,n,s),Fr(n,r),!1}n=n.return}while(n!==null);return!1}var xu=Error(o(461)),$t=!1;function ce(t,e,n,s){e.child=t===null?ch(e,null,n,s):Ra(e,t.child,n,s)}function om(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 Ca(e),s=eu(t,e,n,h,u,r),b=nu(),t!==null&&!$t?(au(t,e,r),Mn(t,e,r)):(Mt&&b&&kr(e),e.flags|=1,ce(t,e,s,r),e.child)}function rm(t,e,n,s,r){if(t===null){var u=n.type;return typeof u=="function"&&!Vr(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,um(t,e,u,s,r)):(t=Sl(n.type,null,s,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Cu(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ii,n(h,s)&&t.ref===e.ref)return Mn(t,e,r)}return e.flags|=1,t=xn(u,s),t.ref=e.ref,t.return=e,e.child=t}function um(t,e,n,s,r){if(t!==null){var u=t.memoizedProps;if(Ii(u,s)&&t.ref===e.ref)if($t=!1,e.pendingProps=s=u,Cu(t,r))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,Mn(t,e,r)}return Su(t,e,n,s,r)}function cm(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 fm(t,e,u,n,s)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&El(e,u!==null?u.cachePool:null),u!==null?hh(e,u):$r(),mh(e);else return s=e.lanes=536870912,fm(t,e,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(El(e,u.cachePool),hh(e,u),Fn(),e.memoizedState=null):(t!==null&&El(e,null),$r(),Fn());return ce(t,e,r,n),e.child}function ms(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function fm(t,e,n,s,r){var u=Zr();return u=u===null?null:{parent:Ft._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&El(e,null),$r(),mh(e),t!==null&&ui(t,e,s,!0),e.childLanes=r,null}function Gl(t,e){return e=Yl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function dm(t,e,n){return Ra(e,t.child,null,n),t=Gl(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function y2(t,e,n){var s=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Mt){if(s.mode==="hidden")return t=Gl(e,s),e.lanes=536870912,ms(null,t);if(Ir(e),(t=Ht)?(t=A0(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Fd(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw Yn(e);return e.lanes=536870912,null}return Gl(e,s)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(Ir(e),r)if(e.flags&256)e.flags&=-257,e=dm(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||ui(t,e,n,!1),r=(n&t.childLanes)!==0,$t||r){if(s=Bt,s!==null&&(h=nd(s,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Aa(t,h),Ae(s,t,h),xu;Wl(),e=dm(t,e,n)}else t=u.treeContext,Ht=Qe(h.nextSibling),re=e,Mt=!0,qn=null,Xe=!1,t!==null&&Wd(e,t),e=Gl(e,s),e.flags|=4096;return e}return t=xn(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ql(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 Su(t,e,n,s,r){return Ca(e),n=eu(t,e,n,s,void 0,r),s=nu(),t!==null&&!$t?(au(t,e,r),Mn(t,e,r)):(Mt&&s&&kr(e),e.flags|=1,ce(t,e,n,r),e.child)}function hm(t,e,n,s,r,u){return Ca(e),e.updateQueue=null,n=gh(e,s,n,r),ph(t),s=nu(),t!==null&&!$t?(au(t,e,u),Mn(t,e,u)):(Mt&&s&&kr(e),e.flags|=1,ce(t,e,n,u),e.child)}function mm(t,e,n,s,r){if(Ca(e),e.stateNode===null){var u=si,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=vu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},Kr(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?ue(h):si,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(yu(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&&vu.enqueueReplaceState(u,u.state,null),us(e,s,u,r),rs(),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=Oa(n,b);u.props=T;var z=u.context,k=n.contextType;h=si,typeof k=="object"&&k!==null&&(h=ue(k));var q=n.getDerivedStateFromProps;k=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||z!==h)&&tm(e,u,s,h),Zn=!1;var D=e.memoizedState;u.state=D,us(e,s,u,r),rs(),z=e.memoizedState,b||D!==z||Zn?(typeof q=="function"&&(yu(e,n,q,s),z=e.memoizedState),(T=Zn||Ih(e,n,T,s,D,z,h))?(k||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=z),u.props=s,u.state=z,u.context=h,s=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,Jr(t,e),h=e.memoizedProps,k=Oa(n,h),u.props=k,q=e.pendingProps,D=u.context,z=n.contextType,T=si,typeof z=="object"&&z!==null&&(T=ue(z)),b=n.getDerivedStateFromProps,(z=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==q||D!==T)&&tm(e,u,s,T),Zn=!1,D=e.memoizedState,u.state=D,us(e,s,u,r),rs();var V=e.memoizedState;h!==q||D!==V||Zn||t!==null&&t.dependencies!==null&&wl(t.dependencies)?(typeof b=="function"&&(yu(e,n,b,s),V=e.memoizedState),(k=Zn||Ih(e,n,k,s,D,V,T)||t!==null&&t.dependencies!==null&&wl(t.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,V,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,V,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=V),u.props=s,u.state=V,u.context=T,s=k):(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,ql(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=Ra(e,t.child,null,r),e.child=Ra(e,null,n,r)):ce(t,e,n,r),e.memoizedState=u.state,t=e.child):t=Mn(t,e,r),t}function pm(t,e,n,s){return Ma(),e.flags|=256,ce(t,e,n,s),e.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wu(t){return{baseLanes:t,cachePool:ih()}}function Au(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function gm(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(Mt){if(r?Jn(e):Fn(),(t=Ht)?(t=A0(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Fd(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw Yn(e);return lc(t)?e.lanes=32:e.lanes=536870912,null}var b=s.children;return s=s.fallback,r?(Fn(),r=e.mode,b=Yl({mode:"hidden",children:b},r),s=Ea(s,r,n,null),b.return=e,s.return=e,b.sibling=s,e.child=b,s=e.child,s.memoizedState=wu(n),s.childLanes=Au(t,h,n),e.memoizedState=Tu,ms(null,s)):(Jn(e),Eu(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(u)e.flags&256?(Jn(e),e.flags&=-257,e=Mu(t,e,n)):e.memoizedState!==null?(Fn(),e.child=t.child,e.flags|=128,e=null):(Fn(),b=s.fallback,r=e.mode,s=Yl({mode:"visible",children:s.children},r),b=Ea(b,r,n,null),b.flags|=2,s.return=e,b.return=e,s.sibling=b,e.child=s,Ra(e,t.child,null,n),s=e.child,s.memoizedState=wu(n),s.childLanes=Au(t,h,n),e.memoizedState=Tu,e=ms(null,s));else if(Jn(e),lc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var z=h.dgst;h=z,s=Error(o(419)),s.stack="",s.digest=h,ns({value:s,source:null,stack:null}),e=Mu(t,e,n)}else if($t||ui(t,e,n,!1),h=(n&t.childLanes)!==0,$t||h){if(h=Bt,h!==null&&(s=nd(h,n),s!==0&&s!==T.retryLane))throw T.retryLane=s,Aa(t,s),Ae(h,t,s),xu;sc(b)||Wl(),e=Mu(t,e,n)}else sc(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ht=Qe(b.nextSibling),re=e,Mt=!0,qn=null,Xe=!1,t!==null&&Wd(e,t),e=Eu(e,s.children),e.flags|=4096);return e}return r?(Fn(),b=s.fallback,r=e.mode,T=t.child,z=T.sibling,s=xn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,z!==null?b=xn(z,b):(b=Ea(b,r,n,null),b.flags|=2),b.return=e,s.return=e,s.sibling=b,e.child=s,ms(null,s),s=e.child,b=t.child.memoizedState,b===null?b=wu(n):(r=b.cachePool,r!==null?(T=Ft._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=ih(),b={baseLanes:b.baseLanes|n,cachePool:r}),s.memoizedState=b,s.childLanes=Au(t,h,n),e.memoizedState=Tu,ms(t.child,s)):(Jn(e),n=t.child,t=n.sibling,n=xn(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 Eu(t,e){return e=Yl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Yl(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function Mu(t,e,n){return Ra(e,t.child,null,n),t=Eu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ym(t,e,n){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),Gr(t.return,e,n)}function ju(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 vm(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,F(Kt,h),ce(t,e,s,n),s=Mt?es:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ym(t,n,e);else if(t.tag===19)ym(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&&Dl(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),ju(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&&Dl(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}ju(e,!0,n,null,u,s);break;case"together":ju(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function Mn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Wn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ui(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=xn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=xn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Cu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&wl(t)))}function v2(t,e,n){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),Xn(e,Ft,t.memoizedState.cache),Ma();break;case 27:case 5:kn(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:Xn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ir(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(Jn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?gm(t,e,n):(Jn(e),t=Mn(t,e,n),t!==null?t.sibling:null);Jn(e);break;case 19:var r=(t.flags&128)!==0;if(s=(n&e.childLanes)!==0,s||(ui(t,e,n,!1),s=(n&e.childLanes)!==0),r){if(s)return vm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),F(Kt,Kt.current),s)break;return null;case 22:return e.lanes=0,cm(t,e,n,e.pendingProps);case 24:Xn(e,Ft,t.memoizedState.cache)}return Mn(t,e,n)}function bm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!Cu(t,n)&&(e.flags&128)===0)return $t=!1,v2(t,e,n);$t=(t.flags&131072)!==0}else $t=!1,Mt&&(e.flags&1048576)!==0&&$d(e,es,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=Na(e.elementType),e.type=t,typeof t=="function")Vr(t)?(s=Oa(t,s),e.tag=1,e=mm(null,e,t,s,n)):(e.tag=0,e=Su(null,e,t,s,n));else{if(t!=null){var r=t.$$typeof;if(r===X){e.tag=11,e=om(null,e,t,s,n);break t}else if(r===W){e.tag=14,e=rm(null,e,t,s,n);break t}}throw e=At(t)||t,Error(o(306,e,""))}}return e;case 0:return Su(t,e,e.type,e.pendingProps,n);case 1:return s=e.type,r=Oa(s,e.pendingProps),mm(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,Jr(t,e),us(e,s,null,n);var h=e.memoizedState;if(s=h.cache,Xn(e,Ft,s),s!==u.cache&&qr(e,[Ft],n,!0),rs(),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=pm(t,e,s,n);break t}else if(s!==r){r=Ge(Error(o(424)),e),ns(r),e=pm(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,Ht=Qe(t.firstChild),re=e,Mt=!0,qn=null,Xe=!0,n=ch(e,null,s,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ma(),s===r){e=Mn(t,e,n);break t}ce(t,e,s,n)}e=e.child}return e;case 26:return ql(t,e),t===null?(n=N0(e.type,null,e.pendingProps,null))?e.memoizedState=n:Mt||(n=e.type,t=e.pendingProps,s=so(ot.current).createElement(n),s[oe]=e,s[ve]=t,fe(s,n,t),se(s),e.stateNode=s):e.memoizedState=N0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return kn(e),t===null&&Mt&&(s=e.stateNode=j0(e.type,e.pendingProps,ot.current),re=e,Xe=!0,r=Ht,aa(e.type)?(oc=r,Ht=Qe(s.firstChild)):Ht=r),ce(t,e,e.pendingProps.children,n),ql(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Mt&&((r=s=Ht)&&(s=J2(s,e.type,e.pendingProps,Xe),s!==null?(e.stateNode=s,re=e,Ht=Qe(s.firstChild),Xe=!1,r=!0):r=!1),r||Yn(e)),kn(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,s=u.children,nc(r,u)?s=null:h!==null&&nc(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=eu(t,e,u2,null,null,n),zs._currentValue=r),ql(t,e),ce(t,e,s,n),e.child;case 6:return t===null&&Mt&&((t=n=Ht)&&(n=F2(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,re=e,Ht=null,t=!0):t=!1),t||Yn(e)),null;case 13:return gm(t,e,n);case 4:return ie(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=Ra(e,null,s,n):ce(t,e,s,n),e.child;case 11:return om(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,Xn(e,e.type,s.value),ce(t,e,s.children,n),e.child;case 9:return r=e.type._context,s=e.pendingProps.children,Ca(e),r=ue(r),s=s(r),e.flags|=1,ce(t,e,s,n),e.child;case 14:return rm(t,e,e.type,e.pendingProps,n);case 15:return um(t,e,e.type,e.pendingProps,n);case 19:return vm(t,e,n);case 31:return y2(t,e,n);case 22:return cm(t,e,n,e.pendingProps);case 24:return Ca(e),s=ue(Ft),t===null?(r=Zr(),r===null&&(r=Bt,u=Yr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:s,cache:r},Kr(e),Xn(e,Ft,r)):((t.lanes&n)!==0&&(Jr(t,e),us(e,null,null,n),rs()),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),Xn(e,Ft,s)):(s=u.cache,Xn(e,Ft,s),s!==r.cache&&qr(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 jn(t){t.flags|=4}function zu(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(Qm())t.flags|=8192;else throw Da=jl,Qr}else t.flags&=-16777217}function xm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_0(e))if(Qm())t.flags|=8192;else throw Da=jl,Qr}function Xl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?If():536870912,t.lanes|=e,Si|=e)}function ps(t,e){if(!Mt)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 Gt(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 b2(t,e,n){var s=e.pendingProps;switch(Lr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(e),null;case 1:return Gt(e),null;case 3:return n=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),wn(Ft),yt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ri(e)?jn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ur())),Gt(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(jn(e),u!==null?(Gt(e),xm(e,u)):(Gt(e),zu(e,r,null,s,n))):u?u!==t.memoizedState?(jn(e),Gt(e),xm(e,u)):(Gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&jn(e),Gt(e),zu(e,r,t,s,n)),null;case 27:if(gn(e),n=ot.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&jn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Gt(e),null}t=tt.current,ri(e)?Id(e):(t=j0(r,s,n),e.stateNode=t,jn(e))}return Gt(e),null;case 5:if(gn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&jn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Gt(e),null}if(u=tt.current,ri(e))Id(e);else{var h=so(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&&jn(e)}}return Gt(e),zu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&jn(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(o(166));if(t=ot.current,ri(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||g0(t.nodeValue,n)),t||Yn(e,!0)}else t=so(t).createTextNode(s),t[oe]=e,e.stateNode=t}return Gt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(s=ri(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 Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),t=!1}else n=Ur(),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 Gt(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=ri(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 Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),r=!1}else r=Ur(),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),Xl(e,e.updateQueue),Gt(e),null);case 4:return yt(),t===null&&$u(e.stateNode.containerInfo),Gt(e),null;case 10:return wn(e.type),Gt(e),null;case 19:if(G(Kt),s=e.memoizedState,s===null)return Gt(e),null;if(r=(e.flags&128)!==0,u=s.rendering,u===null)if(r)ps(s,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Dl(t),u!==null){for(e.flags|=128,ps(s,!1),t=u.updateQueue,e.updateQueue=t,Xl(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Jd(n,t),n=n.sibling;return F(Kt,Kt.current&1|2),Mt&&Sn(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&Ee()>Fl&&(e.flags|=128,r=!0,ps(s,!1),e.lanes=4194304)}else{if(!r)if(t=Dl(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Xl(e,t),ps(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Mt)return Gt(e),null}else 2*Ee()-s.renderingStartTime>Fl&&n!==536870912&&(e.flags|=128,r=!0,ps(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,F(Kt,r?n&1|2:n&1),Mt&&Sn(e,s.treeForkCount),t):(Gt(e),null);case 22:case 23:return De(e),Wr(),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&&(Gt(e),e.subtreeFlags&6&&(e.flags|=8192)):Gt(e),n=e.updateQueue,n!==null&&Xl(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&&G(za),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),wn(Ft),Gt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function x2(t,e){switch(Lr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wn(Ft),yt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return gn(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(o(340));Ma()}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));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G(Kt),null;case 4:return yt(),null;case 10:return wn(e.type),null;case 22:case 23:return De(e),Wr(),t!==null&&G(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wn(Ft),null;case 25:return null;default:return null}}function Sm(t,e){switch(Lr(e),e.tag){case 3:wn(Ft),yt();break;case 26:case 27:case 5:gn(e);break;case 4:yt();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:G(Kt);break;case 10:wn(e.type);break;case 22:case 23:De(e),Wr(),t!==null&&G(za);break;case 24:wn(Ft)}}function gs(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){Vt(e,e.return,b)}}function Pn(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,z=b;try{z()}catch(k){Vt(r,T,k)}}}s=s.next}while(s!==u)}}catch(k){Vt(e,e.return,k)}}function Tm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{dh(e,n)}catch(s){Vt(t,t.return,s)}}}function wm(t,e,n){n.props=Oa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(s){Vt(t,e,s)}}function ys(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){Vt(t,e,r)}}function on(t,e){var n=t.ref,s=t.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(r){Vt(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){Vt(t,e,r)}else n.current=null}function Am(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){Vt(t,t.return,r)}}function Nu(t,e,n){try{var s=t.stateNode;q2(s,t.type,n,e),s[ve]=e}catch(r){Vt(t,t.return,r)}}function Em(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&aa(t.type)||t.tag===4}function Du(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Em(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&&aa(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 Ru(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=vn));else if(s!==4&&(s===27&&aa(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Ru(t,e,n),t=t.sibling;t!==null;)Ru(t,e,n),t=t.sibling}function Zl(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&&aa(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Zl(t,e,n),t=t.sibling;t!==null;)Zl(t,e,n),t=t.sibling}function Mm(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){Vt(t,t.return,u)}}var Cn=!1,Wt=!1,Vu=!1,jm=typeof WeakSet=="function"?WeakSet:Set,le=null;function S2(t,e){if(t=t.containerInfo,tc=ho,t=Ud(t),Mr(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,z=0,k=0,q=t,D=null;e:for(;;){for(var V;q!==n||r!==0&&q.nodeType!==3||(b=h+r),q!==u||s!==0&&q.nodeType!==3||(T=h+s),q.nodeType===3&&(h+=q.nodeValue.length),(V=q.firstChild)!==null;)D=q,q=V;for(;;){if(q===t)break e;if(D===n&&++z===r&&(b=h),D===u&&++k===s&&(T=h),(V=q.nextSibling)!==null)break;q=D,D=q.parentNode}q=V}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(ec={focusedElem:t,selectionRange:n},ho=!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 nt=Oa(n.type,r);t=s.getSnapshotBeforeUpdate(nt,u),s.__reactInternalSnapshotBeforeUpdate=t}catch(rt){Vt(n,n.return,rt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)ic(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ic(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 Cm(t,e,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Nn(t,n),s&4&&gs(5,n);break;case 1:if(Nn(t,n),s&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Vt(n,n.return,h)}else{var r=Oa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Vt(n,n.return,h)}}s&64&&Tm(n),s&512&&ys(n,n.return);break;case 3:if(Nn(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{dh(t,e)}catch(h){Vt(n,n.return,h)}}break;case 27:e===null&&s&4&&Mm(n);case 26:case 5:Nn(t,n),e===null&&s&4&&Am(n),s&512&&ys(n,n.return);break;case 12:Nn(t,n);break;case 31:Nn(t,n),s&4&&Dm(t,n);break;case 13:Nn(t,n),s&4&&Rm(t,n),s&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=N2.bind(null,n),P2(t,n))));break;case 22:if(s=n.memoizedState!==null||Cn,!s){e=e!==null&&e.memoizedState!==null||Wt,r=Cn;var u=Wt;Cn=s,(Wt=e)&&!u?Dn(t,n,(n.subtreeFlags&8772)!==0):Nn(t,n),Cn=r,Wt=u}break;case 30:break;default:Nn(t,n)}}function zm(t){var e=t.alternate;e!==null&&(t.alternate=null,zm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ur(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 Yt=null,xe=!1;function zn(t,e,n){for(n=n.child;n!==null;)Nm(t,e,n),n=n.sibling}function Nm(t,e,n){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(Gi,n)}catch{}switch(n.tag){case 26:Wt||on(n,e),zn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||on(n,e);var s=Yt,r=xe;aa(n.type)&&(Yt=n.stateNode,xe=!1),zn(t,e,n),Ms(n.stateNode),Yt=s,xe=r;break;case 5:Wt||on(n,e);case 6:if(s=Yt,r=xe,Yt=null,zn(t,e,n),Yt=s,xe=r,Yt!==null)if(xe)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(n.stateNode)}catch(u){Vt(n,e,u)}else try{Yt.removeChild(n.stateNode)}catch(u){Vt(n,e,u)}break;case 18:Yt!==null&&(xe?(t=Yt,T0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),zi(t)):T0(Yt,n.stateNode));break;case 4:s=Yt,r=xe,Yt=n.stateNode.containerInfo,xe=!0,zn(t,e,n),Yt=s,xe=r;break;case 0:case 11:case 14:case 15:Pn(2,n,e),Wt||Pn(4,n,e),zn(t,e,n);break;case 1:Wt||(on(n,e),s=n.stateNode,typeof s.componentWillUnmount=="function"&&wm(n,e,s)),zn(t,e,n);break;case 21:zn(t,e,n);break;case 22:Wt=(s=Wt)||n.memoizedState!==null,zn(t,e,n),Wt=s;break;default:zn(t,e,n)}}function Dm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{zi(t)}catch(n){Vt(e,e.return,n)}}}function Rm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{zi(t)}catch(n){Vt(e,e.return,n)}}function T2(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new jm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new jm),e;default:throw Error(o(435,t.tag))}}function Ql(t,e){var n=T2(t);e.forEach(function(s){if(!n.has(s)){n.add(s);var r=D2.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(aa(b.type)){Yt=b.stateNode,xe=!1;break t}break;case 5:Yt=b.stateNode,xe=!1;break t;case 3:case 4:Yt=b.stateNode.containerInfo,xe=!0;break t}b=b.return}if(Yt===null)throw Error(o(160));Nm(u,h,r),Yt=null,xe=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Vm(e,t),e=e.sibling}var $e=null;function Vm(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&&(Pn(3,t,t.return),gs(3,t),Pn(5,t,t.return));break;case 1:Se(e,t),Te(t),s&512&&(Wt||n===null||on(n,n.return)),s&64&&Cn&&(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||on(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[Xi]||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=V0("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=V0("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 O0(r,t.type,t.stateNode);else t.stateNode=R0(r,s,t.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?O0(r,t.type,t.stateNode):R0(r,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Nu(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),Te(t),s&512&&(Wt||n===null||on(n,n.return)),n!==null&&s&4&&Nu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),Te(t),s&512&&(Wt||n===null||on(n,n.return)),t.flags&32){r=t.stateNode;try{Wa(r,"")}catch(nt){Vt(t,t.return,nt)}}s&4&&t.stateNode!=null&&(r=t.memoizedProps,Nu(t,r,n!==null?n.memoizedProps:r)),s&1024&&(Vu=!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(nt){Vt(t,t.return,nt)}}break;case 3:if(ro=null,r=$e,$e=lo(e.containerInfo),Se(e,t),$e=r,Te(t),s&4&&n!==null&&n.memoizedState.isDehydrated)try{zi(e.containerInfo)}catch(nt){Vt(t,t.return,nt)}Vu&&(Vu=!1,Om(t));break;case 4:s=$e,$e=lo(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,Ql(t,s)));break;case 13:Se(e,t),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Jl=Ee()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ql(t,s)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,z=Cn,k=Wt;if(Cn=z||r,Wt=k||T,Se(e,t),Wt=k,Cn=z,Te(t),s&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||Cn||Wt||_a(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 q=T.memoizedProps.style,D=q!=null&&q.hasOwnProperty("display")?q.display:null;b.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(nt){Vt(T,T.return,nt)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(nt){Vt(T,T.return,nt)}}}else if(e.tag===18){if(n===null){T=e;try{var V=T.stateNode;r?w0(V,!0):w0(T.stateNode,!1)}catch(nt){Vt(T,T.return,nt)}}}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,Ql(t,n))));break;case 19:Se(e,t),Te(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Ql(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(Em(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Du(t);Zl(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(Wa(h,""),n.flags&=-33);var b=Du(t);Zl(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,z=Du(t);Ru(t,z,T);break;default:throw Error(o(161))}}catch(k){Vt(t,t.return,k)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Om(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Om(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Nn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Cm(t,e.alternate,e),e=e.sibling}function _a(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Pn(4,e,e.return),_a(e);break;case 1:on(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&wm(e,e.return,n),_a(e);break;case 27:Ms(e.stateNode);case 26:case 5:on(e,e.return),_a(e);break;case 22:e.memoizedState===null&&_a(e);break;case 30:_a(e);break;default:_a(e)}t=t.sibling}}function Dn(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:Dn(r,u,n),gs(4,u);break;case 1:if(Dn(r,u,n),s=u,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){Vt(s,s.return,z)}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++)fh(T[r],b)}catch(z){Vt(s,s.return,z)}}n&&h&64&&Tm(u),ys(u,u.return);break;case 27:Mm(u);case 26:case 5:Dn(r,u,n),n&&s===null&&h&4&&Am(u),ys(u,u.return);break;case 12:Dn(r,u,n);break;case 31:Dn(r,u,n),n&&h&4&&Dm(r,u);break;case 13:Dn(r,u,n),n&&h&4&&Rm(r,u);break;case 22:u.memoizedState===null&&Dn(r,u,n),ys(u,u.return);break;case 30:break;default:Dn(r,u,n)}e=e.sibling}}function Ou(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&&as(n))}function _u(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&as(t))}function We(t,e,n,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_m(t,e,n,s),e=e.sibling}function _m(t,e,n,s){var r=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,n,s),r&2048&&gs(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&&as(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){Vt(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):vs(t,e):u._visibility&2?We(t,e,n,s):(u._visibility|=2,vi(t,e,n,s,(e.subtreeFlags&10256)!==0||!1)),r&2048&&Ou(h,e);break;case 24:We(t,e,n,s),r&2048&&_u(e.alternate,e);break;default:We(t,e,n,s)}}function vi(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,z=h.flags;switch(h.tag){case 0:case 11:case 15:vi(u,h,b,T,r),gs(8,h);break;case 23:break;case 22:var k=h.stateNode;h.memoizedState!==null?k._visibility&2?vi(u,h,b,T,r):vs(u,h):(k._visibility|=2,vi(u,h,b,T,r)),r&&z&2048&&Ou(h.alternate,h);break;case 24:vi(u,h,b,T,r),r&&z&2048&&_u(h.alternate,h);break;default:vi(u,h,b,T,r)}e=e.sibling}}function vs(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:vs(n,s),r&2048&&Ou(s.alternate,s);break;case 24:vs(n,s),r&2048&&_u(s.alternate,s);break;default:vs(n,s)}e=e.sibling}}var bs=8192;function bi(t,e,n){if(t.subtreeFlags&bs)for(t=t.child;t!==null;)km(t,e,n),t=t.sibling}function km(t,e,n){switch(t.tag){case 26:bi(t,e,n),t.flags&bs&&t.memoizedState!==null&&rb(n,$e,t.memoizedState,t.memoizedProps);break;case 5:bi(t,e,n);break;case 3:case 4:var s=$e;$e=lo(t.stateNode.containerInfo),bi(t,e,n),$e=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=bs,bs=16777216,bi(t,e,n),bs=s):bi(t,e,n));break;default:bi(t,e,n)}}function Lm(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 xs(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,Um(s,t)}Lm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bm(t),t=t.sibling}function Bm(t){switch(t.tag){case 0:case 11:case 15:xs(t),t.flags&2048&&Pn(9,t,t.return);break;case 3:xs(t);break;case 12:xs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Kl(t)):xs(t);break;default:xs(t)}}function Kl(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,Um(s,t)}Lm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Pn(8,e,e.return),Kl(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Kl(e));break;default:Kl(e)}t=t.sibling}}function Um(t,e){for(;le!==null;){var n=le;switch(n.tag){case 0:case 11:case 15:Pn(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:as(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(zm(s),s===n){le=null;break t}if(r!==null){r.return=u,le=r;break t}le=u}}}var w2={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}},A2=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Bt=null,xt=null,Tt=0,Rt=0,Re=null,$n=!1,xi=!1,ku=!1,Rn=0,Zt=0,Wn=0,ka=0,Lu=0,Ve=0,Si=0,Ss=null,we=null,Bu=!1,Jl=0,Hm=0,Fl=1/0,Pl=null,In=null,ee=0,ta=null,Ti=null,Vn=0,Uu=0,Hu=null,Gm=null,Ts=0,Gu=null;function Oe(){return(Nt&2)!==0&&Tt!==0?Tt&-Tt:R.T!==null?Ku():ad()}function qm(){if(Ve===0)if((Tt&536870912)===0||Mt){var t=il;il<<=1,(il&3932160)===0&&(il=262144),Ve=t}else Ve=536870912;return t=Ne.current,t!==null&&(t.flags|=32),Ve}function Ae(t,e,n){(t===Bt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(wi(t,0),ea(t,Tt,Ve,!1)),Yi(t,n),((Nt&2)===0||t!==Bt)&&(t===Bt&&((Nt&2)===0&&(ka|=n),Zt===4&&ea(t,Tt,Ve,!1)),rn(t))}function Ym(t,e,n){if((Nt&6)!==0)throw Error(o(327));var s=!n&&(e&127)===0&&(e&t.expiredLanes)===0||qi(t,e),r=s?j2(t,e):Yu(t,e,!0),u=s;do{if(r===0){xi&&!s&&ea(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!E2(n)){r=Yu(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=Ss;var T=b.current.memoizedState.isDehydrated;if(T&&(wi(b,h).flags|=256),h=Yu(b,h,!1),h!==2){if(ku&&!T){b.errorRecoveryDisabledLanes|=u,ka|=u,r=4;break t}u=we,we=r,u!==null&&(we===null?we=u:we.push.apply(we,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){wi(t,0),ea(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:ea(s,e,Ve,!$n);break t;case 2:we=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=Jl+300-Ee(),10<r)){if(ea(s,e,Ve,!$n),ll(s,0,!0)!==0)break t;Vn=e,s.timeoutHandle=x0(Xm.bind(null,s,n,we,Pl,Bu,e,Ve,ka,Si,$n,u,"Throttled",-0,0),r);break t}Xm(s,n,we,Pl,Bu,e,Ve,ka,Si,$n,u,null,-0,0)}}break}while(!0);rn(t)}function Xm(t,e,n,s,r,u,h,b,T,z,k,q,D,V){if(t.timeoutHandle=-1,q=e.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vn},km(e,u,q);var nt=(u&62914560)===u?Jl-Ee():(u&4194048)===u?Hm-Ee():0;if(nt=ub(q,nt),nt!==null){Vn=u,t.cancelPendingCommit=nt(Wm.bind(null,t,e,u,n,s,r,h,b,T,k,q,null,D,V)),ea(t,u,h,!z);return}}Wm(t,e,u,n,s,r,h,b,T)}function E2(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 ea(t,e,n,s){e&=~Lu,e&=~ka,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&&td(t,n,e)}function $l(){return(Nt&6)===0?(ws(0),!1):!0}function qu(){if(xt!==null){if(Rt===0)var t=xt.return;else t=xt,Tn=ja=null,iu(t),hi=null,ss=0,t=xt;for(;t!==null;)Sm(t.alternate,t),t=t.return;xt=null}}function wi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Z2(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Vn=0,qu(),Bt=t,xt=n=xn(t.current,null),Tt=e,Rt=0,Re=null,$n=!1,xi=qi(t,e),ku=!1,Si=Ve=Lu=ka=Wn=Zt=0,we=Ss=null,Bu=!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 Rn=e,vl(),n}function Zm(t,e){ht=null,R.H=hs,e===di||e===Ml?(e=oh(),Rt=3):e===Qr?(e=oh(),Rt=4):Rt=e===xu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,xt===null&&(Zt=1,Hl(t,Ge(e,t.current)))}function Qm(){var t=Ne.current;return t===null?!0:(Tt&4194048)===Tt?Ze===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===Ze:!1}function Km(){var t=R.H;return R.H=hs,t===null?hs:t}function Jm(){var t=R.A;return R.A=w2,t}function Wl(){Zt=4,$n||(Tt&4194048)!==Tt&&Ne.current!==null||(xi=!0),(Wn&134217727)===0&&(ka&134217727)===0||Bt===null||ea(Bt,Tt,Ve,!1)}function Yu(t,e,n){var s=Nt;Nt|=2;var r=Km(),u=Jm();(Bt!==t||Tt!==e)&&(Pl=null,wi(t,e)),e=!1;var h=Zt;t:do try{if(Rt!==0&&xt!==null){var b=xt,T=Re;switch(Rt){case 8:qu(),h=6;break t;case 3:case 2:case 9:case 6:Ne.current===null&&(e=!0);var z=Rt;if(Rt=0,Re=null,Ai(t,b,T,z),n&&xi){h=0;break t}break;default:z=Rt,Rt=0,Re=null,Ai(t,b,T,z)}}M2(),h=Zt;break}catch(k){Zm(t,k)}while(!0);return e&&t.shellSuspendCounter++,Tn=ja=null,Nt=s,R.H=r,R.A=u,xt===null&&(Bt=null,Tt=0,vl()),h}function M2(){for(;xt!==null;)Fm(xt)}function j2(t,e){var n=Nt;Nt|=2;var s=Km(),r=Jm();Bt!==t||Tt!==e?(Pl=null,Fl=Ee()+500,wi(t,e)):xi=qi(t,e);t:do try{if(Rt!==0&&xt!==null){e=xt;var u=Re;e:switch(Rt){case 1:Rt=0,Re=null,Ai(t,e,u,1);break;case 2:case 9:if(sh(u)){Rt=0,Re=null,Pm(e);break}e=function(){Rt!==2&&Rt!==9||Bt!==t||(Rt=7),rn(t)},u.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:sh(u)?(Rt=0,Re=null,Pm(e)):(Rt=0,Re=null,Ai(t,e,u,7));break;case 5:var h=null;switch(xt.tag){case 26:h=xt.memoizedState;case 5:case 27:var b=xt;if(h?_0(h):b.stateNode.complete){Rt=0,Re=null;var T=b.sibling;if(T!==null)xt=T;else{var z=b.return;z!==null?(xt=z,Il(z)):xt=null}break e}}Rt=0,Re=null,Ai(t,e,u,5);break;case 6:Rt=0,Re=null,Ai(t,e,u,6);break;case 8:qu(),Zt=6;break t;default:throw Error(o(462))}}C2();break}catch(k){Zm(t,k)}while(!0);return Tn=ja=null,R.H=s,R.A=r,Nt=n,xt!==null?0:(Bt=null,Tt=0,vl(),Zt)}function C2(){for(;xt!==null&&!$y();)Fm(xt)}function Fm(t){var e=bm(t.alternate,t,Rn);t.memoizedProps=t.pendingProps,e===null?Il(t):xt=e}function Pm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=hm(n,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=hm(n,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:iu(e);default:Sm(n,e),e=xt=Jd(e,Rn),e=bm(n,e,Rn)}t.memoizedProps=t.pendingProps,e===null?Il(t):xt=e}function Ai(t,e,n,s){Tn=ja=null,iu(e),hi=null,ss=0;var r=e.return;try{if(g2(t,r,e,n,Tt)){Zt=1,Hl(t,Ge(n,t.current)),xt=null;return}}catch(u){if(r!==null)throw xt=r,u;Zt=1,Hl(t,Ge(n,t.current)),xt=null;return}e.flags&32768?(Mt||s===1?t=!0:xi||(Tt&536870912)!==0?t=!1:($n=t=!0,(s===2||s===9||s===3||s===6)&&(s=Ne.current,s!==null&&s.tag===13&&(s.flags|=16384))),$m(e,t)):Il(e)}function Il(t){var e=t;do{if((e.flags&32768)!==0){$m(e,$n);return}t=e.return;var n=b2(e.alternate,e,Rn);if(n!==null){xt=n;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Zt===0&&(Zt=5)}function $m(t,e){do{var n=x2(t.alternate,t);if(n!==null){n.flags&=32767,xt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=n}while(t!==null);Zt=6,xt=null}function Wm(t,e,n,s,r,u,h,b,T){t.cancelPendingCommit=null;do to();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|=Dr,ov(t,n,u,h,b,T),t===Bt&&(xt=Bt=null,Tt=0),Ti=e,ta=t,Vn=n,Uu=u,Hu=r,Gm=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,R2(nl,function(){return a0(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=R.T,R.T=null,r=Q.p,Q.p=2,h=Nt,Nt|=4;try{S2(t,e,n)}finally{Nt=h,Q.p=r,R.T=s}}ee=1,Im(),t0(),e0()}}function Im(){if(ee===1){ee=0;var t=ta,e=Ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var s=Q.p;Q.p=2;var r=Nt;Nt|=4;try{Vm(e,t);var u=ec,h=Ud(t.containerInfo),b=u.focusedElem,T=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&Bd(b.ownerDocument.documentElement,b)){if(T!==null&&Mr(b)){var z=T.start,k=T.end;if(k===void 0&&(k=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(k,b.value.length);else{var q=b.ownerDocument||document,D=q&&q.defaultView||window;if(D.getSelection){var V=D.getSelection(),nt=b.textContent.length,rt=Math.min(T.start,nt),Lt=T.end===void 0?rt:Math.min(T.end,nt);!V.extend&&rt>Lt&&(h=Lt,Lt=rt,rt=h);var M=Ld(b,rt),A=Ld(b,Lt);if(M&&A&&(V.rangeCount!==1||V.anchorNode!==M.node||V.anchorOffset!==M.offset||V.focusNode!==A.node||V.focusOffset!==A.offset)){var C=q.createRange();C.setStart(M.node,M.offset),V.removeAllRanges(),rt>Lt?(V.addRange(C),V.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),V.addRange(C))}}}}for(q=[],V=b;V=V.parentNode;)V.nodeType===1&&q.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<q.length;b++){var H=q[b];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}ho=!!tc,ec=tc=null}finally{Nt=r,Q.p=s,R.T=n}}t.current=e,ee=2}}function t0(){if(ee===2){ee=0;var t=ta,e=Ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var s=Q.p;Q.p=2;var r=Nt;Nt|=4;try{Cm(t,e.alternate,e)}finally{Nt=r,Q.p=s,R.T=n}}ee=3}}function e0(){if(ee===4||ee===3){ee=0,Wy();var t=ta,e=Ti,n=Vn,s=Gm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,Ti=ta=null,n0(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(In=null),or(n),e=e.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=R.T,r=Q.p,Q.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,Q.p=r}}(Vn&3)!==0&&to(),rn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===Gu?Ts++:(Ts=0,Gu=t):Ts=0,ws(0)}}function n0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,as(e)))}function to(){return Im(),t0(),e0(),a0()}function a0(){if(ee!==5)return!1;var t=ta,e=Uu;Uu=0;var n=or(Vn),s=R.T,r=Q.p;try{Q.p=32>n?32:n,R.T=null,n=Hu,Hu=null;var u=ta,h=Vn;if(ee=0,Ti=ta=null,Vn=0,(Nt&6)!==0)throw Error(o(331));var b=Nt;if(Nt|=4,Bm(u.current),_m(u,u.current,h,n),Nt=b,ws(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(Gi,u)}catch{}return!0}finally{Q.p=r,R.T=s,n0(t,e)}}function i0(t,e,n){e=Ge(n,e),e=bu(t.stateNode,e,2),t=Kn(t,e,2),t!==null&&(Yi(t,2),rn(t))}function Vt(t,e,n){if(t.tag===3)i0(t,t,n);else for(;e!==null;){if(e.tag===3){i0(e,t,n);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(In===null||!In.has(s))){t=Ge(n,t),n=sm(2),s=Kn(e,n,2),s!==null&&(lm(n,s,e,t),Yi(s,2),rn(s));break}}e=e.return}}function Xu(t,e,n){var s=t.pingCache;if(s===null){s=t.pingCache=new A2;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)||(ku=!0,r.add(n),t=z2.bind(null,t,e,n),e.then(t,t))}function z2(t,e,n){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Bt===t&&(Tt&n)===n&&(Zt===4||Zt===3&&(Tt&62914560)===Tt&&300>Ee()-Jl?(Nt&2)===0&&wi(t,0):Lu|=n,Si===Tt&&(Si=0)),rn(t)}function s0(t,e){e===0&&(e=If()),t=Aa(t,e),t!==null&&(Yi(t,e),rn(t))}function N2(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),s0(t,n)}function D2(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),s0(t,n)}function R2(t,e){return ar(t,e)}var eo=null,Ei=null,Zu=!1,no=!1,Qu=!1,na=0;function rn(t){t!==Ei&&t.next===null&&(Ei===null?eo=Ei=t:Ei=Ei.next=t),no=!0,Zu||(Zu=!0,O2())}function ws(t,e){if(!Qu&&no){Qu=!0;do for(var n=!1,s=eo;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,u0(s,u))}else u=Tt,u=ll(s,s===Bt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||qi(s,u)||(n=!0,u0(s,u));s=s.next}while(n);Qu=!1}}function V2(){l0()}function l0(){no=Zu=!1;var t=0;na!==0&&X2()&&(t=na);for(var e=Ee(),n=null,s=eo;s!==null;){var r=s.next,u=o0(s,e);u===0?(s.next=null,n===null?eo=r:n.next=r,r===null&&(Ei=n)):(n=s,(t!==0||(u&3)!==0)&&(no=!0)),s=r}ee!==0&&ee!==5||ws(t),na!==0&&(na=0)}function o0(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]=lv(b,e)):T<=e&&(t.expiredLanes|=b),u&=~b}if(e=Bt,n=Tt,n=ll(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,n===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&ir(s),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||qi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(s!==null&&ir(s),or(n)){case 2:case 8:n=$f;break;case 32:n=nl;break;case 268435456:n=Wf;break;default:n=nl}return s=r0.bind(null,t),n=ar(n,s),t.callbackPriority=e,t.callbackNode=n,e}return s!==null&&s!==null&&ir(s),t.callbackPriority=2,t.callbackNode=null,2}function r0(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(to()&&t.callbackNode!==n)return null;var s=Tt;return s=ll(t,t===Bt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Ym(t,s,e),o0(t,Ee()),t.callbackNode!=null&&t.callbackNode===n?r0.bind(null,t):null)}function u0(t,e){if(to())return null;Ym(t,e,!0)}function O2(){Q2(function(){(Nt&6)!==0?ar(Pf,V2):l0()})}function Ku(){if(na===0){var t=ci;t===0&&(t=al,al<<=1,(al&261888)===0&&(al=256)),na=t}return na}function c0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:cl(""+t)}function f0(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 _2(t,e,n,s,r){if(e==="submit"&&n&&n.stateNode===r){var u=c0((r[ve]||null).action),h=s.submitter;h&&(e=(e=h[ve]||null)?c0(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var b=new ml("action","action",null,s,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(na!==0){var T=h?f0(r,h):new FormData(r);hu(n,{pending:!0,data:T,method:r.method,action:u},null,T)}}else typeof u=="function"&&(b.preventDefault(),T=h?f0(r,h):new FormData(r),hu(n,{pending:!0,data:T,method:r.method,action:u},u,T))},currentTarget:r}]})}}for(var Ju=0;Ju<Nr.length;Ju++){var Fu=Nr[Ju],k2=Fu.toLowerCase(),L2=Fu[0].toUpperCase()+Fu.slice(1);Pe(k2,"on"+L2)}Pe(qd,"onAnimationEnd"),Pe(Yd,"onAnimationIteration"),Pe(Xd,"onAnimationStart"),Pe("dblclick","onDoubleClick"),Pe("focusin","onFocus"),Pe("focusout","onBlur"),Pe(Iv,"onTransitionRun"),Pe(t2,"onTransitionStart"),Pe(e2,"onTransitionCancel"),Pe(Zd,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xa("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(" "),B2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(As));function d0(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,z=b.currentTarget;if(b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=z;try{u(r)}catch(k){yl(k)}r.currentTarget=null,u=T}else for(h=0;h<s.length;h++){if(b=s[h],T=b.instance,z=b.currentTarget,b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=z;try{u(r)}catch(k){yl(k)}r.currentTarget=null,u=T}}}}function St(t,e){var n=e[rr];n===void 0&&(n=e[rr]=new Set);var s=t+"__bubble";n.has(s)||(h0(e,t,2,!1),n.add(s))}function Pu(t,e,n){var s=0;e&&(s|=4),h0(n,t,s,e)}var ao="_reactListening"+Math.random().toString(36).slice(2);function $u(t){if(!t[ao]){t[ao]=!0,ld.forEach(function(n){n!=="selectionchange"&&(B2.has(n)||Pu(n,!1,t),Pu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ao]||(e[ao]=!0,Pu("selectionchange",!1,e))}}function h0(t,e,n,s){switch(q0(e)){case 2:var r=db;break;case 8:r=hb;break;default:r=dc}n=r.bind(null,e,n,t),r=void 0,!yr||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 Wu(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=Ka(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}vd(function(){var z=u,k=pr(n),q=[];t:{var D=Qd.get(t);if(D!==void 0){var V=ml,nt=t;switch(t){case"keypress":if(dl(n)===0)break t;case"keydown":case"keyup":V=Dv;break;case"focusin":nt="focus",V=Sr;break;case"focusout":nt="blur",V=Sr;break;case"beforeblur":case"afterblur":V=Sr;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":V=Sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=bv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Ov;break;case qd:case Yd:case Xd:V=Tv;break;case Zd:V=kv;break;case"scroll":case"scrollend":V=yv;break;case"wheel":V=Bv;break;case"copy":case"cut":case"paste":V=Av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=wd;break;case"toggle":case"beforetoggle":V=Hv}var rt=(e&4)!==0,Lt=!rt&&(t==="scroll"||t==="scrollend"),M=rt?D!==null?D+"Capture":null:D;rt=[];for(var A=z,C;A!==null;){var H=A;if(C=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||C===null||M===null||(H=Qi(A,M),H!=null&&rt.push(Es(A,H,C))),Lt)break;A=A.return}0<rt.length&&(D=new V(D,nt,null,n,k),q.push({event:D,listeners:rt}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",V=t==="mouseout"||t==="pointerout",D&&n!==mr&&(nt=n.relatedTarget||n.fromElement)&&(Ka(nt)||nt[Qa]))break t;if((V||D)&&(D=k.window===k?k:(D=k.ownerDocument)?D.defaultView||D.parentWindow:window,V?(nt=n.relatedTarget||n.toElement,V=z,nt=nt?Ka(nt):null,nt!==null&&(Lt=f(nt),rt=nt.tag,nt!==Lt||rt!==5&&rt!==27&&rt!==6)&&(nt=null)):(V=null,nt=z),V!==nt)){if(rt=Sd,H="onMouseLeave",M="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(rt=wd,H="onPointerLeave",M="onPointerEnter",A="pointer"),Lt=V==null?D:Zi(V),C=nt==null?D:Zi(nt),D=new rt(H,A+"leave",V,n,k),D.target=Lt,D.relatedTarget=C,H=null,Ka(k)===z&&(rt=new rt(M,A+"enter",nt,n,k),rt.target=C,rt.relatedTarget=Lt,H=rt),Lt=H,V&&nt)e:{for(rt=U2,M=V,A=nt,C=0,H=M;H;H=rt(H))C++;H=0;for(var lt=A;lt;lt=rt(lt))H++;for(;0<C-H;)M=rt(M),C--;for(;0<H-C;)A=rt(A),H--;for(;C--;){if(M===A||A!==null&&M===A.alternate){rt=M;break e}M=rt(M),A=rt(A)}rt=null}else rt=null;V!==null&&m0(q,D,V,rt,!1),nt!==null&&Lt!==null&&m0(q,Lt,nt,rt,!0)}}t:{if(D=z?Zi(z):window,V=D.nodeName&&D.nodeName.toLowerCase(),V==="select"||V==="input"&&D.type==="file")var jt=Dd;else if(zd(D))if(Rd)jt=Pv;else{jt=Jv;var it=Kv}else V=D.nodeName,!V||V.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&hr(z.elementType)&&(jt=Dd):jt=Fv;if(jt&&(jt=jt(t,z))){Nd(q,jt,n,k);break t}it&&it(t,D,z),t==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&dr(D,"number",D.value)}switch(it=z?Zi(z):window,t){case"focusin":(zd(it)||it.contentEditable==="true")&&(ni=it,jr=z,ts=null);break;case"focusout":ts=jr=ni=null;break;case"mousedown":Cr=!0;break;case"contextmenu":case"mouseup":case"dragend":Cr=!1,Hd(q,n,k);break;case"selectionchange":if(Wv)break;case"keydown":case"keyup":Hd(q,n,k)}var mt;if(wr)t:{switch(t){case"compositionstart":var wt="onCompositionStart";break t;case"compositionend":wt="onCompositionEnd";break t;case"compositionupdate":wt="onCompositionUpdate";break t}wt=void 0}else ei?jd(t,n)&&(wt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(wt="onCompositionStart");wt&&(Ad&&n.locale!=="ko"&&(ei||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&ei&&(mt=bd()):(Hn=k,vr="value"in Hn?Hn.value:Hn.textContent,ei=!0)),it=io(z,wt),0<it.length&&(wt=new Td(wt,t,null,n,k),q.push({event:wt,listeners:it}),mt?wt.data=mt:(mt=Cd(n),mt!==null&&(wt.data=mt)))),(mt=qv?Yv(t,n):Xv(t,n))&&(wt=io(z,"onBeforeInput"),0<wt.length&&(it=new Td("onBeforeInput","beforeinput",null,n,k),q.push({event:it,listeners:wt}),it.data=mt)),_2(q,t,z,n,k)}d0(q,e)})}function Es(t,e,n){return{instance:t,listener:e,currentTarget:n}}function io(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(Es(t,r,u)),r=Qi(t,e),r!=null&&s.push(Es(t,r,u))),t.tag===3)return s;t=t.return}return[]}function U2(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function m0(t,e,n,s,r){for(var u=e._reactName,h=[];n!==null&&n!==s;){var b=n,T=b.alternate,z=b.stateNode;if(b=b.tag,T!==null&&T===s)break;b!==5&&b!==26&&b!==27||z===null||(T=z,r?(z=Qi(n,u),z!=null&&h.unshift(Es(n,z,T))):r||(z=Qi(n,u),z!=null&&h.push(Es(n,z,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var H2=/\r\n?/g,G2=/\u0000|\uFFFD/g;function p0(t){return(typeof t=="string"?t:""+t).replace(H2,`
9
+ `).replace(G2,"")}function g0(t,e){return e=p0(e),p0(t)===e}function kt(t,e,n,s,r,u){switch(n){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Wa(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Wa(t,""+s);break;case"className":rl(t,"class",s);break;case"tabIndex":rl(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":rl(t,n,s);break;case"style":gd(t,s,u);break;case"data":if(e!=="object"){rl(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=cl(""+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"&&kt(t,e,"name",r.name,r,null),kt(t,e,"formEncType",r.formEncType,r,null),kt(t,e,"formMethod",r.formMethod,r,null),kt(t,e,"formTarget",r.formTarget,r,null)):(kt(t,e,"encType",r.encType,r,null),kt(t,e,"method",r.method,r,null),kt(t,e,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=cl(""+s),t.setAttribute(n,s);break;case"onClick":s!=null&&(t.onclick=vn);break;case"onScroll":s!=null&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("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=cl(""+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":St("beforetoggle",t),St("toggle",t),ol(t,"popover",s);break;case"xlinkActuate":yn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":yn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":yn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":yn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":yn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":yn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":yn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":yn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":yn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ol(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=pv.get(n)||n,ol(t,n,s))}}function Iu(t,e,n,s,r,u){switch(n){case"style":gd(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"?Wa(t,s):(typeof s=="number"||typeof s=="bigint")&&Wa(t,""+s);break;case"onScroll":s!=null&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("scrollend",t);break;case"onClick":s!=null&&(t.onclick=vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!od.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,""):ol(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":St("error",t),St("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:kt(t,e,u,h,n,null)}}r&&kt(t,e,"srcSet",n.srcSet,n,null),s&&kt(t,e,"src",n.src,n,null);return;case"input":St("invalid",t);var b=u=h=r=null,T=null,z=null;for(s in n)if(n.hasOwnProperty(s)){var k=n[s];if(k!=null)switch(s){case"name":r=k;break;case"type":h=k;break;case"checked":T=k;break;case"defaultChecked":z=k;break;case"value":u=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,e));break;default:kt(t,e,s,k,n,null)}}dd(t,u,b,T,z,h,r,!1);return;case"select":St("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:kt(t,e,r,b,n,null)}e=u,n=h,t.multiple=!!s,e!=null?$a(t,!!s,e,!1):n!=null&&$a(t,!!s,n,!0);return;case"textarea":St("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:kt(t,e,h,b,n,null)}md(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":kt(t,e,T,s,n,null));return;case"dialog":St("beforetoggle",t),St("toggle",t),St("cancel",t),St("close",t);break;case"iframe":case"object":St("load",t);break;case"video":case"audio":for(s=0;s<As.length;s++)St(As[s],t);break;case"image":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"embed":case"source":case"link":St("error",t),St("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(s=n[z],s!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:kt(t,e,z,s,n,null)}return;default:if(hr(e)){for(k in n)n.hasOwnProperty(k)&&(s=n[k],s!==void 0&&Iu(t,e,k,s,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(s=n[b],s!=null&&kt(t,e,b,s,n,null))}function q2(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,z=null,k=null;for(V in n){var q=n[V];if(n.hasOwnProperty(V)&&q!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=q;default:s.hasOwnProperty(V)||kt(t,e,V,null,s,q)}}for(var D in s){var V=s[D];if(q=n[D],s.hasOwnProperty(D)&&(V!=null||q!=null))switch(D){case"type":u=V;break;case"name":r=V;break;case"checked":z=V;break;case"defaultChecked":k=V;break;case"value":h=V;break;case"defaultValue":b=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,e));break;default:V!==q&&kt(t,e,D,V,s,q)}}fr(t,h,b,T,z,k,u,r);return;case"select":V=h=b=D=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":V=T;default:s.hasOwnProperty(u)||kt(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&&kt(t,e,r,u,s,T)}e=b,n=h,s=V,D!=null?$a(t,!!n,D,!1):!!s!=!!n&&(e!=null?$a(t,!!n,e,!0):$a(t,!!n,n?[]:"",!1));return;case"textarea":V=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:kt(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":V=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&kt(t,e,h,r,s,u)}hd(t,D,V);return;case"option":for(var nt in n)D=n[nt],n.hasOwnProperty(nt)&&D!=null&&!s.hasOwnProperty(nt)&&(nt==="selected"?t.selected=!1:kt(t,e,nt,null,s,D));for(T in s)D=s[T],V=n[T],s.hasOwnProperty(T)&&D!==V&&(D!=null||V!=null)&&(T==="selected"?t.selected=D&&typeof D!="function"&&typeof D!="symbol":kt(t,e,T,D,s,V));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)&&kt(t,e,rt,null,s,D);for(z in s)if(D=s[z],V=n[z],s.hasOwnProperty(z)&&D!==V&&(D!=null||V!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:kt(t,e,z,D,s,V)}return;default:if(hr(e)){for(var Lt in n)D=n[Lt],n.hasOwnProperty(Lt)&&D!==void 0&&!s.hasOwnProperty(Lt)&&Iu(t,e,Lt,void 0,s,D);for(k in s)D=s[k],V=n[k],!s.hasOwnProperty(k)||D===V||D===void 0&&V===void 0||Iu(t,e,k,D,s,V);return}}for(var M in n)D=n[M],n.hasOwnProperty(M)&&D!=null&&!s.hasOwnProperty(M)&&kt(t,e,M,null,s,D);for(q in s)D=s[q],V=n[q],!s.hasOwnProperty(q)||D===V||D==null&&V==null||kt(t,e,q,D,s,V)}function y0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Y2(){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&&y0(h)){for(h=0,b=r.responseEnd,s+=1;s<n.length;s++){var T=n[s],z=T.startTime;if(z>b)break;var k=T.transferSize,q=T.initiatorType;k&&y0(q)&&(T=T.responseEnd,h+=k*(T<b?1:(b-z)/(T-z)))}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 tc=null,ec=null;function so(t){return t.nodeType===9?t:t.ownerDocument}function v0(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 b0(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 nc(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 ac=null;function X2(){var t=window.event;return t&&t.type==="popstate"?t===ac?!1:(ac=t,!0):(ac=null,!1)}var x0=typeof setTimeout=="function"?setTimeout:void 0,Z2=typeof clearTimeout=="function"?clearTimeout:void 0,S0=typeof Promise=="function"?Promise:void 0,Q2=typeof queueMicrotask=="function"?queueMicrotask:typeof S0<"u"?function(t){return S0.resolve(null).then(t).catch(K2)}:x0;function K2(t){setTimeout(function(){throw t})}function aa(t){return t==="head"}function T0(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),zi(e);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")Ms(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ms(n);for(var u=n.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[Xi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&Ms(t.ownerDocument.body);n=r}while(n);zi(e)}function w0(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 ic(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":ic(n),ur(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function J2(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[Xi])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=Qe(t.nextSibling),t===null)break}return null}function F2(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Qe(t.nextSibling),t===null))return null;return t}function A0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Qe(t.nextSibling),t===null))return null;return t}function sc(t){return t.data==="$?"||t.data==="$~"}function lc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function P2(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 Qe(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 oc=null;function E0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Qe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function M0(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 j0(t,e,n){switch(e=so(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 Ms(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ur(t)}var Ke=new Map,C0=new Set;function lo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var On=Q.d;Q.d={f:$2,r:W2,D:I2,C:tb,L:eb,m:nb,X:ib,S:ab,M:sb};function $2(){var t=On.f(),e=$l();return t||e}function W2(t){var e=Ja(t);e!==null&&e.tag===5&&e.type==="form"?Zh(e):On.r(t)}var Mi=typeof document>"u"?null:document;function z0(t,e,n){var s=Mi;if(s&&typeof e=="string"&&e){var r=Ue(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),C0.has(r)||(C0.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 I2(t){On.D(t),z0("dns-prefetch",t,null)}function tb(t,e){On.C(t,e),z0("preconnect",t,e)}function eb(t,e,n){On.L(t,e,n);var s=Mi;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=ji(t);break;case"script":u=Ci(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(js(u))||e==="script"&&s.querySelector(Cs(u))||(e=s.createElement("link"),fe(e,"link",t),se(e),s.head.appendChild(e)))}}function nb(t,e){On.m(t,e);var n=Mi;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=Ci(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(Cs(u)))return}s=n.createElement("link"),fe(s,"link",t),se(s),n.head.appendChild(s)}}}function ab(t,e,n){On.S(t,e,n);var s=Mi;if(s&&t){var r=Fa(s).hoistableStyles,u=ji(t);e=e||"default";var h=r.get(u);if(!h){var b={loading:0,preload:null};if(h=s.querySelector(js(u)))b.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ke.get(u))&&rc(t,n);var T=h=s.createElement("link");se(T),fe(T,"link",t),T._p=new Promise(function(z,k){T.onload=z,T.onerror=k}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,oo(h,e,s)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(u,h)}}}function ib(t,e){On.X(t,e);var n=Mi;if(n&&t){var s=Fa(n).hoistableScripts,r=Ci(t),u=s.get(r);u||(u=n.querySelector(Cs(r)),u||(t=x({src:t,async:!0},e),(e=Ke.get(r))&&uc(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 sb(t,e){On.M(t,e);var n=Mi;if(n&&t){var s=Fa(n).hoistableScripts,r=Ci(t),u=s.get(r);u||(u=n.querySelector(Cs(r)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Ke.get(r))&&uc(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 N0(t,e,n,s){var r=(r=ot.current)?lo(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=ji(n.href),n=Fa(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=ji(n.href);var u=Fa(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(js(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||lb(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=Ci(n),n=Fa(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 ji(t){return'href="'+Ue(t)+'"'}function js(t){return'link[rel="stylesheet"]['+t+"]"}function D0(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function lb(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 Ci(t){return'[src="'+Ue(t)+'"]'}function Cs(t){return"script[async]"+t}function R0(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),oo(s,n.precedence,t),e.instance=s;case"stylesheet":r=ji(n.href);var u=t.querySelector(js(r));if(u)return e.state.loading|=4,e.instance=u,se(u),u;s=D0(n),(r=Ke.get(r))&&rc(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,oo(u,n.precedence,t),e.instance=u;case"script":return u=Ci(n.src),(r=t.querySelector(Cs(u)))?(e.instance=r,se(r),r):(s=n,(r=Ke.get(u))&&(s=x({},n),uc(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,oo(s,n.precedence,t));return e.instance}function oo(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 rc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function uc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ro=null;function V0(t,e,n){if(ro===null){var s=new Map,r=ro=new Map;r.set(n,s)}else r=ro,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[Xi]||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 O0(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function ob(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 _0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function rb(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=ji(s.href),u=e.querySelector(js(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=uo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,se(u);return}u=e.ownerDocument||e,s=D0(s),(r=Ke.get(r))&&rc(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=uo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var cc=0;function ub(t,e){return t.stylesheets&&t.count===0&&fo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var s=setTimeout(function(){if(t.stylesheets&&fo(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&cc===0&&(cc=62500*Y2());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&fo(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>cc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function uo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var co=null;function fo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,co=new Map,e.forEach(cb,t),co=null,uo.call(t))}function cb(t,e){if(!(e.state.loading&4)){var n=co.get(t);if(n)var s=n.get(null);else{n=new Map,co.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=uo.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 zs={$$typeof:U,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function fb(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=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(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 k0(t,e,n,s,r,u,h,b,T,z,k,q){return t=new fb(t,e,n,h,T,z,k,q,b),e=1,u===!0&&(e|=24),u=ze(3,null,null,e),t.current=u,u.stateNode=t,e=Yr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:e},Kr(u),t}function L0(t){return t?(t=si,t):si}function B0(t,e,n,s,r,u){r=L0(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=Kn(t,s,e),n!==null&&(Ae(n,t,e),os(n,t,e))}function U0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function fc(t,e){U0(t,e),(t=t.alternate)&&U0(t,e)}function H0(t){if(t.tag===13||t.tag===31){var e=Aa(t,67108864);e!==null&&Ae(e,t,67108864),fc(t,67108864)}}function G0(t){if(t.tag===13||t.tag===31){var e=Oe();e=lr(e);var n=Aa(t,e);n!==null&&Ae(n,t,e),fc(t,e)}}var ho=!0;function db(t,e,n,s){var r=R.T;R.T=null;var u=Q.p;try{Q.p=2,dc(t,e,n,s)}finally{Q.p=u,R.T=r}}function hb(t,e,n,s){var r=R.T;R.T=null;var u=Q.p;try{Q.p=8,dc(t,e,n,s)}finally{Q.p=u,R.T=r}}function dc(t,e,n,s){if(ho){var r=hc(s);if(r===null)Wu(t,e,s,mo,n),Y0(t,s);else if(pb(r,t,e,n,s))s.stopPropagation();else if(Y0(t,s),e&4&&-1<mb.indexOf(t)){for(;r!==null;){var u=Ja(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=ba(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}rn(u),(Nt&6)===0&&(Fl=Ee()+500,ws(0))}}break;case 31:case 13:b=Aa(u,2),b!==null&&Ae(b,u,2),$l(),fc(u,2)}if(u=hc(s),u===null&&Wu(t,e,s,mo,n),u===r)break;r=u}r!==null&&s.stopPropagation()}else Wu(t,e,s,null,n)}}function hc(t){return t=pr(t),mc(t)}var mo=null;function mc(t){if(mo=null,t=Ka(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=p(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 mo=t,null}function q0(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(Iy()){case Pf:return 2;case $f:return 8;case nl:case tv:return 32;case Wf:return 268435456;default:return 32}default:return 32}}var pc=!1,ia=null,sa=null,la=null,Ns=new Map,Ds=new Map,oa=[],mb="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 Y0(t,e){switch(t){case"focusin":case"focusout":ia=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Ns.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ds.delete(e.pointerId)}}function Rs(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=Ja(e),e!==null&&H0(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function pb(t,e,n,s,r){switch(e){case"focusin":return ia=Rs(ia,t,e,n,s,r),!0;case"dragenter":return sa=Rs(sa,t,e,n,s,r),!0;case"mouseover":return la=Rs(la,t,e,n,s,r),!0;case"pointerover":var u=r.pointerId;return Ns.set(u,Rs(Ns.get(u)||null,t,e,n,s,r)),!0;case"gotpointercapture":return u=r.pointerId,Ds.set(u,Rs(Ds.get(u)||null,t,e,n,s,r)),!0}return!1}function X0(t){var e=Ka(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,id(t.priority,function(){G0(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,id(t.priority,function(){G0(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 po(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=hc(t.nativeEvent);if(n===null){n=t.nativeEvent;var s=new n.constructor(n.type,n);mr=s,n.target.dispatchEvent(s),mr=null}else return e=Ja(n),e!==null&&H0(e),t.blockedOn=n,!1;e.shift()}return!0}function Z0(t,e,n){po(t)&&n.delete(e)}function gb(){pc=!1,ia!==null&&po(ia)&&(ia=null),sa!==null&&po(sa)&&(sa=null),la!==null&&po(la)&&(la=null),Ns.forEach(Z0),Ds.forEach(Z0)}function go(t,e){t.blockedOn===e&&(t.blockedOn=null,pc||(pc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,gb)))}var yo=null;function Q0(t){yo!==t&&(yo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){yo===t&&(yo=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(mc(s||n)===null)continue;break}var u=Ja(n);u!==null&&(t.splice(e,3),e-=3,hu(u,{pending:!0,data:r,method:n.method,action:s},s,r))}}))}function zi(t){function e(T){return go(T,t)}ia!==null&&go(ia,t),sa!==null&&go(sa,t),la!==null&&go(la,t),Ns.forEach(e),Ds.forEach(e);for(var n=0;n<oa.length;n++){var s=oa[n];s.blockedOn===t&&(s.blockedOn=null)}for(;0<oa.length&&(n=oa[0],n.blockedOn===null);)X0(n),n.blockedOn===null&&oa.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||Q0(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[ve]||null)b=h.formAction;else if(mc(r)!==null)continue}else b=h.action;typeof b=="function"?n[s+1]=b:(n.splice(s,3),s-=3),Q0(n)}}}function K0(){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 gc(t){this._internalRoot=t}vo.prototype.render=gc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,s=Oe();B0(n,s,t,e,null,null)},vo.prototype.unmount=gc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;B0(t.current,2,null,t,null,null),$l(),e[Qa]=null}};function vo(t){this._internalRoot=t}vo.prototype.unstable_scheduleHydration=function(t){if(t){var e=ad();t={blockedOn:null,target:t,priority:e};for(var n=0;n<oa.length&&e!==0&&e<oa[n].priority;n++);oa.splice(n,0,t),n===0&&X0(t)}};var J0=i.version;if(J0!=="19.2.6")throw Error(o(527,J0,"19.2.6"));Q.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=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var yb={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bo.isDisabled&&bo.supportsFiber)try{Gi=bo.inject(yb),Me=bo}catch{}}return Os.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,s="",r=em,u=nm,h=am;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=k0(t,1,!1,null,null,n,s,null,r,u,h,K0),t[Qa]=e.current,$u(t),new gc(e)},Os.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var s=!1,r="",u=em,h=nm,b=am,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=k0(t,1,!0,e,n??null,s,r,T,u,h,b,K0),e.context=L0(null),n=e.current,s=Oe(),s=lr(s),r=Qn(s),r.callback=null,Kn(n,r,s),n=s,e.current.lanes=n,Yi(e,n),rn(e),t[Qa]=e.current,$u(t),new vo(e)},Os.version="19.2.6",Os}var i1;function jb(){if(i1)return bc.exports;i1=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=Mb(),bc.exports}var kp=jb();const Lp=(...a)=>a.filter((i,l,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===l).join(" ").trim();const Cb=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const zb=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,o)=>o?o.toUpperCase():l.toLowerCase());const s1=a=>{const i=zb(a);return i.charAt(0).toUpperCase()+i.slice(1)};var wc={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 Nb=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Db=L.createContext({}),Rb=()=>L.useContext(Db),Vb=L.forwardRef(({color:a,size:i,strokeWidth:l,absoluteStrokeWidth:o,className:c="",children:f,iconNode:d,...p},g)=>{const{size:m=24,strokeWidth:v=2,absoluteStrokeWidth:x=!1,color:S="currentColor",className:j=""}=Rb()??{},E=o??x?Number(l??v)*24/Number(i??m):l??v;return L.createElement("svg",{ref:g,...wc,width:i??m??wc.width,height:i??m??wc.height,stroke:a??S,strokeWidth:E,className:Lp("lucide",j,c),...!f&&!Nb(p)&&{"aria-hidden":"true"},...p},[...d.map(([N,_])=>L.createElement(N,_)),...Array.isArray(f)?f:[f]])});const bt=(a,i)=>{const l=L.forwardRef(({className:o,...c},f)=>L.createElement(Vb,{ref:f,iconNode:i,className:Lp(`lucide-${Cb(s1(a))}`,`lucide-${a}`,o),...c}));return l.displayName=s1(a),l};const Ob=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],_b=bt("arrow-down",Ob);const kb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Lb=bt("arrow-up",kb);const Bb=[["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"}]],Ub=bt("box",Bb);const Hb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gb=bt("check",Hb);const qb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$s=bt("chevron-down",qb);const Yb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Xb=bt("chevron-right",Yb);const Zb=[["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"}]],Qb=bt("database",Zb);const Kb=[["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"}]],Jb=bt("earth",Kb);const Fb=[["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"}]],Pb=bt("external-link",Fb);const $b=[["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"}]],Wb=bt("file-code-corner",$b);const Ib=[["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"}]],tx=bt("file-text",Ib);const ex=[["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"}]],nx=bt("file",ex);const ax=[["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"}]],ix=bt("flask-conical",ax);const sx=[["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"}]],lx=bt("folder-plus",sx);const ox=[["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"}]],vf=bt("folder",ox);const rx=[["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"}]],Lo=bt("git-branch",rx);const ux=[["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"}]],cx=bt("git-pull-request-create",ux);const fx=[["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"}]],dx=bt("image",fx);const hx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Bp=bt("loader-circle",hx);const mx=[["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"}]],px=bt("lock-keyhole",mx);const gx=[["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"}]],yx=bt("network",gx);const vx=[["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"}]],bx=bt("palette",vx);const xx=[["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"}]],Sx=bt("panel-left-close",xx);const Tx=[["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"}]],wx=bt("panel-left-open",Tx);const Ax=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Ex=bt("panel-left",Ax);const Mx=[["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"}]],jx=bt("pencil",Mx);const Cx=[["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"}]],zx=bt("play",Cx);const Nx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Up=bt("plus",Nx);const Dx=[["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"}]],l1=bt("radio",Dx);const Rx=[["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"}]],Hp=bt("refresh-cw",Rx);const Vx=[["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"}]],Ox=bt("rotate-ccw",Vx);const _x=[["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"}]],kx=bt("save",_x);const Lx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Bx=bt("search",Lx);const Ux=[["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"}]],Hx=bt("server",Ux);const Gx=[["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"}]],qx=bt("settings-2",Gx);const Yx=[["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"}]],Xx=bt("square-terminal",Yx);const Zx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Qx=bt("square",Zx);const Kx=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Jx=bt("terminal",Kx);const Fx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bf=bt("x",Fx);async function Px(){return Jo("/api/dashboard")}async function $x(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 Wx(a){return Jo(`/api/fs/directories?path=${encodeURIComponent(a)}`)}async function o1(a){return(await Jo(`/api/services/${encodeURIComponent(a)}/logs`)).logs}async function en(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 Jo(a,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function Jo(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 Gp(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=Gp(a[i]))&&(o&&(o+=" "),o+=l)}else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function Qs(){for(var a,i,l=0,o="",c=arguments.length;l<c;l++)(a=arguments[l])&&(i=Gp(a))&&(o&&(o+=" "),o+=i);return o}const r1=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,u1=Qs,qp=(a,i)=>l=>{var o;if(i?.variants==null)return u1(a,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(m=>{const v=l?.[m],x=f?.[m];if(v===null)return null;const S=r1(v)||r1(x);return c[m][S]}),p=l&&Object.entries(l).reduce((m,v)=>{let[x,S]=v;return S===void 0||(m[x]=S),m},{}),g=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((m,v)=>{let{class:x,className:S,...j}=v;return Object.entries(j).every(E=>{let[N,_]=E;return Array.isArray(_)?_.includes({...f,...p}[N]):{...f,...p}[N]===_})?[...m,x,S]:m},[]);return u1(a,d,g,l?.class,l?.className)},Ix=(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},t3=(a,i)=>({classGroupId:a,validator:i}),Yp=(a=new Map,i=null,l)=>({nextPart:a,validators:i,classGroupId:l}),Bo="-",c1=[],e3="arbitrary..",n3=a=>{const i=i3(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return a3(d);const p=d.split(Bo),g=p[0]===""&&p.length>1?1:0;return Xp(p,g,i)},getConflictingClassGroupIds:(d,p)=>{if(p){const g=o[d],m=l[d];return g?m?Ix(m,g):g:m||c1}return l[d]||c1}}},Xp=(a,i,l)=>{if(a.length-i===0)return l.classGroupId;const c=a[i],f=l.nextPart.get(c);if(f){const m=Xp(a,i+1,f);if(m)return m}const d=l.validators;if(d===null)return;const p=i===0?a.join(Bo):a.slice(i).join(Bo),g=d.length;for(let m=0;m<g;m++){const v=d[m];if(v.validator(p))return v.classGroupId}},a3=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?e3+o:void 0})(),i3=a=>{const{theme:i,classGroups:l}=a;return s3(l,i)},s3=(a,i)=>{const l=Yp();for(const o in a){const c=a[o];xf(c,l,o,i)}return l},xf=(a,i,l,o)=>{const c=a.length;for(let f=0;f<c;f++){const d=a[f];l3(d,i,l,o)}},l3=(a,i,l,o)=>{if(typeof a=="string"){o3(a,i,l);return}if(typeof a=="function"){r3(a,i,l,o);return}u3(a,i,l,o)},o3=(a,i,l)=>{const o=a===""?i:Zp(i,a);o.classGroupId=l},r3=(a,i,l,o)=>{if(c3(a)){xf(a(o),i,l,o);return}i.validators===null&&(i.validators=[]),i.validators.push(t3(l,a))},u3=(a,i,l,o)=>{const c=Object.entries(a),f=c.length;for(let d=0;d<f;d++){const[p,g]=c[d];xf(g,Zp(i,p),l,o)}},Zp=(a,i)=>{let l=a;const o=i.split(Bo),c=o.length;for(let f=0;f<c;f++){const d=o[f];let p=l.nextPart.get(d);p||(p=Yp(),l.nextPart.set(d,p)),l=p}return l},c3=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,f3=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)}}},Zc="!",f1=":",d3=[],d1=(a,i,l,o,c)=>({modifiers:a,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:o,isExternal:c}),h3=a=>{const{prefix:i,experimentalParseClassName:l}=a;let o=c=>{const f=[];let d=0,p=0,g=0,m;const v=c.length;for(let N=0;N<v;N++){const _=c[N];if(d===0&&p===0){if(_===f1){f.push(c.slice(g,N)),g=N+1;continue}if(_==="/"){m=N;continue}}_==="["?d++:_==="]"?d--:_==="("?p++:_===")"&&p--}const x=f.length===0?c:c.slice(g);let S=x,j=!1;x.endsWith(Zc)?(S=x.slice(0,-1),j=!0):x.startsWith(Zc)&&(S=x.slice(1),j=!0);const E=m&&m>g?m-g:void 0;return d1(f,j,S,E)};if(i){const c=i+f1,f=o;o=d=>d.startsWith(c)?f(d.slice(c.length)):d1(d3,!1,d,void 0,!0)}if(l){const c=o;o=f=>l({className:f,parseClassName:c})}return o},m3=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],p=d[0]==="[",g=i.has(d);p||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}},p3=a=>({cache:f3(a.cacheSize),parseClassName:h3(a),sortModifiers:m3(a),postfixLookupClassGroupIds:g3(a),...n3(a)}),g3=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},y3=/\s+/,v3=(a,i)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:f,postfixLookupClassGroupIds:d}=i,p=[],g=a.trim().split(y3);let m="";for(let v=g.length-1;v>=0;v-=1){const x=g[v],{isExternal:S,modifiers:j,hasImportantModifier:E,baseClassName:N,maybePostfixModifierPosition:_}=l(x);if(S){m=x+(m.length>0?" "+m:m);continue}let B=!!_,O;if(B){const W=N.substring(0,_);O=o(W);const Y=O&&d[O]?o(N):void 0;Y&&Y!==O&&(O=Y,B=!1)}else O=o(N);if(!O){if(!B){m=x+(m.length>0?" "+m:m);continue}if(O=o(N),!O){m=x+(m.length>0?" "+m:m);continue}B=!1}const U=j.length===0?"":j.length===1?j[0]:f(j).join(":"),X=E?U+Zc:U,$=X+O;if(p.indexOf($)>-1)continue;p.push($);const ut=c(O,B);for(let W=0;W<ut.length;++W){const Y=ut[W];p.push(X+Y)}m=x+(m.length>0?" "+m:m)}return m},b3=(...a)=>{let i=0,l,o,c="";for(;i<a.length;)(l=a[i++])&&(o=Qp(l))&&(c&&(c+=" "),c+=o);return c},Qp=a=>{if(typeof a=="string")return a;let i,l="";for(let o=0;o<a.length;o++)a[o]&&(i=Qp(a[o]))&&(l&&(l+=" "),l+=i);return l},x3=(a,...i)=>{let l,o,c,f;const d=g=>{const m=i.reduce((v,x)=>x(v),a());return l=p3(m),o=l.cache.get,c=l.cache.set,f=p,p(g)},p=g=>{const m=o(g);if(m)return m;const v=v3(g,l);return c(g,v),v};return f=d,(...g)=>f(b3(...g))},S3=[],ne=a=>{const i=l=>l[a]||S3;return i.isThemeGetter=!0,i},Kp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,T3=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,w3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A3=/\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$/,E3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ua=a=>T3.test(a),vt=a=>!!a&&!Number.isNaN(Number(a)),un=a=>!!a&&Number.isInteger(Number(a)),Ac=a=>a.endsWith("%")&&vt(a.slice(0,-1)),_n=a=>w3.test(a),Fp=()=>!0,C3=a=>A3.test(a)&&!E3.test(a),Sf=()=>!1,z3=a=>M3.test(a),N3=a=>j3.test(a),D3=a=>!P(a)&&!et(a),R3=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)),V3=a=>ma(a,Wp,Sf),P=a=>Kp.test(a),La=a=>ma(a,Ip,C3),h1=a=>ma(a,G3,vt),O3=a=>ma(a,eg,Fp),_3=a=>ma(a,tg,Sf),m1=a=>ma(a,Pp,Sf),k3=a=>ma(a,$p,N3),xo=a=>ma(a,ng,z3),et=a=>Jp.test(a),_s=a=>Xa(a,Ip),L3=a=>Xa(a,tg),p1=a=>Xa(a,Pp),B3=a=>Xa(a,Wp),U3=a=>Xa(a,$p),So=a=>Xa(a,ng,!0),H3=a=>Xa(a,eg,!0),ma=(a,i,l)=>{const o=Kp.exec(a);return o?o[1]?i(o[1]):l(o[2]):!1},Xa=(a,i,l=!1)=>{const o=Jp.exec(a);return o?o[1]?i(o[1]):l:!1},Pp=a=>a==="position"||a==="percentage",$p=a=>a==="image"||a==="url",Wp=a=>a==="length"||a==="size"||a==="bg-size",Ip=a=>a==="length",G3=a=>a==="number",tg=a=>a==="family-name",eg=a=>a==="number"||a==="weight",ng=a=>a==="shadow",q3=()=>{const a=ne("color"),i=ne("font"),l=ne("text"),o=ne("font-weight"),c=ne("tracking"),f=ne("leading"),d=ne("breakpoint"),p=ne("container"),g=ne("spacing"),m=ne("radius"),v=ne("shadow"),x=ne("inset-shadow"),S=ne("text-shadow"),j=ne("drop-shadow"),E=ne("blur"),N=ne("perspective"),_=ne("aspect"),B=ne("ease"),O=ne("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...X(),et,P],ut=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],Y=()=>[et,P,g],Z=()=>[ua,"full","auto",...Y()],I=()=>[un,"none","subgrid",et,P],ft=()=>["auto",{span:["full",un,et,P]},un,et,P],gt=()=>[un,"auto",et,P],Dt=()=>["auto","min","max","fr",et,P],At=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],zt=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...Y()],Q=()=>[ua,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],J=()=>[ua,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ct=()=>[ua,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],K=()=>[a,et,P],w=()=>[...X(),p1,m1,{position:[et,P]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",B3,V3,{size:[et,P]}],tt=()=>[Ac,_s,La],st=()=>["","none","full",m,et,P],ot=()=>["",vt,_s,La],Et=()=>["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"],yt=()=>[vt,Ac,p1,m1],kn=()=>["","none",E,et,P],gn=()=>["none",vt,et,P],Ln=()=>["none",vt,et,P],Za=()=>[vt,et,P],Le=()=>[ua,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_n],breakpoint:[_n],color:[Fp],container:[_n],"drop-shadow":[_n],ease:["in","out","in-out"],font:[D3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_n],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_n],shadow:[_n],spacing:["px",vt],text:[_n],"text-shadow":[_n],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ua,P,et,_]}],container:["container"],"container-type":[{"@container":["","normal","size",et,P]}],"container-named":[R3],columns:[{columns:[vt,P,et,p]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:$()}],overflow:[{overflow:ut()}],"overflow-x":[{"overflow-x":ut()}],"overflow-y":[{"overflow-y":ut()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[un,"auto",et,P]}],basis:[{basis:[ua,"full","auto",p,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[vt,ua,"auto","initial","none",P]}],grow:[{grow:["",vt,et,P]}],shrink:[{shrink:["",vt,et,P]}],order:[{order:[un,"first","last","none",et,P]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:ft()}],"col-start":[{"col-start":gt()}],"col-end":[{"col-end":gt()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:ft()}],"row-start":[{"row-start":gt()}],"row-end":[{"row-end":gt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Dt()}],"auto-rows":[{"auto-rows":Dt()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...At(),"normal"]}],"justify-items":[{"justify-items":[...zt(),"normal"]}],"justify-self":[{"justify-self":["auto",...zt()]}],"align-content":[{content:["normal",...At()]}],"align-items":[{items:[...zt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...zt(),{baseline:["","last"]}]}],"place-content":[{"place-content":At()}],"place-items":[{"place-items":[...zt(),"baseline"]}],"place-self":[{"place-self":["auto",...zt()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],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":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...ct()]}],"min-block-size":[{"min-block":["auto",...ct()]}],"max-block-size":[{"max-block":["none",...ct()]}],w:[{w:[p,"screen",...Q()]}],"min-w":[{"min-w":[p,"screen","none",...Q()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",l,_s,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,H3,O3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ac,P]}],"font-family":[{font:[L3,_3,i]}],"font-features":[{"font-features":[P]}],"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,et,P]}],"line-clamp":[{"line-clamp":[vt,"none",et,h1]}],leading:[{leading:[f,...Y()]}],"list-image":[{"list-image":["none",et,P]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",et,P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Et(),"wavy"]}],"text-decoration-thickness":[{decoration:[vt,"from-font","auto",et,La]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[vt,"auto",et,P]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"tab-size":[{tab:[un,et,P]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et,P]}],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",et,P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},un,et,P],radial:["",et,P],conic:[un,et,P]},U3,k3]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:tt()}],"gradient-via-pos":[{via:tt()}],"gradient-to-pos":[{to:tt()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:st()}],"rounded-s":[{"rounded-s":st()}],"rounded-e":[{"rounded-e":st()}],"rounded-t":[{"rounded-t":st()}],"rounded-r":[{"rounded-r":st()}],"rounded-b":[{"rounded-b":st()}],"rounded-l":[{"rounded-l":st()}],"rounded-ss":[{"rounded-ss":st()}],"rounded-se":[{"rounded-se":st()}],"rounded-ee":[{"rounded-ee":st()}],"rounded-es":[{"rounded-es":st()}],"rounded-tl":[{"rounded-tl":st()}],"rounded-tr":[{"rounded-tr":st()}],"rounded-br":[{"rounded-br":st()}],"rounded-bl":[{"rounded-bl":st()}],"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:[...Et(),"hidden","none"]}],"divide-style":[{divide:[...Et(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...Et(),"none","hidden"]}],"outline-offset":[{"outline-offset":[vt,et,P]}],"outline-w":[{outline:["",vt,_s,La]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",v,So,xo]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",x,So,xo]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ot()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[vt,La]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ot()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",S,So,xo]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[vt,et,P]}],"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":[vt]}],"mask-image-linear-from-pos":[{"mask-linear-from":yt()}],"mask-image-linear-to-pos":[{"mask-linear-to":yt()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":yt()}],"mask-image-t-to-pos":[{"mask-t-to":yt()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":yt()}],"mask-image-r-to-pos":[{"mask-r-to":yt()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":yt()}],"mask-image-b-to-pos":[{"mask-b-to":yt()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":yt()}],"mask-image-l-to-pos":[{"mask-l-to":yt()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":yt()}],"mask-image-x-to-pos":[{"mask-x-to":yt()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":yt()}],"mask-image-y-to-pos":[{"mask-y-to":yt()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[et,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":yt()}],"mask-image-radial-to-pos":[{"mask-radial-to":yt()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":X()}],"mask-image-conic-pos":[{"mask-conic":[vt]}],"mask-image-conic-from-pos":[{"mask-conic-from":yt()}],"mask-image-conic-to-pos":[{"mask-conic-to":yt()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",et,P]}],filter:[{filter:["","none",et,P]}],blur:[{blur:kn()}],brightness:[{brightness:[vt,et,P]}],contrast:[{contrast:[vt,et,P]}],"drop-shadow":[{"drop-shadow":["","none",j,So,xo]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",vt,et,P]}],"hue-rotate":[{"hue-rotate":[vt,et,P]}],invert:[{invert:["",vt,et,P]}],saturate:[{saturate:[vt,et,P]}],sepia:[{sepia:["",vt,et,P]}],"backdrop-filter":[{"backdrop-filter":["","none",et,P]}],"backdrop-blur":[{"backdrop-blur":kn()}],"backdrop-brightness":[{"backdrop-brightness":[vt,et,P]}],"backdrop-contrast":[{"backdrop-contrast":[vt,et,P]}],"backdrop-grayscale":[{"backdrop-grayscale":["",vt,et,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vt,et,P]}],"backdrop-invert":[{"backdrop-invert":["",vt,et,P]}],"backdrop-opacity":[{"backdrop-opacity":[vt,et,P]}],"backdrop-saturate":[{"backdrop-saturate":[vt,et,P]}],"backdrop-sepia":[{"backdrop-sepia":["",vt,et,P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",et,P]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[vt,"initial",et,P]}],ease:[{ease:["linear","initial",B,et,P]}],delay:[{delay:[vt,et,P]}],animate:[{animate:["none",O,et,P]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,et,P]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:gn()}],"rotate-x":[{"rotate-x":gn()}],"rotate-y":[{"rotate-y":gn()}],"rotate-z":[{"rotate-z":gn()}],scale:[{scale:Ln()}],"scale-x":[{"scale-x":Ln()}],"scale-y":[{"scale-y":Ln()}],"scale-z":[{"scale-z":Ln()}],"scale-3d":["scale-3d"],skew:[{skew:Za()}],"skew-x":[{"skew-x":Za()}],"skew-y":[{"skew-y":Za()}],transform:[{transform:[et,P,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],zoom:[{zoom:[un,et,P]}],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",et,P]}],"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":K()}],"scrollbar-track-color":[{"scrollbar-track":K()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",et,P]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[vt,_s,La,h1]}],stroke:[{stroke:["none",...K()]}],"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"]}},Y3=x3(q3);function pt(...a){return Y3(Qs(a))}const X3=qp("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 Ot({className:a,variant:i,size:l,...o}){return y.jsx("button",{className:pt(X3({variant:i,size:l,className:a})),...o})}const ag=L.createContext({});function Z3(a){const i=L.useRef(null);return i.current===null&&(i.current=a()),i.current}const Q3=typeof window<"u",K3=Q3?L.useLayoutEffect:L.useEffect,Tf=L.createContext(null);function wf(a,i){a.indexOf(i)===-1&&a.push(i)}function Uo(a,i){const l=a.indexOf(i);l>-1&&a.splice(l,1)}const pn=(a,i,l)=>l>i?i:l<a?a:l;let Af=()=>{};const da={},ig=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function sg(a){return typeof a=="object"&&a!==null}const lg=a=>/^0[^.\s]+$/u.test(a);function og(a){let i;return()=>(i===void 0&&(i=a()),i)}const Fe=a=>a,J3=(a,i)=>l=>i(a(l)),Ws=(...a)=>a.reduce(J3),Ks=(a,i,l)=>{const o=i-a;return o===0?1:(l-a)/o};class Ef{constructor(){this.subscriptions=[]}add(i){return wf(this.subscriptions,i),()=>Uo(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 rg(a,i){return i?a*(1e3/i):0}const ug=(a,i,l)=>(((1-3*l+3*i)*a+(3*l-6*i))*a+3*i)*a,F3=1e-7,P3=12;function $3(a,i,l,o,c){let f,d,p=0;do d=i+(l-i)/2,f=ug(d,o,c)-a,f>0?l=d:i=d;while(Math.abs(f)>F3&&++p<P3);return d}function Is(a,i,l,o){if(a===i&&l===o)return Fe;const c=f=>$3(f,0,1,a,l);return f=>f===0||f===1?f:ug(c(f),i,o)}const cg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,fg=a=>i=>1-a(1-i),dg=Is(.33,1.53,.69,.99),Mf=fg(dg),hg=cg(Mf),mg=a=>a>=1?1:(a*=2)<1?.5*Mf(a):.5*(2-Math.pow(2,-10*(a-1))),jf=a=>1-Math.sin(Math.acos(a)),pg=fg(jf),gg=cg(jf),W3=Is(.42,0,1,1),I3=Is(0,0,.58,1),yg=Is(.42,0,.58,1),t5=a=>Array.isArray(a)&&typeof a[0]!="number",vg=a=>Array.isArray(a)&&typeof a[0]=="number",e5={linear:Fe,easeIn:W3,easeInOut:yg,easeOut:I3,circIn:jf,circInOut:gg,circOut:pg,backIn:Mf,backInOut:hg,backOut:dg,anticipate:mg},n5=a=>typeof a=="string",g1=a=>{if(vg(a)){Af(a.length===4);const[i,l,o,c]=a;return Is(i,l,o,c)}else if(n5(a))return e5[a];return a},To=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function a5(a,i){let l=new Set,o=new Set,c=!1,f=!1;const d=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(v){d.has(v)&&(m.schedule(v),a()),v(p)}const m={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(p=v,c){f=!0;return}c=!0;const x=l;l=o,o=x,l.forEach(g),l.clear(),c=!1,f&&(f=!1,m.process(v))}};return m}const i5=40;function bg(a,i){let l=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,d=To.reduce((U,X)=>(U[X]=a5(f),U),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:v,update:x,preRender:S,render:j,postRender:E}=d,N=()=>{const U=da.useManualTiming,X=U?c.timestamp:performance.now();l=!1,U||(c.delta=o?1e3/60:Math.max(Math.min(X-c.timestamp,i5),1)),c.timestamp=X,c.isProcessing=!0,p.process(c),g.process(c),m.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(N))},_=()=>{l=!0,o=!0,c.isProcessing||a(N)};return{schedule:To.reduce((U,X)=>{const $=d[X];return U[X]=(ut,W=!1,Y=!1)=>(l||_(),$.schedule(ut,W,Y)),U},{}),cancel:U=>{for(let X=0;X<To.length;X++)d[To[X]].cancel(U)},state:c,steps:d}}const{schedule:Ut,cancel:ha,state:de,steps:Ec}=bg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0);let Co;function s5(){Co=void 0}const ge={now:()=>(Co===void 0&&ge.set(de.isProcessing||da.useManualTiming?de.timestamp:performance.now()),Co),set:a=>{Co=a,queueMicrotask(s5)}},xg=a=>i=>typeof i=="string"&&i.startsWith(a),Sg=xg("--"),l5=xg("var(--"),Cf=a=>l5(a)?o5.test(a.split("/*")[0].trim()):!1,o5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function y1(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Li={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Js={...Li,transform:a=>pn(0,1,a)},wo={...Li,default:1},Bs=a=>Math.round(a*1e5)/1e5,zf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function r5(a){return a==null}const u5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nf=(a,i)=>l=>!!(typeof l=="string"&&u5.test(l)&&l.startsWith(a)||i&&!r5(l)&&Object.prototype.hasOwnProperty.call(l,i)),Tg=(a,i,l)=>o=>{if(typeof o!="string")return o;const[c,f,d,p]=o.match(zf);return{[a]:parseFloat(c),[i]:parseFloat(f),[l]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},c5=a=>pn(0,255,a),Mc={...Li,transform:a=>Math.round(c5(a))},Ha={test:Nf("rgb","red"),parse:Tg("red","green","blue"),transform:({red:a,green:i,blue:l,alpha:o=1})=>"rgba("+Mc.transform(a)+", "+Mc.transform(i)+", "+Mc.transform(l)+", "+Bs(Js.transform(o))+")"};function f5(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:Nf("#"),parse:f5,transform:Ha.transform},tl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),ca=tl("deg"),mn=tl("%"),at=tl("px"),d5=tl("vh"),h5=tl("vw"),v1={...mn,parse:a=>mn.parse(a)/100,transform:a=>mn.transform(a*100)},Ri={test:Nf("hsl","hue"),parse:Tg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:l,alpha:o=1})=>"hsla("+Math.round(a)+", "+mn.transform(Bs(i))+", "+mn.transform(Bs(l))+", "+Bs(Js.transform(o))+")"},It={test:a=>Ha.test(a)||Qc.test(a)||Ri.test(a),parse:a=>Ha.test(a)?Ha.parse(a):Ri.test(a)?Ri.parse(a):Qc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ha.transform(a):Ri.transform(a),getAnimatableNone:a=>{const i=It.parse(a);return i.alpha=0,It.transform(i)}},m5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function p5(a){return isNaN(a)&&typeof a=="string"&&(a.match(zf)?.length||0)+(a.match(m5)?.length||0)>0}const wg="number",Ag="color",g5="var",y5="var(",b1="${}",v5=/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 _i(a){const i=a.toString(),l=[],o={color:[],number:[],var:[]},c=[];let f=0;const p=i.replace(v5,g=>(It.test(g)?(o.color.push(f),c.push(Ag),l.push(It.parse(g))):g.startsWith(y5)?(o.var.push(f),c.push(g5),l.push(g)):(o.number.push(f),c.push(wg),l.push(parseFloat(g))),++f,b1)).split(b1);return{values:l,split:p,indexes:o,types:c}}function b5(a){return _i(a).values}function Eg({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===wg?c+=Bs(o[f]):d===Ag?c+=It.transform(o[f]):c+=o[f]}return c}}function x5(a){return Eg(_i(a))}const S5=a=>typeof a=="number"?0:It.test(a)?It.getAnimatableNone(a):a,T5=(a,i)=>typeof a=="number"?i?.trim().endsWith("/")?a:0:S5(a);function w5(a){const i=_i(a);return Eg(i)(i.values.map((o,c)=>T5(o,i.split[c])))}const nn={test:p5,parse:b5,createTransformer:x5,getAnimatableNone:w5};function jc(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 A5({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 p=l<.5?l*(1+i):l+i-l*i,g=2*l-p;c=jc(g,p,a+1/3),f=jc(g,p,a),d=jc(g,p,a-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:o}}function Ho(a,i){return l=>l>0?i:a}const qt=(a,i,l)=>a+(i-a)*l,Cc=(a,i,l)=>{const o=a*a,c=l*(i*i-o)+o;return c<0?0:Math.sqrt(c)},E5=[Qc,Ha,Ri],M5=a=>E5.find(i=>i.test(a));function x1(a){const i=M5(a);if(!i)return!1;let l=i.parse(a);return i===Ri&&(l=A5(l)),l}const S1=(a,i)=>{const l=x1(a),o=x1(i);if(!l||!o)return Ho(a,i);const c={...l};return f=>(c.red=Cc(l.red,o.red,f),c.green=Cc(l.green,o.green,f),c.blue=Cc(l.blue,o.blue,f),c.alpha=qt(l.alpha,o.alpha,f),Ha.transform(c))},Kc=new Set(["none","hidden"]);function j5(a,i){return Kc.has(a)?l=>l<=0?a:i:l=>l>=1?i:a}function C5(a,i){return l=>qt(a,i,l)}function Df(a){return typeof a=="number"?C5:typeof a=="string"?Cf(a)?Ho:It.test(a)?S1:D5:Array.isArray(a)?Mg:typeof a=="object"?It.test(a)?S1:z5:Ho}function Mg(a,i){const l=[...a],o=l.length,c=a.map((f,d)=>Df(f)(f,i[d]));return f=>{for(let d=0;d<o;d++)l[d]=c[d](f);return l}}function z5(a,i){const l={...a,...i},o={};for(const c in l)a[c]!==void 0&&i[c]!==void 0&&(o[c]=Df(a[c])(a[c],i[c]));return c=>{for(const f in o)l[f]=o[f](c);return l}}function N5(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]],p=a.values[d]??0;l[c]=p,o[f]++}return l}const D5=(a,i)=>{const l=nn.createTransformer(i),o=_i(a),c=_i(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?Kc.has(a)&&!c.values.length||Kc.has(i)&&!o.values.length?j5(a,i):Ws(Mg(N5(o,c),c.values),l):Ho(a,i)};function jg(a,i,l){return typeof a=="number"&&typeof i=="number"&&typeof l=="number"?qt(a,i,l):Df(a)(a,i)}const R5=a=>{const i=({timestamp:l})=>a(l);return{start:(l=!0)=>Ut.update(i,l),stop:()=>ha(i),now:()=>de.isProcessing?de.timestamp:ge.now()}},Cg=(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)})`},Go=2e4;function Rf(a){let i=0;const l=50;let o=a.next(i);for(;!o.done&&i<Go;)i+=l,o=a.next(i);return i>=Go?1/0:i}function V5(a,i=100,l){const o=l({...a,keyframes:[0,i]}),c=Math.min(Rf(o),Go);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 Jc(a,i){return a*Math.sqrt(1-i*i)}const O5=12;function _5(a,i,l){let o=l;for(let c=1;c<O5;c++)o=o-a(o)/i(o);return o}const zc=.001;function k5({duration:a=Qt.duration,bounce:i=Qt.bounce,velocity:l=Qt.velocity,mass:o=Qt.mass}){let c,f,d=1-i;d=pn(Qt.minDamping,Qt.maxDamping,d),a=pn(Qt.minDuration,Qt.maxDuration,Je(a)),d<1?(c=m=>{const v=m*d,x=v*a,S=v-l,j=Jc(m,d),E=Math.exp(-x);return zc-S/j*E},f=m=>{const x=m*d*a,S=x*l+l,j=Math.pow(d,2)*Math.pow(m,2)*a,E=Math.exp(-x),N=Jc(Math.pow(m,2),d);return(-c(m)+zc>0?-1:1)*((S-j)*E)/N}):(c=m=>{const v=Math.exp(-m*a),x=(m-l)*a+1;return-zc+v*x},f=m=>{const v=Math.exp(-m*a),x=(l-m)*(a*a);return v*x});const p=5/a,g=_5(c,f,p);if(a=_e(a),isNaN(g))return{stiffness:Qt.stiffness,damping:Qt.damping,duration:a};{const m=Math.pow(g,2)*o;return{stiffness:m,damping:d*2*Math.sqrt(o*m),duration:a}}}const L5=["duration","bounce"],B5=["stiffness","damping","mass"];function T1(a,i){return i.some(l=>a[l]!==void 0)}function U5(a){let i={velocity:Qt.velocity,stiffness:Qt.stiffness,damping:Qt.damping,mass:Qt.mass,isResolvedFromDuration:!1,...a};if(!T1(a,B5)&&T1(a,L5))if(i.velocity=0,a.visualDuration){const l=a.visualDuration,o=2*Math.PI/(l*1.2),c=o*o,f=2*pn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Qt.mass,stiffness:c,damping:f}}else{const l=k5({...a,velocity:0});i={...i,...l,mass:Qt.mass},i.isResolvedFromDuration=!0}return i}function qo(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],p={done:!1,value:f},{stiffness:g,damping:m,mass:v,duration:x,velocity:S,isResolvedFromDuration:j}=U5({...l,velocity:-Je(l.velocity||0)}),E=S||0,N=m/(2*Math.sqrt(g*v)),_=d-f,B=Je(Math.sqrt(g/v)),O=Math.abs(_)<5;o||(o=O?Qt.restSpeed.granular:Qt.restSpeed.default),c||(c=O?Qt.restDelta.granular:Qt.restDelta.default);let U,X,$,ut,W,Y;if(N<1)$=Jc(B,N),ut=(E+N*B*_)/$,U=I=>{const ft=Math.exp(-N*B*I);return d-ft*(ut*Math.sin($*I)+_*Math.cos($*I))},W=N*B*ut+_*$,Y=N*B*_-ut*$,X=I=>Math.exp(-N*B*I)*(W*Math.sin($*I)+Y*Math.cos($*I));else if(N===1){U=ft=>d-Math.exp(-B*ft)*(_+(E+B*_)*ft);const I=E+B*_;X=ft=>Math.exp(-B*ft)*(B*I*ft-E)}else{const I=B*Math.sqrt(N*N-1);U=At=>{const zt=Math.exp(-N*B*At),R=Math.min(I*At,300);return d-zt*((E+N*B*_)*Math.sinh(R)+I*_*Math.cosh(R))/I};const ft=(E+N*B*_)/I,gt=N*B*ft-_*I,Dt=N*B*_-ft*I;X=At=>{const zt=Math.exp(-N*B*At),R=Math.min(I*At,300);return zt*(gt*Math.sinh(R)+Dt*Math.cosh(R))}}const Z={calculatedDuration:j&&x||null,velocity:I=>_e(X(I)),next:I=>{if(!j&&N<1){const gt=Math.exp(-N*B*I),Dt=Math.sin($*I),At=Math.cos($*I),zt=d-gt*(ut*Dt+_*At),R=_e(gt*(W*Dt+Y*At));return p.done=Math.abs(R)<=o&&Math.abs(d-zt)<=c,p.value=p.done?d:zt,p}const ft=U(I);if(j)p.done=I>=x;else{const gt=_e(X(I));p.done=Math.abs(gt)<=o&&Math.abs(d-ft)<=c}return p.value=p.done?d:ft,p},toString:()=>{const I=Math.min(Rf(Z),Go),ft=Cg(gt=>Z.next(I*gt).value,I,30);return I+"ms "+ft},toTransition:()=>{}};return Z}qo.applyToOptions=a=>{const i=V5(a,100,qo);return a.ease=i.ease,a.duration=_e(i.duration),a.type="keyframes",a};const H5=5;function zg(a,i,l){const o=Math.max(i-H5,0);return rg(l-a(o),i-o)}function Fc({keyframes:a,velocity:i=0,power:l=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:p,max:g,restDelta:m=.5,restSpeed:v}){const x=a[0],S={done:!1,value:x},j=Y=>p!==void 0&&Y<p||g!==void 0&&Y>g,E=Y=>p===void 0?g:g===void 0||Math.abs(p-Y)<Math.abs(g-Y)?p:g;let N=l*i;const _=x+N,B=d===void 0?_:d(_);B!==_&&(N=B-x);const O=Y=>-N*Math.exp(-Y/o),U=Y=>B+O(Y),X=Y=>{const Z=O(Y),I=U(Y);S.done=Math.abs(Z)<=m,S.value=S.done?B:I};let $,ut;const W=Y=>{j(S.value)&&($=Y,ut=qo({keyframes:[S.value,E(S.value)],velocity:zg(U,Y,S.value),damping:c,stiffness:f,restDelta:m,restSpeed:v}))};return W(0),{calculatedDuration:null,next:Y=>{let Z=!1;return!ut&&$===void 0&&(Z=!0,X(Y),W(Y)),$!==void 0&&Y>=$?ut.next(Y-$):(!Z&&X(Y),S)}}}function G5(a,i,l){const o=[],c=l||da.mix||jg,f=a.length-1;for(let d=0;d<f;d++){let p=c(a[d],a[d+1]);if(i){const g=Array.isArray(i)?i[d]||Fe:i;p=Ws(g,p)}o.push(p)}return o}function q5(a,i,{clamp:l=!0,ease:o,mixer:c}={}){const f=a.length;if(Af(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 p=G5(i,o,c),g=p.length,m=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=Ks(a[x],a[x+1],v);return p[x](S)};return l?v=>m(pn(a[0],a[f-1],v)):m}function Y5(a,i){const l=a[a.length-1];for(let o=1;o<=i;o++){const c=Ks(0,i,o);a.push(qt(l,1,c))}}function X5(a){const i=[0];return Y5(i,a.length-1),i}function Z5(a,i){return a.map(l=>l*i)}function Q5(a,i){return a.map(()=>i||yg).splice(0,a.length-1)}function Us({duration:a=300,keyframes:i,times:l,ease:o="easeInOut"}){const c=t5(o)?o.map(g1):g1(o),f={done:!1,value:i[0]},d=Z5(l&&l.length===i.length?l:X5(i),a),p=q5(d,i,{ease:Array.isArray(c)?c:Q5(i,c)});return{calculatedDuration:a,next:g=>(f.value=p(g),f.done=g>=a,f)}}const K5=a=>a!==null;function Fo(a,{repeat:i,repeatType:l="loop"},o,c=1){const f=a.filter(K5),p=c<0||i&&l!=="loop"&&i%2===1?0:f.length-1;return!p||o===void 0?f[p]:o}const J5={decay:Fc,inertia:Fc,tween:Us,keyframes:Us,spring:qo};function Ng(a){typeof a.type=="string"&&(a.type=J5[a.type])}class Vf{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 F5=a=>a/100;class Yo extends Vf{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;Ng(i);const{type:l=Us,repeat:o=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:p}=i;const g=l||Us;g!==Us&&typeof p[0]!="number"&&(this.mixKeyframes=Ws(F5,jg(p[0],p[1])),p=[0,100]);const m=g({...i,keyframes:p});f==="mirror"&&(this.mirroredGenerator=g({...i,keyframes:[...p].reverse(),velocity:-d})),m.calculatedDuration===null&&(m.calculatedDuration=Rf(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}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:p,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:x,repeatType:S,repeatDelay:j,type:E,onUpdate:N,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 B=this.currentTime-m*(this.playbackSpeed>=0?1:-1),O=this.playbackSpeed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let U=this.currentTime,X=o;if(x){const Y=Math.min(this.currentTime,c)/p;let Z=Math.floor(Y),I=Y%1;!I&&Y>=1&&(I=1),I===1&&Z--,Z=Math.min(Z,x+1),Z%2&&(S==="reverse"?(I=1-I,j&&(I-=j/p)):S==="mirror"&&(X=d)),U=pn(0,1,I)*p}let $;O?(this.delayState.value=v[0],$=this.delayState):$=X.next(U),f&&!O&&($.value=f($.value));let{done:ut}=$;!O&&g!==null&&(ut=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const W=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ut);return W&&E!==Fc&&($.value=Fo(v,this.options,_,this.speed)),N&&N($.value),W&&this.finish(),$}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 zg(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=R5,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 P5(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ga=a=>a*180/Math.PI,Pc=a=>{const i=Ga(Math.atan2(a[1],a[0]));return $c(i)},$5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Pc,rotateZ:Pc,skewX:a=>Ga(Math.atan(a[1])),skewY:a=>Ga(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},$c=a=>(a=a%360,a<0&&(a+=360),a),w1=Pc,A1=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),E1=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),W5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:A1,scaleY:E1,scale:a=>(A1(a)+E1(a))/2,rotateX:a=>$c(Ga(Math.atan2(a[6],a[5]))),rotateY:a=>$c(Ga(Math.atan2(-a[2],a[0]))),rotateZ:w1,rotate:w1,skewX:a=>Ga(Math.atan(a[4])),skewY:a=>Ga(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Wc(a){return a.includes("scale")?1:0}function Ic(a,i){if(!a||a==="none")return Wc(i);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(l)o=W5,c=l;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=$5,c=p}if(!c)return Wc(i);const f=o[i],d=c[1].split(",").map(t4);return typeof f=="function"?f(d):d[f]}const I5=(a,i)=>{const{transform:l="none"}=getComputedStyle(a);return Ic(l,i)};function t4(a){return parseFloat(a.trim())}const Bi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ui=new Set(Bi),M1=a=>a===Li||a===at,e4=new Set(["x","y","z"]),n4=Bi.filter(a=>!e4.has(a));function a4(a){const i=[];return n4.forEach(l=>{const o=a.getValue(l);o!==void 0&&(i.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),i}const fa={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})=>Ic(i,"x"),y:(a,{transform:i})=>Ic(i,"y")};fa.translateX=fa.x;fa.translateY=fa.y;const qa=new Set;let tf=!1,ef=!1,nf=!1;function Dg(){if(ef){const a=Array.from(qa).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),l=new Map;i.forEach(o=>{const c=a4(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)})}ef=!1,tf=!1,qa.forEach(a=>a.complete(nf)),qa.clear()}function Rg(){qa.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(ef=!0)})}function i4(){nf=!0,Rg(),Dg(),nf=!1}class Of{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?(qa.add(this),tf||(tf=!0,Ut.read(Rg),Ut.resolveKeyframes(Dg))):(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 p=o.readValue(l,d);p!=null&&(i[0]=p)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}P5(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const s4=a=>a.startsWith("--");function Vg(a,i,l){s4(i)?a.style.setProperty(i,l):a.style[i]=l}const l4={};function Og(a,i){const l=og(a);return()=>l4[i]??l()}const o4=Og(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),_g=Og(()=>{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})`,j1={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 kg(a,i){if(a)return typeof a=="function"?_g()?Cg(a,i):"ease-out":vg(a)?Ls(a):Array.isArray(a)?a.map(l=>kg(l,i)||j1.easeOut):j1[a]}function r4(a,i,l,{delay:o=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:p="easeOut",times:g}={},m=void 0){const v={[i]:l};g&&(v.offset=g);const x=kg(p,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 m&&(S.pseudoElement=m),a.animate(v,S)}function Lg(a){return typeof a=="function"&&"applyToOptions"in a}function u4({type:a,...i}){return Lg(a)&&_g()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Bg extends Vf{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:p,onComplete:g}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,Af(typeof i.type!="string");const m=u4(i);this.animation=r4(l,o,c,m,f),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=Fo(c,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Vg(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&&o4()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),o&&(this.animation.rangeEnd=o),Fe):c(this)}}const Ug={anticipate:mg,backInOut:hg,circInOut:gg};function c4(a){return a in Ug}function f4(a){typeof a.ease=="string"&&c4(a.ease)&&(a.ease=Ug[a.ease])}const Nc=10;class d4 extends Bg{constructor(i){f4(i),Ng(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 p=new Yo({...d,autoplay:!1}),g=Math.max(Nc,ge.now()-this.startTime),m=pn(0,Nc,g-Nc),v=p.sample(g).value,{name:x}=this.options;f&&x&&Vg(f,x,v),l.setWithVelocity(p.sample(Math.max(0,g-m)).value,v,m),p.stop()}}const C1=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(nn.test(a)||a==="0")&&!a.startsWith("url("));function h4(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 m4(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=C1(c,i),p=C1(f,i);return!d||!p?!1:h4(a)||(l==="spring"||Lg(l))&&o}function af(a){a.duration=0,a.type="keyframes"}const Hg=new Set(["opacity","clipPath","filter","transform"]),p4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function g4(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&p4.test(a[i]))return!0;return!1}const y4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),v4=og(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function b4(a){const{motionValue:i,name:l,repeatDelay:o,repeatType:c,damping:f,type:d,keyframes:p}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:v}=i.owner.getProps();return v4()&&l&&(Hg.has(l)||y4.has(l)&&g4(p))&&(l!=="transform"||!v)&&!m&&!o&&c!=="mirror"&&f!==0&&d!=="inertia"}const x4=40;class S4 extends Vf{constructor({autoplay:i=!0,delay:l=0,type:o="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:p,name:g,motionValue:m,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:m,element:v,...x},j=v?.KeyframeResolver||Of;this.keyframeResolver=new j(p,(E,N,_)=>this.onKeyframesResolved(E,N,S,!_),g,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,o,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:p,delay:g,isHandoff:m,onUpdate:v}=o;this.resolvedAt=ge.now();let x=!0;m4(i,f,d,p)||(x=!1,(da.instantAnimations||!g)&&v?.(Fo(i,o,l)),i[0]=i[i.length-1],af(o),o.repeat=0);const j={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>x4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:i},E=x&&!m&&b4(j),N=j.motionValue?.owner?.current;let _;if(E)try{_=new d4({...j,element:N})}catch{_=new Yo(j)}else _=new Yo(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(),i4()),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 Gg(a,i,l,o=0,c=1){const f=Array.from(a).sort((m,v)=>m.sortNodePosition(v)).indexOf(i),d=a.size,p=(d-1)*o;return typeof l=="function"?l(f,d):c===1?f*o:p-f*o}const T4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function w4(a){const i=T4.exec(a);if(!i)return[,];const[,l,o,c]=i;return[`--${l??o}`,c]}function qg(a,i,l=1){const[o,c]=w4(a);if(!o)return;const f=window.getComputedStyle(i).getPropertyValue(o);if(f){const d=f.trim();return ig(d)?parseFloat(d):d}return Cf(c)?qg(c,i,l+1):c}const A4={type:"spring",stiffness:500,damping:25,restSpeed:10},E4=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),M4={type:"keyframes",duration:.8},j4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},C4=(a,{keyframes:i})=>i.length>2?M4:Ui.has(a)?a.startsWith("scale")?E4(i[1]):A4:j4;function Yg(a,i){if(a?.inherit&&i){const{inherit:l,...o}=a;return{...i,...o}}return a}function _f(a,i){const l=a?.[i]??a?.default??a;return l!==a?Yg(l,a):l}const z4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function N4(a){for(const i in a)if(!z4.has(i))return!0;return!1}const kf=(a,i,l,o={},c,f)=>d=>{const p=_f(o,a)||{},g=p.delay||o.delay||0;let{elapsed:m=0}=o;m=m-_e(g);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-m,onUpdate:S=>{i.set(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:a,motionValue:i,element:f?void 0:c};N4(p)||Object.assign(v,C4(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)&&(af(v),v.delay===0&&(x=!0)),(da.instantAnimations||da.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,af(v),v.delay=0),v.allowFlatten=!p.type&&!p.ease,x&&!f&&i.get()!==void 0){const S=Fo(v.keyframes,p);if(S!==void 0){Ut.update(()=>{v.onUpdate(S),v.onComplete()});return}}return p.isSync?new Yo(v):new S4(v)};function z1(a){const i=[{},{}];return a?.values.forEach((l,o)=>{i[0][o]=l.get(),i[1][o]=l.getVelocity()}),i}function Lf(a,i,l,o){if(typeof i=="function"){const[c,f]=z1(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]=z1(o);i=i(l!==void 0?l:a.custom,c,f)}return i}function Ya(a,i,l){const o=a.getProps();return Lf(o,i,l!==void 0?l:o.custom,a)}const Xg=new Set(["width","height","top","left","right","bottom",...Bi]),N1=30,D4=a=>!isNaN(parseFloat(a));class R4{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=D4(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 Ef);const o=this.events[i].add(l);return i==="change"?()=>{o(),Ut.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>N1)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,N1);return rg(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 ki(a,i){return new R4(a,i)}const sf=a=>Array.isArray(a);function V4(a,i,l){a.hasValue(i)?a.getValue(i).set(l):a.addValue(i,ki(l))}function O4(a){return sf(a)?a[a.length-1]||0:a}function _4(a,i){const l=Ya(a,i);let{transitionEnd:o={},transition:c={},...f}=l||{};f={...f,...o};for(const d in f){const p=O4(f[d]);V4(a,d,p)}}const he=a=>!!(a&&a.getVelocity);function k4(a){return!!(he(a)&&a.add)}function lf(a,i){const l=a.getValue("willChange");if(k4(l))return l.add(i);if(!l&&da.WillChange){const o=new da.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function Bf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const L4="framerAppearId",Zg="data-"+Bf(L4);function Qg(a){return a.props[Zg]}function B4({protectedKeys:a,needsAnimating:i},l){const o=a.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,o}function Kg(a,i,{delay:l=0,transitionOverride:o,type:c}={}){let{transition:f,transitionEnd:d,...p}=i;const g=a.getDefaultTransition();f=f?Yg(f,g):g;const m=f?.reduceMotion;o&&(f=o);const v=[],x=c&&a.animationState&&a.animationState.getState()[c];for(const S in p){const j=a.getValue(S,a.latestValues[S]??null),E=p[S];if(E===void 0||x&&B4(x,S))continue;const N={delay:l,..._f(f||{},S)},_=j.get();if(_!==void 0&&!j.isAnimating()&&!Array.isArray(E)&&E===_&&!N.velocity){Ut.update(()=>j.set(E));continue}let B=!1;if(window.MotionHandoffAnimation){const X=Qg(a);if(X){const $=window.MotionHandoffAnimation(X,S,Ut);$!==null&&(N.startTime=$,B=!0)}}lf(a,S);const O=m??a.shouldReduceMotion;j.start(kf(S,j,E,O&&Xg.has(S)?{type:!1}:N,a,B));const U=j.animation;U&&v.push(U)}if(d){const S=()=>Ut.update(()=>{d&&_4(a,d)});v.length?Promise.all(v).then(S):S()}return v}function of(a,i,l={}){const o=Ya(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(Kg(a,o,l)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:x}=c;return U4(a,i,g,m,v,x,l)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,m]=p==="beforeChildren"?[f,d]:[d,f];return g().then(()=>m())}else return Promise.all([f(),d(l.delay)])}function U4(a,i,l=0,o=0,c=0,f=1,d){const p=[];for(const g of a.variantChildren)g.notify("AnimationStart",i),p.push(of(g,i,{...d,delay:l+(typeof o=="function"?0:o)+Gg(a.variantChildren,g,o,c,f)}).then(()=>g.notify("AnimationComplete",i)));return Promise.all(p)}function H4(a,i,l={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(f=>of(a,f,l));o=Promise.all(c)}else if(typeof i=="string")o=of(a,i,l);else{const c=typeof i=="function"?Ya(a,i,l.custom):i;o=Promise.all(Kg(a,c,l))}return o.then(()=>{a.notify("AnimationComplete",i)})}const G4={test:a=>a==="auto",parse:a=>a},Jg=a=>i=>i.test(a),Fg=[Li,at,mn,ca,h5,d5,G4],D1=a=>Fg.find(Jg(a));function q4(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||lg(a):!0}const Y4=new Set(["brightness","contrast","saturate","opacity"]);function X4(a){const[i,l]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=l.match(zf)||[];if(!o)return a;const c=l.replace(o,"");let f=Y4.has(i)?1:0;return o!==l&&(f*=100),i+"("+f+c+")"}const Z4=/\b([a-z-]*)\(.*?\)/gu,rf={...nn,getAnimatableNone:a=>{const i=a.match(Z4);return i?i.map(X4).join(" "):a}},uf={...nn,getAnimatableNone:a=>{const i=nn.parse(a);return nn.createTransformer(a)(i.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},R1={...Li,transform:Math.round},Q4={rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scale:wo,scaleX:wo,scaleY:wo,scaleZ:wo,skew:ca,skewX:ca,skewY:ca,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:Js,originX:v1,originY:v1,originZ:at},Uf={borderWidth:at,borderTopWidth:at,borderRightWidth:at,borderBottomWidth:at,borderLeftWidth:at,borderRadius:at,borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomRightRadius:at,borderBottomLeftRadius:at,width:at,maxWidth:at,height:at,maxHeight:at,top:at,right:at,bottom:at,left:at,inset:at,insetBlock:at,insetBlockStart:at,insetBlockEnd:at,insetInline:at,insetInlineStart:at,insetInlineEnd:at,padding:at,paddingTop:at,paddingRight:at,paddingBottom:at,paddingLeft:at,paddingBlock:at,paddingBlockStart:at,paddingBlockEnd:at,paddingInline:at,paddingInlineStart:at,paddingInlineEnd:at,margin:at,marginTop:at,marginRight:at,marginBottom:at,marginLeft:at,marginBlock:at,marginBlockStart:at,marginBlockEnd:at,marginInline:at,marginInlineStart:at,marginInlineEnd:at,fontSize:at,backgroundPositionX:at,backgroundPositionY:at,...Q4,zIndex:R1,fillOpacity:Js,strokeOpacity:Js,numOctaves:R1},K4={...Uf,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:rf,WebkitFilter:rf,mask:uf,WebkitMask:uf},Pg=a=>K4[a],J4=new Set([rf,uf]);function $g(a,i){let l=Pg(a);return J4.has(l)||(l=nn),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const F4=new Set(["auto","none","0"]);function P4(a,i,l){let o=0,c;for(;o<a.length&&!c;){const f=a[o];typeof f=="string"&&!F4.has(f)&&_i(f).values.length&&(c=a[o]),o++}if(c&&l)for(const f of i)a[f]=$g(l,c)}class $4 extends Of{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(),Cf(x))){const S=qg(x,l.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!Xg.has(o)||i.length!==2)return;const[c,f]=i,d=D1(c),p=D1(f),g=y1(c),m=y1(f);if(g!==m&&fa[o]){this.needsMeasurement=!0;return}if(d!==p)if(M1(d)&&M1(p))for(let v=0;v<i.length;v++){const x=i[v];typeof x=="string"&&(i[v]=parseFloat(x))}else fa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||q4(i[c]))&&o.push(c);o.length&&P4(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=fa[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]=fa[l](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{i.getValue(p).set(g)}),this.resolveNoneKeyframes()}}function Wg(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 Ig=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function W4(a){return sg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Hf}=bg(queueMicrotask,!1),tn={x:!1,y:!1};function ty(){return tn.x||tn.y}function I4(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 ey(a,i){const l=Wg(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[l,c,()=>o.abort()]}function t8(a){return!(a.pointerType==="touch"||ty())}function e8(a,i,l={}){const[o,c,f]=ey(a,l);return o.forEach(d=>{let p=!1,g=!1,m;const v=()=>{d.removeEventListener("pointerleave",E)},x=_=>{m&&(m(_),m=void 0),v()},S=_=>{p=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),g&&(g=!1,x(_))},j=()=>{p=!0,window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",S,c)},E=_=>{if(_.pointerType!=="touch"){if(p){g=!0;return}x(_)}},N=_=>{if(!t8(_))return;g=!1;const B=i(d,_);typeof B=="function"&&(m=B,d.addEventListener("pointerleave",E,c))};d.addEventListener("pointerenter",N,c),d.addEventListener("pointerdown",j,c)}),f}const ny=(a,i)=>i?a===i?!0:ny(a,i.parentElement):!1,Gf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,n8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function a8(a){return n8.has(a.tagName)||a.isContentEditable===!0}const i8=new Set(["INPUT","SELECT","TEXTAREA"]);function s8(a){return i8.has(a.tagName)||a.isContentEditable===!0}const zo=new WeakSet;function V1(a){return i=>{i.key==="Enter"&&a(i)}}function Dc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const l8=(a,i)=>{const l=a.currentTarget;if(!l)return;const o=V1(()=>{if(zo.has(l))return;Dc(l,"down");const c=V1(()=>{Dc(l,"up")}),f=()=>Dc(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 O1(a){return Gf(a)&&!ty()}const _1=new WeakSet;function o8(a,i,l={}){const[o,c,f]=ey(a,l),d=p=>{const g=p.currentTarget;if(!O1(p)||_1.has(p))return;zo.add(g),l.stopPropagation&&_1.add(p);const m=i(g,p),v=(j,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),zo.has(g)&&zo.delete(g),O1(j)&&typeof m=="function"&&m(j,{success:E})},x=j=>{v(j,g===window||g===document||l.useGlobalTarget||ny(g,j.target))},S=j=>{v(j,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",S,c)};return o.forEach(p=>{(l.useGlobalTarget?window:p).addEventListener("pointerdown",d,c),W4(p)&&(p.addEventListener("focus",m=>l8(m,c)),!a8(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),f}function qf(a){return sg(a)&&"ownerSVGElement"in a}const No=new WeakMap;let Do;const ay=(a,i,l)=>(o,c)=>c&&c[0]?c[0][a+"Size"]:qf(o)&&"getBBox"in o?o.getBBox()[i]:o[l],r8=ay("inline","width","offsetWidth"),u8=ay("block","height","offsetHeight");function c8({target:a,borderBoxSize:i}){No.get(a)?.forEach(l=>{l(a,{get width(){return r8(a,i)},get height(){return u8(a,i)}})})}function f8(a){a.forEach(c8)}function d8(){typeof ResizeObserver>"u"||(Do=new ResizeObserver(f8))}function h8(a,i){Do||d8();const l=Wg(a);return l.forEach(o=>{let c=No.get(o);c||(c=new Set,No.set(o,c)),c.add(i),Do?.observe(o)}),()=>{l.forEach(o=>{const c=No.get(o);c?.delete(i),c?.size||Do?.unobserve(o)})}}const Ro=new Set;let Vi;function m8(){Vi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ro.forEach(i=>i(a))},window.addEventListener("resize",Vi)}function p8(a){return Ro.add(a),Vi||m8(),()=>{Ro.delete(a),!Ro.size&&typeof Vi=="function"&&(window.removeEventListener("resize",Vi),Vi=void 0)}}function k1(a,i){return typeof a=="function"?p8(a):h8(a,i)}function g8(a){return qf(a)&&a.tagName==="svg"}const y8=[...Fg,It,nn],v8=a=>y8.find(Jg(a)),L1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oi=()=>({x:L1(),y:L1()}),B1=()=>({min:0,max:0}),ae=()=>({x:B1(),y:B1()}),b8=new WeakMap;function Po(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Fs(a){return typeof a=="string"||Array.isArray(a)}const Yf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xf=["initial",...Yf];function $o(a){return Po(a.animate)||Xf.some(i=>Fs(a[i]))}function iy(a){return!!($o(a)||a.variants)}function x8(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,ki(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,ki(d!==void 0?d:c,{owner:a}))}}for(const o in l)i[o]===void 0&&a.removeValue(o);return i}const cf={current:null},sy={current:!1},S8=typeof window<"u";function T8(){if(sy.current=!0,!!S8)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>cf.current=a.matches;a.addEventListener("change",i),i()}else cf.current=!1}const U1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xo={};function ly(a){Xo=a}function w8(){return Xo}class A8{scrapeMotionValuesFromProps(i,l,o){return{}}constructor({parent:i,props:l,presenceContext:o,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:p},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=Of,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,Ut.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=l.initial?{...m}:{},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=$o(l),this.isVariantNode=iy(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];m[j]!==void 0&&he(E)&&E.set(m[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,b8.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:(sy.current||T8(),this.shouldReduceMotion=cf.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(),ha(this.notifyUpdate),ha(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&&Hg.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:p,times:g,ease:m,duration:v}=l.accelerate,x=new Bg({element:this.current,name:i,keyframes:p,times:g,ease:m,duration:_e(v)}),S=d(x);this.valueSubscriptions.set(i,()=>{S(),x.cancel()});return}const o=Ui.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&Ut.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 Xo){const l=Xo[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<U1.length;o++){const c=U1[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=x8(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=ki(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"&&(ig(o)||lg(o))?o=parseFloat(o):!v8(o)&&nn.test(l)&&(o=$g(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=Lf(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 Ef),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Hf.render(this.render)}}class oy extends A8{constructor(){super(...arguments),this.KeyframeResolver=$4}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 pa{constructor(i){this.isMounted=!1,this.node=i}update(){}}function ry({top:a,left:i,right:l,bottom:o}){return{x:{min:i,max:l},y:{min:a,max:o}}}function E8({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function M8(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 Rc(a){return a===void 0||a===1}function ff({scale:a,scaleX:i,scaleY:l}){return!Rc(a)||!Rc(i)||!Rc(l)}function Ua(a){return ff(a)||uy(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function uy(a){return H1(a.x)||H1(a.y)}function H1(a){return a&&a!=="0%"}function Zo(a,i,l){const o=a-l,c=i*o;return l+c}function G1(a,i,l,o,c){return c!==void 0&&(a=Zo(a,c,o)),Zo(a,l,o)+i}function df(a,i=0,l=1,o,c){a.min=G1(a.min,i,l,o,c),a.max=G1(a.max,i,l,o,c)}function cy(a,{x:i,y:l}){df(a.x,i.translate,i.scale,i.originPoint),df(a.y,l.translate,l.scale,l.originPoint)}const q1=.999999999999,Y1=1.0000000000001;function j8(a,i,l,o=!1){const c=l.length;if(!c)return;i.x=i.y=1;let f,d;for(let p=0;p<c;p++){f=l[p],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&&(dn(a.x,-f.scroll.offset.x),dn(a.y,-f.scroll.offset.y)),d&&(i.x*=d.x.scale,i.y*=d.y.scale,cy(a,d)),o&&Ua(f.latestValues)&&Vo(a,f.latestValues,f.layout?.layoutBox))}i.x<Y1&&i.x>q1&&(i.x=1),i.y<Y1&&i.y>q1&&(i.y=1)}function dn(a,i){a.min+=i,a.max+=i}function X1(a,i,l,o,c=.5){const f=qt(a.min,a.max,c);df(a,i,l,f,o)}function Z1(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function Vo(a,i,l){const o=l??a;X1(a.x,Z1(i.x,o.x),i.scaleX,i.scale,i.originX),X1(a.y,Z1(i.y,o.y),i.scaleY,i.scale,i.originY)}function fy(a,i){return ry(M8(a.getBoundingClientRect(),i))}function C8(a,i,l){const o=fy(a,l),{scroll:c}=i;return c&&(dn(o.x,c.offset.x),dn(o.y,c.offset.y)),o}const z8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},N8=Bi.length;function D8(a,i,l){let o="",c=!0;for(let f=0;f<N8;f++){const d=Bi[f],p=a[d];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(d.startsWith("scale")?1:0);else{const m=parseFloat(p);g=d.startsWith("scale")?m===1:m===0}if(!g||l){const m=Ig(p,Uf[d]);if(!g){c=!1;const v=z8[d]||d;o+=`${v}(${m}) `}l&&(i[d]=m)}}return o=o.trim(),l?o=l(i,c?"":o):c&&(o="none"),o}function Zf(a,i,l){const{style:o,vars:c,transformOrigin:f}=a;let d=!1,p=!1;for(const g in i){const m=i[g];if(Ui.has(g)){d=!0;continue}else if(Sg(g)){c[g]=m;continue}else{const v=Ig(m,Uf[g]);g.startsWith("origin")?(p=!0,f[g]=v):o[g]=v}}if(i.transform||(d||l?o.transform=D8(i,a.transform,l):o.transform&&(o.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:v=0}=f;o.transformOrigin=`${g} ${m} ${v}`}}function dy(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 Q1(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const ks={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(at.test(a))a=parseFloat(a);else return a;const l=Q1(a,i.target.x),o=Q1(a,i.target.y);return`${l}% ${o}%`}},R8={correct:(a,{treeScale:i,projectionDelta:l})=>{const o=a,c=nn.parse(a);if(c.length>5)return o;const f=nn.createTransformer(a),d=typeof c[0]!="number"?1:0,p=l.x.scale*i.x,g=l.y.scale*i.y;c[0+d]/=p,c[1+d]/=g;const m=qt(p,g,.5);return typeof c[2+d]=="number"&&(c[2+d]/=m),typeof c[3+d]=="number"&&(c[3+d]/=m),f(c)}},hf={borderRadius:{...ks,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ks,borderTopRightRadius:ks,borderBottomLeftRadius:ks,borderBottomRightRadius:ks,boxShadow:R8};function hy(a,{layout:i,layoutId:l}){return Ui.has(a)||a.startsWith("origin")||(i||l!==void 0)&&(!!hf[a]||a==="opacity")}function Qf(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])||hy(d,a)||l?.getValue(d)?.liveStyle!==void 0)&&(f[d]=o[d]);return f}function V8(a){return window.getComputedStyle(a)}class O8 extends oy{constructor(){super(...arguments),this.type="html",this.renderInstance=dy}readValueFromInstance(i,l){if(Ui.has(l))return this.projection?.isProjecting?Wc(l):I5(i,l);{const o=V8(i),c=(Sg(l)?o.getPropertyValue(l):o[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return fy(i,l)}build(i,l,o){Zf(i,l,o.transformTemplate)}scrapeMotionValuesFromProps(i,l,o){return Qf(i,l,o)}}const _8={offset:"stroke-dashoffset",array:"stroke-dasharray"},k8={offset:"strokeDashoffset",array:"strokeDasharray"};function L8(a,i,l=1,o=0,c=!0){a.pathLength=1;const f=c?_8:k8;a[f.offset]=`${-o}`,a[f.array]=`${i} ${l}`}const B8=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function my(a,{attrX:i,attrY:l,attrScale:o,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...p},g,m,v){if(Zf(a,p,m),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 B8)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&&L8(x,c,f,d,!1)}const py=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"]),gy=a=>typeof a=="string"&&a.toLowerCase()==="svg";function U8(a,i,l,o){dy(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(py.has(c)?c:Bf(c),i.attrs[c])}function yy(a,i,l){const o=Qf(a,i,l);for(const c in a)if(he(a[c])||he(i[c])){const f=Bi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[f]=a[c]}return o}class H8 extends oy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Ui.has(l)){const o=Pg(l);return o&&o.default||0}return l=py.has(l)?l:Bf(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,o){return yy(i,l,o)}build(i,l,o){my(i,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,l,o,c){U8(i,l,o,c)}mount(i){this.isSVGTag=gy(i.tagName),super.mount(i)}}const G8=Xf.length;function vy(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?vy(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const i={};for(let l=0;l<G8;l++){const o=Xf[l],c=a.props[o];(Fs(c)||c===!1)&&(i[o]=c)}return i}function by(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 q8=[...Yf].reverse(),Y8=Yf.length;function X8(a){return i=>Promise.all(i.map(({animation:l,options:o})=>H4(a,l,o)))}function Z8(a){let i=X8(a),l=K1(),o=!0,c=!1;const f=m=>(v,x)=>{const S=Ya(a,x,m==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:j,transitionEnd:E,...N}=S;v={...v,...N,...E}}return v};function d(m){i=m(a)}function p(m){const{props:v}=a,x=vy(a.parent)||{},S=[],j=new Set;let E={},N=1/0;for(let B=0;B<Y8;B++){const O=q8[B],U=l[O],X=v[O]!==void 0?v[O]:x[O],$=Fs(X),ut=O===m?U.isActive:null;ut===!1&&(N=B);let W=X===x[O]&&X!==v[O]&&$;if(W&&(o||c)&&a.manuallyAnimateOnMount&&(W=!1),U.protectedKeys={...E},!U.isActive&&ut===null||!X&&!U.prevProp||Po(X)||typeof X=="boolean")continue;if(O==="exit"&&U.isActive&&ut!==!0){U.prevResolvedValues&&(E={...E,...U.prevResolvedValues});continue}const Y=Q8(U.prevProp,X);let Z=Y||O===m&&U.isActive&&!W&&$||B>N&&$,I=!1;const ft=Array.isArray(X)?X:[X];let gt=ft.reduce(f(O),{});ut===!1&&(gt={});const{prevResolvedValues:Dt={}}=U,At={...Dt,...gt},zt=J=>{Z=!0,j.has(J)&&(I=!0,j.delete(J)),U.needsAnimating[J]=!0;const ct=a.getValue(J);ct&&(ct.liveStyle=!1)};for(const J in At){const ct=gt[J],K=Dt[J];if(E.hasOwnProperty(J))continue;let w=!1;sf(ct)&&sf(K)?w=!by(ct,K):w=ct!==K,w?ct!=null?zt(J):j.add(J):ct!==void 0&&j.has(J)?zt(J):U.protectedKeys[J]=!0}U.prevProp=X,U.prevResolvedValues=gt,U.isActive&&(E={...E,...gt}),(o||c)&&a.blockInitialAnimation&&(Z=!1);const R=W&&Y;Z&&(!R||I)&&S.push(...ft.map(J=>{const ct={type:O};if(typeof J=="string"&&(o||c)&&!R&&a.manuallyAnimateOnMount&&a.parent){const{parent:K}=a,w=Ya(K,J);if(K.enteringChildren&&w){const{delayChildren:G}=w.transition||{};ct.delay=Gg(K.enteringChildren,a,G)}}return{animation:J,options:ct}}))}if(j.size){const B={};if(typeof v.initial!="boolean"){const O=Ya(a,Array.isArray(v.initial)?v.initial[0]:v.initial);O&&O.transition&&(B.transition=O.transition)}j.forEach(O=>{const U=a.getBaseTarget(O),X=a.getValue(O);X&&(X.liveStyle=!0),B[O]=U??null}),S.push({animation:B})}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(m,v){if(l[m].isActive===v)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(m,v)),l[m].isActive=v;const x=p(m);for(const S in l)l[S].protectedKeys={};return x}return{animateChanges:p,setActive:g,setAnimateFunction:d,getState:()=>l,reset:()=>{l=K1(),c=!0}}}function Q8(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!by(i,a):!1}function Ba(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function K1(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}function mf(a,i){a.min=i.min,a.max=i.max}function Ie(a,i){mf(a.x,i.x),mf(a.y,i.y)}function J1(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const xy=1e-4,K8=1-xy,J8=1+xy,Sy=.01,F8=0-Sy,P8=0+Sy;function ye(a){return a.max-a.min}function $8(a,i,l){return Math.abs(a-i)<=l}function F1(a,i,l,o=.5){a.origin=o,a.originPoint=qt(i.min,i.max,a.origin),a.scale=ye(l)/ye(i),a.translate=qt(l.min,l.max,a.origin)-a.originPoint,(a.scale>=K8&&a.scale<=J8||isNaN(a.scale))&&(a.scale=1),(a.translate>=F8&&a.translate<=P8||isNaN(a.translate))&&(a.translate=0)}function Hs(a,i,l,o){F1(a.x,i.x,l.x,o?o.originX:void 0),F1(a.y,i.y,l.y,o?o.originY:void 0)}function P1(a,i,l,o=0){const c=o?qt(l.min,l.max,o):l.min;a.min=c+i.min,a.max=a.min+ye(i)}function W8(a,i,l,o){P1(a.x,i.x,l.x,o?.x),P1(a.y,i.y,l.y,o?.y)}function $1(a,i,l,o=0){const c=o?qt(l.min,l.max,o):l.min;a.min=i.min-c,a.max=a.min+ye(i)}function Qo(a,i,l,o){$1(a.x,i.x,l.x,o?.x),$1(a.y,i.y,l.y,o?.y)}function W1(a,i,l,o,c){return a-=i,a=Zo(a,1/l,o),c!==void 0&&(a=Zo(a,1/c,o)),a}function I8(a,i=0,l=1,o=.5,c,f=a,d=a){if(mn.test(i)&&(i=parseFloat(i),i=qt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let p=qt(f.min,f.max,o);a===f&&(p-=i),a.min=W1(a.min,i,l,p,c),a.max=W1(a.max,i,l,p,c)}function I1(a,i,[l,o,c],f,d){I8(a,i[l],i[o],i[c],i.scale,f,d)}const t6=["x","scaleX","originX"],e6=["y","scaleY","originY"];function tp(a,i,l,o){I1(a.x,i,t6,l?l.x:void 0,o?o.x:void 0),I1(a.y,i,e6,l?l.y:void 0,o?o.y:void 0)}function ep(a){return a.translate===0&&a.scale===1}function Ty(a){return ep(a.x)&&ep(a.y)}function np(a,i){return a.min===i.min&&a.max===i.max}function n6(a,i){return np(a.x,i.x)&&np(a.y,i.y)}function ap(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function wy(a,i){return ap(a.x,i.x)&&ap(a.y,i.y)}function ip(a){return ye(a.x)/ye(a.y)}function sp(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function fn(a){return[a("x"),a("y")]}function a6(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:m,rotate:v,rotateX:x,rotateY:S,skewX:j,skewY:E}=l;m&&(o=`perspective(${m}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 p=a.x.scale*i.x,g=a.y.scale*i.y;return(p!==1||g!==1)&&(o+=`scale(${p}, ${g})`),o||"none"}const Ay=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],i6=Ay.length,lp=a=>typeof a=="string"?parseFloat(a):a,op=a=>typeof a=="number"||at.test(a);function s6(a,i,l,o,c,f){c?(a.opacity=qt(0,l.opacity??1,l6(o)),a.opacityExit=qt(i.opacity??1,0,o6(o))):f&&(a.opacity=qt(i.opacity??1,l.opacity??1,o));for(let d=0;d<i6;d++){const p=Ay[d];let g=rp(i,p),m=rp(l,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||op(g)===op(m)?(a[p]=Math.max(qt(lp(g),lp(m),o),0),(mn.test(m)||mn.test(g))&&(a[p]+="%")):a[p]=m}(i.rotate||l.rotate)&&(a.rotate=qt(i.rotate||0,l.rotate||0,o))}function rp(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const l6=Ey(0,.5,pg),o6=Ey(.5,.95,Fe);function Ey(a,i,l){return o=>o<a?0:o>i?1:l(Ks(a,i,o))}function r6(a,i,l){const o=he(a)?a:ki(a);return o.start(kf("",o,i,l)),o.animation}function Ps(a,i,l,o={passive:!0}){return a.addEventListener(i,l,o),()=>a.removeEventListener(i,l)}const u6=(a,i)=>a.depth-i.depth;class c6{constructor(){this.children=[],this.isDirty=!1}add(i){wf(this.children,i),this.isDirty=!0}remove(i){Uo(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(u6),this.isDirty=!1,this.children.forEach(i)}}function f6(a,i){const l=ge.now(),o=({timestamp:c})=>{const f=c-l;f>=i&&(ha(o),a(f-i))};return Ut.setup(o,!0),()=>ha(o)}function Oo(a){return he(a)?a.get():a}class d6{constructor(){this.members=[]}add(i){wf(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&&(Uo(this.members,o),o.unmount())}i.scheduleRender()}remove(i){if(Uo(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 _o={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Vc=["","X","Y","Z"],h6=1e3;let m6=0;function Oc(a,i,l,o){const{latestValues:c}=i;c[a]&&(l[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function My(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const l=Qg(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Ut,!(c||f))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&My(o)}function jy({attachResizeListener:a,defaultParent:i,measureScroll:l,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(d={},p=i?.()){this.id=m6++,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(y6),this.nodes.forEach(w6),this.nodes.forEach(A6),this.nodes.forEach(v6)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new c6)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Ef),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const g=this.eventHandlers.get(d);g&&g.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=qf(d)&&!g8(d),this.instance=d;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),a){let v,x=0;const S=()=>this.root.updateBlockedByResize=!1;Ut.read(()=>{x=window.innerWidth}),a(d,()=>{const j=window.innerWidth;j!==x&&(x=j,this.root.updateBlockedByResize=!0,v&&v(),v=f6(S,250),_o.hasAnimatedSinceResize&&(_o.hasAnimatedSinceResize=!1,this.nodes.forEach(fp)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||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||m.getDefaultTransition()||z6,{onLayoutAnimationStart:N,onLayoutAnimationComplete:_}=m.getProps(),B=!this.targetLayout||!wy(this.targetLayout,j),O=!x&&S;if(this.options.layoutRoot||this.resumeFrom||O||x&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U={..._f(E,"layout"),onPlay:N,onComplete:_};(m.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(v,O)}else x||fp(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(),ha(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(E6),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&&My(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:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(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(x6),this.nodes.forEach(up);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(cp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(S6),this.nodes.forEach(T6),this.nodes.forEach(p6),this.nodes.forEach(g6)):this.nodes.forEach(cp),this.clearAllSnapshots();const p=ge.now();de.delta=pn(0,1e3/60,p-de.timestamp),de.timestamp=p,de.isProcessing=!0,Ec.update.process(de),Ec.preRender.process(de),Ec.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(b6),this.sharedNodes.forEach(M6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ut.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:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&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,p=this.projectionDelta&&!Ty(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;d&&this.instance&&(p||Ua(this.latestValues)||v)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return d&&(g=this.removeTransform(g)),N6(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return ae();const p=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(D6))){const{scroll:m}=this.root;m&&(dn(p.x,m.offset.x),dn(p.y,m.offset.y))}return p}removeElementScroll(d){const p=ae();if(Ie(p,d),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:x}=m;m!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&Ie(p,d),dn(p.x,v.offset.x),dn(p.y,v.offset.y))}return p}applyTransform(d,p=!1,g){const m=g||ae();Ie(m,d);for(let v=0;v<this.path.length;v++){const x=this.path[v];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(dn(m.x,-x.scroll.offset.x),dn(m.y,-x.scroll.offset.y)),Ua(x.latestValues)&&Vo(m,x.latestValues,x.layout?.layoutBox)}return Ua(this.latestValues)&&Vo(m,this.latestValues,this.layout?.layoutBox),m}removeTransform(d){const p=ae();Ie(p,d);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!Ua(m.latestValues))continue;let v;m.instance&&(ff(m.latestValues)&&m.updateSnapshot(),v=ae(),Ie(v,m.measurePageBox())),tp(p,m.latestValues,m.snapshot?.layoutBox,v)}return Ua(this.latestValues)&&tp(p,this.latestValues),p}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 p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;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(),W8(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),cy(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||ff(this.parent.latestValues)||uy(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,p,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Qo(this.relativeTargetOrigin,p,g,this.options.layoutAnchor||void 0),Ie(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),p=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===de.timestamp&&(g=!1),g)return;const{layout:m,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||!(m||v))return;Ie(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;j8(this.layoutCorrected,this.treeScale,this.path,p),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():(J1(this.prevProjectionDelta.x,this.projectionDelta.x),J1(this.prevProjectionDelta.y,this.projectionDelta.y)),Hs(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!sp(this.projectionDelta.x,this.prevProjectionDelta.x)||!sp(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 p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oi(),this.projectionDelta=Oi(),this.projectionDeltaWithTransform=Oi()}setAnimationOrigin(d,p=!1){const g=this.snapshot,m=g?g.latestValues:{},v={...this.latestValues},x=Oi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=ae(),j=g?g.source:void 0,E=this.layout?this.layout.source:void 0,N=j!==E,_=this.getStack(),B=!_||_.members.length<=1,O=!!(N&&!B&&this.options.crossfade===!0&&!this.path.some(C6));this.animationProgress=0;let U;this.mixTargetDelta=X=>{const $=X/1e3;dp(x.x,d.x,$),dp(x.y,d.y,$),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),j6(this.relativeTarget,this.relativeTargetOrigin,S,$),U&&n6(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=ae()),Ie(U,this.relativeTarget)),N&&(this.animationValues=v,s6(v,m,this.latestValues,$,O,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ha(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ut.update(()=>{_o.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ki(0)),this.motionValue.jump(0,!1),this.currentAnimation=r6(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),d.onUpdate&&d.onUpdate(p)},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(h6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:v}=d;if(!(!p||!g||!m)){if(this!==d&&this.layout&&m&&Cy(this.options.animationType,this.layout.layoutBox,m.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(p,g),Vo(p,v),Hs(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new d6),this.sharedNodes.get(d).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(p):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:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&Oc("z",d,m,this.animationValues);for(let v=0;v<Vc.length;v++)Oc(`rotate${Vc[v]}`,d,m,this.animationValues),Oc(`skew${Vc[v]}`,d,m,this.animationValues);d.render();for(const v in m)d.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);d.scheduleRender()}applyProjectionStyles(d,p){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=Oo(p?.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Oo(p?.pointerEvents)||""),this.hasProjected&&!Ua(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=a6(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`,m.animationValues?d.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in hf){if(v[E]===void 0)continue;const{correct:N,applyTo:_,isCSSVariable:B}=hf[E],O=x==="none"?v[E]:N(v[E],m);if(_){const U=_.length;for(let X=0;X<U;X++)d[_[X]]=O}else B?this.options.visualElement.renderState.vars[E]=O:d[E]=O}this.options.layoutId&&(d.pointerEvents=m===this?Oo(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(up),this.root.sharedNodes.clear()}}}function p6(a){a.updateLayout()}function g6(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")fn(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";mf(f?i.measuredBox[v]:i.layoutBox[v],l[v])}else Cy(c,i.layoutBox,l)&&fn(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=Oi();Hs(d,l,i.layoutBox);const p=Oi();f?Hs(p,a.applyTransform(o,!0),i.measuredBox):Hs(p,l,i.layoutBox);const g=!Ty(d);let m=!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();Qo(E,i.layoutBox,x.layoutBox,j);const N=ae();Qo(N,l,S.layoutBox,j),wy(E,N)||(m=!0),v.options.layoutRoot&&(a.relativeTarget=N,a.relativeTargetOrigin=E,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:p,layoutDelta:d,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function y6(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 v6(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function b6(a){a.clearSnapshot()}function up(a){a.clearMeasurements()}function x6(a){a.isLayoutDirty=!0,a.updateLayout()}function cp(a){a.isLayoutDirty=!1}function S6(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function T6(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function fp(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function w6(a){a.resolveTargetDelta()}function A6(a){a.calcProjection()}function E6(a){a.resetSkewAndRotation()}function M6(a){a.removeLeadSnapshot()}function dp(a,i,l){a.translate=qt(i.translate,0,l),a.scale=qt(i.scale,1,l),a.origin=i.origin,a.originPoint=i.originPoint}function hp(a,i,l,o){a.min=qt(i.min,l.min,o),a.max=qt(i.max,l.max,o)}function j6(a,i,l,o){hp(a.x,i.x,l.x,o),hp(a.y,i.y,l.y,o)}function C6(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const z6={duration:.45,ease:[.4,0,.1,1]},mp=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),pp=mp("applewebkit/")&&!mp("chrome/")?Math.round:Fe;function gp(a){a.min=pp(a.min),a.max=pp(a.max)}function N6(a){gp(a.x),gp(a.y)}function Cy(a,i,l){return a==="position"||a==="preserve-aspect"&&!$8(ip(i),ip(l),.2)}function D6(a){return a!==a.root&&a.scroll?.wasRoot}const R6=jy({attachResizeListener:(a,i)=>Ps(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),_c={current:void 0},zy=jy({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!_c.current){const a=new R6({});a.mount(window),a.setOptions({layoutScroll:!0}),_c.current=a}return _c.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Ny=L.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function V6(a=!0){const i=L.useContext(Tf);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 Dy=L.createContext({strict:!1}),yp={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 vp=!1;function O6(){if(vp)return;const a={};for(const i in yp)a[i]={isEnabled:l=>yp[i].some(o=>!!l[o])};ly(a),vp=!0}function Ry(){return O6(),w8()}function _6(a){const i=Ry();for(const l in a)i[l]={...i[l],...a[l]};ly(i)}const k6=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 Ko(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||k6.has(a)}let Vy=a=>!Ko(a);function L6(a){typeof a=="function"&&(Vy=i=>i.startsWith("on")?!Ko(i):a(i))}try{L6(require("@emotion/is-prop-valid").default)}catch{}function B6(a,i,l){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||he(a[c])||(Vy(c)||l===!0&&Ko(c)||!i&&!Ko(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const Wo=L.createContext({});function U6(a,i){if($o(a)){const{initial:l,animate:o}=a;return{initial:l===!1||Fs(l)?l:void 0,animate:Fs(o)?o:void 0}}return a.inherit!==!1?i:{}}function H6(a){const{initial:i,animate:l}=U6(a,L.useContext(Wo));return L.useMemo(()=>({initial:i,animate:l}),[bp(i),bp(l)])}function bp(a){return Array.isArray(a)?a.join(" "):a}const Kf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Oy(a,i,l){for(const o in i)!he(i[o])&&!hy(o,l)&&(a[o]=i[o])}function G6({transformTemplate:a},i){return L.useMemo(()=>{const l=Kf();return Zf(l,i,a),Object.assign({},l.vars,l.style)},[i])}function q6(a,i){const l=a.style||{},o={};return Oy(o,l,a),Object.assign(o,G6(a,i)),o}function Y6(a,i){const l={},o=q6(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 _y=()=>({...Kf(),attrs:{}});function X6(a,i,l,o){const c=L.useMemo(()=>{const f=_y();return my(f,i,gy(o),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[i]);if(a.style){const f={};Oy(f,a.style,a),c.style={...f,...c.style}}return c}const Z6=["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 Jf(a){return typeof a!="string"||a.includes("-")?!1:!!(Z6.indexOf(a)>-1||/[A-Z]/u.test(a))}function Q6(a,i,l,{latestValues:o},c,f=!1,d){const g=(d??Jf(a)?X6:Y6)(i,o,c,a),m=B6(i,typeof a=="string",f),v=a!==L.Fragment?{...m,...g,ref:l}:{},{children:x}=i,S=L.useMemo(()=>he(x)?x.get():x,[x]);return L.createElement(a,{...v,children:S})}function K6({scrapeMotionValuesFromProps:a,createRenderState:i},l,o,c){return{latestValues:J6(l,o,c,a),renderState:i()}}function J6(a,i,l,o){const c={},f=o(a,{});for(const S in f)c[S]=Oo(f[S]);let{initial:d,animate:p}=a;const g=$o(a),m=iy(a);i&&m&&!g&&a.inherit!==!1&&(d===void 0&&(d=i.initial),p===void 0&&(p=i.animate));let v=l?l.initial===!1:!1;v=v||d===!1;const x=v?p:d;if(x&&typeof x!="boolean"&&!Po(x)){const S=Array.isArray(x)?x:[x];for(let j=0;j<S.length;j++){const E=Lf(a,S[j]);if(E){const{transitionEnd:N,transition:_,...B}=E;for(const O in B){let U=B[O];if(Array.isArray(U)){const X=v?U.length-1:0;U=U[X]}U!==null&&(c[O]=U)}for(const O in N)c[O]=N[O]}}}return c}const ky=a=>(i,l)=>{const o=L.useContext(Wo),c=L.useContext(Tf),f=()=>K6(a,i,o,c);return l?f():Z3(f)},F6=ky({scrapeMotionValuesFromProps:Qf,createRenderState:Kf}),P6=ky({scrapeMotionValuesFromProps:yy,createRenderState:_y}),$6=Symbol.for("motionComponentSymbol");function W6(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 p=d(f);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f);i&&(f?i.mount(f):i.unmount())},[i])}const Ly=L.createContext({});function Ni(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function I6(a,i,l,o,c,f){const{visualElement:d}=L.useContext(Wo),p=L.useContext(Dy),g=L.useContext(Tf),m=L.useContext(Ny),v=m.reducedMotion,x=m.skipAnimations,S=L.useRef(null),j=L.useRef(!1);o=o||p.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,N=L.useContext(Ly);E&&!E.projection&&c&&(E.type==="html"||E.type==="svg")&&tS(S.current,l,c,N);const _=L.useRef(!1);L.useInsertionEffect(()=>{E&&_.current&&E.update(l,g)});const B=l[Zg],O=L.useRef(!!B&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(B)&&window.MotionHasOptimisedAnimation?.(B));return K3(()=>{j.current=!0,E&&(_.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),O.current&&E.animationState&&E.animationState.animateChanges())}),L.useEffect(()=>{E&&(!O.current&&E.animationState&&E.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(B)}),O.current=!1),E.enteringChildren=void 0)}),E}function tS(a,i,l,o){const{layoutId:c,layout:f,drag:d,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutAnchor:v,layoutCrossfade:x}=i;a.projection=new l(a.latestValues,i["data-framer-portal-id"]?void 0:By(a.parent)),a.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||p&&Ni(p),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:x,layoutScroll:g,layoutRoot:m,layoutAnchor:v})}function By(a){if(a)return a.options.allowProjection!==!1?a.projection:By(a.parent)}function kc(a,{forwardMotionProps:i=!1,type:l}={},o,c){o&&_6(o);const f=l?l==="svg":Jf(a),d=f?P6:F6;function p(m,v){let x;const S={...L.useContext(Ny),...m,layoutId:eS(m)},{isStatic:j}=S,E=H6(m),N=d(m,j);if(!j&&typeof window<"u"){nS();const _=aS(S);x=_.MeasureLayout,E.visualElement=I6(a,N,S,c,_.ProjectionNode,f)}return y.jsxs(Wo.Provider,{value:E,children:[x&&E.visualElement?y.jsx(x,{visualElement:E.visualElement,...S}):null,Q6(a,m,W6(N,E.visualElement,v),N,j,i,f)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const g=L.forwardRef(p);return g[$6]=a,g}function eS({layoutId:a}){const i=L.useContext(ag).id;return i&&a!==void 0?i+"-"+a:a}function nS(a,i){L.useContext(Dy).strict}function aS(a){const i=Ry(),{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 iS(a,i){if(typeof Proxy>"u")return kc;const l=new Map,o=(f,d)=>kc(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,kc(d,void 0,a,i)),l.get(d))})}const sS=(a,i)=>i.isSVG??Jf(a)?new H8(i):new O8(i,{allowProjection:a!==L.Fragment});class lS extends pa{constructor(i){super(i),i.animationState||(i.animationState=Z8(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Po(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 oS=0;class rS extends pa{constructor(){super(...arguments),this.id=oS++,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 p=Ya(this.node,f,d);if(p){const{transition:g,transitionEnd:m,...v}=p;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 uS={animation:{Feature:lS},exit:{Feature:rS}};function el(a){return{point:{x:a.pageX,y:a.pageY}}}const cS=a=>i=>Gf(i)&&a(i,el(i));function Gs(a,i,l,o){return Ps(a,i,cS(l),o)}const Uy=({current:a})=>a?a.ownerDocument.defaultView:null,xp=(a,i)=>Math.abs(a-i);function fS(a,i){const l=xp(a.x,i.x),o=xp(a.y,i.y);return Math.sqrt(l**2+o**2)}const Sp=new Set(["auto","scroll"]);class Hy{constructor(i,l,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:p}={}){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=Ao(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Lc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,N=fS(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!N)return;const{point:_}=j,{timestamp:B}=de;this.history.push({..._,timestamp:B});const{onStart:O,onMove:U}=this.handlers;E||(O&&O(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,j)},this.handlePointerMove=(j,E)=>{this.lastMoveEvent=j,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=Ao(E,this.transformPagePoint),Ut.update(this.updatePoint,!0)},this.handlePointerUp=(j,E)=>{this.end();const{onEnd:N,onSessionEnd:_,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=Lc(j.type==="pointercancel"?this.lastMoveEventInfo:Ao(E,this.transformPagePoint),this.history);this.startEvent&&N&&N(j,O),_&&_(j,O)},!Gf(i))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=c||window;const g=el(i),m=Ao(g,this.transformPagePoint),{point:v}=m,{timestamp:x}=de;this.history=[{...v,timestamp:x}];const{onSessionStart:S}=l;S&&S(i,Lc(m,this.history)),this.removeListeners=Ws(Gs(this.contextWindow,"pointermove",this.handlePointerMove),Gs(this.contextWindow,"pointerup",this.handlePointerUp),Gs(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(i){let l=i.parentElement;for(;l;){const o=getComputedStyle(l);(Sp.has(o.overflowX)||Sp.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),Ut.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ha(this.updatePoint)}}function Ao(a,i){return i?{point:i(a.point)}:a}function Tp(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Lc({point:a},i){return{point:a,delta:Tp(a,Gy(i)),offset:Tp(a,dS(i)),velocity:hS(i,.1)}}function dS(a){return a[0]}function Gy(a){return a[a.length-1]}function hS(a,i){if(a.length<2)return{x:0,y:0};let l=a.length-1,o=null;const c=Gy(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 mS(a,{min:i,max:l},o){return i!==void 0&&a<i?a=o?qt(i,a,o.min):Math.max(a,i):l!==void 0&&a>l&&(a=o?qt(l,a,o.max):Math.min(a,l)),a}function wp(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 pS(a,{top:i,left:l,bottom:o,right:c}){return{x:wp(a.x,l,c),y:wp(a.y,i,o)}}function Ap(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 gS(a,i){return{x:Ap(a.x,i.x),y:Ap(a.y,i.y)}}function yS(a,i){let l=.5;const o=ye(a),c=ye(i);return c>o?l=Ks(i.min,i.max-o,a.min):o>c&&(l=Ks(a.min,a.max-c,i.min)),pn(0,1,l)}function vS(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 pf=.35;function bS(a=pf){return a===!1?a=0:a===!0&&(a=pf),{x:Ep(a,"left","right"),y:Ep(a,"top","bottom")}}function Ep(a,i,l){return{min:Mp(a,i),max:Mp(a,l)}}function Mp(a,i){return typeof a=="number"?a:a[i]||0}const xS=new WeakMap;class SS{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(el(x).point),this.stopAnimation()},d=(x,S)=>{const{drag:j,dragPropagation:E,onDragStart:N}=this.getProps();if(j&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=I4(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),fn(B=>{let O=this.getAxisMotionValue(B).get()||0;if(mn.test(O)){const{projection:U}=this.visualElement;if(U&&U.layout){const X=U.layout.layoutBox[B];X&&(O=ye(X)*(parseFloat(O)/100))}}this.originPoint[B]=O}),N&&Ut.update(()=>N(x,S),!1,!0),lf(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},p=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:j,dragDirectionLock:E,onDirectionLock:N,onDrag:_}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:B}=S;if(E&&this.currentDirection===null){this.currentDirection=wS(B),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",S.point,B),this.updateAxis("y",S.point,B),this.visualElement.render(),_&&Ut.update(()=>_(x,S),!1,!0)},g=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Hy(i,{onSessionStart:f,onStart:d,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Uy(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:p}=this.getProps();p&&Ut.postRender(()=>p(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||!Eo(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(d=mS(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&&Ni(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=pS(o.layoutBox,i):this.constraints=!1,this.elastic=bS(l),c!==this.constraints&&!Ni(i)&&o&&this.constraints&&!this.hasMutatedConstraints&&fn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=vS(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Ni(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=C8(o,c.root,this.visualElement.getTransformPagePoint());let d=gS(c.layout.layoutBox,f);if(l){const p=l(E8(d));this.hasMutatedConstraints=!!p,p&&(d=ry(p))}return d}startAnimation(i){const{drag:l,dragMomentum:o,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=fn(v=>{if(!Eo(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(m).then(p)}startAxisValueAnimation(i,l){const o=this.getAxisMotionValue(i);return lf(this.visualElement,i),o.start(kf(i,o,0,l,this.visualElement,!1))}stopAnimation(){fn(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){fn(l=>{const{drag:o}=this.getProps();if(!Eo(l,o,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(l);if(c&&c.layout){const{min:d,max:p}=c.layout.layoutBox[l],g=f.get()||0;f.set(i[l]-qt(d,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!Ni(l)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};fn(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const g=p.get();c[d]=yS({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(),fn(d=>{if(!Eo(d,i,null))return;const p=this.getAxisMotionValue(d),{min:g,max:m}=this.constraints[d];p.set(qt(g,m,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;xS.set(this.visualElement,this);const i=this.visualElement.current,l=Gs(i,"pointerdown",m=>{const{drag:v,dragListener:x=!0}=this.getProps(),S=m.target,j=S!==i&&s8(S);v&&x&&!j&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();Ni(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=TS(i,m.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",c);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Ut.read(c);const p=Ps(window,"resize",()=>this.scalePositionWithinConstraints()),g=f.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(fn(x=>{const S=this.getAxisMotionValue(x);S&&(this.originPoint[x]+=m[x].translate,S.set(S.get()+m[x].translate))}),this.visualElement.render())}));return()=>{p(),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=pf,dragMomentum:p=!0}=i;return{...i,drag:l,dragDirectionLock:o,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:p}}}function jp(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function TS(a,i,l){const o=k1(a,jp(l)),c=k1(i,jp(l));return()=>{o(),c()}}function Eo(a,i,l){return(i===!0||i===a)&&(l===null||l===a)}function wS(a,i=10){let l=null;return Math.abs(a.y)>i?l="y":Math.abs(a.x)>i&&(l="x"),l}class AS extends pa{constructor(i){super(i),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new SS(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 Bc=a=>(i,l)=>{a&&Ut.update(()=>a(i,l),!1,!0)};class ES extends pa{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(i){this.session=new Hy(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Uy(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Bc(i),onStart:Bc(l),onMove:Bc(o),onEnd:(f,d)=>{delete this.session,c&&Ut.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=Gs(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 Uc=!1;class MS 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),Uc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),_o.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}),Uc=!0,c||i.layoutDependency!==l||l===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||Ut.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:l}=this.props,{projection:o}=i;o&&(o.options.layoutAnchor=l,o.root.didUpdate(),Hf.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:c}=i;Uc=!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 qy(a){const[i,l]=V6(),o=L.useContext(ag);return y.jsx(MS,{...a,layoutGroup:o,switchLayoutGroup:L.useContext(Ly),isPresent:i,safeToRemove:l})}const jS={pan:{Feature:ES},drag:{Feature:AS,ProjectionNode:zy,MeasureLayout:qy}};function Cp(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&&Ut.postRender(()=>f(i,el(i)))}class CS extends pa{mount(){const{current:i}=this.node;i&&(this.unmount=e8(i,(l,o)=>(Cp(this.node,o,"Start"),c=>Cp(this.node,c,"End"))))}unmount(){}}class zS extends pa{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=Ws(Ps(this.node.current,"focus",()=>this.onFocus()),Ps(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zp(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&&Ut.postRender(()=>f(i,el(i)))}class NS extends pa{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:o}=this.node.props;this.unmount=o8(i,(c,f)=>(zp(this.node,f,"Start"),(d,{success:p})=>zp(this.node,d,p?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:o?.tap===!1})}unmount(){}}const gf=new WeakMap,Hc=new WeakMap,DS=a=>{const i=gf.get(a.target);i&&i(a)},RS=a=>{a.forEach(DS)};function VS({root:a,...i}){const l=a||document;Hc.has(l)||Hc.set(l,{});const o=Hc.get(l),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(RS,{root:a,...i})),o[c]}function OS(a,i,l){const o=VS(i);return gf.set(a,l),o.observe(a),()=>{gf.delete(a),o.unobserve(a)}}const _S={some:0,all:1};class kS extends pa{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:_S[c]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,f&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),S=m?v:x;S&&S(g)};this.stopObserver=OS(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(LS(i,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function LS({viewport:a={}},{viewport:i={}}={}){return l=>a[l]!==i[l]}const BS={inView:{Feature:kS},tap:{Feature:NS},focus:{Feature:zS},hover:{Feature:CS}},US={layout:{ProjectionNode:zy,MeasureLayout:qy}},HS={...uS,...BS,...jS,...US},Gc=iS(HS,sS),ke=({label:a,children:i,variant:l="primary",size:o="medium",icon:c,onClick:f,removable:d=!1,className:p,maxWidth:g,appearance:m,onRemove:v,isLoading:x=!1})=>{const S=GS(l),j=m??(l==="outline"?"outline":"solid"),E=a??i,N=!!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"}},B={small:"text-xs px-2 py-1",medium:"text-xs px-2.5 py-1",large:"text-sm px-3 py-1.5"},O=X=>{X.stopPropagation(),f?.()},U=X=>{X.stopPropagation(),v?.()};return y.jsxs(Gc.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:N?1.04:1,backgroundColor:N&&S==="primary"?"#111111d1":void 0,transition:{duration:.2,ease:"easeInOut",type:"spring"}},onClick:O,style:{maxWidth:g},className:pt("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],B[o],N&&"cursor-pointer",p),children:[x?y.jsx(Gc.div,{animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},className:"flex-shrink-0",children:y.jsx(Bp,{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(Gc.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:U,type:"button",children:y.jsx(bf,{className:"size-3.5"})})]})};function GS(a){return a==="danger"?"error":a==="default"||a==="outline"?"primary":a}const qS=qp("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 an({className:a,variant:i,...l}){return y.jsx("div",{className:pt(qS({variant:i,className:a})),...l})}const ga='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',ya='</title><path d="',va='"/></svg>',YS={title:"Bun",slug:"bun",get svg(){return ga+"Bun"+ya+this.path+va},path:"M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083 5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z",source:"https://bun.sh/press-kit",hex:"000000"},XS={title:"Deno",slug:"deno",get svg(){return ga+"Deno"+ya+this.path+va},path:"M1.105 18.02A11.9 11.9 0 0 1 0 12.985q0-.698.078-1.376a12 12 0 0 1 .231-1.34A12 12 0 0 1 4.025 4.02a12 12 0 0 1 5.46-2.771 12 12 0 0 1 3.428-.23c1.452.112 2.825.477 4.077 1.05a12 12 0 0 1 2.78 1.774 12.02 12.02 0 0 1 4.053 7.078A12 12 0 0 1 24 12.985q0 .454-.036.914a12 12 0 0 1-.728 3.305 12 12 0 0 1-2.38 3.875c-1.33 1.357-3.02 1.962-4.43 1.936a4.4 4.4 0 0 1-2.724-1.024c-.99-.853-1.391-1.83-1.53-2.919a5 5 0 0 1 .128-1.518c.105-.38.37-1.116.76-1.437-.455-.197-1.04-.624-1.226-.829-.045-.05-.04-.13 0-.183a.155.155 0 0 1 .177-.053c.392.134.869.267 1.372.35.66.111 1.484.25 2.317.292 2.03.1 4.153-.813 4.812-2.627s.403-3.609-1.96-4.685-3.454-2.356-5.363-3.128c-1.247-.505-2.636-.205-4.06.582-3.838 2.121-7.277 8.822-5.69 15.032a.191.191 0 0 1-.315.19 12 12 0 0 1-1.25-1.634 12 12 0 0 1-.769-1.404M11.57 6.087c.649-.051 1.214.501 1.31 1.236.13.979-.228 1.99-1.41 2.013-1.01.02-1.315-.997-1.248-1.614.066-.616.574-1.575 1.35-1.635",source:"https://github.com/denoland/docs/blob/5dee713844c7447f80acd4093caa9d350d80bf36/static/img/logo.svg",hex:"000000",guidelines:"https://deno.com/brand",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},ZS={title:"Docker",slug:"docker",get svg(){return ga+"Docker"+ya+this.path+va},path:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z",source:"https://www.docker.com/company/newsroom/media-resources",hex:"2496ED"},QS={title:"Go",slug:"go",get svg(){return ga+"Go"+ya+this.path+va},path:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z",source:"https://blog.golang.org/go-brand",hex:"00ADD8",guidelines:"https://blog.golang.org/go-brand"},KS={title:"Node.js",slug:"nodedotjs",get svg(){return ga+"Node.js"+ya+this.path+va},path:"M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z",source:"https://nodejs.org/en/about/branding",hex:"5FA04E",guidelines:"https://nodejs.org/en/about/branding"},JS={title:"Python",slug:"python",get svg(){return ga+"Python"+ya+this.path+va},path:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z",source:"https://www.python.org/community/logos/",hex:"3776AB",guidelines:"https://www.python.org/community/logos/"},Np={title:"Rust",slug:"rust",get svg(){return ga+"Rust"+ya+this.path+va},path:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z",source:"https://www.rust-lang.org",hex:"000000",guidelines:"https://www.rust-lang.org/policies/media-guide",license:{type:"CC-BY-SA-4.0",url:"https://spdx.org/licenses/CC-BY-SA-4.0"}},FS={title:"Vite",slug:"vite",get svg(){return ga+"Vite"+ya+this.path+va},path:"M13.056 23.238a.57.57 0 0 1-1.02-.355v-5.202c0-.63-.512-1.143-1.144-1.143H5.148a.57.57 0 0 1-.464-.903l3.777-5.29c.54-.753 0-1.804-.93-1.804H.57a.574.574 0 0 1-.543-.746.6.6 0 0 1 .08-.157L5.008.78a.57.57 0 0 1 .467-.24h14.589a.57.57 0 0 1 .466.903l-3.778 5.29c-.54.755 0 1.806.93 1.806h5.745c.238 0 .424.138.513.322a.56.56 0 0 1-.063.603z",source:"https://github.com/voidzero-dev/community-design-resources/blob/55902097229cf01cf2a4ceb376f992f5cf306756/brand-assets/vite/vite-icon-color-bracketless.svg",hex:"9135FF"};function qs({className:a,...i}){return y.jsx("div",{className:pt("rounded-lg border border-border bg-card text-card-foreground",a),...i})}function Ys({className:a,...i}){return y.jsx("div",{className:pt("grid gap-1.5 p-4",a),...i})}function Xs({className:a,...i}){return y.jsx("h3",{className:pt("text-sm font-semibold tracking-tight",a),...i})}function ko({className:a,...i}){return y.jsx("p",{className:pt("text-sm text-muted-foreground",a),...i})}function Zs({className:a,...i}){return y.jsx("div",{className:pt("p-4 pt-0",a),...i})}function hn({className:a,type:i,...l}){return y.jsx("input",{type:i,className:pt("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 Di({className:a,...i}){return y.jsx("label",{className:pt("grid gap-1.5 text-xs font-medium text-muted-foreground",a),...i})}const PS=[{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%)"}],$S=({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:PS.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))})}),WS=[{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"}],IS={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"},t7={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]"}},Mo=({size:a="medium",type:i="primary",variant:l="styled",shape:o="square",svgOnly:c=!1,children:f,prefix:d,suffix:p,shadow:g=!1,loading:m=!1,disabled:v=!1,fullWidth:x=!1,className:S,...j})=>y.jsxs("button",{disabled:v,tabIndex:0,className:Qs("flex items-center justify-center gap-0.5 duration-150",WS[+c][a],v||m?"cursor-not-allowed border border-gray-400 bg-gray-100 text-gray-700":IS[i],t7[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:[m?y.jsx($S,{size:a==="large"?24:16}):d,y.jsx("span",{className:Qs("relative overflow-hidden overflow-ellipsis whitespace-nowrap font-sans",a!=="tiny"&&l!=="unstyled"&&"px-1.5"),children:f}),!m&&p]}),e7=({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"})}),n7=()=>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 qc=null,a7=0;const te={toasts:[],listeners:new Set,add(a,i,l,o,c,f){const d=a7++,p={id:d,text:a,preserve:l,action:o,onAction:c,onUndoAction:f,type:i};if(!p.preserve){p.remaining=3e3,p.start=Date.now();const g=()=>{this.toasts=this.toasts.filter(m=>m.id!==d),this.notify()};p.timeout=setTimeout(g,p.remaining),p.pause=()=>{p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0,p.remaining-=Date.now()-p.start)},p.resume=()=>{p.timeout||(p.start=Date.now(),p.timeout=setTimeout(g,p.remaining))}}this.toasts.push(p),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())}},i7=()=>{const[a,i]=L.useState([]),[l,o]=L.useState([]),[c,f]=L.useState(!1),d=E=>N=>{N&&E.measuredHeight==null&&(E.measuredHeight=N.getBoundingClientRect().height,te.notify())};L.useEffect(()=>(i([...te.toasts]),te.subscribe(()=>{i([...te.toasts])})),[]),L.useEffect(()=>{const E=a.filter(N=>!l.includes(N.id)).map(N=>N.id);E.length>0&&requestAnimationFrame(()=>{o(N=>[...N,...E])})},[l,a]);const g=Math.max(0,a.length-3),m=(E,N)=>{if(E===N-1)return"none";const _=N-1-E;let B=a[N-1]?.measuredHeight||63;for(let X=N-1;X>E;X--)c?B+=(a[X-1]?.measuredHeight||63)+10:B+=20;const O=-_,U=c?1:1-.05*_;return`translate3d(0, calc(100% - ${B}px), ${O}px) scale(${U})`},v=()=>{f(!0),te.toasts.forEach(E=>E.pause?.())},x=()=>{f(!1),te.toasts.forEach(E=>E.resume?.())},j=a.slice(g).reduce((E,N)=>E+(N.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,N)=>{const _=N>=g;return y.jsx("div",{ref:d(E),className:Qs("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",N<g&&"pointer-events-none"),style:{width:"100%",transition:"all .35s cubic-bezier(.25,.75,.6,.98)",transform:l.includes(E.id)?m(N,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(Mo,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>{E.onUndoAction?.(),te.remove(E.id)},children:y.jsx(n7,{})}),y.jsx(Mo,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>te.remove(E.id),children:y.jsx(e7,{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(Mo,{type:"tertiary",size:"small",onClick:()=>te.remove(E.id),children:"Dismiss"}),y.jsx(Mo,{type:"primary",size:"small",onClick:()=>{E.onAction?.(),te.remove(E.id)},children:E.action})]})]})},E.id)})})})},jo=()=>{if(qc)return;const a=document.createElement("div");a.className="fixed bottom-4 right-4 z-[9999]",document.body.appendChild(a),qc=kp.createRoot(a),qc.render(y.jsx(i7,{}))},Hi=()=>({message:L.useCallback(({text:a,preserve:i,action:l,onAction:o,onUndoAction:c})=>{jo(),te.add(a,"message",i,l,o,c)},[]),success:L.useCallback(a=>{jo(),te.add(a,"success")},[]),warning:L.useCallback(a=>{jo(),te.add(a,"warning")},[]),error:L.useCallback(a=>{jo(),te.add(a,"error")},[])});function s7(a){const i=a.toLowerCase();return/\bvite\b/.test(i)?cn.vite:/\bcargo\s+/.test(i)?cn.cargo:/\brustc\b/.test(i)?cn.rust:/\bdocker(?:\s+compose|-compose|\s+)/.test(i)?cn.docker:/\bpython3?\b|\buvicorn\b|\bfastapi\b/.test(i)?cn.python:/\bgo\s+(run|test|build)\b|\bair\b/.test(i)?cn.go:/\bbun\b/.test(i)?cn.bun:/\bdeno\b/.test(i)?cn.deno:/\bnode\b|\bnpm\b|\bpnpm\b|\byarn\b/.test(i)?cn.node:cn.generic}const cn={bun:{kind:"bun",label:"Bun"},cargo:{kind:"cargo",label:"Cargo"},deno:{kind:"deno",label:"Deno"},docker:{kind:"docker",label:"Docker"},generic:{kind:"generic",label:"Process"},go:{kind:"go",label:"Go"},node:{kind:"node",label:"Node"},python:{kind:"python",label:"Python"},rust:{kind:"rust",label:"Rust"},vite:{kind:"vite",label:"Vite"}};function l7({data:a,onRefresh:i}){const l=a.config.services[0]?.name??"",[o,c]=L.useState(l),[f,d]=L.useState(a.logs),[p,g]=L.useState(""),[m,v]=L.useState(null),[x,S]=L.useState(!1),j=L.useRef(null),E=L.useRef({}),{error:N,message:_,success:B}=Hi(),O=L.useMemo(()=>new Set(a.config.bundles.flatMap(Z=>Z.services)),[a.config.bundles]),U=L.useMemo(()=>{const Z=new Map;for(const I of a.config.bundles)for(const ft of I.services)Z.has(ft)||Z.set(ft,I.name);return Z},[a.config.bundles]),X=L.useMemo(()=>a.config.services.filter(Z=>!O.has(Z.name)),[a.config.services,O]),$=a.config.bundles.length>0||X.length>0,ut=p.trim().toLowerCase(),W=L.useMemo(()=>ut?f.filter(Z=>r7(Z).toLowerCase().includes(ut)):f,[f,ut]);L.useEffect(()=>{!o&&l&&c(l)},[l,o]),L.useEffect(()=>{if(!o){d([]);return}let Z=!0;return o1(o).then(I=>{Z&&d(I)}).catch(()=>{Z&&d([])}),()=>{Z=!1}},[o,a.runtime.services]),L.useEffect(()=>{if(!x||!o)return;let Z=!0;const I=async()=>{try{const gt=await o1(o);Z&&d(gt)}catch{Z&&d([])}};I();const ft=window.setInterval(I,1e3);return()=>{Z=!1,window.clearInterval(ft)}},[o,x]),L.useEffect(()=>{if(!x)return;const Z=j.current;Z&&(Z.scrollTop=Z.scrollHeight)},[x,W]),L.useEffect(()=>{const Z=Object.fromEntries(a.config.services.map(ft=>[ft.name,a.runtime.services[ft.name]?.state??"stopped"])),I=E.current;if(Object.keys(I).length){const ft=new Map,gt=new Map;for(const Dt of a.config.services){const At=Z[Dt.name],zt=I[Dt.name];if(!zt||zt===At)continue;const R=a.runtime.services[Dt.name],Q=U.get(Dt.name);if(Q){const J=ft.get(Q)??new Map;if(J.set(At,(J.get(At)??0)+1),ft.set(Q,J),At==="exited"){const ct=gt.get(Q)??[];ct.push(R?.exitCode),gt.set(Q,ct)}continue}if(At==="running")B(`${Dt.name} is running.`);else if(At==="stopped")_({text:`${Dt.name} stopped.`});else if(At==="starting")_({text:`${Dt.name} is starting.`});else if(At==="exited"){const J=R?.exitCode===void 0||R.exitCode===null?"":` with code ${R.exitCode}`;N(`${Dt.name} exited${J}.`)}}for(const[Dt,At]of ft)c7({exitCodes:gt.get(Dt)??[],groupName:Dt,showErrorToast:N,showMessageToast:_,showSuccessToast:B,transitions:At})}E.current=Z},[a.config.services,a.runtime.services,U,N,_,B]);const Y=o?ut?`No log lines match "${p.trim()}".`:`No logs captured for ${o}.`:"No services registered.";return x?y.jsx("div",{className:"flex h-full min-h-0 bg-card/85",children:y.jsxs(qs,{className:"flex min-h-0 min-w-0 flex-1 flex-col rounded-none border-0 bg-transparent",children:[y.jsx(Ys,{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(Xs,{children:"Streaming Logs"}),y.jsx(ko,{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(Dp,{value:p,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:Z=>c(Z.target.value),value:o,children:a.config.services.map(Z=>y.jsx("option",{value:Z.name,children:Z.name},Z.name))}),y.jsxs(Ot,{"aria-pressed":x,className:"border-emerald-600 bg-emerald-50 text-emerald-700",onClick:()=>S(!1),size:"sm",type:"button",variant:"outline",children:[y.jsx(l1,{}),"Streaming"]})]})]})}),y.jsx(Zs,{className:"min-h-0 flex-1 p-0",children:y.jsx(Rp,{containerRef:j,emptyText:Y,logs:W,query:p})})]})}):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(qs,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[y.jsx(Ys,{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(Xs,{children:"Services"}),y.jsx(ko,{className:"text-xs",children:"Grouped services are nested; ungrouped services stay standalone."})]}),y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsxs(Ot,{"aria-pressed":m==="service",className:pt(m==="service"&&"border-primary bg-primary text-primary-foreground"),onClick:()=>v(Z=>Z==="service"?null:"service"),size:"sm",type:"button",variant:"outline",children:[y.jsx(Up,{}),"Add Service"]}),y.jsxs(Ot,{"aria-pressed":m==="group",className:pt(m==="group"&&"border-primary bg-primary text-primary-foreground"),onClick:()=>v(Z=>Z==="group"?null:"group"),size:"sm",type:"button",variant:"outline",children:[y.jsx(Ub,{}),"Create Group"]})]})]})}),y.jsxs(Zs,{className:"p-0",children:[m?y.jsx("div",{className:"border-b border-border bg-background/70 p-3",children:m==="service"?y.jsx(v7,{cwd:a.cwd,onRefresh:i,onSaved:()=>v(null)}):y.jsx(Jy,{services:a.config.services,onRefresh:i,onSaved:()=>v(null)})}):null,$?y.jsxs("div",{className:"divide-y divide-border",children:[a.config.bundles.map(Z=>y.jsx(o7,{group:Z,onRefresh:i,ports:a.ports,allServices:a.config.services,services:a.config.services.filter(I=>Z.services.includes(I.name)),statuses:a.runtime.services},Z.name)),X.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:X.map(Z=>y.jsx(Yy,{service:Z,status:a.runtime.services[Z.name],ports:a.ports,onRefresh:i},Z.name))})]}):null]}):y.jsx(Fy,{label:"No services registered yet."})]})]}),y.jsxs(qs,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[y.jsx(Ys,{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(Xs,{children:"Recent Logs"}),y.jsx(ko,{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(Dp,{value:p,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:Z=>c(Z.target.value),value:o,children:a.config.services.map(Z=>y.jsx("option",{value:Z.name,children:Z.name},Z.name))}),y.jsxs(Ot,{"aria-pressed":x,disabled:!o,onClick:()=>S(!0),size:"sm",type:"button",variant:"outline",children:[y.jsx(l1,{}),"Stream"]})]})]})}),y.jsx(Zs,{className:"min-w-0 p-0",children:y.jsx(Rp,{className:"max-h-[320px]",containerRef:j,emptyText:Y,logs:W,query:p})})]})]}),y.jsx("div",{className:"min-h-0 overflow-auto border-l border-border",children:y.jsx(f7,{ports:a.ports})})]})}function o7({allServices:a,group:i,onRefresh:l,ports:o,services:c,statuses:f}){const[d,p]=L.useState(!1),[g,m]=L.useState(!1),v=c.some(x=>Xy(f[x.name]?.state));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.jsx("div",{className:"min-w-0",children:y.jsxs("button",{className:"flex max-w-full items-start gap-2 text-left",onClick:()=>m(x=>!x),type:"button",children:[y.jsx($s,{className:pt("mt-0.5 size-3.5 shrink-0 text-muted-foreground transition-transform",g&&"-rotate-90")}),y.jsxs("span",{className:"min-w-0",children:[y.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[y.jsx(ke,{appearance:"subtle",className:"shadow-none",size:"small",variant:"secondary",children:"group"}),y.jsx("span",{className:"text-sm font-medium",children:i.name}),y.jsx(ke,{variant:"secondary",children:i.services.length})]}),y.jsx("span",{className:"mt-0.5 block truncate text-xs text-muted-foreground",children:i.services.join(", ")})]})]})}),y.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[y.jsxs(Ot,{"aria-expanded":d,onClick:()=>p(x=>!x),size:"sm",type:"button",variant:"outline",children:[y.jsx(jx,{}),"Edit"]}),y.jsx(Ky,{active:v,baseUrl:`/api/bundles/${encodeURIComponent(i.name)}`,restartAction:async()=>{await en(`/api/bundles/${encodeURIComponent(i.name)}/stop`,{}),await en(`/api/bundles/${encodeURIComponent(i.name)}/start`,{})},targetLabel:`group ${i.name}`,onRefresh:l})]})]}),d?y.jsx("div",{className:"border-t border-border bg-background/65 p-3",children:y.jsx(Jy,{initialName:i.name,initialServices:i.services,onRefresh:l,onSaved:()=>p(!1),originalName:i.name,services:a,submitLabel:"Save Group"})}):null,g?null:y.jsx("div",{className:"divide-y divide-border border-t border-border bg-background/45",children:c.length?c.map(x=>y.jsx(Yy,{service:x,status:f[x.name],ports:o,onRefresh:l},x.name)):y.jsx(an,{variant:"muted",className:"m-4",children:"This group does not match any registered services."})})]})}function Dp({onChange:a,value:i}){return y.jsxs("label",{className:"relative block",children:[y.jsx(Bx,{className:"pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),y.jsx(hn,{"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 Rp({className:a,containerRef:i,emptyText:l,logs:o,query:c}){return y.jsx("div",{className:pt("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:pt("grid min-w-max grid-cols-[168px_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.jsxs("span",{className:"whitespace-pre-wrap break-words",children:[f.stream==="stderr"?y.jsx("span",{className:"mr-2 rounded bg-red-100 px-1 font-semibold uppercase text-red-700",children:"stderr"}):null,u7(f.text,c)]})]},`${f.timestamp}-${f.stream}-${d}`)):y.jsx("div",{className:"p-3 text-muted-foreground",children:l})})}function r7(a){return`${a.timestamp} ${a.stream} ${a.text}`}function u7(a,i){const l=i.trim();if(!l)return a;const o=a.toLowerCase(),c=l.toLowerCase(),f=[];let d=0,p=o.indexOf(c);for(;p!==-1;){p>d&&f.push(a.slice(d,p));const g=p+l.length;f.push(y.jsx("mark",{className:"rounded bg-amber-200 px-0.5 text-amber-950",children:a.slice(p,g)},`${p}-${g}`)),d=g,p=o.indexOf(c,d)}return d<a.length&&f.push(a.slice(d)),f}function c7({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 m=a.filter(x=>x!=null),v=m.length?` with code ${m.join(", ")}`:"";l(`${i} group exited${v}.`)}return}const d=[...f.entries()].map(([g,m])=>`${m} ${g}`).join(", "),p=`${i} group updated: ${d}.`;f.has("exited")?l(p):o({text:p})}function Yy({service:a,status:i,ports:l,onRefresh:o}){const c=i?.state??"stopped",f=Xy(c),d=i?.url??(a.port?h7(a.port):void 0),p=a.port?l.find(v=>v.port===a.port):void 0,g=m7(i?.url),m=g?l.find(v=>v.port===g):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(Qy,{command:a.command}),y.jsx("span",{className:"text-sm font-medium",children:a.name}),y.jsx(p7,{state:c}),a.port?y.jsxs(ke,{variant:"outline",children:[":",a.port]}):null,p?y.jsx(Zy,{port:p,compact:!0}):null,m&&m.port!==a.port?y.jsxs(ke,{variant:"success",children:["actual :",m.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(d7,{service:a,onRefresh:o}),d?y.jsxs(Ot,{onClick:()=>window.open(d,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",title:d,children:[y.jsx(Pb,{}),"Open"]}):null,y.jsx(Ky,{active:f,baseUrl:`/api/services/${encodeURIComponent(a.name)}`,targetLabel:a.name,onRefresh:o})]})]})}function Xy(a){return a==="running"||a==="starting"}function f7({ports:a}){const i=a.filter(o=>o.state==="occupied").length,l=a.filter(o=>o.state==="managed").length;return y.jsxs(qs,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[y.jsxs(Ys,{className:"border-b border-border px-3 py-2",children:[y.jsxs(Xs,{className:"flex items-center gap-2",children:[y.jsx(yx,{className:"size-3.5"}),"Ports"]}),y.jsxs(ko,{className:"text-xs",children:[l," managed, ",i," occupied by other"]})]}),y.jsx(Zs,{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(Zy,{port:o})]},o.port))}):y.jsx(Fy,{label:"No configured ports yet."})})]})}function Zy({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(ke,{className:pt(a&&"max-w-36 truncate"),variant:o,children:l})}function d7({service:a,onRefresh:i}){const[l,o]=L.useState(a.port?String(a.port):""),[c,f]=L.useState(!1),{error:d,success:p}=Hi(),g=l.trim()!==(a.port?String(a.port):"");L.useEffect(()=>{o(a.port?String(a.port):"")},[a.port]);async function m(v){v.preventDefault(),f(!0);try{await en("/api/services",{name:a.name,command:a.command,cwd:a.cwd,port:l,description:a.description}),p(`Port saved for ${a.name}.`),await i()}catch(x){d(Io("Save port",a.name,x))}finally{f(!1)}}return y.jsxs("form",{className:"flex items-center gap-1.5",onSubmit:m,children:[y.jsx(hn,{"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(Ot,{"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(kx,{})})]})}function h7(a){return`http://127.0.0.1:${a}`}function m7(a){if(a)try{const i=new URL(a);return i.port?Number(i.port):void 0}catch{return}}function p7({state:a}){return y.jsx(ke,{variant:a==="running"?"success":a==="exited"?"danger":a==="starting"?"warning":"outline",className:pt(a==="running"&&"font-mono"),children:a})}function Qy({command:a,compact:i}){const l=s7(a),o=g7[l.kind];return y.jsx("span",{"aria-label":`${l.label} process`,className:pt("inline-flex shrink-0 items-center justify-center rounded-md border bg-white shadow-sm",i?"size-6":"size-7",o?"border-zinc-200":"border-zinc-300 bg-zinc-100 text-zinc-700"),style:o?{color:`#${o.hex}`}:void 0,title:l.label,children:o?y.jsx("svg",{"aria-hidden":"true",className:i?"size-3.5":"size-4",fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:y.jsx("path",{d:o.path})}):y.jsx(Jx,{className:i?"size-3.5":"size-4"})})}const g7={bun:YS,cargo:Np,deno:XS,docker:ZS,generic:null,go:QS,node:KS,python:JS,rust:Np,vite:FS};function Ky({active:a,baseUrl:i,onRefresh:l,restartAction:o,targetLabel:c}){return a?y.jsxs(y.Fragment,{children:[y.jsx(Yc,{intent:"restart",icon:y.jsx(Ox,{}),label:"Restart",action:o,targetLabel:c,url:`${i}/restart`,onRefresh:l}),y.jsx(Yc,{intent:"stop",icon:y.jsx(Qx,{}),label:"Stop",targetLabel:c,url:`${i}/stop`,onRefresh:l})]}):y.jsx(Yc,{intent:"start",icon:y.jsx(zx,{}),label:"Start",targetLabel:c,url:`${i}/start`,onRefresh:l})}function Yc({action:a,intent:i="neutral",icon:l,label:o,targetLabel:c,url:f,onRefresh:d}){const[p,g]=L.useState(!1),{error:m,success:v}=Hi();return y.jsxs(Ot,{className:y7[i],variant:"outline",size:"sm",disabled:p,onClick:async()=>{g(!0);try{a?await a():await en(f,{}),v(`${o} requested for ${c}.`),await d()}catch(x){m(Io(o,c,x))}finally{g(!1)}},children:[l,o]})}const y7={neutral:"",restart:"border-amber-600 bg-amber-600 text-white hover:bg-amber-700",start:"border-emerald-600 bg-emerald-600 text-white hover:bg-emerald-700",stop:"border-red-600 bg-red-600 text-white hover:bg-red-700"};function Io(a,i,l){const o=l instanceof Error?l.message:String(l);return`${a} failed for ${i}: ${o}`}function v7({cwd:a,onRefresh:i,onSaved:l}){const{error:o,success:c}=Hi();async function f(d){d.preventDefault();const p=d.currentTarget,g=new FormData(p),m=String(g.get("name")??"");try{await en("/api/services",{name:m,command:String(g.get("command")??""),cwd:String(g.get("cwd")??""),port:String(g.get("port")??""),description:String(g.get("description")??"")}),p.reset(),c(`${m} added.`),await i(),l?.()}catch(v){o(Io("Add service",m||"service",v))}}return y.jsxs("form",{className:"grid gap-2.5",onSubmit:f,children:[y.jsxs(Di,{children:["Name",y.jsx(hn,{className:"h-8 text-sm",name:"name",placeholder:"backend",required:!0})]}),y.jsxs(Di,{children:["Command",y.jsx(hn,{className:"h-8 text-sm",name:"command",placeholder:"npm run dev",required:!0})]}),y.jsxs(Di,{children:["Working Directory",y.jsx(hn,{className:"h-8 text-sm",name:"cwd",defaultValue:a,required:!0})]}),y.jsxs(Di,{children:["Port",y.jsx(hn,{className:"h-8 text-sm",name:"port",inputMode:"numeric",placeholder:"3001"})]}),y.jsxs(Di,{children:["Description",y.jsx(hn,{className:"h-8 text-sm",name:"description",placeholder:"API server"})]}),y.jsx(Ot,{className:"h-8",type:"submit",children:"Add Service"})]})}function Jy({initialName:a="",initialServices:i=[],onSaved:l,onRefresh:o,originalName:c,services:f,submitLabel:d="Save Group"}){const{error:p,success:g}=Hi();async function m(v){v.preventDefault();const x=v.currentTarget,S=new FormData(x),j=String(S.get("name")??""),E=S.getAll("services").map(N=>String(N)).filter(Boolean);try{await en("/api/bundles",{name:j,originalName:c,services:E.join(",")}),x.reset(),g(`${j} group saved.`),await o(),l?.()}catch(N){p(Io("Save group",j||"group",N))}}return y.jsxs("form",{className:"grid gap-2.5",onSubmit:m,children:[y.jsxs(Di,{children:["Group name",y.jsx(hn,{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.jsx(Qy,{command:v.command,compact:!0}),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(an,{variant:"muted",children:"Add services before creating a group."})]}),y.jsx(Ot,{className:"h-8",disabled:!f.length,type:"submit",children:d})]})}function Fy({label:a}){return y.jsx(an,{variant:"muted",className:"m-4 text-center",children:a})}function b7({activeHunkIndex:a=0,diff:i}){const l=S7(i),o=L.useRef([]);L.useEffect(()=>{o.current[a]?.scrollIntoView({block:"start",behavior:"smooth"})},[a,i]);let c=-1;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:l.map((f,d)=>{f.kind==="hunk"&&(c+=1);const p=c;return y.jsxs("div",{className:pt("grid grid-cols-[3rem_3rem_minmax(40rem,1fr)]",f.kind==="add"&&"bg-emerald-50 text-emerald-800",f.kind==="delete"&&"bg-red-50 text-red-800",f.kind==="hunk"&&"bg-muted text-muted-foreground",f.kind==="hunk"&&p===a&&"outline outline-1 outline-offset-[-1px] outline-primary/35"),ref:f.kind==="hunk"?g=>{o.current[p]=g}:void 0,children:[y.jsx(Vp,{value:f.oldLine}),y.jsx(Vp,{value:f.newLine}),y.jsx("span",{className:"whitespace-pre px-2",children:f.content||" "})]},`${d}-${f.content}`)})})})}function x7(a){return a.split(`
10
+ `).reduce((i,l)=>(l.startsWith("@@")?i.hunks+=1:l.startsWith("+")&&!l.startsWith("+++")?i.additions+=1:l.startsWith("-")&&!l.startsWith("---")&&(i.deletions+=1),i),{additions:0,deletions:0,hunks:0})}function S7(a){const i=T7(a);return i.some(l=>l.kind==="hunk")?i.filter(l=>l.kind!=="meta"):i}function T7(a){let i=null,l=null;return a.split(`
11
+ `).map(o=>{if(w7(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 w7(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 Vp({value:a}){return y.jsx("span",{className:pt("select-none border-r border-border/70 px-2 text-right text-muted-foreground",a===null&&"text-transparent"),children:a??"-"})}const A7=new Set(["c","cpp","cs","go","java","js","jsx","kt","mjs","py","rs","swift","ts","tsx"]),E7=new Set([".env",".gitignore","components.json","dockerfile","package.json","tsconfig.json","vite.config.ts"]),M7=new Set(["conf","config","ini","toml","yaml","yml"]),j7=new Set(["csv","json","sql","xml"]),C7=new Set(["md","mdx","rst","txt"]),z7=new Set(["gif","jpeg","jpg","png","svg","webp"]),N7=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock"]),D7=new Set(["css","less","sass","scss"]);function R7(a){const i=a.split("/").pop()?.toLowerCase()??a.toLowerCase(),l=i.includes(".")?i.split(".").pop()??"":"";return N7.has(i)||i.endsWith(".lock")?"lock":V7(i)?"test":E7.has(i)||M7.has(l)?"config":D7.has(l)?"style":z7.has(l)?"image":C7.has(l)?"document":j7.has(l)?"data":A7.has(l)?"code":"generic"}function V7(a){return a.includes(".test.")||a.includes(".spec.")||a.endsWith("_test.go")}function O7({branch:a,error:i,files:l,selectedFile:o,onSelectFile:c}){const f=L.useMemo(()=>U7(l).filter(g=>g.files.length),[l]),[d,p]=L.useState({staged:!1,unstaged:!1,untracked:!1});return y.jsxs(qs,{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-none border-0 bg-transparent",children:[y.jsx(Ys,{className:"border-b border-border px-2.5 py-1.5",children:y.jsxs(Xs,{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(Lo,{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(ke,{variant:"outline",children:a}):null,y.jsx(ke,{variant:"secondary",children:l.length})]})]})}),y.jsx(Zs,{className:"min-h-0 flex-1 overflow-auto p-0",children:f.length?f.map(g=>y.jsx(_7,{collapsed:d[g.id],group:g,onSelectFile:c,onToggle:()=>p(m=>({...m,[g.id]:!m[g.id]})),selectedFile:o},g.id)):y.jsx(an,{variant:"muted",className:"m-3 text-center",children:i??"No changed files."})})]})}function _7({collapsed:a,group:i,onSelectFile:l,onToggle:o,selectedFile:c}){const f=a?Xb:$s;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(ke,{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(k7,{active:c===d.path,file:d,group:i.id,onClick:()=>l(d.path)},d.path))})]})}function k7({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(Ot,{className:pt("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(B7,{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:pt("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:L7(i,l)})]})}function L7(a,i){return i==="untracked"?"?":i==="staged"?a.index.trim():a.workingTree.trim()}function B7({path:a}){const i=R7(a),l=H7[i];return y.jsx(l,{"aria-label":`${i} file`,className:pt("size-3.5 shrink-0",G7[i])})}function U7(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 H7={code:Wb,config:qx,data:Qb,document:tx,generic:nx,image:dx,lock:px,style:bx,test:ix},G7={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 q7({data:a}){const[i,l]=L.useState(a.git.status?.files[0]?.path??""),[o,c]=L.useState(""),[f,d]=L.useState(null),[p,g]=L.useState(0),m=a.git.status?.files??[],v=L.useMemo(()=>x7(o),[o]);L.useEffect(()=>{const B=a.git.status?.files[0]?.path??"";l(O=>O&&a.git.status?.files.some(U=>U.path===O)?O:B)},[a.git.status?.files]),L.useEffect(()=>{if(!i){c("");return}let B=!0;return d(null),$x(i).then(O=>{B&&(c(O),g(0))}).catch(O=>{B&&d(O instanceof Error?O.message:String(O))}),()=>{B=!1}},[i]);function x(B){g(0),l(B)}function S(){if(v.hunks&&p<v.hunks-1){g(U=>U+1);return}const B=m.findIndex(U=>U.path===i),O=m[B+1];O&&x(O.path)}function j(){if(p>0){g(U=>U-1);return}const B=m.findIndex(U=>U.path===i),O=m[B-1];O&&x(O.path)}const E=m.findIndex(B=>B.path===i),N=!!(v.hunks&&p<v.hunks-1||m[E+1]),_=!!(p>0||m[E-1]);return 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(O7,{branch:a.git.status?.branch||void 0,error:a.git.error,files:a.git.status?.files??[],selectedFile:i,onSelectFile:x})}),y.jsxs("section",{className:"flex min-h-0 min-w-0 flex-col border-l border-border bg-white",children:[y.jsxs("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.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[y.jsx("span",{children:"Long rows scroll horizontally inside the editor pane."}),v.additions||v.deletions?y.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[y.jsxs("span",{className:"text-emerald-700",children:["+",v.additions]}),y.jsxs("span",{className:"text-red-700",children:["-",v.deletions]})]}):null]})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[y.jsxs(Ot,{disabled:!i||!_,onClick:j,size:"sm",type:"button",variant:"outline",children:[y.jsx(Lb,{}),"Previous"]}),y.jsxs(Ot,{disabled:!i||!N,onClick:S,size:"sm",type:"button",variant:"outline",children:[y.jsx(_b,{}),"Next"]})]})]}),y.jsx("div",{className:"min-h-0 min-w-0 flex-1",children:f?y.jsx("div",{className:"p-4",children:y.jsx(an,{variant:"destructive",children:f})}):i?y.jsx(b7,{activeHunkIndex:p,diff:o||"No unstaged diff for this file."}):y.jsx("div",{className:"p-4",children:y.jsx(an,{variant:"muted",className:"border-dashed p-12 text-center",children:"Select a changed file to inspect its diff."})})})]})]})}function Y7({initialPath:a,onSelect:i,selectedPath:l}){const[o,c]=L.useState(a),[f,d]=L.useState(null),[p,g]=L.useState(null),[m,v]=L.useState(!1);return L.useEffect(()=>{c(a)},[a]),L.useEffect(()=>{let x=!0;return v(!0),g(null),Wx(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(Ot,{"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($s,{className:"rotate-90"})}),y.jsx("div",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f?.path??o}),m?y.jsx(Bp,{className:"size-4 animate-spin text-muted-foreground"}):null]}),y.jsxs("div",{className:"max-h-56 overflow-auto p-1",children:[p?y.jsx(an,{variant:"destructive",className:"m-1",children:p}):null,!p&&f?.entries.length===0?y.jsx(an,{variant:"muted",className:"m-1 text-center",children:"No folders here."}):null,f?.entries.map(x=>y.jsxs(Ot,{className:pt("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(vf,{className:"text-accent"}),y.jsx("span",{className:"truncate",children:x.name})]},x.path))]})]})}function Xc(a){return a.split(/[\\/]/).filter(Boolean).pop()??"project"}function X7({data:a,onRefresh:i}){const[l,o]=L.useState(!1),[c,f]=L.useState(a.git.cwd),[d,p]=L.useState(null),[g,m]=L.useState(!1),[v,x]=L.useState(a.git.cwd),S=L.useRef(null),j=a.git.selectedRepository,E=j?.name??Xc(a.git.cwd);L.useEffect(()=>{f(a.git.cwd),x(a.git.cwd)},[a.git.cwd]),L.useEffect(()=>{if(!l)return;function O(U){S.current&&U.target instanceof Node&&!S.current.contains(U.target)&&o(!1)}return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[l]);const N=L.useCallback(O=>{f(O),p(null)},[]);async function _(O){await en("/api/git/select",{name:O}),o(!1),await i()}async function B(O){O.preventDefault();const U=c.trim();if(!Z7(U)){p("Please add an absolute path. Paths beginning with ~ are not expanded here.");return}try{await en("/api/git/repositories",{name:Xc(U),path:U}),o(!1),p(null),await i()}catch(X){p(X instanceof Error?X.message:String(X))}}return y.jsxs("div",{className:"relative z-30",ref:S,children:[y.jsxs(Ot,{className:"max-w-[220px] justify-start gap-2 rounded-md border-border bg-card",onClick:()=>o(O=>!O),size:"sm",type:"button",variant:"outline",children:[y.jsx(vf,{className:"text-muted-foreground"}),y.jsx("span",{className:"truncate",children:E}),y.jsx($s,{className:pt("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(Jb,{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(ke,{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(O=>{const U=O.name===j?.name;return y.jsxs("button",{className:pt("grid w-full grid-cols-[1fr_auto] items-center gap-4 px-4 py-3 text-left transition-colors hover:bg-muted",U&&"bg-muted/70"),onClick:()=>{_(O.name)},type:"button",children:[y.jsxs("span",{className:"min-w-0",children:[y.jsx("span",{className:"block truncate font-medium",children:O.name}),y.jsx("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:O.path})]}),U?y.jsx(Gb,{className:"size-4"}):null]},O.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:B,children:[y.jsx(hn,{"aria-label":"Paste absolute path",onChange:O=>{f(O.target.value),p(null)},placeholder:"/Users/you/projects/app",value:c}),y.jsxs(Ot,{type:"submit",children:[y.jsx(Up,{}),"Add ",Xc(c)]})]}),y.jsx(an,{className:pt("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(Ot,{className:"mt-3 w-full",onClick:()=>{x(c||a.git.cwd),m(!0)},type:"button",variant:"outline",children:[y.jsx(lx,{}),"Browse folders"]})]})]}):null,g?y.jsx(Q7,{initialPath:c||a.git.cwd,selectedPath:v,onCancel:()=>m(!1),onSelect:x,onUse:()=>{N(v),m(!1)}}):null]})}function Z7(a){return a.startsWith("/")}function Q7({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(vf,{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(Ot,{"aria-label":"Close folder picker",onClick:i,size:"icon",variant:"ghost",children:y.jsx(bf,{})})]}),y.jsx(Y7,{initialPath:a,onSelect:l,selectedPath:c}),y.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[y.jsx(Ot,{onClick:i,type:"button",variant:"outline",children:"Cancel"}),y.jsx(Ot,{onClick:o,type:"button",children:"Use this folder"})]})]})})}function K7({branches:a,currentBranch:i,disabled:l,onRefresh:o}){const[c,f]=L.useState(!1),[d,p]=L.useState(""),[g,m]=L.useState(null),[v,x]=L.useState(null),[S,j]=L.useState(null),E=a.filter(X=>!X.remote),N=a.filter(X=>X.remote);async function _(X,$){m(X),j(null),x(null);try{await $(),await o()}catch(ut){j(ut instanceof Error?ut.message:String(ut))}finally{m(null)}}async function B(X){await _(`switch:${X}`,async()=>{await en("/api/git/branches/switch",{name:X}),f(!1)})}async function O(){await _("fetch",async()=>{await en("/api/git/fetch",{}),x("Fetched latest branch refs.")})}async function U(X){X.preventDefault();const $=d.trim();if(!$){j("Branch name is required.");return}await _("create",async()=>{await en("/api/git/branches",{name:$}),p(""),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(Lo,{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(Ot,{"aria-label":"Fetch branches",disabled:l||g!==null,onClick:()=>{O()},size:"icon",title:"Fetch branches",type:"button",variant:"ghost",children:y.jsx(Hp,{className:pt(g==="fetch"&&"animate-spin")})}),y.jsx(Ot,{"aria-label":"Close branch dialog",onClick:()=>f(!1),size:"icon",type:"button",variant:"ghost",children:y.jsx(bf,{})})]})]}),y.jsx("div",{className:"max-h-72 overflow-auto",children:a.length?y.jsxs(y.Fragment,{children:[y.jsx(Op,{branches:E,busy:g!==null,disabled:l,label:"Local",onSwitch:B}),y.jsx(Op,{branches:N,busy:g!==null,disabled:l,label:"Remote",onSwitch:B})]}):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:U,children:[y.jsx(hn,{"aria-label":"New branch name",disabled:l||g!==null,onChange:X=>{p(X.target.value),j(null),x(null)},placeholder:"feature/new-work",value:d}),y.jsxs(Ot,{disabled:l||g!==null,type:"submit",children:[y.jsx(cx,{}),"Create"]})]}),S||v?y.jsx(an,{className:"mt-3 px-3 py-2 text-xs",variant:S?"destructive":"muted",children:S??v}):null]})]}):null,y.jsxs(Ot,{className:"h-8 max-w-[260px] gap-2 rounded-md shadow-lg",disabled:l,onClick:()=>f(X=>!X),size:"sm",title:"Switch Git branch",type:"button",variant:"default",children:[y.jsx(Lo,{className:"size-4"}),y.jsx("span",{className:"truncate font-mono text-xs",children:i||"No branch"}),y.jsx($s,{className:pt("size-4 transition-transform",c&&"rotate-180")})]})]})}function Op({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:pt("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(ke,{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 J7(){const[a,i]=L.useState(()=>window.location.pathname.startsWith("/git")?"git":"services"),[l,o]=L.useState(null),[c,f]=L.useState(null),[d,p]=L.useState(!0),{error:g,success:m}=Hi(),[v,x]=L.useState(()=>window.localStorage.getItem("nomoreide:sidebar")==="collapsed"),S=L.useCallback(async(E={})=>{E.silent||p(!0),f(null);try{o(await Px()),E.notify&&m("Dashboard refreshed.")}catch(N){const _=N instanceof Error?N.message:String(N);f(_),g(_)}finally{p(!1)}},[g,m]);L.useEffect(()=>{S()},[S]),L.useEffect(()=>{function E(){document.visibilityState==="visible"&&S({silent:!0})}const N=window.setInterval(E,5e3);return window.addEventListener("focus",E),document.addEventListener("visibilitychange",E),()=>{window.clearInterval(N),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:pt("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:pt("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(Xx,{className:"size-5"})}),y.jsxs("div",{className:pt("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(Ot,{"aria-label":v?"Expand navigation":"Collapse navigation",className:pt("ml-auto",v&&"hidden"),size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:y.jsx(Sx,{})})]}),y.jsx("div",{className:pt("mt-4",!v&&"hidden"),children:y.jsx(Ot,{"aria-label":"Expand navigation",className:"w-full",size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:y.jsx(wx,{})})}),y.jsxs("nav",{className:"mt-5 grid gap-1",children:[y.jsx(_p,{active:a==="services",badge:j,collapsed:v,icon:y.jsx(Hx,{}),label:"Services",onClick:()=>i("services")}),y.jsx(_p,{active:a==="git",collapsed:v,icon:y.jsx(Lo,{}),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:pt("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(Ex,{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(ke,{variant:"danger",children:c}):null,l&&a==="git"?y.jsx(X7,{data:l,onRefresh:S}):null,y.jsxs(Ot,{variant:"outline",size:"sm",onClick:()=>{S({notify:!0})},children:[y.jsx(Hp,{className:pt(d&&"animate-spin")}),"Refresh"]})]})]}),d&&!l?y.jsx(an,{variant:"muted",children:"Loading NoMoreIDE state..."}):null,y.jsxs("div",{className:"min-h-0 flex-1 overflow-hidden",children:[l&&a==="services"?y.jsx(l7,{data:l,onRefresh:S}):null,l&&a==="git"?y.jsx(q7,{data:l}):null]})]})]}),l&&a==="git"?y.jsx(K7,{branches:l.git.branches,currentBranch:l.git.status?.branch||void 0,disabled:!l.git.status,onRefresh:S}):null]})}function _p({active:a,badge:i,collapsed:l,icon:o,label:c,onClick:f}){return y.jsxs(Ot,{"aria-label":c,title:l?c:void 0,className:pt("w-full",l?"relative justify-center px-0":"justify-start"),variant:a?"default":"ghost",onClick:f,type:"button",children:[y.jsx("span",{className:pt(l&&"[&_svg]:size-4"),children:o}),y.jsx("span",{className:pt("min-w-0 flex-1 text-left",l&&"hidden"),children:c}),i!==void 0?y.jsx(ke,{appearance:i>0?"solid":"outline",className:pt("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]})}kp.createRoot(document.getElementById("root")).render(y.jsx(L.StrictMode,{children:y.jsx(J7,{})}));