nomoreide 0.1.13 → 0.1.14

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,12 @@
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 d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function l(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=l(c);fetch(c.href,d)}})();var bc={exports:{}},ks={};var P0;function Ab(){if(P0)return ks;P0=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(o,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:a,type:o,key:f,ref:c!==void 0?c:null,props:d}}return ks.Fragment=i,ks.jsx=l,ks.jsxs=l,ks}var $0;function Eb(){return $0||($0=1,bc.exports=Ab()),bc.exports}var g=Eb(),xc={exports:{}},ht={};var W0;function Mb(){if(W0)return ht;W0=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"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function M(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(){}},z=Object.assign,O={};function L(w,H,$){this.props=w,this.context=H,this.refs=O,this.updater=$||E}L.prototype.isReactComponent={},L.prototype.setState=function(w,H){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,H,"setState")},L.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function Z(){}Z.prototype=L.prototype;function Y(w,H,$){this.props=w,this.context=H,this.refs=O,this.updater=$||E}var X=Y.prototype=new Z;X.constructor=Y,z(X,L.prototype),X.isPureReactComponent=!0;var q=Array.isArray;function P(){}var F={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function dt(w,H,$){var tt=$.ref;return{$$typeof:a,type:w,key:H,ref:tt!==void 0?tt:null,props:$}}function lt(w,H){return dt(w.type,H,w.props)}function K(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function ut(w){var H={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function($){return H[$]})}var Ct=/\/+/g;function Rt(w,H){return typeof w=="object"&&w!==null&&w.key!=null?ut(""+w.key):H.toString(36)}function yt(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(P,P):(w.status="pending",w.then(function(H){w.status==="pending"&&(w.status="fulfilled",w.value=H)},function(H){w.status==="pending"&&(w.status="rejected",w.reason=H)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function D(w,H,$,tt,st){var rt=typeof w;(rt==="undefined"||rt==="boolean")&&(w=null);var Et=!1;if(w===null)Et=!0;else switch(rt){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,D(Et(w._payload),H,$,tt,st)}}if(Et)return st=st(w),Et=tt===""?"."+Rt(w,0):tt,q(st)?($="",Et!=null&&($=Et.replace(Ct,"$&/")+"/"),D(st,H,$,"",function(Un){return Un})):st!=null&&(K(st)&&(st=lt(st,$+(st.key==null||w&&w.key===st.key?"":(""+st.key).replace(Ct,"$&/")+"/")+Et)),H.push(st)),1;Et=0;var ie=tt===""?".":tt+":";if(q(w))for(var vt=0;vt<w.length;vt++)tt=w[vt],rt=ie+Rt(tt,vt),Et+=D(tt,H,$,rt,st);else if(vt=M(w),typeof vt=="function")for(w=vt.call(w),vt=0;!(tt=w.next()).done;)tt=tt.value,rt=ie+Rt(tt,vt++),Et+=D(tt,H,$,rt,st);else if(rt==="object"){if(typeof w.then=="function")return D(yt(w),H,$,tt,st);throw H=String(w),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Et}function J(w,H,$){if(w==null)return w;var tt=[],st=0;return D(w,tt,"","",function(rt){return H.call($,rt,st++)}),tt}function W(w){if(w._status===-1){var H=w._result;H=H(),H.then(function($){(w._status===0||w._status===-1)&&(w._status=1,w._result=$)},function($){(w._status===0||w._status===-1)&&(w._status=2,w._result=$)}),w._status===-1&&(w._status=0,w._result=H)}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 H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Q={map:J,forEach:function(w,H,$){J(w,function(){H.apply(this,arguments)},$)},count:function(w){var H=0;return J(w,function(){H++}),H},toArray:function(w){return J(w,function(H){return H})||[]},only:function(w){if(!K(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ht.Activity=x,ht.Children=Q,ht.Component=L,ht.Fragment=l,ht.Profiler=c,ht.PureComponent=Y,ht.StrictMode=o,ht.Suspense=y,ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ht.__COMPILER_RUNTIME={__proto__:null,c:function(w){return F.H.useMemoCache(w)}},ht.cache=function(w){return function(){return w.apply(null,arguments)}},ht.cacheSignal=function(){return null},ht.cloneElement=function(w,H,$){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var tt=z({},w.props),st=w.key;if(H!=null)for(rt in H.key!==void 0&&(st=""+H.key),H)!B.call(H,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&H.ref===void 0||(tt[rt]=H[rt]);var rt=arguments.length-2;if(rt===1)tt.children=$;else if(1<rt){for(var Et=Array(rt),ie=0;ie<rt;ie++)Et[ie]=arguments[ie+2];tt.children=Et}return dt(w.type,st,tt)},ht.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},ht.createElement=function(w,H,$){var tt,st={},rt=null;if(H!=null)for(tt in H.key!==void 0&&(rt=""+H.key),H)B.call(H,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(st[tt]=H[tt]);var Et=arguments.length-2;if(Et===1)st.children=$;else if(1<Et){for(var ie=Array(Et),vt=0;vt<Et;vt++)ie[vt]=arguments[vt+2];st.children=ie}if(w&&w.defaultProps)for(tt in Et=w.defaultProps,Et)st[tt]===void 0&&(st[tt]=Et[tt]);return dt(w,rt,st)},ht.createRef=function(){return{current:null}},ht.forwardRef=function(w){return{$$typeof:m,render:w}},ht.isValidElement=K,ht.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:W}},ht.memo=function(w,H){return{$$typeof:p,type:w,compare:H===void 0?null:H}},ht.startTransition=function(w){var H=F.T,$={};F.T=$;try{var tt=w(),st=F.S;st!==null&&st($,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(P,ct)}catch(rt){ct(rt)}finally{H!==null&&$.types!==null&&(H.types=$.types),F.T=H}},ht.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ht.use=function(w){return F.H.use(w)},ht.useActionState=function(w,H,$){return F.H.useActionState(w,H,$)},ht.useCallback=function(w,H){return F.H.useCallback(w,H)},ht.useContext=function(w){return F.H.useContext(w)},ht.useDebugValue=function(){},ht.useDeferredValue=function(w,H){return F.H.useDeferredValue(w,H)},ht.useEffect=function(w,H){return F.H.useEffect(w,H)},ht.useEffectEvent=function(w){return F.H.useEffectEvent(w)},ht.useId=function(){return F.H.useId()},ht.useImperativeHandle=function(w,H,$){return F.H.useImperativeHandle(w,H,$)},ht.useInsertionEffect=function(w,H){return F.H.useInsertionEffect(w,H)},ht.useLayoutEffect=function(w,H){return F.H.useLayoutEffect(w,H)},ht.useMemo=function(w,H){return F.H.useMemo(w,H)},ht.useOptimistic=function(w,H){return F.H.useOptimistic(w,H)},ht.useReducer=function(w,H,$){return F.H.useReducer(w,H,$)},ht.useRef=function(w){return F.H.useRef(w)},ht.useState=function(w){return F.H.useState(w)},ht.useSyncExternalStore=function(w,H,$){return F.H.useSyncExternalStore(w,H,$)},ht.useTransition=function(){return F.H.useTransition()},ht.version="19.2.6",ht}var I0;function vf(){return I0||(I0=1,xc.exports=Mb()),xc.exports}var V=vf(),Sc={exports:{}},Vs={},Tc={exports:{}},wc={};var t1;function jb(){return t1||(t1=1,(function(a){function i(D,J){var W=D.length;D.push(J);t:for(;0<W;){var ct=W-1>>>1,Q=D[ct];if(0<c(Q,J))D[ct]=J,D[W]=Q,W=ct;else break t}}function l(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var J=D[0],W=D.pop();if(W!==J){D[0]=W;t:for(var ct=0,Q=D.length,w=Q>>>1;ct<w;){var H=2*(ct+1)-1,$=D[H],tt=H+1,st=D[tt];if(0>c($,W))tt<Q&&0>c(st,$)?(D[ct]=st,D[tt]=W,ct=tt):(D[ct]=$,D[H]=W,ct=H);else if(tt<Q&&0>c(st,W))D[ct]=st,D[tt]=W,ct=tt;else break t}}return J}function c(D,J){var W=D.sortIndex-J.sortIndex;return W!==0?W:D.id-J.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();a.unstable_now=function(){return f.now()-m}}var y=[],p=[],v=1,x=null,S=3,M=!1,E=!1,z=!1,O=!1,L=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(D){for(var J=l(p);J!==null;){if(J.callback===null)o(p);else if(J.startTime<=D)o(p),J.sortIndex=J.expirationTime,i(y,J);else break;J=l(p)}}function q(D){if(z=!1,X(D),!E)if(l(y)!==null)E=!0,P||(P=!0,ut());else{var J=l(p);J!==null&&yt(q,J.startTime-D)}}var P=!1,F=-1,B=5,dt=-1;function lt(){return O?!0:!(a.unstable_now()-dt<B)}function K(){if(O=!1,P){var D=a.unstable_now();dt=D;var J=!0;try{t:{E=!1,z&&(z=!1,Z(F),F=-1),M=!0;var W=S;try{e:{for(X(D),x=l(y);x!==null&&!(x.expirationTime>D&&lt());){var ct=x.callback;if(typeof ct=="function"){x.callback=null,S=x.priorityLevel;var Q=ct(x.expirationTime<=D);if(D=a.unstable_now(),typeof Q=="function"){x.callback=Q,X(D),J=!0;break e}x===l(y)&&o(y),X(D)}else o(y);x=l(y)}if(x!==null)J=!0;else{var w=l(p);w!==null&&yt(q,w.startTime-D),J=!1}}break t}finally{x=null,S=W,M=!1}J=void 0}}finally{J?ut():P=!1}}}var ut;if(typeof Y=="function")ut=function(){Y(K)};else if(typeof MessageChannel<"u"){var Ct=new MessageChannel,Rt=Ct.port2;Ct.port1.onmessage=K,ut=function(){Rt.postMessage(null)}}else ut=function(){L(K,0)};function yt(D,J){F=L(function(){D(a.unstable_now())},J)}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(D){D.callback=null},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(D){switch(S){case 1:case 2:case 3:var J=3;break;default:J=S}var W=S;S=J;try{return D()}finally{S=W}},a.unstable_requestPaint=function(){O=!0},a.unstable_runWithPriority=function(D,J){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=S;S=D;try{return J()}finally{S=W}},a.unstable_scheduleCallback=function(D,J,W){var ct=a.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ct+W:ct):W=ct,D){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=W+Q,D={id:v++,callback:J,priorityLevel:D,startTime:W,expirationTime:Q,sortIndex:-1},W>ct?(D.sortIndex=W,i(p,D),l(y)===null&&D===l(p)&&(z?(Z(F),F=-1):z=!0,yt(q,W-ct))):(D.sortIndex=Q,i(y,D),E||M||(E=!0,P||(P=!0,ut()))),D},a.unstable_shouldYield=lt,a.unstable_wrapCallback=function(D){var J=S;return function(){var W=S;S=J;try{return D.apply(this,arguments)}finally{S=W}}}})(wc)),wc}var e1;function Cb(){return e1||(e1=1,Tc.exports=jb()),Tc.exports}var Ac={exports:{}},me={};var n1;function zb(){if(n1)return me;n1=1;var a=vf();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,p,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:y,containerInfo:p,implementation:v}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,me.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(y,p,null,v)},me.flushSync=function(y){var p=f.T,v=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=p,o.p=v,o.d.f()}},me.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(y,p))},me.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},me.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?o.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:M}):v==="script"&&o.d.X(y,{crossOrigin:x,integrity:S,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},me.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);o.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(y)},me.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin);o.d.L(y,v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},me.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=m(p.as,p.crossOrigin);o.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(y)},me.requestFormReset=function(y){o.d.r(y)},me.unstable_batchedUpdates=function(y,p){return y(p)},me.useFormState=function(y,p,v){return f.H.useFormState(y,p,v)},me.useFormStatus=function(){return f.H.useHostTransitionStatus()},me.version="19.2.6",me}var a1;function Hp(){if(a1)return Ac.exports;a1=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(),Ac.exports=zb(),Ac.exports}var i1;function Nb(){if(i1)return Vs;i1=1;var a=Cb(),i=vf(),l=Hp();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 d(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 f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(o(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var 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 y(r),t;if(u===s)return y(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"),M=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),dt=Symbol.for("react.activity"),lt=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function ut(t){return t===null||typeof t!="object"?null:(t=K&&t[K]||t["@@iterator"],typeof t=="function"?t:null)}var Ct=Symbol.for("react.client.reference");function Rt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ct?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case L:return"Profiler";case O:return"StrictMode";case q:return"Suspense";case P:return"SuspenseList";case dt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case Y:return t.displayName||"Context";case Z: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 F:return e=t.displayName||null,e!==null?e:Rt(t.type)||"Memo";case B:e=t._payload,t=t._init;try{return Rt(t(e))}catch{}}return null}var yt=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ct=[],Q=-1;function w(t){return{current:t}}function H(t){0>Q||(t.current=ct[Q],ct[Q]=null,Q--)}function $(t,e){Q++,ct[Q]=t.current,t.current=e}var tt=w(null),st=w(null),rt=w(null),Et=w(null);function ie(t,e){switch($(rt,e),$(st,t),$(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?b0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=b0(e),t=x0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(tt),$(tt,t)}function vt(){H(tt),H(st),H(rt)}function Un(t){t.memoizedState!==null&&$(Et,t);var e=tt.current,n=x0(e,t.type);e!==n&&($(st,t),$(tt,n))}function bn(t){st.current===t&&(H(tt),H(st)),Et.current===t&&(H(Et),zs._currentValue=W)}var Hn,Qa;function Le(t){if(Hn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Hn=e&&e[1]||"",Qa=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Hn+t+Qa}var nr=!1;function ar(t,e){if(!t||nr)return"";nr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(k){var R=k}Reflect.construct(t,[],G)}else{try{G.call()}catch(k){R=k}t.call(G.prototype)}}else{try{throw Error()}catch(k){R=k}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(k){if(k&&R&&typeof k.stack=="string")return[k.stack,R.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var T=h.split(`
4
+ `),N=b.split(`
5
+ `);for(r=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;if(s===T.length||r===N.length)for(s=T.length-1,r=N.length-1;1<=s&&0<=r&&T[s]!==N[r];)r--;for(;1<=s&&0<=r;s--,r--)if(T[s]!==N[r]){if(s!==1||r!==1)do if(s--,r--,0>r||T[s]!==N[r]){var _=`
6
+ `+T[s].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=s&&0<=r);break}}}finally{nr=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Le(n):""}function e2(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 ar(t.type,!1);case 11:return ar(t.type.render,!1);case 1:return ar(t.type,!0);case 31:return Le("Activity");default:return""}}function Pf(t){try{var e="",n=null;do e+=e2(t,n),n=t,t=t.return;while(t);return e}catch(s){return`
7
+ Error generating stack: `+s.message+`
8
+ `+s.stack}}var ir=Object.prototype.hasOwnProperty,sr=a.unstable_scheduleCallback,lr=a.unstable_cancelCallback,n2=a.unstable_shouldYield,a2=a.unstable_requestPaint,Me=a.unstable_now,i2=a.unstable_getCurrentPriorityLevel,$f=a.unstable_ImmediatePriority,Wf=a.unstable_UserBlockingPriority,il=a.unstable_NormalPriority,s2=a.unstable_LowPriority,If=a.unstable_IdlePriority,l2=a.log,o2=a.unstable_setDisableYieldValue,Gi=null,je=null;function Gn(t){if(typeof l2=="function"&&o2(t),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(Gi,t)}catch{}}var Ce=Math.clz32?Math.clz32:c2,r2=Math.log,u2=Math.LN2;function c2(t){return t>>>=0,t===0?32:31-(r2(t)/u2|0)|0}var sl=256,ll=262144,ol=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 rl(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 f2(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 td(){var t=ol;return ol<<=1,(ol&62914560)===0&&(ol=4194304),t}function or(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 d2(t,e,n,s,r,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=h&~n;0<n;){var _=31-Ce(n),G=1<<_;b[_]=0,T[_]=-1;var R=N[_];if(R!==null)for(N[_]=null,_=0;_<R.length;_++){var k=R[_];k!==null&&(k.lane&=-536870913)}n&=~G}s!==0&&ed(t,s,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function ed(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-Ce(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|n&261930}function nd(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var s=31-Ce(n),r=1<<s;r&e|t[s]&e&&(t[s]|=e),n&=~r}}function ad(t,e){var n=e&-e;return n=(n&42)!==0?1:rr(n),(n&(t.suspendedLanes|e))!==0?0:n}function rr(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 ur(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function id(){var t=J.p;return t!==0?t:(t=window.event,t===void 0?32:Y0(t.type))}function sd(t,e){var n=J.p;try{return J.p=t,e()}finally{J.p=n}}var qn=Math.random().toString(36).slice(2),oe="__reactFiber$"+qn,ve="__reactProps$"+qn,Ka="__reactContainer$"+qn,cr="__reactEvents$"+qn,h2="__reactListeners$"+qn,m2="__reactHandles$"+qn,ld="__reactResources$"+qn,Xi="__reactMarker$"+qn;function fr(t){delete t[oe],delete t[ve],delete t[cr],delete t[h2],delete t[m2]}function Ja(t){var e=t[oe];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ka]||n[oe]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=j0(t);t!==null;){if(n=t[oe])return n;t=j0(t)}return e}t=n,n=t.parentNode}return null}function Fa(t){if(t=t[oe]||t[Ka]){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 Pa(t){var e=t[ld];return e||(e=t[ld]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[Xi]=!0}var od=new Set,rd={};function xa(t,e){$a(t,e),$a(t+"Capture",e)}function $a(t,e){for(rd[t]=e,t=0;t<e.length;t++)od.add(e[t])}var p2=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]*$"),ud={},cd={};function g2(t){return ir.call(cd,t)?!0:ir.call(ud,t)?!1:p2.test(t)?cd[t]=!0:(ud[t]=!0,!1)}function ul(t,e,n){if(g2(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 cl(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 xn(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 Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function fd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function y2(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 dr(t){if(!t._valueTracker){var e=fd(t)?"checked":"value";t._valueTracker=y2(t,e,""+t[e])}}function dd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),s="";return t&&(s=fd(t)?t.checked?"true":"false":t.value),t=s,t!==n?(e.setValue(t),!0):!1}function fl(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 v2=/[\n"\\]/g;function He(t){return t.replace(v2,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function hr(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=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?mr(t,h,Ue(e)):n!=null?mr(t,h,Ue(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=""+Ue(b):t.removeAttribute("name")}function hd(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)){dr(t);return}n=n!=null?""+Ue(n):"",e=e!=null?""+Ue(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),dr(t)}function mr(t,e,n){e==="number"&&fl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Wa(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=""+Ue(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 md(t,e,n){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ue(n):""}function pd(t,e,n,s){if(e==null){if(s!=null){if(n!=null)throw Error(o(92));if(yt(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),e=n}n=Ue(e),t.defaultValue=n,s=t.textContent,s===n&&s!==""&&s!==null&&(t.value=s),dr(t)}function Ia(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var b2=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 gd(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||b2.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function yd(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&&gd(t,r,s)}else for(var u in e)e.hasOwnProperty(u)&&gd(t,u,e[u])}function pr(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 x2=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"]]),S2=/^[\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 dl(t){return S2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Sn(){}var gr=null;function yr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ti=null,ei=null;function vd(t){var e=Fa(t);if(e&&(t=e.stateNode)){var n=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(hr(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="'+He(""+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));hr(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&&dd(s)}break t;case"textarea":md(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Wa(t,!!n.multiple,e,!1)}}}var vr=!1;function bd(t,e,n){if(vr)return t(e,n);vr=!0;try{var s=t(e);return s}finally{if(vr=!1,(ti!==null||ei!==null)&&(Il(),ti&&(e=ti,t=ei,ei=ti=null,vd(e),t)))for(e=0;e<t.length;e++)vd(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 Tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(Tn)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){br=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{br=!1}var Yn=null,xr=null,hl=null;function xd(){if(hl)return hl;var t,e=xr,n=e.length,s,r="value"in Yn?Yn.value:Yn.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 hl=r.slice(t,1<s?1-s:void 0)}function ml(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 pl(){return!0}function Sd(){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)?pl:Sd,this.isPropagationStopped=Sd,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=pl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pl)},persist:function(){},isPersistent:pl}),e}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gl=be(Sa),Ji=x({},Sa,{view:0,detail:0}),T2=be(Ji),Sr,Tr,Fi,yl=x({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ar,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"?(Sr=t.screenX-Fi.screenX,Tr=t.screenY-Fi.screenY):Tr=Sr=0,Fi=t),Sr)},movementY:function(t){return"movementY"in t?t.movementY:Tr}}),Td=be(yl),w2=x({},yl,{dataTransfer:0}),A2=be(w2),E2=x({},Ji,{relatedTarget:0}),wr=be(E2),M2=x({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),j2=be(M2),C2=x({},Sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),z2=be(C2),N2=x({},Sa,{data:0}),wd=be(N2),D2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R2={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"},k2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V2(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=k2[t])?!!e[t]:!1}function Ar(){return V2}var O2=x({},Ji,{key:function(t){if(t.key){var e=D2[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ml(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?R2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ar,charCode:function(t){return t.type==="keypress"?ml(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ml(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_2=be(O2),B2=x({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ad=be(B2),L2=x({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ar}),U2=be(L2),H2=x({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),G2=be(H2),q2=x({},yl,{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}),Y2=be(q2),X2=x({},Sa,{newState:0,oldState:0}),Z2=be(X2),Q2=[9,13,27,32],Er=Tn&&"CompositionEvent"in window,Pi=null;Tn&&"documentMode"in document&&(Pi=document.documentMode);var K2=Tn&&"TextEvent"in window&&!Pi,Ed=Tn&&(!Er||Pi&&8<Pi&&11>=Pi),Md=" ",jd=!1;function Cd(t,e){switch(t){case"keyup":return Q2.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ni=!1;function J2(t,e){switch(t){case"compositionend":return zd(e);case"keypress":return e.which!==32?null:(jd=!0,Md);case"textInput":return t=e.data,t===Md&&jd?null:t;default:return null}}function F2(t,e){if(ni)return t==="compositionend"||!Er&&Cd(t,e)?(t=xd(),hl=xr=Yn=null,ni=!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 Ed&&e.locale!=="ko"?null:e.data;default:return null}}var P2={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 Nd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!P2[t.type]:e==="textarea"}function Dd(t,e,n,s){ti?ei?ei.push(s):ei=[s]:ti=s,e=lo(e,"onChange"),0<e.length&&(n=new gl("onChange","change",null,n,s),t.push({event:n,listeners:e}))}var $i=null,Wi=null;function $2(t){h0(t,0)}function vl(t){var e=Zi(t);if(dd(e))return t}function Rd(t,e){if(t==="change")return e}var kd=!1;if(Tn){var Mr;if(Tn){var jr="oninput"in document;if(!jr){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),jr=typeof Vd.oninput=="function"}Mr=jr}else Mr=!1;kd=Mr&&(!document.documentMode||9<document.documentMode)}function Od(){$i&&($i.detachEvent("onpropertychange",_d),Wi=$i=null)}function _d(t){if(t.propertyName==="value"&&vl(Wi)){var e=[];Dd(e,Wi,t,yr(t)),bd($2,e)}}function W2(t,e,n){t==="focusin"?(Od(),$i=e,Wi=n,$i.attachEvent("onpropertychange",_d)):t==="focusout"&&Od()}function I2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vl(Wi)}function tv(t,e){if(t==="click")return vl(e)}function ev(t,e){if(t==="input"||t==="change")return vl(e)}function nv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:nv;function Ii(t,e){if(ze(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(!ir.call(e,r)||!ze(t[r],e[r]))return!1}return!0}function Bd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ld(t,e){var n=Bd(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=Bd(n)}}function Ud(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ud(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=fl(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=fl(t.document)}return e}function Cr(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 av=Tn&&"documentMode"in document&&11>=document.documentMode,ai=null,zr=null,ts=null,Nr=!1;function Gd(t,e,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||ai==null||ai!==fl(s)||(s=ai,"selectionStart"in s&&Cr(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=lo(zr,"onSelect"),0<s.length&&(e=new gl("onSelect","select",null,e,n),t.push({event:e,listeners:s}),e.target=ai)))}function Ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ii={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")},Dr={},qd={};Tn&&(qd=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function wa(t){if(Dr[t])return Dr[t];if(!ii[t])return t;var e=ii[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in qd)return Dr[t]=e[n];return t}var Yd=wa("animationend"),Xd=wa("animationiteration"),Zd=wa("animationstart"),iv=wa("transitionrun"),sv=wa("transitionstart"),lv=wa("transitioncancel"),Qd=wa("transitionend"),Kd=new Map,Rr="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(" ");Rr.push("scrollEnd");function tn(t,e){Kd.set(t,e),xa(e,[t])}var bl=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)},Ge=[],si=0,kr=0;function xl(){for(var t=si,e=kr=si=0;e<t;){var n=Ge[e];Ge[e++]=null;var s=Ge[e];Ge[e++]=null;var r=Ge[e];Ge[e++]=null;var u=Ge[e];if(Ge[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&&Jd(n,r,u)}}function Sl(t,e,n,s){Ge[si++]=t,Ge[si++]=e,Ge[si++]=n,Ge[si++]=s,kr|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Vr(t,e,n,s){return Sl(t,e,n,s),Tl(t)}function Aa(t,e){return Sl(t,null,null,e),Tl(t)}function Jd(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-Ce(n),t=u.hiddenUpdates,s=t[r],s===null?t[r]=[e]:s.push(e),e.lane=n|536870912),u):null}function Tl(t){if(50<Ts)throw Ts=0,Yu=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var li={};function ov(t,e,n,s){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(t,e,n,s){return new ov(t,e,n,s)}function Or(t){return t=t.prototype,!(!t||!t.isReactComponent)}function wn(t,e){var n=t.alternate;return n===null?(n=Ne(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Fd(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 wl(t,e,n,s,r,u){var h=0;if(s=t,typeof t=="function")Or(t)&&(h=1);else if(typeof t=="string")h=db(t,n,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case dt:return t=Ne(31,n,e,r),t.elementType=dt,t.lanes=u,t;case z:return Ea(n.children,r,u,e);case O:h=8,r|=24;break;case L:return t=Ne(12,n,e,r|2),t.elementType=L,t.lanes=u,t;case q:return t=Ne(13,n,e,r),t.elementType=q,t.lanes=u,t;case P:return t=Ne(19,n,e,r),t.elementType=P,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y:h=10;break t;case Z:h=9;break t;case X:h=11;break t;case F:h=14;break t;case B:h=16,s=null;break t}h=29,n=Error(o(130,t===null?"null":typeof t,"")),s=null}return e=Ne(h,n,e,r),e.elementType=t,e.type=s,e.lanes=u,e}function Ea(t,e,n,s){return t=Ne(7,t,s,e),t.lanes=n,t}function _r(t,e,n){return t=Ne(6,t,null,e),t.lanes=n,t}function Pd(t){var e=Ne(18,null,null,0);return e.stateNode=t,e}function Br(t,e,n){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var $d=new WeakMap;function qe(t,e){if(typeof t=="object"&&t!==null){var n=$d.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Pf(e)},$d.set(t,e),e)}return{value:t,source:e,stack:Pf(e)}}var oi=[],ri=0,Al=null,es=0,Ye=[],Xe=0,Xn=null,un=1,cn="";function An(t,e){oi[ri++]=es,oi[ri++]=Al,Al=t,es=e}function Wd(t,e,n){Ye[Xe++]=un,Ye[Xe++]=cn,Ye[Xe++]=Xn,Xn=t;var s=un;t=cn;var r=32-Ce(s)-1;s&=~(1<<r),n+=1;var u=32-Ce(e)+r;if(30<u){var h=r-r%5;u=(s&(1<<h)-1).toString(32),s>>=h,r-=h,un=1<<32-Ce(e)+r|n<<r|s,cn=u+t}else un=1<<u|n<<r|s,cn=t}function Lr(t){t.return!==null&&(An(t,1),Wd(t,1,0))}function Ur(t){for(;t===Al;)Al=oi[--ri],oi[ri]=null,es=oi[--ri],oi[ri]=null;for(;t===Xn;)Xn=Ye[--Xe],Ye[Xe]=null,cn=Ye[--Xe],Ye[Xe]=null,un=Ye[--Xe],Ye[Xe]=null}function Id(t,e){Ye[Xe++]=un,Ye[Xe++]=cn,Ye[Xe++]=Xn,un=e.id,cn=e.overflow,Xn=t}var re=null,Ht=null,Mt=!1,Zn=null,Ze=!1,Hr=Error(o(519));function Qn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ns(qe(e,t)),Hr}function th(t){var e=t.stateNode,n=t.type,s=t.memoizedProps;switch(e[oe]=t,e[ve]=s,n){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(n=0;n<As.length;n++)Tt(As[n],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),hd(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),pd(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||y0(e.textContent,n)?(s.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),s.onScroll!=null&&Tt("scroll",e),s.onScrollEnd!=null&&Tt("scrollend",e),s.onClick!=null&&(e.onclick=Sn),e=!0):e=!1,e||Qn(t,!0)}function eh(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:re=re.return}}function ui(t){if(t!==re)return!1;if(!Mt)return eh(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")||ic(t.type,t.memoizedProps)),n=!n),n&&Ht&&Qn(t),eh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ht=M0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ht=M0(t)}else e===27?(e=Ht,la(t.type)?(t=uc,uc=null,Ht=t):Ht=e):Ht=re?Ke(t.stateNode.nextSibling):null;return!0}function Ma(){Ht=re=null,Mt=!1}function Gr(){var t=Zn;return t!==null&&(we===null?we=t:we.push.apply(we,t),Zn=null),t}function ns(t){Zn===null?Zn=[t]:Zn.push(t)}var qr=w(null),ja=null,En=null;function Kn(t,e,n){$(qr,e._currentValue),e._currentValue=n}function Mn(t){t._currentValue=qr.current,H(qr)}function Yr(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 Xr(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),Yr(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),Yr(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 ci(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;ze(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&&Xr(e,t,n,s),e.flags|=262144}function El(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ca(t){ja=t,En=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return nh(ja,t)}function Ml(t,e){return ja===null&&Ca(t),nh(t,e)}function nh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},En===null){if(t===null)throw Error(o(308));En=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else En=En.next=e;return n}var rv=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()})}},uv=a.unstable_scheduleCallback,cv=a.unstable_NormalPriority,Ft={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zr(){return{controller:new rv,data:new Map,refCount:0}}function as(t){t.refCount--,t.refCount===0&&uv(cv,function(){t.controller.abort()})}var is=null,Qr=0,fi=0,di=null;function fv(t,e){if(is===null){var n=is=[];Qr=0,fi=Fu(),di={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Qr++,e.then(ah,ah),e}function ah(){if(--Qr===0&&is!==null){di!==null&&(di.status="fulfilled");var t=is;is=null,fi=0,di=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function dv(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 ih=D.S;D.S=function(t,e){Gm=Me(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&fv(t,e),ih!==null&&ih(t,e)};var za=w(null);function Kr(){var t=za.current;return t!==null?t:Lt.pooledCache}function jl(t,e){e===null?$(za,za.current):$(za,e.pool)}function sh(){var t=Kr();return t===null?null:{parent:Ft._currentValue,pool:t}}var hi=Error(o(460)),Jr=Error(o(474)),Cl=Error(o(542)),zl={then:function(){}};function lh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function oh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Sn,Sn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,uh(t),t;default:if(typeof e.status=="string")e.then(Sn,Sn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=s}},function(s){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,uh(t),t}throw Da=e,hi}}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,hi):n}}var Da=null;function rh(){if(Da===null)throw Error(o(459));var t=Da;return Da=null,t}function uh(t){if(t===hi||t===Cl)throw Error(o(483))}var mi=null,ss=0;function Nl(t){var e=ss;return ss+=1,mi===null&&(mi=[]),oh(mi,t,e)}function ls(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Dl(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 ch(t){function e(j,A){if(t){var C=j.deletions;C===null?(j.deletions=[A],j.flags|=16):C.push(A)}}function n(j,A){if(!t)return null;for(;A!==null;)e(j,A),A=A.sibling;return null}function s(j){for(var A=new Map;j!==null;)j.key!==null?A.set(j.key,j):A.set(j.index,j),j=j.sibling;return A}function r(j,A){return j=wn(j,A),j.index=0,j.sibling=null,j}function u(j,A,C){return j.index=C,t?(C=j.alternate,C!==null?(C=C.index,C<A?(j.flags|=67108866,A):C):(j.flags|=67108866,A)):(j.flags|=1048576,A)}function h(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function b(j,A,C,U){return A===null||A.tag!==6?(A=_r(C,j.mode,U),A.return=j,A):(A=r(A,C),A.return=j,A)}function T(j,A,C,U){var ot=C.type;return ot===z?_(j,A,C.props.children,U,C.key):A!==null&&(A.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===B&&Na(ot)===A.type)?(A=r(A,C.props),ls(A,C),A.return=j,A):(A=wl(C.type,C.key,C.props,null,j.mode,U),ls(A,C),A.return=j,A)}function N(j,A,C,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Br(C,j.mode,U),A.return=j,A):(A=r(A,C.children||[]),A.return=j,A)}function _(j,A,C,U,ot){return A===null||A.tag!==7?(A=Ea(C,j.mode,U,ot),A.return=j,A):(A=r(A,C),A.return=j,A)}function G(j,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=_r(""+A,j.mode,C),A.return=j,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case M:return C=wl(A.type,A.key,A.props,null,j.mode,C),ls(C,A),C.return=j,C;case E:return A=Br(A,j.mode,C),A.return=j,A;case B:return A=Na(A),G(j,A,C)}if(yt(A)||ut(A))return A=Ea(A,j.mode,C,null),A.return=j,A;if(typeof A.then=="function")return G(j,Nl(A),C);if(A.$$typeof===Y)return G(j,Ml(j,A),C);Dl(j,A)}return null}function R(j,A,C,U){var ot=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ot!==null?null:b(j,A,""+C,U);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case M:return C.key===ot?T(j,A,C,U):null;case E:return C.key===ot?N(j,A,C,U):null;case B:return C=Na(C),R(j,A,C,U)}if(yt(C)||ut(C))return ot!==null?null:_(j,A,C,U,null);if(typeof C.then=="function")return R(j,A,Nl(C),U);if(C.$$typeof===Y)return R(j,A,Ml(j,C),U);Dl(j,C)}return null}function k(j,A,C,U,ot){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(C)||null,b(A,j,""+U,ot);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case M:return j=j.get(U.key===null?C:U.key)||null,T(A,j,U,ot);case E:return j=j.get(U.key===null?C:U.key)||null,N(A,j,U,ot);case B:return U=Na(U),k(j,A,C,U,ot)}if(yt(U)||ut(U))return j=j.get(C)||null,_(A,j,U,ot,null);if(typeof U.then=="function")return k(j,A,C,Nl(U),ot);if(U.$$typeof===Y)return k(j,A,C,Ml(A,U),ot);Dl(A,U)}return null}function nt(j,A,C,U){for(var ot=null,zt=null,it=A,pt=A=0,At=null;it!==null&&pt<C.length;pt++){it.index>pt?(At=it,it=null):At=it.sibling;var Nt=R(j,it,C[pt],U);if(Nt===null){it===null&&(it=At);break}t&&it&&Nt.alternate===null&&e(j,it),A=u(Nt,A,pt),zt===null?ot=Nt:zt.sibling=Nt,zt=Nt,it=At}if(pt===C.length)return n(j,it),Mt&&An(j,pt),ot;if(it===null){for(;pt<C.length;pt++)it=G(j,C[pt],U),it!==null&&(A=u(it,A,pt),zt===null?ot=it:zt.sibling=it,zt=it);return Mt&&An(j,pt),ot}for(it=s(it);pt<C.length;pt++)At=k(it,j,pt,C[pt],U),At!==null&&(t&&At.alternate!==null&&it.delete(At.key===null?pt:At.key),A=u(At,A,pt),zt===null?ot=At:zt.sibling=At,zt=At);return t&&it.forEach(function(fa){return e(j,fa)}),Mt&&An(j,pt),ot}function ft(j,A,C,U){if(C==null)throw Error(o(151));for(var ot=null,zt=null,it=A,pt=A=0,At=null,Nt=C.next();it!==null&&!Nt.done;pt++,Nt=C.next()){it.index>pt?(At=it,it=null):At=it.sibling;var fa=R(j,it,Nt.value,U);if(fa===null){it===null&&(it=At);break}t&&it&&fa.alternate===null&&e(j,it),A=u(fa,A,pt),zt===null?ot=fa:zt.sibling=fa,zt=fa,it=At}if(Nt.done)return n(j,it),Mt&&An(j,pt),ot;if(it===null){for(;!Nt.done;pt++,Nt=C.next())Nt=G(j,Nt.value,U),Nt!==null&&(A=u(Nt,A,pt),zt===null?ot=Nt:zt.sibling=Nt,zt=Nt);return Mt&&An(j,pt),ot}for(it=s(it);!Nt.done;pt++,Nt=C.next())Nt=k(it,j,pt,Nt.value,U),Nt!==null&&(t&&Nt.alternate!==null&&it.delete(Nt.key===null?pt:Nt.key),A=u(Nt,A,pt),zt===null?ot=Nt:zt.sibling=Nt,zt=Nt);return t&&it.forEach(function(wb){return e(j,wb)}),Mt&&An(j,pt),ot}function Bt(j,A,C,U){if(typeof C=="object"&&C!==null&&C.type===z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case M:t:{for(var ot=C.key;A!==null;){if(A.key===ot){if(ot=C.type,ot===z){if(A.tag===7){n(j,A.sibling),U=r(A,C.props.children),U.return=j,j=U;break t}}else if(A.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===B&&Na(ot)===A.type){n(j,A.sibling),U=r(A,C.props),ls(U,C),U.return=j,j=U;break t}n(j,A);break}else e(j,A);A=A.sibling}C.type===z?(U=Ea(C.props.children,j.mode,U,C.key),U.return=j,j=U):(U=wl(C.type,C.key,C.props,null,j.mode,U),ls(U,C),U.return=j,j=U)}return h(j);case E:t:{for(ot=C.key;A!==null;){if(A.key===ot)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(j,A.sibling),U=r(A,C.children||[]),U.return=j,j=U;break t}else{n(j,A);break}else e(j,A);A=A.sibling}U=Br(C,j.mode,U),U.return=j,j=U}return h(j);case B:return C=Na(C),Bt(j,A,C,U)}if(yt(C))return nt(j,A,C,U);if(ut(C)){if(ot=ut(C),typeof ot!="function")throw Error(o(150));return C=ot.call(C),ft(j,A,C,U)}if(typeof C.then=="function")return Bt(j,A,Nl(C),U);if(C.$$typeof===Y)return Bt(j,A,Ml(j,C),U);Dl(j,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(j,A.sibling),U=r(A,C),U.return=j,j=U):(n(j,A),U=_r(C,j.mode,U),U.return=j,j=U),h(j)):n(j,A)}return function(j,A,C,U){try{ss=0;var ot=Bt(j,A,C,U);return mi=null,ot}catch(it){if(it===hi||it===Cl)throw it;var zt=Ne(29,it,null,j.mode);return zt.lanes=U,zt.return=j,zt}}}var Ra=ch(!0),fh=ch(!1),Jn=!1;function Fr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(t,e,n){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Dt&2)!==0){var r=s.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),s.pending=e,e=Tl(t),Jd(t,null,n),e}return Sl(t,s,e,n),Tl(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,nd(t,n)}}function $r(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 Wr=!1;function rs(){if(Wr){var t=di;if(t!==null)throw t}}function us(t,e,n,s){Wr=!1;var r=t.updateQueue;Jn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,N=T.next;T.next=null,h===null?u=N:h.next=N,h=T;var _=t.alternate;_!==null&&(_=_.updateQueue,b=_.lastBaseUpdate,b!==h&&(b===null?_.firstBaseUpdate=N:b.next=N,_.lastBaseUpdate=T))}if(u!==null){var G=r.baseState;h=0,_=N=T=null,b=u;do{var R=b.lane&-536870913,k=R!==b.lane;if(k?(wt&R)===R:(s&R)===R){R!==0&&R===fi&&(Wr=!0),_!==null&&(_=_.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var nt=t,ft=b;R=e;var Bt=n;switch(ft.tag){case 1:if(nt=ft.payload,typeof nt=="function"){G=nt.call(Bt,G,R);break t}G=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ft.payload,R=typeof nt=="function"?nt.call(Bt,G,R):nt,R==null)break t;G=x({},G,R);break t;case 2:Jn=!0}}R=b.callback,R!==null&&(t.flags|=64,k&&(t.flags|=8192),k=r.callbacks,k===null?r.callbacks=[R]:k.push(R))}else k={lane:R,tag:b.tag,payload:b.payload,callback:b.callback,next:null},_===null?(N=_=k,T=G):_=_.next=k,h|=R;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;k=b,b=k.next,k.next=null,r.lastBaseUpdate=k,r.shared.pending=null}}while(!0);_===null&&(T=G),r.baseState=T,r.firstBaseUpdate=N,r.lastBaseUpdate=_,u===null&&(r.shared.lanes=0),ea|=h,t.lanes=h,t.memoizedState=G}}function dh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function hh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)dh(n[t],e)}var pi=w(null),Rl=w(0);function mh(t,e){t=On,$(Rl,t),$(pi,e),On=t|e.baseLanes}function Ir(){$(Rl,On),$(pi,pi.current)}function tu(){On=Rl.current,H(pi),H(Rl)}var De=w(null),Qe=null;function $n(t){var e=t.alternate;$(Kt,Kt.current&1),$(De,t),Qe===null&&(e===null||pi.current!==null||e.memoizedState!==null)&&(Qe=t)}function eu(t){$(Kt,Kt.current),$(De,t),Qe===null&&(Qe=t)}function ph(t){t.tag===22?($(Kt,Kt.current),$(De,t),Qe===null&&(Qe=t)):Wn()}function Wn(){$(Kt,Kt.current),$(De,De.current)}function Re(t){H(De),Qe===t&&(Qe=null),H(Kt)}var Kt=w(0);function kl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||oc(n)||rc(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 jn=0,mt=null,Ot=null,Pt=null,Vl=!1,gi=!1,ka=!1,Ol=0,cs=0,yi=null,hv=0;function Xt(){throw Error(o(321))}function nu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ze(t[n],e[n]))return!1;return!0}function au(t,e,n,s,r,u){return jn=u,mt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Wh:vu,ka=!1,u=n(s,r),ka=!1,gi&&(u=yh(e,n,s,r)),gh(t),u}function gh(t){D.H=hs;var e=Ot!==null&&Ot.next!==null;if(jn=0,Pt=Ot=mt=null,Vl=!1,cs=0,yi=null,e)throw Error(o(300));t===null||$t||(t=t.dependencies,t!==null&&El(t)&&($t=!0))}function yh(t,e,n,s){mt=t;var r=0;do{if(gi&&(yi=null),cs=0,gi=!1,25<=r)throw Error(o(301));if(r+=1,Pt=Ot=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=Ih,u=e(n,s)}while(gi);return u}function mv(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?fs(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(mt.flags|=1024),e}function iu(){var t=Ol!==0;return Ol=0,t}function su(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function lu(t){if(Vl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Vl=!1}jn=0,Pt=Ot=mt=null,gi=!1,cs=Ol=0,yi=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?mt.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Jt(){if(Ot===null){var t=mt.alternate;t=t!==null?t.memoizedState:null}else t=Ot.next;var e=Pt===null?mt.memoizedState:Pt.next;if(e!==null)Pt=e,Ot=t;else{if(t===null)throw mt.alternate===null?Error(o(467)):Error(o(310));Ot=t,t={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Pt===null?mt.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function _l(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fs(t){var e=cs;return cs+=1,yi===null&&(yi=[]),t=oh(yi,t,e),e=mt,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Wh:vu),t}function Bl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return fs(t);if(t.$$typeof===Y)return ue(t)}throw Error(o(438,String(t)))}function ou(t){var e=null,n=mt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var s=mt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=_l(),mt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),s=0;s<t;s++)n[s]=lt;return e.index++,n}function Cn(t,e){return typeof e=="function"?e(t):e}function Ll(t){var e=Jt();return ru(e,Ot,t)}function ru(t,e,n){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var r=t.baseQueue,u=s.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}e.baseQueue=r=u,s.pending=null}if(u=t.baseState,r===null)t.memoizedState=u;else{e=r.next;var b=h=null,T=null,N=e,_=!1;do{var G=N.lane&-536870913;if(G!==N.lane?(wt&G)===G:(jn&G)===G){var R=N.revertLane;if(R===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),G===fi&&(_=!0);else if((jn&R)===R){N=N.next,R===fi&&(_=!0);continue}else G={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(b=T=G,h=u):T=T.next=G,mt.lanes|=R,ea|=R;G=N.action,ka&&n(u,G),u=N.hasEagerState?N.eagerState:n(u,G)}else R={lane:G,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(b=T=R,h=u):T=T.next=R,mt.lanes|=G,ea|=G;N=N.next}while(N!==null&&N!==e);if(T===null?h=u:T.next=b,!ze(u,t.memoizedState)&&($t=!0,_&&(n=di,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 uu(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);ze(u,e.memoizedState)||($t=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,s]}function vh(t,e,n){var s=mt,r=Jt(),u=Mt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var h=!ze((Ot||r).memoizedState,n);if(h&&(r.memoizedState=n,$t=!0),r=r.queue,du(Sh.bind(null,s,r,t),[t]),r.getSnapshot!==e||h||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,vi(9,{destroy:void 0},xh.bind(null,s,r,n,e),null),Lt===null)throw Error(o(349));u||(jn&127)!==0||bh(s,e,n)}return n}function bh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=mt.updateQueue,e===null?(e=_l(),mt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function xh(t,e,n,s){e.value=n,e.getSnapshot=s,Th(e)&&wh(t)}function Sh(t,e,n){return n(function(){Th(e)&&wh(t)})}function Th(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ze(t,n)}catch{return!0}}function wh(t){var e=Aa(t,2);e!==null&&Ae(e,t,2)}function cu(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),ka){Gn(!0);try{n()}finally{Gn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:t},e}function Ah(t,e,n,s){return t.baseState=n,ru(t,Ot,typeof s=="function"?s:Cn)}function pv(t,e,n,s,r){if(Gl(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)}};D.T!==null?n(!0):u.isTransition=!1,s(u),n=e.pending,n===null?(u.next=e.pending=u,Eh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function Eh(t,e){var n=e.action,s=e.payload,r=t.state;if(e.isTransition){var u=D.T,h={};D.T=h;try{var b=n(r,s),T=D.S;T!==null&&T(h,b),Mh(t,e,b)}catch(N){fu(t,e,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),D.T=u}}else try{u=n(r,s),Mh(t,e,u)}catch(N){fu(t,e,N)}}function Mh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){jh(t,e,s)},function(s){return fu(t,e,s)}):jh(t,e,n)}function jh(t,e,n){e.status="fulfilled",e.value=n,Ch(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Eh(t,n)))}function fu(t,e,n){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=n,Ch(e),e=e.next;while(e!==s)}t.action=null}function Ch(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function zh(t,e){return e}function Nh(t,e){if(Mt){var n=Lt.formState;if(n!==null){t:{var s=mt;if(Mt){if(Ht){e:{for(var r=Ht,u=Ze;r.nodeType!==8;){if(!u){r=null;break e}if(r=Ke(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Ht=Ke(r.nextSibling),s=r.data==="F!";break t}}Qn(s)}s=!1}s&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zh,lastRenderedState:e},n.queue=s,n=Fh.bind(null,mt,s),s.dispatch=n,s=cu(!1),u=yu.bind(null,mt,!1,s.queue),s=pe(),r={state:e,dispatch:null,action:t,pending:null},s.queue=r,n=pv.bind(null,mt,r,u,n),r.dispatch=n,s.memoizedState=t,[e,n,!1]}function Dh(t){var e=Jt();return Rh(e,Ot,t)}function Rh(t,e,n){if(e=ru(t,e,zh)[0],t=Ll(Cn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=fs(e)}catch(h){throw h===hi?Cl:h}else s=e;e=Jt();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(mt.flags|=2048,vi(9,{destroy:void 0},gv.bind(null,r,n),null)),[s,u,t]}function gv(t,e){t.action=e}function kh(t){var e=Jt(),n=Ot;if(n!==null)return Rh(e,n,t);Jt(),e=e.memoizedState,n=Jt();var s=n.queue.dispatch;return n.memoizedState=t,[e,s,!1]}function vi(t,e,n,s){return t={tag:t,create:n,deps:s,inst:e,next:null},e=mt.updateQueue,e===null&&(e=_l(),mt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(s=n.next,n.next=t,t.next=s,e.lastEffect=t),t}function Vh(){return Jt().memoizedState}function Ul(t,e,n,s){var r=pe();mt.flags|=t,r.memoizedState=vi(1|e,{destroy:void 0},n,s===void 0?null:s)}function Hl(t,e,n,s){var r=Jt();s=s===void 0?null:s;var u=r.memoizedState.inst;Ot!==null&&s!==null&&nu(s,Ot.memoizedState.deps)?r.memoizedState=vi(e,u,n,s):(mt.flags|=t,r.memoizedState=vi(1|e,u,n,s))}function Oh(t,e){Ul(8390656,8,t,e)}function du(t,e){Hl(2048,8,t,e)}function yv(t){mt.flags|=4;var e=mt.updateQueue;if(e===null)e=_l(),mt.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 yv({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Bh(t,e){return Hl(4,2,t,e)}function Lh(t,e){return Hl(4,4,t,e)}function Uh(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 Hh(t,e,n){n=n!=null?n.concat([t]):null,Hl(4,4,Uh.bind(null,e,t),n)}function hu(){}function Gh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;return e!==null&&nu(e,s[1])?s[0]:(n.memoizedState=[t,e],t)}function qh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;if(e!==null&&nu(e,s[1]))return s[0];if(s=t(),ka){Gn(!0);try{t()}finally{Gn(!1)}}return n.memoizedState=[s,e],s}function mu(t,e,n){return n===void 0||(jn&1073741824)!==0&&(wt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Ym(),mt.lanes|=t,ea|=t,n)}function Yh(t,e,n,s){return ze(n,e)?n:pi.current!==null?(t=mu(t,n,s),ze(t,e)||($t=!0),t):(jn&42)===0||(jn&1073741824)!==0&&(wt&261930)===0?($t=!0,t.memoizedState=n):(t=Ym(),mt.lanes|=t,ea|=t,e)}function Xh(t,e,n,s,r){var u=J.p;J.p=u!==0&&8>u?u:8;var h=D.T,b={};D.T=b,yu(t,!1,e,n);try{var T=r(),N=D.S;if(N!==null&&N(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var _=dv(T,s);ds(t,e,_,Oe(t))}else ds(t,e,s,Oe(t))}catch(G){ds(t,e,{then:function(){},status:"rejected",reason:G},Oe())}finally{J.p=u,h!==null&&b.types!==null&&(h.types=b.types),D.T=h}}function vv(){}function pu(t,e,n,s){if(t.tag!==5)throw Error(o(476));var r=Zh(t).queue;Xh(t,r,e,W,n===null?vv:function(){return Qh(t),n(s)})}function Zh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:W},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Qh(t){var e=Zh(t);e.next===null&&(e=t.alternate.memoizedState),ds(t,e.next.queue,{},Oe())}function gu(){return ue(zs)}function Kh(){return Jt().memoizedState}function Jh(){return Jt().memoizedState}function bv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Oe();t=Fn(n);var s=Pn(e,t,n);s!==null&&(Ae(s,e,n),os(s,e,n)),e={cache:Zr()},t.payload=e;return}e=e.return}}function xv(t,e,n){var s=Oe();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gl(t)?Ph(e,n):(n=Vr(t,e,n,s),n!==null&&(Ae(n,t,s),$h(n,e,s)))}function Fh(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(Gl(t))Ph(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,ze(b,h))return Sl(t,e,r,0),Lt===null&&xl(),!1}catch{}if(n=Vr(t,e,r,s),n!==null)return Ae(n,t,s),$h(n,e,s),!0}return!1}function yu(t,e,n,s){if(s={lane:2,revertLane:Fu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Gl(t)){if(e)throw Error(o(479))}else e=Vr(t,n,s,2),e!==null&&Ae(e,t,2)}function Gl(t){var e=t.alternate;return t===mt||e!==null&&e===mt}function Ph(t,e){gi=Vl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function $h(t,e,n){if((n&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,nd(t,n)}}var hs={readContext:ue,use:Bl,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 Wh={readContext:ue,use:Bl,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,Ul(4194308,4,Uh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ul(4194308,4,t,e)},useInsertionEffect:function(t,e){Ul(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var s=t();if(ka){Gn(!0);try{t()}finally{Gn(!1)}}return n.memoizedState=[s,e],s},useReducer:function(t,e,n){var s=pe();if(n!==void 0){var r=n(e);if(ka){Gn(!0);try{n(e)}finally{Gn(!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=xv.bind(null,mt,t),[s.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=cu(t);var e=t.queue,n=Fh.bind(null,mt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:hu,useDeferredValue:function(t,e){var n=pe();return mu(n,t,e)},useTransition:function(){var t=cu(!1);return t=Xh.bind(null,mt,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var s=mt,r=pe();if(Mt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Lt===null)throw Error(o(349));(wt&127)!==0||bh(s,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,Oh(Sh.bind(null,s,u,t),[t]),s.flags|=2048,vi(9,{destroy:void 0},xh.bind(null,s,u,n,e),null),n},useId:function(){var t=pe(),e=Lt.identifierPrefix;if(Mt){var n=cn,s=un;n=(s&~(1<<32-Ce(s)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ol++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=hv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:gu,useFormState:Nh,useActionState:Nh,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=yu.bind(null,mt,!0,n),n.dispatch=e,[t,e]},useMemoCache:ou,useCacheRefresh:function(){return pe().memoizedState=bv.bind(null,mt)},useEffectEvent:function(t){var e=pe(),n={impl:t};return e.memoizedState=n,function(){if((Dt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},vu={readContext:ue,use:Bl,useCallback:Gh,useContext:ue,useEffect:du,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:Lh,useMemo:qh,useReducer:Ll,useRef:Vh,useState:function(){return Ll(Cn)},useDebugValue:hu,useDeferredValue:function(t,e){var n=Jt();return Yh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=Ll(Cn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:fs(t),e]},useSyncExternalStore:vh,useId:Kh,useHostTransitionStatus:gu,useFormState:Dh,useActionState:Dh,useOptimistic:function(t,e){var n=Jt();return Ah(n,Ot,t,e)},useMemoCache:ou,useCacheRefresh:Jh};vu.useEffectEvent=_h;var Ih={readContext:ue,use:Bl,useCallback:Gh,useContext:ue,useEffect:du,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:Lh,useMemo:qh,useReducer:uu,useRef:Vh,useState:function(){return uu(Cn)},useDebugValue:hu,useDeferredValue:function(t,e){var n=Jt();return Ot===null?mu(n,t,e):Yh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=uu(Cn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:fs(t),e]},useSyncExternalStore:vh,useId:Kh,useHostTransitionStatus:gu,useFormState:kh,useActionState:kh,useOptimistic:function(t,e){var n=Jt();return Ot!==null?Ah(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ou,useCacheRefresh:Jh};Ih.useEffectEvent=_h;function bu(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 xu={enqueueSetState:function(t,e,n){t=t._reactInternals;var s=Oe(),r=Fn(s);r.payload=e,n!=null&&(r.callback=n),e=Pn(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=Fn(s);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Pn(t,r,s),e!==null&&(Ae(e,t,s),os(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Oe(),s=Fn(n);s.tag=2,e!=null&&(s.callback=e),e=Pn(t,s,n),e!==null&&(Ae(e,t,n),os(e,t,n))}};function tm(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 em(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&&xu.enqueueReplaceState(e,e.state,null)}function Va(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 nm(t){bl(t)}function am(t){console.error(t)}function im(t){bl(t)}function ql(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function sm(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 Su(t,e,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){ql(t,e)},n}function lm(t){return t=Fn(t),t.tag=3,t}function om(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(){sm(e,n,s)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){sm(e,n,s),typeof r!="function"&&(na===null?na=new Set([this]):na.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function Sv(t,e,n,s,r){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=n.alternate,e!==null&&ci(e,n,r,!0),n=De.current,n!==null){switch(n.tag){case 31:case 13:return Qe===null?to():n.alternate===null&&Zt===0&&(Zt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,s===zl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([s]):e.add(s),Qu(t,s,r)),!1;case 22:return n.flags|=65536,s===zl?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)),Qu(t,s,r)),!1}throw Error(o(435,n.tag))}return Qu(t,s,r),to(),!1}if(Mt)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,s!==Hr&&(t=Error(o(422),{cause:s}),ns(qe(t,n)))):(s!==Hr&&(e=Error(o(423),{cause:s}),ns(qe(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,s=qe(s,n),r=Su(t.stateNode,s,r),$r(t,r),Zt!==4&&(Zt=2)),!1;var u=Error(o(520),{cause:s});if(u=qe(u,n),Ss===null?Ss=[u]:Ss.push(u),Zt!==4&&(Zt=2),e===null)return!0;s=qe(s,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=Su(n.stateNode,s,t),$r(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"&&(na===null||!na.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=lm(r),om(r,t,n,s),$r(n,r),!1}n=n.return}while(n!==null);return!1}var Tu=Error(o(461)),$t=!1;function ce(t,e,n,s){e.child=t===null?fh(e,null,n,s):Ra(e,t.child,n,s)}function rm(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=au(t,e,n,h,u,r),b=iu(),t!==null&&!$t?(su(t,e,r),zn(t,e,r)):(Mt&&b&&Lr(e),e.flags|=1,ce(t,e,s,r),e.child)}function um(t,e,n,s,r){if(t===null){var u=n.type;return typeof u=="function"&&!Or(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,cm(t,e,u,s,r)):(t=wl(n.type,null,s,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Nu(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ii,n(h,s)&&t.ref===e.ref)return zn(t,e,r)}return e.flags|=1,t=wn(u,s),t.ref=e.ref,t.return=e,e.child=t}function cm(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,Nu(t,r))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,zn(t,e,r)}return wu(t,e,n,s,r)}function fm(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 dm(t,e,u,n,s)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&jl(e,u!==null?u.cachePool:null),u!==null?mh(e,u):Ir(),ph(e);else return s=e.lanes=536870912,dm(t,e,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(jl(e,u.cachePool),mh(e,u),Wn(),e.memoizedState=null):(t!==null&&jl(e,null),Ir(),Wn());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 dm(t,e,n,s,r){var u=Kr();return u=u===null?null:{parent:Ft._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&jl(e,null),Ir(),ph(e),t!==null&&ci(t,e,s,!0),e.childLanes=r,null}function Yl(t,e){return e=Zl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function hm(t,e,n){return Ra(e,t.child,null,n),t=Yl(e,e.pendingProps),t.flags|=2,Re(e),e.memoizedState=null,t}function Tv(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=Yl(e,s),e.lanes=536870912,ms(null,t);if(eu(e),(t=Ht)?(t=E0(t,Ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xn!==null?{id:un,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=Pd(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw Qn(e);return e.lanes=536870912,null}return Yl(e,s)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(eu(e),r)if(e.flags&256)e.flags&=-257,e=hm(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||ci(t,e,n,!1),r=(n&t.childLanes)!==0,$t||r){if(s=Lt,s!==null&&(h=ad(s,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Aa(t,h),Ae(s,t,h),Tu;to(),e=hm(t,e,n)}else t=u.treeContext,Ht=Ke(h.nextSibling),re=e,Mt=!0,Zn=null,Ze=!1,t!==null&&Id(e,t),e=Yl(e,s),e.flags|=4096;return e}return t=wn(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Xl(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 wu(t,e,n,s,r){return Ca(e),n=au(t,e,n,s,void 0,r),s=iu(),t!==null&&!$t?(su(t,e,r),zn(t,e,r)):(Mt&&s&&Lr(e),e.flags|=1,ce(t,e,n,r),e.child)}function mm(t,e,n,s,r,u){return Ca(e),e.updateQueue=null,n=yh(e,s,n,r),gh(t),s=iu(),t!==null&&!$t?(su(t,e,u),zn(t,e,u)):(Mt&&s&&Lr(e),e.flags|=1,ce(t,e,n,u),e.child)}function pm(t,e,n,s,r){if(Ca(e),e.stateNode===null){var u=li,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=xu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},Fr(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?ue(h):li,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(bu(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&&xu.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=Va(n,b);u.props=T;var N=u.context,_=n.contextType;h=li,typeof _=="object"&&_!==null&&(h=ue(_));var G=n.getDerivedStateFromProps;_=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||N!==h)&&em(e,u,s,h),Jn=!1;var R=e.memoizedState;u.state=R,us(e,s,u,r),rs(),N=e.memoizedState,b||R!==N||Jn?(typeof G=="function"&&(bu(e,n,G,s),N=e.memoizedState),(T=Jn||tm(e,n,T,s,R,N,h))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=N),u.props=s,u.state=N,u.context=h,s=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,Pr(t,e),h=e.memoizedProps,_=Va(n,h),u.props=_,G=e.pendingProps,R=u.context,N=n.contextType,T=li,typeof N=="object"&&N!==null&&(T=ue(N)),b=n.getDerivedStateFromProps,(N=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==G||R!==T)&&em(e,u,s,T),Jn=!1,R=e.memoizedState,u.state=R,us(e,s,u,r),rs();var k=e.memoizedState;h!==G||R!==k||Jn||t!==null&&t.dependencies!==null&&El(t.dependencies)?(typeof b=="function"&&(bu(e,n,b,s),k=e.memoizedState),(_=Jn||tm(e,n,_,s,R,k,T)||t!==null&&t.dependencies!==null&&El(t.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,k,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,k,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=k),u.props=s,u.state=k,u.context=T,s=_):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),s=!1)}return u=s,Xl(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=zn(t,e,r),t}function gm(t,e,n,s){return Ma(),e.flags|=256,ce(t,e,n,s),e.child}var Au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Eu(t){return{baseLanes:t,cachePool:sh()}}function Mu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ve),t}function ym(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?$n(e):Wn(),(t=Ht)?(t=E0(t,Ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xn!==null?{id:un,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=Pd(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw Qn(e);return rc(t)?e.lanes=32:e.lanes=536870912,null}var b=s.children;return s=s.fallback,r?(Wn(),r=e.mode,b=Zl({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=Eu(n),s.childLanes=Mu(t,h,n),e.memoizedState=Au,ms(null,s)):($n(e),ju(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(u)e.flags&256?($n(e),e.flags&=-257,e=Cu(t,e,n)):e.memoizedState!==null?(Wn(),e.child=t.child,e.flags|=128,e=null):(Wn(),b=s.fallback,r=e.mode,s=Zl({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=Eu(n),s.childLanes=Mu(t,h,n),e.memoizedState=Au,e=ms(null,s));else if($n(e),rc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var N=h.dgst;h=N,s=Error(o(419)),s.stack="",s.digest=h,ns({value:s,source:null,stack:null}),e=Cu(t,e,n)}else if($t||ci(t,e,n,!1),h=(n&t.childLanes)!==0,$t||h){if(h=Lt,h!==null&&(s=ad(h,n),s!==0&&s!==T.retryLane))throw T.retryLane=s,Aa(t,s),Ae(h,t,s),Tu;oc(b)||to(),e=Cu(t,e,n)}else oc(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ht=Ke(b.nextSibling),re=e,Mt=!0,Zn=null,Ze=!1,t!==null&&Id(e,t),e=ju(e,s.children),e.flags|=4096);return e}return r?(Wn(),b=s.fallback,r=e.mode,T=t.child,N=T.sibling,s=wn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,N!==null?b=wn(N,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=Eu(n):(r=b.cachePool,r!==null?(T=Ft._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=sh(),b={baseLanes:b.baseLanes|n,cachePool:r}),s.memoizedState=b,s.childLanes=Mu(t,h,n),e.memoizedState=Au,ms(t.child,s)):($n(e),n=t.child,t=n.sibling,n=wn(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 ju(t,e){return e=Zl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Zl(t,e){return t=Ne(22,t,null,e),t.lanes=0,t}function Cu(t,e,n){return Ra(e,t.child,null,n),t=ju(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function vm(t,e,n){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),Yr(t.return,e,n)}function zu(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 bm(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,$(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&&vm(t,n,e);else if(t.tag===19)vm(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&&kl(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),zu(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&&kl(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}zu(e,!0,n,null,u,s);break;case"together":zu(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function zn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ea|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ci(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=wn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=wn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Nu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&El(t)))}function wv(t,e,n){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),Kn(e,Ft,t.memoizedState.cache),Ma();break;case 27:case 5:Un(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:Kn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,eu(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?($n(e),e.flags|=128,null):(n&e.child.childLanes)!==0?ym(t,e,n):($n(e),t=zn(t,e,n),t!==null?t.sibling:null);$n(e);break;case 19:var r=(t.flags&128)!==0;if(s=(n&e.childLanes)!==0,s||(ci(t,e,n,!1),s=(n&e.childLanes)!==0),r){if(s)return bm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),$(Kt,Kt.current),s)break;return null;case 22:return e.lanes=0,fm(t,e,n,e.pendingProps);case 24:Kn(e,Ft,t.memoizedState.cache)}return zn(t,e,n)}function xm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!Nu(t,n)&&(e.flags&128)===0)return $t=!1,wv(t,e,n);$t=(t.flags&131072)!==0}else $t=!1,Mt&&(e.flags&1048576)!==0&&Wd(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")Or(t)?(s=Va(t,s),e.tag=1,e=pm(null,e,t,s,n)):(e.tag=0,e=wu(null,e,t,s,n));else{if(t!=null){var r=t.$$typeof;if(r===X){e.tag=11,e=rm(null,e,t,s,n);break t}else if(r===F){e.tag=14,e=um(null,e,t,s,n);break t}}throw e=Rt(t)||t,Error(o(306,e,""))}}return e;case 0:return wu(t,e,e.type,e.pendingProps,n);case 1:return s=e.type,r=Va(s,e.pendingProps),pm(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,Pr(t,e),us(e,s,null,n);var h=e.memoizedState;if(s=h.cache,Kn(e,Ft,s),s!==u.cache&&Xr(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=gm(t,e,s,n);break t}else if(s!==r){r=qe(Error(o(424)),e),ns(r),e=gm(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=Ke(t.firstChild),re=e,Mt=!0,Zn=null,Ze=!0,n=fh(e,null,s,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ma(),s===r){e=zn(t,e,n);break t}ce(t,e,s,n)}e=e.child}return e;case 26:return Xl(t,e),t===null?(n=D0(e.type,null,e.pendingProps,null))?e.memoizedState=n:Mt||(n=e.type,t=e.pendingProps,s=oo(rt.current).createElement(n),s[oe]=e,s[ve]=t,fe(s,n,t),se(s),e.stateNode=s):e.memoizedState=D0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Un(e),t===null&&Mt&&(s=e.stateNode=C0(e.type,e.pendingProps,rt.current),re=e,Ze=!0,r=Ht,la(e.type)?(uc=r,Ht=Ke(s.firstChild)):Ht=r),ce(t,e,e.pendingProps.children,n),Xl(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Mt&&((r=s=Ht)&&(s=Iv(s,e.type,e.pendingProps,Ze),s!==null?(e.stateNode=s,re=e,Ht=Ke(s.firstChild),Ze=!1,r=!0):r=!1),r||Qn(e)),Un(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,s=u.children,ic(r,u)?s=null:h!==null&&ic(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=au(t,e,mv,null,null,n),zs._currentValue=r),Xl(t,e),ce(t,e,s,n),e.child;case 6:return t===null&&Mt&&((t=n=Ht)&&(n=tb(n,e.pendingProps,Ze),n!==null?(e.stateNode=n,re=e,Ht=null,t=!0):t=!1),t||Qn(e)),null;case 13:return ym(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 rm(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,Kn(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 um(t,e,e.type,e.pendingProps,n);case 15:return cm(t,e,e.type,e.pendingProps,n);case 19:return bm(t,e,n);case 31:return Tv(t,e,n);case 22:return fm(t,e,n,e.pendingProps);case 24:return Ca(e),s=ue(Ft),t===null?(r=Kr(),r===null&&(r=Lt,u=Zr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:s,cache:r},Fr(e),Kn(e,Ft,r)):((t.lanes&n)!==0&&(Pr(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),Kn(e,Ft,s)):(s=u.cache,Kn(e,Ft,s),s!==r.cache&&Xr(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 Nn(t){t.flags|=4}function Du(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(Km())t.flags|=8192;else throw Da=zl,Jr}else t.flags&=-16777217}function Sm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_0(e))if(Km())t.flags|=8192;else throw Da=zl,Jr}function Ql(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?td():536870912,t.lanes|=e,Ti|=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 Av(t,e,n){var s=e.pendingProps;switch(Ur(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),Mn(Ft),vt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ui(e)?Nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Gr())),Gt(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(Nn(e),u!==null?(Gt(e),Sm(e,u)):(Gt(e),Du(e,r,null,s,n))):u?u!==t.memoizedState?(Nn(e),Gt(e),Sm(e,u)):(Gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&Nn(e),Gt(e),Du(e,r,t,s,n)),null;case 27:if(bn(e),n=rt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Nn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Gt(e),null}t=tt.current,ui(e)?th(e):(t=C0(r,s,n),e.stateNode=t,Nn(e))}return Gt(e),null;case 5:if(bn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Nn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Gt(e),null}if(u=tt.current,ui(e))th(e);else{var h=oo(rt.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&&Nn(e)}}return Gt(e),Du(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&Nn(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,ui(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||y0(t.nodeValue,n)),t||Qn(e,!0)}else t=oo(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=ui(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=Gr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Re(e),e):(Re(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=ui(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=Gr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Re(e),e):(Re(e),null)}return Re(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),Ql(e,e.updateQueue),Gt(e),null);case 4:return vt(),t===null&&Iu(e.stateNode.containerInfo),Gt(e),null;case 10:return Mn(e.type),Gt(e),null;case 19:if(H(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=kl(t),u!==null){for(e.flags|=128,ps(s,!1),t=u.updateQueue,e.updateQueue=t,Ql(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Fd(n,t),n=n.sibling;return $(Kt,Kt.current&1|2),Mt&&An(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&Me()>$l&&(e.flags|=128,r=!0,ps(s,!1),e.lanes=4194304)}else{if(!r)if(t=kl(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Ql(e,t),ps(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Mt)return Gt(e),null}else 2*Me()-s.renderingStartTime>$l&&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=Me(),t.sibling=null,n=Kt.current,$(Kt,r?n&1|2:n&1),Mt&&An(e,s.treeForkCount),t):(Gt(e),null);case 22:case 23:return Re(e),tu(),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&&Ql(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&&H(za),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Mn(Ft),Gt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Ev(t,e){switch(Ur(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Mn(Ft),vt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return bn(e),null;case 31:if(e.memoizedState!==null){if(Re(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(Re(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 H(Kt),null;case 4:return vt(),null;case 10:return Mn(e.type),null;case 22:case 23:return Re(e),tu(),t!==null&&H(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Mn(Ft),null;case 25:return null;default:return null}}function Tm(t,e){switch(Ur(e),e.tag){case 3:Mn(Ft),vt();break;case 26:case 27:case 5:bn(e);break;case 4:vt();break;case 31:e.memoizedState!==null&&Re(e);break;case 13:Re(e);break;case 19:H(Kt);break;case 10:Mn(e.type);break;case 22:case 23:Re(e),tu(),t!==null&&H(za);break;case 24:Mn(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 In(t,e,n){try{var s=e.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var u=r.next;s=u;do{if((s.tag&t)===t){var h=s.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var T=n,N=b;try{N()}catch(_){Vt(r,T,_)}}}s=s.next}while(s!==u)}}catch(_){Vt(e,e.return,_)}}function wm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{hh(e,n)}catch(s){Vt(t,t.return,s)}}}function Am(t,e,n){n.props=Va(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 fn(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 Em(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 Ru(t,e,n){try{var s=t.stateNode;Kv(s,t.type,n,e),s[ve]=e}catch(r){Vt(t,t.return,r)}}function Mm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&la(t.type)||t.tag===4}function ku(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Mm(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&&la(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 Vu(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=Sn));else if(s!==4&&(s===27&&la(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Vu(t,e,n),t=t.sibling;t!==null;)Vu(t,e,n),t=t.sibling}function Kl(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&&la(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Kl(t,e,n),t=t.sibling;t!==null;)Kl(t,e,n),t=t.sibling}function jm(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 Dn=!1,Wt=!1,Ou=!1,Cm=typeof WeakSet=="function"?WeakSet:Set,le=null;function Mv(t,e){if(t=t.containerInfo,nc=po,t=Hd(t),Cr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,b=-1,T=-1,N=0,_=0,G=t,R=null;e:for(;;){for(var k;G!==n||r!==0&&G.nodeType!==3||(b=h+r),G!==u||s!==0&&G.nodeType!==3||(T=h+s),G.nodeType===3&&(h+=G.nodeValue.length),(k=G.firstChild)!==null;)R=G,G=k;for(;;){if(G===t)break e;if(R===n&&++N===r&&(b=h),R===u&&++_===s&&(T=h),(k=G.nextSibling)!==null)break;G=R,R=G.parentNode}G=k}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(ac={focusedElem:t,selectionRange:n},po=!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=Va(n.type,r);t=s.getSnapshotBeforeUpdate(nt,u),s.__reactInternalSnapshotBeforeUpdate=t}catch(ft){Vt(n,n.return,ft)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)lc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":lc(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 zm(t,e,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:kn(t,n),s&4&&gs(5,n);break;case 1:if(kn(t,n),s&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Vt(n,n.return,h)}else{var r=Va(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Vt(n,n.return,h)}}s&64&&wm(n),s&512&&ys(n,n.return);break;case 3:if(kn(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{hh(t,e)}catch(h){Vt(n,n.return,h)}}break;case 27:e===null&&s&4&&jm(n);case 26:case 5:kn(t,n),e===null&&s&4&&Em(n),s&512&&ys(n,n.return);break;case 12:kn(t,n);break;case 31:kn(t,n),s&4&&Rm(t,n);break;case 13:kn(t,n),s&4&&km(t,n),s&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Ov.bind(null,n),eb(t,n))));break;case 22:if(s=n.memoizedState!==null||Dn,!s){e=e!==null&&e.memoizedState!==null||Wt,r=Dn;var u=Wt;Dn=s,(Wt=e)&&!u?Vn(t,n,(n.subtreeFlags&8772)!==0):kn(t,n),Dn=r,Wt=u}break;case 30:break;default:kn(t,n)}}function Nm(t){var e=t.alternate;e!==null&&(t.alternate=null,Nm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&fr(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 Rn(t,e,n){for(n=n.child;n!==null;)Dm(t,e,n),n=n.sibling}function Dm(t,e,n){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(Gi,n)}catch{}switch(n.tag){case 26:Wt||fn(n,e),Rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||fn(n,e);var s=Yt,r=xe;la(n.type)&&(Yt=n.stateNode,xe=!1),Rn(t,e,n),Ms(n.stateNode),Yt=s,xe=r;break;case 5:Wt||fn(n,e);case 6:if(s=Yt,r=xe,Yt=null,Rn(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,w0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ni(t)):w0(Yt,n.stateNode));break;case 4:s=Yt,r=xe,Yt=n.stateNode.containerInfo,xe=!0,Rn(t,e,n),Yt=s,xe=r;break;case 0:case 11:case 14:case 15:In(2,n,e),Wt||In(4,n,e),Rn(t,e,n);break;case 1:Wt||(fn(n,e),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Am(n,e,s)),Rn(t,e,n);break;case 21:Rn(t,e,n);break;case 22:Wt=(s=Wt)||n.memoizedState!==null,Rn(t,e,n),Wt=s;break;default:Rn(t,e,n)}}function Rm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ni(t)}catch(n){Vt(e,e.return,n)}}}function km(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ni(t)}catch(n){Vt(e,e.return,n)}}function jv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Cm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Cm),e;default:throw Error(o(435,t.tag))}}function Jl(t,e){var n=jv(t);e.forEach(function(s){if(!n.has(s)){n.add(s);var r=_v.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(la(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));Dm(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 en=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&&(In(3,t,t.return),gs(3,t),In(5,t,t.return));break;case 1:Se(e,t),Te(t),s&512&&(Wt||n===null||fn(n,n.return)),s&64&&Dn&&(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=en;if(Se(e,t),Te(t),s&512&&(Wt||n===null||fn(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=k0(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):k0(r,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Ru(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),Te(t),s&512&&(Wt||n===null||fn(n,n.return)),n!==null&&s&4&&Ru(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),Te(t),s&512&&(Wt||n===null||fn(n,n.return)),t.flags&32){r=t.stateNode;try{Ia(r,"")}catch(nt){Vt(t,t.return,nt)}}s&4&&t.stateNode!=null&&(r=t.memoizedProps,Ru(t,r,n!==null?n.memoizedProps:r)),s&1024&&(Ou=!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(co=null,r=en,en=ro(e.containerInfo),Se(e,t),en=r,Te(t),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ni(e.containerInfo)}catch(nt){Vt(t,t.return,nt)}Ou&&(Ou=!1,Om(t));break;case 4:s=en,en=ro(t.stateNode.containerInfo),Se(e,t),Te(t),en=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,Jl(t,s)));break;case 13:Se(e,t),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Pl=Me()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Jl(t,s)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,N=Dn,_=Wt;if(Dn=N||r,Wt=_||T,Se(e,t),Wt=_,Dn=N,Te(t),s&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||Dn||Wt||Oa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var G=T.memoizedProps.style,R=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=R==null||typeof R=="boolean"?"":(""+R).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 k=T.stateNode;r?A0(k,!0):A0(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,Jl(t,n))));break;case 19:Se(e,t),Te(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Jl(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(Mm(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=ku(t);Kl(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(Ia(h,""),n.flags&=-33);var b=ku(t);Kl(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,N=ku(t);Vu(t,N,T);break;default:throw Error(o(161))}}catch(_){Vt(t,t.return,_)}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 kn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)zm(t,e.alternate,e),e=e.sibling}function Oa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:In(4,e,e.return),Oa(e);break;case 1:fn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Am(e,e.return,n),Oa(e);break;case 27:Ms(e.stateNode);case 26:case 5:fn(e,e.return),Oa(e);break;case 22:e.memoizedState===null&&Oa(e);break;case 30:Oa(e);break;default:Oa(e)}t=t.sibling}}function Vn(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:Vn(r,u,n),gs(4,u);break;case 1:if(Vn(r,u,n),s=u,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(N){Vt(s,s.return,N)}if(s=u,r=s.updateQueue,r!==null){var b=s.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)dh(T[r],b)}catch(N){Vt(s,s.return,N)}}n&&h&64&&wm(u),ys(u,u.return);break;case 27:jm(u);case 26:case 5:Vn(r,u,n),n&&s===null&&h&4&&Em(u),ys(u,u.return);break;case 12:Vn(r,u,n);break;case 31:Vn(r,u,n),n&&h&4&&Rm(r,u);break;case 13:Vn(r,u,n),n&&h&4&&km(r,u);break;case 22:u.memoizedState===null&&Vn(r,u,n),ys(u,u.return);break;case 30:break;default:Vn(r,u,n)}e=e.sibling}}function _u(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 Bu(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 nn(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:nn(t,e,n,s),r&2048&&gs(9,e);break;case 1:nn(t,e,n,s);break;case 3:nn(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){nn(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 nn(t,e,n,s);break;case 31:nn(t,e,n,s);break;case 13:nn(t,e,n,s);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?nn(t,e,n,s):vs(t,e):u._visibility&2?nn(t,e,n,s):(u._visibility|=2,bi(t,e,n,s,(e.subtreeFlags&10256)!==0||!1)),r&2048&&_u(h,e);break;case 24:nn(t,e,n,s),r&2048&&Bu(e.alternate,e);break;default:nn(t,e,n,s)}}function bi(t,e,n,s,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,b=n,T=s,N=h.flags;switch(h.tag){case 0:case 11:case 15:bi(u,h,b,T,r),gs(8,h);break;case 23:break;case 22:var _=h.stateNode;h.memoizedState!==null?_._visibility&2?bi(u,h,b,T,r):vs(u,h):(_._visibility|=2,bi(u,h,b,T,r)),r&&N&2048&&_u(h.alternate,h);break;case 24:bi(u,h,b,T,r),r&&N&2048&&Bu(h.alternate,h);break;default:bi(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&&_u(s.alternate,s);break;case 24:vs(n,s),r&2048&&Bu(s.alternate,s);break;default:vs(n,s)}e=e.sibling}}var bs=8192;function xi(t,e,n){if(t.subtreeFlags&bs)for(t=t.child;t!==null;)Bm(t,e,n),t=t.sibling}function Bm(t,e,n){switch(t.tag){case 26:xi(t,e,n),t.flags&bs&&t.memoizedState!==null&&hb(n,en,t.memoizedState,t.memoizedProps);break;case 5:xi(t,e,n);break;case 3:case 4:var s=en;en=ro(t.stateNode.containerInfo),xi(t,e,n),en=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=bs,bs=16777216,xi(t,e,n),bs=s):xi(t,e,n));break;default:xi(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,Hm(s,t)}Lm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Um(t),t=t.sibling}function Um(t){switch(t.tag){case 0:case 11:case 15:xs(t),t.flags&2048&&In(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,Fl(t)):xs(t);break;default:xs(t)}}function Fl(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,Hm(s,t)}Lm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:In(8,e,e.return),Fl(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(e));break;default:Fl(e)}t=t.sibling}}function Hm(t,e){for(;le!==null;){var n=le;switch(n.tag){case 0:case 11:case 15:In(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(Nm(s),s===n){le=null;break t}if(r!==null){r.return=u,le=r;break t}le=u}}}var Cv={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}},zv=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Lt=null,St=null,wt=0,kt=0,ke=null,ta=!1,Si=!1,Lu=!1,On=0,Zt=0,ea=0,_a=0,Uu=0,Ve=0,Ti=0,Ss=null,we=null,Hu=!1,Pl=0,Gm=0,$l=1/0,Wl=null,na=null,ee=0,aa=null,wi=null,_n=0,Gu=0,qu=null,qm=null,Ts=0,Yu=null;function Oe(){return(Dt&2)!==0&&wt!==0?wt&-wt:D.T!==null?Fu():id()}function Ym(){if(Ve===0)if((wt&536870912)===0||Mt){var t=ll;ll<<=1,(ll&3932160)===0&&(ll=262144),Ve=t}else Ve=536870912;return t=De.current,t!==null&&(t.flags|=32),Ve}function Ae(t,e,n){(t===Lt&&(kt===2||kt===9)||t.cancelPendingCommit!==null)&&(Ai(t,0),ia(t,wt,Ve,!1)),Yi(t,n),((Dt&2)===0||t!==Lt)&&(t===Lt&&((Dt&2)===0&&(_a|=n),Zt===4&&ia(t,wt,Ve,!1)),dn(t))}function Xm(t,e,n){if((Dt&6)!==0)throw Error(o(327));var s=!n&&(e&127)===0&&(e&t.expiredLanes)===0||qi(t,e),r=s?Rv(t,e):Zu(t,e,!0),u=s;do{if(r===0){Si&&!s&&ia(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!Nv(n)){r=Zu(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&&(Ai(b,h).flags|=256),h=Zu(b,h,!1),h!==2){if(Lu&&!T){b.errorRecoveryDisabledLanes|=u,_a|=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){Ai(t,0),ia(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:ia(s,e,Ve,!ta);break t;case 2:we=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=Pl+300-Me(),10<r)){if(ia(s,e,Ve,!ta),rl(s,0,!0)!==0)break t;_n=e,s.timeoutHandle=S0(Zm.bind(null,s,n,we,Wl,Hu,e,Ve,_a,Ti,ta,u,"Throttled",-0,0),r);break t}Zm(s,n,we,Wl,Hu,e,Ve,_a,Ti,ta,u,null,-0,0)}}break}while(!0);dn(t)}function Zm(t,e,n,s,r,u,h,b,T,N,_,G,R,k){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},Bm(e,u,G);var nt=(u&62914560)===u?Pl-Me():(u&4194048)===u?Gm-Me():0;if(nt=mb(G,nt),nt!==null){_n=u,t.cancelPendingCommit=nt(Im.bind(null,t,e,u,n,s,r,h,b,T,_,G,null,R,k)),ia(t,u,h,!N);return}}Im(t,e,u,n,s,r,h,b,T)}function Nv(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(!ze(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 ia(t,e,n,s){e&=~Uu,e&=~_a,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var r=e;0<r;){var u=31-Ce(r),h=1<<u;s[u]=-1,r&=~h}n!==0&&ed(t,n,e)}function Il(){return(Dt&6)===0?(ws(0),!1):!0}function Xu(){if(St!==null){if(kt===0)var t=St.return;else t=St,En=ja=null,lu(t),mi=null,ss=0,t=St;for(;t!==null;)Tm(t.alternate,t),t=t.return;St=null}}function Ai(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Pv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),_n=0,Xu(),Lt=t,St=n=wn(t.current,null),wt=e,kt=0,ke=null,ta=!1,Si=qi(t,e),Lu=!1,Ti=Ve=Uu=_a=ea=Zt=0,we=Ss=null,Hu=!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-Ce(s),u=1<<r;e|=t[r],s&=~u}return On=e,xl(),n}function Qm(t,e){mt=null,D.H=hs,e===hi||e===Cl?(e=rh(),kt=3):e===Jr?(e=rh(),kt=4):kt=e===Tu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ke=e,St===null&&(Zt=1,ql(t,qe(e,t.current)))}function Km(){var t=De.current;return t===null?!0:(wt&4194048)===wt?Qe===null:(wt&62914560)===wt||(wt&536870912)!==0?t===Qe:!1}function Jm(){var t=D.H;return D.H=hs,t===null?hs:t}function Fm(){var t=D.A;return D.A=Cv,t}function to(){Zt=4,ta||(wt&4194048)!==wt&&De.current!==null||(Si=!0),(ea&134217727)===0&&(_a&134217727)===0||Lt===null||ia(Lt,wt,Ve,!1)}function Zu(t,e,n){var s=Dt;Dt|=2;var r=Jm(),u=Fm();(Lt!==t||wt!==e)&&(Wl=null,Ai(t,e)),e=!1;var h=Zt;t:do try{if(kt!==0&&St!==null){var b=St,T=ke;switch(kt){case 8:Xu(),h=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var N=kt;if(kt=0,ke=null,Ei(t,b,T,N),n&&Si){h=0;break t}break;default:N=kt,kt=0,ke=null,Ei(t,b,T,N)}}Dv(),h=Zt;break}catch(_){Qm(t,_)}while(!0);return e&&t.shellSuspendCounter++,En=ja=null,Dt=s,D.H=r,D.A=u,St===null&&(Lt=null,wt=0,xl()),h}function Dv(){for(;St!==null;)Pm(St)}function Rv(t,e){var n=Dt;Dt|=2;var s=Jm(),r=Fm();Lt!==t||wt!==e?(Wl=null,$l=Me()+500,Ai(t,e)):Si=qi(t,e);t:do try{if(kt!==0&&St!==null){e=St;var u=ke;e:switch(kt){case 1:kt=0,ke=null,Ei(t,e,u,1);break;case 2:case 9:if(lh(u)){kt=0,ke=null,$m(e);break}e=function(){kt!==2&&kt!==9||Lt!==t||(kt=7),dn(t)},u.then(e,e);break t;case 3:kt=7;break t;case 4:kt=5;break t;case 7:lh(u)?(kt=0,ke=null,$m(e)):(kt=0,ke=null,Ei(t,e,u,7));break;case 5:var h=null;switch(St.tag){case 26:h=St.memoizedState;case 5:case 27:var b=St;if(h?_0(h):b.stateNode.complete){kt=0,ke=null;var T=b.sibling;if(T!==null)St=T;else{var N=b.return;N!==null?(St=N,eo(N)):St=null}break e}}kt=0,ke=null,Ei(t,e,u,5);break;case 6:kt=0,ke=null,Ei(t,e,u,6);break;case 8:Xu(),Zt=6;break t;default:throw Error(o(462))}}kv();break}catch(_){Qm(t,_)}while(!0);return En=ja=null,D.H=s,D.A=r,Dt=n,St!==null?0:(Lt=null,wt=0,xl(),Zt)}function kv(){for(;St!==null&&!n2();)Pm(St)}function Pm(t){var e=xm(t.alternate,t,On);t.memoizedProps=t.pendingProps,e===null?eo(t):St=e}function $m(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=mm(n,e,e.pendingProps,e.type,void 0,wt);break;case 11:e=mm(n,e,e.pendingProps,e.type.render,e.ref,wt);break;case 5:lu(e);default:Tm(n,e),e=St=Fd(e,On),e=xm(n,e,On)}t.memoizedProps=t.pendingProps,e===null?eo(t):St=e}function Ei(t,e,n,s){En=ja=null,lu(e),mi=null,ss=0;var r=e.return;try{if(Sv(t,r,e,n,wt)){Zt=1,ql(t,qe(n,t.current)),St=null;return}}catch(u){if(r!==null)throw St=r,u;Zt=1,ql(t,qe(n,t.current)),St=null;return}e.flags&32768?(Mt||s===1?t=!0:Si||(wt&536870912)!==0?t=!1:(ta=t=!0,(s===2||s===9||s===3||s===6)&&(s=De.current,s!==null&&s.tag===13&&(s.flags|=16384))),Wm(e,t)):eo(e)}function eo(t){var e=t;do{if((e.flags&32768)!==0){Wm(e,ta);return}t=e.return;var n=Av(e.alternate,e,On);if(n!==null){St=n;return}if(e=e.sibling,e!==null){St=e;return}St=e=t}while(e!==null);Zt===0&&(Zt=5)}function Wm(t,e){do{var n=Ev(t.alternate,t);if(n!==null){n.flags&=32767,St=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){St=t;return}St=t=n}while(t!==null);Zt=6,St=null}function Im(t,e,n,s,r,u,h,b,T){t.cancelPendingCommit=null;do no();while(ee!==0);if((Dt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=kr,d2(t,n,u,h,b,T),t===Lt&&(St=Lt=null,wt=0),wi=e,aa=t,_n=n,Gu=u,qu=r,qm=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Bv(il,function(){return i0(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=D.T,D.T=null,r=J.p,J.p=2,h=Dt,Dt|=4;try{Mv(t,e,n)}finally{Dt=h,J.p=r,D.T=s}}ee=1,t0(),e0(),n0()}}function t0(){if(ee===1){ee=0;var t=aa,e=wi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var s=J.p;J.p=2;var r=Dt;Dt|=4;try{Vm(e,t);var u=ac,h=Hd(t.containerInfo),b=u.focusedElem,T=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&Ud(b.ownerDocument.documentElement,b)){if(T!==null&&Cr(b)){var N=T.start,_=T.end;if(_===void 0&&(_=N),"selectionStart"in b)b.selectionStart=N,b.selectionEnd=Math.min(_,b.value.length);else{var G=b.ownerDocument||document,R=G&&G.defaultView||window;if(R.getSelection){var k=R.getSelection(),nt=b.textContent.length,ft=Math.min(T.start,nt),Bt=T.end===void 0?ft:Math.min(T.end,nt);!k.extend&&ft>Bt&&(h=Bt,Bt=ft,ft=h);var j=Ld(b,ft),A=Ld(b,Bt);if(j&&A&&(k.rangeCount!==1||k.anchorNode!==j.node||k.anchorOffset!==j.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var C=G.createRange();C.setStart(j.node,j.offset),k.removeAllRanges(),ft>Bt?(k.addRange(C),k.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),k.addRange(C))}}}}for(G=[],k=b;k=k.parentNode;)k.nodeType===1&&G.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var U=G[b];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}po=!!nc,ac=nc=null}finally{Dt=r,J.p=s,D.T=n}}t.current=e,ee=2}}function e0(){if(ee===2){ee=0;var t=aa,e=wi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var s=J.p;J.p=2;var r=Dt;Dt|=4;try{zm(t,e.alternate,e)}finally{Dt=r,J.p=s,D.T=n}}ee=3}}function n0(){if(ee===4||ee===3){ee=0,a2();var t=aa,e=wi,n=_n,s=qm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,wi=aa=null,a0(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(na=null),ur(n),e=e.stateNode,je&&typeof je.onCommitFiberRoot=="function")try{je.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=D.T,r=J.p,J.p=2,D.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{D.T=e,J.p=r}}(_n&3)!==0&&no(),dn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===Yu?Ts++:(Ts=0,Yu=t):Ts=0,ws(0)}}function a0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,as(e)))}function no(){return t0(),e0(),n0(),i0()}function i0(){if(ee!==5)return!1;var t=aa,e=Gu;Gu=0;var n=ur(_n),s=D.T,r=J.p;try{J.p=32>n?32:n,D.T=null,n=qu,qu=null;var u=aa,h=_n;if(ee=0,wi=aa=null,_n=0,(Dt&6)!==0)throw Error(o(331));var b=Dt;if(Dt|=4,Um(u.current),_m(u,u.current,h,n),Dt=b,ws(0,!1),je&&typeof je.onPostCommitFiberRoot=="function")try{je.onPostCommitFiberRoot(Gi,u)}catch{}return!0}finally{J.p=r,D.T=s,a0(t,e)}}function s0(t,e,n){e=qe(n,e),e=Su(t.stateNode,e,2),t=Pn(t,e,2),t!==null&&(Yi(t,2),dn(t))}function Vt(t,e,n){if(t.tag===3)s0(t,t,n);else for(;e!==null;){if(e.tag===3){s0(e,t,n);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(na===null||!na.has(s))){t=qe(n,t),n=lm(2),s=Pn(e,n,2),s!==null&&(om(n,s,e,t),Yi(s,2),dn(s));break}}e=e.return}}function Qu(t,e,n){var s=t.pingCache;if(s===null){s=t.pingCache=new zv;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)||(Lu=!0,r.add(n),t=Vv.bind(null,t,e,n),e.then(t,t))}function Vv(t,e,n){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Lt===t&&(wt&n)===n&&(Zt===4||Zt===3&&(wt&62914560)===wt&&300>Me()-Pl?(Dt&2)===0&&Ai(t,0):Uu|=n,Ti===wt&&(Ti=0)),dn(t)}function l0(t,e){e===0&&(e=td()),t=Aa(t,e),t!==null&&(Yi(t,e),dn(t))}function Ov(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),l0(t,n)}function _v(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),l0(t,n)}function Bv(t,e){return sr(t,e)}var ao=null,Mi=null,Ku=!1,io=!1,Ju=!1,sa=0;function dn(t){t!==Mi&&t.next===null&&(Mi===null?ao=Mi=t:Mi=Mi.next=t),io=!0,Ku||(Ku=!0,Uv())}function ws(t,e){if(!Ju&&io){Ju=!0;do for(var n=!1,s=ao;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-Ce(42|t)+1)-1,u&=r&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,c0(s,u))}else u=wt,u=rl(s,s===Lt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||qi(s,u)||(n=!0,c0(s,u));s=s.next}while(n);Ju=!1}}function Lv(){o0()}function o0(){io=Ku=!1;var t=0;sa!==0&&Fv()&&(t=sa);for(var e=Me(),n=null,s=ao;s!==null;){var r=s.next,u=r0(s,e);u===0?(s.next=null,n===null?ao=r:n.next=r,r===null&&(Mi=n)):(n=s,(t!==0||(u&3)!==0)&&(io=!0)),s=r}ee!==0&&ee!==5||ws(t),sa!==0&&(sa=0)}function r0(t,e){for(var n=t.suspendedLanes,s=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-Ce(u),b=1<<h,T=r[h];T===-1?((b&n)===0||(b&s)!==0)&&(r[h]=f2(b,e)):T<=e&&(t.expiredLanes|=b),u&=~b}if(e=Lt,n=wt,n=rl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,n===0||t===e&&(kt===2||kt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&lr(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&&lr(s),ur(n)){case 2:case 8:n=Wf;break;case 32:n=il;break;case 268435456:n=If;break;default:n=il}return s=u0.bind(null,t),n=sr(n,s),t.callbackPriority=e,t.callbackNode=n,e}return s!==null&&s!==null&&lr(s),t.callbackPriority=2,t.callbackNode=null,2}function u0(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(no()&&t.callbackNode!==n)return null;var s=wt;return s=rl(t,t===Lt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Xm(t,s,e),r0(t,Me()),t.callbackNode!=null&&t.callbackNode===n?u0.bind(null,t):null)}function c0(t,e){if(no())return null;Xm(t,e,!0)}function Uv(){$v(function(){(Dt&6)!==0?sr($f,Lv):o0()})}function Fu(){if(sa===0){var t=fi;t===0&&(t=sl,sl<<=1,(sl&261888)===0&&(sl=256)),sa=t}return sa}function f0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:dl(""+t)}function d0(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 Hv(t,e,n,s,r){if(e==="submit"&&n&&n.stateNode===r){var u=f0((r[ve]||null).action),h=s.submitter;h&&(e=(e=h[ve]||null)?f0(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var b=new gl("action","action",null,s,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(sa!==0){var T=h?d0(r,h):new FormData(r);pu(n,{pending:!0,data:T,method:r.method,action:u},null,T)}}else typeof u=="function"&&(b.preventDefault(),T=h?d0(r,h):new FormData(r),pu(n,{pending:!0,data:T,method:r.method,action:u},u,T))},currentTarget:r}]})}}for(var Pu=0;Pu<Rr.length;Pu++){var $u=Rr[Pu],Gv=$u.toLowerCase(),qv=$u[0].toUpperCase()+$u.slice(1);tn(Gv,"on"+qv)}tn(Yd,"onAnimationEnd"),tn(Xd,"onAnimationIteration"),tn(Zd,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(iv,"onTransitionRun"),tn(sv,"onTransitionStart"),tn(lv,"onTransitionCancel"),tn(Qd,"onTransitionEnd"),$a("onMouseEnter",["mouseout","mouseover"]),$a("onMouseLeave",["mouseout","mouseover"]),$a("onPointerEnter",["pointerout","pointerover"]),$a("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(" "),Yv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(As));function h0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var s=t[n],r=s.event;s=s.listeners;t:{var u=void 0;if(e)for(var h=s.length-1;0<=h;h--){var b=s[h],T=b.instance,N=b.currentTarget;if(b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=N;try{u(r)}catch(_){bl(_)}r.currentTarget=null,u=T}else for(h=0;h<s.length;h++){if(b=s[h],T=b.instance,N=b.currentTarget,b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=N;try{u(r)}catch(_){bl(_)}r.currentTarget=null,u=T}}}}function Tt(t,e){var n=e[cr];n===void 0&&(n=e[cr]=new Set);var s=t+"__bubble";n.has(s)||(m0(e,t,2,!1),n.add(s))}function Wu(t,e,n){var s=0;e&&(s|=4),m0(n,t,s,e)}var so="_reactListening"+Math.random().toString(36).slice(2);function Iu(t){if(!t[so]){t[so]=!0,od.forEach(function(n){n!=="selectionchange"&&(Yv.has(n)||Wu(n,!1,t),Wu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[so]||(e[so]=!0,Wu("selectionchange",!1,e))}}function m0(t,e,n,s){switch(Y0(e)){case 2:var r=yb;break;case 8:r=vb;break;default:r=mc}n=r.bind(null,e,n,t),r=void 0,!br||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 tc(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=Ja(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}bd(function(){var N=u,_=yr(n),G=[];t:{var R=Kd.get(t);if(R!==void 0){var k=gl,nt=t;switch(t){case"keypress":if(ml(n)===0)break t;case"keydown":case"keyup":k=_2;break;case"focusin":nt="focus",k=wr;break;case"focusout":nt="blur",k=wr;break;case"beforeblur":case"afterblur":k=wr;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":k=Td;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=A2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=U2;break;case Yd:case Xd:case Zd:k=j2;break;case Qd:k=G2;break;case"scroll":case"scrollend":k=T2;break;case"wheel":k=Y2;break;case"copy":case"cut":case"paste":k=z2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Ad;break;case"toggle":case"beforetoggle":k=Z2}var ft=(e&4)!==0,Bt=!ft&&(t==="scroll"||t==="scrollend"),j=ft?R!==null?R+"Capture":null:R;ft=[];for(var A=N,C;A!==null;){var U=A;if(C=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||C===null||j===null||(U=Qi(A,j),U!=null&&ft.push(Es(A,U,C))),Bt)break;A=A.return}0<ft.length&&(R=new k(R,nt,null,n,_),G.push({event:R,listeners:ft}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",R&&n!==gr&&(nt=n.relatedTarget||n.fromElement)&&(Ja(nt)||nt[Ka]))break t;if((k||R)&&(R=_.window===_?_:(R=_.ownerDocument)?R.defaultView||R.parentWindow:window,k?(nt=n.relatedTarget||n.toElement,k=N,nt=nt?Ja(nt):null,nt!==null&&(Bt=d(nt),ft=nt.tag,nt!==Bt||ft!==5&&ft!==27&&ft!==6)&&(nt=null)):(k=null,nt=N),k!==nt)){if(ft=Td,U="onMouseLeave",j="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(ft=Ad,U="onPointerLeave",j="onPointerEnter",A="pointer"),Bt=k==null?R:Zi(k),C=nt==null?R:Zi(nt),R=new ft(U,A+"leave",k,n,_),R.target=Bt,R.relatedTarget=C,U=null,Ja(_)===N&&(ft=new ft(j,A+"enter",nt,n,_),ft.target=C,ft.relatedTarget=Bt,U=ft),Bt=U,k&&nt)e:{for(ft=Xv,j=k,A=nt,C=0,U=j;U;U=ft(U))C++;U=0;for(var ot=A;ot;ot=ft(ot))U++;for(;0<C-U;)j=ft(j),C--;for(;0<U-C;)A=ft(A),U--;for(;C--;){if(j===A||A!==null&&j===A.alternate){ft=j;break e}j=ft(j),A=ft(A)}ft=null}else ft=null;k!==null&&p0(G,R,k,ft,!1),nt!==null&&Bt!==null&&p0(G,Bt,nt,ft,!0)}}t:{if(R=N?Zi(N):window,k=R.nodeName&&R.nodeName.toLowerCase(),k==="select"||k==="input"&&R.type==="file")var zt=Rd;else if(Nd(R))if(kd)zt=ev;else{zt=I2;var it=W2}else k=R.nodeName,!k||k.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?N&&pr(N.elementType)&&(zt=Rd):zt=tv;if(zt&&(zt=zt(t,N))){Dd(G,zt,n,_);break t}it&&it(t,R,N),t==="focusout"&&N&&R.type==="number"&&N.memoizedProps.value!=null&&mr(R,"number",R.value)}switch(it=N?Zi(N):window,t){case"focusin":(Nd(it)||it.contentEditable==="true")&&(ai=it,zr=N,ts=null);break;case"focusout":ts=zr=ai=null;break;case"mousedown":Nr=!0;break;case"contextmenu":case"mouseup":case"dragend":Nr=!1,Gd(G,n,_);break;case"selectionchange":if(av)break;case"keydown":case"keyup":Gd(G,n,_)}var pt;if(Er)t:{switch(t){case"compositionstart":var At="onCompositionStart";break t;case"compositionend":At="onCompositionEnd";break t;case"compositionupdate":At="onCompositionUpdate";break t}At=void 0}else ni?Cd(t,n)&&(At="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(At="onCompositionStart");At&&(Ed&&n.locale!=="ko"&&(ni||At!=="onCompositionStart"?At==="onCompositionEnd"&&ni&&(pt=xd()):(Yn=_,xr="value"in Yn?Yn.value:Yn.textContent,ni=!0)),it=lo(N,At),0<it.length&&(At=new wd(At,t,null,n,_),G.push({event:At,listeners:it}),pt?At.data=pt:(pt=zd(n),pt!==null&&(At.data=pt)))),(pt=K2?J2(t,n):F2(t,n))&&(At=lo(N,"onBeforeInput"),0<At.length&&(it=new wd("onBeforeInput","beforeinput",null,n,_),G.push({event:it,listeners:At}),it.data=pt)),Hv(G,t,N,n,_)}h0(G,e)})}function Es(t,e,n){return{instance:t,listener:e,currentTarget:n}}function lo(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 Xv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function p0(t,e,n,s,r){for(var u=e._reactName,h=[];n!==null&&n!==s;){var b=n,T=b.alternate,N=b.stateNode;if(b=b.tag,T!==null&&T===s)break;b!==5&&b!==26&&b!==27||N===null||(T=N,r?(N=Qi(n,u),N!=null&&h.unshift(Es(n,N,T))):r||(N=Qi(n,u),N!=null&&h.push(Es(n,N,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var Zv=/\r\n?/g,Qv=/\u0000|\uFFFD/g;function g0(t){return(typeof t=="string"?t:""+t).replace(Zv,`
9
+ `).replace(Qv,"")}function y0(t,e){return e=g0(e),g0(t)===e}function _t(t,e,n,s,r,u){switch(n){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Ia(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Ia(t,""+s);break;case"className":cl(t,"class",s);break;case"tabIndex":cl(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":cl(t,n,s);break;case"style":yd(t,s,u);break;case"data":if(e!=="object"){cl(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=dl(""+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"&&_t(t,e,"name",r.name,r,null),_t(t,e,"formEncType",r.formEncType,r,null),_t(t,e,"formMethod",r.formMethod,r,null),_t(t,e,"formTarget",r.formTarget,r,null)):(_t(t,e,"encType",r.encType,r,null),_t(t,e,"method",r.method,r,null),_t(t,e,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=dl(""+s),t.setAttribute(n,s);break;case"onClick":s!=null&&(t.onclick=Sn);break;case"onScroll":s!=null&&Tt("scroll",t);break;case"onScrollEnd":s!=null&&Tt("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=dl(""+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":Tt("beforetoggle",t),Tt("toggle",t),ul(t,"popover",s);break;case"xlinkActuate":xn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":xn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":xn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":xn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":xn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":xn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":xn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":xn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":xn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ul(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=x2.get(n)||n,ul(t,n,s))}}function ec(t,e,n,s,r,u){switch(n){case"style":yd(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"?Ia(t,s):(typeof s=="number"||typeof s=="bigint")&&Ia(t,""+s);break;case"onScroll":s!=null&&Tt("scroll",t);break;case"onScrollEnd":s!=null&&Tt("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rd.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,""):ul(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":Tt("error",t),Tt("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:_t(t,e,u,h,n,null)}}r&&_t(t,e,"srcSet",n.srcSet,n,null),s&&_t(t,e,"src",n.src,n,null);return;case"input":Tt("invalid",t);var b=u=h=r=null,T=null,N=null;for(s in n)if(n.hasOwnProperty(s)){var _=n[s];if(_!=null)switch(s){case"name":r=_;break;case"type":h=_;break;case"checked":T=_;break;case"defaultChecked":N=_;break;case"value":u=_;break;case"defaultValue":b=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:_t(t,e,s,_,n,null)}}hd(t,u,b,T,N,h,r,!1);return;case"select":Tt("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:_t(t,e,r,b,n,null)}e=u,n=h,t.multiple=!!s,e!=null?Wa(t,!!s,e,!1):n!=null&&Wa(t,!!s,n,!0);return;case"textarea":Tt("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:_t(t,e,h,b,n,null)}pd(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":_t(t,e,T,s,n,null));return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(s=0;s<As.length;s++)Tt(As[s],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(s=n[N],s!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:_t(t,e,N,s,n,null)}return;default:if(pr(e)){for(_ in n)n.hasOwnProperty(_)&&(s=n[_],s!==void 0&&ec(t,e,_,s,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(s=n[b],s!=null&&_t(t,e,b,s,n,null))}function Kv(t,e,n,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,b=null,T=null,N=null,_=null;for(k in n){var G=n[k];if(n.hasOwnProperty(k)&&G!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":T=G;default:s.hasOwnProperty(k)||_t(t,e,k,null,s,G)}}for(var R in s){var k=s[R];if(G=n[R],s.hasOwnProperty(R)&&(k!=null||G!=null))switch(R){case"type":u=k;break;case"name":r=k;break;case"checked":N=k;break;case"defaultChecked":_=k;break;case"value":h=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,e));break;default:k!==G&&_t(t,e,R,k,s,G)}}hr(t,h,b,T,N,_,u,r);return;case"select":k=h=b=R=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":k=T;default:s.hasOwnProperty(u)||_t(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":R=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==T&&_t(t,e,r,u,s,T)}e=b,n=h,s=k,R!=null?Wa(t,!!n,R,!1):!!s!=!!n&&(e!=null?Wa(t,!!n,e,!0):Wa(t,!!n,n?[]:"",!1));return;case"textarea":k=R=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:_t(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":R=r;break;case"defaultValue":k=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&_t(t,e,h,r,s,u)}md(t,R,k);return;case"option":for(var nt in n)R=n[nt],n.hasOwnProperty(nt)&&R!=null&&!s.hasOwnProperty(nt)&&(nt==="selected"?t.selected=!1:_t(t,e,nt,null,s,R));for(T in s)R=s[T],k=n[T],s.hasOwnProperty(T)&&R!==k&&(R!=null||k!=null)&&(T==="selected"?t.selected=R&&typeof R!="function"&&typeof R!="symbol":_t(t,e,T,R,s,k));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 ft in n)R=n[ft],n.hasOwnProperty(ft)&&R!=null&&!s.hasOwnProperty(ft)&&_t(t,e,ft,null,s,R);for(N in s)if(R=s[N],k=n[N],s.hasOwnProperty(N)&&R!==k&&(R!=null||k!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:_t(t,e,N,R,s,k)}return;default:if(pr(e)){for(var Bt in n)R=n[Bt],n.hasOwnProperty(Bt)&&R!==void 0&&!s.hasOwnProperty(Bt)&&ec(t,e,Bt,void 0,s,R);for(_ in s)R=s[_],k=n[_],!s.hasOwnProperty(_)||R===k||R===void 0&&k===void 0||ec(t,e,_,R,s,k);return}}for(var j in n)R=n[j],n.hasOwnProperty(j)&&R!=null&&!s.hasOwnProperty(j)&&_t(t,e,j,null,s,R);for(G in s)R=s[G],k=n[G],!s.hasOwnProperty(G)||R===k||R==null&&k==null||_t(t,e,G,R,s,k)}function v0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jv(){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&&v0(h)){for(h=0,b=r.responseEnd,s+=1;s<n.length;s++){var T=n[s],N=T.startTime;if(N>b)break;var _=T.transferSize,G=T.initiatorType;_&&v0(G)&&(T=T.responseEnd,h+=_*(T<b?1:(b-N)/(T-N)))}if(--s,e+=8*(u+h)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var nc=null,ac=null;function oo(t){return t.nodeType===9?t:t.ownerDocument}function b0(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 x0(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 ic(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 sc=null;function Fv(){var t=window.event;return t&&t.type==="popstate"?t===sc?!1:(sc=t,!0):(sc=null,!1)}var S0=typeof setTimeout=="function"?setTimeout:void 0,Pv=typeof clearTimeout=="function"?clearTimeout:void 0,T0=typeof Promise=="function"?Promise:void 0,$v=typeof queueMicrotask=="function"?queueMicrotask:typeof T0<"u"?function(t){return T0.resolve(null).then(t).catch(Wv)}:S0;function Wv(t){setTimeout(function(){throw t})}function la(t){return t==="head"}function w0(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),Ni(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);Ni(e)}function A0(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 lc(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":lc(n),fr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Iv(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=Ke(t.nextSibling),t===null)break}return null}function tb(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ke(t.nextSibling),t===null))return null;return t}function E0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ke(t.nextSibling),t===null))return null;return t}function oc(t){return t.data==="$?"||t.data==="$~"}function rc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function eb(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 Ke(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 uc=null;function M0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ke(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function j0(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 C0(t,e,n){switch(e=oo(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]);fr(t)}var Je=new Map,z0=new Set;function ro(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Bn=J.d;J.d={f:nb,r:ab,D:ib,C:sb,L:lb,m:ob,X:ub,S:rb,M:cb};function nb(){var t=Bn.f(),e=Il();return t||e}function ab(t){var e=Fa(t);e!==null&&e.tag===5&&e.type==="form"?Qh(e):Bn.r(t)}var ji=typeof document>"u"?null:document;function N0(t,e,n){var s=ji;if(s&&typeof e=="string"&&e){var r=He(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),z0.has(r)||(z0.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 ib(t){Bn.D(t),N0("dns-prefetch",t,null)}function sb(t,e){Bn.C(t,e),N0("preconnect",t,e)}function lb(t,e,n){Bn.L(t,e,n);var s=ji;if(s&&t&&e){var r='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+He(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+He(n.imageSizes)+'"]')):r+='[href="'+He(t)+'"]';var u=r;switch(e){case"style":u=Ci(t);break;case"script":u=zi(t)}Je.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Je.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 ob(t,e){Bn.m(t,e);var n=ji;if(n&&t){var s=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+He(s)+'"][href="'+He(t)+'"]',u=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=zi(t)}if(!Je.has(u)&&(t=x({rel:"modulepreload",href:t},e),Je.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 rb(t,e,n){Bn.S(t,e,n);var s=ji;if(s&&t){var r=Pa(s).hoistableStyles,u=Ci(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=Je.get(u))&&cc(t,n);var T=h=s.createElement("link");se(T),fe(T,"link",t),T._p=new Promise(function(N,_){T.onload=N,T.onerror=_}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,uo(h,e,s)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(u,h)}}}function ub(t,e){Bn.X(t,e);var n=ji;if(n&&t){var s=Pa(n).hoistableScripts,r=zi(t),u=s.get(r);u||(u=n.querySelector(Cs(r)),u||(t=x({src:t,async:!0},e),(e=Je.get(r))&&fc(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 cb(t,e){Bn.M(t,e);var n=ji;if(n&&t){var s=Pa(n).hoistableScripts,r=zi(t),u=s.get(r);u||(u=n.querySelector(Cs(r)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Je.get(r))&&fc(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 D0(t,e,n,s){var r=(r=rt.current)?ro(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=Ci(n.href),n=Pa(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=Ci(n.href);var u=Pa(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),Je.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},Je.set(t,n),u||fb(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=zi(n),n=Pa(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 Ci(t){return'href="'+He(t)+'"'}function js(t){return'link[rel="stylesheet"]['+t+"]"}function R0(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function fb(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 zi(t){return'[src="'+He(t)+'"]'}function Cs(t){return"script[async]"+t}function k0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+He(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),uo(s,n.precedence,t),e.instance=s;case"stylesheet":r=Ci(n.href);var u=t.querySelector(js(r));if(u)return e.state.loading|=4,e.instance=u,se(u),u;s=R0(n),(r=Je.get(r))&&cc(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,uo(u,n.precedence,t),e.instance=u;case"script":return u=zi(n.src),(r=t.querySelector(Cs(u)))?(e.instance=r,se(r),r):(s=n,(r=Je.get(u))&&(s=x({},n),fc(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,uo(s,n.precedence,t));return e.instance}function uo(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 cc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function fc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var co=null;function V0(t,e,n){if(co===null){var s=new Map,r=co=new Map;r.set(n,s)}else r=co,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 db(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 hb(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=Ci(s.href),u=e.querySelector(js(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=fo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,se(u);return}u=e.ownerDocument||e,s=R0(s),(r=Je.get(r))&&cc(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=fo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var dc=0;function mb(t,e){return t.stylesheets&&t.count===0&&mo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var s=setTimeout(function(){if(t.stylesheets&&mo(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&dc===0&&(dc=62500*Jv());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&mo(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>dc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ho=null;function mo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ho=new Map,e.forEach(pb,t),ho=null,fo.call(t))}function pb(t,e){if(!(e.state.loading&4)){var n=ho.get(t);if(n)var s=n.get(null);else{n=new Map,ho.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=fo.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:Y,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function gb(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=or(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=or(0),this.hiddenUpdates=or(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 B0(t,e,n,s,r,u,h,b,T,N,_,G){return t=new gb(t,e,n,h,T,N,_,G,b),e=1,u===!0&&(e|=24),u=Ne(3,null,null,e),t.current=u,u.stateNode=t,e=Zr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:e},Fr(u),t}function L0(t){return t?(t=li,t):li}function U0(t,e,n,s,r,u){r=L0(r),s.context===null?s.context=r:s.pendingContext=r,s=Fn(e),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=Pn(t,s,e),n!==null&&(Ae(n,t,e),os(n,t,e))}function H0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function hc(t,e){H0(t,e),(t=t.alternate)&&H0(t,e)}function G0(t){if(t.tag===13||t.tag===31){var e=Aa(t,67108864);e!==null&&Ae(e,t,67108864),hc(t,67108864)}}function q0(t){if(t.tag===13||t.tag===31){var e=Oe();e=rr(e);var n=Aa(t,e);n!==null&&Ae(n,t,e),hc(t,e)}}var po=!0;function yb(t,e,n,s){var r=D.T;D.T=null;var u=J.p;try{J.p=2,mc(t,e,n,s)}finally{J.p=u,D.T=r}}function vb(t,e,n,s){var r=D.T;D.T=null;var u=J.p;try{J.p=8,mc(t,e,n,s)}finally{J.p=u,D.T=r}}function mc(t,e,n,s){if(po){var r=pc(s);if(r===null)tc(t,e,s,go,n),X0(t,s);else if(xb(r,t,e,n,s))s.stopPropagation();else if(X0(t,s),e&4&&-1<bb.indexOf(t)){for(;r!==null;){var u=Fa(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-Ce(h);b.entanglements[1]|=T,h&=~T}dn(u),(Dt&6)===0&&($l=Me()+500,ws(0))}}break;case 31:case 13:b=Aa(u,2),b!==null&&Ae(b,u,2),Il(),hc(u,2)}if(u=pc(s),u===null&&tc(t,e,s,go,n),u===r)break;r=u}r!==null&&s.stopPropagation()}else tc(t,e,s,null,n)}}function pc(t){return t=yr(t),gc(t)}var go=null;function gc(t){if(go=null,t=Ja(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return go=t,null}function Y0(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(i2()){case $f:return 2;case Wf:return 8;case il:case s2:return 32;case If:return 268435456;default:return 32}default:return 32}}var yc=!1,oa=null,ra=null,ua=null,Ns=new Map,Ds=new Map,ca=[],bb="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 X0(t,e){switch(t){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":ua=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=Fa(e),e!==null&&G0(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function xb(t,e,n,s,r){switch(e){case"focusin":return oa=Rs(oa,t,e,n,s,r),!0;case"dragenter":return ra=Rs(ra,t,e,n,s,r),!0;case"mouseover":return ua=Rs(ua,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 Z0(t){var e=Ja(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,sd(t.priority,function(){q0(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,sd(t.priority,function(){q0(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 yo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=pc(t.nativeEvent);if(n===null){n=t.nativeEvent;var s=new n.constructor(n.type,n);gr=s,n.target.dispatchEvent(s),gr=null}else return e=Fa(n),e!==null&&G0(e),t.blockedOn=n,!1;e.shift()}return!0}function Q0(t,e,n){yo(t)&&n.delete(e)}function Sb(){yc=!1,oa!==null&&yo(oa)&&(oa=null),ra!==null&&yo(ra)&&(ra=null),ua!==null&&yo(ua)&&(ua=null),Ns.forEach(Q0),Ds.forEach(Q0)}function vo(t,e){t.blockedOn===e&&(t.blockedOn=null,yc||(yc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Sb)))}var bo=null;function K0(t){bo!==t&&(bo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){bo===t&&(bo=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(gc(s||n)===null)continue;break}var u=Fa(n);u!==null&&(t.splice(e,3),e-=3,pu(u,{pending:!0,data:r,method:n.method,action:s},s,r))}}))}function Ni(t){function e(T){return vo(T,t)}oa!==null&&vo(oa,t),ra!==null&&vo(ra,t),ua!==null&&vo(ua,t),Ns.forEach(e),Ds.forEach(e);for(var n=0;n<ca.length;n++){var s=ca[n];s.blockedOn===t&&(s.blockedOn=null)}for(;0<ca.length&&(n=ca[0],n.blockedOn===null);)Z0(n),n.blockedOn===null&&ca.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||K0(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[ve]||null)b=h.formAction;else if(gc(r)!==null)continue}else b=h.action;typeof b=="function"?n[s+1]=b:(n.splice(s,3),s-=3),K0(n)}}}function J0(){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 vc(t){this._internalRoot=t}xo.prototype.render=vc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,s=Oe();U0(n,s,t,e,null,null)},xo.prototype.unmount=vc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;U0(t.current,2,null,t,null,null),Il(),e[Ka]=null}};function xo(t){this._internalRoot=t}xo.prototype.unstable_scheduleHydration=function(t){if(t){var e=id();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ca.length&&e!==0&&e<ca[n].priority;n++);ca.splice(n,0,t),n===0&&Z0(t)}};var F0=i.version;if(F0!=="19.2.6")throw Error(o(527,F0,"19.2.6"));J.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Tb={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{Gi=So.inject(Tb),je=So}catch{}}return Vs.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,s="",r=nm,u=am,h=im;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=B0(t,1,!1,null,null,n,s,null,r,u,h,J0),t[Ka]=e.current,Iu(t),new vc(e)},Vs.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var s=!1,r="",u=nm,h=am,b=im,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=B0(t,1,!0,e,n??null,s,r,T,u,h,b,J0),e.context=L0(null),n=e.current,s=Oe(),s=rr(s),r=Fn(s),r.callback=null,Pn(n,r,s),n=s,e.current.lanes=n,Yi(e,n),dn(e),t[Ka]=e.current,Iu(t),new xo(e)},Vs.version="19.2.6",Vs}var s1;function Db(){if(s1)return Sc.exports;s1=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(),Sc.exports=Nb(),Sc.exports}var Gp=Db();const qp=(...a)=>a.filter((i,l,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===l).join(" ").trim();const Rb=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const kb=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,o)=>o?o.toUpperCase():l.toLowerCase());const l1=a=>{const i=kb(a);return i.charAt(0).toUpperCase()+i.slice(1)};var Ec={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 Vb=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Ob=V.createContext({}),_b=()=>V.useContext(Ob),Bb=V.forwardRef(({color:a,size:i,strokeWidth:l,absoluteStrokeWidth:o,className:c="",children:d,iconNode:f,...m},y)=>{const{size:p=24,strokeWidth:v=2,absoluteStrokeWidth:x=!1,color:S="currentColor",className:M=""}=_b()??{},E=o??x?Number(l??v)*24/Number(i??p):l??v;return V.createElement("svg",{ref:y,...Ec,width:i??p??Ec.width,height:i??p??Ec.height,stroke:a??S,strokeWidth:E,className:qp("lucide",M,c),...!d&&!Vb(m)&&{"aria-hidden":"true"},...m},[...f.map(([z,O])=>V.createElement(z,O)),...Array.isArray(d)?d:[d]])});const gt=(a,i)=>{const l=V.forwardRef(({className:o,...c},d)=>V.createElement(Bb,{ref:d,iconNode:i,className:qp(`lucide-${Rb(l1(a))}`,`lucide-${a}`,o),...c}));return l.displayName=l1(a),l};const Lb=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Ub=gt("activity",Lb);const Hb=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Gb=gt("arrow-down",Hb);const qb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Yb=gt("arrow-up",qb);const Xb=[["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"}]],o1=gt("box",Xb);const Zb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qb=gt("check",Zb);const Kb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ws=gt("chevron-down",Kb);const Jb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fb=gt("chevron-right",Jb);const Pb=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],$b=gt("cpu",Pb);const Wb=[["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"}]],Ib=gt("database",Wb);const t3=[["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"}]],e3=gt("earth",t3);const n3=[["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"}]],a3=gt("external-link",n3);const i3=[["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"}]],s3=gt("file-code-corner",i3);const l3=[["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"}]],o3=gt("file-text",l3);const r3=[["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"}]],u3=gt("file",r3);const c3=[["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"}]],f3=gt("flask-conical",c3);const d3=[["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"}]],h3=gt("folder-plus",d3);const m3=[["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"}]],bf=gt("folder",m3);const p3=[["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"}]],Uo=gt("git-branch",p3);const g3=[["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"}]],y3=gt("git-pull-request-create",g3);const v3=[["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"}]],b3=gt("image",v3);const x3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Yp=gt("loader-circle",x3);const S3=[["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"}]],T3=gt("lock-keyhole",S3);const w3=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],A3=gt("memory-stick",w3);const E3=[["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"}]],M3=gt("network",E3);const j3=[["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"}]],C3=gt("palette",j3);const z3=[["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"}]],N3=gt("panel-left-close",z3);const D3=[["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"}]],R3=gt("panel-left-open",D3);const k3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],V3=gt("panel-left",k3);const O3=[["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"}]],_3=gt("pencil",O3);const B3=[["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"}]],L3=gt("play",B3);const U3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ho=gt("plus",U3);const H3=[["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"}]],r1=gt("radio",H3);const G3=[["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"}]],Xp=gt("refresh-cw",G3);const q3=[["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"}]],Y3=gt("rotate-ccw",q3);const X3=[["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"}]],Z3=gt("save",X3);const Q3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],K3=gt("search",Q3);const J3=[["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"}]],F3=gt("server",J3);const P3=[["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"}]],$3=gt("settings-2",P3);const W3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],I3=gt("square",W3);const tx=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Zp=gt("terminal",tx);const ex=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$o=gt("x",ex),nx="/assets/nomoreide-logo-B2E14b65.png";async function ax(){return Is("/api/dashboard")}async function ix(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 sx(a){return Is(`/api/fs/directories?path=${encodeURIComponent(a)}`)}async function u1(a){return(await Is(`/api/services/${encodeURIComponent(a)}/logs`)).logs}async function ln(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 Is(a,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function lx(a){return ox("/api/services/test",a)}async function ox(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));return Is(a,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function Is(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 Qp(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=Qp(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=Qp(a))&&(o&&(o+=" "),o+=i);return o}const c1=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,f1=Qs,Kp=(a,i)=>l=>{var o;if(i?.variants==null)return f1(a,l?.class,l?.className);const{variants:c,defaultVariants:d}=i,f=Object.keys(c).map(p=>{const v=l?.[p],x=d?.[p];if(v===null)return null;const S=c1(v)||c1(x);return c[p][S]}),m=l&&Object.entries(l).reduce((p,v)=>{let[x,S]=v;return S===void 0||(p[x]=S),p},{}),y=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((p,v)=>{let{class:x,className:S,...M}=v;return Object.entries(M).every(E=>{let[z,O]=E;return Array.isArray(O)?O.includes({...d,...m}[z]):{...d,...m}[z]===O})?[...p,x,S]:p},[]);return f1(a,f,y,l?.class,l?.className)},rx=(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},ux=(a,i)=>({classGroupId:a,validator:i}),Jp=(a=new Map,i=null,l)=>({nextPart:a,validators:i,classGroupId:l}),Go="-",d1=[],cx="arbitrary..",fx=a=>{const i=hx(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return dx(f);const m=f.split(Go),y=m[0]===""&&m.length>1?1:0;return Fp(m,y,i)},getConflictingClassGroupIds:(f,m)=>{if(m){const y=o[f],p=l[f];return y?p?rx(p,y):y:p||d1}return l[f]||d1}}},Fp=(a,i,l)=>{if(a.length-i===0)return l.classGroupId;const c=a[i],d=l.nextPart.get(c);if(d){const p=Fp(a,i+1,d);if(p)return p}const f=l.validators;if(f===null)return;const m=i===0?a.join(Go):a.slice(i).join(Go),y=f.length;for(let p=0;p<y;p++){const v=f[p];if(v.validator(m))return v.classGroupId}},dx=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?cx+o:void 0})(),hx=a=>{const{theme:i,classGroups:l}=a;return mx(l,i)},mx=(a,i)=>{const l=Jp();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 d=0;d<c;d++){const f=a[d];px(f,i,l,o)}},px=(a,i,l,o)=>{if(typeof a=="string"){gx(a,i,l);return}if(typeof a=="function"){yx(a,i,l,o);return}vx(a,i,l,o)},gx=(a,i,l)=>{const o=a===""?i:Pp(i,a);o.classGroupId=l},yx=(a,i,l,o)=>{if(bx(a)){xf(a(o),i,l,o);return}i.validators===null&&(i.validators=[]),i.validators.push(ux(l,a))},vx=(a,i,l,o)=>{const c=Object.entries(a),d=c.length;for(let f=0;f<d;f++){const[m,y]=c[f];xf(y,Pp(i,m),l,o)}},Pp=(a,i)=>{let l=a;const o=i.split(Go),c=o.length;for(let d=0;d<c;d++){const f=o[d];let m=l.nextPart.get(f);m||(m=Jp(),l.nextPart.set(f,m)),l=m}return l},bx=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,xx=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),o=Object.create(null);const c=(d,f)=>{l[d]=f,i++,i>a&&(i=0,o=l,l=Object.create(null))};return{get(d){let f=l[d];if(f!==void 0)return f;if((f=o[d])!==void 0)return c(d,f),f},set(d,f){d in l?l[d]=f:c(d,f)}}},Qc="!",h1=":",Sx=[],m1=(a,i,l,o,c)=>({modifiers:a,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:o,isExternal:c}),Tx=a=>{const{prefix:i,experimentalParseClassName:l}=a;let o=c=>{const d=[];let f=0,m=0,y=0,p;const v=c.length;for(let z=0;z<v;z++){const O=c[z];if(f===0&&m===0){if(O===h1){d.push(c.slice(y,z)),y=z+1;continue}if(O==="/"){p=z;continue}}O==="["?f++:O==="]"?f--:O==="("?m++:O===")"&&m--}const x=d.length===0?c:c.slice(y);let S=x,M=!1;x.endsWith(Qc)?(S=x.slice(0,-1),M=!0):x.startsWith(Qc)&&(S=x.slice(1),M=!0);const E=p&&p>y?p-y:void 0;return m1(d,M,S,E)};if(i){const c=i+h1,d=o;o=f=>f.startsWith(c)?d(f.slice(c.length)):m1(Sx,!1,f,void 0,!0)}if(l){const c=o;o=d=>l({className:d,parseClassName:c})}return o},wx=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((l,o)=>{i.set(l,1e6+o)}),l=>{const o=[];let c=[];for(let d=0;d<l.length;d++){const f=l[d],m=f[0]==="[",y=i.has(f);m||y?(c.length>0&&(c.sort(),o.push(...c),c=[]),o.push(f)):c.push(f)}return c.length>0&&(c.sort(),o.push(...c)),o}},Ax=a=>({cache:xx(a.cacheSize),parseClassName:Tx(a),sortModifiers:wx(a),postfixLookupClassGroupIds:Ex(a),...fx(a)}),Ex=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},Mx=/\s+/,jx=(a,i)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:d,postfixLookupClassGroupIds:f}=i,m=[],y=a.trim().split(Mx);let p="";for(let v=y.length-1;v>=0;v-=1){const x=y[v],{isExternal:S,modifiers:M,hasImportantModifier:E,baseClassName:z,maybePostfixModifierPosition:O}=l(x);if(S){p=x+(p.length>0?" "+p:p);continue}let L=!!O,Z;if(L){const F=z.substring(0,O);Z=o(F);const B=Z&&f[Z]?o(z):void 0;B&&B!==Z&&(Z=B,L=!1)}else Z=o(z);if(!Z){if(!L){p=x+(p.length>0?" "+p:p);continue}if(Z=o(z),!Z){p=x+(p.length>0?" "+p:p);continue}L=!1}const Y=M.length===0?"":M.length===1?M[0]:d(M).join(":"),X=E?Y+Qc:Y,q=X+Z;if(m.indexOf(q)>-1)continue;m.push(q);const P=c(Z,L);for(let F=0;F<P.length;++F){const B=P[F];m.push(X+B)}p=x+(p.length>0?" "+p:p)}return p},Cx=(...a)=>{let i=0,l,o,c="";for(;i<a.length;)(l=a[i++])&&(o=$p(l))&&(c&&(c+=" "),c+=o);return c},$p=a=>{if(typeof a=="string")return a;let i,l="";for(let o=0;o<a.length;o++)a[o]&&(i=$p(a[o]))&&(l&&(l+=" "),l+=i);return l},zx=(a,...i)=>{let l,o,c,d;const f=y=>{const p=i.reduce((v,x)=>x(v),a());return l=Ax(p),o=l.cache.get,c=l.cache.set,d=m,m(y)},m=y=>{const p=o(y);if(p)return p;const v=jx(y,l);return c(y,v),v};return d=f,(...y)=>d(Cx(...y))},Nx=[],ne=a=>{const i=l=>l[a]||Nx;return i.isThemeGetter=!0,i},Wp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ip=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Rx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kx=/\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$/,Vx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ox=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_x=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,da=a=>Dx.test(a),xt=a=>!!a&&!Number.isNaN(Number(a)),hn=a=>!!a&&Number.isInteger(Number(a)),Mc=a=>a.endsWith("%")&&xt(a.slice(0,-1)),Ln=a=>Rx.test(a),tg=()=>!0,Bx=a=>kx.test(a)&&!Vx.test(a),Sf=()=>!1,Lx=a=>Ox.test(a),Ux=a=>_x.test(a),Hx=a=>!I(a)&&!et(a),Gx=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)),qx=a=>ya(a,ag,Sf),I=a=>Wp.test(a),Ba=a=>ya(a,ig,Bx),p1=a=>ya(a,Px,xt),Yx=a=>ya(a,lg,tg),Xx=a=>ya(a,sg,Sf),g1=a=>ya(a,eg,Sf),Zx=a=>ya(a,ng,Ux),To=a=>ya(a,og,Lx),et=a=>Ip.test(a),Os=a=>Xa(a,ig),Qx=a=>Xa(a,sg),y1=a=>Xa(a,eg),Kx=a=>Xa(a,ag),Jx=a=>Xa(a,ng),wo=a=>Xa(a,og,!0),Fx=a=>Xa(a,lg,!0),ya=(a,i,l)=>{const o=Wp.exec(a);return o?o[1]?i(o[1]):l(o[2]):!1},Xa=(a,i,l=!1)=>{const o=Ip.exec(a);return o?o[1]?i(o[1]):l:!1},eg=a=>a==="position"||a==="percentage",ng=a=>a==="image"||a==="url",ag=a=>a==="length"||a==="size"||a==="bg-size",ig=a=>a==="length",Px=a=>a==="number",sg=a=>a==="family-name",lg=a=>a==="number"||a==="weight",og=a=>a==="shadow",$x=()=>{const a=ne("color"),i=ne("font"),l=ne("text"),o=ne("font-weight"),c=ne("tracking"),d=ne("leading"),f=ne("breakpoint"),m=ne("container"),y=ne("spacing"),p=ne("radius"),v=ne("shadow"),x=ne("inset-shadow"),S=ne("text-shadow"),M=ne("drop-shadow"),E=ne("blur"),z=ne("perspective"),O=ne("aspect"),L=ne("ease"),Z=ne("animate"),Y=()=>["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"],q=()=>[...X(),et,I],P=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],B=()=>[et,I,y],dt=()=>[da,"full","auto",...B()],lt=()=>[hn,"none","subgrid",et,I],K=()=>["auto",{span:["full",hn,et,I]},hn,et,I],ut=()=>[hn,"auto",et,I],Ct=()=>["auto","min","max","fr",et,I],Rt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],yt=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...B()],J=()=>[da,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],W=()=>[da,"screen","full","dvw","lvw","svw","min","max","fit",...B()],ct=()=>[da,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],Q=()=>[a,et,I],w=()=>[...X(),y1,g1,{position:[et,I]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",Kx,qx,{size:[et,I]}],tt=()=>[Mc,Os,Ba],st=()=>["","none","full",p,et,I],rt=()=>["",xt,Os,Ba],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"],vt=()=>[xt,Mc,y1,g1],Un=()=>["","none",E,et,I],bn=()=>["none",xt,et,I],Hn=()=>["none",xt,et,I],Qa=()=>[xt,et,I],Le=()=>[da,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[tg],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[Hx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",xt],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",da,I,et,O]}],container:["container"],"container-type":[{"@container":["","normal","size",et,I]}],"container-named":[Gx],columns:[{columns:[xt,I,et,m]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:dt()}],"inset-x":[{"inset-x":dt()}],"inset-y":[{"inset-y":dt()}],start:[{"inset-s":dt(),start:dt()}],end:[{"inset-e":dt(),end:dt()}],"inset-bs":[{"inset-bs":dt()}],"inset-be":[{"inset-be":dt()}],top:[{top:dt()}],right:[{right:dt()}],bottom:[{bottom:dt()}],left:[{left:dt()}],visibility:["visible","invisible","collapse"],z:[{z:[hn,"auto",et,I]}],basis:[{basis:[da,"full","auto",m,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xt,da,"auto","initial","none",I]}],grow:[{grow:["",xt,et,I]}],shrink:[{shrink:["",xt,et,I]}],order:[{order:[hn,"first","last","none",et,I]}],"grid-cols":[{"grid-cols":lt()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":ut()}],"col-end":[{"col-end":ut()}],"grid-rows":[{"grid-rows":lt()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":ut()}],"row-end":[{"row-end":ut()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ct()}],"auto-rows":[{"auto-rows":Ct()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...Rt(),"normal"]}],"justify-items":[{"justify-items":[...yt(),"normal"]}],"justify-self":[{"justify-self":["auto",...yt()]}],"align-content":[{content:["normal",...Rt()]}],"align-items":[{items:[...yt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...yt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Rt()}],"place-items":[{"place-items":[...yt(),"baseline"]}],"place-self":[{"place-self":["auto",...yt()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...ct()]}],"min-block-size":[{"min-block":["auto",...ct()]}],"max-block-size":[{"max-block":["none",...ct()]}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",l,Os,Ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Fx,Yx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mc,I]}],"font-family":[{font:[Qx,Xx,i]}],"font-features":[{"font-features":[I]}],"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,I]}],"line-clamp":[{"line-clamp":[xt,"none",et,p1]}],leading:[{leading:[d,...B()]}],"list-image":[{"list-image":["none",et,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",et,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Et(),"wavy"]}],"text-decoration-thickness":[{decoration:[xt,"from-font","auto",et,Ba]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[xt,"auto",et,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"tab-size":[{tab:[hn,et,I]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",et,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hn,et,I],radial:["",et,I],conic:[hn,et,I]},Jx,Zx]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:tt()}],"gradient-via-pos":[{via:tt()}],"gradient-to-pos":[{to:tt()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],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:rt()}],"border-w-x":[{"border-x":rt()}],"border-w-y":[{"border-y":rt()}],"border-w-s":[{"border-s":rt()}],"border-w-e":[{"border-e":rt()}],"border-w-bs":[{"border-bs":rt()}],"border-w-be":[{"border-be":rt()}],"border-w-t":[{"border-t":rt()}],"border-w-r":[{"border-r":rt()}],"border-w-b":[{"border-b":rt()}],"border-w-l":[{"border-l":rt()}],"divide-x":[{"divide-x":rt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":rt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Et(),"hidden","none"]}],"divide-style":[{divide:[...Et(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...Et(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xt,et,I]}],"outline-w":[{outline:["",xt,Os,Ba]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",v,wo,To]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",x,wo,To]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:rt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[xt,Ba]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":rt()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",S,wo,To]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[xt,et,I]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xt]}],"mask-image-linear-from-pos":[{"mask-linear-from":vt()}],"mask-image-linear-to-pos":[{"mask-linear-to":vt()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":vt()}],"mask-image-t-to-pos":[{"mask-t-to":vt()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":vt()}],"mask-image-r-to-pos":[{"mask-r-to":vt()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":vt()}],"mask-image-b-to-pos":[{"mask-b-to":vt()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":vt()}],"mask-image-l-to-pos":[{"mask-l-to":vt()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":vt()}],"mask-image-x-to-pos":[{"mask-x-to":vt()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":vt()}],"mask-image-y-to-pos":[{"mask-y-to":vt()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[et,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":vt()}],"mask-image-radial-to-pos":[{"mask-radial-to":vt()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"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":[xt]}],"mask-image-conic-from-pos":[{"mask-conic-from":vt()}],"mask-image-conic-to-pos":[{"mask-conic-to":vt()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",et,I]}],filter:[{filter:["","none",et,I]}],blur:[{blur:Un()}],brightness:[{brightness:[xt,et,I]}],contrast:[{contrast:[xt,et,I]}],"drop-shadow":[{"drop-shadow":["","none",M,wo,To]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",xt,et,I]}],"hue-rotate":[{"hue-rotate":[xt,et,I]}],invert:[{invert:["",xt,et,I]}],saturate:[{saturate:[xt,et,I]}],sepia:[{sepia:["",xt,et,I]}],"backdrop-filter":[{"backdrop-filter":["","none",et,I]}],"backdrop-blur":[{"backdrop-blur":Un()}],"backdrop-brightness":[{"backdrop-brightness":[xt,et,I]}],"backdrop-contrast":[{"backdrop-contrast":[xt,et,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xt,et,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xt,et,I]}],"backdrop-invert":[{"backdrop-invert":["",xt,et,I]}],"backdrop-opacity":[{"backdrop-opacity":[xt,et,I]}],"backdrop-saturate":[{"backdrop-saturate":[xt,et,I]}],"backdrop-sepia":[{"backdrop-sepia":["",xt,et,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",et,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xt,"initial",et,I]}],ease:[{ease:["linear","initial",L,et,I]}],delay:[{delay:[xt,et,I]}],animate:[{animate:["none",Z,et,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,et,I]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:bn()}],"rotate-x":[{"rotate-x":bn()}],"rotate-y":[{"rotate-y":bn()}],"rotate-z":[{"rotate-z":bn()}],scale:[{scale:Hn()}],"scale-x":[{"scale-x":Hn()}],"scale-y":[{"scale-y":Hn()}],"scale-z":[{"scale-z":Hn()}],"scale-3d":["scale-3d"],skew:[{skew:Qa()}],"skew-x":[{"skew-x":Qa()}],"skew-y":[{"skew-y":Qa()}],transform:[{transform:[et,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"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:[hn,et,I]}],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"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,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Q()}],"scrollbar-track-color":[{"scrollbar-track":Q()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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,I]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[xt,Os,Ba,p1]}],stroke:[{stroke:["none",...Q()]}],"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"]}},Wx=zx($x);function bt(...a){return Wx(Qs(a))}const Ix=Kp("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 jt({className:a,variant:i,size:l,...o}){return g.jsx("button",{className:bt(Ix({variant:i,size:l,className:a})),...o})}const rg=V.createContext({});function t5(a){const i=V.useRef(null);return i.current===null&&(i.current=a()),i.current}const e5=typeof window<"u",n5=e5?V.useLayoutEffect:V.useEffect,Tf=V.createContext(null);function wf(a,i){a.indexOf(i)===-1&&a.push(i)}function qo(a,i){const l=a.indexOf(i);l>-1&&a.splice(l,1)}const vn=(a,i,l)=>l>i?i:l<a?a:l;let Af=()=>{};const pa={},ug=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function cg(a){return typeof a=="object"&&a!==null}const fg=a=>/^0[^.\s]+$/u.test(a);function dg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Pe=a=>a,a5=(a,i)=>l=>i(a(l)),tl=(...a)=>a.reduce(a5),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),()=>qo(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 d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=a=>a*1e3,Fe=a=>a/1e3;function hg(a,i){return i?a*(1e3/i):0}const mg=(a,i,l)=>(((1-3*l+3*i)*a+(3*l-6*i))*a+3*i)*a,i5=1e-7,s5=12;function l5(a,i,l,o,c){let d,f,m=0;do f=i+(l-i)/2,d=mg(f,o,c)-a,d>0?l=f:i=f;while(Math.abs(d)>i5&&++m<s5);return f}function el(a,i,l,o){if(a===i&&l===o)return Pe;const c=d=>l5(d,0,1,a,l);return d=>d===0||d===1?d:mg(c(d),i,o)}const pg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,gg=a=>i=>1-a(1-i),yg=el(.33,1.53,.69,.99),Mf=gg(yg),vg=pg(Mf),bg=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)),xg=gg(jf),Sg=pg(jf),o5=el(.42,0,1,1),r5=el(0,0,.58,1),Tg=el(.42,0,.58,1),u5=a=>Array.isArray(a)&&typeof a[0]!="number",wg=a=>Array.isArray(a)&&typeof a[0]=="number",c5={linear:Pe,easeIn:o5,easeInOut:Tg,easeOut:r5,circIn:jf,circInOut:Sg,circOut:xg,backIn:Mf,backInOut:vg,backOut:yg,anticipate:bg},f5=a=>typeof a=="string",v1=a=>{if(wg(a)){Af(a.length===4);const[i,l,o,c]=a;return el(i,l,o,c)}else if(f5(a))return c5[a];return a},Ao=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function d5(a,i){let l=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(v){f.has(v)&&(p.schedule(v),a()),v(m)}const p={schedule:(v,x=!1,S=!1)=>{const E=S&&c?l:o;return x&&f.add(v),E.add(v),v},cancel:v=>{o.delete(v),f.delete(v)},process:v=>{if(m=v,c){d=!0;return}c=!0;const x=l;l=o,o=x,l.forEach(y),l.clear(),c=!1,d&&(d=!1,p.process(v))}};return p}const h5=40;function Ag(a,i){let l=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>l=!0,f=Ao.reduce((Y,X)=>(Y[X]=d5(d),Y),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:x,preRender:S,render:M,postRender:E}=f,z=()=>{const Y=pa.useManualTiming,X=Y?c.timestamp:performance.now();l=!1,Y||(c.delta=o?1e3/60:Math.max(Math.min(X-c.timestamp,h5),1)),c.timestamp=X,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),v.process(c),x.process(c),S.process(c),M.process(c),E.process(c),c.isProcessing=!1,l&&i&&(o=!1,a(z))},O=()=>{l=!0,o=!0,c.isProcessing||a(z)};return{schedule:Ao.reduce((Y,X)=>{const q=f[X];return Y[X]=(P,F=!1,B=!1)=>(l||O(),q.schedule(P,F,B)),Y},{}),cancel:Y=>{for(let X=0;X<Ao.length;X++)f[Ao[X]].cancel(Y)},state:c,steps:f}}const{schedule:Ut,cancel:ga,state:de,steps:jc}=Ag(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let No;function m5(){No=void 0}const ge={now:()=>(No===void 0&&ge.set(de.isProcessing||pa.useManualTiming?de.timestamp:performance.now()),No),set:a=>{No=a,queueMicrotask(m5)}},Eg=a=>i=>typeof i=="string"&&i.startsWith(a),Mg=Eg("--"),p5=Eg("var(--"),Cf=a=>p5(a)?g5.test(a.split("/*")[0].trim()):!1,g5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function b1(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=>vn(0,1,a)},Eo={...Li,default:1},Ls=a=>Math.round(a*1e5)/1e5,zf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function y5(a){return a==null}const v5=/^(?:#[\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"&&v5.test(l)&&l.startsWith(a)||i&&!y5(l)&&Object.prototype.hasOwnProperty.call(l,i)),jg=(a,i,l)=>o=>{if(typeof o!="string")return o;const[c,d,f,m]=o.match(zf);return{[a]:parseFloat(c),[i]:parseFloat(d),[l]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},b5=a=>vn(0,255,a),Cc={...Li,transform:a=>Math.round(b5(a))},Ha={test:Nf("rgb","red"),parse:jg("red","green","blue"),transform:({red:a,green:i,blue:l,alpha:o=1})=>"rgba("+Cc.transform(a)+", "+Cc.transform(i)+", "+Cc.transform(l)+", "+Ls(Js.transform(o))+")"};function x5(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 Kc={test:Nf("#"),parse:x5,transform:Ha.transform},nl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),ha=nl("deg"),yn=nl("%"),at=nl("px"),S5=nl("vh"),T5=nl("vw"),x1={...yn,parse:a=>yn.parse(a)/100,transform:a=>yn.transform(a*100)},ki={test:Nf("hsl","hue"),parse:jg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:l,alpha:o=1})=>"hsla("+Math.round(a)+", "+yn.transform(Ls(i))+", "+yn.transform(Ls(l))+", "+Ls(Js.transform(o))+")"},It={test:a=>Ha.test(a)||Kc.test(a)||ki.test(a),parse:a=>Ha.test(a)?Ha.parse(a):ki.test(a)?ki.parse(a):Kc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ha.transform(a):ki.transform(a),getAnimatableNone:a=>{const i=It.parse(a);return i.alpha=0,It.transform(i)}},w5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function A5(a){return isNaN(a)&&typeof a=="string"&&(a.match(zf)?.length||0)+(a.match(w5)?.length||0)>0}const Cg="number",zg="color",E5="var",M5="var(",S1="${}",j5=/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 d=0;const m=i.replace(j5,y=>(It.test(y)?(o.color.push(d),c.push(zg),l.push(It.parse(y))):y.startsWith(M5)?(o.var.push(d),c.push(E5),l.push(y)):(o.number.push(d),c.push(Cg),l.push(parseFloat(y))),++d,S1)).split(S1);return{values:l,split:m,indexes:o,types:c}}function C5(a){return _i(a).values}function Ng({split:a,types:i}){const l=a.length;return o=>{let c="";for(let d=0;d<l;d++)if(c+=a[d],o[d]!==void 0){const f=i[d];f===Cg?c+=Ls(o[d]):f===zg?c+=It.transform(o[d]):c+=o[d]}return c}}function z5(a){return Ng(_i(a))}const N5=a=>typeof a=="number"?0:It.test(a)?It.getAnimatableNone(a):a,D5=(a,i)=>typeof a=="number"?i?.trim().endsWith("/")?a:0:N5(a);function R5(a){const i=_i(a);return Ng(i)(i.values.map((o,c)=>D5(o,i.split[c])))}const on={test:A5,parse:C5,createTransformer:z5,getAnimatableNone:R5};function zc(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 k5({hue:a,saturation:i,lightness:l,alpha:o}){a/=360,i/=100,l/=100;let c=0,d=0,f=0;if(!i)c=d=f=l;else{const m=l<.5?l*(1+i):l+i-l*i,y=2*l-m;c=zc(y,m,a+1/3),d=zc(y,m,a),f=zc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function Yo(a,i){return l=>l>0?i:a}const qt=(a,i,l)=>a+(i-a)*l,Nc=(a,i,l)=>{const o=a*a,c=l*(i*i-o)+o;return c<0?0:Math.sqrt(c)},V5=[Kc,Ha,ki],O5=a=>V5.find(i=>i.test(a));function T1(a){const i=O5(a);if(!i)return!1;let l=i.parse(a);return i===ki&&(l=k5(l)),l}const w1=(a,i)=>{const l=T1(a),o=T1(i);if(!l||!o)return Yo(a,i);const c={...l};return d=>(c.red=Nc(l.red,o.red,d),c.green=Nc(l.green,o.green,d),c.blue=Nc(l.blue,o.blue,d),c.alpha=qt(l.alpha,o.alpha,d),Ha.transform(c))},Jc=new Set(["none","hidden"]);function _5(a,i){return Jc.has(a)?l=>l<=0?a:i:l=>l>=1?i:a}function B5(a,i){return l=>qt(a,i,l)}function Df(a){return typeof a=="number"?B5:typeof a=="string"?Cf(a)?Yo:It.test(a)?w1:H5:Array.isArray(a)?Dg:typeof a=="object"?It.test(a)?w1:L5:Yo}function Dg(a,i){const l=[...a],o=l.length,c=a.map((d,f)=>Df(d)(d,i[f]));return d=>{for(let f=0;f<o;f++)l[f]=c[f](d);return l}}function L5(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 d in o)l[d]=o[d](c);return l}}function U5(a,i){const l=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][o[d]],m=a.values[f]??0;l[c]=m,o[d]++}return l}const H5=(a,i)=>{const l=on.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?Jc.has(a)&&!c.values.length||Jc.has(i)&&!o.values.length?_5(a,i):tl(Dg(U5(o,c),c.values),l):Yo(a,i)};function Rg(a,i,l){return typeof a=="number"&&typeof i=="number"&&typeof l=="number"?qt(a,i,l):Df(a)(a,i)}const G5=a=>{const i=({timestamp:l})=>a(l);return{start:(l=!0)=>Ut.update(i,l),stop:()=>ga(i),now:()=>de.isProcessing?de.timestamp:ge.now()}},kg=(a,i,l=10)=>{let o="";const c=Math.max(Math.round(i/l),2);for(let d=0;d<c;d++)o+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Xo=2e4;function Rf(a){let i=0;const l=50;let o=a.next(i);for(;!o.done&&i<Xo;)i+=l,o=a.next(i);return i>=Xo?1/0:i}function q5(a,i=100,l){const o=l({...a,keyframes:[0,i]}),c=Math.min(Rf(o),Xo);return{type:"keyframes",ease:d=>o.next(c*d).value/i,duration:Fe(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 Fc(a,i){return a*Math.sqrt(1-i*i)}const Y5=12;function X5(a,i,l){let o=l;for(let c=1;c<Y5;c++)o=o-a(o)/i(o);return o}const Dc=.001;function Z5({duration:a=Qt.duration,bounce:i=Qt.bounce,velocity:l=Qt.velocity,mass:o=Qt.mass}){let c,d,f=1-i;f=vn(Qt.minDamping,Qt.maxDamping,f),a=vn(Qt.minDuration,Qt.maxDuration,Fe(a)),f<1?(c=p=>{const v=p*f,x=v*a,S=v-l,M=Fc(p,f),E=Math.exp(-x);return Dc-S/M*E},d=p=>{const x=p*f*a,S=x*l+l,M=Math.pow(f,2)*Math.pow(p,2)*a,E=Math.exp(-x),z=Fc(Math.pow(p,2),f);return(-c(p)+Dc>0?-1:1)*((S-M)*E)/z}):(c=p=>{const v=Math.exp(-p*a),x=(p-l)*a+1;return-Dc+v*x},d=p=>{const v=Math.exp(-p*a),x=(l-p)*(a*a);return v*x});const m=5/a,y=X5(c,d,m);if(a=_e(a),isNaN(y))return{stiffness:Qt.stiffness,damping:Qt.damping,duration:a};{const p=Math.pow(y,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const Q5=["duration","bounce"],K5=["stiffness","damping","mass"];function A1(a,i){return i.some(l=>a[l]!==void 0)}function J5(a){let i={velocity:Qt.velocity,stiffness:Qt.stiffness,damping:Qt.damping,mass:Qt.mass,isResolvedFromDuration:!1,...a};if(!A1(a,K5)&&A1(a,Q5))if(i.velocity=0,a.visualDuration){const l=a.visualDuration,o=2*Math.PI/(l*1.2),c=o*o,d=2*vn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Qt.mass,stiffness:c,damping:d}}else{const l=Z5({...a,velocity:0});i={...i,...l,mass:Qt.mass},i.isResolvedFromDuration=!0}return i}function Zo(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 d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],m={done:!1,value:d},{stiffness:y,damping:p,mass:v,duration:x,velocity:S,isResolvedFromDuration:M}=J5({...l,velocity:-Fe(l.velocity||0)}),E=S||0,z=p/(2*Math.sqrt(y*v)),O=f-d,L=Fe(Math.sqrt(y/v)),Z=Math.abs(O)<5;o||(o=Z?Qt.restSpeed.granular:Qt.restSpeed.default),c||(c=Z?Qt.restDelta.granular:Qt.restDelta.default);let Y,X,q,P,F,B;if(z<1)q=Fc(L,z),P=(E+z*L*O)/q,Y=lt=>{const K=Math.exp(-z*L*lt);return f-K*(P*Math.sin(q*lt)+O*Math.cos(q*lt))},F=z*L*P+O*q,B=z*L*O-P*q,X=lt=>Math.exp(-z*L*lt)*(F*Math.sin(q*lt)+B*Math.cos(q*lt));else if(z===1){Y=K=>f-Math.exp(-L*K)*(O+(E+L*O)*K);const lt=E+L*O;X=K=>Math.exp(-L*K)*(L*lt*K-E)}else{const lt=L*Math.sqrt(z*z-1);Y=Rt=>{const yt=Math.exp(-z*L*Rt),D=Math.min(lt*Rt,300);return f-yt*((E+z*L*O)*Math.sinh(D)+lt*O*Math.cosh(D))/lt};const K=(E+z*L*O)/lt,ut=z*L*K-O*lt,Ct=z*L*O-K*lt;X=Rt=>{const yt=Math.exp(-z*L*Rt),D=Math.min(lt*Rt,300);return yt*(ut*Math.sinh(D)+Ct*Math.cosh(D))}}const dt={calculatedDuration:M&&x||null,velocity:lt=>_e(X(lt)),next:lt=>{if(!M&&z<1){const ut=Math.exp(-z*L*lt),Ct=Math.sin(q*lt),Rt=Math.cos(q*lt),yt=f-ut*(P*Ct+O*Rt),D=_e(ut*(F*Ct+B*Rt));return m.done=Math.abs(D)<=o&&Math.abs(f-yt)<=c,m.value=m.done?f:yt,m}const K=Y(lt);if(M)m.done=lt>=x;else{const ut=_e(X(lt));m.done=Math.abs(ut)<=o&&Math.abs(f-K)<=c}return m.value=m.done?f:K,m},toString:()=>{const lt=Math.min(Rf(dt),Xo),K=kg(ut=>dt.next(lt*ut).value,lt,30);return lt+"ms "+K},toTransition:()=>{}};return dt}Zo.applyToOptions=a=>{const i=q5(a,100,Zo);return a.ease=i.ease,a.duration=_e(i.duration),a.type="keyframes",a};const F5=5;function Vg(a,i,l){const o=Math.max(i-F5,0);return hg(l-a(o),i-o)}function Pc({keyframes:a,velocity:i=0,power:l=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:v}){const x=a[0],S={done:!1,value:x},M=B=>m!==void 0&&B<m||y!==void 0&&B>y,E=B=>m===void 0?y:y===void 0||Math.abs(m-B)<Math.abs(y-B)?m:y;let z=l*i;const O=x+z,L=f===void 0?O:f(O);L!==O&&(z=L-x);const Z=B=>-z*Math.exp(-B/o),Y=B=>L+Z(B),X=B=>{const dt=Z(B),lt=Y(B);S.done=Math.abs(dt)<=p,S.value=S.done?L:lt};let q,P;const F=B=>{M(S.value)&&(q=B,P=Zo({keyframes:[S.value,E(S.value)],velocity:Vg(Y,B,S.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return F(0),{calculatedDuration:null,next:B=>{let dt=!1;return!P&&q===void 0&&(dt=!0,X(B),F(B)),q!==void 0&&B>=q?P.next(B-q):(!dt&&X(B),S)}}}function P5(a,i,l){const o=[],c=l||pa.mix||Rg,d=a.length-1;for(let f=0;f<d;f++){let m=c(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||Pe:i;m=tl(y,m)}o.push(m)}return o}function $5(a,i,{clamp:l=!0,ease:o,mixer:c}={}){const d=a.length;if(Af(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=P5(i,o,c),y=m.length,p=v=>{if(f&&v<a[0])return i[0];let x=0;if(y>1)for(;x<a.length-2&&!(v<a[x+1]);x++);const S=Ks(a[x],a[x+1],v);return m[x](S)};return l?v=>p(vn(a[0],a[d-1],v)):p}function W5(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 I5(a){const i=[0];return W5(i,a.length-1),i}function t4(a,i){return a.map(l=>l*i)}function e4(a,i){return a.map(()=>i||Tg).splice(0,a.length-1)}function Us({duration:a=300,keyframes:i,times:l,ease:o="easeInOut"}){const c=u5(o)?o.map(v1):v1(o),d={done:!1,value:i[0]},f=t4(l&&l.length===i.length?l:I5(i),a),m=$5(f,i,{ease:Array.isArray(c)?c:e4(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const n4=a=>a!==null;function Wo(a,{repeat:i,repeatType:l="loop"},o,c=1){const d=a.filter(n4),m=c<0||i&&l!=="loop"&&i%2===1?0:d.length-1;return!m||o===void 0?d[m]:o}const a4={decay:Pc,inertia:Pc,tween:Us,keyframes:Us,spring:Zo};function Og(a){typeof a.type=="string"&&(a.type=a4[a.type])}class kf{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 i4=a=>a/100;class Qo extends kf{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;Og(i);const{type:l=Us,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=l||Us;y!==Us&&typeof m[0]!="number"&&(this.mixKeyframes=tl(i4,Rg(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=Rf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:x,repeatType:S,repeatDelay:M,type:E,onUpdate:z,finalKeyframe:O}=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 L=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Z=this.playbackSpeed>=0?L<0:L>c;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Y=this.currentTime,X=o;if(x){const B=Math.min(this.currentTime,c)/m;let dt=Math.floor(B),lt=B%1;!lt&&B>=1&&(lt=1),lt===1&&dt--,dt=Math.min(dt,x+1),dt%2&&(S==="reverse"?(lt=1-lt,M&&(lt-=M/m)):S==="mirror"&&(X=f)),Y=vn(0,1,lt)*m}let q;Z?(this.delayState.value=v[0],q=this.delayState):q=X.next(Y),d&&!Z&&(q.value=d(q.value));let{done:P}=q;!Z&&y!==null&&(P=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return F&&E!==Pc&&(q.value=Wo(v,this.options,O,this.speed)),z&&z(q.value),F&&this.finish(),q}then(i,l){return this.finished.then(i,l)}get duration(){return Fe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Fe(i)}get time(){return Fe(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 Vg(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=Fe(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=G5,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 s4(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ga=a=>a*180/Math.PI,$c=a=>{const i=Ga(Math.atan2(a[1],a[0]));return Wc(i)},l4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:$c,rotateZ:$c,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},Wc=a=>(a=a%360,a<0&&(a+=360),a),E1=$c,M1=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),j1=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),o4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:M1,scaleY:j1,scale:a=>(M1(a)+j1(a))/2,rotateX:a=>Wc(Ga(Math.atan2(a[6],a[5]))),rotateY:a=>Wc(Ga(Math.atan2(-a[2],a[0]))),rotateZ:E1,rotate:E1,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 Ic(a){return a.includes("scale")?1:0}function tf(a,i){if(!a||a==="none")return Ic(i);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(l)o=o4,c=l;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=l4,c=m}if(!c)return Ic(i);const d=o[i],f=c[1].split(",").map(u4);return typeof d=="function"?d(f):f[d]}const r4=(a,i)=>{const{transform:l="none"}=getComputedStyle(a);return tf(l,i)};function u4(a){return parseFloat(a.trim())}const Ui=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hi=new Set(Ui),C1=a=>a===Li||a===at,c4=new Set(["x","y","z"]),f4=Ui.filter(a=>!c4.has(a));function d4(a){const i=[];return f4.forEach(l=>{const o=a.getValue(l);o!==void 0&&(i.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),i}const ma={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})=>tf(i,"x"),y:(a,{transform:i})=>tf(i,"y")};ma.translateX=ma.x;ma.translateY=ma.y;const qa=new Set;let ef=!1,nf=!1,af=!1;function _g(){if(nf){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=d4(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(([d,f])=>{o.getValue(d)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}nf=!1,ef=!1,qa.forEach(a=>a.complete(af)),qa.clear()}function Bg(){qa.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(nf=!0)})}function h4(){af=!0,Bg(),_g(),af=!1}class Vf{constructor(i,l,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),ef||(ef=!0,Ut.read(Bg),Ut.resolveKeyframes(_g))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:o,motionValue:c}=this;if(i[0]===null){const d=c?.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(o&&l){const m=o.readValue(l,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}s4(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 m4=a=>a.startsWith("--");function Lg(a,i,l){m4(i)?a.style.setProperty(i,l):a.style[i]=l}const p4={};function Ug(a,i){const l=dg(a);return()=>p4[i]??l()}const g4=Ug(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Hg=Ug(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bs=([a,i,l,o])=>`cubic-bezier(${a}, ${i}, ${l}, ${o})`,z1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bs([0,.65,.55,1]),circOut:Bs([.55,0,1,.45]),backIn:Bs([.31,.01,.66,-.59]),backOut:Bs([.33,1.53,.69,.99])};function Gg(a,i){if(a)return typeof a=="function"?Hg()?kg(a,i):"ease-out":wg(a)?Bs(a):Array.isArray(a)?a.map(l=>Gg(l,i)||z1.easeOut):z1[a]}function y4(a,i,l,{delay:o=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const v={[i]:l};y&&(v.offset=y);const x=Gg(m,c);Array.isArray(x)&&(v.easing=x);const S={delay:o,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(v,S)}function qg(a){return typeof a=="function"&&"applyToOptions"in a}function v4({type:a,...i}){return qg(a)&&Hg()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Yg extends kf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:o,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,Af(typeof i.type!="string");const p=v4(i);this.animation=y4(l,o,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=Wo(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Lg(l,o,v),this.animation.cancel()}y?.(),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 Fe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Fe(i)}get time(){return Fe(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&&g4()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),o&&(this.animation.rangeEnd=o),Pe):c(this)}}const Xg={anticipate:bg,backInOut:vg,circInOut:Sg};function b4(a){return a in Xg}function x4(a){typeof a.ease=="string"&&b4(a.ease)&&(a.ease=Xg[a.ease])}const Rc=10;class S4 extends Yg{constructor(i){x4(i),Og(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:d,...f}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const m=new Qo({...f,autoplay:!1}),y=Math.max(Rc,ge.now()-this.startTime),p=vn(0,Rc,y-Rc),v=m.sample(y).value,{name:x}=this.options;d&&x&&Lg(d,x,v),l.setWithVelocity(m.sample(Math.max(0,y-p)).value,v,p),m.stop()}}const N1=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(on.test(a)||a==="0")&&!a.startsWith("url("));function T4(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 w4(a,i,l,o){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=N1(c,i),m=N1(d,i);return!f||!m?!1:T4(a)||(l==="spring"||qg(l))&&o}function sf(a){a.duration=0,a.type="keyframes"}const Zg=new Set(["opacity","clipPath","filter","transform"]),A4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function E4(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&A4.test(a[i]))return!0;return!1}const M4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),j4=dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function C4(a){const{motionValue:i,name:l,repeatDelay:o,repeatType:c,damping:d,type:f,keyframes:m}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:v}=i.owner.getProps();return j4()&&l&&(Zg.has(l)||M4.has(l)&&E4(m))&&(l!=="transform"||!v)&&!p&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const z4=40;class N4 extends kf{constructor({autoplay:i=!0,delay:l=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const S={autoplay:i,delay:l,type:o,repeat:c,repeatDelay:d,repeatType:f,name:y,motionValue:p,element:v,...x},M=v?.KeyframeResolver||Vf;this.keyframeResolver=new M(m,(E,z,O)=>this.onKeyframesResolved(E,z,S,!O),y,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,o,c){this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:v}=o;this.resolvedAt=ge.now();let x=!0;w4(i,d,f,m)||(x=!1,(pa.instantAnimations||!y)&&v?.(Wo(i,o,l)),i[0]=i[i.length-1],sf(o),o.repeat=0);const M={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>z4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:i},E=x&&!p&&C4(M),z=M.motionValue?.owner?.current;let O;if(E)try{O=new S4({...M,element:z})}catch{O=new Qo(M)}else O=new Qo(M);O.finished.then(()=>{this.notifyFinished()}).catch(Pe),this.pendingTimeline&&(this.stopTimeline=O.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=O}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(),h4()),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 Qg(a,i,l,o=0,c=1){const d=Array.from(a).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),f=a.size,m=(f-1)*o;return typeof l=="function"?l(d,f):c===1?d*o:m-d*o}const D4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function R4(a){const i=D4.exec(a);if(!i)return[,];const[,l,o,c]=i;return[`--${l??o}`,c]}function Kg(a,i,l=1){const[o,c]=R4(a);if(!o)return;const d=window.getComputedStyle(i).getPropertyValue(o);if(d){const f=d.trim();return ug(f)?parseFloat(f):f}return Cf(c)?Kg(c,i,l+1):c}const k4={type:"spring",stiffness:500,damping:25,restSpeed:10},V4=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),O4={type:"keyframes",duration:.8},_4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B4=(a,{keyframes:i})=>i.length>2?O4:Hi.has(a)?a.startsWith("scale")?V4(i[1]):k4:_4;function Jg(a,i){if(a?.inherit&&i){const{inherit:l,...o}=a;return{...i,...o}}return a}function Of(a,i){const l=a?.[i]??a?.default??a;return l!==a?Jg(l,a):l}const L4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function U4(a){for(const i in a)if(!L4.has(i))return!0;return!1}const _f=(a,i,l,o={},c,d)=>f=>{const m=Of(o,a)||{},y=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-_e(y);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:S=>{i.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:d?void 0:c};U4(m)||Object.assign(v,B4(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)&&(sf(v),v.delay===0&&(x=!0)),(pa.instantAnimations||pa.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,sf(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,x&&!d&&i.get()!==void 0){const S=Wo(v.keyframes,m);if(S!==void 0){Ut.update(()=>{v.onUpdate(S),v.onComplete()});return}}return m.isSync?new Qo(v):new N4(v)};function D1(a){const i=[{},{}];return a?.values.forEach((l,o)=>{i[0][o]=l.get(),i[1][o]=l.getVelocity()}),i}function Bf(a,i,l,o){if(typeof i=="function"){const[c,d]=D1(o);i=i(l!==void 0?l:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=D1(o);i=i(l!==void 0?l:a.custom,c,d)}return i}function Ya(a,i,l){const o=a.getProps();return Bf(o,i,l!==void 0?l:o.custom,a)}const Fg=new Set(["width","height","top","left","right","bottom",...Ui]),R1=30,H4=a=>!isNaN(parseFloat(a));class G4{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 d of this.dependents)d.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=H4(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>R1)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,R1);return hg(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 Bi(a,i){return new G4(a,i)}const lf=a=>Array.isArray(a);function q4(a,i,l){a.hasValue(i)?a.getValue(i).set(l):a.addValue(i,Bi(l))}function Y4(a){return lf(a)?a[a.length-1]||0:a}function X4(a,i){const l=Ya(a,i);let{transitionEnd:o={},transition:c={},...d}=l||{};d={...d,...o};for(const f in d){const m=Y4(d[f]);q4(a,f,m)}}const he=a=>!!(a&&a.getVelocity);function Z4(a){return!!(he(a)&&a.add)}function of(a,i){const l=a.getValue("willChange");if(Z4(l))return l.add(i);if(!l&&pa.WillChange){const o=new pa.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function Lf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const Q4="framerAppearId",Pg="data-"+Lf(Q4);function $g(a){return a.props[Pg]}function K4({protectedKeys:a,needsAnimating:i},l){const o=a.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,o}function Wg(a,i,{delay:l=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?Jg(d,y):y;const p=d?.reduceMotion;o&&(d=o);const v=[],x=c&&a.animationState&&a.animationState.getState()[c];for(const S in m){const M=a.getValue(S,a.latestValues[S]??null),E=m[S];if(E===void 0||x&&K4(x,S))continue;const z={delay:l,...Of(d||{},S)},O=M.get();if(O!==void 0&&!M.isAnimating()&&!Array.isArray(E)&&E===O&&!z.velocity){Ut.update(()=>M.set(E));continue}let L=!1;if(window.MotionHandoffAnimation){const X=$g(a);if(X){const q=window.MotionHandoffAnimation(X,S,Ut);q!==null&&(z.startTime=q,L=!0)}}of(a,S);const Z=p??a.shouldReduceMotion;M.start(_f(S,M,E,Z&&Fg.has(S)?{type:!1}:z,a,L));const Y=M.animation;Y&&v.push(Y)}if(f){const S=()=>Ut.update(()=>{f&&X4(a,f)});v.length?Promise.all(v).then(S):S()}return v}function rf(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 d=o?()=>Promise.all(Wg(a,o,l)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:x}=c;return J4(a,i,y,p,v,x,l)}:()=>Promise.resolve(),{when:m}=c;if(m){const[y,p]=m==="beforeChildren"?[d,f]:[f,d];return y().then(()=>p())}else return Promise.all([d(),f(l.delay)])}function J4(a,i,l=0,o=0,c=0,d=1,f){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(rf(y,i,{...f,delay:l+(typeof o=="function"?0:o)+Qg(a.variantChildren,y,o,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function F4(a,i,l={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(d=>rf(a,d,l));o=Promise.all(c)}else if(typeof i=="string")o=rf(a,i,l);else{const c=typeof i=="function"?Ya(a,i,l.custom):i;o=Promise.all(Wg(a,c,l))}return o.then(()=>{a.notify("AnimationComplete",i)})}const P4={test:a=>a==="auto",parse:a=>a},Ig=a=>i=>i.test(a),ty=[Li,at,yn,ha,T5,S5,P4],k1=a=>ty.find(Ig(a));function $4(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||fg(a):!0}const W4=new Set(["brightness","contrast","saturate","opacity"]);function I4(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 d=W4.has(i)?1:0;return o!==l&&(d*=100),i+"("+d+c+")"}const t8=/\b([a-z-]*)\(.*?\)/gu,uf={...on,getAnimatableNone:a=>{const i=a.match(t8);return i?i.map(I4).join(" "):a}},cf={...on,getAnimatableNone:a=>{const i=on.parse(a);return on.createTransformer(a)(i.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},V1={...Li,transform:Math.round},e8={rotate:ha,rotateX:ha,rotateY:ha,rotateZ:ha,scale:Eo,scaleX:Eo,scaleY:Eo,scaleZ:Eo,skew:ha,skewX:ha,skewY:ha,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:Js,originX:x1,originY:x1,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,...e8,zIndex:V1,fillOpacity:Js,strokeOpacity:Js,numOctaves:V1},n8={...Uf,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:uf,WebkitFilter:uf,mask:cf,WebkitMask:cf},ey=a=>n8[a],a8=new Set([uf,cf]);function ny(a,i){let l=ey(a);return a8.has(l)||(l=on),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const i8=new Set(["auto","none","0"]);function s8(a,i,l){let o=0,c;for(;o<a.length&&!c;){const d=a[o];typeof d=="string"&&!i8.has(d)&&_i(d).values.length&&(c=a[o]),o++}if(c&&l)for(const d of i)a[d]=ny(l,c)}class l8 extends Vf{constructor(i,l,o,c,d){super(i,l,o,c,d,!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=Kg(x,l.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!Fg.has(o)||i.length!==2)return;const[c,d]=i,f=k1(c),m=k1(d),y=b1(c),p=b1(d);if(y!==p&&ma[o]){this.needsMeasurement=!0;return}if(f!==m)if(C1(f)&&C1(m))for(let v=0;v<i.length;v++){const x=i[v];typeof x=="string"&&(i[v]=parseFloat(x))}else ma[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||$4(i[c]))&&o.push(c);o.length&&s8(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=ma[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 d=o.length-1,f=o[d];o[d]=ma[l](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,y])=>{i.getValue(m).set(y)}),this.resolveNoneKeyframes()}}function ay(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 iy=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function o8(a){return cg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Hf}=Ag(queueMicrotask,!1),sn={x:!1,y:!1};function sy(){return sn.x||sn.y}function r8(a){return a==="x"||a==="y"?sn[a]?null:(sn[a]=!0,()=>{sn[a]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}function ly(a,i){const l=ay(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[l,c,()=>o.abort()]}function u8(a){return!(a.pointerType==="touch"||sy())}function c8(a,i,l={}){const[o,c,d]=ly(a,l);return o.forEach(f=>{let m=!1,y=!1,p;const v=()=>{f.removeEventListener("pointerleave",E)},x=O=>{p&&(p(O),p=void 0),v()},S=O=>{m=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),y&&(y=!1,x(O))},M=()=>{m=!0,window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",S,c)},E=O=>{if(O.pointerType!=="touch"){if(m){y=!0;return}x(O)}},z=O=>{if(!u8(O))return;y=!1;const L=i(f,O);typeof L=="function"&&(p=L,f.addEventListener("pointerleave",E,c))};f.addEventListener("pointerenter",z,c),f.addEventListener("pointerdown",M,c)}),d}const oy=(a,i)=>i?a===i?!0:oy(a,i.parentElement):!1,Gf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,f8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function d8(a){return f8.has(a.tagName)||a.isContentEditable===!0}const h8=new Set(["INPUT","SELECT","TEXTAREA"]);function m8(a){return h8.has(a.tagName)||a.isContentEditable===!0}const Do=new WeakSet;function O1(a){return i=>{i.key==="Enter"&&a(i)}}function kc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const p8=(a,i)=>{const l=a.currentTarget;if(!l)return;const o=O1(()=>{if(Do.has(l))return;kc(l,"down");const c=O1(()=>{kc(l,"up")}),d=()=>kc(l,"cancel");l.addEventListener("keyup",c,i),l.addEventListener("blur",d,i)});l.addEventListener("keydown",o,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),i)};function _1(a){return Gf(a)&&!sy()}const B1=new WeakSet;function g8(a,i,l={}){const[o,c,d]=ly(a,l),f=m=>{const y=m.currentTarget;if(!_1(m)||B1.has(m))return;Do.add(y),l.stopPropagation&&B1.add(m);const p=i(y,m),v=(M,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Do.has(y)&&Do.delete(y),_1(M)&&typeof p=="function"&&p(M,{success:E})},x=M=>{v(M,y===window||y===document||l.useGlobalTarget||oy(y,M.target))},S=M=>{v(M,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",S,c)};return o.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),o8(m)&&(m.addEventListener("focus",p=>p8(p,c)),!d8(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function qf(a){return cg(a)&&"ownerSVGElement"in a}const Ro=new WeakMap;let ko;const ry=(a,i,l)=>(o,c)=>c&&c[0]?c[0][a+"Size"]:qf(o)&&"getBBox"in o?o.getBBox()[i]:o[l],y8=ry("inline","width","offsetWidth"),v8=ry("block","height","offsetHeight");function b8({target:a,borderBoxSize:i}){Ro.get(a)?.forEach(l=>{l(a,{get width(){return y8(a,i)},get height(){return v8(a,i)}})})}function x8(a){a.forEach(b8)}function S8(){typeof ResizeObserver>"u"||(ko=new ResizeObserver(x8))}function T8(a,i){ko||S8();const l=ay(a);return l.forEach(o=>{let c=Ro.get(o);c||(c=new Set,Ro.set(o,c)),c.add(i),ko?.observe(o)}),()=>{l.forEach(o=>{const c=Ro.get(o);c?.delete(i),c?.size||ko?.unobserve(o)})}}const Vo=new Set;let Vi;function w8(){Vi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Vo.forEach(i=>i(a))},window.addEventListener("resize",Vi)}function A8(a){return Vo.add(a),Vi||w8(),()=>{Vo.delete(a),!Vo.size&&typeof Vi=="function"&&(window.removeEventListener("resize",Vi),Vi=void 0)}}function L1(a,i){return typeof a=="function"?A8(a):T8(a,i)}function E8(a){return qf(a)&&a.tagName==="svg"}const M8=[...ty,It,on],j8=a=>M8.find(Ig(a)),U1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oi=()=>({x:U1(),y:U1()}),H1=()=>({min:0,max:0}),ae=()=>({x:H1(),y:H1()}),C8=new WeakMap;function Io(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 tr(a){return Io(a.animate)||Xf.some(i=>Fs(a[i]))}function uy(a){return!!(tr(a)||a.variants)}function z8(a,i,l){for(const o in i){const c=i[o],d=l[o];if(he(c))a.addValue(o,c);else if(he(d))a.addValue(o,Bi(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,Bi(f!==void 0?f:c,{owner:a}))}}for(const o in l)i[o]===void 0&&a.removeValue(o);return i}const ff={current:null},cy={current:!1},N8=typeof window<"u";function D8(){if(cy.current=!0,!!N8)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>ff.current=a.matches;a.addEventListener("change",i),i()}else ff.current=!1}const G1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ko={};function fy(a){Ko=a}function R8(){return Ko}class k8{scrapeMotionValuesFromProps(i,l,o){return{}}constructor({parent:i,props:l,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:m},y={}){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=Vf,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 M=ge.now();this.renderScheduledAt<M&&(this.renderScheduledAt=M,Ut.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=l,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=tr(l),this.isVariantNode=uy(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:x,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const M in S){const E=S[M];p[M]!==void 0&&he(E)&&E.set(p[M])}}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,C8.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:(cy.current||D8(),this.shouldReduceMotion=ff.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(),ga(this.notifyUpdate),ga(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&&Zg.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:v}=l.accelerate,x=new Yg({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:_e(v)}),S=f(x);this.valueSubscriptions.set(i,()=>{S(),x.cancel()});return}const o=Hi.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Ut.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),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 Ko){const l=Ko[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 d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):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<G1.length;o++){const c=G1[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=z8(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=Bi(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"&&(ug(o)||fg(o))?o=parseFloat(o):!j8(o)&&on.test(l)&&(o=ny(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 d=Bf(this.props,l,this.presenceContext?.custom);d&&(o=d[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 dy extends k8{constructor(){super(...arguments),this.KeyframeResolver=l8}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 va{constructor(i){this.isMounted=!1,this.node=i}update(){}}function hy({top:a,left:i,right:l,bottom:o}){return{x:{min:i,max:l},y:{min:a,max:o}}}function V8({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function O8(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 Vc(a){return a===void 0||a===1}function df({scale:a,scaleX:i,scaleY:l}){return!Vc(a)||!Vc(i)||!Vc(l)}function Ua(a){return df(a)||my(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function my(a){return q1(a.x)||q1(a.y)}function q1(a){return a&&a!=="0%"}function Jo(a,i,l){const o=a-l,c=i*o;return l+c}function Y1(a,i,l,o,c){return c!==void 0&&(a=Jo(a,c,o)),Jo(a,l,o)+i}function hf(a,i=0,l=1,o,c){a.min=Y1(a.min,i,l,o,c),a.max=Y1(a.max,i,l,o,c)}function py(a,{x:i,y:l}){hf(a.x,i.translate,i.scale,i.originPoint),hf(a.y,l.translate,l.scale,l.originPoint)}const X1=.999999999999,Z1=1.0000000000001;function _8(a,i,l,o=!1){const c=l.length;if(!c)return;i.x=i.y=1;let d,f;for(let m=0;m<c;m++){d=l[m],f=d.projectionDelta;const{visualElement:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(pn(a.x,-d.scroll.offset.x),pn(a.y,-d.scroll.offset.y)),f&&(i.x*=f.x.scale,i.y*=f.y.scale,py(a,f)),o&&Ua(d.latestValues)&&Oo(a,d.latestValues,d.layout?.layoutBox))}i.x<Z1&&i.x>X1&&(i.x=1),i.y<Z1&&i.y>X1&&(i.y=1)}function pn(a,i){a.min+=i,a.max+=i}function Q1(a,i,l,o,c=.5){const d=qt(a.min,a.max,c);hf(a,i,l,d,o)}function K1(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function Oo(a,i,l){const o=l??a;Q1(a.x,K1(i.x,o.x),i.scaleX,i.scale,i.originX),Q1(a.y,K1(i.y,o.y),i.scaleY,i.scale,i.originY)}function gy(a,i){return hy(O8(a.getBoundingClientRect(),i))}function B8(a,i,l){const o=gy(a,l),{scroll:c}=i;return c&&(pn(o.x,c.offset.x),pn(o.y,c.offset.y)),o}const L8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U8=Ui.length;function H8(a,i,l){let o="",c=!0;for(let d=0;d<U8;d++){const f=Ui[d],m=a[f];if(m===void 0)continue;let y=!0;if(typeof m=="number")y=m===(f.startsWith("scale")?1:0);else{const p=parseFloat(m);y=f.startsWith("scale")?p===1:p===0}if(!y||l){const p=iy(m,Uf[f]);if(!y){c=!1;const v=L8[f]||f;o+=`${v}(${p}) `}l&&(i[f]=p)}}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:d}=a;let f=!1,m=!1;for(const y in i){const p=i[y];if(Hi.has(y)){f=!0;continue}else if(Mg(y)){c[y]=p;continue}else{const v=iy(p,Uf[y]);y.startsWith("origin")?(m=!0,d[y]=v):o[y]=v}}if(i.transform||(f||l?o.transform=H8(i,a.transform,l):o.transform&&(o.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:v=0}=d;o.transformOrigin=`${y} ${p} ${v}`}}function yy(a,{style:i,vars:l},o,c){const d=a.style;let f;for(f in i)d[f]=i[f];c?.applyProjectionStyles(d,o);for(f in l)d.setProperty(f,l[f])}function J1(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const _s={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(at.test(a))a=parseFloat(a);else return a;const l=J1(a,i.target.x),o=J1(a,i.target.y);return`${l}% ${o}%`}},G8={correct:(a,{treeScale:i,projectionDelta:l})=>{const o=a,c=on.parse(a);if(c.length>5)return o;const d=on.createTransformer(a),f=typeof c[0]!="number"?1:0,m=l.x.scale*i.x,y=l.y.scale*i.y;c[0+f]/=m,c[1+f]/=y;const p=qt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},mf={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:G8};function vy(a,{layout:i,layoutId:l}){return Hi.has(a)||a.startsWith("origin")||(i||l!==void 0)&&(!!mf[a]||a==="opacity")}function Qf(a,i,l){const o=a.style,c=i?.style,d={};if(!o)return d;for(const f in o)(he(o[f])||c&&he(c[f])||vy(f,a)||l?.getValue(f)?.liveStyle!==void 0)&&(d[f]=o[f]);return d}function q8(a){return window.getComputedStyle(a)}class Y8 extends dy{constructor(){super(...arguments),this.type="html",this.renderInstance=yy}readValueFromInstance(i,l){if(Hi.has(l))return this.projection?.isProjecting?Ic(l):r4(i,l);{const o=q8(i),c=(Mg(l)?o.getPropertyValue(l):o[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return gy(i,l)}build(i,l,o){Zf(i,l,o.transformTemplate)}scrapeMotionValuesFromProps(i,l,o){return Qf(i,l,o)}}const X8={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z8={offset:"strokeDashoffset",array:"strokeDasharray"};function Q8(a,i,l=1,o=0,c=!0){a.pathLength=1;const d=c?X8:Z8;a[d.offset]=`${-o}`,a[d.array]=`${i} ${l}`}const K8=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function by(a,{attrX:i,attrY:l,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,v){if(Zf(a,m,p),y){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 M of K8)x[M]!==void 0&&(S[M]=x[M],delete x[M]);i!==void 0&&(x.x=i),l!==void 0&&(x.y=l),o!==void 0&&(x.scale=o),c!==void 0&&Q8(x,c,d,f,!1)}const xy=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"]),Sy=a=>typeof a=="string"&&a.toLowerCase()==="svg";function J8(a,i,l,o){yy(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(xy.has(c)?c:Lf(c),i.attrs[c])}function Ty(a,i,l){const o=Qf(a,i,l);for(const c in a)if(he(a[c])||he(i[c])){const d=Ui.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=a[c]}return o}class F8 extends dy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Hi.has(l)){const o=ey(l);return o&&o.default||0}return l=xy.has(l)?l:Lf(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,o){return Ty(i,l,o)}build(i,l,o){by(i,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,l,o,c){J8(i,l,o,c)}mount(i){this.isSVGTag=Sy(i.tagName),super.mount(i)}}const P8=Xf.length;function wy(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?wy(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const i={};for(let l=0;l<P8;l++){const o=Xf[l],c=a.props[o];(Fs(c)||c===!1)&&(i[o]=c)}return i}function Ay(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 $8=[...Yf].reverse(),W8=Yf.length;function I8(a){return i=>Promise.all(i.map(({animation:l,options:o})=>F4(a,l,o)))}function t6(a){let i=I8(a),l=F1(),o=!0,c=!1;const d=p=>(v,x)=>{const S=Ya(a,x,p==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:M,transitionEnd:E,...z}=S;v={...v,...z,...E}}return v};function f(p){i=p(a)}function m(p){const{props:v}=a,x=wy(a.parent)||{},S=[],M=new Set;let E={},z=1/0;for(let L=0;L<W8;L++){const Z=$8[L],Y=l[Z],X=v[Z]!==void 0?v[Z]:x[Z],q=Fs(X),P=Z===p?Y.isActive:null;P===!1&&(z=L);let F=X===x[Z]&&X!==v[Z]&&q;if(F&&(o||c)&&a.manuallyAnimateOnMount&&(F=!1),Y.protectedKeys={...E},!Y.isActive&&P===null||!X&&!Y.prevProp||Io(X)||typeof X=="boolean")continue;if(Z==="exit"&&Y.isActive&&P!==!0){Y.prevResolvedValues&&(E={...E,...Y.prevResolvedValues});continue}const B=e6(Y.prevProp,X);let dt=B||Z===p&&Y.isActive&&!F&&q||L>z&&q,lt=!1;const K=Array.isArray(X)?X:[X];let ut=K.reduce(d(Z),{});P===!1&&(ut={});const{prevResolvedValues:Ct={}}=Y,Rt={...Ct,...ut},yt=W=>{dt=!0,M.has(W)&&(lt=!0,M.delete(W)),Y.needsAnimating[W]=!0;const ct=a.getValue(W);ct&&(ct.liveStyle=!1)};for(const W in Rt){const ct=ut[W],Q=Ct[W];if(E.hasOwnProperty(W))continue;let w=!1;lf(ct)&&lf(Q)?w=!Ay(ct,Q):w=ct!==Q,w?ct!=null?yt(W):M.add(W):ct!==void 0&&M.has(W)?yt(W):Y.protectedKeys[W]=!0}Y.prevProp=X,Y.prevResolvedValues=ut,Y.isActive&&(E={...E,...ut}),(o||c)&&a.blockInitialAnimation&&(dt=!1);const D=F&&B;dt&&(!D||lt)&&S.push(...K.map(W=>{const ct={type:Z};if(typeof W=="string"&&(o||c)&&!D&&a.manuallyAnimateOnMount&&a.parent){const{parent:Q}=a,w=Ya(Q,W);if(Q.enteringChildren&&w){const{delayChildren:H}=w.transition||{};ct.delay=Qg(Q.enteringChildren,a,H)}}return{animation:W,options:ct}}))}if(M.size){const L={};if(typeof v.initial!="boolean"){const Z=Ya(a,Array.isArray(v.initial)?v.initial[0]:v.initial);Z&&Z.transition&&(L.transition=Z.transition)}M.forEach(Z=>{const Y=a.getBaseTarget(Z),X=a.getValue(Z);X&&(X.liveStyle=!0),L[Z]=Y??null}),S.push({animation:L})}let O=!!S.length;return o&&(v.initial===!1||v.initial===v.animate)&&!a.manuallyAnimateOnMount&&(O=!1),o=!1,c=!1,O?i(S):Promise.resolve()}function y(p,v){if(l[p].isActive===v)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(p,v)),l[p].isActive=v;const x=m(p);for(const S in l)l[S].protectedKeys={};return x}return{animateChanges:m,setActive:y,setAnimateFunction:f,getState:()=>l,reset:()=>{l=F1(),c=!0}}}function e6(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!Ay(i,a):!1}function La(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function F1(){return{animate:La(!0),whileInView:La(),whileHover:La(),whileTap:La(),whileDrag:La(),whileFocus:La(),exit:La()}}function pf(a,i){a.min=i.min,a.max=i.max}function an(a,i){pf(a.x,i.x),pf(a.y,i.y)}function P1(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const Ey=1e-4,n6=1-Ey,a6=1+Ey,My=.01,i6=0-My,s6=0+My;function ye(a){return a.max-a.min}function l6(a,i,l){return Math.abs(a-i)<=l}function $1(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>=n6&&a.scale<=a6||isNaN(a.scale))&&(a.scale=1),(a.translate>=i6&&a.translate<=s6||isNaN(a.translate))&&(a.translate=0)}function Hs(a,i,l,o){$1(a.x,i.x,l.x,o?o.originX:void 0),$1(a.y,i.y,l.y,o?o.originY:void 0)}function W1(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 o6(a,i,l,o){W1(a.x,i.x,l.x,o?.x),W1(a.y,i.y,l.y,o?.y)}function I1(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 Fo(a,i,l,o){I1(a.x,i.x,l.x,o?.x),I1(a.y,i.y,l.y,o?.y)}function tp(a,i,l,o,c){return a-=i,a=Jo(a,1/l,o),c!==void 0&&(a=Jo(a,1/c,o)),a}function r6(a,i=0,l=1,o=.5,c,d=a,f=a){if(yn.test(i)&&(i=parseFloat(i),i=qt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=qt(d.min,d.max,o);a===d&&(m-=i),a.min=tp(a.min,i,l,m,c),a.max=tp(a.max,i,l,m,c)}function ep(a,i,[l,o,c],d,f){r6(a,i[l],i[o],i[c],i.scale,d,f)}const u6=["x","scaleX","originX"],c6=["y","scaleY","originY"];function np(a,i,l,o){ep(a.x,i,u6,l?l.x:void 0,o?o.x:void 0),ep(a.y,i,c6,l?l.y:void 0,o?o.y:void 0)}function ap(a){return a.translate===0&&a.scale===1}function jy(a){return ap(a.x)&&ap(a.y)}function ip(a,i){return a.min===i.min&&a.max===i.max}function f6(a,i){return ip(a.x,i.x)&&ip(a.y,i.y)}function sp(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function Cy(a,i){return sp(a.x,i.x)&&sp(a.y,i.y)}function lp(a){return ye(a.x)/ye(a.y)}function op(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function mn(a){return[a("x"),a("y")]}function d6(a,i,l){let o="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=l?.z||0;if((c||d||f)&&(o=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:v,rotateX:x,rotateY:S,skewX:M,skewY:E}=l;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),x&&(o+=`rotateX(${x}deg) `),S&&(o+=`rotateY(${S}deg) `),M&&(o+=`skewX(${M}deg) `),E&&(o+=`skewY(${E}deg) `)}const m=a.x.scale*i.x,y=a.y.scale*i.y;return(m!==1||y!==1)&&(o+=`scale(${m}, ${y})`),o||"none"}const zy=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],h6=zy.length,rp=a=>typeof a=="string"?parseFloat(a):a,up=a=>typeof a=="number"||at.test(a);function m6(a,i,l,o,c,d){c?(a.opacity=qt(0,l.opacity??1,p6(o)),a.opacityExit=qt(i.opacity??1,0,g6(o))):d&&(a.opacity=qt(i.opacity??1,l.opacity??1,o));for(let f=0;f<h6;f++){const m=zy[f];let y=cp(i,m),p=cp(l,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||up(y)===up(p)?(a[m]=Math.max(qt(rp(y),rp(p),o),0),(yn.test(p)||yn.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||l.rotate)&&(a.rotate=qt(i.rotate||0,l.rotate||0,o))}function cp(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const p6=Ny(0,.5,xg),g6=Ny(.5,.95,Pe);function Ny(a,i,l){return o=>o<a?0:o>i?1:l(Ks(a,i,o))}function y6(a,i,l){const o=he(a)?a:Bi(a);return o.start(_f("",o,i,l)),o.animation}function Ps(a,i,l,o={passive:!0}){return a.addEventListener(i,l,o),()=>a.removeEventListener(i,l)}const v6=(a,i)=>a.depth-i.depth;class b6{constructor(){this.children=[],this.isDirty=!1}add(i){wf(this.children,i),this.isDirty=!0}remove(i){qo(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(v6),this.isDirty=!1,this.children.forEach(i)}}function x6(a,i){const l=ge.now(),o=({timestamp:c})=>{const d=c-l;d>=i&&(ga(o),a(d-i))};return Ut.setup(o,!0),()=>ga(o)}function _o(a){return he(a)?a.get():a}class S6{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&&(qo(this.members,o),o.unmount())}i.scheduleRender()}remove(i){if(qo(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:d}=i.options;(c===void 0||c!==d)&&(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 Bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Oc=["","X","Y","Z"],T6=1e3;let w6=0;function _c(a,i,l,o){const{latestValues:c}=i;c[a]&&(l[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function Dy(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const l=$g(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Ut,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&Dy(o)}function Ry({attachResizeListener:a,defaultParent:i,measureScroll:l,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},m=i?.()){this.id=w6++,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(M6),this.nodes.forEach(R6),this.nodes.forEach(k6),this.nodes.forEach(j6)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new b6)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Ef),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const y=this.eventHandlers.get(f);y&&y.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=qf(f)&&!E8(f),this.instance=f;const{layoutId:m,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),a){let v,x=0;const S=()=>this.root.updateBlockedByResize=!1;Ut.read(()=>{x=window.innerWidth}),a(f,()=>{const M=window.innerWidth;M!==x&&(x=M,this.root.updateBlockedByResize=!0,v&&v(),v=x6(S,250),Bo.hasAnimatedSinceResize&&(Bo.hasAnimatedSinceResize=!1,this.nodes.forEach(hp)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||p.getDefaultTransition()||L6,{onLayoutAnimationStart:z,onLayoutAnimationComplete:O}=p.getProps(),L=!this.targetLayout||!Cy(this.targetLayout,M),Z=!x&&S;if(this.options.layoutRoot||this.resumeFrom||Z||x&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={...Of(E,"layout"),onPlay:z,onComplete:O};(p.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(v,Z)}else x||hp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ga(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(V6),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:m,layout:y}=this.options;if(m===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const y=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),y&&this.nodes.forEach(z6),this.nodes.forEach(fp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(dp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(N6),this.nodes.forEach(D6),this.nodes.forEach(A6),this.nodes.forEach(E6)):this.nodes.forEach(dp),this.clearAllSnapshots();const m=ge.now();de.delta=vn(0,1e3/60,m-de.timestamp),de.timestamp=m,de.isProcessing=!0,jc.update.process(de),jc.preRender.process(de),jc.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(C6),this.sharedNodes.forEach(O6)}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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ae()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!jy(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||Ua(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return f&&(y=this.removeTransform(y)),U6(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return ae();const m=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(H6))){const{scroll:p}=this.root;p&&(pn(m.x,p.offset.x),pn(m.y,p.offset.y))}return m}removeElementScroll(f){const m=ae();if(an(m,f),this.scroll?.wasRoot)return m;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:v,options:x}=p;p!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&an(m,f),pn(m.x,v.offset.x),pn(m.y,v.offset.y))}return m}applyTransform(f,m=!1,y){const p=y||ae();an(p,f);for(let v=0;v<this.path.length;v++){const x=this.path[v];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(pn(p.x,-x.scroll.offset.x),pn(p.y,-x.scroll.offset.y)),Ua(x.latestValues)&&Oo(p,x.latestValues,x.layout?.layoutBox)}return Ua(this.latestValues)&&Oo(p,this.latestValues,this.layout?.layoutBox),p}removeTransform(f){const m=ae();an(m,f);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!Ua(p.latestValues))continue;let v;p.instance&&(df(p.latestValues)&&p.updateSnapshot(),v=ae(),an(v,p.measurePageBox())),np(m,p.latestValues,p.snapshot?.layoutBox,v)}return Ua(this.latestValues)&&np(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(f||y&&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(),o6(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):an(this.target,this.layout.layoutBox),py(this.target,this.targetDelta)):an(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||df(this.parent.latestValues)||my(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,m,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Fo(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),an(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===de.timestamp&&(y=!1),y)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;an(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;_8(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=ae());const{target:M}=f;if(!M){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(P1(this.prevProjectionDelta.x,this.projectionDelta.x),P1(this.prevProjectionDelta.y,this.projectionDelta.y)),Hs(this.projectionDelta,this.layoutCorrected,M,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!op(this.projectionDelta.x,this.prevProjectionDelta.x)||!op(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",M))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oi(),this.projectionDelta=Oi(),this.projectionDeltaWithTransform=Oi()}setAnimationOrigin(f,m=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},x=Oi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const S=ae(),M=y?y.source:void 0,E=this.layout?this.layout.source:void 0,z=M!==E,O=this.getStack(),L=!O||O.members.length<=1,Z=!!(z&&!L&&this.options.crossfade===!0&&!this.path.some(B6));this.animationProgress=0;let Y;this.mixTargetDelta=X=>{const q=X/1e3;mp(x.x,f.x,q),mp(x.y,f.y,q),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),_6(this.relativeTarget,this.relativeTargetOrigin,S,q),Y&&f6(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=ae()),an(Y,this.relativeTarget)),z&&(this.animationValues=v,m6(v,p,this.latestValues,q,Z,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ga(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ut.update(()=>{Bo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Bi(0)),this.motionValue.jump(0,!1),this.currentAnimation=y6(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),f.onUpdate&&f.onUpdate(m)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(T6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:v}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&ky(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||ae();const x=ye(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+x;const S=ye(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}an(m,y),Oo(m,v),Hs(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new S6),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&_c("z",f,p,this.animationValues);for(let v=0;v<Oc.length;v++)_c(`rotate${Oc[v]}`,f,p,this.animationValues),_c(`skew${Oc[v]}`,f,p,this.animationValues);f.render();for(const v in p)f.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=_o(m?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=_o(m?.pointerEvents)||""),this.hasProjected&&!Ua(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=d6(this.projectionDeltaWithTransform,this.treeScale,v);y&&(x=y(v,x)),f.transform=x;const{x:S,y:M}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${M.origin*100}% 0`,p.animationValues?f.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in mf){if(v[E]===void 0)continue;const{correct:z,applyTo:O,isCSSVariable:L}=mf[E],Z=x==="none"?v[E]:z(v[E],p);if(O){const Y=O.length;for(let X=0;X<Y;X++)f[O[X]]=Z}else L?this.options.visualElement.renderState.vars[E]=Z:f[E]=Z}this.options.layoutId&&(f.pointerEvents=p===this?_o(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(fp),this.root.sharedNodes.clear()}}}function A6(a){a.updateLayout()}function E6(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,d=i.source!==a.layout.source;if(c==="size")mn(v=>{const x=d?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";pf(d?i.measuredBox[v]:i.layoutBox[v],l[v])}else ky(c,i.layoutBox,l)&&mn(v=>{const x=d?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 f=Oi();Hs(f,l,i.layoutBox);const m=Oi();d?Hs(m,a.applyTransform(o,!0),i.measuredBox):Hs(m,l,i.layoutBox);const y=!jy(f);let p=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:S}=v;if(x&&S){const M=a.options.layoutAnchor||void 0,E=ae();Fo(E,i.layoutBox,x.layoutBox,M);const z=ae();Fo(z,l,S.layoutBox,M),Cy(E,z)||(p=!0),v.options.layoutRoot&&(a.relativeTarget=z,a.relativeTargetOrigin=E,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:m,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function M6(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 j6(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function C6(a){a.clearSnapshot()}function fp(a){a.clearMeasurements()}function z6(a){a.isLayoutDirty=!0,a.updateLayout()}function dp(a){a.isLayoutDirty=!1}function N6(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function D6(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function hp(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function R6(a){a.resolveTargetDelta()}function k6(a){a.calcProjection()}function V6(a){a.resetSkewAndRotation()}function O6(a){a.removeLeadSnapshot()}function mp(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 pp(a,i,l,o){a.min=qt(i.min,l.min,o),a.max=qt(i.max,l.max,o)}function _6(a,i,l,o){pp(a.x,i.x,l.x,o),pp(a.y,i.y,l.y,o)}function B6(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const L6={duration:.45,ease:[.4,0,.1,1]},gp=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),yp=gp("applewebkit/")&&!gp("chrome/")?Math.round:Pe;function vp(a){a.min=yp(a.min),a.max=yp(a.max)}function U6(a){vp(a.x),vp(a.y)}function ky(a,i,l){return a==="position"||a==="preserve-aspect"&&!l6(lp(i),lp(l),.2)}function H6(a){return a!==a.root&&a.scroll?.wasRoot}const G6=Ry({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}),Bc={current:void 0},Vy=Ry({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Bc.current){const a=new G6({});a.mount(window),a.setOptions({layoutScroll:!0}),Bc.current=a}return Bc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Oy=V.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function q6(a=!0){const i=V.useContext(Tf);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:c}=i,d=V.useId();V.useEffect(()=>{if(a)return c(d)},[a]);const f=V.useCallback(()=>a&&o&&o(d),[d,o,a]);return!l&&o?[!1,f]:[!0]}const _y=V.createContext({strict:!1}),bp={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 xp=!1;function Y6(){if(xp)return;const a={};for(const i in bp)a[i]={isEnabled:l=>bp[i].some(o=>!!l[o])};fy(a),xp=!0}function By(){return Y6(),R8()}function X6(a){const i=By();for(const l in a)i[l]={...i[l],...a[l]};fy(i)}const Z6=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 Po(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Z6.has(a)}let Ly=a=>!Po(a);function Q6(a){typeof a=="function"&&(Ly=i=>i.startsWith("on")?!Po(i):a(i))}try{Q6(require("@emotion/is-prop-valid").default)}catch{}function K6(a,i,l){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||he(a[c])||(Ly(c)||l===!0&&Po(c)||!i&&!Po(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const er=V.createContext({});function J6(a,i){if(tr(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 F6(a){const{initial:i,animate:l}=J6(a,V.useContext(er));return V.useMemo(()=>({initial:i,animate:l}),[Sp(i),Sp(l)])}function Sp(a){return Array.isArray(a)?a.join(" "):a}const Kf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uy(a,i,l){for(const o in i)!he(i[o])&&!vy(o,l)&&(a[o]=i[o])}function P6({transformTemplate:a},i){return V.useMemo(()=>{const l=Kf();return Zf(l,i,a),Object.assign({},l.vars,l.style)},[i])}function $6(a,i){const l=a.style||{},o={};return Uy(o,l,a),Object.assign(o,P6(a,i)),o}function W6(a,i){const l={},o=$6(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 Hy=()=>({...Kf(),attrs:{}});function I6(a,i,l,o){const c=V.useMemo(()=>{const d=Hy();return by(d,i,Sy(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};Uy(d,a.style,a),c.style={...d,...c.style}}return c}const t7=["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:!!(t7.indexOf(a)>-1||/[A-Z]/u.test(a))}function e7(a,i,l,{latestValues:o},c,d=!1,f){const y=(f??Jf(a)?I6:W6)(i,o,c,a),p=K6(i,typeof a=="string",d),v=a!==V.Fragment?{...p,...y,ref:l}:{},{children:x}=i,S=V.useMemo(()=>he(x)?x.get():x,[x]);return V.createElement(a,{...v,children:S})}function n7({scrapeMotionValuesFromProps:a,createRenderState:i},l,o,c){return{latestValues:a7(l,o,c,a),renderState:i()}}function a7(a,i,l,o){const c={},d=o(a,{});for(const S in d)c[S]=_o(d[S]);let{initial:f,animate:m}=a;const y=tr(a),p=uy(a);i&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let v=l?l.initial===!1:!1;v=v||f===!1;const x=v?m:f;if(x&&typeof x!="boolean"&&!Io(x)){const S=Array.isArray(x)?x:[x];for(let M=0;M<S.length;M++){const E=Bf(a,S[M]);if(E){const{transitionEnd:z,transition:O,...L}=E;for(const Z in L){let Y=L[Z];if(Array.isArray(Y)){const X=v?Y.length-1:0;Y=Y[X]}Y!==null&&(c[Z]=Y)}for(const Z in z)c[Z]=z[Z]}}}return c}const Gy=a=>(i,l)=>{const o=V.useContext(er),c=V.useContext(Tf),d=()=>n7(a,i,o,c);return l?d():t5(d)},i7=Gy({scrapeMotionValuesFromProps:Qf,createRenderState:Kf}),s7=Gy({scrapeMotionValuesFromProps:Ty,createRenderState:Hy}),l7=Symbol.for("motionComponentSymbol");function o7(a,i,l){const o=V.useRef(l);V.useInsertionEffect(()=>{o.current=l});const c=V.useRef(null);return V.useCallback(d=>{d&&a.onMount?.(d);const f=o.current;if(typeof f=="function")if(d){const m=f(d);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d);i&&(d?i.mount(d):i.unmount())},[i])}const qy=V.createContext({});function Di(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function r7(a,i,l,o,c,d){const{visualElement:f}=V.useContext(er),m=V.useContext(_y),y=V.useContext(Tf),p=V.useContext(Oy),v=p.reducedMotion,x=p.skipAnimations,S=V.useRef(null),M=V.useRef(!1);o=o||m.renderer,!S.current&&o&&(S.current=o(a,{visualState:i,parent:f,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:d}),M.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const E=S.current,z=V.useContext(qy);E&&!E.projection&&c&&(E.type==="html"||E.type==="svg")&&u7(S.current,l,c,z);const O=V.useRef(!1);V.useInsertionEffect(()=>{E&&O.current&&E.update(l,y)});const L=l[Pg],Z=V.useRef(!!L&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(L)&&window.MotionHasOptimisedAnimation?.(L));return n5(()=>{M.current=!0,E&&(O.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),Z.current&&E.animationState&&E.animationState.animateChanges())}),V.useEffect(()=>{E&&(!Z.current&&E.animationState&&E.animationState.animateChanges(),Z.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(L)}),Z.current=!1),E.enteringChildren=void 0)}),E}function u7(a,i,l,o){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutAnchor:v,layoutCrossfade:x}=i;a.projection=new l(a.latestValues,i["data-framer-portal-id"]?void 0:Yy(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&Di(m),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:x,layoutScroll:y,layoutRoot:p,layoutAnchor:v})}function Yy(a){if(a)return a.options.allowProjection!==!1?a.projection:Yy(a.parent)}function Lc(a,{forwardMotionProps:i=!1,type:l}={},o,c){o&&X6(o);const d=l?l==="svg":Jf(a),f=d?s7:i7;function m(p,v){let x;const S={...V.useContext(Oy),...p,layoutId:c7(p)},{isStatic:M}=S,E=F6(p),z=f(p,M);if(!M&&typeof window<"u"){f7();const O=d7(S);x=O.MeasureLayout,E.visualElement=r7(a,z,S,c,O.ProjectionNode,d)}return g.jsxs(er.Provider,{value:E,children:[x&&E.visualElement?g.jsx(x,{visualElement:E.visualElement,...S}):null,e7(a,p,o7(z,E.visualElement,v),z,M,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=V.forwardRef(m);return y[l7]=a,y}function c7({layoutId:a}){const i=V.useContext(rg).id;return i&&a!==void 0?i+"-"+a:a}function f7(a,i){V.useContext(_y).strict}function d7(a){const i=By(),{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 h7(a,i){if(typeof Proxy>"u")return Lc;const l=new Map,o=(d,f)=>Lc(d,f,a,i),c=(d,f)=>o(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?o:(l.has(f)||l.set(f,Lc(f,void 0,a,i)),l.get(f))})}const m7=(a,i)=>i.isSVG??Jf(a)?new F8(i):new Y8(i,{allowProjection:a!==V.Fragment});class p7 extends va{constructor(i){super(i),i.animationState||(i.animationState=t6(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Io(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 g7=0;class y7 extends va{constructor(){super(...arguments),this.id=g7++,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:d,custom:f}=this.node.getProps();if(typeof d=="string"){const m=Ya(this.node,d,f);if(m){const{transition:y,transitionEnd:p,...v}=m;for(const x in v)this.node.getValue(x)?.jump(v[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!i);l&&!i&&c.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const v7={animation:{Feature:p7},exit:{Feature:y7}};function al(a){return{point:{x:a.pageX,y:a.pageY}}}const b7=a=>i=>Gf(i)&&a(i,al(i));function Gs(a,i,l,o){return Ps(a,i,b7(l),o)}const Xy=({current:a})=>a?a.ownerDocument.defaultView:null,Tp=(a,i)=>Math.abs(a-i);function x7(a,i){const l=Tp(a.x,i.x),o=Tp(a.y,i.y);return Math.sqrt(l**2+o**2)}const wp=new Set(["auto","scroll"]);class Zy{constructor(i,l,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=M=>{this.handleScroll(M.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Mo(this.lastRawMoveEventInfo,this.transformPagePoint));const M=Uc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,z=x7(M.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!z)return;const{point:O}=M,{timestamp:L}=de;this.history.push({...O,timestamp:L});const{onStart:Z,onMove:Y}=this.handlers;E||(Z&&Z(this.lastMoveEvent,M),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,M)},this.handlePointerMove=(M,E)=>{this.lastMoveEvent=M,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=Mo(E,this.transformPagePoint),Ut.update(this.updatePoint,!0)},this.handlePointerUp=(M,E)=>{this.end();const{onEnd:z,onSessionEnd:O,resumeAnimation:L}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Z=Uc(M.type==="pointercancel"?this.lastMoveEventInfo:Mo(E,this.transformPagePoint),this.history);this.startEvent&&z&&z(M,Z),O&&O(M,Z)},!Gf(i))return;this.dragSnapToOrigin=d,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const y=al(i),p=Mo(y,this.transformPagePoint),{point:v}=p,{timestamp:x}=de;this.history=[{...v,timestamp:x}];const{onSessionStart:S}=l;S&&S(i,Uc(p,this.history)),this.removeListeners=tl(Gs(this.contextWindow,"pointermove",this.handlePointerMove),Gs(this.contextWindow,"pointerup",this.handlePointerUp),Gs(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let l=i.parentElement;for(;l;){const o=getComputedStyle(l);(wp.has(o.overflowX)||wp.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},d={x:c.x-l.x,y:c.y-l.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(i,c),Ut.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ga(this.updatePoint)}}function Mo(a,i){return i?{point:i(a.point)}:a}function Ap(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Uc({point:a},i){return{point:a,delta:Ap(a,Qy(i)),offset:Ap(a,S7(i)),velocity:T7(i,.1)}}function S7(a){return a[0]}function Qy(a){return a[a.length-1]}function T7(a,i){if(a.length<2)return{x:0,y:0};let l=a.length-1,o=null;const c=Qy(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 d=Fe(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function w7(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 Ep(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 A7(a,{top:i,left:l,bottom:o,right:c}){return{x:Ep(a.x,l,c),y:Ep(a.y,i,o)}}function Mp(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 E7(a,i){return{x:Mp(a.x,i.x),y:Mp(a.y,i.y)}}function M7(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)),vn(0,1,l)}function j7(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 gf=.35;function C7(a=gf){return a===!1?a=0:a===!0&&(a=gf),{x:jp(a,"left","right"),y:jp(a,"top","bottom")}}function jp(a,i,l){return{min:Cp(a,i),max:Cp(a,l)}}function Cp(a,i){return typeof a=="number"?a:a[i]||0}const z7=new WeakMap;class N7{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 d=x=>{l&&this.snapToCursor(al(x).point),this.stopAnimation()},f=(x,S)=>{const{drag:M,dragPropagation:E,onDragStart:z}=this.getProps();if(M&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=r8(M),!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),mn(L=>{let Z=this.getAxisMotionValue(L).get()||0;if(yn.test(Z)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const X=Y.layout.layoutBox[L];X&&(Z=ye(X)*(parseFloat(Z)/100))}}this.originPoint[L]=Z}),z&&Ut.update(()=>z(x,S),!1,!0),of(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},m=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:M,dragDirectionLock:E,onDirectionLock:z,onDrag:O}=this.getProps();if(!M&&!this.openDragLock)return;const{offset:L}=S;if(E&&this.currentDirection===null){this.currentDirection=R7(L),this.currentDirection!==null&&z&&z(this.currentDirection);return}this.updateAxis("x",S.point,L),this.updateAxis("y",S.point,L),this.visualElement.render(),O&&Ut.update(()=>O(x,S),!1,!0)},y=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Zy(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Xy(this.visualElement),element:this.visualElement.current})}stop(i,l){const o=i||this.latestPointerEvent,c=l||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Ut.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,o){const{drag:c}=this.getProps();if(!o||!jo(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=w7(f,this.constraints[i],this.elastic[i])),d.set(f)}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&&Di(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=A7(o.layoutBox,i):this.constraints=!1,this.elastic=C7(l),c!==this.constraints&&!Di(i)&&o&&this.constraints&&!this.hasMutatedConstraints&&mn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=j7(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Di(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=B8(o,c.root,this.visualElement.getTransformPagePoint());let f=E7(c.layout.layoutBox,d);if(l){const m=l(V8(f));this.hasMutatedConstraints=!!m,m&&(f=hy(m))}return f}startAnimation(i){const{drag:l,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=mn(v=>{if(!jo(v,l,this.currentDirection))return;let x=y&&y[v]||{};(f===!0||f===v)&&(x={min:0,max:0});const S=c?200:1e6,M=c?40:1e7,E={type:"inertia",velocity:o?i[v]:0,bounceStiffness:S,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10,...d,...x};return this.startAxisValueAnimation(v,E)});return Promise.all(p).then(m)}startAxisValueAnimation(i,l){const o=this.getAxisMotionValue(i);return of(this.visualElement,i),o.start(_f(i,o,0,l,this.visualElement,!1))}stopAnimation(){mn(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){mn(l=>{const{drag:o}=this.getProps();if(!jo(l,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(l);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[l],y=d.get()||0;d.set(i[l]-qt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!Di(l)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};mn(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=M7({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),mn(f=>{if(!jo(f,i,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(qt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;z7.set(this.visualElement,this);const i=this.visualElement.current,l=Gs(i,"pointerdown",p=>{const{drag:v,dragListener:x=!0}=this.getProps(),S=p.target,M=S!==i&&m8(S);v&&x&&!M&&this.start(p)});let o;const c=()=>{const{dragConstraints:p}=this.getProps();Di(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),o||(o=D7(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Ut.read(c);const m=Ps(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(mn(x=>{const S=this.getAxisMotionValue(x);S&&(this.originPoint[x]+=p[x].translate,S.set(S.get()+p[x].translate))}),this.visualElement.render())}));return()=>{m(),l(),f(),y&&y(),o&&o()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=gf,dragMomentum:m=!0}=i;return{...i,drag:l,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function zp(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function D7(a,i,l){const o=L1(a,zp(l)),c=L1(i,zp(l));return()=>{o(),c()}}function jo(a,i,l){return(i===!0||i===a)&&(l===null||l===a)}function R7(a,i=10){let l=null;return Math.abs(a.y)>i?l="y":Math.abs(a.x)>i&&(l="x"),l}class k7 extends va{constructor(i){super(i),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new N7(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}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 Hc=a=>(i,l)=>{a&&Ut.update(()=>a(i,l),!1,!0)};class V7 extends va{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(i){this.session=new Zy(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xy(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Hc(i),onStart:Hc(l),onMove:Hc(o),onEnd:(d,f)=>{delete this.session,c&&Ut.postRender(()=>c(d,f))}}}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 Gc=!1;class O7 extends V.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=i;d&&(l.group&&l.group.add(d),o&&o.register&&c&&o.register(d),Gc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:o,drag:c,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,i.layoutDependency!==l&&f.setOptions({...f.options,layoutDependency:l}),Gc=!0,c||i.layoutDependency!==l||l===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Ut.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:l}=this.props,{projection:o}=i;o&&(o.options.layoutAnchor=l,o.root.didUpdate(),Hf.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:c}=i;Gc=!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 Ky(a){const[i,l]=q6(),o=V.useContext(rg);return g.jsx(O7,{...a,layoutGroup:o,switchLayoutGroup:V.useContext(qy),isPresent:i,safeToRemove:l})}const _7={pan:{Feature:V7},drag:{Feature:k7,ProjectionNode:Vy,MeasureLayout:Ky}};function Np(a,i,l){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,d=o[c];d&&Ut.postRender(()=>d(i,al(i)))}class B7 extends va{mount(){const{current:i}=this.node;i&&(this.unmount=c8(i,(l,o)=>(Np(this.node,o,"Start"),c=>Np(this.node,c,"End"))))}unmount(){}}class L7 extends va{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=tl(Ps(this.node.current,"focus",()=>this.onFocus()),Ps(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Dp(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),d=o[c];d&&Ut.postRender(()=>d(i,al(i)))}class U7 extends va{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:o}=this.node.props;this.unmount=g8(i,(c,d)=>(Dp(this.node,d,"Start"),(f,{success:m})=>Dp(this.node,f,m?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:o?.tap===!1})}unmount(){}}const yf=new WeakMap,qc=new WeakMap,H7=a=>{const i=yf.get(a.target);i&&i(a)},G7=a=>{a.forEach(H7)};function q7({root:a,...i}){const l=a||document;qc.has(l)||qc.set(l,{});const o=qc.get(l),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(G7,{root:a,...i})),o[c]}function Y7(a,i,l){const o=q7(i);return yf.set(a,l),o.observe(a),()=>{yf.delete(a),o.unobserve(a)}}const X7={some:0,all:1};class Z7 extends va{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:d}=i,f={root:l?l.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:X7[c]},m=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),S=p?v:x;S&&S(y)};this.stopObserver=Y7(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(Q7(i,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Q7({viewport:a={}},{viewport:i={}}={}){return l=>a[l]!==i[l]}const K7={inView:{Feature:Z7},tap:{Feature:U7},focus:{Feature:L7},hover:{Feature:B7}},J7={layout:{ProjectionNode:Vy,MeasureLayout:Ky}},F7={...v7,...K7,..._7,...J7},Yc=h7(F7,m7),Be=({label:a,children:i,variant:l="primary",size:o="medium",icon:c,onClick:d,removable:f=!1,className:m,maxWidth:y,appearance:p,onRemove:v,isLoading:x=!1})=>{const S=P7(l),M=p??(l==="outline"?"outline":"solid"),E=a??i,z=!!d,O={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"}},L={small:"text-xs px-2 py-1",medium:"text-xs px-2.5 py-1",large:"text-sm px-3 py-1.5"},Z=X=>{X.stopPropagation(),d?.()},Y=X=>{X.stopPropagation(),v?.()};return g.jsxs(Yc.div,{initial:{opacity:0,scale:.95,y:8,filter:"blur(8px)"},animate:{opacity:1,scale:1,y:0,filter:"blur(0px)"},transition:{duration:.32,ease:"easeInOut",type:"spring"},whileHover:{scale:z?1.04:1,backgroundColor:z&&S==="primary"?"#111111d1":void 0,transition:{duration:.2,ease:"easeInOut",type:"spring"}},onClick:Z,style:{maxWidth:y},className:bt("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",O[S][M],L[o],z&&"cursor-pointer",m),children:[x?g.jsx(Yc.div,{animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},className:"flex-shrink-0",children:g.jsx(Yp,{className:"size-3.5"})}):c&&g.jsx("span",{className:"flex-shrink-0",children:c}),g.jsx("span",{className:"min-w-0 truncate",children:E}),f&&g.jsx(Yc.button,{initial:{opacity:0,scale:.95,filter:"blur(8px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},whileHover:{scale:1.1,opacity:1,transition:{duration:.2,ease:"easeInOut",type:"spring"}},className:"flex items-center justify-center rounded-md bg-[#11111198] p-1 opacity-70 hover:opacity-100",onClick:Y,type:"button",children:g.jsx($o,{className:"size-3.5"})})]})};function P7(a){return a==="danger"?"error":a==="default"||a==="outline"?"primary":a}const $7=Kp("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 rn({className:a,variant:i,...l}){return g.jsx("div",{className:bt($7({variant:i,className:a})),...l})}function qs({className:a,...i}){return g.jsx("div",{className:bt("rounded-lg border border-border bg-card text-card-foreground",a),...i})}function Ys({className:a,...i}){return g.jsx("div",{className:bt("grid gap-1.5 p-4",a),...i})}function Xs({className:a,...i}){return g.jsx("h3",{className:bt("text-sm font-semibold tracking-tight",a),...i})}function Lo({className:a,...i}){return g.jsx("p",{className:bt("text-sm text-muted-foreground",a),...i})}function Zs({className:a,...i}){return g.jsx("div",{className:bt("p-4 pt-0",a),...i})}const W7=[{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%)"}],I7=({size:a=20,color:i="#8f8f8f"})=>g.jsx("div",{style:{width:a,height:a},children:g.jsx("div",{className:"relative left-1/2 top-1/2",style:{width:a,height:a},children:W7.map(l=>g.jsx("div",{className:"absolute -left-[10%] -top-[3.9%] h-[8%] w-[24%] animate-fade-spin rounded-[5px]",style:{backgroundColor:i,...l}},l.transform))})}),tS=[{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"}],eS={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"},nS={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]"}},Co=({size:a="medium",type:i="primary",variant:l="styled",shape:o="square",svgOnly:c=!1,children:d,prefix:f,suffix:m,shadow:y=!1,loading:p=!1,disabled:v=!1,fullWidth:x=!1,className:S,...M})=>g.jsxs("button",{disabled:v,tabIndex:0,className:Qs("flex items-center justify-center gap-0.5 duration-150",tS[+c][a],v||p?"cursor-not-allowed border border-gray-400 bg-gray-100 text-gray-700":eS[i],nS[o][a],y&&"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",...M,children:[p?g.jsx(I7,{size:a==="large"?24:16}):f,g.jsx("span",{className:Qs("relative overflow-hidden overflow-ellipsis whitespace-nowrap font-sans",a!=="tiny"&&l!=="unstyled"&&"px-1.5"),children:d}),!p&&m]}),aS=({className:a})=>g.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:a,children:g.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"})}),iS=()=>g.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:"fill-gray-1000",children:g.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 Xc=null,sS=0;const te={toasts:[],listeners:new Set,add(a,i,l,o,c,d){const f=sS++,m={id:f,text:a,preserve:l,action:o,onAction:c,onUndoAction:d,type:i};if(!m.preserve){m.remaining=3e3,m.start=Date.now();const y=()=>{this.toasts=this.toasts.filter(p=>p.id!==f),this.notify()};m.timeout=setTimeout(y,m.remaining),m.pause=()=>{m.timeout&&(clearTimeout(m.timeout),m.timeout=void 0,m.remaining-=Date.now()-m.start)},m.resume=()=>{m.timeout||(m.start=Date.now(),m.timeout=setTimeout(y,m.remaining))}}this.toasts.push(m),this.notify()},remove(a){te.toasts=te.toasts.filter(i=>i.id!==a),te.notify()},subscribe(a){return te.listeners.add(a),()=>{te.listeners.delete(a)}},notify(){te.listeners.forEach(a=>a())}},lS=()=>{const[a,i]=V.useState([]),[l,o]=V.useState([]),[c,d]=V.useState(!1),f=E=>z=>{z&&E.measuredHeight==null&&(E.measuredHeight=z.getBoundingClientRect().height,te.notify())};V.useEffect(()=>(i([...te.toasts]),te.subscribe(()=>{i([...te.toasts])})),[]),V.useEffect(()=>{const E=a.filter(z=>!l.includes(z.id)).map(z=>z.id);E.length>0&&requestAnimationFrame(()=>{o(z=>[...z,...E])})},[l,a]);const y=Math.max(0,a.length-3),p=(E,z)=>{if(E===z-1)return"none";const O=z-1-E;let L=a[z-1]?.measuredHeight||63;for(let X=z-1;X>E;X--)c?L+=(a[X-1]?.measuredHeight||63)+10:L+=20;const Z=-O,Y=c?1:1-.05*O;return`translate3d(0, calc(100% - ${L}px), ${Z}px) scale(${Y})`},v=()=>{d(!0),te.toasts.forEach(E=>E.pause?.())},x=()=>{d(!1),te.toasts.forEach(E=>E.resume?.())},M=a.slice(y).reduce((E,z)=>E+(z.measuredHeight??63),0);return g.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[9999] w-[min(420px,calc(100vw-2rem))]",style:{height:M},children:g.jsx("div",{className:"pointer-events-auto relative w-full",style:{height:M},onMouseEnter:v,onMouseLeave:x,children:a.map((E,z)=>{const O=z>=y;return g.jsx("div",{ref:f(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],O?"opacity-100":"opacity-0",z<y&&"pointer-events-none"),style:{width:"100%",transition:"all .35s cubic-bezier(.25,.75,.6,.98)",transform:l.includes(E.id)?p(z,a.length):"translate3d(0, 100%, 150px) scale(1)"},children:g.jsxs("div",{className:"flex flex-col items-center justify-between text-[.875rem]",children:[g.jsxs("div",{className:"flex h-full w-full items-center justify-between gap-4",children:[g.jsx("span",{children:E.text}),!E.action&&g.jsxs("div",{className:"flex gap-1",children:[E.onUndoAction&&g.jsx(Co,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>{E.onUndoAction?.(),te.remove(E.id)},children:g.jsx(iS,{})}),g.jsx(Co,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>te.remove(E.id),children:g.jsx(aS,{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&&g.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[g.jsx(Co,{type:"tertiary",size:"small",onClick:()=>te.remove(E.id),children:"Dismiss"}),g.jsx(Co,{type:"primary",size:"small",onClick:()=>{E.onAction?.(),te.remove(E.id)},children:E.action})]})]})},E.id)})})})},zo=()=>{if(Xc)return;const a=document.createElement("div");a.className="fixed bottom-4 right-4 z-[9999]",document.body.appendChild(a),Xc=Gp.createRoot(a),Xc.render(g.jsx(lS,{}))},Za=()=>({message:V.useCallback(({text:a,preserve:i,action:l,onAction:o,onUndoAction:c})=>{zo(),te.add(a,"message",i,l,o,c)},[]),success:V.useCallback(a=>{zo(),te.add(a,"success")},[]),warning:V.useCallback(a=>{zo(),te.add(a,"warning")},[]),error:V.useCallback(a=>{zo(),te.add(a,"error")},[])});function Jy({label:a}){return g.jsx(rn,{variant:"muted",className:"m-4 text-center",children:a})}function gn({className:a,type:i,...l}){return g.jsx("input",{type:i,className:bt("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 Rp({onChange:a,value:i}){return g.jsxs("label",{className:"relative block",children:[g.jsx(K3,{className:"pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),g.jsx(gn,{"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 kp({className:a,containerRef:i,emptyText:l,logs:o,query:c}){return g.jsx("div",{className:bt("h-full max-w-full overflow-auto font-mono text-[11px] leading-5",a),ref:i,role:"log",children:o.length?o.map((d,f)=>g.jsxs("div",{className:bt("grid min-w-max grid-cols-[168px_minmax(420px,1fr)] gap-2 border-b border-border/45 px-3 py-0.5",d.stream==="stderr"?"bg-red-50/70 text-red-800":"bg-emerald-50/35 text-zinc-800"),children:[g.jsx("span",{className:"text-muted-foreground",children:d.timestamp}),g.jsxs("span",{className:"whitespace-pre-wrap break-words",children:[d.stream==="stderr"?g.jsx("span",{className:"mr-2 rounded bg-red-100 px-1 font-semibold uppercase text-red-700",children:"stderr"}):null,rS(d.text,c)]})]},`${d.timestamp}-${d.stream}-${f}`)):g.jsx("div",{className:"p-3 text-muted-foreground",children:l})})}function oS(a){return`${a.timestamp} ${a.stream} ${a.text}`}function rS(a,i){const l=i.trim();if(!l)return a;const o=a.toLowerCase(),c=l.toLowerCase(),d=[];let f=0,m=o.indexOf(c);for(;m!==-1;){m>f&&d.push(a.slice(f,m));const y=m+l.length;d.push(g.jsx("mark",{className:"rounded bg-amber-200 px-0.5 text-amber-950",children:a.slice(m,y)},`${m}-${y}`)),f=y,m=o.indexOf(c,f)}return f<a.length&&d.push(a.slice(f)),d}function uS({ports:a}){const i=a.filter(o=>o.state==="occupied").length,l=a.filter(o=>o.state==="managed").length;return g.jsxs(qs,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[g.jsxs(Ys,{className:"border-b border-border px-3 py-2",children:[g.jsxs(Xs,{className:"flex items-center gap-2",children:[g.jsx(M3,{className:"size-3.5"}),"Ports"]}),g.jsxs(Lo,{className:"text-xs",children:[l," managed, ",i," occupied by other"]})]}),g.jsx(Zs,{className:"p-0",children:a.length?g.jsx("div",{className:"divide-y divide-border",children:a.map(o=>g.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-center gap-2 px-3 py-2",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"font-mono text-xs",children:[":",o.port]}),g.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:o.services.join(", ")||"Unassigned"}),o.urls[0]?g.jsx("div",{className:"truncate font-mono text-[10px] text-muted-foreground",children:o.urls[0]}):null]}),g.jsx(Fy,{port:o})]},o.port))}):g.jsx(Jy,{label:"No configured ports yet."})})]})}function Fy({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 g.jsx(Be,{className:bt(a&&"max-w-36 truncate"),variant:o,children:l})}var Py=Hp();function Ri({className:a,...i}){return g.jsx("label",{className:bt("grid gap-1.5 text-xs font-medium text-muted-foreground",a),...i})}const $e='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',We='</title><path d="',Ie='"/></svg>',cS={title:".NET",slug:"dotnet",get svg(){return $e+".NET"+We+this.path+Ie},path:"M24 8.77h-2.468v7.565h-1.425V8.77h-2.462V7.53H24zm-6.852 7.565h-4.821V7.53h4.63v1.24h-3.205v2.494h2.953v1.234h-2.953v2.604h3.396zm-6.708 0H8.882L4.78 9.863a2.896 2.896 0 0 1-.258-.51h-.036c.032.189.048.592.048 1.21v5.772H3.157V7.53h1.659l3.965 6.32c.167.261.275.442.323.54h.024c-.04-.233-.06-.629-.06-1.185V7.529h1.372zm-8.703-.693a.868.829 0 0 1-.869.829.868.829 0 0 1-.868-.83.868.829 0 0 1 .868-.828.868.829 0 0 1 .869.829Z",source:"https://github.com/dotnet/brand/blob/c7d0f51b8ec59531332d05fb27a5b758a7a3d689/logo/dotnet-logo.svg",hex:"512BD4",guidelines:"https://github.com/dotnet/brand/blob/c7d0f51b8ec59531332d05fb27a5b758a7a3d689/dotnet-styleGuide-2024.pdf",license:{type:"CC0-1.0",url:"https://spdx.org/licenses/CC0-1.0"}},fS={title:"Bun",slug:"bun",get svg(){return $e+"Bun"+We+this.path+Ie},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"},dS={title:"Deno",slug:"deno",get svg(){return $e+"Deno"+We+this.path+Ie},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"}},hS={title:"Docker",slug:"docker",get svg(){return $e+"Docker"+We+this.path+Ie},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"},mS={title:"Go",slug:"go",get svg(){return $e+"Go"+We+this.path+Ie},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"},pS={title:"Node.js",slug:"nodedotjs",get svg(){return $e+"Node.js"+We+this.path+Ie},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"},gS={title:"npm",slug:"npm",get svg(){return $e+"npm"+We+this.path+Ie},path:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",source:"https://www.npmjs.com",hex:"CB3837",guidelines:"https://docs.npmjs.com/policies/logos-and-usage"},yS={title:"pnpm",slug:"pnpm",get svg(){return $e+"pnpm"+We+this.path+Ie},path:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM2 2h3.5v3.5H2zm8.25 0h3.498v3.5H10.25zm8.25 0H22v3.5h-3.5zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zm2 2H22v3.5h-3.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",source:"https://pnpm.io/logos",hex:"F69220"},vS={title:"Python",slug:"python",get svg(){return $e+"Python"+We+this.path+Ie},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/"},Vp={title:"Rust",slug:"rust",get svg(){return $e+"Rust"+We+this.path+Ie},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"}},bS={title:"Vite",slug:"vite",get svg(){return $e+"Vite"+We+this.path+Ie},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"},xS={title:"Yarn",slug:"yarn",get svg(){return $e+"Yarn"+We+this.path+Ie},path:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",source:"https://github.com/yarnpkg/assets/blob/76d30ca2aebed5b73ea8131d972218fb860bd32d/yarn-kitten-circle.svg",hex:"2C8EBB",guidelines:"https://github.com/yarnpkg/assets/tree/76d30ca2aebed5b73ea8131d972218fb860bd32d",license:{type:"CC-BY-4.0",url:"https://spdx.org/licenses/CC-BY-4.0"}};function SS(a){const i=a.toLowerCase();return/\bvite\b/.test(i)?Ee.vite:/\bcargo\s+/.test(i)?Ee.cargo:/\brustc\b/.test(i)?Ee.rust:/\bdotnet\b/.test(i)?Ee.dotnet:/\bdocker(?:\s+compose|-compose|\s+)/.test(i)?Ee.docker:/\bpython3?\b|\buvicorn\b|\bfastapi\b/.test(i)?Ee.python:/\bgo\s+(run|test|build)\b|\bair\b/.test(i)?Ee.go:/\bbun\b/.test(i)?Ee.bun:/\bdeno\b/.test(i)?Ee.deno:/\bpnpm\b/.test(i)?Ee.pnpm:/\byarn\b/.test(i)?Ee.yarn:/\bnpm\b/.test(i)?Ee.npm:/\bnode\b/.test(i)?Ee.node:Ee.generic}const Ee={bun:{kind:"bun",label:"Bun"},cargo:{kind:"cargo",label:"Cargo"},deno:{kind:"deno",label:"Deno"},dotnet:{kind:"dotnet",label:".NET"},docker:{kind:"docker",label:"Docker"},generic:{kind:"generic",label:"Process"},go:{kind:"go",label:"Go"},node:{kind:"node",label:"Node"},npm:{kind:"npm",label:"npm"},pnpm:{kind:"pnpm",label:"pnpm"},python:{kind:"python",label:"Python"},rust:{kind:"rust",label:"Rust"},vite:{kind:"vite",label:"Vite"},yarn:{kind:"yarn",label:"Yarn"}};function Ff({command:a,compact:i}){const l=SS(a),o=TS[l.kind];return g.jsx("span",{"aria-label":`${l.label} process`,className:bt("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?g.jsx("svg",{"aria-hidden":"true",className:i?"size-3.5":"size-4",fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:g.jsx("path",{d:o.path})}):g.jsx(Zp,{className:i?"size-3.5":"size-4"})})}const TS={bun:fS,cargo:Vp,deno:dS,dotnet:cS,docker:hS,generic:null,go:mS,node:pS,npm:gS,pnpm:yS,python:vS,rust:Vp,vite:bS,yarn:xS};function $y({active:a,baseUrl:i,onRefresh:l,restartAction:o,targetLabel:c}){return a?g.jsxs(g.Fragment,{children:[g.jsx(Zc,{intent:"restart",icon:g.jsx(Y3,{}),label:"Restart",action:o,targetLabel:c,url:`${i}/restart`,onRefresh:l}),g.jsx(Zc,{intent:"stop",icon:g.jsx(I3,{}),label:"Stop",targetLabel:c,url:`${i}/stop`,onRefresh:l})]}):g.jsx(Zc,{intent:"start",icon:g.jsx(L3,{}),label:"Start",targetLabel:c,url:`${i}/start`,onRefresh:l})}function $s(a,i,l){const o=l instanceof Error?l.message:String(l);return`${a} failed for ${i}: ${o}`}function Zc({action:a,intent:i="neutral",icon:l,label:o,targetLabel:c,url:d,onRefresh:f}){const[m,y]=V.useState(!1),{error:p,success:v}=Za();return g.jsxs(jt,{className:wS[i],variant:"outline",size:"sm",disabled:m,onClick:async()=>{y(!0);try{a?await a():await ln(d,{}),v(`${o} requested for ${c}.`),await f()}catch(x){p($s(o,c,x))}finally{y(!1)}},children:[l,o]})}const wS={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 AS({children:a,icon:i,onClose:l,title:o}){return V.useEffect(()=>{function c(d){d.key==="Escape"&&l()}return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[l]),Py.createPortal(g.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",onMouseDown:l,children:g.jsxs("div",{"aria-modal":"true",className:"flex max-h-[min(760px,calc(100vh-2rem))] w-full max-w-lg flex-col overflow-hidden rounded-lg border border-border bg-card shadow-xl",onMouseDown:c=>c.stopPropagation(),role:"dialog",children:[g.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[g.jsx("div",{className:"flex size-8 items-center justify-center rounded-md border border-border bg-background text-foreground [&_svg]:size-4",children:i}),g.jsx("h2",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:o}),g.jsx(jt,{"aria-label":"Close dialog",onClick:l,size:"icon",type:"button",variant:"ghost",children:g.jsx($o,{})})]}),g.jsx("div",{className:"min-h-0 overflow-auto p-4",children:a})]})}),document.body)}const ES=[{label:"npm",command:"npm run dev",description:"Node dev server"},{label:"pnpm",command:"pnpm dev",description:"pnpm dev server"},{label:"yarn",command:"yarn dev",description:"Yarn dev server"},{label:"bun",command:"bun dev",description:"Bun dev server"},{label:"Deno",command:"deno task dev",description:"Deno dev task"},{label:"Vite",badgeCommand:"vite",command:"npm run dev -- --host 127.0.0.1",description:"Vite app"},{label:"Go",command:"go run .",description:"Go app"},{label:"Rust",command:"cargo run",description:"Rust app"},{label:".NET",command:"dotnet watch run",description:".NET app"},{label:"Python",command:"python manage.py runserver",description:"Python app"},{label:"Docker",command:"docker compose up",description:"Docker Compose stack"}];function MS({cwd:a,onRefresh:i,onSaved:l}){const{error:o,success:c}=Za(),[d,f]=V.useState(""),[m,y]=V.useState(""),[p,v]=V.useState(a),[x,S]=V.useState(""),[M,E]=V.useState(""),[z,O]=V.useState(null),[L,Z]=V.useState(!1);V.useEffect(()=>{O(null)},[m,p,x]);async function Y(q){q.preventDefault();try{await ln("/api/services",{name:d,command:m,cwd:p,port:x,description:M}),f(""),y(""),v(a),S(""),E(""),O(null),c(`${d} added.`),await i(),l?.()}catch(P){o($s("Add service",d||"service",P))}}async function X(){if(!m.trim()){o("Test command failed for service: command is required.");return}Z(!0);try{O(await lx({command:m,cwd:p,port:x}))}catch(q){o($s("Test command",d||"service",q))}finally{Z(!1)}}return g.jsxs("form",{className:"grid gap-3",onSubmit:Y,children:[g.jsxs("fieldset",{className:"grid gap-2",children:[g.jsx("legend",{className:"text-xs font-medium",children:"Recommended Dev Commands"}),g.jsx("div",{className:"grid grid-cols-2 gap-1.5 sm:grid-cols-4",children:ES.map(q=>g.jsxs(jt,{className:"justify-start gap-1.5",onClick:()=>{y(q.command),E(q.description)},size:"sm",type:"button",variant:"outline",children:[g.jsx(Ff,{command:q.badgeCommand??q.command,compact:!0}),g.jsx("span",{className:"truncate",children:q.label})]},q.label))})]}),g.jsxs(Ri,{children:["Name",g.jsx(gn,{className:"h-8 text-sm",name:"name",onChange:q=>f(q.target.value),placeholder:"backend",required:!0,value:d})]}),g.jsxs(Ri,{children:["Command",g.jsx(gn,{className:"h-8 font-mono text-sm",name:"command",onChange:q=>y(q.target.value),placeholder:"npm run dev",required:!0,value:m})]}),g.jsxs(Ri,{children:["Working Directory",g.jsx(gn,{className:"h-8 font-mono text-sm",name:"cwd",onChange:q=>v(q.target.value),required:!0,value:p})]}),g.jsxs(Ri,{children:["Port",g.jsx(gn,{className:"h-8 text-sm",inputMode:"numeric",name:"port",onChange:q=>S(q.target.value),placeholder:"3001",value:x})]}),g.jsxs(Ri,{children:["Description",g.jsx(gn,{className:"h-8 text-sm",name:"description",onChange:q=>E(q.target.value),placeholder:"API server",value:M})]}),z?g.jsx(jS,{result:z}):null,g.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[g.jsxs(jt,{disabled:L||!m.trim()||!p.trim(),onClick:X,type:"button",variant:"outline",children:[g.jsx(Zp,{}),L?"Testing...":"Test Command"]}),g.jsx(jt,{type:"submit",children:"Add Service"})]})]})}function jS({result:a}){const i=[...a.stdout,...a.stderr].slice(0,4);return g.jsxs(rn,{variant:a.ok?"default":"destructive",children:[g.jsx("div",{className:"font-medium",children:a.ok?"Command test passed":"Command test failed"}),g.jsx("div",{className:"mt-1 text-xs",children:a.message}),i.length?g.jsx("pre",{className:"mt-2 max-h-24 overflow-auto rounded-md bg-background/80 p-2 font-mono text-[11px] leading-4",children:i.join(`
10
+ `)}):null]})}function Wy({initialName:a="",initialServices:i=[],onSaved:l,onRefresh:o,originalName:c,services:d,submitLabel:f="Save Group"}){const{error:m,success:y}=Za();async function p(v){v.preventDefault();const x=v.currentTarget,S=new FormData(x),M=String(S.get("name")??""),E=S.getAll("services").map(z=>String(z)).filter(Boolean);try{await ln("/api/bundles",{name:M,originalName:c,services:E.join(",")}),x.reset(),y(`${M} group saved.`),await o(),l?.()}catch(z){m($s("Save group",M||"group",z))}}return g.jsxs("form",{className:"grid gap-2.5",onSubmit:p,children:[g.jsxs(Ri,{children:["Group name",g.jsx(gn,{className:"h-8 text-sm",defaultValue:a,name:"name",placeholder:"full-stack",required:!0})]}),g.jsxs("fieldset",{className:"grid gap-1.5",children:[g.jsx("legend",{className:"text-xs font-medium",children:"Services"}),d.length?d.map(v=>g.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border px-2.5 py-1.5 text-sm",children:[g.jsx("input",{className:"size-4 accent-primary",defaultChecked:i.includes(v.name),name:"services",type:"checkbox",value:v.name}),g.jsx(Ff,{command:v.command,compact:!0}),g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate text-sm font-medium",children:v.name}),g.jsx("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:v.command})]})]},v.name)):g.jsx(rn,{variant:"muted",children:"Add services before creating a group."})]}),g.jsx(jt,{className:"h-8",disabled:!d.length,type:"submit",children:f})]})}function CS({health:a}){if(!a)return null;const i=a.processTree,l=a.status==="healthy"||a.status==="unknown"?void 0:RS(a.summary);return g.jsxs("div",{className:"mt-1.5 flex min-w-0 flex-wrap items-center gap-2 text-[11px] text-muted-foreground",children:[g.jsxs("span",{className:bt("inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md px-2.5 font-medium",zS(a.status)),children:[g.jsx("span",{className:"inline-flex shrink-0",children:g.jsx(Ub,{className:"size-3"})}),g.jsx("span",{className:"whitespace-nowrap",children:a.status})]}),l?g.jsx("span",{className:"min-w-0 max-w-[420px] truncate",children:l}):null,i?g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"inline-flex items-center gap-1 font-mono",children:[g.jsx($b,{className:"size-3"}),i.processCount," ",i.processCount===1?"process":"processes"]}),g.jsxs("span",{className:"font-mono",children:[DS(i.cpuPercent)," CPU"]}),g.jsxs("span",{className:"inline-flex items-center gap-1 font-mono",children:[g.jsx(A3,{className:"size-3"}),NS(i.rssMb)," RAM"]})]}):null]})}function zS(a){return a==="healthy"?"bg-emerald-600 text-white":a==="warning"?"bg-amber-600 text-white":a==="unhealthy"?"bg-red-600 text-white":"bg-zinc-700 text-white"}function NS(a){return Number.isInteger(a)?`${a} MB`:`${a.toFixed(1)} MB`}function DS(a){return`${a.toFixed(1)}%`}function RS(a){return a.replace(/^Recent error log:\s*/i,"Recent stderr: ").replace(/:\s*\d+(?:\.\d+)? MB RSS\.?$/i,"").replace(/\s+RSS\.?$/i,"")}function kS({allServices:a,group:i,onRefresh:l,ports:o,services:c,health:d,statuses:f}){const[m,y]=V.useState(!1),[p,v]=V.useState(!1),x=c.some(S=>t2(f[S.name]?.state));return g.jsxs("section",{children:[g.jsxs("div",{className:"grid gap-2 bg-muted/35 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[g.jsx("div",{className:"min-w-0",children:g.jsxs("button",{className:"flex max-w-full items-start gap-2 text-left",onClick:()=>v(S=>!S),type:"button",children:[g.jsx(Ws,{className:bt("mt-0.5 size-3.5 shrink-0 text-muted-foreground transition-transform",p&&"-rotate-90")}),g.jsxs("span",{className:"min-w-0",children:[g.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[g.jsx(Be,{appearance:"subtle",className:"shadow-none",size:"small",variant:"secondary",children:"group"}),g.jsx("span",{className:"text-sm font-medium",children:i.name}),g.jsx(Be,{variant:"secondary",children:i.services.length})]}),g.jsx("span",{className:"mt-0.5 block truncate text-xs text-muted-foreground",children:i.services.join(", ")})]})]})}),g.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[g.jsxs(jt,{"aria-expanded":m,onClick:()=>y(S=>!S),size:"sm",type:"button",variant:"outline",children:[g.jsx(_3,{}),"Edit"]}),g.jsx($y,{active:x,baseUrl:`/api/bundles/${encodeURIComponent(i.name)}`,restartAction:async()=>{await ln(`/api/bundles/${encodeURIComponent(i.name)}/stop`,{}),await ln(`/api/bundles/${encodeURIComponent(i.name)}/start`,{})},targetLabel:`group ${i.name}`,onRefresh:l})]})]}),m?g.jsx("div",{className:"border-t border-border bg-background/65 p-3",children:g.jsx(Wy,{initialName:i.name,initialServices:i.services,onRefresh:l,onSaved:()=>y(!1),originalName:i.name,services:a,submitLabel:"Save Group"})}):null,p?null:g.jsx("div",{className:"divide-y divide-border border-t border-border bg-background/45",children:c.length?c.map(S=>g.jsx(Iy,{service:S,status:f[S.name],health:d[S.name],ports:o,onRefresh:l},S.name)):g.jsx(rn,{variant:"muted",className:"m-4",children:"This group does not match any registered services."})})]})}function Iy({service:a,status:i,health:l,ports:o,onRefresh:c}){const d=i?.state??"stopped",f=t2(d),m=i?.url??(a.port?OS(a.port):void 0),y=a.port?o.find(x=>x.port===a.port):void 0,p=_S(i?.url),v=p?o.find(x=>x.port===p):void 0;return g.jsxs("div",{className:"grid gap-2 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[g.jsx(Ff,{command:a.command}),g.jsx("span",{className:"text-sm font-medium",children:a.name}),g.jsx(BS,{state:d}),a.port?g.jsxs(Be,{variant:"outline",children:[":",a.port]}):null,y?g.jsx(Fy,{port:y,compact:!0}):null,v&&v.port!==a.port?g.jsxs(Be,{variant:"success",children:["actual :",v.port]}):null]}),g.jsx("div",{className:"mt-0.5 truncate font-mono text-[11px] text-muted-foreground",children:a.command}),g.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:a.cwd}),g.jsx(CS,{health:l})]}),g.jsxs("div",{className:"flex flex-wrap justify-end gap-1.5",children:[g.jsx(VS,{service:a,onRefresh:c}),m?g.jsxs(jt,{onClick:()=>window.open(m,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",title:m,children:[g.jsx(a3,{}),"Open"]}):null,g.jsx($y,{active:f,baseUrl:`/api/services/${encodeURIComponent(a.name)}`,targetLabel:a.name,onRefresh:c})]})]})}function t2(a){return a==="running"||a==="starting"}function VS({service:a,onRefresh:i}){const[l,o]=V.useState(a.port?String(a.port):""),[c,d]=V.useState(!1),{error:f,success:m}=Za(),y=l.trim()!==(a.port?String(a.port):"");V.useEffect(()=>{o(a.port?String(a.port):"")},[a.port]);async function p(v){v.preventDefault(),d(!0);try{await ln("/api/services",{name:a.name,command:a.command,cwd:a.cwd,port:l,description:a.description}),m(`Port saved for ${a.name}.`),await i()}catch(x){f($s("Save port",a.name,x))}finally{d(!1)}}return g.jsxs("form",{className:"flex items-center gap-1.5",onSubmit:p,children:[g.jsx(gn,{"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}),g.jsx(jt,{"aria-label":`Save port for ${a.name}`,disabled:c||!y,className:"size-8",size:"icon",title:"Save port",type:"submit",variant:"outline",children:g.jsx(Z3,{})})]})}function OS(a){return`http://127.0.0.1:${a}`}function _S(a){if(a)try{const i=new URL(a);return i.port?Number(i.port):void 0}catch{return}}function BS({state:a}){return g.jsx(Be,{variant:a==="running"?"success":a==="exited"?"danger":a==="starting"?"warning":"outline",className:bt(a==="running"&&"font-mono"),children:a})}function LS({data:a,onRefresh:i}){const l=a.config.services[0]?.name??"",[o,c]=V.useState(l),[d,f]=V.useState(a.logs),[m,y]=V.useState(""),[p,v]=V.useState(null),[x,S]=V.useState(!1),M=V.useRef(null),E=V.useRef(!0),z=V.useRef({}),{error:O,message:L,success:Z}=Za(),Y=V.useMemo(()=>new Set(a.config.bundles.flatMap(K=>K.services)),[a.config.bundles]),X=V.useMemo(()=>{const K=new Map;for(const ut of a.config.bundles)for(const Ct of ut.services)K.has(Ct)||K.set(Ct,ut.name);return K},[a.config.bundles]),q=V.useMemo(()=>a.config.services.filter(K=>!Y.has(K.name)),[a.config.services,Y]),P=a.health??{},F=a.config.bundles.length>0||q.length>0,B=m.trim().toLowerCase(),dt=V.useMemo(()=>B?d.filter(K=>oS(K).toLowerCase().includes(B)):d,[d,B]);V.useEffect(()=>{!o&&l&&c(l)},[l,o]),V.useEffect(()=>{if(!o){f([]);return}let K=!0;return u1(o).then(ut=>{K&&f(ut)}).catch(()=>{K&&f([])}),()=>{K=!1}},[o,a.runtime.services]),V.useEffect(()=>{if(!x||!o)return;let K=!0;const ut=async()=>{try{const Rt=await u1(o);K&&f(Rt)}catch{K&&f([])}};ut();const Ct=window.setInterval(ut,1e3);return()=>{K=!1,window.clearInterval(Ct)}},[o,x]),V.useEffect(()=>{const K=M.current;if(!K)return;function ut(){if(!K)return;const Ct=K.scrollHeight-K.scrollTop-K.clientHeight;E.current=Ct<40}return ut(),K.addEventListener("scroll",ut,{passive:!0}),()=>K.removeEventListener("scroll",ut)},[o]),V.useEffect(()=>{if(!x||!E.current)return;const K=M.current;K&&(K.scrollTop=K.scrollHeight)},[x,dt]),V.useEffect(()=>{E.current=!0;const K=M.current;K&&(K.scrollTop=K.scrollHeight)},[o]),V.useEffect(()=>{const K=Object.fromEntries(a.config.services.map(Ct=>[Ct.name,a.runtime.services[Ct.name]?.state??"stopped"])),ut=z.current;if(Object.keys(ut).length){const Ct=new Map,Rt=new Map;for(const yt of a.config.services){const D=K[yt.name],J=ut[yt.name];if(!J||J===D)continue;const W=a.runtime.services[yt.name],ct=X.get(yt.name);if(ct){const Q=Ct.get(ct)??new Map;if(Q.set(D,(Q.get(D)??0)+1),Ct.set(ct,Q),D==="exited"){const w=Rt.get(ct)??[];w.push(W?.exitCode),Rt.set(ct,w)}continue}if(D==="running")Z(`${yt.name} is running.`);else if(D==="stopped")L({text:`${yt.name} stopped.`});else if(D==="starting")L({text:`${yt.name} is starting.`});else if(D==="exited"){const Q=W?.exitCode===void 0||W.exitCode===null?"":` with code ${W.exitCode}`;O(`${yt.name} exited${Q}.`)}}for(const[yt,D]of Ct)US({exitCodes:Rt.get(yt)??[],groupName:yt,showErrorToast:O,showMessageToast:L,showSuccessToast:Z,transitions:D})}z.current=K},[a.config.services,a.runtime.services,X,O,L,Z]);const lt=o?B?`No log lines match "${m.trim()}".`:`No logs captured for ${o}.`:"No services registered.";return x?g.jsx("div",{className:"flex h-full min-h-0 bg-card/85",children:g.jsxs(qs,{className:"flex min-h-0 min-w-0 flex-1 flex-col rounded-none border-0 bg-transparent",children:[g.jsx(Ys,{className:"shrink-0 border-b border-border px-3 py-2",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[g.jsxs("div",{children:[g.jsx(Xs,{children:"Streaming Logs"}),g.jsx(Lo,{className:"text-xs",children:"Polling the selected service every second and pinned to latest output."})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsx(Rp,{value:m,onChange:y}),g.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:K=>c(K.target.value),value:o,children:a.config.services.map(K=>g.jsx("option",{value:K.name,children:K.name},K.name))}),g.jsxs(jt,{"aria-pressed":x,className:"border-emerald-600 bg-emerald-50 text-emerald-700",onClick:()=>S(!1),size:"sm",type:"button",variant:"outline",children:[g.jsx(r1,{}),"Streaming"]})]})]})}),g.jsx(Zs,{className:"min-h-0 flex-1 p-0",children:g.jsx(kp,{containerRef:M,emptyText:lt,logs:dt,query:m})})]})}):g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden bg-card/85 xl:grid-cols-[minmax(0,1fr)_340px]",children:[g.jsxs("div",{className:"min-h-0 min-w-0 overflow-auto",children:[g.jsxs(qs,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[g.jsx(Ys,{className:"border-b border-border px-3 py-2",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[g.jsxs("div",{children:[g.jsx(Xs,{children:"Services"}),g.jsx(Lo,{className:"text-xs",children:"Grouped services are nested; ungrouped services stay standalone."})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsxs(jt,{"aria-haspopup":"dialog",onClick:()=>v("service"),size:"sm",type:"button",variant:"outline",children:[g.jsx(Ho,{}),"Add Service"]}),g.jsxs(jt,{"aria-haspopup":"dialog",onClick:()=>v("group"),size:"sm",type:"button",variant:"outline",children:[g.jsx(o1,{}),"Create Group"]})]})]})}),g.jsx(Zs,{className:"p-0",children:F?g.jsxs("div",{className:"divide-y divide-border",children:[a.config.bundles.map(K=>g.jsx(kS,{group:K,onRefresh:i,ports:a.ports,allServices:a.config.services,health:P,services:a.config.services.filter(ut=>K.services.includes(ut.name)),statuses:a.runtime.services},K.name)),q.length?g.jsxs("div",{children:[a.config.bundles.length?g.jsx("div",{className:"bg-muted/55 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:"Ungrouped Services"}):null,g.jsx("div",{className:"divide-y divide-border",children:q.map(K=>g.jsx(Iy,{service:K,status:a.runtime.services[K.name],health:P[K.name],ports:a.ports,onRefresh:i},K.name))})]}):null]}):g.jsx(Jy,{label:"No services registered yet."})})]}),g.jsxs(qs,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[g.jsx(Ys,{className:"border-b border-border px-3 py-2",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[g.jsxs("div",{children:[g.jsx(Xs,{children:"Recent Logs"}),g.jsx(Lo,{className:"text-xs",children:"Updates with dashboard refresh. Use Stream for a full-page live view."})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsx(Rp,{value:m,onChange:y}),g.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:K=>c(K.target.value),value:o,children:a.config.services.map(K=>g.jsx("option",{value:K.name,children:K.name},K.name))}),g.jsxs(jt,{"aria-pressed":x,disabled:!o,onClick:()=>S(!0),size:"sm",type:"button",variant:"outline",children:[g.jsx(r1,{}),"Stream"]})]})]})}),g.jsx(Zs,{className:"min-w-0 p-0",children:g.jsx(kp,{className:"max-h-[320px]",containerRef:M,emptyText:lt,logs:dt,query:m})})]})]}),g.jsx("div",{className:"min-h-0 overflow-auto border-l border-border",children:g.jsx(uS,{ports:a.ports})})]}),p?g.jsx(AS,{icon:p==="service"?g.jsx(Ho,{}):g.jsx(o1,{}),onClose:()=>v(null),title:p==="service"?"Add Service":"Create Group",children:p==="service"?g.jsx(MS,{cwd:a.cwd,onRefresh:i,onSaved:()=>v(null)}):g.jsx(Wy,{services:a.config.services,onRefresh:i,onSaved:()=>v(null)})}):null]})}function US({exitCodes:a,groupName:i,showErrorToast:l,showMessageToast:o,showSuccessToast:c,transitions:d}){if(d.size===1){const[y]=d.keys();if(y==="running")c(`${i} group is running.`);else if(y==="stopped")o({text:`${i} group stopped.`});else if(y==="starting")o({text:`${i} group is starting.`});else if(y==="exited"){const p=a.filter(x=>x!=null),v=p.length?` with code ${p.join(", ")}`:"";l(`${i} group exited${v}.`)}return}const f=[...d.entries()].map(([y,p])=>`${p} ${y}`).join(", "),m=`${i} group updated: ${f}.`;d.has("exited")?l(m):o({text:m})}function HS({activeHunkIndex:a=0,diff:i}){const l=qS(i),o=V.useRef([]);return V.useEffect(()=>{o.current[a]?.scrollIntoView({block:"start",behavior:"smooth"})},[a,i]),g.jsx("div",{className:"h-full min-h-0 overflow-auto bg-white text-xs leading-6",children:g.jsx("div",{className:"min-w-max font-mono",children:l.map((c,d)=>g.jsxs("div",{className:bt("grid grid-cols-[3rem_3rem_minmax(40rem,1fr)]",c.kind==="add"&&"bg-emerald-50 text-emerald-800",c.kind==="delete"&&"bg-red-50 text-red-800",Op(l,d)&&c.hunkIndex===a&&"outline outline-1 outline-offset-[-1px] outline-primary/35"),ref:c.hunkIndex!==null&&Op(l,d)?f=>{o.current[c.hunkIndex??0]=f}:void 0,children:[g.jsx(_p,{value:c.oldLine}),g.jsx(_p,{value:c.newLine}),g.jsx("span",{className:"whitespace-pre px-2",children:c.content||" "})]},`${d}-${c.content}`))})})}function GS(a){return a.split(`
11
+ `).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 qS(a){const i=YS(a);return i.some(l=>l.kind==="hunk")?i.filter(l=>l.kind!=="meta"&&l.kind!=="hunk"):i}function YS(a){let i=null,l=null,o=null;return a.split(`
12
+ `).map(c=>{if(XS(c))return i=null,l=null,o=null,{content:c,hunkIndex:o,kind:"meta",oldLine:null,newLine:null};if(c.startsWith("@@")){const f=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(c);return f&&(i=Number(f[1]),l=Number(f[2])),o=(o??-1)+1,{content:c,hunkIndex:o,kind:"hunk",oldLine:null,newLine:null}}if(i===null||l===null)return{content:c,hunkIndex:null,kind:"meta",oldLine:null,newLine:null};if(c.startsWith("\\ No newline"))return{content:c,hunkIndex:o,kind:"meta",oldLine:null,newLine:null};if(c.startsWith("+")&&!c.startsWith("+++")){const f={content:c,hunkIndex:o,kind:"add",oldLine:null,newLine:l};return l+=1,f}if(c.startsWith("-")&&!c.startsWith("---")){const f={content:c,hunkIndex:o,kind:"delete",oldLine:i,newLine:null};return i+=1,f}const d={content:c,hunkIndex:o,kind:"context",oldLine:i,newLine:l};return i+=1,l+=1,d})}function Op(a,i){const l=a[i]?.hunkIndex;if(l===null)return!1;const o=a.findIndex(c=>c.hunkIndex===l&&(c.kind==="add"||c.kind==="delete"));return o!==-1?o===i:a.findIndex(c=>c.hunkIndex===l)===i}function XS(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 _p({value:a}){return g.jsx("span",{className:bt("select-none border-r border-border/70 px-2 text-right text-muted-foreground",a===null&&"text-transparent"),children:a??"-"})}const ZS=new Set(["c","cpp","cs","go","java","js","jsx","kt","mjs","py","rs","swift","ts","tsx"]),QS=new Set([".env",".gitignore","components.json","dockerfile","package.json","tsconfig.json","vite.config.ts"]),KS=new Set(["conf","config","ini","toml","yaml","yml"]),JS=new Set(["csv","json","sql","xml"]),FS=new Set(["md","mdx","rst","txt"]),PS=new Set(["gif","jpeg","jpg","png","svg","webp"]),$S=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock"]),WS=new Set(["css","less","sass","scss"]);function IS(a){const i=a.split("/").pop()?.toLowerCase()??a.toLowerCase(),l=i.includes(".")?i.split(".").pop()??"":"";return $S.has(i)||i.endsWith(".lock")?"lock":t9(i)?"test":QS.has(i)||KS.has(l)?"config":WS.has(l)?"style":PS.has(l)?"image":FS.has(l)?"document":JS.has(l)?"data":ZS.has(l)?"code":"generic"}function t9(a){return a.includes(".test.")||a.includes(".spec.")||a.endsWith("_test.go")}function e9({branch:a,error:i,files:l,selectedFile:o,onSelectFile:c}){const d=V.useMemo(()=>l9(l).filter(y=>y.files.length),[l]),[f,m]=V.useState({staged:!1,unstaged:!1,untracked:!1});return g.jsxs(qs,{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-none border-0 bg-transparent",children:[g.jsx(Ys,{className:"border-b border-border px-2.5 py-1.5",children:g.jsxs(Xs,{className:"flex items-center justify-between gap-2",children:[g.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g.jsx(Uo,{className:"size-3.5"}),g.jsx("span",{className:"truncate",children:"Changes"})]}),g.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[a?g.jsx(Be,{variant:"outline",children:a}):null,g.jsx(Be,{variant:"secondary",children:l.length})]})]})}),g.jsx(Zs,{className:"min-h-0 flex-1 overflow-auto p-0",children:d.length?d.map(y=>g.jsx(n9,{collapsed:f[y.id],group:y,onSelectFile:c,onToggle:()=>m(p=>({...p,[y.id]:!p[y.id]})),selectedFile:o},y.id)):g.jsx(rn,{variant:"muted",className:"m-3 text-center",children:i??"No changed files."})})]})}function n9({collapsed:a,group:i,onSelectFile:l,onToggle:o,selectedFile:c}){const d=a?Fb:Ws;return g.jsxs("section",{className:"border-b border-border last:border-b-0",children:[g.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:[g.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g.jsx(d,{className:"size-3.5"}),g.jsx("span",{className:"truncate",children:i.label})]}),g.jsx(Be,{className:"min-w-6 justify-center font-mono shadow-none",size:"small",variant:"outline",children:i.files.length})]}),a?null:g.jsx("div",{children:i.files.map(f=>g.jsx(a9,{active:c===f.path,file:f,group:i.id,onClick:()=>l(f.path)},f.path))})]})}function a9({active:a,file:i,group:l,onClick:o}){const c=i.path.split("/").pop()||i.path,d=i.path.split("/").slice(0,-1).join("/");return g.jsxs(jt,{className:bt("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:[g.jsxs("span",{className:"min-w-0",children:[g.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g.jsx(s9,{path:i.path}),g.jsx("span",{className:"truncate text-[13px] font-medium",children:c})]}),d?g.jsx("span",{className:"block truncate pl-5 text-[10px] text-muted-foreground",children:d}):null]}),g.jsx("span",{className:bt("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:i9(i,l)})]})}function i9(a,i){return i==="untracked"?"?":i==="staged"?a.index.trim():a.workingTree.trim()}function s9({path:a}){const i=IS(a),l=o9[i];return g.jsx(l,{"aria-label":`${i} file`,className:bt("size-3.5 shrink-0",r9[i])})}function l9(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 o9={code:s3,config:$3,data:Ib,document:o3,generic:u3,image:b3,lock:T3,style:C3,test:f3},r9={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 u9({activeHunkIndex:a,filePaths:i,hunkCount:l,pendingNextFilePath:o,selectedFile:c}){if(l>0&&a<l-1)return{kind:"hunk",activeHunkIndex:a+1};const d=i.findIndex(m=>m===c),f=i[d+1];return f?o===f?{kind:"file",filePath:f}:{kind:"confirm-next-file",filePath:f}:{kind:"none"}}function c9({data:a}){const[i,l]=V.useState(a.git.status?.files[0]?.path??""),[o,c]=V.useState(""),[d,f]=V.useState(null),[m,y]=V.useState(0),[p,v]=V.useState(null),x=a.git.status?.files??[],S=V.useMemo(()=>x.map(q=>q.path),[x]),M=V.useMemo(()=>GS(o),[o]);V.useEffect(()=>{const q=a.git.status?.files[0]?.path??"";l(P=>P&&a.git.status?.files.some(F=>F.path===P)?P:q)},[a.git.status?.files]),V.useEffect(()=>{if(!i){c("");return}let q=!0;return f(null),ix(i).then(P=>{q&&(c(P),y(0),v(null))}).catch(P=>{q&&f(P instanceof Error?P.message:String(P))}),()=>{q=!1}},[i]);function E(q){y(0),v(null),l(q)}function z(){const q=u9({activeHunkIndex:m,filePaths:S,hunkCount:M.hunks,pendingNextFilePath:p,selectedFile:i});q.kind==="hunk"?(v(null),y(q.activeHunkIndex)):q.kind==="confirm-next-file"?v(q.filePath):q.kind==="file"?E(q.filePath):v(null)}function O(){if(v(null),m>0){y(F=>F-1);return}const q=x.findIndex(F=>F.path===i),P=x[q-1];P&&E(P.path)}const L=x.findIndex(q=>q.path===i),Z=!!(M.hunks&&m<M.hunks-1||x[L+1]),Y=!!(m>0||x[L-1]),X=p?`End of file. Click Next again to open ${p}.`:null;return g.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden border-0 bg-card/85 xl:grid-cols-[320px_minmax(0,1fr)]",children:[g.jsx("aside",{className:"flex min-h-0 flex-col overflow-hidden",children:g.jsx(e9,{branch:a.git.status?.branch||void 0,error:a.git.error,files:a.git.status?.files??[],selectedFile:i,onSelectFile:E})}),g.jsxs("section",{className:"flex min-h-0 min-w-0 flex-col border-l border-border bg-white",children:[g.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-border px-3 py-1.5",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsx("h2",{className:"truncate text-[13px] font-semibold tracking-tight",children:i||"Diff"}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[g.jsx("span",{children:"Long rows scroll horizontally inside the editor pane."}),M.additions||M.deletions?g.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[g.jsxs("span",{className:"text-emerald-700",children:["+",M.additions]}),g.jsxs("span",{className:"text-red-700",children:["-",M.deletions]})]}):null]})]}),g.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[X?g.jsx("span",{className:"max-w-72 truncate rounded border border-amber-200 bg-amber-50 px-2 py-1 text-[11px] text-amber-900",children:X}):null,g.jsxs(jt,{disabled:!i||!Y,onClick:O,size:"sm",type:"button",variant:"outline",children:[g.jsx(Yb,{}),"Previous"]}),g.jsxs(jt,{disabled:!i||!Z,onClick:z,size:"sm",type:"button",variant:"outline",children:[g.jsx(Gb,{}),"Next"]})]})]}),g.jsx("div",{className:"min-h-0 min-w-0 flex-1",children:d?g.jsx("div",{className:"p-4",children:g.jsx(rn,{variant:"destructive",children:d})}):i?g.jsx(HS,{activeHunkIndex:m,diff:o||"No unstaged diff for this file."}):g.jsx("div",{className:"p-4",children:g.jsx(rn,{variant:"muted",className:"border-dashed p-12 text-center",children:"Select a changed file to inspect its diff."})})})]})]})}function f9({initialPath:a,onSelect:i,selectedPath:l}){const[o,c]=V.useState(a),[d,f]=V.useState(null),[m,y]=V.useState(null),[p,v]=V.useState(!1),x=d9(d);return V.useEffect(()=>{c(a)},[a]),V.useEffect(()=>{let S=!0;return v(!0),y(null),sx(o).then(M=>{S&&(f(M),i(M.path))}).catch(M=>{S&&y(M instanceof Error?M.message:String(M))}).finally(()=>{S&&v(!1)}),()=>{S=!1}},[o,i]),g.jsxs("div",{className:"rounded-md border border-border bg-background",children:[g.jsxs("div",{className:"flex items-center gap-2 border-b border-border p-2",children:[x?g.jsx(jt,{"aria-label":"Open parent folder",onClick:()=>d&&c(d.parent),size:"icon",type:"button",variant:"ghost",children:g.jsx(Ws,{className:"rotate-90"})}):null,g.jsx("div",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:d?.path??o}),p?g.jsx(Yp,{className:"size-4 animate-spin text-muted-foreground"}):null]}),g.jsxs("div",{className:"max-h-56 overflow-auto p-1",children:[m?g.jsx(rn,{variant:"destructive",className:"m-1",children:m}):null,!m&&d?.entries.length===0?g.jsx(rn,{variant:"muted",className:"m-1 text-center",children:"No folders here."}):null,d?.entries.map(S=>g.jsxs(jt,{className:bt("h-8 w-full justify-start rounded-sm px-2 text-left",l===S.path&&"bg-muted"),onClick:()=>c(S.path),title:S.path,type:"button",variant:"ghost",children:[g.jsx(bf,{className:"text-accent"}),g.jsx("span",{className:"truncate",children:S.name})]},S.path))]})]})}function d9(a){return!!(a&&a.parent!==a.path)}function Bp(a){return a.split(/[\\/]/).filter(Boolean).pop()??"project"}function h9({data:a,onRefresh:i}){const[l,o]=V.useState(!1),[c,d]=V.useState(a.git.cwd),[f,m]=V.useState(null),[y,p]=V.useState(!1),[v,x]=V.useState("add"),[S,M]=V.useState(a.git.cwd),E=V.useRef(null),z=a.git.selectedRepository,O=z?.name??Bp(a.git.cwd),{error:L,success:Z}=Za();V.useEffect(()=>{d(a.git.cwd),M(a.git.cwd)},[a.git.cwd]),V.useEffect(()=>{if(!l)return;function P(F){E.current&&F.target instanceof Node&&!E.current.contains(F.target)&&o(!1)}return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[l]);async function Y(P){try{await ln("/api/git/select",{name:P}),o(!1),await i(),Z(`Switched to ${P}.`)}catch(F){L(F instanceof Error?F.message:String(F))}}async function X(P){const F=P.trim();if(!m9(F)){const B="Please add an absolute path. Paths beginning with ~ are not expanded here.";return m(B),L(B),!1}try{const B=Bp(F);return await ln("/api/git/repositories",{name:B,path:F}),m(null),await i(),Z(`Added Git project ${B}.`),!0}catch(B){const dt=B instanceof Error?B.message:String(B);return m(dt),L(dt),!1}}async function q(P){P.preventDefault(),await X(c)&&o(!1)}return g.jsxs("div",{className:"relative z-50 flex items-center gap-2",ref:E,children:[g.jsxs(jt,{className:"max-w-[220px] justify-start gap-2 rounded-md border-border bg-card",onClick:()=>o(P=>!P),size:"sm",type:"button",variant:"outline",children:[g.jsx(bf,{className:"text-muted-foreground"}),g.jsx("span",{className:"truncate",children:O}),g.jsx(Ws,{className:bt("ml-auto transition-transform",l&&"rotate-180")})]}),g.jsx(jt,{"aria-label":"Add Git project",onClick:()=>{x("add"),m(null),M(a.git.cwd),p(!0)},size:"sm",type:"button",variant:"outline",children:g.jsx(Ho,{})}),l?g.jsxs("div",{className:"absolute right-0 top-10 z-50 w-[min(380px,calc(100vw-2rem))] overflow-hidden rounded-lg border border-border bg-card shadow-lg",children:[g.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[g.jsx(e3,{className:"size-3.5 text-muted-foreground"}),g.jsx("div",{className:"text-xs font-semibold",children:"Git Projects"}),g.jsx(Be,{className:"ml-auto h-5 px-1.5 text-[10px]",variant:"outline",children:a.config.gitRepositories.length})]}),g.jsx("div",{className:"max-h-72 overflow-auto",children:a.config.gitRepositories.length?g.jsx("div",{className:"divide-y divide-border",children:a.config.gitRepositories.map(P=>{const F=P.name===z?.name;return g.jsxs("button",{className:bt("grid w-full grid-cols-[1fr_auto] items-center gap-2 px-3 py-1.5 text-left transition-colors hover:bg-muted",F&&"bg-muted/70"),onClick:()=>{Y(P.name)},type:"button",children:[g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate text-sm font-medium leading-tight",children:P.name}),g.jsx("span",{className:"block truncate font-mono text-[10px] leading-tight text-muted-foreground",children:P.path})]}),F?g.jsx(Qb,{className:"size-3.5"}):null]},P.name)})}):g.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"No saved Git projects yet."})}),g.jsxs("div",{className:"border-t border-border bg-muted/20 p-2",children:[g.jsxs("form",{className:"flex gap-1.5",onSubmit:q,children:[g.jsx(gn,{"aria-label":"Paste absolute path",className:"h-7 flex-1 px-2 font-mono text-[11px]",onChange:P=>{d(P.target.value),m(null)},placeholder:"/absolute/path",value:c}),g.jsxs(jt,{className:"h-7 px-2 text-[11px]",size:"sm",type:"submit",children:[g.jsx(Ho,{className:"size-3"}),"Add"]}),g.jsx(jt,{"aria-label":"Browse folders",className:"h-7 px-2",onClick:()=>{x("fill"),m(null),M(c||a.git.cwd),p(!0)},size:"sm",type:"button",variant:"outline",children:g.jsx(h3,{className:"size-3"})})]}),f?g.jsx("div",{className:"mt-1.5 truncate text-[10px] text-destructive",children:f}):null]})]}):null,y?g.jsx(p9,{confirmLabel:v==="add"?"Add Git project":"Use this folder",errorMessage:v==="add"?f:null,initialPath:v==="add"?a.git.cwd:c||a.git.cwd,selectedPath:S,title:v==="add"?"Add Git Project":"Choose Git Project Folder",onCancel:()=>p(!1),onSelect:M,onUse:async()=>{v==="add"?await X(S)&&(p(!1),o(!1)):(d(S),m(null),p(!1))}}):null]})}function m9(a){return a.startsWith("/")}function p9({confirmLabel:a="Use this folder",errorMessage:i,initialPath:l,onCancel:o,onSelect:c,onUse:d,selectedPath:f,title:m="Choose Git Project Folder"}){return Py.createPortal(g.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",children:g.jsxs("div",{className:"w-full max-w-2xl rounded-xl border border-border bg-card p-4 shadow-xl",children:[g.jsxs("div",{className:"mb-3 flex items-center gap-3",children:[g.jsx("div",{className:"flex size-8 items-center justify-center rounded-lg border border-border bg-background",children:g.jsx(bf,{className:"size-4"})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:"text-sm font-semibold",children:m}),g.jsx("div",{className:"truncate font-mono text-xs text-muted-foreground",children:f})]}),g.jsx(jt,{"aria-label":"Close folder picker",onClick:o,size:"icon",variant:"ghost",children:g.jsx($o,{})})]}),g.jsx(f9,{initialPath:l,onSelect:c,selectedPath:f}),i?g.jsx("div",{className:"mt-3 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive",children:i}):null,g.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[g.jsx(jt,{onClick:o,type:"button",variant:"outline",children:"Cancel"}),g.jsx(jt,{onClick:()=>{d()},type:"button",children:a})]})]})}),document.body)}function g9({branches:a,currentBranch:i,disabled:l,onRefresh:o}){const[c,d]=V.useState(!1),[f,m]=V.useState(""),[y,p]=V.useState(null),[v,x]=V.useState(null),[S,M]=V.useState(null),E=a.filter(X=>!X.remote),z=a.filter(X=>X.remote);async function O(X,q){p(X),M(null),x(null);try{await q(),await o()}catch(P){M(P instanceof Error?P.message:String(P))}finally{p(null)}}async function L(X){await O(`switch:${X}`,async()=>{await ln("/api/git/branches/switch",{name:X}),d(!1)})}async function Z(){await O("fetch",async()=>{await ln("/api/git/fetch",{}),x("Fetched latest branch refs.")})}async function Y(X){X.preventDefault();const q=f.trim();if(!q){M("Branch name is required.");return}await O("create",async()=>{await ln("/api/git/branches",{name:q}),m(""),d(!1)})}return g.jsxs("div",{className:"fixed bottom-3 right-4 z-50 flex items-end",children:[c?g.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:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border p-3",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx(Uo,{className:"size-4 text-muted-foreground"}),g.jsx("span",{className:"truncate text-sm font-semibold",children:i||"Branches"})]}),g.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[g.jsx(jt,{"aria-label":"Fetch branches",disabled:l||y!==null,onClick:()=>{Z()},size:"icon",title:"Fetch branches",type:"button",variant:"ghost",children:g.jsx(Xp,{className:bt(y==="fetch"&&"animate-spin")})}),g.jsx(jt,{"aria-label":"Close branch dialog",onClick:()=>d(!1),size:"icon",type:"button",variant:"ghost",children:g.jsx($o,{})})]})]}),g.jsx("div",{className:"max-h-72 overflow-auto",children:a.length?g.jsxs(g.Fragment,{children:[g.jsx(Lp,{branches:E,busy:y!==null,disabled:l,label:"Local",onSwitch:L}),g.jsx(Lp,{branches:z,busy:y!==null,disabled:l,label:"Remote",onSwitch:L})]}):g.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"No branches found."})}),g.jsxs("div",{className:"border-t border-border p-3",children:[g.jsxs("form",{className:"grid gap-2 sm:grid-cols-[1fr_auto]",onSubmit:Y,children:[g.jsx(gn,{"aria-label":"New branch name",disabled:l||y!==null,onChange:X=>{m(X.target.value),M(null),x(null)},placeholder:"feature/new-work",value:f}),g.jsxs(jt,{disabled:l||y!==null,type:"submit",children:[g.jsx(y3,{}),"Create"]})]}),S||v?g.jsx(rn,{className:"mt-3 px-3 py-2 text-xs",variant:S?"destructive":"muted",children:S??v}):null]})]}):null,g.jsxs(jt,{className:"h-8 max-w-[260px] gap-2 rounded-md shadow-lg",disabled:l,onClick:()=>d(X=>!X),size:"sm",title:"Switch Git branch",type:"button",variant:"default",children:[g.jsx(Uo,{className:"size-4"}),g.jsx("span",{className:"truncate font-mono text-xs",children:i||"No branch"}),g.jsx(Ws,{className:bt("size-4 transition-transform",c&&"rotate-180")})]})]})}function Lp({branches:a,busy:i,disabled:l,label:o,onSwitch:c}){return g.jsxs("section",{children:[g.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(d=>g.jsxs("button",{className:bt("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",d.current&&"bg-muted/70"),disabled:l||i||d.current,onClick:()=>{c(d.name)},type:"button",children:[g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate font-medium",children:d.name}),d.upstream?g.jsxs("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:["tracks ",d.upstream]}):null]}),g.jsx(Be,{variant:d.current?"success":d.remote?"outline":"secondary",children:d.current?"current":d.remote?"remote":"local"})]},`${d.remote?"remote":"local"}:${d.name}`)):g.jsxs("div",{className:"border-b border-border px-3 py-3 text-sm text-muted-foreground",children:["No ",o.toLowerCase()," branches."]})]})}function y9({className:a}){return g.jsxs("div",{className:bt("min-w-0",a),children:[g.jsxs("div",{className:"flex items-baseline gap-1.5",children:[g.jsx("div",{className:"text-sm font-semibold",children:"NoMoreIDE"}),g.jsxs("div",{className:"font-mono text-[10px] text-muted-foreground",children:["v","0.1.14"]})]}),g.jsx("div",{className:"font-mono text-[11px] text-muted-foreground",children:"127.0.0.1 console"})]})}function v9(){const[a,i]=V.useState(()=>window.location.pathname.startsWith("/git")?"git":"services"),[l,o]=V.useState(null),[c,d]=V.useState(null),[f,m]=V.useState(!0),{error:y,success:p}=Za(),[v,x]=V.useState(()=>window.localStorage.getItem("nomoreide:sidebar")==="collapsed"),S=V.useCallback(async(E={})=>{E.silent||m(!0),d(null);try{o(await ax()),E.notify&&p("Dashboard refreshed.")}catch(z){const O=z instanceof Error?z.message:String(z);d(O),y(O)}finally{m(!1)}},[y,p]);V.useEffect(()=>{S()},[S]),V.useEffect(()=>{function E(){document.visibilityState==="visible"&&S({silent:!0})}const z=window.setInterval(E,5e3);return window.addEventListener("focus",E),document.addEventListener("visibilitychange",E),()=>{window.clearInterval(z),window.removeEventListener("focus",E),document.removeEventListener("visibilitychange",E)}},[a,S]),V.useEffect(()=>{const E=a==="git"?"/git":"/";window.location.pathname!==E&&window.history.pushState(null,"",E)},[a]),V.useEffect(()=>{window.localStorage.setItem("nomoreide:sidebar",v?"collapsed":"expanded")},[v]);const M=V.useMemo(()=>l?Object.values(l.runtime.services).filter(E=>E.state==="running").length:0,[l]);return g.jsxs("div",{className:"h-screen overflow-hidden",children:[g.jsxs("div",{className:"mx-auto flex h-screen max-w-[1500px]",children:[g.jsxs("aside",{className:bt("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:[g.jsxs("div",{className:bt("flex items-center px-2",v?"justify-center":"gap-3"),children:[g.jsx("div",{className:"flex size-9 items-center justify-center overflow-hidden rounded-md bg-primary",children:g.jsx("img",{alt:"NoMoreIDE",className:"size-full object-cover",src:nx})}),g.jsx(y9,{className:bt(v&&"hidden")}),g.jsx(jt,{"aria-label":v?"Expand navigation":"Collapse navigation",className:bt("ml-auto",v&&"hidden"),size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:g.jsx(N3,{})})]}),g.jsx("div",{className:bt("mt-4",!v&&"hidden"),children:g.jsx(jt,{"aria-label":"Expand navigation",className:"w-full",size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:g.jsx(R3,{})})}),g.jsxs("nav",{className:"mt-5 grid gap-1",children:[g.jsx(Up,{active:a==="services",badge:M,collapsed:v,icon:g.jsx(F3,{}),label:"Services",onClick:()=>i("services")}),g.jsx(Up,{active:a==="git",collapsed:v,icon:g.jsx(Uo,{}),label:"Git Review",onClick:()=>i("git")})]})]}),g.jsxs("main",{className:"flex h-screen min-w-0 flex-1 flex-col px-0 py-0",children:[g.jsxs("header",{className:bt("relative z-40 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:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(V3,{className:"size-4 text-muted-foreground md:hidden"}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:a==="git"?"Git Review":"Services"}),g.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:l?.git.selectedRepository?.name??l?.git.cwd??"Local workspace"})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[c?g.jsx(Be,{variant:"danger",children:c}):null,l&&a==="git"?g.jsx(h9,{data:l,onRefresh:S}):null,g.jsxs(jt,{variant:"outline",size:"sm",onClick:()=>{S({notify:!0})},children:[g.jsx(Xp,{className:bt(f&&"animate-spin")}),"Refresh"]})]})]}),f&&!l?g.jsx(rn,{variant:"muted",children:"Loading NoMoreIDE state..."}):null,g.jsxs("div",{className:"min-h-0 flex-1 overflow-hidden",children:[l&&a==="services"?g.jsx(LS,{data:l,onRefresh:S}):null,l&&a==="git"?g.jsx(c9,{data:l}):null]})]})]}),l&&a==="git"?g.jsx(g9,{branches:l.git.branches,currentBranch:l.git.status?.branch||void 0,disabled:!l.git.status,onRefresh:S}):null]})}function Up({active:a,badge:i,collapsed:l,icon:o,label:c,onClick:d}){return g.jsxs(jt,{"aria-label":c,title:l?c:void 0,className:bt("w-full",l?"relative justify-center px-0":"justify-start"),variant:a?"default":"ghost",onClick:d,type:"button",children:[g.jsx("span",{className:bt(l&&"[&_svg]:size-4"),children:o}),g.jsx("span",{className:bt("min-w-0 flex-1 text-left",l&&"hidden"),children:c}),i!==void 0?g.jsx(Be,{appearance:i>0?"solid":"outline",className:bt("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]})}Gp.createRoot(document.getElementById("root")).render(g.jsx(V.StrictMode,{children:g.jsx(v9,{})}));