nomoreide 0.1.16 → 0.1.17

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.
@@ -1,14 +0,0 @@
1
- (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(u){if(u.ep)return;u.ep=!0;const d=l(u);fetch(u.href,d)}})();var ju={exports:{}},Ls={};var sp;function Ux(){if(sp)return Ls;sp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(r,u,d){var h=null;if(d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),"key"in u){d={};for(var g in u)g!=="key"&&(d[g]=u[g])}else d=u;return u=d.ref,{$$typeof:n,type:r,key:h,ref:u!==void 0?u:null,props:d}}return Ls.Fragment=i,Ls.jsx=l,Ls.jsxs=l,Ls}var lp;function Hx(){return lp||(lp=1,ju.exports=Ux()),ju.exports}var f=Hx(),wu={exports:{}},me={};var rp;function qx(){if(rp)return me;rp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function T(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,O={};function L(A,H,I){this.props=A,this.context=H,this.refs=O,this.updater=I||w}L.prototype.isReactComponent={},L.prototype.setState=function(A,H){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,H,"setState")},L.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function q(){}q.prototype=L.prototype;function Y(A,H,I){this.props=A,this.context=H,this.refs=O,this.updater=I||w}var X=Y.prototype=new q;X.constructor=Y,M(X,L.prototype),X.isPureReactComponent=!0;var Z=Array.isArray;function $(){}var J={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function fe(A,H,I){var te=I.ref;return{$$typeof:n,type:A,key:H,ref:te!==void 0?te:null,props:I}}function le(A,H){return fe(A.type,H,A.props)}function F(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function oe(A){var H={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(I){return H[I]})}var je=/\/+/g;function be(A,H){return typeof A=="object"&&A!==null&&A.key!=null?oe(""+A.key):H.toString(36)}function ye(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then($,$):(A.status="pending",A.then(function(H){A.status==="pending"&&(A.status="fulfilled",A.value=H)},function(H){A.status==="pending"&&(A.status="rejected",A.reason=H)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function z(A,H,I,te,re){var ue=typeof A;(ue==="undefined"||ue==="boolean")&&(A=null);var Me=!1;if(A===null)Me=!0;else switch(ue){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(A.$$typeof){case n:case i:Me=!0;break;case v:return Me=A._init,z(Me(A._payload),H,I,te,re)}}if(Me)return re=re(A),Me=te===""?"."+be(A,0):te,Z(re)?(I="",Me!=null&&(I=Me.replace(je,"$&/")+"/"),z(re,H,I,"",function(Hn){return Hn})):re!=null&&(F(re)&&(re=le(re,I+(re.key==null||A&&A.key===re.key?"":(""+re.key).replace(je,"$&/")+"/")+Me)),H.push(re)),1;Me=0;var it=te===""?".":te+":";if(Z(A))for(var Se=0;Se<A.length;Se++)te=A[Se],ue=it+be(te,Se),Me+=z(te,H,I,ue,re);else if(Se=T(A),typeof Se=="function")for(A=Se.call(A),Se=0;!(te=A.next()).done;)te=te.value,ue=it+be(te,Se++),Me+=z(te,H,I,ue,re);else if(ue==="object"){if(typeof A.then=="function")return z(ye(A),H,I,te,re);throw H=String(A),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Me}function K(A,H,I){if(A==null)return A;var te=[],re=0;return z(A,te,"","",function(ue){return H.call(I,ue,re++)}),te}function W(A){if(A._status===-1){var H=A._result;H=H(),H.then(function(I){(A._status===0||A._status===-1)&&(A._status=1,A._result=I)},function(I){(A._status===0||A._status===-1)&&(A._status=2,A._result=I)}),A._status===-1&&(A._status=0,A._result=H)}if(A._status===1)return A._result.default;throw A._result}var P=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Q={map:K,forEach:function(A,H,I){K(A,function(){H.apply(this,arguments)},I)},count:function(A){var H=0;return K(A,function(){H++}),H},toArray:function(A){return K(A,function(H){return H})||[]},only:function(A){if(!F(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return me.Activity=b,me.Children=Q,me.Component=L,me.Fragment=l,me.Profiler=u,me.PureComponent=Y,me.StrictMode=r,me.Suspense=y,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,me.__COMPILER_RUNTIME={__proto__:null,c:function(A){return J.H.useMemoCache(A)}},me.cache=function(A){return function(){return A.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(A,H,I){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var te=M({},A.props),re=A.key;if(H!=null)for(ue in H.key!==void 0&&(re=""+H.key),H)!B.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(te[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)te.children=I;else if(1<ue){for(var Me=Array(ue),it=0;it<ue;it++)Me[it]=arguments[it+2];te.children=Me}return fe(A.type,re,te)},me.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},me.createElement=function(A,H,I){var te,re={},ue=null;if(H!=null)for(te in H.key!==void 0&&(ue=""+H.key),H)B.call(H,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(re[te]=H[te]);var Me=arguments.length-2;if(Me===1)re.children=I;else if(1<Me){for(var it=Array(Me),Se=0;Se<Me;Se++)it[Se]=arguments[Se+2];re.children=it}if(A&&A.defaultProps)for(te in Me=A.defaultProps,Me)re[te]===void 0&&(re[te]=Me[te]);return fe(A,ue,re)},me.createRef=function(){return{current:null}},me.forwardRef=function(A){return{$$typeof:g,render:A}},me.isValidElement=F,me.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:W}},me.memo=function(A,H){return{$$typeof:p,type:A,compare:H===void 0?null:H}},me.startTransition=function(A){var H=J.T,I={};J.T=I;try{var te=A(),re=J.S;re!==null&&re(I,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then($,P)}catch(ue){P(ue)}finally{H!==null&&I.types!==null&&(H.types=I.types),J.T=H}},me.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},me.use=function(A){return J.H.use(A)},me.useActionState=function(A,H,I){return J.H.useActionState(A,H,I)},me.useCallback=function(A,H){return J.H.useCallback(A,H)},me.useContext=function(A){return J.H.useContext(A)},me.useDebugValue=function(){},me.useDeferredValue=function(A,H){return J.H.useDeferredValue(A,H)},me.useEffect=function(A,H){return J.H.useEffect(A,H)},me.useEffectEvent=function(A){return J.H.useEffectEvent(A)},me.useId=function(){return J.H.useId()},me.useImperativeHandle=function(A,H,I){return J.H.useImperativeHandle(A,H,I)},me.useInsertionEffect=function(A,H){return J.H.useInsertionEffect(A,H)},me.useLayoutEffect=function(A,H){return J.H.useLayoutEffect(A,H)},me.useMemo=function(A,H){return J.H.useMemo(A,H)},me.useOptimistic=function(A,H){return J.H.useOptimistic(A,H)},me.useReducer=function(A,H,I){return J.H.useReducer(A,H,I)},me.useRef=function(A){return J.H.useRef(A)},me.useState=function(A){return J.H.useState(A)},me.useSyncExternalStore=function(A,H,I){return J.H.useSyncExternalStore(A,H,I)},me.useTransition=function(){return J.H.useTransition()},me.version="19.2.6",me}var op;function Nf(){return op||(op=1,wu.exports=qx()),wu.exports}var k=Nf(),Au={exports:{}},Us={},Nu={exports:{}},Cu={};var cp;function Gx(){return cp||(cp=1,(function(n){function i(z,K){var W=z.length;z.push(K);e:for(;0<W;){var P=W-1>>>1,Q=z[P];if(0<u(Q,K))z[P]=K,z[W]=Q,W=P;else break e}}function l(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var K=z[0],W=z.pop();if(W!==K){z[0]=W;e:for(var P=0,Q=z.length,A=Q>>>1;P<A;){var H=2*(P+1)-1,I=z[H],te=H+1,re=z[te];if(0>u(I,W))te<Q&&0>u(re,I)?(z[P]=re,z[te]=W,P=te):(z[P]=I,z[H]=W,P=H);else if(te<Q&&0>u(re,W))z[P]=re,z[te]=W,P=te;else break e}}return K}function u(z,K){var W=z.sortIndex-K.sortIndex;return W!==0?W:z.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,g=h.now();n.unstable_now=function(){return h.now()-g}}var y=[],p=[],v=1,b=null,S=3,T=!1,w=!1,M=!1,O=!1,L=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(z){for(var K=l(p);K!==null;){if(K.callback===null)r(p);else if(K.startTime<=z)r(p),K.sortIndex=K.expirationTime,i(y,K);else break;K=l(p)}}function Z(z){if(M=!1,X(z),!w)if(l(y)!==null)w=!0,$||($=!0,oe());else{var K=l(p);K!==null&&ye(Z,K.startTime-z)}}var $=!1,J=-1,B=5,fe=-1;function le(){return O?!0:!(n.unstable_now()-fe<B)}function F(){if(O=!1,$){var z=n.unstable_now();fe=z;var K=!0;try{e:{w=!1,M&&(M=!1,q(J),J=-1),T=!0;var W=S;try{t:{for(X(z),b=l(y);b!==null&&!(b.expirationTime>z&&le());){var P=b.callback;if(typeof P=="function"){b.callback=null,S=b.priorityLevel;var Q=P(b.expirationTime<=z);if(z=n.unstable_now(),typeof Q=="function"){b.callback=Q,X(z),K=!0;break t}b===l(y)&&r(y),X(z)}else r(y);b=l(y)}if(b!==null)K=!0;else{var A=l(p);A!==null&&ye(Z,A.startTime-z),K=!1}}break e}finally{b=null,S=W,T=!1}K=void 0}}finally{K?oe():$=!1}}}var oe;if(typeof Y=="function")oe=function(){Y(F)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,be=je.port2;je.port1.onmessage=F,oe=function(){be.postMessage(null)}}else oe=function(){L(F,0)};function ye(z,K){J=L(function(){z(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(z){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var W=S;S=K;try{return z()}finally{S=W}},n.unstable_requestPaint=function(){O=!0},n.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=S;S=z;try{return K()}finally{S=W}},n.unstable_scheduleCallback=function(z,K,W){var P=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?P+W:P):W=P,z){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,z={id:v++,callback:K,priorityLevel:z,startTime:W,expirationTime:Q,sortIndex:-1},W>P?(z.sortIndex=W,i(p,z),l(y)===null&&z===l(p)&&(M?(q(J),J=-1):M=!0,ye(Z,W-P))):(z.sortIndex=Q,i(y,z),w||T||(w=!0,$||($=!0,oe()))),z},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(z){var K=S;return function(){var W=S;S=K;try{return z.apply(this,arguments)}finally{S=W}}}})(Cu)),Cu}var up;function Yx(){return up||(up=1,Nu.exports=Gx()),Nu.exports}var Mu={exports:{}},mt={};var fp;function Xx(){if(fp)return mt;fp=1;var n=Nf();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 r={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},u=Symbol.for("react.portal");function d(y,p,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:y,containerInfo:p,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mt.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)},mt.flushSync=function(y){var p=h.T,v=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=p,r.p=v,r.d.f()}},mt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},mt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},mt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,b=g(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:T}):v==="script"&&r.d.X(y,{crossOrigin:b,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},mt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);r.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&&r.d.M(y)},mt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,b=g(v,p.crossOrigin);r.d.L(y,v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},mt.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=g(p.as,p.crossOrigin);r.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 r.d.m(y)},mt.requestFormReset=function(y){r.d.r(y)},mt.unstable_batchedUpdates=function(y,p){return y(p)},mt.useFormState=function(y,p,v){return h.H.useFormState(y,p,v)},mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},mt.version="19.2.6",mt}var dp;function F1(){if(dp)return Mu.exports;dp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Mu.exports=Xx(),Mu.exports}var hp;function Zx(){if(hp)return Us;hp=1;var n=Yx(),i=Nf(),l=F1();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,s=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),e;if(c===s)return y(o),t;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=o,s=c;else{for(var m=!1,x=o.child;x;){if(x===a){m=!0,a=o,s=c;break}if(x===s){m=!0,s=o,a=c;break}x=x.sibling}if(!m){for(x=c.child;x;){if(x===a){m=!0,a=c,s=o;break}if(x===s){m=!0,s=c,a=o;break}x=x.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var je=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===je?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case L:return"Profiler";case O:return"StrictMode";case Z:return"Suspense";case $:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case Y:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case B:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var ye=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},P=[],Q=-1;function A(e){return{current:e}}function H(e){0>Q||(e.current=P[Q],P[Q]=null,Q--)}function I(e,t){Q++,P[Q]=e.current,e.current=t}var te=A(null),re=A(null),ue=A(null),Me=A(null);function it(e,t){switch(I(ue,t),I(re,e),I(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?M0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=M0(t),e=E0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(te),I(te,e)}function Se(){H(te),H(re),H(ue)}function Hn(e){e.memoizedState!==null&&I(Me,e);var t=te.current,a=E0(t,e.type);t!==a&&(I(re,e),I(te,a))}function bn(e){re.current===e&&(H(te),H(re)),Me.current===e&&(H(Me),Vs._currentValue=W)}var qn,Ka;function Ut(e){if(qn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);qn=t&&t[1]||"",Ka=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+qn+e+Ka}var so=!1;function lo(e,t){if(!e||so)return"";so=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){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(V){var R=V}Reflect.construct(e,[],G)}else{try{G.call()}catch(V){R=V}e.call(G.prototype)}}else{try{throw Error()}catch(V){R=V}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(V){if(V&&R&&typeof V.stack=="string")return[V.stack,R.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),m=c[0],x=c[1];if(m&&x){var j=m.split(`
4
- `),D=x.split(`
5
- `);for(o=s=0;s<j.length&&!j[s].includes("DetermineComponentFrameRoot");)s++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(s===j.length||o===D.length)for(s=j.length-1,o=D.length-1;1<=s&&0<=o&&j[s]!==D[o];)o--;for(;1<=s&&0<=o;s--,o--)if(j[s]!==D[o]){if(s!==1||o!==1)do if(s--,o--,0>o||j[s]!==D[o]){var _=`
6
- `+j[s].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=s&&0<=o);break}}}finally{so=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ut(a):""}function g2(e,t){switch(e.tag){case 26:case 27:case 5:return Ut(e.type);case 16:return Ut("Lazy");case 13:return e.child!==t&&t!==null?Ut("Suspense Fallback"):Ut("Suspense");case 19:return Ut("SuspenseList");case 0:case 15:return lo(e.type,!1);case 11:return lo(e.type.render,!1);case 1:return lo(e.type,!0);case 31:return Ut("Activity");default:return""}}function sd(e){try{var t="",a=null;do t+=g2(e,a),a=e,e=e.return;while(e);return t}catch(s){return`
7
- Error generating stack: `+s.message+`
8
- `+s.stack}}var ro=Object.prototype.hasOwnProperty,oo=n.unstable_scheduleCallback,co=n.unstable_cancelCallback,y2=n.unstable_shouldYield,v2=n.unstable_requestPaint,Mt=n.unstable_now,x2=n.unstable_getCurrentPriorityLevel,ld=n.unstable_ImmediatePriority,rd=n.unstable_UserBlockingPriority,rl=n.unstable_NormalPriority,b2=n.unstable_LowPriority,od=n.unstable_IdlePriority,S2=n.log,T2=n.unstable_setDisableYieldValue,Qi=null,Et=null;function Gn(e){if(typeof S2=="function"&&T2(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Qi,e)}catch{}}var zt=Math.clz32?Math.clz32:A2,j2=Math.log,w2=Math.LN2;function A2(e){return e>>>=0,e===0?32:31-(j2(e)/w2|0)|0}var ol=256,cl=262144,ul=4194304;function Sa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fl(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~c,s!==0?o=Sa(s):(m&=x,m!==0?o=Sa(m):a||(a=x&~e,a!==0&&(o=Sa(a))))):(x=s&~c,x!==0?o=Sa(x):m!==0?o=Sa(m):a||(a=s&~e,a!==0&&(o=Sa(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Ki(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function N2(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cd(){var e=ul;return ul<<=1,(ul&62914560)===0&&(ul=4194304),e}function uo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Fi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function C2(e,t,a,s,o,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var x=e.entanglements,j=e.expirationTimes,D=e.hiddenUpdates;for(a=m&~a;0<a;){var _=31-zt(a),G=1<<_;x[_]=0,j[_]=-1;var R=D[_];if(R!==null)for(D[_]=null,_=0;_<R.length;_++){var V=R[_];V!==null&&(V.lane&=-536870913)}a&=~G}s!==0&&ud(e,s,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function ud(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-zt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function fd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-zt(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function dd(e,t){var a=t&-t;return a=(a&42)!==0?1:fo(a),(a&(e.suspendedLanes|t))!==0?0:a}function fo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ho(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hd(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:W0(e.type))}function md(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var Yn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Yn,bt="__reactProps$"+Yn,Fa="__reactContainer$"+Yn,mo="__reactEvents$"+Yn,M2="__reactListeners$"+Yn,E2="__reactHandles$"+Yn,pd="__reactResources$"+Yn,Pi="__reactMarker$"+Yn;function po(e){delete e[rt],delete e[bt],delete e[mo],delete e[M2],delete e[E2]}function Pa(e){var t=e[rt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Fa]||a[rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=_0(e);e!==null;){if(a=e[rt])return a;e=_0(e)}return t}e=a,a=e.parentNode}return null}function Ja(e){if(e=e[rt]||e[Fa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ji(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function $a(e){var t=e[pd];return t||(t=e[pd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[Pi]=!0}var gd=new Set,yd={};function Ta(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for(yd[e]=t,e=0;e<t.length;e++)gd.add(t[e])}var z2=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]*$"),vd={},xd={};function D2(e){return ro.call(xd,e)?!0:ro.call(vd,e)?!1:z2.test(e)?xd[e]=!0:(vd[e]=!0,!1)}function dl(e,t,a){if(D2(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function hl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Sn(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k2(e,t,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function go(e){if(!e._valueTracker){var t=bd(e)?"checked":"value";e._valueTracker=k2(e,t,""+e[t])}}function Sd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=bd(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var R2=/[\n"\\]/g;function qt(e){return e.replace(R2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yo(e,t,a,s,o,c,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?vo(e,m,Ht(t)):a!=null?vo(e,m,Ht(a)):s!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Ht(x):e.removeAttribute("name")}function Td(e,t,a,s,o,c,m,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){go(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),go(e)}function vo(e,t,a){t==="number"&&ml(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ia(e,t,a,s){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&s&&(e[a].defaultSelected=!0)}else{for(a=""+Ht(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function jd(e,t,a){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ht(a):""}function wd(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(r(92));if(ye(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=Ht(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),go(e)}function ei(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var V2=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 Ad(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||V2.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Nd(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&a[o]!==s&&Ad(e,o,s)}else for(var c in t)t.hasOwnProperty(c)&&Ad(e,c,t[c])}function xo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var O2=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"]]),_2=/^[\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 pl(e){return _2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tn(){}var bo=null;function So(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ti=null,ni=null;function Cd(e){var t=Ja(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(yo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var o=s[bt]||null;if(!o)throw Error(r(90));yo(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&Sd(s)}break e;case"textarea":jd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ia(e,!!a.multiple,t,!1)}}}var To=!1;function Md(e,t,a){if(To)return e(t,a);To=!0;try{var s=e(t);return s}finally{if(To=!1,(ti!==null||ni!==null)&&(nr(),ti&&(t=ti,e=ni,ni=ti=null,Cd(t),e)))for(t=0;t<e.length;t++)Cd(e[t])}}function $i(e,t){var a=e.stateNode;if(a===null)return null;var s=a[bt]||null;if(s===null)return null;a=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jo=!1;if(jn)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){jo=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{jo=!1}var Xn=null,wo=null,gl=null;function Ed(){if(gl)return gl;var e,t=wo,a=t.length,s,o="value"in Xn?Xn.value:Xn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var m=a-e;for(s=1;s<=m&&t[a-s]===o[c-s];s++);return gl=o.slice(e,1<s?1-s:void 0)}function yl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vl(){return!0}function zd(){return!1}function St(e){function t(a,s,o,c,m){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?vl:zd,this.isPropagationStopped=zd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=vl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vl)},persist:function(){},isPersistent:vl}),t}var ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xl=St(ja),Ii=b({},ja,{view:0,detail:0}),B2=St(Ii),Ao,No,es,bl=b({},Ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==es&&(es&&e.type==="mousemove"?(Ao=e.screenX-es.screenX,No=e.screenY-es.screenY):No=Ao=0,es=e),Ao)},movementY:function(e){return"movementY"in e?e.movementY:No}}),Dd=St(bl),L2=b({},bl,{dataTransfer:0}),U2=St(L2),H2=b({},Ii,{relatedTarget:0}),Co=St(H2),q2=b({},ja,{animationName:0,elapsedTime:0,pseudoElement:0}),G2=St(q2),Y2=b({},ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X2=St(Y2),Z2=b({},ja,{data:0}),kd=St(Z2),Q2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K2={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"},F2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F2[e])?!!t[e]:!1}function Mo(){return P2}var J2=b({},Ii,{key:function(e){if(e.key){var t=Q2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?K2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?yl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$2=St(J2),W2=b({},bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rd=St(W2),I2=b({},Ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),ev=St(I2),tv=b({},ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),nv=St(tv),av=b({},bl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iv=St(av),sv=b({},ja,{newState:0,oldState:0}),lv=St(sv),rv=[9,13,27,32],Eo=jn&&"CompositionEvent"in window,ts=null;jn&&"documentMode"in document&&(ts=document.documentMode);var ov=jn&&"TextEvent"in window&&!ts,Vd=jn&&(!Eo||ts&&8<ts&&11>=ts),Od=" ",_d=!1;function Bd(e,t){switch(e){case"keyup":return rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ld(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function cv(e,t){switch(e){case"compositionend":return Ld(t);case"keypress":return t.which!==32?null:(_d=!0,Od);case"textInput":return e=t.data,e===Od&&_d?null:e;default:return null}}function uv(e,t){if(ai)return e==="compositionend"||!Eo&&Bd(e,t)?(e=Ed(),gl=wo=Xn=null,ai=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vd&&t.locale!=="ko"?null:t.data;default:return null}}var fv={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 Ud(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fv[e.type]:t==="textarea"}function Hd(e,t,a,s){ti?ni?ni.push(s):ni=[s]:ti=s,t=cr(t,"onChange"),0<t.length&&(a=new xl("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ns=null,as=null;function dv(e){T0(e,0)}function Sl(e){var t=Ji(e);if(Sd(t))return e}function qd(e,t){if(e==="change")return t}var Gd=!1;if(jn){var zo;if(jn){var Do="oninput"in document;if(!Do){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),Do=typeof Yd.oninput=="function"}zo=Do}else zo=!1;Gd=zo&&(!document.documentMode||9<document.documentMode)}function Xd(){ns&&(ns.detachEvent("onpropertychange",Zd),as=ns=null)}function Zd(e){if(e.propertyName==="value"&&Sl(as)){var t=[];Hd(t,as,e,So(e)),Md(dv,t)}}function hv(e,t,a){e==="focusin"?(Xd(),ns=t,as=a,ns.attachEvent("onpropertychange",Zd)):e==="focusout"&&Xd()}function mv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sl(as)}function pv(e,t){if(e==="click")return Sl(t)}function gv(e,t){if(e==="input"||e==="change")return Sl(t)}function yv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:yv;function is(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!ro.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kd(e,t){var a=Qd(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Qd(a)}}function Fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ml(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ml(e.document)}return t}function ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vv=jn&&"documentMode"in document&&11>=document.documentMode,ii=null,Ro=null,ss=null,Vo=!1;function Jd(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vo||ii==null||ii!==ml(s)||(s=ii,"selectionStart"in s&&ko(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}),ss&&is(ss,s)||(ss=s,s=cr(Ro,"onSelect"),0<s.length&&(t=new xl("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ii)))}function wa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var si={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionrun:wa("Transition","TransitionRun"),transitionstart:wa("Transition","TransitionStart"),transitioncancel:wa("Transition","TransitionCancel"),transitionend:wa("Transition","TransitionEnd")},Oo={},$d={};jn&&($d=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function Aa(e){if(Oo[e])return Oo[e];if(!si[e])return e;var t=si[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in $d)return Oo[e]=t[a];return e}var Wd=Aa("animationend"),Id=Aa("animationiteration"),eh=Aa("animationstart"),xv=Aa("transitionrun"),bv=Aa("transitionstart"),Sv=Aa("transitioncancel"),th=Aa("transitionend"),nh=new Map,_o="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(" ");_o.push("scrollEnd");function sn(e,t){nh.set(e,t),Ta(t,[e])}var Tl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Gt=[],li=0,Bo=0;function jl(){for(var e=li,t=Bo=li=0;t<e;){var a=Gt[t];Gt[t++]=null;var s=Gt[t];Gt[t++]=null;var o=Gt[t];Gt[t++]=null;var c=Gt[t];if(Gt[t++]=null,s!==null&&o!==null){var m=s.pending;m===null?o.next=o:(o.next=m.next,m.next=o),s.pending=o}c!==0&&ah(a,o,c)}}function wl(e,t,a,s){Gt[li++]=e,Gt[li++]=t,Gt[li++]=a,Gt[li++]=s,Bo|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Lo(e,t,a,s){return wl(e,t,a,s),Al(e)}function Na(e,t){return wl(e,null,null,t),Al(e)}function ah(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-zt(a),e=c.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),c):null}function Al(e){if(50<Cs)throw Cs=0,Kc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function Tv(e,t,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,a,s){return new Tv(e,t,a,s)}function Uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wn(e,t){var a=e.alternate;return a===null?(a=kt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function ih(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Nl(e,t,a,s,o,c){var m=0;if(s=e,typeof e=="function")Uo(e)&&(m=1);else if(typeof e=="string")m=Cx(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=kt(31,a,t,o),e.elementType=fe,e.lanes=c,e;case M:return Ca(a.children,o,c,t);case O:m=8,o|=24;break;case L:return e=kt(12,a,t,o|2),e.elementType=L,e.lanes=c,e;case Z:return e=kt(13,a,t,o),e.elementType=Z,e.lanes=c,e;case $:return e=kt(19,a,t,o),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:m=10;break e;case q:m=9;break e;case X:m=11;break e;case J:m=14;break e;case B:m=16,s=null;break e}m=29,a=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=kt(m,a,t,o),t.elementType=e,t.type=s,t.lanes=c,t}function Ca(e,t,a,s){return e=kt(7,e,s,t),e.lanes=a,e}function Ho(e,t,a){return e=kt(6,e,null,t),e.lanes=a,e}function sh(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function qo(e,t,a){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var lh=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var a=lh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:sd(t)},lh.set(e,t),t)}return{value:e,source:t,stack:sd(t)}}var oi=[],ci=0,Cl=null,ls=0,Xt=[],Zt=0,Zn=null,fn=1,dn="";function An(e,t){oi[ci++]=ls,oi[ci++]=Cl,Cl=e,ls=t}function rh(e,t,a){Xt[Zt++]=fn,Xt[Zt++]=dn,Xt[Zt++]=Zn,Zn=e;var s=fn;e=dn;var o=32-zt(s)-1;s&=~(1<<o),a+=1;var c=32-zt(t)+o;if(30<c){var m=o-o%5;c=(s&(1<<m)-1).toString(32),s>>=m,o-=m,fn=1<<32-zt(t)+o|a<<o|s,dn=c+e}else fn=1<<c|a<<o|s,dn=e}function Go(e){e.return!==null&&(An(e,1),rh(e,1,0))}function Yo(e){for(;e===Cl;)Cl=oi[--ci],oi[ci]=null,ls=oi[--ci],oi[ci]=null;for(;e===Zn;)Zn=Xt[--Zt],Xt[Zt]=null,dn=Xt[--Zt],Xt[Zt]=null,fn=Xt[--Zt],Xt[Zt]=null}function oh(e,t){Xt[Zt++]=fn,Xt[Zt++]=dn,Xt[Zt++]=Zn,fn=t.id,dn=t.overflow,Zn=e}var ot=null,He=null,Ee=!1,Qn=null,Qt=!1,Xo=Error(r(519));function Kn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rs(Yt(t,e)),Xo}function ch(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[rt]=e,t[bt]=s,a){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(a=0;a<Es.length;a++)Ae(Es[a],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),Td(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),wd(t,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||N0(t.textContent,a)?(s.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),s.onScroll!=null&&Ae("scroll",t),s.onScrollEnd!=null&&Ae("scrollend",t),s.onClick!=null&&(t.onclick=Tn),t=!0):t=!1,t||Kn(e,!0)}function uh(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:ot=ot.return}}function ui(e){if(e!==ot)return!1;if(!Ee)return uh(e),Ee=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ou(e.type,e.memoizedProps)),a=!a),a&&He&&Kn(e),uh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=O0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=O0(e)}else t===27?(t=He,ra(e.type)?(e=hu,hu=null,He=e):He=t):He=ot?Ft(e.stateNode.nextSibling):null;return!0}function Ma(){He=ot=null,Ee=!1}function Zo(){var e=Qn;return e!==null&&(At===null?At=e:At.push.apply(At,e),Qn=null),e}function rs(e){Qn===null?Qn=[e]:Qn.push(e)}var Qo=A(null),Ea=null,Nn=null;function Fn(e,t,a){I(Qo,t._currentValue),t._currentValue=a}function Cn(e){e._currentValue=Qo.current,H(Qo)}function Ko(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function Fo(e,t,a,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=o;for(var j=0;j<t.length;j++)if(x.context===t[j]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),Ko(c.return,a,e),s||(m=null);break e}c=x.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Ko(m,a,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function fi(e,t,a,s){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var x=o.type;Dt(o.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(o===Me.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Vs):e=[Vs])}o=o.return}e!==null&&Fo(t,e,a,s),t.flags|=262144}function Ml(e){for(e=e.firstContext;e!==null;){if(!Dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function za(e){Ea=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return fh(Ea,e)}function El(e,t){return Ea===null&&za(e),fh(e,t)}function fh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Nn===null){if(e===null)throw Error(r(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return a}var jv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},wv=n.unstable_scheduleCallback,Av=n.unstable_NormalPriority,Pe={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new jv,data:new Map,refCount:0}}function os(e){e.refCount--,e.refCount===0&&wv(Av,function(){e.controller.abort()})}var cs=null,Jo=0,di=0,hi=null;function Nv(e,t){if(cs===null){var a=cs=[];Jo=0,di=Ic(),hi={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Jo++,t.then(dh,dh),t}function dh(){if(--Jo===0&&cs!==null){hi!==null&&(hi.status="fulfilled");var e=cs;cs=null,di=0,hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Cv(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var hh=z.S;z.S=function(e,t){Jm=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nv(e,t),hh!==null&&hh(e,t)};var Da=A(null);function $o(){var e=Da.current;return e!==null?e:Le.pooledCache}function zl(e,t){t===null?I(Da,Da.current):I(Da,t.pool)}function mh(){var e=$o();return e===null?null:{parent:Pe._currentValue,pool:e}}var mi=Error(r(460)),Wo=Error(r(474)),Dl=Error(r(542)),kl={then:function(){}};function ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Tn,Tn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vh(e),e;default:if(typeof t.status=="string")t.then(Tn,Tn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vh(e),e}throw Ra=t,mi}}function ka(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ra=a,mi):a}}var Ra=null;function yh(){if(Ra===null)throw Error(r(459));var e=Ra;return Ra=null,e}function vh(e){if(e===mi||e===Dl)throw Error(r(483))}var pi=null,us=0;function Rl(e){var t=us;return us+=1,pi===null&&(pi=[]),gh(pi,e,t)}function fs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vl(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xh(e){function t(C,N){if(e){var E=C.deletions;E===null?(C.deletions=[N],C.flags|=16):E.push(N)}}function a(C,N){if(!e)return null;for(;N!==null;)t(C,N),N=N.sibling;return null}function s(C){for(var N=new Map;C!==null;)C.key!==null?N.set(C.key,C):N.set(C.index,C),C=C.sibling;return N}function o(C,N){return C=wn(C,N),C.index=0,C.sibling=null,C}function c(C,N,E){return C.index=E,e?(E=C.alternate,E!==null?(E=E.index,E<N?(C.flags|=67108866,N):E):(C.flags|=67108866,N)):(C.flags|=1048576,N)}function m(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function x(C,N,E,U){return N===null||N.tag!==6?(N=Ho(E,C.mode,U),N.return=C,N):(N=o(N,E),N.return=C,N)}function j(C,N,E,U){var ce=E.type;return ce===M?_(C,N,E.props.children,U,E.key):N!==null&&(N.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===B&&ka(ce)===N.type)?(N=o(N,E.props),fs(N,E),N.return=C,N):(N=Nl(E.type,E.key,E.props,null,C.mode,U),fs(N,E),N.return=C,N)}function D(C,N,E,U){return N===null||N.tag!==4||N.stateNode.containerInfo!==E.containerInfo||N.stateNode.implementation!==E.implementation?(N=qo(E,C.mode,U),N.return=C,N):(N=o(N,E.children||[]),N.return=C,N)}function _(C,N,E,U,ce){return N===null||N.tag!==7?(N=Ca(E,C.mode,U,ce),N.return=C,N):(N=o(N,E),N.return=C,N)}function G(C,N,E){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Ho(""+N,C.mode,E),N.return=C,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case T:return E=Nl(N.type,N.key,N.props,null,C.mode,E),fs(E,N),E.return=C,E;case w:return N=qo(N,C.mode,E),N.return=C,N;case B:return N=ka(N),G(C,N,E)}if(ye(N)||oe(N))return N=Ca(N,C.mode,E,null),N.return=C,N;if(typeof N.then=="function")return G(C,Rl(N),E);if(N.$$typeof===Y)return G(C,El(C,N),E);Vl(C,N)}return null}function R(C,N,E,U){var ce=N!==null?N.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return ce!==null?null:x(C,N,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case T:return E.key===ce?j(C,N,E,U):null;case w:return E.key===ce?D(C,N,E,U):null;case B:return E=ka(E),R(C,N,E,U)}if(ye(E)||oe(E))return ce!==null?null:_(C,N,E,U,null);if(typeof E.then=="function")return R(C,N,Rl(E),U);if(E.$$typeof===Y)return R(C,N,El(C,E),U);Vl(C,E)}return null}function V(C,N,E,U,ce){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(E)||null,x(N,C,""+U,ce);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case T:return C=C.get(U.key===null?E:U.key)||null,j(N,C,U,ce);case w:return C=C.get(U.key===null?E:U.key)||null,D(N,C,U,ce);case B:return U=ka(U),V(C,N,E,U,ce)}if(ye(U)||oe(U))return C=C.get(E)||null,_(N,C,U,ce,null);if(typeof U.then=="function")return V(C,N,E,Rl(U),ce);if(U.$$typeof===Y)return V(C,N,E,El(N,U),ce);Vl(N,U)}return null}function ae(C,N,E,U){for(var ce=null,ze=null,se=N,xe=N=0,Ce=null;se!==null&&xe<E.length;xe++){se.index>xe?(Ce=se,se=null):Ce=se.sibling;var De=R(C,se,E[xe],U);if(De===null){se===null&&(se=Ce);break}e&&se&&De.alternate===null&&t(C,se),N=c(De,N,xe),ze===null?ce=De:ze.sibling=De,ze=De,se=Ce}if(xe===E.length)return a(C,se),Ee&&An(C,xe),ce;if(se===null){for(;xe<E.length;xe++)se=G(C,E[xe],U),se!==null&&(N=c(se,N,xe),ze===null?ce=se:ze.sibling=se,ze=se);return Ee&&An(C,xe),ce}for(se=s(se);xe<E.length;xe++)Ce=V(se,C,xe,E[xe],U),Ce!==null&&(e&&Ce.alternate!==null&&se.delete(Ce.key===null?xe:Ce.key),N=c(Ce,N,xe),ze===null?ce=Ce:ze.sibling=Ce,ze=Ce);return e&&se.forEach(function(da){return t(C,da)}),Ee&&An(C,xe),ce}function de(C,N,E,U){if(E==null)throw Error(r(151));for(var ce=null,ze=null,se=N,xe=N=0,Ce=null,De=E.next();se!==null&&!De.done;xe++,De=E.next()){se.index>xe?(Ce=se,se=null):Ce=se.sibling;var da=R(C,se,De.value,U);if(da===null){se===null&&(se=Ce);break}e&&se&&da.alternate===null&&t(C,se),N=c(da,N,xe),ze===null?ce=da:ze.sibling=da,ze=da,se=Ce}if(De.done)return a(C,se),Ee&&An(C,xe),ce;if(se===null){for(;!De.done;xe++,De=E.next())De=G(C,De.value,U),De!==null&&(N=c(De,N,xe),ze===null?ce=De:ze.sibling=De,ze=De);return Ee&&An(C,xe),ce}for(se=s(se);!De.done;xe++,De=E.next())De=V(se,C,xe,De.value,U),De!==null&&(e&&De.alternate!==null&&se.delete(De.key===null?xe:De.key),N=c(De,N,xe),ze===null?ce=De:ze.sibling=De,ze=De);return e&&se.forEach(function(Lx){return t(C,Lx)}),Ee&&An(C,xe),ce}function Be(C,N,E,U){if(typeof E=="object"&&E!==null&&E.type===M&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case T:e:{for(var ce=E.key;N!==null;){if(N.key===ce){if(ce=E.type,ce===M){if(N.tag===7){a(C,N.sibling),U=o(N,E.props.children),U.return=C,C=U;break e}}else if(N.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===B&&ka(ce)===N.type){a(C,N.sibling),U=o(N,E.props),fs(U,E),U.return=C,C=U;break e}a(C,N);break}else t(C,N);N=N.sibling}E.type===M?(U=Ca(E.props.children,C.mode,U,E.key),U.return=C,C=U):(U=Nl(E.type,E.key,E.props,null,C.mode,U),fs(U,E),U.return=C,C=U)}return m(C);case w:e:{for(ce=E.key;N!==null;){if(N.key===ce)if(N.tag===4&&N.stateNode.containerInfo===E.containerInfo&&N.stateNode.implementation===E.implementation){a(C,N.sibling),U=o(N,E.children||[]),U.return=C,C=U;break e}else{a(C,N);break}else t(C,N);N=N.sibling}U=qo(E,C.mode,U),U.return=C,C=U}return m(C);case B:return E=ka(E),Be(C,N,E,U)}if(ye(E))return ae(C,N,E,U);if(oe(E)){if(ce=oe(E),typeof ce!="function")throw Error(r(150));return E=ce.call(E),de(C,N,E,U)}if(typeof E.then=="function")return Be(C,N,Rl(E),U);if(E.$$typeof===Y)return Be(C,N,El(C,E),U);Vl(C,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,N!==null&&N.tag===6?(a(C,N.sibling),U=o(N,E),U.return=C,C=U):(a(C,N),U=Ho(E,C.mode,U),U.return=C,C=U),m(C)):a(C,N)}return function(C,N,E,U){try{us=0;var ce=Be(C,N,E,U);return pi=null,ce}catch(se){if(se===mi||se===Dl)throw se;var ze=kt(29,se,null,C.mode);return ze.lanes=U,ze.return=C,ze}}}var Va=xh(!0),bh=xh(!1),Pn=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $n(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ke&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=Al(e),ah(e,null,a),t}return wl(e,s,t,a),Al(e)}function ds(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,fd(e,a)}}function tc(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var nc=!1;function hs(){if(nc){var e=hi;if(e!==null)throw e}}function ms(e,t,a,s){nc=!1;var o=e.updateQueue;Pn=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var j=x,D=j.next;j.next=null,m===null?c=D:m.next=D,m=j;var _=e.alternate;_!==null&&(_=_.updateQueue,x=_.lastBaseUpdate,x!==m&&(x===null?_.firstBaseUpdate=D:x.next=D,_.lastBaseUpdate=j))}if(c!==null){var G=o.baseState;m=0,_=D=j=null,x=c;do{var R=x.lane&-536870913,V=R!==x.lane;if(V?(Ne&R)===R:(s&R)===R){R!==0&&R===di&&(nc=!0),_!==null&&(_=_.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ae=e,de=x;R=t;var Be=a;switch(de.tag){case 1:if(ae=de.payload,typeof ae=="function"){G=ae.call(Be,G,R);break e}G=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=de.payload,R=typeof ae=="function"?ae.call(Be,G,R):ae,R==null)break e;G=b({},G,R);break e;case 2:Pn=!0}}R=x.callback,R!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[R]:V.push(R))}else V={lane:R,tag:x.tag,payload:x.payload,callback:x.callback,next:null},_===null?(D=_=V,j=G):_=_.next=V,m|=R;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;V=x,x=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);_===null&&(j=G),o.baseState=j,o.firstBaseUpdate=D,o.lastBaseUpdate=_,c===null&&(o.shared.lanes=0),na|=m,e.lanes=m,e.memoizedState=G}}function Sh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Th(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Sh(a[e],t)}var gi=A(null),Ol=A(0);function jh(e,t){e=_n,I(Ol,e),I(gi,t),_n=e|t.baseLanes}function ac(){I(Ol,_n),I(gi,gi.current)}function ic(){_n=Ol.current,H(gi),H(Ol)}var Rt=A(null),Kt=null;function Wn(e){var t=e.alternate;I(Ke,Ke.current&1),I(Rt,e),Kt===null&&(t===null||gi.current!==null||t.memoizedState!==null)&&(Kt=e)}function sc(e){I(Ke,Ke.current),I(Rt,e),Kt===null&&(Kt=e)}function wh(e){e.tag===22?(I(Ke,Ke.current),I(Rt,e),Kt===null&&(Kt=e)):In()}function In(){I(Ke,Ke.current),I(Rt,Rt.current)}function Vt(e){H(Rt),Kt===e&&(Kt=null),H(Ke)}var Ke=A(0);function _l(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||fu(a)||du(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mn=0,ve=null,Oe=null,Je=null,Bl=!1,yi=!1,Oa=!1,Ll=0,ps=0,vi=null,Mv=0;function Xe(){throw Error(r(321))}function lc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Dt(e[a],t[a]))return!1;return!0}function rc(e,t,a,s,o,c){return Mn=c,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?rm:Tc,Oa=!1,c=a(s,o),Oa=!1,yi&&(c=Nh(t,a,s,o)),Ah(e),c}function Ah(e){z.H=vs;var t=Oe!==null&&Oe.next!==null;if(Mn=0,Je=Oe=ve=null,Bl=!1,ps=0,vi=null,t)throw Error(r(300));e===null||$e||(e=e.dependencies,e!==null&&Ml(e)&&($e=!0))}function Nh(e,t,a,s){ve=e;var o=0;do{if(yi&&(vi=null),ps=0,yi=!1,25<=o)throw Error(r(301));if(o+=1,Je=Oe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=om,c=t(a,s)}while(yi);return c}function Ev(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?gs(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ve.flags|=1024),t}function oc(){var e=Ll!==0;return Ll=0,e}function cc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function uc(e){if(Bl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bl=!1}Mn=0,Je=Oe=ve=null,yi=!1,ps=Ll=0,vi=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ve.memoizedState=Je=e:Je=Je.next=e,Je}function Fe(){if(Oe===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Je===null?ve.memoizedState:Je.next;if(t!==null)Je=t,Oe=e;else{if(e===null)throw ve.alternate===null?Error(r(467)):Error(r(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Je===null?ve.memoizedState=Je=e:Je=Je.next=e}return Je}function Ul(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gs(e){var t=ps;return ps+=1,vi===null&&(vi=[]),e=gh(vi,e,t),t=ve,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?rm:Tc),e}function Hl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gs(e);if(e.$$typeof===Y)return ct(e)}throw Error(r(438,String(e)))}function fc(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=ve.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ul(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=le;return t.index++,a}function En(e,t){return typeof t=="function"?t(e):t}function ql(e){var t=Fe();return dc(t,Oe,e)}function dc(e,t,a){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var o=e.baseQueue,c=s.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,s.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var x=m=null,j=null,D=t,_=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Ne&G)===G:(Mn&G)===G){var R=D.revertLane;if(R===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===di&&(_=!0);else if((Mn&R)===R){D=D.next,R===di&&(_=!0);continue}else G={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},j===null?(x=j=G,m=c):j=j.next=G,ve.lanes|=R,na|=R;G=D.action,Oa&&a(c,G),c=D.hasEagerState?D.eagerState:a(c,G)}else R={lane:G,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},j===null?(x=j=R,m=c):j=j.next=R,ve.lanes|=G,na|=G;D=D.next}while(D!==null&&D!==t);if(j===null?m=c:j.next=x,!Dt(c,e.memoizedState)&&($e=!0,_&&(a=hi,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=j,s.lastRenderedState=c}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function hc(e){var t=Fe(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var s=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);Dt(c,t.memoizedState)||($e=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,s]}function Ch(e,t,a){var s=ve,o=Fe(),c=Ee;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=t();var m=!Dt((Oe||o).memoizedState,a);if(m&&(o.memoizedState=a,$e=!0),o=o.queue,gc(zh.bind(null,s,o,e),[e]),o.getSnapshot!==t||m||Je!==null&&Je.memoizedState.tag&1){if(s.flags|=2048,xi(9,{destroy:void 0},Eh.bind(null,s,o,a,t),null),Le===null)throw Error(r(349));c||(Mn&127)!==0||Mh(s,t,a)}return a}function Mh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=Ul(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Eh(e,t,a,s){t.value=a,t.getSnapshot=s,Dh(t)&&kh(e)}function zh(e,t,a){return a(function(){Dh(t)&&kh(e)})}function Dh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Dt(e,a)}catch{return!0}}function kh(e){var t=Na(e,2);t!==null&&Nt(t,e,2)}function mc(e){var t=yt();if(typeof e=="function"){var a=e;if(e=a(),Oa){Gn(!0);try{a()}finally{Gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function Rh(e,t,a,s){return e.baseState=a,dc(e,Oe,typeof s=="function"?s:En)}function zv(e,t,a,s,o){if(Xl(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};z.T!==null?a(!0):c.isTransition=!1,s(c),a=t.pending,a===null?(c.next=t.pending=c,Vh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Vh(e,t){var a=t.action,s=t.payload,o=e.state;if(t.isTransition){var c=z.T,m={};z.T=m;try{var x=a(o,s),j=z.S;j!==null&&j(m,x),Oh(e,t,x)}catch(D){pc(e,t,D)}finally{c!==null&&m.types!==null&&(c.types=m.types),z.T=c}}else try{c=a(o,s),Oh(e,t,c)}catch(D){pc(e,t,D)}}function Oh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){_h(e,t,s)},function(s){return pc(e,t,s)}):_h(e,t,a)}function _h(e,t,a){t.status="fulfilled",t.value=a,Bh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Vh(e,a)))}function pc(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,Bh(t),t=t.next;while(t!==s)}e.action=null}function Bh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lh(e,t){return t}function Uh(e,t){if(Ee){var a=Le.formState;if(a!==null){e:{var s=ve;if(Ee){if(He){t:{for(var o=He,c=Qt;o.nodeType!==8;){if(!c){o=null;break t}if(o=Ft(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){He=Ft(o.nextSibling),s=o.data==="F!";break e}}Kn(s)}s=!1}s&&(t=a[0])}}return a=yt(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lh,lastRenderedState:t},a.queue=s,a=im.bind(null,ve,s),s.dispatch=a,s=mc(!1),c=Sc.bind(null,ve,!1,s.queue),s=yt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=zv.bind(null,ve,o,c,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Hh(e){var t=Fe();return qh(t,Oe,e)}function qh(e,t,a){if(t=dc(e,t,Lh)[0],e=ql(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=gs(t)}catch(m){throw m===mi?Dl:m}else s=t;t=Fe();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,xi(9,{destroy:void 0},Dv.bind(null,o,a),null)),[s,c,e]}function Dv(e,t){e.action=t}function Gh(e){var t=Fe(),a=Oe;if(a!==null)return qh(t,a,e);Fe(),t=t.memoizedState,a=Fe();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function xi(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Ul(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function Yh(){return Fe().memoizedState}function Gl(e,t,a,s){var o=yt();ve.flags|=e,o.memoizedState=xi(1|t,{destroy:void 0},a,s===void 0?null:s)}function Yl(e,t,a,s){var o=Fe();s=s===void 0?null:s;var c=o.memoizedState.inst;Oe!==null&&s!==null&&lc(s,Oe.memoizedState.deps)?o.memoizedState=xi(t,c,a,s):(ve.flags|=e,o.memoizedState=xi(1|t,c,a,s))}function Xh(e,t){Gl(8390656,8,e,t)}function gc(e,t){Yl(2048,8,e,t)}function kv(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Ul(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Zh(e){var t=Fe().memoizedState;return kv({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Qh(e,t){return Yl(4,2,e,t)}function Kh(e,t){return Yl(4,4,e,t)}function Fh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ph(e,t,a){a=a!=null?a.concat([e]):null,Yl(4,4,Fh.bind(null,t,e),a)}function yc(){}function Jh(e,t){var a=Fe();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&lc(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function $h(e,t){var a=Fe();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&lc(t,s[1]))return s[0];if(s=e(),Oa){Gn(!0);try{e()}finally{Gn(!1)}}return a.memoizedState=[s,t],s}function vc(e,t,a){return a===void 0||(Mn&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Wm(),ve.lanes|=e,na|=e,a)}function Wh(e,t,a,s){return Dt(a,t)?a:gi.current!==null?(e=vc(e,a,s),Dt(e,t)||($e=!0),e):(Mn&42)===0||(Mn&1073741824)!==0&&(Ne&261930)===0?($e=!0,e.memoizedState=a):(e=Wm(),ve.lanes|=e,na|=e,t)}function Ih(e,t,a,s,o){var c=K.p;K.p=c!==0&&8>c?c:8;var m=z.T,x={};z.T=x,Sc(e,!1,t,a);try{var j=o(),D=z.S;if(D!==null&&D(x,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var _=Cv(j,s);ys(e,t,_,Bt(e))}else ys(e,t,s,Bt(e))}catch(G){ys(e,t,{then:function(){},status:"rejected",reason:G},Bt())}finally{K.p=c,m!==null&&x.types!==null&&(m.types=x.types),z.T=m}}function Rv(){}function xc(e,t,a,s){if(e.tag!==5)throw Error(r(476));var o=em(e).queue;Ih(e,o,t,W,a===null?Rv:function(){return tm(e),a(s)})}function em(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tm(e){var t=em(e);t.next===null&&(t=e.alternate.memoizedState),ys(e,t.next.queue,{},Bt())}function bc(){return ct(Vs)}function nm(){return Fe().memoizedState}function am(){return Fe().memoizedState}function Vv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Bt();e=Jn(a);var s=$n(t,e,a);s!==null&&(Nt(s,t,a),ds(s,t,a)),t={cache:Po()},e.payload=t;return}t=t.return}}function Ov(e,t,a){var s=Bt();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xl(e)?sm(t,a):(a=Lo(e,t,a,s),a!==null&&(Nt(a,e,s),lm(a,t,s)))}function im(e,t,a){var s=Bt();ys(e,t,a,s)}function ys(e,t,a,s){var o={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Xl(e))sm(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,x=c(m,a);if(o.hasEagerState=!0,o.eagerState=x,Dt(x,m))return wl(e,t,o,0),Le===null&&jl(),!1}catch{}if(a=Lo(e,t,o,s),a!==null)return Nt(a,e,s),lm(a,t,s),!0}return!1}function Sc(e,t,a,s){if(s={lane:2,revertLane:Ic(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Xl(e)){if(t)throw Error(r(479))}else t=Lo(e,a,s,2),t!==null&&Nt(t,e,2)}function Xl(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function sm(e,t){yi=Bl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function lm(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,fd(e,a)}}var vs={readContext:ct,use:Hl,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};vs.useEffectEvent=Xe;var rm={readContext:ct,use:Hl,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Xh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Gl(4194308,4,Fh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Gl(4194308,4,e,t)},useInsertionEffect:function(e,t){Gl(4,2,e,t)},useMemo:function(e,t){var a=yt();t=t===void 0?null:t;var s=e();if(Oa){Gn(!0);try{e()}finally{Gn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=yt();if(a!==void 0){var o=a(t);if(Oa){Gn(!0);try{a(t)}finally{Gn(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=Ov.bind(null,ve,e),[s.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=mc(e);var t=e.queue,a=im.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:yc,useDeferredValue:function(e,t){var a=yt();return vc(a,e,t)},useTransition:function(){var e=mc(!1);return e=Ih.bind(null,ve,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ve,o=yt();if(Ee){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Le===null)throw Error(r(349));(Ne&127)!==0||Mh(s,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Xh(zh.bind(null,s,c,e),[e]),s.flags|=2048,xi(9,{destroy:void 0},Eh.bind(null,s,c,a,t),null),a},useId:function(){var e=yt(),t=Le.identifierPrefix;if(Ee){var a=dn,s=fn;a=(s&~(1<<32-zt(s)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ll++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Mv++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:Uh,useActionState:Uh,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Sc.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:fc,useCacheRefresh:function(){return yt().memoizedState=Vv.bind(null,ve)},useEffectEvent:function(e){var t=yt(),a={impl:e};return t.memoizedState=a,function(){if((ke&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Tc={readContext:ct,use:Hl,useCallback:Jh,useContext:ct,useEffect:gc,useImperativeHandle:Ph,useInsertionEffect:Qh,useLayoutEffect:Kh,useMemo:$h,useReducer:ql,useRef:Yh,useState:function(){return ql(En)},useDebugValue:yc,useDeferredValue:function(e,t){var a=Fe();return Wh(a,Oe.memoizedState,e,t)},useTransition:function(){var e=ql(En)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:gs(e),t]},useSyncExternalStore:Ch,useId:nm,useHostTransitionStatus:bc,useFormState:Hh,useActionState:Hh,useOptimistic:function(e,t){var a=Fe();return Rh(a,Oe,e,t)},useMemoCache:fc,useCacheRefresh:am};Tc.useEffectEvent=Zh;var om={readContext:ct,use:Hl,useCallback:Jh,useContext:ct,useEffect:gc,useImperativeHandle:Ph,useInsertionEffect:Qh,useLayoutEffect:Kh,useMemo:$h,useReducer:hc,useRef:Yh,useState:function(){return hc(En)},useDebugValue:yc,useDeferredValue:function(e,t){var a=Fe();return Oe===null?vc(a,e,t):Wh(a,Oe.memoizedState,e,t)},useTransition:function(){var e=hc(En)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:gs(e),t]},useSyncExternalStore:Ch,useId:nm,useHostTransitionStatus:bc,useFormState:Gh,useActionState:Gh,useOptimistic:function(e,t){var a=Fe();return Oe!==null?Rh(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:fc,useCacheRefresh:am};om.useEffectEvent=Zh;function jc(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var wc={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=Bt(),o=Jn(s);o.payload=t,a!=null&&(o.callback=a),t=$n(e,o,s),t!==null&&(Nt(t,e,s),ds(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=Bt(),o=Jn(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=$n(e,o,s),t!==null&&(Nt(t,e,s),ds(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Bt(),s=Jn(a);s.tag=2,t!=null&&(s.callback=t),t=$n(e,s,a),t!==null&&(Nt(t,e,a),ds(t,e,a))}};function cm(e,t,a,s,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,m):t.prototype&&t.prototype.isPureReactComponent?!is(a,s)||!is(o,c):!0}function um(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&wc.enqueueReplaceState(t,t.state,null)}function _a(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function fm(e){Tl(e)}function dm(e){console.error(e)}function hm(e){Tl(e)}function Zl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function mm(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ac(e,t,a){return a=Jn(a),a.tag=3,a.payload={element:null},a.callback=function(){Zl(e,t)},a}function pm(e){return e=Jn(e),e.tag=3,e}function gm(e,t,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=s.value;e.payload=function(){return o(c)},e.callback=function(){mm(t,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){mm(t,a,s),typeof o!="function"&&(aa===null?aa=new Set([this]):aa.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function _v(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&fi(t,a,o,!0),a=Rt.current,a!==null){switch(a.tag){case 31:case 13:return Kt===null?ar():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===kl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),Jc(e,s,o)),!1;case 22:return a.flags|=65536,s===kl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),Jc(e,s,o)),!1}throw Error(r(435,a.tag))}return Jc(e,s,o),ar(),!1}if(Ee)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==Xo&&(e=Error(r(422),{cause:s}),rs(Yt(e,a)))):(s!==Xo&&(t=Error(r(423),{cause:s}),rs(Yt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Yt(s,a),o=Ac(e.stateNode,s,o),tc(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(r(520),{cause:s});if(c=Yt(c,a),Ns===null?Ns=[c]:Ns.push(c),Ze!==4&&(Ze=2),t===null)return!0;s=Yt(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Ac(a.stateNode,s,e),tc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(aa===null||!aa.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=pm(o),gm(o,e,a,s),tc(a,o),!1}a=a.return}while(a!==null);return!1}var Nc=Error(r(461)),$e=!1;function ut(e,t,a,s){t.child=e===null?bh(t,null,a,s):Va(t,e.child,a,s)}function ym(e,t,a,s,o){a=a.render;var c=t.ref;if("ref"in s){var m={};for(var x in s)x!=="ref"&&(m[x]=s[x])}else m=s;return za(t),s=rc(e,t,a,m,c,o),x=oc(),e!==null&&!$e?(cc(e,t,o),zn(e,t,o)):(Ee&&x&&Go(t),t.flags|=1,ut(e,t,s,o),t.child)}function vm(e,t,a,s,o){if(e===null){var c=a.type;return typeof c=="function"&&!Uo(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,xm(e,t,c,s,o)):(e=Nl(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Vc(e,o)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:is,a(m,s)&&e.ref===t.ref)return zn(e,t,o)}return t.flags|=1,e=wn(c,s),e.ref=t.ref,e.return=t,t.child=e}function xm(e,t,a,s,o){if(e!==null){var c=e.memoizedProps;if(is(c,s)&&e.ref===t.ref)if($e=!1,t.pendingProps=s=c,Vc(e,o))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,zn(e,t,o)}return Cc(e,t,a,s,o)}function bm(e,t,a,s){var o=s.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(s=t.child=e.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~c}else s=0,t.child=null;return Sm(e,t,c,a,s)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zl(t,c!==null?c.cachePool:null),c!==null?jh(t,c):ac(),wh(t);else return s=t.lanes=536870912,Sm(e,t,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(zl(t,c.cachePool),jh(t,c),In(),t.memoizedState=null):(e!==null&&zl(t,null),ac(),In());return ut(e,t,o,a),t.child}function xs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Sm(e,t,a,s,o){var c=$o();return c=c===null?null:{parent:Pe._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&zl(t,null),ac(),wh(t),e!==null&&fi(e,t,s,!0),t.childLanes=o,null}function Ql(e,t){return t=Fl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Tm(e,t,a){return Va(t,e.child,null,a),e=Ql(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function Bv(e,t,a){var s=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(s.mode==="hidden")return e=Ql(t,s),t.lanes=536870912,xs(null,e);if(sc(t),(e=He)?(e=V0(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:fn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},a=sh(e),a.return=t,t.child=a,ot=t,He=null)):e=null,e===null)throw Kn(t);return t.lanes=536870912,null}return Ql(t,s)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(sc(t),o)if(t.flags&256)t.flags&=-257,t=Tm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if($e||fi(e,t,a,!1),o=(a&e.childLanes)!==0,$e||o){if(s=Le,s!==null&&(m=dd(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Na(e,m),Nt(s,e,m),Nc;ar(),t=Tm(e,t,a)}else e=c.treeContext,He=Ft(m.nextSibling),ot=t,Ee=!0,Qn=null,Qt=!1,e!==null&&oh(t,e),t=Ql(t,s),t.flags|=4096;return t}return e=wn(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Kl(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Cc(e,t,a,s,o){return za(t),a=rc(e,t,a,s,void 0,o),s=oc(),e!==null&&!$e?(cc(e,t,o),zn(e,t,o)):(Ee&&s&&Go(t),t.flags|=1,ut(e,t,a,o),t.child)}function jm(e,t,a,s,o,c){return za(t),t.updateQueue=null,a=Nh(t,s,a,o),Ah(e),s=oc(),e!==null&&!$e?(cc(e,t,c),zn(e,t,c)):(Ee&&s&&Go(t),t.flags|=1,ut(e,t,a,c),t.child)}function wm(e,t,a,s,o){if(za(t),t.stateNode===null){var c=ri,m=a.contextType;typeof m=="object"&&m!==null&&(c=ct(m)),c=new a(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=wc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},Io(t),m=a.contextType,c.context=typeof m=="object"&&m!==null?ct(m):ri,c.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(jc(t,a,m,s),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&wc.enqueueReplaceState(c,c.state,null),ms(t,s,c,o),hs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,j=_a(a,x);c.props=j;var D=c.context,_=a.contextType;m=ri,typeof _=="object"&&_!==null&&(m=ct(_));var G=a.getDerivedStateFromProps;_=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,_||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||D!==m)&&um(t,c,s,m),Pn=!1;var R=t.memoizedState;c.state=R,ms(t,s,c,o),hs(),D=t.memoizedState,x||R!==D||Pn?(typeof G=="function"&&(jc(t,a,G,s),D=t.memoizedState),(j=Pn||cm(t,a,j,s,R,D,m))?(_||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=D),c.props=s,c.state=D,c.context=m,s=j):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{c=t.stateNode,ec(e,t),m=t.memoizedProps,_=_a(a,m),c.props=_,G=t.pendingProps,R=c.context,D=a.contextType,j=ri,typeof D=="object"&&D!==null&&(j=ct(D)),x=a.getDerivedStateFromProps,(D=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==G||R!==j)&&um(t,c,s,j),Pn=!1,R=t.memoizedState,c.state=R,ms(t,s,c,o),hs();var V=t.memoizedState;m!==G||R!==V||Pn||e!==null&&e.dependencies!==null&&Ml(e.dependencies)?(typeof x=="function"&&(jc(t,a,x,s),V=t.memoizedState),(_=Pn||cm(t,a,_,s,R,V,j)||e!==null&&e.dependencies!==null&&Ml(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,V,j),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,V,j)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=V),c.props=s,c.state=V,c.context=j,s=_):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,Kl(e,t),s=(t.flags&128)!==0,c||s?(c=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&s?(t.child=Va(t,e.child,null,o),t.child=Va(t,null,a,o)):ut(e,t,a,o),t.memoizedState=c.state,e=t.child):e=zn(e,t,o),e}function Am(e,t,a,s){return Ma(),t.flags|=256,ut(e,t,a,s),t.child}var Mc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ec(e){return{baseLanes:e,cachePool:mh()}}function zc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function Nm(e,t,a){var s=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(o?Wn(t):In(),(e=He)?(e=V0(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:fn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},a=sh(e),a.return=t,t.child=a,ot=t,He=null)):e=null,e===null)throw Kn(t);return du(e)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,o?(In(),o=t.mode,x=Fl({mode:"hidden",children:x},o),s=Ca(s,o,a,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=Ec(a),s.childLanes=zc(e,m,a),t.memoizedState=Mc,xs(null,s)):(Wn(t),Dc(t,x))}var j=e.memoizedState;if(j!==null&&(x=j.dehydrated,x!==null)){if(c)t.flags&256?(Wn(t),t.flags&=-257,t=kc(e,t,a)):t.memoizedState!==null?(In(),t.child=e.child,t.flags|=128,t=null):(In(),x=s.fallback,o=t.mode,s=Fl({mode:"visible",children:s.children},o),x=Ca(x,o,a,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,Va(t,e.child,null,a),s=t.child,s.memoizedState=Ec(a),s.childLanes=zc(e,m,a),t.memoizedState=Mc,t=xs(null,s));else if(Wn(t),du(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var D=m.dgst;m=D,s=Error(r(419)),s.stack="",s.digest=m,rs({value:s,source:null,stack:null}),t=kc(e,t,a)}else if($e||fi(e,t,a,!1),m=(a&e.childLanes)!==0,$e||m){if(m=Le,m!==null&&(s=dd(m,a),s!==0&&s!==j.retryLane))throw j.retryLane=s,Na(e,s),Nt(m,e,s),Nc;fu(x)||ar(),t=kc(e,t,a)}else fu(x)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,He=Ft(x.nextSibling),ot=t,Ee=!0,Qn=null,Qt=!1,e!==null&&oh(t,e),t=Dc(t,s.children),t.flags|=4096);return t}return o?(In(),x=s.fallback,o=t.mode,j=e.child,D=j.sibling,s=wn(j,{mode:"hidden",children:s.children}),s.subtreeFlags=j.subtreeFlags&65011712,D!==null?x=wn(D,x):(x=Ca(x,o,a,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,xs(null,s),s=t.child,x=e.child.memoizedState,x===null?x=Ec(a):(o=x.cachePool,o!==null?(j=Pe._currentValue,o=o.parent!==j?{parent:j,pool:j}:o):o=mh(),x={baseLanes:x.baseLanes|a,cachePool:o}),s.memoizedState=x,s.childLanes=zc(e,m,a),t.memoizedState=Mc,xs(e.child,s)):(Wn(t),a=e.child,e=a.sibling,a=wn(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Dc(e,t){return t=Fl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fl(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function kc(e,t,a){return Va(t,e.child,null,a),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ko(e.return,t,a)}function Rc(e,t,a,s,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=o,m.treeForkCount=c)}function Mm(e,t,a){var s=t.pendingProps,o=s.revealOrder,c=s.tail;s=s.children;var m=Ke.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,I(Ke,m),ut(e,t,s,a),s=Ee?ls:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cm(e,a,t);else if(e.tag===19)Cm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&_l(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Rc(t,!1,o,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_l(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Rc(t,!0,a,null,c,s);break;case"together":Rc(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function zn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),na|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=wn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=wn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Vc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ml(e)))}function Lv(e,t,a){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),Fn(t,Pe,e.memoizedState.cache),Ma();break;case 27:case 5:Hn(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:Fn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,sc(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Wn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Nm(e,t,a):(Wn(t),e=zn(e,t,a),e!==null?e.sibling:null);Wn(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(fi(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return Mm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(Ke,Ke.current),s)break;return null;case 22:return t.lanes=0,bm(e,t,a,t.pendingProps);case 24:Fn(t,Pe,e.memoizedState.cache)}return zn(e,t,a)}function Em(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Vc(e,a)&&(t.flags&128)===0)return $e=!1,Lv(e,t,a);$e=(e.flags&131072)!==0}else $e=!1,Ee&&(t.flags&1048576)!==0&&rh(t,ls,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e=="function")Uo(e)?(s=_a(e,s),t.tag=1,t=wm(null,t,e,s,a)):(t.tag=0,t=Cc(null,t,e,s,a));else{if(e!=null){var o=e.$$typeof;if(o===X){t.tag=11,t=ym(null,t,e,s,a);break e}else if(o===J){t.tag=14,t=vm(null,t,e,s,a);break e}}throw t=be(e)||e,Error(r(306,t,""))}}return t;case 0:return Cc(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=_a(s,t.pendingProps),wm(e,t,s,o,a);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var c=t.memoizedState;o=c.element,ec(e,t),ms(t,s,null,a);var m=t.memoizedState;if(s=m.cache,Fn(t,Pe,s),s!==c.cache&&Fo(t,[Pe],a,!0),hs(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Am(e,t,s,a);break e}else if(s!==o){o=Yt(Error(r(424)),t),rs(o),t=Am(e,t,s,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,He=Ft(e.firstChild),ot=t,Ee=!0,Qn=null,Qt=!0,a=bh(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ma(),s===o){t=zn(e,t,a);break e}ut(e,t,s,a)}t=t.child}return t;case 26:return Kl(e,t),e===null?(a=H0(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ee||(a=t.type,e=t.pendingProps,s=ur(ue.current).createElement(a),s[rt]=t,s[bt]=e,ft(s,a,e),st(s),t.stateNode=s):t.memoizedState=H0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Hn(t),e===null&&Ee&&(s=t.stateNode=B0(t.type,t.pendingProps,ue.current),ot=t,Qt=!0,o=He,ra(t.type)?(hu=o,He=Ft(s.firstChild)):He=o),ut(e,t,t.pendingProps.children,a),Kl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((o=s=He)&&(s=mx(s,t.type,t.pendingProps,Qt),s!==null?(t.stateNode=s,ot=t,He=Ft(s.firstChild),Qt=!1,o=!0):o=!1),o||Kn(t)),Hn(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,s=c.children,ou(o,c)?s=null:m!==null&&ou(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=rc(e,t,Ev,null,null,a),Vs._currentValue=o),Kl(e,t),ut(e,t,s,a),t.child;case 6:return e===null&&Ee&&((e=a=He)&&(a=px(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,ot=t,He=null,e=!0):e=!1),e||Kn(t)),null;case 13:return Nm(e,t,a);case 4:return it(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Va(t,null,s,a):ut(e,t,s,a),t.child;case 11:return ym(e,t,t.type,t.pendingProps,a);case 7:return ut(e,t,t.pendingProps,a),t.child;case 8:return ut(e,t,t.pendingProps.children,a),t.child;case 12:return ut(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Fn(t,t.type,s.value),ut(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,za(t),o=ct(o),s=s(o),t.flags|=1,ut(e,t,s,a),t.child;case 14:return vm(e,t,t.type,t.pendingProps,a);case 15:return xm(e,t,t.type,t.pendingProps,a);case 19:return Mm(e,t,a);case 31:return Bv(e,t,a);case 22:return bm(e,t,a,t.pendingProps);case 24:return za(t),s=ct(Pe),e===null?(o=$o(),o===null&&(o=Le,c=Po(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:s,cache:o},Io(t),Fn(t,Pe,o)):((e.lanes&a)!==0&&(ec(e,t),ms(t,null,null,a),hs()),o=e.memoizedState,c=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Fn(t,Pe,s)):(s=c.cache,Fn(t,Pe,s),s!==o.cache&&Fo(t,[Pe],a,!0))),ut(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Dn(e){e.flags|=4}function Oc(e,t,a,s,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(n0())e.flags|=8192;else throw Ra=kl,Wo}else e.flags&=-16777217}function zm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Z0(t))if(n0())e.flags|=8192;else throw Ra=kl,Wo}function Pl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cd():536870912,e.lanes|=t,ji|=t)}function bs(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function Uv(e,t,a){var s=t.pendingProps;switch(Yo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Cn(Pe),Se(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ui(t)?Dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zo())),qe(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Dn(t),c!==null?(qe(t),zm(t,c)):(qe(t),Oc(t,o,null,s,a))):c?c!==e.memoizedState?(Dn(t),qe(t),zm(t,c)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Dn(t),qe(t),Oc(t,o,e,s,a)),null;case 27:if(bn(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Dn(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=te.current,ui(t)?ch(t):(e=B0(o,s,a),t.stateNode=e,Dn(t))}return qe(t),null;case 5:if(bn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Dn(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(c=te.current,ui(t))ch(t);else{var m=ur(ue.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(o,{is:s.is}):m.createElement(o)}}c[rt]=t,c[bt]=s;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(ft(c,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Dn(t)}}return qe(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Dn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,ui(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=ot,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[rt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||N0(e.nodeValue,a)),e||Kn(t,!0)}else e=ur(e).createTextNode(s),e[rt]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(s=ui(t),a!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[rt]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=Zo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ui(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[rt]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),o=!1}else o=Zo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Pl(t,t.updateQueue),qe(t),null);case 4:return Se(),e===null&&au(t.stateNode.containerInfo),qe(t),null;case 10:return Cn(t.type),qe(t),null;case 19:if(H(Ke),s=t.memoizedState,s===null)return qe(t),null;if(o=(t.flags&128)!==0,c=s.rendering,c===null)if(o)bs(s,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=_l(e),c!==null){for(t.flags|=128,bs(s,!1),e=c.updateQueue,t.updateQueue=e,Pl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ih(a,e),a=a.sibling;return I(Ke,Ke.current&1|2),Ee&&An(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Mt()>er&&(t.flags|=128,o=!0,bs(s,!1),t.lanes=4194304)}else{if(!o)if(e=_l(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Pl(t,e),bs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Ee)return qe(t),null}else 2*Mt()-s.renderingStartTime>er&&a!==536870912&&(t.flags|=128,o=!0,bs(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(e=s.last,e!==null?e.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Mt(),e.sibling=null,a=Ke.current,I(Ke,o?a&1|2:a&1),Ee&&An(t,s.treeForkCount),e):(qe(t),null);case 22:case 23:return Vt(t),ic(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&Pl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&H(Da),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Cn(Pe),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Hv(e,t){switch(Yo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(Pe),Se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bn(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(r(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Ke),null;case 4:return Se(),null;case 10:return Cn(t.type),null;case 22:case 23:return Vt(t),ic(),e!==null&&H(Da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cn(Pe),null;case 25:return null;default:return null}}function Dm(e,t){switch(Yo(t),t.tag){case 3:Cn(Pe),Se();break;case 26:case 27:case 5:bn(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:H(Ke);break;case 10:Cn(t.type);break;case 22:case 23:Vt(t),ic(),e!==null&&H(Da);break;case 24:Cn(Pe)}}function Ss(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==o)}}catch(x){Ve(t,t.return,x)}}function ea(e,t,a){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var c=o.next;s=c;do{if((s.tag&e)===e){var m=s.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,o=t;var j=a,D=x;try{D()}catch(_){Ve(o,j,_)}}}s=s.next}while(s!==c)}}catch(_){Ve(t,t.return,_)}}function km(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Th(t,a)}catch(s){Ve(e,e.return,s)}}}function Rm(e,t,a){a.props=_a(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Ve(e,t,s)}}function Ts(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(o){Ve(e,t,o)}}function hn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Ve(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ve(e,t,o)}else a.current=null}function Vm(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){Ve(e,e.return,o)}}function _c(e,t,a){try{var s=e.stateNode;ox(s,e.type,a,t),s[bt]=t}catch(o){Ve(e,e.return,o)}}function Om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ra(e.type)||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ra(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Tn));else if(s!==4&&(s===27&&ra(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Lc(e,t,a),e=e.sibling;e!==null;)Lc(e,t,a),e=e.sibling}function Jl(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&ra(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Jl(e,t,a),e=e.sibling;e!==null;)Jl(e,t,a),e=e.sibling}function _m(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ft(t,s,a),t[rt]=e,t[bt]=a}catch(c){Ve(e,e.return,c)}}var kn=!1,We=!1,Uc=!1,Bm=typeof WeakSet=="function"?WeakSet:Set,lt=null;function qv(e,t){if(e=e.containerInfo,lu=yr,e=Pd(e),ko(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,x=-1,j=-1,D=0,_=0,G=e,R=null;t:for(;;){for(var V;G!==a||o!==0&&G.nodeType!==3||(x=m+o),G!==c||s!==0&&G.nodeType!==3||(j=m+s),G.nodeType===3&&(m+=G.nodeValue.length),(V=G.firstChild)!==null;)R=G,G=V;for(;;){if(G===e)break t;if(R===a&&++D===o&&(x=m),R===c&&++_===s&&(j=m),(V=G.nextSibling)!==null)break;G=R,R=G.parentNode}G=V}a=x===-1||j===-1?null:{start:x,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(ru={focusedElem:e,selectionRange:a},yr=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var ae=_a(a.type,o);e=s.getSnapshotBeforeUpdate(ae,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(de){Ve(a,a.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)uu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function Lm(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Vn(e,a),s&4&&Ss(5,a);break;case 1:if(Vn(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Ve(a,a.return,m)}else{var o=_a(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ve(a,a.return,m)}}s&64&&km(a),s&512&&Ts(a,a.return);break;case 3:if(Vn(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Th(e,t)}catch(m){Ve(a,a.return,m)}}break;case 27:t===null&&s&4&&_m(a);case 26:case 5:Vn(e,a),t===null&&s&4&&Vm(a),s&512&&Ts(a,a.return);break;case 12:Vn(e,a);break;case 31:Vn(e,a),s&4&&qm(e,a);break;case 13:Vn(e,a),s&4&&Gm(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Jv.bind(null,a),gx(e,a))));break;case 22:if(s=a.memoizedState!==null||kn,!s){t=t!==null&&t.memoizedState!==null||We,o=kn;var c=We;kn=s,(We=t)&&!c?On(e,a,(a.subtreeFlags&8772)!==0):Vn(e,a),kn=o,We=c}break;case 30:break;default:Vn(e,a)}}function Um(e){var t=e.alternate;t!==null&&(e.alternate=null,Um(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&po(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,Tt=!1;function Rn(e,t,a){for(a=a.child;a!==null;)Hm(e,t,a),a=a.sibling}function Hm(e,t,a){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Qi,a)}catch{}switch(a.tag){case 26:We||hn(a,t),Rn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:We||hn(a,t);var s=Ye,o=Tt;ra(a.type)&&(Ye=a.stateNode,Tt=!1),Rn(e,t,a),Ds(a.stateNode),Ye=s,Tt=o;break;case 5:We||hn(a,t);case 6:if(s=Ye,o=Tt,Ye=null,Rn(e,t,a),Ye=s,Tt=o,Ye!==null)if(Tt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(c){Ve(a,t,c)}else try{Ye.removeChild(a.stateNode)}catch(c){Ve(a,t,c)}break;case 18:Ye!==null&&(Tt?(e=Ye,k0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Di(e)):k0(Ye,a.stateNode));break;case 4:s=Ye,o=Tt,Ye=a.stateNode.containerInfo,Tt=!0,Rn(e,t,a),Ye=s,Tt=o;break;case 0:case 11:case 14:case 15:ea(2,a,t),We||ea(4,a,t),Rn(e,t,a);break;case 1:We||(hn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Rm(a,t,s)),Rn(e,t,a);break;case 21:Rn(e,t,a);break;case 22:We=(s=We)||a.memoizedState!==null,Rn(e,t,a),We=s;break;default:Rn(e,t,a)}}function qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Di(e)}catch(a){Ve(t,t.return,a)}}}function Gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Di(e)}catch(a){Ve(t,t.return,a)}}function Gv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Bm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Bm),t;default:throw Error(r(435,e.tag))}}function $l(e,t){var a=Gv(e);t.forEach(function(s){if(!a.has(s)){a.add(s);var o=$v.bind(null,e,s);s.then(o,o)}})}function jt(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],c=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(ra(x.type)){Ye=x.stateNode,Tt=!1;break e}break;case 5:Ye=x.stateNode,Tt=!1;break e;case 3:case 4:Ye=x.stateNode.containerInfo,Tt=!0;break e}x=x.return}if(Ye===null)throw Error(r(160));Hm(c,m,o),Ye=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ym(t,e),t=t.sibling}var ln=null;function Ym(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),wt(e),s&4&&(ea(3,e,e.return),Ss(3,e),ea(5,e,e.return));break;case 1:jt(t,e),wt(e),s&512&&(We||a===null||hn(a,a.return)),s&64&&kn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=ln;if(jt(t,e),wt(e),s&512&&(We||a===null||hn(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Pi]||c[rt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),ft(c,s,a),c[rt]=e,st(c),s=c;break e;case"link":var m=Y0("link","href",o).get(s+(a.href||""));if(m){for(var x=0;x<m.length;x++)if(c=m[x],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(x,1);break t}}c=o.createElement(s),ft(c,s,a),o.head.appendChild(c);break;case"meta":if(m=Y0("meta","content",o).get(s+(a.content||""))){for(x=0;x<m.length;x++)if(c=m[x],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(x,1);break t}}c=o.createElement(s),ft(c,s,a),o.head.appendChild(c);break;default:throw Error(r(468,s))}c[rt]=e,st(c),s=c}e.stateNode=s}else X0(o,e.type,e.stateNode);else e.stateNode=G0(o,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?X0(o,e.type,e.stateNode):G0(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&_c(e,e.memoizedProps,a.memoizedProps)}break;case 27:jt(t,e),wt(e),s&512&&(We||a===null||hn(a,a.return)),a!==null&&s&4&&_c(e,e.memoizedProps,a.memoizedProps);break;case 5:if(jt(t,e),wt(e),s&512&&(We||a===null||hn(a,a.return)),e.flags&32){o=e.stateNode;try{ei(o,"")}catch(ae){Ve(e,e.return,ae)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,_c(e,o,a!==null?a.memoizedProps:o)),s&1024&&(Uc=!0);break;case 6:if(jt(t,e),wt(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(ae){Ve(e,e.return,ae)}}break;case 3:if(hr=null,o=ln,ln=fr(t.containerInfo),jt(t,e),ln=o,wt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(ae){Ve(e,e.return,ae)}Uc&&(Uc=!1,Xm(e));break;case 4:s=ln,ln=fr(e.stateNode.containerInfo),jt(t,e),wt(e),ln=s;break;case 12:jt(t,e),wt(e);break;case 31:jt(t,e),wt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,$l(e,s)));break;case 13:jt(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Il=Mt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,$l(e,s)));break;case 22:o=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,D=kn,_=We;if(kn=D||o,We=_||j,jt(t,e),We=_,kn=D,wt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||j||kn||We||Ba(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(c=j.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=j.stateNode;var G=j.memoizedProps.style,R=G!=null&&G.hasOwnProperty("display")?G.display:null;x.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ae){Ve(j,j.return,ae)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=o?"":j.memoizedProps}catch(ae){Ve(j,j.return,ae)}}}else if(t.tag===18){if(a===null){j=t;try{var V=j.stateNode;o?R0(V,!0):R0(j.stateNode,!1)}catch(ae){Ve(j,j.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,$l(e,a))));break;case 19:jt(t,e),wt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,$l(e,s)));break;case 30:break;case 21:break;default:jt(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(Om(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,c=Bc(e);Jl(e,c,o);break;case 5:var m=a.stateNode;a.flags&32&&(ei(m,""),a.flags&=-33);var x=Bc(e);Jl(e,x,m);break;case 3:case 4:var j=a.stateNode.containerInfo,D=Bc(e);Lc(e,D,j);break;default:throw Error(r(161))}}catch(_){Ve(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Vn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lm(e,t.alternate,t),t=t.sibling}function Ba(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ea(4,t,t.return),Ba(t);break;case 1:hn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Rm(t,t.return,a),Ba(t);break;case 27:Ds(t.stateNode);case 26:case 5:hn(t,t.return),Ba(t);break;case 22:t.memoizedState===null&&Ba(t);break;case 30:Ba(t);break;default:Ba(t)}e=e.sibling}}function On(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:On(o,c,a),Ss(4,c);break;case 1:if(On(o,c,a),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ve(s,s.return,D)}if(s=c,o=s.updateQueue,o!==null){var x=s.stateNode;try{var j=o.shared.hiddenCallbacks;if(j!==null)for(o.shared.hiddenCallbacks=null,o=0;o<j.length;o++)Sh(j[o],x)}catch(D){Ve(s,s.return,D)}}a&&m&64&&km(c),Ts(c,c.return);break;case 27:_m(c);case 26:case 5:On(o,c,a),a&&s===null&&m&4&&Vm(c),Ts(c,c.return);break;case 12:On(o,c,a);break;case 31:On(o,c,a),a&&m&4&&qm(o,c);break;case 13:On(o,c,a),a&&m&4&&Gm(o,c);break;case 22:c.memoizedState===null&&On(o,c,a),Ts(c,c.return);break;case 30:break;default:On(o,c,a)}t=t.sibling}}function Hc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&os(a))}function qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&os(e))}function rn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zm(e,t,a,s),t=t.sibling}function Zm(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,a,s),o&2048&&Ss(9,t);break;case 1:rn(e,t,a,s);break;case 3:rn(e,t,a,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&os(e)));break;case 12:if(o&2048){rn(e,t,a,s),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,x=c.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Ve(t,t.return,j)}}else rn(e,t,a,s);break;case 31:rn(e,t,a,s);break;case 13:rn(e,t,a,s);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?rn(e,t,a,s):js(e,t):c._visibility&2?rn(e,t,a,s):(c._visibility|=2,bi(e,t,a,s,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Hc(m,t);break;case 24:rn(e,t,a,s),o&2048&&qc(t.alternate,t);break;default:rn(e,t,a,s)}}function bi(e,t,a,s,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,x=a,j=s,D=m.flags;switch(m.tag){case 0:case 11:case 15:bi(c,m,x,j,o),Ss(8,m);break;case 23:break;case 22:var _=m.stateNode;m.memoizedState!==null?_._visibility&2?bi(c,m,x,j,o):js(c,m):(_._visibility|=2,bi(c,m,x,j,o)),o&&D&2048&&Hc(m.alternate,m);break;case 24:bi(c,m,x,j,o),o&&D&2048&&qc(m.alternate,m);break;default:bi(c,m,x,j,o)}t=t.sibling}}function js(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,o=s.flags;switch(s.tag){case 22:js(a,s),o&2048&&Hc(s.alternate,s);break;case 24:js(a,s),o&2048&&qc(s.alternate,s);break;default:js(a,s)}t=t.sibling}}var ws=8192;function Si(e,t,a){if(e.subtreeFlags&ws)for(e=e.child;e!==null;)Qm(e,t,a),e=e.sibling}function Qm(e,t,a){switch(e.tag){case 26:Si(e,t,a),e.flags&ws&&e.memoizedState!==null&&Mx(a,ln,e.memoizedState,e.memoizedProps);break;case 5:Si(e,t,a);break;case 3:case 4:var s=ln;ln=fr(e.stateNode.containerInfo),Si(e,t,a),ln=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=ws,ws=16777216,Si(e,t,a),ws=s):Si(e,t,a));break;default:Si(e,t,a)}}function Km(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function As(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];lt=s,Pm(s,e)}Km(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fm(e),e=e.sibling}function Fm(e){switch(e.tag){case 0:case 11:case 15:As(e),e.flags&2048&&ea(9,e,e.return);break;case 3:As(e);break;case 12:As(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wl(e)):As(e);break;default:As(e)}}function Wl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];lt=s,Pm(s,e)}Km(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ea(8,t,t.return),Wl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Wl(t));break;default:Wl(t)}e=e.sibling}}function Pm(e,t){for(;lt!==null;){var a=lt;switch(a.tag){case 0:case 11:case 15:ea(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:os(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,lt=s;else e:for(a=e;lt!==null;){s=lt;var o=s.sibling,c=s.return;if(Um(s),s===a){lt=null;break e}if(o!==null){o.return=c,lt=o;break e}lt=c}}}var Yv={getCacheForType:function(e){var t=ct(Pe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct(Pe).controller.signal}},Xv=typeof WeakMap=="function"?WeakMap:Map,ke=0,Le=null,we=null,Ne=0,Re=0,Ot=null,ta=!1,Ti=!1,Gc=!1,_n=0,Ze=0,na=0,La=0,Yc=0,_t=0,ji=0,Ns=null,At=null,Xc=!1,Il=0,Jm=0,er=1/0,tr=null,aa=null,tt=0,ia=null,wi=null,Bn=0,Zc=0,Qc=null,$m=null,Cs=0,Kc=null;function Bt(){return(ke&2)!==0&&Ne!==0?Ne&-Ne:z.T!==null?Ic():hd()}function Wm(){if(_t===0)if((Ne&536870912)===0||Ee){var e=cl;cl<<=1,(cl&3932160)===0&&(cl=262144),_t=e}else _t=536870912;return e=Rt.current,e!==null&&(e.flags|=32),_t}function Nt(e,t,a){(e===Le&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Ai(e,0),sa(e,Ne,_t,!1)),Fi(e,a),((ke&2)===0||e!==Le)&&(e===Le&&((ke&2)===0&&(La|=a),Ze===4&&sa(e,Ne,_t,!1)),mn(e))}function Im(e,t,a){if((ke&6)!==0)throw Error(r(327));var s=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ki(e,t),o=s?Kv(e,t):Pc(e,t,!0),c=s;do{if(o===0){Ti&&!s&&sa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!Zv(a)){o=Pc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;o=Ns;var j=x.current.memoizedState.isDehydrated;if(j&&(Ai(x,m).flags|=256),m=Pc(x,m,!1),m!==2){if(Gc&&!j){x.errorRecoveryDisabledLanes|=c,La|=c,o=4;break e}c=At,At=o,c!==null&&(At===null?At=c:At.push.apply(At,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Ai(e,0),sa(e,t,0,!0);break}e:{switch(s=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:sa(s,t,_t,!ta);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Il+300-Mt(),10<o)){if(sa(s,t,_t,!ta),fl(s,0,!0)!==0)break e;Bn=t,s.timeoutHandle=z0(e0.bind(null,s,a,At,tr,Xc,t,_t,La,ji,ta,c,"Throttled",-0,0),o);break e}e0(s,a,At,tr,Xc,t,_t,La,ji,ta,c,null,-0,0)}}break}while(!0);mn(e)}function e0(e,t,a,s,o,c,m,x,j,D,_,G,R,V){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},Qm(t,c,G);var ae=(c&62914560)===c?Il-Mt():(c&4194048)===c?Jm-Mt():0;if(ae=Ex(G,ae),ae!==null){Bn=c,e.cancelPendingCommit=ae(o0.bind(null,e,t,c,a,s,o,m,x,j,_,G,null,R,V)),sa(e,c,m,!D);return}}o0(e,t,c,a,s,o,m,x,j)}function Zv(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var o=a[s],c=o.getSnapshot;o=o.value;try{if(!Dt(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sa(e,t,a,s){t&=~Yc,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var c=31-zt(o),m=1<<c;s[c]=-1,o&=~m}a!==0&&ud(e,a,t)}function nr(){return(ke&6)===0?(Ms(0),!1):!0}function Fc(){if(we!==null){if(Re===0)var e=we.return;else e=we,Nn=Ea=null,uc(e),pi=null,us=0,e=we;for(;e!==null;)Dm(e.alternate,e),e=e.return;we=null}}function Ai(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,fx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Bn=0,Fc(),Le=e,we=a=wn(e.current,null),Ne=t,Re=0,Ot=null,ta=!1,Ti=Ki(e,t),Gc=!1,ji=_t=Yc=La=na=Ze=0,At=Ns=null,Xc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-zt(s),c=1<<o;t|=e[o],s&=~c}return _n=t,jl(),a}function t0(e,t){ve=null,z.H=vs,t===mi||t===Dl?(t=yh(),Re=3):t===Wo?(t=yh(),Re=4):Re=t===Nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,we===null&&(Ze=1,Zl(e,Yt(t,e.current)))}function n0(){var e=Rt.current;return e===null?!0:(Ne&4194048)===Ne?Kt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Kt:!1}function a0(){var e=z.H;return z.H=vs,e===null?vs:e}function i0(){var e=z.A;return z.A=Yv,e}function ar(){Ze=4,ta||(Ne&4194048)!==Ne&&Rt.current!==null||(Ti=!0),(na&134217727)===0&&(La&134217727)===0||Le===null||sa(Le,Ne,_t,!1)}function Pc(e,t,a){var s=ke;ke|=2;var o=a0(),c=i0();(Le!==e||Ne!==t)&&(tr=null,Ai(e,t)),t=!1;var m=Ze;e:do try{if(Re!==0&&we!==null){var x=we,j=Ot;switch(Re){case 8:Fc(),m=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var D=Re;if(Re=0,Ot=null,Ni(e,x,j,D),a&&Ti){m=0;break e}break;default:D=Re,Re=0,Ot=null,Ni(e,x,j,D)}}Qv(),m=Ze;break}catch(_){t0(e,_)}while(!0);return t&&e.shellSuspendCounter++,Nn=Ea=null,ke=s,z.H=o,z.A=c,we===null&&(Le=null,Ne=0,jl()),m}function Qv(){for(;we!==null;)s0(we)}function Kv(e,t){var a=ke;ke|=2;var s=a0(),o=i0();Le!==e||Ne!==t?(tr=null,er=Mt()+500,Ai(e,t)):Ti=Ki(e,t);e:do try{if(Re!==0&&we!==null){t=we;var c=Ot;t:switch(Re){case 1:Re=0,Ot=null,Ni(e,t,c,1);break;case 2:case 9:if(ph(c)){Re=0,Ot=null,l0(t);break}t=function(){Re!==2&&Re!==9||Le!==e||(Re=7),mn(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:ph(c)?(Re=0,Ot=null,l0(t)):(Re=0,Ot=null,Ni(e,t,c,7));break;case 5:var m=null;switch(we.tag){case 26:m=we.memoizedState;case 5:case 27:var x=we;if(m?Z0(m):x.stateNode.complete){Re=0,Ot=null;var j=x.sibling;if(j!==null)we=j;else{var D=x.return;D!==null?(we=D,ir(D)):we=null}break t}}Re=0,Ot=null,Ni(e,t,c,5);break;case 6:Re=0,Ot=null,Ni(e,t,c,6);break;case 8:Fc(),Ze=6;break e;default:throw Error(r(462))}}Fv();break}catch(_){t0(e,_)}while(!0);return Nn=Ea=null,z.H=s,z.A=o,ke=a,we!==null?0:(Le=null,Ne=0,jl(),Ze)}function Fv(){for(;we!==null&&!y2();)s0(we)}function s0(e){var t=Em(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?ir(e):we=t}function l0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=jm(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=jm(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:uc(t);default:Dm(a,t),t=we=ih(t,_n),t=Em(a,t,_n)}e.memoizedProps=e.pendingProps,t===null?ir(e):we=t}function Ni(e,t,a,s){Nn=Ea=null,uc(t),pi=null,us=0;var o=t.return;try{if(_v(e,o,t,a,Ne)){Ze=1,Zl(e,Yt(a,e.current)),we=null;return}}catch(c){if(o!==null)throw we=o,c;Ze=1,Zl(e,Yt(a,e.current)),we=null;return}t.flags&32768?(Ee||s===1?e=!0:Ti||(Ne&536870912)!==0?e=!1:(ta=e=!0,(s===2||s===9||s===3||s===6)&&(s=Rt.current,s!==null&&s.tag===13&&(s.flags|=16384))),r0(t,e)):ir(t)}function ir(e){var t=e;do{if((t.flags&32768)!==0){r0(t,ta);return}e=t.return;var a=Uv(t.alternate,t,_n);if(a!==null){we=a;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Ze===0&&(Ze=5)}function r0(e,t){do{var a=Hv(e.alternate,e);if(a!==null){a.flags&=32767,we=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=a}while(e!==null);Ze=6,we=null}function o0(e,t,a,s,o,c,m,x,j){e.cancelPendingCommit=null;do sr();while(tt!==0);if((ke&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Bo,C2(e,a,c,m,x,j),e===Le&&(we=Le=null,Ne=0),wi=t,ia=e,Bn=a,Zc=c,Qc=o,$m=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wv(rl,function(){return h0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,o=K.p,K.p=2,m=ke,ke|=4;try{qv(e,t,a)}finally{ke=m,K.p=o,z.T=s}}tt=1,c0(),u0(),f0()}}function c0(){if(tt===1){tt=0;var e=ia,t=wi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var s=K.p;K.p=2;var o=ke;ke|=4;try{Ym(t,e);var c=ru,m=Pd(e.containerInfo),x=c.focusedElem,j=c.selectionRange;if(m!==x&&x&&x.ownerDocument&&Fd(x.ownerDocument.documentElement,x)){if(j!==null&&ko(x)){var D=j.start,_=j.end;if(_===void 0&&(_=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(_,x.value.length);else{var G=x.ownerDocument||document,R=G&&G.defaultView||window;if(R.getSelection){var V=R.getSelection(),ae=x.textContent.length,de=Math.min(j.start,ae),Be=j.end===void 0?de:Math.min(j.end,ae);!V.extend&&de>Be&&(m=Be,Be=de,de=m);var C=Kd(x,de),N=Kd(x,Be);if(C&&N&&(V.rangeCount!==1||V.anchorNode!==C.node||V.anchorOffset!==C.offset||V.focusNode!==N.node||V.focusOffset!==N.offset)){var E=G.createRange();E.setStart(C.node,C.offset),V.removeAllRanges(),de>Be?(V.addRange(E),V.extend(N.node,N.offset)):(E.setEnd(N.node,N.offset),V.addRange(E))}}}}for(G=[],V=x;V=V.parentNode;)V.nodeType===1&&G.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<G.length;x++){var U=G[x];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}yr=!!lu,ru=lu=null}finally{ke=o,K.p=s,z.T=a}}e.current=t,tt=2}}function u0(){if(tt===2){tt=0;var e=ia,t=wi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var s=K.p;K.p=2;var o=ke;ke|=4;try{Lm(e,t.alternate,t)}finally{ke=o,K.p=s,z.T=a}}tt=3}}function f0(){if(tt===4||tt===3){tt=0,v2();var e=ia,t=wi,a=Bn,s=$m;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,wi=ia=null,d0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(aa=null),ho(a),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Qi,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=z.T,o=K.p,K.p=2,z.T=null;try{for(var c=e.onRecoverableError,m=0;m<s.length;m++){var x=s[m];c(x.value,{componentStack:x.stack})}}finally{z.T=t,K.p=o}}(Bn&3)!==0&&sr(),mn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Kc?Cs++:(Cs=0,Kc=e):Cs=0,Ms(0)}}function d0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,os(t)))}function sr(){return c0(),u0(),f0(),h0()}function h0(){if(tt!==5)return!1;var e=ia,t=Zc;Zc=0;var a=ho(Bn),s=z.T,o=K.p;try{K.p=32>a?32:a,z.T=null,a=Qc,Qc=null;var c=ia,m=Bn;if(tt=0,wi=ia=null,Bn=0,(ke&6)!==0)throw Error(r(331));var x=ke;if(ke|=4,Fm(c.current),Zm(c,c.current,m,a),ke=x,Ms(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Qi,c)}catch{}return!0}finally{K.p=o,z.T=s,d0(e,t)}}function m0(e,t,a){t=Yt(a,t),t=Ac(e.stateNode,t,2),e=$n(e,t,2),e!==null&&(Fi(e,2),mn(e))}function Ve(e,t,a){if(e.tag===3)m0(e,e,a);else for(;t!==null;){if(t.tag===3){m0(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(aa===null||!aa.has(s))){e=Yt(a,e),a=pm(2),s=$n(t,a,2),s!==null&&(gm(a,s,t,e),Fi(s,2),mn(s));break}}t=t.return}}function Jc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new Xv;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(a)||(Gc=!0,o.add(a),e=Pv.bind(null,e,t,a),t.then(e,e))}function Pv(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(Ne&a)===a&&(Ze===4||Ze===3&&(Ne&62914560)===Ne&&300>Mt()-Il?(ke&2)===0&&Ai(e,0):Yc|=a,ji===Ne&&(ji=0)),mn(e)}function p0(e,t){t===0&&(t=cd()),e=Na(e,t),e!==null&&(Fi(e,t),mn(e))}function Jv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),p0(e,a)}function $v(e,t){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),p0(e,a)}function Wv(e,t){return oo(e,t)}var lr=null,Ci=null,$c=!1,rr=!1,Wc=!1,la=0;function mn(e){e!==Ci&&e.next===null&&(Ci===null?lr=Ci=e:Ci=Ci.next=e),rr=!0,$c||($c=!0,ex())}function Ms(e,t){if(!Wc&&rr){Wc=!0;do for(var a=!1,s=lr;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var c=0;else{var m=s.suspendedLanes,x=s.pingedLanes;c=(1<<31-zt(42|e)+1)-1,c&=o&~(m&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,x0(s,c))}else c=Ne,c=fl(s,s===Le?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Ki(s,c)||(a=!0,x0(s,c));s=s.next}while(a);Wc=!1}}function Iv(){g0()}function g0(){rr=$c=!1;var e=0;la!==0&&ux()&&(e=la);for(var t=Mt(),a=null,s=lr;s!==null;){var o=s.next,c=y0(s,t);c===0?(s.next=null,a===null?lr=o:a.next=o,o===null&&(Ci=a)):(a=s,(e!==0||(c&3)!==0)&&(rr=!0)),s=o}tt!==0&&tt!==5||Ms(e),la!==0&&(la=0)}function y0(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-zt(c),x=1<<m,j=o[m];j===-1?((x&a)===0||(x&s)!==0)&&(o[m]=N2(x,t)):j<=t&&(e.expiredLanes|=x),c&=~x}if(t=Le,a=Ne,a=fl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&co(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ki(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&co(s),ho(a)){case 2:case 8:a=rd;break;case 32:a=rl;break;case 268435456:a=od;break;default:a=rl}return s=v0.bind(null,e),a=oo(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&co(s),e.callbackPriority=2,e.callbackNode=null,2}function v0(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(sr()&&e.callbackNode!==a)return null;var s=Ne;return s=fl(e,e===Le?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Im(e,s,t),y0(e,Mt()),e.callbackNode!=null&&e.callbackNode===a?v0.bind(null,e):null)}function x0(e,t){if(sr())return null;Im(e,t,!0)}function ex(){dx(function(){(ke&6)!==0?oo(ld,Iv):g0()})}function Ic(){if(la===0){var e=di;e===0&&(e=ol,ol<<=1,(ol&261888)===0&&(ol=256)),la=e}return la}function b0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:pl(""+e)}function S0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function tx(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var c=b0((o[bt]||null).action),m=s.submitter;m&&(t=(t=m[bt]||null)?b0(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var x=new xl("action","action",null,s,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(la!==0){var j=m?S0(o,m):new FormData(o);xc(a,{pending:!0,data:j,method:o.method,action:c},null,j)}}else typeof c=="function"&&(x.preventDefault(),j=m?S0(o,m):new FormData(o),xc(a,{pending:!0,data:j,method:o.method,action:c},c,j))},currentTarget:o}]})}}for(var eu=0;eu<_o.length;eu++){var tu=_o[eu],nx=tu.toLowerCase(),ax=tu[0].toUpperCase()+tu.slice(1);sn(nx,"on"+ax)}sn(Wd,"onAnimationEnd"),sn(Id,"onAnimationIteration"),sn(eh,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(xv,"onTransitionRun"),sn(bv,"onTransitionStart"),sn(Sv,"onTransitionCancel"),sn(th,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="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(" "),ix=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Es));function T0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],o=s.event;s=s.listeners;e:{var c=void 0;if(t)for(var m=s.length-1;0<=m;m--){var x=s[m],j=x.instance,D=x.currentTarget;if(x=x.listener,j!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=D;try{c(o)}catch(_){Tl(_)}o.currentTarget=null,c=j}else for(m=0;m<s.length;m++){if(x=s[m],j=x.instance,D=x.currentTarget,x=x.listener,j!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=D;try{c(o)}catch(_){Tl(_)}o.currentTarget=null,c=j}}}}function Ae(e,t){var a=t[mo];a===void 0&&(a=t[mo]=new Set);var s=e+"__bubble";a.has(s)||(j0(t,e,2,!1),a.add(s))}function nu(e,t,a){var s=0;t&&(s|=4),j0(a,e,s,t)}var or="_reactListening"+Math.random().toString(36).slice(2);function au(e){if(!e[or]){e[or]=!0,gd.forEach(function(a){a!=="selectionchange"&&(ix.has(a)||nu(a,!1,e),nu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[or]||(t[or]=!0,nu("selectionchange",!1,t))}}function j0(e,t,a,s){switch(W0(t)){case 2:var o=kx;break;case 8:o=Rx;break;default:o=vu}a=o.bind(null,t,a,e),o=void 0,!jo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function iu(e,t,a,s,o){var c=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var x=s.stateNode.containerInfo;if(x===o)break;if(m===4)for(m=s.return;m!==null;){var j=m.tag;if((j===3||j===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;x!==null;){if(m=Pa(x),m===null)return;if(j=m.tag,j===5||j===6||j===26||j===27){s=c=m;continue e}x=x.parentNode}}s=s.return}Md(function(){var D=c,_=So(a),G=[];e:{var R=nh.get(e);if(R!==void 0){var V=xl,ae=e;switch(e){case"keypress":if(yl(a)===0)break e;case"keydown":case"keyup":V=$2;break;case"focusin":ae="focus",V=Co;break;case"focusout":ae="blur",V=Co;break;case"beforeblur":case"afterblur":V=Co;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Dd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=U2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=ev;break;case Wd:case Id:case eh:V=G2;break;case th:V=nv;break;case"scroll":case"scrollend":V=B2;break;case"wheel":V=iv;break;case"copy":case"cut":case"paste":V=X2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Rd;break;case"toggle":case"beforetoggle":V=lv}var de=(t&4)!==0,Be=!de&&(e==="scroll"||e==="scrollend"),C=de?R!==null?R+"Capture":null:R;de=[];for(var N=D,E;N!==null;){var U=N;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||C===null||(U=$i(N,C),U!=null&&de.push(zs(N,U,E))),Be)break;N=N.return}0<de.length&&(R=new V(R,ae,null,a,_),G.push({event:R,listeners:de}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",R&&a!==bo&&(ae=a.relatedTarget||a.fromElement)&&(Pa(ae)||ae[Fa]))break e;if((V||R)&&(R=_.window===_?_:(R=_.ownerDocument)?R.defaultView||R.parentWindow:window,V?(ae=a.relatedTarget||a.toElement,V=D,ae=ae?Pa(ae):null,ae!==null&&(Be=d(ae),de=ae.tag,ae!==Be||de!==5&&de!==27&&de!==6)&&(ae=null)):(V=null,ae=D),V!==ae)){if(de=Dd,U="onMouseLeave",C="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(de=Rd,U="onPointerLeave",C="onPointerEnter",N="pointer"),Be=V==null?R:Ji(V),E=ae==null?R:Ji(ae),R=new de(U,N+"leave",V,a,_),R.target=Be,R.relatedTarget=E,U=null,Pa(_)===D&&(de=new de(C,N+"enter",ae,a,_),de.target=E,de.relatedTarget=Be,U=de),Be=U,V&&ae)t:{for(de=sx,C=V,N=ae,E=0,U=C;U;U=de(U))E++;U=0;for(var ce=N;ce;ce=de(ce))U++;for(;0<E-U;)C=de(C),E--;for(;0<U-E;)N=de(N),U--;for(;E--;){if(C===N||N!==null&&C===N.alternate){de=C;break t}C=de(C),N=de(N)}de=null}else de=null;V!==null&&w0(G,R,V,de,!1),ae!==null&&Be!==null&&w0(G,Be,ae,de,!0)}}e:{if(R=D?Ji(D):window,V=R.nodeName&&R.nodeName.toLowerCase(),V==="select"||V==="input"&&R.type==="file")var ze=qd;else if(Ud(R))if(Gd)ze=gv;else{ze=mv;var se=hv}else V=R.nodeName,!V||V.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&xo(D.elementType)&&(ze=qd):ze=pv;if(ze&&(ze=ze(e,D))){Hd(G,ze,a,_);break e}se&&se(e,R,D),e==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&vo(R,"number",R.value)}switch(se=D?Ji(D):window,e){case"focusin":(Ud(se)||se.contentEditable==="true")&&(ii=se,Ro=D,ss=null);break;case"focusout":ss=Ro=ii=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,Jd(G,a,_);break;case"selectionchange":if(vv)break;case"keydown":case"keyup":Jd(G,a,_)}var xe;if(Eo)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else ai?Bd(e,a)&&(Ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(Vd&&a.locale!=="ko"&&(ai||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&ai&&(xe=Ed()):(Xn=_,wo="value"in Xn?Xn.value:Xn.textContent,ai=!0)),se=cr(D,Ce),0<se.length&&(Ce=new kd(Ce,e,null,a,_),G.push({event:Ce,listeners:se}),xe?Ce.data=xe:(xe=Ld(a),xe!==null&&(Ce.data=xe)))),(xe=ov?cv(e,a):uv(e,a))&&(Ce=cr(D,"onBeforeInput"),0<Ce.length&&(se=new kd("onBeforeInput","beforeinput",null,a,_),G.push({event:se,listeners:Ce}),se.data=xe)),tx(G,e,D,a,_)}T0(G,t)})}function zs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function cr(e,t){for(var a=t+"Capture",s=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=$i(e,a),o!=null&&s.unshift(zs(e,o,c)),o=$i(e,t),o!=null&&s.push(zs(e,o,c))),e.tag===3)return s;e=e.return}return[]}function sx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function w0(e,t,a,s,o){for(var c=t._reactName,m=[];a!==null&&a!==s;){var x=a,j=x.alternate,D=x.stateNode;if(x=x.tag,j!==null&&j===s)break;x!==5&&x!==26&&x!==27||D===null||(j=D,o?(D=$i(a,c),D!=null&&m.unshift(zs(a,D,j))):o||(D=$i(a,c),D!=null&&m.push(zs(a,D,j)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var lx=/\r\n?/g,rx=/\u0000|\uFFFD/g;function A0(e){return(typeof e=="string"?e:""+e).replace(lx,`
9
- `).replace(rx,"")}function N0(e,t){return t=A0(t),A0(e)===t}function _e(e,t,a,s,o,c){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ei(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ei(e,""+s);break;case"className":hl(e,"class",s);break;case"tabIndex":hl(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":hl(e,a,s);break;case"style":Nd(e,s,c);break;case"data":if(t!=="object"){hl(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=pl(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",o.name,o,null),_e(e,t,"formEncType",o.formEncType,o,null),_e(e,t,"formMethod",o.formMethod,o,null),_e(e,t,"formTarget",o.formTarget,o,null)):(_e(e,t,"encType",o.encType,o,null),_e(e,t,"method",o.method,o,null),_e(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=pl(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=Tn);break;case"onScroll":s!=null&&Ae("scroll",e);break;case"onScrollEnd":s!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=pl(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),dl(e,"popover",s);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":dl(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=O2.get(a)||a,dl(e,a,s))}}function su(e,t,a,s,o,c){switch(a){case"style":Nd(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof s=="string"?ei(e,s):(typeof s=="number"||typeof s=="bigint")&&ei(e,""+s);break;case"onScroll":s!=null&&Ae("scroll",e);break;case"onScrollEnd":s!=null&&Ae("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[bt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,o);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):dl(e,a,s)}}}function ft(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var s=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:_e(e,t,c,m,a,null)}}o&&_e(e,t,"srcSet",a.srcSet,a,null),s&&_e(e,t,"src",a.src,a,null);return;case"input":Ae("invalid",e);var x=c=m=o=null,j=null,D=null;for(s in a)if(a.hasOwnProperty(s)){var _=a[s];if(_!=null)switch(s){case"name":o=_;break;case"type":m=_;break;case"checked":j=_;break;case"defaultChecked":D=_;break;case"value":c=_;break;case"defaultValue":x=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_e(e,t,s,_,a,null)}}Td(e,c,x,j,D,m,o,!1);return;case"select":Ae("invalid",e),s=m=c=null;for(o in a)if(a.hasOwnProperty(o)&&(x=a[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":m=x;break;case"multiple":s=x;default:_e(e,t,o,x,a,null)}t=c,a=m,e.multiple=!!s,t!=null?Ia(e,!!s,t,!1):a!=null&&Ia(e,!!s,a,!0);return;case"textarea":Ae("invalid",e),c=o=s=null;for(m in a)if(a.hasOwnProperty(m)&&(x=a[m],x!=null))switch(m){case"value":s=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:_e(e,t,m,x,a,null)}wd(e,s,o,c);return;case"option":for(j in a)a.hasOwnProperty(j)&&(s=a[j],s!=null)&&(j==="selected"?e.selected=s&&typeof s!="function"&&typeof s!="symbol":_e(e,t,j,s,a,null));return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(s=0;s<Es.length;s++)Ae(Es[s],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(s=a[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:_e(e,t,D,s,a,null)}return;default:if(xo(t)){for(_ in a)a.hasOwnProperty(_)&&(s=a[_],s!==void 0&&su(e,t,_,s,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null&&_e(e,t,x,s,a,null))}function ox(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,x=null,j=null,D=null,_=null;for(V in a){var G=a[V];if(a.hasOwnProperty(V)&&G!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":j=G;default:s.hasOwnProperty(V)||_e(e,t,V,null,s,G)}}for(var R in s){var V=s[R];if(G=a[R],s.hasOwnProperty(R)&&(V!=null||G!=null))switch(R){case"type":c=V;break;case"name":o=V;break;case"checked":D=V;break;case"defaultChecked":_=V;break;case"value":m=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:V!==G&&_e(e,t,R,V,s,G)}}yo(e,m,x,j,D,_,c,o);return;case"select":V=m=x=R=null;for(c in a)if(j=a[c],a.hasOwnProperty(c)&&j!=null)switch(c){case"value":break;case"multiple":V=j;default:s.hasOwnProperty(c)||_e(e,t,c,null,s,j)}for(o in s)if(c=s[o],j=a[o],s.hasOwnProperty(o)&&(c!=null||j!=null))switch(o){case"value":R=c;break;case"defaultValue":x=c;break;case"multiple":m=c;default:c!==j&&_e(e,t,o,c,s,j)}t=x,a=m,s=V,R!=null?Ia(e,!!a,R,!1):!!s!=!!a&&(t!=null?Ia(e,!!a,t,!0):Ia(e,!!a,a?[]:"",!1));return;case"textarea":V=R=null;for(x in a)if(o=a[x],a.hasOwnProperty(x)&&o!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:_e(e,t,x,null,s,o)}for(m in s)if(o=s[m],c=a[m],s.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":R=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&_e(e,t,m,o,s,c)}jd(e,R,V);return;case"option":for(var ae in a)R=a[ae],a.hasOwnProperty(ae)&&R!=null&&!s.hasOwnProperty(ae)&&(ae==="selected"?e.selected=!1:_e(e,t,ae,null,s,R));for(j in s)R=s[j],V=a[j],s.hasOwnProperty(j)&&R!==V&&(R!=null||V!=null)&&(j==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":_e(e,t,j,R,s,V));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in a)R=a[de],a.hasOwnProperty(de)&&R!=null&&!s.hasOwnProperty(de)&&_e(e,t,de,null,s,R);for(D in s)if(R=s[D],V=a[D],s.hasOwnProperty(D)&&R!==V&&(R!=null||V!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:_e(e,t,D,R,s,V)}return;default:if(xo(t)){for(var Be in a)R=a[Be],a.hasOwnProperty(Be)&&R!==void 0&&!s.hasOwnProperty(Be)&&su(e,t,Be,void 0,s,R);for(_ in s)R=s[_],V=a[_],!s.hasOwnProperty(_)||R===V||R===void 0&&V===void 0||su(e,t,_,R,s,V);return}}for(var C in a)R=a[C],a.hasOwnProperty(C)&&R!=null&&!s.hasOwnProperty(C)&&_e(e,t,C,null,s,R);for(G in s)R=s[G],V=a[G],!s.hasOwnProperty(G)||R===V||R==null&&V==null||_e(e,t,G,R,s,V)}function C0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var o=a[s],c=o.transferSize,m=o.initiatorType,x=o.duration;if(c&&x&&C0(m)){for(m=0,x=o.responseEnd,s+=1;s<a.length;s++){var j=a[s],D=j.startTime;if(D>x)break;var _=j.transferSize,G=j.initiatorType;_&&C0(G)&&(j=j.responseEnd,m+=_*(j<x?1:(x-D)/(j-D)))}if(--s,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var lu=null,ru=null;function ur(e){return e.nodeType===9?e:e.ownerDocument}function M0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function E0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ou(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cu=null;function ux(){var e=window.event;return e&&e.type==="popstate"?e===cu?!1:(cu=e,!0):(cu=null,!1)}var z0=typeof setTimeout=="function"?setTimeout:void 0,fx=typeof clearTimeout=="function"?clearTimeout:void 0,D0=typeof Promise=="function"?Promise:void 0,dx=typeof queueMicrotask=="function"?queueMicrotask:typeof D0<"u"?function(e){return D0.resolve(null).then(e).catch(hx)}:z0;function hx(e){setTimeout(function(){throw e})}function ra(e){return e==="head"}function k0(e,t){var a=t,s=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(o),Di(t);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Ds(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ds(a);for(var c=a.firstChild;c;){var m=c.nextSibling,x=c.nodeName;c[Pi]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Ds(e.ownerDocument.body);a=o}while(a);Di(t)}function R0(e,t){var a=e;e=0;do{var s=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function uu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":uu(a),po(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function mx(e,t,a,s){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Pi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function px(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ft(e.nextSibling),e===null))return null;return e}function V0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function fu(e){return e.data==="$?"||e.data==="$~"}function du(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Ft(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var hu=null;function O0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ft(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function _0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function B0(e,t,a){switch(t=ur(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ds(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);po(e)}var Pt=new Map,L0=new Set;function fr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=K.d;K.d={f:yx,r:vx,D:xx,C:bx,L:Sx,m:Tx,X:wx,S:jx,M:Ax};function yx(){var e=Ln.f(),t=nr();return e||t}function vx(e){var t=Ja(e);t!==null&&t.tag===5&&t.type==="form"?tm(t):Ln.r(e)}var Mi=typeof document>"u"?null:document;function U0(e,t,a){var s=Mi;if(s&&typeof t=="string"&&t){var o=qt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),L0.has(o)||(L0.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ft(t,"link",e),st(t),s.head.appendChild(t)))}}function xx(e){Ln.D(e),U0("dns-prefetch",e,null)}function bx(e,t){Ln.C(e,t),U0("preconnect",e,t)}function Sx(e,t,a){Ln.L(e,t,a);var s=Mi;if(s&&e&&t){var o='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+qt(a.imageSizes)+'"]')):o+='[href="'+qt(e)+'"]';var c=o;switch(t){case"style":c=Ei(e);break;case"script":c=zi(e)}Pt.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Pt.set(c,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(ks(c))||t==="script"&&s.querySelector(Rs(c))||(t=s.createElement("link"),ft(t,"link",e),st(t),s.head.appendChild(t)))}}function Tx(e,t){Ln.m(e,t);var a=Mi;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+qt(s)+'"][href="'+qt(e)+'"]',c=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=zi(e)}if(!Pt.has(c)&&(e=b({rel:"modulepreload",href:e},t),Pt.set(c,e),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Rs(c)))return}s=a.createElement("link"),ft(s,"link",e),st(s),a.head.appendChild(s)}}}function jx(e,t,a){Ln.S(e,t,a);var s=Mi;if(s&&e){var o=$a(s).hoistableStyles,c=Ei(e);t=t||"default";var m=o.get(c);if(!m){var x={loading:0,preload:null};if(m=s.querySelector(ks(c)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Pt.get(c))&&mu(e,a);var j=m=s.createElement("link");st(j),ft(j,"link",e),j._p=new Promise(function(D,_){j.onload=D,j.onerror=_}),j.addEventListener("load",function(){x.loading|=1}),j.addEventListener("error",function(){x.loading|=2}),x.loading|=4,dr(m,t,s)}m={type:"stylesheet",instance:m,count:1,state:x},o.set(c,m)}}}function wx(e,t){Ln.X(e,t);var a=Mi;if(a&&e){var s=$a(a).hoistableScripts,o=zi(e),c=s.get(o);c||(c=a.querySelector(Rs(o)),c||(e=b({src:e,async:!0},t),(t=Pt.get(o))&&pu(e,t),c=a.createElement("script"),st(c),ft(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function Ax(e,t){Ln.M(e,t);var a=Mi;if(a&&e){var s=$a(a).hoistableScripts,o=zi(e),c=s.get(o);c||(c=a.querySelector(Rs(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Pt.get(o))&&pu(e,t),c=a.createElement("script"),st(c),ft(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function H0(e,t,a,s){var o=(o=ue.current)?fr(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ei(a.href),a=$a(o).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ei(a.href);var c=$a(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(ks(e)))&&!c._p&&(m.instance=c,m.state.loading=5),Pt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Pt.set(e,a),c||Nx(o,e,a,m.state))),t&&s===null)throw Error(r(528,""));return m}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=zi(a),a=$a(o).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ei(e){return'href="'+qt(e)+'"'}function ks(e){return'link[rel="stylesheet"]['+e+"]"}function q0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Nx(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),ft(t,"link",a),st(t),e.head.appendChild(t))}function zi(e){return'[src="'+qt(e)+'"]'}function Rs(e){return"script[async]"+e}function G0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+qt(a.href)+'"]');if(s)return t.instance=s,st(s),s;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),st(s),ft(s,"style",o),dr(s,a.precedence,e),t.instance=s;case"stylesheet":o=Ei(a.href);var c=e.querySelector(ks(o));if(c)return t.state.loading|=4,t.instance=c,st(c),c;s=q0(a),(o=Pt.get(o))&&mu(s,o),c=(e.ownerDocument||e).createElement("link"),st(c);var m=c;return m._p=new Promise(function(x,j){m.onload=x,m.onerror=j}),ft(c,"link",s),t.state.loading|=4,dr(c,a.precedence,e),t.instance=c;case"script":return c=zi(a.src),(o=e.querySelector(Rs(c)))?(t.instance=o,st(o),o):(s=a,(o=Pt.get(c))&&(s=b({},a),pu(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),st(o),ft(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,dr(s,a.precedence,e));return t.instance}function dr(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,c=o,m=0;m<s.length;m++){var x=s[m];if(x.dataset.precedence===t)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hr=null;function Y0(e,t,a){if(hr===null){var s=new Map,o=hr=new Map;o.set(a,s)}else o=hr,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[Pi]||c[rt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var x=s.get(m);x?x.push(c):s.set(m,[c])}}return s}function X0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Cx(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Z0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mx(e,t,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Ei(s.href),c=t.querySelector(ks(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=mr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,st(c);return}c=t.ownerDocument||t,s=q0(s),(o=Pt.get(o))&&mu(s,o),c=c.createElement("link"),st(c);var m=c;m._p=new Promise(function(x,j){m.onload=x,m.onerror=j}),ft(c,"link",s),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=mr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var gu=0;function Ex(e,t){return e.stylesheets&&e.count===0&&gr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&gr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&gu===0&&(gu=62500*cx());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>gu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function mr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pr=null;function gr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pr=new Map,t.forEach(zx,e),pr=null,mr.call(e))}function zx(e,t){if(!(t.state.loading&4)){var a=pr.get(e);if(a)var s=a.get(null);else{a=new Map,pr.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}o=t.instance,m=o.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,o),a.set(m,o),this.count++,s=mr.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Vs={$$typeof:Y,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Dx(e,t,a,s,o,c,m,x,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=uo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.hiddenUpdates=uo(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Q0(e,t,a,s,o,c,m,x,j,D,_,G){return e=new Dx(e,t,a,m,j,D,_,G,x),t=1,c===!0&&(t|=24),c=kt(3,null,null,t),e.current=c,c.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:t},Io(c),e}function K0(e){return e?(e=ri,e):ri}function F0(e,t,a,s,o,c){o=K0(o),s.context===null?s.context=o:s.pendingContext=o,s=Jn(t),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=$n(e,s,t),a!==null&&(Nt(a,e,t),ds(a,e,t))}function P0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yu(e,t){P0(e,t),(e=e.alternate)&&P0(e,t)}function J0(e){if(e.tag===13||e.tag===31){var t=Na(e,67108864);t!==null&&Nt(t,e,67108864),yu(e,67108864)}}function $0(e){if(e.tag===13||e.tag===31){var t=Bt();t=fo(t);var a=Na(e,t);a!==null&&Nt(a,e,t),yu(e,t)}}var yr=!0;function kx(e,t,a,s){var o=z.T;z.T=null;var c=K.p;try{K.p=2,vu(e,t,a,s)}finally{K.p=c,z.T=o}}function Rx(e,t,a,s){var o=z.T;z.T=null;var c=K.p;try{K.p=8,vu(e,t,a,s)}finally{K.p=c,z.T=o}}function vu(e,t,a,s){if(yr){var o=xu(s);if(o===null)iu(e,t,s,vr,a),I0(e,s);else if(Ox(o,e,t,a,s))s.stopPropagation();else if(I0(e,s),t&4&&-1<Vx.indexOf(e)){for(;o!==null;){var c=Ja(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Sa(c.pendingLanes);if(m!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var j=1<<31-zt(m);x.entanglements[1]|=j,m&=~j}mn(c),(ke&6)===0&&(er=Mt()+500,Ms(0))}}break;case 31:case 13:x=Na(c,2),x!==null&&Nt(x,c,2),nr(),yu(c,2)}if(c=xu(s),c===null&&iu(e,t,s,vr,a),c===o)break;o=c}o!==null&&s.stopPropagation()}else iu(e,t,s,null,a)}}function xu(e){return e=So(e),bu(e)}var vr=null;function bu(e){if(vr=null,e=Pa(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vr=e,null}function W0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(x2()){case ld:return 2;case rd:return 8;case rl:case b2:return 32;case od:return 268435456;default:return 32}default:return 32}}var Su=!1,oa=null,ca=null,ua=null,Os=new Map,_s=new Map,fa=[],Vx="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 I0(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":Os.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function Bs(e,t,a,s,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Ja(t),t!==null&&J0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ox(e,t,a,s,o){switch(t){case"focusin":return oa=Bs(oa,e,t,a,s,o),!0;case"dragenter":return ca=Bs(ca,e,t,a,s,o),!0;case"mouseover":return ua=Bs(ua,e,t,a,s,o),!0;case"pointerover":var c=o.pointerId;return Os.set(c,Bs(Os.get(c)||null,e,t,a,s,o)),!0;case"gotpointercapture":return c=o.pointerId,_s.set(c,Bs(_s.get(c)||null,e,t,a,s,o)),!0}return!1}function ep(e){var t=Pa(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,md(e.priority,function(){$0(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,md(e.priority,function(){$0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=xu(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);bo=s,a.target.dispatchEvent(s),bo=null}else return t=Ja(a),t!==null&&J0(t),e.blockedOn=a,!1;t.shift()}return!0}function tp(e,t,a){xr(e)&&a.delete(t)}function _x(){Su=!1,oa!==null&&xr(oa)&&(oa=null),ca!==null&&xr(ca)&&(ca=null),ua!==null&&xr(ua)&&(ua=null),Os.forEach(tp),_s.forEach(tp)}function br(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_x)))}var Sr=null;function np(e){Sr!==e&&(Sr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Sr===e&&(Sr=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(bu(s||a)===null)continue;break}var c=Ja(a);c!==null&&(e.splice(t,3),t-=3,xc(c,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Di(e){function t(j){return br(j,e)}oa!==null&&br(oa,e),ca!==null&&br(ca,e),ua!==null&&br(ua,e),Os.forEach(t),_s.forEach(t);for(var a=0;a<fa.length;a++){var s=fa[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<fa.length&&(a=fa[0],a.blockedOn===null);)ep(a),a.blockedOn===null&&fa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],c=a[s+1],m=o[bt]||null;if(typeof c=="function")m||np(a);else if(m){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[bt]||null)x=m.formAction;else if(bu(o)!==null)continue}else x=m.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),np(a)}}}function ap(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Tu(e){this._internalRoot=e}Tr.prototype.render=Tu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,s=Bt();F0(a,s,e,t,null,null)},Tr.prototype.unmount=Tu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;F0(e.current,2,null,e,null,null),nr(),t[Fa]=null}};function Tr(e){this._internalRoot=e}Tr.prototype.unstable_scheduleHydration=function(e){if(e){var t=hd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<fa.length&&t!==0&&t<fa[a].priority;a++);fa.splice(a,0,e),a===0&&ep(e)}};var ip=i.version;if(ip!=="19.2.6")throw Error(r(527,ip,"19.2.6"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Bx={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jr.isDisabled&&jr.supportsFiber)try{Qi=jr.inject(Bx),Et=jr}catch{}}return Us.createRoot=function(e,t){if(!u(e))throw Error(r(299));var a=!1,s="",o=fm,c=dm,m=hm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Q0(e,1,!1,null,null,a,s,null,o,c,m,ap),e[Fa]=t.current,au(e),new Tu(t)},Us.hydrateRoot=function(e,t,a){if(!u(e))throw Error(r(299));var s=!1,o="",c=fm,m=dm,x=hm,j=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=Q0(e,1,!0,t,a??null,s,o,j,c,m,x,ap),t.context=K0(null),a=t.current,s=Bt(),s=fo(s),o=Jn(s),o.callback=null,$n(a,o,s),a=s,t.current.lanes=a,Fi(t,a),mn(t),e[Fa]=t.current,au(e),new Tr(t)},Us.version="19.2.6",Us}var mp;function Qx(){if(mp)return Au.exports;mp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Au.exports=Zx(),Au.exports}var P1=Qx();const J1=(...n)=>n.filter((i,l,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===l).join(" ").trim();const Kx=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Fx=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,r)=>r?r.toUpperCase():l.toLowerCase());const pp=n=>{const i=Fx(n);return i.charAt(0).toUpperCase()+i.slice(1)};var Eu={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 Px=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Jx=k.createContext({}),$x=()=>k.useContext(Jx),Wx=k.forwardRef(({color:n,size:i,strokeWidth:l,absoluteStrokeWidth:r,className:u="",children:d,iconNode:h,...g},y)=>{const{size:p=24,strokeWidth:v=2,absoluteStrokeWidth:b=!1,color:S="currentColor",className:T=""}=$x()??{},w=r??b?Number(l??v)*24/Number(i??p):l??v;return k.createElement("svg",{ref:y,...Eu,width:i??p??Eu.width,height:i??p??Eu.height,stroke:n??S,strokeWidth:w,className:J1("lucide",T,u),...!d&&!Px(g)&&{"aria-hidden":"true"},...g},[...h.map(([M,O])=>k.createElement(M,O)),...Array.isArray(d)?d:[d]])});const pe=(n,i)=>{const l=k.forwardRef(({className:r,...u},d)=>k.createElement(Wx,{ref:d,iconNode:i,className:J1(`lucide-${Kx(pp(n))}`,`lucide-${n}`,r),...u}));return l.displayName=pp(n),l};const Ix=[["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"}]],kr=pe("activity",Ix);const eb=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],tb=pe("arrow-down",eb);const nb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ab=pe("arrow-up",nb);const ib=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Wu=pe("bot",ib);const sb=[["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"}]],gp=pe("box",sb);const lb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$1=pe("check",lb);const rb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gi=pe("chevron-down",rb);const ob=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],W1=pe("chevron-right",ob);const cb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],I1=pe("copy",cb);const ub=[["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"}]],fb=pe("cpu",ub);const db=[["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"}]],hb=pe("database",db);const mb=[["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"}]],pb=pe("earth",mb);const gb=[["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"}]],eg=pe("external-link",gb);const yb=[["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"}]],vb=pe("file-code-corner",yb);const xb=[["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"}]],bb=pe("file-text",xb);const Sb=[["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"}]],Tb=pe("file",Sb);const jb=[["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"}]],wb=pe("flask-conical",jb);const Ab=[["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"}]],Nb=pe("folder-plus",Ab);const Cb=[["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"}]],Cf=pe("folder",Cb);const Mb=[["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"}]],qr=pe("git-branch",Mb);const Eb=[["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"}]],zb=pe("git-pull-request-create",Eb);const Db=[["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"}]],kb=pe("image",Db);const Rb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tg=pe("loader-circle",Rb);const Vb=[["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"}]],Ob=pe("lock-keyhole",Vb);const _b=[["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"}]],Bb=pe("memory-stick",_b);const Lb=[["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"}]],Ub=pe("network",Lb);const Hb=[["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"}]],qb=pe("palette",Hb);const Gb=[["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"}]],Yb=pe("panel-left-close",Gb);const Xb=[["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"}]],Zb=pe("panel-left-open",Xb);const Qb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Kb=pe("panel-left",Qb);const Fb=[["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"}]],Pb=pe("pencil",Fb);const Jb=[["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"}]],ng=pe("play",Jb);const $b=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Gr=pe("plus",$b);const Wb=[["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"}]],yp=pe("radio",Wb);const Ib=[["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"}]],ag=pe("refresh-cw",Ib);const e3=[["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"}]],t3=pe("rotate-ccw",e3);const n3=[["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"}]],a3=pe("save",n3);const i3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],s3=pe("search",i3);const l3=[["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"}]],r3=pe("server",l3);const o3=[["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"}]],c3=pe("settings-2",o3);const u3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ig=pe("square",u3);const f3=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],sg=pe("terminal",f3);const d3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],eo=pe("x",d3);const h3=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],m3=pe("zap",h3),p3="/assets/nomoreide-logo-B2E14b65.png";async function g3(){return nl("/api/dashboard")}async function y3(n){const i=await fetch(`/api/git/diff?file=${encodeURIComponent(n)}`);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 v3(n){return nl(`/api/fs/directories?path=${encodeURIComponent(n)}`)}async function Iu(n){return(await nl(`/api/services/${encodeURIComponent(n)}/logs`)).logs}async function Wt(n,i){const l=new URLSearchParams;for(const[r,u]of Object.entries(i))u!==void 0&&String(u).trim()&&l.set(r,String(u));await nl(n,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function x3(n){return b3("/api/services/test",n)}async function b3(n,i){const l=new URLSearchParams;for(const[r,u]of Object.entries(i))u!==void 0&&String(u).trim()&&l.set(r,String(u));return nl(n,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}class lg extends Error{conflict;constructor(i,l){super(i),this.name="PortConflictResponseError",this.conflict=l}}async function nl(n,i){const l=await fetch(n,i),r=await l.json().catch(()=>{});if(!l.ok)throw l.status===409&&r?.conflict?.code==="PORT_IN_USE"?new lg(r?.error||"Port already in use",r.conflict):new Error(r?.error||l.statusText);return r}function rg(n){var i,l,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(l=rg(n[i]))&&(r&&(r+=" "),r+=l)}else for(l in n)n[l]&&(r&&(r+=" "),r+=l);return r}function Ps(){for(var n,i,l=0,r="",u=arguments.length;l<u;l++)(n=arguments[l])&&(i=rg(n))&&(r&&(r+=" "),r+=i);return r}const vp=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,xp=Ps,og=(n,i)=>l=>{var r;if(i?.variants==null)return xp(n,l?.class,l?.className);const{variants:u,defaultVariants:d}=i,h=Object.keys(u).map(p=>{const v=l?.[p],b=d?.[p];if(v===null)return null;const S=vp(v)||vp(b);return u[p][S]}),g=l&&Object.entries(l).reduce((p,v)=>{let[b,S]=v;return S===void 0||(p[b]=S),p},{}),y=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:b,className:S,...T}=v;return Object.entries(T).every(w=>{let[M,O]=w;return Array.isArray(O)?O.includes({...d,...g}[M]):{...d,...g}[M]===O})?[...p,b,S]:p},[]);return xp(n,h,y,l?.class,l?.className)},S3=(n,i)=>{const l=new Array(n.length+i.length);for(let r=0;r<n.length;r++)l[r]=n[r];for(let r=0;r<i.length;r++)l[n.length+r]=i[r];return l},T3=(n,i)=>({classGroupId:n,validator:i}),cg=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),Yr="-",bp=[],j3="arbitrary..",w3=n=>{const i=N3(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return A3(h);const g=h.split(Yr),y=g[0]===""&&g.length>1?1:0;return ug(g,y,i)},getConflictingClassGroupIds:(h,g)=>{if(g){const y=r[h],p=l[h];return y?p?S3(p,y):y:p||bp}return l[h]||bp}}},ug=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const u=n[i],d=l.nextPart.get(u);if(d){const p=ug(n,i+1,d);if(p)return p}const h=l.validators;if(h===null)return;const g=i===0?n.join(Yr):n.slice(i).join(Yr),y=h.length;for(let p=0;p<y;p++){const v=h[p];if(v.validator(g))return v.classGroupId}},A3=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),l=i.indexOf(":"),r=i.slice(0,l);return r?j3+r:void 0})(),N3=n=>{const{theme:i,classGroups:l}=n;return C3(l,i)},C3=(n,i)=>{const l=cg();for(const r in n){const u=n[r];Mf(u,l,r,i)}return l},Mf=(n,i,l,r)=>{const u=n.length;for(let d=0;d<u;d++){const h=n[d];M3(h,i,l,r)}},M3=(n,i,l,r)=>{if(typeof n=="string"){E3(n,i,l);return}if(typeof n=="function"){z3(n,i,l,r);return}D3(n,i,l,r)},E3=(n,i,l)=>{const r=n===""?i:fg(i,n);r.classGroupId=l},z3=(n,i,l,r)=>{if(k3(n)){Mf(n(r),i,l,r);return}i.validators===null&&(i.validators=[]),i.validators.push(T3(l,n))},D3=(n,i,l,r)=>{const u=Object.entries(n),d=u.length;for(let h=0;h<d;h++){const[g,y]=u[h];Mf(y,fg(i,g),l,r)}},fg=(n,i)=>{let l=n;const r=i.split(Yr),u=r.length;for(let d=0;d<u;d++){const h=r[d];let g=l.nextPart.get(h);g||(g=cg(),l.nextPart.set(h,g)),l=g}return l},k3=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,R3=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),r=Object.create(null);const u=(d,h)=>{l[d]=h,i++,i>n&&(i=0,r=l,l=Object.create(null))};return{get(d){let h=l[d];if(h!==void 0)return h;if((h=r[d])!==void 0)return u(d,h),h},set(d,h){d in l?l[d]=h:u(d,h)}}},ef="!",Sp=":",V3=[],Tp=(n,i,l,r,u)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:r,isExternal:u}),O3=n=>{const{prefix:i,experimentalParseClassName:l}=n;let r=u=>{const d=[];let h=0,g=0,y=0,p;const v=u.length;for(let M=0;M<v;M++){const O=u[M];if(h===0&&g===0){if(O===Sp){d.push(u.slice(y,M)),y=M+1;continue}if(O==="/"){p=M;continue}}O==="["?h++:O==="]"?h--:O==="("?g++:O===")"&&g--}const b=d.length===0?u:u.slice(y);let S=b,T=!1;b.endsWith(ef)?(S=b.slice(0,-1),T=!0):b.startsWith(ef)&&(S=b.slice(1),T=!0);const w=p&&p>y?p-y:void 0;return Tp(d,T,S,w)};if(i){const u=i+Sp,d=r;r=h=>h.startsWith(u)?d(h.slice(u.length)):Tp(V3,!1,h,void 0,!0)}if(l){const u=r;r=d=>l({className:d,parseClassName:u})}return r},_3=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((l,r)=>{i.set(l,1e6+r)}),l=>{const r=[];let u=[];for(let d=0;d<l.length;d++){const h=l[d],g=h[0]==="[",y=i.has(h);g||y?(u.length>0&&(u.sort(),r.push(...u),u=[]),r.push(h)):u.push(h)}return u.length>0&&(u.sort(),r.push(...u)),r}},B3=n=>({cache:R3(n.cacheSize),parseClassName:O3(n),sortModifiers:_3(n),postfixLookupClassGroupIds:L3(n),...w3(n)}),L3=n=>{const i=Object.create(null),l=n.postfixLookupClassGroups;if(l)for(let r=0;r<l.length;r++)i[l[r]]=!0;return i},U3=/\s+/,H3=(n,i)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:d,postfixLookupClassGroupIds:h}=i,g=[],y=n.trim().split(U3);let p="";for(let v=y.length-1;v>=0;v-=1){const b=y[v],{isExternal:S,modifiers:T,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:O}=l(b);if(S){p=b+(p.length>0?" "+p:p);continue}let L=!!O,q;if(L){const J=M.substring(0,O);q=r(J);const B=q&&h[q]?r(M):void 0;B&&B!==q&&(q=B,L=!1)}else q=r(M);if(!q){if(!L){p=b+(p.length>0?" "+p:p);continue}if(q=r(M),!q){p=b+(p.length>0?" "+p:p);continue}L=!1}const Y=T.length===0?"":T.length===1?T[0]:d(T).join(":"),X=w?Y+ef:Y,Z=X+q;if(g.indexOf(Z)>-1)continue;g.push(Z);const $=u(q,L);for(let J=0;J<$.length;++J){const B=$[J];g.push(X+B)}p=b+(p.length>0?" "+p:p)}return p},q3=(...n)=>{let i=0,l,r,u="";for(;i<n.length;)(l=n[i++])&&(r=dg(l))&&(u&&(u+=" "),u+=r);return u},dg=n=>{if(typeof n=="string")return n;let i,l="";for(let r=0;r<n.length;r++)n[r]&&(i=dg(n[r]))&&(l&&(l+=" "),l+=i);return l},G3=(n,...i)=>{let l,r,u,d;const h=y=>{const p=i.reduce((v,b)=>b(v),n());return l=B3(p),r=l.cache.get,u=l.cache.set,d=g,g(y)},g=y=>{const p=r(y);if(p)return p;const v=H3(y,l);return u(y,v),v};return d=h,(...y)=>d(q3(...y))},Y3=[],nt=n=>{const i=l=>l[n]||Y3;return i.isThemeGetter=!0,i},hg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,X3=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Z3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Q3=/\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$/,K3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,F3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ha=n=>X3.test(n),Te=n=>!!n&&!Number.isNaN(Number(n)),pn=n=>!!n&&Number.isInteger(Number(n)),zu=n=>n.endsWith("%")&&Te(n.slice(0,-1)),Un=n=>Z3.test(n),pg=()=>!0,J3=n=>Q3.test(n)&&!K3.test(n),Ef=()=>!1,$3=n=>F3.test(n),W3=n=>P3.test(n),I3=n=>!ee(n)&&!ne(n),e5=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),t5=n=>va(n,vg,Ef),ee=n=>hg.test(n),Ua=n=>va(n,xg,J3),jp=n=>va(n,c5,Te),n5=n=>va(n,Sg,pg),a5=n=>va(n,bg,Ef),wp=n=>va(n,gg,Ef),i5=n=>va(n,yg,W3),wr=n=>va(n,Tg,$3),ne=n=>mg.test(n),Hs=n=>Qa(n,xg),s5=n=>Qa(n,bg),Ap=n=>Qa(n,gg),l5=n=>Qa(n,vg),r5=n=>Qa(n,yg),Ar=n=>Qa(n,Tg,!0),o5=n=>Qa(n,Sg,!0),va=(n,i,l)=>{const r=hg.exec(n);return r?r[1]?i(r[1]):l(r[2]):!1},Qa=(n,i,l=!1)=>{const r=mg.exec(n);return r?r[1]?i(r[1]):l:!1},gg=n=>n==="position"||n==="percentage",yg=n=>n==="image"||n==="url",vg=n=>n==="length"||n==="size"||n==="bg-size",xg=n=>n==="length",c5=n=>n==="number",bg=n=>n==="family-name",Sg=n=>n==="number"||n==="weight",Tg=n=>n==="shadow",u5=()=>{const n=nt("color"),i=nt("font"),l=nt("text"),r=nt("font-weight"),u=nt("tracking"),d=nt("leading"),h=nt("breakpoint"),g=nt("container"),y=nt("spacing"),p=nt("radius"),v=nt("shadow"),b=nt("inset-shadow"),S=nt("text-shadow"),T=nt("drop-shadow"),w=nt("blur"),M=nt("perspective"),O=nt("aspect"),L=nt("ease"),q=nt("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"],Z=()=>[...X(),ne,ee],$=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],B=()=>[ne,ee,y],fe=()=>[ha,"full","auto",...B()],le=()=>[pn,"none","subgrid",ne,ee],F=()=>["auto",{span:["full",pn,ne,ee]},pn,ne,ee],oe=()=>[pn,"auto",ne,ee],je=()=>["auto","min","max","fr",ne,ee],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ye=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...B()],K=()=>[ha,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],W=()=>[ha,"screen","full","dvw","lvw","svw","min","max","fit",...B()],P=()=>[ha,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],Q=()=>[n,ne,ee],A=()=>[...X(),Ap,wp,{position:[ne,ee]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",l5,t5,{size:[ne,ee]}],te=()=>[zu,Hs,Ua],re=()=>["","none","full",p,ne,ee],ue=()=>["",Te,Hs,Ua],Me=()=>["solid","dashed","dotted","double"],it=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Te,zu,Ap,wp],Hn=()=>["","none",w,ne,ee],bn=()=>["none",Te,ne,ee],qn=()=>["none",Te,ne,ee],Ka=()=>[Te,ne,ee],Ut=()=>[ha,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Un],breakpoint:[Un],color:[pg],container:[Un],"drop-shadow":[Un],ease:["in","out","in-out"],font:[I3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Un],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Un],shadow:[Un],spacing:["px",Te],text:[Un],"text-shadow":[Un],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ha,ee,ne,O]}],container:["container"],"container-type":[{"@container":["","normal","size",ne,ee]}],"container-named":[e5],columns:[{columns:[Te,ee,ne,g]}],"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:Z()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:fe()}],"inset-x":[{"inset-x":fe()}],"inset-y":[{"inset-y":fe()}],start:[{"inset-s":fe(),start:fe()}],end:[{"inset-e":fe(),end:fe()}],"inset-bs":[{"inset-bs":fe()}],"inset-be":[{"inset-be":fe()}],top:[{top:fe()}],right:[{right:fe()}],bottom:[{bottom:fe()}],left:[{left:fe()}],visibility:["visible","invisible","collapse"],z:[{z:[pn,"auto",ne,ee]}],basis:[{basis:[ha,"full","auto",g,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,ha,"auto","initial","none",ee]}],grow:[{grow:["",Te,ne,ee]}],shrink:[{shrink:["",Te,ne,ee]}],order:[{order:[pn,"first","last","none",ne,ee]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":je()}],"auto-rows":[{"auto-rows":je()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...ye(),"normal"]}],"justify-self":[{"justify-self":["auto",...ye()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...ye(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ye(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...ye(),"baseline"]}],"place-self":[{"place-self":["auto",...ye()]}],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:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[g,"screen",...K()]}],"min-w":[{"min-w":[g,"screen","none",...K()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[h]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",l,Hs,Ua]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,o5,n5]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zu,ee]}],"font-family":[{font:[s5,a5,i]}],"font-features":[{"font-features":[ee]}],"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:[u,ne,ee]}],"line-clamp":[{"line-clamp":[Te,"none",ne,jp]}],leading:[{leading:[d,...B()]}],"list-image":[{"list-image":["none",ne,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,ee]}],"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:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ne,Ua]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[Te,"auto",ne,ee]}],"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:[pn,ne,ee]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,ee]}],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",ne,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pn,ne,ee],radial:["",ne,ee],conic:[pn,ne,ee]},r5,i5]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"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:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ne,ee]}],"outline-w":[{outline:["",Te,Hs,Ua]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",v,Ar,wr]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",b,Ar,wr]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[Te,Ua]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",S,Ar,wr]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[Te,ne,ee]}],"mix-blend":[{"mix-blend":[...it(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":it()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"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":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"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":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"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":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"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":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"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":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"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":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[ne,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"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":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"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:A()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,ee]}],filter:[{filter:["","none",ne,ee]}],blur:[{blur:Hn()}],brightness:[{brightness:[Te,ne,ee]}],contrast:[{contrast:[Te,ne,ee]}],"drop-shadow":[{"drop-shadow":["","none",T,Ar,wr]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",Te,ne,ee]}],"hue-rotate":[{"hue-rotate":[Te,ne,ee]}],invert:[{invert:["",Te,ne,ee]}],saturate:[{saturate:[Te,ne,ee]}],sepia:[{sepia:["",Te,ne,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,ee]}],"backdrop-blur":[{"backdrop-blur":Hn()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ne,ee]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ne,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ne,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ne,ee]}],"backdrop-invert":[{"backdrop-invert":["",Te,ne,ee]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ne,ee]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ne,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ne,ee]}],"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",ne,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ne,ee]}],ease:[{ease:["linear","initial",L,ne,ee]}],delay:[{delay:[Te,ne,ee]}],animate:[{animate:["none",q,ne,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,ne,ee]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:bn()}],"rotate-x":[{"rotate-x":bn()}],"rotate-y":[{"rotate-y":bn()}],"rotate-z":[{"rotate-z":bn()}],scale:[{scale:qn()}],"scale-x":[{"scale-x":qn()}],"scale-y":[{"scale-y":qn()}],"scale-z":[{"scale-z":qn()}],"scale-3d":["scale-3d"],skew:[{skew:Ka()}],"skew-x":[{"skew-x":Ka()}],"skew-y":[{"skew-y":Ka()}],transform:[{transform:[ne,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ut()}],"translate-x":[{"translate-x":Ut()}],"translate-y":[{"translate-y":Ut()}],"translate-z":[{"translate-z":Ut()}],"translate-none":["translate-none"],zoom:[{zoom:[pn,ne,ee]}],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",ne,ee]}],"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",ne,ee]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[Te,Hs,Ua,jp]}],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"]}},f5=G3(u5);function he(...n){return f5(Ps(n))}const d5=og("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 ge({className:n,variant:i,size:l,...r}){return f.jsx("button",{className:he(d5({variant:i,size:l,className:n})),...r})}const jg=k.createContext({});function h5(n){const i=k.useRef(null);return i.current===null&&(i.current=n()),i.current}const m5=typeof window<"u",p5=m5?k.useLayoutEffect:k.useEffect,zf=k.createContext(null);function Df(n,i){n.indexOf(i)===-1&&n.push(i)}function Xr(n,i){const l=n.indexOf(i);l>-1&&n.splice(l,1)}const xn=(n,i,l)=>l>i?i:l<n?n:l;let kf=()=>{};const ga={},wg=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Ag(n){return typeof n=="object"&&n!==null}const Ng=n=>/^0[^.\s]+$/u.test(n);function Cg(n){let i;return()=>(i===void 0&&(i=n()),i)}const It=n=>n,g5=(n,i)=>l=>i(n(l)),al=(...n)=>n.reduce(g5),Js=(n,i,l)=>{const r=i-n;return r===0?1:(l-n)/r};class Rf{constructor(){this.subscriptions=[]}add(i){return Df(this.subscriptions,i),()=>Xr(this.subscriptions,i)}notify(i,l,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](i,l,r);else for(let d=0;d<u;d++){const h=this.subscriptions[d];h&&h(i,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Lt=n=>n*1e3,$t=n=>n/1e3;function Mg(n,i){return i?n*(1e3/i):0}const Eg=(n,i,l)=>(((1-3*l+3*i)*n+(3*l-6*i))*n+3*i)*n,y5=1e-7,v5=12;function x5(n,i,l,r,u){let d,h,g=0;do h=i+(l-i)/2,d=Eg(h,r,u)-n,d>0?l=h:i=h;while(Math.abs(d)>y5&&++g<v5);return h}function il(n,i,l,r){if(n===i&&l===r)return It;const u=d=>x5(d,0,1,n,l);return d=>d===0||d===1?d:Eg(u(d),i,r)}const zg=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,Dg=n=>i=>1-n(1-i),kg=il(.33,1.53,.69,.99),Vf=Dg(kg),Rg=zg(Vf),Vg=n=>n>=1?1:(n*=2)<1?.5*Vf(n):.5*(2-Math.pow(2,-10*(n-1))),Of=n=>1-Math.sin(Math.acos(n)),Og=Dg(Of),_g=zg(Of),b5=il(.42,0,1,1),S5=il(0,0,.58,1),Bg=il(.42,0,.58,1),T5=n=>Array.isArray(n)&&typeof n[0]!="number",Lg=n=>Array.isArray(n)&&typeof n[0]=="number",j5={linear:It,easeIn:b5,easeInOut:Bg,easeOut:S5,circIn:Of,circInOut:_g,circOut:Og,backIn:Vf,backInOut:Rg,backOut:kg,anticipate:Vg},w5=n=>typeof n=="string",Np=n=>{if(Lg(n)){kf(n.length===4);const[i,l,r,u]=n;return il(i,l,r,u)}else if(w5(n))return j5[n];return n},Nr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function A5(n,i){let l=new Set,r=new Set,u=!1,d=!1;const h=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function y(v){h.has(v)&&(p.schedule(v),n()),v(g)}const p={schedule:(v,b=!1,S=!1)=>{const w=S&&u?l:r;return b&&h.add(v),w.add(v),v},cancel:v=>{r.delete(v),h.delete(v)},process:v=>{if(g=v,u){d=!0;return}u=!0;const b=l;l=r,r=b,l.forEach(y),l.clear(),u=!1,d&&(d=!1,p.process(v))}};return p}const N5=40;function Ug(n,i){let l=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>l=!0,h=Nr.reduce((Y,X)=>(Y[X]=A5(d),Y),{}),{setup:g,read:y,resolveKeyframes:p,preUpdate:v,update:b,preRender:S,render:T,postRender:w}=h,M=()=>{const Y=ga.useManualTiming,X=Y?u.timestamp:performance.now();l=!1,Y||(u.delta=r?1e3/60:Math.max(Math.min(X-u.timestamp,N5),1)),u.timestamp=X,u.isProcessing=!0,g.process(u),y.process(u),p.process(u),v.process(u),b.process(u),S.process(u),T.process(u),w.process(u),u.isProcessing=!1,l&&i&&(r=!1,n(M))},O=()=>{l=!0,r=!0,u.isProcessing||n(M)};return{schedule:Nr.reduce((Y,X)=>{const Z=h[X];return Y[X]=($,J=!1,B=!1)=>(l||O(),Z.schedule($,J,B)),Y},{}),cancel:Y=>{for(let X=0;X<Nr.length;X++)h[Nr[X]].cancel(Y)},state:u,steps:h}}const{schedule:Ue,cancel:ya,state:dt,steps:Du}=Ug(typeof requestAnimationFrame<"u"?requestAnimationFrame:It,!0);let Rr;function C5(){Rr=void 0}const vt={now:()=>(Rr===void 0&&vt.set(dt.isProcessing||ga.useManualTiming?dt.timestamp:performance.now()),Rr),set:n=>{Rr=n,queueMicrotask(C5)}},Hg=n=>i=>typeof i=="string"&&i.startsWith(n),qg=Hg("--"),M5=Hg("var(--"),_f=n=>M5(n)?E5.test(n.split("/*")[0].trim()):!1,E5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Cp(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Yi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},$s={...Yi,transform:n=>xn(0,1,n)},Cr={...Yi,default:1},Xs=n=>Math.round(n*1e5)/1e5,Bf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z5(n){return n==null}const D5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lf=(n,i)=>l=>!!(typeof l=="string"&&D5.test(l)&&l.startsWith(n)||i&&!z5(l)&&Object.prototype.hasOwnProperty.call(l,i)),Gg=(n,i,l)=>r=>{if(typeof r!="string")return r;const[u,d,h,g]=r.match(Bf);return{[n]:parseFloat(u),[i]:parseFloat(d),[l]:parseFloat(h),alpha:g!==void 0?parseFloat(g):1}},k5=n=>xn(0,255,n),ku={...Yi,transform:n=>Math.round(k5(n))},Ga={test:Lf("rgb","red"),parse:Gg("red","green","blue"),transform:({red:n,green:i,blue:l,alpha:r=1})=>"rgba("+ku.transform(n)+", "+ku.transform(i)+", "+ku.transform(l)+", "+Xs($s.transform(r))+")"};function R5(n){let i="",l="",r="",u="";return n.length>5?(i=n.substring(1,3),l=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(i=n.substring(1,2),l=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),i+=i,l+=l,r+=r,u+=u),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const tf={test:Lf("#"),parse:R5,transform:Ga.transform},sl=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),ma=sl("deg"),vn=sl("%"),ie=sl("px"),V5=sl("vh"),O5=sl("vw"),Mp={...vn,parse:n=>vn.parse(n)/100,transform:n=>vn.transform(n*100)},Ri={test:Lf("hsl","hue"),parse:Gg("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:l,alpha:r=1})=>"hsla("+Math.round(n)+", "+vn.transform(Xs(i))+", "+vn.transform(Xs(l))+", "+Xs($s.transform(r))+")"},Ie={test:n=>Ga.test(n)||tf.test(n)||Ri.test(n),parse:n=>Ga.test(n)?Ga.parse(n):Ri.test(n)?Ri.parse(n):tf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ga.transform(n):Ri.transform(n),getAnimatableNone:n=>{const i=Ie.parse(n);return i.alpha=0,Ie.transform(i)}},_5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function B5(n){return isNaN(n)&&typeof n=="string"&&(n.match(Bf)?.length||0)+(n.match(_5)?.length||0)>0}const Yg="number",Xg="color",L5="var",U5="var(",Ep="${}",H5=/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 Hi(n){const i=n.toString(),l=[],r={color:[],number:[],var:[]},u=[];let d=0;const g=i.replace(H5,y=>(Ie.test(y)?(r.color.push(d),u.push(Xg),l.push(Ie.parse(y))):y.startsWith(U5)?(r.var.push(d),u.push(L5),l.push(y)):(r.number.push(d),u.push(Yg),l.push(parseFloat(y))),++d,Ep)).split(Ep);return{values:l,split:g,indexes:r,types:u}}function q5(n){return Hi(n).values}function Zg({split:n,types:i}){const l=n.length;return r=>{let u="";for(let d=0;d<l;d++)if(u+=n[d],r[d]!==void 0){const h=i[d];h===Yg?u+=Xs(r[d]):h===Xg?u+=Ie.transform(r[d]):u+=r[d]}return u}}function G5(n){return Zg(Hi(n))}const Y5=n=>typeof n=="number"?0:Ie.test(n)?Ie.getAnimatableNone(n):n,X5=(n,i)=>typeof n=="number"?i?.trim().endsWith("/")?n:0:Y5(n);function Z5(n){const i=Hi(n);return Zg(i)(i.values.map((r,u)=>X5(r,i.split[u])))}const un={test:B5,parse:q5,createTransformer:G5,getAnimatableNone:Z5};function Ru(n,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?n+(i-n)*6*l:l<1/2?i:l<2/3?n+(i-n)*(2/3-l)*6:n}function Q5({hue:n,saturation:i,lightness:l,alpha:r}){n/=360,i/=100,l/=100;let u=0,d=0,h=0;if(!i)u=d=h=l;else{const g=l<.5?l*(1+i):l+i-l*i,y=2*l-g;u=Ru(y,g,n+1/3),d=Ru(y,g,n),h=Ru(y,g,n-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:r}}function Zr(n,i){return l=>l>0?i:n}const Ge=(n,i,l)=>n+(i-n)*l,Vu=(n,i,l)=>{const r=n*n,u=l*(i*i-r)+r;return u<0?0:Math.sqrt(u)},K5=[tf,Ga,Ri],F5=n=>K5.find(i=>i.test(n));function zp(n){const i=F5(n);if(!i)return!1;let l=i.parse(n);return i===Ri&&(l=Q5(l)),l}const Dp=(n,i)=>{const l=zp(n),r=zp(i);if(!l||!r)return Zr(n,i);const u={...l};return d=>(u.red=Vu(l.red,r.red,d),u.green=Vu(l.green,r.green,d),u.blue=Vu(l.blue,r.blue,d),u.alpha=Ge(l.alpha,r.alpha,d),Ga.transform(u))},nf=new Set(["none","hidden"]);function P5(n,i){return nf.has(n)?l=>l<=0?n:i:l=>l>=1?i:n}function J5(n,i){return l=>Ge(n,i,l)}function Uf(n){return typeof n=="number"?J5:typeof n=="string"?_f(n)?Zr:Ie.test(n)?Dp:I5:Array.isArray(n)?Qg:typeof n=="object"?Ie.test(n)?Dp:$5:Zr}function Qg(n,i){const l=[...n],r=l.length,u=n.map((d,h)=>Uf(d)(d,i[h]));return d=>{for(let h=0;h<r;h++)l[h]=u[h](d);return l}}function $5(n,i){const l={...n,...i},r={};for(const u in l)n[u]!==void 0&&i[u]!==void 0&&(r[u]=Uf(n[u])(n[u],i[u]));return u=>{for(const d in r)l[d]=r[d](u);return l}}function W5(n,i){const l=[],r={color:0,var:0,number:0};for(let u=0;u<i.values.length;u++){const d=i.types[u],h=n.indexes[d][r[d]],g=n.values[h]??0;l[u]=g,r[d]++}return l}const I5=(n,i)=>{const l=un.createTransformer(i),r=Hi(n),u=Hi(i);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?nf.has(n)&&!u.values.length||nf.has(i)&&!r.values.length?P5(n,i):al(Qg(W5(r,u),u.values),l):Zr(n,i)};function Kg(n,i,l){return typeof n=="number"&&typeof i=="number"&&typeof l=="number"?Ge(n,i,l):Uf(n)(n,i)}const e4=n=>{const i=({timestamp:l})=>n(l);return{start:(l=!0)=>Ue.update(i,l),stop:()=>ya(i),now:()=>dt.isProcessing?dt.timestamp:vt.now()}},Fg=(n,i,l=10)=>{let r="";const u=Math.max(Math.round(i/l),2);for(let d=0;d<u;d++)r+=Math.round(n(d/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Qr=2e4;function Hf(n){let i=0;const l=50;let r=n.next(i);for(;!r.done&&i<Qr;)i+=l,r=n.next(i);return i>=Qr?1/0:i}function t4(n,i=100,l){const r=l({...n,keyframes:[0,i]}),u=Math.min(Hf(r),Qr);return{type:"keyframes",ease:d=>r.next(u*d).value/i,duration:$t(u)}}const Qe={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 af(n,i){return n*Math.sqrt(1-i*i)}const n4=12;function a4(n,i,l){let r=l;for(let u=1;u<n4;u++)r=r-n(r)/i(r);return r}const Ou=.001;function i4({duration:n=Qe.duration,bounce:i=Qe.bounce,velocity:l=Qe.velocity,mass:r=Qe.mass}){let u,d,h=1-i;h=xn(Qe.minDamping,Qe.maxDamping,h),n=xn(Qe.minDuration,Qe.maxDuration,$t(n)),h<1?(u=p=>{const v=p*h,b=v*n,S=v-l,T=af(p,h),w=Math.exp(-b);return Ou-S/T*w},d=p=>{const b=p*h*n,S=b*l+l,T=Math.pow(h,2)*Math.pow(p,2)*n,w=Math.exp(-b),M=af(Math.pow(p,2),h);return(-u(p)+Ou>0?-1:1)*((S-T)*w)/M}):(u=p=>{const v=Math.exp(-p*n),b=(p-l)*n+1;return-Ou+v*b},d=p=>{const v=Math.exp(-p*n),b=(l-p)*(n*n);return v*b});const g=5/n,y=a4(u,d,g);if(n=Lt(n),isNaN(y))return{stiffness:Qe.stiffness,damping:Qe.damping,duration:n};{const p=Math.pow(y,2)*r;return{stiffness:p,damping:h*2*Math.sqrt(r*p),duration:n}}}const s4=["duration","bounce"],l4=["stiffness","damping","mass"];function kp(n,i){return i.some(l=>n[l]!==void 0)}function r4(n){let i={velocity:Qe.velocity,stiffness:Qe.stiffness,damping:Qe.damping,mass:Qe.mass,isResolvedFromDuration:!1,...n};if(!kp(n,l4)&&kp(n,s4))if(i.velocity=0,n.visualDuration){const l=n.visualDuration,r=2*Math.PI/(l*1.2),u=r*r,d=2*xn(.05,1,1-(n.bounce||0))*Math.sqrt(u);i={...i,mass:Qe.mass,stiffness:u,damping:d}}else{const l=i4({...n,velocity:0});i={...i,...l,mass:Qe.mass},i.isResolvedFromDuration=!0}return i}function Kr(n=Qe.visualDuration,i=Qe.bounce){const l=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:u}=l;const d=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],g={done:!1,value:d},{stiffness:y,damping:p,mass:v,duration:b,velocity:S,isResolvedFromDuration:T}=r4({...l,velocity:-$t(l.velocity||0)}),w=S||0,M=p/(2*Math.sqrt(y*v)),O=h-d,L=$t(Math.sqrt(y/v)),q=Math.abs(O)<5;r||(r=q?Qe.restSpeed.granular:Qe.restSpeed.default),u||(u=q?Qe.restDelta.granular:Qe.restDelta.default);let Y,X,Z,$,J,B;if(M<1)Z=af(L,M),$=(w+M*L*O)/Z,Y=le=>{const F=Math.exp(-M*L*le);return h-F*($*Math.sin(Z*le)+O*Math.cos(Z*le))},J=M*L*$+O*Z,B=M*L*O-$*Z,X=le=>Math.exp(-M*L*le)*(J*Math.sin(Z*le)+B*Math.cos(Z*le));else if(M===1){Y=F=>h-Math.exp(-L*F)*(O+(w+L*O)*F);const le=w+L*O;X=F=>Math.exp(-L*F)*(L*le*F-w)}else{const le=L*Math.sqrt(M*M-1);Y=be=>{const ye=Math.exp(-M*L*be),z=Math.min(le*be,300);return h-ye*((w+M*L*O)*Math.sinh(z)+le*O*Math.cosh(z))/le};const F=(w+M*L*O)/le,oe=M*L*F-O*le,je=M*L*O-F*le;X=be=>{const ye=Math.exp(-M*L*be),z=Math.min(le*be,300);return ye*(oe*Math.sinh(z)+je*Math.cosh(z))}}const fe={calculatedDuration:T&&b||null,velocity:le=>Lt(X(le)),next:le=>{if(!T&&M<1){const oe=Math.exp(-M*L*le),je=Math.sin(Z*le),be=Math.cos(Z*le),ye=h-oe*($*je+O*be),z=Lt(oe*(J*je+B*be));return g.done=Math.abs(z)<=r&&Math.abs(h-ye)<=u,g.value=g.done?h:ye,g}const F=Y(le);if(T)g.done=le>=b;else{const oe=Lt(X(le));g.done=Math.abs(oe)<=r&&Math.abs(h-F)<=u}return g.value=g.done?h:F,g},toString:()=>{const le=Math.min(Hf(fe),Qr),F=Fg(oe=>fe.next(le*oe).value,le,30);return le+"ms "+F},toTransition:()=>{}};return fe}Kr.applyToOptions=n=>{const i=t4(n,100,Kr);return n.ease=i.ease,n.duration=Lt(i.duration),n.type="keyframes",n};const o4=5;function Pg(n,i,l){const r=Math.max(i-o4,0);return Mg(l-n(r),i-r)}function sf({keyframes:n,velocity:i=0,power:l=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:h,min:g,max:y,restDelta:p=.5,restSpeed:v}){const b=n[0],S={done:!1,value:b},T=B=>g!==void 0&&B<g||y!==void 0&&B>y,w=B=>g===void 0?y:y===void 0||Math.abs(g-B)<Math.abs(y-B)?g:y;let M=l*i;const O=b+M,L=h===void 0?O:h(O);L!==O&&(M=L-b);const q=B=>-M*Math.exp(-B/r),Y=B=>L+q(B),X=B=>{const fe=q(B),le=Y(B);S.done=Math.abs(fe)<=p,S.value=S.done?L:le};let Z,$;const J=B=>{T(S.value)&&(Z=B,$=Kr({keyframes:[S.value,w(S.value)],velocity:Pg(Y,B,S.value),damping:u,stiffness:d,restDelta:p,restSpeed:v}))};return J(0),{calculatedDuration:null,next:B=>{let fe=!1;return!$&&Z===void 0&&(fe=!0,X(B),J(B)),Z!==void 0&&B>=Z?$.next(B-Z):(!fe&&X(B),S)}}}function c4(n,i,l){const r=[],u=l||ga.mix||Kg,d=n.length-1;for(let h=0;h<d;h++){let g=u(n[h],n[h+1]);if(i){const y=Array.isArray(i)?i[h]||It:i;g=al(y,g)}r.push(g)}return r}function u4(n,i,{clamp:l=!0,ease:r,mixer:u}={}){const d=n.length;if(kf(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const h=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),i=[...i].reverse());const g=c4(i,r,u),y=g.length,p=v=>{if(h&&v<n[0])return i[0];let b=0;if(y>1)for(;b<n.length-2&&!(v<n[b+1]);b++);const S=Js(n[b],n[b+1],v);return g[b](S)};return l?v=>p(xn(n[0],n[d-1],v)):p}function f4(n,i){const l=n[n.length-1];for(let r=1;r<=i;r++){const u=Js(0,i,r);n.push(Ge(l,1,u))}}function d4(n){const i=[0];return f4(i,n.length-1),i}function h4(n,i){return n.map(l=>l*i)}function m4(n,i){return n.map(()=>i||Bg).splice(0,n.length-1)}function Zs({duration:n=300,keyframes:i,times:l,ease:r="easeInOut"}){const u=T5(r)?r.map(Np):Np(r),d={done:!1,value:i[0]},h=h4(l&&l.length===i.length?l:d4(i),n),g=u4(h,i,{ease:Array.isArray(u)?u:m4(i,u)});return{calculatedDuration:n,next:y=>(d.value=g(y),d.done=y>=n,d)}}const p4=n=>n!==null;function to(n,{repeat:i,repeatType:l="loop"},r,u=1){const d=n.filter(p4),g=u<0||i&&l!=="loop"&&i%2===1?0:d.length-1;return!g||r===void 0?d[g]:r}const g4={decay:sf,inertia:sf,tween:Zs,keyframes:Zs,spring:Kr};function Jg(n){typeof n.type=="string"&&(n.type=g4[n.type])}class qf{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 y4=n=>n/100;class Fr extends qf{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!==vt.now()&&this.tick(vt.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;Jg(i);const{type:l=Zs,repeat:r=0,repeatDelay:u=0,repeatType:d,velocity:h=0}=i;let{keyframes:g}=i;const y=l||Zs;y!==Zs&&typeof g[0]!="number"&&(this.mixKeyframes=al(y4,Kg(g[0],g[1])),g=[0,100]);const p=y({...i,keyframes:g});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...g].reverse(),velocity:-h})),p.calculatedDuration===null&&(p.calculatedDuration=Hf(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+u,this.totalDuration=this.resolvedDuration*(r+1)-u,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:r,totalDuration:u,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:g,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:v,repeat:b,repeatType:S,repeatDelay:T,type:w,onUpdate:M,finalKeyframe:O}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-u/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const L=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?L<0:L>u;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let Y=this.currentTime,X=r;if(b){const B=Math.min(this.currentTime,u)/g;let fe=Math.floor(B),le=B%1;!le&&B>=1&&(le=1),le===1&&fe--,fe=Math.min(fe,b+1),fe%2&&(S==="reverse"?(le=1-le,T&&(le-=T/g)):S==="mirror"&&(X=h)),Y=xn(0,1,le)*g}let Z;q?(this.delayState.value=v[0],Z=this.delayState):Z=X.next(Y),d&&!q&&(Z.value=d(Z.value));let{done:$}=Z;!q&&y!==null&&($=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return J&&w!==sf&&(Z.value=to(v,this.options,O,this.speed)),M&&M(Z.value),J&&this.finish(),Z}then(i,l){return this.finished.then(i,l)}get duration(){return $t(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+$t(i)}get time(){return $t(this.currentTime)}set time(i){i=Lt(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 Pg(r=>this.generator.next(r).value,i,l)}get speed(){return this.playbackSpeed}set speed(i){const l=this.playbackSpeed!==i;l&&this.driver&&this.updateTime(vt.now()),this.playbackSpeed=i,l&&this.driver&&(this.time=$t(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=e4,startTime:l}=this.options;this.driver||(this.driver=i(u=>this.tick(u))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=l??r),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(vt.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 v4(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const Ya=n=>n*180/Math.PI,lf=n=>{const i=Ya(Math.atan2(n[1],n[0]));return rf(i)},x4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:lf,rotateZ:lf,skewX:n=>Ya(Math.atan(n[1])),skewY:n=>Ya(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},rf=n=>(n=n%360,n<0&&(n+=360),n),Rp=lf,Vp=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Op=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),b4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Vp,scaleY:Op,scale:n=>(Vp(n)+Op(n))/2,rotateX:n=>rf(Ya(Math.atan2(n[6],n[5]))),rotateY:n=>rf(Ya(Math.atan2(-n[2],n[0]))),rotateZ:Rp,rotate:Rp,skewX:n=>Ya(Math.atan(n[4])),skewY:n=>Ya(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function of(n){return n.includes("scale")?1:0}function cf(n,i){if(!n||n==="none")return of(i);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(l)r=b4,u=l;else{const g=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=x4,u=g}if(!u)return of(i);const d=r[i],h=u[1].split(",").map(T4);return typeof d=="function"?d(h):h[d]}const S4=(n,i)=>{const{transform:l="none"}=getComputedStyle(n);return cf(l,i)};function T4(n){return parseFloat(n.trim())}const Xi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zi=new Set(Xi),_p=n=>n===Yi||n===ie,j4=new Set(["x","y","z"]),w4=Xi.filter(n=>!j4.has(n));function A4(n){const i=[];return w4.forEach(l=>{const r=n.getValue(l);r!==void 0&&(i.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),i}const pa={width:({x:n},{paddingLeft:i="0",paddingRight:l="0",boxSizing:r})=>{const u=n.max-n.min;return r==="border-box"?u:u-parseFloat(i)-parseFloat(l)},height:({y:n},{paddingTop:i="0",paddingBottom:l="0",boxSizing:r})=>{const u=n.max-n.min;return r==="border-box"?u:u-parseFloat(i)-parseFloat(l)},top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>cf(i,"x"),y:(n,{transform:i})=>cf(i,"y")};pa.translateX=pa.x;pa.translateY=pa.y;const Xa=new Set;let uf=!1,ff=!1,df=!1;function $g(){if(ff){const n=Array.from(Xa).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),l=new Map;i.forEach(r=>{const u=A4(r);u.length&&(l.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const u=l.get(r);u&&u.forEach(([d,h])=>{r.getValue(d)?.set(h)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ff=!1,uf=!1,Xa.forEach(n=>n.complete(df)),Xa.clear()}function Wg(){Xa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(ff=!0)})}function N4(){df=!0,Wg(),$g(),df=!1}class Gf{constructor(i,l,r,u,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=r,this.motionValue=u,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Xa.add(this),uf||(uf=!0,Ue.read(Wg),Ue.resolveKeyframes($g))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:r,motionValue:u}=this;if(i[0]===null){const d=u?.get(),h=i[i.length-1];if(d!==void 0)i[0]=d;else if(r&&l){const g=r.readValue(l,h);g!=null&&(i[0]=g)}i[0]===void 0&&(i[0]=h),u&&d===void 0&&u.set(i[0])}v4(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Xa.delete(this)}cancel(){this.state==="scheduled"&&(Xa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const C4=n=>n.startsWith("--");function Ig(n,i,l){C4(i)?n.style.setProperty(i,l):n.style[i]=l}const M4={};function ey(n,i){const l=Cg(n);return()=>M4[i]??l()}const E4=ey(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ty=ey(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gs=([n,i,l,r])=>`cubic-bezier(${n}, ${i}, ${l}, ${r})`,Bp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gs([0,.65,.55,1]),circOut:Gs([.55,0,1,.45]),backIn:Gs([.31,.01,.66,-.59]),backOut:Gs([.33,1.53,.69,.99])};function ny(n,i){if(n)return typeof n=="function"?ty()?Fg(n,i):"ease-out":Lg(n)?Gs(n):Array.isArray(n)?n.map(l=>ny(l,i)||Bp.easeOut):Bp[n]}function z4(n,i,l,{delay:r=0,duration:u=300,repeat:d=0,repeatType:h="loop",ease:g="easeOut",times:y}={},p=void 0){const v={[i]:l};y&&(v.offset=y);const b=ny(g,u);Array.isArray(b)&&(v.easing=b);const S={delay:r,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(v,S)}function ay(n){return typeof n=="function"&&"applyToOptions"in n}function D4({type:n,...i}){return ay(n)&&ty()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class iy extends qf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:r,keyframes:u,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:g,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=i,kf(typeof i.type!="string");const p=D4(i);this.animation=z4(l,r,u,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=to(u,this.options,g,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Ig(l,r,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 $t(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+$t(i)}get time(){return $t(Number(this.animation.currentTime)||0)}set time(i){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Lt(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:r,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&E4()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),It):u(this)}}const sy={anticipate:Vg,backInOut:Rg,circInOut:_g};function k4(n){return n in sy}function R4(n){typeof n.ease=="string"&&k4(n.ease)&&(n.ease=sy[n.ease])}const _u=10;class V4 extends iy{constructor(i){R4(i),Jg(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:r,onComplete:u,element:d,...h}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const g=new Fr({...h,autoplay:!1}),y=Math.max(_u,vt.now()-this.startTime),p=xn(0,_u,y-_u),v=g.sample(y).value,{name:b}=this.options;d&&b&&Ig(d,b,v),l.setWithVelocity(g.sample(Math.max(0,y-p)).value,v,p),g.stop()}}const Lp=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(un.test(n)||n==="0")&&!n.startsWith("url("));function O4(n){const i=n[0];if(n.length===1)return!0;for(let l=0;l<n.length;l++)if(n[l]!==i)return!0}function _4(n,i,l,r){const u=n[0];if(u===null)return!1;if(i==="display"||i==="visibility")return!0;const d=n[n.length-1],h=Lp(u,i),g=Lp(d,i);return!h||!g?!1:O4(n)||(l==="spring"||ay(l))&&r}function hf(n){n.duration=0,n.type="keyframes"}const ly=new Set(["opacity","clipPath","filter","transform"]),B4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function L4(n){for(let i=0;i<n.length;i++)if(typeof n[i]=="string"&&B4.test(n[i]))return!0;return!1}const U4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),H4=Cg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function q4(n){const{motionValue:i,name:l,repeatDelay:r,repeatType:u,damping:d,type:h,keyframes:g}=n;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:v}=i.owner.getProps();return H4()&&l&&(ly.has(l)||U4.has(l)&&L4(g))&&(l!=="transform"||!v)&&!p&&!r&&u!=="mirror"&&d!==0&&h!=="inertia"}const G4=40;class Y4 extends qf{constructor({autoplay:i=!0,delay:l=0,type:r="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:h="loop",keyframes:g,name:y,motionValue:p,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=vt.now();const S={autoplay:i,delay:l,type:r,repeat:u,repeatDelay:d,repeatType:h,name:y,motionValue:p,element:v,...b},T=v?.KeyframeResolver||Gf;this.keyframeResolver=new T(g,(w,M,O)=>this.onKeyframesResolved(w,M,S,!O),y,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,r,u){this.keyframeResolver=void 0;const{name:d,type:h,velocity:g,delay:y,isHandoff:p,onUpdate:v}=r;this.resolvedAt=vt.now();let b=!0;_4(i,d,h,g)||(b=!1,(ga.instantAnimations||!y)&&v?.(to(i,r,l)),i[0]=i[i.length-1],hf(r),r.repeat=0);const T={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>G4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:i},w=b&&!p&&q4(T),M=T.motionValue?.owner?.current;let O;if(w)try{O=new V4({...T,element:M})}catch{O=new Fr(T)}else O=new Fr(T);O.finished.then(()=>{this.notifyFinished()}).catch(It),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(),N4()),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 ry(n,i,l,r=0,u=1){const d=Array.from(n).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),h=n.size,g=(h-1)*r;return typeof l=="function"?l(d,h):u===1?d*r:g-d*r}const X4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z4(n){const i=X4.exec(n);if(!i)return[,];const[,l,r,u]=i;return[`--${l??r}`,u]}function oy(n,i,l=1){const[r,u]=Z4(n);if(!r)return;const d=window.getComputedStyle(i).getPropertyValue(r);if(d){const h=d.trim();return wg(h)?parseFloat(h):h}return _f(u)?oy(u,i,l+1):u}const Q4={type:"spring",stiffness:500,damping:25,restSpeed:10},K4=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),F4={type:"keyframes",duration:.8},P4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},J4=(n,{keyframes:i})=>i.length>2?F4:Zi.has(n)?n.startsWith("scale")?K4(i[1]):Q4:P4;function cy(n,i){if(n?.inherit&&i){const{inherit:l,...r}=n;return{...i,...r}}return n}function Yf(n,i){const l=n?.[i]??n?.default??n;return l!==n?cy(l,n):l}const $4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function W4(n){for(const i in n)if(!$4.has(i))return!0;return!1}const Xf=(n,i,l,r={},u,d)=>h=>{const g=Yf(r,n)||{},y=g.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Lt(y);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...g,delay:-p,onUpdate:S=>{i.set(S),g.onUpdate&&g.onUpdate(S)},onComplete:()=>{h(),g.onComplete&&g.onComplete()},name:n,motionValue:i,element:d?void 0:u};W4(g)||Object.assign(v,J4(n,v)),v.duration&&(v.duration=Lt(v.duration)),v.repeatDelay&&(v.repeatDelay=Lt(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(hf(v),v.delay===0&&(b=!0)),(ga.instantAnimations||ga.skipAnimations||u?.shouldSkipAnimations)&&(b=!0,hf(v),v.delay=0),v.allowFlatten=!g.type&&!g.ease,b&&!d&&i.get()!==void 0){const S=to(v.keyframes,g);if(S!==void 0){Ue.update(()=>{v.onUpdate(S),v.onComplete()});return}}return g.isSync?new Fr(v):new Y4(v)};function Up(n){const i=[{},{}];return n?.values.forEach((l,r)=>{i[0][r]=l.get(),i[1][r]=l.getVelocity()}),i}function Zf(n,i,l,r){if(typeof i=="function"){const[u,d]=Up(r);i=i(l!==void 0?l:n.custom,u,d)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[u,d]=Up(r);i=i(l!==void 0?l:n.custom,u,d)}return i}function Za(n,i,l){const r=n.getProps();return Zf(r,i,l!==void 0?l:r.custom,n)}const uy=new Set(["width","height","top","left","right","bottom",...Xi]),Hp=30,I4=n=>!isNaN(parseFloat(n));class e8{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const u=vt.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),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=vt.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=I4(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 Rf);const r=this.events[i].add(l);return i==="change"?()=>{r(),Ue.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}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=vt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Hp)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Hp);return Mg(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 qi(n,i){return new e8(n,i)}const mf=n=>Array.isArray(n);function t8(n,i,l){n.hasValue(i)?n.getValue(i).set(l):n.addValue(i,qi(l))}function n8(n){return mf(n)?n[n.length-1]||0:n}function a8(n,i){const l=Za(n,i);let{transitionEnd:r={},transition:u={},...d}=l||{};d={...d,...r};for(const h in d){const g=n8(d[h]);t8(n,h,g)}}const ht=n=>!!(n&&n.getVelocity);function i8(n){return!!(ht(n)&&n.add)}function pf(n,i){const l=n.getValue("willChange");if(i8(l))return l.add(i);if(!l&&ga.WillChange){const r=new ga.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function Qf(n){return n.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const s8="framerAppearId",fy="data-"+Qf(s8);function dy(n){return n.props[fy]}function l8({protectedKeys:n,needsAnimating:i},l){const r=n.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,r}function hy(n,i,{delay:l=0,transitionOverride:r,type:u}={}){let{transition:d,transitionEnd:h,...g}=i;const y=n.getDefaultTransition();d=d?cy(d,y):y;const p=d?.reduceMotion;r&&(d=r);const v=[],b=u&&n.animationState&&n.animationState.getState()[u];for(const S in g){const T=n.getValue(S,n.latestValues[S]??null),w=g[S];if(w===void 0||b&&l8(b,S))continue;const M={delay:l,...Yf(d||{},S)},O=T.get();if(O!==void 0&&!T.isAnimating()&&!Array.isArray(w)&&w===O&&!M.velocity){Ue.update(()=>T.set(w));continue}let L=!1;if(window.MotionHandoffAnimation){const X=dy(n);if(X){const Z=window.MotionHandoffAnimation(X,S,Ue);Z!==null&&(M.startTime=Z,L=!0)}}pf(n,S);const q=p??n.shouldReduceMotion;T.start(Xf(S,T,w,q&&uy.has(S)?{type:!1}:M,n,L));const Y=T.animation;Y&&v.push(Y)}if(h){const S=()=>Ue.update(()=>{h&&a8(n,h)});v.length?Promise.all(v).then(S):S()}return v}function gf(n,i,l={}){const r=Za(n,i,l.type==="exit"?n.presenceContext?.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(u=l.transitionOverride);const d=r?()=>Promise.all(hy(n,r,l)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:b}=u;return r8(n,i,y,p,v,b,l)}:()=>Promise.resolve(),{when:g}=u;if(g){const[y,p]=g==="beforeChildren"?[d,h]:[h,d];return y().then(()=>p())}else return Promise.all([d(),h(l.delay)])}function r8(n,i,l=0,r=0,u=0,d=1,h){const g=[];for(const y of n.variantChildren)y.notify("AnimationStart",i),g.push(gf(y,i,{...h,delay:l+(typeof r=="function"?0:r)+ry(n.variantChildren,y,r,u,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(g)}function o8(n,i,l={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const u=i.map(d=>gf(n,d,l));r=Promise.all(u)}else if(typeof i=="string")r=gf(n,i,l);else{const u=typeof i=="function"?Za(n,i,l.custom):i;r=Promise.all(hy(n,u,l))}return r.then(()=>{n.notify("AnimationComplete",i)})}const c8={test:n=>n==="auto",parse:n=>n},my=n=>i=>i.test(n),py=[Yi,ie,vn,ma,O5,V5,c8],qp=n=>py.find(my(n));function u8(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Ng(n):!0}const f8=new Set(["brightness","contrast","saturate","opacity"]);function d8(n){const[i,l]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=l.match(Bf)||[];if(!r)return n;const u=l.replace(r,"");let d=f8.has(i)?1:0;return r!==l&&(d*=100),i+"("+d+u+")"}const h8=/\b([a-z-]*)\(.*?\)/gu,yf={...un,getAnimatableNone:n=>{const i=n.match(h8);return i?i.map(d8).join(" "):n}},vf={...un,getAnimatableNone:n=>{const i=un.parse(n);return un.createTransformer(n)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Gp={...Yi,transform:Math.round},m8={rotate:ma,rotateX:ma,rotateY:ma,rotateZ:ma,scale:Cr,scaleX:Cr,scaleY:Cr,scaleZ:Cr,skew:ma,skewX:ma,skewY:ma,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:$s,originX:Mp,originY:Mp,originZ:ie},Kf={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,inset:ie,insetBlock:ie,insetBlockStart:ie,insetBlockEnd:ie,insetInline:ie,insetInlineStart:ie,insetInlineEnd:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,paddingBlock:ie,paddingBlockStart:ie,paddingBlockEnd:ie,paddingInline:ie,paddingInlineStart:ie,paddingInlineEnd:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,marginBlock:ie,marginBlockStart:ie,marginBlockEnd:ie,marginInline:ie,marginInlineStart:ie,marginInlineEnd:ie,fontSize:ie,backgroundPositionX:ie,backgroundPositionY:ie,...m8,zIndex:Gp,fillOpacity:$s,strokeOpacity:$s,numOctaves:Gp},p8={...Kf,color:Ie,backgroundColor:Ie,outlineColor:Ie,fill:Ie,stroke:Ie,borderColor:Ie,borderTopColor:Ie,borderRightColor:Ie,borderBottomColor:Ie,borderLeftColor:Ie,filter:yf,WebkitFilter:yf,mask:vf,WebkitMask:vf},gy=n=>p8[n],g8=new Set([yf,vf]);function yy(n,i){let l=gy(n);return g8.has(l)||(l=un),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const y8=new Set(["auto","none","0"]);function v8(n,i,l){let r=0,u;for(;r<n.length&&!u;){const d=n[r];typeof d=="string"&&!y8.has(d)&&Hi(d).values.length&&(u=n[r]),r++}if(u&&l)for(const d of i)n[d]=yy(l,u)}class x8 extends Gf{constructor(i,l,r,u,d){super(i,l,r,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let b=i[v];if(typeof b=="string"&&(b=b.trim(),_f(b))){const S=oy(b,l.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!uy.has(r)||i.length!==2)return;const[u,d]=i,h=qp(u),g=qp(d),y=Cp(u),p=Cp(d);if(y!==p&&pa[r]){this.needsMeasurement=!0;return}if(h!==g)if(_p(h)&&_p(g))for(let v=0;v<i.length;v++){const b=i[v];typeof b=="string"&&(i[v]=parseFloat(b))}else pa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,r=[];for(let u=0;u<i.length;u++)(i[u]===null||u8(i[u]))&&r.push(u);r.length&&v8(i,r,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pa[r](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const u=l[l.length-1];u!==void 0&&i.getValue(r,u).jump(u,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const u=i.getValue(l);u&&u.jump(this.measuredOrigin,!1);const d=r.length-1,h=r[d];r[d]=pa[l](i.measureViewportBox(),window.getComputedStyle(i.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,y])=>{i.getValue(g).set(y)}),this.resolveNoneKeyframes()}}function vy(n,i,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const u=l?.[n]??r.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(r=>r!=null)}const xy=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function b8(n){return Ag(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Ff}=Ug(queueMicrotask,!1),cn={x:!1,y:!1};function by(){return cn.x||cn.y}function S8(n){return n==="x"||n==="y"?cn[n]?null:(cn[n]=!0,()=>{cn[n]=!1}):cn.x||cn.y?null:(cn.x=cn.y=!0,()=>{cn.x=cn.y=!1})}function Sy(n,i){const l=vy(n),r=new AbortController,u={passive:!0,...i,signal:r.signal};return[l,u,()=>r.abort()]}function T8(n){return!(n.pointerType==="touch"||by())}function j8(n,i,l={}){const[r,u,d]=Sy(n,l);return r.forEach(h=>{let g=!1,y=!1,p;const v=()=>{h.removeEventListener("pointerleave",w)},b=O=>{p&&(p(O),p=void 0),v()},S=O=>{g=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),y&&(y=!1,b(O))},T=()=>{g=!0,window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",S,u)},w=O=>{if(O.pointerType!=="touch"){if(g){y=!0;return}b(O)}},M=O=>{if(!T8(O))return;y=!1;const L=i(h,O);typeof L=="function"&&(p=L,h.addEventListener("pointerleave",w,u))};h.addEventListener("pointerenter",M,u),h.addEventListener("pointerdown",T,u)}),d}const Ty=(n,i)=>i?n===i?!0:Ty(n,i.parentElement):!1,Pf=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,w8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function A8(n){return w8.has(n.tagName)||n.isContentEditable===!0}const N8=new Set(["INPUT","SELECT","TEXTAREA"]);function C8(n){return N8.has(n.tagName)||n.isContentEditable===!0}const Vr=new WeakSet;function Yp(n){return i=>{i.key==="Enter"&&n(i)}}function Bu(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const M8=(n,i)=>{const l=n.currentTarget;if(!l)return;const r=Yp(()=>{if(Vr.has(l))return;Bu(l,"down");const u=Yp(()=>{Bu(l,"up")}),d=()=>Bu(l,"cancel");l.addEventListener("keyup",u,i),l.addEventListener("blur",d,i)});l.addEventListener("keydown",r,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),i)};function Xp(n){return Pf(n)&&!by()}const Zp=new WeakSet;function E8(n,i,l={}){const[r,u,d]=Sy(n,l),h=g=>{const y=g.currentTarget;if(!Xp(g)||Zp.has(g))return;Vr.add(y),l.stopPropagation&&Zp.add(g);const p=i(y,g),v=(T,w)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),Vr.has(y)&&Vr.delete(y),Xp(T)&&typeof p=="function"&&p(T,{success:w})},b=T=>{v(T,y===window||y===document||l.useGlobalTarget||Ty(y,T.target))},S=T=>{v(T,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",S,u)};return r.forEach(g=>{(l.useGlobalTarget?window:g).addEventListener("pointerdown",h,u),b8(g)&&(g.addEventListener("focus",p=>M8(p,u)),!A8(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),d}function Jf(n){return Ag(n)&&"ownerSVGElement"in n}const Or=new WeakMap;let _r;const jy=(n,i,l)=>(r,u)=>u&&u[0]?u[0][n+"Size"]:Jf(r)&&"getBBox"in r?r.getBBox()[i]:r[l],z8=jy("inline","width","offsetWidth"),D8=jy("block","height","offsetHeight");function k8({target:n,borderBoxSize:i}){Or.get(n)?.forEach(l=>{l(n,{get width(){return z8(n,i)},get height(){return D8(n,i)}})})}function R8(n){n.forEach(k8)}function V8(){typeof ResizeObserver>"u"||(_r=new ResizeObserver(R8))}function O8(n,i){_r||V8();const l=vy(n);return l.forEach(r=>{let u=Or.get(r);u||(u=new Set,Or.set(r,u)),u.add(i),_r?.observe(r)}),()=>{l.forEach(r=>{const u=Or.get(r);u?.delete(i),u?.size||_r?.unobserve(r)})}}const Br=new Set;let Vi;function _8(){Vi=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Br.forEach(i=>i(n))},window.addEventListener("resize",Vi)}function B8(n){return Br.add(n),Vi||_8(),()=>{Br.delete(n),!Br.size&&typeof Vi=="function"&&(window.removeEventListener("resize",Vi),Vi=void 0)}}function Qp(n,i){return typeof n=="function"?B8(n):O8(n,i)}function L8(n){return Jf(n)&&n.tagName==="svg"}const U8=[...py,Ie,un],H8=n=>U8.find(my(n)),Kp=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oi=()=>({x:Kp(),y:Kp()}),Fp=()=>({min:0,max:0}),at=()=>({x:Fp(),y:Fp()}),q8=new WeakMap;function no(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ws(n){return typeof n=="string"||Array.isArray(n)}const $f=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wf=["initial",...$f];function ao(n){return no(n.animate)||Wf.some(i=>Ws(n[i]))}function wy(n){return!!(ao(n)||n.variants)}function G8(n,i,l){for(const r in i){const u=i[r],d=l[r];if(ht(u))n.addValue(r,u);else if(ht(d))n.addValue(r,qi(u,{owner:n}));else if(d!==u)if(n.hasValue(r)){const h=n.getValue(r);h.liveStyle===!0?h.jump(u):h.hasAnimated||h.set(u)}else{const h=n.getStaticValue(r);n.addValue(r,qi(h!==void 0?h:u,{owner:n}))}}for(const r in l)i[r]===void 0&&n.removeValue(r);return i}const xf={current:null},Ay={current:!1},Y8=typeof window<"u";function X8(){if(Ay.current=!0,!!Y8)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>xf.current=n.matches;n.addEventListener("change",i),i()}else xf.current=!1}const Pp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Pr={};function Ny(n){Pr=n}function Z8(){return Pr}class Q8{scrapeMotionValuesFromProps(i,l,r){return{}}constructor({parent:i,props:l,presenceContext:r,reducedMotionConfig:u,skipAnimations:d,blockInitialAnimation:h,visualState:g},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=Gf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=vt.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Ue.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=g;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=l,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!h,this.isControllingVariants=ao(l),this.isVariantNode=wy(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const T in S){const w=S[T];p[T]!==void 0&&ht(w)&&w.set(p[T])}}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,q8.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,r)=>this.bindToMotionValue(r,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ay.current||X8(),this.shouldReduceMotion=xf.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(),ya(this.notifyUpdate),ya(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&&ly.has(i)&&this.current instanceof HTMLElement){const{factory:h,keyframes:g,times:y,ease:p,duration:v}=l.accelerate,b=new iy({element:this.current,name:i,keyframes:g,times:y,ease:p,duration:Lt(v)}),S=h(b);this.valueSubscriptions.set(i,()=>{S(),b.cancel()});return}const r=Zi.has(i);r&&this.onBindTransform&&this.onBindTransform();const u=l.on("change",h=>{this.latestValues[i]=h,this.props.onUpdate&&Ue.preRender(this.notifyUpdate),r&&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,()=>{u(),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 Pr){const l=Pr[i];if(!l)continue;const{isEnabled:r,Feature:u}=l;if(!this.features[i]&&u&&r(this.props)&&(this.features[i]=new u(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):at()}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 r=0;r<Pp.length;r++){const u=Pp[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,h=i[d];h&&(this.propEventSubscriptions[u]=this.on(u,h))}this.prevMotionValues=G8(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 r=this.values.get(i);l!==r&&(r&&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 r=this.values.get(i);return r===void 0&&l!==void 0&&(r=qi(l===null?void 0:l,{owner:this}),this.addValue(i,r)),r}readValue(i,l){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(wg(r)||Ng(r))?r=parseFloat(r):!H8(r)&&un.test(l)&&(r=yy(i,l)),this.setBaseTarget(i,ht(r)?r.get():r)),ht(r)?r.get():r}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const d=Zf(this.props,l,this.presenceContext?.custom);d&&(r=d[i])}if(l&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,i);return u!==void 0&&!ht(u)?u:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new Rf),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Ff.render(this.render)}}class Cy extends Q8{constructor(){super(...arguments),this.KeyframeResolver=x8}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const r=i.style;return r?r[l]:void 0}removeValueFromRenderState(i,{vars:l,style:r}){delete l[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;ht(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class xa{constructor(i){this.isMounted=!1,this.node=i}update(){}}function My({top:n,left:i,right:l,bottom:r}){return{x:{min:i,max:l},y:{min:n,max:r}}}function K8({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function F8(n,i){if(!i)return n;const l=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function Lu(n){return n===void 0||n===1}function bf({scale:n,scaleX:i,scaleY:l}){return!Lu(n)||!Lu(i)||!Lu(l)}function qa(n){return bf(n)||Ey(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Ey(n){return Jp(n.x)||Jp(n.y)}function Jp(n){return n&&n!=="0%"}function Jr(n,i,l){const r=n-l,u=i*r;return l+u}function $p(n,i,l,r,u){return u!==void 0&&(n=Jr(n,u,r)),Jr(n,l,r)+i}function Sf(n,i=0,l=1,r,u){n.min=$p(n.min,i,l,r,u),n.max=$p(n.max,i,l,r,u)}function zy(n,{x:i,y:l}){Sf(n.x,i.translate,i.scale,i.originPoint),Sf(n.y,l.translate,l.scale,l.originPoint)}const Wp=.999999999999,Ip=1.0000000000001;function P8(n,i,l,r=!1){const u=l.length;if(!u)return;i.x=i.y=1;let d,h;for(let g=0;g<u;g++){d=l[g],h=d.projectionDelta;const{visualElement:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(yn(n.x,-d.scroll.offset.x),yn(n.y,-d.scroll.offset.y)),h&&(i.x*=h.x.scale,i.y*=h.y.scale,zy(n,h)),r&&qa(d.latestValues)&&Lr(n,d.latestValues,d.layout?.layoutBox))}i.x<Ip&&i.x>Wp&&(i.x=1),i.y<Ip&&i.y>Wp&&(i.y=1)}function yn(n,i){n.min+=i,n.max+=i}function e1(n,i,l,r,u=.5){const d=Ge(n.min,n.max,u);Sf(n,i,l,d,r)}function t1(n,i){return typeof n=="string"?parseFloat(n)/100*(i.max-i.min):n}function Lr(n,i,l){const r=l??n;e1(n.x,t1(i.x,r.x),i.scaleX,i.scale,i.originX),e1(n.y,t1(i.y,r.y),i.scaleY,i.scale,i.originY)}function Dy(n,i){return My(F8(n.getBoundingClientRect(),i))}function J8(n,i,l){const r=Dy(n,l),{scroll:u}=i;return u&&(yn(r.x,u.offset.x),yn(r.y,u.offset.y)),r}const $8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W8=Xi.length;function I8(n,i,l){let r="",u=!0;for(let d=0;d<W8;d++){const h=Xi[d],g=n[h];if(g===void 0)continue;let y=!0;if(typeof g=="number")y=g===(h.startsWith("scale")?1:0);else{const p=parseFloat(g);y=h.startsWith("scale")?p===1:p===0}if(!y||l){const p=xy(g,Kf[h]);if(!y){u=!1;const v=$8[h]||h;r+=`${v}(${p}) `}l&&(i[h]=p)}}return r=r.trim(),l?r=l(i,u?"":r):u&&(r="none"),r}function If(n,i,l){const{style:r,vars:u,transformOrigin:d}=n;let h=!1,g=!1;for(const y in i){const p=i[y];if(Zi.has(y)){h=!0;continue}else if(qg(y)){u[y]=p;continue}else{const v=xy(p,Kf[y]);y.startsWith("origin")?(g=!0,d[y]=v):r[y]=v}}if(i.transform||(h||l?r.transform=I8(i,n.transform,l):r.transform&&(r.transform="none")),g){const{originX:y="50%",originY:p="50%",originZ:v=0}=d;r.transformOrigin=`${y} ${p} ${v}`}}function ky(n,{style:i,vars:l},r,u){const d=n.style;let h;for(h in i)d[h]=i[h];u?.applyProjectionStyles(d,r);for(h in l)d.setProperty(h,l[h])}function n1(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const qs={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(ie.test(n))n=parseFloat(n);else return n;const l=n1(n,i.target.x),r=n1(n,i.target.y);return`${l}% ${r}%`}},e6={correct:(n,{treeScale:i,projectionDelta:l})=>{const r=n,u=un.parse(n);if(u.length>5)return r;const d=un.createTransformer(n),h=typeof u[0]!="number"?1:0,g=l.x.scale*i.x,y=l.y.scale*i.y;u[0+h]/=g,u[1+h]/=y;const p=Ge(g,y,.5);return typeof u[2+h]=="number"&&(u[2+h]/=p),typeof u[3+h]=="number"&&(u[3+h]/=p),d(u)}},Tf={borderRadius:{...qs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qs,borderTopRightRadius:qs,borderBottomLeftRadius:qs,borderBottomRightRadius:qs,boxShadow:e6};function Ry(n,{layout:i,layoutId:l}){return Zi.has(n)||n.startsWith("origin")||(i||l!==void 0)&&(!!Tf[n]||n==="opacity")}function ed(n,i,l){const r=n.style,u=i?.style,d={};if(!r)return d;for(const h in r)(ht(r[h])||u&&ht(u[h])||Ry(h,n)||l?.getValue(h)?.liveStyle!==void 0)&&(d[h]=r[h]);return d}function t6(n){return window.getComputedStyle(n)}class n6 extends Cy{constructor(){super(...arguments),this.type="html",this.renderInstance=ky}readValueFromInstance(i,l){if(Zi.has(l))return this.projection?.isProjecting?of(l):S4(i,l);{const r=t6(i),u=(qg(l)?r.getPropertyValue(l):r[l])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(i,{transformPagePoint:l}){return Dy(i,l)}build(i,l,r){If(i,l,r.transformTemplate)}scrapeMotionValuesFromProps(i,l,r){return ed(i,l,r)}}const a6={offset:"stroke-dashoffset",array:"stroke-dasharray"},i6={offset:"strokeDashoffset",array:"strokeDasharray"};function s6(n,i,l=1,r=0,u=!0){n.pathLength=1;const d=u?a6:i6;n[d.offset]=`${-r}`,n[d.array]=`${i} ${l}`}const l6=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Vy(n,{attrX:i,attrY:l,attrScale:r,pathLength:u,pathSpacing:d=1,pathOffset:h=0,...g},y,p,v){if(If(n,g,p),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:S}=n;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=v?.transformBox??"fill-box",delete b.transformBox);for(const T of l6)b[T]!==void 0&&(S[T]=b[T],delete b[T]);i!==void 0&&(b.x=i),l!==void 0&&(b.y=l),r!==void 0&&(b.scale=r),u!==void 0&&s6(b,u,d,h,!1)}const Oy=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"]),_y=n=>typeof n=="string"&&n.toLowerCase()==="svg";function r6(n,i,l,r){ky(n,i,void 0,r);for(const u in i.attrs)n.setAttribute(Oy.has(u)?u:Qf(u),i.attrs[u])}function By(n,i,l){const r=ed(n,i,l);for(const u in n)if(ht(n[u])||ht(i[u])){const d=Xi.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[d]=n[u]}return r}class o6 extends Cy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Zi.has(l)){const r=gy(l);return r&&r.default||0}return l=Oy.has(l)?l:Qf(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,r){return By(i,l,r)}build(i,l,r){Vy(i,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,l,r,u){r6(i,l,r,u)}mount(i){this.isSVGTag=_y(i.tagName),super.mount(i)}}const c6=Wf.length;function Ly(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?Ly(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const i={};for(let l=0;l<c6;l++){const r=Wf[l],u=n.props[r];(Ws(u)||u===!1)&&(i[r]=u)}return i}function Uy(n,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==n.length)return!1;for(let r=0;r<l;r++)if(i[r]!==n[r])return!1;return!0}const u6=[...$f].reverse(),f6=$f.length;function d6(n){return i=>Promise.all(i.map(({animation:l,options:r})=>o8(n,l,r)))}function h6(n){let i=d6(n),l=a1(),r=!0,u=!1;const d=p=>(v,b)=>{const S=Za(n,b,p==="exit"?n.presenceContext?.custom:void 0);if(S){const{transition:T,transitionEnd:w,...M}=S;v={...v,...M,...w}}return v};function h(p){i=p(n)}function g(p){const{props:v}=n,b=Ly(n.parent)||{},S=[],T=new Set;let w={},M=1/0;for(let L=0;L<f6;L++){const q=u6[L],Y=l[q],X=v[q]!==void 0?v[q]:b[q],Z=Ws(X),$=q===p?Y.isActive:null;$===!1&&(M=L);let J=X===b[q]&&X!==v[q]&&Z;if(J&&(r||u)&&n.manuallyAnimateOnMount&&(J=!1),Y.protectedKeys={...w},!Y.isActive&&$===null||!X&&!Y.prevProp||no(X)||typeof X=="boolean")continue;if(q==="exit"&&Y.isActive&&$!==!0){Y.prevResolvedValues&&(w={...w,...Y.prevResolvedValues});continue}const B=m6(Y.prevProp,X);let fe=B||q===p&&Y.isActive&&!J&&Z||L>M&&Z,le=!1;const F=Array.isArray(X)?X:[X];let oe=F.reduce(d(q),{});$===!1&&(oe={});const{prevResolvedValues:je={}}=Y,be={...je,...oe},ye=W=>{fe=!0,T.has(W)&&(le=!0,T.delete(W)),Y.needsAnimating[W]=!0;const P=n.getValue(W);P&&(P.liveStyle=!1)};for(const W in be){const P=oe[W],Q=je[W];if(w.hasOwnProperty(W))continue;let A=!1;mf(P)&&mf(Q)?A=!Uy(P,Q):A=P!==Q,A?P!=null?ye(W):T.add(W):P!==void 0&&T.has(W)?ye(W):Y.protectedKeys[W]=!0}Y.prevProp=X,Y.prevResolvedValues=oe,Y.isActive&&(w={...w,...oe}),(r||u)&&n.blockInitialAnimation&&(fe=!1);const z=J&&B;fe&&(!z||le)&&S.push(...F.map(W=>{const P={type:q};if(typeof W=="string"&&(r||u)&&!z&&n.manuallyAnimateOnMount&&n.parent){const{parent:Q}=n,A=Za(Q,W);if(Q.enteringChildren&&A){const{delayChildren:H}=A.transition||{};P.delay=ry(Q.enteringChildren,n,H)}}return{animation:W,options:P}}))}if(T.size){const L={};if(typeof v.initial!="boolean"){const q=Za(n,Array.isArray(v.initial)?v.initial[0]:v.initial);q&&q.transition&&(L.transition=q.transition)}T.forEach(q=>{const Y=n.getBaseTarget(q),X=n.getValue(q);X&&(X.liveStyle=!0),L[q]=Y??null}),S.push({animation:L})}let O=!!S.length;return r&&(v.initial===!1||v.initial===v.animate)&&!n.manuallyAnimateOnMount&&(O=!1),r=!1,u=!1,O?i(S):Promise.resolve()}function y(p,v){if(l[p].isActive===v)return Promise.resolve();n.variantChildren?.forEach(S=>S.animationState?.setActive(p,v)),l[p].isActive=v;const b=g(p);for(const S in l)l[S].protectedKeys={};return b}return{animateChanges:g,setActive:y,setAnimateFunction:h,getState:()=>l,reset:()=>{l=a1(),u=!0}}}function m6(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!Uy(i,n):!1}function Ha(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a1(){return{animate:Ha(!0),whileInView:Ha(),whileHover:Ha(),whileTap:Ha(),whileDrag:Ha(),whileFocus:Ha(),exit:Ha()}}function jf(n,i){n.min=i.min,n.max=i.max}function on(n,i){jf(n.x,i.x),jf(n.y,i.y)}function i1(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}const Hy=1e-4,p6=1-Hy,g6=1+Hy,qy=.01,y6=0-qy,v6=0+qy;function xt(n){return n.max-n.min}function x6(n,i,l){return Math.abs(n-i)<=l}function s1(n,i,l,r=.5){n.origin=r,n.originPoint=Ge(i.min,i.max,n.origin),n.scale=xt(l)/xt(i),n.translate=Ge(l.min,l.max,n.origin)-n.originPoint,(n.scale>=p6&&n.scale<=g6||isNaN(n.scale))&&(n.scale=1),(n.translate>=y6&&n.translate<=v6||isNaN(n.translate))&&(n.translate=0)}function Qs(n,i,l,r){s1(n.x,i.x,l.x,r?r.originX:void 0),s1(n.y,i.y,l.y,r?r.originY:void 0)}function l1(n,i,l,r=0){const u=r?Ge(l.min,l.max,r):l.min;n.min=u+i.min,n.max=n.min+xt(i)}function b6(n,i,l,r){l1(n.x,i.x,l.x,r?.x),l1(n.y,i.y,l.y,r?.y)}function r1(n,i,l,r=0){const u=r?Ge(l.min,l.max,r):l.min;n.min=i.min-u,n.max=n.min+xt(i)}function $r(n,i,l,r){r1(n.x,i.x,l.x,r?.x),r1(n.y,i.y,l.y,r?.y)}function o1(n,i,l,r,u){return n-=i,n=Jr(n,1/l,r),u!==void 0&&(n=Jr(n,1/u,r)),n}function S6(n,i=0,l=1,r=.5,u,d=n,h=n){if(vn.test(i)&&(i=parseFloat(i),i=Ge(h.min,h.max,i/100)-h.min),typeof i!="number")return;let g=Ge(d.min,d.max,r);n===d&&(g-=i),n.min=o1(n.min,i,l,g,u),n.max=o1(n.max,i,l,g,u)}function c1(n,i,[l,r,u],d,h){S6(n,i[l],i[r],i[u],i.scale,d,h)}const T6=["x","scaleX","originX"],j6=["y","scaleY","originY"];function u1(n,i,l,r){c1(n.x,i,T6,l?l.x:void 0,r?r.x:void 0),c1(n.y,i,j6,l?l.y:void 0,r?r.y:void 0)}function f1(n){return n.translate===0&&n.scale===1}function Gy(n){return f1(n.x)&&f1(n.y)}function d1(n,i){return n.min===i.min&&n.max===i.max}function w6(n,i){return d1(n.x,i.x)&&d1(n.y,i.y)}function h1(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function Yy(n,i){return h1(n.x,i.x)&&h1(n.y,i.y)}function m1(n){return xt(n.x)/xt(n.y)}function p1(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}function gn(n){return[n("x"),n("y")]}function A6(n,i,l){let r="";const u=n.x.translate/i.x,d=n.y.translate/i.y,h=l?.z||0;if((u||d||h)&&(r=`translate3d(${u}px, ${d}px, ${h}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:v,rotateX:b,rotateY:S,skewX:T,skewY:w}=l;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),S&&(r+=`rotateY(${S}deg) `),T&&(r+=`skewX(${T}deg) `),w&&(r+=`skewY(${w}deg) `)}const g=n.x.scale*i.x,y=n.y.scale*i.y;return(g!==1||y!==1)&&(r+=`scale(${g}, ${y})`),r||"none"}const Xy=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],N6=Xy.length,g1=n=>typeof n=="string"?parseFloat(n):n,y1=n=>typeof n=="number"||ie.test(n);function C6(n,i,l,r,u,d){u?(n.opacity=Ge(0,l.opacity??1,M6(r)),n.opacityExit=Ge(i.opacity??1,0,E6(r))):d&&(n.opacity=Ge(i.opacity??1,l.opacity??1,r));for(let h=0;h<N6;h++){const g=Xy[h];let y=v1(i,g),p=v1(l,g);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||y1(y)===y1(p)?(n[g]=Math.max(Ge(g1(y),g1(p),r),0),(vn.test(p)||vn.test(y))&&(n[g]+="%")):n[g]=p}(i.rotate||l.rotate)&&(n.rotate=Ge(i.rotate||0,l.rotate||0,r))}function v1(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const M6=Zy(0,.5,Og),E6=Zy(.5,.95,It);function Zy(n,i,l){return r=>r<n?0:r>i?1:l(Js(n,i,r))}function z6(n,i,l){const r=ht(n)?n:qi(n);return r.start(Xf("",r,i,l)),r.animation}function Is(n,i,l,r={passive:!0}){return n.addEventListener(i,l,r),()=>n.removeEventListener(i,l)}const D6=(n,i)=>n.depth-i.depth;class k6{constructor(){this.children=[],this.isDirty=!1}add(i){Df(this.children,i),this.isDirty=!0}remove(i){Xr(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(D6),this.isDirty=!1,this.children.forEach(i)}}function R6(n,i){const l=vt.now(),r=({timestamp:u})=>{const d=u-l;d>=i&&(ya(r),n(d-i))};return Ue.setup(r,!0),()=>ya(r)}function Ur(n){return ht(n)?n.get():n}class V6{constructor(){this.members=[]}add(i){Df(this.members,i);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===i||r===this.lead||r===this.prevLead)continue;const u=r.instance;(!u||u.isConnected===!1)&&!r.snapshot&&(Xr(this.members,r),r.unmount())}i.scheduleRender()}remove(i){if(Xr(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 r=this.members[l];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(i,l){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.updateSnapshot(),i.scheduleRender();const{layoutDependency:u}=r.options,{layoutDependency:d}=i.options;(u===void 0||u!==d)&&(i.resumeFrom=r,l&&(r.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root?.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&r.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 Hr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Uu=["","X","Y","Z"],O6=1e3;let _6=0;function Hu(n,i,l,r){const{latestValues:u}=i;u[n]&&(l[n]=u[n],i.setStaticValue(n,0),r&&(r[n]=0))}function Qy(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const l=dy(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",Ue,!(u||d))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&Qy(r)}function Ky({attachResizeListener:n,defaultParent:i,measureScroll:l,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(h={},g=i?.()){this.id=_6++,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(U6),this.nodes.forEach(Z6),this.nodes.forEach(Q6),this.nodes.forEach(H6)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new k6)}addEventListener(h,g){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Rf),this.eventHandlers.get(h).add(g)}notifyListeners(h,...g){const y=this.eventHandlers.get(h);y&&y.notify(...g)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Jf(h)&&!L8(h),this.instance=h;const{layoutId:g,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||g)&&(this.isLayoutDirty=!0),n){let v,b=0;const S=()=>this.root.updateBlockedByResize=!1;Ue.read(()=>{b=window.innerWidth}),n(h,()=>{const T=window.innerWidth;T!==b&&(b=T,this.root.updateBlockedByResize=!0,v&&v(),v=R6(S,250),Hr.hasAnimatedSinceResize&&(Hr.hasAnimatedSinceResize=!1,this.nodes.forEach(S1)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||p.getDefaultTransition()||$6,{onLayoutAnimationStart:M,onLayoutAnimationComplete:O}=p.getProps(),L=!this.targetLayout||!Yy(this.targetLayout,T),q=!b&&S;if(this.options.layoutRoot||this.resumeFrom||q||b&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={...Yf(w,"layout"),onPlay:M,onComplete:O};(p.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(v,q)}else b||S1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ya(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(K6),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:g,layout:y}=this.options;if(g===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),h&&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(G6),this.nodes.forEach(x1);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(b1);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Y6),this.nodes.forEach(X6),this.nodes.forEach(B6),this.nodes.forEach(L6)):this.nodes.forEach(b1),this.clearAllSnapshots();const g=vt.now();dt.delta=xn(0,1e3/60,g-dt.timestamp),dt.timestamp=g,dt.isProcessing=!0,Du.update.process(dt),Du.preRender.process(dt),Du.render.process(dt),dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ff.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(q6),this.sharedNodes.forEach(F6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xt(this.snapshot.measuredBox.x)&&!xt(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 h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=at()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(g=!1),g&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!u)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!Gy(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;h&&this.instance&&(g||qa(this.latestValues)||v)&&(u(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const g=this.measurePageBox();let y=this.removeElementScroll(g);return h&&(y=this.removeTransform(y)),W6(y),{animationId:this.root.animationId,measuredBox:g,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return at();const g=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(I6))){const{scroll:p}=this.root;p&&(yn(g.x,p.offset.x),yn(g.y,p.offset.y))}return g}removeElementScroll(h){const g=at();if(on(g,h),this.scroll?.wasRoot)return g;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:v,options:b}=p;p!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&on(g,h),yn(g.x,v.offset.x),yn(g.y,v.offset.y))}return g}applyTransform(h,g=!1,y){const p=y||at();on(p,h);for(let v=0;v<this.path.length;v++){const b=this.path[v];!g&&b.options.layoutScroll&&b.scroll&&b!==b.root&&(yn(p.x,-b.scroll.offset.x),yn(p.y,-b.scroll.offset.y)),qa(b.latestValues)&&Lr(p,b.latestValues,b.layout?.layoutBox)}return qa(this.latestValues)&&Lr(p,this.latestValues,this.layout?.layoutBox),p}removeTransform(h){const g=at();on(g,h);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!qa(p.latestValues))continue;let v;p.instance&&(bf(p.latestValues)&&p.updateSnapshot(),v=at(),on(v,p.measurePageBox())),u1(g,p.latestValues,p.snapshot?.layoutBox,v)}return qa(this.latestValues)&&u1(g,this.latestValues),g}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==g;if(!(h||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=dt.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=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),b6(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):on(this.target,this.layout.layoutBox),zy(this.target,this.targetDelta)):on(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||bf(this.parent.latestValues)||Ey(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,g,y){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),$r(this.relativeTargetOrigin,g,y,this.options.layoutAnchor||void 0),on(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),g=!!this.resumingFrom||this!==h;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===dt.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;on(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;P8(this.layoutCorrected,this.treeScale,this.path,g),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=at());const{target:T}=h;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(i1(this.prevProjectionDelta.x,this.projectionDelta.x),i1(this.prevProjectionDelta.y,this.projectionDelta.y)),Qs(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!p1(this.projectionDelta.x,this.prevProjectionDelta.x)||!p1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oi(),this.projectionDelta=Oi(),this.projectionDeltaWithTransform=Oi()}setAnimationOrigin(h,g=!1){const y=this.snapshot,p=y?y.latestValues:{},v={...this.latestValues},b=Oi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const S=at(),T=y?y.source:void 0,w=this.layout?this.layout.source:void 0,M=T!==w,O=this.getStack(),L=!O||O.members.length<=1,q=!!(M&&!L&&this.options.crossfade===!0&&!this.path.some(J6));this.animationProgress=0;let Y;this.mixTargetDelta=X=>{const Z=X/1e3;T1(b.x,h.x,Z),T1(b.y,h.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($r(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),P6(this.relativeTarget,this.relativeTargetOrigin,S,Z),Y&&w6(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=at()),on(Y,this.relativeTarget)),M&&(this.animationValues=v,C6(v,p,this.latestValues,Z,q,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ya(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ue.update(()=>{Hr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qi(0)),this.motionValue.jump(0,!1),this.currentAnimation=z6(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),h.onUpdate&&h.onUpdate(g)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(O6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:g,target:y,layout:p,latestValues:v}=h;if(!(!g||!y||!p)){if(this!==h&&this.layout&&p&&Fy(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||at();const b=xt(this.layout.layoutBox.x);y.x.min=h.target.x.min,y.x.max=y.x.min+b;const S=xt(this.layout.layoutBox.y);y.y.min=h.target.y.min,y.y.max=y.y.min+S}on(g,y),Lr(g,v),Qs(this.projectionDeltaWithTransform,this.layoutCorrected,g,v)}}registerSharedNode(h,g){this.sharedNodes.has(h)||this.sharedNodes.set(h,new V6),this.sharedNodes.get(h).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:g,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),h&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let g=!1;const{latestValues:y}=h;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(g=!0),!g)return;const p={};y.z&&Hu("z",h,p,this.animationValues);for(let v=0;v<Uu.length;v++)Hu(`rotate${Uu[v]}`,h,p,this.animationValues),Hu(`skew${Uu[v]}`,h,p,this.animationValues);h.render();for(const v in p)h.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);h.scheduleRender()}applyProjectionStyles(h,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Ur(g?.pointerEvents)||"",h.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Ur(g?.pointerEvents)||""),this.hasProjected&&!qa(this.latestValues)&&(h.transform=y?y({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=A6(this.projectionDeltaWithTransform,this.treeScale,v);y&&(b=y(v,b)),h.transform=b;const{x:S,y:T}=this.projectionDelta;h.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,p.animationValues?h.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const w in Tf){if(v[w]===void 0)continue;const{correct:M,applyTo:O,isCSSVariable:L}=Tf[w],q=b==="none"?v[w]:M(v[w],p);if(O){const Y=O.length;for(let X=0;X<Y;X++)h[O[X]]=q}else L?this.options.visualElement.renderState.vars[w]=q:h[w]=q}this.options.layoutId&&(h.pointerEvents=p===this?Ur(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(x1),this.root.sharedNodes.clear()}}}function B6(n){n.updateLayout()}function L6(n){const i=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:r}=n.layout,{animationType:u}=n.options,d=i.source!==n.layout.source;if(u==="size")gn(v=>{const b=d?i.measuredBox[v]:i.layoutBox[v],S=xt(b);b.min=l[v].min,b.max=b.min+S});else if(u==="x"||u==="y"){const v=u==="x"?"y":"x";jf(d?i.measuredBox[v]:i.layoutBox[v],l[v])}else Fy(u,i.layoutBox,l)&&gn(v=>{const b=d?i.measuredBox[v]:i.layoutBox[v],S=xt(l[v]);b.max=b.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+S)});const h=Oi();Qs(h,l,i.layoutBox);const g=Oi();d?Qs(g,n.applyTransform(r,!0),i.measuredBox):Qs(g,l,i.layoutBox);const y=!Gy(h);let p=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:S}=v;if(b&&S){const T=n.options.layoutAnchor||void 0,w=at();$r(w,i.layoutBox,b.layoutBox,T);const M=at();$r(M,l,S.layoutBox,T),Yy(w,M)||(p=!0),v.options.layoutRoot&&(n.relativeTarget=M,n.relativeTargetOrigin=w,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:g,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function U6(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function H6(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function q6(n){n.clearSnapshot()}function x1(n){n.clearMeasurements()}function G6(n){n.isLayoutDirty=!0,n.updateLayout()}function b1(n){n.isLayoutDirty=!1}function Y6(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function X6(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function S1(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function Z6(n){n.resolveTargetDelta()}function Q6(n){n.calcProjection()}function K6(n){n.resetSkewAndRotation()}function F6(n){n.removeLeadSnapshot()}function T1(n,i,l){n.translate=Ge(i.translate,0,l),n.scale=Ge(i.scale,1,l),n.origin=i.origin,n.originPoint=i.originPoint}function j1(n,i,l,r){n.min=Ge(i.min,l.min,r),n.max=Ge(i.max,l.max,r)}function P6(n,i,l,r){j1(n.x,i.x,l.x,r),j1(n.y,i.y,l.y,r)}function J6(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const $6={duration:.45,ease:[.4,0,.1,1]},w1=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),A1=w1("applewebkit/")&&!w1("chrome/")?Math.round:It;function N1(n){n.min=A1(n.min),n.max=A1(n.max)}function W6(n){N1(n.x),N1(n.y)}function Fy(n,i,l){return n==="position"||n==="preserve-aspect"&&!x6(m1(i),m1(l),.2)}function I6(n){return n!==n.root&&n.scroll?.wasRoot}const eS=Ky({attachResizeListener:(n,i)=>Is(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),qu={current:void 0},Py=Ky({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!qu.current){const n=new eS({});n.mount(window),n.setOptions({layoutScroll:!0}),qu.current=n}return qu.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),Jy=k.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function tS(n=!0){const i=k.useContext(zf);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:u}=i,d=k.useId();k.useEffect(()=>{if(n)return u(d)},[n]);const h=k.useCallback(()=>n&&r&&r(d),[d,r,n]);return!l&&r?[!1,h]:[!0]}const $y=k.createContext({strict:!1}),C1={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 M1=!1;function nS(){if(M1)return;const n={};for(const i in C1)n[i]={isEnabled:l=>C1[i].some(r=>!!l[r])};Ny(n),M1=!0}function Wy(){return nS(),Z8()}function aS(n){const i=Wy();for(const l in n)i[l]={...i[l],...n[l]};Ny(i)}const iS=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 Wr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||iS.has(n)}let Iy=n=>!Wr(n);function sS(n){typeof n=="function"&&(Iy=i=>i.startsWith("on")?!Wr(i):n(i))}try{sS(require("@emotion/is-prop-valid").default)}catch{}function lS(n,i,l){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||ht(n[u])||(Iy(u)||l===!0&&Wr(u)||!i&&!Wr(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}const io=k.createContext({});function rS(n,i){if(ao(n)){const{initial:l,animate:r}=n;return{initial:l===!1||Ws(l)?l:void 0,animate:Ws(r)?r:void 0}}return n.inherit!==!1?i:{}}function oS(n){const{initial:i,animate:l}=rS(n,k.useContext(io));return k.useMemo(()=>({initial:i,animate:l}),[E1(i),E1(l)])}function E1(n){return Array.isArray(n)?n.join(" "):n}const td=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e2(n,i,l){for(const r in i)!ht(i[r])&&!Ry(r,l)&&(n[r]=i[r])}function cS({transformTemplate:n},i){return k.useMemo(()=>{const l=td();return If(l,i,n),Object.assign({},l.vars,l.style)},[i])}function uS(n,i){const l=n.style||{},r={};return e2(r,l,n),Object.assign(r,cS(n,i)),r}function fS(n,i){const l={},r=uS(n,i);return n.drag&&n.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(l.tabIndex=0),l.style=r,l}const t2=()=>({...td(),attrs:{}});function dS(n,i,l,r){const u=k.useMemo(()=>{const d=t2();return Vy(d,i,_y(r),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[i]);if(n.style){const d={};e2(d,n.style,n),u.style={...d,...u.style}}return u}const hS=["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 nd(n){return typeof n!="string"||n.includes("-")?!1:!!(hS.indexOf(n)>-1||/[A-Z]/u.test(n))}function mS(n,i,l,{latestValues:r},u,d=!1,h){const y=(h??nd(n)?dS:fS)(i,r,u,n),p=lS(i,typeof n=="string",d),v=n!==k.Fragment?{...p,...y,ref:l}:{},{children:b}=i,S=k.useMemo(()=>ht(b)?b.get():b,[b]);return k.createElement(n,{...v,children:S})}function pS({scrapeMotionValuesFromProps:n,createRenderState:i},l,r,u){return{latestValues:gS(l,r,u,n),renderState:i()}}function gS(n,i,l,r){const u={},d=r(n,{});for(const S in d)u[S]=Ur(d[S]);let{initial:h,animate:g}=n;const y=ao(n),p=wy(n);i&&p&&!y&&n.inherit!==!1&&(h===void 0&&(h=i.initial),g===void 0&&(g=i.animate));let v=l?l.initial===!1:!1;v=v||h===!1;const b=v?g:h;if(b&&typeof b!="boolean"&&!no(b)){const S=Array.isArray(b)?b:[b];for(let T=0;T<S.length;T++){const w=Zf(n,S[T]);if(w){const{transitionEnd:M,transition:O,...L}=w;for(const q in L){let Y=L[q];if(Array.isArray(Y)){const X=v?Y.length-1:0;Y=Y[X]}Y!==null&&(u[q]=Y)}for(const q in M)u[q]=M[q]}}}return u}const n2=n=>(i,l)=>{const r=k.useContext(io),u=k.useContext(zf),d=()=>pS(n,i,r,u);return l?d():h5(d)},yS=n2({scrapeMotionValuesFromProps:ed,createRenderState:td}),vS=n2({scrapeMotionValuesFromProps:By,createRenderState:t2}),xS=Symbol.for("motionComponentSymbol");function bS(n,i,l){const r=k.useRef(l);k.useInsertionEffect(()=>{r.current=l});const u=k.useRef(null);return k.useCallback(d=>{d&&n.onMount?.(d);const h=r.current;if(typeof h=="function")if(d){const g=h(d);typeof g=="function"&&(u.current=g)}else u.current?(u.current(),u.current=null):h(d);else h&&(h.current=d);i&&(d?i.mount(d):i.unmount())},[i])}const a2=k.createContext({});function ki(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function SS(n,i,l,r,u,d){const{visualElement:h}=k.useContext(io),g=k.useContext($y),y=k.useContext(zf),p=k.useContext(Jy),v=p.reducedMotion,b=p.skipAnimations,S=k.useRef(null),T=k.useRef(!1);r=r||g.renderer,!S.current&&r&&(S.current=r(n,{visualState:i,parent:h,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:d}),T.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const w=S.current,M=k.useContext(a2);w&&!w.projection&&u&&(w.type==="html"||w.type==="svg")&&TS(S.current,l,u,M);const O=k.useRef(!1);k.useInsertionEffect(()=>{w&&O.current&&w.update(l,y)});const L=l[fy],q=k.useRef(!!L&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(L)&&window.MotionHasOptimisedAnimation?.(L));return p5(()=>{T.current=!0,w&&(O.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),q.current&&w.animationState&&w.animationState.animateChanges())}),k.useEffect(()=>{w&&(!q.current&&w.animationState&&w.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(L)}),q.current=!1),w.enteringChildren=void 0)}),w}function TS(n,i,l,r){const{layoutId:u,layout:d,drag:h,dragConstraints:g,layoutScroll:y,layoutRoot:p,layoutAnchor:v,layoutCrossfade:b}=i;n.projection=new l(n.latestValues,i["data-framer-portal-id"]?void 0:i2(n.parent)),n.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!h||g&&ki(g),visualElement:n,animationType:typeof d=="string"?d:"both",initialPromotionConfig:r,crossfade:b,layoutScroll:y,layoutRoot:p,layoutAnchor:v})}function i2(n){if(n)return n.options.allowProjection!==!1?n.projection:i2(n.parent)}function Gu(n,{forwardMotionProps:i=!1,type:l}={},r,u){r&&aS(r);const d=l?l==="svg":nd(n),h=d?vS:yS;function g(p,v){let b;const S={...k.useContext(Jy),...p,layoutId:jS(p)},{isStatic:T}=S,w=oS(p),M=h(p,T);if(!T&&typeof window<"u"){wS();const O=AS(S);b=O.MeasureLayout,w.visualElement=SS(n,M,S,u,O.ProjectionNode,d)}return f.jsxs(io.Provider,{value:w,children:[b&&w.visualElement?f.jsx(b,{visualElement:w.visualElement,...S}):null,mS(n,p,bS(M,w.visualElement,v),M,T,i,d)]})}g.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const y=k.forwardRef(g);return y[xS]=n,y}function jS({layoutId:n}){const i=k.useContext(jg).id;return i&&n!==void 0?i+"-"+n:n}function wS(n,i){k.useContext($y).strict}function AS(n){const i=Wy(),{drag:l,layout:r}=i;if(!l&&!r)return{};const u={...l,...r};return{MeasureLayout:l?.isEnabled(n)||r?.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function NS(n,i){if(typeof Proxy>"u")return Gu;const l=new Map,r=(d,h)=>Gu(d,h,n,i),u=(d,h)=>r(d,h);return new Proxy(u,{get:(d,h)=>h==="create"?r:(l.has(h)||l.set(h,Gu(h,void 0,n,i)),l.get(h))})}const CS=(n,i)=>i.isSVG??nd(n)?new o6(i):new n6(i,{allowProjection:n!==k.Fragment});class MS extends xa{constructor(i){super(i),i.animationState||(i.animationState=h6(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();no(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 ES=0;class zS extends xa{constructor(){super(...arguments),this.id=ES++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;if(i&&r===!1){if(this.isExitComplete){const{initial:d,custom:h}=this.node.getProps();if(typeof d=="string"){const g=Za(this.node,d,h);if(g){const{transition:y,transitionEnd:p,...v}=g;for(const b in v)this.node.getValue(b)?.jump(v[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const u=this.node.animationState.setActive("exit",!i);l&&!i&&u.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 DS={animation:{Feature:MS},exit:{Feature:zS}};function ll(n){return{point:{x:n.pageX,y:n.pageY}}}const kS=n=>i=>Pf(i)&&n(i,ll(i));function Ks(n,i,l,r){return Is(n,i,kS(l),r)}const s2=({current:n})=>n?n.ownerDocument.defaultView:null,z1=(n,i)=>Math.abs(n-i);function RS(n,i){const l=z1(n.x,i.x),r=z1(n.y,i.y);return Math.sqrt(l**2+r**2)}const D1=new Set(["auto","scroll"]);class l2{constructor(i,l,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=T=>{this.handleScroll(T.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Mr(this.lastRawMoveEventInfo,this.transformPagePoint));const T=Yu(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,M=RS(T.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!M)return;const{point:O}=T,{timestamp:L}=dt;this.history.push({...O,timestamp:L});const{onStart:q,onMove:Y}=this.handlers;w||(q&&q(this.lastMoveEvent,T),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,T)},this.handlePointerMove=(T,w)=>{this.lastMoveEvent=T,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Mr(w,this.transformPagePoint),Ue.update(this.updatePoint,!0)},this.handlePointerUp=(T,w)=>{this.end();const{onEnd:M,onSessionEnd:O,resumeAnimation:L}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Yu(T.type==="pointercancel"?this.lastMoveEventInfo:Mr(w,this.transformPagePoint),this.history);this.startEvent&&M&&M(T,q),O&&O(T,q)},!Pf(i))return;this.dragSnapToOrigin=d,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=u||window;const y=ll(i),p=Mr(y,this.transformPagePoint),{point:v}=p,{timestamp:b}=dt;this.history=[{...v,timestamp:b}];const{onSessionStart:S}=l;S&&S(i,Yu(p,this.history)),this.removeListeners=al(Ks(this.contextWindow,"pointermove",this.handlePointerMove),Ks(this.contextWindow,"pointerup",this.handlePointerUp),Ks(this.contextWindow,"pointercancel",this.handlePointerUp)),g&&this.startScrollTracking(g)}startScrollTracking(i){let l=i.parentElement;for(;l;){const r=getComputedStyle(l);(D1.has(r.overflowX)||D1.has(r.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 r=i===window,u=r?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},d={x:u.x-l.x,y:u.y-l.y};d.x===0&&d.y===0||(r?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,u),Ue.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ya(this.updatePoint)}}function Mr(n,i){return i?{point:i(n.point)}:n}function k1(n,i){return{x:n.x-i.x,y:n.y-i.y}}function Yu({point:n},i){return{point:n,delta:k1(n,r2(i)),offset:k1(n,VS(i)),velocity:OS(i,.1)}}function VS(n){return n[0]}function r2(n){return n[n.length-1]}function OS(n,i){if(n.length<2)return{x:0,y:0};let l=n.length-1,r=null;const u=r2(n);for(;l>=0&&(r=n[l],!(u.timestamp-r.timestamp>Lt(i)));)l--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&u.timestamp-r.timestamp>Lt(i)*2&&(r=n[1]);const d=$t(u.timestamp-r.timestamp);if(d===0)return{x:0,y:0};const h={x:(u.x-r.x)/d,y:(u.y-r.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function _S(n,{min:i,max:l},r){return i!==void 0&&n<i?n=r?Ge(i,n,r.min):Math.max(n,i):l!==void 0&&n>l&&(n=r?Ge(l,n,r.max):Math.min(n,l)),n}function R1(n,i,l){return{min:i!==void 0?n.min+i:void 0,max:l!==void 0?n.max+l-(n.max-n.min):void 0}}function BS(n,{top:i,left:l,bottom:r,right:u}){return{x:R1(n.x,l,u),y:R1(n.y,i,r)}}function V1(n,i){let l=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([l,r]=[r,l]),{min:l,max:r}}function LS(n,i){return{x:V1(n.x,i.x),y:V1(n.y,i.y)}}function US(n,i){let l=.5;const r=xt(n),u=xt(i);return u>r?l=Js(i.min,i.max-r,n.min):r>u&&(l=Js(n.min,n.max-u,i.min)),xn(0,1,l)}function HS(n,i){const l={};return i.min!==void 0&&(l.min=i.min-n.min),i.max!==void 0&&(l.max=i.max-n.min),l}const wf=.35;function qS(n=wf){return n===!1?n=0:n===!0&&(n=wf),{x:O1(n,"left","right"),y:O1(n,"top","bottom")}}function O1(n,i,l){return{min:_1(n,i),max:_1(n,l)}}function _1(n,i){return typeof n=="number"?n:n[i]||0}const GS=new WeakMap;class YS{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=at(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const d=b=>{l&&this.snapToCursor(ll(b).point),this.stopAnimation()},h=(b,S)=>{const{drag:T,dragPropagation:w,onDragStart:M}=this.getProps();if(T&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=S8(T),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gn(L=>{let q=this.getAxisMotionValue(L).get()||0;if(vn.test(q)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const X=Y.layout.layoutBox[L];X&&(q=xt(X)*(parseFloat(q)/100))}}this.originPoint[L]=q}),M&&Ue.update(()=>M(b,S),!1,!0),pf(this.visualElement,"transform");const{animationState:O}=this.visualElement;O&&O.setActive("whileDrag",!0)},g=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:w,onDirectionLock:M,onDrag:O}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:L}=S;if(w&&this.currentDirection===null){this.currentDirection=ZS(L),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",S.point,L),this.updateAxis("y",S.point,L),this.visualElement.render(),O&&Ue.update(()=>O(b,S),!1,!0)},y=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new l2(i,{onSessionStart:d,onStart:h,onMove:g,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:s2(this.visualElement),element:this.visualElement.current})}stop(i,l){const r=i||this.latestPointerEvent,u=l||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!u||!r)return;const{velocity:h}=u;this.startAnimation(h);const{onDragEnd:g}=this.getProps();g&&Ue.postRender(()=>g(r,u))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&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,r){const{drag:u}=this.getProps();if(!r||!Er(i,u,this.currentDirection))return;const d=this.getAxisMotionValue(i);let h=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(h=_S(h,this.constraints[i],this.elastic[i])),d.set(h)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,u=this.constraints;i&&ki(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=BS(r.layoutBox,i):this.constraints=!1,this.elastic=qS(l),u!==this.constraints&&!ki(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&gn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=HS(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!ki(i))return!1;const r=i.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=J8(r,u.root,this.visualElement.getTransformPagePoint());let h=LS(u.layout.layoutBox,d);if(l){const g=l(K8(h));this.hasMutatedConstraints=!!g,g&&(h=My(g))}return h}startAnimation(i){const{drag:l,dragMomentum:r,dragElastic:u,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:g}=this.getProps(),y=this.constraints||{},p=gn(v=>{if(!Er(v,l,this.currentDirection))return;let b=y&&y[v]||{};(h===!0||h===v)&&(b={min:0,max:0});const S=u?200:1e6,T=u?40:1e7,w={type:"inertia",velocity:r?i[v]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(v,w)});return Promise.all(p).then(g)}startAxisValueAnimation(i,l){const r=this.getAxisMotionValue(i);return pf(this.visualElement,i),r.start(Xf(i,r,0,l,this.visualElement,!1))}stopAnimation(){gn(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),u=r[l];return u||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){gn(l=>{const{drag:r}=this.getProps();if(!Er(l,r,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(l);if(u&&u.layout){const{min:h,max:g}=u.layout.layoutBox[l],y=d.get()||0;d.set(i[l]-Ge(h,g,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!ki(l)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};gn(h=>{const g=this.getAxisMotionValue(h);if(g&&this.constraints!==!1){const y=g.get();u[h]=US({min:y,max:y},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),gn(h=>{if(!Er(h,i,null))return;const g=this.getAxisMotionValue(h),{min:y,max:p}=this.constraints[h];g.set(Ge(y,p,u[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;GS.set(this.visualElement,this);const i=this.visualElement.current,l=Ks(i,"pointerdown",p=>{const{drag:v,dragListener:b=!0}=this.getProps(),S=p.target,T=S!==i&&C8(S);v&&b&&!T&&this.start(p)});let r;const u=()=>{const{dragConstraints:p}=this.getProps();ki(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=XS(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",u);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Ue.read(u);const g=Is(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(gn(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=p[b].translate,S.set(S.get()+p[b].translate))}),this.visualElement.render())}));return()=>{g(),l(),h(),y&&y(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:h=wf,dragMomentum:g=!0}=i;return{...i,drag:l,dragDirectionLock:r,dragPropagation:u,dragConstraints:d,dragElastic:h,dragMomentum:g}}}function B1(n){let i=!0;return()=>{if(i){i=!1;return}n()}}function XS(n,i,l){const r=Qp(n,B1(l)),u=Qp(i,B1(l));return()=>{r(),u()}}function Er(n,i,l){return(i===!0||i===n)&&(l===null||l===n)}function ZS(n,i=10){let l=null;return Math.abs(n.y)>i?l="y":Math.abs(n.x)>i&&(l="x"),l}class QS extends xa{constructor(i){super(i),this.removeGroupControls=It,this.removeListeners=It,this.controls=new YS(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||It}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 Xu=n=>(i,l)=>{n&&Ue.update(()=>n(i,l),!1,!0)};class KS extends xa{constructor(){super(...arguments),this.removePointerDownListener=It}onPointerDown(i){this.session=new l2(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s2(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:Xu(i),onStart:Xu(l),onMove:Xu(r),onEnd:(d,h)=>{delete this.session,u&&Ue.postRender(()=>u(d,h))}}}mount(){this.removePointerDownListener=Ks(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 Zu=!1;class FS extends k.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r,layoutId:u}=this.props,{projection:d}=i;d&&(l.group&&l.group.add(d),r&&r.register&&u&&r.register(d),Zu&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:r,drag:u,isPresent:d}=this.props,{projection:h}=r;return h&&(h.isPresent=d,i.layoutDependency!==l&&h.setOptions({...h.options,layoutDependency:l}),Zu=!0,u||i.layoutDependency!==l||l===void 0||i.isPresent!==d?h.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?h.promote():h.relegate()||Ue.postRender(()=>{const g=h.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:l}=this.props,{projection:r}=i;r&&(r.options.layoutAnchor=l,r.root.didUpdate(),Ff.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:u}=i;Zu=!0,u&&(u.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function o2(n){const[i,l]=tS(),r=k.useContext(jg);return f.jsx(FS,{...n,layoutGroup:r,switchLayoutGroup:k.useContext(a2),isPresent:i,safeToRemove:l})}const PS={pan:{Feature:KS},drag:{Feature:QS,ProjectionNode:Py,MeasureLayout:o2}};function L1(n,i,l){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",l==="Start");const u="onHover"+l,d=r[u];d&&Ue.postRender(()=>d(i,ll(i)))}class JS extends xa{mount(){const{current:i}=this.node;i&&(this.unmount=j8(i,(l,r)=>(L1(this.node,r,"Start"),u=>L1(this.node,u,"End"))))}unmount(){}}class $S extends xa{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=al(Is(this.node.current,"focus",()=>this.onFocus()),Is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function U1(n,i,l){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",l==="Start");const u="onTap"+(l==="End"?"":l),d=r[u];d&&Ue.postRender(()=>d(i,ll(i)))}class WS extends xa{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=E8(i,(u,d)=>(U1(this.node,d,"Start"),(h,{success:g})=>U1(this.node,h,g?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const Af=new WeakMap,Qu=new WeakMap,IS=n=>{const i=Af.get(n.target);i&&i(n)},e7=n=>{n.forEach(IS)};function t7({root:n,...i}){const l=n||document;Qu.has(l)||Qu.set(l,{});const r=Qu.get(l),u=JSON.stringify(i);return r[u]||(r[u]=new IntersectionObserver(e7,{root:n,...i})),r[u]}function n7(n,i,l){const r=t7(i);return Af.set(n,l),r.observe(n),()=>{Af.delete(n),r.unobserve(n)}}const a7={some:0,all:1};class i7 extends xa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:i={}}=this.node.getProps(),{root:l,margin:r,amount:u="some",once:d}=i,h={root:l?l.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:a7[u]},g=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:b}=this.node.getProps(),S=p?v:b;S&&S(y)};this.stopObserver=n7(this.node.current,h,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(s7(i,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function s7({viewport:n={}},{viewport:i={}}={}){return l=>n[l]!==i[l]}const l7={inView:{Feature:i7},tap:{Feature:WS},focus:{Feature:$S},hover:{Feature:JS}},r7={layout:{ProjectionNode:Py,MeasureLayout:o2}},o7={...DS,...l7,...PS,...r7},Ku=NS(o7,CS),gt=({label:n,children:i,variant:l="primary",size:r="medium",icon:u,onClick:d,removable:h=!1,className:g,maxWidth:y,appearance:p,onRemove:v,isLoading:b=!1})=>{const S=c7(l),T=p??(l==="outline"?"outline":"solid"),w=n??i,M=!!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"},q=X=>{X.stopPropagation(),d?.()},Y=X=>{X.stopPropagation(),v?.()};return f.jsxs(Ku.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:M?1.04:1,backgroundColor:M&&S==="primary"?"#111111d1":void 0,transition:{duration:.2,ease:"easeInOut",type:"spring"}},onClick:q,style:{maxWidth:y},className:he("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][T],L[r],M&&"cursor-pointer",g),children:[b?f.jsx(Ku.div,{animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},className:"flex-shrink-0",children:f.jsx(tg,{className:"size-3.5"})}):u&&f.jsx("span",{className:"flex-shrink-0",children:u}),f.jsx("span",{className:"min-w-0 truncate",children:w}),h&&f.jsx(Ku.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:f.jsx(eo,{className:"size-3.5"})})]})};function c7(n){return n==="danger"?"error":n==="default"||n==="outline"?"primary":n}const u7=og("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 en({className:n,variant:i,...l}){return f.jsx("div",{className:he(u7({variant:i,className:n})),...l})}function _i({className:n,...i}){return f.jsx("div",{className:he("rounded-lg border border-border bg-card text-card-foreground",n),...i})}function Bi({className:n,...i}){return f.jsx("div",{className:he("grid gap-1.5 p-4",n),...i})}function Li({className:n,...i}){return f.jsx("h3",{className:he("text-sm font-semibold tracking-tight",n),...i})}function Fs({className:n,...i}){return f.jsx("p",{className:he("text-sm text-muted-foreground",n),...i})}function Ui({className:n,...i}){return f.jsx("div",{className:he("p-4 pt-0",n),...i})}const f7=[{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%)"}],d7=({size:n=20,color:i="#8f8f8f"})=>f.jsx("div",{style:{width:n,height:n},children:f.jsx("div",{className:"relative left-1/2 top-1/2",style:{width:n,height:n},children:f7.map(l=>f.jsx("div",{className:"absolute -left-[10%] -top-[3.9%] h-[8%] w-[24%] animate-fade-spin rounded-[5px]",style:{backgroundColor:i,...l}},l.transform))})}),h7=[{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"}],m7={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"},p7={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]"}},zr=({size:n="medium",type:i="primary",variant:l="styled",shape:r="square",svgOnly:u=!1,children:d,prefix:h,suffix:g,shadow:y=!1,loading:p=!1,disabled:v=!1,fullWidth:b=!1,className:S,...T})=>f.jsxs("button",{disabled:v,tabIndex:0,className:Ps("flex items-center justify-center gap-0.5 duration-150",h7[+u][n],v||p?"cursor-not-allowed border border-gray-400 bg-gray-100 text-gray-700":m7[i],p7[r][n],y&&"shadow-border-small border-none",b&&"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",...T,children:[p?f.jsx(d7,{size:n==="large"?24:16}):h,f.jsx("span",{className:Ps("relative overflow-hidden overflow-ellipsis whitespace-nowrap font-sans",n!=="tiny"&&l!=="unstyled"&&"px-1.5"),children:d}),!p&&g]}),g7=({className:n})=>f.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:n,children:f.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"})}),y7=()=>f.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:"fill-gray-1000",children:f.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 Fu=null,v7=0;const et={toasts:[],listeners:new Set,add(n,i,l,r,u,d){const h=v7++,g={id:h,text:n,preserve:l,action:r,onAction:u,onUndoAction:d,type:i};if(!g.preserve){g.remaining=3e3,g.start=Date.now();const y=()=>{this.toasts=this.toasts.filter(p=>p.id!==h),this.notify()};g.timeout=setTimeout(y,g.remaining),g.pause=()=>{g.timeout&&(clearTimeout(g.timeout),g.timeout=void 0,g.remaining-=Date.now()-g.start)},g.resume=()=>{g.timeout||(g.start=Date.now(),g.timeout=setTimeout(y,g.remaining))}}this.toasts.push(g),this.notify()},remove(n){et.toasts=et.toasts.filter(i=>i.id!==n),et.notify()},subscribe(n){return et.listeners.add(n),()=>{et.listeners.delete(n)}},notify(){et.listeners.forEach(n=>n())}},x7=()=>{const[n,i]=k.useState([]),[l,r]=k.useState([]),[u,d]=k.useState(!1),h=w=>M=>{M&&w.measuredHeight==null&&(w.measuredHeight=M.getBoundingClientRect().height,et.notify())};k.useEffect(()=>(i([...et.toasts]),et.subscribe(()=>{i([...et.toasts])})),[]),k.useEffect(()=>{const w=n.filter(M=>!l.includes(M.id)).map(M=>M.id);w.length>0&&requestAnimationFrame(()=>{r(M=>[...M,...w])})},[l,n]);const y=Math.max(0,n.length-3),p=(w,M)=>{if(w===M-1)return"none";const O=M-1-w;let L=n[M-1]?.measuredHeight||63;for(let X=M-1;X>w;X--)u?L+=(n[X-1]?.measuredHeight||63)+10:L+=20;const q=-O,Y=u?1:1-.05*O;return`translate3d(0, calc(100% - ${L}px), ${q}px) scale(${Y})`},v=()=>{d(!0),et.toasts.forEach(w=>w.pause?.())},b=()=>{d(!1),et.toasts.forEach(w=>w.resume?.())},T=n.slice(y).reduce((w,M)=>w+(M.measuredHeight??63),0);return f.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[9999] w-[min(420px,calc(100vw-2rem))]",style:{height:T},children:f.jsx("div",{className:"pointer-events-auto relative w-full",style:{height:T},onMouseEnter:v,onMouseLeave:b,children:n.map((w,M)=>{const O=M>=y;return f.jsx("div",{ref:h(w),className:Ps("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"}[w.type],O?"opacity-100":"opacity-0",M<y&&"pointer-events-none"),style:{width:"100%",transition:"all .35s cubic-bezier(.25,.75,.6,.98)",transform:l.includes(w.id)?p(M,n.length):"translate3d(0, 100%, 150px) scale(1)"},children:f.jsxs("div",{className:"flex flex-col items-center justify-between text-[.875rem]",children:[f.jsxs("div",{className:"flex h-full w-full items-center justify-between gap-4",children:[f.jsx("span",{children:w.text}),!w.action&&f.jsxs("div",{className:"flex gap-1",children:[w.onUndoAction&&f.jsx(zr,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>{w.onUndoAction?.(),et.remove(w.id)},children:f.jsx(y7,{})}),f.jsx(zr,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>et.remove(w.id),children:f.jsx(g7,{className:{message:"fill-gray-1000",success:"fill-contrast-fg",warning:"fill-gray-1000 dark:fill-gray-100",error:"fill-contrast-fg"}[w.type]})})]})]}),w.action&&f.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[f.jsx(zr,{type:"tertiary",size:"small",onClick:()=>et.remove(w.id),children:"Dismiss"}),f.jsx(zr,{type:"primary",size:"small",onClick:()=>{w.onAction?.(),et.remove(w.id)},children:w.action})]})]})},w.id)})})})},Dr=()=>{if(Fu)return;const n=document.createElement("div");n.className="fixed bottom-4 right-4 z-[9999]",document.body.appendChild(n),Fu=P1.createRoot(n),Fu.render(f.jsx(x7,{}))},ba=()=>({message:k.useCallback(({text:n,preserve:i,action:l,onAction:r,onUndoAction:u})=>{Dr(),et.add(n,"message",i,l,r,u)},[]),success:k.useCallback(n=>{Dr(),et.add(n,"success")},[]),warning:k.useCallback(n=>{Dr(),et.add(n,"warning")},[]),error:k.useCallback(n=>{Dr(),et.add(n,"error")},[])});var c2=F1();function pt({className:n,type:i,...l}){return f.jsx("input",{type:i,className:he("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",n),...l})}function Jt({className:n,...i}){return f.jsx("label",{className:he("grid gap-1.5 text-xs font-medium text-muted-foreground",n),...i})}const tn='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',nn='</title><path d="',an='"/></svg>',b7={title:".NET",slug:"dotnet",get svg(){return tn+".NET"+nn+this.path+an},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"}},S7={title:"Bun",slug:"bun",get svg(){return tn+"Bun"+nn+this.path+an},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"},T7={title:"Deno",slug:"deno",get svg(){return tn+"Deno"+nn+this.path+an},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"}},j7={title:"Docker",slug:"docker",get svg(){return tn+"Docker"+nn+this.path+an},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"},w7={title:"Go",slug:"go",get svg(){return tn+"Go"+nn+this.path+an},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"},A7={title:"Node.js",slug:"nodedotjs",get svg(){return tn+"Node.js"+nn+this.path+an},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"},N7={title:"npm",slug:"npm",get svg(){return tn+"npm"+nn+this.path+an},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"},C7={title:"pnpm",slug:"pnpm",get svg(){return tn+"pnpm"+nn+this.path+an},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"},M7={title:"Python",slug:"python",get svg(){return tn+"Python"+nn+this.path+an},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/"},H1={title:"Rust",slug:"rust",get svg(){return tn+"Rust"+nn+this.path+an},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"}},E7={title:"Vite",slug:"vite",get svg(){return tn+"Vite"+nn+this.path+an},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"},z7={title:"Yarn",slug:"yarn",get svg(){return tn+"Yarn"+nn+this.path+an},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 D7(n){const i=n.toLowerCase();return/\bvite\b/.test(i)?Ct.vite:/\bcargo\s+/.test(i)?Ct.cargo:/\brustc\b/.test(i)?Ct.rust:/\bdotnet\b/.test(i)?Ct.dotnet:/\bdocker(?:\s+compose|-compose|\s+)/.test(i)?Ct.docker:/\bpython3?\b|\buvicorn\b|\bfastapi\b/.test(i)?Ct.python:/\bgo\s+(run|test|build)\b|\bair\b/.test(i)?Ct.go:/\bbun\b/.test(i)?Ct.bun:/\bdeno\b/.test(i)?Ct.deno:/\bpnpm\b/.test(i)?Ct.pnpm:/\byarn\b/.test(i)?Ct.yarn:/\bnpm\b/.test(i)?Ct.npm:/\bnode\b/.test(i)?Ct.node:Ct.generic}const Ct={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 ad({command:n,compact:i}){const l=D7(n),r=k7[l.kind];return f.jsx("span",{"aria-label":`${l.label} process`,className:he("inline-flex shrink-0 items-center justify-center rounded-md border bg-white shadow-sm",i?"size-6":"size-7",r?"border-zinc-200":"border-zinc-300 bg-zinc-100 text-zinc-700"),style:r?{color:`#${r.hex}`}:void 0,title:l.label,children:r?f.jsx("svg",{"aria-hidden":"true",className:i?"size-3.5":"size-4",fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:f.jsx("path",{d:r.path})}):f.jsx(sg,{className:i?"size-3.5":"size-4"})})}const k7={bun:S7,cargo:H1,deno:T7,dotnet:b7,docker:j7,generic:null,go:w7,node:A7,npm:N7,pnpm:C7,python:M7,rust:H1,vite:E7,yarn:z7};function u2({active:n,baseUrl:i,onRefresh:l,restartAction:r,targetLabel:u}){return n?f.jsxs(f.Fragment,{children:[f.jsx(Pu,{intent:"restart",icon:f.jsx(t3,{}),label:"Restart",action:r,targetLabel:u,url:`${i}/restart`,onRefresh:l}),f.jsx(Pu,{intent:"stop",icon:f.jsx(ig,{}),label:"Stop",targetLabel:u,url:`${i}/stop`,onRefresh:l})]}):f.jsx(Pu,{intent:"start",icon:f.jsx(ng,{}),label:"Start",targetLabel:u,url:`${i}/start`,onRefresh:l})}function el(n,i,l){const r=l instanceof Error?l.message:String(l);return`${n} failed for ${i}: ${r}`}function Pu({action:n,intent:i="neutral",icon:l,label:r,targetLabel:u,url:d,onRefresh:h}){const[g,y]=k.useState(!1),[p,v]=k.useState(null),{error:b,success:S}=ba();async function T(w={}){y(!0);try{n?await n():await Wt(d,w),S(`${r} requested for ${u}.`),await h(),v(null)}catch(M){M instanceof lg?v(M.conflict):b(el(r,u,M))}finally{y(!1)}}return f.jsxs(f.Fragment,{children:[f.jsxs(ge,{className:V7[i],variant:"outline",size:"sm",disabled:g,onClick:()=>T(),children:[l,r]}),p?f.jsx(R7,{busy:g,conflict:p,onCancel:()=>v(null),onKillAndStart:()=>T({strategy:"killHolder"}),targetLabel:u}):null]})}function R7({busy:n,conflict:i,onCancel:l,onKillAndStart:r,targetLabel:u}){const d=i.holder,h=`http://localhost:${i.port}/`;return f.jsx(tl,{icon:f.jsx(m3,{}),onClose:n?()=>{}:l,title:`Port ${i.port} is already in use`,children:f.jsxs("div",{className:"space-y-3 p-4 text-sm",children:[f.jsxs("p",{children:[f.jsx("span",{className:"font-medium",children:u})," wants port"," ",f.jsx("span",{className:"font-mono",children:i.port}),", but it's already held by:"]}),f.jsx("pre",{className:"overflow-auto whitespace-pre-wrap rounded border border-border bg-background p-3 font-mono text-xs",children:d?`pid ${d.pid}${d.pgid?` (pgid ${d.pgid})`:""}
10
- ${d.command}`:"unknown process"}),f.jsxs("div",{className:"flex flex-wrap justify-end gap-2 pt-2",children:[f.jsx(ge,{onClick:l,size:"sm",type:"button",variant:"outline",disabled:n,children:"Cancel"}),f.jsxs(ge,{onClick:()=>window.open(h,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",disabled:n,children:[f.jsx(eg,{}),"Open in browser"]}),f.jsx(ge,{className:"border-red-600 bg-red-600 text-white hover:bg-red-700",disabled:n||!d,onClick:r,size:"sm",type:"button",children:"Stop holder & start"})]})]})})}const V7={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 tl({children:n,icon:i,onClose:l,title:r,size:u="md"}){return k.useEffect(()=>{function d(h){h.key==="Escape"&&l()}return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[l]),c2.createPortal(f.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",onMouseDown:l,children:f.jsxs("div",{"aria-modal":"true",className:`flex max-h-[min(760px,calc(100vh-2rem))] w-full flex-col overflow-hidden rounded-lg border border-border bg-card shadow-xl ${u==="lg"?"max-w-3xl":"max-w-lg"}`,onMouseDown:d=>d.stopPropagation(),role:"dialog",children:[f.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[f.jsx("div",{className:"flex size-8 items-center justify-center rounded-md border border-border bg-background text-foreground [&_svg]:size-4",children:i}),f.jsx("h2",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:r}),f.jsx(ge,{"aria-label":"Close dialog",onClick:l,size:"icon",type:"button",variant:"ghost",children:f.jsx(eo,{})})]}),f.jsx("div",{className:"min-h-0 overflow-auto p-4",children:n})]})}),document.body)}const O7=[{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 _7({cwd:n,onRefresh:i,onSaved:l}){const{error:r,success:u}=ba(),[d,h]=k.useState("local"),[g,y]=k.useState(""),[p,v]=k.useState(""),[b,S]=k.useState(n),[T,w]=k.useState(""),[M,O]=k.useState(""),[L,q]=k.useState(""),[Y,X]=k.useState(""),[Z,$]=k.useState(""),[J,B]=k.useState(null),[fe,le]=k.useState(!1);k.useEffect(()=>{B(null)},[p,b,T,d]);function F(){y(""),v(""),S(n),w(""),O(""),q(""),X(""),$(""),B(null)}async function oe(P){P.preventDefault();try{const Q={name:g,kind:d,cwd:b,port:T,description:M};(d==="local"||d==="ssh")&&(Q.command=p),d==="docker-compose"&&(Q.composeFile=L,Q.composeService=Y),d==="ssh"&&(Q.host=Z),await Wt("/api/services",Q),F(),u(`${g} added.`),await i(),l?.()}catch(Q){r(el("Add service",g||"service",Q))}}async function je(){if(!p.trim()){r("Test command failed for service: command is required.");return}le(!0);try{B(await x3({command:p,cwd:b,port:T}))}catch(P){r(el("Test command",g||"service",P))}finally{le(!1)}}const be=[{value:"local",label:"Local",hint:"Run a command in a local working directory."},{value:"docker-compose",label:"Docker Compose",hint:"Bring up a service defined in a docker-compose.yml file."},{value:"ssh",label:"SSH (remote)",hint:"Run a command on a remote host using your local ~/.ssh/config + ssh-agent."}],ye=be.find(P=>P.value===d),z=d==="local"&&p.trim().length>0&&b.trim().length>0,K="grid gap-2 rounded-md border border-border bg-muted/30 p-3",W="px-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground";return f.jsxs("form",{className:"grid gap-3",onSubmit:oe,children:[f.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[f.jsxs("fieldset",{className:`${K} sm:col-span-2`,children:[f.jsx("legend",{className:W,children:"Step 1 · Service kind"}),f.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:be.map(P=>f.jsx(ge,{className:"justify-center",onClick:()=>h(P.value),size:"sm",type:"button",variant:d===P.value?"default":"outline",children:P.label},P.value))}),f.jsx("p",{className:"text-[11px] text-muted-foreground",children:ye.hint})]}),f.jsxs("div",{className:"grid gap-3 sm:col-start-1 sm:row-start-2 sm:self-start",children:[f.jsxs("fieldset",{className:K,children:[f.jsx("legend",{className:W,children:"Step 2 · Identity"}),f.jsxs(Jt,{children:["Name",f.jsx(pt,{className:"h-8 text-sm",name:"name",onChange:P=>y(P.target.value),placeholder:"backend",required:!0,value:g})]}),f.jsxs(Jt,{children:["Description",f.jsx(pt,{className:"h-8 text-sm",name:"description",onChange:P=>O(P.target.value),placeholder:"API server",value:M})]})]}),f.jsxs("fieldset",{className:K,children:[f.jsx("legend",{className:W,children:"Step 4 · Networking (optional)"}),f.jsxs(Jt,{children:["Port",f.jsx(pt,{className:"h-8 text-sm",inputMode:"numeric",name:"port",onChange:P=>w(P.target.value),placeholder:"3001",value:T})]})]})]}),d==="local"?f.jsxs("fieldset",{className:`${K} sm:col-start-2 sm:row-start-2 sm:self-start`,children:[f.jsx("legend",{className:W,children:"Step 3 · Local command"}),f.jsx("div",{className:"grid grid-cols-2 gap-1.5 sm:grid-cols-4",children:O7.map(P=>f.jsxs(ge,{className:"justify-start gap-1.5",onClick:()=>{v(P.command),O(P.description)},size:"sm",type:"button",variant:"outline",children:[f.jsx(ad,{command:P.badgeCommand??P.command,compact:!0}),f.jsx("span",{className:"truncate",children:P.label})]},P.label))}),f.jsxs(Jt,{children:["Command",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"command",onChange:P=>v(P.target.value),placeholder:"npm run dev",required:!0,value:p})]}),f.jsxs(Jt,{children:["Working Directory",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"cwd",onChange:P=>S(P.target.value),required:!0,value:b})]})]}):null,d==="docker-compose"?f.jsxs("fieldset",{className:`${K} sm:col-start-2 sm:row-start-2 sm:self-start`,children:[f.jsx("legend",{className:W,children:"Step 3 · Docker Compose target"}),f.jsxs(Jt,{children:["Compose Service",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"composeService",onChange:P=>X(P.target.value),placeholder:"api",required:!0,value:Y})]}),f.jsxs(Jt,{children:["Compose File (optional)",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"composeFile",onChange:P=>q(P.target.value),placeholder:"docker-compose.yml",value:L})]}),f.jsxs(Jt,{children:["Working Directory (where compose file lives)",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"cwd",onChange:P=>S(P.target.value),required:!0,value:b})]})]}):null,d==="ssh"?f.jsxs("fieldset",{className:`${K} sm:col-start-2 sm:row-start-2 sm:self-start`,children:[f.jsx("legend",{className:W,children:"Step 3 · SSH connection"}),f.jsxs(Jt,{children:["SSH Host (alias from ~/.ssh/config)",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"host",onChange:P=>$(P.target.value),placeholder:"devbox",required:!0,value:Z})]}),f.jsxs(Jt,{children:["Remote Command",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"command",onChange:P=>v(P.target.value),placeholder:"npm run dev",required:!0,value:p})]}),f.jsxs(Jt,{children:["Remote Working Directory",f.jsx(pt,{className:"h-8 font-mono text-sm",name:"cwd",onChange:P=>S(P.target.value),placeholder:"/srv/app",required:!0,value:b})]}),f.jsxs(en,{variant:"muted",children:[f.jsx("div",{className:"font-medium",children:"SSH key handling"}),f.jsxs("div",{className:"mt-1 text-xs",children:["NoMoreIDE never stores key files. Add a ",f.jsxs("code",{children:["Host ",Z||"&lt;alias&gt;"]})," entry to",f.jsx("code",{children:" ~/.ssh/config"})," with ",f.jsx("code",{children:"HostName"}),", ",f.jsx("code",{children:"User"}),", and"," ",f.jsx("code",{children:"IdentityFile ~/.ssh/your-key.pem"})," (chmod 0600). Make sure"," ",f.jsx("code",{children:"ssh-agent"})," is running or your key is loaded (",f.jsx("code",{children:"ssh-add ~/.ssh/your-key.pem"}),"). NoMoreIDE will run"," ",f.jsxs("code",{children:["ssh ",Z||"&lt;alias&gt;"]})," using that config."]})]})]}):null]}),J?f.jsx(B7,{result:J}):null,f.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[d==="local"?f.jsxs(ge,{disabled:fe||!z,onClick:je,type:"button",variant:"outline",children:[f.jsx(sg,{}),fe?"Testing...":"Test Command"]}):null,f.jsx(ge,{type:"submit",children:"Add Service"})]})]})}function B7({result:n}){const i=[...n.stdout,...n.stderr].slice(0,4);return f.jsxs(en,{variant:n.ok?"default":"destructive",children:[f.jsx("div",{className:"font-medium",children:n.ok?"Command test passed":"Command test failed"}),f.jsx("div",{className:"mt-1 text-xs",children:n.message}),i.length?f.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(`
11
- `)}):null]})}function f2({initialName:n="",initialServices:i=[],onSaved:l,onRefresh:r,originalName:u,services:d,submitLabel:h="Save Group"}){const{error:g,success:y}=ba();async function p(v){v.preventDefault();const b=v.currentTarget,S=new FormData(b),T=String(S.get("name")??""),w=S.getAll("services").map(M=>String(M)).filter(Boolean);try{await Wt("/api/bundles",{name:T,originalName:u,services:w.join(",")}),b.reset(),y(`${T} group saved.`),await r(),l?.()}catch(M){g(el("Save group",T||"group",M))}}return f.jsxs("form",{className:"grid gap-2.5",onSubmit:p,children:[f.jsxs(Jt,{children:["Group name",f.jsx(pt,{className:"h-8 text-sm",defaultValue:n,name:"name",placeholder:"full-stack",required:!0})]}),f.jsxs("fieldset",{className:"grid gap-1.5",children:[f.jsx("legend",{className:"text-xs font-medium",children:"Services"}),d.length?d.map(v=>f.jsxs("label",{className:"flex items-center gap-2 overflow-hidden rounded-md border border-border px-2.5 py-1.5 text-sm",children:[f.jsx("input",{className:"size-4 shrink-0 accent-primary",defaultChecked:i.includes(v.name),name:"services",type:"checkbox",value:v.name}),f.jsx(ad,{command:v.command??"",compact:!0}),f.jsxs("span",{className:"min-w-0 flex-1",children:[f.jsx("span",{className:"block truncate text-sm font-medium",children:v.name}),f.jsx("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:v.command??v.kind??""})]})]},v.name)):f.jsx(en,{variant:"muted",children:"All services are already grouped, or none registered."})]}),f.jsx(ge,{className:"h-8",disabled:!d.length,type:"submit",children:h})]})}function id({label:n}){return f.jsx(en,{variant:"muted",className:"m-4 text-center",children:n})}const L7=900*1e3,Ys=12,Ju=200;function U7({events:n}){const[i,l]=k.useState(null),[r,u]=k.useState(null),{rows:d,windowStart:h,windowEnd:g}=k.useMemo(()=>H7(n),[n]),y=i?d.find(p=>p.service===i)??null:null;return f.jsxs(f.Fragment,{children:[f.jsxs(_i,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[f.jsxs(Bi,{className:"border-b border-border px-3 py-2",children:[f.jsxs(Li,{className:"flex items-center gap-2",children:[f.jsx(kr,{className:"size-3.5"}),"Runtime Monitor"]}),f.jsx(Fs,{className:"text-xs",children:n.length===0?"No events yet":`${n.length} event${n.length===1?"":"s"} · last 15 min`})]}),f.jsx(Ui,{className:"p-0",children:d.length===0?f.jsx(id,{label:"No runtime timeline events yet."}):f.jsxs("div",{className:"divide-y divide-border",children:[d.map(p=>f.jsx(G7,{onClick:()=>l(p.service),row:p,windowEnd:g,windowStart:h},p.service)),f.jsxs("div",{className:"flex justify-between px-3 py-1.5 font-mono text-[10px] text-muted-foreground",children:[f.jsx("span",{children:Ir(h)}),f.jsx("span",{children:"now"})]})]})})]}),y?f.jsx(tl,{icon:f.jsx(kr,{}),onClose:()=>l(null),title:y.service,children:f.jsx(X7,{onSelect:u,row:y})}):null,r?f.jsx(tl,{icon:f.jsx(kr,{}),onClose:()=>u(null),title:r.title,children:f.jsx(Z7,{event:r})}):null]})}function H7(n){const i=Date.now(),l=i,r=i-L7;let u=n.filter(y=>{if(y.kind==="service.http")return!1;const p=new Date(y.timestamp).getTime();return!Number.isNaN(p)&&p>=r});u.length===0&&n.length>0?u=n.slice(-Ju):u.length>Ju&&(u=u.slice(-Ju));const d=new Map;for(const y of u){const p=y.service||"·system",v=d.get(p)??[];v.push(y),d.set(p,v)}const h=Math.max(l-r,1);return{rows:Array.from(d.entries()).map(([y,p])=>{const v=[...p].sort((q,Y)=>q.timestamp.localeCompare(Y.timestamp)),b=new Array(Ys).fill(0),S=new Array(Ys).fill(null);for(const q of v){const Y=new Date(q.timestamp).getTime(),X=Math.max(r,Math.min(l,Y)),Z=Math.min(Ys-1,Math.floor((X-r)/h*Ys));b[Z]+=1;const $=S[Z];S[Z]=q7($,q.severity)}const T=v.filter(q=>q.severity==="error").length,w=v.filter(q=>q.severity==="warning").length,M=v.length-T-w,O=[...v].reverse().find(q=>q.severity!=="info")??null,L=T>0?"error":w>0?"warning":"info";return{service:y,events:v,errors:T,warnings:w,infos:M,buckets:b,bucketSeverity:S,lastNotable:O,worstSeverity:L}}).sort((y,p)=>{const v=S=>S.errors*1e3+S.warnings,b=v(p)-v(y);return b!==0?b:y.service.localeCompare(p.service)}),windowStart:r,windowEnd:l}}function q7(n,i){return n==="error"||i==="error"?"error":n==="warning"||i==="warning"?"warning":"info"}function G7({onClick:n,row:i,windowEnd:l,windowStart:r}){const u=Math.max(1,...i.buckets);return f.jsxs("button",{className:"timeline-service-row block w-full px-3 py-2 text-left transition-colors hover:bg-muted/40 focus:outline-none focus-visible:bg-muted/40","data-testid":"timeline-service-row",onClick:n,type:"button",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[f.jsx("span",{className:he("size-2 shrink-0 rounded-full",d2(i.worstSeverity))}),f.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium text-foreground",dir:"rtl",children:f.jsx("bdi",{children:i.service})}),i.errors>0?f.jsxs("span",{className:"rounded bg-red-500/15 px-1 font-mono text-[10px] text-red-500",children:[i.errors,"E"]}):null,i.warnings>0?f.jsxs("span",{className:"rounded bg-amber-500/15 px-1 font-mono text-[10px] text-amber-500",children:[i.warnings,"W"]}):null,f.jsx(W1,{className:"size-3 text-muted-foreground"})]}),f.jsx("div",{className:"timeline-density mt-1.5 grid h-3 gap-px","data-testid":"timeline-density",style:{gridTemplateColumns:`repeat(${Ys}, minmax(0, 1fr))`},children:i.buckets.map((d,h)=>f.jsx(Y7,{count:d,max:u,severity:i.bucketSeverity[h]},h))}),i.lastNotable?f.jsx("div",{className:"mt-1 truncate font-mono text-[10px] text-muted-foreground",children:i.lastNotable.detail??i.lastNotable.title}):f.jsxs("div",{className:"mt-1 truncate text-[10px] text-muted-foreground",children:[i.infos," info ",i.infos===1?"event":"events"]}),f.jsxs("div",{className:"mt-0.5 flex justify-between font-mono text-[9px] text-muted-foreground/60",children:[f.jsx("span",{children:Ir(r)}),f.jsx("span",{children:Ir(l)})]})]})}function Y7({count:n,max:i,severity:l}){if(n===0)return f.jsx("span",{className:"rounded-sm bg-border/60"});const r=Math.min(1,.35+n/i*.65);return f.jsx("span",{className:he("rounded-sm",Q7(l)),style:{opacity:r},title:`${n} event${n===1?"":"s"}`})}function X7({onSelect:n,row:i}){const l=[...i.events].sort((r,u)=>u.timestamp.localeCompare(r.timestamp));return f.jsxs("div",{className:"flex max-h-[480px] flex-col overflow-hidden",children:[f.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-4 py-2 text-xs text-muted-foreground",children:[f.jsxs("span",{children:[i.events.length," events"]}),f.jsx("span",{children:"·"}),f.jsxs("span",{children:[i.errors," error",i.errors===1?"":"s"]}),f.jsx("span",{children:"·"}),f.jsxs("span",{children:[i.warnings," warning",i.warnings===1?"":"s"]})]}),f.jsx("ul",{className:"min-h-0 divide-y divide-border overflow-auto",children:l.map(r=>f.jsx("li",{children:f.jsxs("button",{className:"block w-full px-4 py-2 text-left hover:bg-muted/40 focus:outline-none focus-visible:bg-muted/40",onClick:()=>n(r),type:"button",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:he("size-2 shrink-0 rounded-full",d2(r.severity))}),f.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium text-foreground",children:r.title}),f.jsx("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:Ir(r.timestamp)})]}),r.detail?f.jsx("div",{className:"mt-1 truncate font-mono text-[10px] text-muted-foreground",children:r.detail}):null]})},r.id))})]})}function Z7({event:n}){const i=new Date(n.timestamp);return f.jsxs("div",{className:"space-y-3 p-4 text-sm",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx("span",{className:he("rounded px-1.5 py-0.5 font-mono text-[10px] uppercase text-white",K7(n.severity)),children:n.severity}),f.jsx("span",{className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:n.kind}),n.service?f.jsx("span",{className:"rounded border border-border bg-background px-1.5 py-0.5 font-mono text-[10px] text-foreground",children:n.service}):null]}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xs text-muted-foreground",children:"When"}),f.jsx("div",{className:"font-mono text-xs",children:Number.isNaN(i.getTime())?n.timestamp:i.toLocaleString()})]}),n.detail?f.jsxs("div",{children:[f.jsx("div",{className:"text-xs text-muted-foreground",children:"Detail"}),f.jsx("pre",{className:"mt-1 max-h-72 overflow-auto whitespace-pre-wrap rounded border border-border bg-background p-3 font-mono text-xs",children:n.detail})]}):null]})}function d2(n){return n==="error"?"bg-red-500":n==="warning"?"bg-amber-500":"bg-zinc-400"}function Q7(n){return n==="error"?"bg-red-500":n==="warning"?"bg-amber-500":"bg-zinc-500"}function K7(n){return n==="error"?"bg-red-600":n==="warning"?"bg-amber-600":"bg-zinc-700"}function Ir(n){const i=typeof n=="number"?new Date(n):new Date(n);return Number.isNaN(i.getTime())?"--:--:--":i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function q1({onChange:n,value:i}){return f.jsxs("label",{className:"relative block",children:[f.jsx(s3,{className:"pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),f.jsx(pt,{"aria-label":"Search logs",className:"h-8 w-44 pl-7 text-xs",onChange:l=>n(l.target.value),placeholder:"Search logs",value:i})]})}function G1({className:n,containerRef:i,emptyText:l,logs:r,query:u}){return f.jsx("div",{className:he("h-full max-w-full overflow-auto font-mono text-[11px] leading-5",n),ref:i,role:"log",children:r.length?r.map((d,h)=>f.jsxs("div",{className:he("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:[f.jsx("span",{className:"text-muted-foreground",children:d.timestamp}),f.jsxs("span",{className:"whitespace-pre-wrap break-words",children:[d.stream==="stderr"?f.jsx("span",{className:"mr-2 rounded bg-red-100 px-1 font-semibold uppercase text-red-700",children:"stderr"}):null,P7(d.text,u)]})]},`${d.timestamp}-${d.stream}-${h}`)):f.jsx("div",{className:"p-3 text-muted-foreground",children:l})})}function F7(n){return`${n.timestamp} ${n.stream} ${n.text}`}function P7(n,i){const l=i.trim();if(!l)return n;const r=n.toLowerCase(),u=l.toLowerCase(),d=[];let h=0,g=r.indexOf(u);for(;g!==-1;){g>h&&d.push(n.slice(h,g));const y=g+l.length;d.push(f.jsx("mark",{className:"rounded bg-amber-200 px-0.5 text-amber-950",children:n.slice(g,y)},`${g}-${y}`)),h=y,g=r.indexOf(u,h)}return h<n.length&&d.push(n.slice(h)),d}function J7({ports:n}){const i=n.filter(r=>r.state==="occupied").length,l=n.filter(r=>r.state==="managed").length;return f.jsxs(_i,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[f.jsxs(Bi,{className:"border-b border-border px-3 py-2",children:[f.jsxs(Li,{className:"flex items-center gap-2",children:[f.jsx(Ub,{className:"size-3.5"}),"Ports"]}),f.jsxs(Fs,{className:"text-xs",children:[l," managed, ",i," occupied by other"]})]}),f.jsx(Ui,{className:"p-0",children:n.length?f.jsx("div",{className:"divide-y divide-border",children:n.map(r=>f.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-center gap-2 px-3 py-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs("div",{className:"font-mono text-xs",children:[":",r.port]}),f.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:r.services.join(", ")||"Unassigned"}),r.urls[0]?f.jsx("div",{className:"truncate font-mono text-[10px] text-muted-foreground",children:r.urls[0]}):null]}),f.jsx(h2,{port:r})]},r.port))}):f.jsx(id,{label:"No configured ports yet."})})]})}function h2({compact:n,port:i}){const l=i.state==="managed"?"managed":i.state==="occupied"?"occupied by other":"available",r=i.state==="managed"?"success":i.state==="occupied"?"warning":"outline";return f.jsx(gt,{className:he(n&&"max-w-36 truncate"),variant:r,children:l})}function $7({context:n}){const[i,l]=k.useState(!1);if(!n)return f.jsx("div",{className:"rounded-md border border-border bg-muted/30 p-3 text-xs text-muted-foreground",children:"No agent context available yet."});async function r(){try{await navigator.clipboard.writeText(n),l(!0),window.setTimeout(()=>l(!1),1500)}catch{l(!1)}}return f.jsxs("section",{"aria-label":"Agent context",className:"rounded-md border border-border bg-muted/30 p-3","data-testid":"agent-context-panel",children:[f.jsxs("div",{className:"flex items-center justify-between gap-3",children:[f.jsxs("h3",{className:"flex items-center gap-1.5 text-xs font-medium",children:[f.jsx(Wu,{className:"size-3.5"}),"Agent context"]}),f.jsxs(ge,{onClick:r,size:"sm",type:"button",variant:"outline",children:[i?f.jsx($1,{className:"size-3.5"}):f.jsx(I1,{className:"size-3.5"}),i?"Copied":"Copy"]})]}),f.jsx("pre",{className:"mt-2 max-h-72 overflow-auto whitespace-pre-wrap rounded bg-background p-3 font-mono text-[11px] leading-relaxed",children:n})]})}function W7({health:n}){if(!n)return null;const i=n.processTree,l=n.status==="healthy"||n.status==="unknown"?void 0:n9(n.summary);return f.jsxs("div",{className:"mt-1.5 grid min-w-0 gap-2 text-[11px] text-muted-foreground sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[f.jsxs("span",{className:he("inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md px-2.5 font-medium",I7(n.status)),children:[f.jsx("span",{className:"inline-flex shrink-0",children:f.jsx(kr,{className:"size-3"})}),f.jsx("span",{className:"whitespace-nowrap",children:n.status})]}),l?f.jsx("span",{className:"min-w-0 truncate",children:l}):null]}),i?f.jsxs("div",{className:"health-metrics flex min-w-max items-center gap-2 font-mono sm:justify-end",children:[f.jsxs("span",{className:"inline-flex items-center gap-1 font-mono",children:[f.jsx(fb,{className:"size-3"}),i.processCount," ",i.processCount===1?"process":"processes"]}),f.jsxs("span",{children:[t9(i.cpuPercent)," CPU"]}),f.jsxs("span",{className:"inline-flex items-center gap-1 font-mono",children:[f.jsx(Bb,{className:"size-3"}),e9(i.rssMb)," RAM"]})]}):null]})}function I7(n){return n==="healthy"?"bg-emerald-600 text-white":n==="warning"?"bg-amber-600 text-white":n==="unhealthy"?"bg-red-600 text-white":"bg-zinc-700 text-white"}function e9(n){return Number.isInteger(n)?`${n} MB`:`${n.toFixed(1)} MB`}function t9(n){return`${n.toFixed(1)}%`}function n9(n){return n.replace(/^Recent error log:\s*/i,"Recent stderr: ").replace(/:\s*\d+(?:\.\d+)? MB RSS\.?$/i,"").replace(/\s+RSS\.?$/i,"")}function a9({serviceName:n,status:i,health:l,timeline:r,onRefresh:u}){const[d,h]=k.useState("processes"),g=l?.processTree?.processes??[];return f.jsxs("div",{className:"border-t border-border bg-muted/30 px-3 py-2 text-xs",children:[f.jsxs("div",{className:"mb-2 flex gap-1",children:[f.jsxs($u,{active:d==="processes",onClick:()=>h("processes"),children:["Processes ",g.length?f.jsx(gt,{variant:"secondary",size:"small",children:g.length}):null]}),f.jsxs($u,{active:d==="http",onClick:()=>h("http"),children:["HTTP",i?.inspector?.enabled?f.jsx(gt,{variant:"success",size:"small",children:"on"}):null]}),f.jsx($u,{active:d==="logs",onClick:()=>h("logs"),children:"Logs"})]}),d==="processes"?f.jsx(i9,{rows:g}):null,d==="http"?f.jsx(s9,{serviceName:n,status:i,timeline:r,onRefresh:u}):null,d==="logs"?f.jsx(o9,{serviceName:n}):null]})}function $u({active:n,onClick:i,children:l}){return f.jsx("button",{className:he("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-colors",n?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:i,type:"button",children:l})}function i9({rows:n}){if(n.length===0)return f.jsx("div",{className:"text-muted-foreground",children:"No process tree (service not running)."});const i=[...n].sort((r,u)=>u.cpuPercent-r.cpuPercent),l=new Set(n.map(r=>r.pid));return f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full font-mono text-[11px]",children:[f.jsx("thead",{className:"text-left text-muted-foreground",children:f.jsxs("tr",{children:[f.jsx("th",{className:"py-1 pr-3",children:"PID"}),f.jsx("th",{className:"py-1 pr-3",children:"PPID"}),f.jsx("th",{className:"py-1 pr-3 text-right",children:"CPU%"}),f.jsx("th",{className:"py-1 pr-3 text-right",children:"RSS MB"}),f.jsx("th",{className:"py-1",children:"Command"})]})}),f.jsx("tbody",{children:i.map(r=>{const u=l.has(r.ppid);return f.jsxs("tr",{className:"border-t border-border/40",children:[f.jsx("td",{className:"py-1 pr-3",children:r.pid}),f.jsx("td",{className:"py-1 pr-3 text-muted-foreground",children:r.ppid}),f.jsx("td",{className:"py-1 pr-3 text-right",children:r.cpuPercent.toFixed(1)}),f.jsx("td",{className:"py-1 pr-3 text-right",children:r.rssMb.toFixed(1)}),f.jsx("td",{className:he("py-1 truncate max-w-[60ch]",u&&"pl-4"),children:r.command})]},r.pid)})})]})})}function s9({serviceName:n,status:i,timeline:l,onRefresh:r}){const{error:u,success:d}=ba(),[h,g]=k.useState(!1),y=i?.inspector,p=i?.state==="running",v=k.useMemo(()=>l.filter(T=>T.kind==="service.http"&&T.service===n).map(T=>{const w=T.data??{};return{id:w.id??T.id,startedAt:T.timestamp,method:w.method??"?",path:w.path??"?",status:w.status??0,durationMs:w.durationMs??0,reqBytes:w.reqBytes??0,resBytes:w.resBytes??0}}).slice(-500).reverse(),[l,n]);async function b(T){g(!0);try{await Wt(`/api/services/${encodeURIComponent(n)}/inspector`,{enabled:T?"true":"false"}),await r(),d(T?`HTTP inspector started for ${n}.`:`HTTP inspector stopped for ${n}.`)}catch(w){u(w instanceof Error?w.message:String(w))}finally{g(!1)}}if(!p)return f.jsx("div",{className:"text-muted-foreground",children:"Service is not running."});if(!y?.enabled)return f.jsxs("div",{className:"space-y-2",children:[f.jsx("p",{className:"text-muted-foreground",children:"The HTTP inspector starts a local proxy that forwards traffic to this service and records every request. Hit the inspect URL instead of the original port to see requests appear here. The service itself is not touched."}),f.jsxs(ge,{disabled:h,onClick:()=>b(!0),size:"sm",type:"button",children:[f.jsx(ng,{})," Start HTTP inspector"]})]});const S=y.port?`http://127.0.0.1:${y.port}`:void 0;return f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx("span",{className:"text-muted-foreground",children:"Inspect URL:"}),S?f.jsxs(f.Fragment,{children:[f.jsx("code",{className:"rounded bg-background px-1.5 py-0.5 font-mono",children:S}),f.jsxs(ge,{onClick:()=>{navigator.clipboard.writeText(S),d("Copied inspect URL.")},size:"sm",type:"button",variant:"outline",children:[f.jsx(I1,{})," Copy"]}),f.jsx(ge,{onClick:()=>window.open(S,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",children:"Open"})]}):f.jsx("span",{className:"text-muted-foreground",children:"starting…"}),f.jsxs("span",{className:"text-muted-foreground",children:["→ upstream :",y.upstreamPort??"?"]}),f.jsxs(ge,{disabled:h,onClick:()=>b(!1),size:"sm",type:"button",variant:"outline",children:[f.jsx(ig,{})," Stop"]})]}),v.length===0?f.jsx("div",{className:"text-muted-foreground",children:"No requests captured yet. Hit the inspect URL in your browser to see traffic."}):f.jsx("div",{className:"max-h-80 overflow-auto",children:f.jsxs("table",{className:"w-full font-mono text-[11px]",children:[f.jsx("thead",{className:"sticky top-0 bg-muted/60 text-left text-muted-foreground",children:f.jsxs("tr",{children:[f.jsx("th",{className:"py-1 pr-3",children:"Time"}),f.jsx("th",{className:"py-1 pr-3",children:"Method"}),f.jsx("th",{className:"py-1 pr-3",children:"Path"}),f.jsx("th",{className:"py-1 pr-3 text-right",children:"Status"}),f.jsx("th",{className:"py-1 pr-3 text-right",children:"Size"}),f.jsx("th",{className:"py-1 pr-3 text-right",children:"ms"})]})}),f.jsx("tbody",{children:v.map(T=>f.jsxs("tr",{className:"border-t border-border/40",children:[f.jsx("td",{className:"py-1 pr-3 text-muted-foreground",children:new Date(T.startedAt).toLocaleTimeString()}),f.jsx("td",{className:"py-1 pr-3",children:T.method}),f.jsx("td",{className:"py-1 pr-3 truncate max-w-[40ch]",children:T.path}),f.jsx("td",{className:he("py-1 pr-3 text-right",l9(T.status)),children:T.status}),f.jsx("td",{className:"py-1 pr-3 text-right text-muted-foreground",children:r9(T.resBytes)}),f.jsx("td",{className:"py-1 pr-3 text-right",children:T.durationMs.toFixed(1)})]},T.id))})]})})]})}function l9(n){return n>=500?"text-red-600 dark:text-red-400":n>=400?"text-amber-600 dark:text-amber-400":n>=300?"text-zinc-500":n>=200?"text-emerald-600 dark:text-emerald-400":"text-muted-foreground"}function r9(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(1)} MB`}function o9({serviceName:n}){const[i,l]=k.useState(),[r,u]=k.useState();return k.useEffect(()=>{let d=!1;const h=async()=>{try{const y=await Iu(n);d||l(y)}catch(y){d||u(y instanceof Error?y.message:String(y))}};h();const g=window.setInterval(h,2e3);return()=>{d=!0,window.clearInterval(g)}},[n]),r?f.jsx("div",{className:"text-red-600",children:r}):i?i.length===0?f.jsx("div",{className:"text-muted-foreground",children:"No log entries."}):f.jsx("pre",{className:"max-h-80 overflow-auto whitespace-pre-wrap break-all rounded bg-background p-2 font-mono text-[11px]",children:i.map(d=>`${new Date(d.timestamp).toLocaleTimeString()} [${d.stream}] ${d.text}`).join(`
12
- `)}):f.jsx("div",{className:"text-muted-foreground",children:"Loading…"})}function c9({allServices:n,group:i,onRefresh:l,ports:r,services:u,health:d,statuses:h,timeline:g}){const[y,p]=k.useState(!1),[v,b]=k.useState(!1),S=u.some(T=>p2(h[T.name]?.state));return f.jsxs("section",{children:[f.jsxs("div",{className:"grid gap-2 bg-muted/35 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[f.jsx("div",{className:"min-w-0",children:f.jsxs("button",{className:"flex max-w-full items-start gap-2 text-left",onClick:()=>b(T=>!T),type:"button",children:[f.jsx(Gi,{className:he("mt-0.5 size-3.5 shrink-0 text-muted-foreground transition-transform",v&&"-rotate-90")}),f.jsxs("span",{className:"min-w-0",children:[f.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[f.jsx(gt,{appearance:"subtle",className:"shadow-none",size:"small",variant:"secondary",children:"group"}),f.jsx("span",{className:"text-sm font-medium",children:i.name}),f.jsx(gt,{variant:"secondary",children:i.services.length})]}),f.jsx("span",{className:"mt-0.5 block truncate text-xs text-muted-foreground",children:i.services.join(", ")})]})]})}),f.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[f.jsxs(ge,{"aria-expanded":y,onClick:()=>p(T=>!T),size:"sm",type:"button",variant:"outline",children:[f.jsx(Pb,{}),"Edit"]}),f.jsx(u2,{active:S,baseUrl:`/api/bundles/${encodeURIComponent(i.name)}`,restartAction:async()=>{await Wt(`/api/bundles/${encodeURIComponent(i.name)}/stop`,{}),await Wt(`/api/bundles/${encodeURIComponent(i.name)}/start`,{})},targetLabel:`group ${i.name}`,onRefresh:l})]})]}),y?f.jsx("div",{className:"border-t border-border bg-background/65 p-3",children:f.jsx(f2,{initialName:i.name,initialServices:i.services,onRefresh:l,onSaved:()=>p(!1),originalName:i.name,services:n,submitLabel:"Save Group"})}):null,v?null:f.jsx("div",{className:"divide-y divide-border border-t border-border bg-background/45",children:u.length?u.map(T=>f.jsx(m2,{service:T,status:h[T.name],health:d[T.name],ports:r,onRefresh:l,timeline:g},T.name)):f.jsx(en,{variant:"muted",className:"m-4",children:"This group does not match any registered services."})})]})}function m2({service:n,status:i,health:l,ports:r,onRefresh:u,timeline:d=[]}){const[h,g]=k.useState(!1),[y,p]=k.useState(!1),v=i?.state??"stopped",b=p2(v),S=i?.url??(n.port?f9(n.port):void 0),T=n.port?r.find(O=>O.port===n.port):void 0,w=d9(i?.url),M=w?r.find(O=>O.port===w):void 0;return f.jsxs("div",{children:[f.jsxs("div",{className:"grid gap-2 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsx("button",{"aria-expanded":y,"aria-label":y?"Collapse details":"Expand details",className:"inline-flex shrink-0 items-center text-muted-foreground hover:text-foreground",onClick:()=>p(O=>!O),type:"button",children:f.jsx(Gi,{className:he("size-3.5 transition-transform",y?"":"-rotate-90")})}),f.jsx(ad,{command:n.command??""}),f.jsx("span",{className:"text-sm font-medium",children:n.name}),f.jsx(h9,{state:v}),n.kind&&n.kind!=="local"?f.jsx(gt,{variant:"outline",children:n.kind}):null,n.port?f.jsxs(gt,{variant:"outline",children:[":",n.port]}):null,T?f.jsx(h2,{port:T,compact:!0}):null,M&&M.port!==n.port?f.jsxs(gt,{variant:"success",children:["actual :",M.port]}):null]}),n.command?f.jsx("div",{className:"mt-0.5 truncate font-mono text-[11px] text-muted-foreground",children:n.command}):null,n.kind==="docker-compose"?f.jsxs("div",{className:"truncate text-[11px] text-muted-foreground",children:["docker compose service: ",n.composeService,n.composeFile?` (${n.composeFile})`:""]}):null,n.kind==="ssh"?f.jsxs("div",{className:"truncate text-[11px] text-amber-600 dark:text-amber-400",children:["Remote service on ",n.host,". Commands run through your local SSH config and SSH agent."]}):null,n.cwd?f.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:n.cwd}):null,f.jsx(W7,{health:l})]}),f.jsxs("div",{className:"flex flex-wrap justify-end gap-1.5",children:[f.jsx(u9,{service:n,onRefresh:u}),S?f.jsxs(ge,{onClick:()=>window.open(S,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",title:S,children:[f.jsx(eg,{}),"Open"]}):null,l?.agentContext?f.jsxs(ge,{onClick:()=>g(!0),size:"sm",title:"Copy a paste-ready debug packet for an AI agent",type:"button",variant:"outline",children:[f.jsx(Wu,{}),"Context"]}):null,f.jsx(u2,{active:b,baseUrl:`/api/services/${encodeURIComponent(n.name)}`,targetLabel:n.name,onRefresh:u})]}),h&&l?.agentContext?f.jsx(tl,{icon:f.jsx(Wu,{}),onClose:()=>g(!1),title:`Agent context — ${n.name}`,children:f.jsx("div",{className:"p-4",children:f.jsx($7,{context:l.agentContext})})}):null]}),y?f.jsx(a9,{serviceName:n.name,status:i,health:l,timeline:d,onRefresh:u}):null]})}function p2(n){return n==="running"||n==="starting"}function u9({service:n,onRefresh:i}){const[l,r]=k.useState(n.port?String(n.port):""),[u,d]=k.useState(!1),{error:h,success:g}=ba(),y=l.trim()!==(n.port?String(n.port):"");k.useEffect(()=>{r(n.port?String(n.port):"")},[n.port]);async function p(v){v.preventDefault(),d(!0);try{await Wt("/api/services",{name:n.name,command:n.command??"",cwd:n.cwd??"",port:l,description:n.description}),g(`Port saved for ${n.name}.`),await i()}catch(b){h(el("Save port",n.name,b))}finally{d(!1)}}return f.jsxs("form",{className:"flex items-center gap-1.5",onSubmit:p,children:[f.jsx(pt,{"aria-label":`Port for ${n.name}`,className:"h-8 w-20 font-mono text-xs",inputMode:"numeric",min:1,max:65535,onChange:v=>r(v.target.value),placeholder:"port",type:"number",value:l}),f.jsx(ge,{"aria-label":`Save port for ${n.name}`,disabled:u||!y,className:"size-8",size:"icon",title:"Save port",type:"submit",variant:"outline",children:f.jsx(a3,{})})]})}function f9(n){return`http://127.0.0.1:${n}`}function d9(n){if(n)try{const i=new URL(n);return i.port?Number(i.port):void 0}catch{return}}function h9({state:n}){return f.jsx(gt,{variant:n==="running"?"success":n==="exited"?"danger":n==="starting"?"warning":"outline",className:he(n==="running"&&"font-mono"),children:n})}function m9({data:n,onRefresh:i}){const l=n.config.services[0]?.name??"",[r,u]=k.useState(l),[d,h]=k.useState(n.logs),[g,y]=k.useState(""),[p,v]=k.useState(null),[b,S]=k.useState(!1),T=k.useRef(null),w=k.useRef(!0),M=k.useRef({}),{error:O,message:L,success:q}=ba(),Y=k.useMemo(()=>new Set(n.config.bundles.flatMap(F=>F.services)),[n.config.bundles]),X=k.useMemo(()=>{const F=new Map;for(const oe of n.config.bundles)for(const je of oe.services)F.has(je)||F.set(je,oe.name);return F},[n.config.bundles]),Z=k.useMemo(()=>n.config.services.filter(F=>!Y.has(F.name)),[n.config.services,Y]),$=n.health??{},J=n.config.bundles.length>0||Z.length>0,B=g.trim().toLowerCase(),fe=k.useMemo(()=>B?d.filter(F=>F7(F).toLowerCase().includes(B)):d,[d,B]);k.useEffect(()=>{!r&&l&&u(l)},[l,r]),k.useEffect(()=>{if(!r){h([]);return}let F=!0;return Iu(r).then(oe=>{F&&h(oe)}).catch(()=>{F&&h([])}),()=>{F=!1}},[r,n.runtime.services]),k.useEffect(()=>{if(!b||!r)return;let F=!0;const oe=async()=>{try{const be=await Iu(r);F&&h(be)}catch{F&&h([])}};oe();const je=window.setInterval(oe,1e3);return()=>{F=!1,window.clearInterval(je)}},[r,b]),k.useEffect(()=>{const F=T.current;if(!F)return;function oe(){if(!F)return;const je=F.scrollHeight-F.scrollTop-F.clientHeight;w.current=je<40}return oe(),F.addEventListener("scroll",oe,{passive:!0}),()=>F.removeEventListener("scroll",oe)},[r]),k.useEffect(()=>{if(!b||!w.current)return;const F=T.current;F&&(F.scrollTop=F.scrollHeight)},[b,fe]),k.useEffect(()=>{w.current=!0;const F=T.current;F&&(F.scrollTop=F.scrollHeight)},[r]),k.useEffect(()=>{const F=Object.fromEntries(n.config.services.map(je=>[je.name,n.runtime.services[je.name]?.state??"stopped"])),oe=M.current;if(Object.keys(oe).length){const je=new Map,be=new Map;for(const ye of n.config.services){const z=F[ye.name],K=oe[ye.name];if(!K||K===z)continue;const W=n.runtime.services[ye.name],P=X.get(ye.name);if(P){const Q=je.get(P)??new Map;if(Q.set(z,(Q.get(z)??0)+1),je.set(P,Q),z==="exited"){const A=be.get(P)??[];A.push(W?.exitCode),be.set(P,A)}continue}if(z==="running")q(`${ye.name} is running.`);else if(z==="stopped")L({text:`${ye.name} stopped.`});else if(z==="starting")L({text:`${ye.name} is starting.`});else if(z==="exited"){const Q=W?.exitCode===void 0||W.exitCode===null?"":` with code ${W.exitCode}`;O(`${ye.name} exited${Q}.`)}}for(const[ye,z]of je)p9({exitCodes:be.get(ye)??[],groupName:ye,showErrorToast:O,showMessageToast:L,showSuccessToast:q,transitions:z})}M.current=F},[n.config.services,n.runtime.services,X,O,L,q]);const le=r?B?`No log lines match "${g.trim()}".`:`No logs captured for ${r}.`:"No services registered.";return b?f.jsx("div",{className:"flex h-full min-h-0 bg-card/85",children:f.jsxs(_i,{className:"flex min-h-0 min-w-0 flex-1 flex-col rounded-none border-0 bg-transparent",children:[f.jsx(Bi,{className:"shrink-0 border-b border-border px-3 py-2",children:f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx(Li,{children:"Streaming Logs"}),f.jsx(Fs,{className:"text-xs",children:"Polling the selected service every second and pinned to latest output."})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx(q1,{value:g,onChange:y}),f.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!n.config.services.length,onChange:F=>u(F.target.value),value:r,children:n.config.services.map(F=>f.jsx("option",{value:F.name,children:F.name},F.name))}),f.jsxs(ge,{"aria-pressed":b,className:"border-emerald-600 bg-emerald-50 text-emerald-700",onClick:()=>S(!1),size:"sm",type:"button",variant:"outline",children:[f.jsx(yp,{}),"Streaming"]})]})]})}),f.jsx(Ui,{className:"min-h-0 flex-1 p-0",children:f.jsx(G1,{containerRef:T,emptyText:le,logs:fe,query:g})})]})}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden bg-card/85 xl:grid-cols-[minmax(0,1fr)_340px]",children:[f.jsxs("div",{className:"min-h-0 min-w-0 overflow-auto",children:[f.jsxs(_i,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[f.jsx(Bi,{className:"border-b border-border px-3 py-2",children:f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx(Li,{children:"Services"}),f.jsx(Fs,{className:"text-xs",children:"Grouped services are nested; ungrouped services stay standalone."})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsxs(ge,{"aria-haspopup":"dialog",onClick:()=>v("service"),size:"sm",type:"button",variant:"outline",children:[f.jsx(Gr,{}),"Add Service"]}),f.jsxs(ge,{"aria-haspopup":"dialog",onClick:()=>v("group"),size:"sm",type:"button",variant:"outline",children:[f.jsx(gp,{}),"Create Group"]})]})]})}),f.jsx(Ui,{className:"p-0",children:J?f.jsxs("div",{className:"divide-y divide-border",children:[n.config.bundles.map(F=>f.jsx(c9,{group:F,onRefresh:i,ports:n.ports,allServices:n.config.services,health:$,services:n.config.services.filter(oe=>F.services.includes(oe.name)),statuses:n.runtime.services,timeline:n.timeline},F.name)),Z.length?[{key:"local",label:"Local Services"},{key:"docker-compose",label:"Docker Compose"},{key:"ssh",label:"Remote (SSH)"}].map(({key:F,label:oe})=>{const je=Z.filter(be=>(be.kind??"local")===F);return je.length===0?null:f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center justify-between gap-2 bg-muted/55 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:[f.jsx("span",{children:oe}),f.jsx("span",{className:"text-muted-foreground/80",children:je.length})]}),f.jsx("div",{className:"divide-y divide-border",children:je.map(be=>f.jsx(m2,{service:be,status:n.runtime.services[be.name],health:$[be.name],ports:n.ports,onRefresh:i,timeline:n.timeline},be.name))})]},F)}):null]}):f.jsx(id,{label:"No services registered yet."})})]}),f.jsxs(_i,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[f.jsx(Bi,{className:"border-b border-border px-3 py-2",children:f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[f.jsxs("div",{children:[f.jsx(Li,{children:"Recent Logs"}),f.jsx(Fs,{className:"text-xs",children:"Updates with dashboard refresh. Use Stream for a full-page live view."})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[f.jsx(q1,{value:g,onChange:y}),f.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!n.config.services.length,onChange:F=>u(F.target.value),value:r,children:n.config.services.map(F=>f.jsx("option",{value:F.name,children:F.name},F.name))}),f.jsxs(ge,{"aria-pressed":b,disabled:!r,onClick:()=>S(!0),size:"sm",type:"button",variant:"outline",children:[f.jsx(yp,{}),"Stream"]})]})]})}),f.jsx(Ui,{className:"min-w-0 p-0",children:f.jsx(G1,{className:"max-h-[320px]",containerRef:T,emptyText:le,logs:fe,query:g})})]})]}),f.jsxs("div",{className:"min-h-0 overflow-auto border-l border-border",children:[f.jsx(J7,{ports:n.ports}),f.jsx(U7,{events:n.timeline??[]})]})]}),p?f.jsx(tl,{icon:p==="service"?f.jsx(Gr,{}):f.jsx(gp,{}),onClose:()=>v(null),size:p==="service"?"lg":"md",title:p==="service"?"Add Service":"Create Group",children:p==="service"?f.jsx(_7,{cwd:n.cwd,onRefresh:i,onSaved:()=>v(null)}):f.jsx(f2,{services:Z,onRefresh:i,onSaved:()=>v(null)})}):null]})}function p9({exitCodes:n,groupName:i,showErrorToast:l,showMessageToast:r,showSuccessToast:u,transitions:d}){if(d.size===1){const[y]=d.keys();if(y==="running")u(`${i} group is running.`);else if(y==="stopped")r({text:`${i} group stopped.`});else if(y==="starting")r({text:`${i} group is starting.`});else if(y==="exited"){const p=n.filter(b=>b!=null),v=p.length?` with code ${p.join(", ")}`:"";l(`${i} group exited${v}.`)}return}const h=[...d.entries()].map(([y,p])=>`${p} ${y}`).join(", "),g=`${i} group updated: ${h}.`;d.has("exited")?l(g):r({text:g})}function g9({activeHunkIndex:n=0,diff:i}){const l=v9(i),r=k.useRef([]);return k.useEffect(()=>{r.current[n]?.scrollIntoView({block:"start",behavior:"smooth"})},[n,i]),f.jsx("div",{className:"h-full min-h-0 overflow-auto bg-white text-xs leading-6",children:f.jsx("div",{className:"min-w-max font-mono",children:l.map((u,d)=>f.jsxs("div",{className:he("grid grid-cols-[3rem_3rem_minmax(40rem,1fr)]",u.kind==="add"&&"bg-emerald-50 text-emerald-800",u.kind==="delete"&&"bg-red-50 text-red-800",Y1(l,d)&&u.hunkIndex===n&&"outline outline-1 outline-offset-[-1px] outline-primary/35"),ref:u.hunkIndex!==null&&Y1(l,d)?h=>{r.current[u.hunkIndex??0]=h}:void 0,children:[f.jsx(X1,{value:u.oldLine}),f.jsx(X1,{value:u.newLine}),f.jsx("span",{className:"whitespace-pre px-2",children:u.content||" "})]},`${d}-${u.content}`))})})}function y9(n){return n.split(`
13
- `).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 v9(n){const i=x9(n);return i.some(l=>l.kind==="hunk")?i.filter(l=>l.kind!=="meta"&&l.kind!=="hunk"):i}function x9(n){let i=null,l=null,r=null;return n.split(`
14
- `).map(u=>{if(b9(u))return i=null,l=null,r=null,{content:u,hunkIndex:r,kind:"meta",oldLine:null,newLine:null};if(u.startsWith("@@")){const h=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(u);return h&&(i=Number(h[1]),l=Number(h[2])),r=(r??-1)+1,{content:u,hunkIndex:r,kind:"hunk",oldLine:null,newLine:null}}if(i===null||l===null)return{content:u,hunkIndex:null,kind:"meta",oldLine:null,newLine:null};if(u.startsWith("\\ No newline"))return{content:u,hunkIndex:r,kind:"meta",oldLine:null,newLine:null};if(u.startsWith("+")&&!u.startsWith("+++")){const h={content:u,hunkIndex:r,kind:"add",oldLine:null,newLine:l};return l+=1,h}if(u.startsWith("-")&&!u.startsWith("---")){const h={content:u,hunkIndex:r,kind:"delete",oldLine:i,newLine:null};return i+=1,h}const d={content:u,hunkIndex:r,kind:"context",oldLine:i,newLine:l};return i+=1,l+=1,d})}function Y1(n,i){const l=n[i]?.hunkIndex;if(l===null)return!1;const r=n.findIndex(u=>u.hunkIndex===l&&(u.kind==="add"||u.kind==="delete"));return r!==-1?r===i:n.findIndex(u=>u.hunkIndex===l)===i}function b9(n){return n.startsWith("diff --git ")||n.startsWith("index ")||n.startsWith("--- ")||n.startsWith("+++ ")||n.startsWith("new file mode ")||n.startsWith("deleted file mode ")||n.startsWith("old mode ")||n.startsWith("new mode ")||n.startsWith("similarity index ")||n.startsWith("rename from ")||n.startsWith("rename to ")||n.startsWith("Binary files ")}function X1({value:n}){return f.jsx("span",{className:he("select-none border-r border-border/70 px-2 text-right text-muted-foreground",n===null&&"text-transparent"),children:n??"-"})}const S9=new Set(["c","cpp","cs","go","java","js","jsx","kt","mjs","py","rs","swift","ts","tsx"]),T9=new Set([".env",".gitignore","components.json","dockerfile","package.json","tsconfig.json","vite.config.ts"]),j9=new Set(["conf","config","ini","toml","yaml","yml"]),w9=new Set(["csv","json","sql","xml"]),A9=new Set(["md","mdx","rst","txt"]),N9=new Set(["gif","jpeg","jpg","png","svg","webp"]),C9=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock"]),M9=new Set(["css","less","sass","scss"]);function E9(n){const i=n.split("/").pop()?.toLowerCase()??n.toLowerCase(),l=i.includes(".")?i.split(".").pop()??"":"";return C9.has(i)||i.endsWith(".lock")?"lock":z9(i)?"test":T9.has(i)||j9.has(l)?"config":M9.has(l)?"style":N9.has(l)?"image":A9.has(l)?"document":w9.has(l)?"data":S9.has(l)?"code":"generic"}function z9(n){return n.includes(".test.")||n.includes(".spec.")||n.endsWith("_test.go")}function D9({branch:n,error:i,files:l,selectedFile:r,onSelectFile:u}){const d=k.useMemo(()=>_9(l).filter(y=>y.files.length),[l]),[h,g]=k.useState({staged:!1,unstaged:!1,untracked:!1});return f.jsxs(_i,{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-none border-0 bg-transparent",children:[f.jsx(Bi,{className:"border-b border-border px-2.5 py-1.5",children:f.jsxs(Li,{className:"flex items-center justify-between gap-2",children:[f.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[f.jsx(qr,{className:"size-3.5"}),f.jsx("span",{className:"truncate",children:"Changes"})]}),f.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[n?f.jsx(gt,{variant:"outline",children:n}):null,f.jsx(gt,{variant:"secondary",children:l.length})]})]})}),f.jsx(Ui,{className:"min-h-0 flex-1 overflow-auto p-0",children:d.length?d.map(y=>f.jsx(k9,{collapsed:h[y.id],group:y,onSelectFile:u,onToggle:()=>g(p=>({...p,[y.id]:!p[y.id]})),selectedFile:r},y.id)):f.jsx(en,{variant:"muted",className:"m-3 text-center",children:i??"No changed files."})})]})}function k9({collapsed:n,group:i,onSelectFile:l,onToggle:r,selectedFile:u}){const d=n?W1:Gi;return f.jsxs("section",{className:"border-b border-border last:border-b-0",children:[f.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:r,type:"button",children:[f.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[f.jsx(d,{className:"size-3.5"}),f.jsx("span",{className:"truncate",children:i.label})]}),f.jsx(gt,{className:"min-w-6 justify-center font-mono shadow-none",size:"small",variant:"outline",children:i.files.length})]}),n?null:f.jsx("div",{children:i.files.map(h=>f.jsx(R9,{active:u===h.path,file:h,group:i.id,onClick:()=>l(h.path)},h.path))})]})}function R9({active:n,file:i,group:l,onClick:r}){const u=i.path.split("/").pop()||i.path,d=i.path.split("/").slice(0,-1).join("/");return f.jsxs(ge,{className:he("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",n&&"bg-muted"),onClick:r,type:"button",variant:"ghost",children:[f.jsxs("span",{className:"min-w-0",children:[f.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[f.jsx(O9,{path:i.path}),f.jsx("span",{className:"truncate text-[13px] font-medium",children:u})]}),d?f.jsx("span",{className:"block truncate pl-5 text-[10px] text-muted-foreground",children:d}):null]}),f.jsx("span",{className:he("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:V9(i,l)})]})}function V9(n,i){return i==="untracked"?"?":i==="staged"?n.index.trim():n.workingTree.trim()}function O9({path:n}){const i=E9(n),l=B9[i];return f.jsx(l,{"aria-label":`${i} file`,className:he("size-3.5 shrink-0",L9[i])})}function _9(n){return[{id:"unstaged",label:"Changes",files:n.filter(i=>!(i.index==="?"&&i.workingTree==="?")&&i.workingTree.trim())},{id:"staged",label:"Staged Changes",files:n.filter(i=>!(i.index==="?"&&i.workingTree==="?")&&i.index.trim()&&!i.workingTree.trim())},{id:"untracked",label:"Untracked Files",files:n.filter(i=>i.index==="?"&&i.workingTree==="?")}]}const B9={code:vb,config:c3,data:hb,document:bb,generic:Tb,image:kb,lock:Ob,style:qb,test:wb},L9={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:n,filePaths:i,hunkCount:l,pendingNextFilePath:r,selectedFile:u}){if(l>0&&n<l-1)return{kind:"hunk",activeHunkIndex:n+1};const d=i.findIndex(g=>g===u),h=i[d+1];return h?r===h?{kind:"file",filePath:h}:{kind:"confirm-next-file",filePath:h}:{kind:"none"}}function H9({data:n}){const[i,l]=k.useState(n.git.status?.files[0]?.path??""),[r,u]=k.useState(""),[d,h]=k.useState(null),[g,y]=k.useState(0),[p,v]=k.useState(null),b=n.git.status?.files??[],S=k.useMemo(()=>b.map(Z=>Z.path),[b]),T=k.useMemo(()=>y9(r),[r]);k.useEffect(()=>{const Z=n.git.status?.files[0]?.path??"";l($=>$&&n.git.status?.files.some(J=>J.path===$)?$:Z)},[n.git.status?.files]),k.useEffect(()=>{if(!i){u("");return}let Z=!0;return h(null),y3(i).then($=>{Z&&(u($),y(0),v(null))}).catch($=>{Z&&h($ instanceof Error?$.message:String($))}),()=>{Z=!1}},[i]);function w(Z){y(0),v(null),l(Z)}function M(){const Z=U9({activeHunkIndex:g,filePaths:S,hunkCount:T.hunks,pendingNextFilePath:p,selectedFile:i});Z.kind==="hunk"?(v(null),y(Z.activeHunkIndex)):Z.kind==="confirm-next-file"?v(Z.filePath):Z.kind==="file"?w(Z.filePath):v(null)}function O(){if(v(null),g>0){y(J=>J-1);return}const Z=b.findIndex(J=>J.path===i),$=b[Z-1];$&&w($.path)}const L=b.findIndex(Z=>Z.path===i),q=!!(T.hunks&&g<T.hunks-1||b[L+1]),Y=!!(g>0||b[L-1]),X=p?`End of file. Click Next again to open ${p}.`:null;return f.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden border-0 bg-card/85 xl:grid-cols-[320px_minmax(0,1fr)]",children:[f.jsx("aside",{className:"flex min-h-0 flex-col overflow-hidden",children:f.jsx(D9,{branch:n.git.status?.branch||void 0,error:n.git.error,files:n.git.status?.files??[],selectedFile:i,onSelectFile:w})}),f.jsxs("section",{className:"flex min-h-0 min-w-0 flex-col border-l border-border bg-white",children:[f.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-border px-3 py-1.5",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("h2",{className:"truncate text-[13px] font-semibold tracking-tight",children:i||"Diff"}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[f.jsx("span",{children:"Long rows scroll horizontally inside the editor pane."}),T.additions||T.deletions?f.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[f.jsxs("span",{className:"text-emerald-700",children:["+",T.additions]}),f.jsxs("span",{className:"text-red-700",children:["-",T.deletions]})]}):null]})]}),f.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[X?f.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,f.jsxs(ge,{disabled:!i||!Y,onClick:O,size:"sm",type:"button",variant:"outline",children:[f.jsx(ab,{}),"Previous"]}),f.jsxs(ge,{disabled:!i||!q,onClick:M,size:"sm",type:"button",variant:"outline",children:[f.jsx(tb,{}),"Next"]})]})]}),f.jsx("div",{className:"min-h-0 min-w-0 flex-1",children:d?f.jsx("div",{className:"p-4",children:f.jsx(en,{variant:"destructive",children:d})}):i?f.jsx(g9,{activeHunkIndex:g,diff:r||"No unstaged diff for this file."}):f.jsx("div",{className:"p-4",children:f.jsx(en,{variant:"muted",className:"border-dashed p-12 text-center",children:"Select a changed file to inspect its diff."})})})]})]})}function q9({initialPath:n,onSelect:i,selectedPath:l}){const[r,u]=k.useState(n),[d,h]=k.useState(null),[g,y]=k.useState(null),[p,v]=k.useState(!1),b=G9(d);return k.useEffect(()=>{u(n)},[n]),k.useEffect(()=>{let S=!0;return v(!0),y(null),v3(r).then(T=>{S&&(h(T),i(T.path))}).catch(T=>{S&&y(T instanceof Error?T.message:String(T))}).finally(()=>{S&&v(!1)}),()=>{S=!1}},[r,i]),f.jsxs("div",{className:"rounded-md border border-border bg-background",children:[f.jsxs("div",{className:"flex items-center gap-2 border-b border-border p-2",children:[b?f.jsx(ge,{"aria-label":"Open parent folder",onClick:()=>d&&u(d.parent),size:"icon",type:"button",variant:"ghost",children:f.jsx(Gi,{className:"rotate-90"})}):null,f.jsx("div",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:d?.path??r}),p?f.jsx(tg,{className:"size-4 animate-spin text-muted-foreground"}):null]}),f.jsxs("div",{className:"max-h-56 overflow-auto p-1",children:[g?f.jsx(en,{variant:"destructive",className:"m-1",children:g}):null,!g&&d?.entries.length===0?f.jsx(en,{variant:"muted",className:"m-1 text-center",children:"No folders here."}):null,d?.entries.map(S=>f.jsxs(ge,{className:he("h-8 w-full justify-start rounded-sm px-2 text-left",l===S.path&&"bg-muted"),onClick:()=>u(S.path),title:S.path,type:"button",variant:"ghost",children:[f.jsx(Cf,{className:"text-accent"}),f.jsx("span",{className:"truncate",children:S.name})]},S.path))]})]})}function G9(n){return!!(n&&n.parent!==n.path)}function Z1(n){return n.split(/[\\/]/).filter(Boolean).pop()??"project"}function Y9({data:n,onRefresh:i}){const[l,r]=k.useState(!1),[u,d]=k.useState(n.git.cwd),[h,g]=k.useState(null),[y,p]=k.useState(!1),[v,b]=k.useState("add"),[S,T]=k.useState(n.git.cwd),w=k.useRef(null),M=n.git.selectedRepository,O=M?.name??Z1(n.git.cwd),{error:L,success:q}=ba();k.useEffect(()=>{d(n.git.cwd),T(n.git.cwd)},[n.git.cwd]),k.useEffect(()=>{if(!l)return;function $(J){w.current&&J.target instanceof Node&&!w.current.contains(J.target)&&r(!1)}return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[l]);async function Y($){try{await Wt("/api/git/select",{name:$}),r(!1),await i(),q(`Switched to ${$}.`)}catch(J){L(J instanceof Error?J.message:String(J))}}async function X($){const J=$.trim();if(!X9(J)){const B="Please add an absolute path. Paths beginning with ~ are not expanded here.";return g(B),L(B),!1}try{const B=Z1(J);return await Wt("/api/git/repositories",{name:B,path:J}),g(null),await i(),q(`Added Git project ${B}.`),!0}catch(B){const fe=B instanceof Error?B.message:String(B);return g(fe),L(fe),!1}}async function Z($){$.preventDefault(),await X(u)&&r(!1)}return f.jsxs("div",{className:"relative z-50 flex items-center gap-2",ref:w,children:[f.jsxs(ge,{className:"max-w-[220px] justify-start gap-2 rounded-md border-border bg-card",onClick:()=>r($=>!$),size:"sm",type:"button",variant:"outline",children:[f.jsx(Cf,{className:"text-muted-foreground"}),f.jsx("span",{className:"truncate",children:O}),f.jsx(Gi,{className:he("ml-auto transition-transform",l&&"rotate-180")})]}),f.jsx(ge,{"aria-label":"Add Git project",onClick:()=>{b("add"),g(null),T(n.git.cwd),p(!0)},size:"sm",type:"button",variant:"outline",children:f.jsx(Gr,{})}),l?f.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:[f.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[f.jsx(pb,{className:"size-3.5 text-muted-foreground"}),f.jsx("div",{className:"text-xs font-semibold",children:"Git Projects"}),f.jsx(gt,{className:"ml-auto h-5 px-1.5 text-[10px]",variant:"outline",children:n.config.gitRepositories.length})]}),f.jsx("div",{className:"max-h-72 overflow-auto",children:n.config.gitRepositories.length?f.jsx("div",{className:"divide-y divide-border",children:n.config.gitRepositories.map($=>{const J=$.name===M?.name;return f.jsxs("button",{className:he("grid w-full grid-cols-[1fr_auto] items-center gap-2 px-3 py-1.5 text-left transition-colors hover:bg-muted",J&&"bg-muted/70"),onClick:()=>{Y($.name)},type:"button",children:[f.jsxs("span",{className:"min-w-0",children:[f.jsx("span",{className:"block truncate text-sm font-medium leading-tight",children:$.name}),f.jsx("span",{className:"block truncate font-mono text-[10px] leading-tight text-muted-foreground",children:$.path})]}),J?f.jsx($1,{className:"size-3.5"}):null]},$.name)})}):f.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:"No saved Git projects yet."})}),f.jsxs("div",{className:"border-t border-border bg-muted/20 p-2",children:[f.jsxs("form",{className:"flex gap-1.5",onSubmit:Z,children:[f.jsx(pt,{"aria-label":"Paste absolute path",className:"h-7 flex-1 px-2 font-mono text-[11px]",onChange:$=>{d($.target.value),g(null)},placeholder:"/absolute/path",value:u}),f.jsxs(ge,{className:"h-7 px-2 text-[11px]",size:"sm",type:"submit",children:[f.jsx(Gr,{className:"size-3"}),"Add"]}),f.jsx(ge,{"aria-label":"Browse folders",className:"h-7 px-2",onClick:()=>{b("fill"),g(null),T(u||n.git.cwd),p(!0)},size:"sm",type:"button",variant:"outline",children:f.jsx(Nb,{className:"size-3"})})]}),h?f.jsx("div",{className:"mt-1.5 truncate text-[10px] text-destructive",children:h}):null]})]}):null,y?f.jsx(Z9,{confirmLabel:v==="add"?"Add Git project":"Use this folder",errorMessage:v==="add"?h:null,initialPath:v==="add"?n.git.cwd:u||n.git.cwd,selectedPath:S,title:v==="add"?"Add Git Project":"Choose Git Project Folder",onCancel:()=>p(!1),onSelect:T,onUse:async()=>{v==="add"?await X(S)&&(p(!1),r(!1)):(d(S),g(null),p(!1))}}):null]})}function X9(n){return n.startsWith("/")}function Z9({confirmLabel:n="Use this folder",errorMessage:i,initialPath:l,onCancel:r,onSelect:u,onUse:d,selectedPath:h,title:g="Choose Git Project Folder"}){return c2.createPortal(f.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",children:f.jsxs("div",{className:"w-full max-w-2xl rounded-xl border border-border bg-card p-4 shadow-xl",children:[f.jsxs("div",{className:"mb-3 flex items-center gap-3",children:[f.jsx("div",{className:"flex size-8 items-center justify-center rounded-lg border border-border bg-background",children:f.jsx(Cf,{className:"size-4"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:"text-sm font-semibold",children:g}),f.jsx("div",{className:"truncate font-mono text-xs text-muted-foreground",children:h})]}),f.jsx(ge,{"aria-label":"Close folder picker",onClick:r,size:"icon",variant:"ghost",children:f.jsx(eo,{})})]}),f.jsx(q9,{initialPath:l,onSelect:u,selectedPath:h}),i?f.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,f.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[f.jsx(ge,{onClick:r,type:"button",variant:"outline",children:"Cancel"}),f.jsx(ge,{onClick:()=>{d()},type:"button",children:n})]})]})}),document.body)}function Q9({branches:n,currentBranch:i,disabled:l,onRefresh:r}){const[u,d]=k.useState(!1),[h,g]=k.useState(""),[y,p]=k.useState(null),[v,b]=k.useState(null),[S,T]=k.useState(null),w=n.filter(X=>!X.remote),M=n.filter(X=>X.remote);async function O(X,Z){p(X),T(null),b(null);try{await Z(),await r()}catch($){T($ instanceof Error?$.message:String($))}finally{p(null)}}async function L(X){await O(`switch:${X}`,async()=>{await Wt("/api/git/branches/switch",{name:X}),d(!1)})}async function q(){await O("fetch",async()=>{await Wt("/api/git/fetch",{}),b("Fetched latest branch refs.")})}async function Y(X){X.preventDefault();const Z=h.trim();if(!Z){T("Branch name is required.");return}await O("create",async()=>{await Wt("/api/git/branches",{name:Z}),g(""),d(!1)})}return f.jsxs("div",{className:"fixed bottom-3 right-4 z-50 flex items-end",children:[u?f.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:[f.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border p-3",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[f.jsx(qr,{className:"size-4 text-muted-foreground"}),f.jsx("span",{className:"truncate text-sm font-semibold",children:i||"Branches"})]}),f.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[f.jsx(ge,{"aria-label":"Fetch branches",disabled:l||y!==null,onClick:()=>{q()},size:"icon",title:"Fetch branches",type:"button",variant:"ghost",children:f.jsx(ag,{className:he(y==="fetch"&&"animate-spin")})}),f.jsx(ge,{"aria-label":"Close branch dialog",onClick:()=>d(!1),size:"icon",type:"button",variant:"ghost",children:f.jsx(eo,{})})]})]}),f.jsx("div",{className:"max-h-72 overflow-auto",children:n.length?f.jsxs(f.Fragment,{children:[f.jsx(Q1,{branches:w,busy:y!==null,disabled:l,label:"Local",onSwitch:L}),f.jsx(Q1,{branches:M,busy:y!==null,disabled:l,label:"Remote",onSwitch:L})]}):f.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"No branches found."})}),f.jsxs("div",{className:"border-t border-border p-3",children:[f.jsxs("form",{className:"grid gap-2 sm:grid-cols-[1fr_auto]",onSubmit:Y,children:[f.jsx(pt,{"aria-label":"New branch name",disabled:l||y!==null,onChange:X=>{g(X.target.value),T(null),b(null)},placeholder:"feature/new-work",value:h}),f.jsxs(ge,{disabled:l||y!==null,type:"submit",children:[f.jsx(zb,{}),"Create"]})]}),S||v?f.jsx(en,{className:"mt-3 px-3 py-2 text-xs",variant:S?"destructive":"muted",children:S??v}):null]})]}):null,f.jsxs(ge,{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:[f.jsx(qr,{className:"size-4"}),f.jsx("span",{className:"truncate font-mono text-xs",children:i||"No branch"}),f.jsx(Gi,{className:he("size-4 transition-transform",u&&"rotate-180")})]})]})}function Q1({branches:n,busy:i,disabled:l,label:r,onSwitch:u}){return f.jsxs("section",{children:[f.jsx("div",{className:"border-b border-border bg-muted/60 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:r}),n.length?n.map(d=>f.jsxs("button",{className:he("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:()=>{u(d.name)},type:"button",children:[f.jsxs("span",{className:"min-w-0",children:[f.jsx("span",{className:"block truncate font-medium",children:d.name}),d.upstream?f.jsxs("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:["tracks ",d.upstream]}):null]}),f.jsx(gt,{variant:d.current?"success":d.remote?"outline":"secondary",children:d.current?"current":d.remote?"remote":"local"})]},`${d.remote?"remote":"local"}:${d.name}`)):f.jsxs("div",{className:"border-b border-border px-3 py-3 text-sm text-muted-foreground",children:["No ",r.toLowerCase()," branches."]})]})}function K9({className:n}){return f.jsxs("div",{className:he("min-w-0",n),children:[f.jsxs("div",{className:"flex items-baseline gap-1.5",children:[f.jsx("div",{className:"text-sm font-semibold",children:"NoMoreIDE"}),f.jsxs("div",{className:"font-mono text-[10px] text-muted-foreground",children:["v","0.1.16"]})]}),f.jsx("div",{className:"font-mono text-[11px] text-muted-foreground",children:"127.0.0.1 console"})]})}function F9(){const[n,i]=k.useState(()=>window.location.pathname.startsWith("/git")?"git":"services"),[l,r]=k.useState(null),[u,d]=k.useState(null),[h,g]=k.useState(!0),{error:y,success:p}=ba(),[v,b]=k.useState(()=>window.localStorage.getItem("nomoreide:sidebar")==="collapsed"),S=k.useCallback(async(w={})=>{w.silent||g(!0),d(null);try{r(await g3()),w.notify&&p("Dashboard refreshed.")}catch(M){const O=M instanceof Error?M.message:String(M);d(O),y(O)}finally{g(!1)}},[y,p]);k.useEffect(()=>{S()},[S]),k.useEffect(()=>{function w(){document.visibilityState==="visible"&&S({silent:!0})}const M=window.setInterval(w,5e3);return window.addEventListener("focus",w),document.addEventListener("visibilitychange",w),()=>{window.clearInterval(M),window.removeEventListener("focus",w),document.removeEventListener("visibilitychange",w)}},[n,S]),k.useEffect(()=>{const w=n==="git"?"/git":"/";window.location.pathname!==w&&window.history.pushState(null,"",w)},[n]),k.useEffect(()=>{window.localStorage.setItem("nomoreide:sidebar",v?"collapsed":"expanded")},[v]);const T=k.useMemo(()=>l?Object.values(l.runtime.services).filter(w=>w.state==="running").length:0,[l]);return f.jsxs("div",{className:"h-screen overflow-hidden",children:[f.jsxs("div",{className:"mx-auto flex h-screen max-w-[1500px]",children:[f.jsxs("aside",{className:he("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:[f.jsxs("div",{className:he("flex items-center px-2",v?"justify-center":"gap-3"),children:[f.jsx("div",{className:"flex size-9 items-center justify-center overflow-hidden rounded-md bg-primary",children:f.jsx("img",{alt:"NoMoreIDE",className:"size-full object-cover",src:p3})}),f.jsx(K9,{className:he(v&&"hidden")}),f.jsx(ge,{"aria-label":v?"Expand navigation":"Collapse navigation",className:he("ml-auto",v&&"hidden"),size:"icon",variant:"ghost",onClick:()=>b(w=>!w),children:f.jsx(Yb,{})})]}),f.jsx("div",{className:he("mt-4",!v&&"hidden"),children:f.jsx(ge,{"aria-label":"Expand navigation",className:"w-full",size:"icon",variant:"ghost",onClick:()=>b(w=>!w),children:f.jsx(Zb,{})})}),f.jsxs("nav",{className:"mt-5 grid gap-1",children:[f.jsx(K1,{active:n==="services",badge:T,collapsed:v,icon:f.jsx(r3,{}),label:"Services",onClick:()=>i("services")}),f.jsx(K1,{active:n==="git",collapsed:v,icon:f.jsx(qr,{}),label:"Git Review",onClick:()=>i("git")})]})]}),f.jsxs("main",{className:"flex h-screen min-w-0 flex-1 flex-col px-0 py-0",children:[f.jsxs("header",{className:he("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:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Kb,{className:"size-4 text-muted-foreground md:hidden"}),f.jsxs("div",{children:[f.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:n==="git"?"Git Review":"Services"}),f.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:l?.git.selectedRepository?.name??l?.git.cwd??"Local workspace"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[u?f.jsx(gt,{variant:"danger",children:u}):null,l&&n==="git"?f.jsx(Y9,{data:l,onRefresh:S}):null,f.jsxs(ge,{variant:"outline",size:"sm",onClick:()=>{S({notify:!0})},children:[f.jsx(ag,{className:he(h&&"animate-spin")}),"Refresh"]})]})]}),h&&!l?f.jsx(en,{variant:"muted",children:"Loading NoMoreIDE state..."}):null,f.jsxs("div",{className:"min-h-0 flex-1 overflow-hidden",children:[l&&n==="services"?f.jsx(m9,{data:l,onRefresh:S}):null,l&&n==="git"?f.jsx(H9,{data:l}):null]})]})]}),l&&n==="git"?f.jsx(Q9,{branches:l.git.branches,currentBranch:l.git.status?.branch||void 0,disabled:!l.git.status,onRefresh:S}):null]})}function K1({active:n,badge:i,collapsed:l,icon:r,label:u,onClick:d}){return f.jsxs(ge,{"aria-label":u,title:l?u:void 0,className:he("w-full",l?"relative justify-center px-0":"justify-start"),variant:n?"default":"ghost",onClick:d,type:"button",children:[f.jsx("span",{className:he(l&&"[&_svg]:size-4"),children:r}),f.jsx("span",{className:he("min-w-0 flex-1 text-left",l&&"hidden"),children:u}),i!==void 0?f.jsx(gt,{appearance:i>0?"solid":"outline",className:he("min-w-6 justify-center px-1.5 font-mono shadow-none",n?"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]})}P1.createRoot(document.getElementById("root")).render(f.jsx(k.StrictMode,{children:f.jsx(F9,{})}));