varw3=Object.defineProperty;varxy=t=>{throwTypeError(t)};varj3=(t,n,a)=>nint?w3(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a;varby=(t,n,a)=>j3(t,typeofn!="symbol"?n+"":n,a),vy=(t,n,a)=>n.has(t)||xy("Cannot "+a);varpn=(t,n,a)=>(vy(t,n,"read from private field"),a?a.call(t):n.get(t)),yy=(t,n,a)=>n.has(t)?xy("Cannot add the same private member more than once"):ninstanceofWeakSet?n.add(t):n.set(t,a),dp=(t,n,a,o)=>(vy(t,n,"write to private field"),o?o.call(t,a):n.set(t,a),a);functionC3(t,n){for(vara=0;a<n.length;a++){consto=n[a];if(typeofo!="string"&&!Array.isArray(o)){for(constcino)if(c!=="default"&&!(cint)){constl=Object.getOwnPropertyDescriptor(o,c);l&&Object.defineProperty(t,c,l.get?l:{enumerable:!0,get:()=>o[c]})}}}returnObject.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){constn=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(constcofdocument.querySelectorAll('link[rel="modulepreload"]'))o(c);newMutationObserver(c=>{for(constlofc)if(l.type==="childList")for(constdofl.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});functiona(c){constl={};returnc.integrity&&(l.integrity=c.integrity),c.referrerPolicy&&(l.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?l.credentials="include":c.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}functiono(c){if(c.ep)return;c.ep=!0;constl=a(c);fetch(c.href,l)}})();functions2(t){returnt&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}varfp={exports:{}},Sl={};/**
*/varCy;functionE3(){if(Cy)returnze;Cy=1;vart=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;functiony(O){returnO===null||typeofO!="object"?null:(O=w&&O[w]||O["@@iterator"],typeofO=="function"?O:null)}varC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};functionE(O,D,B){this.props=O,this.context=D,this.refs=N,this.updater=B||C}E.prototype.isReactComponent={},E.prototype.setState=function(O,D){if(typeofO!="object"&&typeofO!="function"&&O!=null)throwError("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,D,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};functionT(){}T.prototype=E.prototype;functionM(O,D,B){this.props=O,this.context=D,this.refs=N,this.updater=B||C}vark=M.prototype=newT;k.constructor=M,S(k,E.prototype),k.isPureReactComponent=!0;var_=Array.isArray;functionR(){}varL={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;functionX(O,D,B){varV=B.ref;return{$$typeof:t,type:O,key:D,ref:V!==void0?V:null,props:B}}functionI(O,D){returnX(O.type,D,O.props)}functionH(O){returntypeofO=="object"&&O!==null&&O.$$typeof===t}functionq(O){varD={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(B){returnD[B]})}varce=/\/+/g;functionde(O,D){returntypeofO=="object"&&O!==null&&O.key!=null?q(""+O.key):D.toString(36)}functionse(O){switch(O.status){case"fulfilled":returnO.value;case"rejected":throwO.reason;default:switch(typeofO.status=="string"?O.then(R,R):(O.status="pending",O.then(function(D){O.status==="pending"&&(O.status="fulfilled",O.value=D)},function(D){O.status==="pending"&&(O.status="rejected",O.reason=D)})),O.status){case"fulfilled":returnO.value;case"rejected":throwO.reason}}throwO}functionP(O,D,B,V,Z){varbe=typeofO;(be==="undefined"||be==="boolean")&&(O=null);varK=!1;if(O===null)K=!0;elseswitch(be){case"bigint":case"string":case"number":K=!0;break;case"object":switch(O.$$typeof){caset:casen:K=!0;break;caseb:returnK=O._init,P(K(O._payload),D,B,V,Z)}}if(K)returnZ=Z(O),K=V===""?"."+de(O,0):V,_(Z)?(B="",K!=null&&(B=K.replace(ce,"$&/")+"/"),P(Z,D,B,"",function($){return$})):Z!=null&&(H(Z)&&(Z=I(Z,B+(Z.key==null||O&&O.key===Z.key?"":(""+Z.key).replace(ce,"$&/")+"/")+K)),D.push(Z)),1;K=0;varge=V===""?".":V+":";if(_(O))for(varme=0;me<O.length;me++)V=O[me],be=ge+de(V,me),K+=P(V,D,B,be,Z);elseif(me=y(O),typeofme=="function")for(O=me.call(O),me=0;!(V=O.next()).done;)V=V.value,be=ge+de(V,me++),K+=P(V,D,B,be,Z);elseif(be==="object"){if(typeofO.then=="function")returnP(se(O),D,B,V,Z);throwD=String(O),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}returnK}functionW(O,D,B){if(O==null)returnO;varV=[],Z=0;returnP(O,V,"","",function(be){returnD.call(B,be,Z++)}),V}functionoe(O){if(O._status===-1){varD=O._result;D=D(),D.then(function(B){(O._status===0||O._status===-1)&&(O._status=1,O._result=B)},function(B){(O._status===0||O._status===-1)&&(O._status=2,O._result=B)}),O._status===-1&&(O._status=0,O._result=D)}if(O._status===1)returnO._result.default;throwO._result}varae=typeofreportError=="function"?reportError:function(O){if(typeofwindow=="object"&&typeofwindow.ErrorEvent=="function"){varD=newwindow.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeofO=="object"&&O!==null&&typeofO.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(D))return}elseif(typeofprocess=="
*/var Zh=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,i2=/^[\\/]{2}/;functionD3(t,n){returnn+t.replace(/\\/g,"/")}varAy="popstate";function_y(t){returntypeoft=="object"&&t!=null&&"pathname"int&&"search"int&&"hash"int&&"state"int&&"key"int}functionO3(t={}){functionn(o,c){varg;letl=(g=c.state)==null?void0:g.masked,{pathname:d,search:m,hash:p}=l||o.location;returnQp("",{pathname:d,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default",l?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void0)}functiona(o,c){returntypeofc=="string"?c:Il(c)}returnz3(n,a,null,t)}functionkt(t,n){if(t===!1||t===null||typeoft>"u")thrownewError(n)}functionpr(t,n){if(!t){typeofconsole<"u"&&console.warn(n);try{thrownewError(n)}catch{}}}functionL3(){returnMath.random().toString(36).substring(2,10)}functionDy(t,n){return{usr:t.state,key:t.key,idx:n,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void0}}functionQp(t,n,a=null,o,c){return{pathname:typeoft=="string"?t:t.pathname,search:"",hash:"",...typeofn=="string"?hi(n):n,state:a,key:n&&n.key||o||L3(),mask:c}}functionIl({pathname:t="/",search:n="",hash:a=""}){returnn&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}functionhi(t){letn={};if(t){leta=t.indexOf("#");a>=0&&(n.hash=t.substring(a),t=t.substring(0,a));leto=t.indexOf("?");o>=0&&(n.search=t.substring(o),t=t.substring(0,o)),t&&(n.pathname=t)}returnn}functionz3(t,n,a,o={}){let{window:c=document.defaultView,v5Compat:l=!1}=o,d=c.history,m="POP",p=null,g=b();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));functionb(){return(d.state||{idx:null}).idx}functionv(){m="POP";letN=b(),E=N==null?null:N-g;g=N,p&&p({action:m,location:S.location,delta:E})}functionw(N,E){m="PUSH";letT=_y(N)?N:Qp(S.location,N,E);g=b()+1;letM=Dy(T,g),k=S.createHref(T.mask||T);try{d.pushState(M,"",k)}catch(_){if(_instanceofDOMException&&_.name==="DataCloneError")throw_;c.location.assign(k)}l&&p&&p({action:m,location:S.location,delta:1})}functiony(N,E){m="REPLACE";letT=_y(N)?N:Qp(S.location,N,E);g=b();letM=Dy(T,g),k=S.createHref(T.mask||T);d.replaceState(M,"",k),l&&p&&p({action:m,location:S.location,delta:0})}functionC(N){returnP3(c,N)}letS={getaction(){returnm},getlocation(){returnt(c,d)},listen(N){if(p)thrownewError("A history only accepts one active listener");returnc.addEventListener(Ay,v),p=N,()=>{c.removeEventListener(Ay,v),p=null}},createHref(N){returnn(c,N)},createURL:C,encodeLocation(N){letE=C(N);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:w,replace:y,go(N){returnd.go(N)}};returnS}functionP3(t,n,a=!1){leto="http://localhost";t&&(o=t.location.origin!=="null"?t.location.origin:t.location.href),kt(o,"No window.location.(origin|href) available to create URL");letc=typeofn=="string"?n:Il(n);returnc=c.replace(/ $/,"%20"),!a&&i2.test(c)&&(c=o+c),newURL(c,o)}functionl2(t,n,a="/"){returnI3(t,n,a,!1)}functionI3(t,n,a,o,c){letl=typeofn=="string"?hi(n):n,d=Na(l.pathname||"/",a);if(d==null)returnnull;letm=U3(t),p=null,g=X3(d);for(letb=0;p==null&&b<m.length;++b)p=W3(m[b],g,o);returnp}functionU3(t){letn=c2(t);returnB3(n),n}functionc2(t,n=[],a=[],o="",c=!1){letl=(d,m,p=c,g)=>{letb={relativePath:g===void0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&p)return;kt(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}letv=Sr([o,b.relativePath]),w=a.concat(b);d.children&&d.children.length>0&&(kt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),c2(d.children,n,w,v,p)),!(d.path==null&&!d.index)&&n.push({path:v,score:q3(v,d.index),routesMeta:w.map((y,C)=>{let[S,N]=f2(y.relativePath,y.caseSensitive,C===w.length-1);return{...y,matcher:S,compiledPar
Pleasechangetheparent<Routepath="${E}">to<Routepath="${E==="/"?"*":`${E}/*`}">.`)}let b=Kn(),v;if(n){let E=typeof n=="string"?hi(n):n;kt(p==="/"||((N=E.pathname)==null?void 0:N.startsWith(p)),`Whenoverridingthelocationusing\`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}elsev=b;letw=v.pathname||"/",y=w;if(p!=="/"){letE=p.replace(/^\//,"").split("/");y="/"+w.replace(/^\//,"").split("/").slice(E.length).join("/")}letC=a&&a.state.matches.length?a.state.matches.map(E=>Object.assign(E,{route:a.manifest[E.route.id]||E.route})):l2(t,{pathname:y});pr(g||C!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),pr(C==null||C[C.length-1].route.element!==void0||C[C.length-1].route.Component!==void0||C[C.length-1].route.lazy!==void0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);letS=SN(C&&C.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:Sr([p,o.encodeLocation?o.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?p:Sr([p,o.encodeLocation?o.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),c,a);returnn&&S?f.createElement(Jl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void0,...v},navigationType:"POP"}},S):S}functionyN(){lett=MN(),n=rN(t)?`${t.status}${t.statusText}`:tinstanceofError?t.message:JSON.stringify(t),a=tinstanceofError?t.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},l={padding:"2px 4px",backgroundColor:o},d=null;returnconsole.error("Error handled by React Router default ErrorBoundary:",t),d=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:l},"ErrorBoundary")," or"," ",f.createElement("code",{style:l},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},n),a?f.createElement("pre",{style:c},a):null,d)}varwN=f.createElement(yN,null),C2=classextendsf.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}staticgetDerivedStateFromError(t){return{error:t}}staticgetDerivedStateFromProps(t,n){returnn.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){this.props.onError?this.props.onError(t,n):console.error("React Router caught the following error during render",t)}render(){lett=this.state.error;if(this.context&&typeoft=="object"&&t&&"digest"int&&typeoft.digest=="string"){consta=pN(t.digest);a&&(t=a)}letn=t!==void0?f.createElement(Tr.Provider,{value:this.props.routeContext},f.createElement(Jh.Provider,{value:t,children:this.props.component})):this.props.children;returnthis.context?f.createElement(jN,{error:t},n):n}};C2.contextType=x2;varvp=newWeakMap;functionjN({children:t,error:n}){let{basename:a}=f.useContext(qn);if(typeofn=="object"&&n&&"digest"inn&&typeofn.digest=="string"){leto=mN(n.digest);if(o){letc=vp.get(n);if(c)throwc;letl=h2(o.location,a),d=l.absoluteURL||l.to;if(iN(d))thrownewError("Invalid redirect location");if(p2&&!vp.get(n))if(l.isExternal||o.reloadDocument)window.location.href=d;else{constm=Promise.resolve().then(()=>window.__reactRout
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}functionX0(t,n){vara=Object.keys(t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(c){returnObject.getOwnPropertyDescriptor(t,c).enumerable})),a.push.apply(a,o)}returna}functionZ0(t){for(varn=1;n<arguments.length;n++){vara=arguments[n]!=null?arguments[n]:{};n%2?X0(Object(a),!0).forEach(function(o){JO(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):X0(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}returnt}functionnL(t,n){if(t==null)return{};vara,o,c=rL(t,n);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)a=l[o],n.indexOf(a)===-1&&{}.propertyIsEnumerable.call(t,a)&&(c[a]=t[a])}returnc}functionrL(t,n){if(t==null)return{};vara={};for(varoint)if({}.hasOwnProperty.call(t,o)){if(n.indexOf(o)!==-1)continue;a[o]=t[o]}returna}functionaL(t,n){returnQO(t)||eL(t,n)||iL(t,n)||tL()}functionsL(t,n){if(typeoft!="object"||!t)returnt;vara=t[Symbol.toPrimitive];if(a!==void0){varo=a.call(t,n);if(typeofo!="object")returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}functionoL(t){varn=sL(t,"string");returntypeofn=="symbol"?n:n+""}functioniL(t,n){if(t){if(typeoft=="string")returnW0(t,n);vara={}.toString.call(t).slice(8,-1);returna==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?W0(t,n):void0}}functionlL(t,n,a){returnnint?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t}functionQ0(t,n){vara=Object.keys(t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(c){returnObject.getOwnPropertyDescriptor(t,c).enumerable})),a.push.apply(a,o)}returna}functionJ0(t){for(varn=1;n<arguments.length;n++){vara=arguments[n]!=null?arguments[n]:{};n%2?Q0(Object(a),!0).forEach(function(o){lL(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Q0(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}returnt}functioncL(){for(vart=arguments.length,n=newArray(t),a=0;a<t;a++)n[a]=arguments[a];returnfunction(o){returnn.reduceRight(function(c,l){returnl(c)},o)}}functionAl(t){returnfunctionn(){for(vara=this,o=arguments.length,c=newArray(o),l=0;l<o;l++)c[l]=arguments[l];returnc.length>=t.length?t.apply(this,c):function(){for(vard=arguments.length,m=newArray(d),p=0;p<d;p++)m[p]=arguments[p];returnn.apply(a,[].concat(c,m))}}}functionhd(t){return{}.toString.call(t).includes("Object")}functionuL(t){return!Object.keys(t).length}functionQl(t){returntypeoft=="function"}functiondL(t,n){returnObject.prototype.hasOwnProperty.call(t,n)}functionfL(t,n){returnhd(n)||us("changeType"),Object.keys(n).some(function(a){return!dL(t,a)})&&us("changeField"),n}functionmL(t){Ql(t)||us("selectorType")}functionpL(t){Ql(t)||hd(t)||us("handlerType"),hd(t)&&Object.values(t).some(function(n){return!Ql(n)})&&us("handlersType")}functionhL(t){t||us("initialIsRequired"),hd(t)||us("initialType"),uL(t)&&us("initialContent")}functiongL(t,n){thrownewError(t[n]||t.default)}varxL={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},us=Al(gL)(xL),Gu={changes:fL,selector:mL,handler:pL,initial:hL};functionbL(t){varn=arguments.length>1&&a
987654321098765432`,className:"min-h-[120px] font-mono text-sm"})]}),s.jsx(mo,{result:a.owners}),s.jsx("div",{className:"mt-auto",children:s.jsx(ue,{type:"button",variant:"secondary",disabled:o||!t.ownerUserIds.trim(),onClick:c,children:o?"Checking with Discord…":"Verify owner IDs"})})]})}functionMz({onContinue:t}){returns.jsx("div",{className:"mx-auto flex w-full max-w-lg flex-1 flex-col justify-center py-8",children:s.jsxs("div",{className:"rounded-2xl border border-border bg-card px-6 py-10 text-center md:px-10",children:[s.jsx("div",{className:"mx-auto mb-6 flex size-16 items-center justify-center rounded-2xl bg-primary/10 text-primary",children:s.jsx(xe,{icon:jd,size:40})}),s.jsx("h2",{className:"text-2xl font-semibold tracking-tight",children:"Setup complete"}),s.jsxs("p",{className:"mx-auto mt-3 max-w-sm text-sm leading-relaxed text-muted-foreground",children:["Your configuration has been saved. Restart the server for changes to take effect — stop the running process, then start it again (for example"," ",s.jsx("code",{className:"rounded-md bg-muted px-1.5 py-0.5 font-mono text-xs",children:"npm start"}),")."]}),s.jsx(Ye,{className:"mt-6 text-left",children:s.jsx(qe,{children:"After restarting, sign in with Discord to open the dashboard."})}),s.jsx(ue,{type:"button",size:"lg",className:"mt-8 min-w-[220px]",onClick:t,children:"Continue to sign in"})]})})}functionRz({currentIndex:t,validating:n,saving:a,onBack:o,onNext:c,onFinish:l}){constd=t===ui.length-1;returns.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs(ue,{type:"button",variant:"ghost",disabled:t===0||a,onClick:o,children:[s.jsx(xe,{icon:T2,size:18,className:"mr-1"}),"Back"]}),s.jsx("div",{className:"flex flex-1 justify-end gap-2",children:d?s.jsx(ue,{type:"button",size:"lg",disabled:a||n,onClick:l,className:"min-w-[200px]",children:a?"Saving…":"Finish setup"}):s.jsxs(ue,{type:"button",size:"lg",disabled:n||a,onClick:c,children:["Continue",s.jsx(xe,{icon:lg,size:18,className:"ml-1"})]})})]})}functionAz({values:t,setValues:n,validation:a,validating:o,onValidate:c}){returns.jsxs("div",{className:"flex flex-1 flex-col gap-5",children:[s.jsxs("p",{className:"text-sm leading-relaxed text-muted-foreground",children:["An Emerald Services API key is optional, but required to use the one-click addon installer in the dashboard. You can get yours from the"," ",s.jsx("a",{href:"https://emeraldsrv.dev",target:"_blank",rel:"noreferrer",className:"font-medium text-primary hover:underline",children:"Emerald Services Marketplace"}),"."]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ae,{htmlFor:"emeraldApiKey",children:"Emerald API key (Optional)"}),s.jsx(_e,{id:"emeraldApiKey",type:"password",autoComplete:"off",value:t.emeraldApiKey,onChange:l=>n({...t,emeraldApiKey:l.target.value}),placeholder:"em_...",className:"h-11 font-mono text-sm"})]}),s.jsx(mo,{result:a.emeraldApi}),s.jsx("div",{className:"mt-auto",children:s.jsx(ue,{type:"button",variant:"secondary",disabled:o,onClick:c,children:o?"Checking…":t.emeraldApiKey?"Verify key":"Skip step"})})]})}function_z({values:t,setValues:n,validation:a,validating:o,onValidate:c}){constl=a.database,d=t.dbDriver==="mysql";returns.jsxs("div",{className:"flex flex-1 flex-col gap-6",children:[s.jsxs("p",{className:"text-sm leading-relaxed text-muted-foreground",children:["Choose your database storage engine. Select ",s.jsx("strong",{children:"SQLite"})," for instant zero-config local storage, or ",s.jsx("strong",{children:"MySQL / MariaDB"})," for external host databases."]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsxs("div",{onClick:()=>n(m=>({...m,dbDriver:"sqlite"})),className:pe("cursor-pointer rounded-xl border p-4 transition-all hover:border-primary",t.dbDriver==="sqlite"?"border-primary bg-primary/5 ring-2 ring-primary/20":"border-border bg-card"),children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"font-semibold text-foreground",children:"SQLite"}),s.jsx("span",{className:"rounded