function d1(s,o){for(var r=0;ri[d]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))i(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function i(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();function Au(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Yr={exports:{}},Cl={};var Gp;function f1(){if(Gp)return Cl;Gp=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function r(i,d,m){var h=null;if(m!==void 0&&(h=""+m),d.key!==void 0&&(h=""+d.key),"key"in d){m={};for(var p in d)p!=="key"&&(m[p]=d[p])}else m=d;return d=m.ref,{$$typeof:s,type:i,key:h,ref:d!==void 0?d:null,props:m}}return Cl.Fragment=o,Cl.jsx=r,Cl.jsxs=r,Cl}var Xp;function m1(){return Xp||(Xp=1,Yr.exports=f1()),Yr.exports}var u=m1(),Wr={exports:{}},be={};var Zp;function p1(){if(Zp)return be;Zp=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),E=Symbol.iterator;function A(N){return N===null||typeof N!="object"?null:(N=E&&N[E]||N["@@iterator"],typeof N=="function"?N:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function k(N,q,F){this.props=N,this.context=q,this.refs=C,this.updater=F||R}k.prototype.isReactComponent={},k.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,q,"setState")},k.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function z(){}z.prototype=k.prototype;function L(N,q,F){this.props=N,this.context=q,this.refs=C,this.updater=F||R}var V=L.prototype=new z;V.constructor=L,S(V,k.prototype),V.isPureReactComponent=!0;var Q=Array.isArray;function I(){}var W={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ae(N,q,F){var ee=F.ref;return{$$typeof:s,type:N,key:q,ref:ee!==void 0?ee:null,props:F}}function ue(N,q){return ae(N.type,q,N.props)}function fe(N){return typeof N=="object"&&N!==null&&N.$$typeof===s}function te(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(F){return q[F]})}var ge=/\/+/g;function re(N,q){return typeof N=="object"&&N!==null&&N.key!=null?te(""+N.key):q.toString(36)}function me(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(I,I):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,q,F,ee,le){var K=typeof N;(K==="undefined"||K==="boolean")&&(N=null);var M=!1;if(N===null)M=!0;else switch(K){case"bigint":case"string":case"number":M=!0;break;case"object":switch(N.$$typeof){case s:case o:M=!0;break;case b:return M=N._init,D(M(N._payload),q,F,ee,le)}}if(M)return le=le(N),M=ee===""?"."+re(N,0):ee,Q(le)?(F="",M!=null&&(F=M.replace(ge,"$&/")+"/"),D(le,q,F,"",function(he){return he})):le!=null&&(fe(le)&&(le=ue(le,F+(le.key==null||N&&N.key===le.key?"":(""+le.key).replace(ge,"$&/")+"/")+M)),q.push(le)),1;M=0;var _=ee===""?".":ee+":";if(Q(N))for(var ne=0;ne>>1,pe=D[se];if(0>>1;sed(F,P))eed(le,F)?(D[se]=le,D[ee]=P,se=ee):(D[se]=F,D[q]=P,se=q);else if(eed(le,P))D[se]=le,D[ee]=P,se=ee;else break e}}return X}function d(D,X){var P=D.sortIndex-X.sortIndex;return P!==0?P:D.id-X.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var h=Date,p=h.now();s.unstable_now=function(){return h.now()-p}}var g=[],x=[],b=1,w=null,E=3,A=!1,R=!1,S=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function V(D){for(var X=r(x);X!==null;){if(X.callback===null)i(x);else if(X.startTime<=D)i(x),X.sortIndex=X.expirationTime,o(g,X);else break;X=r(x)}}function Q(D){if(S=!1,V(D),!R)if(r(g)!==null)R=!0,I||(I=!0,te());else{var X=r(x);X!==null&&me(Q,X.startTime-D)}}var I=!1,W=-1,J=5,ae=-1;function ue(){return C?!0:!(s.unstable_now()-aeD&&ue());){var se=w.callback;if(typeof se=="function"){w.callback=null,E=w.priorityLevel;var pe=se(w.expirationTime<=D);if(D=s.unstable_now(),typeof pe=="function"){w.callback=pe,V(D),X=!0;break t}w===r(g)&&i(g),V(D)}else i(g);w=r(g)}if(w!==null)X=!0;else{var N=r(x);N!==null&&me(Q,N.startTime-D),X=!1}}break e}finally{w=null,E=P,A=!1}X=void 0}}finally{X?te():I=!1}}}var te;if(typeof L=="function")te=function(){L(fe)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,re=ge.port2;ge.port1.onmessage=fe,te=function(){re.postMessage(null)}}else te=function(){k(fe,0)};function me(D,X){W=k(function(){D(s.unstable_now())},X)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(D){D.callback=null},s.unstable_forceFrameRate=function(D){0>D||125se?(D.sortIndex=P,o(x,D),r(g)===null&&D===r(x)&&(S?(z(W),W=-1):S=!0,me(Q,P-se))):(D.sortIndex=pe,o(g,D),R||A||(R=!0,I||(I=!0,te()))),D},s.unstable_shouldYield=ue,s.unstable_wrapCallback=function(D){var X=E;return function(){var P=E;E=X;try{return D.apply(this,arguments)}finally{E=P}}}})(Zr)),Zr}var Jp;function x1(){return Jp||(Jp=1,Xr.exports=h1()),Xr.exports}var Qr={exports:{}},rt={};var $p;function g1(){if($p)return rt;$p=1;var s=Ol();function o(g){var x="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Qr.exports=g1(),Qr.exports}var Ip;function v1(){if(Ip)return Al;Ip=1;var s=x1(),o=Ol(),r=Xh();function i(e){var t="https://react.dev/errors/"+e;if(1pe||(e.current=se[pe],se[pe]=null,pe--)}function F(e,t){pe++,se[pe]=e.current,e.current=t}var ee=N(null),le=N(null),K=N(null),M=N(null);function _(e,t){switch(F(K,t),F(le,e),F(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=hp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(ee),F(ee,e)}function ne(){q(ee),q(le),q(K)}function he(e){e.memoizedState!==null&&F(M,e);var t=ee.current,n=hp(t,e.type);t!==n&&(F(le,e),F(ee,n))}function ye(e){le.current===e&&(q(ee),q(le)),M.current===e&&(q(M),Sl._currentValue=P)}var ze,ut;function dt(e){if(ze===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",ut=-1)":-1l||j[a]!==U[l]){var G=` `+j[a].replace(" at new "," at ");return e.displayName&&G.includes("")&&(G=G.replace("",e.displayName)),G}while(1<=a&&0<=l);break}}}finally{ca=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?dt(n):""}function Ds(e,t){switch(e.tag){case 26:case 27:case 5:return dt(e.type);case 16:return dt("Lazy");case 13:return e.child!==t&&t!==null?dt("Suspense Fallback"):dt("Suspense");case 19:return dt("SuspenseList");case 0:case 15:return ia(e.type,!1);case 11:return ia(e.type.render,!1);case 1:return ia(e.type,!0);case 31:return dt("Activity");default:return""}}function Wu(e){try{var t="",n=null;do t+=Ds(e,n),n=e,e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var Mc=Object.prototype.hasOwnProperty,Tc=s.unstable_scheduleCallback,zc=s.unstable_cancelCallback,Yg=s.unstable_shouldYield,Wg=s.unstable_requestPaint,wt=s.unstable_now,Gg=s.unstable_getCurrentPriorityLevel,Gu=s.unstable_ImmediatePriority,Xu=s.unstable_UserBlockingPriority,Ul=s.unstable_NormalPriority,Xg=s.unstable_LowPriority,Zu=s.unstable_IdlePriority,Zg=s.log,Qg=s.unstable_setDisableYieldValue,Os=null,St=null;function An(e){if(typeof Zg=="function"&&Qg(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Os,e)}catch{}}var jt=Math.clz32?Math.clz32:$g,Kg=Math.log,Jg=Math.LN2;function $g(e){return e>>>=0,e===0?32:31-(Kg(e)/Jg|0)|0}var Ll=256,Bl=262144,Pl=4194304;function ra(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 Vl(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?l=ra(a):(f&=v,f!==0?l=ra(f):n||(n=v&~e,n!==0&&(l=ra(n))))):(v=a&~c,v!==0?l=ra(v):f!==0?l=ra(f):n||(n=a&~e,n!==0&&(l=ra(n)))),l===0?0:t!==0&&t!==l&&(t&c)===0&&(c=l&-l,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:l}function ks(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fg(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 Qu(){var e=Pl;return Pl<<=1,(Pl&62914560)===0&&(Pl=4194304),e}function _c(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ig(e,t,n,a,l,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,j=e.expirationTimes,U=e.hiddenUpdates;for(n=f&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var l0=/[\n"\\]/g;function Ot(e){return e.replace(l0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uc(e,t,n,a,l,c,f,v){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Lc(e,f,Dt(t)):n!=null?Lc(e,f,Dt(n)):a!=null&&e.removeAttribute("value"),l==null&&c!=null&&(e.defaultChecked=!!c),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Dt(v):e.removeAttribute("name")}function cd(e,t,n,a,l,c,f,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Hc(e);return}n=n!=null?""+Dt(n):"",t=t!=null?""+Dt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Hc(e)}function Lc(e,t,n){t==="number"&&Wl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Pa(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yc=!1;if(cn)try{var Ps={};Object.defineProperty(Ps,"passive",{get:function(){Yc=!0}}),window.addEventListener("test",Ps,Ps),window.removeEventListener("test",Ps,Ps)}catch{Yc=!1}var Tn=null,Wc=null,Xl=null;function pd(){if(Xl)return Xl;var e,t=Wc,n=t.length,a,l="value"in Tn?Tn.value:Tn.textContent,c=l.length;for(e=0;e=Ys),bd=" ",wd=!1;function Sd(e,t){switch(e){case"keyup":return D0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function k0(e,t){switch(e){case"compositionend":return jd(t);case"keypress":return t.which!==32?null:(wd=!0,bd);case"textInput":return e=t.data,e===bd&&wd?null:e;default:return null}}function H0(e,t){if(Wa)return e==="compositionend"||!Kc&&Sd(e,t)?(e=pd(),Xl=Wc=Tn=null,Wa=!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)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_d(n)}}function Dd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Od(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Fc(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 W0=cn&&"documentMode"in document&&11>=document.documentMode,Ga=null,Ic=null,Zs=null,ei=!1;function kd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ei||Ga==null||Ga!==Wl(a)||(a=Ga,"selectionStart"in a&&Fc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Zs&&Xs(Zs,a)||(Zs=a,a=Po(Ic,"onSelect"),0>=f,l-=f,Jt=1<<32-jt(t)+l|n<Se?(Ae=de,de=null):Ae=de.sibling;var Re=B(O,de,H[Se],Z);if(Re===null){de===null&&(de=Ae);break}e&&de&&Re.alternate===null&&t(O,de),T=c(Re,T,Se),_e===null?xe=Re:_e.sibling=Re,_e=Re,de=Ae}if(Se===H.length)return n(O,de),Me&&un(O,Se),xe;if(de===null){for(;SeSe?(Ae=de,de=null):Ae=de.sibling;var $n=B(O,de,Re.value,Z);if($n===null){de===null&&(de=Ae);break}e&&de&&$n.alternate===null&&t(O,de),T=c($n,T,Se),_e===null?xe=$n:_e.sibling=$n,_e=$n,de=Ae}if(Re.done)return n(O,de),Me&&un(O,Se),xe;if(de===null){for(;!Re.done;Se++,Re=H.next())Re=$(O,Re.value,Z),Re!==null&&(T=c(Re,T,Se),_e===null?xe=Re:_e.sibling=Re,_e=Re);return Me&&un(O,Se),xe}for(de=a(de);!Re.done;Se++,Re=H.next())Re=Y(de,O,Se,Re.value,Z),Re!==null&&(e&&Re.alternate!==null&&de.delete(Re.key===null?Se:Re.key),T=c(Re,T,Se),_e===null?xe=Re:_e.sibling=Re,_e=Re);return e&&de.forEach(function(u1){return t(O,u1)}),Me&&un(O,Se),xe}function Le(O,T,H,Z){if(typeof H=="object"&&H!==null&&H.type===S&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case A:e:{for(var xe=H.key;T!==null;){if(T.key===xe){if(xe=H.type,xe===S){if(T.tag===7){n(O,T.sibling),Z=l(T,H.props.children),Z.return=O,O=Z;break e}}else if(T.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===J&&ba(xe)===T.type){n(O,T.sibling),Z=l(T,H.props),Is(Z,H),Z.return=O,O=Z;break e}n(O,T);break}else t(O,T);T=T.sibling}H.type===S?(Z=ha(H.props.children,O.mode,Z,H.key),Z.return=O,O=Z):(Z=no(H.type,H.key,H.props,null,O.mode,Z),Is(Z,H),Z.return=O,O=Z)}return f(O);case R:e:{for(xe=H.key;T!==null;){if(T.key===xe)if(T.tag===4&&T.stateNode.containerInfo===H.containerInfo&&T.stateNode.implementation===H.implementation){n(O,T.sibling),Z=l(T,H.children||[]),Z.return=O,O=Z;break e}else{n(O,T);break}else t(O,T);T=T.sibling}Z=ci(H,O.mode,Z),Z.return=O,O=Z}return f(O);case J:return H=ba(H),Le(O,T,H,Z)}if(me(H))return oe(O,T,H,Z);if(te(H)){if(xe=te(H),typeof xe!="function")throw Error(i(150));return H=xe.call(H),ve(O,T,H,Z)}if(typeof H.then=="function")return Le(O,T,ro(H),Z);if(H.$$typeof===L)return Le(O,T,lo(O,H),Z);uo(O,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,T!==null&&T.tag===6?(n(O,T.sibling),Z=l(T,H),Z.return=O,O=Z):(n(O,T),Z=oi(H,O.mode,Z),Z.return=O,O=Z),f(O)):n(O,T)}return function(O,T,H,Z){try{Fs=0;var xe=Le(O,T,H,Z);return ns=null,xe}catch(de){if(de===ts||de===co)throw de;var _e=Et(29,de,null,O.mode);return _e.lanes=Z,_e.return=O,_e}}}var Sa=sf(!0),lf=sf(!1),On=!1;function yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bi(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 kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(De&2)!==0){var l=a.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=to(e),qd(e,null,n),t}return eo(e,a,t,n),to(e)}function el(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ju(e,n)}}function wi(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?l=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?l=c=t:c=c.next=t}else l=c=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Si=!1;function tl(){if(Si){var e=es;if(e!==null)throw e}}function nl(e,t,n,a){Si=!1;var l=e.updateQueue;On=!1;var c=l.firstBaseUpdate,f=l.lastBaseUpdate,v=l.shared.pending;if(v!==null){l.shared.pending=null;var j=v,U=j.next;j.next=null,f===null?c=U:f.next=U,f=j;var G=e.alternate;G!==null&&(G=G.updateQueue,v=G.lastBaseUpdate,v!==f&&(v===null?G.firstBaseUpdate=U:v.next=U,G.lastBaseUpdate=j))}if(c!==null){var $=l.baseState;f=0,G=U=j=null,v=c;do{var B=v.lane&-536870913,Y=B!==v.lane;if(Y?(Ce&B)===B:(a&B)===B){B!==0&&B===Ia&&(Si=!0),G!==null&&(G=G.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var oe=e,ve=v;B=t;var Le=n;switch(ve.tag){case 1:if(oe=ve.payload,typeof oe=="function"){$=oe.call(Le,$,B);break e}$=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ve.payload,B=typeof oe=="function"?oe.call(Le,$,B):oe,B==null)break e;$=w({},$,B);break e;case 2:On=!0}}B=v.callback,B!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=l.callbacks,Y===null?l.callbacks=[B]:Y.push(B))}else Y={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},G===null?(U=G=Y,j=$):G=G.next=Y,f|=B;if(v=v.next,v===null){if(v=l.shared.pending,v===null)break;Y=v,v=Y.next,Y.next=null,l.lastBaseUpdate=Y,l.shared.pending=null}}while(!0);G===null&&(j=$),l.baseState=j,l.firstBaseUpdate=U,l.lastBaseUpdate=G,c===null&&(l.shared.lanes=0),Vn|=f,e.lanes=f,e.memoizedState=$}}function of(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function cf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ec?c:8;var f=D.T,v={};D.T=v,Vi(e,!1,t,n);try{var j=l(),U=D.S;if(U!==null&&U(v,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=I0(j,a);ll(e,t,G,zt(e))}else ll(e,t,a,zt(e))}catch($){ll(e,t,{then:function(){},status:"rejected",reason:$},zt())}finally{X.p=c,f!==null&&v.types!==null&&(f.types=v.types),D.T=f}}function lv(){}function Bi(e,t,n,a){if(e.tag!==5)throw Error(i(476));var l=Pf(e).queue;Bf(e,l,t,P,n===null?lv:function(){return Vf(e),n(a)})}function Pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:P},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vf(e){var t=Pf(e);t.next===null&&(t=e.alternate.memoizedState),ll(e,t.next.queue,{},zt())}function Pi(){return lt(Sl)}function qf(){return Xe().memoizedState}function Yf(){return Xe().memoizedState}function ov(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=zt();e=kn(n);var a=Hn(t,e,n);a!==null&&(yt(a,t,n),el(a,t,n)),t={cache:hi()},e.payload=t;return}t=t.return}}function cv(e,t,n){var a=zt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wo(e)?Gf(t,n):(n=si(e,t,n,a),n!==null&&(yt(n,e,a),Xf(n,t,a)))}function Wf(e,t,n){var a=zt();ll(e,t,n,a)}function ll(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(wo(e))Gf(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,v=c(f,n);if(l.hasEagerState=!0,l.eagerState=v,Nt(v,f))return eo(e,t,l,0),Be===null&&Il(),!1}catch{}if(n=si(e,t,l,a),n!==null)return yt(n,e,a),Xf(n,t,a),!0}return!1}function Vi(e,t,n,a){if(a={lane:2,revertLane:yr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wo(e)){if(t)throw Error(i(479))}else t=si(e,n,a,2),t!==null&&yt(t,e,2)}function wo(e){var t=e.alternate;return e===we||t!==null&&t===we}function Gf(e,t){ss=po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xf(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ju(e,n)}}var ol={readContext:lt,use:go,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ol.useEffectEvent=Ye;var Zf={readContext:lt,use:go,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:zf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yo(4194308,4,Of.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){yo(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var a=e();if(ja){An(!0);try{e()}finally{An(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ft();if(n!==void 0){var l=n(t);if(ja){An(!0);try{n(t)}finally{An(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=cv.bind(null,we,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Oi(e);var t=e.queue,n=Wf.bind(null,we,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ui,useDeferredValue:function(e,t){var n=ft();return Li(n,e,t)},useTransition:function(){var e=Oi(!1);return e=Bf.bind(null,we,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=we,l=ft();if(Me){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Be===null)throw Error(i(349));(Ce&127)!==0||pf(a,t,n)}l.memoizedState=n;var c={value:n,getSnapshot:t};return l.queue=c,zf(xf.bind(null,a,c,e),[e]),a.flags|=2048,os(9,{destroy:void 0},hf.bind(null,a,c,n,t),null),n},useId:function(){var e=ft(),t=Be.identifierPrefix;if(Me){var n=$t,a=Jt;n=(a&~(1<<32-jt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ho++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(l,{is:a.is}):f.createElement(l)}}c[at]=t,c[mt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(ct(c,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&xn(t)}}return Ve(t),tr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&xn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(e=K.current,$a(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,l=st,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||fp(e.nodeValue,n)),e||Rn(t,!0)}else e=Vo(e).createTextNode(a),e[at]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=$a(t),n!==null){if(e===null){if(!a)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[at]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=$a(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(i(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));l[at]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),l=!1}else l=di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Co(t,t.updateQueue),Ve(t),null);case 4:return ne(),e===null&&jr(t.stateNode.containerInfo),Ve(t),null;case 10:return fn(t.type),Ve(t),null;case 19:if(q(Ge),a=t.memoizedState,a===null)return Ve(t),null;if(l=(t.flags&128)!==0,c=a.rendering,c===null)if(l)il(a,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=mo(e),c!==null){for(t.flags|=128,il(a,!1),e=c.updateQueue,t.updateQueue=e,Co(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yd(n,e),n=n.sibling;return F(Ge,Ge.current&1|2),Me&&un(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&wt()>_o&&(t.flags|=128,l=!0,il(a,!1),t.lanes=4194304)}else{if(!l)if(e=mo(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Co(t,e),il(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Me)return Ve(t),null}else 2*wt()-a.renderingStartTime>_o&&n!==536870912&&(t.flags|=128,l=!0,il(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=wt(),e.sibling=null,n=Ge.current,F(Ge,l?n&1|2:n&1),Me&&un(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return At(t),Ni(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&Co(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&q(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Qe),Ve(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function fv(e,t){switch(ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Qe),ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(i(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ge),null;case 4:return ne(),null;case 10:return fn(t.type),null;case 22:case 23:return At(t),Ni(),e!==null&&q(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Qe),null;case 25:return null;default:return null}}function gm(e,t){switch(ri(t),t.tag){case 3:fn(Qe),ne();break;case 26:case 27:case 5:ye(t);break;case 4:ne();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:q(Ge);break;case 10:fn(t.type);break;case 22:case 23:At(t),Ni(),e!==null&&q(ya);break;case 24:fn(Qe)}}function rl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==l)}}catch(v){ke(t,t.return,v)}}function Bn(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var c=l.next;a=c;do{if((a.tag&e)===e){var f=a.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,l=t;var j=n,U=v;try{U()}catch(G){ke(l,j,G)}}}a=a.next}while(a!==c)}}catch(G){ke(t,t.return,G)}}function vm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{cf(t,n)}catch(a){ke(e,e.return,a)}}}function ym(e,t,n){n.props=Na(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ke(e,t,a)}}function ul(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(l){ke(e,t,l)}}function Ft(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){ke(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){ke(e,t,l)}else n.current=null}function bm(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){ke(e,e.return,l)}}function nr(e,t,n){try{var a=e.stateNode;Ov(a,e.type,n,t),a[mt]=t}catch(l){ke(e,e.return,l)}}function wm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xn(e.type)||e.tag===4}function ar(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wm(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&&Xn(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 sr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(a!==4&&(a===27&&Xn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(sr(e,t,n),e=e.sibling;e!==null;)sr(e,t,n),e=e.sibling}function Ao(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Xn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ao(e,t,n),e=e.sibling;e!==null;)Ao(e,t,n),e=e.sibling}function Sm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);ct(t,a,n),t[at]=e,t[mt]=n}catch(c){ke(e,e.return,c)}}var gn=!1,$e=!1,lr=!1,jm=typeof WeakSet=="function"?WeakSet:Set,nt=null;function mv(e,t){if(e=e.containerInfo,Cr=Qo,e=Od(e),Fc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,v=-1,j=-1,U=0,G=0,$=e,B=null;t:for(;;){for(var Y;$!==n||l!==0&&$.nodeType!==3||(v=f+l),$!==c||a!==0&&$.nodeType!==3||(j=f+a),$.nodeType===3&&(f+=$.nodeValue.length),(Y=$.firstChild)!==null;)B=$,$=Y;for(;;){if($===e)break t;if(B===n&&++U===l&&(v=f),B===c&&++G===a&&(j=f),(Y=$.nextSibling)!==null)break;$=B,B=$.parentNode}$=Y}n=v===-1||j===-1?null:{start:v,end:j}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ar={focusedElem:e,selectionRange:n},Qo=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,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(n=0;n title"))),ct(c,a,n),c[at]=e,tt(c),a=c;break e;case"link":var f=Tp("link","href",l).get(a+(n.href||""));if(f){for(var v=0;vLe&&(f=Le,Le=ve,ve=f);var O=Rd(v,ve),T=Rd(v,Le);if(O&&T&&(Y.rangeCount!==1||Y.anchorNode!==O.node||Y.anchorOffset!==O.offset||Y.focusNode!==T.node||Y.focusOffset!==T.offset)){var H=$.createRange();H.setStart(O.node,O.offset),Y.removeAllRanges(),ve>Le?(Y.addRange(H),Y.extend(T.node,T.offset)):(H.setEnd(T.node,T.offset),Y.addRange(H))}}}}for($=[],Y=v;Y=Y.parentNode;)Y.nodeType===1&&$.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<$.length;v++){var Z=$[v];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Qo=!!Cr,Ar=Cr=null}finally{De=l,X.p=a,D.T=n}}e.current=t,Ie=2}}function Jm(){if(Ie===2){Ie=0;var e=Yn,t=ds,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=X.p;X.p=2;var l=De;De|=4;try{Nm(e,t.alternate,t)}finally{De=l,X.p=a,D.T=n}}Ie=3}}function $m(){if(Ie===4||Ie===3){Ie=0,Wg();var e=Yn,t=ds,n=Sn,a=Um;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,ds=Yn=null,Fm(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(qn=null),Dc(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Os,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,l=X.p,X.p=2,D.T=null;try{for(var c=e.onRecoverableError,f=0;fn?32:n,D.T=null,n=fr,fr=null;var c=Yn,f=Sn;if(Ie=0,ds=Yn=null,Sn=0,(De&6)!==0)throw Error(i(331));var v=De;if(De|=4,Om(c.current),_m(c,c.current,f,n),De=v,xl(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Os,c)}catch{}return!0}finally{X.p=l,D.T=a,Fm(e,t)}}function ep(e,t,n){t=Ht(n,t),t=Gi(e.stateNode,t,2),e=Hn(e,t,2),e!==null&&(Hs(e,2),It(e))}function ke(e,t,n){if(e.tag===3)ep(e,e,n);else for(;t!==null;){if(t.tag===3){ep(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(qn===null||!qn.has(a))){e=Ht(n,e),n=tm(2),a=Hn(t,n,2),a!==null&&(nm(n,a,t,e),Hs(a,2),It(a));break}}t=t.return}}function xr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new xv;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(ir=!0,l.add(n),e=wv.bind(null,e,t,n),t.then(e,e))}function wv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Ce&n)===n&&(We===4||We===3&&(Ce&62914560)===Ce&&300>wt()-zo?(De&2)===0&&fs(e,0):rr|=n,us===Ce&&(us=0)),It(e)}function tp(e,t){t===0&&(t=Qu()),e=pa(e,t),e!==null&&(Hs(e,t),It(e))}function Sv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tp(e,n)}function jv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(i(314))}a!==null&&a.delete(t),tp(e,n)}function Nv(e,t){return Tc(e,t)}var Uo=null,ps=null,gr=!1,Lo=!1,vr=!1,Gn=0;function It(e){e!==ps&&e.next===null&&(ps===null?Uo=ps=e:ps=ps.next=e),Lo=!0,gr||(gr=!0,Cv())}function xl(e,t){if(!vr&&Lo){vr=!0;do for(var n=!1,a=Uo;a!==null;){if(e!==0){var l=a.pendingLanes;if(l===0)var c=0;else{var f=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=l&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,lp(a,c))}else c=Ce,c=Vl(a,a===Be?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ks(a,c)||(n=!0,lp(a,c));a=a.next}while(n);vr=!1}}function Ev(){np()}function np(){Lo=gr=!1;var e=0;Gn!==0&&Hv()&&(e=Gn);for(var t=wt(),n=null,a=Uo;a!==null;){var l=a.next,c=ap(a,t);c===0?(a.next=null,n===null?Uo=l:n.next=l,l===null&&(ps=n)):(n=a,(e!==0||(c&3)!==0)&&(Lo=!0)),a=l}Ie!==0&&Ie!==5||xl(e),Gn!==0&&(Gn=0)}function ap(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes&-62914561;0v)break;var G=j.transferSize,$=j.initiatorType;G&&mp($)&&(j=j.responseEnd,f+=G*(j"u"?null:document;function Ep(e,t,n){var a=hs;if(a&&typeof t=="string"&&t){var l=Ot(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Np.has(l)||(Np.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),ct(t,"link",e),tt(t),a.head.appendChild(t)))}}function Gv(e){jn.D(e),Ep("dns-prefetch",e,null)}function Xv(e,t){jn.C(e,t),Ep("preconnect",e,t)}function Zv(e,t,n){jn.L(e,t,n);var a=hs;if(a&&e&&t){var l='link[rel="preload"][as="'+Ot(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Ot(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Ot(n.imageSizes)+'"]')):l+='[href="'+Ot(e)+'"]';var c=l;switch(t){case"style":c=xs(e);break;case"script":c=gs(e)}qt.has(c)||(e=w({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),qt.set(c,e),a.querySelector(l)!==null||t==="style"&&a.querySelector(bl(c))||t==="script"&&a.querySelector(wl(c))||(t=a.createElement("link"),ct(t,"link",e),tt(t),a.head.appendChild(t)))}}function Qv(e,t){jn.m(e,t);var n=hs;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ot(a)+'"][href="'+Ot(e)+'"]',c=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gs(e)}if(!qt.has(c)&&(e=w({rel:"modulepreload",href:e},t),qt.set(c,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wl(c)))return}a=n.createElement("link"),ct(a,"link",e),tt(a),n.head.appendChild(a)}}}function Kv(e,t,n){jn.S(e,t,n);var a=hs;if(a&&e){var l=La(a).hoistableStyles,c=xs(e);t=t||"default";var f=l.get(c);if(!f){var v={loading:0,preload:null};if(f=a.querySelector(bl(c)))v.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},n),(n=qt.get(c))&&Or(e,n);var j=f=a.createElement("link");tt(j),ct(j,"link",e),j._p=new Promise(function(U,G){j.onload=U,j.onerror=G}),j.addEventListener("load",function(){v.loading|=1}),j.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Yo(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:v},l.set(c,f)}}}function Jv(e,t){jn.X(e,t);var n=hs;if(n&&e){var a=La(n).hoistableScripts,l=gs(e),c=a.get(l);c||(c=n.querySelector(wl(l)),c||(e=w({src:e,async:!0},t),(t=qt.get(l))&&kr(e,t),c=n.createElement("script"),tt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(l,c))}}function $v(e,t){jn.M(e,t);var n=hs;if(n&&e){var a=La(n).hoistableScripts,l=gs(e),c=a.get(l);c||(c=n.querySelector(wl(l)),c||(e=w({src:e,async:!0,type:"module"},t),(t=qt.get(l))&&kr(e,t),c=n.createElement("script"),tt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(l,c))}}function Cp(e,t,n,a){var l=(l=K.current)?qo(l):null;if(!l)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=xs(n.href),n=La(l).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=xs(n.href);var c=La(l).hoistableStyles,f=c.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=l.querySelector(bl(e)))&&!c._p&&(f.instance=c,f.state.loading=5),qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qt.set(e,n),c||Fv(l,e,n,f.state))),t&&a===null)throw Error(i(528,""));return f}if(t&&a!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gs(n),n=La(l).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function xs(e){return'href="'+Ot(e)+'"'}function bl(e){return'link[rel="stylesheet"]['+e+"]"}function Ap(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Fv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ct(t,"link",n),tt(t),e.head.appendChild(t))}function gs(e){return'[src="'+Ot(e)+'"]'}function wl(e){return"script[async]"+e}function Mp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ot(n.href)+'"]');if(a)return t.instance=a,tt(a),a;var l=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),tt(a),ct(a,"style",l),Yo(a,n.precedence,e),t.instance=a;case"stylesheet":l=xs(n.href);var c=e.querySelector(bl(l));if(c)return t.state.loading|=4,t.instance=c,tt(c),c;a=Ap(n),(l=qt.get(l))&&Or(a,l),c=(e.ownerDocument||e).createElement("link"),tt(c);var f=c;return f._p=new Promise(function(v,j){f.onload=v,f.onerror=j}),ct(c,"link",a),t.state.loading|=4,Yo(c,n.precedence,e),t.instance=c;case"script":return c=gs(n.src),(l=e.querySelector(wl(c)))?(t.instance=l,tt(l),l):(a=n,(l=qt.get(c))&&(a=w({},n),kr(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),tt(l),ct(l,"link",a),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Yo(a,n.precedence,e));return t.instance}function Yo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,c=l,f=0;f title"):null)}function Iv(e,t,n){if(n===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 _p(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function e1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=xs(a.href),c=t.querySelector(bl(l));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Go.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,tt(c);return}c=t.ownerDocument||t,a=Ap(a),(l=qt.get(l))&&Or(a,l),c=c.createElement("link"),tt(c);var f=c;f._p=new Promise(function(v,j){f.onload=v,f.onerror=j}),ct(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Go.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hr=0;function t1(e,t){return e.stylesheets&&e.count===0&&Zo(e,e.stylesheets),0Hr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function Go(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xo=null;function Zo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xo=new Map,t.forEach(n1,e),Xo=null,Go.call(e))}function n1(e,t){if(!(t.state.loading&4)){var n=Xo.get(e);if(n)var a=n.get(null);else{n=new Map,Xo.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Gr.exports=v1(),Gr.exports}var b1=y1();const w1={production_hub:{id:"production_hub",isOpen:!1,isMinimized:!1,isMaximized:!1,zIndex:10,position:{x:100,y:60},size:{width:1140,height:760}},asset_vault:{id:"asset_vault",isOpen:!1,isMinimized:!1,isMaximized:!1,zIndex:10,position:{x:150,y:100},size:{width:900,height:600}},engine_room:{id:"engine_room",isOpen:!1,isMinimized:!1,isMaximized:!1,zIndex:10,position:{x:200,y:140},size:{width:620,height:500}}},S1=[{id:"1",name:"Verdant Spire Launch",type:"Campaign",scenes:12,thumbnail:"/projects/verdant.jpg",lastModified:new Date("2024-01-15")},{id:"2",name:"Summer Watch Promo",type:"Product",scenes:6,thumbnail:"/projects/watch.jpg",lastModified:new Date("2024-01-12")},{id:"3",name:"Midnight Drive",type:"Automotive",scenes:8,thumbnail:"/projects/car.jpg",lastModified:new Date("2024-01-10")},{id:"4",name:"Neon Portrait",type:"Identity",scenes:4,thumbnail:"/projects/portrait.jpg",lastModified:new Date("2024-01-08")}],j1=[{id:"gpu-a",name:"RTX 6000 A",vramTotal:96,vramUsed:42,temperature:68,utilization:73},{id:"gpu-b",name:"RTX 6000 B",vramTotal:96,vramUsed:28,temperature:62,utilization:45}],Zh=y.createContext(void 0),N1=({children:s})=>{const[o,r]=y.useState("vault"),[i,d]=y.useState({...w1}),[m,h]=y.useState(null),[p,g]=y.useState(10),[x,b]=y.useState(null),[w,E]=y.useState(S1),[A,R]=y.useState([]),[S,C]=y.useState(!1),[k,z]=y.useState([]),[L,V]=y.useState(j1),[Q,I]=y.useState([]),W=y.useCallback(K=>{r(K)},[]),J=y.useCallback(K=>{d(M=>{const _=p+1;return g(_),h(K),{...M,[K]:{...M[K],isOpen:!0,isMinimized:!1,zIndex:_}}})},[p]),ae=y.useCallback(K=>{d(M=>({...M,[K]:{...M[K],isOpen:!1}})),h(M=>M===K?null:M)},[]),ue=y.useCallback(K=>{d(M=>({...M,[K]:{...M[K],isMinimized:!0}})),h(M=>M===K?null:M)},[]),fe=y.useCallback(K=>{d(M=>{const _=p+1;return g(_),h(K),{...M,[K]:{...M[K],isMinimized:!1,zIndex:_}}})},[p]),te=y.useCallback(K=>{d(M=>({...M,[K]:{...M[K],isMaximized:!M[K].isMaximized}}))},[]),ge=y.useCallback((K,M)=>{d(_=>({..._,[K]:{..._[K],isMaximized:M}}))},[]),re=y.useCallback(K=>{d(M=>{if(M[K].zIndex===p)return M;const _=p+1;return g(_),h(K),{...M,[K]:{...M[K],zIndex:_}}})},[p]),me=y.useCallback((K,M)=>{d(_=>({..._,[K]:{..._[K],position:M}}))},[]),D=y.useCallback((K,M)=>{d(_=>({..._,[K]:{..._[K],size:M}}))},[]),X=y.useCallback(K=>{E(M=>[K,...M])},[]),P=y.useCallback((K,M)=>{const _=M.trim();_&&(E(ne=>ne.map(he=>he.id===K?{...he,name:_,lastModified:new Date}:he)),b(ne=>ne&&ne.id===K?{...ne,name:_,lastModified:new Date}:ne))},[]),se=y.useCallback(K=>{E(M=>{const _=M.find(he=>he.id===K);return _?[{..._,id:`${_.id}-${Date.now()}`,name:`${_.name} (Copy)`,lastModified:new Date},...M]:M})},[]),pe=y.useCallback(K=>{const M=new Date,_=new Date(M);_.setDate(_.getDate()+30),E(ne=>{const he=ne.find(ye=>ye.id===K);return he?(R(ye=>[{...he,deletedAt:M,permanentDeleteAt:_},...ye]),ne.filter(ye=>ye.id!==K)):ne}),b(ne=>ne&&ne.id===K?null:ne)},[]),N=y.useCallback(K=>{z(M=>[...M,K])},[]),q=y.useCallback((K,M)=>{z(_=>_.map(ne=>ne.id===K?{...ne,...M}:ne))},[]),F=y.useCallback(K=>{V(K)},[]),ee=y.useCallback(K=>{I(M=>[...M.slice(-49),K])},[]),le={currentStage:o,setStage:W,windows:i,activeWindow:m,highestZIndex:p,openWindow:J,closeWindow:ae,minimizeWindow:ue,restoreWindow:fe,toggleMaximizeWindow:te,setWindowMaximized:ge,bringToFront:re,updateWindowPosition:me,updateWindowSize:D,selectedProject:x,setSelectedProject:b,projects:w,addProject:X,renameProject:P,duplicateProject:se,moveProjectToTrash:pe,trashedProjects:A,isAuthenticated:S,setAuthenticated:C,tasks:k,addTask:N,updateTask:q,gpuStats:L,updateGPUStats:F,logs:Q,addLog:ee};return u.jsx(Zh.Provider,{"code-path":"src\\stores\\desktopStore.tsx:383:5",value:le,children:s})},sa=()=>{const s=y.useContext(Zh);if(s===void 0)throw new Error("useDesktopStore must be used within a DesktopProvider");return s},E1=()=>u.jsxs("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:5:5",className:"fixed inset-0 overflow-hidden pointer-events-none parallax-layer-bg",children:[u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:7:7",className:"absolute inset-0 bg-black"}),u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:10:7",className:"absolute inset-0 parallax-layer-mid",children:u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:11:9",className:"absolute inset-0 nebula-layer",style:{background:` radial-gradient(ellipse 80% 60% at 30% 40%, rgba(var(--primary-accent-rgb), 0.25) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 70% 60%, rgba(var(--primary-accent-rgb), 0.18) 0%, transparent 55%), radial-gradient(ellipse 50% 40% at 50% 30%, rgba(var(--primary-accent-rgb), 0.12) 0%, transparent 50%) `}})}),u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:24:7",className:"absolute inset-0 parallax-layer-ui",children:u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:25:9",className:"absolute inset-0",style:{background:` radial-gradient(ellipse 40% 30% at 80% 20%, rgba(var(--primary-accent-rgb), 0.1) 0%, transparent 50%), radial-gradient(ellipse 35% 25% at 20% 80%, rgba(var(--primary-accent-rgb), 0.12) 0%, transparent 45%) `,animation:"nebula-drift 25s ease-in-out infinite reverse"}})}),u.jsx(C1,{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:38:7"}),u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:41:7",className:"absolute inset-0",style:{background:"radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%)"}})]}),C1=()=>{const s=Zt.useMemo(()=>Array.from({length:60},(o,r)=>({id:r,x:Math.random()*100,y:Math.random()*100,size:Math.random()*2+.5,opacity:Math.random()*.5+.2,delay:Math.random()*5})),[]);return u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:65:5",className:"absolute inset-0 parallax-layer-foreground",children:s.map(o=>u.jsx("div",{"code-path":"src\\components\\nebula\\NebulaBackground.tsx:67:9",className:"absolute rounded-full bg-white",style:{left:`${o.x}%`,top:`${o.y}%`,width:`${o.size}px`,height:`${o.size}px`,opacity:o.opacity,animation:`twinkle 4s ease-in-out ${o.delay}s infinite`}},o.id))})},Qh=document.createElement("style");Qh.textContent=` @keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.6; } } `;document.head.appendChild(Qh);const A1=new URL(""+new URL("Project Astral - Aura-0TZza6qr.png",import.meta.url).href,import.meta.url).href,M1=new URL(""+new URL("Project Astral - Face-BeUwrsiX.png",import.meta.url).href,import.meta.url).href,T1=new URL(""+new URL("Project Astral - Portal-D1MO2Ywb.png",import.meta.url).href,import.meta.url).href,z1=()=>{const[s,o]=y.useState(!1),[r,i]=y.useState(!1),[d,m]=y.useState({x:0,y:0}),{setStage:h,setAuthenticated:p}=sa(),g=1.61,x=20,b=y.useCallback(()=>{s||(o(!0),setTimeout(()=>{i(!0),setTimeout(()=>{p(!0),h("nexus")},600)},900))},[s,p,h]),w=A=>{const R=A.clientX/window.innerWidth-.5,S=A.clientY/window.innerHeight-.5;m({x:R,y:S})},E=()=>{m({x:0,y:0})};return u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:42:5",className:"fixed inset-0 flex items-center justify-center bg-black z-50",onMouseMove:w,onMouseLeave:E,children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:47:7",className:"absolute inset-0 opacity-60",style:{background:` radial-gradient(ellipse 70% 50% at 50% 50%, rgba(var(--primary-accent-rgb), 0.2) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 40% 60%, rgba(var(--primary-accent-rgb), 0.15) 0%, transparent 50%) `}}),u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:57:7",className:"relative z-10 w-full h-full max-w-[1680px] px-8 lg:px-12",children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:58:9",className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:59:11",className:"w-full max-w-[1500px] px-6 lg:px-10 flex items-center justify-between",children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:60:13",className:"w-[44%] flex justify-center",children:u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:61:15",className:"relative w-[min(92vw,1426px)] max-w-[1426px] aspect-square max-h-[90vh] flex items-center justify-center translate-x-[20px]",children:[u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:62:15",className:"absolute inset-0",style:{transform:`translate3d(${x+d.x*10}px, ${d.y*10}px, 0) scale(${g})`,transformOrigin:"center center",transition:"transform 160ms ease-out"},children:u.jsx("img",{"code-path":"src\\sections\\VaultDoor.tsx:70:17",src:T1,alt:"Astral Portal layer",className:"absolute inset-0 w-full h-full object-contain select-none pointer-events-none opacity-95"})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:77:15",className:"absolute inset-0",style:{transform:`translate3d(${x+d.x*18}px, ${d.y*18}px, 0) scale(${g})`,transformOrigin:"center center",transition:"transform 160ms ease-out"},children:u.jsx("img",{"code-path":"src\\sections\\VaultDoor.tsx:85:17",src:M1,alt:"Astral Face layer",className:"absolute inset-0 w-full h-full object-contain select-none pointer-events-none opacity-95"})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:92:15",className:"absolute inset-0",style:{transform:`translate3d(${x+d.x*26}px, ${d.y*26}px, 0) scale(${g})`,transformOrigin:"center center",transition:"transform 160ms ease-out"},children:u.jsx("img",{"code-path":"src\\sections\\VaultDoor.tsx:100:17",src:A1,alt:"Astral Aura layer",className:"absolute inset-0 w-full h-full object-contain select-none pointer-events-none opacity-100 mix-blend-screen"})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:107:15",className:"absolute inset-0",style:{background:"radial-gradient(circle at 50% 50%, rgba(var(--primary-accent-rgb), 0.22) 0%, transparent 62%)",filter:"blur(12px)"}})]})}),u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:117:13",className:"w-[52%] flex justify-start",children:u.jsxs("h1",{"code-path":"src\\sections\\VaultDoor.tsx:118:15",className:"font-semibold leading-[0.9] text-[clamp(70px,10.4vw,184px)]",style:{color:"rgba(248, 248, 250, 0.95)"},children:["Astral",u.jsx("br",{"code-path":"src\\sections\\VaultDoor.tsx:123:17"}),"Suite"]})})]})}),u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:130:9",className:"absolute left-1/2 bottom-[6.5vh] -translate-x-1/2 z-30 flex flex-col items-center",children:[u.jsxs("div",{"code-path":"src\\sections\\VaultDoor.tsx:131:11",className:"relative",children:[u.jsx("button",{"code-path":"src\\sections\\VaultDoor.tsx:132:13",type:"button",onClick:b,className:"glass-pill w-[104px] h-[104px] flex items-center justify-center transition-transform duration-300 hover:scale-105",style:{cursor:"pointer"},children:u.jsxs("svg",{"code-path":"src\\sections\\VaultDoor.tsx:138:15",width:"82",height:"82",viewBox:"0 0 180 180",className:`transform transition-transform duration-300 ${s?"scale-110":"scale-100"}`,children:[u.jsx("path",{"code-path":"src\\sections\\VaultDoor.tsx:146:17",d:"M90 18a72 72 0 1 1 0 144a72 72 0 1 1 0-144z",fill:"none",stroke:"rgba(255,255,255,0.08)",strokeWidth:"2"}),u.jsx("path",{"code-path":"src\\sections\\VaultDoor.tsx:152:17",d:"M90 18a72 72 0 1 1 0 144a72 72 0 1 1 0-144z",fill:"none",stroke:"rgba(var(--primary-accent-rgb), 0.9)",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"452",style:{filter:"drop-shadow(0 0 18px rgba(var(--primary-accent-rgb), 0.45))",animation:s?"ring-spin 0.9s linear forwards":"pulse-slow 3s ease-in-out infinite"}}),u.jsx("circle",{"code-path":"src\\sections\\VaultDoor.tsx:164:17",cx:"90",cy:"90",r:"52",fill:"none",stroke:"rgba(var(--primary-accent-rgb), 0.2)",strokeWidth:"1",strokeDasharray:"8 4",className:"animate-spin-slow",style:{transformOrigin:"center",animationDuration:"20s"}}),u.jsx("path",{"code-path":"src\\sections\\VaultDoor.tsx:175:17",d:"M90 73a17 17 0 1 0 0 34a17 17 0 1 0 0-34zm0 29a12 12 0 1 1 0-24a12 12 0 1 1 0 24z",fill:"rgba(var(--primary-accent-rgb), 0.6)"}),u.jsx("circle",{"code-path":"src\\sections\\VaultDoor.tsx:179:17",cx:"90",cy:"90",r:"6",fill:"rgba(var(--primary-accent-rgb), 0.9)"})]})}),r&&u.jsx(_1,{"code-path":"src\\sections\\VaultDoor.tsx:183:31"})]}),u.jsx("p",{"code-path":"src\\sections\\VaultDoor.tsx:186:11",className:"mt-5 text-sm font-medium tracking-wide text-center whitespace-nowrap",style:{color:"var(--astral-text-muted)"},children:s?"Authenticating...":"Insert security key or use biometric sensor"})]})]})]})},_1=()=>{const s=Zt.useMemo(()=>Array.from({length:24},(o,r)=>({id:r,angle:r/24*360,distance:80+Math.random()*40,size:3+Math.random()*4,delay:Math.random()*.1})),[]);return u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:210:5",className:"absolute inset-0 pointer-events-none",children:s.map(o=>u.jsx("div",{"code-path":"src\\sections\\VaultDoor.tsx:212:9",className:"absolute left-1/2 top-1/2 rounded-full",style:{width:`${o.size}px`,height:`${o.size}px`,background:"rgba(var(--primary-accent-rgb), 0.9)",boxShadow:"0 0 10px rgba(var(--primary-accent-rgb), 0.6)",animation:`particle-burst 0.6s ease-out ${o.delay}s forwards`,"--angle":`${o.angle}deg`,"--distance":`${o.distance}px`}},o.id))})},Kh=document.createElement("style");Kh.textContent+=` @keyframes particle-burst { 0% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance)); opacity: 0; } } @keyframes ring-spin { 0% { stroke-dashoffset: 452; } 100% { stroke-dashoffset: 0; } } `;document.head.appendChild(Kh);const R1=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D1=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,r,i)=>i?i.toUpperCase():r.toLowerCase()),th=s=>{const o=D1(s);return o.charAt(0).toUpperCase()+o.slice(1)},Jh=(...s)=>s.filter((o,r,i)=>!!o&&o.trim()!==""&&i.indexOf(o)===r).join(" ").trim(),O1=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};var k1={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 H1=y.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:d="",children:m,iconNode:h,...p},g)=>y.createElement("svg",{ref:g,...k1,width:o,height:o,stroke:s,strokeWidth:i?Number(r)*24/Number(o):r,className:Jh("lucide",d),...!m&&!O1(p)&&{"aria-hidden":"true"},...p},[...h.map(([x,b])=>y.createElement(x,b)),...Array.isArray(m)?m:[m]]));const Te=(s,o)=>{const r=y.forwardRef(({className:i,...d},m)=>y.createElement(H1,{ref:m,iconNode:o,className:Jh(`lucide-${R1(th(s))}`,`lucide-${s}`,i),...d}));return r.displayName=th(s),r};const U1=[["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"}]],L1=Te("box",U1);const B1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],P1=Te("check",B1);const V1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$h=Te("chevron-down",V1);const q1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Y1=Te("chevron-up",q1);const W1=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fh=Te("circle-user-round",W1);const G1=[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]],Ih=Te("clapperboard",G1);const X1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Z1=Te("clock",X1);const Q1=[["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"}]],ex=Te("copy",Q1);const K1=[["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"}]],tx=Te("cpu",K1);const J1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],$1=Te("download",J1);const F1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],nx=Te("ellipsis",F1);const I1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ey=Te("eye-off",I1);const ty=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ny=Te("eye",ty);const ay=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],sy=Te("film",ay);const ly=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],oy=Te("folder-open",ly);const cy=[["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"}]],iy=Te("folder-plus",cy);const ry=[["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"}]],uy=Te("folder",ry);const dy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],fy=Te("grid-3x3",dy);const my=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Mu=Te("hard-drive",my);const py=[["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"}]],ax=Te("image",py);const hy=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],sx=Te("key-round",hy);const xy=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],lx=Te("link-2",xy);const gy=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],vy=Te("list",gy);const yy=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],by=Te("log-out",yy);const wy=[["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"}]],Sy=Te("pencil",wy);const jy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ox=Te("plus",jy);const Ny=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Ey=Te("send",Ny);const Cy=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cx=Te("shield-check",Cy);const Ay=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],ix=Te("sliders-horizontal",Ay);const My=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],Ty=Te("toggle-left",My);const zy=[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],_y=Te("toggle-right",zy);const Ry=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],rx=Te("trash-2",Ry);const Dy=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],nh=Te("upload",Dy);const Oy=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ky=Te("user",Oy);const Hy=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Tu=Te("users",Hy),Uy={},ah=s=>{let o;const r=new Set,i=(b,w)=>{const E=typeof b=="function"?b(o):b;if(!Object.is(E,o)){const A=o;o=w??(typeof E!="object"||E===null)?E:Object.assign({},o,E),r.forEach(R=>R(o,A))}},d=()=>o,g={setState:i,getState:d,getInitialState:()=>x,subscribe:b=>(r.add(b),()=>r.delete(b)),destroy:()=>{(Uy?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},x=o=s(i,d,g);return g},Ly=s=>s?ah(s):ah;var Kr={exports:{}},Jr={},$r={exports:{}},Fr={};var sh;function By(){if(sh)return Fr;sh=1;var s=Ol();function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var r=typeof Object.is=="function"?Object.is:o,i=s.useState,d=s.useEffect,m=s.useLayoutEffect,h=s.useDebugValue;function p(w,E){var A=E(),R=i({inst:{value:A,getSnapshot:E}}),S=R[0].inst,C=R[1];return m(function(){S.value=A,S.getSnapshot=E,g(S)&&C({inst:S})},[w,A,E]),d(function(){return g(S)&&C({inst:S}),w(function(){g(S)&&C({inst:S})})},[w]),h(A),A}function g(w){var E=w.getSnapshot;w=w.value;try{var A=E();return!r(w,A)}catch{return!0}}function x(w,E){return E()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:p;return Fr.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,Fr}var lh;function Py(){return lh||(lh=1,$r.exports=By()),$r.exports}var oh;function Vy(){if(oh)return Jr;oh=1;var s=Ol(),o=Py();function r(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}var i=typeof Object.is=="function"?Object.is:r,d=o.useSyncExternalStore,m=s.useRef,h=s.useEffect,p=s.useMemo,g=s.useDebugValue;return Jr.useSyncExternalStoreWithSelector=function(x,b,w,E,A){var R=m(null);if(R.current===null){var S={hasValue:!1,value:null};R.current=S}else S=R.current;R=p(function(){function k(I){if(!z){if(z=!0,L=I,I=E(I),A!==void 0&&S.hasValue){var W=S.value;if(A(W,I))return V=W}return V=I}if(W=V,i(L,I))return W;var J=E(I);return A!==void 0&&A(W,J)?(L=I,W):(L=I,V=J)}var z=!1,L,V,Q=w===void 0?null:w;return[function(){return k(b())},Q===null?void 0:function(){return k(Q())}]},[b,w,E,A]);var C=d(x,R[0],R[1]);return h(function(){S.hasValue=!0,S.value=C},[C]),g(C),C},Jr}var ch;function qy(){return ch||(ch=1,Kr.exports=Vy()),Kr.exports}var Yy=qy();const Wy=Au(Yy),ux={},{useDebugValue:Gy}=Zt,{useSyncExternalStoreWithSelector:Xy}=Wy;let ih=!1;const Zy=s=>s;function Qy(s,o=Zy,r){(ux?"production":void 0)!=="production"&&r&&!ih&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),ih=!0);const i=Xy(s.subscribe,s.getState,s.getServerState||s.getInitialState,o,r);return Gy(i),i}const Ky=s=>{(ux?"production":void 0)!=="production"&&typeof s!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const o=typeof s=="function"?Ly(s):s,r=(i,d)=>Qy(o,i,d);return Object.assign(r,o),r},Jy=s=>Ky,$y={};function Fy(s,o){let r;try{r=s()}catch{return}return{getItem:d=>{var m;const h=g=>g===null?null:JSON.parse(g,void 0),p=(m=r.getItem(d))!=null?m:null;return p instanceof Promise?p.then(h):h(p)},setItem:(d,m)=>r.setItem(d,JSON.stringify(m,void 0)),removeItem:d=>r.removeItem(d)}}const _l=s=>o=>{try{const r=s(o);return r instanceof Promise?r:{then(i){return _l(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return _l(i)(r)}}}},Iy=(s,o)=>(r,i,d)=>{let m={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:C=>C,version:0,merge:(C,k)=>({...k,...C}),...o},h=!1;const p=new Set,g=new Set;let x;try{x=m.getStorage()}catch{}if(!x)return s((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${m.name}', the given storage is currently unavailable.`),r(...C)},i,d);const b=_l(m.serialize),w=()=>{const C=m.partialize({...i()});let k;const z=b({state:C,version:m.version}).then(L=>x.setItem(m.name,L)).catch(L=>{k=L});if(k)throw k;return z},E=d.setState;d.setState=(C,k)=>{E(C,k),w()};const A=s((...C)=>{r(...C),w()},i,d);let R;const S=()=>{var C;if(!x)return;h=!1,p.forEach(z=>z(i()));const k=((C=m.onRehydrateStorage)==null?void 0:C.call(m,i()))||void 0;return _l(x.getItem.bind(x))(m.name).then(z=>{if(z)return m.deserialize(z)}).then(z=>{if(z)if(typeof z.version=="number"&&z.version!==m.version){if(m.migrate)return m.migrate(z.state,z.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return z.state}).then(z=>{var L;return R=m.merge(z,(L=i())!=null?L:A),r(R,!0),w()}).then(()=>{k?.(R,void 0),h=!0,g.forEach(z=>z(R))}).catch(z=>{k?.(void 0,z)})};return d.persist={setOptions:C=>{m={...m,...C},C.getStorage&&(x=C.getStorage())},clearStorage:()=>{x?.removeItem(m.name)},getOptions:()=>m,rehydrate:()=>S(),hasHydrated:()=>h,onHydrate:C=>(p.add(C),()=>{p.delete(C)}),onFinishHydration:C=>(g.add(C),()=>{g.delete(C)})},S(),R||A},eb=(s,o)=>(r,i,d)=>{let m={storage:Fy(()=>localStorage),partialize:S=>S,version:0,merge:(S,C)=>({...C,...S}),...o},h=!1;const p=new Set,g=new Set;let x=m.storage;if(!x)return s((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${m.name}', the given storage is currently unavailable.`),r(...S)},i,d);const b=()=>{const S=m.partialize({...i()});return x.setItem(m.name,{state:S,version:m.version})},w=d.setState;d.setState=(S,C)=>{w(S,C),b()};const E=s((...S)=>{r(...S),b()},i,d);d.getInitialState=()=>E;let A;const R=()=>{var S,C;if(!x)return;h=!1,p.forEach(z=>{var L;return z((L=i())!=null?L:E)});const k=((C=m.onRehydrateStorage)==null?void 0:C.call(m,(S=i())!=null?S:E))||void 0;return _l(x.getItem.bind(x))(m.name).then(z=>{if(z)if(typeof z.version=="number"&&z.version!==m.version){if(m.migrate)return[!0,m.migrate(z.state,z.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,z.state];return[!1,void 0]}).then(z=>{var L;const[V,Q]=z;if(A=m.merge(Q,(L=i())!=null?L:E),r(A,!0),V)return b()}).then(()=>{k?.(A,void 0),A=i(),h=!0,g.forEach(z=>z(A))}).catch(z=>{k?.(void 0,z)})};return d.persist={setOptions:S=>{m={...m,...S},S.storage&&(x=S.storage)},clearStorage:()=>{x?.removeItem(m.name)},getOptions:()=>m,rehydrate:()=>R(),hasHydrated:()=>h,onHydrate:S=>(p.add(S),()=>{p.delete(S)}),onFinishHydration:S=>(g.add(S),()=>{g.delete(S)})},m.skipHydration||R(),A||E},tb=(s,o)=>"getStorage"in o||"serialize"in o||"deserialize"in o?(($y?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Iy(s,o)):eb(s,o),nb=tb,Ir=(s,o)=>{const{r,g:i,b:d}=dx(s),m=Math.max(.2,Math.min(1.4,o)),h=Number((.12*m).toFixed(3)),p=Number((.24*m).toFixed(3)),g=Number((.42*m).toFixed(3)),x=Number((.48*m).toFixed(3));document.documentElement.style.setProperty("--primary-accent",s),document.documentElement.style.setProperty("--primary-accent-rgb",`${r} ${i} ${d}`),document.documentElement.style.setProperty("--astral-violet",s),document.documentElement.style.setProperty("--accent-glow-intensity",m.toString()),document.documentElement.style.setProperty("--astral-violet-glow",`${Ml(s,g)}`),document.documentElement.style.setProperty("--accent-glow-soft",`${Ml(s,h)}`),document.documentElement.style.setProperty("--accent-glow-medium",`${Ml(s,p)}`),document.documentElement.style.setProperty("--accent-glow-strong",`${Ml(s,g)}`),document.documentElement.style.setProperty("--accent-edge",`${Ml(s,x)}`)},rh=s=>{document.documentElement.setAttribute("data-density",s)},uh=s=>{document.documentElement.style.setProperty("--reduced-motion",s?"1":"0")},zu=Jy()(nb((s,o)=>({isSystemPreferencesOpen:!1,activeSection:"preferences",accentColor:"#7B6CFF",glowIntensity:.9,interfaceDensity:"comfortable",reducedMotion:!1,notifications:{renderComplete:!0,trainingFinished:!0,securityAlert:!0},profile:{avatarUrl:"",displayName:"Sagnik Chatterjee",roleLabel:"Creative Director · CL-3",email:"sagnik@astral.local",clearanceLevel:3},socials:{youtubeConnected:!1,instagramConnected:!1,vimeoConnected:!1},apiVault:{openRouterKey:"",runwayKey:"",pikaKey:""},closedModels:{ltx2Mounted:!0,ltx2Path:"/mnt/nas/models/ltx2_v1.safetensors",ltx2License:"",fluxMounted:!0,fluxPath:"/mnt/nas/models/flux_dev.safetensors",fluxLicense:"",wanMounted:!1,wanPath:"/mnt/nas/models/wan_2.1.safetensors",wanLicense:"",vramLimit:90},security:{biometricEnforcement:!0},storage:{nasMountPath:"\\\\192.168.1.50\\project_astral",archiveDays:30,videoUsed:42,imagesUsed:21,cacheUsed:9,freeSpace:28},teamMembers:[{id:"m1",name:"Sagnik Chatterjee",email:"sagnik@astral.local",role:"Admin"},{id:"m2",name:"Sayan Roy",email:"sayan@astral.local",role:"Editor"},{id:"m3",name:"Nadia Khan",email:"nadia@astral.local",role:"Viewer"}],openSystemPreferences:(r="preferences")=>s({isSystemPreferencesOpen:!0,activeSection:r}),closeSystemPreferences:()=>s({isSystemPreferencesOpen:!1}),setActiveSection:r=>s({activeSection:r}),setAccentColor:r=>{s({accentColor:r}),Ir(r,o().glowIntensity)},setGlowIntensity:r=>{const i=Math.max(.2,Math.min(1.4,r));s({glowIntensity:i}),Ir(o().accentColor,i)},setInterfaceDensity:r=>{s({interfaceDensity:r}),rh(r)},setReducedMotion:r=>{s({reducedMotion:r}),uh(r)},setNotification:(r,i)=>s(d=>({notifications:{...d.notifications,[r]:i}})),setDisplayName:r=>s(i=>({profile:{...i.profile,displayName:r}})),setSocialConnected:(r,i)=>s(d=>({socials:{...d.socials,[r]:i}})),setApiKey:(r,i)=>s(d=>({apiVault:{...d.apiVault,[r]:i}})),setClosedModelValue:(r,i)=>s(d=>({closedModels:{...d.closedModels,[r]:i}})),setBiometricEnforcement:r=>s(i=>({security:{...i.security,biometricEnforcement:r}})),setStorageMountPath:r=>s(i=>({storage:{...i.storage,nasMountPath:r}})),setArchiveDays:r=>s(i=>({storage:{...i.storage,archiveDays:r}})),setTeamRole:(r,i)=>s(d=>({teamMembers:d.teamMembers.map(m=>m.id===r?{...m,role:i}:m)})),revokeTeamMember:r=>s(i=>({teamMembers:i.teamMembers.filter(d=>d.id!==r)})),inviteTeamMember:r=>s(i=>{const d=r.trim().toLowerCase();return!d||i.teamMembers.some(m=>m.email===d)?i:{teamMembers:[...i.teamMembers,{id:`m-${Date.now()}`,name:d.split("@")[0],email:d,role:"Viewer"}]}}),initializeSettings:()=>{const{accentColor:r,glowIntensity:i,interfaceDensity:d,reducedMotion:m}=o();Ir(r,i),rh(d),uh(m)}}),{name:"astral-suite-settings-v1",partialize:s=>({accentColor:s.accentColor,glowIntensity:s.glowIntensity,interfaceDensity:s.interfaceDensity,reducedMotion:s.reducedMotion,notifications:s.notifications,profile:s.profile,socials:s.socials,apiVault:s.apiVault,closedModels:s.closedModels,security:s.security,storage:s.storage,teamMembers:s.teamMembers})}));function Ml(s,o){const{r,g:i,b:d}=dx(s);return`rgba(${r}, ${i}, ${d}, ${o})`}function dx(s){const o=s.replace("#",""),r=o.length===3?o.split("").map(p=>`${p}${p}`).join(""):o,i=Number.parseInt(r,16),d=i>>16&255,m=i>>8&255,h=i&255;return{r:d,g:m,b:h}}const fx=({className:s=""})=>{const{setAuthenticated:o,setSelectedProject:r,setStage:i}=sa(),d=zu(b=>b.openSystemPreferences),[m,h]=y.useState(!1),p=y.useRef(null);y.useEffect(()=>{const b=w=>{p.current&&(p.current.contains(w.target)||h(!1))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const g=()=>{o(!1),r(null),i("vault"),h(!1)},x=b=>{d(b),h(!1)};return u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:51:5",className:`relative ${s}`,ref:p,children:[u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:52:7",className:"glass-pill h-12 pl-2 pr-2 rounded-full flex items-center gap-3",style:{border:"1px solid rgba(var(--primary-accent-rgb), 0.22)",boxShadow:"0 8px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(var(--primary-accent-rgb), 0.18)"},children:[u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:59:9",className:"w-8 h-8 rounded-full bg-white/10 border border-white/15 overflow-hidden flex items-center justify-center",children:u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:60:11",className:"text-xs font-semibold text-white",children:"SC"})}),u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:63:9",className:"leading-tight",children:[u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:64:11",className:"text-xs font-semibold text-white",children:"Sagnik Chakraborty"}),u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:65:11",className:"text-[10px] text-white/55 tracking-wide uppercase",children:"Creative Director · CL-3"})]}),u.jsx("button",{"code-path":"src\\components\\user\\UserControl.tsx:68:9",type:"button",onClick:()=>h(b=>!b),className:"w-8 h-8 rounded-full flex items-center justify-center bg-white/5 hover:bg-white/10 transition-colors","aria-label":"Open user menu","aria-expanded":m,children:u.jsx(nx,{"code-path":"src\\components\\user\\UserControl.tsx:75:11",className:"w-4 h-4 text-white/85"})})]}),m&&u.jsxs("div",{"code-path":"src\\components\\user\\UserControl.tsx:80:9",className:"absolute right-0 mt-2 w-[280px] rounded-2xl overflow-hidden",style:{background:"rgba(12, 12, 18, 0.92)",backdropFilter:"blur(18px) saturate(130%)",border:"1px solid rgba(var(--primary-accent-rgb), 0.24)",boxShadow:"0 18px 50px rgba(0, 0, 0, 0.45), 0 0 22px rgba(var(--primary-accent-rgb), 0.16)"},children:[u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:89:11",icon:u.jsx(Fh,{"code-path":"src\\components\\user\\UserControl.tsx:89:29",className:"w-4 h-4"}),label:"User Profile",sub:"Identity, role, and clearance data",onClick:()=>x("user_profile")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:90:11",icon:u.jsx(lx,{"code-path":"src\\components\\user\\UserControl.tsx:90:29",className:"w-4 h-4"}),label:"Socials and API",sub:"Connect social channels and model APIs",onClick:()=>x("socials_api")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:91:11",icon:u.jsx(sx,{"code-path":"src\\components\\user\\UserControl.tsx:91:29",className:"w-4 h-4"}),label:"Closed-Model Access",sub:"Video and image provider credentials",onClick:()=>x("closed_model_access")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:92:11",icon:u.jsx(Tu,{"code-path":"src\\components\\user\\UserControl.tsx:92:29",className:"w-4 h-4"}),label:"Team Access",sub:"Permissions, invites, and handoff control",onClick:()=>x("team_access")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:93:11",icon:u.jsx(cx,{"code-path":"src\\components\\user\\UserControl.tsx:93:29",className:"w-4 h-4"}),label:"Security and Consent",sub:"Contract checks and kill-switch settings",onClick:()=>x("security_consent")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:94:11",icon:u.jsx(Mu,{"code-path":"src\\components\\user\\UserControl.tsx:94:29",className:"w-4 h-4"}),label:"Storage and Sync",sub:"NAS mount targets and project mirrors",onClick:()=>x("storage_sync")}),u.jsx(Aa,{"code-path":"src\\components\\user\\UserControl.tsx:95:11",icon:u.jsx(ix,{"code-path":"src\\components\\user\\UserControl.tsx:95:29",className:"w-4 h-4"}),label:"Preferences",sub:"Workspace behavior and defaults",onClick:()=>x("preferences")}),u.jsx("div",{"code-path":"src\\components\\user\\UserControl.tsx:97:11",className:"h-px bg-white/10 my-1"}),u.jsxs("button",{"code-path":"src\\components\\user\\UserControl.tsx:99:11",type:"button",onClick:g,className:"w-full px-3 py-2.5 flex items-center gap-3 text-left hover:bg-red-500/10 transition-colors",children:[u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:104:13",className:"w-8 h-8 rounded-lg bg-red-500/15 flex items-center justify-center text-red-300",children:u.jsx(by,{"code-path":"src\\components\\user\\UserControl.tsx:105:15",className:"w-4 h-4"})}),u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:107:13",className:"text-sm font-medium text-red-300",children:"Log out"})]})]})]})},Aa=({icon:s,label:o,sub:r,onClick:i})=>u.jsxs("button",{"code-path":"src\\components\\user\\UserControl.tsx:117:5",type:"button",onClick:i,className:"w-full px-3 py-2.5 flex items-start gap-3 text-left hover:bg-white/5 transition-colors",children:[u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:122:7",className:"w-8 h-8 rounded-lg bg-white/5 border border-white/10 flex items-center justify-center text-white/80",children:s}),u.jsxs("span",{"code-path":"src\\components\\user\\UserControl.tsx:125:7",className:"flex-1 min-w-0",children:[u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:126:9",className:"block text-sm text-white",children:o}),u.jsx("span",{"code-path":"src\\components\\user\\UserControl.tsx:127:9",className:"block text-[11px] text-white/50",children:r})]})]});var kl=Xh();const ab=Au(kl);function dh(s,[o,r]){return Math.min(r,Math.max(o,s))}function Fe(s,o,{checkForDefaultPrevented:r=!0}={}){return function(d){if(s?.(d),r===!1||!d.defaultPrevented)return o?.(d)}}function _u(s,o=[]){let r=[];function i(m,h){const p=y.createContext(h),g=r.length;r=[...r,h];const x=w=>{const{scope:E,children:A,...R}=w,S=E?.[s]?.[g]||p,C=y.useMemo(()=>R,Object.values(R));return u.jsx(S.Provider,{value:C,children:A})};x.displayName=m+"Provider";function b(w,E){const A=E?.[s]?.[g]||p,R=y.useContext(A);if(R)return R;if(h!==void 0)return h;throw new Error(`\`${w}\` must be used within \`${m}\``)}return[x,b]}const d=()=>{const m=r.map(h=>y.createContext(h));return function(p){const g=p?.[s]||m;return y.useMemo(()=>({[`__scope${s}`]:{...p,[s]:g}}),[p,g])}};return d.scopeName=s,[i,sb(d,...o)]}function sb(...s){const o=s[0];if(s.length===1)return o;const r=()=>{const i=s.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(m){const h=i.reduce((p,{useScope:g,scopeName:x})=>{const w=g(m)[`__scope${x}`];return{...p,...w}},{});return y.useMemo(()=>({[`__scope${o.scopeName}`]:h}),[h])}};return r.scopeName=o.scopeName,r}function fh(s,o){if(typeof s=="function")return s(o);s!=null&&(s.current=o)}function yc(...s){return o=>{let r=!1;const i=s.map(d=>{const m=fh(d,o);return!r&&typeof m=="function"&&(r=!0),m});if(r)return()=>{for(let d=0;d{const{children:m,...h}=i,p=y.Children.toArray(m),g=p.find(cb);if(g){const x=g.props.children,b=p.map(w=>w===g?y.Children.count(x)>1?y.Children.only(null):y.isValidElement(x)?x.props.children:null:w);return u.jsx(o,{...h,ref:d,children:y.isValidElement(x)?y.cloneElement(x,void 0,b):null})}return u.jsx(o,{...h,ref:d,children:m})});return r.displayName=`${s}.Slot`,r}function lb(s){const o=y.forwardRef((r,i)=>{const{children:d,...m}=r;if(y.isValidElement(d)){const h=rb(d),p=ib(m,d.props);return d.type!==y.Fragment&&(p.ref=i?yc(i,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return o.displayName=`${s}.SlotClone`,o}var ob=Symbol("radix.slottable");function cb(s){return y.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===ob}function ib(s,o){const r={...o};for(const i in o){const d=s[i],m=o[i];/^on[A-Z]/.test(i)?d&&m?r[i]=(...p)=>{const g=m(...p);return d(...p),g}:d&&(r[i]=d):i==="style"?r[i]={...d,...m}:i==="className"&&(r[i]=[d,m].filter(Boolean).join(" "))}return{...s,...r}}function rb(s){let o=Object.getOwnPropertyDescriptor(s.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?s.ref:(o=Object.getOwnPropertyDescriptor(s,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?s.props.ref:s.props.ref||s.ref)}function ub(s){const o=s+"CollectionProvider",[r,i]=_u(o),[d,m]=r(o,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:k}=S,z=Zt.useRef(null),L=Zt.useRef(new Map).current;return u.jsx(d,{scope:C,itemMap:L,collectionRef:z,children:k})};h.displayName=o;const p=s+"CollectionSlot",g=mh(p),x=Zt.forwardRef((S,C)=>{const{scope:k,children:z}=S,L=m(p,k),V=it(C,L.collectionRef);return u.jsx(g,{ref:V,children:z})});x.displayName=p;const b=s+"CollectionItemSlot",w="data-radix-collection-item",E=mh(b),A=Zt.forwardRef((S,C)=>{const{scope:k,children:z,...L}=S,V=Zt.useRef(null),Q=it(C,V),I=m(b,k);return Zt.useEffect(()=>(I.itemMap.set(V,{ref:V,...L}),()=>{I.itemMap.delete(V)})),u.jsx(E,{[w]:"",ref:Q,children:z})});A.displayName=b;function R(S){const C=m(s+"CollectionConsumer",S);return Zt.useCallback(()=>{const z=C.collectionRef.current;if(!z)return[];const L=Array.from(z.querySelectorAll(`[${w}]`));return Array.from(C.itemMap.values()).sort((I,W)=>L.indexOf(I.ref.current)-L.indexOf(W.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:x,ItemSlot:A},R,i]}var db=y.createContext(void 0);function fb(s){const o=y.useContext(db);return s||o||"ltr"}function mb(s){const o=pb(s),r=y.forwardRef((i,d)=>{const{children:m,...h}=i,p=y.Children.toArray(m),g=p.find(xb);if(g){const x=g.props.children,b=p.map(w=>w===g?y.Children.count(x)>1?y.Children.only(null):y.isValidElement(x)?x.props.children:null:w);return u.jsx(o,{...h,ref:d,children:y.isValidElement(x)?y.cloneElement(x,void 0,b):null})}return u.jsx(o,{...h,ref:d,children:m})});return r.displayName=`${s}.Slot`,r}function pb(s){const o=y.forwardRef((r,i)=>{const{children:d,...m}=r;if(y.isValidElement(d)){const h=vb(d),p=gb(m,d.props);return d.type!==y.Fragment&&(p.ref=i?yc(i,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return o.displayName=`${s}.SlotClone`,o}var hb=Symbol("radix.slottable");function xb(s){return y.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===hb}function gb(s,o){const r={...o};for(const i in o){const d=s[i],m=o[i];/^on[A-Z]/.test(i)?d&&m?r[i]=(...p)=>{const g=m(...p);return d(...p),g}:d&&(r[i]=d):i==="style"?r[i]={...d,...m}:i==="className"&&(r[i]=[d,m].filter(Boolean).join(" "))}return{...s,...r}}function vb(s){let o=Object.getOwnPropertyDescriptor(s.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?s.ref:(o=Object.getOwnPropertyDescriptor(s,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?s.props.ref:s.props.ref||s.ref)}var yb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=yb.reduce((s,o)=>{const r=mb(`Primitive.${o}`),i=y.forwardRef((d,m)=>{const{asChild:h,...p}=d,g=h?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(g,{...p,ref:m})});return i.displayName=`Primitive.${o}`,{...s,[o]:i}},{});function bb(s,o){s&&kl.flushSync(()=>s.dispatchEvent(o))}function _a(s){const o=y.useRef(s);return y.useEffect(()=>{o.current=s}),y.useMemo(()=>(...r)=>o.current?.(...r),[])}function wb(s,o=globalThis?.document){const r=_a(s);y.useEffect(()=>{const i=d=>{d.key==="Escape"&&r(d)};return o.addEventListener("keydown",i,{capture:!0}),()=>o.removeEventListener("keydown",i,{capture:!0})},[r,o])}var Sb="DismissableLayer",xu="dismissableLayer.update",jb="dismissableLayer.pointerDownOutside",Nb="dismissableLayer.focusOutside",ph,mx=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),px=y.forwardRef((s,o)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:h,onDismiss:p,...g}=s,x=y.useContext(mx),[b,w]=y.useState(null),E=b?.ownerDocument??globalThis?.document,[,A]=y.useState({}),R=it(o,W=>w(W)),S=Array.from(x.layers),[C]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),k=S.indexOf(C),z=b?S.indexOf(b):-1,L=x.layersWithOutsidePointerEventsDisabled.size>0,V=z>=k,Q=Ab(W=>{const J=W.target,ae=[...x.branches].some(ue=>ue.contains(J));!V||ae||(d?.(W),h?.(W),W.defaultPrevented||p?.())},E),I=Mb(W=>{const J=W.target;[...x.branches].some(ue=>ue.contains(J))||(m?.(W),h?.(W),W.defaultPrevented||p?.())},E);return wb(W=>{z===x.layers.size-1&&(i?.(W),!W.defaultPrevented&&p&&(W.preventDefault(),p()))},E),y.useEffect(()=>{if(b)return r&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(ph=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),hh(),()=>{r&&x.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=ph)}},[b,E,r,x]),y.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),hh())},[b,x]),y.useEffect(()=>{const W=()=>A({});return document.addEventListener(xu,W),()=>document.removeEventListener(xu,W)},[]),u.jsx(Ze.div,{...g,ref:R,style:{pointerEvents:L?V?"auto":"none":void 0,...s.style},onFocusCapture:Fe(s.onFocusCapture,I.onFocusCapture),onBlurCapture:Fe(s.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Fe(s.onPointerDownCapture,Q.onPointerDownCapture)})});px.displayName=Sb;var Eb="DismissableLayerBranch",Cb=y.forwardRef((s,o)=>{const r=y.useContext(mx),i=y.useRef(null),d=it(o,i);return y.useEffect(()=>{const m=i.current;if(m)return r.branches.add(m),()=>{r.branches.delete(m)}},[r.branches]),u.jsx(Ze.div,{...s,ref:d})});Cb.displayName=Eb;function Ab(s,o=globalThis?.document){const r=_a(s),i=y.useRef(!1),d=y.useRef(()=>{});return y.useEffect(()=>{const m=p=>{if(p.target&&!i.current){let g=function(){hx(jb,r,x,{discrete:!0})};const x={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",d.current),d.current=g,o.addEventListener("click",d.current,{once:!0})):g()}else o.removeEventListener("click",d.current);i.current=!1},h=window.setTimeout(()=>{o.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(h),o.removeEventListener("pointerdown",m),o.removeEventListener("click",d.current)}},[o,r]),{onPointerDownCapture:()=>i.current=!0}}function Mb(s,o=globalThis?.document){const r=_a(s),i=y.useRef(!1);return y.useEffect(()=>{const d=m=>{m.target&&!i.current&&hx(Nb,r,{originalEvent:m},{discrete:!1})};return o.addEventListener("focusin",d),()=>o.removeEventListener("focusin",d)},[o,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function hh(){const s=new CustomEvent(xu);document.dispatchEvent(s)}function hx(s,o,r,{discrete:i}){const d=r.originalEvent.target,m=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:r});o&&d.addEventListener(s,o,{once:!0}),i?bb(d,m):d.dispatchEvent(m)}var eu=0;function Tb(){y.useEffect(()=>{const s=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",s[0]??xh()),document.body.insertAdjacentElement("beforeend",s[1]??xh()),eu++,()=>{eu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),eu--}},[])}function xh(){const s=document.createElement("span");return s.setAttribute("data-radix-focus-guard",""),s.tabIndex=0,s.style.outline="none",s.style.opacity="0",s.style.position="fixed",s.style.pointerEvents="none",s}var tu="focusScope.autoFocusOnMount",nu="focusScope.autoFocusOnUnmount",gh={bubbles:!1,cancelable:!0},zb="FocusScope",xx=y.forwardRef((s,o)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:d,onUnmountAutoFocus:m,...h}=s,[p,g]=y.useState(null),x=_a(d),b=_a(m),w=y.useRef(null),E=it(o,S=>g(S)),A=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let S=function(L){if(A.paused||!p)return;const V=L.target;p.contains(V)?w.current=V:ta(w.current,{select:!0})},C=function(L){if(A.paused||!p)return;const V=L.relatedTarget;V!==null&&(p.contains(V)||ta(w.current,{select:!0}))},k=function(L){if(document.activeElement===document.body)for(const Q of L)Q.removedNodes.length>0&&ta(p)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const z=new MutationObserver(k);return p&&z.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),z.disconnect()}}},[i,p,A.paused]),y.useEffect(()=>{if(p){yh.add(A);const S=document.activeElement;if(!p.contains(S)){const k=new CustomEvent(tu,gh);p.addEventListener(tu,x),p.dispatchEvent(k),k.defaultPrevented||(_b(Hb(gx(p)),{select:!0}),document.activeElement===S&&ta(p))}return()=>{p.removeEventListener(tu,x),setTimeout(()=>{const k=new CustomEvent(nu,gh);p.addEventListener(nu,b),p.dispatchEvent(k),k.defaultPrevented||ta(S??document.body,{select:!0}),p.removeEventListener(nu,b),yh.remove(A)},0)}}},[p,x,b,A]);const R=y.useCallback(S=>{if(!r&&!i||A.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,k=document.activeElement;if(C&&k){const z=S.currentTarget,[L,V]=Rb(z);L&&V?!S.shiftKey&&k===V?(S.preventDefault(),r&&ta(L,{select:!0})):S.shiftKey&&k===L&&(S.preventDefault(),r&&ta(V,{select:!0})):k===z&&S.preventDefault()}},[r,i,A.paused]);return u.jsx(Ze.div,{tabIndex:-1,...h,ref:E,onKeyDown:R})});xx.displayName=zb;function _b(s,{select:o=!1}={}){const r=document.activeElement;for(const i of s)if(ta(i,{select:o}),document.activeElement!==r)return}function Rb(s){const o=gx(s),r=vh(o,s),i=vh(o.reverse(),s);return[r,i]}function gx(s){const o=[],r=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const d=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||d?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)o.push(r.currentNode);return o}function vh(s,o){for(const r of s)if(!Db(r,{upTo:o}))return r}function Db(s,{upTo:o}){if(getComputedStyle(s).visibility==="hidden")return!0;for(;s;){if(o!==void 0&&s===o)return!1;if(getComputedStyle(s).display==="none")return!0;s=s.parentElement}return!1}function Ob(s){return s instanceof HTMLInputElement&&"select"in s}function ta(s,{select:o=!1}={}){if(s&&s.focus){const r=document.activeElement;s.focus({preventScroll:!0}),s!==r&&Ob(s)&&o&&s.select()}}var yh=kb();function kb(){let s=[];return{add(o){const r=s[0];o!==r&&r?.pause(),s=bh(s,o),s.unshift(o)},remove(o){s=bh(s,o),s[0]?.resume()}}}function bh(s,o){const r=[...s],i=r.indexOf(o);return i!==-1&&r.splice(i,1),r}function Hb(s){return s.filter(o=>o.tagName!=="A")}var bt=globalThis?.document?y.useLayoutEffect:()=>{},Ub=Gh[" useId ".trim().toString()]||(()=>{}),Lb=0;function Ru(s){const[o,r]=y.useState(Ub());return bt(()=>{r(i=>i??String(Lb++))},[s]),s||(o?`radix-${o}`:"")}const Bb=["top","right","bottom","left"],na=Math.min,_t=Math.max,mc=Math.round,tc=Math.floor,nn=s=>({x:s,y:s}),Pb={left:"right",right:"left",bottom:"top",top:"bottom"},Vb={start:"end",end:"start"};function gu(s,o,r){return _t(s,na(o,r))}function En(s,o){return typeof s=="function"?s(o):s}function Cn(s){return s.split("-")[0]}function Ms(s){return s.split("-")[1]}function Du(s){return s==="x"?"y":"x"}function Ou(s){return s==="y"?"height":"width"}const qb=new Set(["top","bottom"]);function tn(s){return qb.has(Cn(s))?"y":"x"}function ku(s){return Du(tn(s))}function Yb(s,o,r){r===void 0&&(r=!1);const i=Ms(s),d=ku(s),m=Ou(d);let h=d==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[m]>o.floating[m]&&(h=pc(h)),[h,pc(h)]}function Wb(s){const o=pc(s);return[vu(s),o,vu(o)]}function vu(s){return s.replace(/start|end/g,o=>Vb[o])}const wh=["left","right"],Sh=["right","left"],Gb=["top","bottom"],Xb=["bottom","top"];function Zb(s,o,r){switch(s){case"top":case"bottom":return r?o?Sh:wh:o?wh:Sh;case"left":case"right":return o?Gb:Xb;default:return[]}}function Qb(s,o,r,i){const d=Ms(s);let m=Zb(Cn(s),r==="start",i);return d&&(m=m.map(h=>h+"-"+d),o&&(m=m.concat(m.map(vu)))),m}function pc(s){return s.replace(/left|right|bottom|top/g,o=>Pb[o])}function Kb(s){return{top:0,right:0,bottom:0,left:0,...s}}function vx(s){return typeof s!="number"?Kb(s):{top:s,right:s,bottom:s,left:s}}function hc(s){const{x:o,y:r,width:i,height:d}=s;return{width:i,height:d,top:r,left:o,right:o+i,bottom:r+d,x:o,y:r}}function jh(s,o,r){let{reference:i,floating:d}=s;const m=tn(o),h=ku(o),p=Ou(h),g=Cn(o),x=m==="y",b=i.x+i.width/2-d.width/2,w=i.y+i.height/2-d.height/2,E=i[p]/2-d[p]/2;let A;switch(g){case"top":A={x:b,y:i.y-d.height};break;case"bottom":A={x:b,y:i.y+i.height};break;case"right":A={x:i.x+i.width,y:w};break;case"left":A={x:i.x-d.width,y:w};break;default:A={x:i.x,y:i.y}}switch(Ms(o)){case"start":A[h]-=E*(r&&x?-1:1);break;case"end":A[h]+=E*(r&&x?-1:1);break}return A}const Jb=async(s,o,r)=>{const{placement:i="bottom",strategy:d="absolute",middleware:m=[],platform:h}=r,p=m.filter(Boolean),g=await(h.isRTL==null?void 0:h.isRTL(o));let x=await h.getElementRects({reference:s,floating:o,strategy:d}),{x:b,y:w}=jh(x,i,g),E=i,A={},R=0;for(let S=0;S({name:"arrow",options:s,async fn(o){const{x:r,y:i,placement:d,rects:m,platform:h,elements:p,middlewareData:g}=o,{element:x,padding:b=0}=En(s,o)||{};if(x==null)return{};const w=vx(b),E={x:r,y:i},A=ku(d),R=Ou(A),S=await h.getDimensions(x),C=A==="y",k=C?"top":"left",z=C?"bottom":"right",L=C?"clientHeight":"clientWidth",V=m.reference[R]+m.reference[A]-E[A]-m.floating[R],Q=E[A]-m.reference[A],I=await(h.getOffsetParent==null?void 0:h.getOffsetParent(x));let W=I?I[L]:0;(!W||!await(h.isElement==null?void 0:h.isElement(I)))&&(W=p.floating[L]||m.floating[R]);const J=V/2-Q/2,ae=W/2-S[R]/2-1,ue=na(w[k],ae),fe=na(w[z],ae),te=ue,ge=W-S[R]-fe,re=W/2-S[R]/2+J,me=gu(te,re,ge),D=!g.arrow&&Ms(d)!=null&&re!==me&&m.reference[R]/2-(rere<=0)){var fe,te;const re=(((fe=m.flip)==null?void 0:fe.index)||0)+1,me=W[re];if(me&&(!(w==="alignment"?z!==tn(me):!1)||ue.every(P=>tn(P.placement)===z?P.overflows[0]>0:!0)))return{data:{index:re,overflows:ue},reset:{placement:me}};let D=(te=ue.filter(X=>X.overflows[0]<=0).sort((X,P)=>X.overflows[1]-P.overflows[1])[0])==null?void 0:te.placement;if(!D)switch(A){case"bestFit":{var ge;const X=(ge=ue.filter(P=>{if(I){const se=tn(P.placement);return se===z||se==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(se=>se>0).reduce((se,pe)=>se+pe,0)]).sort((P,se)=>P[1]-se[1])[0])==null?void 0:ge[0];X&&(D=X);break}case"initialPlacement":D=p;break}if(d!==D)return{reset:{placement:D}}}return{}}}};function Nh(s,o){return{top:s.top-o.height,right:s.right-o.width,bottom:s.bottom-o.height,left:s.left-o.width}}function Eh(s){return Bb.some(o=>s[o]>=0)}const Ib=function(s){return s===void 0&&(s={}),{name:"hide",options:s,async fn(o){const{rects:r}=o,{strategy:i="referenceHidden",...d}=En(s,o);switch(i){case"referenceHidden":{const m=await Rl(o,{...d,elementContext:"reference"}),h=Nh(m,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Eh(h)}}}case"escaped":{const m=await Rl(o,{...d,altBoundary:!0}),h=Nh(m,r.floating);return{data:{escapedOffsets:h,escaped:Eh(h)}}}default:return{}}}}},yx=new Set(["left","top"]);async function e2(s,o){const{placement:r,platform:i,elements:d}=s,m=await(i.isRTL==null?void 0:i.isRTL(d.floating)),h=Cn(r),p=Ms(r),g=tn(r)==="y",x=yx.has(h)?-1:1,b=m&&g?-1:1,w=En(o,s);let{mainAxis:E,crossAxis:A,alignmentAxis:R}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return p&&typeof R=="number"&&(A=p==="end"?R*-1:R),g?{x:A*b,y:E*x}:{x:E*x,y:A*b}}const t2=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(o){var r,i;const{x:d,y:m,placement:h,middlewareData:p}=o,g=await e2(o,s);return h===((r=p.offset)==null?void 0:r.placement)&&(i=p.arrow)!=null&&i.alignmentOffset?{}:{x:d+g.x,y:m+g.y,data:{...g,placement:h}}}}},n2=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(o){const{x:r,y:i,placement:d}=o,{mainAxis:m=!0,crossAxis:h=!1,limiter:p={fn:C=>{let{x:k,y:z}=C;return{x:k,y:z}}},...g}=En(s,o),x={x:r,y:i},b=await Rl(o,g),w=tn(Cn(d)),E=Du(w);let A=x[E],R=x[w];if(m){const C=E==="y"?"top":"left",k=E==="y"?"bottom":"right",z=A+b[C],L=A-b[k];A=gu(z,A,L)}if(h){const C=w==="y"?"top":"left",k=w==="y"?"bottom":"right",z=R+b[C],L=R-b[k];R=gu(z,R,L)}const S=p.fn({...o,[E]:A,[w]:R});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[E]:m,[w]:h}}}}}},a2=function(s){return s===void 0&&(s={}),{options:s,fn(o){const{x:r,y:i,placement:d,rects:m,middlewareData:h}=o,{offset:p=0,mainAxis:g=!0,crossAxis:x=!0}=En(s,o),b={x:r,y:i},w=tn(d),E=Du(w);let A=b[E],R=b[w];const S=En(p,o),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(g){const L=E==="y"?"height":"width",V=m.reference[E]-m.floating[L]+C.mainAxis,Q=m.reference[E]+m.reference[L]-C.mainAxis;AQ&&(A=Q)}if(x){var k,z;const L=E==="y"?"width":"height",V=yx.has(Cn(d)),Q=m.reference[w]-m.floating[L]+(V&&((k=h.offset)==null?void 0:k[w])||0)+(V?0:C.crossAxis),I=m.reference[w]+m.reference[L]+(V?0:((z=h.offset)==null?void 0:z[w])||0)-(V?C.crossAxis:0);RI&&(R=I)}return{[E]:A,[w]:R}}}},s2=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(o){var r,i;const{placement:d,rects:m,platform:h,elements:p}=o,{apply:g=()=>{},...x}=En(s,o),b=await Rl(o,x),w=Cn(d),E=Ms(d),A=tn(d)==="y",{width:R,height:S}=m.floating;let C,k;w==="top"||w==="bottom"?(C=w,k=E===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(k=w,C=E==="end"?"top":"bottom");const z=S-b.top-b.bottom,L=R-b.left-b.right,V=na(S-b[C],z),Q=na(R-b[k],L),I=!o.middlewareData.shift;let W=V,J=Q;if((r=o.middlewareData.shift)!=null&&r.enabled.x&&(J=L),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(W=z),I&&!E){const ue=_t(b.left,0),fe=_t(b.right,0),te=_t(b.top,0),ge=_t(b.bottom,0);A?J=R-2*(ue!==0||fe!==0?ue+fe:_t(b.left,b.right)):W=S-2*(te!==0||ge!==0?te+ge:_t(b.top,b.bottom))}await g({...o,availableWidth:J,availableHeight:W});const ae=await h.getDimensions(p.floating);return R!==ae.width||S!==ae.height?{reset:{rects:!0}}:{}}}};function bc(){return typeof window<"u"}function Ts(s){return bx(s)?(s.nodeName||"").toLowerCase():"#document"}function Rt(s){var o;return(s==null||(o=s.ownerDocument)==null?void 0:o.defaultView)||window}function sn(s){var o;return(o=(bx(s)?s.ownerDocument:s.document)||window.document)==null?void 0:o.documentElement}function bx(s){return bc()?s instanceof Node||s instanceof Rt(s).Node:!1}function Qt(s){return bc()?s instanceof Element||s instanceof Rt(s).Element:!1}function an(s){return bc()?s instanceof HTMLElement||s instanceof Rt(s).HTMLElement:!1}function Ch(s){return!bc()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof Rt(s).ShadowRoot}const l2=new Set(["inline","contents"]);function Hl(s){const{overflow:o,overflowX:r,overflowY:i,display:d}=Kt(s);return/auto|scroll|overlay|hidden|clip/.test(o+i+r)&&!l2.has(d)}const o2=new Set(["table","td","th"]);function c2(s){return o2.has(Ts(s))}const i2=[":popover-open",":modal"];function wc(s){return i2.some(o=>{try{return s.matches(o)}catch{return!1}})}const r2=["transform","translate","scale","rotate","perspective"],u2=["transform","translate","scale","rotate","perspective","filter"],d2=["paint","layout","strict","content"];function Hu(s){const o=Uu(),r=Qt(s)?Kt(s):s;return r2.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||u2.some(i=>(r.willChange||"").includes(i))||d2.some(i=>(r.contain||"").includes(i))}function f2(s){let o=aa(s);for(;an(o)&&!Cs(o);){if(Hu(o))return o;if(wc(o))return null;o=aa(o)}return null}function Uu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const m2=new Set(["html","body","#document"]);function Cs(s){return m2.has(Ts(s))}function Kt(s){return Rt(s).getComputedStyle(s)}function Sc(s){return Qt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function aa(s){if(Ts(s)==="html")return s;const o=s.assignedSlot||s.parentNode||Ch(s)&&s.host||sn(s);return Ch(o)?o.host:o}function wx(s){const o=aa(s);return Cs(o)?s.ownerDocument?s.ownerDocument.body:s.body:an(o)&&Hl(o)?o:wx(o)}function Dl(s,o,r){var i;o===void 0&&(o=[]),r===void 0&&(r=!0);const d=wx(s),m=d===((i=s.ownerDocument)==null?void 0:i.body),h=Rt(d);if(m){const p=yu(h);return o.concat(h,h.visualViewport||[],Hl(d)?d:[],p&&r?Dl(p):[])}return o.concat(d,Dl(d,[],r))}function yu(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Sx(s){const o=Kt(s);let r=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const d=an(s),m=d?s.offsetWidth:r,h=d?s.offsetHeight:i,p=mc(r)!==m||mc(i)!==h;return p&&(r=m,i=h),{width:r,height:i,$:p}}function Lu(s){return Qt(s)?s:s.contextElement}function Ns(s){const o=Lu(s);if(!an(o))return nn(1);const r=o.getBoundingClientRect(),{width:i,height:d,$:m}=Sx(o);let h=(m?mc(r.width):r.width)/i,p=(m?mc(r.height):r.height)/d;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const p2=nn(0);function jx(s){const o=Rt(s);return!Uu()||!o.visualViewport?p2:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function h2(s,o,r){return o===void 0&&(o=!1),!r||o&&r!==Rt(s)?!1:o}function Ra(s,o,r,i){o===void 0&&(o=!1),r===void 0&&(r=!1);const d=s.getBoundingClientRect(),m=Lu(s);let h=nn(1);o&&(i?Qt(i)&&(h=Ns(i)):h=Ns(s));const p=h2(m,r,i)?jx(m):nn(0);let g=(d.left+p.x)/h.x,x=(d.top+p.y)/h.y,b=d.width/h.x,w=d.height/h.y;if(m){const E=Rt(m),A=i&&Qt(i)?Rt(i):i;let R=E,S=yu(R);for(;S&&i&&A!==R;){const C=Ns(S),k=S.getBoundingClientRect(),z=Kt(S),L=k.left+(S.clientLeft+parseFloat(z.paddingLeft))*C.x,V=k.top+(S.clientTop+parseFloat(z.paddingTop))*C.y;g*=C.x,x*=C.y,b*=C.x,w*=C.y,g+=L,x+=V,R=Rt(S),S=yu(R)}}return hc({width:b,height:w,x:g,y:x})}function jc(s,o){const r=Sc(s).scrollLeft;return o?o.left+r:Ra(sn(s)).left+r}function Nx(s,o){const r=s.getBoundingClientRect(),i=r.left+o.scrollLeft-jc(s,r),d=r.top+o.scrollTop;return{x:i,y:d}}function x2(s){let{elements:o,rect:r,offsetParent:i,strategy:d}=s;const m=d==="fixed",h=sn(i),p=o?wc(o.floating):!1;if(i===h||p&&m)return r;let g={scrollLeft:0,scrollTop:0},x=nn(1);const b=nn(0),w=an(i);if((w||!w&&!m)&&((Ts(i)!=="body"||Hl(h))&&(g=Sc(i)),an(i))){const A=Ra(i);x=Ns(i),b.x=A.x+i.clientLeft,b.y=A.y+i.clientTop}const E=h&&!w&&!m?Nx(h,g):nn(0);return{width:r.width*x.x,height:r.height*x.y,x:r.x*x.x-g.scrollLeft*x.x+b.x+E.x,y:r.y*x.y-g.scrollTop*x.y+b.y+E.y}}function g2(s){return Array.from(s.getClientRects())}function v2(s){const o=sn(s),r=Sc(s),i=s.ownerDocument.body,d=_t(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),m=_t(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+jc(s);const p=-r.scrollTop;return Kt(i).direction==="rtl"&&(h+=_t(o.clientWidth,i.clientWidth)-d),{width:d,height:m,x:h,y:p}}const Ah=25;function y2(s,o){const r=Rt(s),i=sn(s),d=r.visualViewport;let m=i.clientWidth,h=i.clientHeight,p=0,g=0;if(d){m=d.width,h=d.height;const b=Uu();(!b||b&&o==="fixed")&&(p=d.offsetLeft,g=d.offsetTop)}const x=jc(i);if(x<=0){const b=i.ownerDocument,w=b.body,E=getComputedStyle(w),A=b.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,R=Math.abs(i.clientWidth-w.clientWidth-A);R<=Ah&&(m-=R)}else x<=Ah&&(m+=x);return{width:m,height:h,x:p,y:g}}const b2=new Set(["absolute","fixed"]);function w2(s,o){const r=Ra(s,!0,o==="fixed"),i=r.top+s.clientTop,d=r.left+s.clientLeft,m=an(s)?Ns(s):nn(1),h=s.clientWidth*m.x,p=s.clientHeight*m.y,g=d*m.x,x=i*m.y;return{width:h,height:p,x:g,y:x}}function Mh(s,o,r){let i;if(o==="viewport")i=y2(s,r);else if(o==="document")i=v2(sn(s));else if(Qt(o))i=w2(o,r);else{const d=jx(s);i={x:o.x-d.x,y:o.y-d.y,width:o.width,height:o.height}}return hc(i)}function Ex(s,o){const r=aa(s);return r===o||!Qt(r)||Cs(r)?!1:Kt(r).position==="fixed"||Ex(r,o)}function S2(s,o){const r=o.get(s);if(r)return r;let i=Dl(s,[],!1).filter(p=>Qt(p)&&Ts(p)!=="body"),d=null;const m=Kt(s).position==="fixed";let h=m?aa(s):s;for(;Qt(h)&&!Cs(h);){const p=Kt(h),g=Hu(h);!g&&p.position==="fixed"&&(d=null),(m?!g&&!d:!g&&p.position==="static"&&!!d&&b2.has(d.position)||Hl(h)&&!g&&Ex(s,h))?i=i.filter(b=>b!==h):d=p,h=aa(h)}return o.set(s,i),i}function j2(s){let{element:o,boundary:r,rootBoundary:i,strategy:d}=s;const h=[...r==="clippingAncestors"?wc(o)?[]:S2(o,this._c):[].concat(r),i],p=h[0],g=h.reduce((x,b)=>{const w=Mh(o,b,d);return x.top=_t(w.top,x.top),x.right=na(w.right,x.right),x.bottom=na(w.bottom,x.bottom),x.left=_t(w.left,x.left),x},Mh(o,p,d));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function N2(s){const{width:o,height:r}=Sx(s);return{width:o,height:r}}function E2(s,o,r){const i=an(o),d=sn(o),m=r==="fixed",h=Ra(s,!0,m,o);let p={scrollLeft:0,scrollTop:0};const g=nn(0);function x(){g.x=jc(d)}if(i||!i&&!m)if((Ts(o)!=="body"||Hl(d))&&(p=Sc(o)),i){const A=Ra(o,!0,m,o);g.x=A.x+o.clientLeft,g.y=A.y+o.clientTop}else d&&x();m&&!i&&d&&x();const b=d&&!i&&!m?Nx(d,p):nn(0),w=h.left+p.scrollLeft-g.x-b.x,E=h.top+p.scrollTop-g.y-b.y;return{x:w,y:E,width:h.width,height:h.height}}function au(s){return Kt(s).position==="static"}function Th(s,o){if(!an(s)||Kt(s).position==="fixed")return null;if(o)return o(s);let r=s.offsetParent;return sn(s)===r&&(r=r.ownerDocument.body),r}function Cx(s,o){const r=Rt(s);if(wc(s))return r;if(!an(s)){let d=aa(s);for(;d&&!Cs(d);){if(Qt(d)&&!au(d))return d;d=aa(d)}return r}let i=Th(s,o);for(;i&&c2(i)&&au(i);)i=Th(i,o);return i&&Cs(i)&&au(i)&&!Hu(i)?r:i||f2(s)||r}const C2=async function(s){const o=this.getOffsetParent||Cx,r=this.getDimensions,i=await r(s.floating);return{reference:E2(s.reference,await o(s.floating),s.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function A2(s){return Kt(s).direction==="rtl"}const M2={convertOffsetParentRelativeRectToViewportRelativeRect:x2,getDocumentElement:sn,getClippingRect:j2,getOffsetParent:Cx,getElementRects:C2,getClientRects:g2,getDimensions:N2,getScale:Ns,isElement:Qt,isRTL:A2};function Ax(s,o){return s.x===o.x&&s.y===o.y&&s.width===o.width&&s.height===o.height}function T2(s,o){let r=null,i;const d=sn(s);function m(){var p;clearTimeout(i),(p=r)==null||p.disconnect(),r=null}function h(p,g){p===void 0&&(p=!1),g===void 0&&(g=1),m();const x=s.getBoundingClientRect(),{left:b,top:w,width:E,height:A}=x;if(p||o(),!E||!A)return;const R=tc(w),S=tc(d.clientWidth-(b+E)),C=tc(d.clientHeight-(w+A)),k=tc(b),L={rootMargin:-R+"px "+-S+"px "+-C+"px "+-k+"px",threshold:_t(0,na(1,g))||1};let V=!0;function Q(I){const W=I[0].intersectionRatio;if(W!==g){if(!V)return h();W?h(!1,W):i=setTimeout(()=>{h(!1,1e-7)},1e3)}W===1&&!Ax(x,s.getBoundingClientRect())&&h(),V=!1}try{r=new IntersectionObserver(Q,{...L,root:d.ownerDocument})}catch{r=new IntersectionObserver(Q,L)}r.observe(s)}return h(!0),m}function z2(s,o,r,i){i===void 0&&(i={});const{ancestorScroll:d=!0,ancestorResize:m=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:g=!1}=i,x=Lu(s),b=d||m?[...x?Dl(x):[],...Dl(o)]:[];b.forEach(k=>{d&&k.addEventListener("scroll",r,{passive:!0}),m&&k.addEventListener("resize",r)});const w=x&&p?T2(x,r):null;let E=-1,A=null;h&&(A=new ResizeObserver(k=>{let[z]=k;z&&z.target===x&&A&&(A.unobserve(o),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var L;(L=A)==null||L.observe(o)})),r()}),x&&!g&&A.observe(x),A.observe(o));let R,S=g?Ra(s):null;g&&C();function C(){const k=Ra(s);S&&!Ax(S,k)&&r(),S=k,R=requestAnimationFrame(C)}return r(),()=>{var k;b.forEach(z=>{d&&z.removeEventListener("scroll",r),m&&z.removeEventListener("resize",r)}),w?.(),(k=A)==null||k.disconnect(),A=null,g&&cancelAnimationFrame(R)}}const _2=t2,R2=n2,D2=Fb,O2=s2,k2=Ib,zh=$b,H2=a2,U2=(s,o,r)=>{const i=new Map,d={platform:M2,...r},m={...d.platform,_c:i};return Jb(s,o,{...d,platform:m})};var L2=typeof document<"u",B2=function(){},uc=L2?y.useLayoutEffect:B2;function xc(s,o){if(s===o)return!0;if(typeof s!=typeof o)return!1;if(typeof s=="function"&&s.toString()===o.toString())return!0;let r,i,d;if(s&&o&&typeof s=="object"){if(Array.isArray(s)){if(r=s.length,r!==o.length)return!1;for(i=r;i--!==0;)if(!xc(s[i],o[i]))return!1;return!0}if(d=Object.keys(s),r=d.length,r!==Object.keys(o).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(o,d[i]))return!1;for(i=r;i--!==0;){const m=d[i];if(!(m==="_owner"&&s.$$typeof)&&!xc(s[m],o[m]))return!1}return!0}return s!==s&&o!==o}function Mx(s){return typeof window>"u"?1:(s.ownerDocument.defaultView||window).devicePixelRatio||1}function _h(s,o){const r=Mx(s);return Math.round(o*r)/r}function su(s){const o=y.useRef(s);return uc(()=>{o.current=s}),o}function P2(s){s===void 0&&(s={});const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:d,elements:{reference:m,floating:h}={},transform:p=!0,whileElementsMounted:g,open:x}=s,[b,w]=y.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[E,A]=y.useState(i);xc(E,i)||A(i);const[R,S]=y.useState(null),[C,k]=y.useState(null),z=y.useCallback(P=>{P!==I.current&&(I.current=P,S(P))},[]),L=y.useCallback(P=>{P!==W.current&&(W.current=P,k(P))},[]),V=m||R,Q=h||C,I=y.useRef(null),W=y.useRef(null),J=y.useRef(b),ae=g!=null,ue=su(g),fe=su(d),te=su(x),ge=y.useCallback(()=>{if(!I.current||!W.current)return;const P={placement:o,strategy:r,middleware:E};fe.current&&(P.platform=fe.current),U2(I.current,W.current,P).then(se=>{const pe={...se,isPositioned:te.current!==!1};re.current&&!xc(J.current,pe)&&(J.current=pe,kl.flushSync(()=>{w(pe)}))})},[E,o,r,fe,te]);uc(()=>{x===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,w(P=>({...P,isPositioned:!1})))},[x]);const re=y.useRef(!1);uc(()=>(re.current=!0,()=>{re.current=!1}),[]),uc(()=>{if(V&&(I.current=V),Q&&(W.current=Q),V&&Q){if(ue.current)return ue.current(V,Q,ge);ge()}},[V,Q,ge,ue,ae]);const me=y.useMemo(()=>({reference:I,floating:W,setReference:z,setFloating:L}),[z,L]),D=y.useMemo(()=>({reference:V,floating:Q}),[V,Q]),X=y.useMemo(()=>{const P={position:r,left:0,top:0};if(!D.floating)return P;const se=_h(D.floating,b.x),pe=_h(D.floating,b.y);return p?{...P,transform:"translate("+se+"px, "+pe+"px)",...Mx(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:pe}},[r,p,D.floating,b.x,b.y]);return y.useMemo(()=>({...b,update:ge,refs:me,elements:D,floatingStyles:X}),[b,ge,me,D,X])}const V2=s=>{function o(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:s,fn(r){const{element:i,padding:d}=typeof s=="function"?s(r):s;return i&&o(i)?i.current!=null?zh({element:i.current,padding:d}).fn(r):{}:i?zh({element:i,padding:d}).fn(r):{}}}},q2=(s,o)=>({..._2(s),options:[s,o]}),Y2=(s,o)=>({...R2(s),options:[s,o]}),W2=(s,o)=>({...H2(s),options:[s,o]}),G2=(s,o)=>({...D2(s),options:[s,o]}),X2=(s,o)=>({...O2(s),options:[s,o]}),Z2=(s,o)=>({...k2(s),options:[s,o]}),Q2=(s,o)=>({...V2(s),options:[s,o]});var K2="Arrow",Tx=y.forwardRef((s,o)=>{const{children:r,width:i=10,height:d=5,...m}=s;return u.jsx(Ze.svg,{...m,ref:o,width:i,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:s.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tx.displayName=K2;var J2=Tx;function $2(s){const[o,r]=y.useState(void 0);return bt(()=>{if(s){r({width:s.offsetWidth,height:s.offsetHeight});const i=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const m=d[0];let h,p;if("borderBoxSize"in m){const g=m.borderBoxSize,x=Array.isArray(g)?g[0]:g;h=x.inlineSize,p=x.blockSize}else h=s.offsetWidth,p=s.offsetHeight;r({width:h,height:p})});return i.observe(s,{box:"border-box"}),()=>i.unobserve(s)}else r(void 0)},[s]),o}var Bu="Popper",[zx,_x]=_u(Bu),[F2,Rx]=zx(Bu),Dx=s=>{const{__scopePopper:o,children:r}=s,[i,d]=y.useState(null);return u.jsx(F2,{scope:o,anchor:i,onAnchorChange:d,children:r})};Dx.displayName=Bu;var Ox="PopperAnchor",kx=y.forwardRef((s,o)=>{const{__scopePopper:r,virtualRef:i,...d}=s,m=Rx(Ox,r),h=y.useRef(null),p=it(o,h),g=y.useRef(null);return y.useEffect(()=>{const x=g.current;g.current=i?.current||h.current,x!==g.current&&m.onAnchorChange(g.current)}),i?null:u.jsx(Ze.div,{...d,ref:p})});kx.displayName=Ox;var Pu="PopperContent",[I2,ew]=zx(Pu),Hx=y.forwardRef((s,o)=>{const{__scopePopper:r,side:i="bottom",sideOffset:d=0,align:m="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:x=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:A="optimized",onPlaced:R,...S}=s,C=Rx(Pu,r),[k,z]=y.useState(null),L=it(o,M=>z(M)),[V,Q]=y.useState(null),I=$2(V),W=I?.width??0,J=I?.height??0,ae=i+(m!=="center"?"-"+m:""),ue=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},fe=Array.isArray(x)?x:[x],te=fe.length>0,ge={padding:ue,boundary:fe.filter(nw),altBoundary:te},{refs:re,floatingStyles:me,placement:D,isPositioned:X,middlewareData:P}=P2({strategy:"fixed",placement:ae,whileElementsMounted:(...M)=>z2(...M,{animationFrame:A==="always"}),elements:{reference:C.anchor},middleware:[q2({mainAxis:d+J,alignmentAxis:h}),g&&Y2({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?W2():void 0,...ge}),g&&G2({...ge}),X2({...ge,apply:({elements:M,rects:_,availableWidth:ne,availableHeight:he})=>{const{width:ye,height:ze}=_.reference,ut=M.floating.style;ut.setProperty("--radix-popper-available-width",`${ne}px`),ut.setProperty("--radix-popper-available-height",`${he}px`),ut.setProperty("--radix-popper-anchor-width",`${ye}px`),ut.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),V&&Q2({element:V,padding:p}),aw({arrowWidth:W,arrowHeight:J}),E&&Z2({strategy:"referenceHidden",...ge})]}),[se,pe]=Bx(D),N=_a(R);bt(()=>{X&&N?.()},[X,N]);const q=P.arrow?.x,F=P.arrow?.y,ee=P.arrow?.centerOffset!==0,[le,K]=y.useState();return bt(()=>{k&&K(window.getComputedStyle(k).zIndex)},[k]),u.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:X?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:s.dir,children:u.jsx(I2,{scope:r,placedSide:se,onArrowChange:Q,arrowX:q,arrowY:F,shouldHideArrow:ee,children:u.jsx(Ze.div,{"data-side":se,"data-align":pe,...S,ref:L,style:{...S.style,animation:X?void 0:"none"}})})})});Hx.displayName=Pu;var Ux="PopperArrow",tw={top:"bottom",right:"left",bottom:"top",left:"right"},Lx=y.forwardRef(function(o,r){const{__scopePopper:i,...d}=o,m=ew(Ux,i),h=tw[m.placedSide];return u.jsx("span",{ref:m.onArrowChange,style:{position:"absolute",left:m.arrowX,top:m.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[m.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[m.placedSide],visibility:m.shouldHideArrow?"hidden":void 0},children:u.jsx(J2,{...d,ref:r,style:{...d.style,display:"block"}})})});Lx.displayName=Ux;function nw(s){return s!==null}var aw=s=>({name:"transformOrigin",options:s,fn(o){const{placement:r,rects:i,middlewareData:d}=o,h=d.arrow?.centerOffset!==0,p=h?0:s.arrowWidth,g=h?0:s.arrowHeight,[x,b]=Bx(r),w={start:"0%",center:"50%",end:"100%"}[b],E=(d.arrow?.x??0)+p/2,A=(d.arrow?.y??0)+g/2;let R="",S="";return x==="bottom"?(R=h?w:`${E}px`,S=`${-g}px`):x==="top"?(R=h?w:`${E}px`,S=`${i.floating.height+g}px`):x==="right"?(R=`${-g}px`,S=h?w:`${A}px`):x==="left"&&(R=`${i.floating.width+g}px`,S=h?w:`${A}px`),{data:{x:R,y:S}}}});function Bx(s){const[o,r="center"]=s.split("-");return[o,r]}var sw=Dx,lw=kx,ow=Hx,cw=Lx,iw="Portal",Px=y.forwardRef((s,o)=>{const{container:r,...i}=s,[d,m]=y.useState(!1);bt(()=>m(!0),[]);const h=r||d&&globalThis?.document?.body;return h?ab.createPortal(u.jsx(Ze.div,{...i,ref:o}),h):null});Px.displayName=iw;function rw(s){const o=uw(s),r=y.forwardRef((i,d)=>{const{children:m,...h}=i,p=y.Children.toArray(m),g=p.find(fw);if(g){const x=g.props.children,b=p.map(w=>w===g?y.Children.count(x)>1?y.Children.only(null):y.isValidElement(x)?x.props.children:null:w);return u.jsx(o,{...h,ref:d,children:y.isValidElement(x)?y.cloneElement(x,void 0,b):null})}return u.jsx(o,{...h,ref:d,children:m})});return r.displayName=`${s}.Slot`,r}function uw(s){const o=y.forwardRef((r,i)=>{const{children:d,...m}=r;if(y.isValidElement(d)){const h=pw(d),p=mw(m,d.props);return d.type!==y.Fragment&&(p.ref=i?yc(i,h):h),y.cloneElement(d,p)}return y.Children.count(d)>1?y.Children.only(null):null});return o.displayName=`${s}.SlotClone`,o}var dw=Symbol("radix.slottable");function fw(s){return y.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===dw}function mw(s,o){const r={...o};for(const i in o){const d=s[i],m=o[i];/^on[A-Z]/.test(i)?d&&m?r[i]=(...p)=>{const g=m(...p);return d(...p),g}:d&&(r[i]=d):i==="style"?r[i]={...d,...m}:i==="className"&&(r[i]=[d,m].filter(Boolean).join(" "))}return{...s,...r}}function pw(s){let o=Object.getOwnPropertyDescriptor(s.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?s.ref:(o=Object.getOwnPropertyDescriptor(s,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?s.props.ref:s.props.ref||s.ref)}var hw=Gh[" useInsertionEffect ".trim().toString()]||bt;function Rh({prop:s,defaultProp:o,onChange:r=()=>{},caller:i}){const[d,m,h]=xw({defaultProp:o,onChange:r}),p=s!==void 0,g=p?s:d;{const b=y.useRef(s!==void 0);y.useEffect(()=>{const w=b.current;w!==p&&console.warn(`${i} is changing from ${w?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=p},[p,i])}const x=y.useCallback(b=>{if(p){const w=gw(b)?b(s):b;w!==s&&h.current?.(w)}else m(b)},[p,s,m,h]);return[g,x]}function xw({defaultProp:s,onChange:o}){const[r,i]=y.useState(s),d=y.useRef(r),m=y.useRef(o);return hw(()=>{m.current=o},[o]),y.useEffect(()=>{d.current!==r&&(m.current?.(r),d.current=r)},[r,d]),[r,i,m]}function gw(s){return typeof s=="function"}function vw(s){const o=y.useRef({value:s,previous:s});return y.useMemo(()=>(o.current.value!==s&&(o.current.previous=o.current.value,o.current.value=s),o.current.previous),[s])}var Vx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yw="VisuallyHidden",bw=y.forwardRef((s,o)=>u.jsx(Ze.span,{...s,ref:o,style:{...Vx,...s.style}}));bw.displayName=yw;var ww=function(s){if(typeof document>"u")return null;var o=Array.isArray(s)?s[0]:s;return o.ownerDocument.body},ys=new WeakMap,nc=new WeakMap,ac={},lu=0,qx=function(s){return s&&(s.host||qx(s.parentNode))},Sw=function(s,o){return o.map(function(r){if(s.contains(r))return r;var i=qx(r);return i&&s.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",s,". Doing nothing"),null)}).filter(function(r){return!!r})},jw=function(s,o,r,i){var d=Sw(o,Array.isArray(s)?s:[s]);ac[r]||(ac[r]=new WeakMap);var m=ac[r],h=[],p=new Set,g=new Set(d),x=function(w){!w||p.has(w)||(p.add(w),x(w.parentNode))};d.forEach(x);var b=function(w){!w||g.has(w)||Array.prototype.forEach.call(w.children,function(E){if(p.has(E))b(E);else try{var A=E.getAttribute(i),R=A!==null&&A!=="false",S=(ys.get(E)||0)+1,C=(m.get(E)||0)+1;ys.set(E,S),m.set(E,C),h.push(E),S===1&&R&&nc.set(E,!0),C===1&&E.setAttribute(r,"true"),R||E.setAttribute(i,"true")}catch(k){console.error("aria-hidden: cannot operate on ",E,k)}})};return b(o),p.clear(),lu++,function(){h.forEach(function(w){var E=ys.get(w)-1,A=m.get(w)-1;ys.set(w,E),m.set(w,A),E||(nc.has(w)||w.removeAttribute(i),nc.delete(w)),A||w.removeAttribute(r)}),lu--,lu||(ys=new WeakMap,ys=new WeakMap,nc=new WeakMap,ac={})}},Nw=function(s,o,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(s)?s:[s]),d=ww(s);return d?(i.push.apply(i,Array.from(d.querySelectorAll("[aria-live], script"))),jw(i,d,r,"aria-hidden")):function(){return null}},en=function(){return en=Object.assign||function(o){for(var r,i=1,d=arguments.length;i"u")return Vw;var o=qw(s),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,i-r+o[2]-o[0])}},Ww=Xx(),Es="data-scroll-locked",Gw=function(s,o,r,i){var d=s.left,m=s.top,h=s.right,p=s.gap;return r===void 0&&(r="margin"),` .`.concat(Cw,` { overflow: hidden `).concat(i,`; padding-right: `).concat(p,"px ").concat(i,`; } body[`).concat(Es,`] { overflow: hidden `).concat(i,`; overscroll-behavior: contain; `).concat([o&&"position: relative ".concat(i,";"),r==="margin"&&` padding-left: `.concat(d,`px; padding-top: `).concat(m,`px; padding-right: `).concat(h,`px; margin-left:0; margin-top:0; margin-right: `).concat(p,"px ").concat(i,`; `),r==="padding"&&"padding-right: ".concat(p,"px ").concat(i,";")].filter(Boolean).join(""),` } .`).concat(dc,` { right: `).concat(p,"px ").concat(i,`; } .`).concat(fc,` { margin-right: `).concat(p,"px ").concat(i,`; } .`).concat(dc," .").concat(dc,` { right: 0 `).concat(i,`; } .`).concat(fc," .").concat(fc,` { margin-right: 0 `).concat(i,`; } body[`).concat(Es,`] { `).concat(Aw,": ").concat(p,`px; } `)},Oh=function(){var s=parseInt(document.body.getAttribute(Es)||"0",10);return isFinite(s)?s:0},Xw=function(){y.useEffect(function(){return document.body.setAttribute(Es,(Oh()+1).toString()),function(){var s=Oh()-1;s<=0?document.body.removeAttribute(Es):document.body.setAttribute(Es,s.toString())}},[])},Zw=function(s){var o=s.noRelative,r=s.noImportant,i=s.gapMode,d=i===void 0?"margin":i;Xw();var m=y.useMemo(function(){return Yw(d)},[d]);return y.createElement(Ww,{styles:Gw(m,!o,d,r?"":"!important")})},bu=!1;if(typeof window<"u")try{var sc=Object.defineProperty({},"passive",{get:function(){return bu=!0,!0}});window.addEventListener("test",sc,sc),window.removeEventListener("test",sc,sc)}catch{bu=!1}var bs=bu?{passive:!1}:!1,Qw=function(s){return s.tagName==="TEXTAREA"},Zx=function(s,o){if(!(s instanceof Element))return!1;var r=window.getComputedStyle(s);return r[o]!=="hidden"&&!(r.overflowY===r.overflowX&&!Qw(s)&&r[o]==="visible")},Kw=function(s){return Zx(s,"overflowY")},Jw=function(s){return Zx(s,"overflowX")},kh=function(s,o){var r=o.ownerDocument,i=o;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var d=Qx(s,i);if(d){var m=Kx(s,i),h=m[1],p=m[2];if(h>p)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},$w=function(s){var o=s.scrollTop,r=s.scrollHeight,i=s.clientHeight;return[o,r,i]},Fw=function(s){var o=s.scrollLeft,r=s.scrollWidth,i=s.clientWidth;return[o,r,i]},Qx=function(s,o){return s==="v"?Kw(o):Jw(o)},Kx=function(s,o){return s==="v"?$w(o):Fw(o)},Iw=function(s,o){return s==="h"&&o==="rtl"?-1:1},eS=function(s,o,r,i,d){var m=Iw(s,window.getComputedStyle(o).direction),h=m*i,p=r.target,g=o.contains(p),x=!1,b=h>0,w=0,E=0;do{if(!p)break;var A=Kx(s,p),R=A[0],S=A[1],C=A[2],k=S-C-m*R;(R||k)&&Qx(s,p)&&(w+=k,E+=R);var z=p.parentNode;p=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!g&&p!==document.body||g&&(o.contains(p)||o===p));return(b&&Math.abs(w)<1||!b&&Math.abs(E)<1)&&(x=!0),x},lc=function(s){return"changedTouches"in s?[s.changedTouches[0].clientX,s.changedTouches[0].clientY]:[0,0]},Hh=function(s){return[s.deltaX,s.deltaY]},Uh=function(s){return s&&"current"in s?s.current:s},tS=function(s,o){return s[0]===o[0]&&s[1]===o[1]},nS=function(s){return` .block-interactivity-`.concat(s,` {pointer-events: none;} .allow-interactivity-`).concat(s,` {pointer-events: all;} `)},aS=0,ws=[];function sS(s){var o=y.useRef([]),r=y.useRef([0,0]),i=y.useRef(),d=y.useState(aS++)[0],m=y.useState(Xx)[0],h=y.useRef(s);y.useEffect(function(){h.current=s},[s]),y.useEffect(function(){if(s.inert){document.body.classList.add("block-interactivity-".concat(d));var S=Ew([s.lockRef.current],(s.shards||[]).map(Uh),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(d))})}}},[s.inert,s.lockRef.current,s.shards]);var p=y.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var k=lc(S),z=r.current,L="deltaX"in S?S.deltaX:z[0]-k[0],V="deltaY"in S?S.deltaY:z[1]-k[1],Q,I=S.target,W=Math.abs(L)>Math.abs(V)?"h":"v";if("touches"in S&&W==="h"&&I.type==="range")return!1;var J=window.getSelection(),ae=J&&J.anchorNode,ue=ae?ae===I||ae.contains(I):!1;if(ue)return!1;var fe=kh(W,I);if(!fe)return!0;if(fe?Q=W:(Q=W==="v"?"h":"v",fe=kh(W,I)),!fe)return!1;if(!i.current&&"changedTouches"in S&&(L||V)&&(i.current=Q),!Q)return!0;var te=i.current||Q;return eS(te,C,S,te==="h"?L:V)},[]),g=y.useCallback(function(S){var C=S;if(!(!ws.length||ws[ws.length-1]!==m)){var k="deltaY"in C?Hh(C):lc(C),z=o.current.filter(function(Q){return Q.name===C.type&&(Q.target===C.target||C.target===Q.shadowParent)&&tS(Q.delta,k)})[0];if(z&&z.should){C.cancelable&&C.preventDefault();return}if(!z){var L=(h.current.shards||[]).map(Uh).filter(Boolean).filter(function(Q){return Q.contains(C.target)}),V=L.length>0?p(C,L[0]):!h.current.noIsolation;V&&C.cancelable&&C.preventDefault()}}},[]),x=y.useCallback(function(S,C,k,z){var L={name:S,delta:C,target:k,should:z,shadowParent:lS(k)};o.current.push(L),setTimeout(function(){o.current=o.current.filter(function(V){return V!==L})},1)},[]),b=y.useCallback(function(S){r.current=lc(S),i.current=void 0},[]),w=y.useCallback(function(S){x(S.type,Hh(S),S.target,p(S,s.lockRef.current))},[]),E=y.useCallback(function(S){x(S.type,lc(S),S.target,p(S,s.lockRef.current))},[]);y.useEffect(function(){return ws.push(m),s.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:E}),document.addEventListener("wheel",g,bs),document.addEventListener("touchmove",g,bs),document.addEventListener("touchstart",b,bs),function(){ws=ws.filter(function(S){return S!==m}),document.removeEventListener("wheel",g,bs),document.removeEventListener("touchmove",g,bs),document.removeEventListener("touchstart",b,bs)}},[]);var A=s.removeScrollBar,R=s.inert;return y.createElement(y.Fragment,null,R?y.createElement(m,{styles:nS(d)}):null,A?y.createElement(Zw,{noRelative:s.noRelative,gapMode:s.gapMode}):null)}function lS(s){for(var o=null;s!==null;)s instanceof ShadowRoot&&(o=s.host,s=s.host),s=s.parentNode;return o}const oS=Ow(Gx,sS);var Jx=y.forwardRef(function(s,o){return y.createElement(Nc,en({},s,{ref:o,sideCar:oS}))});Jx.classNames=Nc.classNames;var cS=[" ","Enter","ArrowUp","ArrowDown"],iS=[" ","Enter"],Da="Select",[Ec,Cc,rS]=ub(Da),[zs]=_u(Da,[rS,_x]),Ac=_x(),[uS,la]=zs(Da),[dS,fS]=zs(Da),$x=s=>{const{__scopeSelect:o,children:r,open:i,defaultOpen:d,onOpenChange:m,value:h,defaultValue:p,onValueChange:g,dir:x,name:b,autoComplete:w,disabled:E,required:A,form:R}=s,S=Ac(o),[C,k]=y.useState(null),[z,L]=y.useState(null),[V,Q]=y.useState(!1),I=fb(x),[W,J]=Rh({prop:i,defaultProp:d??!1,onChange:m,caller:Da}),[ae,ue]=Rh({prop:h,defaultProp:p,onChange:g,caller:Da}),fe=y.useRef(null),te=C?R||!!C.closest("form"):!0,[ge,re]=y.useState(new Set),me=Array.from(ge).map(D=>D.props.value).join(";");return u.jsx(sw,{...S,children:u.jsxs(uS,{required:A,scope:o,trigger:C,onTriggerChange:k,valueNode:z,onValueNodeChange:L,valueNodeHasChildren:V,onValueNodeHasChildrenChange:Q,contentId:Ru(),value:ae,onValueChange:ue,open:W,onOpenChange:J,dir:I,triggerPointerDownPosRef:fe,disabled:E,children:[u.jsx(Ec.Provider,{scope:o,children:u.jsx(dS,{scope:s.__scopeSelect,onNativeOptionAdd:y.useCallback(D=>{re(X=>new Set(X).add(D))},[]),onNativeOptionRemove:y.useCallback(D=>{re(X=>{const P=new Set(X);return P.delete(D),P})},[]),children:r})}),te?u.jsxs(yg,{"aria-hidden":!0,required:A,tabIndex:-1,name:b,autoComplete:w,value:ae,onChange:D=>ue(D.target.value),disabled:E,form:R,children:[ae===void 0?u.jsx("option",{value:""}):null,Array.from(ge)]},me):null]})})};$x.displayName=Da;var Fx="SelectTrigger",Ix=y.forwardRef((s,o)=>{const{__scopeSelect:r,disabled:i=!1,...d}=s,m=Ac(r),h=la(Fx,r),p=h.disabled||i,g=it(o,h.onTriggerChange),x=Cc(r),b=y.useRef("touch"),[w,E,A]=wg(S=>{const C=x().filter(L=>!L.disabled),k=C.find(L=>L.value===h.value),z=Sg(C,S,k);z!==void 0&&h.onValueChange(z.value)}),R=S=>{p||(h.onOpenChange(!0),A()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return u.jsx(lw,{asChild:!0,...m,children:u.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":bg(h.value)?"":void 0,...d,ref:g,onClick:Fe(d.onClick,S=>{S.currentTarget.focus(),b.current!=="mouse"&&R(S)}),onPointerDown:Fe(d.onPointerDown,S=>{b.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(R(S),S.preventDefault())}),onKeyDown:Fe(d.onKeyDown,S=>{const C=w.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&E(S.key),!(C&&S.key===" ")&&cS.includes(S.key)&&(R(),S.preventDefault())})})})});Ix.displayName=Fx;var eg="SelectValue",tg=y.forwardRef((s,o)=>{const{__scopeSelect:r,className:i,style:d,children:m,placeholder:h="",...p}=s,g=la(eg,r),{onValueNodeHasChildrenChange:x}=g,b=m!==void 0,w=it(o,g.onValueNodeChange);return bt(()=>{x(b)},[x,b]),u.jsx(Ze.span,{...p,ref:w,style:{pointerEvents:"none"},children:bg(g.value)?u.jsx(u.Fragment,{children:h}):m})});tg.displayName=eg;var mS="SelectIcon",ng=y.forwardRef((s,o)=>{const{__scopeSelect:r,children:i,...d}=s;return u.jsx(Ze.span,{"aria-hidden":!0,...d,ref:o,children:i||"▼"})});ng.displayName=mS;var pS="SelectPortal",ag=s=>u.jsx(Px,{asChild:!0,...s});ag.displayName=pS;var Oa="SelectContent",sg=y.forwardRef((s,o)=>{const r=la(Oa,s.__scopeSelect),[i,d]=y.useState();if(bt(()=>{d(new DocumentFragment)},[]),!r.open){const m=i;return m?kl.createPortal(u.jsx(lg,{scope:s.__scopeSelect,children:u.jsx(Ec.Slot,{scope:s.__scopeSelect,children:u.jsx("div",{children:s.children})})}),m):null}return u.jsx(og,{...s,ref:o})});sg.displayName=Oa;var Xt=10,[lg,oa]=zs(Oa),hS="SelectContentImpl",xS=rw("SelectContent.RemoveScroll"),og=y.forwardRef((s,o)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:d,onEscapeKeyDown:m,onPointerDownOutside:h,side:p,sideOffset:g,align:x,alignOffset:b,arrowPadding:w,collisionBoundary:E,collisionPadding:A,sticky:R,hideWhenDetached:S,avoidCollisions:C,...k}=s,z=la(Oa,r),[L,V]=y.useState(null),[Q,I]=y.useState(null),W=it(o,M=>V(M)),[J,ae]=y.useState(null),[ue,fe]=y.useState(null),te=Cc(r),[ge,re]=y.useState(!1),me=y.useRef(!1);y.useEffect(()=>{if(L)return Nw(L)},[L]),Tb();const D=y.useCallback(M=>{const[_,...ne]=te().map(ze=>ze.ref.current),[he]=ne.slice(-1),ye=document.activeElement;for(const ze of M)if(ze===ye||(ze?.scrollIntoView({block:"nearest"}),ze===_&&Q&&(Q.scrollTop=0),ze===he&&Q&&(Q.scrollTop=Q.scrollHeight),ze?.focus(),document.activeElement!==ye))return},[te,Q]),X=y.useCallback(()=>D([J,L]),[D,J,L]);y.useEffect(()=>{ge&&X()},[ge,X]);const{onOpenChange:P,triggerPointerDownPosRef:se}=z;y.useEffect(()=>{if(L){let M={x:0,y:0};const _=he=>{M={x:Math.abs(Math.round(he.pageX)-(se.current?.x??0)),y:Math.abs(Math.round(he.pageY)-(se.current?.y??0))}},ne=he=>{M.x<=10&&M.y<=10?he.preventDefault():L.contains(he.target)||P(!1),document.removeEventListener("pointermove",_),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",ne,{capture:!0})}}},[L,P,se]),y.useEffect(()=>{const M=()=>P(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[P]);const[pe,N]=wg(M=>{const _=te().filter(ye=>!ye.disabled),ne=_.find(ye=>ye.ref.current===document.activeElement),he=Sg(_,M,ne);he&&setTimeout(()=>he.ref.current.focus())}),q=y.useCallback((M,_,ne)=>{const he=!me.current&&!ne;(z.value!==void 0&&z.value===_||he)&&(ae(M),he&&(me.current=!0))},[z.value]),F=y.useCallback(()=>L?.focus(),[L]),ee=y.useCallback((M,_,ne)=>{const he=!me.current&&!ne;(z.value!==void 0&&z.value===_||he)&&fe(M)},[z.value]),le=i==="popper"?wu:cg,K=le===wu?{side:p,sideOffset:g,align:x,alignOffset:b,arrowPadding:w,collisionBoundary:E,collisionPadding:A,sticky:R,hideWhenDetached:S,avoidCollisions:C}:{};return u.jsx(lg,{scope:r,content:L,viewport:Q,onViewportChange:I,itemRefCallback:q,selectedItem:J,onItemLeave:F,itemTextRefCallback:ee,focusSelectedItem:X,selectedItemText:ue,position:i,isPositioned:ge,searchRef:pe,children:u.jsx(Jx,{as:xS,allowPinchZoom:!0,children:u.jsx(xx,{asChild:!0,trapped:z.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:Fe(d,M=>{z.trigger?.focus({preventScroll:!0}),M.preventDefault()}),children:u.jsx(px,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>z.onOpenChange(!1),children:u.jsx(le,{role:"listbox",id:z.contentId,"data-state":z.open?"open":"closed",dir:z.dir,onContextMenu:M=>M.preventDefault(),...k,...K,onPlaced:()=>re(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:Fe(k.onKeyDown,M=>{const _=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!_&&M.key.length===1&&N(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let he=te().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(M.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const ye=M.target,ze=he.indexOf(ye);he=he.slice(ze+1)}setTimeout(()=>D(he)),M.preventDefault()}})})})})})})});og.displayName=hS;var gS="SelectItemAlignedPosition",cg=y.forwardRef((s,o)=>{const{__scopeSelect:r,onPlaced:i,...d}=s,m=la(Oa,r),h=oa(Oa,r),[p,g]=y.useState(null),[x,b]=y.useState(null),w=it(o,W=>b(W)),E=Cc(r),A=y.useRef(!1),R=y.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:k,focusSelectedItem:z}=h,L=y.useCallback(()=>{if(m.trigger&&m.valueNode&&p&&x&&S&&C&&k){const W=m.trigger.getBoundingClientRect(),J=x.getBoundingClientRect(),ae=m.valueNode.getBoundingClientRect(),ue=k.getBoundingClientRect();if(m.dir!=="rtl"){const ye=ue.left-J.left,ze=ae.left-ye,ut=W.left-ze,dt=W.width+ut,ca=Math.max(dt,J.width),ia=window.innerWidth-Xt,Ds=dh(ze,[Xt,Math.max(Xt,ia-ca)]);p.style.minWidth=dt+"px",p.style.left=Ds+"px"}else{const ye=J.right-ue.right,ze=window.innerWidth-ae.right-ye,ut=window.innerWidth-W.right-ze,dt=W.width+ut,ca=Math.max(dt,J.width),ia=window.innerWidth-Xt,Ds=dh(ze,[Xt,Math.max(Xt,ia-ca)]);p.style.minWidth=dt+"px",p.style.right=Ds+"px"}const fe=E(),te=window.innerHeight-Xt*2,ge=S.scrollHeight,re=window.getComputedStyle(x),me=parseInt(re.borderTopWidth,10),D=parseInt(re.paddingTop,10),X=parseInt(re.borderBottomWidth,10),P=parseInt(re.paddingBottom,10),se=me+D+ge+P+X,pe=Math.min(C.offsetHeight*5,se),N=window.getComputedStyle(S),q=parseInt(N.paddingTop,10),F=parseInt(N.paddingBottom,10),ee=W.top+W.height/2-Xt,le=te-ee,K=C.offsetHeight/2,M=C.offsetTop+K,_=me+D+M,ne=se-_;if(_<=ee){const ye=fe.length>0&&C===fe[fe.length-1].ref.current;p.style.bottom="0px";const ze=x.clientHeight-S.offsetTop-S.offsetHeight,ut=Math.max(le,K+(ye?F:0)+ze+X),dt=_+ut;p.style.height=dt+"px"}else{const ye=fe.length>0&&C===fe[0].ref.current;p.style.top="0px";const ut=Math.max(ee,me+S.offsetTop+(ye?q:0)+K)+ne;p.style.height=ut+"px",S.scrollTop=_-ee+S.offsetTop}p.style.margin=`${Xt}px 0`,p.style.minHeight=pe+"px",p.style.maxHeight=te+"px",i?.(),requestAnimationFrame(()=>A.current=!0)}},[E,m.trigger,m.valueNode,p,x,S,C,k,m.dir,i]);bt(()=>L(),[L]);const[V,Q]=y.useState();bt(()=>{x&&Q(window.getComputedStyle(x).zIndex)},[x]);const I=y.useCallback(W=>{W&&R.current===!0&&(L(),z?.(),R.current=!1)},[L,z]);return u.jsx(yS,{scope:r,contentWrapper:p,shouldExpandOnScrollRef:A,onScrollButtonChange:I,children:u.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:u.jsx(Ze.div,{...d,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...d.style}})})})});cg.displayName=gS;var vS="SelectPopperPosition",wu=y.forwardRef((s,o)=>{const{__scopeSelect:r,align:i="start",collisionPadding:d=Xt,...m}=s,h=Ac(r);return u.jsx(ow,{...h,...m,ref:o,align:i,collisionPadding:d,style:{boxSizing:"border-box",...m.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});wu.displayName=vS;var[yS,Vu]=zs(Oa,{}),Su="SelectViewport",ig=y.forwardRef((s,o)=>{const{__scopeSelect:r,nonce:i,...d}=s,m=oa(Su,r),h=Vu(Su,r),p=it(o,m.onViewportChange),g=y.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(Ec.Slot,{scope:r,children:u.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...d,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...d.style},onScroll:Fe(d.onScroll,x=>{const b=x.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:E}=h;if(E?.current&&w){const A=Math.abs(g.current-b.scrollTop);if(A>0){const R=window.innerHeight-Xt*2,S=parseFloat(w.style.minHeight),C=parseFloat(w.style.height),k=Math.max(S,C);if(k0?V:0,w.style.justifyContent="flex-end")}}}g.current=b.scrollTop})})})]})});ig.displayName=Su;var rg="SelectGroup",[bS,wS]=zs(rg),SS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s,d=Ru();return u.jsx(bS,{scope:r,id:d,children:u.jsx(Ze.div,{role:"group","aria-labelledby":d,...i,ref:o})})});SS.displayName=rg;var ug="SelectLabel",jS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s,d=wS(ug,r);return u.jsx(Ze.div,{id:d.id,...i,ref:o})});jS.displayName=ug;var gc="SelectItem",[NS,dg]=zs(gc),fg=y.forwardRef((s,o)=>{const{__scopeSelect:r,value:i,disabled:d=!1,textValue:m,...h}=s,p=la(gc,r),g=oa(gc,r),x=p.value===i,[b,w]=y.useState(m??""),[E,A]=y.useState(!1),R=it(o,z=>g.itemRefCallback?.(z,i,d)),S=Ru(),C=y.useRef("touch"),k=()=>{d||(p.onValueChange(i),p.onOpenChange(!1))};if(i==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(NS,{scope:r,value:i,disabled:d,textId:S,isSelected:x,onItemTextChange:y.useCallback(z=>{w(L=>L||(z?.textContent??"").trim())},[]),children:u.jsx(Ec.ItemSlot,{scope:r,value:i,disabled:d,textValue:b,children:u.jsx(Ze.div,{role:"option","aria-labelledby":S,"data-highlighted":E?"":void 0,"aria-selected":x&&E,"data-state":x?"checked":"unchecked","aria-disabled":d||void 0,"data-disabled":d?"":void 0,tabIndex:d?void 0:-1,...h,ref:R,onFocus:Fe(h.onFocus,()=>A(!0)),onBlur:Fe(h.onBlur,()=>A(!1)),onClick:Fe(h.onClick,()=>{C.current!=="mouse"&&k()}),onPointerUp:Fe(h.onPointerUp,()=>{C.current==="mouse"&&k()}),onPointerDown:Fe(h.onPointerDown,z=>{C.current=z.pointerType}),onPointerMove:Fe(h.onPointerMove,z=>{C.current=z.pointerType,d?g.onItemLeave?.():C.current==="mouse"&&z.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Fe(h.onPointerLeave,z=>{z.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:Fe(h.onKeyDown,z=>{g.searchRef?.current!==""&&z.key===" "||(iS.includes(z.key)&&k(),z.key===" "&&z.preventDefault())})})})})});fg.displayName=gc;var zl="SelectItemText",mg=y.forwardRef((s,o)=>{const{__scopeSelect:r,className:i,style:d,...m}=s,h=la(zl,r),p=oa(zl,r),g=dg(zl,r),x=fS(zl,r),[b,w]=y.useState(null),E=it(o,k=>w(k),g.onItemTextChange,k=>p.itemTextRefCallback?.(k,g.value,g.disabled)),A=b?.textContent,R=y.useMemo(()=>u.jsx("option",{value:g.value,disabled:g.disabled,children:A},g.value),[g.disabled,g.value,A]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=x;return bt(()=>(S(R),()=>C(R)),[S,C,R]),u.jsxs(u.Fragment,{children:[u.jsx(Ze.span,{id:g.textId,...m,ref:E}),g.isSelected&&h.valueNode&&!h.valueNodeHasChildren?kl.createPortal(m.children,h.valueNode):null]})});mg.displayName=zl;var pg="SelectItemIndicator",hg=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s;return dg(pg,r).isSelected?u.jsx(Ze.span,{"aria-hidden":!0,...i,ref:o}):null});hg.displayName=pg;var ju="SelectScrollUpButton",xg=y.forwardRef((s,o)=>{const r=oa(ju,s.__scopeSelect),i=Vu(ju,s.__scopeSelect),[d,m]=y.useState(!1),h=it(o,i.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const x=g.scrollTop>0;m(x)};const g=r.viewport;return p(),g.addEventListener("scroll",p),()=>g.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),d?u.jsx(vg,{...s,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=r;p&&g&&(p.scrollTop=p.scrollTop-g.offsetHeight)}}):null});xg.displayName=ju;var Nu="SelectScrollDownButton",gg=y.forwardRef((s,o)=>{const r=oa(Nu,s.__scopeSelect),i=Vu(Nu,s.__scopeSelect),[d,m]=y.useState(!1),h=it(o,i.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const x=g.scrollHeight-g.clientHeight,b=Math.ceil(g.scrollTop)g.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),d?u.jsx(vg,{...s,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=r;p&&g&&(p.scrollTop=p.scrollTop+g.offsetHeight)}}):null});gg.displayName=Nu;var vg=y.forwardRef((s,o)=>{const{__scopeSelect:r,onAutoScroll:i,...d}=s,m=oa("SelectScrollButton",r),h=y.useRef(null),p=Cc(r),g=y.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return y.useEffect(()=>()=>g(),[g]),bt(()=>{p().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Ze.div,{"aria-hidden":!0,...d,ref:o,style:{flexShrink:0,...d.style},onPointerDown:Fe(d.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:Fe(d.onPointerMove,()=>{m.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:Fe(d.onPointerLeave,()=>{g()})})}),ES="SelectSeparator",CS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s;return u.jsx(Ze.div,{"aria-hidden":!0,...i,ref:o})});CS.displayName=ES;var Eu="SelectArrow",AS=y.forwardRef((s,o)=>{const{__scopeSelect:r,...i}=s,d=Ac(r),m=la(Eu,r),h=oa(Eu,r);return m.open&&h.position==="popper"?u.jsx(cw,{...d,...i,ref:o}):null});AS.displayName=Eu;var MS="SelectBubbleInput",yg=y.forwardRef(({__scopeSelect:s,value:o,...r},i)=>{const d=y.useRef(null),m=it(i,d),h=vw(o);return y.useEffect(()=>{const p=d.current;if(!p)return;const g=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(g,"value").set;if(h!==o&&b){const w=new Event("change",{bubbles:!0});b.call(p,o),p.dispatchEvent(w)}},[h,o]),u.jsx(Ze.select,{...r,style:{...Vx,...r.style},ref:m,defaultValue:o})});yg.displayName=MS;function bg(s){return s===""||s===void 0}function wg(s){const o=_a(s),r=y.useRef(""),i=y.useRef(0),d=y.useCallback(h=>{const p=r.current+h;o(p),(function g(x){r.current=x,window.clearTimeout(i.current),x!==""&&(i.current=window.setTimeout(()=>g(""),1e3))})(p)},[o]),m=y.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,d,m]}function Sg(s,o,r){const d=o.length>1&&Array.from(o).every(x=>x===o[0])?o[0]:o,m=r?s.indexOf(r):-1;let h=TS(s,Math.max(m,0));d.length===1&&(h=h.filter(x=>x!==r));const g=h.find(x=>x.textValue.toLowerCase().startsWith(d.toLowerCase()));return g!==r?g:void 0}function TS(s,o){return s.map((r,i)=>s[(o+i)%s.length])}var zS=$x,_S=Ix,RS=tg,DS=ng,OS=ag,kS=sg,HS=ig,US=fg,LS=mg,BS=hg,PS=xg,VS=gg;function jg(s){var o,r,i="";if(typeof s=="string"||typeof s=="number")i+=s;else if(typeof s=="object")if(Array.isArray(s)){var d=s.length;for(o=0;o{const r=new Array(s.length+o.length);for(let i=0;i({classGroupId:s,validator:o}),Ng=(s=new Map,o=null,r)=>({nextPart:s,validators:o,classGroupId:r}),vc="-",Lh=[],GS="arbitrary..",XS=s=>{const o=QS(s),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=s;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return ZS(h);const p=h.split(vc),g=p[0]===""&&p.length>1?1:0;return Eg(p,g,o)},getConflictingClassGroupIds:(h,p)=>{if(p){const g=i[h],x=r[h];return g?x?YS(x,g):g:x||Lh}return r[h]||Lh}}},Eg=(s,o,r)=>{if(s.length-o===0)return r.classGroupId;const d=s[o],m=r.nextPart.get(d);if(m){const x=Eg(s,o+1,m);if(x)return x}const h=r.validators;if(h===null)return;const p=o===0?s.join(vc):s.slice(o).join(vc),g=h.length;for(let x=0;xs.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=s.slice(1,-1),r=o.indexOf(":"),i=o.slice(0,r);return i?GS+i:void 0})(),QS=s=>{const{theme:o,classGroups:r}=s;return KS(r,o)},KS=(s,o)=>{const r=Ng();for(const i in s){const d=s[i];qu(d,r,i,o)}return r},qu=(s,o,r,i)=>{const d=s.length;for(let m=0;m{if(typeof s=="string"){$S(s,o,r);return}if(typeof s=="function"){FS(s,o,r,i);return}IS(s,o,r,i)},$S=(s,o,r)=>{const i=s===""?o:Cg(o,s);i.classGroupId=r},FS=(s,o,r,i)=>{if(e5(s)){qu(s(i),o,r,i);return}o.validators===null&&(o.validators=[]),o.validators.push(WS(r,s))},IS=(s,o,r,i)=>{const d=Object.entries(s),m=d.length;for(let h=0;h{let r=s;const i=o.split(vc),d=i.length;for(let m=0;m"isThemeGetter"in s&&s.isThemeGetter===!0,t5=s=>{if(s<1)return{get:()=>{},set:()=>{}};let o=0,r=Object.create(null),i=Object.create(null);const d=(m,h)=>{r[m]=h,o++,o>s&&(o=0,i=r,r=Object.create(null))};return{get(m){let h=r[m];if(h!==void 0)return h;if((h=i[m])!==void 0)return d(m,h),h},set(m,h){m in r?r[m]=h:d(m,h)}}},Cu="!",Bh=":",n5=[],Ph=(s,o,r,i,d)=>({modifiers:s,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:i,isExternal:d}),a5=s=>{const{prefix:o,experimentalParseClassName:r}=s;let i=d=>{const m=[];let h=0,p=0,g=0,x;const b=d.length;for(let S=0;Sg?x-g:void 0;return Ph(m,A,E,R)};if(o){const d=o+Bh,m=i;i=h=>h.startsWith(d)?m(h.slice(d.length)):Ph(n5,!1,h,void 0,!0)}if(r){const d=i;i=m=>r({className:m,parseClassName:d})}return i},s5=s=>{const o=new Map;return s.orderSensitiveModifiers.forEach((r,i)=>{o.set(r,1e6+i)}),r=>{const i=[];let d=[];for(let m=0;m0&&(d.sort(),i.push(...d),d=[]),i.push(h)):d.push(h)}return d.length>0&&(d.sort(),i.push(...d)),i}},l5=s=>({cache:t5(s.cacheSize),parseClassName:a5(s),sortModifiers:s5(s),...XS(s)}),o5=/\s+/,c5=(s,o)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:d,sortModifiers:m}=o,h=[],p=s.trim().split(o5);let g="";for(let x=p.length-1;x>=0;x-=1){const b=p[x],{isExternal:w,modifiers:E,hasImportantModifier:A,baseClassName:R,maybePostfixModifierPosition:S}=r(b);if(w){g=b+(g.length>0?" "+g:g);continue}let C=!!S,k=i(C?R.substring(0,S):R);if(!k){if(!C){g=b+(g.length>0?" "+g:g);continue}if(k=i(R),!k){g=b+(g.length>0?" "+g:g);continue}C=!1}const z=E.length===0?"":E.length===1?E[0]:m(E).join(":"),L=A?z+Cu:z,V=L+k;if(h.indexOf(V)>-1)continue;h.push(V);const Q=d(k,C);for(let I=0;I0?" "+g:g)}return g},i5=(...s)=>{let o=0,r,i,d="";for(;o{if(typeof s=="string")return s;let o,r="";for(let i=0;i{let r,i,d,m;const h=g=>{const x=o.reduce((b,w)=>w(b),s());return r=l5(x),i=r.cache.get,d=r.cache.set,m=p,p(g)},p=g=>{const x=i(g);if(x)return x;const b=c5(g,r);return d(g,b),b};return m=h,(...g)=>m(i5(...g))},u5=[],et=s=>{const o=r=>r[s]||u5;return o.isThemeGetter=!0,o},Mg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,d5=/^\d+\/\d+$/,f5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m5=/\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$/,p5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,h5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ss=s=>d5.test(s),je=s=>!!s&&!Number.isNaN(Number(s)),Fn=s=>!!s&&Number.isInteger(Number(s)),ru=s=>s.endsWith("%")&&je(s.slice(0,-1)),Nn=s=>f5.test(s),g5=()=>!0,v5=s=>m5.test(s)&&!p5.test(s),zg=()=>!1,y5=s=>h5.test(s),b5=s=>x5.test(s),w5=s=>!ce(s)&&!ie(s),S5=s=>_s(s,Dg,zg),ce=s=>Mg.test(s),Ma=s=>_s(s,Og,v5),uu=s=>_s(s,A5,je),Vh=s=>_s(s,_g,zg),j5=s=>_s(s,Rg,b5),oc=s=>_s(s,kg,y5),ie=s=>Tg.test(s),Tl=s=>Rs(s,Og),N5=s=>Rs(s,M5),qh=s=>Rs(s,_g),E5=s=>Rs(s,Dg),C5=s=>Rs(s,Rg),cc=s=>Rs(s,kg,!0),_s=(s,o,r)=>{const i=Mg.exec(s);return i?i[1]?o(i[1]):r(i[2]):!1},Rs=(s,o,r=!1)=>{const i=Tg.exec(s);return i?i[1]?o(i[1]):r:!1},_g=s=>s==="position"||s==="percentage",Rg=s=>s==="image"||s==="url",Dg=s=>s==="length"||s==="size"||s==="bg-size",Og=s=>s==="length",A5=s=>s==="number",M5=s=>s==="family-name",kg=s=>s==="shadow",T5=()=>{const s=et("color"),o=et("font"),r=et("text"),i=et("font-weight"),d=et("tracking"),m=et("leading"),h=et("breakpoint"),p=et("container"),g=et("spacing"),x=et("radius"),b=et("shadow"),w=et("inset-shadow"),E=et("text-shadow"),A=et("drop-shadow"),R=et("blur"),S=et("perspective"),C=et("aspect"),k=et("ease"),z=et("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...V(),ie,ce],I=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],J=()=>[ie,ce,g],ae=()=>[Ss,"full","auto",...J()],ue=()=>[Fn,"none","subgrid",ie,ce],fe=()=>["auto",{span:["full",Fn,ie,ce]},Fn,ie,ce],te=()=>[Fn,"auto",ie,ce],ge=()=>["auto","min","max","fr",ie,ce],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...J()],X=()=>[Ss,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...J()],P=()=>[s,ie,ce],se=()=>[...V(),qh,Vh,{position:[ie,ce]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",E5,S5,{size:[ie,ce]}],q=()=>[ru,Tl,Ma],F=()=>["","none","full",x,ie,ce],ee=()=>["",je,Tl,Ma],le=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[je,ru,qh,Vh],_=()=>["","none",R,ie,ce],ne=()=>["none",je,ie,ce],he=()=>["none",je,ie,ce],ye=()=>[je,ie,ce],ze=()=>[Ss,"full",...J()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nn],breakpoint:[Nn],color:[g5],container:[Nn],"drop-shadow":[Nn],ease:["in","out","in-out"],font:[w5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nn],shadow:[Nn],spacing:["px",je],text:[Nn],"text-shadow":[Nn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ss,ce,ie,C]}],container:["container"],columns:[{columns:[je,ce,ie,p]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Q()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Fn,"auto",ie,ce]}],basis:[{basis:[Ss,"full","auto",p,...J()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Ss,"auto","initial","none",ce]}],grow:[{grow:["",je,ie,ce]}],shrink:[{shrink:["",je,ie,ce]}],order:[{order:[Fn,"first","last","none",ie,ce]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:J()}],"gap-x":[{"gap-x":J()}],"gap-y":[{"gap-y":J()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:J()}],px:[{px:J()}],py:[{py:J()}],ps:[{ps:J()}],pe:[{pe:J()}],pt:[{pt:J()}],pr:[{pr:J()}],pb:[{pb:J()}],pl:[{pl:J()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":J()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":J()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[p,"screen",...X()]}],"min-w":[{"min-w":[p,"screen","none",...X()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[h]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,Tl,Ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ie,uu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ru,ce]}],"font-family":[{font:[N5,ce,o]}],"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:[d,ie,ce]}],"line-clamp":[{"line-clamp":[je,"none",ie,uu]}],leading:[{leading:[m,...J()]}],"list-image":[{"list-image":["none",ie,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ie,Ma]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[je,"auto",ie,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ce]}],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",ie,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fn,ie,ce],radial:["",ie,ce],conic:[Fn,ie,ce]},C5,j5]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ie,ce]}],"outline-w":[{outline:["",je,Tl,Ma]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",b,cc,oc]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",w,cc,oc]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[je,Ma]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",E,cc,oc]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[je,ie,ce]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[ie,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ce]}],filter:[{filter:["","none",ie,ce]}],blur:[{blur:_()}],brightness:[{brightness:[je,ie,ce]}],contrast:[{contrast:[je,ie,ce]}],"drop-shadow":[{"drop-shadow":["","none",A,cc,oc]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",je,ie,ce]}],"hue-rotate":[{"hue-rotate":[je,ie,ce]}],invert:[{invert:["",je,ie,ce]}],saturate:[{saturate:[je,ie,ce]}],sepia:[{sepia:["",je,ie,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ce]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[je,ie,ce]}],"backdrop-contrast":[{"backdrop-contrast":[je,ie,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ie,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ie,ce]}],"backdrop-invert":[{"backdrop-invert":["",je,ie,ce]}],"backdrop-opacity":[{"backdrop-opacity":[je,ie,ce]}],"backdrop-saturate":[{"backdrop-saturate":[je,ie,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ie,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":J()}],"border-spacing-x":[{"border-spacing-x":J()}],"border-spacing-y":[{"border-spacing-y":J()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ie,ce]}],ease:[{ease:["linear","initial",k,ie,ce]}],delay:[{delay:[je,ie,ce]}],animate:[{animate:["none",z,ie,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ie,ce]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[ie,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",ie,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"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",ie,ce]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[je,Tl,Ma,uu]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},z5=r5(T5);function As(...s){return z5(qS(s))}function Hg({...s}){return u.jsx(zS,{"code-path":"src\\components\\ui\\select.tsx:10:10","data-slot":"select",...s})}function Ug({...s}){return u.jsx(RS,{"code-path":"src\\components\\ui\\select.tsx:22:10","data-slot":"select-value",...s})}function Lg({className:s,size:o="default",children:r,...i}){return u.jsxs(_S,{"code-path":"src\\components\\ui\\select.tsx:34:5","data-slot":"select-trigger","data-size":o,className:As("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...i,children:[r,u.jsx(DS,{"code-path":"src\\components\\ui\\select.tsx:44:7",asChild:!0,children:u.jsx($h,{"code-path":"src\\components\\ui\\select.tsx:45:9",className:"size-4 opacity-50"})})]})}function Bg({className:s,children:o,position:r="item-aligned",align:i="center",...d}){return u.jsx(OS,{"code-path":"src\\components\\ui\\select.tsx:59:5",children:u.jsxs(kS,{"code-path":"src\\components\\ui\\select.tsx:60:7","data-slot":"select-content",className:As("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:r,align:i,...d,children:[u.jsx(_5,{"code-path":"src\\components\\ui\\select.tsx:72:9"}),u.jsx(HS,{"code-path":"src\\components\\ui\\select.tsx:73:9",className:As("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),u.jsx(R5,{"code-path":"src\\components\\ui\\select.tsx:82:9"})]})})}function za({className:s,children:o,...r}){return u.jsxs(US,{"code-path":"src\\components\\ui\\select.tsx:107:5","data-slot":"select-item",className:As("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",s),...r,children:[u.jsx("span",{"code-path":"src\\components\\ui\\select.tsx:115:7","data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(BS,{"code-path":"src\\components\\ui\\select.tsx:119:9",children:u.jsx(P1,{"code-path":"src\\components\\ui\\select.tsx:120:11",className:"size-4"})})}),u.jsx(LS,{"code-path":"src\\components\\ui\\select.tsx:123:7",children:o})]})}function _5({className:s,...o}){return u.jsx(PS,{"code-path":"src\\components\\ui\\select.tsx:146:5","data-slot":"select-scroll-up-button",className:As("flex cursor-default items-center justify-center py-1",s),...o,children:u.jsx(Y1,{"code-path":"src\\components\\ui\\select.tsx:154:7",className:"size-4"})})}function R5({className:s,...o}){return u.jsx(VS,{"code-path":"src\\components\\ui\\select.tsx:164:5","data-slot":"select-scroll-down-button",className:As("flex cursor-default items-center justify-center py-1",s),...o,children:u.jsx($h,{"code-path":"src\\components\\ui\\select.tsx:172:7",className:"size-4"})})}const Yh=80,D5="/mnt/nas/projects",O5=()=>{const{projects:s,addProject:o,renameProject:r,duplicateProject:i,moveProjectToTrash:d,setSelectedProject:m,setStage:h}=sa(),[p,g]=y.useState(0),[x,b]=y.useState(!1),[w,E]=y.useState(0),[A,R]=y.useState(!1),[S,C]=y.useState(!1),[k,z]=y.useState(null),[L,V]=y.useState(null),[Q,I]=y.useState(""),[W,J]=y.useState(null),ae=y.useRef(0),ue=y.useRef(!1),fe=y.useRef(null);y.useEffect(()=>{p>s.length-1&&g(Math.max(0,s.length-1))},[p,s.length]),y.useEffect(()=>{const M=_=>{fe.current&&(fe.current.contains(_.target)||z(null))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);const te=(M,_)=>{x||ue.current||A||S||L||W||(g(_),R(!0),setTimeout(()=>{m(M),h("workspace")},600))},ge=M=>{S||L||W||(b(!0),E(0),ae.current=M,ue.current=!1)},re=M=>{if(!x)return;const _=M-ae.current;Math.abs(_)>6&&(ue.current=!0);const ne=Math.max(-220,Math.min(220,_));E(ne)},me=()=>{x&&(w>Yh&&p>0?g(p-1):w<-Yh&&p{ue.current=!1},0))},D=M=>{A||ge(M.clientX)},X=M=>{re(M.clientX)},P=M=>{A||M.touches.length===0||ge(M.touches[0].clientX)},se=M=>{M.touches.length!==0&&re(M.touches[0].clientX)},pe=()=>{C(!0)},N=()=>{C(!1)},q=M=>{V(M.id),I(M.name),z(null)},F=()=>{L&&(r(L,Q),V(null),I(""))},ee=()=>{V(null),I("")},le=()=>{W&&(d(W),J(null),z(null))},K=M=>{const _={...M,id:Date.now().toString(),thumbnail:"/projects/new.jpg",lastModified:new Date};o(_),g(0),C(!1)};return y.useEffect(()=>{const M=_=>{if(!A){if(S){_.key==="Escape"&&N();return}if(L||W){_.key==="Escape"&&(V(null),J(null));return}_.key==="ArrowLeft"&&p>0?g(p-1):_.key==="ArrowRight"&&pwindow.removeEventListener("keydown",M)},[p,s,A,S,L,W]),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:194:5",className:`fixed inset-0 flex flex-col items-center justify-center z-40 transition-all duration-500 ${A?"opacity-0 scale-105":"opacity-100 scale-100"}`,children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:199:7",className:"absolute top-8 left-8",children:u.jsx("h1",{"code-path":"src\\sections\\ProjectNexus.tsx:200:9",className:"text-xs font-semibold tracking-[0.2em] uppercase",style:{color:"var(--astral-text-muted)"},children:"Astral Suite"})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:208:7",className:"absolute top-6 right-8 z-20",children:u.jsx(fx,{"code-path":"src\\sections\\ProjectNexus.tsx:209:9"})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:212:7",className:"mb-10",children:u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:213:9",className:"text-xs font-semibold tracking-[0.15em] uppercase",style:{color:"var(--astral-violet)"},children:"Project Nexus"})}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:221:7",className:"w-full max-w-[1520px] px-8",children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:222:9",className:"py-6 overflow-visible select-none",onMouseDown:D,onMouseMove:X,onMouseUp:me,onMouseLeave:me,onTouchStart:P,onTouchMove:se,onTouchEnd:me,style:{cursor:x?"grabbing":"grab"},children:u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:233:11",className:`flex gap-6 ${x?"transition-none":"transition-transform duration-500 ease-out"}`,style:{transform:`translateX(calc(50% - ${p*452+210}px + ${w}px))`},children:s.map((M,_)=>u.jsx(k5,{"code-path":"src\\sections\\ProjectNexus.tsx:240:15",project:M,isActive:_===p,onClick:()=>te(M,_),isMenuOpen:k===M.id,menuRef:k===M.id?fe:void 0,onToggleMenu:()=>z(ne=>ne===M.id?null:M.id),onRename:()=>q(M),onDuplicate:()=>{i(M.id),z(null)},onDelete:()=>{J(M.id),z(null)}},M.id))})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:262:9",className:"mt-1 flex justify-center",children:u.jsxs("button",{"code-path":"src\\sections\\ProjectNexus.tsx:263:11",type:"button",onClick:pe,className:"glass-panel px-5 py-3 rounded-xl flex items-center gap-3 hover:bg-white/10 transition-colors",children:[u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:268:13",className:"w-7 h-7 rounded-full bg-[var(--astral-violet)] flex items-center justify-center",children:u.jsx(ox,{"code-path":"src\\sections\\ProjectNexus.tsx:269:15",className:"w-4 h-4 text-white"})}),u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:271:13",className:"text-sm font-medium text-white tracking-wide",children:"New Project"})]})})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:276:7",className:"flex gap-2 mt-8",children:s.map((M,_)=>u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:278:11",onClick:()=>g(_),className:`w-2 h-2 rounded-full transition-all duration-300 ${_===p?"bg-[var(--astral-violet)] w-6":"bg-white/20 hover:bg-white/40"}`},M.id))}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:288:7",className:"absolute bottom-8 text-xs tracking-wide",style:{color:"rgba(161, 161, 170, 0.4)"},children:"Use Left/Right arrows or drag to navigate � Enter to select"}),S&&u.jsx(H5,{"code-path":"src\\sections\\ProjectNexus.tsx:296:9",onClose:N,onCreate:K}),L&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:300:9",className:"fixed inset-0 z-[90] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:301:11",type:"button",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:ee,"aria-label":"Close rename project window"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:307:11",className:"relative w-[480px] rounded-[16px] p-5",style:{background:"rgba(12, 12, 18, 0.9)",backdropFilter:"blur(18px) saturate(125%)",border:"1px solid var(--accent-edge)",boxShadow:"0 20px 60px rgba(0,0,0,0.55), 0 0 30px var(--accent-glow-medium)"},children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:316:13",className:"text-sm font-semibold text-white mb-1",children:"Rename Project"}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:317:13",className:"text-xs text-white/60 mb-3",children:"Update project display name."}),u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:318:13",type:"text",value:Q,onChange:M=>I(M.target.value),className:"w-full glass-panel rounded-lg px-3 py-2.5 text-sm text-white bg-transparent outline-none",autoFocus:!0,onKeyDown:M=>{M.key==="Enter"&&F(),M.key==="Escape"&&ee()}}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:329:13",className:"mt-4 flex items-center justify-end gap-2",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:330:15",type:"button",onClick:ee,className:"px-4 py-2 rounded-lg border border-white/15 text-sm text-white/70 hover:bg-white/5 transition-colors",children:"Cancel"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:337:15",type:"button",onClick:F,className:"px-4 py-2 rounded-lg text-sm font-medium text-white bg-[var(--astral-violet)] hover:brightness-110 transition-colors",children:"Save"})]})]})]}),W&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:350:9",className:"fixed inset-0 z-[90] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:351:11",type:"button",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:()=>J(null),"aria-label":"Close delete project confirmation"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:357:11",className:"relative w-[520px] rounded-[16px] p-5",style:{background:"rgba(12, 12, 18, 0.9)",backdropFilter:"blur(18px) saturate(125%)",border:"1px solid rgba(239, 68, 68, 0.45)",boxShadow:"0 20px 60px rgba(0,0,0,0.55), 0 0 24px rgba(239, 68, 68, 0.28)"},children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:366:13",className:"text-sm font-semibold text-white mb-1",children:"Move Project To Trash"}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:367:13",className:"text-xs text-white/70 mb-4",children:"This project will stay in Trash for 30 days and then be permanently deleted."}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:370:13",className:"flex items-center justify-end gap-2",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:371:15",type:"button",onClick:()=>J(null),className:"px-4 py-2 rounded-lg border border-white/15 text-sm text-white/70 hover:bg-white/5 transition-colors",children:"Cancel"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:378:15",type:"button",onClick:le,className:"px-4 py-2 rounded-lg text-sm font-medium text-white bg-red-500/85 hover:bg-red-500 transition-colors",children:"Move To Trash"})]})]})]})]})},k5=({project:s,isActive:o,onClick:r,isMenuOpen:i,menuRef:d,onToggleMenu:m,onRename:h,onDuplicate:p,onDelete:g})=>u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:417:5",onClick:r,className:` relative flex-shrink-0 w-[420px] h-[244px] rounded-[18px] overflow-hidden transition-all duration-500 ease-out cursor-pointer ${o?"scale-[1.03] opacity-100":"scale-[0.96] opacity-60 blur-[2px]"} `,style:{boxShadow:o?"0 18px 60px rgba(0, 0, 0, 0.55), 0 0 46px var(--accent-glow-strong)":"0 8px 30px rgba(0, 0, 0, 0.3)"},children:[u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:430:7",className:"absolute inset-0 glass-panel-strong"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:432:7",className:"absolute top-4 left-4 z-20",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:433:9",type:"button",onClick:x=>{x.stopPropagation(),m()},className:"w-8 h-8 rounded-full flex items-center justify-center text-white/75 hover:text-white transition-colors",style:{background:"rgba(0, 0, 0, 0.22)",border:"1px solid rgba(255,255,255,0.18)"},"aria-label":`Project actions for ${s.name}`,children:u.jsx(nx,{"code-path":"src\\sections\\ProjectNexus.tsx:446:11",className:"w-4 h-4"})}),i&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:450:11",ref:d,className:"mt-2 w-[210px] rounded-xl p-1.5",style:{background:"rgba(10, 10, 16, 0.95)",backdropFilter:"blur(18px) saturate(135%)",border:"1px solid var(--accent-edge)",boxShadow:"0 16px 40px rgba(0,0,0,0.45), 0 0 24px var(--accent-glow-soft)"},onClick:x=>x.stopPropagation(),children:[u.jsx(du,{"code-path":"src\\sections\\ProjectNexus.tsx:461:13",icon:u.jsx(Sy,{"code-path":"src\\sections\\ProjectNexus.tsx:461:38",className:"w-3.5 h-3.5"}),label:"Rename Project",onClick:h}),u.jsx(du,{"code-path":"src\\sections\\ProjectNexus.tsx:462:13",icon:u.jsx(ex,{"code-path":"src\\sections\\ProjectNexus.tsx:462:38",className:"w-3.5 h-3.5"}),label:"Duplicate Project",onClick:p}),u.jsx(du,{"code-path":"src\\sections\\ProjectNexus.tsx:463:13",icon:u.jsx(rx,{"code-path":"src\\sections\\ProjectNexus.tsx:464:21",className:"w-3.5 h-3.5"}),label:"Move To Trash (30 Days)",onClick:g,danger:!0})]})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:473:7",className:"absolute inset-0 opacity-40",style:{background:` linear-gradient(135deg, rgba(var(--primary-accent-rgb), 0.36) 0%, rgba(var(--primary-accent-rgb), 0.24) 50%, rgba(var(--primary-accent-rgb), 0.17) 100% ) `}}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:486:7",className:"absolute inset-0 opacity-20",style:{backgroundImage:` radial-gradient(circle at 20% 30%, rgba(var(--primary-accent-rgb), 0.3) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(var(--primary-accent-rgb), 0.2) 0%, transparent 35%) `}}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:496:7",className:"absolute inset-0 p-6 flex flex-col justify-end",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:497:9",className:"text-xs font-medium tracking-wider uppercase mb-2",style:{color:"var(--astral-violet)"},children:[s.type," � ",s.scenes," scenes"]}),u.jsx("h3",{"code-path":"src\\sections\\ProjectNexus.tsx:503:9",className:"text-xl font-semibold text-white",children:s.name}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:504:9",className:"text-xs mt-2",style:{color:"var(--astral-text-muted)"},children:["Last modified ",s.lastModified.toLocaleDateString()]}),(s.videoModel||s.imageModel)&&u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:508:11",className:"mt-2 text-[10px] text-white/55 tracking-wide uppercase",children:[s.videoModel?`Video: ${s.videoModel}`:"",s.videoModel&&s.imageModel?" � ":"",s.imageModel?`Image: ${s.imageModel}`:""]})]}),o&&u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:516:20",className:"absolute top-4 right-4 w-2 h-2 rounded-full status-active"}),o&&u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:519:9",className:"absolute inset-0 rounded-[18px] pointer-events-none",style:{border:"1px solid var(--accent-edge)",boxShadow:"inset 0 0 24px var(--accent-glow-soft)"}})]}),du=({icon:s,label:o,onClick:r,danger:i=!1})=>u.jsxs("button",{"code-path":"src\\sections\\ProjectNexus.tsx:537:3",type:"button",onClick:r,className:`w-full px-2.5 py-2 rounded-lg text-left text-xs flex items-center gap-2 transition-colors ${i?"text-red-300 hover:bg-red-500/15":"text-white/85 hover:bg-white/10"}`,children:[u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:544:5",className:"opacity-85",children:s}),u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:545:5",children:o})]}),H5=({onClose:s,onCreate:o})=>{const[r,i]=y.useState(""),[d,m]=y.useState("Campaign"),[h,p]=y.useState(8),[g,x]=y.useState(D5),[b,w]=y.useState("LTX-2"),[E,A]=y.useState("Flux"),R=S=>{S.preventDefault(),r.trim()&&o({name:r.trim(),type:d,scenes:Math.max(1,h),storagePath:g,videoModel:b,imageModel:E})};return u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:577:5",className:"fixed inset-0 z-[70] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:578:7",type:"button",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:s,"aria-label":"Close create project window"}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:585:7",className:"relative w-[760px] rounded-[18px] overflow-hidden",style:{background:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(20px) saturate(120%)",border:"1px solid var(--accent-edge)",boxShadow:"0 18px 60px rgba(0, 0, 0, 0.55), 0 0 40px var(--accent-glow-medium)"},children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:594:9",className:"h-11 flex items-center px-4 border-b border-white/10",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:595:11",className:"flex items-center gap-2",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:596:13",onClick:s,className:"traffic-light traffic-light-close","aria-label":"Close"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:597:13",onClick:s,className:"traffic-light traffic-light-minimize","aria-label":"Minimize"}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:598:13",className:"traffic-light traffic-light-maximize"})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:600:11",className:"flex-1 text-center",children:u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:601:13",className:"text-xs font-medium tracking-wide",style:{color:"var(--astral-text-muted)"},children:"New Project"})}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:605:11",className:"w-[52px]"})]}),u.jsxs("form",{"code-path":"src\\sections\\ProjectNexus.tsx:608:9",onSubmit:R,className:"p-6 space-y-5",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:609:11",className:"grid grid-cols-2 gap-4",children:[u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:610:13",label:"Project Name",icon:u.jsx(iy,{"code-path":"src\\sections\\ProjectNexus.tsx:610:47",className:"w-4 h-4"}),children:u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:611:15",type:"text",value:r,onChange:S=>i(S.target.value),placeholder:"Summer Watch Promo",className:"w-full bg-transparent text-sm text-white placeholder-white/35 outline-none",autoFocus:!0})}),u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:621:13",label:"Project Type",children:u.jsxs(Hg,{"code-path":"src\\sections\\ProjectNexus.tsx:622:15",value:d,onValueChange:S=>m(S),children:[u.jsx(Lg,{"code-path":"src\\sections\\ProjectNexus.tsx:623:17",className:"w-full h-auto border-0 bg-transparent px-0 py-0 text-sm text-white shadow-none focus-visible:ring-0 focus-visible:border-0",children:u.jsx(Ug,{"code-path":"src\\sections\\ProjectNexus.tsx:624:19",placeholder:"Select project type"})}),u.jsxs(Bg,{"code-path":"src\\sections\\ProjectNexus.tsx:626:17",className:"rounded-xl border-white/15 text-white",style:{background:"rgba(14, 14, 20, 0.96)",backdropFilter:"blur(18px) saturate(130%)"},children:[u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:633:19",value:"Campaign",className:"text-white focus:bg-white/10 focus:text-white",children:"Campaign"}),u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:634:19",value:"Product",className:"text-white focus:bg-white/10 focus:text-white",children:"Product"}),u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:635:19",value:"Automotive",className:"text-white focus:bg-white/10 focus:text-white",children:"Automotive"}),u.jsx(za,{"code-path":"src\\sections\\ProjectNexus.tsx:636:19",value:"Identity",className:"text-white focus:bg-white/10 focus:text-white",children:"Identity"})]})]})})]}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:642:11",className:"grid grid-cols-2 gap-4",children:[u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:643:13",label:"NAS Storage Path",icon:u.jsx(Mu,{"code-path":"src\\sections\\ProjectNexus.tsx:643:51",className:"w-4 h-4"}),children:u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:644:15",type:"text",value:g,onChange:S=>x(S.target.value),className:"w-full bg-transparent text-sm text-white outline-none"})}),u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:652:13",label:"Scene Count",children:u.jsx("input",{"code-path":"src\\sections\\ProjectNexus.tsx:653:15",type:"number",min:1,value:h,onChange:S=>p(Number(S.target.value)||1),className:"w-full bg-transparent text-sm text-white outline-none"})})]}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:663:11",className:"grid grid-cols-2 gap-4",children:[u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:664:13",label:"Video Model",icon:u.jsx(Ih,{"code-path":"src\\sections\\ProjectNexus.tsx:664:46",className:"w-4 h-4"}),children:u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:665:15",className:"flex gap-2",children:[u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:666:17",active:b==="LTX-2",onClick:()=>w("LTX-2"),label:"LTX-2"}),u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:671:17",active:b==="Wan",onClick:()=>w("Wan"),label:"Wan"})]})}),u.jsx(js,{"code-path":"src\\sections\\ProjectNexus.tsx:679:13",label:"Image Model",icon:u.jsx(ax,{"code-path":"src\\sections\\ProjectNexus.tsx:679:46",className:"w-4 h-4"}),children:u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:680:15",className:"flex gap-2",children:[u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:681:17",active:E==="Stable Diffusion",onClick:()=>A("Stable Diffusion"),label:"Stable Diffusion"}),u.jsx(ic,{"code-path":"src\\sections\\ProjectNexus.tsx:686:17",active:E==="Flux",onClick:()=>A("Flux"),label:"Flux"})]})})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:695:11",className:"glass-panel rounded-xl p-3 text-xs text-[var(--astral-text-muted)]",children:"Project files will be mounted to NAS path and prepared for OpenClaw + ComfyUI orchestration."}),u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:699:11",className:"flex items-center justify-end gap-3 pt-1",children:[u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:700:13",type:"button",onClick:s,className:"px-4 py-2 rounded-lg border border-white/15 text-sm text-white/75 hover:bg-white/5 transition-colors",children:"Cancel"}),u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:707:13",type:"submit",className:"px-5 py-2 rounded-lg text-sm font-medium text-white bg-[var(--astral-violet)] hover:brightness-110 transition-all",children:"Create Project"})]})]})]})]})},js=({label:s,icon:o,children:r})=>u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:722:5",children:[u.jsxs("div",{"code-path":"src\\sections\\ProjectNexus.tsx:723:7",className:"text-[11px] uppercase tracking-[0.12em] mb-2 flex items-center gap-2",style:{color:"var(--astral-text-muted)"},children:[o,u.jsx("span",{"code-path":"src\\sections\\ProjectNexus.tsx:725:9",children:s})]}),u.jsx("div",{"code-path":"src\\sections\\ProjectNexus.tsx:727:7",className:"glass-panel rounded-lg px-3 py-2.5 min-h-[44px] flex items-center",children:r})]}),ic=({active:s,label:o,onClick:r})=>u.jsx("button",{"code-path":"src\\sections\\ProjectNexus.tsx:734:5",type:"button",onClick:r,className:`px-3 py-2 rounded-md text-xs font-medium transition-all ${s?"bg-[var(--astral-violet)] text-white":"bg-white/5 text-white/70 hover:bg-white/10"}`,children:o}),U5=[{id:"production_hub",name:"Production Hub",icon:Ih},{id:"asset_vault",name:"Asset Vault",icon:oy},{id:"engine_room",name:"Engine Room",icon:tx}],L5=()=>{const[s,o]=y.useState(null),{windows:r,activeWindow:i,openWindow:d,restoreWindow:m}=sa(),h=p=>{const g=r[p];g.isOpen?g.isMinimized&&m(p):d(p)};return u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:32:5",className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-[100]",children:u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:33:7",className:"glass-pill px-4 py-3 flex items-center gap-2",children:U5.map(p=>{const g=r[p.id],x=g.isOpen&&!g.isMinimized,b=i===p.id;return u.jsx(B5,{"code-path":"src\\components\\dock\\Dock.tsx:40:13",item:p,isOpen:x,isActive:b,isHovered:s===p.id,onHover:()=>o(p.id),onLeave:()=>o(null),onClick:()=>h(p.id)},p.id)})})})},B5=({item:s,isOpen:o,isActive:r,isHovered:i,onHover:d,onLeave:m,onClick:h})=>{const p=s.icon;return u.jsxs("div",{"code-path":"src\\components\\dock\\Dock.tsx:79:5",className:"relative",children:[i&&u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:82:9",className:"absolute -top-12 left-1/2 -translate-x-1/2 px-3 py-1.5 rounded-lg text-xs font-medium whitespace-nowrap animate-fade-in",style:{background:"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(12px)",border:"1px solid rgba(255, 255, 255, 0.1)"},children:s.name}),u.jsx("button",{"code-path":"src\\components\\dock\\Dock.tsx:95:7",onMouseEnter:d,onMouseLeave:m,onClick:h,className:` relative w-12 h-12 rounded-xl flex items-center justify-center transition-all duration-300 ease-out ${r?"translate-y-[-6px]":"translate-y-0"} ${i?"scale-110":"scale-100"} `,style:{background:r?"rgba(var(--primary-accent-rgb), 0.2)":"rgba(255, 255, 255, 0.05)",border:`1px solid ${r?"rgba(var(--primary-accent-rgb), 0.4)":"rgba(255, 255, 255, 0.1)"}`,boxShadow:r?"0 0 20px rgba(var(--primary-accent-rgb), 0.2)":"none"},children:u.jsx(p,{"code-path":"src\\components\\dock\\Dock.tsx:115:9",className:"w-5 h-5 transition-colors duration-300",style:{color:r?"var(--astral-violet)":"rgba(255, 255, 255, 0.8)"},strokeWidth:1.5})}),(o||r)&&u.jsx("div",{"code-path":"src\\components\\dock\\Dock.tsx:126:9",className:"absolute -bottom-1.5 left-1/2 -translate-x-1/2 w-1.5 h-1.5 rounded-full transition-all duration-300",style:{background:r?"var(--astral-violet)":"rgba(255, 255, 255, 0.4)",boxShadow:r?"0 0 8px var(--astral-violet)":"none"}})]})},Yu=({id:s,title:o,children:r,defaultPosition:i={x:100,y:60},defaultSize:d={width:900,height:600}})=>{const m=y.useRef(null),[h,p]=y.useState(!1),[g,x]=y.useState({x:0,y:0}),[b,w]=y.useState(!1),[E,A]=y.useState(null),[R,S]=y.useState({x:0,y:0,width:0,height:0,left:0,top:0}),[C,k]=y.useState(null),[z,L]=y.useState(null),{windows:V,activeWindow:Q,closeWindow:I,minimizeWindow:W,bringToFront:J,updateWindowPosition:ae,updateWindowSize:ue,setWindowMaximized:fe}=sa(),te=V[s],ge=Q===s,re=te.size.width||d.width,me=te.size.height||d.height;y.useEffect(()=>{te.position.x===0&&te.position.y===0&&ae(s,i)},[s,i,te.position,ae]);const D=y.useCallback(()=>{const N={x:8,y:8},q={width:window.innerWidth-16,height:window.innerHeight-16};ae(s,N),ue(s,q)},[s,ae,ue]),X=y.useCallback(()=>{if(J(s),!te.isMaximized){L({position:{x:te.position.x||i.x,y:te.position.y||i.y},size:{width:re,height:me}}),D(),fe(s,!0);return}z&&(ae(s,z.position),ue(s,z.size)),fe(s,!1)},[s,J,te.isMaximized,te.position.x,te.position.y,i.x,i.y,re,me,z,D,fe,ae,ue]),P=y.useCallback(N=>{if(!N.target.closest(".window-controls")&&!te.isMaximized&&(J(s),p(!0),m.current)){const q=m.current.getBoundingClientRect();x({x:N.clientX-q.left,y:N.clientY-q.top})}},[s,J,te.isMaximized]),se=y.useCallback((N,q)=>{q.preventDefault(),q.stopPropagation(),!te.isMaximized&&(J(s),w(!0),A(N),S({x:q.clientX,y:q.clientY,width:re,height:me,left:te.position.x||i.x,top:te.position.y||i.y}))},[s,J,re,me,te.position.x,te.position.y,i.x,i.y,te.isMaximized]);if(y.useEffect(()=>{const ee=K=>{if(h){const M=K.clientX-g.x,_=K.clientY-g.y,ne=window.innerWidth-re,he=window.innerHeight-me;ae(s,{x:Math.max(0,Math.min(M,ne)),y:Math.max(0,Math.min(_,he))}),K.clientY<=24?k("max"):K.clientX<=24?k("left"):K.clientX>=window.innerWidth-24?k("right"):k(null)}if(b&&E){const M=K.clientX-R.x,_=K.clientY-R.y;let ne=R.width,he=R.height,ye=R.left,ze=R.top;E.includes("e")&&(ne=Math.max(420,R.width+M)),E.includes("s")&&(he=Math.max(320,R.height+_)),E.includes("w")&&(ne=Math.max(420,R.width-M),ye=R.left+(R.width-ne)),E.includes("n")&&(he=Math.max(320,R.height-_),ze=R.top+(R.height-he)),ne=Math.min(ne,window.innerWidth-ye),he=Math.min(he,window.innerHeight-ze),ae(s,{x:Math.max(0,ye),y:Math.max(0,ze)}),ue(s,{width:ne,height:he})}},le=()=>{if(h&&C){if(C==="max")L({position:{x:te.position.x,y:te.position.y},size:{width:re,height:me}}),D(),fe(s,!0);else if(C==="left")fe(s,!1),ae(s,{x:8,y:8}),ue(s,{width:Math.floor((window.innerWidth-24)/2),height:window.innerHeight-16});else if(C==="right"){const K=Math.floor((window.innerWidth-24)/2);fe(s,!1),ae(s,{x:window.innerWidth-K-8,y:8}),ue(s,{width:K,height:window.innerHeight-16})}}p(!1),w(!1),A(null),k(null)};return(h||b)&&(document.addEventListener("mousemove",ee),document.addEventListener("mouseup",le)),()=>{document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",le)}},[h,b,E,R,g,s,ae,ue,re,me,C,D,fe,te.position.x,te.position.y]),!te.isOpen||te.isMinimized)return null;const pe=C==="max"?{left:8,top:8,width:window.innerWidth-16,height:window.innerHeight-16}:C==="left"?{left:8,top:8,width:Math.floor((window.innerWidth-24)/2),height:window.innerHeight-16}:C==="right"?{left:window.innerWidth-Math.floor((window.innerWidth-24)/2)-8,top:8,width:Math.floor((window.innerWidth-24)/2),height:window.innerHeight-16}:null;return u.jsxs(u.Fragment,{children:[pe&&u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:265:9",className:"fixed z-[80] pointer-events-none rounded-[18px] border border-[var(--astral-violet)] bg-[var(--astral-violet)]/10",style:{...pe,borderColor:"var(--accent-edge)",boxShadow:"0 0 36px var(--accent-glow-medium)"}}),u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:275:7",ref:m,className:`absolute flex flex-col transition-shadow duration-300 ${h?"dragging":""} animate-scale-in`,style:{left:te.position.x||i.x,top:te.position.y||i.y,width:re,height:me,zIndex:te.zIndex},onMouseDown:()=>J(s),children:[u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:287:9",className:"flex-1 flex flex-col rounded-[18px] overflow-hidden transition-all duration-300",style:{background:"rgba(10, 10, 16, 0.84)",backdropFilter:"blur(18px) saturate(120%)",border:`1px solid ${ge?"var(--accent-edge)":"rgba(255, 255, 255, 0.1)"}`,boxShadow:ge?"0 18px 60px rgba(0, 0, 0, 0.55), 0 0 40px var(--accent-glow-medium)":"0 18px 60px rgba(0, 0, 0, 0.55)"},children:[u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:298:11",className:"h-11 flex items-center px-4 drag-handle",onMouseDown:P,onDoubleClick:X,children:[u.jsxs("div",{"code-path":"src\\components\\windows\\Window.tsx:299:13",className:"window-controls flex items-center gap-1",children:[u.jsx("button",{"code-path":"src\\components\\windows\\Window.tsx:300:15",onClick:()=>I(s),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Close",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:301:17",className:"traffic-light traffic-light-close"})}),u.jsx("button",{"code-path":"src\\components\\windows\\Window.tsx:303:15",onClick:()=>W(s),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Minimize",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:304:17",className:"traffic-light traffic-light-minimize"})}),u.jsx("button",{"code-path":"src\\components\\windows\\Window.tsx:306:15",onClick:X,className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":te.isMaximized?"Restore":"Maximize",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:307:17",className:"traffic-light traffic-light-maximize"})})]}),u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:311:13",className:"flex-1 text-center",children:u.jsx("span",{"code-path":"src\\components\\windows\\Window.tsx:312:15",className:"text-xs font-medium tracking-wide",style:{color:"var(--astral-text-muted)"},children:o})}),u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:317:13",className:"w-[66px]"})]}),u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:320:11",className:"flex-1 overflow-auto relative",children:r})]}),!te.isMaximized&&u.jsxs(u.Fragment,{children:[u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:325:13",direction:"n",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:326:13",direction:"s",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:327:13",direction:"e",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:328:13",direction:"w",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:329:13",direction:"ne",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:330:13",direction:"nw",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:331:13",direction:"se",onMouseDown:se}),u.jsx(In,{"code-path":"src\\components\\windows\\Window.tsx:332:13",direction:"sw",onMouseDown:se})]})]})]})},In=({direction:s,onMouseDown:o})=>{const r="absolute z-20",i={n:{className:"top-0 left-3 right-3 h-2 -translate-y-1 cursor-n-resize"},s:{className:"bottom-0 left-3 right-3 h-2 translate-y-1 cursor-s-resize"},e:{className:"right-0 top-3 bottom-3 w-2 translate-x-1 cursor-e-resize"},w:{className:"left-0 top-3 bottom-3 w-2 -translate-x-1 cursor-w-resize"},ne:{className:"top-0 right-0 w-3 h-3 -translate-y-1 translate-x-1 cursor-ne-resize"},nw:{className:"top-0 left-0 w-3 h-3 -translate-y-1 -translate-x-1 cursor-nw-resize"},se:{className:"bottom-0 right-0 w-3 h-3 translate-y-1 translate-x-1 cursor-se-resize"},sw:{className:"bottom-0 left-0 w-3 h-3 translate-y-1 -translate-x-1 cursor-sw-resize"}};return u.jsx("div",{"code-path":"src\\components\\windows\\Window.tsx:356:10",className:`${r} ${i[s].className}`,onMouseDown:d=>o(s,d)})},P5=[{id:"1",name:"Alex Chen",status:"active",hasLiDAR:!0},{id:"2",name:"Maria Santos",status:"active",hasLiDAR:!0},{id:"3",name:"James Wilson",status:"training",hasLiDAR:!1}],V5=[{id:"1",prompt:"Sunset beach scene, golden hour",status:"generating",progress:67,eta:45,vramUsage:42,createdAt:new Date},{id:"2",prompt:"Urban nightscape, neon lights",status:"queued",progress:0,eta:120,vramUsage:0,createdAt:new Date}],q5=()=>{const[s,o]=y.useState(P5),[r,i]=y.useState([]),[d,m]=y.useState(V5),[h,p]=y.useState(""),[g,x]=y.useState(""),[b,w]=y.useState(!1),[E,A]=y.useState(!1),[R,S]=y.useState(!1),C=V=>{const Q=V.target.value;p(Q),Q.length>10&&!Q.includes(",")?x(", shot on Arri Alexa, 85mm lens, cinematic lighting..."):Q.length>20&&!Q.includes("8k")?x(", 8k, highly detailed, photorealistic..."):x("")},k=()=>{h.trim()&&(w(!0),setTimeout(()=>{w(!1);const V={id:Date.now().toString(),prompt:h,status:"queued",progress:0,eta:180,vramUsage:0,createdAt:new Date};m([V,...d]),p(""),x("")},1500))},z=y.useCallback(V=>{V.preventDefault(),A(!1);const Q={id:Date.now().toString(),name:`Actor ${s.length+1}`,status:"active",hasLiDAR:!0};o([...s,Q])},[s]),L=y.useCallback(V=>{V.preventDefault(),S(!1);const Q={id:Date.now().toString(),name:`Product ${r.length+1}`,category:"Watch",materials:[],extractionProgress:0};i([...r,Q]);let I=0;const W=setInterval(()=>{I+=10,i(J=>J.map(ae=>ae.id===Q.id?{...ae,extractionProgress:I}:ae)),I>=100&&clearInterval(W)},200)},[r]);return u.jsx(Yu,{"code-path":"src\\components\\apps\\ProductionHub.tsx:119:5",id:"production_hub",title:"Production Hub",defaultPosition:{x:80,y:50},defaultSize:{width:1140,height:760},children:u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:125:7",className:"h-full flex flex-col",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:127:9",className:"flex-1 flex min-h-0",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:129:11",className:"w-[240px] border-r border-white/10 p-3 flex flex-col",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:130:13",className:"section-header mb-3",children:"Cast"}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:133:13",className:`drop-zone p-3 mb-3 text-center ${E?"drag-over":""}`,onDragOver:V=>{V.preventDefault(),A(!0)},onDragLeave:()=>A(!1),onDrop:z,children:[u.jsx(nh,{"code-path":"src\\components\\apps\\ProductionHub.tsx:139:15",className:"w-6 h-6 mx-auto mb-2 opacity-50"}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:140:15",className:"text-xs opacity-60",children:"Drop actor set"})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:144:13",className:"flex-1 overflow-hidden space-y-1.5",children:s.map(V=>u.jsx(Y5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:146:17",actor:V},V.id))}),u.jsxs("button",{"code-path":"src\\components\\apps\\ProductionHub.tsx:151:13",className:"mt-3 glass-panel py-2 px-4 rounded-lg flex items-center justify-center gap-2 text-sm hover:bg-white/10 transition-colors",children:[u.jsx(ox,{"code-path":"src\\components\\apps\\ProductionHub.tsx:152:15",className:"w-4 h-4"}),"Add Actor"]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:158:11",className:"flex-1 p-3 flex flex-col",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:160:13",className:"flex-1 rounded-[14px] border border-white/10 relative overflow-hidden flex items-center justify-center",style:{aspectRatio:"16/9"},children:b?u.jsx(Q5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:165:17"}):u.jsx(Z5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:167:17"})}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:172:13",className:"mt-3 relative",children:u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:173:15",className:"intent-bar h-[52px] flex items-center px-4",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:174:17",className:"relative flex-1",children:[u.jsx("input",{"code-path":"src\\components\\apps\\ProductionHub.tsx:175:19",type:"text",value:h,onChange:C,onKeyDown:V=>V.key==="Enter"&&k(),placeholder:"Describe the scene...",className:"w-full bg-transparent text-sm text-white placeholder-white/40 outline-none"}),g&&u.jsxs("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:184:21",className:"absolute left-0 top-0 text-sm text-white/20 pointer-events-none",children:[h,g]})]}),u.jsx("button",{"code-path":"src\\components\\apps\\ProductionHub.tsx:189:17",onClick:k,disabled:!h.trim()||b,className:"w-10 h-10 rounded-full bg-[var(--astral-violet)] flex items-center justify-center ml-3 transition-all hover:scale-105 disabled:opacity-50 disabled:hover:scale-100",children:u.jsx(Ey,{"code-path":"src\\components\\apps\\ProductionHub.tsx:194:19",className:"w-4 h-4 text-white"})})]})})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:201:11",className:"w-[240px] border-l border-white/10 p-3 flex flex-col",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:202:13",className:"section-header mb-3",children:"Essence"}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:205:13",className:`drop-zone p-4 mb-3 text-center flex flex-col items-center ${R?"drag-over":""}`,onDragOver:V=>{V.preventDefault(),S(!0)},onDragLeave:()=>S(!1),onDrop:L,children:[u.jsx(nh,{"code-path":"src\\components\\apps\\ProductionHub.tsx:211:15",className:"w-8 h-8 mb-3 opacity-50"}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:212:15",className:"text-xs opacity-60",children:"Drop product images"})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:216:13",className:"flex-1 overflow-hidden space-y-2",children:r.map(V=>u.jsx(G5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:218:17",product:V},V.id))})]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:225:9",className:"h-[124px] border-t border-white/10 p-3 film-strip",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:226:11",className:"section-header mb-2 text-[10px]",children:"Task Loom"}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:227:11",className:"flex gap-3 overflow-x-auto pb-1",children:d.map(V=>u.jsx(X5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:229:15",task:V},V.id))})]})]})})},Y5=({actor:s})=>{const[o,r]=y.useState(!1);return u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:244:5",className:"flex items-center gap-3 p-2 rounded-lg hover:bg-white/5 transition-colors cursor-pointer",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:249:7",className:"w-10 h-10 rounded-lg bg-white/10 flex items-center justify-center overflow-hidden relative",children:o&&s.hasLiDAR?u.jsx(W5,{"code-path":"src\\components\\apps\\ProductionHub.tsx:251:11"}):u.jsx(ky,{"code-path":"src\\components\\apps\\ProductionHub.tsx:253:11",className:"w-5 h-5 opacity-50"})}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:256:7",className:"flex-1 min-w-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:257:9",className:"text-sm font-medium truncate",children:s.name}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:258:9",className:"text-xs opacity-50 capitalize",children:s.status})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:260:7",className:`w-2 h-2 rounded-full ${s.status==="active"?"status-active":"status-inactive"}`})]})},W5=()=>u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:271:5",className:"absolute inset-0 flex items-center justify-center",children:u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:272:7",className:"w-full h-full animate-spin-slow",style:{background:` radial-gradient(circle at 30% 40%, rgba(123, 108, 255, 0.6) 1px, transparent 1px), radial-gradient(circle at 60% 30%, rgba(123, 108, 255, 0.5) 1px, transparent 1px), radial-gradient(circle at 45% 60%, rgba(123, 108, 255, 0.4) 1px, transparent 1px), radial-gradient(circle at 70% 50%, rgba(123, 108, 255, 0.5) 1px, transparent 1px), radial-gradient(circle at 25% 65%, rgba(123, 108, 255, 0.4) 1px, transparent 1px) `,backgroundSize:"100% 100%"}})}),G5=({product:s})=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:291:5",className:"glass-panel p-3 rounded-lg",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:292:7",className:"flex items-center gap-2 mb-2",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:293:9",className:"w-8 h-8 rounded bg-white/10 flex items-center justify-center",children:u.jsx(ax,{"code-path":"src\\components\\apps\\ProductionHub.tsx:294:11",className:"w-4 h-4 opacity-50"})}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:296:9",className:"flex-1 min-w-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:297:11",className:"text-sm font-medium truncate",children:s.name}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:298:11",className:"text-xs opacity-50",children:s.category})]})]}),s.extractionProgress!==void 0&&s.extractionProgress<100&&u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:303:9",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:304:11",className:"flex items-center justify-between text-[10px] opacity-60 mb-1",children:[u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:305:13",children:"Extracting materials..."}),u.jsxs("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:306:13",children:[s.extractionProgress,"%"]})]}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:308:11",className:"h-1 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:309:13",className:"h-full bg-[var(--astral-violet)] transition-all duration-200",style:{width:`${s.extractionProgress}%`}})})]}),s.extractionProgress===100&&u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:318:9",className:"flex flex-wrap gap-1 mt-2",children:["Material 1","Texture","Mesh"].map((o,r)=>u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:320:13",className:"text-[10px] px-2 py-0.5 rounded-full bg-white/10",children:o},r))})]}),X5=({task:s})=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:335:5",className:"flex-shrink-0 w-[172px] h-[86px] glass-panel rounded-lg p-2.5 flex flex-col justify-between",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:338:7",className:"flex items-start justify-between",children:[u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:339:9",className:"text-[10px] opacity-60 line-clamp-1 flex-1",children:s.prompt}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:340:9",className:`w-1.5 h-1.5 rounded-full ml-1 flex-shrink-0 ${s.status==="generating"?"status-active animate-pulse":s.status==="queued"?"status-inactive":s.status==="completed"?"status-active":"status-alert"}`})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:349:7",className:"flex items-center justify-between text-[10px] opacity-50",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:350:9",className:"flex items-center gap-1",children:[u.jsx(Z1,{"code-path":"src\\components\\apps\\ProductionHub.tsx:351:11",className:"w-3 h-3"}),u.jsxs("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:352:11",children:[s.eta,"s"]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:354:9",className:"flex items-center gap-1",children:[u.jsx(tx,{"code-path":"src\\components\\apps\\ProductionHub.tsx:355:11",className:"w-3 h-3"}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:356:11",children:s.vramUsage>0?`${s.vramUsage}GB`:"-"})]})]}),s.status==="generating"&&u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:361:9",className:"h-1 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:362:11",className:"h-full bg-[var(--astral-violet)] transition-all duration-300",style:{width:`${s.progress}%`}})})]}),Z5=()=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:374:5",className:"flex flex-col items-center justify-center",children:[u.jsxs("svg",{"code-path":"src\\components\\apps\\ProductionHub.tsx:376:7",width:"80",height:"80",viewBox:"0 0 80 80",className:"opacity-30",children:[u.jsx("polygon",{"code-path":"src\\components\\apps\\ProductionHub.tsx:382:9",points:"40,10 70,60 10,60",fill:"none",stroke:"rgba(123, 108, 255, 0.6)",strokeWidth:"1"}),u.jsx("polygon",{"code-path":"src\\components\\apps\\ProductionHub.tsx:388:9",points:"40,25 58,55 22,55",fill:"none",stroke:"rgba(123, 108, 255, 0.4)",strokeWidth:"0.5"})]}),u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:395:7",className:"mt-4 text-sm opacity-40",children:"Ready"})]}),Q5=()=>u.jsxs("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:402:5",className:"absolute inset-0 flex items-center justify-center",children:[u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:403:7",className:"w-full h-full",style:{background:` repeating-radial-gradient( circle at 50% 50%, transparent 0, transparent 2px, rgba(123, 108, 255, 0.1) 2px, rgba(123, 108, 255, 0.1) 4px ) `,animation:"noise-shift 0.5s linear infinite"}}),u.jsx("div",{"code-path":"src\\components\\apps\\ProductionHub.tsx:418:7",className:"absolute inset-0 flex items-center justify-center",children:u.jsx("span",{"code-path":"src\\components\\apps\\ProductionHub.tsx:419:9",className:"text-sm opacity-60 animate-pulse",children:"Generating..."})})]}),Pg=document.createElement("style");Pg.textContent+=` @keyframes noise-shift { 0% { transform: translate(0, 0); } 25% { transform: translate(2px, -2px); } 50% { transform: translate(-2px, 2px); } 75% { transform: translate(2px, 2px); } 100% { transform: translate(0, 0); } } `;document.head.appendChild(Pg);const K5=[{id:"1",name:"Verdant Spire",type:"project",date:new Date("2024-01-15"),size:"2.4 GB"},{id:"2",name:"Alex Chen Set",type:"actor",date:new Date("2024-01-14"),size:"890 MB"},{id:"3",name:"Watch Collection",type:"product",date:new Date("2024-01-13"),size:"456 MB"},{id:"4",name:"Scene_001_v3",type:"render",date:new Date("2024-01-12"),size:"1.2 GB"},{id:"5",name:"Scene_002_v1",type:"render",date:new Date("2024-01-11"),size:"980 MB"},{id:"6",name:"Maria Santos Set",type:"actor",date:new Date("2024-01-10"),size:"1.1 GB"}],J5=[{id:"projects",name:"Projects",icon:uy},{id:"actors",name:"Actors",icon:Tu},{id:"products",name:"Products",icon:L1},{id:"renders",name:"Renders",icon:sy}],$5=()=>{const[s,o]=y.useState("projects"),[r,i]=y.useState(!1),[d,m]=y.useState("grid"),h=K5.filter(p=>p.type===s.slice(0,-1)||s==="projects"&&p.type==="project");return u.jsx(Yu,{"code-path":"src\\components\\apps\\AssetVault.tsx:41:5",id:"asset_vault",title:"Asset Vault",defaultPosition:{x:150,y:100},defaultSize:{width:900,height:600},children:u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:47:7",className:"h-full flex",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:49:9",className:"w-[180px] border-r border-white/10 p-4",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:50:11",className:"section-header mb-4",children:"Folders"}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:51:11",className:"space-y-1",children:J5.map(p=>{const g=p.icon;return u.jsxs("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:55:17",onClick:()=>o(p.id),className:` w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-all duration-200 ${s===p.id?"bg-white/10 text-white":"text-white/60 hover:bg-white/5 hover:text-white"} `,children:[u.jsx(g,{"code-path":"src\\components\\apps\\AssetVault.tsx:66:19",className:"w-4 h-4"}),p.name]},p.id)})})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:75:9",className:"flex-1 flex flex-col",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:77:11",className:"h-14 border-b border-white/10 px-4 flex items-center justify-between",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:78:13",className:"text-sm font-medium capitalize",children:s}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:82:13",className:"flex items-center gap-3",children:[u.jsxs("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:84:15",onClick:()=>i(!r),className:"flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs hover:bg-white/5 transition-colors",children:[r?u.jsx(_y,{"code-path":"src\\components\\apps\\AssetVault.tsx:89:19",className:"w-4 h-4 text-[var(--astral-violet)]"}):u.jsx(Ty,{"code-path":"src\\components\\apps\\AssetVault.tsx:91:19",className:"w-4 h-4 opacity-50"}),u.jsx("span",{"code-path":"src\\components\\apps\\AssetVault.tsx:93:17",className:r?"text-[var(--astral-violet)]":"opacity-60",children:"LiDAR view"})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:99:15",className:"flex items-center gap-1 p-1 rounded-lg bg-white/5",children:[u.jsx("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:100:17",onClick:()=>m("grid"),className:`p-1.5 rounded transition-colors ${d==="grid"?"bg-white/10":"hover:bg-white/5"}`,children:u.jsx(fy,{"code-path":"src\\components\\apps\\AssetVault.tsx:106:19",className:"w-3.5 h-3.5"})}),u.jsx("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:108:17",onClick:()=>m("list"),className:`p-1.5 rounded transition-colors ${d==="list"?"bg-white/10":"hover:bg-white/5"}`,children:u.jsx(vy,{"code-path":"src\\components\\apps\\AssetVault.tsx:114:19",className:"w-3.5 h-3.5"})})]})]})]}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:121:11",className:"flex-1 overflow-auto p-4",children:d==="grid"?u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:123:15",className:"grid grid-cols-3 gap-4",children:h.map(p=>u.jsx(F5,{"code-path":"src\\components\\apps\\AssetVault.tsx:125:19",asset:p,isLiDARView:r},p.id))}):u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:133:15",className:"space-y-1",children:h.map(p=>u.jsx(I5,{"code-path":"src\\components\\apps\\AssetVault.tsx:135:19",asset:p,isLiDARView:r},p.id))})})]})]})})},F5=({asset:s,isLiDARView:o})=>{const[r,i]=y.useState(!1);return u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:159:5",className:"group relative glass-panel rounded-xl overflow-hidden cursor-pointer transition-all duration-300 hover:scale-[1.02]",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:165:7",className:"aspect-[4/3] relative overflow-hidden",children:[o?u.jsx(qg,{"code-path":"src\\components\\apps\\AssetVault.tsx:167:11"}):u.jsx(Vg,{"code-path":"src\\components\\apps\\AssetVault.tsx:169:11",type:s.type}),r&&u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:174:11",className:"absolute inset-0 bg-black/60 flex items-center justify-center animate-fade-in",children:u.jsx("button",{"code-path":"src\\components\\apps\\AssetVault.tsx:175:13",className:"px-4 py-2 rounded-lg bg-white/10 text-sm hover:bg-white/20 transition-colors",children:"Preview"})})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:183:7",className:"p-3",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:184:9",className:"text-sm font-medium truncate",children:s.name}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:185:9",className:"flex items-center justify-between mt-1",children:[u.jsx("span",{"code-path":"src\\components\\apps\\AssetVault.tsx:186:11",className:"text-[10px] opacity-50",children:s.date.toLocaleDateString()}),u.jsx("span",{"code-path":"src\\components\\apps\\AssetVault.tsx:189:11",className:"text-[10px] opacity-50",children:s.size})]})]})]})},I5=({asset:s,isLiDARView:o})=>u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:203:5",className:"flex items-center gap-4 p-3 rounded-lg hover:bg-white/5 transition-colors cursor-pointer",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:205:7",className:"w-12 h-12 rounded-lg overflow-hidden flex-shrink-0",children:o?u.jsx(qg,{"code-path":"src\\components\\apps\\AssetVault.tsx:207:11"}):u.jsx(Vg,{"code-path":"src\\components\\apps\\AssetVault.tsx:209:11",type:s.type})}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:214:7",className:"flex-1 min-w-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:215:9",className:"text-sm font-medium truncate",children:s.name}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:216:9",className:"text-[10px] opacity-50 capitalize",children:s.type})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:220:7",className:"text-right",children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:221:9",className:"text-[10px] opacity-50",children:s.size}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:222:9",className:"text-[10px] opacity-50",children:s.date.toLocaleDateString()})]})]}),Vg=({type:s})=>{const o={project:"linear-gradient(135deg, rgba(123, 108, 255, 0.3), rgba(91, 50, 150, 0.2))",actor:"linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(21, 128, 61, 0.15))",product:"linear-gradient(135deg, rgba(255, 45, 85, 0.2), rgba(190, 24, 93, 0.15))",render:"linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.15))"};return u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:239:5",className:"w-full h-full",style:{background:o[s]}})},qg=()=>u.jsxs("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:248:5",className:"w-full h-full relative",style:{background:` linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(50, 50, 50, 0.9) 100% ) `},children:[u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:260:7",className:"absolute inset-0 opacity-60",style:{background:` radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 20%), radial-gradient(ellipse at 60% 50%, rgba(200, 200, 200, 0.6) 0%, transparent 25%), radial-gradient(ellipse at 35% 60%, rgba(150, 150, 150, 0.5) 0%, transparent 20%), radial-gradient(ellipse at 70% 40%, rgba(180, 180, 180, 0.4) 0%, transparent 15%) `}}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:273:7",className:"absolute inset-0 opacity-20",style:{backgroundImage:` linear-gradient(to right, rgba(123, 108, 255, 0.3) 1px, transparent 1px), linear-gradient(to bottom, rgba(123, 108, 255, 0.3) 1px, transparent 1px) `,backgroundSize:"20px 20px"}}),u.jsx("div",{"code-path":"src\\components\\apps\\AssetVault.tsx:285:7",className:"absolute bottom-1 right-1 text-[8px] px-1.5 py-0.5 rounded bg-black/50 text-white/60",children:"DEPTH"})]}),e3=[{id:"1",timestamp:new Date,level:"info",message:"LTX-2 model loaded on GPU A"},{id:"2",timestamp:new Date,level:"info",message:"ComfyUI queue: 2 pending tasks"},{id:"3",timestamp:new Date,level:"warn",message:"VRAM usage approaching threshold"}],t3=()=>{const{gpuStats:s}=sa(),[o]=y.useState(e3),[r,i]=y.useState(s);return y.useEffect(()=>{const d=setTimeout(()=>{i(s)},100);return()=>clearTimeout(d)},[s]),y.useEffect(()=>{const d=setInterval(()=>{i(m=>m.map(h=>({...h,vramUsed:Math.min(h.vramTotal,h.vramUsed+(Math.random()-.5)*2),temperature:Math.min(85,Math.max(45,h.temperature+(Math.random()-.5)*3)),utilization:Math.min(100,Math.max(0,h.utilization+(Math.random()-.5)*10))})))},2e3);return()=>clearInterval(d)},[]),u.jsx(Yu,{"code-path":"src\\components\\apps\\EngineRoom.tsx:40:5",id:"engine_room",title:"Engine Room",defaultPosition:{x:200,y:140},defaultSize:{width:620,height:500},children:u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:46:7",className:"h-full flex flex-col p-4",children:[u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:48:9",className:"flex justify-center gap-6 mb-4",children:r.map(d=>u.jsx(n3,{"code-path":"src\\components\\apps\\EngineRoom.tsx:50:13",stats:d},d.id))}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:55:9",className:"flex-1 min-h-0",children:[u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:56:11",className:"section-header mb-2",children:"System Log"}),u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:57:11",className:"h-full rounded-lg p-3 overflow-hidden font-mono text-xs",style:{background:"rgba(0, 0, 0, 0.3)",border:"1px solid rgba(255, 255, 255, 0.05)"},children:o.map((d,m)=>u.jsx(a3,{"code-path":"src\\components\\apps\\EngineRoom.tsx:65:15",log:d,isNew:m===o.length-1},d.id))})]})]})})},n3=({stats:s})=>{const o=s.vramUsed/s.vramTotal*100,r=o>90,i=58,d=2*Math.PI*i,m=d-o/100*d*.75;return u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:88:5",className:"flex flex-col items-center",children:[u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:90:7",className:"relative w-[136px] h-[136px]",children:[u.jsxs("svg",{"code-path":"src\\components\\apps\\EngineRoom.tsx:92:9",width:"136",height:"136",viewBox:"0 0 136 136",className:"transform -rotate-[135deg]",children:[u.jsx("circle",{"code-path":"src\\components\\apps\\EngineRoom.tsx:99:11",cx:"68",cy:"68",r:i,className:"gauge-bg",strokeDasharray:`${d*.75} ${d}`}),u.jsx("circle",{"code-path":"src\\components\\apps\\EngineRoom.tsx:108:11",cx:"68",cy:"68",r:i,className:`gauge-fill ${r?"warning":""}`,strokeDasharray:`${d*.75} ${d}`,strokeDashoffset:m,style:{transition:"stroke-dashoffset 1s ease-out"}})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:122:9",className:"absolute inset-0 flex flex-col items-center justify-center",children:[u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:123:11",className:"text-2xl font-semibold",style:{color:r?"var(--astral-kill-red)":"white"},children:[Math.round(o),"%"]}),u.jsx("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:129:11",className:"text-[10px] opacity-50 mt-1",children:"VRAM"})]}),r&&u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:134:11",className:"absolute top-0 right-0 w-4 h-4 rounded-full status-alert"})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:141:7",className:"mt-3 text-center",children:[u.jsx("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:142:9",className:"text-sm font-medium",children:s.name}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:143:9",className:"text-xs mt-1",style:{color:"var(--astral-text-muted)"},children:[Math.round(s.vramUsed)," / ",s.vramTotal," GB"]})]}),u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:152:7",className:"flex gap-4 mt-2 text-[10px] opacity-50",children:[u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:153:9",children:[s.temperature.toFixed(0),"°C"]}),u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:154:9",children:[s.utilization.toFixed(0),"% util"]})]})]})},a3=({log:s,isNew:o})=>{const r=s.timestamp.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),i={info:"text-blue-400",warn:"text-yellow-400",error:"text-red-400"};return u.jsxs("div",{"code-path":"src\\components\\apps\\EngineRoom.tsx:180:5",className:`flex gap-2 py-0.5 ${o?"animate-slide-up":""}`,children:[u.jsxs("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:183:7",className:"opacity-40 flex-shrink-0",children:["[",r,"]"]}),u.jsx("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:184:7",className:`flex-shrink-0 ${i[s.level]}`,children:s.level.toUpperCase()}),u.jsx("span",{"code-path":"src\\components\\apps\\EngineRoom.tsx:187:7",className:"opacity-80",children:s.message})]})},s3=[{id:"user_profile",label:"User Profile",sub:"Identity, role, and clearance data",icon:u.jsx(Fh,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:20:97",className:"w-4 h-4"})},{id:"socials_api",label:"Socials and API",sub:"Connect social channels and model APIs",icon:u.jsx(lx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:21:103",className:"w-4 h-4"})},{id:"closed_model_access",label:"Closed-Model Access",sub:"Video and image provider credentials",icon:u.jsx(sx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:22:113",className:"w-4 h-4"})},{id:"team_access",label:"Team Access",sub:"Permissions, invites, and handoff control",icon:u.jsx(Tu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:23:102",className:"w-4 h-4"})},{id:"security_consent",label:"Security and Consent",sub:"Contract checks and kill-switch settings",icon:u.jsx(cx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:24:115",className:"w-4 h-4"})},{id:"storage_sync",label:"Storage and Sync",sub:"NAS mount targets and project mirrors",icon:u.jsx(Mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:25:104",className:"w-4 h-4"})},{id:"preferences",label:"Preferences",sub:"Workspace behavior and defaults",icon:u.jsx(ix,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:26:92",className:"w-4 h-4"})}],l3=[{name:"Cine Bahini Red",color:"#FF2D55"},{name:"Astral Purple",color:"#7B6CFF"},{name:"OLED White",color:"#E4E4E7"},{name:"Cyber Yellow",color:"#FACC15"}],o3=()=>{const{isSystemPreferencesOpen:s,activeSection:o,closeSystemPreferences:r,setActiveSection:i,profile:d,setDisplayName:m,socials:h,setSocialConnected:p,apiVault:g,setApiKey:x,closedModels:b,setClosedModelValue:w,teamMembers:E,setTeamRole:A,revokeTeamMember:R,inviteTeamMember:S,security:C,setBiometricEnforcement:k,storage:z,setStorageMountPath:L,setArchiveDays:V,accentColor:Q,setAccentColor:I,glowIntensity:W,setGlowIntensity:J,interfaceDensity:ae,setInterfaceDensity:ue,reducedMotion:fe,setReducedMotion:te,notifications:ge,setNotification:re}=zu(),[me,D]=y.useState(""),[X,P]=y.useState(0),[se,pe]=y.useState(!1),[N,q]=y.useState({}),[F,ee]=y.useState(!1),[le,K]=y.useState(!1);y.useEffect(()=>{if(!s)return;const _=ne=>{ne.key==="Escape"&&r()};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[s,r]),y.useEffect(()=>{if(!se)return;const _=Date.now(),ne=window.setInterval(()=>{const he=Date.now()-_,ye=Math.min(100,he/3e3*100);P(ye),ye>=100&&pe(!1)},40);return()=>window.clearInterval(ne)},[se]),y.useEffect(()=>{se||P(0)},[se]);const M=y.useMemo(()=>z.videoUsed+z.imagesUsed+z.cacheUsed+z.freeSpace,[z]);return s?F?u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:114:7",className:"fixed bottom-6 right-6 z-[130]",children:u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:115:9",type:"button",onClick:()=>ee(!1),className:"glass-pill px-4 py-2 text-sm text-white",children:"Restore System Preferences"})}):u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:127:5",className:"fixed inset-0 z-[130] flex items-center justify-center",children:[u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:128:7",type:"button",className:"absolute inset-0 bg-black/60",style:{backdropFilter:"blur(12px)"},onClick:r,"aria-label":"Close system preferences"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:136:7",className:"relative overflow-hidden flex flex-col",style:{width:le?"calc(100vw - 16px)":"1140px",height:le?"calc(100vh - 16px)":"760px",borderRadius:le?"16px":"20px",background:"rgba(10, 10, 16, 0.9)",backdropFilter:"blur(40px) saturate(135%)",border:"1px solid var(--accent-edge)",boxShadow:"0 30px 100px rgba(0, 0, 0, 0.6), 0 0 42px var(--accent-glow-medium)"},children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:148:9",className:"h-11 px-4 border-b border-white/10 flex items-center",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:149:11",className:"window-controls flex items-center gap-1",children:[u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:150:13",onClick:r,className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Close",children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:151:15",className:"traffic-light traffic-light-close"})}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:153:13",onClick:()=>ee(!0),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":"Minimize",children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:154:15",className:"traffic-light traffic-light-minimize"})}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:156:13",onClick:()=>K(_=>!_),className:"w-6 h-6 rounded-full flex items-center justify-center hover:bg-white/10 transition-colors","aria-label":le?"Restore":"Fullscreen",children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:157:15",className:"traffic-light traffic-light-maximize"})})]}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:160:11",className:"flex-1 text-center text-xs tracking-wide text-white/60",children:"System Preferences"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:161:11",className:"w-[66px]"})]}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:164:9",className:"flex-1 flex min-h-0",children:[u.jsxs("aside",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:165:9",className:"w-[38%] border-r border-white/10 p-4 overflow-y-auto",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:166:11",className:"text-xs tracking-[0.16em] uppercase px-2 pb-3 text-white/55",children:"System Preferences"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:167:11",className:"space-y-1",children:s3.map(_=>u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:169:15",type:"button",onClick:()=>i(_.id),className:`w-full text-left rounded-xl px-3 py-2.5 flex gap-3 transition-colors ${o===_.id?"bg-white/10":"hover:bg-white/5"}`,children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:177:17",className:"w-8 h-8 rounded-full bg-white/5 border border-white/10 flex items-center justify-center text-white/80",children:_.icon}),u.jsxs("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:180:17",className:"min-w-0",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:181:19",className:"block text-sm text-white",children:_.label}),u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:182:19",className:"block text-xs text-white/50",children:_.sub})]})]},_.id))})]}),u.jsxs("section",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:189:9",className:"w-[62%] p-5 overflow-y-auto",children:[o==="user_profile"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:191:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:192:15",title:"User Profile",subtitle:"Identity management and visual persona"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:193:15",className:"glass-panel rounded-xl p-4 flex items-center gap-4",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:194:17",className:"w-20 h-20 rounded-full border border-white/15 bg-white/5 flex items-center justify-center text-white/65",children:d.avatarUrl?u.jsx("img",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:195:40",src:d.avatarUrl,alt:"avatar",className:"w-full h-full rounded-full object-cover"}):"SC"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:197:17",className:"flex-1",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:198:19",value:d.displayName,onChange:_=>m(_.target.value),className:"w-full bg-transparent text-xl font-semibold text-white outline-none"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:199:19",className:"text-xs text-white/60 mt-1",children:d.roleLabel})]})]}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:202:15",label:"Email",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:203:17",className:"glass-panel rounded-lg px-3 py-2.5 flex items-center justify-between w-full",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:204:19",className:"text-sm text-white/90",children:d.email}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:205:19",type:"button",className:"text-white/65 hover:text-white",children:u.jsx(ex,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:205:84",className:"w-4 h-4"})})]})}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:208:15",label:"Clearance Level",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:209:17",className:"w-full",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:210:19",className:"text-xs text-white/65 mb-2",children:["Level ",d.clearanceLevel,": Full Model Access"]}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:211:19",className:"h-2 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:212:21",className:"h-full rounded-full",style:{width:`${d.clearanceLevel/4*100}%`,background:"var(--primary-accent)"}})})]})})]}),o==="socials_api"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:220:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:221:15",title:"Socials and API",subtitle:"Connect external platforms and manage developer keys"}),u.jsx(mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:222:15",name:"YouTube",connected:h.youtubeConnected,onToggle:_=>p("youtubeConnected",_)}),u.jsx(mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:223:15",name:"Instagram",connected:h.instagramConnected,onToggle:_=>p("instagramConnected",_)}),u.jsx(mu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:224:15",name:"Vimeo",connected:h.vimeoConnected,onToggle:_=>p("vimeoConnected",_)}),u.jsx(pu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:225:15",label:"OpenRouter API Key",value:g.openRouterKey,show:!!N.openRouterKey,onToggleShow:()=>q(_=>({..._,openRouterKey:!_.openRouterKey})),onChange:_=>x("openRouterKey",_)}),u.jsx(pu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:232:15",label:"Runway API Key",value:g.runwayKey,show:!!N.runwayKey,onToggleShow:()=>q(_=>({..._,runwayKey:!_.runwayKey})),onChange:_=>x("runwayKey",_)}),u.jsx(pu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:239:15",label:"Pika API Key",value:g.pikaKey,show:!!N.pikaKey,onToggleShow:()=>q(_=>({..._,pikaKey:!_.pikaKey})),onChange:_=>x("pikaKey",_)})]}),o==="closed_model_access"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:250:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:251:15",title:"Closed-Model Access",subtitle:"Configure model paths, license keys, and VRAM limits"}),u.jsx(hu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:252:15",name:"LTX-2",mounted:b.ltx2Mounted,path:b.ltx2Path,license:b.ltx2License,onMountedChange:_=>w("ltx2Mounted",_),onPathChange:_=>w("ltx2Path",_),onLicenseChange:_=>w("ltx2License",_)}),u.jsx(hu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:261:15",name:"Flux",mounted:b.fluxMounted,path:b.fluxPath,license:b.fluxLicense,onMountedChange:_=>w("fluxMounted",_),onPathChange:_=>w("fluxPath",_),onLicenseChange:_=>w("fluxLicense",_)}),u.jsx(hu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:270:15",name:"Wan",mounted:b.wanMounted,path:b.wanPath,license:b.wanLicense,onMountedChange:_=>w("wanMounted",_),onPathChange:_=>w("wanPath",_),onLicenseChange:_=>w("wanLicense",_)}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:279:15",label:"VRAM Allocation Limit",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:280:17",className:"w-full",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:281:19",type:"range",min:60,max:100,value:b.vramLimit,onChange:_=>w("vramLimit",Number(_.target.value)),className:"w-full"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:289:19",className:"text-xs text-white/60",children:[b.vramLimit,"% of GPU memory"]})]})})]}),o==="team_access"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:296:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:297:15",title:"Team Access",subtitle:"Role-based access and collaboration controls"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:298:15",className:"glass-panel rounded-xl overflow-hidden",children:u.jsxs("table",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:299:17",className:"w-full text-sm",children:[u.jsx("thead",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:300:19",className:"text-white/55 text-xs uppercase tracking-[0.12em]",children:u.jsxs("tr",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:301:21",children:[u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:302:23",className:"text-left px-3 py-2",children:"Member"}),u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:303:23",className:"text-left px-3 py-2",children:"Email"}),u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:304:23",className:"text-left px-3 py-2",children:"Role"}),u.jsx("th",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:305:23",className:"text-right px-3 py-2",children:"Action"})]})}),u.jsx("tbody",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:308:19",children:E.map(_=>u.jsxs("tr",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:310:23",className:"border-t border-white/10",children:[u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:311:25",className:"px-3 py-2 text-white",children:_.name}),u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:312:25",className:"px-3 py-2 text-white/70",children:_.email}),u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:313:25",className:"px-3 py-2",children:u.jsxs(Hg,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:314:27",value:_.role,onValueChange:ne=>A(_.id,ne),children:[u.jsx(Lg,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:315:29",className:"h-8 bg-white/5 border-white/15 text-white",children:u.jsx(Ug,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:316:31"})}),u.jsxs(Bg,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:318:29",className:"rounded-lg border-white/15 text-white",style:{background:"rgba(14, 14, 20, 0.96)"},children:[u.jsx(za,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:319:31",value:"Admin",children:"Admin"}),u.jsx(za,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:320:31",value:"Editor",children:"Editor"}),u.jsx(za,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:321:31",value:"Viewer",children:"Viewer"})]})]})}),u.jsx("td",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:325:25",className:"px-3 py-2 text-right",children:u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:326:27",type:"button",onClick:()=>R(_.id),className:"text-red-300 hover:text-red-200",children:u.jsx(rx,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:327:29",className:"w-4 h-4 inline-block"})})})]},_.id))})]})}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:335:15",className:"glass-panel rounded-xl p-3 flex gap-2",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:336:17",value:me,onChange:_=>D(_.target.value),placeholder:"Invite user by email",className:"flex-1 bg-transparent text-white text-sm outline-none"}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:337:17",type:"button",onClick:()=>{S(me),D("")},className:"px-3 py-1.5 rounded-md text-sm text-white",style:{background:"var(--primary-accent)"},children:"Send Invite"})]})]}),o==="security_consent"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:343:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:344:15",title:"Security and Consent",subtitle:"Critical controls for compliance and revocation"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:345:15",className:"glass-panel rounded-xl p-4 border border-red-400/30",children:[u.jsx(Wh,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:346:17",label:"Biometric Enforcement",value:C.biometricEnforcement,onChange:k}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:347:17",className:"mt-4",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:348:19",className:"text-xs uppercase tracking-[0.14em] text-red-300 mb-2",children:"Kill Switch"}),u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:349:19",type:"button",onMouseDown:()=>pe(!0),onMouseUp:()=>pe(!1),onMouseLeave:()=>pe(!1),className:"w-full rounded-lg px-4 py-3 text-left border border-red-400/40 bg-red-500/10",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:356:21",className:"text-sm text-red-200",children:"Hold for 3 seconds to unmount LoRAs and revoke tokens"}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:357:21",className:"h-1 bg-white/10 rounded-full mt-3 overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:358:23",className:"h-full bg-red-400 transition-all",style:{width:`${X}%`}})})]})]}),u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:362:17",type:"button",className:"mt-4 px-3 py-2 rounded-lg text-sm text-white bg-white/10 hover:bg-white/15",children:[u.jsx($1,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:363:19",className:"w-4 h-4 inline-block mr-2"}),"Download Audit CSV"]})]})]}),o==="storage_sync"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:371:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:372:15",title:"Storage and Sync",subtitle:"NAS connection, usage visualization, and archiving policies"}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:373:15",label:"NAS Mount Path",children:u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:374:17",value:z.nasMountPath,onChange:_=>L(_.target.value),className:"w-full glass-panel rounded-lg px-3 py-2.5 text-sm text-white bg-transparent outline-none"})}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:376:15",className:"glass-panel rounded-xl p-4",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:377:17",className:"text-xs uppercase tracking-[0.12em] text-white/55 mb-3",children:"Storage Breakdown"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:378:17",className:"space-y-2",children:[u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:379:19",label:"Video",value:z.videoUsed,total:M,color:"#8B5CF6"}),u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:380:19",label:"Images",value:z.imagesUsed,total:M,color:"#22D3EE"}),u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:381:19",label:"Cache",value:z.cacheUsed,total:M,color:"#F59E0B"}),u.jsx(rc,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:382:19",label:"Free",value:z.freeSpace,total:M,color:"#22C55E"})]})]}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:385:15",label:"Auto Archive (days)",children:u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:386:17",type:"number",min:1,value:z.archiveDays,onChange:_=>V(Number(_.target.value)||1),className:"w-28 glass-panel rounded-lg px-3 py-2.5 text-sm text-white bg-transparent outline-none"})}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:388:15",type:"button",className:"px-3 py-2 rounded-lg text-sm text-white bg-white/10 hover:bg-white/15",children:"Purge Temp Files"})]}),o==="preferences"&&u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:393:13",className:"space-y-4",children:[u.jsx(Ta,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:394:15",title:"Preferences",subtitle:"Global UI behavior and accent engine controls"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:395:15",className:"glass-panel rounded-xl p-4 space-y-4",children:[u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:396:17",label:"Global Accent Color",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:397:19",className:"w-full space-y-3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:398:21",className:"grid grid-cols-4 gap-2",children:l3.map(_=>u.jsxs("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:400:25",type:"button",onClick:()=>I(_.color),className:`rounded-lg p-2 text-xs text-white/85 border ${Q===_.color?"border-white/40":"border-white/15"} bg-white/5`,children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:401:27",className:"block w-full h-5 rounded mb-1",style:{background:_.color}}),_.name]},_.name))}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:406:21",className:"flex items-center gap-2",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:407:23",type:"color",value:Q,onChange:_=>I(_.target.value),className:"w-10 h-10 p-0 border border-white/20 rounded"}),u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:408:23",value:Q,onChange:_=>I(_.target.value),className:"glass-panel rounded-lg px-3 py-2 text-sm text-white bg-transparent outline-none w-[140px]"})]})]})}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:412:17",label:"Interface Density",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:413:19",className:"inline-flex rounded-lg overflow-hidden border border-white/15",children:[u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:414:21",type:"button",onClick:()=>ue("comfortable"),className:`px-3 py-2 text-sm ${ae==="comfortable"?"text-white":"text-white/65"} ${ae==="comfortable"?"bg-white/15":"bg-white/5"}`,children:"Comfortable"}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:415:21",type:"button",onClick:()=>ue("compact"),className:`px-3 py-2 text-sm ${ae==="compact"?"text-white":"text-white/65"} ${ae==="compact"?"bg-white/15":"bg-white/5"}`,children:"Compact"})]})}),u.jsx(ea,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:418:17",label:"Glow Strength",children:u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:419:19",className:"w-full",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:420:21",type:"range",min:20,max:140,value:Math.round(W*100),onChange:_=>J(Number(_.target.value)/100),className:"w-full"}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:428:21",className:"text-xs text-white/60 mt-1",children:[Math.round(W*100),"%"]})]})}),u.jsx(Wh,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:431:17",label:"Reduced Motion",value:fe,onChange:te}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:432:17",className:"pt-2 border-t border-white/10",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:433:19",className:"text-xs uppercase tracking-[0.12em] text-white/55 mb-2",children:"Notifications"}),u.jsx(fu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:434:19",label:"Render Complete",checked:ge.renderComplete,onChange:_=>re("renderComplete",_)}),u.jsx(fu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:435:19",label:"Training Finished",checked:ge.trainingFinished,onChange:_=>re("trainingFinished",_)}),u.jsx(fu,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:436:19",label:"Security Alert",checked:ge.securityAlert,onChange:_=>re("securityAlert",_)})]})]})]})]})]})]})]}):null},Ta=({title:s,subtitle:o})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:449:3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:450:5",className:"text-lg font-semibold text-white",children:s}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:451:5",className:"text-sm text-white/55",children:o})]}),ea=({label:s,children:o})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:456:3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:457:5",className:"text-[11px] uppercase tracking-[0.12em] text-white/55 mb-2",children:s}),o]}),Wh=({label:s,value:o,onChange:r})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:463:3",className:"flex items-center justify-between",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:464:5",className:"text-sm text-white",children:s}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:465:5",type:"button",onClick:()=>r(!o),className:`w-12 h-7 rounded-full p-1 transition-colors ${o?"bg-[var(--primary-accent)]":"bg-white/20"}`,children:u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:466:7",className:`block w-5 h-5 rounded-full bg-white transition-transform ${o?"translate-x-5":"translate-x-0"}`})})]}),fu=({label:s,checked:o,onChange:r})=>u.jsxs("label",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:472:3",className:"flex items-center gap-2 py-1.5 text-sm text-white/85 cursor-pointer",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:473:5",type:"checkbox",checked:o,onChange:i=>r(i.target.checked),className:"accent-[var(--primary-accent)]"}),s]}),mu=({name:s,connected:o,onToggle:r})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:479:3",className:"glass-panel rounded-xl p-3 flex items-center justify-between",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:480:5",className:"text-sm text-white",children:s}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:481:5",type:"button",onClick:()=>r(!o),className:`px-3 py-1.5 rounded-md text-xs ${o?"bg-red-500/20 text-red-200":"bg-white/10 text-white"}`,children:o?"Disconnect":"Connect"})]}),pu=({label:s,value:o,show:r,onToggleShow:i,onChange:d})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:494:3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:495:5",className:"text-[11px] uppercase tracking-[0.12em] text-white/55 mb-2",children:s}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:496:5",className:"glass-panel rounded-lg px-3 py-2.5 flex items-center gap-2",children:[u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:497:7",type:r?"text":"password",value:o,onChange:m=>d(m.target.value),placeholder:"••••••••••••••••••••",className:"flex-1 bg-transparent text-sm text-white outline-none"}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:498:7",type:"button",onClick:i,className:"text-white/65 hover:text-white",children:r?u.jsx(ey,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:498:103",className:"w-4 h-4"}):u.jsx(ny,{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:498:136",className:"w-4 h-4"})})]})]}),hu=({name:s,mounted:o,path:r,license:i,onMountedChange:d,onPathChange:m,onLicenseChange:h})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:512:3",className:"glass-panel rounded-xl p-3 space-y-2",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:513:5",className:"flex items-center justify-between",children:[u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:514:7",className:"text-sm text-white flex items-center gap-2",children:[u.jsx("span",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:515:9",className:`w-2 h-2 rounded-full ${o?"bg-green-400":"bg-red-400"}`}),s]}),u.jsx("button",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:518:7",type:"button",onClick:()=>d(!o),className:"text-xs text-white/75 bg-white/10 px-2 py-1 rounded-md",children:o?"Mounted":"Offline"})]}),u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:522:5",value:r,onChange:p=>m(p.target.value),className:"w-full glass-panel rounded-lg px-3 py-2 text-xs text-white bg-transparent outline-none"}),u.jsx("input",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:523:5",value:i,onChange:p=>h(p.target.value),placeholder:"License key",className:"w-full glass-panel rounded-lg px-3 py-2 text-xs text-white bg-transparent outline-none"})]}),rc=({label:s,value:o,total:r,color:i})=>u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:528:3",className:"flex items-center gap-3",children:[u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:529:5",className:"w-16 text-xs text-white/65",children:s}),u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:530:5",className:"flex-1 h-2 bg-white/10 rounded-full overflow-hidden",children:u.jsx("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:531:7",className:"h-full",style:{width:`${o/r*100}%`,background:i}})}),u.jsxs("div",{"code-path":"src\\components\\settings\\SystemPreferencesWindow.tsx:533:5",className:"text-xs text-white/70 w-10 text-right",children:[o,"%"]})]});function c3(){const{currentStage:s}=sa(),o=zu(i=>i.initializeSettings),r=y.useRef(null);return y.useEffect(()=>{const i=r.current;if(!i)return;const d=16;let m=0,h=0,p=0,g=0,x=0;const b=A=>{const R=A.clientX/window.innerWidth-.5,S=A.clientY/window.innerHeight-.5;m=R*d,h=S*d},w=()=>{m=0,h=0},E=()=>{p+=(m-p)*.08,g+=(h-g)*.08,i.style.setProperty("--parallax-x",`${p.toFixed(2)}px`),i.style.setProperty("--parallax-y",`${g.toFixed(2)}px`),x=requestAnimationFrame(E)};return window.addEventListener("mousemove",b),window.addEventListener("mouseleave",w),x=requestAnimationFrame(E),()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseleave",w),cancelAnimationFrame(x)}},[]),y.useEffect(()=>{o()},[o]),u.jsxs("div",{"code-path":"src\\App.tsx:66:5",ref:r,className:"relative w-screen h-screen overflow-hidden bg-black",children:[u.jsx(E1,{"code-path":"src\\App.tsx:68:7"}),u.jsx("div",{"code-path":"src\\App.tsx:71:7",className:"noise-overlay parallax-layer-foreground"}),s==="vault"&&u.jsx(z1,{"code-path":"src\\App.tsx:74:36"}),s==="nexus"&&u.jsx(O5,{"code-path":"src\\App.tsx:77:36"}),s==="workspace"&&u.jsx(i3,{"code-path":"src\\App.tsx:80:40"}),u.jsx(o3,{"code-path":"src\\App.tsx:83:7"})]})}const i3=()=>u.jsxs("div",{"code-path":"src\\App.tsx:91:5",className:"fixed inset-0 z-30",children:[u.jsx(r3,{"code-path":"src\\App.tsx:93:7"}),u.jsx(q5,{"code-path":"src\\App.tsx:96:7"}),u.jsx($5,{"code-path":"src\\App.tsx:97:7"}),u.jsx(t3,{"code-path":"src\\App.tsx:98:7"}),u.jsx(L5,{"code-path":"src\\App.tsx:101:7"})]}),r3=()=>{const{selectedProject:s,setStage:o}=sa();return u.jsxs("div",{"code-path":"src\\App.tsx:111:5",className:"fixed inset-x-0 top-0 z-[5] pointer-events-none",children:[u.jsxs("div",{"code-path":"src\\App.tsx:113:7",className:"absolute top-8 left-8 flex items-center gap-4 pointer-events-auto",children:[u.jsx("button",{"code-path":"src\\App.tsx:114:9",type:"button",onClick:()=>o("nexus"),className:"text-xs font-semibold tracking-[0.15em] uppercase opacity-60 hover:opacity-100 transition-opacity duration-300",children:"Astral Suite"}),s&&u.jsxs(u.Fragment,{children:[u.jsx("span",{"code-path":"src\\App.tsx:123:13",className:"text-xs opacity-30",children:"/"}),u.jsx("span",{"code-path":"src\\App.tsx:124:13",className:"text-xs font-medium",children:s.name})]})]}),u.jsx("div",{"code-path":"src\\App.tsx:130:7",className:"absolute top-6 right-8 pointer-events-auto",children:u.jsx(fx,{"code-path":"src\\App.tsx:131:9"})})]})};b1.createRoot(document.getElementById("root")).render(u.jsx(y.StrictMode,{"code-path":"src\\main.tsx:8:3",children:u.jsx(N1,{"code-path":"src\\main.tsx:9:5",children:u.jsx(c3,{"code-path":"src\\main.tsx:10:7"})})}));