/")+"/"),A(V,T,U,"",function(Za){return Za})):V!=null&&(De(V)&&(V=la(V,U+(V.key==null||h&&h.key===V.key?"":(""+V.key).replace(_t,"/")+"/")+ul)),T.push(V)),1;ul=0;var Ql=H===""?".":H+":";if(Ce(h))for(var Sl=0;Sl>>1,ol=A[sl];if(0>>1;slp(U,Q))Hp(V,U)?(A[sl]=V,A[H]=Q,sl=H):(A[sl]=U,A[T]=Q,sl=T);else if(Hp(V,Q))A[sl]=V,A[H]=Q,sl=H;else break l}}return D}function p(A,D){var Q=A.sortIndex-D.sortIndex;return Q!==0?Q:A.id-D.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;f.unstable_now=function(){return C.now()}}else{var N=Date,_=N.now();f.unstable_now=function(){return N.now()-_}}var O=[],M=[],k=1,G=null,L=3,pl=!1,jl=!1,_l=!1,ze=!1,xl=typeof setTimeout=="function"?setTimeout:null,Vl=typeof clearTimeout=="function"?clearTimeout:null,Ll=typeof setImmediate<"u"?setImmediate:null;function he(A){for(var D=S(M);D!==null;){if(D.callback===null)r(M);else if(D.startTime<=A)r(M),D.sortIndex=D.expirationTime,g(O,D);else break;D=S(M)}}function Ce(A){if(_l=!1,he(A),!jl)if(S(O)!==null)jl=!0,wl||(wl=!0,Jl());else{var D=S(M);D!==null&&Ne(Ce,D.startTime-A)}}var wl=!1,ll=-1,Kl=5,_e=-1;function la(){return ze?!0:!(f.unstable_now()-_eA&&la());){var sl=G.callback;if(typeof sl=="function"){G.callback=null,L=G.priorityLevel;var ol=sl(G.expirationTime<=A);if(A=f.unstable_now(),typeof ol=="function"){G.callback=ol,he(A),D=!0;break e}G===S(O)&&r(O),he(A)}else r(O);G=S(O)}if(G!==null)D=!0;else{var h=S(M);h!==null&&Ne(Ce,h.startTime-A),D=!1}}break l}finally{G=null,L=Q,pl=!1}D=void 0}}finally{D?Jl():wl=!1}}}var Jl;if(typeof Ll=="function")Jl=function(){Ll(De)};else if(typeof MessageChannel<"u"){var _t=new MessageChannel,Le=_t.port2;_t.port1.onmessage=De,Jl=function(){Le.postMessage(null)}}else Jl=function(){xl(De,0)};function Ne(A,D){ll=xl(function(){A(f.unstable_now())},D)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(A){A.callback=null},f.unstable_forceFrameRate=function(A){0>A||125sl?(A.sortIndex=Q,g(M,A),S(O)===null&&A===S(M)&&(_l?(Vl(ll),ll=-1):_l=!0,Ne(Ce,Q-sl))):(A.sortIndex=ol,g(O,A),jl||pl||(jl=!0,wl||(wl=!0,Jl()))),A},f.unstable_shouldYield=la,f.unstable_wrapCallback=function(A){var D=L;return function(){var Q=L;L=D;try{return A.apply(this,arguments)}finally{L=Q}}}})(Ys)),Ys}var rh;function I1(){return rh||(rh=1,Bs.exports=F1()),Bs.exports}var Ls={exports:{}},Gl={};/** * @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 dh;function P1(){if(dh)return Gl;dh=1;var f=Vs();function g(O){var M="https://react.dev/errors/"+O;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(g){console.error(g)}}return f(),Ls.exports=P1(),Ls.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 hh;function e0(){if(hh)return Yn;hh=1;var f=I1(),g=Vs(),S=l0();function r(l){var e="https://react.dev/errors/"+l;if(1ol||(l.current=sl[ol],sl[ol]=null,ol--)}function U(l,e){ol++,sl[ol]=l.current,l.current=e}var H=h(null),V=h(null),W=h(null),ul=h(null);function Ql(l,e){switch(U(W,e),U(V,l),U(H,null),e.nodeType){case 9:case 11:l=(l=e.documentElement)&&(l=l.namespaceURI)?Mo(l):0;break;default:if(l=e.tagName,e=e.namespaceURI)e=Mo(e),l=Oo(e,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}T(H),U(H,l)}function Sl(){T(H),T(V),T(W)}function Za(l){l.memoizedState!==null&&U(ul,l);var e=H.current,t=Oo(e,l.type);e!==t&&(U(V,l),U(H,t))}function Zn(l){V.current===l&&(T(H),T(V)),ul.current===l&&(T(ul),Un._currentValue=Q)}var vi,tf;function Dt(l){if(vi===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);vi=e&&e[1]||"",tf=-1)":-1n||d[a]!==v[n]){var b=` `+d[a].replace(" at new "," at ");return l.displayName&&b.includes("")&&(b=b.replace("",l.displayName)),b}while(1<=a&&0<=n);break}}}finally{xi=!1,Error.prepareStackTrace=t}return(t=l?l.displayName||l.name:"")?Dt(t):""}function zh(l,e){switch(l.tag){case 26:case 27:case 5:return Dt(l.type);case 16:return Dt("Lazy");case 13:return l.child!==e&&e!==null?Dt("Suspense Fallback"):Dt("Suspense");case 19:return Dt("SuspenseList");case 0:case 15:return ji(l.type,!1);case 11:return ji(l.type.render,!1);case 1:return ji(l.type,!0);case 31:return Dt("Activity");default:return""}}function af(l){try{var e="",t=null;do e+=zh(l,t),t=l,l=l.return;while(l);return e}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var bi=Object.prototype.hasOwnProperty,gi=f.unstable_scheduleCallback,pi=f.unstable_cancelCallback,Nh=f.unstable_shouldYield,Th=f.unstable_requestPaint,te=f.unstable_now,Mh=f.unstable_getCurrentPriorityLevel,nf=f.unstable_ImmediatePriority,uf=f.unstable_UserBlockingPriority,Vn=f.unstable_NormalPriority,Oh=f.unstable_LowPriority,cf=f.unstable_IdlePriority,Ch=f.log,_h=f.unstable_setDisableYieldValue,Va=null,ae=null;function ut(l){if(typeof Ch=="function"&&_h(l),ae&&typeof ae.setStrictMode=="function")try{ae.setStrictMode(Va,l)}catch{}}var ne=Math.clz32?Math.clz32:Rh,Dh=Math.log,Uh=Math.LN2;function Rh(l){return l>>>=0,l===0?32:31-(Dh(l)/Uh|0)|0}var wn=256,Kn=262144,Jn=4194304;function Ut(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 kn(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=Ut(a):(c&=s,c!==0?n=Ut(c):t||(t=s&~l,t!==0&&(n=Ut(t))))):(s=a&~i,s!==0?n=Ut(s):c!==0?n=Ut(c):t||(t=a&~l,t!==0&&(n=Ut(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 wa(l,e){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&e)===0}function Hh(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 sf(){var l=Jn;return Jn<<=1,(Jn&62914560)===0&&(Jn=4194304),l}function Si(l){for(var e=[],t=0;31>t;t++)e.push(l);return e}function Ka(l,e){l.pendingLanes|=e,e!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function qh(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,d=l.expirationTimes,v=l.hiddenUpdates;for(t=c&~t;0"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Qh=/[\n"\\]/g;function ye(l){return l.replace(Qh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Mi(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=""+me(e)):l.value!==""+me(e)&&(l.value=""+me(e)):c!=="submit"&&c!=="reset"||l.removeAttribute("value"),e!=null?Oi(l,c,me(e)):t!=null?Oi(l,c,me(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=""+me(s):l.removeAttribute("name")}function pf(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)){Ti(l);return}t=t!=null?""+me(t):"",e=e!=null?""+me(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),Ti(l)}function Oi(l,e,t){e==="number"&&Fn(l.ownerDocument)===l||l.defaultValue===""+t||(l.defaultValue=""+t)}function ia(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"),Ri=!1;if(Qe)try{var $a={};Object.defineProperty($a,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Ri=!1}var ct=null,Hi=null,Pn=null;function Mf(){if(Pn)return Pn;var l,e=Hi,t=e.length,a,n="value"in ct?ct.value:ct.textContent,i=n.length;for(l=0;l=Pa),Rf=" ",Hf=!1;function qf(l,e){switch(l){case"keyup":return vm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ra=!1;function jm(l,e){switch(l){case"compositionend":return Bf(e);case"keypress":return e.which!==32?null:(Hf=!0,Rf);case"textInput":return l=e.data,l===Rf&&Hf?null:l;default:return null}}function bm(l,e){if(ra)return l==="compositionend"||!Gi&&qf(l,e)?(l=Mf(),Pn=Hi=ct=null,ra=!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=wf(t)}}function Jf(l,e){return l&&e?l===e?!0:l&&l.nodeType===3?!1:e&&e.nodeType===3?Jf(l,e.parentNode):"contains"in l?l.contains(e):l.compareDocumentPosition?!!(l.compareDocumentPosition(e)&16):!1:!1}function kf(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var e=Fn(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=Fn(l.document)}return e}function Zi(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 Tm=Qe&&"documentMode"in document&&11>=document.documentMode,da=null,Vi=null,an=null,wi=!1;function Wf(l,e,t){var a=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;wi||da==null||da!==Fn(a)||(a=da,"selectionStart"in a&&Zi(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}),an&&tn(an,a)||(an=a,a=Ku(Vi,"onSelect"),0>=c,n-=c,Ue=1<<32-ne(e)+n|t<J?(P=q,q=null):P=q.sibling;var al=x(m,q,y[J],E);if(al===null){q===null&&(q=P);break}l&&q&&al.alternate===null&&e(m,q),o=i(al,o,J),tl===null?Y=al:tl.sibling=al,tl=al,q=P}if(J===y.length)return t(m,q),el&&Ve(m,J),Y;if(q===null){for(;JJ?(P=q,q=null):P=q.sibling;var Ot=x(m,q,al.value,E);if(Ot===null){q===null&&(q=P);break}l&&q&&Ot.alternate===null&&e(m,q),o=i(Ot,o,J),tl===null?Y=Ot:tl.sibling=Ot,tl=Ot,q=P}if(al.done)return t(m,q),el&&Ve(m,J),Y;if(q===null){for(;!al.done;J++,al=y.next())al=z(m,al.value,E),al!==null&&(o=i(al,o,J),tl===null?Y=al:tl.sibling=al,tl=al);return el&&Ve(m,J),Y}for(q=a(q);!al.done;J++,al=y.next())al=j(q,m,J,al.value,E),al!==null&&(l&&al.alternate!==null&&q.delete(al.key===null?J:al.key),o=i(al,o,J),tl===null?Y=al:tl.sibling=al,tl=al);return l&&q.forEach(function(J1){return e(m,J1)}),el&&Ve(m,J),Y}function dl(m,o,y,E){if(typeof y=="object"&&y!==null&&y.type===_l&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$typeof){case pl:l:{for(var Y=y.key;o!==null;){if(o.key===Y){if(Y=y.type,Y===_l){if(o.tag===7){t(m,o.sibling),E=n(o,y.props.children),E.return=m,m=E;break l}}else if(o.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$typeof===Kl&&Vt(Y)===o.type){t(m,o.sibling),E=n(o,y.props),rn(E,y),E.return=m,m=E;break l}t(m,o);break}else e(m,o);o=o.sibling}y.type===_l?(E=Lt(y.props.children,m.mode,E,y.key),E.return=m,m=E):(E=fu(y.type,y.key,y.props,null,m.mode,E),rn(E,y),E.return=m,m=E)}return c(m);case jl:l:{for(Y=y.key;o!==null;){if(o.key===Y)if(o.tag===4&&o.stateNode.containerInfo===y.containerInfo&&o.stateNode.implementation===y.implementation){t(m,o.sibling),E=n(o,y.children||[]),E.return=m,m=E;break l}else{t(m,o);break}else e(m,o);o=o.sibling}E=Ii(y,m.mode,E),E.return=m,m=E}return c(m);case Kl:return y=Vt(y),dl(m,o,y,E)}if(Ne(y))return R(m,o,y,E);if(Jl(y)){if(Y=Jl(y),typeof Y!="function")throw Error(r(150));return y=Y.call(y),X(m,o,y,E)}if(typeof y.then=="function")return dl(m,o,vu(y),E);if(y.$typeof===Ll)return dl(m,o,ou(m,y),E);xu(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,o!==null&&o.tag===6?(t(m,o.sibling),E=n(o,y),E.return=m,m=E):(t(m,o),E=Fi(y,m.mode,E),E.return=m,m=E),c(m)):t(m,o)}return function(m,o,y,E){try{fn=0;var Y=dl(m,o,y,E);return Sa=null,Y}catch(q){if(q===pa||q===mu)throw q;var tl=ie(29,q,null,m.mode);return tl.lanes=E,tl.return=m,tl}finally{}}}var Kt=jr(!0),br=jr(!1),ot=!1;function rc(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(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 ht(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function mt(l,e,t){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(nl&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=su(l),tr(l,null,t),e}return cu(l,a,e,t),su(l)}function dn(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,rf(l,t)}}function oc(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 hc=!1;function on(){if(hc){var l=ga;if(l!==null)throw l}}function hn(l,e,t,a){hc=!1;var n=l.updateQueue;ot=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var d=s,v=d.next;d.next=null,c===null?i=v:c.next=v,c=d;var b=l.alternate;b!==null&&(b=b.updateQueue,s=b.lastBaseUpdate,s!==c&&(s===null?b.firstBaseUpdate=v:s.next=v,b.lastBaseUpdate=d))}if(i!==null){var z=n.baseState;c=0,b=v=d=null,s=i;do{var x=s.lane&-536870913,j=x!==s.lane;if(j?(I&x)===x:(a&x)===x){x!==0&&x===ba&&(hc=!0),b!==null&&(b=b.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});l:{var R=l,X=s;x=e;var dl=t;switch(X.tag){case 1:if(R=X.payload,typeof R=="function"){z=R.call(dl,z,x);break l}z=R;break l;case 3:R.flags=R.flags&-65537|128;case 0:if(R=X.payload,x=typeof R=="function"?R.call(dl,z,x):R,x==null)break l;z=G({},z,x);break l;case 2:ot=!0}}x=s.callback,x!==null&&(l.flags|=64,j&&(l.flags|=8192),j=n.callbacks,j===null?n.callbacks=[x]:j.push(x))}else j={lane:x,tag:s.tag,payload:s.payload,callback:s.callback,next:null},b===null?(v=b=j,d=z):b=b.next=j,c|=x;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;j=s,s=j.next,j.next=null,n.lastBaseUpdate=j,n.shared.pending=null}}while(!0);b===null&&(d=z),n.baseState=d,n.firstBaseUpdate=v,n.lastBaseUpdate=b,i===null&&(n.shared.lanes=0),bt|=c,l.lanes=c,l.memoizedState=z}}function gr(l,e){if(typeof l!="function")throw Error(r(191,l));l.call(e)}function pr(l,e){var t=l.callbacks;if(t!==null)for(l.callbacks=null,l=0;li?i:8;var c=A.T,s={};A.T=s,Dc(l,!1,e,t);try{var d=n(),v=A.S;if(v!==null&&v(s,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var b=qm(d,a);vn(l,e,b,de(l))}else vn(l,e,a,de(l))}catch(z){vn(l,e,{then:function(){},status:"rejected",reason:z},de())}finally{D.p=i,c!==null&&s.types!==null&&(c.types=s.types),A.T=c}}function Qm(){}function Cc(l,e,t,a){if(l.tag!==5)throw Error(r(476));var n=Pr(l).queue;Ir(l,n,e,Q,t===null?Qm:function(){return ld(l),t(a)})}function Pr(l){var e=l.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:Q},next:null};var t={};return e.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:t},next:null},l.memoizedState=e,l=l.alternate,l!==null&&(l.memoizedState=e),e}function ld(l){var e=Pr(l);e.next===null&&(e=l.alternate.memoizedState),vn(l,e.next.queue,{},de())}function _c(){return ql(Un)}function ed(){return El().memoizedState}function td(){return El().memoizedState}function Zm(l){for(var e=l.return;e!==null;){switch(e.tag){case 24:case 3:var t=de();l=ht(t);var a=mt(e,l,t);a!==null&&(le(a,e,t),dn(a,e,t)),e={cache:ic()},l.payload=e;return}e=e.return}}function Vm(l,e,t){var a=de();t={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},Tu(l)?nd(e,t):(t=Wi(l,e,t,a),t!==null&&(le(t,l,a),ud(t,e,a)))}function ad(l,e,t){var a=de();vn(l,e,t,a)}function vn(l,e,t,a){var n={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(Tu(l))nd(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,ue(s,c))return cu(l,e,n,0),hl===null&&iu(),!1}catch{}finally{}if(t=Wi(l,e,n,a),t!==null)return le(t,l,a),ud(t,e,a),!0}return!1}function Dc(l,e,t,a){if(a={lane:2,revertLane:rs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Tu(l)){if(e)throw Error(r(479))}else e=Wi(l,t,a,2),e!==null&&le(e,l,2)}function Tu(l){var e=l.alternate;return l===w||e!==null&&e===w}function nd(l,e){Ea=gu=!0;var t=l.pending;t===null?e.next=e:(e.next=t.next,t.next=e),l.pending=e}function ud(l,e,t){if((t&4194048)!==0){var a=e.lanes;a&=l.pendingLanes,t|=a,e.lanes=t,rf(l,t)}}var xn={readContext:ql,use:Au,useCallback:bl,useContext:bl,useEffect:bl,useImperativeHandle:bl,useLayoutEffect:bl,useInsertionEffect:bl,useMemo:bl,useReducer:bl,useRef:bl,useState:bl,useDebugValue:bl,useDeferredValue:bl,useTransition:bl,useSyncExternalStore:bl,useId:bl,useHostTransitionStatus:bl,useFormState:bl,useActionState:bl,useOptimistic:bl,useMemoCache:bl,useCacheRefresh:bl};xn.useEffectEvent=bl;var id={readContext:ql,use:Au,useCallback:function(l,e){return Zl().memoizedState=[l,e===void 0?null:e],l},useContext:ql,useEffect:Zr,useImperativeHandle:function(l,e,t){t=t!=null?t.concat([l]):null,zu(4194308,4,Jr.bind(null,e,l),t)},useLayoutEffect:function(l,e){return zu(4194308,4,l,e)},useInsertionEffect:function(l,e){zu(4,2,l,e)},useMemo:function(l,e){var t=Zl();e=e===void 0?null:e;var a=l();if(Jt){ut(!0);try{l()}finally{ut(!1)}}return t.memoizedState=[a,e],a},useReducer:function(l,e,t){var a=Zl();if(t!==void 0){var n=t(e);if(Jt){ut(!0);try{t(e)}finally{ut(!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=Vm.bind(null,w,l),[a.memoizedState,l]},useRef:function(l){var e=Zl();return l={current:l},e.memoizedState=l},useState:function(l){l=zc(l);var e=l.queue,t=ad.bind(null,w,e);return e.dispatch=t,[l.memoizedState,t]},useDebugValue:Mc,useDeferredValue:function(l,e){var t=Zl();return Oc(t,l,e)},useTransition:function(){var l=zc(!1);return l=Ir.bind(null,w,l.queue,!0,!1),Zl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,e,t){var a=w,n=Zl();if(el){if(t===void 0)throw Error(r(407));t=t()}else{if(t=e(),hl===null)throw Error(r(349));(I&127)!==0||Tr(a,e,t)}n.memoizedState=t;var i={value:t,getSnapshot:e};return n.queue=i,Zr(Or.bind(null,a,i,l),[l]),a.flags|=2048,Na(9,{destroy:void 0},Mr.bind(null,a,i,t,e),null),t},useId:function(){var l=Zl(),e=hl.identifierPrefix;if(el){var t=Re,a=Ue;t=(a&~(1<<32-ne(a)-1)).toString(32)+t,e="_"+e+"R_"+t,t=pu++,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[Rl]=e,i[kl]=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(Yl(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&&$e(e)}}return yl(e),Kc(e,e.type,l===null?null:l.memoizedProps,e.pendingProps,t),null;case 6:if(l&&e.stateNode!=null)l.memoizedProps!==a&&$e(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(l=W.current,xa(e)){if(l=e.stateNode,t=e.memoizedProps,a=null,n=Hl,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[Rl]=e,l=!!(l.nodeValue===t||a!==null&&a.suppressHydrationWarning===!0||No(l.nodeValue,t)),l||rt(e,!0)}else l=Ju(l).createTextNode(a),l[Rl]=e,e.stateNode=l}return yl(e),null;case 31:if(t=e.memoizedState,l===null||l.memoizedState!==null){if(a=xa(e),t!==null){if(l===null){if(!a)throw Error(r(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(557));l[Rl]=e}else Gt(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;yl(e),l=!1}else t=tc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=t),l=!0;if(!l)return e.flags&256?(se(e),e):(se(e),null);if((e.flags&128)!==0)throw Error(r(558))}return yl(e),null;case 13:if(a=e.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=xa(e),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Rl]=e}else Gt(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;yl(e),n=!1}else n=tc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(se(e),e):(se(e),null)}return se(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),Du(e,e.updateQueue),yl(e),null);case 4:return Sl(),l===null&&ms(e.stateNode.containerInfo),yl(e),null;case 10:return Ke(e.type),yl(e),null;case 19:if(T(Al),a=e.memoizedState,a===null)return yl(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)bn(a,!1);else{if(gl!==0||l!==null&&(l.flags&128)!==0)for(l=e.child;l!==null;){if(i=bu(l),i!==null){for(e.flags|=128,bn(a,!1),l=i.updateQueue,e.updateQueue=l,Du(e,l),e.subtreeFlags=0,l=t,t=e.child;t!==null;)ar(t,l),t=t.sibling;return U(Al,Al.current&1|2),el&&Ve(e,a.treeForkCount),e.child}l=l.sibling}a.tail!==null&&te()>Bu&&(e.flags|=128,n=!0,bn(a,!1),e.lanes=4194304)}else{if(!n)if(l=bu(i),l!==null){if(e.flags|=128,n=!0,l=l.updateQueue,e.updateQueue=l,Du(e,l),bn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!el)return yl(e),null}else 2*te()-a.renderingStartTime>Bu&&t!==536870912&&(e.flags|=128,n=!0,bn(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=te(),l.sibling=null,t=Al.current,U(Al,n?t&1|2:t&1),el&&Ve(e,a.treeForkCount),l):(yl(e),null);case 22:case 23:return se(e),yc(),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&&(yl(e),e.subtreeFlags&6&&(e.flags|=8192)):yl(e),t=e.updateQueue,t!==null&&Du(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&&T(Zt),null;case 24:return t=null,l!==null&&(t=l.memoizedState.cache),e.memoizedState.cache!==t&&(e.flags|=2048),Ke(zl),yl(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Wm(l,e){switch(lc(e),e.tag){case 1:return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 3:return Ke(zl),Sl(),l=e.flags,(l&65536)!==0&&(l&128)===0?(e.flags=l&-65537|128,e):null;case 26:case 27:case 5:return Zn(e),null;case 31:if(e.memoizedState!==null){if(se(e),e.alternate===null)throw Error(r(340));Gt()}return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 13:if(se(e),l=e.memoizedState,l!==null&&l.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Gt()}return l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 19:return T(Al),null;case 4:return Sl(),null;case 10:return Ke(e.type),null;case 22:case 23:return se(e),yc(),l!==null&&T(Zt),l=e.flags,l&65536?(e.flags=l&-65537|128,e):null;case 24:return Ke(zl),null;case 25:return null;default:return null}}function Cd(l,e){switch(lc(e),e.tag){case 3:Ke(zl),Sl();break;case 26:case 27:case 5:Zn(e);break;case 4:Sl();break;case 31:e.memoizedState!==null&&se(e);break;case 13:se(e);break;case 19:T(Al);break;case 10:Ke(e.type);break;case 22:case 23:se(e),yc(),l!==null&&T(Zt);break;case 24:Ke(zl)}}function gn(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){cl(e,e.return,s)}}function xt(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 d=t,v=s;try{v()}catch(b){cl(n,d,b)}}}a=a.next}while(a!==i)}}catch(b){cl(e,e.return,b)}}function _d(l){var e=l.updateQueue;if(e!==null){var t=l.stateNode;try{pr(e,t)}catch(a){cl(l,l.return,a)}}}function Dd(l,e,t){t.props=kt(l.type,l.memoizedProps),t.state=l.memoizedState;try{t.componentWillUnmount()}catch(a){cl(l,e,a)}}function pn(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){cl(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){cl(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){cl(l,e,n)}else t.current=null}function Ud(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){cl(l,l.return,n)}}function Jc(l,e,t){try{var a=l.stateNode;x1(a,l.type,t,e),a[kl]=e}catch(n){cl(l,l.return,n)}}function Rd(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Et(l.type)||l.tag===4}function kc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||Rd(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&&Et(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 Wc(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=Xe));else if(a!==4&&(a===27&&Et(l.type)&&(t=l.stateNode,e=null),l=l.child,l!==null))for(Wc(l,e,t),l=l.sibling;l!==null;)Wc(l,e,t),l=l.sibling}function Uu(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&&Et(l.type)&&(t=l.stateNode),l=l.child,l!==null))for(Uu(l,e,t),l=l.sibling;l!==null;)Uu(l,e,t),l=l.sibling}function Hd(l){var e=l.stateNode,t=l.memoizedProps;try{for(var a=l.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Yl(e,a,t),e[Rl]=l,e[kl]=t}catch(i){cl(l,l.return,i)}}var Fe=!1,Ml=!1,$c=!1,qd=typeof WeakSet=="function"?WeakSet:Set,Ul=null;function $m(l,e){if(l=l.containerInfo,xs=li,l=kf(l),Zi(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,d=-1,v=0,b=0,z=l,x=null;e:for(;;){for(var j;z!==t||n!==0&&z.nodeType!==3||(s=c+n),z!==i||a!==0&&z.nodeType!==3||(d=c+a),z.nodeType===3&&(c+=z.nodeValue.length),(j=z.firstChild)!==null;)x=z,z=j;for(;;){if(z===l)break e;if(x===t&&++v===n&&(s=c),x===i&&++b===a&&(d=c),(j=z.nextSibling)!==null)break;z=x,x=z.parentNode}z=j}t=s===-1||d===-1?null:{start:s,end:d}}else t=null}t=t||{start:0,end:0}}else t=null;for(js={focusedElem:l,selectionRange:t},li=!1,Ul=e;Ul!==null;)if(e=Ul,l=e.child,(e.subtreeFlags&1028)!==0&&l!==null)l.return=e,Ul=l;else for(;Ul!==null;){switch(e=Ul,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"))),Yl(i,a,t),i[Rl]=l,Dl(i),a=i;break l;case"link":var c=Zo("link","href",n).get(a+(t.href||""));if(c){for(var s=0;sdl&&(c=dl,dl=X,X=c);var m=Kf(s,X),o=Kf(s,dl);if(m&&o&&(j.rangeCount!==1||j.anchorNode!==m.node||j.anchorOffset!==m.offset||j.focusNode!==o.node||j.focusOffset!==o.offset)){var y=z.createRange();y.setStart(m.node,m.offset),j.removeAllRanges(),X>dl?(j.addRange(y),j.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),j.addRange(y))}}}}for(z=[],j=s;j=j.parentNode;)j.nodeType===1&&z.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;st?32:t,A.T=null,t=as,as=null;var i=pt,c=tt;if(Ol=0,_a=pt=null,tt=0,(nl&6)!==0)throw Error(r(331));var s=nl;if(nl|=4,Jd(i.current),Vd(i,i.current,c,t),nl=s,Tn(0,!1),ae&&typeof ae.onPostCommitFiberRoot=="function")try{ae.onPostCommitFiberRoot(Va,i)}catch{}return!0}finally{D.p=n,A.T=a,oo(l,e)}}function mo(l,e,t){e=xe(t,e),e=qc(l.stateNode,e,2),l=mt(l,e,2),l!==null&&(Ka(l,2),qe(l))}function cl(l,e,t){if(l.tag===3)mo(l,l,t);else for(;e!==null;){if(e.tag===3){mo(e,l,t);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(gt===null||!gt.has(a))){l=xe(t,l),t=md(2),a=mt(e,t,2),a!==null&&(yd(t,a,e,l),Ka(a,2),qe(a));break}}e=e.return}}function cs(l,e,t){var a=l.pingCache;if(a===null){a=l.pingCache=new Pm;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)||(Pc=!0,n.add(t),l=n1.bind(null,l,e,t),e.then(l,l))}function n1(l,e,t){var a=l.pingCache;a!==null&&a.delete(e),l.pingedLanes|=l.suspendedLanes&t,l.warmLanes&=~t,hl===l&&(I&t)===t&&(gl===4||gl===3&&(I&62914560)===I&&300>te()-qu?(nl&2)===0&&Da(l,0):ls|=t,Ca===I&&(Ca=0)),qe(l)}function yo(l,e){e===0&&(e=sf()),l=Yt(l,e),l!==null&&(Ka(l,e),qe(l))}function u1(l){var e=l.memoizedState,t=0;e!==null&&(t=e.retryLane),yo(l,t)}function i1(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(r(314))}a!==null&&a.delete(e),yo(l,t)}function c1(l,e){return gi(l,e)}var Zu=null,Ra=null,ss=!1,Vu=!1,fs=!1,At=0;function qe(l){l!==Ra&&l.next===null&&(Ra===null?Zu=Ra=l:Ra=Ra.next=l),Vu=!0,ss||(ss=!0,f1())}function Tn(l,e){if(!fs&&Vu){fs=!0;do for(var t=!1,a=Zu;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-ne(42|l)+1)-1,i&=n&~(c&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(t=!0,bo(a,i))}else i=I,i=kn(a,a===hl?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||wa(a,i)||(t=!0,bo(a,i));a=a.next}while(t);fs=!1}}function s1(){vo()}function vo(){Vu=ss=!1;var l=0;At!==0&&b1()&&(l=At);for(var e=te(),t=null,a=Zu;a!==null;){var n=a.next,i=xo(a,e);i===0?(a.next=null,t===null?Zu=n:t.next=n,n===null&&(Ra=t)):(t=a,(l!==0||(i&3)!==0)&&(Vu=!0)),a=n}Ol!==0&&Ol!==5||Tn(l),At!==0&&(At=0)}function xo(l,e){for(var t=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,i=l.pendingLanes&-62914561;0s)break;var b=d.transferSize,z=d.initiatorType;b&&To(z)&&(d=d.responseEnd,c+=b*(d"u"?null:document;function Lo(l,e,t){var a=Ha;if(a&&typeof e=="string"&&e){var n=ye(e);n='link[rel="'+l+'"][href="'+n+'"]',typeof t=="string"&&(n+='[crossorigin="'+t+'"]'),Yo.has(n)||(Yo.add(n),l={rel:l,crossOrigin:t,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Yl(e,"link",l),Dl(e),a.head.appendChild(e)))}}function M1(l){at.D(l),Lo("dns-prefetch",l,null)}function O1(l,e){at.C(l,e),Lo("preconnect",l,e)}function C1(l,e,t){at.L(l,e,t);var a=Ha;if(a&&l&&e){var n='link[rel="preload"][as="'+ye(e)+'"]';e==="image"&&t&&t.imageSrcSet?(n+='[imagesrcset="'+ye(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(n+='[imagesizes="'+ye(t.imageSizes)+'"]')):n+='[href="'+ye(l)+'"]';var i=n;switch(e){case"style":i=qa(l);break;case"script":i=Ba(l)}Ae.has(i)||(l=G({rel:"preload",href:e==="image"&&t&&t.imageSrcSet?void 0:l,as:e},t),Ae.set(i,l),a.querySelector(n)!==null||e==="style"&&a.querySelector(_n(i))||e==="script"&&a.querySelector(Dn(i))||(e=a.createElement("link"),Yl(e,"link",l),Dl(e),a.head.appendChild(e)))}}function _1(l,e){at.m(l,e);var t=Ha;if(t&&l){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+ye(a)+'"][href="'+ye(l)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ba(l)}if(!Ae.has(i)&&(l=G({rel:"modulepreload",href:l},e),Ae.set(i,l),t.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(Dn(i)))return}a=t.createElement("link"),Yl(a,"link",l),Dl(a),t.head.appendChild(a)}}}function D1(l,e,t){at.S(l,e,t);var a=Ha;if(a&&l){var n=na(a).hoistableStyles,i=qa(l);e=e||"default";var c=n.get(i);if(!c){var s={loading:0,preload:null};if(c=a.querySelector(_n(i)))s.loading=5;else{l=G({rel:"stylesheet",href:l,"data-precedence":e},t),(t=Ae.get(i))&&zs(l,t);var d=c=a.createElement("link");Dl(d),Yl(d,"link",l),d._p=new Promise(function(v,b){d.onload=v,d.onerror=b}),d.addEventListener("load",function(){s.loading|=1}),d.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Wu(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:s},n.set(i,c)}}}function U1(l,e){at.X(l,e);var t=Ha;if(t&&l){var a=na(t).hoistableScripts,n=Ba(l),i=a.get(n);i||(i=t.querySelector(Dn(n)),i||(l=G({src:l,async:!0},e),(e=Ae.get(n))&&Ns(l,e),i=t.createElement("script"),Dl(i),Yl(i,"link",l),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function R1(l,e){at.M(l,e);var t=Ha;if(t&&l){var a=na(t).hoistableScripts,n=Ba(l),i=a.get(n);i||(i=t.querySelector(Dn(n)),i||(l=G({src:l,async:!0,type:"module"},e),(e=Ae.get(n))&&Ns(l,e),i=t.createElement("script"),Dl(i),Yl(i,"link",l),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Go(l,e,t,a){var n=(n=W.current)?ku(n):null;if(!n)throw Error(r(446));switch(l){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(e=qa(t.href),t=na(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=qa(t.href);var i=na(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(_n(l)))&&!i._p&&(c.instance=i,c.state.loading=5),Ae.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},Ae.set(l,t),i||H1(n,l,t,c.state))),e&&a===null)throw Error(r(528,""));return c}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=t.async,t=t.src,typeof t=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ba(t),t=na(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(r(444,l))}}function qa(l){return'href="'+ye(l)+'"'}function _n(l){return'link[rel="stylesheet"]['+l+"]"}function Xo(l){return G({},l,{"data-precedence":l.precedence,precedence:null})}function H1(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}),Yl(e,"link",t),Dl(e),l.head.appendChild(e))}function Ba(l){return'[src="'+ye(l)+'"]'}function Dn(l){return"script[async]"+l}function Qo(l,e,t){if(e.count++,e.instance===null)switch(e.type){case"style":var a=l.querySelector('style[data-href~="'+ye(t.href)+'"]');if(a)return e.instance=a,Dl(a),a;var n=G({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Dl(a),Yl(a,"style",n),Wu(a,t.precedence,l),e.instance=a;case"stylesheet":n=qa(t.href);var i=l.querySelector(_n(n));if(i)return e.state.loading|=4,e.instance=i,Dl(i),i;a=Xo(t),(n=Ae.get(n))&&zs(a,n),i=(l.ownerDocument||l).createElement("link"),Dl(i);var c=i;return c._p=new Promise(function(s,d){c.onload=s,c.onerror=d}),Yl(i,"link",a),e.state.loading|=4,Wu(i,t.precedence,l),e.instance=i;case"script":return i=Ba(t.src),(n=l.querySelector(Dn(i)))?(e.instance=n,Dl(n),n):(a=t,(n=Ae.get(i))&&(a=G({},t),Ns(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Dl(n),Yl(n,"link",a),l.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Wu(a,t.precedence,l));return e.instance}function Wu(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 q1(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 wo(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function B1(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=qa(a.href),i=e.querySelector(_n(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Fu.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=i,Dl(i);return}i=e.ownerDocument||e,a=Xo(a),(n=Ae.get(n))&&zs(a,n),i=i.createElement("link"),Dl(i);var c=i;c._p=new Promise(function(s,d){c.onload=s,c.onerror=d}),Yl(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=Fu.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}var Ts=0;function Y1(l,e){return l.stylesheets&&l.count===0&&Pu(l,l.stylesheets),0Ts?50:800)+e);return l.unsuspend=t,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Fu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pu(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Iu=null;function Pu(l,e){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Iu=new Map,e.forEach(L1,l),Iu=null,Fu.call(l))}function L1(l,e){if(!(e.state.loading&4)){var t=Iu.get(l);if(t)var a=t.get(null);else{t=new Map,Iu.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(f)}catch(g){console.error(g)}}return f(),qs.exports=e0(),qs.exports}var a0=t0();const yh=B.createContext(null),ci="hydra:navigate";function n0({children:f}){const[g,S]=B.useState(()=>({pathname:window.location.pathname,search:window.location.search}));B.useEffect(()=>{const C=()=>S({pathname:window.location.pathname,search:window.location.search});return window.addEventListener("popstate",C),window.addEventListener(ci,C),()=>{window.removeEventListener("popstate",C),window.removeEventListener(ci,C)}},[]);const r=(C,N)=>{if(typeof C=="number"){window.history.go(C);return}N!=null&&N.replace?window.history.replaceState(null,"",C):window.history.pushState(null,"",C),window.dispatchEvent(new Event(ci)),window.scrollTo({top:0,behavior:"auto"})},p=B.useMemo(()=>({...g,navigate:r}),[g.pathname,g.search]);return u.jsx(yh.Provider,{value:p,children:f})}function di(){const f=B.useContext(yh);if(!f)throw new Error("Router components require BrowserRouter");return f}function ws(){return di().navigate}function Ks(){const{search:f}=di();return[B.useMemo(()=>new URLSearchParams(f),[f])]}function Cl({to:f,onClick:g,...S}){function r(p){if(g==null||g(p),p.defaultPrevented||p.button!==0||p.metaKey||p.ctrlKey||p.shiftKey||p.altKey||S.target==="_blank")return;const C=new URL(f,window.location.origin);C.origin===window.location.origin&&(p.preventDefault(),window.history.pushState(null,"",`${C.pathname}${C.search}${C.hash}`),window.dispatchEvent(new Event(ci)),window.scrollTo({top:0,behavior:"auto"}))}return u.jsx("a",{href:f,onClick:r,...S})}function fi({to:f,end:g=!1,className:S,...r}){const{pathname:p}=di(),C=g?p===f:p===f||f!=="/"&&p.startsWith(`${f}/`),N=[typeof S=="string"?S:"",C?"active":""].filter(Boolean).join(" ");return u.jsx(Cl,{to:f,className:N||void 0,"aria-current":C?"page":void 0,...r})}function Xl(f){return null}function u0({children:f}){const{pathname:g}=di(),S=B.Children.toArray(f).filter(B.isValidElement),r=S.find(p=>p.props.path===g)??S.find(p=>p.props.path==="*");return(r==null?void 0:r.props.element)??null}function Js({to:f,replace:g=!1}){const S=ws();return B.useEffect(()=>S(f,{replace:g}),[S,g,f]),null}/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const i0=f=>f.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vh=(...f)=>f.filter((g,S,r)=>!!g&&g.trim()!==""&&r.indexOf(g)===S).join(" ").trim();/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var c0={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.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s0=B.forwardRef(({color:f="currentColor",size:g=24,strokeWidth:S=2,absoluteStrokeWidth:r,className:p="",children:C,iconNode:N,..._},O)=>B.createElement("svg",{ref:O,...c0,width:g,height:g,stroke:f,strokeWidth:r?Number(S)*24/Number(g):S,className:vh("lucide",p),..._},[...N.map(([M,k])=>B.createElement(M,k)),...Array.isArray(C)?C:[C]]));/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K=(f,g)=>{const S=B.forwardRef(({className:r,...p},C)=>B.createElement(s0,{ref:C,iconNode:g,className:vh(`lucide-${i0(f)}`,r),...p}));return S.displayName=`${f}`,S};/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=K("Activity",[["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"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ee=K("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r0=K("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ks=K("Bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ee=K("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const si=K("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.468.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=K("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jh=K("Clapperboard",[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ga=K("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const d0=K("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-react v0.468.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=K("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=K("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=K("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ws=K("Ellipsis",[["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"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m0=K("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=K("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qs=K("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gh=K("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=K("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ph=K("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const x0=K("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const j0=K("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $s=K("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b0=K("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sh=K("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xn=K("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fs=K("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ln=K("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Is=K("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gn=K("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qn=K("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=K("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=K("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qa=K("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S0=K("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ah=K("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=K("TicketCheck",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ps=K("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lf=K("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Eh=K("WalletCards",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=K("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),N0=!1,T0=[{key:"1_month",label:"1 Month",months:1,base:1,basePrice:15},{key:"3_months",label:"3 Months",months:3,base:3,basePrice:39},{key:"6_months",label:"6 Months",months:6,base:4,basePrice:69},{key:"12_months",label:"12 Months",months:12,base:5,basePrice:119}];T0.flatMap(f=>Array.from({length:5},(g,S)=>{const r=S+1;return{id:`${f.key}-${r}`,duration:f.key,label:f.label,months:f.months,connections:r,credits:f.base*r,priceCents:Math.round(f.basePrice*(1+(r-1)*.55)*100),currency:"USD",isLifetime:0,active:1}}));async function Be(f,g){const S=await fetch(f,{...g,credentials:"include",headers:{"Content-Type":"application/json",...(g==null?void 0:g.headers)??{}}}),r=await S.json().catch(()=>({}));if(!S.ok)throw new Error(r.error??`Request failed (${S.status})`);return r}const oe={demoMode:N0,async plans(){return(await Be("/api/public/plans")).plans},async overview(){return Be("/api/admin/overview")},async subscribers(){return(await Be("/api/admin/subscribers")).subscribers},async createSubscriber(f){return Be("/api/admin/subscribers",{method:"POST",headers:{"Idempotency-Key":crypto.randomUUID()},body:JSON.stringify(f)})},async resellers(){return(await Be("/api/admin/resellers")).resellers},async createReseller(f){return Be("/api/admin/resellers",{method:"POST",body:JSON.stringify(f)})},async catalog(){return(await Be("/api/admin/catalog")).items},async publicCatalog(){return(await Be("/api/public/catalog")).items.map((g,S)=>({...g,id:`public-${S}-${g.title}`,rightsStatus:"approved",rightsExpiresAt:null,published:1,lastCheckedAt:null,sourceName:"Licensed provider"}))},async sources(){return(await Be("/api/admin/sources")).sources},async createOrder(f){return Be("/api/public/orders",{method:"POST",headers:{"Idempotency-Key":crypto.randomUUID()},body:JSON.stringify(f)})}};function oi({small:f=!1}){return u.jsx("span",{className:`brand-mark ${f?"brand-mark--small":""}`,"aria-hidden":"true",children:u.jsxs("svg",{viewBox:"0 0 42 42",role:"img",children:[u.jsx("path",{d:"M9 31V12l12 7 12-7v19l-12 7-12-7Z"}),u.jsx("path",{d:"m9 12 12-7 12 7M21 19v19"})]})})}function hi({compact:f=!1}){return u.jsxs("span",{className:"brand",children:[u.jsx(oi,{small:f}),u.jsxs("span",{children:[u.jsx("strong",{children:"PROJECT"}),u.jsx("b",{children:"HYDRA"})]})]})}function M0(){const[f,g]=B.useState(!1);return u.jsxs("header",{className:"public-header",children:[u.jsx(Cl,{to:"/","aria-label":"Project Hydra home",children:u.jsx(hi,{compact:!0})}),u.jsx("button",{className:"mobile-menu",onClick:()=>g(S=>!S),"aria-label":"Toggle navigation",children:u.jsx(Sh,{size:21})}),u.jsxs("nav",{className:f?"public-nav is-open":"public-nav","aria-label":"Main navigation",children:[u.jsx(fi,{to:"/catalog",children:"Catalog"}),u.jsx(fi,{to:"/pricing",children:"Plans"}),u.jsx("a",{href:"#how-it-works",children:"How it works"}),u.jsx("a",{href:"mailto:support@projecthydra.space",children:"Support"})]}),u.jsxs("div",{className:"header-actions",children:[u.jsx(Cl,{className:"text-link",to:"/account",children:"My account"}),u.jsxs(Cl,{className:"button button--small",to:"/pricing",children:["View plans ",u.jsx(ee,{size:15})]})]})]})}function It({children:f}){return u.jsxs("div",{className:"public-shell",children:[u.jsx(M0,{}),u.jsx("main",{children:f}),u.jsxs("footer",{className:"public-footer",children:[u.jsxs("div",{children:[u.jsx(hi,{compact:!0}),u.jsx("p",{children:"Licensed media subscription infrastructure, built for clarity."})]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Explore"}),u.jsx(Cl,{to:"/catalog",children:"Catalog"}),u.jsx(Cl,{to:"/pricing",children:"Plans"}),u.jsx(Cl,{to:"/account",children:"My account"})]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Trust"}),u.jsx("a",{href:"mailto:legal@projecthydra.space",children:"Content rights"}),u.jsx("a",{href:"mailto:abuse@projecthydra.space",children:"Takedown contact"}),u.jsx(Cl,{to:"/status",children:"Service status"})]}),u.jsxs("div",{children:[u.jsx("strong",{children:"Legal"}),u.jsx("a",{href:"#terms",children:"Terms"}),u.jsx("a",{href:"#privacy",children:"Privacy"}),u.jsx("a",{href:"#refunds",children:"Refund policy"})]}),u.jsx("small",{children:"© 2026 Project Hydra. Content availability depends on licensed providers, territory, and plan."})]})]})}function O0(){return u.jsxs(It,{children:[u.jsxs("section",{className:"hero",children:[u.jsxs("div",{className:"hero-copy",children:[u.jsxs("div",{className:"eyebrow",children:[u.jsx("span",{className:"pulse-dot"})," Licensed. Monitored. Ready for every screen."]}),u.jsxs("h1",{children:["Your entertainment,",u.jsx("br",{}),u.jsx("em",{children:"beautifully connected."})]}),u.jsx("p",{children:"One secure subscription for approved live channels and on-demand content, with transparent availability and real-time service health."}),u.jsxs("div",{className:"hero-actions",children:[u.jsxs(Cl,{className:"button button--large",to:"/pricing",children:["Explore plans ",u.jsx(ee,{size:18})]}),u.jsxs(Cl,{className:"button button--ghost button--large",to:"/catalog",children:[u.jsx(Xn,{size:18})," Browse catalog"]})]}),u.jsxs("div",{className:"hero-trust",children:[u.jsxs("span",{children:[u.jsx(Qa,{size:17})," Rights-verified catalog"]}),u.jsxs("span",{children:[u.jsx(z0,{size:17})," Live service monitoring"]}),u.jsxs("span",{children:[u.jsx($s,{size:17})," Secure credentials"]})]})]}),u.jsxs("div",{className:"hero-visual","aria-label":"Project Hydra service preview",children:[u.jsx("div",{className:"orbit orbit-one"}),u.jsx("div",{className:"orbit orbit-two"}),u.jsxs("div",{className:"hydra-core",children:[u.jsx(oi,{}),u.jsxs("span",{children:["HYDRA",u.jsx("br",{}),u.jsx("b",{children:"CONNECTED"})]})]}),u.jsxs("div",{className:"float-card float-card--top",children:[u.jsx("span",{className:"icon-well cyan",children:u.jsx(Is,{size:19})}),u.jsxs("div",{children:[u.jsx("small",{children:"LIVE NOW"}),u.jsx("b",{children:"Service online"})]}),u.jsx("span",{className:"live-pill",children:"HEALTHY"})]}),u.jsxs("div",{className:"float-card float-card--bottom",children:[u.jsx("span",{className:"icon-well violet",children:u.jsx(jh,{size:19})}),u.jsxs("div",{children:[u.jsx("small",{children:"YOUR LIBRARY"}),u.jsx("b",{children:"Movies & series"})]}),u.jsx("span",{className:"arrow-chip",children:u.jsx(ee,{size:17})})]}),u.jsx("div",{className:"signal signal-a"}),u.jsx("div",{className:"signal signal-b"}),u.jsx("div",{className:"signal signal-c"})]})]}),u.jsxs("section",{className:"trust-row",children:[u.jsx("span",{children:"Secure checkout"}),u.jsx("b",{children:"PAYPAL"}),u.jsxs("b",{children:[u.jsx(ks,{size:17})," BITCOIN"]}),u.jsx("span",{children:"48-hour admin-issued trials"}),u.jsx("span",{children:"Up to 5 connections"})]}),u.jsxs("section",{className:"feature-section",id:"how-it-works",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("span",{children:"ONE CALM CONTROL CENTER"}),u.jsxs("h2",{children:["Everything you need.",u.jsx("br",{}),u.jsx("em",{children:"Nothing you don’t."})]}),u.jsx("p",{children:"Clear access details, straightforward plans, and honest service status—without the mystery."})]}),u.jsxs("div",{className:"feature-grid",children:[u.jsxs("article",{className:"feature-card feature-card--wide",children:[u.jsxs("div",{children:[u.jsx("span",{className:"icon-well cyan",children:u.jsx(h0,{})}),u.jsx("h3",{children:"Licensed catalog, clearly organized"}),u.jsx("p",{children:"Discover available channels, films, and series by region, language, category, and plan."}),u.jsxs(Cl,{to:"/catalog",children:["Explore availability ",u.jsx(ee,{size:15})]})]}),u.jsxs("div",{className:"mini-catalog",children:[u.jsx("span",{children:"LIVE"}),u.jsx("b",{children:"News 24 International"}),u.jsx("i",{children:"Healthy"}),u.jsx("span",{children:"VOD"}),u.jsx("b",{children:"The Long Way Home"}),u.jsx("i",{children:"Available"}),u.jsx("span",{children:"SERIES"}),u.jsx("b",{children:"Northern Lights"}),u.jsx("i",{children:"New episodes"})]})]}),u.jsxs("article",{className:"feature-card",children:[u.jsx("span",{className:"icon-well violet",children:u.jsx(gh,{})}),u.jsx("h3",{children:"Service health you can see"}),u.jsx("p",{children:"Fresh checks and clear incident updates. No stale “online” claims."}),u.jsxs("div",{className:"health-bars",children:[u.jsx("i",{style:{height:"45%"}}),u.jsx("i",{style:{height:"62%"}}),u.jsx("i",{style:{height:"54%"}}),u.jsx("i",{style:{height:"80%"}}),u.jsx("i",{style:{height:"72%"}}),u.jsx("i",{style:{height:"92%"}}),u.jsx("i",{style:{height:"86%"}})]})]}),u.jsxs("article",{className:"feature-card",children:[u.jsx("span",{className:"icon-well gold",children:u.jsx(ph,{})}),u.jsx("h3",{children:"Credentials kept under control"}),u.jsx("p",{children:"Separate service access, one-time password reveal, and instant rotation."}),u.jsxs("div",{className:"credential-preview",children:[u.jsx("small",{children:"SERVER"}),u.jsx("b",{children:"stream.projecthydra.space"}),u.jsx("small",{children:"USERNAME"}),u.jsx("b",{children:"hyd•••••28"})]})]})]})]}),u.jsxs("section",{className:"home-cta",children:[u.jsxs("div",{children:[u.jsx("span",{children:"READY WHEN YOU ARE"}),u.jsx("h2",{children:"Choose a plan that fits your screens."}),u.jsx("p",{children:"From one connection to five, with simple duration options and secure activation after confirmed payment."})]}),u.jsxs(Cl,{className:"button button--light button--large",to:"/pricing",children:["Compare plans ",u.jsx(ee,{size:18})]})]})]})}function ef(){const[f,g]=B.useState([]),[S,r]=B.useState("");return B.useEffect(()=>{oe.plans().then(g).catch(p=>r(p.message))},[]),{plans:f,error:S}}function ri({cents:f,currency:g="USD"}){return f===null?u.jsx("span",{children:"Configure in admin"}):u.jsx(u.Fragment,{children:new Intl.NumberFormat("en",{style:"currency",currency:g,maximumFractionDigits:0}).format(f/100)})}function C0(){const{plans:f,error:g}=ef(),[S,r]=B.useState("1_month"),[p,C]=B.useState(1),N=f.find(O=>O.duration===S&&O.connections===(S==="lifetime"?5:p)),_=Array.from(new Map(f.map(O=>[O.duration,O.label])).entries());return u.jsxs(It,{children:[u.jsxs("section",{className:"page-hero compact",children:[u.jsx("div",{className:"eyebrow",children:"FLEXIBLE ACCESS"}),u.jsxs("h1",{children:["Simple plans.",u.jsx("br",{}),u.jsx("em",{children:"Your number of screens."})]}),u.jsx("p",{children:"Choose a duration, then select up to five simultaneous connections. Retail prices are set by the platform operator."})]}),u.jsxs("section",{className:"plan-builder",children:[g&&u.jsx(Ye,{tone:"error",children:g}),u.jsxs("div",{className:"plan-controls",children:[u.jsxs("div",{children:[u.jsx("label",{children:"1. Choose duration"}),u.jsx("div",{className:"segmented",children:_.map(([O,M])=>u.jsx("button",{className:S===O?"active":"",onClick:()=>{r(O),O==="lifetime"&&C(5)},children:M},O))})]}),u.jsxs("div",{children:[u.jsx("label",{children:"2. Choose connections"}),u.jsx("div",{className:"connection-picker",children:[1,2,3,4,5].map(O=>u.jsxs("button",{disabled:S==="lifetime"&&O!==5,className:p===O?"active":"",onClick:()=>C(O),children:[u.jsx("b",{children:O}),u.jsx("span",{children:O===1?"screen":"screens"})]},O))})]})]}),u.jsxs("aside",{className:"selected-plan",children:[u.jsx("span",{className:"selected-label",children:"YOUR PLAN"}),u.jsx("div",{className:"selected-icon",children:u.jsx(Xn,{})}),u.jsx("h2",{children:(N==null?void 0:N.label)??"Choose a plan"}),u.jsxs("p",{children:[(N==null?void 0:N.connections)??p," simultaneous ",p===1?"connection":"connections"]}),u.jsxs("div",{className:"price",children:[u.jsx("strong",{children:u.jsx(ri,{cents:(N==null?void 0:N.priceCents)??null,currency:N==null?void 0:N.currency})}),N!=null&&N.isLifetime?u.jsx("span",{children:"service lifetime*"}):u.jsx("span",{children:"per selected term"})]}),u.jsxs("ul",{children:[u.jsxs("li",{children:[u.jsx(Ee,{})," Rights-approved catalog"]}),u.jsxs("li",{children:[u.jsx(Ee,{})," Real-time service status"]}),u.jsxs("li",{children:[u.jsx(Ee,{})," Secure setup details"]}),u.jsxs("li",{children:[u.jsx(Ee,{})," Device setup guides"]})]}),N!=null&&N.active&&N.priceCents!==null?u.jsxs(Cl,{className:"button button--block",to:`/checkout?plan=${N.id}`,children:["Continue to checkout ",u.jsx(ee,{size:17})]}):u.jsx("button",{className:"button button--block",disabled:!0,children:"Not on sale yet"}),u.jsx("small",{children:"*Lifetime means the lifetime of the service offering, subject to terms and licensed availability."})]})]}),u.jsxs("section",{className:"plan-note",children:[u.jsx(Qa,{}),u.jsxs("div",{children:[u.jsx("b",{children:"48-hour trial access"}),u.jsx("p",{children:"Authorized administrators and resellers can issue one-connection trials for eligible users at zero credits. Trials are protected against repeat abuse and expire automatically."})]})]})]})}function _0(){const[f,g]=B.useState([]),[S,r]=B.useState(""),[p,C]=B.useState("all");B.useEffect(()=>{oe.publicCatalog().then(g).catch(()=>g([]))},[]);const N=f.filter(_=>(p==="all"||_.type===p)&&_.title.toLowerCase().includes(S.toLowerCase())&&_.published);return u.jsxs(It,{children:[u.jsxs("section",{className:"page-hero compact",children:[u.jsx("div",{className:"eyebrow",children:"RIGHTS-VERIFIED AVAILABILITY"}),u.jsxs("h1",{children:["Find what’s available.",u.jsx("br",{}),u.jsx("em",{children:"Know what’s healthy."})]}),u.jsx("p",{children:"Public metadata only—playback URLs and provider details stay protected."})]}),u.jsxs("section",{className:"catalog-browser",children:[u.jsxs("div",{className:"toolbar",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(Qn,{}),u.jsx("input",{"aria-label":"Search catalog",placeholder:"Search titles or channels",value:S,onChange:_=>r(_.target.value)})]}),u.jsx("div",{className:"segmented small",children:["all","live","movie","series"].map(_=>u.jsx("button",{className:p===_?"active":"",onClick:()=>C(_),children:_==="all"?"All":_==="live"?"Live":_==="movie"?"Movies":"Series"},_))})]}),u.jsxs("div",{className:"public-catalog-grid",children:[N.map(_=>u.jsxs("article",{children:[u.jsx("div",{className:`catalog-art art-${_.type}`,children:u.jsx("span",{children:_.type==="live"?u.jsx(Is,{}):u.jsx(Qs,{})})}),u.jsxs("div",{children:[u.jsxs("small",{children:[_.category," · ",_.country]}),u.jsx("h3",{children:_.title}),u.jsxs("span",{className:`status status--${_.health}`,children:[u.jsx("i",{}),_.health]})]})]},_.id)),!N.length&&u.jsx(k0,{icon:u.jsx(Qs,{}),title:"No published items match",text:"The public catalog only shows approved, published availability."})]})]})]})}function D0(){const{plans:f}=ef(),[g]=Ks(),S=ws(),r=f.find(xl=>xl.id===g.get("plan")),[p,C]=B.useState(""),[N,_]=B.useState("ZA"),[O,M]=B.useState("paypal"),[k,G]=B.useState(!1),[L,pl]=B.useState(!1),[jl,_l]=B.useState("");async function ze(xl){if(xl.preventDefault(),!!r){pl(!0),_l("");try{const Vl=await oe.createOrder({email:p,planId:r.id,provider:O});sessionStorage.setItem(`hydra-order-${Vl.id}`,Vl.publicToken),window.location.assign(Vl.checkoutUrl)}catch(Vl){_l(Vl.message),pl(!1)}}}return f.length&&!r?u.jsx(Js,{to:"/pricing",replace:!0}):u.jsx(It,{children:u.jsxs("section",{className:"checkout-page",children:[u.jsx("button",{className:"back-link",onClick:()=>S(-1),children:"← Back to plans"}),u.jsxs("div",{children:[u.jsx("div",{className:"eyebrow",children:"SECURE CHECKOUT"}),u.jsx("h1",{children:"Almost connected."}),u.jsx("p",{children:"Your access is provisioned only after the payment provider confirms settlement."}),u.jsxs("form",{className:"checkout-form",onSubmit:ze,children:[u.jsxs("label",{children:["Email address",u.jsx("input",{required:!0,type:"email",value:p,onChange:xl=>C(xl.target.value),placeholder:"you@example.com"}),u.jsx("small",{children:"Activation and payment updates are sent here."})]}),u.jsxs("label",{children:["Country or region",u.jsxs("select",{value:N,onChange:xl=>_(xl.target.value),children:[u.jsx("option",{value:"ZA",children:"South Africa"}),u.jsx("option",{value:"GB",children:"United Kingdom"}),u.jsx("option",{value:"US",children:"United States"}),u.jsx("option",{value:"OTHER",children:"Other"})]})]}),u.jsxs("fieldset",{children:[u.jsx("legend",{children:"Payment method"}),u.jsxs("button",{type:"button",className:O==="paypal"?"payment-option active":"payment-option",onClick:()=>M("paypal"),children:[u.jsx(bh,{}),u.jsxs("span",{children:[u.jsx("b",{children:"PayPal"}),u.jsx("small",{children:"Secure provider checkout"})]}),u.jsx("i",{})]}),u.jsxs("button",{type:"button",className:O==="btcpay"?"payment-option active":"payment-option",onClick:()=>M("btcpay"),children:[u.jsx(ks,{}),u.jsxs("span",{children:[u.jsx("b",{children:"Bitcoin"}),u.jsx("small",{children:"Unique BTCPay invoice"})]}),u.jsx("i",{})]})]}),u.jsxs("label",{className:"check-row",children:[u.jsx("input",{type:"checkbox",checked:k,onChange:xl=>G(xl.target.checked)}),u.jsx("span",{children:"I accept the Terms, Refund Policy, Privacy Policy, and licensed content availability notice."})]}),jl&&u.jsx(Ye,{tone:"error",children:jl}),u.jsx("button",{className:"button button--block button--large",disabled:!k||L||!r,children:L?u.jsxs(u.Fragment,{children:[u.jsx(Gn,{className:"spin"})," Creating order…"]}):u.jsxs(u.Fragment,{children:["Continue to ",O==="paypal"?"PayPal":"Bitcoin invoice"," ",u.jsx(ee,{})]})})]})]}),u.jsxs("aside",{className:"order-summary",children:[u.jsx("span",{children:"ORDER SUMMARY"}),u.jsxs("div",{className:"summary-plan",children:[u.jsx(Xn,{}),u.jsxs("div",{children:[u.jsx("b",{children:(r==null?void 0:r.label)??"Loading…"}),u.jsxs("small",{children:[(r==null?void 0:r.connections)??"–"," simultaneous connections"]})]})]}),u.jsxs("dl",{children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Plan"}),u.jsx("dd",{children:r==null?void 0:r.label})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Connections"}),u.jsx("dd",{children:r==null?void 0:r.connections})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Region"}),u.jsx("dd",{children:N})]}),u.jsxs("div",{className:"total",children:[u.jsx("dt",{children:"Total"}),u.jsx("dd",{children:u.jsx(ri,{cents:(r==null?void 0:r.priceCents)??null,currency:r==null?void 0:r.currency})})]})]}),u.jsxs("p",{children:[u.jsx(Qa,{})," Payment redirects are never treated as proof of payment. Activation follows a signed provider webhook."]})]})]})})}function U0(){return u.jsx(R0,{})}function R0(){return u.jsx(It,{children:u.jsxs("section",{className:"status-page",children:[u.jsx("span",{className:"status-hero-icon",children:u.jsx($s,{})}),u.jsx("div",{className:"eyebrow",children:"CUSTOMER ACCESS"}),u.jsx("h1",{children:"Your account stays private."}),u.jsx("p",{children:"Use the secure one-time activation link sent after confirmed payment. Persistent customer sign-in will open when transactional email and identity settings are configured."}),u.jsxs("div",{className:"status-list",children:[u.jsxs("div",{children:[u.jsx("span",{children:"Already purchased?"}),u.jsx("a",{className:"button button--small",href:"mailto:support@projecthydra.space",children:"Contact support"})]}),u.jsxs("div",{children:[u.jsx("span",{children:"Need a subscription?"}),u.jsx(Cl,{className:"button button--ghost button--small",to:"/pricing",children:"View plans"})]})]}),u.jsx(Ye,{children:"Never share your service password with support. Administrators can rotate credentials without viewing the existing secret."})]})})}function H0(){const[f]=Ks(),g=f.get("token"),[S,r]=B.useState(null),[p,C]=B.useState("");return B.useEffect(()=>{if(!g){C("This activation link is incomplete.");return}fetch(`/api/public/activation/${encodeURIComponent(g)}`,{credentials:"include"}).then(async N=>{const _=await N.json();if(!N.ok||!_.username||!_.password||!_.server)throw new Error(_.error??"Activation failed");return _}).then(r).catch(N=>C(N.message))},[g]),u.jsx(It,{children:u.jsxs("section",{className:"status-page",children:[u.jsx("span",{className:"status-hero-icon",children:S?u.jsx(Ee,{}):u.jsx(ph,{})}),u.jsx("div",{className:"eyebrow",children:"ONE-TIME ACTIVATION"}),u.jsx("h1",{children:S?"Your access is ready.":p?"Activation unavailable":"Securing your access…"}),u.jsx("p",{children:S?"Save these details now. The password cannot be revealed again from this link.":p||"Verifying your one-time claim."}),S&&u.jsxs("div",{className:"activation-details",children:[u.jsx(Xa,{label:"Server",value:S.server}),u.jsx(Xa,{label:"Username",value:S.username}),u.jsx(Xa,{label:"Service password",value:S.password}),u.jsxs("div",{className:"activation-meta",children:[u.jsxs("span",{children:[u.jsx("small",{children:"Connections"}),u.jsx("b",{children:S.connections})]}),u.jsxs("span",{children:[u.jsx("small",{children:"Expires"}),u.jsx("b",{children:S.expiresAt?yi(S.expiresAt):"No scheduled expiry"})]})]}),u.jsx(Ye,{tone:"warning",children:"Store this password in a trusted password manager. Project Hydra support will never ask you to send it by email or chat."}),u.jsx(Cl,{className:"button button--block",to:"/account",children:"Continue to account"})]})]})})}function Ft({children:f}){const[g,S]=B.useState(null);return B.useEffect(()=>{fetch("/api/auth/me",{credentials:"include"}).then(r=>S(r.ok)).catch(()=>S(!1))},[]),g===null?u.jsxs("div",{className:"route-loading",children:[u.jsx(oi,{}),u.jsx("span",{children:"Verifying operator session…"})]}):g?u.jsx(u.Fragment,{children:f}):u.jsx(Js,{to:"/operator",replace:!0})}const q0=[{to:"/admin",label:"Overview",icon:u.jsx(x0,{})},{to:"/admin/subscribers",label:"Subscribers",icon:u.jsx(lf,{})},{to:"/admin/resellers",label:"Resellers",icon:u.jsx(Fs,{})},{to:"/admin/catalog",label:"Catalog & health",icon:u.jsx(jh,{})},{to:"/admin/plans",label:"Plans & credits",icon:u.jsx(Eh,{})},{to:"/admin/commerce",label:"Commerce",icon:u.jsx(xh,{})},{to:"/admin/security",label:"Security",icon:u.jsx(Qa,{})}];function Pt({children:f,title:g,subtitle:S,actions:r}){const[p,C]=B.useState(!1);return u.jsxs("div",{className:"admin-shell",children:[u.jsxs("aside",{className:p?"admin-sidebar is-open":"admin-sidebar",children:[u.jsx(Cl,{to:"/admin",children:u.jsx(hi,{compact:!0})}),u.jsx("nav",{children:q0.map(N=>u.jsxs(fi,{end:N.to==="/admin",to:N.to,onClick:()=>C(!1),children:[N.icon,u.jsx("span",{children:N.label})]},N.to))}),u.jsxs("div",{className:"sidebar-bottom",children:[u.jsxs("div",{className:"ops-status",children:[u.jsx("span",{className:"pulse-dot"}),u.jsxs("div",{children:[u.jsx("b",{children:"Control plane healthy"}),u.jsx("small",{children:"Updated just now"})]})]}),u.jsxs(fi,{to:"/",children:[u.jsx(m0,{}),u.jsx("span",{children:"View storefront"})]}),u.jsxs("button",{children:[u.jsx(b0,{}),u.jsx("span",{children:"Sign out"})]})]})]}),u.jsxs("div",{className:"admin-main",children:[u.jsxs("header",{className:"admin-topbar",children:[u.jsx("button",{className:"mobile-menu","aria-label":"Toggle admin navigation",onClick:()=>C(!p),children:u.jsx(Sh,{})}),u.jsxs("div",{className:"admin-search",children:[u.jsx(Qn,{}),u.jsx("input",{placeholder:"Search users, orders, streams…","aria-label":"Search administration"}),u.jsx("kbd",{children:"⌘ K"})]}),u.jsxs("div",{className:"admin-identity",children:[u.jsx("span",{className:"env-pill",children:"PREVIEW"}),u.jsx("div",{className:"avatar",children:"PH"}),u.jsxs("div",{children:[u.jsx("b",{children:"Platform owner"}),u.jsx("small",{children:"Super Admin"})]}),u.jsx(si,{})]})]}),u.jsxs("main",{className:"admin-content",children:[u.jsxs("div",{className:"admin-heading",children:[u.jsxs("div",{children:[u.jsx("h1",{children:g}),u.jsx("p",{children:S})]}),u.jsx("div",{className:"heading-actions",children:r})]}),f]})]})]})}function B0(){const[f,g]=B.useState(null);B.useEffect(()=>{oe.overview().then(g)},[]);const S=[{label:"Active subscribers",value:f==null?void 0:f.metrics.activeSubscribers,delta:"+8.2%",icon:u.jsx(lf,{})},{label:"Active trials",value:f==null?void 0:f.metrics.activeTrials,delta:"48h automatic",icon:u.jsx(A0,{})},{label:"Expiring in 7 days",value:f==null?void 0:f.metrics.expiringSoon,delta:"Needs attention",icon:u.jsx(Ga,{})},{label:"Reseller network",value:f==null?void 0:f.metrics.resellers,delta:"3 sub-resellers",icon:u.jsx(Fs,{})}];return u.jsxs(Pt,{title:"Operations overview",subtitle:"A live view of subscriptions, catalog health, and revenue operations.",actions:u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:"button button--ghost",children:[u.jsx(Gn,{})," Refresh"]}),u.jsxs(Cl,{className:"button",to:"/admin/subscribers?create=1",children:[u.jsx(Ln,{})," New subscriber"]})]}),children:[u.jsx("section",{className:"metric-grid",children:S.map(r=>{var p;return u.jsxs("article",{className:"metric-card",children:[u.jsxs("div",{children:[u.jsx("span",{children:r.label}),u.jsx("i",{children:r.icon})]}),u.jsx("strong",{children:((p=r.value)==null?void 0:p.toLocaleString())??"—"}),u.jsx("small",{children:r.delta})]},r.label)})}),u.jsxs("section",{className:"dashboard-grid",children:[u.jsxs("article",{className:"panel panel--wide",children:[u.jsx(La,{title:"Catalog service health",subtitle:"Licensed items by latest health state",action:u.jsxs(Cl,{to:"/admin/catalog",children:["Open monitor ",u.jsx(ee,{})]})}),u.jsxs("div",{className:"health-overview",children:[u.jsx("div",{className:"donut",style:{"--healthy":`${Math.max(5,Math.round(((f==null?void 0:f.catalog.healthy)??0)/Math.max(1,Object.values((f==null?void 0:f.catalog)??{}).reduce((r,p)=>r+p,0))*360))}deg`},children:u.jsxs("span",{children:[u.jsx("b",{children:((f==null?void 0:f.catalog.healthy)??0).toLocaleString()}),u.jsx("small",{children:"healthy"})]})}),u.jsxs("div",{className:"health-legend",children:[u.jsxs("div",{children:[u.jsx("i",{className:"green"}),u.jsx("span",{children:"Healthy"}),u.jsx("b",{children:(f==null?void 0:f.catalog.healthy)??0})]}),u.jsxs("div",{children:[u.jsx("i",{className:"amber"}),u.jsx("span",{children:"Degraded"}),u.jsx("b",{children:(f==null?void 0:f.catalog.degraded)??0})]}),u.jsxs("div",{children:[u.jsx("i",{className:"red"}),u.jsx("span",{children:"Offline"}),u.jsx("b",{children:(f==null?void 0:f.catalog.offline)??0})]}),u.jsxs("div",{children:[u.jsx("i",{className:"gray"}),u.jsx("span",{children:"Unknown"}),u.jsx("b",{children:(f==null?void 0:f.catalog.unknown)??0})]})]})]})]}),u.jsxs("article",{className:"panel",children:[u.jsx(La,{title:"Source status",subtitle:"Authorized providers"}),u.jsxs("div",{className:"source-list",children:[u.jsx(Gs,{label:"Active sources",value:(f==null?void 0:f.sources.active)??0,tone:"green"}),u.jsx(Gs,{label:"Degraded",value:(f==null?void 0:f.sources.degraded)??0,tone:"amber"}),u.jsx(Gs,{label:"Quarantined",value:(f==null?void 0:f.sources.quarantined)??0,tone:"red"})]}),u.jsxs(Cl,{className:"panel-link",to:"/admin/catalog",children:["Review providers ",u.jsx(ee,{})]})]}),u.jsxs("article",{className:"panel panel--wide",children:[u.jsx(La,{title:"Activation activity",subtitle:"Last seven days",action:u.jsxs("button",{children:["View report ",u.jsx(ee,{})]})}),u.jsxs("div",{className:"chart",children:[u.jsxs("div",{className:"chart-y",children:[u.jsx("span",{children:"100"}),u.jsx("span",{children:"75"}),u.jsx("span",{children:"50"}),u.jsx("span",{children:"25"}),u.jsx("span",{children:"0"})]}),u.jsx("div",{className:"chart-bars",children:[48,62,55,78,68,89,82].map((r,p)=>u.jsxs("div",{children:[u.jsx("i",{style:{height:`${r}%`}}),u.jsx("span",{children:["Thu","Fri","Sat","Sun","Mon","Tue","Wed"][p]})]},p))})]})]}),u.jsxs("article",{className:"panel",children:[u.jsx(La,{title:"Action queue",subtitle:"Items needing review"}),u.jsxs("div",{className:"action-list",children:[u.jsxs("div",{children:[u.jsx("span",{className:"icon-well amber",children:u.jsx(Ps,{})}),u.jsxs("p",{children:[u.jsx("b",{children:"12 streams offline"}),u.jsx("small",{children:"2 providers affected"})]}),u.jsx(ee,{})]}),u.jsxs("div",{children:[u.jsx("span",{className:"icon-well violet",children:u.jsx(Ga,{})}),u.jsxs("p",{children:[u.jsx("b",{children:"7 rights expiring"}),u.jsx("small",{children:"Within 30 days"})]}),u.jsx(ee,{})]}),u.jsxs("div",{children:[u.jsx("span",{className:"icon-well cyan",children:u.jsx(S0,{})}),u.jsxs("p",{children:[u.jsx("b",{children:"17 awaiting payment"}),u.jsx("small",{children:"PayPal and Bitcoin"})]}),u.jsx(ee,{})]})]})]})]}),u.jsxs("p",{className:"freshness",children:[u.jsx(Ga,{})," Dashboard generated ",f?new Date(f.generatedAt).toLocaleTimeString():"…",". Status is never shown as current without a fresh timestamp."]})]})}function Y0(){const[f,g]=B.useState([]),[S,r]=B.useState(!1),[p,C]=B.useState([]),[N,_]=B.useState(null),[O,M]=B.useState(!1),[k]=Ks();B.useEffect(()=>{oe.subscribers().then(g),oe.plans().then(C),k.get("create")&&r(!0)},[k]);async function G(L){L.preventDefault(),M(!0);const pl=new FormData(L.currentTarget);try{const jl=await oe.createSubscriber({email:String(pl.get("email")),displayName:String(pl.get("name")),trial:pl.get("kind")==="trial",planId:String(pl.get("plan"))});_({username:jl.subscriber.username,initialPassword:"initialPassword"in jl.subscriber?String(jl.subscriber.initialPassword):void 0,server:jl.server}),g(await oe.subscribers()),r(!1)}finally{M(!1)}}return u.jsxs(Pt,{title:"Subscribers",subtitle:"Create, monitor, and support every customer subscription.",actions:u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:"button button--ghost",children:[u.jsx(j0,{})," Filter"]}),u.jsxs("button",{className:"button",onClick:()=>r(!0),children:[u.jsx(Ln,{})," Add subscriber"]})]}),children:[u.jsxs(mi,{children:[u.jsxs("div",{className:"table-toolbar",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(Qn,{}),u.jsx("input",{"aria-label":"Search subscribers",placeholder:"Search email, username, or reseller"})]}),u.jsxs("div",{className:"table-tabs",children:[u.jsxs("button",{className:"active",children:["All ",u.jsx("b",{children:f.length})]}),u.jsx("button",{children:"Trials"}),u.jsx("button",{children:"Expiring soon"}),u.jsx("button",{children:"Suspended"})]})]}),u.jsx("div",{className:"table-wrap",children:u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Subscriber"}),u.jsx("th",{children:"Plan"}),u.jsx("th",{children:"Connections"}),u.jsx("th",{children:"Owner"}),u.jsx("th",{children:"Expires"}),u.jsx("th",{children:"Status"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:f.map(L=>u.jsxs("tr",{children:[u.jsx("td",{children:u.jsxs("div",{className:"person-cell",children:[u.jsx("span",{children:(L.displayName??L.email).slice(0,2).toUpperCase()}),u.jsxs("div",{children:[u.jsx("b",{children:L.displayName||L.email}),u.jsx("small",{children:L.username})]})]})}),u.jsxs("td",{children:[u.jsx("b",{className:"capitalize",children:L.kind}),u.jsxs("small",{children:[L.credits," credits"]})]}),u.jsx("td",{children:u.jsxs("span",{className:"connection-count",children:[u.jsx(Xn,{}),L.connections]})}),u.jsx("td",{children:L.tenantName}),u.jsx("td",{children:L.endsAt?yi(L.endsAt):"No scheduled expiry"}),u.jsx("td",{children:u.jsx(Ct,{status:L.status})}),u.jsx("td",{children:u.jsx("button",{className:"icon-button","aria-label":`Open actions for ${L.displayName||L.email}`,children:u.jsx(Ws,{})})})]},L.id))})]})})]}),S&&u.jsx(Zs,{title:"Add subscriber",subtitle:"Provision paid access or a zero-credit 48-hour trial.",onClose:()=>r(!1),children:u.jsxs("form",{className:"modal-form",onSubmit:G,children:[u.jsxs("label",{children:["Full name",u.jsx("input",{name:"name",placeholder:"Customer name"})]}),u.jsxs("label",{children:["Email address",u.jsx("input",{name:"email",type:"email",required:!0,placeholder:"customer@example.com"})]}),u.jsxs("fieldset",{children:[u.jsx("legend",{children:"Access type"}),u.jsxs("div",{className:"radio-cards",children:[u.jsxs("label",{children:[u.jsx("input",{type:"radio",name:"kind",value:"paid",defaultChecked:!0}),u.jsxs("span",{children:[u.jsx(xh,{}),u.jsx("b",{children:"Paid subscription"}),u.jsx("small",{children:"Debits plan credits"})]})]}),u.jsxs("label",{children:[u.jsx("input",{type:"radio",name:"kind",value:"trial"}),u.jsxs("span",{children:[u.jsx(Ga,{}),u.jsx("b",{children:"48-hour trial"}),u.jsx("small",{children:"1 connection · 0 credits"})]})]})]})]}),u.jsxs("label",{children:["Subscription plan",u.jsx("select",{name:"plan",required:!0,children:p.filter(L=>L.active).map(L=>u.jsxs("option",{value:L.id,children:[L.label," · ",L.connections," connections · ",L.credits," credits"]},L.id))})]}),u.jsx(Ye,{children:"Exact credit effect and expiry are calculated server-side. Trials are checked for prior eligibility."}),u.jsxs("div",{className:"modal-actions",children:[u.jsx("button",{type:"button",className:"button button--ghost",onClick:()=>r(!1),children:"Cancel"}),u.jsx("button",{className:"button",disabled:O,children:O?"Provisioning…":"Create subscriber"})]})]})}),N&&u.jsx(Zs,{title:"Access created",subtitle:"Copy these details now. The service password is not shown again.",onClose:()=>_(null),children:u.jsxs("div",{className:"success-block",children:[u.jsx("span",{className:"success-icon",children:u.jsx(Ee,{})}),u.jsx(Xa,{label:"Server",value:N.server}),u.jsx(Xa,{label:"Username",value:N.username}),N.initialPassword&&u.jsx(Xa,{label:"Temporary password",value:N.initialPassword}),u.jsx(Ye,{tone:"warning",children:"For live email delivery, customers receive a 24-hour one-time claim link instead of a reusable plaintext password."}),u.jsx("button",{className:"button button--block",onClick:()=>_(null),children:"Done"})]})})]})}function L0(){const[f,g]=B.useState([]),[S,r]=B.useState(!1),[p,C]=B.useState(!1);B.useEffect(()=>{oe.resellers().then(g)},[]);async function N(_){_.preventDefault(),C(!0);const O=new FormData(_.currentTarget);try{await oe.createReseller({name:String(O.get("name")),adminEmail:String(O.get("email")),initialCredits:Number(O.get("credits")),canCreateTrials:O.get("trials")==="on",canCreateSubresellers:O.get("children")==="on"}),g(await oe.resellers()),r(!1)}finally{C(!1)}}return u.jsxs(Pt,{title:"Reseller network",subtitle:"Manage the hierarchy, permissions, and append-only credit wallets.",actions:u.jsxs("button",{className:"button",onClick:()=>r(!0),children:[u.jsx(Ln,{})," Add sub-reseller"]}),children:[u.jsxs("section",{className:"metric-grid metric-grid--three",children:[u.jsx(nt,{label:"Platform credit balance",value:"∞",note:"Owner entitlement only",icon:u.jsx(Ah,{})}),u.jsx(nt,{label:"Credits allocated",value:f.reduce((_,O)=>_+O.credits,0).toLocaleString(),note:"Across active wallets",icon:u.jsx(Eh,{})}),u.jsx(nt,{label:"Managed subscribers",value:f.reduce((_,O)=>_+O.subscriberCount,0).toLocaleString(),note:"Reseller-owned accounts",icon:u.jsx(lf,{})})]}),u.jsxs(mi,{children:[u.jsxs("div",{className:"table-toolbar",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Organizations"}),u.jsx("p",{children:"Server-enforced visibility follows the reseller tree."})]}),u.jsxs("div",{className:"search-box",children:[u.jsx(Qn,{}),u.jsx("input",{"aria-label":"Search resellers",placeholder:"Search resellers"})]})]}),u.jsx("div",{className:"table-wrap",children:u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Organization"}),u.jsx("th",{children:"Hierarchy"}),u.jsx("th",{children:"Wallet"}),u.jsx("th",{children:"Subscribers"}),u.jsx("th",{children:"Capabilities"}),u.jsx("th",{children:"Status"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:f.map(_=>u.jsxs("tr",{children:[u.jsx("td",{children:u.jsxs("div",{className:"person-cell",children:[u.jsx("span",{children:u.jsx(Fs,{})}),u.jsxs("div",{children:[u.jsx("b",{children:_.name}),u.jsx("small",{children:_.id.slice(0,14)})]})]})}),u.jsx("td",{children:_.parentId==="platform"?"Direct reseller":"Sub-reseller"}),u.jsxs("td",{children:[u.jsxs("b",{children:[_.credits," credits"]}),u.jsx("small",{children:"Append-only ledger"})]}),u.jsx("td",{children:_.subscriberCount}),u.jsx("td",{children:u.jsxs("div",{className:"tag-row",children:[_.canCreateTrials?u.jsx("span",{children:"Trials"}):null,_.canCreateSubresellers?u.jsx("span",{children:"Sub-resellers"}):null]})}),u.jsx("td",{children:u.jsx(Ct,{status:_.status})}),u.jsx("td",{children:u.jsx("button",{className:"icon-button","aria-label":`Open actions for ${_.name}`,children:u.jsx(Ws,{})})})]},_.id))})]})})]}),S&&u.jsx(Zs,{title:"Create sub-reseller",subtitle:"Allocate a scoped wallet and define permitted capabilities.",onClose:()=>r(!1),children:u.jsxs("form",{className:"modal-form",onSubmit:N,children:[u.jsxs("label",{children:["Organization name",u.jsx("input",{name:"name",required:!0,placeholder:"Reseller business name"})]}),u.jsxs("label",{children:["Administrator email",u.jsx("input",{name:"email",required:!0,type:"email",placeholder:"admin@example.com"})]}),u.jsxs("label",{children:["Initial credit allocation",u.jsx("input",{name:"credits",required:!0,type:"number",min:"0",defaultValue:"10"}),u.jsx("small",{children:"The parent wallet is debited atomically."})]}),u.jsxs("label",{className:"toggle-row",children:[u.jsxs("span",{children:[u.jsx("b",{children:"Allow 48-hour trials"}),u.jsx("small",{children:"Trial issuance remains quota and abuse controlled."})]}),u.jsx("input",{type:"checkbox",name:"trials",defaultChecked:!0})]}),u.jsxs("label",{className:"toggle-row",children:[u.jsxs("span",{children:[u.jsx("b",{children:"Allow child resellers"}),u.jsx("small",{children:"Creates one additional hierarchy level."})]}),u.jsx("input",{type:"checkbox",name:"children"})]}),u.jsxs("div",{className:"modal-actions",children:[u.jsx("button",{type:"button",className:"button button--ghost",onClick:()=>r(!1),children:"Cancel"}),u.jsx("button",{className:"button",disabled:p,children:p?"Creating…":"Create reseller"})]})]})})]})}function G0(){const[f,g]=B.useState([]),[S,r]=B.useState([]),[p,C]=B.useState("items");return B.useEffect(()=>{oe.catalog().then(g),oe.sources().then(r)},[]),u.jsxs(Pt,{title:"Catalog & health",subtitle:"Import and monitor only sources you are authorized to distribute.",actions:u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:"button button--ghost",children:[u.jsx(Gn,{})," Run checks"]}),u.jsxs("button",{className:"button",children:[u.jsx(Ln,{})," Add licensed source"]})]}),children:[u.jsxs(Ye,{tone:"warning",children:[u.jsx("b",{children:"Rights gate:"})," imports are staged unpublished. An item needs an approved rights record and a healthy authorized source before publication."]}),u.jsxs("div",{className:"content-tabs",children:[u.jsxs("button",{className:p==="items"?"active":"",onClick:()=>C("items"),children:["Catalog items ",u.jsx("span",{children:f.length})]}),u.jsxs("button",{className:p==="sources"?"active":"",onClick:()=>C("sources"),children:["Licensed sources ",u.jsx("span",{children:S.length})]})]}),p==="items"?u.jsxs(mi,{children:[u.jsxs("div",{className:"table-toolbar",children:[u.jsxs("div",{className:"search-box",children:[u.jsx(Qn,{}),u.jsx("input",{"aria-label":"Search catalog administration",placeholder:"Search catalog"})]}),u.jsxs("div",{className:"filter-chips",children:[u.jsxs("button",{children:["Type ",u.jsx(si,{})]}),u.jsxs("button",{children:["Rights ",u.jsx(si,{})]}),u.jsxs("button",{children:["Health ",u.jsx(si,{})]})]})]}),u.jsx("div",{className:"table-wrap",children:u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Item"}),u.jsx("th",{children:"Type"}),u.jsx("th",{children:"Source"}),u.jsx("th",{children:"Rights"}),u.jsx("th",{children:"Health"}),u.jsx("th",{children:"Last checked"}),u.jsx("th",{children:"Published"}),u.jsx("th",{})]})}),u.jsx("tbody",{children:f.map(N=>u.jsxs("tr",{children:[u.jsx("td",{children:u.jsxs("div",{className:"media-cell",children:[u.jsx("span",{children:N.type==="live"?u.jsx(Is,{}):u.jsx(Qs,{})}),u.jsxs("div",{children:[u.jsx("b",{children:N.title}),u.jsxs("small",{children:[N.category," · ",N.country??"Global"]})]})]})}),u.jsx("td",{className:"capitalize",children:N.type}),u.jsx("td",{children:N.sourceName}),u.jsxs("td",{children:[u.jsx(Ct,{status:N.rightsStatus}),N.rightsExpiresAt&&u.jsx("small",{children:yi(N.rightsExpiresAt)})]}),u.jsx("td",{children:u.jsx(Ct,{status:N.health})}),u.jsx("td",{children:N.lastCheckedAt?Xs(N.lastCheckedAt):"Never"}),u.jsxs("td",{children:[u.jsx("span",{className:N.published?"publish-dot on":"publish-dot"}),N.published?"Live":"Draft"]}),u.jsx("td",{children:u.jsx("button",{className:"icon-button","aria-label":`Open actions for ${N.title}`,children:u.jsx(Ws,{})})})]},N.id))})]})})]}):u.jsxs("div",{className:"source-cards",children:[S.map(N=>u.jsxs("article",{children:[u.jsxs("div",{children:[u.jsx("span",{className:`icon-well ${N.status==="active"?"cyan":"amber"}`,children:u.jsx(g0,{})}),u.jsx(Ct,{status:N.status})]}),u.jsx("h3",{children:N.name}),u.jsxs("p",{children:[N.providerType.toUpperCase()," · ",N.authorizedHost]}),u.jsxs("dl",{children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Contract"}),u.jsx("dd",{children:N.contractReference})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Last sync"}),u.jsx("dd",{children:N.lastSyncAt?Xs(N.lastSyncAt):"Never"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Last healthy"}),u.jsx("dd",{children:N.lastHealthyAt?Xs(N.lastHealthyAt):"Never"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Failures"}),u.jsx("dd",{children:N.failureCount})]})]}),u.jsxs("button",{className:"button button--ghost button--block",children:[u.jsx(Gn,{})," Sync authorized catalog"]})]},N.id)),u.jsxs("article",{className:"add-source-card",children:[u.jsx(Ln,{}),u.jsx("h3",{children:"Add licensed source"}),u.jsx("p",{children:"Xtream-compatible upstream, M3U/XMLTV, JSON API, or direct owned origin."}),u.jsx("button",{className:"button",children:"Configure source"})]})]})]})}function X0(){var S,r;const{plans:f}=ef(),g=B.useMemo(()=>Array.from(new Map(f.filter(p=>!p.isLifetime).map(p=>[p.connections,p])).keys()),[f]);return u.jsxs(Pt,{title:"Plans & credits",subtitle:"The server owns every price, connection cap, and reseller debit.",actions:u.jsxs("button",{className:"button",children:[u.jsx(p0,{})," Configure pricing"]}),children:[u.jsxs("section",{className:"metric-grid metric-grid--three",children:[u.jsx(nt,{label:"Maximum connections",value:"5",note:"Hard subscription cap",icon:u.jsx(Xn,{})}),u.jsx(nt,{label:"Trial cost",value:"0",note:"Exactly 48 hours",icon:u.jsx(Ga,{})}),u.jsx(nt,{label:"Owner credits",value:"∞",note:"Not delegable",icon:u.jsx(Ah,{})})]}),u.jsxs(mi,{children:[u.jsxs("div",{className:"table-toolbar",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Credit matrix"}),u.jsx("p",{children:"Credit cost scales by selected concurrent connections."})]}),u.jsx("span",{className:"env-pill",children:"SERVER AUTHORITATIVE"})]}),u.jsx("div",{className:"table-wrap",children:u.jsxs("table",{className:"matrix-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Duration"}),g.map(p=>u.jsxs("th",{children:[p," connection",p>1?"s":""]},p))]})}),u.jsxs("tbody",{children:[["1_month","3_months","6_months","12_months"].map(p=>{var C;return u.jsxs("tr",{children:[u.jsx("td",{children:u.jsx("b",{children:(C=f.find(N=>N.duration===p))==null?void 0:C.label})}),g.map(N=>{const _=f.find(O=>O.duration===p&&O.connections===N);return u.jsxs("td",{children:[u.jsx("strong",{children:_==null?void 0:_.credits}),u.jsx("small",{children:" credits"}),u.jsx("span",{children:u.jsx(ri,{cents:(_==null?void 0:_.priceCents)??null,currency:_==null?void 0:_.currency})})]},N)})]},p)}),u.jsxs("tr",{className:"lifetime-row",children:[u.jsxs("td",{children:[u.jsx("b",{children:"Lifetime*"}),u.jsx("small",{children:"5 connections only"})]}),u.jsx("td",{colSpan:4,children:"Not applicable"}),u.jsxs("td",{children:[u.jsx("strong",{children:((S=f.find(p=>p.isLifetime))==null?void 0:S.credits)??"—"}),u.jsx("small",{children:" credits"}),u.jsx("span",{children:u.jsx(ri,{cents:((r=f.find(p=>p.isLifetime))==null?void 0:r.priceCents)??null})})]})]})]})]})})]}),u.jsx(Ye,{children:"*Lifetime stays disabled until an administrator sets both a retail price and credit cost, and accepts service-lifetime wording."})]})}function Q0(){return u.jsxs(Pt,{title:"Commerce",subtitle:"Reconcile orders, provider confirmations, fulfillment, and delivery.",actions:u.jsxs("button",{className:"button button--ghost",children:[u.jsx(Gn,{})," Reconcile"]}),children:[u.jsxs("section",{className:"metric-grid metric-grid--three",children:[u.jsx(nt,{label:"Fulfilled this month",value:"286",note:"Webhook-confirmed",icon:u.jsx(r0,{})}),u.jsx(nt,{label:"Awaiting payment",value:"17",note:"Provider pending",icon:u.jsx(Ga,{})}),u.jsx(nt,{label:"Failed or expired",value:"4",note:"No access provisioned",icon:u.jsx(Ps,{})})]}),u.jsxs("div",{className:"dashboard-grid",children:[u.jsxs("article",{className:"panel panel--wide",children:[u.jsx(La,{title:"Payment providers",subtitle:"Live activation remains off until credentials and approval are configured."}),u.jsxs("div",{className:"provider-list",children:[u.jsxs("div",{children:[u.jsx("span",{className:"icon-well blue",children:u.jsx(bh,{})}),u.jsxs("div",{children:[u.jsx("b",{children:"PayPal"}),u.jsx("small",{children:"Server-created Orders + signed webhooks"})]}),u.jsx(Ct,{status:"not configured"})]}),u.jsxs("div",{children:[u.jsx("span",{className:"icon-well gold",children:u.jsx(ks,{})}),u.jsxs("div",{children:[u.jsx("b",{children:"BTCPay Server"}),u.jsx("small",{children:"Unique invoice + HMAC-verified settlement"})]}),u.jsx(Ct,{status:"not configured"})]})]})]}),u.jsxs("article",{className:"panel",children:[u.jsx(La,{title:"Fulfillment policy"}),u.jsxs("ul",{className:"check-list",children:[u.jsxs("li",{children:[u.jsx(Ee,{})," Never fulfill on redirect"]}),u.jsxs("li",{children:[u.jsx(Ee,{})," Idempotent provider events"]}),u.jsxs("li",{children:[u.jsx(Ee,{})," One-time credential claim"]}),u.jsxs("li",{children:[u.jsx(Ee,{})," Refund status reconciliation"]})]})]})]})]})}function Z0(){return u.jsxs(Pt,{title:"Security & audit",subtitle:"Keep staff, reseller, customer, and service identities separate.",actions:u.jsxs("button",{className:"button button--ghost",children:[u.jsx(y0,{})," View audit log"]}),children:[u.jsxs("section",{className:"security-score",children:[u.jsx("div",{className:"score-ring",children:u.jsxs("span",{children:[u.jsx("b",{children:"7"}),u.jsx("small",{children:"/ 10"})]})}),u.jsxs("div",{children:[u.jsx("span",{className:"eyebrow",children:"LAUNCH SECURITY CHECK"}),u.jsx("h2",{children:"Core controls are designed. Three external controls remain."}),u.jsx("p",{children:"Complete Cloudflare Access/MFA, configure production secrets, and run an independent penetration test before accepting customers."})]})]}),u.jsx("div",{className:"security-grid",children:[{icon:u.jsx($s,{}),title:"Authentication realms",text:"Separate operator sessions and IPTV service credentials.",state:"ready"},{icon:u.jsx(Qa,{}),title:"MFA & Cloudflare Access",text:"Mandatory for staff and resellers before launch.",state:"action"},{icon:u.jsx(o0,{}),title:"Secret storage",text:"AES-GCM encrypted provider credentials; keys stay in Cloudflare secrets.",state:"ready"},{icon:u.jsx(f0,{}),title:"Audit trail",text:"Append-only events for auth, credits, subscriptions, sources, and payments.",state:"ready"},{icon:u.jsx(gh,{}),title:"Rate limits & bot control",text:"Apply WAF rules and Turnstile to auth and trial entry points.",state:"action"},{icon:u.jsx(v0,{}),title:"Independent testing",text:"Tenant isolation, SSRF, webhook replay, and connection-limit load tests.",state:"action"}].map(f=>u.jsxs("article",{children:[u.jsx("span",{className:"icon-well cyan",children:f.icon}),u.jsxs("div",{children:[u.jsx("h3",{children:f.title}),u.jsx("p",{children:f.text})]}),u.jsx("span",{className:f.state==="ready"?"control-state ready":"control-state action",children:f.state==="ready"?"Designed":"Required"})]},f.title))})]})}function V0(){const f=ws(),[g,S]=B.useState("");async function r(p){p.preventDefault();const C=new FormData(p.currentTarget);(await fetch("/api/auth/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:C.get("email"),password:C.get("password")})})).ok?f("/admin"):S("Sign-in failed. Check your credentials.")}return u.jsxs("div",{className:"login-page",children:[u.jsxs("div",{className:"login-brand",children:[u.jsx(hi,{}),u.jsxs("div",{children:[u.jsx("span",{children:"LICENSED MEDIA OPERATIONS"}),u.jsxs("h1",{children:["Control every entitlement.",u.jsx("br",{}),u.jsx("em",{children:"See every signal."})]}),u.jsx("p",{children:"Project Hydra brings subscribers, reseller credits, catalog rights, stream health, and payment fulfillment into one secure operations console."})]}),u.jsx("small",{children:"Authorized content only · Cloudflare protected"})]}),u.jsx("div",{className:"login-panel",children:u.jsxs("form",{onSubmit:r,children:[u.jsxs("div",{children:[u.jsx(oi,{}),u.jsx("span",{className:"eyebrow",children:"OPERATOR ACCESS"}),u.jsx("h2",{children:"Welcome back"}),u.jsx("p",{children:"Sign in to the Project Hydra control plane."})]}),u.jsxs("label",{children:["Email address",u.jsx("input",{name:"email",type:"email",required:!0,defaultValue:""})]}),u.jsxs("label",{children:["Password",u.jsx("input",{name:"password",type:"password",required:!0,defaultValue:""})]}),g&&u.jsx(Ye,{tone:"error",children:g}),u.jsxs("button",{className:"button button--block button--large",children:["Sign in",u.jsx(ee,{})]}),u.jsx("small",{children:"MFA is required after password verification."})]})})]})}function w0(){return u.jsx(It,{children:u.jsxs("section",{className:"status-page",children:[u.jsx("span",{className:"status-hero-icon",children:u.jsx(Ee,{})}),u.jsx("h1",{children:"All control-plane systems operational"}),u.jsx("p",{children:"Updated just now · health freshness is shown explicitly."}),u.jsx("div",{className:"status-list",children:["Storefront & customer account","Subscription API","Catalog synchronization","Credential service","PayPal integration","BTCPay integration","Transactional email"].map((f,g)=>u.jsxs("div",{children:[u.jsx("span",{children:f}),u.jsx(Ct,{status:g<4?"operational":"not configured"})]},f))}),u.jsx(Ye,{children:"Media availability is reported per licensed source and may differ by region. “Operational” does not guarantee every individual channel."})]})})}function K0(){return u.jsxs(u0,{children:[u.jsx(Xl,{path:"/",element:u.jsx(O0,{})}),u.jsx(Xl,{path:"/pricing",element:u.jsx(C0,{})}),u.jsx(Xl,{path:"/catalog",element:u.jsx(_0,{})}),u.jsx(Xl,{path:"/checkout",element:u.jsx(D0,{})}),u.jsx(Xl,{path:"/account",element:u.jsx(U0,{})}),u.jsx(Xl,{path:"/activate",element:u.jsx(H0,{})}),u.jsx(Xl,{path:"/status",element:u.jsx(w0,{})}),u.jsx(Xl,{path:"/operator",element:u.jsx(V0,{})}),u.jsx(Xl,{path:"/admin",element:u.jsx(Ft,{children:u.jsx(B0,{})})}),u.jsx(Xl,{path:"/admin/subscribers",element:u.jsx(Ft,{children:u.jsx(Y0,{})})}),u.jsx(Xl,{path:"/admin/resellers",element:u.jsx(Ft,{children:u.jsx(L0,{})})}),u.jsx(Xl,{path:"/admin/catalog",element:u.jsx(Ft,{children:u.jsx(G0,{})})}),u.jsx(Xl,{path:"/admin/plans",element:u.jsx(Ft,{children:u.jsx(X0,{})})}),u.jsx(Xl,{path:"/admin/commerce",element:u.jsx(Ft,{children:u.jsx(Q0,{})})}),u.jsx(Xl,{path:"/admin/security",element:u.jsx(Ft,{children:u.jsx(Z0,{})})}),u.jsx(Xl,{path:"*",element:u.jsx(Js,{to:"/",replace:!0})})]})}function La({title:f,subtitle:g,action:S}){return u.jsxs("header",{className:"panel-header",children:[u.jsxs("div",{children:[u.jsx("h3",{children:f}),g&&u.jsx("p",{children:g})]}),S&&u.jsx("div",{children:S})]})}function mi({children:f}){return u.jsx("section",{className:"data-panel",children:f})}function nt({label:f,value:g,note:S,icon:r}){return u.jsxs("article",{className:"metric-card",children:[u.jsxs("div",{children:[u.jsx("span",{children:f}),u.jsx("i",{children:r})]}),u.jsx("strong",{children:g}),u.jsx("small",{children:S})]})}function Gs({label:f,value:g,tone:S}){return u.jsxs("div",{className:"status-row",children:[u.jsx("i",{className:S}),u.jsx("span",{children:f}),u.jsx("b",{children:g})]})}function Ct({status:f}){const g=f.toLowerCase().replaceAll(" ","-");return u.jsxs("span",{className:`status status--${g}`,children:[u.jsx("i",{}),f.replaceAll("_"," ")]})}function Ye({children:f,tone:g="info"}){return u.jsxs("div",{className:`notice notice--${g}`,children:[g==="warning"||g==="error"?u.jsx(Ps,{}):u.jsx(Qa,{}),u.jsx("div",{children:f})]})}function Zs({title:f,subtitle:g,onClose:S,children:r}){return B.useEffect(()=>{const p=C=>{C.key==="Escape"&&S()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[S]),u.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:p=>{p.target===p.currentTarget&&S()},children:u.jsxs("section",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h2",{id:"modal-title",children:f}),u.jsx("p",{children:g})]}),u.jsx("button",{onClick:S,"aria-label":"Close",children:u.jsx(E0,{})})]}),r]})})}function Xa({label:f,value:g}){return u.jsxs("div",{className:"credential-line",children:[u.jsxs("div",{children:[u.jsx("small",{children:f}),u.jsx("b",{children:g})]}),u.jsx(J0,{text:g})]})}function J0({text:f}){const[g,S]=B.useState(!1);return u.jsx("button",{className:"copy-button",disabled:!f,onClick:()=>{navigator.clipboard.writeText(f),S(!0),setTimeout(()=>S(!1),1200)},"aria-label":`Copy ${f}`,children:g?u.jsx(Ee,{}):u.jsx(d0,{})})}function k0({icon:f,title:g,text:S}){return u.jsxs("div",{className:"empty-state",children:[f,u.jsx("h3",{children:g}),u.jsx("p",{children:S})]})}function yi(f){return new Intl.DateTimeFormat("en-ZA",{day:"2-digit",month:"short",year:"numeric"}).format(new Date(f))}function Xs(f){const g=Math.round((Date.now()-new Date(f).getTime())/6e4);if(g<1)return"Just now";if(g<60)return`${g}m ago`;const S=Math.round(g/60);return S<24?`${S}h ago`:yi(f)}a0.createRoot(document.getElementById("root")).render(u.jsx(B.StrictMode,{children:u.jsx(n0,{children:u.jsx(K0,{})})}));