(function(){const j=document.createElement("link").relList;if(j&&j.supports&&j.supports("modulepreload"))return;for(const A of document.querySelectorAll('link[rel="modulepreload"]'))d(A);new MutationObserver(A=>{for(const w of A)if(w.type==="childList")for(const O of w.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&d(O)}).observe(document,{childList:!0,subtree:!0});function _(A){const w={};return A.integrity&&(w.integrity=A.integrity),A.referrerPolicy&&(w.referrerPolicy=A.referrerPolicy),A.crossOrigin==="use-credentials"?w.credentials="include":A.crossOrigin==="anonymous"?w.credentials="omit":w.credentials="same-origin",w}function d(A){if(A.ep)return;A.ep=!0;const w=_(A);fetch(A.href,w)}})();function Zr(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var hs={exports:{}},_n={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mr;function jh(){if(Mr)return _n;Mr=1;var o=Symbol.for("react.transitional.element"),j=Symbol.for("react.fragment");function _(d,A,w){var O=null;if(w!==void 0&&(O=""+w),A.key!==void 0&&(O=""+A.key),"key"in A){w={};for(var M in A)M!=="key"&&(w[M]=A[M])}else w=A;return A=w.ref,{$$typeof:o,type:d,key:O,ref:A!==void 0?A:null,props:w}}return _n.Fragment=j,_n.jsx=_,_n.jsxs=_,_n}var wr;function Nh(){return wr||(wr=1,hs.exports=jh()),hs.exports}var u=Nh(),vs={exports:{}},J={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Or;function Sh(){if(Or)return J;Or=1;var o=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),O=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),V=Symbol.iterator;function fl(m){return m===null||typeof m!="object"?null:(m=V&&m[V]||m["@@iterator"],typeof m=="function"?m:null)}var pl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xl=Object.assign,$l={};function wl(m,E,C){this.props=m,this.context=E,this.refs=$l,this.updater=C||pl}wl.prototype.isReactComponent={},wl.prototype.setState=function(m,E){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,E,"setState")},wl.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function Gl(){}Gl.prototype=wl.prototype;function yl(m,E,C){this.props=m,this.context=E,this.refs=$l,this.updater=C||pl}var _l=yl.prototype=new Gl;_l.constructor=yl,xl(_l,wl.prototype),_l.isPureReactComponent=!0;var Cl=Array.isArray;function zl(){}var K={H:null,A:null,T:null,S:null},Al=Object.prototype.hasOwnProperty;function Wl(m,E,C){var R=C.ref;return{$$typeof:o,type:m,key:E,ref:R!==void 0?R:null,props:C}}function Y(m,E){return Wl(m.type,E,m.props)}function I(m){return typeof m=="object"&&m!==null&&m.$$typeof===o}function G(m){var E={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(C){return E[C]})}var jl=/\/+/g;function Hl(m,E){return typeof m=="object"&&m!==null&&m.key!=null?G(""+m.key):E.toString(36)}function Il(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(zl,zl):(m.status="pending",m.then(function(E){m.status==="pending"&&(m.status="fulfilled",m.value=E)},function(E){m.status==="pending"&&(m.status="rejected",m.reason=E)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function p(m,E,C,R,$){var P=typeof m;(P==="undefined"||P==="boolean")&&(m=null);var sl=!1;if(m===null)sl=!0;else switch(P){case"bigint":case"string":case"number":sl=!0;break;case"object":switch(m.$$typeof){case o:case j:sl=!0;break;case B:return sl=m._init,p(sl(m._payload),E,C,R,$)}}if(sl)return $=$(m),sl=R===""?"."+Hl(m,0):R,Cl($)?(C="",sl!=null&&(C=sl.replace(jl,"$&/")+"/"),p($,E,C,"",function(Oa){return Oa})):$!=null&&(I($)&&($=Y($,C+($.key==null||m&&m.key===$.key?"":(""+$.key).replace(jl,"$&/")+"/")+sl)),E.push($)),1;sl=0;var Pl=R===""?".":R+":";if(Cl(m))for(var Ol=0;Ol>>1,gl=p[rl];if(0>>1;rlA(C,k))RA($,C)?(p[rl]=$,p[R]=k,rl=R):(p[rl]=C,p[E]=k,rl=E);else if(RA($,k))p[rl]=$,p[R]=k,rl=R;else break l}}return D}function A(p,D){var k=p.sortIndex-D.sortIndex;return k!==0?k:p.id-D.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var w=performance;o.unstable_now=function(){return w.now()}}else{var O=Date,M=O.now();o.unstable_now=function(){return O.now()-M}}var T=[],y=[],B=1,U=null,V=3,fl=!1,pl=!1,xl=!1,$l=!1,wl=typeof setTimeout=="function"?setTimeout:null,Gl=typeof clearTimeout=="function"?clearTimeout:null,yl=typeof setImmediate<"u"?setImmediate:null;function _l(p){for(var D=_(y);D!==null;){if(D.callback===null)d(y);else if(D.startTime<=p)d(y),D.sortIndex=D.expirationTime,j(T,D);else break;D=_(y)}}function Cl(p){if(xl=!1,_l(p),!pl)if(_(T)!==null)pl=!0,zl||(zl=!0,G());else{var D=_(y);D!==null&&Il(Cl,D.startTime-p)}}var zl=!1,K=-1,Al=5,Wl=-1;function Y(){return $l?!0:!(o.unstable_now()-Wlp&&Y());){var rl=U.callback;if(typeof rl=="function"){U.callback=null,V=U.priorityLevel;var gl=rl(U.expirationTime<=p);if(p=o.unstable_now(),typeof gl=="function"){U.callback=gl,_l(p),D=!0;break e}U===_(T)&&d(T),_l(p)}else d(T);U=_(T)}if(U!==null)D=!0;else{var m=_(y);m!==null&&Il(Cl,m.startTime-p),D=!1}}break l}finally{U=null,V=k,fl=!1}D=void 0}}finally{D?G():zl=!1}}}var G;if(typeof yl=="function")G=function(){yl(I)};else if(typeof MessageChannel<"u"){var jl=new MessageChannel,Hl=jl.port2;jl.port1.onmessage=I,G=function(){Hl.postMessage(null)}}else G=function(){wl(I,0)};function Il(p,D){K=wl(function(){p(o.unstable_now())},D)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(p){p.callback=null},o.unstable_forceFrameRate=function(p){0>p||125rl?(p.sortIndex=k,j(y,p),_(T)===null&&p===_(y)&&(xl?(Gl(K),K=-1):xl=!0,Il(Cl,k-rl))):(p.sortIndex=gl,j(T,p),pl||fl||(pl=!0,zl||(zl=!0,G()))),p},o.unstable_shouldYield=Y,o.unstable_wrapCallback=function(p){var D=V;return function(){var k=V;V=D;try{return p.apply(this,arguments)}finally{V=k}}}})(gs)),gs}var Cr;function Ah(){return Cr||(Cr=1,ys.exports=Eh()),ys.exports}var bs={exports:{}},Fl={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Hr;function Th(){if(Hr)return Fl;Hr=1;var o=Ns();function j(T){var y="https://react.dev/errors/"+T;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(j){console.error(j)}}return o(),bs.exports=Th(),bs.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var qr;function wh(){if(qr)return En;qr=1;var o=Ah(),j=Ns(),_=Mh();function d(l){var e="https://react.dev/errors/"+l;if(1gl||(l.current=rl[gl],rl[gl]=null,gl--)}function C(l,e){gl++,rl[gl]=l.current,l.current=e}var R=m(null),$=m(null),P=m(null),sl=m(null);function Pl(l,e){switch(C(P,e),C($,l),C(R,null),e.nodeType){case 9:case 11:l=(l=e.documentElement)&&(l=l.namespaceURI)?Id(l):0;break;default:if(l=e.tagName,e=e.namespaceURI)e=Id(e),l=Pd(e,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}E(R),C(R,l)}function Ol(){E(R),E($),E(P)}function Oa(l){l.memoizedState!==null&&C(sl,l);var e=R.current,t=Pd(e,l.type);e!==t&&(C($,l),C(R,t))}function Mn(l){$.current===l&&(E(R),E($)),sl.current===l&&(E(sl),zn._currentValue=k)}var Wi,Es;function At(l){if(Wi===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);Wi=e&&e[1]||"",Es=-1)":-1n||f[a]!==x[n]){var z=` `+f[a].replace(" at new "," at ");return l.displayName&&z.includes("")&&(z=z.replace("",l.displayName)),z}while(1<=a&&0<=n);break}}}finally{Fi=!1,Error.prepareStackTrace=t}return(t=l?l.displayName||l.name:"")?At(t):""}function Pr(l,e){switch(l.tag){case 26:case 27:case 5:return At(l.type);case 16:return At("Lazy");case 13:return l.child!==e&&e!==null?At("Suspense Fallback"):At("Suspense");case 19:return At("SuspenseList");case 0:case 15:return Ii(l.type,!1);case 11:return Ii(l.type.render,!1);case 1:return Ii(l.type,!0);case 31:return At("Activity");default:return""}}function As(l){try{var e="",t=null;do e+=Pr(l,t),t=l,l=l.return;while(l);return e}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var Pi=Object.prototype.hasOwnProperty,lu=o.unstable_scheduleCallback,eu=o.unstable_cancelCallback,l0=o.unstable_shouldYield,e0=o.unstable_requestPaint,fe=o.unstable_now,t0=o.unstable_getCurrentPriorityLevel,Ts=o.unstable_ImmediatePriority,Ms=o.unstable_UserBlockingPriority,wn=o.unstable_NormalPriority,a0=o.unstable_LowPriority,ws=o.unstable_IdlePriority,n0=o.log,i0=o.unstable_setDisableYieldValue,Ua=null,oe=null;function et(l){if(typeof n0=="function"&&i0(l),oe&&typeof oe.setStrictMode=="function")try{oe.setStrictMode(Ua,l)}catch{}}var de=Math.clz32?Math.clz32:s0,u0=Math.log,c0=Math.LN2;function s0(l){return l>>>=0,l===0?32:31-(u0(l)/c0|0)|0}var On=256,Un=262144,Dn=4194304;function Tt(l){var e=l&42;if(e!==0)return e;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Cn(l,e,t){var a=l.pendingLanes;if(a===0)return 0;var n=0,i=l.suspendedLanes,c=l.pingedLanes;l=l.warmLanes;var s=a&134217727;return s!==0?(a=s&~i,a!==0?n=Tt(a):(c&=s,c!==0?n=Tt(c):t||(t=s&~l,t!==0&&(n=Tt(t))))):(s=a&~i,s!==0?n=Tt(s):c!==0?n=Tt(c):t||(t=a&~l,t!==0&&(n=Tt(t)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,t=e&-e,i>=t||i===32&&(t&4194048)!==0)?e:n}function Da(l,e){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&e)===0}function f0(l,e){switch(l){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Os(){var l=Dn;return Dn<<=1,(Dn&62914560)===0&&(Dn=4194304),l}function tu(l){for(var e=[],t=0;31>t;t++)e.push(l);return e}function Ca(l,e){l.pendingLanes|=e,e!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function o0(l,e,t,a,n,i){var c=l.pendingLanes;l.pendingLanes=t,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=t,l.entangledLanes&=t,l.errorRecoveryDisabledLanes&=t,l.shellSuspendCounter=0;var s=l.entanglements,f=l.expirationTimes,x=l.hiddenUpdates;for(t=c&~t;0"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var x0=/[\n"\\]/g;function pe(l){return l.replace(x0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function su(l,e,t,a,n,i,c,s){l.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.type=c:l.removeAttribute("type"),e!=null?c==="number"?(e===0&&l.value===""||l.value!=e)&&(l.value=""+be(e)):l.value!==""+be(e)&&(l.value=""+be(e)):c!=="submit"&&c!=="reset"||l.removeAttribute("value"),e!=null?fu(l,c,be(e)):t!=null?fu(l,c,be(t)):a!=null&&l.removeAttribute("value"),n==null&&i!=null&&(l.defaultChecked=!!i),n!=null&&(l.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?l.name=""+be(s):l.removeAttribute("name")}function Zs(l,e,t,a,n,i,c,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.type=i),e!=null||t!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){cu(l);return}t=t!=null?""+be(t):"",e=e!=null?""+be(e):t,s||e===l.value||(l.value=e),l.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=s?l.checked:!!a,l.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(l.name=c),cu(l)}function fu(l,e,t){e==="number"&&qn(l.ownerDocument)===l||l.defaultValue===""+t||(l.defaultValue=""+t)}function It(l,e,t,a){if(l=l.options,e){e={};for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hu=!1;if(Ye)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){hu=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{hu=!1}var at=null,vu=null,Yn=null;function Fs(){if(Yn)return Yn;var l,e=vu,t=e.length,a,n="value"in at?at.value:at.textContent,i=n.length;for(l=0;l=Qa),af=" ",nf=!1;function uf(l,e){switch(l){case"keyup":return Z0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ta=!1;function k0(l,e){switch(l){case"compositionend":return cf(e);case"keypress":return e.which!==32?null:(nf=!0,af);case"textInput":return l=e.data,l===af&&nf?null:l;default:return null}}function K0(l,e){if(ta)return l==="compositionend"||!pu&&uf(l,e)?(l=Fs(),Yn=vu=at=null,ta=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-l};l=a}l:{for(;t;){if(t.nextSibling){t=t.nextSibling;break l}t=t.parentNode}t=void 0}t=vf(t)}}function yf(l,e){return l&&e?l===e?!0:l&&l.nodeType===3?!1:e&&e.nodeType===3?yf(l,e.parentNode):"contains"in l?l.contains(e):l.compareDocumentPosition?!!(l.compareDocumentPosition(e)&16):!1:!1}function gf(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var e=qn(l.document);e instanceof l.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)l=e.contentWindow;else break;e=qn(l.document)}return e}function Nu(l){var e=l&&l.nodeName&&l.nodeName.toLowerCase();return e&&(e==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||e==="textarea"||l.contentEditable==="true")}var em=Ye&&"documentMode"in document&&11>=document.documentMode,aa=null,Su=null,Va=null,_u=!1;function bf(l,e,t){var a=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;_u||aa==null||aa!==qn(a)||(a=aa,"selectionStart"in a&&Nu(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}),Va&&Za(Va,a)||(Va=a,a=Ui(Su,"onSelect"),0>=c,n-=c,De=1<<32-de(e)+n|t<F?(al=q,q=null):al=q.sibling;var ul=g(h,q,v[F],N);if(ul===null){q===null&&(q=al);break}l&&q&&ul.alternate===null&&e(h,q),r=i(ul,r,F),il===null?Q=ul:il.sibling=ul,il=ul,q=al}if(F===v.length)return t(h,q),nl&&Qe(h,F),Q;if(q===null){for(;FF?(al=q,q=null):al=q.sibling;var _t=g(h,q,ul.value,N);if(_t===null){q===null&&(q=al);break}l&&q&&_t.alternate===null&&e(h,q),r=i(_t,r,F),il===null?Q=_t:il.sibling=_t,il=_t,q=al}if(ul.done)return t(h,q),nl&&Qe(h,F),Q;if(q===null){for(;!ul.done;F++,ul=v.next())ul=S(h,ul.value,N),ul!==null&&(r=i(ul,r,F),il===null?Q=ul:il.sibling=ul,il=ul);return nl&&Qe(h,F),Q}for(q=a(q);!ul.done;F++,ul=v.next())ul=b(q,h,F,ul.value,N),ul!==null&&(l&&ul.alternate!==null&&q.delete(ul.key===null?F:ul.key),r=i(ul,r,F),il===null?Q=ul:il.sibling=ul,il=ul);return l&&q.forEach(function(zh){return e(h,zh)}),nl&&Qe(h,F),Q}function vl(h,r,v,N){if(typeof v=="object"&&v!==null&&v.type===xl&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case fl:l:{for(var Q=v.key;r!==null;){if(r.key===Q){if(Q=v.type,Q===xl){if(r.tag===7){t(h,r.sibling),N=n(r,v.props.children),N.return=h,h=N;break l}}else if(r.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Al&&Yt(Q)===r.type){t(h,r.sibling),N=n(r,v.props),Fa(N,v),N.return=h,h=N;break l}t(h,r);break}else e(h,r);r=r.sibling}v.type===xl?(N=Ct(v.props.children,h.mode,N,v.key),N.return=h,h=N):(N=$n(v.type,v.key,v.props,null,h.mode,N),Fa(N,v),N.return=h,h=N)}return c(h);case pl:l:{for(Q=v.key;r!==null;){if(r.key===Q)if(r.tag===4&&r.stateNode.containerInfo===v.containerInfo&&r.stateNode.implementation===v.implementation){t(h,r.sibling),N=n(r,v.children||[]),N.return=h,h=N;break l}else{t(h,r);break}else e(h,r);r=r.sibling}N=Uu(v,h.mode,N),N.return=h,h=N}return c(h);case Al:return v=Yt(v),vl(h,r,v,N)}if(Il(v))return H(h,r,v,N);if(G(v)){if(Q=G(v),typeof Q!="function")throw Error(d(150));return v=Q.call(v),L(h,r,v,N)}if(typeof v.then=="function")return vl(h,r,ti(v),N);if(v.$$typeof===yl)return vl(h,r,In(h,v),N);ai(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,r!==null&&r.tag===6?(t(h,r.sibling),N=n(r,v),N.return=h,h=N):(t(h,r),N=Ou(v,h.mode,N),N.return=h,h=N),c(h)):t(h,r)}return function(h,r,v,N){try{Wa=0;var Q=vl(h,r,v,N);return ha=null,Q}catch(q){if(q===ma||q===li)throw q;var il=me(29,q,null,h.mode);return il.lanes=N,il.return=h,il}finally{}}}var Qt=Xf(!0),Lf=Xf(!1),st=!1;function Zu(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vu(l,e){l=l.updateQueue,e.updateQueue===l&&(e.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ft(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function ot(l,e,t){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(cl&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Jn(l),Ef(l,null,t),e}return Kn(l,a,e,t),Jn(l)}function Ia(l,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194048)!==0)){var a=e.lanes;a&=l.pendingLanes,t|=a,e.lanes=t,Ds(l,t)}}function ku(l,e){var t=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,t===a)){var n=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var c={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,t=t.next}while(t!==null);i===null?n=i=e:i=i.next=e}else n=i=e;t={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},l.updateQueue=t;return}l=t.lastBaseUpdate,l===null?t.firstBaseUpdate=e:l.next=e,t.lastBaseUpdate=e}var Ku=!1;function Pa(){if(Ku){var l=ra;if(l!==null)throw l}}function ln(l,e,t,a){Ku=!1;var n=l.updateQueue;st=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var f=s,x=f.next;f.next=null,c===null?i=x:c.next=x,c=f;var z=l.alternate;z!==null&&(z=z.updateQueue,s=z.lastBaseUpdate,s!==c&&(s===null?z.firstBaseUpdate=x:s.next=x,z.lastBaseUpdate=f))}if(i!==null){var S=n.baseState;c=0,z=x=f=null,s=i;do{var g=s.lane&-536870913,b=g!==s.lane;if(b?(tl&g)===g:(a&g)===g){g!==0&&g===da&&(Ku=!0),z!==null&&(z=z.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});l:{var H=l,L=s;g=e;var vl=t;switch(L.tag){case 1:if(H=L.payload,typeof H=="function"){S=H.call(vl,S,g);break l}S=H;break l;case 3:H.flags=H.flags&-65537|128;case 0:if(H=L.payload,g=typeof H=="function"?H.call(vl,S,g):H,g==null)break l;S=U({},S,g);break l;case 2:st=!0}}g=s.callback,g!==null&&(l.flags|=64,b&&(l.flags|=8192),b=n.callbacks,b===null?n.callbacks=[g]:b.push(g))}else b={lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},z===null?(x=z=b,f=S):z=z.next=b,c|=g;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;b=s,s=b.next,b.next=null,n.lastBaseUpdate=b,n.shared.pending=null}}while(!0);z===null&&(f=S),n.baseState=f,n.firstBaseUpdate=x,n.lastBaseUpdate=z,i===null&&(n.shared.lanes=0),vt|=c,l.lanes=c,l.memoizedState=S}}function Zf(l,e){if(typeof l!="function")throw Error(d(191,l));l.call(e)}function Vf(l,e){var t=l.callbacks;if(t!==null)for(l.callbacks=null,l=0;li?i:8;var c=p.T,s={};p.T=s,rc(l,!1,e,t);try{var f=n(),x=p.S;if(x!==null&&x(s,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var z=om(f,a);an(l,e,z,ge(l))}else an(l,e,a,ge(l))}catch(S){an(l,e,{then:function(){},status:"rejected",reason:S},ge())}finally{D.p=i,c!==null&&s.types!==null&&(c.types=s.types),p.T=c}}function xm(){}function oc(l,e,t,a){if(l.tag!==5)throw Error(d(476));var n=So(l).queue;No(l,n,e,k,t===null?xm:function(){return _o(l),t(a)})}function So(l){var e=l.memoizedState;if(e!==null)return e;e={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ve,lastRenderedState:k},next:null};var t={};return e.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ve,lastRenderedState:t},next:null},l.memoizedState=e,l=l.alternate,l!==null&&(l.memoizedState=e),e}function _o(l){var e=So(l);e.next===null&&(e=l.alternate.memoizedState),an(l,e.next.queue,{},ge())}function dc(){return kl(zn)}function Eo(){return Dl().memoizedState}function Ao(){return Dl().memoizedState}function ym(l){for(var e=l.return;e!==null;){switch(e.tag){case 24:case 3:var t=ge();l=ft(t);var a=ot(e,l,t);a!==null&&(ce(a,e,t),Ia(a,e,t)),e={cache:Gu()},l.payload=e;return}e=e.return}}function gm(l,e,t){var a=ge();t={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},mi(l)?Mo(e,t):(t=Mu(l,e,t,a),t!==null&&(ce(t,l,a),wo(t,e,a)))}function To(l,e,t){var a=ge();an(l,e,t,a)}function an(l,e,t,a){var n={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(mi(l))Mo(e,n);else{var i=l.alternate;if(l.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var c=e.lastRenderedState,s=i(c,t);if(n.hasEagerState=!0,n.eagerState=s,re(s,c))return Kn(l,e,n,0),bl===null&&kn(),!1}catch{}finally{}if(t=Mu(l,e,n,a),t!==null)return ce(t,l,a),wo(t,e,a),!0}return!1}function rc(l,e,t,a){if(a={lane:2,revertLane:Zc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mi(l)){if(e)throw Error(d(479))}else e=Mu(l,t,a,2),e!==null&&ce(e,l,2)}function mi(l){var e=l.alternate;return l===W||e!==null&&e===W}function Mo(l,e){xa=ui=!0;var t=l.pending;t===null?e.next=e:(e.next=t.next,t.next=e),l.pending=e}function wo(l,e,t){if((t&4194048)!==0){var a=e.lanes;a&=l.pendingLanes,t|=a,e.lanes=t,Ds(l,t)}}var nn={readContext:kl,use:fi,useCallback:Tl,useContext:Tl,useEffect:Tl,useImperativeHandle:Tl,useLayoutEffect:Tl,useInsertionEffect:Tl,useMemo:Tl,useReducer:Tl,useRef:Tl,useState:Tl,useDebugValue:Tl,useDeferredValue:Tl,useTransition:Tl,useSyncExternalStore:Tl,useId:Tl,useHostTransitionStatus:Tl,useFormState:Tl,useActionState:Tl,useOptimistic:Tl,useMemoCache:Tl,useCacheRefresh:Tl};nn.useEffectEvent=Tl;var Oo={readContext:kl,use:fi,useCallback:function(l,e){return le().memoizedState=[l,e===void 0?null:e],l},useContext:kl,useEffect:ho,useImperativeHandle:function(l,e,t){t=t!=null?t.concat([l]):null,di(4194308,4,go.bind(null,e,l),t)},useLayoutEffect:function(l,e){return di(4194308,4,l,e)},useInsertionEffect:function(l,e){di(4,2,l,e)},useMemo:function(l,e){var t=le();e=e===void 0?null:e;var a=l();if(Xt){et(!0);try{l()}finally{et(!1)}}return t.memoizedState=[a,e],a},useReducer:function(l,e,t){var a=le();if(t!==void 0){var n=t(e);if(Xt){et(!0);try{t(e)}finally{et(!1)}}}else n=e;return a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:n},a.queue=l,l=l.dispatch=gm.bind(null,W,l),[a.memoizedState,l]},useRef:function(l){var e=le();return l={current:l},e.memoizedState=l},useState:function(l){l=ic(l);var e=l.queue,t=To.bind(null,W,e);return e.dispatch=t,[l.memoizedState,t]},useDebugValue:sc,useDeferredValue:function(l,e){var t=le();return fc(t,l,e)},useTransition:function(){var l=ic(!1);return l=No.bind(null,W,l.queue,!0,!1),le().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,e,t){var a=W,n=le();if(nl){if(t===void 0)throw Error(d(407));t=t()}else{if(t=e(),bl===null)throw Error(d(349));(tl&127)!==0||Ff(a,e,t)}n.memoizedState=t;var i={value:t,getSnapshot:e};return n.queue=i,ho(Pf.bind(null,a,i,l),[l]),a.flags|=2048,ga(9,{destroy:void 0},If.bind(null,a,i,t,e),null),t},useId:function(){var l=le(),e=bl.identifierPrefix;if(nl){var t=Ce,a=De;t=(a&~(1<<32-de(a)-1)).toString(32)+t,e="_"+e+"R_"+t,t=ci++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Zl]=e,i[ee]=a;l:for(c=e.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break l;for(;c.sibling===null;){if(c.return===null||c.return===e)break l;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=i;l:switch(Jl(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&Ke(e)}}return Sl(e),Ec(e,e.type,l===null?null:l.memoizedProps,e.pendingProps,t),null;case 6:if(l&&e.stateNode!=null)l.memoizedProps!==a&&Ke(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(d(166));if(l=P.current,fa(e)){if(l=e.stateNode,t=e.memoizedProps,a=null,n=Vl,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[Zl]=e,l=!!(l.nodeValue===t||a!==null&&a.suppressHydrationWarning===!0||Wd(l.nodeValue,t)),l||ut(e,!0)}else l=Di(l).createTextNode(a),l[Zl]=e,e.stateNode=l}return Sl(e),null;case 31:if(t=e.memoizedState,l===null||l.memoizedState!==null){if(a=fa(e),t!==null){if(l===null){if(!a)throw Error(d(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(d(557));l[Zl]=e}else Ht(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Sl(e),l=!1}else t=Ru(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=t),l=!0;if(!l)return e.flags&256?(ve(e),e):(ve(e),null);if((e.flags&128)!==0)throw Error(d(558))}return Sl(e),null;case 13:if(a=e.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=fa(e),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(d(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(d(317));n[Zl]=e}else Ht(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Sl(e),n=!1}else n=Ru(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ve(e),e):(ve(e),null)}return ve(e),(e.flags&128)!==0?(e.lanes=t,e):(t=a!==null,l=l!==null&&l.memoizedState!==null,t&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),t!==l&&t&&(e.child.flags|=8192),gi(e,e.updateQueue),Sl(e),null);case 4:return Ol(),l===null&&Jc(e.stateNode.containerInfo),Sl(e),null;case 10:return Le(e.type),Sl(e),null;case 19:if(E(Ul),a=e.memoizedState,a===null)return Sl(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)cn(a,!1);else{if(Ml!==0||l!==null&&(l.flags&128)!==0)for(l=e.child;l!==null;){if(i=ii(l),i!==null){for(e.flags|=128,cn(a,!1),l=i.updateQueue,e.updateQueue=l,gi(e,l),e.subtreeFlags=0,l=t,t=e.child;t!==null;)Af(t,l),t=t.sibling;return C(Ul,Ul.current&1|2),nl&&Qe(e,a.treeForkCount),e.child}l=l.sibling}a.tail!==null&&fe()>Ni&&(e.flags|=128,n=!0,cn(a,!1),e.lanes=4194304)}else{if(!n)if(l=ii(i),l!==null){if(e.flags|=128,n=!0,l=l.updateQueue,e.updateQueue=l,gi(e,l),cn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!nl)return Sl(e),null}else 2*fe()-a.renderingStartTime>Ni&&t!==536870912&&(e.flags|=128,n=!0,cn(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(l=a.last,l!==null?l.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=fe(),l.sibling=null,t=Ul.current,C(Ul,n?t&1|2:t&1),nl&&Qe(e,a.treeForkCount),l):(Sl(e),null);case 22:case 23:return ve(e),$u(),a=e.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(t&536870912)!==0&&(e.flags&128)===0&&(Sl(e),e.subtreeFlags&6&&(e.flags|=8192)):Sl(e),t=e.updateQueue,t!==null&&gi(e,t.retryQueue),t=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==t&&(e.flags|=2048),l!==null&&E(Bt),null;case 24:return t=null,l!==null&&(t=l.memoizedState.cache),e.memoizedState.cache!==t&&(e.flags|=2048),Le(Rl),Sl(e),null;case 25:return null;case 30:return null}throw Error(d(156,e.tag))}function Nm(l,e){switch(Cu(e),e.tag){case 1:return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 3:return Le(Rl),Ol(),l=e.flags,(l&65536)!==0&&(l&128)===0?(e.flags=l&-65537|128,e):null;case 26:case 27:case 5:return Mn(e),null;case 31:if(e.memoizedState!==null){if(ve(e),e.alternate===null)throw Error(d(340));Ht()}return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 13:if(ve(e),l=e.memoizedState,l!==null&&l.dehydrated!==null){if(e.alternate===null)throw Error(d(340));Ht()}return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 19:return E(Ul),null;case 4:return Ol(),null;case 10:return Le(e.type),null;case 22:case 23:return ve(e),$u(),l!==null&&E(Bt),l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 24:return Le(Rl),null;case 25:return null;default:return null}}function ed(l,e){switch(Cu(e),e.tag){case 3:Le(Rl),Ol();break;case 26:case 27:case 5:Mn(e);break;case 4:Ol();break;case 31:e.memoizedState!==null&&ve(e);break;case 13:ve(e);break;case 19:E(Ul);break;case 10:Le(e.type);break;case 22:case 23:ve(e),$u(),l!==null&&E(Bt);break;case 24:Le(Rl)}}function sn(l,e){try{var t=e.updateQueue,a=t!==null?t.lastEffect:null;if(a!==null){var n=a.next;t=n;do{if((t.tag&l)===l){a=void 0;var i=t.create,c=t.inst;a=i(),c.destroy=a}t=t.next}while(t!==n)}}catch(s){dl(e,e.return,s)}}function mt(l,e,t){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&l)===l){var c=a.inst,s=c.destroy;if(s!==void 0){c.destroy=void 0,n=e;var f=t,x=s;try{x()}catch(z){dl(n,f,z)}}}a=a.next}while(a!==i)}}catch(z){dl(e,e.return,z)}}function td(l){var e=l.updateQueue;if(e!==null){var t=l.stateNode;try{Vf(e,t)}catch(a){dl(l,l.return,a)}}}function ad(l,e,t){t.props=Lt(l.type,l.memoizedProps),t.state=l.memoizedState;try{t.componentWillUnmount()}catch(a){dl(l,e,a)}}function fn(l,e){try{var t=l.ref;if(t!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof t=="function"?l.refCleanup=t(a):t.current=a}}catch(n){dl(l,e,n)}}function He(l,e){var t=l.ref,a=l.refCleanup;if(t!==null)if(typeof a=="function")try{a()}catch(n){dl(l,e,n)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(n){dl(l,e,n)}else t.current=null}function nd(l){var e=l.type,t=l.memoizedProps,a=l.stateNode;try{l:switch(e){case"button":case"input":case"select":case"textarea":t.autoFocus&&a.focus();break l;case"img":t.src?a.src=t.src:t.srcSet&&(a.srcset=t.srcSet)}}catch(n){dl(l,l.return,n)}}function Ac(l,e,t){try{var a=l.stateNode;Vm(a,l.type,t,e),a[ee]=e}catch(n){dl(l,l.return,n)}}function id(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&pt(l.type)||l.tag===4}function Tc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||id(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&pt(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Mc(l,e,t){var a=l.tag;if(a===5||a===6)l=l.stateNode,e?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(l,e):(e=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.appendChild(l),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Be));else if(a!==4&&(a===27&&pt(l.type)&&(t=l.stateNode,e=null),l=l.child,l!==null))for(Mc(l,e,t),l=l.sibling;l!==null;)Mc(l,e,t),l=l.sibling}function bi(l,e,t){var a=l.tag;if(a===5||a===6)l=l.stateNode,e?t.insertBefore(l,e):t.appendChild(l);else if(a!==4&&(a===27&&pt(l.type)&&(t=l.stateNode),l=l.child,l!==null))for(bi(l,e,t),l=l.sibling;l!==null;)bi(l,e,t),l=l.sibling}function ud(l){var e=l.stateNode,t=l.memoizedProps;try{for(var a=l.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Jl(e,a,t),e[Zl]=l,e[ee]=t}catch(i){dl(l,l.return,i)}}var Je=!1,Yl=!1,wc=!1,cd=typeof WeakSet=="function"?WeakSet:Set,Ll=null;function Sm(l,e){if(l=l.containerInfo,Fc=Gi,l=gf(l),Nu(l)){if("selectionStart"in l)var t={start:l.selectionStart,end:l.selectionEnd};else l:{t=(t=l.ownerDocument)&&t.defaultView||window;var a=t.getSelection&&t.getSelection();if(a&&a.rangeCount!==0){t=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break l}var c=0,s=-1,f=-1,x=0,z=0,S=l,g=null;e:for(;;){for(var b;S!==t||n!==0&&S.nodeType!==3||(s=c+n),S!==i||a!==0&&S.nodeType!==3||(f=c+a),S.nodeType===3&&(c+=S.nodeValue.length),(b=S.firstChild)!==null;)g=S,S=b;for(;;){if(S===l)break e;if(g===t&&++x===n&&(s=c),g===i&&++z===a&&(f=c),(b=S.nextSibling)!==null)break;S=g,g=S.parentNode}S=b}t=s===-1||f===-1?null:{start:s,end:f}}else t=null}t=t||{start:0,end:0}}else t=null;for(Ic={focusedElem:l,selectionRange:t},Gi=!1,Ll=e;Ll!==null;)if(e=Ll,l=e.child,(e.subtreeFlags&1028)!==0&&l!==null)l.return=e,Ll=l;else for(;Ll!==null;){switch(e=Ll,i=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(t=0;t title"))),Jl(i,a,t),i[Zl]=l,Xl(i),a=i;break l;case"link":var c=mr("link","href",n).get(a+(t.href||""));if(c){for(var s=0;svl&&(c=vl,vl=L,L=c);var h=xf(s,L),r=xf(s,vl);if(h&&r&&(b.rangeCount!==1||b.anchorNode!==h.node||b.anchorOffset!==h.offset||b.focusNode!==r.node||b.focusOffset!==r.offset)){var v=S.createRange();v.setStart(h.node,h.offset),b.removeAllRanges(),L>vl?(b.addRange(v),b.extend(r.node,r.offset)):(v.setEnd(r.node,r.offset),b.addRange(v))}}}}for(S=[],b=s;b=b.parentNode;)b.nodeType===1&&S.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;st?32:t,p.T=null,t=qc,qc=null;var i=yt,c=Pe;if(Ql=0,Na=yt=null,Pe=0,(cl&6)!==0)throw Error(d(331));var s=cl;if(cl|=4,gd(i.current),vd(i,i.current,c,t),cl=s,vn(0,!1),oe&&typeof oe.onPostCommitFiberRoot=="function")try{oe.onPostCommitFiberRoot(Ua,i)}catch{}return!0}finally{D.p=n,p.T=a,Rd(l,e)}}function Bd(l,e,t){e=je(t,e),e=xc(l.stateNode,e,2),l=ot(l,e,2),l!==null&&(Ca(l,2),Re(l))}function dl(l,e,t){if(l.tag===3)Bd(l,l,t);else for(;e!==null;){if(e.tag===3){Bd(e,l,t);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(xt===null||!xt.has(a))){l=je(t,l),t=Yo(2),a=ot(e,t,2),a!==null&&(Go(t,a,e,l),Ca(a,2),Re(a));break}}e=e.return}}function Qc(l,e,t){var a=l.pingCache;if(a===null){a=l.pingCache=new Am;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(t)||(Dc=!0,n.add(t),l=Um.bind(null,l,e,t),e.then(l,l))}function Um(l,e,t){var a=l.pingCache;a!==null&&a.delete(e),l.pingedLanes|=l.suspendedLanes&t,l.warmLanes&=~t,bl===l&&(tl&t)===t&&(Ml===4||Ml===3&&(tl&62914560)===tl&&300>fe()-ji?(cl&2)===0&&Sa(l,0):Cc|=t,ja===tl&&(ja=0)),Re(l)}function Yd(l,e){e===0&&(e=Os()),l=Dt(l,e),l!==null&&(Ca(l,e),Re(l))}function Dm(l){var e=l.memoizedState,t=0;e!==null&&(t=e.retryLane),Yd(l,t)}function Cm(l,e){var t=0;switch(l.tag){case 31:case 13:var a=l.stateNode,n=l.memoizedState;n!==null&&(t=n.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(d(314))}a!==null&&a.delete(e),Yd(l,t)}function Hm(l,e){return lu(l,e)}var Mi=null,Ea=null,Xc=!1,wi=!1,Lc=!1,bt=0;function Re(l){l!==Ea&&l.next===null&&(Ea===null?Mi=Ea=l:Ea=Ea.next=l),wi=!0,Xc||(Xc=!0,qm())}function vn(l,e){if(!Lc&&wi){Lc=!0;do for(var t=!1,a=Mi;a!==null;){if(l!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,s=a.pingedLanes;i=(1<<31-de(42|l)+1)-1,i&=n&~(c&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(t=!0,Ld(a,i))}else i=tl,i=Cn(a,a===bl?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Da(a,i)||(t=!0,Ld(a,i));a=a.next}while(t);Lc=!1}}function Rm(){Gd()}function Gd(){wi=Xc=!1;var l=0;bt!==0&&Km()&&(l=bt);for(var e=fe(),t=null,a=Mi;a!==null;){var n=a.next,i=Qd(a,e);i===0?(a.next=null,t===null?Mi=n:t.next=n,n===null&&(Ea=t)):(t=a,(l!==0||(i&3)!==0)&&(wi=!0)),a=n}Ql!==0&&Ql!==5||vn(l),bt!==0&&(bt=0)}function Qd(l,e){for(var t=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,i=l.pendingLanes&-62914561;0s)break;var z=f.transferSize,S=f.initiatorType;z&&Fd(S)&&(f=f.responseEnd,c+=z*(f"u"?null:document;function fr(l,e,t){var a=Aa;if(a&&typeof e=="string"&&e){var n=pe(e);n='link[rel="'+l+'"][href="'+n+'"]',typeof t=="string"&&(n+='[crossorigin="'+t+'"]'),sr.has(n)||(sr.add(n),l={rel:l,crossOrigin:t,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Jl(e,"link",l),Xl(e),a.head.appendChild(e)))}}function th(l){lt.D(l),fr("dns-prefetch",l,null)}function ah(l,e){lt.C(l,e),fr("preconnect",l,e)}function nh(l,e,t){lt.L(l,e,t);var a=Aa;if(a&&l&&e){var n='link[rel="preload"][as="'+pe(e)+'"]';e==="image"&&t&&t.imageSrcSet?(n+='[imagesrcset="'+pe(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(n+='[imagesizes="'+pe(t.imageSizes)+'"]')):n+='[href="'+pe(l)+'"]';var i=n;switch(e){case"style":i=Ta(l);break;case"script":i=Ma(l)}Te.has(i)||(l=U({rel:"preload",href:e==="image"&&t&&t.imageSrcSet?void 0:l,as:e},t),Te.set(i,l),a.querySelector(n)!==null||e==="style"&&a.querySelector(bn(i))||e==="script"&&a.querySelector(pn(i))||(e=a.createElement("link"),Jl(e,"link",l),Xl(e),a.head.appendChild(e)))}}function ih(l,e){lt.m(l,e);var t=Aa;if(t&&l){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+pe(a)+'"][href="'+pe(l)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ma(l)}if(!Te.has(i)&&(l=U({rel:"modulepreload",href:l},e),Te.set(i,l),t.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(pn(i)))return}a=t.createElement("link"),Jl(a,"link",l),Xl(a),t.head.appendChild(a)}}}function uh(l,e,t){lt.S(l,e,t);var a=Aa;if(a&&l){var n=Wt(a).hoistableStyles,i=Ta(l);e=e||"default";var c=n.get(i);if(!c){var s={loading:0,preload:null};if(c=a.querySelector(bn(i)))s.loading=5;else{l=U({rel:"stylesheet",href:l,"data-precedence":e},t),(t=Te.get(i))&&is(l,t);var f=c=a.createElement("link");Xl(f),Jl(f,"link",l),f._p=new Promise(function(x,z){f.onload=x,f.onerror=z}),f.addEventListener("load",function(){s.loading|=1}),f.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Hi(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:s},n.set(i,c)}}}function ch(l,e){lt.X(l,e);var t=Aa;if(t&&l){var a=Wt(t).hoistableScripts,n=Ma(l),i=a.get(n);i||(i=t.querySelector(pn(n)),i||(l=U({src:l,async:!0},e),(e=Te.get(n))&&us(l,e),i=t.createElement("script"),Xl(i),Jl(i,"link",l),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function sh(l,e){lt.M(l,e);var t=Aa;if(t&&l){var a=Wt(t).hoistableScripts,n=Ma(l),i=a.get(n);i||(i=t.querySelector(pn(n)),i||(l=U({src:l,async:!0,type:"module"},e),(e=Te.get(n))&&us(l,e),i=t.createElement("script"),Xl(i),Jl(i,"link",l),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function or(l,e,t,a){var n=(n=P.current)?Ci(n):null;if(!n)throw Error(d(446));switch(l){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(e=Ta(t.href),t=Wt(n).hoistableStyles,a=t.get(e),a||(a={type:"style",instance:null,count:0,state:null},t.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){l=Ta(t.href);var i=Wt(n).hoistableStyles,c=i.get(l);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(l,c),(i=n.querySelector(bn(l)))&&!i._p&&(c.instance=i,c.state.loading=5),Te.has(l)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},Te.set(l,t),i||fh(n,l,t,c.state))),e&&a===null)throw Error(d(528,""));return c}if(e&&a!==null)throw Error(d(529,""));return null;case"script":return e=t.async,t=t.src,typeof t=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ma(t),t=Wt(n).hoistableScripts,a=t.get(e),a||(a={type:"script",instance:null,count:0,state:null},t.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(d(444,l))}}function Ta(l){return'href="'+pe(l)+'"'}function bn(l){return'link[rel="stylesheet"]['+l+"]"}function dr(l){return U({},l,{"data-precedence":l.precedence,precedence:null})}function fh(l,e,t,a){l.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=l.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Jl(e,"link",t),Xl(e),l.head.appendChild(e))}function Ma(l){return'[src="'+pe(l)+'"]'}function pn(l){return"script[async]"+l}function rr(l,e,t){if(e.count++,e.instance===null)switch(e.type){case"style":var a=l.querySelector('style[data-href~="'+pe(t.href)+'"]');if(a)return e.instance=a,Xl(a),a;var n=U({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Xl(a),Jl(a,"style",n),Hi(a,t.precedence,l),e.instance=a;case"stylesheet":n=Ta(t.href);var i=l.querySelector(bn(n));if(i)return e.state.loading|=4,e.instance=i,Xl(i),i;a=dr(t),(n=Te.get(n))&&is(a,n),i=(l.ownerDocument||l).createElement("link"),Xl(i);var c=i;return c._p=new Promise(function(s,f){c.onload=s,c.onerror=f}),Jl(i,"link",a),e.state.loading|=4,Hi(i,t.precedence,l),e.instance=i;case"script":return i=Ma(t.src),(n=l.querySelector(pn(i)))?(e.instance=n,Xl(n),n):(a=t,(n=Te.get(i))&&(a=U({},t),us(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Xl(n),Jl(n,"link",a),l.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(d(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Hi(a,t.precedence,l));return e.instance}function Hi(l,e,t){for(var a=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c title"):null)}function oh(l,e,t){if(t===1||e.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return l=e.disabled,typeof e.precedence=="string"&&l==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function vr(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function dh(l,e,t,a){if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=Ta(a.href),i=e.querySelector(bn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=qi.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=i,Xl(i);return}i=e.ownerDocument||e,a=dr(a),(n=Te.get(n))&&is(a,n),i=i.createElement("link"),Xl(i);var c=i;c._p=new Promise(function(s,f){c.onload=s,c.onerror=f}),Jl(i,"link",a),t.instance=i}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=qi.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}var cs=0;function rh(l,e){return l.stylesheets&&l.count===0&&Yi(l,l.stylesheets),0cs?50:800)+e);return l.unsuspend=t,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function qi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yi(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Bi=null;function Yi(l,e){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Bi=new Map,e.forEach(mh,l),Bi=null,qi.call(l))}function mh(l,e){if(!(e.state.loading&4)){var t=Bi.get(l);if(t)var a=t.get(null);else{t=new Map,Bi.set(l,t);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(j){console.error(j)}}return o(),xs.exports=wh(),xs.exports}var Uh=Oh();const Dh=Zr(Uh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ch=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hh=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(j,_,d)=>d?d.toUpperCase():_.toLowerCase()),Yr=o=>{const j=Hh(o);return j.charAt(0).toUpperCase()+j.slice(1)},Vr=(...o)=>o.filter((j,_,d)=>!!j&&j.trim()!==""&&d.indexOf(j)===_).join(" ").trim(),Rh=o=>{for(const j in o)if(j.startsWith("aria-")||j==="role"||j==="title")return!0};/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var qh={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"};/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bh=X.forwardRef(({color:o="currentColor",size:j=24,strokeWidth:_=2,absoluteStrokeWidth:d,className:A="",children:w,iconNode:O,...M},T)=>X.createElement("svg",{ref:T,...qh,width:j,height:j,stroke:o,strokeWidth:d?Number(_)*24/Number(j):_,className:Vr("lucide",A),...!w&&!Rh(M)&&{"aria-hidden":"true"},...M},[...O.map(([y,B])=>X.createElement(y,B)),...Array.isArray(w)?w:[w]]));/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z=(o,j)=>{const _=X.forwardRef(({className:d,...A},w)=>X.createElement(Bh,{ref:w,iconNode:j,className:Vr(`lucide-${Ch(Yr(o))}`,`lucide-${o}`,d),...A}));return _.displayName=Yr(o),_};/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yh=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Gh=Z("activity",Yh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qh=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Tn=Z("arrow-left",Qh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],kr=Z("arrow-right",Xh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lh=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Zh=Z("bell",Lh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kh=Z("chevron-down",Vh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Jh=Z("chevron-up",Kh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $h=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ji=Z("clock",$h);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wh=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],Fh=Z("cloud-upload",Wh);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ih=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Ph=Z("credit-card",Ih);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l1=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],e1=Z("crown",l1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const t1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],$i=Z("disc",t1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a1=[["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"}]],Gr=Z("download",a1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const n1=[["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"}]],i1=Z("ellipsis",n1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u1=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],c1=Z("facebook",u1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s1=[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]],Ss=Z("file-headphone",s1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f1=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],o1=Z("flame",f1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const d1=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],r1=Z("heart",d1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m1=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Kr=Z("house",m1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h1=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],v1=Z("instagram",h1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const x1=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],_s=Z("layers",x1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y1=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],Jr=Z("library",y1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g1=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Qr=Z("link",g1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b1=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],p1=Z("lock",b1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z1=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],$r=Z("log-in",z1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const j1=[["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"}]],N1=Z("log-out",j1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],_1=Z("mail",S1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],A1=Z("menu",E1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T1=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],M1=Z("mic-vocal",T1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w1=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],O1=Z("mic",w1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U1=[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]],D1=Z("music-2",U1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const C1=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],An=Z("music",C1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H1=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Ki=Z("pause",H1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Et=Z("play",R1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q1=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],B1=Z("repeat",q1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y1=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],G1=Z("scissors",Y1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q1=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],X1=Z("settings-2",Q1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Z1=Z("settings",L1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V1=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],k1=Z("share-2",V1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K1=[["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"}]],J1=Z("shield",K1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $1=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],W1=Z("shuffle",$1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F1=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],I1=Z("skip-back",F1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P1=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],lv=Z("skip-forward",P1);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ev=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ps=Z("sparkles",ev);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tv=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],av=Z("trending-up",tv);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nv=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],iv=Z("twitter",nv);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uv=[["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"}]],cv=Z("upload",uv);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sv=[["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"}]],Wr=Z("user",sv);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fv=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],zs=Z("video",fv);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ov=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],dv=Z("volume-2",ov);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rv=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],mv=Z("wand-sparkles",rv);/** * @license lucide-react v0.561.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],js=Z("x",hv),vv=({activeTab:o,setActiveTab:j,user:_,onLoginClick:d})=>{const A=[{id:"home",icon:Kr,label:"首页 (Home)"},{id:"create",icon:An,label:"创作 (Create)"},{id:"library",icon:Jr,label:"曲库 (Library)"},{id:"tools",icon:_s,label:"工具箱 (Tools)"}];return u.jsxs("div",{className:"w-full md:w-64 bg-black/40 backdrop-blur-xl border-r border-white/5 flex flex-col h-full",children:[u.jsx("div",{className:"p-6",children:u.jsxs("h1",{className:"text-2xl font-bold bg-gradient-to-br from-white to-zinc-500 bg-clip-text text-transparent flex items-center gap-3 tracking-tight",children:[u.jsxs("div",{className:"relative",children:[u.jsx($i,{className:"text-indigo-500 relative z-10"}),u.jsx("div",{className:"absolute inset-0 bg-indigo-500 blur-lg opacity-40"})]}),"朴见潮音"]})}),u.jsx("nav",{className:"flex-1 px-4 space-y-2 mt-4",children:A.map(w=>u.jsxs("button",{onClick:()=>j(w.id),className:`w-full flex items-center gap-3 px-4 py-3 rounded-xl transition-all duration-200 font-medium group relative overflow-hidden ${o===w.id?"bg-gradient-to-r from-indigo-600/20 to-purple-600/10 text-white border border-indigo-500/30 shadow-[0_0_15px_rgba(79,70,229,0.15)]":"text-zinc-400 hover:text-white hover:bg-white/5"}`,children:[u.jsx(w.icon,{size:20,className:`transition-colors ${o===w.id?"text-indigo-400":"group-hover:text-white"}`}),u.jsx("span",{className:"relative z-10",children:w.label}),o===w.id&&u.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 bg-indigo-500 rounded-full"})]},w.id))}),u.jsx("div",{className:"p-4 border-t border-white/5",children:_?u.jsxs("div",{onClick:()=>j("user"),className:`bg-gradient-to-br from-zinc-900 to-zinc-950 rounded-xl p-4 border border-white/5 shadow-lg relative overflow-hidden group cursor-pointer transition-all ${o==="user"?"ring-1 ring-indigo-500":"hover:bg-zinc-900"}`,children:[u.jsx("div",{className:"absolute top-0 right-0 w-20 h-20 bg-indigo-500/10 rounded-full blur-2xl -translate-y-1/2 translate-x-1/2 group-hover:bg-indigo-500/20 transition-colors"}),u.jsxs("div",{className:"flex items-center gap-3 mb-3 relative z-10",children:[u.jsx("img",{src:_.avatarUrl,alt:"Avatar",className:"w-10 h-10 rounded-full bg-zinc-800 border border-white/10"}),u.jsxs("div",{className:"overflow-hidden",children:[u.jsx("p",{className:"text-white font-bold text-sm truncate",children:_.name}),u.jsxs("p",{className:"text-zinc-500 text-xs truncate uppercase",children:[_.plan," Plan"]})]})]}),u.jsxs("div",{className:"relative z-10",children:[u.jsxs("div",{className:"flex justify-between items-end mb-1",children:[u.jsx("span",{className:"text-xs text-zinc-400",children:"剩余积分"}),u.jsx("span",{className:"text-sm font-bold text-white",children:_.credits})]}),u.jsx("div",{className:"w-full bg-zinc-800/50 h-1.5 rounded-full overflow-hidden",children:u.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-purple-500 h-full rounded-full shadow-[0_0_10px_rgba(99,102,241,0.5)]",style:{width:`${_.credits/500*100}%`}})})]})]}):u.jsxs("button",{onClick:d,className:"w-full py-3 bg-zinc-900 hover:bg-zinc-800 border border-zinc-800 rounded-xl flex items-center justify-center gap-2 text-white font-medium transition-colors",children:[u.jsx($r,{size:18}),u.jsx("span",{children:"登录 / 注册"})]})})]})},xv=({isOpen:o,onClose:j,activeTab:_,setActiveTab:d,user:A,onLoginClick:w})=>{const O=[{id:"home",icon:Kr,label:"首页 (Home)"},{id:"create",icon:An,label:"创作 (Create)"},{id:"library",icon:Jr,label:"曲库 (Library)"},{id:"tools",icon:_s,label:"工具箱 (Tools)"}];return o?u.jsxs("div",{className:"fixed inset-0 z-[60] md:hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm animate-in fade-in duration-200",onClick:j}),u.jsxs("div",{className:"absolute top-0 right-0 bottom-0 w-64 bg-zinc-950 border-l border-zinc-800 shadow-2xl animate-in slide-in-from-right duration-300 flex flex-col",children:[u.jsxs("div",{className:"p-6 flex items-center justify-between border-b border-zinc-800",children:[u.jsxs("h2",{className:"text-xl font-bold text-white flex items-center gap-2",children:[u.jsx($i,{className:"text-indigo-500"}),"朴见潮音"]}),u.jsx("button",{onClick:j,className:"text-zinc-400 hover:text-white",children:u.jsx(js,{size:24})})]}),u.jsx("nav",{className:"flex-1 p-4 space-y-2 overflow-y-auto",children:O.map(M=>u.jsxs("button",{onClick:()=>{d(M.id),j()},className:`w-full flex items-center gap-3 px-4 py-3 rounded-xl transition-all font-medium ${_===M.id?"bg-indigo-600/10 text-indigo-400 border border-indigo-500/20":"text-zinc-400 hover:text-white hover:bg-zinc-900"}`,children:[u.jsx(M.icon,{size:20}),M.label]},M.id))}),u.jsx("div",{className:"p-6 border-t border-zinc-800 bg-zinc-900/50",children:A?u.jsxs("button",{onClick:()=>{d("user"),j()},className:"w-full flex items-center gap-3 p-2 rounded-lg hover:bg-zinc-800 transition-colors",children:[u.jsx("img",{src:A.avatarUrl,alt:"Avatar",className:"w-10 h-10 rounded-full bg-zinc-800"}),u.jsxs("div",{className:"text-left overflow-hidden flex-1",children:[u.jsx("p",{className:"text-white font-medium text-sm truncate",children:A.name}),u.jsx("p",{className:"text-zinc-500 text-xs truncate",children:"点击查看个人中心"})]})]}):u.jsxs("button",{onClick:()=>{w(),j()},className:"w-full py-3 bg-indigo-600 text-white rounded-xl font-medium flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/20",children:[u.jsx($r,{size:18}),"登录 / 注册"]})})]})]}):null};var se=(o=>(o.SUBMITTED="submitted",o.QUEUEING="queueing",o.PROCESSING="processing",o.COMPLETED="completed",o.ERROR="error",o))(se||{});const Fr=[{id:"s1",title:"赛博朋克夜雨",imageUrl:"https://picsum.photos/400/400?random=1",audioUrl:"https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3",duration:120,tags:"electronic, synthwave, dark",status:se.COMPLETED,createdAt:new Date(Date.now()-36e5).toISOString(),isInstrumental:!1,model:"v3.5"},{id:"s2",title:"古风·长相思",imageUrl:"https://picsum.photos/400/400?random=2",audioUrl:"https://www.soundhelix.com/examples/mp3/SoundHelix-Song-2.mp3",duration:185,tags:"chinese traditional, guzheng, emotional",status:se.COMPLETED,createdAt:new Date(Date.now()-72e5).toISOString(),isInstrumental:!1,model:"v3.5"}],Xr=["v3.5","v3","v2"],kt=o=>new Promise(j=>setTimeout(j,o)),Ue={async generateAuto(o){return console.log("Calling API: Music (Auto)",o),await kt(1500),[Math.random().toString(36).substr(2,9),Math.random().toString(36).substr(2,9)].map(_=>({id:_,title:o.prompt.slice(0,20)||"Generated Song",imageUrl:"https://picsum.photos/400/400?grayscale",audioUrl:"",duration:0,tags:"generated, pop",status:se.QUEUEING,createdAt:new Date().toISOString(),isInstrumental:o.make_instrumental,model:o.mv}))},async generateCustom(o){return console.log("Calling API: Generate (Custom/Extend)",o),await kt(1500),[Math.random().toString(36).substr(2,9),Math.random().toString(36).substr(2,9)].map(_=>({id:_,title:o.title||(o.continue_clip_id?"Extended Song":"Custom Song"),imageUrl:"https://picsum.photos/400/400?blur",audioUrl:"",duration:0,tags:o.tags,status:se.QUEUEING,createdAt:new Date().toISOString(),isInstrumental:o.make_instrumental,model:o.mv,lyrics:o.prompt,isExtension:!!o.continue_clip_id,parentId:o.continue_clip_id}))},async generateLyrics(o){return await kt(1e3),{title:"AI Generated Title",text:`[Verse 1] Here is some generated lyrics based on: ${o} Neon lights flashing in the rain... [Chorus] Fly away, to the moon...`}},async fetchIds(o){return o.map(j=>{const _=Fr.find(d=>d.id===j);return _||{id:j,title:"处理完成 (Processed)",imageUrl:"https://picsum.photos/400/400?random="+j,audioUrl:"https://www.soundhelix.com/examples/mp3/SoundHelix-Song-3.mp3",duration:120,tags:"processing",status:se.COMPLETED,createdAt:new Date().toISOString(),isInstrumental:!1,model:"v3.5"}})},async getWavUrl(o){return await kt(500),"https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3"},async getVideoUrl(o){return await kt(500),"https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4"},async uploadAudio(o){return console.log("Uploading file:",o.name),await kt(2e3),"uploaded-audio-id-"+Date.now()},async processAudio(o){return console.log(`Processing Audio: ${o.operation}`,o),await kt(2e3),{id:"proc-"+Date.now(),title:`Processed (${o.operation})`,imageUrl:"https://picsum.photos/400/400?sepia",audioUrl:"",duration:100,tags:o.operation,status:se.QUEUEING,createdAt:new Date().toISOString(),isInstrumental:o.operation==="instrumental",model:"audio-v1"}}},yv=({onTasksCreated:o,extendSong:j,onClearExtend:_})=>{const[d,A]=X.useState("simple"),[w,O]=X.useState(!1),[M,T]=X.useState(!1),[y,B]=X.useState(Xr[0]),[U,V]=X.useState(null),[fl,pl]=X.useState(null),[xl,$l]=X.useState(""),[wl,Gl]=X.useState(""),[yl,_l]=X.useState(""),[Cl,zl]=X.useState(""),[K,Al]=X.useState(0);X.useEffect(()=>{j&&(A("custom"),zl(`Extend: ${j.title}`),_l(j.tags),Al(Math.floor(j.duration)),T(j.isInstrumental))},[j]);const Wl=async G=>{if(G.target.files&&G.target.files[0]){const jl=G.target.files[0];V(jl);try{const Hl=await Ue.uploadAudio(jl);pl(Hl)}catch{alert("Upload failed"),V(null)}}},Y=async()=>{const G=xl||yl||"About a journey";O(!0);try{const jl=await Ue.generateLyrics(G);Gl(jl.text),Cl||zl(jl.title)}catch(jl){console.error(jl)}finally{O(!1)}},I=async()=>{O(!0);try{let G=[];const jl={make_instrumental:M,mv:y,audio_upload_id:fl||void 0};if(d==="simple"&&!j){const Hl={...jl,prompt:xl};G=await Ue.generateAuto(Hl)}else{const Hl={...jl,prompt:wl,tags:yl,title:Cl,continue_at:j?K:void 0,continue_clip_id:j?j.id:void 0};G=await Ue.generateCustom(Hl)}o(G),j&&_&&_()}catch{alert("Creation failed. Please try again.")}finally{O(!1)}};return u.jsxs("div",{className:"max-w-3xl mx-auto w-full p-4 md:p-8 pb-32",children:[j&&u.jsxs("div",{className:"bg-indigo-900/30 border border-indigo-500/50 rounded-xl p-4 mb-6 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"bg-indigo-600 p-2 rounded-lg",children:u.jsx(X1,{className:"text-white",size:20})}),u.jsxs("div",{children:[u.jsxs("h3",{className:"font-bold text-white",children:["正在续写: ",j.title]}),u.jsxs("div",{className:"flex items-center gap-2 text-xs text-indigo-300",children:[u.jsx("span",{children:"从"}),u.jsx("input",{type:"number",value:K,onChange:G=>Al(Number(G.target.value)),className:"w-16 bg-black/30 border border-indigo-500/30 rounded px-1"}),u.jsxs("span",{children:["秒处开始 (总时长 ",j.duration,"s)"]})]})]})]}),u.jsx("button",{onClick:_,className:"text-zinc-400 hover:text-white",children:u.jsx(js,{size:20})})]}),u.jsxs("div",{className:"flex items-center justify-between mb-8",children:[u.jsx("h2",{className:"text-3xl font-bold text-white",children:j?"续写模式 (Extend)":"创作音乐 (Create)"}),u.jsxs("div",{className:"flex bg-zinc-800 p-1 rounded-lg",children:[u.jsx("button",{onClick:()=>A("simple"),disabled:!!j,className:`px-4 py-2 rounded-md text-sm font-medium transition-all ${d==="simple"?"bg-zinc-600 text-white shadow-sm":"text-zinc-400 hover:text-white disabled:opacity-30"}`,children:"全自动"}),u.jsx("button",{onClick:()=>A("custom"),className:`px-4 py-2 rounded-md text-sm font-medium transition-all ${d==="custom"?"bg-zinc-600 text-white shadow-sm":"text-zinc-400 hover:text-white"}`,children:"自定义"})]})]}),u.jsxs("div",{className:"space-y-6",children:[!j&&u.jsx("div",{className:"border border-dashed border-zinc-700 rounded-xl p-4 bg-zinc-900/30 hover:bg-zinc-900/50 transition-colors",children:u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx("div",{className:"bg-zinc-800 p-3 rounded-full",children:u.jsx(Fh,{size:20,className:"text-zinc-400"})}),u.jsx("div",{className:"flex-1",children:U?u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-sm text-indigo-400 font-medium",children:U.name}),u.jsx("button",{onClick:()=>{V(null),pl(null)},className:"text-zinc-500 hover:text-red-400",children:u.jsx(js,{size:16})})]}):u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-white",children:"上传参考音频 (Upload Audio)"}),u.jsx("p",{className:"text-xs text-zinc-500",children:"用作生成的灵感素材 (MP3/WAV)"})]})}),!U&&u.jsxs("label",{className:"px-3 py-1.5 bg-zinc-700 hover:bg-zinc-600 rounded text-xs cursor-pointer text-white",children:["选择文件",u.jsx("input",{type:"file",accept:"audio/*",className:"hidden",onChange:Wl})]})]})}),u.jsxs("div",{className:"flex items-center justify-between bg-zinc-900/50 p-4 rounded-xl border border-zinc-800",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(O1,{className:`size-5 ${M?"text-zinc-500":"text-indigo-400"}`}),u.jsxs("div",{children:[u.jsx("p",{className:"text-white font-medium",children:"纯音乐 (Instrumental)"}),u.jsx("p",{className:"text-xs text-zinc-500",children:"不包含人声歌词"})]})]}),u.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:M,onChange:G=>T(G.target.checked),className:"sr-only peer"}),u.jsx("div",{className:"w-11 h-6 bg-zinc-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"})]})]}),d==="simple"?u.jsxs("div",{className:"space-y-3",children:[u.jsx("label",{className:"text-sm font-medium text-zinc-300",children:"歌曲描述 (Song Description)"}),u.jsx("textarea",{value:xl,onChange:G=>$l(G.target.value),placeholder:"例如:一首关于在东京雨夜漫步的慢节奏爵士乐,带有忧郁的女声...",className:"w-full h-32 bg-zinc-900 border border-zinc-700 rounded-xl p-4 text-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none resize-none"})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-zinc-300",children:"歌词 (Lyrics)"}),!M&&u.jsxs("button",{onClick:Y,disabled:w,className:"flex items-center gap-1 text-xs text-indigo-400 hover:text-indigo-300 disabled:opacity-50",children:[u.jsx(mv,{size:12}),"AI 生成歌词"]})]}),u.jsx("textarea",{value:wl,onChange:G=>Gl(G.target.value),disabled:M,placeholder:M?"纯音乐模式下无需歌词":`[Verse] 输入你的歌词...`,className:`w-full h-40 bg-zinc-900 border border-zinc-700 rounded-xl p-4 text-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none resize-none font-mono text-sm ${M?"opacity-50 cursor-not-allowed":""}`})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("label",{className:"text-sm font-medium text-zinc-300",children:"音乐风格 (Style of Music)"}),u.jsx("textarea",{value:yl,onChange:G=>_l(G.target.value),placeholder:"例如:Pop, Rock, Male Vocals, Upbeat",className:"w-full h-20 bg-zinc-900 border border-zinc-700 rounded-xl p-4 text-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none resize-none"})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("label",{className:"text-sm font-medium text-zinc-300",children:"标题 (Title)"}),u.jsx("input",{type:"text",value:Cl,onChange:G=>zl(G.target.value),placeholder:"给这首歌起个名字",className:"w-full bg-zinc-900 border border-zinc-700 rounded-xl p-4 text-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none"})]})]}),u.jsxs("div",{className:"flex items-end gap-4 pt-6 border-t border-zinc-800/50",children:[u.jsxs("div",{className:"w-1/3 min-w-[140px]",children:[u.jsx("label",{className:"text-xs text-zinc-500 block mb-2 font-medium",children:"模型版本 (Model)"}),u.jsxs("div",{className:"relative",children:[u.jsx("select",{value:y,onChange:G=>B(G.target.value),className:"bg-zinc-900 border border-zinc-700 text-zinc-200 text-sm rounded-xl block w-full p-3 pr-10 appearance-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none transition-all",children:Xr.map(G=>u.jsx("option",{value:G,children:G},G))}),u.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-zinc-500",children:u.jsx(kh,{size:16})})]})]}),u.jsx("div",{className:"flex-1",children:u.jsxs("button",{onClick:I,disabled:w||fl===null&&U!==null,className:"w-full py-3 px-6 bg-indigo-600 hover:bg-indigo-500 disabled:bg-zinc-800 disabled:text-zinc-500 disabled:cursor-not-allowed text-white font-bold rounded-xl flex items-center justify-center gap-2 transition-all shadow-lg shadow-indigo-600/20 active:scale-[0.98]",children:[w?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-white border-t-transparent"}),"生成中..."]}):u.jsxs(u.Fragment,{children:[u.jsx(ps,{size:20,className:"fill-white"}),j?"生成续写 (Extend)":"立即生成 (Create)"]}),u.jsx("span",{className:"text-indigo-200 text-xs font-normal ml-1 hidden sm:inline",children:" (10 积分)"})]})})]})]})]})},gv=({songs:o,currentSong:j,isPlaying:_,onPlay:d,onExtend:A,onDetail:w})=>{const[O,M]=X.useState(null),T=async(y,B)=>{M(y);try{const U=B==="wav"?await Ue.getWavUrl(y):await Ue.getVideoUrl(y),V=document.createElement("a");V.href=U,V.download=`suno_${B}_${y}.${B==="wav"?"mp3":"mp4"}`,document.body.appendChild(V),V.click(),document.body.removeChild(V)}catch{alert("Download failed")}finally{M(null)}};return o.length===0?u.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-zinc-500",children:[u.jsx(Ji,{size:48,className:"mb-4 opacity-50"}),u.jsx("p",{children:"暂无创作记录,快去生成第一首歌吧!"})]}):u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-5 p-4 md:p-8 overflow-y-auto pb-48",children:o.map(y=>{const B=(j==null?void 0:j.id)===y.id;return u.jsxs("div",{onClick:()=>w(y),className:`group relative bg-zinc-900/40 backdrop-blur-md rounded-2xl overflow-hidden border transition-all duration-300 hover:-translate-y-1 cursor-pointer hover:shadow-xl ${B?"border-indigo-500/50 bg-indigo-900/10 shadow-[0_0_20px_rgba(99,102,241,0.15)]":"border-white/5 hover:border-white/10 hover:bg-zinc-800/60"}`,children:[u.jsxs("div",{className:"flex p-4 gap-4",children:[u.jsxs("div",{className:"relative w-24 h-24 flex-shrink-0 bg-zinc-950 rounded-xl overflow-hidden shadow-lg border border-white/5",onClick:U=>{U.stopPropagation(),d(y)},children:[u.jsx("img",{src:y.imageUrl,alt:y.title,className:"w-full h-full object-cover opacity-90 group-hover:opacity-100 transition-opacity"}),u.jsx("div",{className:`absolute inset-0 flex items-center justify-center bg-black/40 transition-opacity ${B?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:B&&_?u.jsx(Ki,{className:"text-white fill-white drop-shadow-lg",size:24}):u.jsx(Et,{className:"text-white fill-white drop-shadow-lg",size:24})}),y.status===se.QUEUEING&&u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/80 backdrop-blur-sm z-10",children:u.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-2 border-indigo-500 border-t-transparent"})})]}),u.jsxs("div",{className:"flex flex-col justify-between flex-1 min-w-0",children:[u.jsxs("div",{children:[u.jsx("h3",{className:`font-bold truncate text-lg transition-colors ${B?"text-indigo-400":"text-zinc-100 group-hover:text-indigo-300"}`,title:y.title,children:y.title}),u.jsxs("div",{className:"flex gap-2 text-xs mb-1.5 mt-1",children:[u.jsxs("span",{className:"text-zinc-400 bg-white/5 border border-white/5 px-1.5 py-0.5 rounded",children:[y.duration,"s"]}),y.isExtension&&u.jsx("span",{className:"text-amber-400 bg-amber-500/10 border border-amber-500/20 px-1.5 py-0.5 rounded",children:"续写"})]}),u.jsx("p",{className:"text-zinc-500 text-xs truncate font-medium",children:y.tags||"自动风格"})]}),u.jsxs("div",{className:"flex items-center justify-between mt-2 pt-2 border-t border-white/5",children:[u.jsx("div",{className:"flex items-center gap-2",children:u.jsx("span",{className:"text-[10px] text-zinc-500 border border-zinc-700/50 px-1.5 py-0.5 rounded uppercase tracking-wider",children:y.model})}),u.jsxs("div",{className:"flex gap-1 opacity-80 group-hover:opacity-100 transition-opacity",children:[u.jsx("button",{onClick:U=>{U.stopPropagation(),A(y)},className:"p-1.5 hover:bg-indigo-500/20 hover:text-indigo-400 rounded-lg text-zinc-400 transition-colors",title:"续写 (Extend)",children:u.jsx(_s,{size:16})}),u.jsx("button",{onClick:U=>{U.stopPropagation(),T(y.id,"wav")},className:"p-1.5 hover:bg-white/10 rounded-lg text-zinc-400 hover:text-white transition-colors",title:"下载 WAV",disabled:!!O,children:u.jsx(Ss,{size:16})}),u.jsx("button",{onClick:U=>{U.stopPropagation(),T(y.id,"video")},className:"p-1.5 hover:bg-white/10 rounded-lg text-zinc-400 hover:text-white transition-colors",title:"下载视频",disabled:!!O,children:u.jsx(zs,{size:16})})]})]})]})]}),y.status!==se.COMPLETED&&u.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:u.jsx("div",{className:"w-full bg-zinc-800 h-0.5",children:u.jsx("div",{className:"bg-indigo-500 h-full w-1/2 animate-pulse"})})})]},y.id)})})},bv=({currentSong:o,isPlaying:j,setIsPlaying:_,onSongClick:d})=>{const A=X.useRef(null),[w,O]=X.useState(0),[M,T]=X.useState(0);X.useEffect(()=>{o&&A.current&&(o.audioUrl?(A.current.src=o.audioUrl,j&&A.current.play()):_(!1))},[o]),X.useEffect(()=>{A.current&&(j?A.current.play():A.current.pause())},[j]);const y=()=>{A.current&&(O(A.current.currentTime),T(A.current.duration||0))},B=V=>{const fl=parseFloat(V.target.value);A.current&&(A.current.currentTime=fl,O(fl))},U=V=>{if(!V)return"0:00";const fl=Math.floor(V/60),pl=Math.floor(V%60);return`${fl}:${pl<10?"0":""}${pl}`};return o?u.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-black/80 backdrop-blur-xl border-t border-white/10 px-4 py-3 z-40 flex items-center justify-between shadow-[0_-10px_40px_rgba(0,0,0,0.5)] transition-all animate-in slide-in-from-bottom-full duration-500",children:[u.jsx("audio",{ref:A,onTimeUpdate:y,onEnded:()=>_(!1)}),u.jsxs("div",{className:"flex items-center gap-4 w-1/3 cursor-pointer hover:opacity-80 transition-opacity group",onClick:()=>d&&d(o),children:[u.jsxs("div",{className:"relative overflow-hidden rounded-md w-12 h-12 bg-zinc-800 shadow-md border border-white/10",children:[o.imageUrl?u.jsx("img",{src:o.imageUrl,alt:"",className:"w-full h-full object-cover"}):u.jsx("div",{className:"w-full h-full flex items-center justify-center text-zinc-500",children:u.jsx(D1,{size:20})}),u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 group-hover:opacity-100 transition-all backdrop-blur-[2px]",children:u.jsx(Jh,{size:20,className:"text-white"})})]}),u.jsxs("div",{className:"hidden sm:block overflow-hidden",children:[u.jsx("h4",{className:"text-white font-bold text-sm truncate",children:o.title}),u.jsx("p",{className:"text-zinc-400 text-xs truncate",children:o.tags})]})]}),u.jsxs("div",{className:"flex flex-col items-center gap-2 flex-1 max-w-lg",children:[u.jsxs("div",{className:"flex items-center gap-6",children:[u.jsx("button",{className:"text-zinc-500 hover:text-white transition-colors",children:u.jsx(W1,{size:16})}),u.jsx("button",{className:"text-zinc-300 hover:text-white transition-colors",children:u.jsx(I1,{size:20})}),u.jsx("button",{className:"w-10 h-10 bg-white rounded-full flex items-center justify-center hover:scale-110 active:scale-95 transition-all shadow-lg shadow-white/10",onClick:()=>_(!j),children:j?u.jsx(Ki,{size:20,className:"fill-black text-black"}):u.jsx(Et,{size:20,className:"fill-black text-black ml-1"})}),u.jsx("button",{className:"text-zinc-300 hover:text-white transition-colors",children:u.jsx(lv,{size:20})}),u.jsx("button",{className:"text-zinc-500 hover:text-white transition-colors",children:u.jsx(B1,{size:16})})]}),u.jsxs("div",{className:"w-full flex items-center gap-3 text-xs text-zinc-500 font-mono hidden md:flex",children:[u.jsx("span",{className:"w-8 text-right",children:U(w)}),u.jsxs("div",{className:"relative flex-1 h-4 flex items-center group/slider",children:[u.jsx("div",{className:"absolute left-0 right-0 h-1 bg-zinc-800 rounded-full overflow-hidden",children:u.jsx("div",{className:"h-full bg-indigo-500 rounded-full",style:{width:`${w/(M||100)*100}%`}})}),u.jsx("input",{type:"range",min:0,max:M||100,value:w,onChange:B,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"}),u.jsx("div",{className:"w-3 h-3 bg-white rounded-full absolute pointer-events-none opacity-0 group-hover/slider:opacity-100 transition-opacity shadow-sm",style:{left:`${w/(M||100)*100}%`,transform:"translateX(-50%)"}})]}),u.jsx("span",{className:"w-8",children:U(M)})]})]}),u.jsxs("div",{className:"w-1/3 flex justify-end items-center gap-3 hidden md:flex",children:[u.jsx(dv,{size:18,className:"text-zinc-400"}),u.jsx("div",{className:"w-20 h-1 bg-zinc-800 rounded-full overflow-hidden cursor-pointer group hover:h-1.5 transition-all",children:u.jsx("div",{className:"bg-zinc-500 group-hover:bg-indigo-400 w-2/3 h-full rounded-full transition-colors"})})]})]}):null},pv=({songs:o,onBack:j,onSubmit:_})=>{const[d,A]=X.useState(""),[w,O]=X.useState(1.2);return u.jsxs("div",{className:"animate-in slide-in-from-right duration-300",children:[u.jsxs("button",{onClick:j,className:"flex items-center text-zinc-400 hover:text-white mb-6 gap-2",children:[u.jsx(Tn,{size:16})," 返回工具箱"]}),u.jsx("h3",{className:"text-2xl font-bold mb-6",children:"调整速度 (Speed)"}),u.jsxs("div",{className:"space-y-6 max-w-xl",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm text-zinc-400 mb-2",children:"选择歌曲"}),u.jsxs("select",{className:"w-full bg-zinc-900 border border-zinc-700 rounded-lg p-3",value:d,onChange:M=>A(M.target.value),children:[u.jsx("option",{value:"",children:"请选择..."}),o.map(M=>u.jsx("option",{value:M.id,children:M.title},M.id))]})]}),u.jsxs("div",{children:[u.jsxs("label",{className:"block text-sm text-zinc-400 mb-2",children:["速度系数: ",w,"x"]}),u.jsx("input",{type:"range",min:"0.5",max:"2.0",step:"0.1",value:w,onChange:M=>O(parseFloat(M.target.value)),className:"w-full"}),u.jsxs("div",{className:"flex justify-between text-xs text-zinc-500 mt-1",children:[u.jsx("span",{children:"0.5x"}),u.jsx("span",{children:"1.0x"}),u.jsx("span",{children:"2.0x"})]})]}),u.jsx("button",{onClick:()=>_("speed",{songId:d,speed:w}),className:"w-full bg-indigo-600 py-3 rounded-lg font-bold hover:bg-indigo-500",children:"确认调整"})]})]})},zv=({songs:o,onBack:j,onSubmit:_})=>{const[d,A]=X.useState(""),[w,O]=X.useState(0),[M,T]=X.useState(30);return u.jsxs("div",{className:"animate-in slide-in-from-right duration-300",children:[u.jsxs("button",{onClick:j,className:"flex items-center text-zinc-400 hover:text-white mb-6 gap-2",children:[u.jsx(Tn,{size:16})," 返回工具箱"]}),u.jsx("h3",{className:"text-2xl font-bold mb-6",children:"裁剪音乐 (Crop)"}),u.jsxs("div",{className:"space-y-6 max-w-xl",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm text-zinc-400 mb-2",children:"选择歌曲"}),u.jsxs("select",{className:"w-full bg-zinc-900 border border-zinc-700 rounded-lg p-3",value:d,onChange:y=>A(y.target.value),children:[u.jsx("option",{value:"",children:"请选择..."}),o.map(y=>u.jsx("option",{value:y.id,children:y.title},y.id))]})]}),u.jsxs("div",{className:"flex gap-4",children:[u.jsxs("div",{className:"flex-1",children:[u.jsx("label",{className:"block text-sm text-zinc-400 mb-2",children:"开始时间 (s)"}),u.jsx("input",{type:"number",value:w,onChange:y=>O(Number(y.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded p-2"})]}),u.jsxs("div",{className:"flex-1",children:[u.jsx("label",{className:"block text-sm text-zinc-400 mb-2",children:"结束时间 (s)"}),u.jsx("input",{type:"number",value:M,onChange:y=>T(Number(y.target.value)),className:"w-full bg-zinc-900 border border-zinc-700 rounded p-2"})]})]}),u.jsx("button",{onClick:()=>_("crop",{songId:d,start:w,end:M}),className:"w-full bg-indigo-600 py-3 rounded-lg font-bold hover:bg-indigo-500",children:"确认裁剪"})]})]})},Lr=({songs:o,onBack:j,mode:_,onSubmit:d})=>{const[A,w]=X.useState(""),O=_==="vocals"?"纯音乐配人声 (Add Vocals)":"清唱配乐 (Add Instrumental)";return u.jsxs("div",{className:"animate-in slide-in-from-right duration-300",children:[u.jsxs("button",{onClick:j,className:"flex items-center text-zinc-400 hover:text-white mb-6 gap-2",children:[u.jsx(Tn,{size:16})," 返回工具箱"]}),u.jsx("h3",{className:"text-2xl font-bold mb-6",children:O}),u.jsx("div",{className:"p-4 bg-zinc-900 rounded-xl mb-6 border border-zinc-800",children:u.jsx("p",{className:"text-sm text-zinc-300",children:_==="vocals"?"该工具将提取所选歌曲的伴奏,并允许你叠加新的人声。":"该工具将提取所选歌曲的人声,并重新生成背景音乐。"})}),u.jsxs("div",{className:"space-y-6 max-w-xl",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm text-zinc-400 mb-2",children:"选择源文件 (Select Source)"}),u.jsxs("select",{className:"w-full bg-zinc-900 border border-zinc-700 rounded-lg p-3",value:A,onChange:M=>w(M.target.value),children:[u.jsx("option",{value:"",children:"请选择库中歌曲..."}),o.map(M=>u.jsx("option",{value:M.id,children:M.title},M.id))]})]}),u.jsx("button",{onClick:()=>d(_,{songId:A}),className:"w-full bg-indigo-600 py-3 rounded-lg font-bold hover:bg-indigo-500",children:"开始处理"})]})]})},jv=({songs:o,onBack:j})=>{const[_,d]=X.useState("");return u.jsxs("div",{className:"animate-in slide-in-from-right duration-300 h-full flex flex-col",children:[u.jsxs("div",{className:"flex-none",children:[u.jsxs("button",{onClick:j,className:"flex items-center text-zinc-400 hover:text-white mb-6 gap-2",children:[u.jsx(Tn,{size:16})," 返回工具箱"]}),u.jsx("h3",{className:"text-2xl font-bold mb-6",children:"歌词时间线 (Timing Editor)"})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 flex-1 min-h-0",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsx("label",{className:"block text-sm text-zinc-400",children:"选择歌曲"}),u.jsxs("select",{className:"w-full bg-zinc-900 border border-zinc-700 rounded-lg p-3",value:_,onChange:A=>d(A.target.value),children:[u.jsx("option",{value:"",children:"请选择..."}),o.map(A=>u.jsx("option",{value:A.id,children:A.title},A.id))]}),u.jsxs("div",{className:"bg-zinc-900 rounded-xl p-4 h-64 md:h-96 overflow-y-auto border border-zinc-800 font-mono text-sm",children:[u.jsxs("div",{className:"flex gap-4 py-2 border-b border-zinc-800 items-center",children:[u.jsx("span",{className:"text-indigo-400",children:"[00:12.5]"}),u.jsx("span",{className:"text-white",children:"Neon lights in the rain..."})]}),u.jsxs("div",{className:"flex gap-4 py-2 border-b border-zinc-800 items-center",children:[u.jsx("span",{className:"text-indigo-400",children:"[00:18.2]"}),u.jsx("span",{className:"text-white",children:"Walking down the street alone..."})]})]})]}),u.jsx("div",{className:"bg-zinc-900 rounded-xl p-8 flex items-center justify-center border border-zinc-800 border-dashed",children:u.jsxs("div",{className:"text-center text-zinc-500",children:[u.jsx(Ji,{size:48,className:"mx-auto mb-4 opacity-50"}),u.jsx("p",{children:"在左侧选择歌曲以加载歌词"}),u.jsx("p",{className:"text-xs mt-2",children:"支持拖拽波形调整时间点 (Preview)"})]})})]})]})},Nv=({songs:o,onTaskCreated:j})=>{const[_,d]=X.useState(null),A=async(M,T)=>{if(!T.songId){alert("请先选择一首歌曲");return}try{const y=await Ue.processAudio({songId:T.songId,operation:M,params:T});j(y),d(null),alert("任务已提交!请在列表查看进度。")}catch{alert("Error processing")}},w=[{id:"upload",icon:cv,label:"上传素材 (Upload)",desc:"上传音频到库",action:()=>{var M;return(M=document.getElementById("global-upload"))==null?void 0:M.click()}},{id:"remix-vocals",icon:M1,label:"纯音乐配人声 (Add Vocals)",desc:"为伴奏添加AI演唱"},{id:"remix-inst",icon:Ss,label:"清唱配乐 (Add Instrumental)",desc:"为人声添加背景音乐"},{id:"crop",icon:G1,label:"裁剪音乐 (Crop)",desc:"剪辑最精彩的片段"},{id:"speed",icon:Gh,label:"调整速度 (Speed)",desc:"更改BPM和播放速度"},{id:"timing",icon:Ji,label:"歌词时间线 (Timing)",desc:"精确调整歌词同步"}],O=async M=>{var T;(T=M.target.files)!=null&&T[0]&&(await Ue.uploadAudio(M.target.files[0]),alert("上传成功!"))};return _==="speed"?u.jsx(pv,{songs:o,onBack:()=>d(null),onSubmit:A}):_==="crop"?u.jsx(zv,{songs:o,onBack:()=>d(null),onSubmit:A}):_==="remix-vocals"?u.jsx(Lr,{mode:"vocals",songs:o,onBack:()=>d(null),onSubmit:A}):_==="remix-inst"?u.jsx(Lr,{mode:"instrumental",songs:o,onBack:()=>d(null),onSubmit:A}):_==="timing"?u.jsx(jv,{songs:o,onBack:()=>d(null)}):u.jsxs("div",{className:"p-8 max-w-6xl mx-auto",children:[u.jsx("h2",{className:"text-3xl font-bold text-white mb-8",children:"工具箱 (Tools)"}),u.jsx("input",{type:"file",id:"global-upload",className:"hidden",onChange:O}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[w.map(M=>u.jsxs("button",{className:"flex flex-col items-start p-6 bg-zinc-900 border border-zinc-800 hover:border-indigo-500 hover:bg-zinc-800 rounded-xl transition-all group text-left relative overflow-hidden",onClick:()=>M.action?M.action():d(M.id),children:[u.jsx("div",{className:"bg-zinc-800 p-3 rounded-lg mb-4 group-hover:bg-indigo-600 transition-colors relative z-10",children:u.jsx(M.icon,{className:"text-white",size:24})}),u.jsx("h3",{className:"text-lg font-bold text-white mb-2 relative z-10",children:M.label}),u.jsx("p",{className:"text-sm text-zinc-400 relative z-10",children:M.desc}),u.jsx("div",{className:"absolute -bottom-4 -right-4 w-24 h-24 bg-white/5 rounded-full group-hover:scale-150 transition-transform"})]},M.id)),u.jsx("div",{className:"p-6 border border-dashed border-zinc-800 rounded-xl flex items-center justify-center text-center",children:u.jsx("p",{className:"text-zinc-500 text-sm",children:'提示: 歌曲续写功能请在"我的曲库"中点击具体歌曲的 "Extend" 按钮。'})})]})]})},Sv=({songs:o,onPlay:j,onNavigateToCreate:_,onNavigateToDetail:d})=>{const A=o.slice(0,3),w=o;return u.jsxs("div",{className:"p-6 md:p-10 space-y-12 max-w-7xl mx-auto",children:[u.jsxs("div",{className:"relative rounded-3xl overflow-hidden bg-black p-8 md:p-16 border border-white/10 shadow-2xl group",children:[u.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,_var(--tw-gradient-stops))] from-purple-900/40 via-zinc-900 to-black z-0"}),u.jsx("div",{className:"absolute -top-24 -left-24 w-96 h-96 bg-indigo-600/20 rounded-full blur-3xl opacity-50 animate-pulse"}),u.jsx("div",{className:"absolute -bottom-24 -right-24 w-96 h-96 bg-pink-600/20 rounded-full blur-3xl opacity-50 animate-pulse delay-700"}),u.jsxs("div",{className:"relative z-10 max-w-3xl",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/5 border border-white/10 backdrop-blur-md mb-6 animate-in slide-in-from-bottom-2 duration-700",children:[u.jsx(ps,{size:14,className:"text-indigo-400"}),u.jsx("span",{className:"text-xs font-medium text-indigo-200",children:"朴见潮音 V3.5 现已上线"})]}),u.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-6 leading-tight tracking-tight",children:["用 AI 释放你的 ",u.jsx("br",{}),u.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-indigo-400 via-purple-400 to-pink-400 drop-shadow-sm",children:"无限音乐创造力"})]}),u.jsx("p",{className:"text-zinc-400 text-lg mb-10 max-w-lg leading-relaxed",children:"无需乐理知识,只需一段文字描述,即可生成广播级音质的完整歌曲。探索 AI 音乐的无限可能。"}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsxs("button",{onClick:_,className:"px-8 py-4 bg-white text-black font-bold rounded-2xl hover:bg-zinc-200 transition-all shadow-[0_0_20px_rgba(255,255,255,0.15)] hover:shadow-[0_0_30px_rgba(255,255,255,0.25)] flex items-center gap-2 transform hover:-translate-y-1 active:scale-95",children:[u.jsx(ps,{size:20}),"开始创作"]}),u.jsxs("button",{className:"px-8 py-4 bg-white/5 text-white font-bold rounded-2xl hover:bg-white/10 backdrop-blur-md border border-white/10 transition-all flex items-center gap-2 group/btn",children:["浏览广场",u.jsx(kr,{size:18,className:"group-hover/btn:translate-x-1 transition-transform"})]})]})]})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"p-2 bg-orange-500/10 rounded-lg",children:u.jsx(o1,{className:"text-orange-500",size:24})}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold text-white",children:"热门趋势 (Trending)"}),u.jsx("p",{className:"text-sm text-zinc-500",children:"社区最受欢迎的作品"})]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:A.map((O,M)=>u.jsx("div",{onClick:()=>d(O),className:"group relative bg-zinc-900/40 backdrop-blur-sm rounded-2xl overflow-hidden cursor-pointer border border-white/5 hover:border-indigo-500/30 hover:bg-zinc-800/60 transition-all duration-300 hover:shadow-2xl hover:shadow-indigo-500/10",children:u.jsxs("div",{className:"flex items-center p-4 gap-4",children:[u.jsxs("div",{className:"relative w-24 h-24 flex-shrink-0 rounded-xl overflow-hidden shadow-lg",children:[u.jsx("img",{src:O.imageUrl,alt:O.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"}),u.jsx("div",{className:"absolute inset-0 bg-black/30 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:u.jsx("button",{onClick:T=>{T.stopPropagation(),j(O)},className:"w-10 h-10 bg-white/90 rounded-full flex items-center justify-center hover:scale-110 transition-transform shadow-lg",children:u.jsx(Et,{className:"fill-black text-black ml-1",size:16})})}),u.jsxs("div",{className:"absolute top-1 left-1 bg-black/60 backdrop-blur-sm px-1.5 py-0.5 rounded text-[10px] text-white font-bold border border-white/10",children:["#",M+1]})]}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"text-white font-bold truncate text-lg mb-1 group-hover:text-indigo-400 transition-colors",children:O.title}),u.jsx("p",{className:"text-zinc-500 text-sm truncate mb-2",children:O.tags}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"flex items-center gap-1 text-xs text-zinc-400",children:[u.jsx(Et,{size:12})," 12.5k"]}),u.jsx("div",{className:"h-3 w-[1px] bg-zinc-800"}),u.jsx("span",{className:"text-xs text-indigo-400 bg-indigo-500/10 px-2 py-0.5 rounded border border-indigo-500/20",children:O.model})]})]})]})},O.id))})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-8",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-indigo-500/10 rounded-lg",children:u.jsx(av,{className:"text-indigo-400",size:24})}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold text-white",children:"最新发布 (New Arrivals)"}),u.jsx("p",{className:"text-sm text-zinc-500",children:"刚刚生成的作品"})]})]}),u.jsx("button",{className:"text-sm font-medium text-zinc-400 hover:text-white transition-colors",onClick:_,children:"查看更多"})]}),u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-5",children:w.slice(0,10).map(O=>u.jsxs("div",{onClick:()=>d(O),className:"group bg-zinc-900/30 hover:bg-zinc-800/60 p-3 rounded-2xl border border-white/5 hover:border-white/10 transition-all cursor-pointer",children:[u.jsxs("div",{className:"relative aspect-square rounded-xl overflow-hidden mb-3 shadow-lg bg-zinc-800",children:[u.jsx("img",{src:O.imageUrl,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent opacity-60"}),u.jsx("div",{className:"absolute bottom-2 right-2 flex gap-1 opacity-0 group-hover:opacity-100 transition-all translate-y-2 group-hover:translate-y-0 duration-300",children:u.jsx("button",{onClick:M=>{M.stopPropagation(),j(O)},className:"w-8 h-8 bg-white rounded-full flex items-center justify-center hover:scale-110 transition-transform shadow-lg",children:u.jsx(Et,{className:"fill-black text-black ml-0.5",size:14})})})]}),u.jsx("h4",{className:"text-zinc-100 font-bold truncate text-sm mb-1 group-hover:text-indigo-300 transition-colors",children:O.title}),u.jsx("p",{className:"text-zinc-500 text-xs truncate",children:O.tags})]},O.id))})]})]})},_v=({song:o,currentPlayingSong:j,isPlaying:_,relatedSongs:d,onPlayPause:A,onBack:w,onExtend:O,onNavigateToSong:M})=>{const[T,y]=X.useState(!1),[B,U]=X.useState(!1),[V,fl]=X.useState(!1),[pl,xl]=X.useState(!1),[$l,wl]=X.useState(null),Gl=X.useRef(null),yl=X.useRef(null),_l=X.useRef(null),Cl=_&&(j==null?void 0:j.id)===o.id;X.useEffect(()=>{const Y=I=>{Gl.current&&!Gl.current.contains(I.target)&&U(!1),yl.current&&!yl.current.contains(I.target)&&fl(!1),_l.current&&!_l.current.contains(I.target)&&xl(!1)};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[]);const zl=async Y=>{wl(Y),fl(!1),U(!1);try{const I=Y==="wav"?await Ue.getWavUrl(o.id):await Ue.getVideoUrl(o.id),G=document.createElement("a");G.href=I,G.download=`suno_${Y}_${o.id}.${Y==="wav"?"mp3":"mp4"}`,document.body.appendChild(G),G.click(),document.body.removeChild(G)}catch{alert("Download failed")}finally{wl(null)}},K=()=>{navigator.clipboard.writeText(window.location.href),alert("链接已复制到剪贴板!"),U(!1),xl(!1)},Al=Y=>{const I=encodeURIComponent(window.location.href),G=encodeURIComponent(`Check out this song I generated on Suno AI: ${o.title}`);let jl="";if(Y==="twitter")jl=`https://twitter.com/intent/tweet?text=${G}&url=${I}`;else if(Y==="facebook")jl=`https://www.facebook.com/sharer/sharer.php?u=${I}`;else if(Y==="instagram"){K();return}jl&&window.open(jl,"_blank","width=600,height=400"),xl(!1)},Wl=()=>{y(!T)};return u.jsxs("div",{className:"relative min-h-full pb-32 animate-in slide-in-from-right duration-300",children:[u.jsxs("div",{className:"absolute top-0 left-0 right-0 h-[500px] overflow-hidden -z-10",children:[u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent to-zinc-950 z-10"}),u.jsx("img",{src:o.imageUrl,className:"w-full h-full object-cover blur-3xl opacity-30"})]}),u.jsxs("div",{className:"p-4 md:p-8 max-w-[1600px] mx-auto",children:[u.jsxs("button",{onClick:w,className:"flex items-center gap-2 text-zinc-300 hover:text-white mb-8 bg-black/20 backdrop-blur-md px-4 py-2 rounded-full transition-colors w-fit border border-white/5",children:[u.jsx(Tn,{size:18}),u.jsx("span",{children:"返回库 (Back)"})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[320px_1fr] xl:grid-cols-[320px_1fr_350px] gap-8 xl:gap-12",children:[u.jsxs("div",{className:"flex flex-col gap-6",children:[u.jsxs("div",{className:"aspect-square rounded-2xl overflow-hidden shadow-2xl border border-white/10 relative group bg-black",children:[u.jsx("img",{src:o.imageUrl,className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/20 group-hover:bg-black/40 transition-colors",children:u.jsx("button",{onClick:()=>A(o),className:"w-16 h-16 bg-white/20 backdrop-blur-md rounded-full flex items-center justify-center hover:scale-110 transition-transform cursor-pointer",children:Cl?u.jsx(Ki,{className:"fill-white text-white",size:32}):u.jsx(Et,{className:"fill-white text-white ml-1",size:32})})})]}),u.jsxs("div",{className:"flex flex-col gap-3",children:[u.jsxs("button",{onClick:()=>A(o),className:"w-full py-4 bg-indigo-600 hover:bg-indigo-500 text-white font-bold rounded-xl flex items-center justify-center gap-2 text-lg shadow-lg shadow-indigo-600/20 transition-all active:scale-[0.98]",children:[Cl?u.jsx(Ki,{className:"fill-white"}):u.jsx(Et,{className:"fill-white"}),Cl?"暂停播放":"立即播放"]}),u.jsxs("div",{className:"flex gap-3",children:[u.jsxs("button",{onClick:O,className:"flex-1 py-3 bg-zinc-800 hover:bg-zinc-700 text-white font-medium rounded-xl flex items-center justify-center gap-2 transition-colors border border-zinc-700",children:[u.jsx(An,{size:18}),"续写"]}),u.jsxs("div",{className:"relative flex-1",ref:yl,children:[u.jsxs("button",{onClick:()=>fl(!V),className:"w-full py-3 bg-zinc-800 hover:bg-zinc-700 text-white font-medium rounded-xl flex items-center justify-center gap-2 transition-colors border border-zinc-700",disabled:!!$l,children:[$l?u.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent"}):u.jsx(Gr,{size:18}),"下载"]}),V&&u.jsxs("div",{className:"absolute bottom-full left-0 right-0 mb-2 bg-zinc-900 border border-zinc-700 rounded-xl shadow-xl overflow-hidden z-20 animate-in fade-in slide-in-from-bottom-2 duration-200",children:[u.jsxs("button",{onClick:()=>zl("video"),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-zinc-800 transition-colors text-left text-sm text-zinc-200",children:[u.jsx(zs,{size:16,className:"text-indigo-400"}),u.jsx("span",{children:"下载视频 (MP4)"})]}),u.jsx("div",{className:"h-[1px] bg-zinc-800 mx-2"}),u.jsxs("button",{onClick:()=>zl("wav"),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-zinc-800 transition-colors text-left text-sm text-zinc-200",children:[u.jsx(Ss,{size:16,className:"text-pink-400"}),u.jsx("span",{children:"下载音频 (WAV)"})]})]})]})]})]}),u.jsxs("div",{className:"bg-zinc-900/50 rounded-xl p-4 border border-zinc-800 space-y-4 backdrop-blur-md",children:[u.jsxs("div",{className:"flex justify-between items-center text-sm",children:[u.jsx("span",{className:"text-zinc-400",children:"时长"}),u.jsxs("span",{className:"text-white",children:[Math.floor(o.duration/60),":",(o.duration%60).toString().padStart(2,"0")]})]}),u.jsxs("div",{className:"flex justify-between items-center text-sm",children:[u.jsx("span",{className:"text-zinc-400",children:"模型"}),u.jsx("span",{className:"text-white uppercase",children:o.model})]}),u.jsxs("div",{className:"flex justify-between items-center text-sm",children:[u.jsx("span",{className:"text-zinc-400",children:"创建时间"}),u.jsx("span",{className:"text-white",children:new Date(o.createdAt).toLocaleDateString()})]}),u.jsxs("div",{className:"flex justify-between items-center text-sm",children:[u.jsx("span",{className:"text-zinc-400",children:"状态"}),u.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-bold ${o.status===se.COMPLETED?"bg-green-500/20 text-green-400":"bg-yellow-500/20 text-yellow-400"}`,children:o.status.toUpperCase()})]})]})]}),u.jsxs("div",{className:"space-y-8 min-w-0",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-4 leading-tight",children:o.title}),u.jsxs("div",{className:"flex items-center gap-2 bg-zinc-900/80 backdrop-blur-md p-1.5 rounded-xl border border-zinc-800 shrink-0",children:[u.jsx("button",{onClick:Wl,className:`p-2 rounded-lg transition-all ${T?"text-pink-500 bg-pink-500/10":"text-zinc-400 hover:text-white hover:bg-white/5"}`,title:"收藏",children:u.jsx(r1,{size:20,className:T?"fill-current":""})}),u.jsxs("div",{className:"relative",ref:_l,children:[u.jsx("button",{onClick:()=>xl(!pl),className:`p-2 rounded-lg transition-all ${pl?"text-white bg-white/10":"text-zinc-400 hover:text-white hover:bg-white/5"}`,title:"分享",children:u.jsx(k1,{size:20})}),pl&&u.jsxs("div",{className:"absolute top-full right-0 mt-2 w-60 bg-zinc-900 border border-zinc-700 rounded-xl shadow-xl overflow-hidden z-20 animate-in fade-in zoom-in-95 duration-200",children:[u.jsxs("div",{className:"p-3 border-b border-zinc-800",children:[u.jsx("p",{className:"text-xs text-zinc-500 font-medium mb-2",children:"分享到社交媒体"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>Al("twitter"),className:"p-2 bg-[#1DA1F2]/10 text-[#1DA1F2] hover:bg-[#1DA1F2]/20 rounded-lg transition-colors flex-1 flex justify-center items-center",title:"Twitter / X",children:u.jsx(iv,{size:18})}),u.jsx("button",{onClick:()=>Al("facebook"),className:"p-2 bg-[#4267B2]/10 text-[#4267B2] hover:bg-[#4267B2]/20 rounded-lg transition-colors flex-1 flex justify-center items-center",title:"Facebook",children:u.jsx(c1,{size:18})}),u.jsx("button",{onClick:()=>Al("instagram"),className:"p-2 bg-gradient-to-tr from-[#f9ce34] via-[#ee2a7b] to-[#6228d7] text-white hover:opacity-90 rounded-lg transition-opacity flex-1 flex justify-center items-center relative overflow-hidden",title:"Instagram (复制链接)",children:u.jsx(v1,{size:18})})]})]}),u.jsxs("button",{onClick:K,className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-zinc-800 transition-colors text-left text-sm text-zinc-300 hover:text-white",children:[u.jsx(Qr,{size:16})," 复制链接"]})]})]}),u.jsxs("div",{className:"relative",ref:Gl,children:[u.jsx("button",{onClick:()=>U(!B),className:`p-2 rounded-lg transition-all ${B?"text-white bg-white/10":"text-zinc-400 hover:text-white hover:bg-white/5"}`,children:u.jsx(i1,{size:20})}),B&&u.jsxs("div",{className:"absolute top-full right-0 mt-2 w-48 bg-zinc-900 border border-zinc-700 rounded-xl shadow-xl overflow-hidden z-20 animate-in fade-in zoom-in-95 duration-200",children:[u.jsxs("button",{onClick:K,className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-zinc-800 transition-colors text-left text-sm text-zinc-300 hover:text-white",children:[u.jsx(Qr,{size:16})," 复制链接"]}),u.jsxs("button",{onClick:()=>zl("wav"),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-zinc-800 transition-colors text-left text-sm text-zinc-300 hover:text-white",children:[u.jsx(Gr,{size:16})," 下载音频"]}),u.jsxs("button",{onClick:()=>zl("video"),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-zinc-800 transition-colors text-left text-sm text-zinc-300 hover:text-white",children:[u.jsx(zs,{size:16})," 下载视频"]})]})]})]})]}),u.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:o.tags.split(",").map((Y,I)=>u.jsxs("span",{className:"px-3 py-1 rounded-full bg-zinc-800 text-zinc-300 text-sm border border-zinc-700 hover:border-indigo-500/50 transition-colors cursor-default",children:["#",Y.trim()]},I))})]}),u.jsxs("div",{className:"bg-zinc-900/30 border border-zinc-800 rounded-2xl p-6 md:p-8 backdrop-blur-sm relative",children:[u.jsx("div",{className:"absolute top-4 right-4",children:u.jsx("div",{className:"p-2 bg-black/20 rounded-lg",children:u.jsx(Ji,{size:20,className:"text-zinc-500"})})}),u.jsxs("h3",{className:"text-xl font-bold text-white mb-6 flex items-center gap-2",children:[u.jsx("span",{className:"text-indigo-400",children:"///"}),"歌词 (Lyrics)"]}),o.isInstrumental?u.jsxs("div",{className:"text-zinc-500 italic text-center py-10 flex flex-col items-center gap-2",children:[u.jsx(An,{size:40,className:"opacity-20 mb-2"}),u.jsx("p",{children:"此曲目为纯音乐 (Instrumental)"}),u.jsx("p",{className:"text-xs",children:"无歌词内容"})]}):u.jsx("div",{className:"space-y-6 font-mono text-zinc-300 leading-relaxed whitespace-pre-wrap text-base",children:o.lyrics||(o.prompt?`Prompt used: ${o.prompt}`:"暂无歌词内容...")})]})]}),u.jsxs("div",{className:"hidden xl:flex flex-col h-[calc(100vh-140px)] sticky top-0",children:[u.jsxs("h3",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2 px-1",children:[u.jsx(An,{size:18,className:"text-indigo-500"}),"播放列表"]}),u.jsx("div",{className:"flex-1 overflow-y-auto pr-2 space-y-3 custom-scrollbar",children:d.map(Y=>{const I=Y.id===o.id;return _&&(j==null||j.id,Y.id),u.jsxs("div",{onClick:()=>M(Y),className:`flex items-center gap-3 p-2 rounded-xl transition-all cursor-pointer group border ${I?"bg-zinc-800 border-indigo-500/50":"hover:bg-zinc-900 border-transparent hover:border-zinc-800"}`,children:[u.jsxs("div",{className:"relative w-12 h-12 rounded-lg overflow-hidden shrink-0 bg-black",children:[u.jsx("img",{src:Y.imageUrl,className:`w-full h-full object-cover ${I?"opacity-50":""}`}),I&&u.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:u.jsx("div",{className:"w-2 h-2 bg-indigo-500 rounded-full animate-pulse"})}),u.jsx("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 flex items-center justify-center transition-opacity",children:u.jsx(Et,{size:16,className:"fill-white text-white"})})]}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsx("h4",{className:`text-sm font-bold truncate ${I?"text-indigo-400":"text-zinc-200"}`,children:Y.title}),u.jsxs("div",{className:"flex items-center justify-between mt-1",children:[u.jsx("p",{className:"text-xs text-zinc-500 truncate max-w-[80px]",children:Y.tags}),u.jsxs("span",{className:"text-[10px] text-zinc-600 font-mono",children:[Math.floor(Y.duration/60),":",(Y.duration%60).toString().padStart(2,"0")]})]})]})]},Y.id)})})]})]})]})]})},Ev=({onLogin:o,onCancel:j})=>{const[_,d]=X.useState(!1),[A,w]=X.useState(!1),[O,M]=X.useState({email:"",password:"",name:""}),T=async y=>{y.preventDefault(),w(!0),setTimeout(()=>{w(!1);const B={id:"u_"+Date.now(),name:_?O.name:"朴见音乐人",email:O.email,avatarUrl:`https://api.dicebear.com/7.x/avataaars/svg?seed=${O.email}`,credits:500,plan:"free",memberSince:new Date().toISOString()};o(B)},1500)};return u.jsx("div",{className:"w-full h-full flex items-center justify-center p-4",children:u.jsxs("div",{className:"w-full max-w-md bg-zinc-900/50 backdrop-blur-xl border border-white/10 rounded-3xl p-8 shadow-2xl animate-in fade-in zoom-in-95 duration-300",children:[u.jsxs("div",{className:"text-center mb-8",children:[u.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-indigo-500/10 mb-4",children:u.jsx($i,{className:"text-indigo-500 w-8 h-8"})}),u.jsx("h2",{className:"text-3xl font-bold text-white mb-2",children:_?"加入朴见潮音":"欢迎回来"}),u.jsx("p",{className:"text-zinc-400 text-sm",children:_?"释放无限音乐创造力":"登录以继续您的创作之旅"})]}),u.jsxs("form",{onSubmit:T,className:"space-y-4",children:[_&&u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400 ml-1",children:"昵称 (Nickname)"}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-zinc-500",children:u.jsx(Wr,{size:18})}),u.jsx("input",{type:"text",required:!0,value:O.name,onChange:y=>M({...O,name:y.target.value}),className:"w-full bg-black/40 border border-zinc-700 rounded-xl py-3 pl-10 pr-4 text-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none transition-all",placeholder:"您的称呼"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400 ml-1",children:"邮箱 (Email)"}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-zinc-500",children:u.jsx(_1,{size:18})}),u.jsx("input",{type:"email",required:!0,value:O.email,onChange:y=>M({...O,email:y.target.value}),className:"w-full bg-black/40 border border-zinc-700 rounded-xl py-3 pl-10 pr-4 text-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none transition-all",placeholder:"name@example.com"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{className:"text-xs font-medium text-zinc-400 ml-1",children:"密码 (Password)"}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-zinc-500",children:u.jsx(p1,{size:18})}),u.jsx("input",{type:"password",required:!0,value:O.password,onChange:y=>M({...O,password:y.target.value}),className:"w-full bg-black/40 border border-zinc-700 rounded-xl py-3 pl-10 pr-4 text-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent outline-none transition-all",placeholder:"••••••••"})]})]}),!_&&u.jsx("div",{className:"flex justify-end",children:u.jsx("button",{type:"button",className:"text-xs text-indigo-400 hover:text-indigo-300",children:"忘记密码?"})}),u.jsx("button",{type:"submit",disabled:A,className:"w-full py-3 bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-bold rounded-xl shadow-lg shadow-indigo-500/20 flex items-center justify-center gap-2 transition-all mt-4",children:A?u.jsx("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):u.jsxs(u.Fragment,{children:[_?"立即注册":"登录",u.jsx(kr,{size:18})]})})]}),u.jsx("div",{className:"mt-8 text-center",children:u.jsxs("p",{className:"text-zinc-500 text-sm",children:[_?"已有账号? ":"还没有账号? ",u.jsx("button",{onClick:()=>d(!_),className:"text-white font-medium hover:underline decoration-indigo-500 underline-offset-4",children:_?"去登录":"立即注册"})]})})]})})},Av=({user:o,onLogout:j})=>u.jsxs("div",{className:"max-w-4xl mx-auto p-6 md:p-10 space-y-8 animate-in slide-in-from-bottom-4 duration-500",children:[u.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6 p-8 bg-zinc-900/50 border border-zinc-800 rounded-3xl backdrop-blur-sm",children:[u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:o.avatarUrl,alt:o.name,className:"w-24 h-24 rounded-full border-4 border-zinc-800 shadow-xl"}),o.plan!=="free"&&u.jsx("div",{className:"absolute -top-1 -right-1 bg-yellow-500 text-black p-1.5 rounded-full border-2 border-zinc-900",children:u.jsx(e1,{size:14,fill:"black"})})]}),u.jsxs("div",{className:"text-center md:text-left flex-1",children:[u.jsx("h2",{className:"text-3xl font-bold text-white mb-1",children:o.name}),u.jsx("p",{className:"text-zinc-400 mb-3",children:o.email}),u.jsxs("div",{className:"flex items-center justify-center md:justify-start gap-2 text-xs",children:[u.jsxs("span",{className:"px-3 py-1 bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 rounded-full font-medium uppercase tracking-wider",children:[o.plan," Plan"]}),u.jsxs("span",{className:"text-zinc-500",children:["注册于 ",new Date(o.memberSince).toLocaleDateString()]})]})]}),u.jsxs("button",{onClick:j,className:"px-4 py-2 bg-red-500/10 text-red-400 hover:bg-red-500/20 rounded-xl border border-red-500/20 flex items-center gap-2 transition-colors text-sm font-medium",children:[u.jsx(N1,{size:16}),"退出登录"]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs("div",{className:"p-6 bg-gradient-to-br from-indigo-900/40 to-purple-900/40 border border-indigo-500/30 rounded-3xl relative overflow-hidden group",children:[u.jsx("div",{className:"absolute top-0 right-0 p-32 bg-indigo-500/20 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2"}),u.jsxs("div",{className:"relative z-10",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx("div",{className:"p-2 bg-indigo-500 rounded-lg text-white shadow-lg shadow-indigo-500/40",children:u.jsx(Ph,{size:20})}),u.jsx("h3",{className:"text-lg font-bold text-white",children:"积分余额 (Credits)"})]}),u.jsxs("div",{className:"flex items-baseline gap-1 mb-4",children:[u.jsx("span",{className:"text-4xl font-bold text-white tracking-tight",children:o.credits}),u.jsx("span",{className:"text-zinc-400 text-sm",children:"/ 500 (月度)"})]}),u.jsx("div",{className:"w-full bg-black/30 h-2 rounded-full overflow-hidden mb-4 border border-white/5",children:u.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-purple-500 h-full w-[80%]"})}),u.jsx("button",{className:"w-full py-3 bg-white text-indigo-950 font-bold rounded-xl hover:bg-indigo-50 transition-colors shadow-lg",children:"立即充值"})]})]}),u.jsxs("div",{className:"p-6 bg-zinc-900/30 border border-zinc-800 rounded-3xl",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[u.jsx("div",{className:"p-2 bg-zinc-800 rounded-lg text-zinc-300",children:u.jsx(Z1,{size:20})}),u.jsx("h3",{className:"text-lg font-bold text-white",children:"账号设置 (Settings)"})]}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("button",{className:"w-full flex items-center justify-between p-3 hover:bg-zinc-800 rounded-xl transition-colors group",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Wr,{size:18,className:"text-zinc-500 group-hover:text-white"}),u.jsx("span",{className:"text-zinc-300 group-hover:text-white",children:"编辑资料"})]}),u.jsx("span",{className:"text-zinc-600 text-xs",children:"修改"})]}),u.jsxs("button",{className:"w-full flex items-center justify-between p-3 hover:bg-zinc-800 rounded-xl transition-colors group",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Zh,{size:18,className:"text-zinc-500 group-hover:text-white"}),u.jsx("span",{className:"text-zinc-300 group-hover:text-white",children:"通知偏好"})]}),u.jsx("span",{className:"text-zinc-600 text-xs",children:"开启"})]}),u.jsx("button",{className:"w-full flex items-center justify-between p-3 hover:bg-zinc-800 rounded-xl transition-colors group",children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(J1,{size:18,className:"text-zinc-500 group-hover:text-white"}),u.jsx("span",{className:"text-zinc-300 group-hover:text-white",children:"隐私安全"})]})})]})]})]}),u.jsxs("div",{className:"space-y-6",children:[u.jsx("h3",{className:"text-xl font-bold text-white",children:"订阅计划 (Subscription)"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:["Free","Pro","Premier"].map((_,d)=>u.jsxs("div",{className:`p-6 rounded-2xl border flex flex-col ${o.plan===_.toLowerCase()?"bg-zinc-800 border-indigo-500":"bg-zinc-900/30 border-zinc-800"}`,children:[u.jsxs("div",{className:"mb-4",children:[u.jsx("span",{className:"text-lg font-bold text-white",children:_}),o.plan===_.toLowerCase()&&u.jsx("span",{className:"ml-2 text-xs bg-indigo-500 text-white px-2 py-0.5 rounded-full",children:"当前"})]}),u.jsxs("div",{className:"text-3xl font-bold text-white mb-6",children:[d===0?"$0":d===1?"$8":"$24",u.jsx("span",{className:"text-sm text-zinc-500 font-normal",children:"/mo"})]}),u.jsx("ul",{className:"space-y-3 mb-8 flex-1",children:[1,2,3].map(A=>u.jsxs("li",{className:"flex items-center gap-2 text-sm text-zinc-400",children:[u.jsx("div",{className:"w-1.5 h-1.5 bg-zinc-600 rounded-full"}),"Feature item description"]},A))}),u.jsx("button",{className:`w-full py-2.5 rounded-lg text-sm font-bold transition-colors ${o.plan===_.toLowerCase()?"bg-zinc-700 text-zinc-400 cursor-default":"bg-white text-black hover:bg-zinc-200"}`,disabled:o.plan===_.toLowerCase(),children:o.plan===_.toLowerCase()?"当前计划":"升级"})]},_))})]})]}),Tv=()=>{const[o,j]=X.useState("home"),[_,d]=X.useState(Fr),[A,w]=X.useState(!1),[O,M]=X.useState(null),[T,y]=X.useState(null),[B,U]=X.useState(!1),[V,fl]=X.useState(null),[pl,xl]=X.useState(null);X.useEffect(()=>{const Y=setInterval(async()=>{const I=_.filter(G=>G.status===se.QUEUEING||G.status===se.PROCESSING);if(I.length>0){const G=I.map(Hl=>Hl.id),jl=await Ue.fetchIds(G);d(Hl=>Hl.map(Il=>{const p=jl.find(D=>D.id===Il.id);return p&&p.status===se.COMPLETED&&Il.status!==se.COMPLETED?p:Il}))}},5e3);return()=>clearInterval(Y)},[_]);const $l=Y=>{Array.isArray(Y)?d(I=>[...Y,...I]):d(I=>[Y,...I]),j("library")},wl=Y=>{d(I=>[Y,...I]),j("library")},Gl=Y=>{(T==null?void 0:T.id)===Y.id?U(!B):(y(Y),U(!0))},yl=Y=>{xl(Y),j("create"),fl(null)},_l=Y=>{fl(Y),j("detail")},Cl=()=>{xl(null)},zl=Y=>{j(Y),Y!=="detail"&&fl(null),w(!1)},K=Y=>{M(Y),j("home")},Al=()=>{M(null),j("home")},Wl=()=>o==="auth"?u.jsx("div",{className:"h-full animate-in fade-in zoom-in-95 duration-500",children:u.jsx(Ev,{onLogin:K,onCancel:()=>j("home")})}):o==="user"?O?u.jsx(Av,{user:O,onLogout:Al}):(j("auth"),null):o==="home"?u.jsx("div",{className:"animate-in fade-in zoom-in-95 duration-500",children:u.jsx(Sv,{songs:_,onPlay:Gl,onNavigateToCreate:()=>j("create"),onNavigateToDetail:_l})}):o==="create"?u.jsx("div",{className:"animate-in fade-in zoom-in-95 duration-500",children:u.jsx(yv,{onTasksCreated:$l,extendSong:pl,onClearExtend:Cl})}):o==="library"?u.jsxs("div",{className:"animate-in fade-in slide-in-from-bottom-4 duration-500",children:[u.jsx("div",{className:"p-6 md:p-8 pb-0",children:u.jsx("h2",{className:"text-3xl font-bold text-white tracking-tight",children:"我的曲库 (Library)"})}),u.jsx(gv,{songs:_,currentSong:T,isPlaying:B,onPlay:Gl,onExtend:yl,onDetail:_l})]}):o==="tools"?u.jsx("div",{className:"animate-in fade-in duration-500",children:u.jsx(Nv,{songs:_,onTaskCreated:wl})}):o==="detail"&&V?u.jsx(_v,{song:V,currentPlayingSong:T,isPlaying:B,relatedSongs:_,onPlayPause:Y=>Gl(Y||V),onBack:()=>j("library"),onExtend:()=>yl(V),onNavigateToSong:_l}):null;return u.jsxs("div",{className:"flex h-screen bg-[#050505] text-white font-sans overflow-hidden bg-[radial-gradient(circle_at_top,_var(--tw-gradient-stops))] from-zinc-900 via-[#050505] to-[#000000]",children:[u.jsxs("div",{className:"md:hidden fixed top-0 left-0 right-0 h-16 bg-black/80 backdrop-blur-md border-b border-white/5 z-50 flex items-center justify-between px-4",children:[u.jsxs("div",{className:"flex items-center gap-2 font-bold text-lg",children:[u.jsx($i,{className:"text-indigo-500"}),"朴见潮音"]}),u.jsx("button",{onClick:()=>w(!0),className:"p-2 text-zinc-300",children:u.jsx(A1,{})})]}),u.jsx(xv,{isOpen:A,onClose:()=>w(!1),activeTab:o==="detail"?"library":o,setActiveTab:zl,user:O,onLoginClick:()=>j("auth")}),u.jsx("div",{className:"hidden md:block h-full z-50 relative shrink-0",children:u.jsx(vv,{activeTab:o==="detail"?"library":o,setActiveTab:zl,user:O,onLoginClick:()=>j("auth")})}),u.jsxs("main",{className:"flex-1 flex flex-col h-full relative overflow-hidden pt-16 md:pt-0",children:[u.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-hide pb-20 scroll-smooth",children:Wl()}),u.jsx(bv,{currentSong:T,isPlaying:B,setIsPlaying:U,onSongClick:Y=>_l(Y)})]})]})},Ir=document.getElementById("root");if(!Ir)throw new Error("Could not find root element to mount to");const Mv=Dh.createRoot(Ir);Mv.render(u.jsx(_h.StrictMode,{children:u.jsx(Tv,{})}));