@cwcss/crosswind 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var a=import.meta.require;var q1=new Map,f=new Map,H5={col:"col",row:"row",jc:"justify",ji:"justify-items",js:"justify-self",ai:"items",ac:"content",as:"self",wrap:"wrap",nowrap:"nowrap",c:"center",s:"start",e:"end",sb:"between",sa:"around",se:"evenly",st:"stretch",thin:"thin",extralight:"extralight",light:"light",normal:"normal",medium:"medium",semibold:"semibold",bold:"bold",extrabold:"extrabold",black:"black",t:"top",r:"right",b:"bottom",l:"left"},j5=/[%#()]/,W5=/^\d+(\.\d+)?(px|rem|em|vh|vw|dvh|dvw|svh|svw|lvh|lvw|ch|ex|lh|cap|ic|rlh|vi|vb|vmin|vmax|cqw|cqh|cqi|cqb|cqmin|cqmax|cm|mm|in|pt|pc|Q)$/;function b($){return j5.test($)||W5.test($)}function z0($){if(!$.includes("_"))return $;let J="",Q=0;while(Q<$.length){let Z=$[Q];if(Z==="\\"&&$[Q+1]==="_"){J+="_",Q+=2;continue}if(Z==="u"&&$.slice(Q,Q+4)==="url("){let q=Q,Y=1;Q+=4;while(Q<$.length&&Y>0){if($[Q]==="(")Y++;else if($[Q]===")")Y--;Q++}J+=$.slice(q,Q);continue}J+=Z==="_"?" ":Z,Q++}return J}function Y1($,J){if(J.length!==2)return null;let[Q,Z]=J;if(Q!=="min"&&Q!=="max")return null;return[b(Z)?`${Q}-${$}-[${Z}]`:`${Q}-${$}-${Z}`]}var U5={flex:{expand:($,J)=>{let Q=J[$]||$;if(["col","row","col-reverse","row-reverse","wrap","nowrap","wrap-reverse"].includes(Q))return`flex-${Q}`;let Z=$.match(/^(jc|ji|js|ai|ac|as)-(.+)$/);if(Z){let q=J[Z[1]]||Z[1],Y=J[Z[2]]||Z[2];return`${q}-${Y}`}if(/^\d+$/.test(Q)||["grow","shrink","auto","initial","none"].includes(Q))return`flex-${Q}`;return null}},grid:{expand:($,J)=>{let Q=J[$]||$;if($.startsWith("cols-")||$.startsWith("rows-"))return`grid-${$}`;if($.startsWith("flow-"))return`grid-${$}`;if($.startsWith("gap-"))return $;return null}},text:{expand:($,J)=>{let Q=J[$]||$;if(b(Q))return`text-[${Q}]`;if(/^\d{3}$/.test(Q))return{"100":"font-thin","200":"font-extralight","300":"font-light","400":"font-normal","500":"font-medium","600":"font-semibold","700":"font-bold","800":"font-extrabold","900":"font-black"}[Q]||`font-[${Q}]`;if(/^[a-z-]+$/i.test(Q)&&!["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(Q)){if(["white","black","red","blue","green","yellow","purple","pink","gray","slate","zinc","neutral","stone","orange","amber","lime","emerald","teal","cyan","sky","indigo","violet","fuchsia","rose","inherit","current","transparent"].includes(Q.toLowerCase()))return`text-${Q}`;return`font-[${Q}]`}return`text-${Q}`}},font:{expand:($,J)=>{let Q=J[$]||$,Z=["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],q=["sans","serif","mono"];if(Z.includes(Q)||q.includes(Q))return`font-${Q}`;if(/^\d{3}$/.test(Q))return{"100":"font-thin","200":"font-extralight","300":"font-light","400":"font-normal","500":"font-medium","600":"font-semibold","700":"font-bold","800":"font-extrabold","900":"font-black"}[Q]||`font-[${Q}]`;return`font-[${Q}]`}},bg:{expand:($,J)=>{return`bg-${J[$]||$}`}},w:{expand:($,J)=>{let Q=J[$]||$;if(b(Q))return`w-[${Q}]`;return`w-${Q}`},multiValue:($)=>Y1("w",$)},h:{expand:($,J)=>{let Q=J[$]||$;if(b(Q))return`h-[${Q}]`;return`h-${Q}`},multiValue:($)=>Y1("h",$)},p:{expand:($)=>`p-${$}`},px:{expand:($)=>`px-${$}`},py:{expand:($)=>`py-${$}`},pt:{expand:($)=>`pt-${$}`},pr:{expand:($)=>`pr-${$}`},pb:{expand:($)=>`pb-${$}`},pl:{expand:($)=>`pl-${$}`},m:{expand:($)=>`m-${$}`},mx:{expand:($)=>`mx-${$}`},my:{expand:($)=>`my-${$}`},mt:{expand:($)=>`mt-${$}`},mr:{expand:($)=>`mr-${$}`},mb:{expand:($)=>`mb-${$}`},ml:{expand:($)=>`ml-${$}`},scroll:{expand:($)=>{if(["x","y"].includes($))return null;if(["auto","hidden","scroll","visible"].includes($))return`overflow-${$}`;return null},multiValue:($)=>{if($.length===2){let[J,Q]=$;if(["x","y"].includes(J)&&["auto","hidden","scroll","visible"].includes(Q))return[`overflow-${J}-${Q}`]}return null}},overflow:{expand:($)=>`overflow-${$}`,multiValue:($)=>{if($.length===2){let[J,Q]=$;if(["x","y"].includes(J))return[`overflow-${J}-${Q}`]}return null}},border:{expand:($)=>`border-${$}`},rounded:{expand:($)=>`rounded-${$}`},shadow:{expand:($)=>`shadow-${$}`},gap:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-"))return`gap-${$}`;return`gap-${$}`}},space:{expand:($)=>`space-${$}`},opacity:{expand:($)=>`opacity-${$}`},z:{expand:($)=>`z-${$}`},inset:{expand:($,J)=>{let Q=J[$]||$;if(Q.startsWith("x-")||Q.startsWith("y-"))return`inset-${Q}`;if(b(Q))return`inset-[${Q}]`;return`inset-${Q}`}},top:{expand:($)=>b($)?`top-[${$}]`:`top-${$}`},right:{expand:($)=>b($)?`right-[${$}]`:`right-${$}`},bottom:{expand:($)=>b($)?`bottom-[${$}]`:`bottom-${$}`},left:{expand:($)=>b($)?`left-[${$}]`:`left-${$}`},duration:{expand:($)=>`duration-${$}`},delay:{expand:($)=>`delay-${$}`},ease:{expand:($)=>`ease-${$}`},transition:{expand:($)=>{if(["all","none","colors","opacity","shadow","transform"].includes($))return`transition-${$}`;if(/^\d+$/.test($))return`duration-${$}`;if(["linear","in","out","in-out","ease-linear","ease-in","ease-out","ease-in-out"].includes($))return $.startsWith("ease-")?$:`ease-${$}`;return`transition-${$}`}},translate:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-")||$.startsWith("z-"))return`translate-${$}`;return`translate-${$}`}},rotate:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-")||$.startsWith("z-"))return`rotate-${$}`;return`rotate-${$}`}},scale:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-")||$.startsWith("z-"))return`scale-${$}`;return`scale-${$}`}},skew:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-"))return`skew-${$}`;return`skew-${$}`}},origin:{expand:($)=>`origin-${$}`},cursor:{expand:($)=>`cursor-${$}`},select:{expand:($)=>`select-${$}`},resize:{expand:($)=>`resize-${$}`},appearance:{expand:($)=>`appearance-${$}`},pointer:{expand:($)=>`pointer-events-${$}`},outline:{expand:($)=>`outline-${$}`},ring:{expand:($)=>`ring-${$}`},blur:{expand:($)=>`blur-${$}`},brightness:{expand:($)=>`brightness-${$}`},contrast:{expand:($)=>`contrast-${$}`},grayscale:{expand:($)=>`grayscale-${$}`},saturate:{expand:($)=>`saturate-${$}`},sepia:{expand:($)=>`sepia-${$}`},backdrop:{expand:($)=>`backdrop-${$}`},aspect:{expand:($)=>`aspect-${$}`},columns:{expand:($)=>`columns-${$}`},break:{expand:($)=>`break-${$}`},object:{expand:($)=>`object-${$}`},overscroll:{expand:($)=>`overscroll-${$}`},place:{expand:($)=>`place-${$}`},items:{expand:($)=>`items-${$}`},justify:{expand:($)=>`justify-${$}`},content:{expand:($)=>`content-${$}`},self:{expand:($)=>`self-${$}`},order:{expand:($)=>`order-${$}`},col:{expand:($)=>`col-${$}`},row:{expand:($)=>`row-${$}`},tracking:{expand:($)=>`tracking-${$}`},leading:{expand:($)=>`leading-${$}`},list:{expand:($)=>`list-${$}`},decoration:{expand:($)=>`decoration-${$}`},underline:{expand:($)=>`underline-${$}`},accent:{expand:($)=>`accent-${$}`},caret:{expand:($)=>`caret-${$}`},"scroll-m":{expand:($)=>`scroll-m-${$}`},"scroll-p":{expand:($)=>`scroll-p-${$}`},snap:{expand:($)=>`snap-${$}`},touch:{expand:($)=>`touch-${$}`},will:{expand:($)=>`will-change-${$}`},fill:{expand:($)=>`fill-${$}`},stroke:{expand:($)=>`stroke-${$}`},sr:{expand:($)=>`sr-${$}`},invert:{expand:($)=>`invert-${$}`},"hue-rotate":{expand:($)=>b($)?`hue-rotate-[${$}]`:`hue-rotate-${$}`},"drop-shadow":{expand:($)=>`drop-shadow-${$}`},"backdrop-invert":{expand:($)=>`backdrop-invert-${$}`},"backdrop-hue-rotate":{expand:($)=>b($)?`backdrop-hue-rotate-[${$}]`:`backdrop-hue-rotate-${$}`},animate:{expand:($)=>`animate-${$}`},"forced-colors":{expand:($)=>`forced-colors-${$}`}},e=new Set(["sm","md","lg","xl","2xl","hover","focus","active","visited","disabled","enabled","focus-within","focus-visible","group-hover","group-focus","peer-hover","peer-focus","dark","first","last","odd","even","only","first-of-type","last-of-type","checked","indeterminate","default","required","valid","invalid","in-range","out-of-range","placeholder-shown","autofill","read-only","empty","before","after","selection","marker","file","print","motion-safe","motion-reduce","contrast-more","contrast-less","rtl","ltr","portrait","landscape","@sm","@md","@lg","@xl","@2xl"]);function G5($,J){let Q=`${$}:${J?.colonSyntax}:${JSON.stringify(J?.aliases||{})}`,Z=f.get(Q);if(Z)return Z;let q={...H5,...J?.aliases};if(J?.colonSyntax===!0){let K=$.match(/^([a-z][a-z0-9-]*):([^[\]:]+)$/i);if(K){let[,L,T]=K;if(!e.has(L)){if(b(T)){let w=[`${L}-[${T}]`];return f.set(Q,w),w}let F=[`${L}-${T}`];return f.set(Q,F),F}}}let Y="",X=$,j=!1;if(X.startsWith("-"))j=!0,X=X.slice(1);let z=X.match(/^((?:[a-z@][a-z0-9-]*:)+)(.+)$/i);if(z){if(z[1].slice(0,-1).split(":").every((T)=>e.has(T)))Y=z[1],X=z[2]}let H=X.match(/^([a-z][a-z0-9-]*)\[([^\]]*)\]$/i);if(!H||X.includes("-[")){let K=[$];return f.set(Q,K),K}let[,W,U]=H,G=U.split(/\s+/).filter(Boolean);if(G.length===0)return f.set(Q,[]),[];let B=U5[W.toLowerCase()];if(B?.multiValue){let K=B.multiValue(G,q);if(K){let L=K.map((T)=>{return`${Y}${j?"-":""}${T}`});return f.set(Q,L),L}}if(!B){let K=[];for(let L of G){let T=L.match(/^([a-z@][a-z0-9-]*):(.+)$/i),F="",w=L;if(T&&e.has(T[1]))F=`${T[1]}:`,w=T[2];let E="";if(w.startsWith("-"))E="-",w=w.slice(1);let P="";if(w.endsWith("!"))P="!",w=w.slice(0,-1);let k=j?"-":"";if(b(w))K.push(`${Y}${F}${P}${k}${E}${W}-[${w}]`);else K.push(`${Y}${F}${P}${k}${E}${W}-${w}`)}return f.set(Q,K),K}let _=[];for(let K of G){let L=K.match(/^([a-z@][a-z0-9-]*):(.+)$/i),T="",F=K;if(L&&e.has(L[1]))T=`${L[1]}:`,F=L[2];let w="";if(F.startsWith("-"))w="-",F=F.slice(1);let E="";if(F.endsWith("!"))E="!",F=F.slice(0,-1);let P=B.expand(F,q);if(P){let k=j?"-":"";_.push(`${Y}${T}${E}${k}${w}${P}`)}}return f.set(Q,_),_}function B5($,J){let Q=new Set;if(!J?.enabled)return Q;let Z=J.prefix??"hw-",q=["class","className","style","id","name","type","value","href","src","alt","title","role","for","action","method","target","rel","placeholder","disabled","checked","selected","readonly","required","maxlength","minlength","pattern","autocomplete","autofocus","tabindex","contenteditable","draggable","spellcheck","lang","dir","hidden","slot","part","is","key","ref"],Y=J.ignoreAttributes||q,X=(H)=>{let W=H.includes(":")?H.split(":").pop():H;for(let U of Y)if(U.endsWith("*")){if(W.startsWith(U.slice(0,-1)))return!0}else if(W===U)return!0;if(W.startsWith("on"))return!0;if(W.startsWith("data-")||W.startsWith("aria-"))return!0;return!1},j=/<([a-z][a-z0-9-]*)\s([^>]*)>/gi,z;while((z=j.exec($))!==null){let H=z[2],W=/([a-z][a-z0-9-:]*)(?:=["']([^"']*)["'])?(?=\s|$|\/?>)/gi,U;while((U=W.exec(H))!==null){let G=U[1],B=U[2];if(Z){if(!G.startsWith(Z))continue;G=G.slice(Z.length)}if(X(G))continue;let _="",K=G,L=G.match(/^((?:[a-z@][a-z0-9-]*:)+)([a-z][a-z0-9-]*)$/i);if(L){if(L[1].slice(0,-1).split(":").every((w)=>e.has(w)))_=L[1],K=L[2]}if(B!==void 0){let T=B.split(/\s+/).filter(Boolean);for(let F of T){let w=`${_}${K}-${F}`;if(z1(w.replace(/^(?:[a-z@][a-z0-9-]*:)+/gi,"")))Q.add(w)}}else{let T=`${_}${K}`;if(z1(K))Q.add(T)}}}return Q}function z1($){if(!$||$.length===0)return!1;return/^[a-z][a-z0-9-/]*(?:-\[[^\]]+\])?$/i.test($)}function j1($){let J=q1.get($);if(J)return J;let Q=K5($);return q1.set($,Q),Q}function K5($){let J=!1,Q=$;if($.startsWith("!"))J=!0,Q=$.slice(1);else if($.endsWith("!")&&$.length>1)J=!0,Q=$.slice(0,-1);let Z=Q.match(/^\[([a-z-]+):(.+)\]$/);if(Z)return{raw:$,variants:[],utility:Z[1],value:z0(Z[2]),important:J,arbitrary:!0};let q=Q.match(/^((?:[a-z-]+:)*)(-?[a-z-]+?)-\[([^\]]+)\]\/\[([^\]]+)\]$/);if(q){let[,F,w,E,P]=q,k=F?F.split(":").filter(Boolean):[],t=w.startsWith("-"),s=t?w.slice(1):w,r=z0(E);if(t)r=r.startsWith("-")?r:`-${r}`;return{raw:$,variants:k,utility:s,value:`${r}/${P}`,important:J,arbitrary:!0}}let Y=Q.match(/^((?:[a-z-]+:)*)(-?[a-z-]+?)-\[(.+)\]$/);if(Y){let F=Y[1],w=F?F.split(":").filter(Boolean):[],E=Y[2],P=E.startsWith("-");if(P)E=E.slice(1);let k=z0(Y[3]),t,s=k.match(/^(color|length|url|number|percentage|position|line-width|absolute-size|relative-size|image|angle|time|flex|string|family-name):(.*)/i);if(s)t=s[1].toLowerCase(),k=s[2];if(P)k=k.startsWith("-")?k:`-${k}`;return{raw:$,variants:w,utility:E,value:k,important:J,arbitrary:!0,typeHint:t}}let X=[],j="",z=0;for(let F=0;F<Q.length;F++){let w=Q[F];if(w==="[")z++;else if(w==="]")z--;if(w===":"&&z===0)X.push(j),j="";else j+=w}X.push(j);let H=X[X.length-1],W=X.slice(0,-1);if(H.startsWith("!")&&H.length>1)J=!0,H=H.slice(1);else if(H.endsWith("!")&&H.length>1)J=!0,H=H.slice(0,-1);if(W.length>0)Q=`${W.join(":")}:${H}`;else Q=H;if(["inline-block","inline-flex","inline-grid","flex-row","flex-row-reverse","flex-col","flex-col-reverse","flex-wrap","flex-wrap-reverse","flex-nowrap","flex-1","flex-auto","flex-initial","flex-none","flex-grow","flex-shrink"].includes(H))return{raw:$,variants:W,utility:H,value:void 0,important:J,arbitrary:!1};let G=H.match(/^([a-z-]+?)-\[(.+?)\]$/);if(G){let F=z0(G[2]),w,E=F.match(/^(color|length|url|number|percentage|position|line-width|absolute-size|relative-size|image|angle|time|flex|string|family-name):(.*)/i);if(E)w=E[1].toLowerCase(),F=E[2];return{raw:$,variants:W,utility:G[1],value:F,important:J,arbitrary:!0,typeHint:w}}let B=["inset-x","inset-y","border-t","border-r","border-b","border-l","border-x","border-y","border-s","border-e","grid-cols","grid-rows","grid-flow","auto-cols","auto-rows","col-span","row-span","col-start","col-end","row-start","row-end","translate-x","translate-y","translate-z","scale-x","scale-y","scale-z","rotate-x","rotate-y","rotate-z","skew-x","skew-y","scroll-m","scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml","scroll-p","scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl","gap-x","gap-y","overflow-x","overflow-y","min-w","max-w","min-h","max-h","space-x","space-y","ring-offset","underline-offset","outline-offset","backdrop-blur","backdrop-brightness","backdrop-contrast","backdrop-grayscale","backdrop-invert","backdrop-saturate","backdrop-sepia","hue-rotate","drop-shadow","mask-clip","flex-grow","flex-shrink","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","perspective-origin","justify-self","form-input","form-textarea","form-select","form-multiselect","form-checkbox","form-radio","mix-blend","bg-blend","line-clamp","border-spacing","border-spacing-x","border-spacing-y","rounded-s","rounded-e","rounded-ss","rounded-se","rounded-es","rounded-ee","rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-bl","rounded-br","border-opacity","ring-opacity","stroke-dasharray","stroke-dashoffset","animate-iteration","animate-duration","animate-delay","text-emphasis","text-emphasis-color","word-spacing","column-gap","column-rule"];if(H==="divide-x"||H==="divide-y")return{raw:$,variants:W,utility:H,value:void 0,important:J,arbitrary:!1};let _=H.match(/^(divide-[xy])-(.+)$/);if(_)return{raw:$,variants:W,utility:_[1],value:_[2],important:J,arbitrary:!1};for(let F of B)if(H.startsWith(`${F}-`))return{raw:$,variants:W,utility:F,value:H.slice(F.length+1),important:J,arbitrary:!1};if(H.startsWith("-")){let F=H.slice(1);for(let E of B)if(F.startsWith(`${E}-`))return{raw:$,variants:W,utility:E,value:`-${F.slice(E.length+1)}`,important:J,arbitrary:!1};let w=F.match(/^([a-z]+(?:-[a-z]+)*?)-(.+)$/);if(w)return{raw:$,variants:W,utility:w[1],value:`-${w[2]}`,important:J,arbitrary:!1};return{raw:$,variants:W,utility:F,value:void 0,important:J,arbitrary:!1}}let K=H.match(/^([a-z]+(?:-[a-z]+)*?)-(.+?)\/(\d+|\[\d*\.?\d+\])$/);if(K&&["bg","text","border","ring","placeholder","divide","accent","caret","fill","stroke","outline","decoration","shadow","ring-offset","from","via","to"].includes(K[1]))return{raw:$,variants:W,utility:K[1],value:`${K[2]}/${K[3]}`,important:J,arbitrary:!1};let L=H.match(/^([a-z]+(?:-[a-z]+)*?)-(\d+)\/(\d+)$/);if(L)return{raw:$,variants:W,utility:L[1],value:`${L[2]}/${L[3]}`,important:J,arbitrary:!1};let T=H.match(/^([a-z]+(?:-[a-z]+)*?)-(.+)$/);if(T)return{raw:$,variants:W,utility:T[1],value:T[2],important:J,arbitrary:!1};return{raw:$,variants:W,utility:H,value:void 0,important:J,arbitrary:!1}}function F5($,J){if(!$||$.length===0)return!1;if(/^\[[a-z-]+:[^\]]+\]$/i.test($))return!0;if(J?.enabled&&/^[a-z]+\[[^\]]+\]$/i.test($))return!0;if(J?.colonSyntax&&/^[a-z]+:[^[\]:]+$/i.test($))return!0;return/^!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?(?::!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?)*$/i.test($)}function X1($){let J=[],Q="",Z=0;for(let q of $)if(q==="[")Z++,Q+=q;else if(q==="]")Z--,Q+=q;else if(/\s/.test(q)&&Z===0){if(Q)J.push(Q),Q=""}else Q+=q;if(Q)J.push(Q);return J}function X0($,J){let Q=new Set,Z=[/class(?:Name)?=["']([^"']+)["']/g,/class(?:Name)?=\{["']([^"']+)["']\}/g,/class(?:Name)?=\{`([^`]+)`\}/g];for(let q of Z){let Y;while((Y=q.exec($))!==null){let X=Y[1],j=X.match(/["']([^"']+)["']/g);if(j)for(let W of j){let U=W.replace(/["']/g,""),G=X1(U);for(let B of G)H1(Q,B,J)}let z=X.replace(/["'`]/g," ").replace(/\$\{[^}]+\}/g," "),H=X1(z).filter((W)=>F5(W,J?.bracketSyntax));for(let W of H)H1(Q,W,J)}}if(J?.attributify?.enabled){let q=B5($,J.attributify);for(let Y of q)Q.add(Y)}return Q}function H1($,J,Q){if(Q?.bracketSyntax?.enabled){let Z=/^[a-z]+\[[^\]]+\]$/i.test(J),q=Q.bracketSyntax.colonSyntax&&/^[a-z]+:[^[\]]+$/i.test(J);if(Z||q){let Y=G5(J,Q.bracketSyntax);for(let X of Y)$.add(X);return}}$.add(J)}var w5=($,J)=>{let Q={"0":"0",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",screen:"100vw"};if($.utility==="min-w"&&$.value)return{"min-width":J.theme.spacing[$.value]||Q[$.value]||$.value};if($.utility==="max-w"&&$.value)return{"max-width":J.theme.spacing[$.value]||Q[$.value]||$.value};if($.utility==="min-h"&&$.value){let Z={...Q,screen:"100vh"};return{"min-height":J.theme.spacing[$.value]||Z[$.value]||$.value}}if($.utility==="max-h"&&$.value){let Z={...Q,screen:"100vh"};return{"max-height":J.theme.spacing[$.value]||Z[$.value]||$.value}}},D5=($,J)=>{if($.utility==="ring"){if($.value==="inset")return{"--hw-ring-inset":"inset"};if($.value){let q=R($.value,J);if(q)return{"--hw-ring-color":q}}let Q={0:"0",1:"1px",2:"2px",4:"4px",8:"8px",DEFAULT:"3px"};return{"--hw-ring-offset-shadow":"var(--hw-ring-inset) 0 0 0 var(--hw-ring-offset-width) var(--hw-ring-offset-color)","--hw-ring-shadow":`var(--hw-ring-inset) 0 0 0 calc(${$.value?Q[$.value]||$.value:Q.DEFAULT} + var(--hw-ring-offset-width)) var(--hw-ring-color)`,"box-shadow":"var(--hw-ring-offset-shadow), var(--hw-ring-shadow), var(--hw-shadow, 0 0 #0000)"}}if($.utility==="ring-offset"&&$.value){let Q={0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"};if(Q[$.value])return{"--hw-ring-offset-width":Q[$.value]};let Z=R($.value,J);if(Z)return{"--hw-ring-offset-color":Z}}if($.utility==="ring-opacity"&&$.value)return{"--hw-ring-opacity":{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[$.value]||$.value}},L5=($)=>{if($.utility==="border-opacity"&&$.value)return{"--hw-border-opacity":{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[$.value]||$.value}},I5=($,J)=>{if($.utility==="space-x"&&$.value){if($.value==="reverse")return{properties:{"--hw-space-x-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q;if($.value.startsWith("-")){let Z=$.value.slice(1),q=J.theme.spacing[Z];Q=q?`-${q}`:$.value}else Q=J.theme.spacing[$.value]||$.value;return{properties:{"--hw-space-x-reverse":"0","margin-right":`calc(${Q} * var(--hw-space-x-reverse))`,"margin-left":`calc(${Q} * calc(1 - var(--hw-space-x-reverse)))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="space-y"&&$.value){if($.value==="reverse")return{properties:{"--hw-space-y-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q;if($.value.startsWith("-")){let Z=$.value.slice(1),q=J.theme.spacing[Z];Q=q?`-${q}`:$.value}else Q=J.theme.spacing[$.value]||$.value;return{properties:{"--hw-space-y-reverse":"0","margin-top":`calc(${Q} * calc(1 - var(--hw-space-y-reverse)))`,"margin-bottom":`calc(${Q} * var(--hw-space-y-reverse))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}},_5=($)=>{if($.utility==="border"&&$.value){let J={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};if(J[$.value])return{"border-style":J[$.value]}}},T5=($,J)=>{if($.utility==="divide"&&$.value){let Q={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",none:"none"};if(Q[$.value])return{properties:{"border-style":Q[$.value]},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="divide-x"){if($.value==="reverse")return{properties:{"--hw-divide-x-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q={0:"0",2:"2px",4:"4px",8:"8px",DEFAULT:"1px"},Z=$.value?Q[$.value]||$.value:Q.DEFAULT;return{properties:{"--hw-divide-x-reverse":"0","border-right-width":`calc(${Z} * var(--hw-divide-x-reverse))`,"border-left-width":`calc(${Z} * calc(1 - var(--hw-divide-x-reverse)))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="divide-y"){if($.value==="reverse")return{properties:{"--hw-divide-y-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q={0:"0",2:"2px",4:"4px",8:"8px",DEFAULT:"1px"},Z=$.value?Q[$.value]||$.value:Q.DEFAULT;return{properties:{"--hw-divide-y-reverse":"0","border-top-width":`calc(${Z} * calc(1 - var(--hw-divide-y-reverse)))`,"border-bottom-width":`calc(${Z} * var(--hw-divide-y-reverse))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="divide"&&$.value){let Q=$.value.indexOf("/"),Z=$.value,q;if(Q!==-1){Z=$.value.slice(0,Q);let H=$.value.slice(Q+1);if(H.charCodeAt(0)===91&&H.charCodeAt(H.length-1)===93){if(q=Number.parseFloat(H.slice(1,-1)),Number.isNaN(q)||q<0||q>1)return}else{let W=Number.parseInt(H,10);if(Number.isNaN(W)||W<0||W>100)return;q=W/100}}let Y=(H)=>{if(q!==void 0){if(H.charCodeAt(0)===35){let W=H.slice(1);if(W.length===3)W=W[0]+W[0]+W[1]+W[1]+W[2]+W[2];let U=Number.parseInt(W.slice(0,2),16),G=Number.parseInt(W.slice(2,4),16),B=Number.parseInt(W.slice(4,6),16);H=`rgb(${U} ${G} ${B} / ${q})`}else if(H.startsWith("oklch("))H=H.replace(")",` / ${q})`)}return{properties:{"border-color":H},childSelector:"> :not([hidden]) ~ :not([hidden])"}},X={current:"currentColor",transparent:"transparent",inherit:"inherit"};if(X[Z])return Y(X[Z]);let j=J.theme.colors[Z];if(typeof j==="string")return Y(j);let z=Z.split("-");if(z.length>=2){let H=z[z.length-1],W=z.slice(0,-1).join("-"),U=J.theme.colors[W];if(typeof U==="object"&&U[H])return Y(U[H])}}},E5=($,J)=>{let Q=(Z)=>{let q=null,Y=Z,X=Z.indexOf("/");if(X!==-1){Y=Z.slice(0,X);let W=Z.slice(X+1);if(W.startsWith("[")&&W.endsWith("]"))q=W.slice(1,-1);else{let U=Number.parseInt(W,10);if(!Number.isNaN(U))q=(U/100).toString()}}let j=(W)=>{if(!q)return W;let U=W.match(/^(oklch|rgb|hsl|oklab|lab|lch)\(([^)]+)\)$/i);if(U){let G=U[1],B=U[2].split("/")[0].trim();return`${G}(${B} / ${q})`}if(/^#[0-9a-f]{3,8}$/i.test(W)){let G=W.replace("#",""),B=(T)=>Number.parseInt(T.length===1?T+T:T,16),_=B(G.slice(0,G.length===3?1:2)),K=B(G.slice(G.length===3?1:2,G.length===3?2:4)),L=B(G.slice(G.length===3?2:4,G.length===3?3:6));return`rgb(${_} ${K} ${L} / ${q})`}return`color-mix(in srgb, ${W} ${Math.round(Number.parseFloat(q)*100)}%, transparent)`};if(Y.startsWith("[")&&Y.endsWith("]"))Y=Y.slice(1,-1);let z=J.theme.colors[Y];if(typeof z==="string")return j(z);let H=Y.split("-");if(H.length>=2){let W=H.slice(0,-1).join("-"),U=H[H.length-1],G=J.theme.colors[W];if(typeof G==="object"&&G[U])return j(G[U])}if(Y.startsWith("#"))return j(Y);return j(Y)};if($.utility==="from"&&$.value)return{"--hw-gradient-from":Q($.value),"--hw-gradient-to":"rgb(255 255 255 / 0)","--hw-gradient-stops":"var(--hw-gradient-from), var(--hw-gradient-to)"};if($.utility==="via"&&$.value)return{"--hw-gradient-to":"rgb(255 255 255 / 0)","--hw-gradient-stops":`var(--hw-gradient-from), ${Q($.value)}, var(--hw-gradient-to)`};if($.utility==="to"&&$.value)return{"--hw-gradient-to":Q($.value),"--hw-gradient-stops":"var(--hw-gradient-from), var(--hw-gradient-to)"}},A5=($)=>{if($.utility==="order"&&$.value)return{order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"}[$.value]||$.value}},O5=($,J)=>{if($.utility==="basis"&&$.value){if($.value.includes("/")){let[Z,q]=$.value.split("/").map(Number);return{"flex-basis":`${Z/q*100}%`}}return{"flex-basis":{auto:"auto",full:"100%",0:"0"}[$.value]||J.theme.spacing[$.value]||$.value}}},M5=($)=>{if($.utility==="justify-self"){let J={auto:"auto",start:"start",end:"end",center:"center",stretch:"stretch"};return $.value?{"justify-self":J[$.value]||$.value}:void 0}},k5=($)=>{if($.utility==="self"){let J={auto:"auto",start:"flex-start",end:"flex-end",center:"center",stretch:"stretch",baseline:"baseline"};return $.value?{"align-self":J[$.value]||$.value}:void 0}},b5=($,J)=>{if($.utility==="container"){if(!$.value)return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":J.theme.screens.xl||"1280px"};let Q={sm:J.theme.screens.sm||"640px",md:J.theme.screens.md||"768px",lg:J.theme.screens.lg||"1024px",xl:J.theme.screens.xl||"1280px","2xl":J.theme.screens["2xl"]||"1536px",full:"100%",prose:"65ch","3xl":"1920px"};if(Q[$.value])return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":Q[$.value]};if($.arbitrary)return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":$.value}}},x5=($)=>{let J=$.raw.replace(/^!/,"");if($.arbitrary&&$.utility&&$.value&&J.startsWith("["))return{[$.utility]:$.value}},W1=[w5,D5,L5,_5,I5,T5,E5,A5,O5,M5,k5,b5,x5];var M0=null,U1=null;function S5($){let J=new Map;for(let[Q,Z]of Object.entries($))if(typeof Z==="string")J.set(Q,Z);else if(typeof Z==="object"&&Z!==null){for(let[q,Y]of Object.entries(Z))if(typeof Y==="string")J.set(`${Q}-${q}`,Y)}return J}function R5($,J){if($.charCodeAt(0)===35){let Q=$.slice(1);if(Q.length===3)Q=Q[0]+Q[0]+Q[1]+Q[1]+Q[2]+Q[2];let Z=Number.parseInt(Q.slice(0,2),16),q=Number.parseInt(Q.slice(2,4),16),Y=Number.parseInt(Q.slice(4,6),16);return`rgb(${Z} ${q} ${Y} / ${J})`}return $}function V5($){return $.replace(/rgba?\([^)]+\)/g,"var(--hw-shadow-color)")}var N5=($)=>{if($.utility==="bg"&&$.value){let J={fixed:"fixed",local:"local",scroll:"scroll"};return J[$.value]?{"background-attachment":J[$.value]}:void 0}return},P5=($)=>{if($.utility==="bg"&&$.value&&$.value.startsWith("clip-")){let J=$.value.replace("clip-",""),Q={border:"border-box",padding:"padding-box",content:"content-box",text:"text"};return Q[J]?{"background-clip":Q[J]}:void 0}return},C5=($)=>{if($.utility==="bg"&&$.value){let J={"gradient-to-t":"linear-gradient(to top, var(--hw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--hw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--hw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--hw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--hw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--hw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--hw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--hw-gradient-stops))"};if(J[$.value])return{"background-image":J[$.value]}}},y5=($)=>{let J={"bg-origin-border":"border-box","bg-origin-padding":"padding-box","bg-origin-content":"content-box"};return J[$.raw]?{"background-origin":J[$.raw]}:void 0},h5=($)=>{let J={"bg-bottom":"bottom","bg-center":"center","bg-left":"left","bg-left-bottom":"left bottom","bg-left-top":"left top","bg-right":"right","bg-right-bottom":"right bottom","bg-right-top":"right top","bg-top":"top"};return J[$.raw]?{"background-position":J[$.raw]}:void 0},v5=($)=>{let J={"bg-repeat":"repeat","bg-no-repeat":"no-repeat","bg-repeat-x":"repeat-x","bg-repeat-y":"repeat-y","bg-repeat-round":"round","bg-repeat-space":"space"};return J[$.raw]?{"background-repeat":J[$.raw]}:void 0},f5=($)=>{let J={"bg-auto":"auto","bg-cover":"cover","bg-contain":"contain"};return J[$.raw]?{"background-size":J[$.raw]}:void 0},m5=($)=>{if($.utility==="border"&&$.value){let J={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};return J[$.value]?{"border-style":J[$.value]}:void 0}return},g5=($,J)=>{if($.utility==="outline-offset"&&$.value)return{"outline-offset":{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"}[$.value]||$.value};if($.utility==="outline"&&$.value){let Q={none:"none",solid:"solid",dashed:"dashed",dotted:"dotted",double:"double"};if(Q[$.value])return{"outline-style":Q[$.value]}}if($.utility==="outline"){if(!$.value)return{"outline-width":"1px"};let Q=R($.value,J);if(Q)return{"outline-color":Q};let Z={0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"};if(Z[$.value])return{"outline-width":Z[$.value]};return{"outline-width":$.value}}},u5=($,J)=>{if($.utility==="shadow"){let Q=$.value?J.theme.boxShadow[$.value]:J.theme.boxShadow.DEFAULT;if(!Q)return;if(Q==="none")return{"--hw-shadow":"0 0 #0000","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"};let Z=V5(Q);return{"--hw-shadow":Q,"--hw-shadow-colored":Z,"box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"}}},c5=($,J)=>{if($.utility!=="shadow"||!$.value)return;if(J.theme.boxShadow[$.value])return;if(M0===null||U1!==J.theme.colors)M0=S5(J.theme.colors),U1=J.theme.colors;let Q=$.value,Z=Q.indexOf("/"),q,Y;if(Z!==-1){q=Q.slice(0,Z);let z=Q.slice(Z+1);if(z.charCodeAt(0)===91&&z.charCodeAt(z.length-1)===93){let H=Number.parseFloat(z.slice(1,-1));if(Number.isNaN(H)||H<0||H>1)return;Y=H}else{let H=Number.parseInt(z,10);if(Number.isNaN(H)||H<0||H>100)return;Y=H/100}}else q=Q;let X=M0.get(q);if(!X)return;return{"--hw-shadow-color":Y!==void 0?R5(X,Y):X,"--hw-shadow":"var(--hw-shadow-colored)"}},n5=($)=>{if($.utility==="text-shadow"){let J={sm:"0 1px 2px rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px rgba(0, 0, 0, 0.1)",md:"0 4px 6px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px rgba(0, 0, 0, 0.1)",none:"none"};return $.value?{"text-shadow":J[$.value]||$.value}:void 0}},d5=($)=>{if($.utility==="opacity"&&$.value)return{opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[$.value]||$.value}},l5=($)=>{if($.utility==="mix-blend"){let J=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];return $.value&&J.includes($.value)?{"mix-blend-mode":$.value}:void 0}},i5=($)=>{if($.utility==="bg-blend"){let J=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];return $.value&&J.includes($.value)?{"background-blend-mode":$.value}:void 0}},o5=($)=>{if($.utility==="mask-clip"&&$.value)return{"mask-clip":{border:"border-box",padding:"padding-box",content:"content-box",text:"text",fill:"fill-box",stroke:"stroke-box",view:"view-box","no-clip":"no-clip"}[$.value]||$.value};if($.utility==="mask-composite"&&$.value)return["add","subtract","intersect","exclude"].includes($.value)?{"mask-composite":$.value}:void 0;if($.utility==="mask-image"&&$.value){if($.value==="none")return{"mask-image":"none"};return{"mask-image":`url(${$.value})`}}if($.utility==="mask-mode"&&$.value)return["alpha","luminance","match-source"].includes($.value)?{"mask-mode":$.value}:void 0;if($.utility==="mask-origin"&&$.value)return{"mask-origin":{border:"border-box",padding:"padding-box",content:"content-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}[$.value]||$.value};if($.utility==="mask-position"&&$.value)return{"mask-position":{center:"center",top:"top",right:"right",bottom:"bottom",left:"left","top-left":"top left","top-right":"top right","bottom-left":"bottom left","bottom-right":"bottom right"}[$.value]||$.value};if($.utility==="mask-repeat"&&$.value)return{"mask-repeat":{repeat:"repeat","no-repeat":"no-repeat","repeat-x":"repeat-x","repeat-y":"repeat-y",round:"round",space:"space"}[$.value]||$.value};if($.utility==="mask-size"&&$.value)return{"mask-size":{auto:"auto",cover:"cover",contain:"contain"}[$.value]||$.value};if($.utility==="mask-type"&&$.value)return["alpha","luminance"].includes($.value)?{"mask-type":$.value}:void 0},k0=[N5,P5,C5,y5,h5,v5,f5,m5,g5,u5,c5,n5,d5,l5,i5,o5];var H0={appearance:"none","background-color":"#fff","border-color":"#6b7280","border-width":"1px","border-radius":"0px","padding-top":"0.5rem","padding-right":"0.75rem","padding-bottom":"0.5rem","padding-left":"0.75rem","font-size":"1rem","line-height":"1.5rem"},G1={appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:"1rem",width:"1rem",color:"#2563eb","background-color":"#fff","border-color":"#6b7280","border-width":"1px"},p5=($)=>{if($.utility==="form-input"&&!$.value)return H0},t5=($)=>{if($.utility==="form-textarea"&&!$.value)return H0},s5=($)=>{if($.utility==="form-select"&&!$.value)return{...H0,"background-image":`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,"background-position":"right 0.5rem center","background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":"2.5rem","print-color-adjust":"exact"}},r5=($)=>{if($.utility==="form-multiselect"&&!$.value)return{...H0,"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","print-color-adjust":"unset"}},a5=($)=>{if($.utility==="form-checkbox"&&!$.value)return{...G1,"border-radius":"0px"}},e5=($)=>{if($.utility==="form-radio"&&!$.value)return{...G1,"border-radius":"100%"}},B1=[p5,t5,s5,r5,a5,e5];var $6=($)=>{if($.utility==="grid-cols"){let J={1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",none:"none",subgrid:"subgrid"};return $.value?{"grid-template-columns":J[$.value]||$.value}:void 0}},J6=($)=>{if($.utility==="col"){let J={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"};return $.value?{"grid-column":J[$.value]||$.value}:void 0}if($.utility==="col-span"&&$.value){let J={auto:"auto",1:"span 1 / span 1",2:"span 2 / span 2",3:"span 3 / span 3",4:"span 4 / span 4",5:"span 5 / span 5",6:"span 6 / span 6",7:"span 7 / span 7",8:"span 8 / span 8",9:"span 9 / span 9",10:"span 10 / span 10",11:"span 11 / span 11",12:"span 12 / span 12",full:"1 / -1"};if($.arbitrary)return{"grid-column":`span ${$.value} / span ${$.value}`};return{"grid-column":J[$.value]||$.value}}if($.utility==="col-start"&&$.value)return{"grid-column-start":$.value};if($.utility==="col-end"&&$.value)return{"grid-column-end":$.value}},Q6=($)=>{if($.utility==="grid-rows"){let J={1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",none:"none",subgrid:"subgrid"};return $.value?{"grid-template-rows":J[$.value]||$.value}:void 0}},Z6=($)=>{if($.utility==="row"){let J={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"};return $.value?{"grid-row":J[$.value]||$.value}:void 0}if($.utility==="row-span"&&$.value){let J={auto:"auto",1:"span 1 / span 1",2:"span 2 / span 2",3:"span 3 / span 3",4:"span 4 / span 4",5:"span 5 / span 5",6:"span 6 / span 6",full:"1 / -1"};if($.arbitrary)return{"grid-row":`span ${$.value} / span ${$.value}`};return{"grid-row":J[$.value]||$.value}}if($.utility==="row-start"&&$.value)return{"grid-row-start":$.value};if($.utility==="row-end"&&$.value)return{"grid-row-end":$.value}},q6=($)=>{if($.utility==="grid-flow"&&$.value){let J={row:"row",col:"column",dense:"dense","row-dense":"row dense","col-dense":"column dense"};return J[$.value]?{"grid-auto-flow":J[$.value]}:void 0}return},Y6=($)=>{if($.utility==="auto-cols"){let J={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return $.value?{"grid-auto-columns":J[$.value]||$.value}:void 0}},z6=($)=>{if($.utility==="auto-rows"){let J={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return $.value?{"grid-auto-rows":J[$.value]||$.value}:void 0}};function b0($,J){let Q=$.theme.spacing?.[J];if(Q!==void 0)return Q;if(/^\d+(?:\.\d+)?$/.test(J)){let Z=Number.parseFloat(J);if(Number.isFinite(Z))return`${Z*0.25}rem`}return J}var X6=($,J)=>{if($.utility==="gap"&&$.value)return{gap:b0(J,$.value)};if($.utility==="gap-x"&&$.value)return{"column-gap":b0(J,$.value)};if($.utility==="gap-y"&&$.value)return{"row-gap":b0(J,$.value)}},H6=($)=>{if($.utility==="place"&&$.value&&$.value.startsWith("content-")){let J=$.value.replace("content-",""),Q={center:"center",start:"start",end:"end",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"};return Q[J]?{"place-content":Q[J]}:void 0}return},j6=($)=>{if($.utility==="place"&&$.value&&$.value.startsWith("items-")){let J=$.value.replace("items-",""),Q={start:"start",end:"end",center:"center",stretch:"stretch"};return Q[J]?{"place-items":Q[J]}:void 0}return},W6=($)=>{if($.utility==="place"&&$.value&&$.value.startsWith("self-")){let J=$.value.replace("self-",""),Q={auto:"auto",start:"start",end:"end",center:"center",stretch:"stretch"};return Q[J]?{"place-self":Q[J]}:void 0}return},K1=[$6,J6,Q6,Z6,q6,Y6,z6,X6,H6,j6,W6];import{existsSync as U6,readFileSync as G6}from"fs";import{join as F1}from"path";var j0=new Map;function B6($){if(j0.has($))return j0.get($);let J=[F1(process.cwd(),"node_modules","@iconify-json",$,"icons.json"),F1(process.cwd(),"node_modules",".bun","@iconify-json",$,"icons.json")];for(let Q of J)if(U6(Q))try{let Z=JSON.parse(G6(Q,"utf-8"));return j0.set($,Z),Z}catch{}return j0.set($,null),null}function K6($,J){let Q=$.icons[J];if(Q)return Q;let Z=$.aliases?.[J];if(Z)return $.icons[Z.parent]??null;return null}function F6($,J){let Q=J.width??$.width??24,Z=J.height??$.height??24,q=J.left??0,Y=J.top??0;return`<svg xmlns='http://www.w3.org/2000/svg' viewBox='${q} ${Y} ${Q} ${Z}' width='${Q}' height='${Z}'>${J.body}</svg>`}function w6($){return`url("data:image/svg+xml;utf8,${$.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\?/g,"%3F").replace(/\s+/g," ")}")`}var D6=/^i-([a-z][a-z0-9]*)-(.+)$/,w1=($,J)=>{let Q=$.raw.match(D6);if(!Q)return;let[,Z,q]=Q,Y=B6(Z);if(!Y)return;let X=K6(Y,q);if(!X)return;let j=w6(F6(Y,X));return{display:"inline-block",width:"1em",height:"1em","background-color":"currentColor","-webkit-mask":`${j} no-repeat`,mask:`${j} no-repeat`,"-webkit-mask-size":"100% 100%","mask-size":"100% 100%","vertical-align":"-0.125em"}};var W0={none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},L6=($)=>{if($.raw==="filter-none")return{filter:"none"};if($.utility==="blur"){let J=$.value||"DEFAULT";return{filter:`blur(${W0[J]??($.value?/^\d/.test($.value)?`${$.value}px`:$.value:W0.DEFAULT)})`}}if($.utility==="brightness"&&$.value)return{filter:`brightness(${Number($.value)/100})`};if($.utility==="contrast"&&$.value)return{filter:`contrast(${Number($.value)/100})`};if($.utility==="grayscale"&&$.value)return{filter:`grayscale(${Number($.value)/100})`};if($.utility==="invert"&&$.value)return{filter:`invert(${Number($.value)/100})`};if($.utility==="saturate"&&$.value)return{filter:`saturate(${Number($.value)/100})`};if($.utility==="sepia"&&$.value)return{filter:`sepia(${Number($.value)/100})`};if($.utility==="hue-rotate"&&$.value)return{filter:`hue-rotate(${$.value}deg)`};if($.utility==="drop-shadow"){let J={sm:"drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))",DEFAULT:"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))",md:"drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))",lg:"drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))","2xl":"drop-shadow(0 25px 25px rgb(0 0 0 / 0.15))",none:"drop-shadow(0 0 #0000)"};return{filter:$.value?J[$.value]||`drop-shadow(${$.value})`:J.DEFAULT}}},I6=($)=>{if($.raw==="backdrop-filter-none")return{"backdrop-filter":"none"};if($.utility==="backdrop-blur"){let J=$.value||"DEFAULT",Q=W0[J]??($.value?/^\d/.test($.value)?`${$.value}px`:$.value:W0.DEFAULT);return{"-webkit-backdrop-filter":`blur(${Q})`,"backdrop-filter":`blur(${Q})`}}if($.utility==="backdrop-brightness"&&$.value){let J=`brightness(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-contrast"&&$.value){let J=`contrast(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-grayscale"&&$.value){let J=`grayscale(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-invert"&&$.value){let J=`invert(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-saturate"&&$.value){let J=`saturate(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-sepia"&&$.value){let J=`sepia(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}},_6=($)=>{let J={"border-collapse":"collapse","border-separate":"separate"};return J[$.raw]?{"border-collapse":J[$.raw]}:void 0},T6=($,J)=>{if($.utility==="border-spacing"&&$.value){let Q=J.theme.spacing[$.value]||$.value;return{"border-spacing":`${Q} ${Q}`}}if($.utility==="border-spacing-x"&&$.value)return{"border-spacing":`${J.theme.spacing[$.value]||$.value} 0`};if($.utility==="border-spacing-y"&&$.value)return{"border-spacing":`0 ${J.theme.spacing[$.value]||$.value}`}},E6=($)=>{if($.utility==="table"&&$.value){let J={auto:"auto",fixed:"fixed"};return J[$.value]?{"table-layout":J[$.value]}:void 0}return},A6=($)=>{let J={"caption-top":"top","caption-bottom":"bottom"};return J[$.raw]?{"caption-side":J[$.raw]}:void 0},O6=($,J)=>{if($.utility==="accent"&&$.value){let Q=R($.value,J);if(Q)return{"accent-color":Q}}},M6=($)=>{let J={"appearance-none":"none","appearance-auto":"auto"};return J[$.raw]?{appearance:J[$.raw]}:void 0},k6=($,J)=>{if($.utility==="caret"&&$.value){let Q=R($.value,J);if(Q)return{"caret-color":Q}}},b6=($)=>{let J={"color-scheme-normal":"normal","color-scheme-light":"light","color-scheme-dark":"dark","color-scheme-light-dark":"light dark"};return J[$.raw]?{"color-scheme":J[$.raw]}:void 0},x6=($)=>{let J={"field-sizing-content":"content","field-sizing-fixed":"fixed"};return J[$.raw]?{"field-sizing":J[$.raw]}:void 0},S6=($)=>{let J={"cursor-auto":"auto","cursor-default":"default","cursor-pointer":"pointer","cursor-wait":"wait","cursor-text":"text","cursor-move":"move","cursor-help":"help","cursor-not-allowed":"not-allowed","cursor-none":"none","cursor-context-menu":"context-menu","cursor-progress":"progress","cursor-cell":"cell","cursor-crosshair":"crosshair","cursor-vertical-text":"vertical-text","cursor-alias":"alias","cursor-copy":"copy","cursor-no-drop":"no-drop","cursor-grab":"grab","cursor-grabbing":"grabbing","cursor-all-scroll":"all-scroll","cursor-col-resize":"col-resize","cursor-row-resize":"row-resize","cursor-n-resize":"n-resize","cursor-e-resize":"e-resize","cursor-s-resize":"s-resize","cursor-w-resize":"w-resize","cursor-ne-resize":"ne-resize","cursor-nw-resize":"nw-resize","cursor-se-resize":"se-resize","cursor-sw-resize":"sw-resize","cursor-ew-resize":"ew-resize","cursor-ns-resize":"ns-resize","cursor-nesw-resize":"nesw-resize","cursor-nwse-resize":"nwse-resize","cursor-zoom-in":"zoom-in","cursor-zoom-out":"zoom-out"};return J[$.raw]?{cursor:J[$.raw]}:void 0},R6=($)=>{let J={"pointer-events-none":"none","pointer-events-auto":"auto"};return J[$.raw]?{"pointer-events":J[$.raw]}:void 0},V6=($)=>{let J={"resize-none":"none",resize:"both","resize-y":"vertical","resize-x":"horizontal"};return J[$.raw]?{resize:J[$.raw]}:void 0},N6=($)=>{let J={"scroll-auto":"auto","scroll-smooth":"smooth"};return J[$.raw]?{"scroll-behavior":J[$.raw]}:void 0},P6=($,J)=>{let Z={"scroll-m":["scroll-margin"],"scroll-mx":["scroll-margin-left","scroll-margin-right"],"scroll-my":["scroll-margin-top","scroll-margin-bottom"],"scroll-mt":["scroll-margin-top"],"scroll-mr":["scroll-margin-right"],"scroll-mb":["scroll-margin-bottom"],"scroll-ml":["scroll-margin-left"]}[$.utility];if(!Z||!$.value)return;let q=J.theme.spacing[$.value]||$.value,Y={};for(let X of Z)Y[X]=q;return Y},C6=($,J)=>{let Z={"scroll-p":["scroll-padding"],"scroll-px":["scroll-padding-left","scroll-padding-right"],"scroll-py":["scroll-padding-top","scroll-padding-bottom"],"scroll-pt":["scroll-padding-top"],"scroll-pr":["scroll-padding-right"],"scroll-pb":["scroll-padding-bottom"],"scroll-pl":["scroll-padding-left"]}[$.utility];if(!Z||!$.value)return;let q=J.theme.spacing[$.value]||$.value,Y={};for(let X of Z)Y[X]=q;return Y},y6=($)=>{let J={"snap-none":"none","snap-x":"x mandatory","snap-y":"y mandatory","snap-both":"both mandatory","snap-mandatory":"mandatory","snap-proximity":"proximity"};if(J[$.raw])return $.raw.includes("mandatory")||$.raw.includes("proximity")?{"scroll-snap-type":J[$.raw]}:{"scroll-snap-type":J[$.raw]};let Q={"snap-start":"start","snap-end":"end","snap-center":"center","snap-align-none":"none"};if(Q[$.raw])return{"scroll-snap-align":Q[$.raw]};let Z={"snap-normal":"normal","snap-always":"always"};if(Z[$.raw])return{"scroll-snap-stop":Z[$.raw]}},h6=($)=>{let J={"touch-auto":"auto","touch-none":"none","touch-pan-x":"pan-x","touch-pan-left":"pan-left","touch-pan-right":"pan-right","touch-pan-y":"pan-y","touch-pan-up":"pan-up","touch-pan-down":"pan-down","touch-pinch-zoom":"pinch-zoom","touch-manipulation":"manipulation"};return J[$.raw]?{"touch-action":J[$.raw]}:void 0},v6=($)=>{let J={"select-none":"none","select-text":"text","select-all":"all","select-auto":"auto"};return J[$.raw]?{"user-select":J[$.raw]}:void 0},f6=($)=>{let J={"will-change-auto":"auto","will-change-scroll":"scroll-position","will-change-contents":"contents","will-change-transform":"transform"};return J[$.raw]?{"will-change":J[$.raw]}:void 0},m6=($,J)=>{if($.utility==="fill"&&$.value){if($.value==="none")return{fill:"none"};let Q=R($.value,J);if(Q)return{fill:Q}}},g6=($,J)=>{if($.utility==="stroke"&&$.value){if($.value==="none")return{stroke:"none"};let Q=R($.value,J);if(Q)return{stroke:Q}}},u6=($)=>{if($.utility==="stroke"&&$.value)return{"stroke-width":{0:"0",1:"1",2:"2"}[$.value]||$.value}},c6=($)=>{if($.utility==="stroke-dasharray"&&$.value)return{"stroke-dasharray":$.value==="none"?"none":$.value}},n6=($)=>{if($.utility==="stroke-dashoffset"&&$.value)return{"stroke-dashoffset":$.value}},d6=($)=>{let J={"stroke-linecap-butt":"butt","stroke-linecap-round":"round","stroke-linecap-square":"square"};return J[$.raw]?{"stroke-linecap":J[$.raw]}:void 0},l6=($)=>{let J={"stroke-linejoin-miter":"miter","stroke-linejoin-round":"round","stroke-linejoin-bevel":"bevel"};return J[$.raw]?{"stroke-linejoin":J[$.raw]}:void 0},i6=($)=>{if($.raw==="sr-only")return{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"};if($.raw==="not-sr-only")return{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"};return},o6=($)=>{let J={"forced-color-adjust-auto":"auto","forced-color-adjust-none":"none"};return J[$.raw]?{"forced-color-adjust":J[$.raw]}:void 0},D1=[L6,I6,_6,T6,E6,A6,O6,M6,k6,b6,x6,S6,R6,V6,N6,P6,C6,y6,h6,v6,f6,m6,g6,u6,c6,n6,d6,l6,i6,o6];var p6=($)=>{if($.utility==="aspect"){let J={auto:"auto",square:"1 / 1",video:"16 / 9"};return $.value?{"aspect-ratio":J[$.value]||$.value}:void 0}},t6=($,J)=>{if($.utility==="columns"&&$.value){let Q={"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","10":"10","11":"11","12":"12",auto:"auto"},Z={"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"};if(Q[$.value])return{columns:Q[$.value]};if(Z[$.value])return{columns:Z[$.value]};if(J.theme.spacing[$.value])return{columns:J.theme.spacing[$.value]};return{columns:$.value}}},s6=($)=>{let J={"column-fill-auto":"auto","column-fill-balance":"balance","column-fill-balance-all":"balance-all"};return J[$.raw]?{"column-fill":J[$.raw]}:void 0},r6=($,J)=>{if($.utility==="column-gap"&&$.value)return{"column-gap":J.theme.spacing[$.value]||$.value}},a6=($,J)=>{if($.utility==="column-rule"&&$.value){let Q={"0":"0px","1":"1px","2":"2px","4":"4px","8":"8px"};if(Q[$.value])return{"column-rule-width":Q[$.value]};let Z=$.value.split("-");if(Z.length===2){let[X,j]=Z,z=J.theme.colors[X];if(typeof z==="object"&&z[j])return{"column-rule-color":z[j]}}let q=J.theme.colors[$.value];if(typeof q==="string")return{"column-rule-color":q};let Y={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};if(Y[$.value])return{"column-rule-style":Y[$.value]}}},e6=($)=>{let J={"column-span-all":"all","column-span-none":"none"};return J[$.raw]?{"column-span":J[$.raw]}:void 0},$8=($)=>{return{"break-before-auto":{"break-before":"auto"},"break-before-avoid":{"break-before":"avoid"},"break-before-all":{"break-before":"all"},"break-before-avoid-page":{"break-before":"avoid-page"},"break-before-page":{"break-before":"page"},"break-after-auto":{"break-after":"auto"},"break-after-avoid":{"break-after":"avoid"},"break-after-all":{"break-after":"all"},"break-after-avoid-page":{"break-after":"avoid-page"},"break-after-page":{"break-after":"page"},"break-inside-auto":{"break-inside":"auto"},"break-inside-avoid":{"break-inside":"avoid"},"break-inside-avoid-page":{"break-inside":"avoid-page"},"break-inside-avoid-column":{"break-inside":"avoid-column"}}[$.raw]},J8=($)=>{let J={"box-decoration-clone":"clone","box-decoration-slice":"slice"};return J[$.raw]?{"box-decoration-break":J[$.raw]}:void 0},Q8=($)=>{let J={"box-border":"border-box","box-content":"content-box"};return J[$.raw]?{"box-sizing":J[$.raw]}:void 0},Z8=($)=>{let J={"float-start":"inline-start","float-end":"inline-end","float-right":"right","float-left":"left","float-none":"none"};return J[$.raw]?{float:J[$.raw]}:void 0},q8=($)=>{let J={"clear-start":"inline-start","clear-end":"inline-end","clear-left":"left","clear-right":"right","clear-both":"both","clear-none":"none"};return J[$.raw]?{clear:J[$.raw]}:void 0},Y8=($)=>{let J={isolate:"isolate","isolation-auto":"auto"};return J[$.raw]?{isolation:J[$.raw]}:void 0},z8=($)=>{let J={"object-contain":"contain","object-cover":"cover","object-fill":"fill","object-none":"none","object-scale-down":"scale-down"};return J[$.raw]?{"object-fit":J[$.raw]}:void 0},X8=($)=>{let J={"object-bottom":"bottom","object-center":"center","object-left":"left","object-left-bottom":"left bottom","object-left-top":"left top","object-right":"right","object-right-bottom":"right bottom","object-right-top":"right top","object-top":"top"};return J[$.raw]?{"object-position":J[$.raw]}:void 0},H8=($)=>{if($.utility==="overflow"){let J=["auto","hidden","clip","visible","scroll"];if($.value&&J.includes($.value))return{overflow:$.value}}if($.utility==="overflow-x"||$.utility==="overflow-y"){let J=["auto","hidden","clip","visible","scroll"];if($.value&&J.includes($.value))return{[$.utility]:$.value}}},j8=($)=>{let J={"overscroll-auto":"auto","overscroll-contain":"contain","overscroll-none":"none","overscroll-x-auto":"auto","overscroll-x-contain":"contain","overscroll-x-none":"none","overscroll-y-auto":"auto","overscroll-y-contain":"contain","overscroll-y-none":"none"},Q=$.raw.startsWith("overscroll-x")?"overscroll-behavior-x":$.raw.startsWith("overscroll-y")?"overscroll-behavior-y":"overscroll-behavior";return J[$.raw]?{[Q]:J[$.raw]}:void 0},W8=($)=>{if(["static","fixed","absolute","relative","sticky"].includes($.utility))return{position:$.utility}},U8=($,J)=>{let Z={inset:["top","right","bottom","left"],"inset-x":["left","right"],"inset-y":["top","bottom"],top:["top"],right:["right"],bottom:["bottom"],left:["left"],start:["inset-inline-start"],end:["inset-inline-end"]}[$.utility];if(!Z||!$.value)return;let q=(j)=>{if(j.includes("/")){let[z,H]=j.split("/").map(Number);if(!Number.isNaN(z)&&!Number.isNaN(H)&&H!==0)return`${z/H*100}%`}if(j==="full")return"100%";if(j==="auto")return"auto";return J.theme.spacing[j]||j},Y;if($.value.startsWith("-")){let j=$.value.slice(1),z=q(j);if(z.endsWith("%"))Y=`${-Number.parseFloat(z)}%`;else Y=z.startsWith("-")?z:`-${z}`}else Y=q($.value);let X={};for(let j of Z)X[j]=Y;return X},G8=($)=>{let J={visible:"visible",invisible:"hidden",collapse:"collapse"};return J[$.utility]?{visibility:J[$.utility]}:void 0},B8=($)=>{if($.utility==="z"&&$.value)return{"z-index":{0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",auto:"auto"}[$.value]||$.value}},L1=[p6,t6,s6,r6,a6,e6,$8,J8,Q8,Z8,q8,Y8,z8,X8,H8,j8,W8,U8,G8,B8];var K8=($)=>{let J={transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-cpu":"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-gpu":"translate3d(var(--hw-translate-x), var(--hw-translate-y), 0) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-none":"none"};return J[$.raw]?{transform:J[$.raw]}:void 0},F8=($)=>{if($.utility==="scale"){if(!$.value)return{transform:"scale(1)"};if($.arbitrary)return{transform:`scale(${$.value})`};return{transform:`scale(${Number($.value)/100})`}}if($.utility==="scale-x"){if(!$.value)return{transform:"scaleX(1)"};if($.arbitrary)return{transform:`scaleX(${$.value})`};return{transform:`scaleX(${Number($.value)/100})`}}if($.utility==="scale-y"){if(!$.value)return{transform:"scaleY(1)"};if($.arbitrary)return{transform:`scaleY(${$.value})`};return{transform:`scaleY(${Number($.value)/100})`}}if($.utility==="scale-z"){if(!$.value)return{transform:"scaleZ(1)"};if($.arbitrary)return{transform:`scaleZ(${$.value})`};return{transform:`scaleZ(${Number($.value)/100})`}}},w8=($)=>{if($.utility==="rotate"&&$.value)return{transform:`rotate(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="rotate-x"&&$.value)return{transform:`rotateX(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="rotate-y"&&$.value)return{transform:`rotateY(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="rotate-z"&&$.value)return{transform:`rotateZ(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`}},D8=($,J)=>{let Q=(Z)=>{if(Z.includes("/")){let[q,Y]=Z.split("/");return`${Number(q)/Number(Y)*100}%`}if(Z==="full")return"100%";if(Z==="half")return"50%";return J.theme.spacing[Z]||Z};if($.utility==="translate-x"&&$.value){let Z;if($.value.startsWith("-")){let q=$.value.slice(1);Z=`-${Q(q)}`}else Z=Q($.value);return{transform:`translateX(${Z})`}}if($.utility==="translate-y"&&$.value){let Z;if($.value.startsWith("-")){let q=$.value.slice(1);Z=`-${Q(q)}`}else Z=Q($.value);return{transform:`translateY(${Z})`}}if($.utility==="translate-z"&&$.value){let Z;if($.value.startsWith("-")){let q=$.value.slice(1);Z=`-${Q(q)}`}else Z=Q($.value);return{transform:`translateZ(${Z})`}}},L8=($)=>{if($.utility==="skew-x"&&$.value)return{transform:`skewX(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="skew-y"&&$.value)return{transform:`skewY(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`}},I8=($)=>{if($.utility==="origin"&&$.value){if($.arbitrary)return{"transform-origin":$.value.replace(/_/g," ")};let J={center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"};return J[$.value]?{"transform-origin":J[$.value]}:void 0}return},_8=($)=>{if($.utility==="perspective"&&$.value){if($.value==="none")return{perspective:"none"};if($.arbitrary||$.value.includes("px")||$.value.includes("rem")||$.value.includes("em"))return{perspective:$.value};return{perspective:`${$.value}px`}}return},T8=($)=>{if($.utility==="perspective-origin"&&$.value)return{"perspective-origin":{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"}[$.value]||$.value}},E8=($)=>{let J={"backface-visible":"visible","backface-hidden":"hidden"};return J[$.raw]?{"backface-visibility":J[$.raw]}:void 0},A8=($)=>{let J={"transform-flat":"flat","transform-3d":"preserve-3d"};return J[$.raw]?{"transform-style":J[$.raw]}:void 0},O8=($)=>{let J={"transition-none":"none","transition-all":"all",transition:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-colors":"color, background-color, border-color, text-decoration-color, fill, stroke","transition-opacity":"opacity","transition-shadow":"box-shadow","transition-transform":"transform"};return J[$.raw]?{"transition-property":J[$.raw]}:void 0},M8=($)=>{if($.utility==="duration"&&$.value)return{"transition-duration":{"0":"0s","75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},k8=($)=>{let J={"ease-linear":"linear","ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"};return J[$.raw]?{"transition-timing-function":J[$.raw]}:void 0},b8=($)=>{if($.utility==="delay"&&$.value)return{"transition-delay":{"0":"0s","75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},x8=($)=>{let J={"transition-behavior-normal":"normal","transition-behavior-allow-discrete":"allow-discrete"};return J[$.raw]?{"transition-behavior":J[$.raw]}:void 0},S8=($)=>{if($.utility!=="animate")return;let J={none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"};if($.arbitrary&&$.value)return{animation:$.value.replace(/_/g," ")};if($.value&&J[$.value])return{animation:J[$.value]};return},R8=($)=>{let J={"animate-running":"running","animate-paused":"paused"};return J[$.raw]?{"animation-play-state":J[$.raw]}:void 0},V8=($)=>{let J={"animate-normal":"normal","animate-reverse":"reverse","animate-alternate":"alternate","animate-alternate-reverse":"alternate-reverse"};return J[$.raw]?{"animation-direction":J[$.raw]}:void 0},N8=($)=>{let J={"animate-fill-none":"none","animate-fill-forwards":"forwards","animate-fill-backwards":"backwards","animate-fill-both":"both"};return J[$.raw]?{"animation-fill-mode":J[$.raw]}:void 0},P8=($)=>{if($.utility==="animate-iteration"&&$.value)return{"animation-iteration-count":$.value==="infinite"?"infinite":$.value}},C8=($)=>{if($.utility==="animate-duration"&&$.value)return{"animation-duration":{"75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},y8=($)=>{if($.utility==="animate-delay"&&$.value)return{"animation-delay":{"75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},h8=($)=>{let J={"animate-ease-linear":"linear","animate-ease-in":"cubic-bezier(0.4, 0, 1, 1)","animate-ease-out":"cubic-bezier(0, 0, 0.2, 1)","animate-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"};return J[$.raw]?{"animation-timing-function":J[$.raw]}:void 0},I1=[K8,F8,w8,D8,L8,I8,_8,T8,E8,A8,O8,x8,M8,k8,b8,S8,R8,V8,N8,P8,C8,y8,h8];var v8=($,J)=>{if($.utility==="font"&&$.value){let Q=J.theme.fontFamily[$.value];if(Q)return{"font-family":Q.join(", ")}}},f8=($)=>{return{antialiased:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"subpixel-antialiased":{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}}[$.raw]},m8=($)=>{let J={italic:"italic","not-italic":"normal"};return J[$.raw]?{"font-style":J[$.raw]}:void 0},g8=($)=>{if($.utility==="font-stretch"){let J=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"];return $.value&&J.includes($.value)?{"font-stretch":$.value}:void 0}},u8=($)=>{let J={"normal-nums":"normal",ordinal:"ordinal","slashed-zero":"slashed-zero","lining-nums":"lining-nums","oldstyle-nums":"oldstyle-nums","proportional-nums":"proportional-nums","tabular-nums":"tabular-nums","diagonal-fractions":"diagonal-fractions","stacked-fractions":"stacked-fractions"};return J[$.raw]?{"font-variant-numeric":J[$.raw]}:void 0},c8=($)=>{if($.utility==="tracking"){let J={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"};if(!$.value)return;if($.value.startsWith("-")){let Q=$.value.slice(1);return{"letter-spacing":`-${J[Q]||Q}`}}return{"letter-spacing":J[$.value]||$.value}}},n8=($)=>{if($.utility==="line-clamp"&&$.value)return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":$.value}},d8=($)=>{if($.utility==="list-image"&&$.value)return{"list-style-image":$.value==="none"?"none":`url(${$.value})`}},l8=($)=>{let J={"list-inside":"inside","list-outside":"outside"};return J[$.raw]?{"list-style-position":J[$.raw]}:void 0},i8=($)=>{if($.utility==="list"){let J={none:"none",disc:"disc",decimal:"decimal"};return $.value?{"list-style-type":J[$.value]||$.value}:void 0}},o8=($,J)=>{let Q={underline:"underline",overline:"overline","line-through":"line-through","no-underline":"none"};if(Q[$.raw])return{"text-decoration-line":Q[$.raw]};if($.utility==="decoration"&&$.value){let Z={solid:"solid",double:"double",dotted:"dotted",dashed:"dashed",wavy:"wavy"};if(Z[$.value])return{"text-decoration-style":Z[$.value]};let q={auto:"auto","from-font":"from-font","0":"0px","1":"1px","2":"2px","4":"4px","8":"8px"};if(q[$.value])return{"text-decoration-thickness":q[$.value]};if($.arbitrary)return{"text-decoration-thickness":$.value};let Y=R($.value,J);if(Y)return{"text-decoration-color":Y};return{"text-decoration-color":$.value}}return},p8=($)=>{if($.utility==="underline-offset"&&$.value)return{"text-underline-offset":{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"}[$.value]||$.value}},t8=($)=>{let J={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize","normal-case":"none"};return J[$.raw]?{"text-transform":J[$.raw]}:void 0},s8=($)=>{return{truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},"text-ellipsis":{"text-overflow":"ellipsis"},"text-clip":{"text-overflow":"clip"}}[$.raw]},r8=($)=>{let J={"text-wrap":"wrap","text-nowrap":"nowrap","text-balance":"balance","text-pretty":"pretty"};return J[$.raw]?{"text-wrap":J[$.raw]}:void 0},a8=($,J)=>{if($.utility==="indent"&&$.value){if($.value.startsWith("-")){let Q=$.value.slice(1);return{"text-indent":`-${J.theme.spacing[Q]||Q}`}}return{"text-indent":J.theme.spacing[$.value]||$.value}}},e8=($)=>{let J={"align-baseline":"baseline","align-top":"top","align-middle":"middle","align-bottom":"bottom","align-text-top":"text-top","align-text-bottom":"text-bottom","align-sub":"sub","align-super":"super"};return J[$.raw]?{"vertical-align":J[$.raw]}:void 0},$9=($)=>{let J={"whitespace-normal":"normal","whitespace-nowrap":"nowrap","whitespace-pre":"pre","whitespace-pre-line":"pre-line","whitespace-pre-wrap":"pre-wrap","whitespace-break-spaces":"break-spaces"};return J[$.raw]?{"white-space":J[$.raw]}:void 0},J9=($)=>{if($.raw==="break-normal")return{"overflow-wrap":"normal","word-break":"normal"};if($.raw==="break-words")return{"overflow-wrap":"break-word"};let J={"break-all":"break-all","break-keep":"keep-all"};return J[$.raw]?{"word-break":J[$.raw]}:void 0},Q9=($)=>{let J={"overflow-wrap-normal":"normal","overflow-wrap-break":"break-word","overflow-wrap-anywhere":"anywhere"};return J[$.raw]?{"overflow-wrap":J[$.raw]}:void 0},Z9=($)=>{let J={"hyphens-none":"none","hyphens-manual":"manual","hyphens-auto":"auto"};return J[$.raw]?{hyphens:J[$.raw]}:void 0},q9=($)=>{if($.utility==="content"&&$.value){let J={none:"none"};if(J[$.value]||$.value.startsWith('"')||$.value.startsWith("'"))return{content:J[$.value]||$.value};return{content:`"${$.value}"`}}},Y9=($,J)=>{if($.utility==="leading"){if(!$.value)return;return{"line-height":{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"}[$.value]||$.value}}},z9=($)=>{let J={"writing-horizontal-tb":"horizontal-tb","writing-vertical-rl":"vertical-rl","writing-vertical-lr":"vertical-lr"};return J[$.raw]?{"writing-mode":J[$.raw]}:void 0},X9=($)=>{let J={"text-orientation-mixed":"mixed","text-orientation-upright":"upright","text-orientation-sideways":"sideways"};return J[$.raw]?{"text-orientation":J[$.raw]}:void 0},H9=($)=>{let J={"direction-ltr":"ltr","direction-rtl":"rtl"};return J[$.raw]?{direction:J[$.raw]}:void 0},j9=($)=>{if($.utility==="text-emphasis"&&$.value)return{"text-emphasis":{none:"none",filled:"filled",open:"open",dot:"dot",circle:"circle","double-circle":"double-circle",triangle:"triangle",sesame:"sesame"}[$.value]||$.value}},W9=($,J)=>{if($.utility==="text-emphasis-color"&&$.value){let Q=$.value.split("-");if(Q.length===2){let[q,Y]=Q,X=J.theme.colors[q];if(typeof X==="object"&&X[Y])return{"text-emphasis-color":X[Y]}}let Z=J.theme.colors[$.value];if(typeof Z==="string")return{"text-emphasis-color":Z}}},U9=($,J)=>{if($.utility==="word-spacing"&&$.value)return{"word-spacing":{tighter:"-0.05em",tight:"-0.025em",normal:"normal",wide:"0.025em",wider:"0.05em",widest:"0.1em"}[$.value]||J.theme.spacing[$.value]||$.value}},G9=($)=>{let J={"small-caps":"small-caps","all-small-caps":"all-small-caps","petite-caps":"petite-caps","all-petite-caps":"all-petite-caps",unicase:"unicase","titling-caps":"titling-caps","normal-caps":"normal"};return J[$.raw]?{"font-variant-caps":J[$.raw]}:void 0},B9=($)=>{let J={"ligatures-normal":"normal","ligatures-none":"none","common-ligatures":"common-ligatures","no-common-ligatures":"no-common-ligatures","discretionary-ligatures":"discretionary-ligatures","no-discretionary-ligatures":"no-discretionary-ligatures","historical-ligatures":"historical-ligatures","no-historical-ligatures":"no-historical-ligatures",contextual:"contextual","no-contextual":"no-contextual"};return J[$.raw]?{"font-variant-ligatures":J[$.raw]}:void 0},_1=[v8,f8,m8,g8,u8,G9,B9,c8,Y9,n8,d8,l8,i8,o8,p8,t8,s8,r8,a8,e8,$9,J9,Q9,Z9,q9,z9,X9,H9,j9,W9,U9];var K9=($)=>{if(["block","inline-block","inline","flex","inline-flex","grid","inline-grid","hidden","none"].includes($.utility))return{display:$.utility==="hidden"?"none":$.utility}},F9=($)=>{if($.utility==="scrollbar"&&$.value){let Q={auto:"auto",thin:"thin",none:"none"}[$.value];if(Q)return{"scrollbar-width":Q}}},w9=($)=>{if($.utility==="content"){if($.value==="none")return{content:"none"};if($.value==="empty")return{content:'""'};if($.arbitrary&&$.value)return{content:$.value}}},D9=($)=>{if($.utility==="@container")return{"container-type":"inline-size"};if($.utility==="@container-normal")return{"container-type":"normal"};if($.utility.startsWith("@container/"))return{"container-type":"inline-size","container-name":$.utility.slice(11)}},L9=($)=>{let J={"flex-row":"row","flex-row-reverse":"row-reverse","flex-col":"column","flex-col-reverse":"column-reverse"};return J[$.utility]?{"flex-direction":J[$.utility]}:void 0},I9=($)=>{let J={"flex-wrap":"wrap","flex-wrap-reverse":"wrap-reverse","flex-nowrap":"nowrap"};return J[$.utility]?{"flex-wrap":J[$.utility]}:void 0},_9=($)=>{if($.utility==="flex"||$.utility.startsWith("flex-")){let J={"flex-1":"1 1 0%","flex-auto":"1 1 auto","flex-initial":"0 1 auto","flex-none":"none"};if(J[$.utility])return{flex:J[$.utility]};if($.utility==="flex"&&$.arbitrary&&$.value)return{flex:$.value.replace(/_/g," ")}}return},T9=($)=>{if($.utility==="flex-grow"&&!$.value)return{"flex-grow":"1"};if($.utility==="flex-grow"&&$.value)return{"flex-grow":$.value}},E9=($)=>{if($.utility==="flex-shrink"&&!$.value)return{"flex-shrink":"1"};if($.utility==="flex-shrink"&&$.value)return{"flex-shrink":$.value}},A9=($)=>{if($.utility==="justify"&&$.value){let J={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"};if(J[$.value])return{"justify-content":J[$.value]};if($.arbitrary)return{"justify-content":$.value}}return},O9=($)=>{if($.utility==="items"&&$.value){let J={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"};if(J[$.value])return{"align-items":J[$.value]};if($.arbitrary)return{"align-items":$.value}}return},M9=($)=>{if($.utility==="justify"&&$.value&&$.value.startsWith("items-")){let J={"items-start":"start","items-end":"end","items-center":"center","items-stretch":"stretch"};return J[$.value]?{"justify-items":J[$.value]}:void 0}return},k9=($)=>{if($.utility==="content"&&$.value){let J={normal:"normal",center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"};return J[$.value]?{"align-content":J[$.value]}:void 0}return},b9=($,J)=>{let Z={p:["padding"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],ps:["padding-inline-start"],pe:["padding-inline-end"],m:["margin"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],ms:["margin-inline-start"],me:["margin-inline-end"]}[$.utility];if(!Z||!$.value)return;let q=(j)=>{let z=J.theme.spacing[j];if(z!==void 0)return z;if(/^\d+(?:\.\d+)?$/.test(j)){let H=Number.parseFloat(j);if(Number.isFinite(H))return`${H*0.25}rem`}return j},Y;if($.value.startsWith("-")){let j=$.value.slice(1);if(j==="0")Y=J.theme.spacing[j]||"0";else{let z=q(j);Y=z===j?$.value:`-${z}`}}else Y=q($.value);let X={};for(let j of Z)X[j]=Y;return X},x9=($,J)=>{if($.utility==="w"&&$.value){let Q={full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if($.value.includes("/")){let[q,Y]=$.value.split("/").map(Number);if(Number.isNaN(q)||Number.isNaN(Y)||Y===0)return;return{width:`${q/Y*100}%`}}return{width:J.theme.spacing[$.value]||Q[$.value]||$.value}}if($.utility==="h"&&$.value){let Q={full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if($.value.includes("/")){let[q,Y]=$.value.split("/").map(Number);if(Number.isNaN(q)||Number.isNaN(Y)||Y===0)return;return{height:`${q/Y*100}%`}}return{height:J.theme.spacing[$.value]||Q[$.value]||$.value}}if($.utility==="size"&&$.value){let Q={full:"100%",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if($.value.includes("/")){let[q,Y]=$.value.split("/").map(Number);if(Number.isNaN(q)||Number.isNaN(Y)||Y===0)return;let X=`${q/Y*100}%`;return{width:X,height:X}}let Z=J.theme.spacing[$.value]||Q[$.value]||$.value;return{width:Z,height:Z}}return},m=null,U0=null,S9={bg:"background-color",text:"color",border:"border-color"},T1={current:"currentColor",transparent:"transparent",inherit:"inherit"};function E1($){let J=new Map;for(let[Q,Z]of Object.entries($))if(typeof Z==="string")J.set(Q,Z);else if(typeof Z==="object"&&Z!==null){for(let[q,Y]of Object.entries(Z))if(typeof Y==="string")J.set(`${Q}-${q}`,Y)}return J}var R9=($,J)=>{let Q=S9[$.utility];if(!Q||!$.value)return;let Z=$.value;if($.arbitrary&&$.typeHint==="color")return{[Q]:Z};if(m===null||U0!==J.theme.colors)m=E1(J.theme.colors),U0=J.theme.colors;let q=Z.indexOf("/");if(q===-1){let H=m.get(Z);if(H)return{[Q]:H}}let Y,X=Z;if(q!==-1){X=Z.slice(0,q);let H=Z.slice(q+1);if(H.charCodeAt(0)===91&&H.charCodeAt(H.length-1)===93){let U=Number.parseFloat(H.slice(1,-1));if(Number.isNaN(U)||U<0||U>1)return;Y=U}else{let U=Number.parseInt(H,10);if(Number.isNaN(U)||U<0||U>100)return;Y=U/100}let W=m.get(X);if(W)return{[Q]:c(W,Y)}}let j=T1[X];if(j)return{[Q]:j};if(($.arbitrary||X&&X.charCodeAt(0)===91)&&X){let H=Y!==void 0?c(X,Y):X;return{[Q]:H}}return};function c($,J){let Q=$;if($.charCodeAt(0)===91&&$.charCodeAt($.length-1)===93)Q=$.slice(1,-1);if(Q.charCodeAt(0)===35){let Z=Q.slice(1);if(Z.length===3)Z=Z[0]+Z[0]+Z[1]+Z[1]+Z[2]+Z[2];let q=Number.parseInt(Z.slice(0,2),16),Y=Number.parseInt(Z.slice(2,4),16),X=Number.parseInt(Z.slice(4,6),16);return`rgb(${q} ${Y} ${X} / ${J})`}if(Q.charCodeAt(0)===114){let Z=Q.match(/rgb\((\d+)\s+(\d+)\s+(\d+)/);if(Z)return`rgb(${Z[1]} ${Z[2]} ${Z[3]} / ${J})`}if(Q.charCodeAt(0)===111){let Z=Q.match(/oklch\(([^)]+)\)/);if(Z)return`oklch(${Z[1]} / ${J})`}if(Q.charCodeAt(0)===104){let Z=Q.match(/hsl\(([^)]+)\)/);if(Z)return`hsl(${Z[1]} / ${J})`}return Q}function R($,J){let Q=$.indexOf("/"),Z=$,q;if(Q!==-1){Z=$.slice(0,Q);let z=$.slice(Q+1);if(z.charCodeAt(0)===91&&z.charCodeAt(z.length-1)===93){if(q=Number.parseFloat(z.slice(1,-1)),Number.isNaN(q)||q<0||q>1)return}else{let H=Number.parseInt(z,10);if(Number.isNaN(H)||H<0||H>100)return;q=H/100}}let Y={current:"currentColor",transparent:"transparent",inherit:"inherit",auto:"auto"};if(Y[Z])return q!==void 0?c(Y[Z],q):Y[Z];let X=J.theme.colors[Z];if(typeof X==="string")return q!==void 0?c(X,q):X;let j=Z.split("-");if(j.length>=2){let z=j[j.length-1],H=j.slice(0,-1).join("-"),W=J.theme.colors[H];if(typeof W==="object"&&W[z])return q!==void 0?c(W[z],q):W[z]}return}var V9=($,J)=>{if($.utility!=="placeholder"||!$.value)return;if(m===null||U0!==J.theme.colors)m=E1(J.theme.colors),U0=J.theme.colors;let Q=$.value,Z=Q.indexOf("/");if(Z===-1){let Y=m.get(Q);if(Y)return{properties:{color:Y},pseudoElement:"::placeholder"}}else{let Y=Q.slice(0,Z),X=Q.slice(Z+1),j;if(X.charCodeAt(0)===91&&X.charCodeAt(X.length-1)===93){let H=Number.parseFloat(X.slice(1,-1));if(Number.isNaN(H)||H<0||H>1)return;j=H}else{let H=Number.parseInt(X,10);if(Number.isNaN(H)||H<0||H>100)return;j=H/100}let z=m.get(Y);if(z)return{properties:{color:c(z,j)},pseudoElement:"::placeholder"}}let q=T1[$.value];if(q)return{properties:{color:q},pseudoElement:"::placeholder"};return},N9=($,J)=>{if($.utility==="text"&&$.value){let Q=$.value,Z,q=Q.lastIndexOf("/");if(q!==-1&&!$.value.startsWith("[")&&!Q.slice(q+1).includes("]"));if(q!==-1){let X=Q.slice(0,q),j=Q.slice(q+1);if(j&&(J.theme.fontSize[X]||$.arbitrary)){Q=X;let z={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"};Z=J.theme.lineHeight?.[j]??z[j]??j}}if($.arbitrary){if($.typeHint){if($.typeHint==="color")return;let j={"font-size":Q};if(Z)j["line-height"]=Z;return j}if(/^#|^rgb|^hsl|^hwb|^lab|^lch|^oklch|^oklab|^color\(|^var\(--/.test(Q))return;let X={"font-size":Q};if(Z)X["line-height"]=Z;return X}let Y=J.theme.fontSize[Q];if(Y)return{"font-size":Y[0],"line-height":Z??Y[1].lineHeight}}},P9=($)=>{if($.utility==="font"&&$.value){if($.arbitrary){let Q=$.typeHint;if(Q==="family-name"||Q==="string")return{"font-family":$.value};return{"font-weight":$.value}}let J={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"};return J[$.value]?{"font-weight":J[$.value]}:void 0}return},C9=($)=>{if($.utility==="leading"&&$.value){if($.arbitrary)return{"line-height":$.value};let J={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2","3":"0.75rem","4":"1rem","5":"1.25rem","6":"1.5rem","7":"1.75rem","8":"2rem","9":"2.25rem","10":"2.5rem"};return J[$.value]?{"line-height":J[$.value]}:void 0}return},y9=($)=>{if($.utility==="text"&&$.value){let J={left:"left",center:"center",right:"right",justify:"justify"};return J[$.value]?{"text-align":J[$.value]}:void 0}},h9=($)=>{if($.utility==="border"){if(!$.value)return{"border-width":"1px"};let J={0:"0px",2:"2px",4:"4px",8:"8px"};if(J[$.value])return{"border-width":J[$.value]};let Q={t:"border-top-width",r:"border-right-width",b:"border-bottom-width",l:"border-left-width",s:"border-inline-start-width",e:"border-inline-end-width"};if($.value==="x")return{"border-left-width":"1px","border-right-width":"1px"};if($.value==="y")return{"border-top-width":"1px","border-bottom-width":"1px"};let Z=Q[$.value];if(typeof Z==="string")return{[Z]:"1px"};return}},v9=($,J)=>{let Q={"border-t":"border-top-width","border-r":"border-right-width","border-b":"border-bottom-width","border-l":"border-left-width","border-x":["border-left-width","border-right-width"],"border-y":["border-top-width","border-bottom-width"],"border-s":"border-inline-start-width","border-e":"border-inline-end-width"},Z={"border-t":"border-top-color","border-r":"border-right-color","border-b":"border-bottom-color","border-l":"border-left-color","border-x":["border-left-color","border-right-color"],"border-y":["border-top-color","border-bottom-color"],"border-s":"border-inline-start-color","border-e":"border-inline-end-color"},q=Q[$.utility];if(!q)return;let Y={0:"0px",2:"2px",4:"4px",8:"8px"};if(!$.value){let j=q;if(Array.isArray(j))return j.reduce((z,H)=>({...z,[H]:"1px"}),{});return{[j]:"1px"}}if($.arbitrary){let j=$.value,W=(/^#|^(?:rgb|rgba|hsl|hsla|oklch|oklab|lab|lch)\(|^(?:currentColor|transparent|inherit)$/i.test(j)?Z[$.utility]:q)??q;if(Array.isArray(W))return W.reduce((U,G)=>({...U,[G]:j}),{});return{[W]:j}}if(Y[$.value]){let j=q;if(Array.isArray(j))return j.reduce((z,H)=>({...z,[H]:Y[$.value]}),{});return{[j]:Y[$.value]}}let X=Z[$.utility];if(X&&J){let j=$.value.split("-");if(j.length>=2){let H=j[j.length-1],W=j.slice(0,-1).join("-"),U=J.theme.colors[W];if(U&&typeof U==="object"&&U[H]){let G=X;if(Array.isArray(G))return G.reduce((B,_)=>({...B,[_]:U[H]}),{});return{[G]:U[H]}}}let z=J.theme.colors[$.value];if(typeof z==="string"){let H=X;if(Array.isArray(H))return H.reduce((W,U)=>({...W,[U]:z}),{});return{[H]:z}}if($.value==="transparent"||$.value==="current"||$.value==="inherit"){let H=$.value==="current"?"currentColor":$.value,W=X;if(Array.isArray(W))return W.reduce((U,G)=>({...U,[G]:H}),{});return{[W]:H}}}return},f9=($,J)=>{if($.utility==="rounded"){if($.arbitrary&&$.value)return{"border-radius":$.value};let q=$.value?J.theme.borderRadius[$.value]:J.theme.borderRadius.DEFAULT;return q?{"border-radius":q}:void 0}if($.utility==="rounded-s"&&$.value){let q=J.theme.borderRadius[$.value]||$.value;return{"border-start-start-radius":q,"border-end-start-radius":q}}if($.utility==="rounded-e"&&$.value){let q=J.theme.borderRadius[$.value]||$.value;return{"border-start-end-radius":q,"border-end-end-radius":q}}if($.utility==="rounded-ss"&&$.value)return{"border-start-start-radius":J.theme.borderRadius[$.value]||$.value};if($.utility==="rounded-se"&&$.value)return{"border-start-end-radius":J.theme.borderRadius[$.value]||$.value};if($.utility==="rounded-es"&&$.value)return{"border-end-start-radius":J.theme.borderRadius[$.value]||$.value};if($.utility==="rounded-ee"&&$.value)return{"border-end-end-radius":J.theme.borderRadius[$.value]||$.value};let Z={"rounded-t":["border-top-left-radius","border-top-right-radius"],"rounded-r":["border-top-right-radius","border-bottom-right-radius"],"rounded-b":["border-bottom-left-radius","border-bottom-right-radius"],"rounded-l":["border-top-left-radius","border-bottom-left-radius"],"rounded-tl":["border-top-left-radius"],"rounded-tr":["border-top-right-radius"],"rounded-bl":["border-bottom-left-radius"],"rounded-br":["border-bottom-right-radius"]}[$.utility];if(Z&&$.value){let q=J.theme.borderRadius[$.value]||$.value,Y={};for(let X of Z)Y[X]=q;return Y}},x0=[w1,b9,x9,k9,N9,y9,..._1,P9,C9,...k0,V9,R9,...W1,...L1,L9,I9,_9,T9,E9,A9,O9,M9,...K1,...I1,...k0,...D1,...B1,v9,h9,f9,D9,F9,w9,K9];function V0($,J){let Q={...$};for(let Z in J){let q=J[Z],Y=Q[Z];if(q&&typeof q==="object"&&!Array.isArray(q)&&Y&&typeof Y==="object"&&!Array.isArray(Y))Q[Z]=V0(Y,q);else if(q!==void 0)Q[Z]=q}return Q}var m9={block:{display:"block"},"inline-block":{display:"inline-block"},inline:{display:"inline"},flex:{display:"flex"},"inline-flex":{display:"inline-flex"},grid:{display:"grid"},"inline-grid":{display:"inline-grid"},hidden:{display:"none"},none:{display:"none"}},g9={"flex-row":{"flex-direction":"row"},"flex-row-reverse":{"flex-direction":"row-reverse"},"flex-col":{"flex-direction":"column"},"flex-col-reverse":{"flex-direction":"column-reverse"}},u9={"flex-wrap":{"flex-wrap":"wrap"},"flex-wrap-reverse":{"flex-wrap":"wrap-reverse"},"flex-nowrap":{"flex-wrap":"nowrap"}},c9={"flex-1":{flex:"1 1 0%"},"flex-auto":{flex:"1 1 auto"},"flex-initial":{flex:"0 1 auto"},"flex-none":{flex:"none"}},n9={grow:{"flex-grow":"1"},"grow-0":{"flex-grow":"0"},shrink:{"flex-shrink":"1"},"shrink-0":{"flex-shrink":"0"}},d9={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"},l9={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"},i9={normal:"normal",center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"},o9={auto:"auto",start:"flex-start",end:"flex-end",center:"center",stretch:"stretch",baseline:"baseline"},p9={"border-solid":{"border-style":"solid"},"border-dashed":{"border-style":"dashed"},"border-dotted":{"border-style":"dotted"},"border-double":{"border-style":"double"},"border-none":{"border-style":"none"}},t9={transform:{transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-cpu":{transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-gpu":{transform:"translate3d(var(--hw-translate-x), var(--hw-translate-y), 0) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-none":{transform:"none"}},s9={"transition-none":{"transition-property":"none"},"transition-all":{"transition-property":"all"},transition:{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter"},"transition-colors":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke"},"transition-opacity":{"transition-property":"opacity"},"transition-shadow":{"transition-property":"box-shadow"},"transition-transform":{"transition-property":"transform"}},r9={"ease-linear":{"transition-timing-function":"linear"},"ease-in":{"transition-timing-function":"cubic-bezier(0.4, 0, 1, 1)"},"ease-out":{"transition-timing-function":"cubic-bezier(0, 0, 0.2, 1)"},"ease-in-out":{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}},a9={"animate-none":{animation:"none"},"animate-spin":{animation:"spin 1s linear infinite"},"animate-ping":{animation:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},"animate-pulse":{animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},"animate-bounce":{animation:"bounce 1s infinite"}},e9={spin:`@keyframes spin {
2
+ var a=import.meta.require;var q1=new Map,f=new Map,H5={col:"col",row:"row",jc:"justify",ji:"justify-items",js:"justify-self",ai:"items",ac:"content",as:"self",wrap:"wrap",nowrap:"nowrap",c:"center",s:"start",e:"end",sb:"between",sa:"around",se:"evenly",st:"stretch",thin:"thin",extralight:"extralight",light:"light",normal:"normal",medium:"medium",semibold:"semibold",bold:"bold",extrabold:"extrabold",black:"black",t:"top",r:"right",b:"bottom",l:"left"},j5=/[%#()]/,W5=/^\d+(\.\d+)?(px|rem|em|vh|vw|dvh|dvw|svh|svw|lvh|lvw|ch|ex|lh|cap|ic|rlh|vi|vb|vmin|vmax|cqw|cqh|cqi|cqb|cqmin|cqmax|cm|mm|in|pt|pc|Q)$/;function b($){return j5.test($)||W5.test($)}function z0($){if(!$.includes("_"))return $;let J="",Q=0;while(Q<$.length){let Z=$[Q];if(Z==="\\"&&$[Q+1]==="_"){J+="_",Q+=2;continue}if(Z==="u"&&$.slice(Q,Q+4)==="url("){let q=Q,Y=1;Q+=4;while(Q<$.length&&Y>0){if($[Q]==="(")Y++;else if($[Q]===")")Y--;Q++}J+=$.slice(q,Q);continue}J+=Z==="_"?" ":Z,Q++}return J}function Y1($,J){if(J.length!==2)return null;let[Q,Z]=J;if(Q!=="min"&&Q!=="max")return null;return[b(Z)?`${Q}-${$}-[${Z}]`:`${Q}-${$}-${Z}`]}var U5={flex:{expand:($,J)=>{let Q=J[$]||$;if(["col","row","col-reverse","row-reverse","wrap","nowrap","wrap-reverse"].includes(Q))return`flex-${Q}`;let Z=$.match(/^(jc|ji|js|ai|ac|as)-(.+)$/);if(Z){let q=J[Z[1]]||Z[1],Y=J[Z[2]]||Z[2];return`${q}-${Y}`}if(/^\d+$/.test(Q)||["grow","shrink","auto","initial","none"].includes(Q))return`flex-${Q}`;return null}},grid:{expand:($,J)=>{let Q=J[$]||$;if($.startsWith("cols-")||$.startsWith("rows-"))return`grid-${$}`;if($.startsWith("flow-"))return`grid-${$}`;if($.startsWith("gap-"))return $;return null}},text:{expand:($,J)=>{let Q=J[$]||$;if(b(Q))return`text-[${Q}]`;if(/^\d{3}$/.test(Q))return{"100":"font-thin","200":"font-extralight","300":"font-light","400":"font-normal","500":"font-medium","600":"font-semibold","700":"font-bold","800":"font-extrabold","900":"font-black"}[Q]||`font-[${Q}]`;if(/^[a-z-]+$/i.test(Q)&&!["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(Q)){if(["white","black","red","blue","green","yellow","purple","pink","gray","slate","zinc","neutral","stone","orange","amber","lime","emerald","teal","cyan","sky","indigo","violet","fuchsia","rose","inherit","current","transparent"].includes(Q.toLowerCase()))return`text-${Q}`;return`font-[${Q}]`}return`text-${Q}`}},font:{expand:($,J)=>{let Q=J[$]||$,Z=["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],q=["sans","serif","mono"];if(Z.includes(Q)||q.includes(Q))return`font-${Q}`;if(/^\d{3}$/.test(Q))return{"100":"font-thin","200":"font-extralight","300":"font-light","400":"font-normal","500":"font-medium","600":"font-semibold","700":"font-bold","800":"font-extrabold","900":"font-black"}[Q]||`font-[${Q}]`;return`font-[${Q}]`}},bg:{expand:($,J)=>{return`bg-${J[$]||$}`}},w:{expand:($,J)=>{let Q=J[$]||$;if(b(Q))return`w-[${Q}]`;return`w-${Q}`},multiValue:($)=>Y1("w",$)},h:{expand:($,J)=>{let Q=J[$]||$;if(b(Q))return`h-[${Q}]`;return`h-${Q}`},multiValue:($)=>Y1("h",$)},p:{expand:($)=>`p-${$}`},px:{expand:($)=>`px-${$}`},py:{expand:($)=>`py-${$}`},pt:{expand:($)=>`pt-${$}`},pr:{expand:($)=>`pr-${$}`},pb:{expand:($)=>`pb-${$}`},pl:{expand:($)=>`pl-${$}`},m:{expand:($)=>`m-${$}`},mx:{expand:($)=>`mx-${$}`},my:{expand:($)=>`my-${$}`},mt:{expand:($)=>`mt-${$}`},mr:{expand:($)=>`mr-${$}`},mb:{expand:($)=>`mb-${$}`},ml:{expand:($)=>`ml-${$}`},scroll:{expand:($)=>{if(["x","y"].includes($))return null;if(["auto","hidden","scroll","visible"].includes($))return`overflow-${$}`;return null},multiValue:($)=>{if($.length===2){let[J,Q]=$;if(["x","y"].includes(J)&&["auto","hidden","scroll","visible"].includes(Q))return[`overflow-${J}-${Q}`]}return null}},overflow:{expand:($)=>`overflow-${$}`,multiValue:($)=>{if($.length===2){let[J,Q]=$;if(["x","y"].includes(J))return[`overflow-${J}-${Q}`]}return null}},border:{expand:($)=>`border-${$}`},rounded:{expand:($)=>`rounded-${$}`},shadow:{expand:($)=>`shadow-${$}`},gap:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-"))return`gap-${$}`;return`gap-${$}`}},space:{expand:($)=>`space-${$}`},opacity:{expand:($)=>`opacity-${$}`},z:{expand:($)=>`z-${$}`},inset:{expand:($,J)=>{let Q=J[$]||$;if(Q.startsWith("x-")||Q.startsWith("y-"))return`inset-${Q}`;if(b(Q))return`inset-[${Q}]`;return`inset-${Q}`}},top:{expand:($)=>b($)?`top-[${$}]`:`top-${$}`},right:{expand:($)=>b($)?`right-[${$}]`:`right-${$}`},bottom:{expand:($)=>b($)?`bottom-[${$}]`:`bottom-${$}`},left:{expand:($)=>b($)?`left-[${$}]`:`left-${$}`},duration:{expand:($)=>`duration-${$}`},delay:{expand:($)=>`delay-${$}`},ease:{expand:($)=>`ease-${$}`},transition:{expand:($)=>{if(["all","none","colors","opacity","shadow","transform"].includes($))return`transition-${$}`;if(/^\d+$/.test($))return`duration-${$}`;if(["linear","in","out","in-out","ease-linear","ease-in","ease-out","ease-in-out"].includes($))return $.startsWith("ease-")?$:`ease-${$}`;return`transition-${$}`}},translate:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-")||$.startsWith("z-"))return`translate-${$}`;return`translate-${$}`}},rotate:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-")||$.startsWith("z-"))return`rotate-${$}`;return`rotate-${$}`}},scale:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-")||$.startsWith("z-"))return`scale-${$}`;return`scale-${$}`}},skew:{expand:($)=>{if($.startsWith("x-")||$.startsWith("y-"))return`skew-${$}`;return`skew-${$}`}},origin:{expand:($)=>`origin-${$}`},cursor:{expand:($)=>`cursor-${$}`},select:{expand:($)=>`select-${$}`},resize:{expand:($)=>`resize-${$}`},appearance:{expand:($)=>`appearance-${$}`},pointer:{expand:($)=>`pointer-events-${$}`},outline:{expand:($)=>`outline-${$}`},ring:{expand:($)=>`ring-${$}`},blur:{expand:($)=>`blur-${$}`},brightness:{expand:($)=>`brightness-${$}`},contrast:{expand:($)=>`contrast-${$}`},grayscale:{expand:($)=>`grayscale-${$}`},saturate:{expand:($)=>`saturate-${$}`},sepia:{expand:($)=>`sepia-${$}`},backdrop:{expand:($)=>`backdrop-${$}`},aspect:{expand:($)=>`aspect-${$}`},columns:{expand:($)=>`columns-${$}`},break:{expand:($)=>`break-${$}`},object:{expand:($)=>`object-${$}`},overscroll:{expand:($)=>`overscroll-${$}`},place:{expand:($)=>`place-${$}`},items:{expand:($)=>`items-${$}`},justify:{expand:($)=>`justify-${$}`},content:{expand:($)=>`content-${$}`},self:{expand:($)=>`self-${$}`},order:{expand:($)=>`order-${$}`},col:{expand:($)=>`col-${$}`},row:{expand:($)=>`row-${$}`},tracking:{expand:($)=>`tracking-${$}`},leading:{expand:($)=>`leading-${$}`},list:{expand:($)=>`list-${$}`},decoration:{expand:($)=>`decoration-${$}`},underline:{expand:($)=>`underline-${$}`},accent:{expand:($)=>`accent-${$}`},caret:{expand:($)=>`caret-${$}`},"scroll-m":{expand:($)=>`scroll-m-${$}`},"scroll-p":{expand:($)=>`scroll-p-${$}`},snap:{expand:($)=>`snap-${$}`},touch:{expand:($)=>`touch-${$}`},will:{expand:($)=>`will-change-${$}`},fill:{expand:($)=>`fill-${$}`},stroke:{expand:($)=>`stroke-${$}`},sr:{expand:($)=>`sr-${$}`},invert:{expand:($)=>`invert-${$}`},"hue-rotate":{expand:($)=>b($)?`hue-rotate-[${$}]`:`hue-rotate-${$}`},"drop-shadow":{expand:($)=>`drop-shadow-${$}`},"backdrop-invert":{expand:($)=>`backdrop-invert-${$}`},"backdrop-hue-rotate":{expand:($)=>b($)?`backdrop-hue-rotate-[${$}]`:`backdrop-hue-rotate-${$}`},animate:{expand:($)=>`animate-${$}`},"forced-colors":{expand:($)=>`forced-colors-${$}`}},e=new Set(["sm","md","lg","xl","2xl","hover","focus","active","visited","disabled","enabled","focus-within","focus-visible","group-hover","group-focus","peer-hover","peer-focus","dark","first","last","odd","even","only","first-of-type","last-of-type","checked","indeterminate","default","required","valid","invalid","in-range","out-of-range","placeholder-shown","autofill","read-only","empty","before","after","selection","marker","file","print","motion-safe","motion-reduce","contrast-more","contrast-less","rtl","ltr","portrait","landscape","@sm","@md","@lg","@xl","@2xl"]);function G5($,J){let Q=`${$}:${J?.colonSyntax}:${JSON.stringify(J?.aliases||{})}`,Z=f.get(Q);if(Z)return Z;let q={...H5,...J?.aliases};if(J?.colonSyntax===!0){let K=$.match(/^([a-z][a-z0-9-]*):([^[\]:]+)$/i);if(K){let[,L,T]=K;if(!e.has(L)){if(b(T)){let w=[`${L}-[${T}]`];return f.set(Q,w),w}let F=[`${L}-${T}`];return f.set(Q,F),F}}}let Y="",X=$,j=!1;if(X.startsWith("-"))j=!0,X=X.slice(1);let z=X.match(/^((?:[a-z@][a-z0-9-]*:)+)(.+)$/i);if(z){if(z[1].slice(0,-1).split(":").every((T)=>e.has(T)))Y=z[1],X=z[2]}let H=X.match(/^([a-z][a-z0-9-]*)\[([^\]]*)\]$/i);if(!H||X.includes("-[")){let K=[$];return f.set(Q,K),K}let[,W,U]=H,G=U.split(/\s+/).filter(Boolean);if(G.length===0)return f.set(Q,[]),[];let B=U5[W.toLowerCase()];if(B?.multiValue){let K=B.multiValue(G,q);if(K){let L=K.map((T)=>{return`${Y}${j?"-":""}${T}`});return f.set(Q,L),L}}if(!B){let K=[];for(let L of G){let T=L.match(/^([a-z@][a-z0-9-]*):(.+)$/i),F="",w=L;if(T&&e.has(T[1]))F=`${T[1]}:`,w=T[2];let E="";if(w.startsWith("-"))E="-",w=w.slice(1);let P="";if(w.endsWith("!"))P="!",w=w.slice(0,-1);let k=j?"-":"";if(b(w))K.push(`${Y}${F}${P}${k}${E}${W}-[${w}]`);else K.push(`${Y}${F}${P}${k}${E}${W}-${w}`)}return f.set(Q,K),K}let _=[];for(let K of G){let L=K.match(/^([a-z@][a-z0-9-]*):(.+)$/i),T="",F=K;if(L&&e.has(L[1]))T=`${L[1]}:`,F=L[2];let w="";if(F.startsWith("-"))w="-",F=F.slice(1);let E="";if(F.endsWith("!"))E="!",F=F.slice(0,-1);let P=B.expand(F,q);if(P){let k=j?"-":"";_.push(`${Y}${T}${E}${k}${w}${P}`)}}return f.set(Q,_),_}function B5($,J){let Q=new Set;if(!J?.enabled)return Q;let Z=J.prefix??"hw-",q=["class","className","style","id","name","type","value","href","src","alt","title","role","for","action","method","target","rel","placeholder","disabled","checked","selected","readonly","required","maxlength","minlength","pattern","autocomplete","autofocus","tabindex","contenteditable","draggable","spellcheck","lang","dir","hidden","slot","part","is","key","ref"],Y=J.ignoreAttributes||q,X=(H)=>{let W=H.includes(":")?H.split(":").pop():H;for(let U of Y)if(U.endsWith("*")){if(W.startsWith(U.slice(0,-1)))return!0}else if(W===U)return!0;if(W.startsWith("on"))return!0;if(W.startsWith("data-")||W.startsWith("aria-"))return!0;return!1},j=/<([a-z][a-z0-9-]*)\s([^>]*)>/gi,z;while((z=j.exec($))!==null){let H=z[2],W=/([a-z][a-z0-9-:]*)(?:=["']([^"']*)["'])?(?=\s|$|\/?>)/gi,U;while((U=W.exec(H))!==null){let G=U[1],B=U[2];if(Z){if(!G.startsWith(Z))continue;G=G.slice(Z.length)}if(X(G))continue;let _="",K=G,L=G.match(/^((?:[a-z@][a-z0-9-]*:)+)([a-z][a-z0-9-]*)$/i);if(L){if(L[1].slice(0,-1).split(":").every((w)=>e.has(w)))_=L[1],K=L[2]}if(B!==void 0){let T=B.split(/\s+/).filter(Boolean);for(let F of T){let w=`${_}${K}-${F}`;if(z1(w.replace(/^(?:[a-z@][a-z0-9-]*:)+/gi,"")))Q.add(w)}}else{let T=`${_}${K}`;if(z1(K))Q.add(T)}}}return Q}function z1($){if(!$||$.length===0)return!1;return/^[a-z][a-z0-9-/]*(?:-\[[^\]]+\])?$/i.test($)}function j1($){let J=q1.get($);if(J)return J;let Q=K5($);return q1.set($,Q),Q}function K5($){let J=!1,Q=$;if($.startsWith("!"))J=!0,Q=$.slice(1);else if($.endsWith("!")&&$.length>1)J=!0,Q=$.slice(0,-1);let Z=Q.match(/^\[([a-z-]+):(.+)\]$/);if(Z)return{raw:$,variants:[],utility:Z[1],value:z0(Z[2]),important:J,arbitrary:!0};let q=Q.match(/^((?:[a-z-]+:)*)(-?[a-z-]+?)-\[([^\]]+)\]\/\[([^\]]+)\]$/);if(q){let[,F,w,E,P]=q,k=F?F.split(":").filter(Boolean):[],t=w.startsWith("-"),s=t?w.slice(1):w,r=z0(E);if(t)r=r.startsWith("-")?r:`-${r}`;return{raw:$,variants:k,utility:s,value:`${r}/${P}`,important:J,arbitrary:!0}}let Y=Q.match(/^((?:[a-z-]+:)*)(-?[a-z-]+?)-\[(.+)\]$/);if(Y){let F=Y[1],w=F?F.split(":").filter(Boolean):[],E=Y[2],P=E.startsWith("-");if(P)E=E.slice(1);let k=z0(Y[3]),t,s=k.match(/^(color|length|url|number|percentage|position|line-width|absolute-size|relative-size|image|angle|time|flex|string|family-name):(.*)/i);if(s)t=s[1].toLowerCase(),k=s[2];if(P)k=k.startsWith("-")?k:`-${k}`;return{raw:$,variants:w,utility:E,value:k,important:J,arbitrary:!0,typeHint:t}}let X=[],j="",z=0;for(let F=0;F<Q.length;F++){let w=Q[F];if(w==="[")z++;else if(w==="]")z--;if(w===":"&&z===0)X.push(j),j="";else j+=w}X.push(j);let H=X[X.length-1],W=X.slice(0,-1);if(H.startsWith("!")&&H.length>1)J=!0,H=H.slice(1);else if(H.endsWith("!")&&H.length>1)J=!0,H=H.slice(0,-1);if(W.length>0)Q=`${W.join(":")}:${H}`;else Q=H;if(["inline-block","inline-flex","inline-grid","flex-row","flex-row-reverse","flex-col","flex-col-reverse","flex-wrap","flex-wrap-reverse","flex-nowrap","flex-1","flex-auto","flex-initial","flex-none","flex-grow","flex-shrink"].includes(H))return{raw:$,variants:W,utility:H,value:void 0,important:J,arbitrary:!1};let G=H.match(/^([a-z-]+?)-\[(.+?)\]$/);if(G){let F=z0(G[2]),w,E=F.match(/^(color|length|url|number|percentage|position|line-width|absolute-size|relative-size|image|angle|time|flex|string|family-name):(.*)/i);if(E)w=E[1].toLowerCase(),F=E[2];return{raw:$,variants:W,utility:G[1],value:F,important:J,arbitrary:!0,typeHint:w}}let B=["inset-x","inset-y","border-t","border-r","border-b","border-l","border-x","border-y","border-s","border-e","grid-cols","grid-rows","grid-flow","auto-cols","auto-rows","col-span","row-span","col-start","col-end","row-start","row-end","translate-x","translate-y","translate-z","scale-x","scale-y","scale-z","rotate-x","rotate-y","rotate-z","skew-x","skew-y","scroll-m","scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml","scroll-p","scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl","gap-x","gap-y","overflow-x","overflow-y","min-w","max-w","min-h","max-h","space-x","space-y","ring-offset","underline-offset","outline-offset","backdrop-blur","backdrop-brightness","backdrop-contrast","backdrop-grayscale","backdrop-invert","backdrop-saturate","backdrop-sepia","hue-rotate","drop-shadow","mask-clip","flex-grow","flex-shrink","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","perspective-origin","justify-self","form-input","form-textarea","form-select","form-multiselect","form-checkbox","form-radio","mix-blend","bg-blend","line-clamp","border-spacing","border-spacing-x","border-spacing-y","rounded-s","rounded-e","rounded-ss","rounded-se","rounded-es","rounded-ee","rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-bl","rounded-br","border-opacity","ring-opacity","stroke-dasharray","stroke-dashoffset","animate-iteration","animate-duration","animate-delay","text-emphasis","text-emphasis-color","word-spacing","column-gap","column-rule"];if(H==="divide-x"||H==="divide-y")return{raw:$,variants:W,utility:H,value:void 0,important:J,arbitrary:!1};let _=H.match(/^(divide-[xy])-(.+)$/);if(_)return{raw:$,variants:W,utility:_[1],value:_[2],important:J,arbitrary:!1};for(let F of B)if(H.startsWith(`${F}-`))return{raw:$,variants:W,utility:F,value:H.slice(F.length+1),important:J,arbitrary:!1};if(H.startsWith("-")){let F=H.slice(1);for(let E of B)if(F.startsWith(`${E}-`))return{raw:$,variants:W,utility:E,value:`-${F.slice(E.length+1)}`,important:J,arbitrary:!1};let w=F.match(/^([a-z]+(?:-[a-z]+)*?)-(.+)$/);if(w)return{raw:$,variants:W,utility:w[1],value:`-${w[2]}`,important:J,arbitrary:!1};return{raw:$,variants:W,utility:F,value:void 0,important:J,arbitrary:!1}}let K=H.match(/^([a-z]+(?:-[a-z]+)*?)-(.+?)\/(\d+|\[\d*\.?\d+\])$/);if(K&&["bg","text","border","ring","placeholder","divide","accent","caret","fill","stroke","outline","decoration","shadow","ring-offset","from","via","to"].includes(K[1]))return{raw:$,variants:W,utility:K[1],value:`${K[2]}/${K[3]}`,important:J,arbitrary:!1};let L=H.match(/^([a-z]+(?:-[a-z]+)*?)-(\d+)\/(\d+)$/);if(L)return{raw:$,variants:W,utility:L[1],value:`${L[2]}/${L[3]}`,important:J,arbitrary:!1};let T=H.match(/^([a-z]+(?:-[a-z]+)*?)-(.+)$/);if(T)return{raw:$,variants:W,utility:T[1],value:T[2],important:J,arbitrary:!1};return{raw:$,variants:W,utility:H,value:void 0,important:J,arbitrary:!1}}function F5($,J){if(!$||$.length===0)return!1;if(/^\[[a-z-]+:[^\]]+\]$/i.test($))return!0;if(J?.enabled&&/^[a-z]+\[[^\]]+\]$/i.test($))return!0;if(J?.colonSyntax&&/^[a-z]+:[^[\]:]+$/i.test($))return!0;return/^!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?(?::!?-?[a-z][a-z0-9.-]*(?:-\[[^\]]+\])?)*$/i.test($)}function X1($){let J=[],Q="",Z=0;for(let q of $)if(q==="[")Z++,Q+=q;else if(q==="]")Z--,Q+=q;else if(/\s/.test(q)&&Z===0){if(Q)J.push(Q),Q=""}else Q+=q;if(Q)J.push(Q);return J}function X0($,J){let Q=new Set,Z=[/class(?:Name)?=["']([^"']+)["']/g,/class(?:Name)?=\{["']([^"']+)["']\}/g,/class(?:Name)?=\{`([^`]+)`\}/g];for(let q of Z){let Y;while((Y=q.exec($))!==null){let X=Y[1],j=X.match(/["']([^"']+)["']/g);if(j)for(let W of j){let U=W.replace(/["']/g,""),G=X1(U);for(let B of G)H1(Q,B,J)}let z=X.replace(/["'`]/g," ").replace(/\$\{[^}]+\}/g," "),H=X1(z).filter((W)=>F5(W,J?.bracketSyntax));for(let W of H)H1(Q,W,J)}}if(J?.attributify?.enabled){let q=B5($,J.attributify);for(let Y of q)Q.add(Y)}return Q}function H1($,J,Q){if(Q?.bracketSyntax?.enabled){let Z=/^[a-z]+\[[^\]]+\]$/i.test(J),q=Q.bracketSyntax.colonSyntax&&/^[a-z]+:[^[\]]+$/i.test(J);if(Z||q){let Y=G5(J,Q.bracketSyntax);for(let X of Y)$.add(X);return}}$.add(J)}var w5=($,J)=>{let Q={"0":"0",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",screen:"100vw"};if($.utility==="min-w"&&$.value)return{"min-width":J.theme.spacing[$.value]||Q[$.value]||$.value};if($.utility==="max-w"&&$.value)return{"max-width":J.theme.spacing[$.value]||Q[$.value]||$.value};if($.utility==="min-h"&&$.value){let Z={...Q,screen:"100vh"};return{"min-height":J.theme.spacing[$.value]||Z[$.value]||$.value}}if($.utility==="max-h"&&$.value){let Z={...Q,screen:"100vh"};return{"max-height":J.theme.spacing[$.value]||Z[$.value]||$.value}}},D5=($,J)=>{if($.utility==="ring"){if($.value==="inset")return{"--hw-ring-inset":"inset"};if($.value){let q=R($.value,J);if(q)return{"--hw-ring-color":q}}let Q={0:"0",1:"1px",2:"2px",4:"4px",8:"8px",DEFAULT:"3px"};return{"--hw-ring-offset-shadow":"var(--hw-ring-inset) 0 0 0 var(--hw-ring-offset-width) var(--hw-ring-offset-color)","--hw-ring-shadow":`var(--hw-ring-inset) 0 0 0 calc(${$.value?Q[$.value]||$.value:Q.DEFAULT} + var(--hw-ring-offset-width)) var(--hw-ring-color)`,"box-shadow":"var(--hw-ring-offset-shadow), var(--hw-ring-shadow), var(--hw-shadow, 0 0 #0000)"}}if($.utility==="ring-offset"&&$.value){let Q={0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"};if(Q[$.value])return{"--hw-ring-offset-width":Q[$.value]};let Z=R($.value,J);if(Z)return{"--hw-ring-offset-color":Z}}if($.utility==="ring-opacity"&&$.value)return{"--hw-ring-opacity":{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[$.value]||$.value}},L5=($)=>{if($.utility==="border-opacity"&&$.value)return{"--hw-border-opacity":{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[$.value]||$.value}},I5=($,J)=>{if($.utility==="space-x"&&$.value){if($.value==="reverse")return{properties:{"--hw-space-x-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q;if($.value.startsWith("-")){let Z=$.value.slice(1),q=J.theme.spacing[Z];Q=q?`-${q}`:$.value}else Q=J.theme.spacing[$.value]||$.value;return{properties:{"--hw-space-x-reverse":"0","margin-right":`calc(${Q} * var(--hw-space-x-reverse))`,"margin-left":`calc(${Q} * calc(1 - var(--hw-space-x-reverse)))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="space-y"&&$.value){if($.value==="reverse")return{properties:{"--hw-space-y-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q;if($.value.startsWith("-")){let Z=$.value.slice(1),q=J.theme.spacing[Z];Q=q?`-${q}`:$.value}else Q=J.theme.spacing[$.value]||$.value;return{properties:{"--hw-space-y-reverse":"0","margin-top":`calc(${Q} * calc(1 - var(--hw-space-y-reverse)))`,"margin-bottom":`calc(${Q} * var(--hw-space-y-reverse))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}},_5=($)=>{if($.utility==="border"&&$.value){let J={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};if(J[$.value])return{"border-style":J[$.value]}}},T5=($,J)=>{if($.utility==="divide"&&$.value){let Q={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",none:"none"};if(Q[$.value])return{properties:{"border-style":Q[$.value]},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="divide-x"){if($.value==="reverse")return{properties:{"--hw-divide-x-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q={0:"0",2:"2px",4:"4px",8:"8px",DEFAULT:"1px"},Z=$.value?Q[$.value]||$.value:Q.DEFAULT;return{properties:{"--hw-divide-x-reverse":"0","border-right-width":`calc(${Z} * var(--hw-divide-x-reverse))`,"border-left-width":`calc(${Z} * calc(1 - var(--hw-divide-x-reverse)))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="divide-y"){if($.value==="reverse")return{properties:{"--hw-divide-y-reverse":"1"},childSelector:"> :not([hidden]) ~ :not([hidden])"};let Q={0:"0",2:"2px",4:"4px",8:"8px",DEFAULT:"1px"},Z=$.value?Q[$.value]||$.value:Q.DEFAULT;return{properties:{"--hw-divide-y-reverse":"0","border-top-width":`calc(${Z} * calc(1 - var(--hw-divide-y-reverse)))`,"border-bottom-width":`calc(${Z} * var(--hw-divide-y-reverse))`},childSelector:"> :not([hidden]) ~ :not([hidden])"}}if($.utility==="divide"&&$.value){let Q=$.value.indexOf("/"),Z=$.value,q;if(Q!==-1){Z=$.value.slice(0,Q);let H=$.value.slice(Q+1);if(H.charCodeAt(0)===91&&H.charCodeAt(H.length-1)===93){if(q=Number.parseFloat(H.slice(1,-1)),Number.isNaN(q)||q<0||q>1)return}else{let W=Number.parseInt(H,10);if(Number.isNaN(W)||W<0||W>100)return;q=W/100}}let Y=(H)=>{if(q!==void 0){if(H.charCodeAt(0)===35){let W=H.slice(1);if(W.length===3)W=W[0]+W[0]+W[1]+W[1]+W[2]+W[2];let U=Number.parseInt(W.slice(0,2),16),G=Number.parseInt(W.slice(2,4),16),B=Number.parseInt(W.slice(4,6),16);H=`rgb(${U} ${G} ${B} / ${q})`}else if(H.startsWith("oklch("))H=H.replace(")",` / ${q})`)}return{properties:{"border-color":H},childSelector:"> :not([hidden]) ~ :not([hidden])"}},X={current:"currentColor",transparent:"transparent",inherit:"inherit"};if(X[Z])return Y(X[Z]);let j=J.theme.colors[Z];if(typeof j==="string")return Y(j);let z=Z.split("-");if(z.length>=2){let H=z[z.length-1],W=z.slice(0,-1).join("-"),U=J.theme.colors[W];if(typeof U==="object"&&U[H])return Y(U[H])}}},E5=($,J)=>{let Q=(Z)=>{let q=null,Y=Z,X=Z.indexOf("/");if(X!==-1){Y=Z.slice(0,X);let W=Z.slice(X+1);if(W.startsWith("[")&&W.endsWith("]"))q=W.slice(1,-1);else{let U=Number.parseInt(W,10);if(!Number.isNaN(U))q=(U/100).toString()}}let j=(W)=>{if(!q)return W;let U=W.match(/^(oklch|rgb|hsl|oklab|lab|lch)\(([^)]+)\)$/i);if(U){let G=U[1],B=U[2].split("/")[0].trim();return`${G}(${B} / ${q})`}if(/^#[0-9a-f]{3,8}$/i.test(W)){let G=W.replace("#",""),B=(T)=>Number.parseInt(T.length===1?T+T:T,16),_=B(G.slice(0,G.length===3?1:2)),K=B(G.slice(G.length===3?1:2,G.length===3?2:4)),L=B(G.slice(G.length===3?2:4,G.length===3?3:6));return`rgb(${_} ${K} ${L} / ${q})`}return`color-mix(in srgb, ${W} ${Math.round(Number.parseFloat(q)*100)}%, transparent)`};if(Y.startsWith("[")&&Y.endsWith("]"))Y=Y.slice(1,-1);let z=J.theme.colors[Y];if(typeof z==="string")return j(z);let H=Y.split("-");if(H.length>=2){let W=H.slice(0,-1).join("-"),U=H[H.length-1],G=J.theme.colors[W];if(typeof G==="object"&&G[U])return j(G[U])}if(Y.startsWith("#"))return j(Y);return j(Y)};if($.utility==="from"&&$.value)return{"--hw-gradient-from":Q($.value),"--hw-gradient-to":"rgb(255 255 255 / 0)","--hw-gradient-stops":"var(--hw-gradient-from), var(--hw-gradient-to)"};if($.utility==="via"&&$.value)return{"--hw-gradient-to":"rgb(255 255 255 / 0)","--hw-gradient-stops":`var(--hw-gradient-from), ${Q($.value)}, var(--hw-gradient-to)`};if($.utility==="to"&&$.value)return{"--hw-gradient-to":Q($.value),"--hw-gradient-stops":"var(--hw-gradient-from), var(--hw-gradient-to)"}},A5=($)=>{if($.utility==="order"&&$.value)return{order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"}[$.value]||$.value}},O5=($,J)=>{if($.utility==="basis"&&$.value){if($.value.includes("/")){let[Z,q]=$.value.split("/").map(Number);return{"flex-basis":`${Z/q*100}%`}}return{"flex-basis":{auto:"auto",full:"100%",0:"0"}[$.value]||J.theme.spacing[$.value]||$.value}}},M5=($)=>{if($.utility==="justify-self"){let J={auto:"auto",start:"start",end:"end",center:"center",stretch:"stretch"};return $.value?{"justify-self":J[$.value]||$.value}:void 0}},k5=($)=>{if($.utility==="self"){let J={auto:"auto",start:"flex-start",end:"flex-end",center:"center",stretch:"stretch",baseline:"baseline"};return $.value?{"align-self":J[$.value]||$.value}:void 0}},b5=($,J)=>{if($.utility==="container"){if(!$.value)return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":J.theme.screens.xl||"1280px"};let Q={sm:J.theme.screens.sm||"640px",md:J.theme.screens.md||"768px",lg:J.theme.screens.lg||"1024px",xl:J.theme.screens.xl||"1280px","2xl":J.theme.screens["2xl"]||"1536px",full:"100%",prose:"65ch","3xl":"1920px"};if(Q[$.value])return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":Q[$.value]};if($.arbitrary)return{width:"100%","margin-left":"auto","margin-right":"auto","max-width":$.value}}},x5=($)=>{let J=$.raw.replace(/^!/,"");if($.arbitrary&&$.utility&&$.value&&J.startsWith("["))return{[$.utility]:$.value}},W1=[w5,D5,L5,_5,I5,T5,E5,A5,O5,M5,k5,b5,x5];var M0=null,U1=null;function S5($){let J=new Map;for(let[Q,Z]of Object.entries($))if(typeof Z==="string")J.set(Q,Z);else if(typeof Z==="object"&&Z!==null){for(let[q,Y]of Object.entries(Z))if(typeof Y==="string")J.set(`${Q}-${q}`,Y)}return J}function R5($,J){if($.charCodeAt(0)===35){let Q=$.slice(1);if(Q.length===3)Q=Q[0]+Q[0]+Q[1]+Q[1]+Q[2]+Q[2];let Z=Number.parseInt(Q.slice(0,2),16),q=Number.parseInt(Q.slice(2,4),16),Y=Number.parseInt(Q.slice(4,6),16);return`rgb(${Z} ${q} ${Y} / ${J})`}return $}function V5($){return $.replace(/rgba?\([^)]+\)/g,"var(--hw-shadow-color)")}var N5=($)=>{if($.utility==="bg"&&$.value){let J={fixed:"fixed",local:"local",scroll:"scroll"};return J[$.value]?{"background-attachment":J[$.value]}:void 0}return},P5=($)=>{if($.utility==="bg"&&$.value&&$.value.startsWith("clip-")){let J=$.value.replace("clip-",""),Q={border:"border-box",padding:"padding-box",content:"content-box",text:"text"};return Q[J]?{"background-clip":Q[J]}:void 0}return},C5=($)=>{if($.utility==="bg"&&$.value){let J={"gradient-to-t":"linear-gradient(to top, var(--hw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--hw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--hw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--hw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--hw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--hw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--hw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--hw-gradient-stops))"};if(J[$.value])return{"background-image":J[$.value]}}},y5=($)=>{let J={"bg-origin-border":"border-box","bg-origin-padding":"padding-box","bg-origin-content":"content-box"};return J[$.raw]?{"background-origin":J[$.raw]}:void 0},h5=($)=>{let J={"bg-bottom":"bottom","bg-center":"center","bg-left":"left","bg-left-bottom":"left bottom","bg-left-top":"left top","bg-right":"right","bg-right-bottom":"right bottom","bg-right-top":"right top","bg-top":"top"};return J[$.raw]?{"background-position":J[$.raw]}:void 0},v5=($)=>{let J={"bg-repeat":"repeat","bg-no-repeat":"no-repeat","bg-repeat-x":"repeat-x","bg-repeat-y":"repeat-y","bg-repeat-round":"round","bg-repeat-space":"space"};return J[$.raw]?{"background-repeat":J[$.raw]}:void 0},f5=($)=>{let J={"bg-auto":"auto","bg-cover":"cover","bg-contain":"contain"};return J[$.raw]?{"background-size":J[$.raw]}:void 0},m5=($)=>{if($.utility==="border"&&$.value){let J={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};return J[$.value]?{"border-style":J[$.value]}:void 0}return},g5=($,J)=>{if($.utility==="outline-offset"&&$.value)return{"outline-offset":{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"}[$.value]||$.value};if($.utility==="outline"&&$.value){let Q={none:"none",solid:"solid",dashed:"dashed",dotted:"dotted",double:"double"};if(Q[$.value])return{"outline-style":Q[$.value]}}if($.utility==="outline"){if(!$.value)return{"outline-width":"1px"};let Q=R($.value,J);if(Q)return{"outline-color":Q};let Z={0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"};if(Z[$.value])return{"outline-width":Z[$.value]};return{"outline-width":$.value}}},u5=($,J)=>{if($.utility==="shadow"){let Q=$.value?J.theme.boxShadow[$.value]:J.theme.boxShadow.DEFAULT;if(!Q)return;if(Q==="none")return{"--hw-shadow":"0 0 #0000","box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"};let Z=V5(Q);return{"--hw-shadow":Q,"--hw-shadow-colored":Z,"box-shadow":"var(--hw-ring-offset-shadow, 0 0 #0000), var(--hw-ring-shadow, 0 0 #0000), var(--hw-shadow)"}}},c5=($,J)=>{if($.utility!=="shadow"||!$.value)return;if(J.theme.boxShadow[$.value])return;if(M0===null||U1!==J.theme.colors)M0=S5(J.theme.colors),U1=J.theme.colors;let Q=$.value,Z=Q.indexOf("/"),q,Y;if(Z!==-1){q=Q.slice(0,Z);let z=Q.slice(Z+1);if(z.charCodeAt(0)===91&&z.charCodeAt(z.length-1)===93){let H=Number.parseFloat(z.slice(1,-1));if(Number.isNaN(H)||H<0||H>1)return;Y=H}else{let H=Number.parseInt(z,10);if(Number.isNaN(H)||H<0||H>100)return;Y=H/100}}else q=Q;let X=M0.get(q);if(!X)return;return{"--hw-shadow-color":Y!==void 0?R5(X,Y):X,"--hw-shadow":"var(--hw-shadow-colored)"}},n5=($)=>{if($.utility==="text-shadow"){let J={sm:"0 1px 2px rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px rgba(0, 0, 0, 0.1)",md:"0 4px 6px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px rgba(0, 0, 0, 0.1)",none:"none"};return $.value?{"text-shadow":J[$.value]||$.value}:void 0}},d5=($)=>{if($.utility==="opacity"&&$.value)return{opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"}[$.value]||$.value}},l5=($)=>{if($.utility==="mix-blend"){let J=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];return $.value&&J.includes($.value)?{"mix-blend-mode":$.value}:void 0}},i5=($)=>{if($.utility==="bg-blend"){let J=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];return $.value&&J.includes($.value)?{"background-blend-mode":$.value}:void 0}},o5=($)=>{if($.utility==="mask-clip"&&$.value)return{"mask-clip":{border:"border-box",padding:"padding-box",content:"content-box",text:"text",fill:"fill-box",stroke:"stroke-box",view:"view-box","no-clip":"no-clip"}[$.value]||$.value};if($.utility==="mask-composite"&&$.value)return["add","subtract","intersect","exclude"].includes($.value)?{"mask-composite":$.value}:void 0;if($.utility==="mask-image"&&$.value){if($.value==="none")return{"mask-image":"none"};return{"mask-image":`url(${$.value})`}}if($.utility==="mask-mode"&&$.value)return["alpha","luminance","match-source"].includes($.value)?{"mask-mode":$.value}:void 0;if($.utility==="mask-origin"&&$.value)return{"mask-origin":{border:"border-box",padding:"padding-box",content:"content-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}[$.value]||$.value};if($.utility==="mask-position"&&$.value)return{"mask-position":{center:"center",top:"top",right:"right",bottom:"bottom",left:"left","top-left":"top left","top-right":"top right","bottom-left":"bottom left","bottom-right":"bottom right"}[$.value]||$.value};if($.utility==="mask-repeat"&&$.value)return{"mask-repeat":{repeat:"repeat","no-repeat":"no-repeat","repeat-x":"repeat-x","repeat-y":"repeat-y",round:"round",space:"space"}[$.value]||$.value};if($.utility==="mask-size"&&$.value)return{"mask-size":{auto:"auto",cover:"cover",contain:"contain"}[$.value]||$.value};if($.utility==="mask-type"&&$.value)return["alpha","luminance"].includes($.value)?{"mask-type":$.value}:void 0},k0=[N5,P5,C5,y5,h5,v5,f5,m5,g5,u5,c5,n5,d5,l5,i5,o5];var H0={appearance:"none","background-color":"#fff","border-color":"#6b7280","border-width":"1px","border-radius":"0px","padding-top":"0.5rem","padding-right":"0.75rem","padding-bottom":"0.5rem","padding-left":"0.75rem","font-size":"1rem","line-height":"1.5rem"},G1={appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:"1rem",width:"1rem",color:"#2563eb","background-color":"#fff","border-color":"#6b7280","border-width":"1px"},p5=($)=>{if($.utility==="form-input"&&!$.value)return H0},t5=($)=>{if($.utility==="form-textarea"&&!$.value)return H0},s5=($)=>{if($.utility==="form-select"&&!$.value)return{...H0,"background-image":`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,"background-position":"right 0.5rem center","background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":"2.5rem","print-color-adjust":"exact"}},r5=($)=>{if($.utility==="form-multiselect"&&!$.value)return{...H0,"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","print-color-adjust":"unset"}},a5=($)=>{if($.utility==="form-checkbox"&&!$.value)return{...G1,"border-radius":"0px"}},e5=($)=>{if($.utility==="form-radio"&&!$.value)return{...G1,"border-radius":"100%"}},B1=[p5,t5,s5,r5,a5,e5];var $6=($)=>{if($.utility==="grid-cols"){let J={1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",none:"none",subgrid:"subgrid"};return $.value?{"grid-template-columns":J[$.value]||$.value}:void 0}},J6=($)=>{if($.utility==="col"){let J={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"};return $.value?{"grid-column":J[$.value]||$.value}:void 0}if($.utility==="col-span"&&$.value){let J={auto:"auto",1:"span 1 / span 1",2:"span 2 / span 2",3:"span 3 / span 3",4:"span 4 / span 4",5:"span 5 / span 5",6:"span 6 / span 6",7:"span 7 / span 7",8:"span 8 / span 8",9:"span 9 / span 9",10:"span 10 / span 10",11:"span 11 / span 11",12:"span 12 / span 12",full:"1 / -1"};if($.arbitrary)return{"grid-column":`span ${$.value} / span ${$.value}`};return{"grid-column":J[$.value]||$.value}}if($.utility==="col-start"&&$.value)return{"grid-column-start":$.value};if($.utility==="col-end"&&$.value)return{"grid-column-end":$.value}},Q6=($)=>{if($.utility==="grid-rows"){let J={1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",none:"none",subgrid:"subgrid"};return $.value?{"grid-template-rows":J[$.value]||$.value}:void 0}},Z6=($)=>{if($.utility==="row"){let J={auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"};return $.value?{"grid-row":J[$.value]||$.value}:void 0}if($.utility==="row-span"&&$.value){let J={auto:"auto",1:"span 1 / span 1",2:"span 2 / span 2",3:"span 3 / span 3",4:"span 4 / span 4",5:"span 5 / span 5",6:"span 6 / span 6",full:"1 / -1"};if($.arbitrary)return{"grid-row":`span ${$.value} / span ${$.value}`};return{"grid-row":J[$.value]||$.value}}if($.utility==="row-start"&&$.value)return{"grid-row-start":$.value};if($.utility==="row-end"&&$.value)return{"grid-row-end":$.value}},q6=($)=>{if($.utility==="grid-flow"&&$.value){let J={row:"row",col:"column",dense:"dense","row-dense":"row dense","col-dense":"column dense"};return J[$.value]?{"grid-auto-flow":J[$.value]}:void 0}return},Y6=($)=>{if($.utility==="auto-cols"){let J={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return $.value?{"grid-auto-columns":J[$.value]||$.value}:void 0}},z6=($)=>{if($.utility==="auto-rows"){let J={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};return $.value?{"grid-auto-rows":J[$.value]||$.value}:void 0}};function b0($,J){let Q=$.theme.spacing?.[J];if(Q!==void 0)return Q;if(/^\d+(?:\.\d+)?$/.test(J)){let Z=Number.parseFloat(J);if(Number.isFinite(Z))return`${Z*0.25}rem`}return J}var X6=($,J)=>{if($.utility==="gap"&&$.value)return{gap:b0(J,$.value)};if($.utility==="gap-x"&&$.value)return{"column-gap":b0(J,$.value)};if($.utility==="gap-y"&&$.value)return{"row-gap":b0(J,$.value)}},H6=($)=>{if($.utility==="place"&&$.value&&$.value.startsWith("content-")){let J=$.value.replace("content-",""),Q={center:"center",start:"start",end:"end",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"};return Q[J]?{"place-content":Q[J]}:void 0}return},j6=($)=>{if($.utility==="place"&&$.value&&$.value.startsWith("items-")){let J=$.value.replace("items-",""),Q={start:"start",end:"end",center:"center",stretch:"stretch"};return Q[J]?{"place-items":Q[J]}:void 0}return},W6=($)=>{if($.utility==="place"&&$.value&&$.value.startsWith("self-")){let J=$.value.replace("self-",""),Q={auto:"auto",start:"start",end:"end",center:"center",stretch:"stretch"};return Q[J]?{"place-self":Q[J]}:void 0}return},K1=[$6,J6,Q6,Z6,q6,Y6,z6,X6,H6,j6,W6];import{existsSync as U6,readFileSync as G6}from"fs";import{join as F1}from"path";var j0=new Map;function B6($){if(j0.has($))return j0.get($);let J=[F1(process.cwd(),"node_modules","@iconify-json",$,"icons.json"),F1(process.cwd(),"node_modules",".bun","@iconify-json",$,"icons.json")];for(let Q of J)if(U6(Q))try{let Z=JSON.parse(G6(Q,"utf-8"));return j0.set($,Z),Z}catch{}return j0.set($,null),null}function K6($,J){let Q=$.icons[J];if(Q)return Q;let Z=$.aliases?.[J];if(Z)return $.icons[Z.parent]??null;return null}function F6($,J){let Q=J.width??$.width??24,Z=J.height??$.height??24,q=J.left??0,Y=J.top??0;return`<svg xmlns='http://www.w3.org/2000/svg' viewBox='${q} ${Y} ${Q} ${Z}' width='${Q}' height='${Z}'>${J.body}</svg>`}function w6($){return`url("data:image/svg+xml;utf8,${$.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\?/g,"%3F").replace(/\s+/g," ")}")`}var D6=/^i-([a-z][a-z0-9]*)-(.+)$/,w1=($,J)=>{let Q=$.raw.match(D6);if(!Q)return;let[,Z,q]=Q,Y=B6(Z);if(!Y)return;let X=K6(Y,q);if(!X)return;let j=w6(F6(Y,X));return{display:"inline-block",width:"1em",height:"1em","background-color":"currentColor","-webkit-mask":`${j} no-repeat`,mask:`${j} no-repeat`,"-webkit-mask-size":"100% 100%","mask-size":"100% 100%","vertical-align":"-0.125em"}};var W0={none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},L6=($)=>{if($.raw==="filter-none")return{filter:"none"};if($.utility==="blur"){let J=$.value||"DEFAULT";return{filter:`blur(${W0[J]??($.value?/^\d/.test($.value)?`${$.value}px`:$.value:W0.DEFAULT)})`}}if($.utility==="brightness"&&$.value)return{filter:`brightness(${Number($.value)/100})`};if($.utility==="contrast"&&$.value)return{filter:`contrast(${Number($.value)/100})`};if($.utility==="grayscale"&&$.value)return{filter:`grayscale(${Number($.value)/100})`};if($.utility==="invert"&&$.value)return{filter:`invert(${Number($.value)/100})`};if($.utility==="saturate"&&$.value)return{filter:`saturate(${Number($.value)/100})`};if($.utility==="sepia"&&$.value)return{filter:`sepia(${Number($.value)/100})`};if($.utility==="hue-rotate"&&$.value)return{filter:`hue-rotate(${$.value}deg)`};if($.utility==="drop-shadow"){let J={sm:"drop-shadow(0 1px 1px rgb(0 0 0 / 0.05))",DEFAULT:"drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06))",md:"drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))",lg:"drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))","2xl":"drop-shadow(0 25px 25px rgb(0 0 0 / 0.15))",none:"drop-shadow(0 0 #0000)"};return{filter:$.value?J[$.value]||`drop-shadow(${$.value})`:J.DEFAULT}}},I6=($)=>{if($.raw==="backdrop-filter-none")return{"backdrop-filter":"none"};if($.utility==="backdrop-blur"){let J=$.value||"DEFAULT",Q=W0[J]??($.value?/^\d/.test($.value)?`${$.value}px`:$.value:W0.DEFAULT);return{"-webkit-backdrop-filter":`blur(${Q})`,"backdrop-filter":`blur(${Q})`}}if($.utility==="backdrop-brightness"&&$.value){let J=`brightness(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-contrast"&&$.value){let J=`contrast(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-grayscale"&&$.value){let J=`grayscale(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-invert"&&$.value){let J=`invert(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-saturate"&&$.value){let J=`saturate(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}if($.utility==="backdrop-sepia"&&$.value){let J=`sepia(${Number($.value)/100})`;return{"-webkit-backdrop-filter":J,"backdrop-filter":J}}},_6=($)=>{let J={"border-collapse":"collapse","border-separate":"separate"};return J[$.raw]?{"border-collapse":J[$.raw]}:void 0},T6=($,J)=>{if($.utility==="border-spacing"&&$.value){let Q=J.theme.spacing[$.value]||$.value;return{"border-spacing":`${Q} ${Q}`}}if($.utility==="border-spacing-x"&&$.value)return{"border-spacing":`${J.theme.spacing[$.value]||$.value} 0`};if($.utility==="border-spacing-y"&&$.value)return{"border-spacing":`0 ${J.theme.spacing[$.value]||$.value}`}},E6=($)=>{if($.utility==="table"&&$.value){let J={auto:"auto",fixed:"fixed"};return J[$.value]?{"table-layout":J[$.value]}:void 0}return},A6=($)=>{let J={"caption-top":"top","caption-bottom":"bottom"};return J[$.raw]?{"caption-side":J[$.raw]}:void 0},O6=($,J)=>{if($.utility==="accent"&&$.value){let Q=R($.value,J);if(Q)return{"accent-color":Q}}},M6=($)=>{let J={"appearance-none":"none","appearance-auto":"auto"};return J[$.raw]?{appearance:J[$.raw]}:void 0},k6=($,J)=>{if($.utility==="caret"&&$.value){let Q=R($.value,J);if(Q)return{"caret-color":Q}}},b6=($)=>{let J={"color-scheme-normal":"normal","color-scheme-light":"light","color-scheme-dark":"dark","color-scheme-light-dark":"light dark"};return J[$.raw]?{"color-scheme":J[$.raw]}:void 0},x6=($)=>{let J={"field-sizing-content":"content","field-sizing-fixed":"fixed"};return J[$.raw]?{"field-sizing":J[$.raw]}:void 0},S6=($)=>{let J={"cursor-auto":"auto","cursor-default":"default","cursor-pointer":"pointer","cursor-wait":"wait","cursor-text":"text","cursor-move":"move","cursor-help":"help","cursor-not-allowed":"not-allowed","cursor-none":"none","cursor-context-menu":"context-menu","cursor-progress":"progress","cursor-cell":"cell","cursor-crosshair":"crosshair","cursor-vertical-text":"vertical-text","cursor-alias":"alias","cursor-copy":"copy","cursor-no-drop":"no-drop","cursor-grab":"grab","cursor-grabbing":"grabbing","cursor-all-scroll":"all-scroll","cursor-col-resize":"col-resize","cursor-row-resize":"row-resize","cursor-n-resize":"n-resize","cursor-e-resize":"e-resize","cursor-s-resize":"s-resize","cursor-w-resize":"w-resize","cursor-ne-resize":"ne-resize","cursor-nw-resize":"nw-resize","cursor-se-resize":"se-resize","cursor-sw-resize":"sw-resize","cursor-ew-resize":"ew-resize","cursor-ns-resize":"ns-resize","cursor-nesw-resize":"nesw-resize","cursor-nwse-resize":"nwse-resize","cursor-zoom-in":"zoom-in","cursor-zoom-out":"zoom-out"};return J[$.raw]?{cursor:J[$.raw]}:void 0},R6=($)=>{let J={"pointer-events-none":"none","pointer-events-auto":"auto"};return J[$.raw]?{"pointer-events":J[$.raw]}:void 0},V6=($)=>{let J={"resize-none":"none",resize:"both","resize-y":"vertical","resize-x":"horizontal"};return J[$.raw]?{resize:J[$.raw]}:void 0},N6=($)=>{let J={"scroll-auto":"auto","scroll-smooth":"smooth"};return J[$.raw]?{"scroll-behavior":J[$.raw]}:void 0},P6=($,J)=>{let Z={"scroll-m":["scroll-margin"],"scroll-mx":["scroll-margin-left","scroll-margin-right"],"scroll-my":["scroll-margin-top","scroll-margin-bottom"],"scroll-mt":["scroll-margin-top"],"scroll-mr":["scroll-margin-right"],"scroll-mb":["scroll-margin-bottom"],"scroll-ml":["scroll-margin-left"]}[$.utility];if(!Z||!$.value)return;let q=J.theme.spacing[$.value]||$.value,Y={};for(let X of Z)Y[X]=q;return Y},C6=($,J)=>{let Z={"scroll-p":["scroll-padding"],"scroll-px":["scroll-padding-left","scroll-padding-right"],"scroll-py":["scroll-padding-top","scroll-padding-bottom"],"scroll-pt":["scroll-padding-top"],"scroll-pr":["scroll-padding-right"],"scroll-pb":["scroll-padding-bottom"],"scroll-pl":["scroll-padding-left"]}[$.utility];if(!Z||!$.value)return;let q=J.theme.spacing[$.value]||$.value,Y={};for(let X of Z)Y[X]=q;return Y},y6=($)=>{let J={"snap-none":"none","snap-x":"x mandatory","snap-y":"y mandatory","snap-both":"both mandatory","snap-mandatory":"mandatory","snap-proximity":"proximity"};if(J[$.raw])return $.raw.includes("mandatory")||$.raw.includes("proximity")?{"scroll-snap-type":J[$.raw]}:{"scroll-snap-type":J[$.raw]};let Q={"snap-start":"start","snap-end":"end","snap-center":"center","snap-align-none":"none"};if(Q[$.raw])return{"scroll-snap-align":Q[$.raw]};let Z={"snap-normal":"normal","snap-always":"always"};if(Z[$.raw])return{"scroll-snap-stop":Z[$.raw]}},h6=($)=>{let J={"touch-auto":"auto","touch-none":"none","touch-pan-x":"pan-x","touch-pan-left":"pan-left","touch-pan-right":"pan-right","touch-pan-y":"pan-y","touch-pan-up":"pan-up","touch-pan-down":"pan-down","touch-pinch-zoom":"pinch-zoom","touch-manipulation":"manipulation"};return J[$.raw]?{"touch-action":J[$.raw]}:void 0},v6=($)=>{let J={"select-none":"none","select-text":"text","select-all":"all","select-auto":"auto"};return J[$.raw]?{"user-select":J[$.raw]}:void 0},f6=($)=>{let J={"will-change-auto":"auto","will-change-scroll":"scroll-position","will-change-contents":"contents","will-change-transform":"transform"};return J[$.raw]?{"will-change":J[$.raw]}:void 0},m6=($,J)=>{if($.utility==="fill"&&$.value){if($.value==="none")return{fill:"none"};let Q=R($.value,J);if(Q)return{fill:Q}}},g6=($,J)=>{if($.utility==="stroke"&&$.value){if($.value==="none")return{stroke:"none"};let Q=R($.value,J);if(Q)return{stroke:Q}}},u6=($)=>{if($.utility==="stroke"&&$.value)return{"stroke-width":{0:"0",1:"1",2:"2"}[$.value]||$.value}},c6=($)=>{if($.utility==="stroke-dasharray"&&$.value)return{"stroke-dasharray":$.value==="none"?"none":$.value}},n6=($)=>{if($.utility==="stroke-dashoffset"&&$.value)return{"stroke-dashoffset":$.value}},d6=($)=>{let J={"stroke-linecap-butt":"butt","stroke-linecap-round":"round","stroke-linecap-square":"square"};return J[$.raw]?{"stroke-linecap":J[$.raw]}:void 0},l6=($)=>{let J={"stroke-linejoin-miter":"miter","stroke-linejoin-round":"round","stroke-linejoin-bevel":"bevel"};return J[$.raw]?{"stroke-linejoin":J[$.raw]}:void 0},i6=($)=>{if($.raw==="sr-only")return{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"};if($.raw==="not-sr-only")return{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"};return},o6=($)=>{let J={"forced-color-adjust-auto":"auto","forced-color-adjust-none":"none"};return J[$.raw]?{"forced-color-adjust":J[$.raw]}:void 0},D1=[L6,I6,_6,T6,E6,A6,O6,M6,k6,b6,x6,S6,R6,V6,N6,P6,C6,y6,h6,v6,f6,m6,g6,u6,c6,n6,d6,l6,i6,o6];var p6=($)=>{if($.utility==="aspect"){let J={auto:"auto",square:"1 / 1",video:"16 / 9"};return $.value?{"aspect-ratio":J[$.value]||$.value}:void 0}},t6=($,J)=>{if($.utility==="columns"&&$.value){let Q={"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","10":"10","11":"11","12":"12",auto:"auto"},Z={"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"};if(Q[$.value])return{columns:Q[$.value]};if(Z[$.value])return{columns:Z[$.value]};if(J.theme.spacing[$.value])return{columns:J.theme.spacing[$.value]};return{columns:$.value}}},s6=($)=>{let J={"column-fill-auto":"auto","column-fill-balance":"balance","column-fill-balance-all":"balance-all"};return J[$.raw]?{"column-fill":J[$.raw]}:void 0},r6=($,J)=>{if($.utility==="column-gap"&&$.value)return{"column-gap":J.theme.spacing[$.value]||$.value}},a6=($,J)=>{if($.utility==="column-rule"&&$.value){let Q={"0":"0px","1":"1px","2":"2px","4":"4px","8":"8px"};if(Q[$.value])return{"column-rule-width":Q[$.value]};let Z=$.value.split("-");if(Z.length===2){let[X,j]=Z,z=J.theme.colors[X];if(typeof z==="object"&&z[j])return{"column-rule-color":z[j]}}let q=J.theme.colors[$.value];if(typeof q==="string")return{"column-rule-color":q};let Y={solid:"solid",dashed:"dashed",dotted:"dotted",double:"double",hidden:"hidden",none:"none"};if(Y[$.value])return{"column-rule-style":Y[$.value]}}},e6=($)=>{let J={"column-span-all":"all","column-span-none":"none"};return J[$.raw]?{"column-span":J[$.raw]}:void 0},$8=($)=>{return{"break-before-auto":{"break-before":"auto"},"break-before-avoid":{"break-before":"avoid"},"break-before-all":{"break-before":"all"},"break-before-avoid-page":{"break-before":"avoid-page"},"break-before-page":{"break-before":"page"},"break-after-auto":{"break-after":"auto"},"break-after-avoid":{"break-after":"avoid"},"break-after-all":{"break-after":"all"},"break-after-avoid-page":{"break-after":"avoid-page"},"break-after-page":{"break-after":"page"},"break-inside-auto":{"break-inside":"auto"},"break-inside-avoid":{"break-inside":"avoid"},"break-inside-avoid-page":{"break-inside":"avoid-page"},"break-inside-avoid-column":{"break-inside":"avoid-column"}}[$.raw]},J8=($)=>{let J={"box-decoration-clone":"clone","box-decoration-slice":"slice"};return J[$.raw]?{"box-decoration-break":J[$.raw]}:void 0},Q8=($)=>{let J={"box-border":"border-box","box-content":"content-box"};return J[$.raw]?{"box-sizing":J[$.raw]}:void 0},Z8=($)=>{let J={"float-start":"inline-start","float-end":"inline-end","float-right":"right","float-left":"left","float-none":"none"};return J[$.raw]?{float:J[$.raw]}:void 0},q8=($)=>{let J={"clear-start":"inline-start","clear-end":"inline-end","clear-left":"left","clear-right":"right","clear-both":"both","clear-none":"none"};return J[$.raw]?{clear:J[$.raw]}:void 0},Y8=($)=>{let J={isolate:"isolate","isolation-auto":"auto"};return J[$.raw]?{isolation:J[$.raw]}:void 0},z8=($)=>{let J={"object-contain":"contain","object-cover":"cover","object-fill":"fill","object-none":"none","object-scale-down":"scale-down"};return J[$.raw]?{"object-fit":J[$.raw]}:void 0},X8=($)=>{let J={"object-bottom":"bottom","object-center":"center","object-left":"left","object-left-bottom":"left bottom","object-left-top":"left top","object-right":"right","object-right-bottom":"right bottom","object-right-top":"right top","object-top":"top"};return J[$.raw]?{"object-position":J[$.raw]}:void 0},H8=($)=>{if($.utility==="overflow"){let J=["auto","hidden","clip","visible","scroll"];if($.value&&J.includes($.value))return{overflow:$.value}}if($.utility==="overflow-x"||$.utility==="overflow-y"){let J=["auto","hidden","clip","visible","scroll"];if($.value&&J.includes($.value))return{[$.utility]:$.value}}},j8=($)=>{let J={"overscroll-auto":"auto","overscroll-contain":"contain","overscroll-none":"none","overscroll-x-auto":"auto","overscroll-x-contain":"contain","overscroll-x-none":"none","overscroll-y-auto":"auto","overscroll-y-contain":"contain","overscroll-y-none":"none"},Q=$.raw.startsWith("overscroll-x")?"overscroll-behavior-x":$.raw.startsWith("overscroll-y")?"overscroll-behavior-y":"overscroll-behavior";return J[$.raw]?{[Q]:J[$.raw]}:void 0},W8=($)=>{if(["static","fixed","absolute","relative","sticky"].includes($.utility))return{position:$.utility}},U8=($,J)=>{let Z={inset:["top","right","bottom","left"],"inset-x":["left","right"],"inset-y":["top","bottom"],top:["top"],right:["right"],bottom:["bottom"],left:["left"],start:["inset-inline-start"],end:["inset-inline-end"]}[$.utility];if(!Z||!$.value)return;let q=(j)=>{if(j.includes("/")){let[z,H]=j.split("/").map(Number);if(!Number.isNaN(z)&&!Number.isNaN(H)&&H!==0)return`${z/H*100}%`}if(j==="full")return"100%";if(j==="auto")return"auto";return J.theme.spacing[j]||j},Y;if($.value.startsWith("-")){let j=$.value.slice(1),z=q(j);if(z.endsWith("%"))Y=`${-Number.parseFloat(z)}%`;else Y=z.startsWith("-")?z:`-${z}`}else Y=q($.value);let X={};for(let j of Z)X[j]=Y;return X},G8=($)=>{let J={visible:"visible",invisible:"hidden",collapse:"collapse"};return J[$.utility]?{visibility:J[$.utility]}:void 0},B8=($)=>{if($.utility==="z"&&$.value)return{"z-index":{0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",auto:"auto"}[$.value]||$.value}},L1=[p6,t6,s6,r6,a6,e6,$8,J8,Q8,Z8,q8,Y8,z8,X8,H8,j8,W8,U8,G8,B8];var K8=($)=>{let J={transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-cpu":"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-gpu":"translate3d(var(--hw-translate-x), var(--hw-translate-y), 0) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))","transform-none":"none"};return J[$.raw]?{transform:J[$.raw]}:void 0},F8=($)=>{if($.utility==="scale"){if(!$.value)return{transform:"scale(1)"};if($.arbitrary)return{transform:`scale(${$.value})`};return{transform:`scale(${Number($.value)/100})`}}if($.utility==="scale-x"){if(!$.value)return{transform:"scaleX(1)"};if($.arbitrary)return{transform:`scaleX(${$.value})`};return{transform:`scaleX(${Number($.value)/100})`}}if($.utility==="scale-y"){if(!$.value)return{transform:"scaleY(1)"};if($.arbitrary)return{transform:`scaleY(${$.value})`};return{transform:`scaleY(${Number($.value)/100})`}}if($.utility==="scale-z"){if(!$.value)return{transform:"scaleZ(1)"};if($.arbitrary)return{transform:`scaleZ(${$.value})`};return{transform:`scaleZ(${Number($.value)/100})`}}},w8=($)=>{if($.utility==="rotate"&&$.value)return{transform:`rotate(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="rotate-x"&&$.value)return{transform:`rotateX(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="rotate-y"&&$.value)return{transform:`rotateY(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="rotate-z"&&$.value)return{transform:`rotateZ(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`}},D8=($,J)=>{let Q=(Z)=>{if(Z.includes("/")){let[q,Y]=Z.split("/");return`${Number(q)/Number(Y)*100}%`}if(Z==="full")return"100%";if(Z==="half")return"50%";return J.theme.spacing[Z]||Z};if($.utility==="translate-x"&&$.value){let Z;if($.value.startsWith("-")){let q=$.value.slice(1);Z=`-${Q(q)}`}else Z=Q($.value);return{transform:`translateX(${Z})`}}if($.utility==="translate-y"&&$.value){let Z;if($.value.startsWith("-")){let q=$.value.slice(1);Z=`-${Q(q)}`}else Z=Q($.value);return{transform:`translateY(${Z})`}}if($.utility==="translate-z"&&$.value){let Z;if($.value.startsWith("-")){let q=$.value.slice(1);Z=`-${Q(q)}`}else Z=Q($.value);return{transform:`translateZ(${Z})`}}},L8=($)=>{if($.utility==="skew-x"&&$.value)return{transform:`skewX(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`};if($.utility==="skew-y"&&$.value)return{transform:`skewY(${$.arbitrary||$.value.includes("deg")||$.value.includes("rad")||$.value.includes("turn")?$.value:`${$.value}deg`})`}},I8=($)=>{if($.utility==="origin"&&$.value){if($.arbitrary)return{"transform-origin":$.value.replace(/_/g," ")};let J={center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"};return J[$.value]?{"transform-origin":J[$.value]}:void 0}return},_8=($)=>{if($.utility==="perspective"&&$.value){if($.value==="none")return{perspective:"none"};if($.arbitrary||$.value.includes("px")||$.value.includes("rem")||$.value.includes("em"))return{perspective:$.value};return{perspective:`${$.value}px`}}return},T8=($)=>{if($.utility==="perspective-origin"&&$.value)return{"perspective-origin":{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"}[$.value]||$.value}},E8=($)=>{let J={"backface-visible":"visible","backface-hidden":"hidden"};return J[$.raw]?{"backface-visibility":J[$.raw]}:void 0},A8=($)=>{let J={"transform-flat":"flat","transform-3d":"preserve-3d"};return J[$.raw]?{"transform-style":J[$.raw]}:void 0},O8=($)=>{let J={"transition-none":"none","transition-all":"all",transition:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-colors":"color, background-color, border-color, text-decoration-color, fill, stroke","transition-opacity":"opacity","transition-shadow":"box-shadow","transition-transform":"transform"};return J[$.raw]?{"transition-property":J[$.raw]}:void 0},M8=($)=>{if($.utility==="duration"&&$.value)return{"transition-duration":{"0":"0s","75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},k8=($)=>{let J={"ease-linear":"linear","ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"};return J[$.raw]?{"transition-timing-function":J[$.raw]}:void 0},b8=($)=>{if($.utility==="delay"&&$.value)return{"transition-delay":{"0":"0s","75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},x8=($)=>{let J={"transition-behavior-normal":"normal","transition-behavior-allow-discrete":"allow-discrete"};return J[$.raw]?{"transition-behavior":J[$.raw]}:void 0},S8=($)=>{if($.utility!=="animate")return;let J={none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"};if($.arbitrary&&$.value)return{animation:$.value.replace(/_/g," ")};if($.value&&J[$.value])return{animation:J[$.value]};return},R8=($)=>{let J={"animate-running":"running","animate-paused":"paused"};return J[$.raw]?{"animation-play-state":J[$.raw]}:void 0},V8=($)=>{let J={"animate-normal":"normal","animate-reverse":"reverse","animate-alternate":"alternate","animate-alternate-reverse":"alternate-reverse"};return J[$.raw]?{"animation-direction":J[$.raw]}:void 0},N8=($)=>{let J={"animate-fill-none":"none","animate-fill-forwards":"forwards","animate-fill-backwards":"backwards","animate-fill-both":"both"};return J[$.raw]?{"animation-fill-mode":J[$.raw]}:void 0},P8=($)=>{if($.utility==="animate-iteration"&&$.value)return{"animation-iteration-count":$.value==="infinite"?"infinite":$.value}},C8=($)=>{if($.utility==="animate-duration"&&$.value)return{"animation-duration":{"75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},y8=($)=>{if($.utility==="animate-delay"&&$.value)return{"animation-delay":{"75":"75ms","100":"100ms","150":"150ms","200":"200ms","300":"300ms","500":"500ms","700":"700ms","1000":"1000ms"}[$.value]||`${$.value}ms`}},h8=($)=>{let J={"animate-ease-linear":"linear","animate-ease-in":"cubic-bezier(0.4, 0, 1, 1)","animate-ease-out":"cubic-bezier(0, 0, 0.2, 1)","animate-ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"};return J[$.raw]?{"animation-timing-function":J[$.raw]}:void 0},I1=[K8,F8,w8,D8,L8,I8,_8,T8,E8,A8,O8,x8,M8,k8,b8,S8,R8,V8,N8,P8,C8,y8,h8];var v8=($,J)=>{if($.utility==="font"&&$.value){let Q=J.theme.fontFamily[$.value];if(Q)return{"font-family":Q.join(", ")}}},f8=($)=>{return{antialiased:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"subpixel-antialiased":{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}}[$.raw]},m8=($)=>{let J={italic:"italic","not-italic":"normal"};return J[$.raw]?{"font-style":J[$.raw]}:void 0},g8=($)=>{if($.utility==="font-stretch"){let J=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"];return $.value&&J.includes($.value)?{"font-stretch":$.value}:void 0}},u8=($)=>{let J={"normal-nums":"normal",ordinal:"ordinal","slashed-zero":"slashed-zero","lining-nums":"lining-nums","oldstyle-nums":"oldstyle-nums","proportional-nums":"proportional-nums","tabular-nums":"tabular-nums","diagonal-fractions":"diagonal-fractions","stacked-fractions":"stacked-fractions"};return J[$.raw]?{"font-variant-numeric":J[$.raw]}:void 0},c8=($)=>{if($.utility==="tracking"){let J={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"};if(!$.value)return;if($.value.startsWith("-")){let Q=$.value.slice(1);return{"letter-spacing":`-${J[Q]||Q}`}}return{"letter-spacing":J[$.value]||$.value}}},n8=($)=>{if($.utility==="line-clamp"&&$.value)return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":$.value}},d8=($)=>{if($.utility==="list-image"&&$.value)return{"list-style-image":$.value==="none"?"none":`url(${$.value})`}},l8=($)=>{let J={"list-inside":"inside","list-outside":"outside"};return J[$.raw]?{"list-style-position":J[$.raw]}:void 0},i8=($)=>{if($.utility!=="list"||!$.value)return;let J={none:"none",disc:"disc",decimal:"decimal"};return J[$.value]?{"list-style-type":J[$.value]}:void 0},o8=($,J)=>{let Q={underline:"underline",overline:"overline","line-through":"line-through","no-underline":"none"};if(Q[$.raw])return{"text-decoration-line":Q[$.raw]};if($.utility==="decoration"&&$.value){let Z={solid:"solid",double:"double",dotted:"dotted",dashed:"dashed",wavy:"wavy"};if(Z[$.value])return{"text-decoration-style":Z[$.value]};let q={auto:"auto","from-font":"from-font","0":"0px","1":"1px","2":"2px","4":"4px","8":"8px"};if(q[$.value])return{"text-decoration-thickness":q[$.value]};if($.arbitrary)return{"text-decoration-thickness":$.value};let Y=R($.value,J);if(Y)return{"text-decoration-color":Y};return{"text-decoration-color":$.value}}return},p8=($)=>{if($.utility==="underline-offset"&&$.value)return{"text-underline-offset":{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"}[$.value]||$.value}},t8=($)=>{let J={uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize","normal-case":"none"};return J[$.raw]?{"text-transform":J[$.raw]}:void 0},s8=($)=>{return{truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},"text-ellipsis":{"text-overflow":"ellipsis"},"text-clip":{"text-overflow":"clip"}}[$.raw]},r8=($)=>{let J={"text-wrap":"wrap","text-nowrap":"nowrap","text-balance":"balance","text-pretty":"pretty"};return J[$.raw]?{"text-wrap":J[$.raw]}:void 0},a8=($,J)=>{if($.utility==="indent"&&$.value){if($.value.startsWith("-")){let Q=$.value.slice(1);return{"text-indent":`-${J.theme.spacing[Q]||Q}`}}return{"text-indent":J.theme.spacing[$.value]||$.value}}},e8=($)=>{let J={"align-baseline":"baseline","align-top":"top","align-middle":"middle","align-bottom":"bottom","align-text-top":"text-top","align-text-bottom":"text-bottom","align-sub":"sub","align-super":"super"};return J[$.raw]?{"vertical-align":J[$.raw]}:void 0},$9=($)=>{let J={"whitespace-normal":"normal","whitespace-nowrap":"nowrap","whitespace-pre":"pre","whitespace-pre-line":"pre-line","whitespace-pre-wrap":"pre-wrap","whitespace-break-spaces":"break-spaces"};return J[$.raw]?{"white-space":J[$.raw]}:void 0},J9=($)=>{if($.raw==="break-normal")return{"overflow-wrap":"normal","word-break":"normal"};if($.raw==="break-words")return{"overflow-wrap":"break-word"};let J={"break-all":"break-all","break-keep":"keep-all"};return J[$.raw]?{"word-break":J[$.raw]}:void 0},Q9=($)=>{let J={"overflow-wrap-normal":"normal","overflow-wrap-break":"break-word","overflow-wrap-anywhere":"anywhere"};return J[$.raw]?{"overflow-wrap":J[$.raw]}:void 0},Z9=($)=>{let J={"hyphens-none":"none","hyphens-manual":"manual","hyphens-auto":"auto"};return J[$.raw]?{hyphens:J[$.raw]}:void 0},q9=($)=>{if($.utility==="content"&&$.value){let J={none:"none"};if(J[$.value]||$.value.startsWith('"')||$.value.startsWith("'"))return{content:J[$.value]||$.value};return{content:`"${$.value}"`}}},Y9=($,J)=>{if($.utility==="leading"){if(!$.value)return;return{"line-height":{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"}[$.value]||$.value}}},z9=($)=>{let J={"writing-horizontal-tb":"horizontal-tb","writing-vertical-rl":"vertical-rl","writing-vertical-lr":"vertical-lr"};return J[$.raw]?{"writing-mode":J[$.raw]}:void 0},X9=($)=>{let J={"text-orientation-mixed":"mixed","text-orientation-upright":"upright","text-orientation-sideways":"sideways"};return J[$.raw]?{"text-orientation":J[$.raw]}:void 0},H9=($)=>{let J={"direction-ltr":"ltr","direction-rtl":"rtl"};return J[$.raw]?{direction:J[$.raw]}:void 0},j9=($)=>{if($.utility==="text-emphasis"&&$.value)return{"text-emphasis":{none:"none",filled:"filled",open:"open",dot:"dot",circle:"circle","double-circle":"double-circle",triangle:"triangle",sesame:"sesame"}[$.value]||$.value}},W9=($,J)=>{if($.utility==="text-emphasis-color"&&$.value){let Q=$.value.split("-");if(Q.length===2){let[q,Y]=Q,X=J.theme.colors[q];if(typeof X==="object"&&X[Y])return{"text-emphasis-color":X[Y]}}let Z=J.theme.colors[$.value];if(typeof Z==="string")return{"text-emphasis-color":Z}}},U9=($,J)=>{if($.utility==="word-spacing"&&$.value)return{"word-spacing":{tighter:"-0.05em",tight:"-0.025em",normal:"normal",wide:"0.025em",wider:"0.05em",widest:"0.1em"}[$.value]||J.theme.spacing[$.value]||$.value}},G9=($)=>{let J={"small-caps":"small-caps","all-small-caps":"all-small-caps","petite-caps":"petite-caps","all-petite-caps":"all-petite-caps",unicase:"unicase","titling-caps":"titling-caps","normal-caps":"normal"};return J[$.raw]?{"font-variant-caps":J[$.raw]}:void 0},B9=($)=>{let J={"ligatures-normal":"normal","ligatures-none":"none","common-ligatures":"common-ligatures","no-common-ligatures":"no-common-ligatures","discretionary-ligatures":"discretionary-ligatures","no-discretionary-ligatures":"no-discretionary-ligatures","historical-ligatures":"historical-ligatures","no-historical-ligatures":"no-historical-ligatures",contextual:"contextual","no-contextual":"no-contextual"};return J[$.raw]?{"font-variant-ligatures":J[$.raw]}:void 0},_1=[v8,f8,m8,g8,u8,G9,B9,c8,Y9,n8,d8,l8,i8,o8,p8,t8,s8,r8,a8,e8,$9,J9,Q9,Z9,q9,z9,X9,H9,j9,W9,U9];var K9=($)=>{if(["block","inline-block","inline","flex","inline-flex","grid","inline-grid","hidden","none","contents","flow-root","list-item"].includes($.utility)&&!$.value)return{display:$.utility==="hidden"?"none":$.utility};if($.utility==="table"){if(!$.value)return{display:"table"};if(new Set(["cell","row","row-group","column","column-group","header-group","footer-group","caption"]).has($.value))return{display:`table-${$.value}`}}if($.utility==="inline"&&$.value==="table")return{display:"inline-table"};if($.utility==="flow"&&$.value==="root")return{display:"flow-root"};if($.utility==="list"&&$.value==="item")return{display:"list-item"}},F9=($)=>{if($.utility==="scrollbar"&&$.value){let Q={auto:"auto",thin:"thin",none:"none"}[$.value];if(Q)return{"scrollbar-width":Q}}},w9=($)=>{if($.utility==="content"){if($.value==="none")return{content:"none"};if($.value==="empty")return{content:'""'};if($.arbitrary&&$.value)return{content:$.value}}},D9=($)=>{if($.utility==="@container")return{"container-type":"inline-size"};if($.utility==="@container-normal")return{"container-type":"normal"};if($.utility.startsWith("@container/"))return{"container-type":"inline-size","container-name":$.utility.slice(11)}},L9=($)=>{let J={"flex-row":"row","flex-row-reverse":"row-reverse","flex-col":"column","flex-col-reverse":"column-reverse"};return J[$.utility]?{"flex-direction":J[$.utility]}:void 0},I9=($)=>{let J={"flex-wrap":"wrap","flex-wrap-reverse":"wrap-reverse","flex-nowrap":"nowrap"};return J[$.utility]?{"flex-wrap":J[$.utility]}:void 0},_9=($)=>{if($.utility==="flex"||$.utility.startsWith("flex-")){let J={"flex-1":"1 1 0%","flex-auto":"1 1 auto","flex-initial":"0 1 auto","flex-none":"none"};if(J[$.utility])return{flex:J[$.utility]};if($.utility==="flex"&&$.arbitrary&&$.value)return{flex:$.value.replace(/_/g," ")}}return},T9=($)=>{if($.utility==="flex-grow"&&!$.value)return{"flex-grow":"1"};if($.utility==="flex-grow"&&$.value)return{"flex-grow":$.value}},E9=($)=>{if($.utility==="flex-shrink"&&!$.value)return{"flex-shrink":"1"};if($.utility==="flex-shrink"&&$.value)return{"flex-shrink":$.value}},A9=($)=>{if($.utility==="justify"&&$.value){let J={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"};if(J[$.value])return{"justify-content":J[$.value]};if($.arbitrary)return{"justify-content":$.value}}return},O9=($)=>{if($.utility==="items"&&$.value){let J={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"};if(J[$.value])return{"align-items":J[$.value]};if($.arbitrary)return{"align-items":$.value}}return},M9=($)=>{if($.utility==="justify"&&$.value&&$.value.startsWith("items-")){let J={"items-start":"start","items-end":"end","items-center":"center","items-stretch":"stretch"};return J[$.value]?{"justify-items":J[$.value]}:void 0}return},k9=($)=>{if($.utility==="content"&&$.value){let J={normal:"normal",center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"};return J[$.value]?{"align-content":J[$.value]}:void 0}return},b9=($,J)=>{let Z={p:["padding"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],ps:["padding-inline-start"],pe:["padding-inline-end"],m:["margin"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],ms:["margin-inline-start"],me:["margin-inline-end"]}[$.utility];if(!Z||!$.value)return;let q=(j)=>{let z=J.theme.spacing[j];if(z!==void 0)return z;if(/^\d+(?:\.\d+)?$/.test(j)){let H=Number.parseFloat(j);if(Number.isFinite(H))return`${H*0.25}rem`}return j},Y;if($.value.startsWith("-")){let j=$.value.slice(1);if(j==="0")Y=J.theme.spacing[j]||"0";else{let z=q(j);Y=z===j?$.value:`-${z}`}}else Y=q($.value);let X={};for(let j of Z)X[j]=Y;return X},x9=($,J)=>{if($.utility==="w"&&$.value){let Q={full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if($.value.includes("/")){let[q,Y]=$.value.split("/").map(Number);if(Number.isNaN(q)||Number.isNaN(Y)||Y===0)return;return{width:`${q/Y*100}%`}}return{width:J.theme.spacing[$.value]||Q[$.value]||$.value}}if($.utility==="h"&&$.value){let Q={full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if($.value.includes("/")){let[q,Y]=$.value.split("/").map(Number);if(Number.isNaN(q)||Number.isNaN(Y)||Y===0)return;return{height:`${q/Y*100}%`}}return{height:J.theme.spacing[$.value]||Q[$.value]||$.value}}if($.utility==="size"&&$.value){let Q={full:"100%",auto:"auto",min:"min-content",max:"max-content",fit:"fit-content"};if($.value.includes("/")){let[q,Y]=$.value.split("/").map(Number);if(Number.isNaN(q)||Number.isNaN(Y)||Y===0)return;let X=`${q/Y*100}%`;return{width:X,height:X}}let Z=J.theme.spacing[$.value]||Q[$.value]||$.value;return{width:Z,height:Z}}return},m=null,U0=null,S9={bg:"background-color",text:"color",border:"border-color"},T1={current:"currentColor",transparent:"transparent",inherit:"inherit"};function E1($){let J=new Map;for(let[Q,Z]of Object.entries($))if(typeof Z==="string")J.set(Q,Z);else if(typeof Z==="object"&&Z!==null){for(let[q,Y]of Object.entries(Z))if(typeof Y==="string")J.set(`${Q}-${q}`,Y)}return J}var R9=($,J)=>{let Q=S9[$.utility];if(!Q||!$.value)return;let Z=$.value;if($.arbitrary&&$.typeHint==="color")return{[Q]:Z};if(m===null||U0!==J.theme.colors)m=E1(J.theme.colors),U0=J.theme.colors;let q=Z.indexOf("/");if(q===-1){let H=m.get(Z);if(H)return{[Q]:H}}let Y,X=Z;if(q!==-1){X=Z.slice(0,q);let H=Z.slice(q+1);if(H.charCodeAt(0)===91&&H.charCodeAt(H.length-1)===93){let U=Number.parseFloat(H.slice(1,-1));if(Number.isNaN(U)||U<0||U>1)return;Y=U}else{let U=Number.parseInt(H,10);if(Number.isNaN(U)||U<0||U>100)return;Y=U/100}let W=m.get(X);if(W)return{[Q]:u(W,Y)}}let j=T1[X];if(j)return{[Q]:j};if(($.arbitrary||X&&X.charCodeAt(0)===91)&&X){let H=Y!==void 0?u(X,Y):X;return{[Q]:H}}return};function u($,J){let Q=$;if($.charCodeAt(0)===91&&$.charCodeAt($.length-1)===93)Q=$.slice(1,-1);if(Q.charCodeAt(0)===35){let Z=Q.slice(1);if(Z.length===3)Z=Z[0]+Z[0]+Z[1]+Z[1]+Z[2]+Z[2];let q=Number.parseInt(Z.slice(0,2),16),Y=Number.parseInt(Z.slice(2,4),16),X=Number.parseInt(Z.slice(4,6),16);return`rgb(${q} ${Y} ${X} / ${J})`}if(Q.charCodeAt(0)===114){let Z=Q.match(/rgb\((\d+)\s+(\d+)\s+(\d+)/);if(Z)return`rgb(${Z[1]} ${Z[2]} ${Z[3]} / ${J})`}if(Q.charCodeAt(0)===111){let Z=Q.match(/oklch\(([^)]+)\)/);if(Z)return`oklch(${Z[1]} / ${J})`}if(Q.charCodeAt(0)===104){let Z=Q.match(/hsl\(([^)]+)\)/);if(Z)return`hsl(${Z[1]} / ${J})`}return Q}function R($,J){let Q=$.indexOf("/"),Z=$,q;if(Q!==-1){Z=$.slice(0,Q);let z=$.slice(Q+1);if(z.charCodeAt(0)===91&&z.charCodeAt(z.length-1)===93){if(q=Number.parseFloat(z.slice(1,-1)),Number.isNaN(q)||q<0||q>1)return}else{let H=Number.parseInt(z,10);if(Number.isNaN(H)||H<0||H>100)return;q=H/100}}let Y={current:"currentColor",transparent:"transparent",inherit:"inherit",auto:"auto"};if(Y[Z])return q!==void 0?u(Y[Z],q):Y[Z];let X=J.theme.colors[Z];if(typeof X==="string")return q!==void 0?u(X,q):X;let j=Z.split("-");if(j.length>=2){let z=j[j.length-1],H=j.slice(0,-1).join("-"),W=J.theme.colors[H];if(typeof W==="object"&&W[z])return q!==void 0?u(W[z],q):W[z]}if(Z.startsWith("var(")||Z.startsWith("#")||Z.startsWith("rgb(")||Z.startsWith("rgba(")||Z.startsWith("hsl(")||Z.startsWith("hsla(")||Z.startsWith("oklch(")||Z.startsWith("oklab(")||Z.startsWith("lab(")||Z.startsWith("lch(")||Z.startsWith("color(")||Z.startsWith("color-mix("))return q!==void 0?u(Z,q):Z;return}var V9=($,J)=>{if($.utility!=="placeholder"||!$.value)return;if(m===null||U0!==J.theme.colors)m=E1(J.theme.colors),U0=J.theme.colors;let Q=$.value,Z=Q.indexOf("/");if(Z===-1){let Y=m.get(Q);if(Y)return{properties:{color:Y},pseudoElement:"::placeholder"}}else{let Y=Q.slice(0,Z),X=Q.slice(Z+1),j;if(X.charCodeAt(0)===91&&X.charCodeAt(X.length-1)===93){let H=Number.parseFloat(X.slice(1,-1));if(Number.isNaN(H)||H<0||H>1)return;j=H}else{let H=Number.parseInt(X,10);if(Number.isNaN(H)||H<0||H>100)return;j=H/100}let z=m.get(Y);if(z)return{properties:{color:u(z,j)},pseudoElement:"::placeholder"}}let q=T1[$.value];if(q)return{properties:{color:q},pseudoElement:"::placeholder"};return},N9=($,J)=>{if($.utility==="text"&&$.value){let Q=$.value,Z,q=Q.lastIndexOf("/");if(q!==-1&&!$.value.startsWith("[")&&!Q.slice(q+1).includes("]"));if(q!==-1){let X=Q.slice(0,q),j=Q.slice(q+1);if(j&&(J.theme.fontSize[X]||$.arbitrary)){Q=X;let z={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"};Z=J.theme.lineHeight?.[j]??z[j]??j}}if($.arbitrary){if($.typeHint){if($.typeHint==="color")return;let j={"font-size":Q};if(Z)j["line-height"]=Z;return j}if(/^#|^rgb|^hsl|^hwb|^lab|^lch|^oklch|^oklab|^color\(|^var\(--/.test(Q))return;let X={"font-size":Q};if(Z)X["line-height"]=Z;return X}let Y=J.theme.fontSize[Q];if(Y)return{"font-size":Y[0],"line-height":Z??Y[1].lineHeight}}},P9=($)=>{if($.utility==="font"&&$.value){if($.arbitrary){let Q=$.typeHint;if(Q==="family-name"||Q==="string")return{"font-family":$.value};return{"font-weight":$.value}}let J={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"};return J[$.value]?{"font-weight":J[$.value]}:void 0}return},C9=($)=>{if($.utility==="leading"&&$.value){if($.arbitrary)return{"line-height":$.value};let J={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2","3":"0.75rem","4":"1rem","5":"1.25rem","6":"1.5rem","7":"1.75rem","8":"2rem","9":"2.25rem","10":"2.5rem"};return J[$.value]?{"line-height":J[$.value]}:void 0}return},y9=($)=>{if($.utility==="text"&&$.value){let J={left:"left",center:"center",right:"right",justify:"justify"};return J[$.value]?{"text-align":J[$.value]}:void 0}},h9=($)=>{if($.utility==="border"){if(!$.value)return{"border-width":"1px"};let J={0:"0px",2:"2px",4:"4px",8:"8px"};if(J[$.value])return{"border-width":J[$.value]};let Q={t:"border-top-width",r:"border-right-width",b:"border-bottom-width",l:"border-left-width",s:"border-inline-start-width",e:"border-inline-end-width"};if($.value==="x")return{"border-left-width":"1px","border-right-width":"1px"};if($.value==="y")return{"border-top-width":"1px","border-bottom-width":"1px"};let Z=Q[$.value];if(typeof Z==="string")return{[Z]:"1px"};return}},v9=($,J)=>{let Q={"border-t":"border-top-width","border-r":"border-right-width","border-b":"border-bottom-width","border-l":"border-left-width","border-x":["border-left-width","border-right-width"],"border-y":["border-top-width","border-bottom-width"],"border-s":"border-inline-start-width","border-e":"border-inline-end-width"},Z={"border-t":"border-top-color","border-r":"border-right-color","border-b":"border-bottom-color","border-l":"border-left-color","border-x":["border-left-color","border-right-color"],"border-y":["border-top-color","border-bottom-color"],"border-s":"border-inline-start-color","border-e":"border-inline-end-color"},q=Q[$.utility];if(!q)return;let Y={0:"0px",2:"2px",4:"4px",8:"8px"};if(!$.value){let j=q;if(Array.isArray(j))return j.reduce((z,H)=>({...z,[H]:"1px"}),{});return{[j]:"1px"}}if($.arbitrary){let j=$.value,W=(/^#|^(?:rgb|rgba|hsl|hsla|oklch|oklab|lab|lch)\(|^(?:currentColor|transparent|inherit)$/i.test(j)?Z[$.utility]:q)??q;if(Array.isArray(W))return W.reduce((U,G)=>({...U,[G]:j}),{});return{[W]:j}}if(Y[$.value]){let j=q;if(Array.isArray(j))return j.reduce((z,H)=>({...z,[H]:Y[$.value]}),{});return{[j]:Y[$.value]}}let X=Z[$.utility];if(X&&J){let j=$.value.split("-");if(j.length>=2){let H=j[j.length-1],W=j.slice(0,-1).join("-"),U=J.theme.colors[W];if(U&&typeof U==="object"&&U[H]){let G=X;if(Array.isArray(G))return G.reduce((B,_)=>({...B,[_]:U[H]}),{});return{[G]:U[H]}}}let z=J.theme.colors[$.value];if(typeof z==="string"){let H=X;if(Array.isArray(H))return H.reduce((W,U)=>({...W,[U]:z}),{});return{[H]:z}}if($.value==="transparent"||$.value==="current"||$.value==="inherit"){let H=$.value==="current"?"currentColor":$.value,W=X;if(Array.isArray(W))return W.reduce((U,G)=>({...U,[G]:H}),{});return{[W]:H}}}return},f9=($,J)=>{if($.utility==="rounded"){if($.arbitrary&&$.value)return{"border-radius":$.value};let q=$.value?J.theme.borderRadius[$.value]:J.theme.borderRadius.DEFAULT;return q?{"border-radius":q}:void 0}if($.utility==="rounded-s"&&$.value){let q=J.theme.borderRadius[$.value]||$.value;return{"border-start-start-radius":q,"border-end-start-radius":q}}if($.utility==="rounded-e"&&$.value){let q=J.theme.borderRadius[$.value]||$.value;return{"border-start-end-radius":q,"border-end-end-radius":q}}if($.utility==="rounded-ss"&&$.value)return{"border-start-start-radius":J.theme.borderRadius[$.value]||$.value};if($.utility==="rounded-se"&&$.value)return{"border-start-end-radius":J.theme.borderRadius[$.value]||$.value};if($.utility==="rounded-es"&&$.value)return{"border-end-start-radius":J.theme.borderRadius[$.value]||$.value};if($.utility==="rounded-ee"&&$.value)return{"border-end-end-radius":J.theme.borderRadius[$.value]||$.value};let Z={"rounded-t":["border-top-left-radius","border-top-right-radius"],"rounded-r":["border-top-right-radius","border-bottom-right-radius"],"rounded-b":["border-bottom-left-radius","border-bottom-right-radius"],"rounded-l":["border-top-left-radius","border-bottom-left-radius"],"rounded-tl":["border-top-left-radius"],"rounded-tr":["border-top-right-radius"],"rounded-bl":["border-bottom-left-radius"],"rounded-br":["border-bottom-right-radius"]}[$.utility];if(Z&&$.value){let q=J.theme.borderRadius[$.value]||$.value,Y={};for(let X of Z)Y[X]=q;return Y}},x0=[w1,b9,x9,k9,N9,y9,..._1,P9,C9,...k0,V9,R9,...W1,...L1,L9,I9,_9,T9,E9,A9,O9,M9,...K1,...I1,...k0,...D1,...B1,v9,h9,f9,D9,F9,w9,K9];function V0($,J){let Q={...$};for(let Z in J){let q=J[Z],Y=Q[Z];if(q&&typeof q==="object"&&!Array.isArray(q)&&Y&&typeof Y==="object"&&!Array.isArray(Y))Q[Z]=V0(Y,q);else if(q!==void 0)Q[Z]=q}return Q}var m9={block:{display:"block"},"inline-block":{display:"inline-block"},inline:{display:"inline"},flex:{display:"flex"},"inline-flex":{display:"inline-flex"},grid:{display:"grid"},"inline-grid":{display:"inline-grid"},hidden:{display:"none"},none:{display:"none"}},g9={"flex-row":{"flex-direction":"row"},"flex-row-reverse":{"flex-direction":"row-reverse"},"flex-col":{"flex-direction":"column"},"flex-col-reverse":{"flex-direction":"column-reverse"}},u9={"flex-wrap":{"flex-wrap":"wrap"},"flex-wrap-reverse":{"flex-wrap":"wrap-reverse"},"flex-nowrap":{"flex-wrap":"nowrap"}},c9={"flex-1":{flex:"1 1 0%"},"flex-auto":{flex:"1 1 auto"},"flex-initial":{flex:"0 1 auto"},"flex-none":{flex:"none"}},n9={grow:{"flex-grow":"1"},"grow-0":{"flex-grow":"0"},shrink:{"flex-shrink":"1"},"shrink-0":{"flex-shrink":"0"}},d9={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"},l9={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"},i9={normal:"normal",center:"center",start:"flex-start",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly",baseline:"baseline",stretch:"stretch"},o9={auto:"auto",start:"flex-start",end:"flex-end",center:"center",stretch:"stretch",baseline:"baseline"},p9={"border-solid":{"border-style":"solid"},"border-dashed":{"border-style":"dashed"},"border-dotted":{"border-style":"dotted"},"border-double":{"border-style":"double"},"border-none":{"border-style":"none"}},t9={transform:{transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-cpu":{transform:"translate(var(--hw-translate-x), var(--hw-translate-y)) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-gpu":{transform:"translate3d(var(--hw-translate-x), var(--hw-translate-y), 0) rotate(var(--hw-rotate)) skewX(var(--hw-skew-x)) skewY(var(--hw-skew-y)) scaleX(var(--hw-scale-x)) scaleY(var(--hw-scale-y))"},"transform-none":{transform:"none"}},s9={"transition-none":{"transition-property":"none"},"transition-all":{"transition-property":"all"},transition:{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter"},"transition-colors":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke"},"transition-opacity":{"transition-property":"opacity"},"transition-shadow":{"transition-property":"box-shadow"},"transition-transform":{"transition-property":"transform"}},r9={"ease-linear":{"transition-timing-function":"linear"},"ease-in":{"transition-timing-function":"cubic-bezier(0.4, 0, 1, 1)"},"ease-out":{"transition-timing-function":"cubic-bezier(0, 0, 0.2, 1)"},"ease-in-out":{"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}},a9={"animate-none":{animation:"none"},"animate-spin":{animation:"spin 1s linear infinite"},"animate-ping":{animation:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},"animate-pulse":{animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},"animate-bounce":{animation:"bounce 1s infinite"}},e9={spin:`@keyframes spin {
3
3
  from { transform: rotate(0deg); }
4
4
  to { transform: rotate(360deg); }
5
5
  }`,ping:`@keyframes ping {
@@ -404,7 +404,7 @@ video {
404
404
  [hidden] {
405
405
  display: none;
406
406
  }
407
- `.trim()};import{existsSync as b1,statSync as x1}from"fs";import{join as m2,relative as g2,resolve as S1}from"path";import L0 from"process";import{Buffer as C}from"buffer";import{createCipheriv as u2,createDecipheriv as c2,randomBytes as y0}from"crypto";import{closeSync as h0,createReadStream as R1,createWriteStream as n2,existsSync as G0,fsyncSync as V1,openSync as N1,writeFileSync as d2}from"fs";import{access as l2,constants as P1,mkdir as i2,readdir as B0,rename as C1,stat as n,unlink as K0,writeFile as v0}from"fs/promises";import{isAbsolute as o2,join as d,resolve as p2}from"path";import D from"process";import{pipeline as t2}from"stream/promises";import{createGzip as y1}from"zlib";import l from"process";import y from"process";import F0 from"process";import{existsSync as w0}from"fs";import{resolve as u0}from"path";import{existsSync as T7}from"fs";import{existsSync as s0,mkdirSync as E7,readdirSync as A7,readFileSync as O7,writeFileSync as M7}from"fs";import{homedir as i}from"os";import{dirname as u1,resolve as M}from"path";import u from"process";import{existsSync as P7,readdirSync as C7}from"fs";import{extname as c0,resolve as n1}from"path";import y7 from"process";var V2=Object.defineProperty,N2=($)=>$;function P2($,J){this[$]=N2.bind(null,J)}var C2=($,J)=>{for(var Q in J)V2($,Q,{get:J[Q],enumerable:!0,configurable:!0,set:P2.bind(J,Q)})},v=($,J)=>()=>($&&(J=$($=0)),J),y2=import.meta.require;class r0{cache=new Map;totalHits=0;totalMisses=0;options;constructor($={}){this.options={enabled:!0,ttl:300000,maxSize:100,keyPrefix:"bunfig:",...$}}generateKey($,J){let Q=J?`:${J}`:"";return`${this.options.keyPrefix}${$}${Q}`}isExpired($){return Date.now()-$.timestamp.getTime()>$.ttl}estimateSize($){try{return JSON.stringify($).length}catch{return 1000}}evictIfNeeded(){if(this.cache.size<=this.options.maxSize)return;let $=Array.from(this.cache.entries()).sort(([,Q],[,Z])=>Q.timestamp.getTime()-Z.timestamp.getTime()),J=$.length-this.options.maxSize+1;for(let Q=0;Q<J;Q++)this.cache.delete($[Q][0])}set($,J,Q,Z){if(!this.options.enabled)return;let q=this.generateKey($,Q),Y=Z??this.options.ttl,X=this.estimateSize(J);this.cache.set(q,{value:J,timestamp:new Date,ttl:Y,hits:0,size:X}),this.evictIfNeeded()}get($,J){if(!this.options.enabled){this.totalMisses++;return}let Q=this.generateKey($,J),Z=this.cache.get(Q);if(!Z){this.totalMisses++;return}if(this.isExpired(Z)){this.cache.delete(Q),this.totalMisses++;return}return Z.hits++,this.totalHits++,Z.value}isFileModified($,J){try{if(!b1($))return!0;return x1($).mtime>J}catch{return!0}}getWithFileCheck($,J){let Q=this.get($,J);if(!Q)return;if(this.isFileModified(J,Q.fileTimestamp)){this.delete($,J);return}return Q.value}setWithFileCheck($,J,Q,Z){try{let q=b1(Q)?x1(Q):null,Y=q?q.mtime:new Date;this.set($,{value:J,fileTimestamp:Y},Q,Z)}catch{this.set($,J,Q,Z)}}delete($,J){let Q=this.generateKey($,J);return this.cache.delete(Q)}clear(){this.cache.clear(),this.totalHits=0,this.totalMisses=0}cleanup(){let $=0;for(let[J,Q]of this.cache.entries())if(this.isExpired(Q))this.cache.delete(J),$++;return $}getStats(){let $=Array.from(this.cache.values()),J=$.reduce((Z,q)=>Z+q.size,0),Q=$.map((Z)=>Z.timestamp).sort();return{size:J,maxSize:this.options.maxSize,hitRate:this.totalHits+this.totalMisses>0?this.totalHits/(this.totalHits+this.totalMisses):0,totalHits:this.totalHits,totalMisses:this.totalMisses,entries:this.cache.size,oldestEntry:Q[0],newestEntry:Q[Q.length-1]}}export(){let $={};for(let[J,Q]of this.cache.entries())$[J]={value:Q.value,timestamp:Q.timestamp.toISOString(),ttl:Q.ttl,hits:Q.hits,size:Q.size};return $}import($){this.cache.clear();for(let[J,Q]of Object.entries($))if(typeof Q==="object"&&Q!==null){let Z=Q;this.cache.set(J,{value:Z.value,timestamp:new Date(Z.timestamp),ttl:Z.ttl,hits:Z.hits,size:Z.size})}}}class a0{metrics=[];maxMetrics=1000;async track($,J,Q={}){let Z=performance.now(),q=new Date;try{let Y=await J(),X=performance.now()-Z;return this.recordMetric({operation:$,duration:X,timestamp:q,...Q}),Y}catch(Y){let X=performance.now()-Z;throw this.recordMetric({operation:`${$}:error`,duration:X,timestamp:q,...Q}),Y}}recordMetric($){if(this.metrics.push($),this.metrics.length>this.maxMetrics)this.metrics=this.metrics.slice(-this.maxMetrics)}getStats($){let J=$?this.metrics.filter((q)=>q.operation===$):this.metrics;if(J.length===0)return{count:0,averageDuration:0,minDuration:0,maxDuration:0,totalDuration:0,recentMetrics:[]};let Q=J.map((q)=>q.duration),Z=Q.reduce((q,Y)=>q+Y,0);return{count:J.length,averageDuration:Z/J.length,minDuration:Math.min(...Q),maxDuration:Math.max(...Q),totalDuration:Z,recentMetrics:J.slice(-10)}}getAllMetrics(){return[...this.metrics]}clearMetrics(){this.metrics=[]}getSlowOperations($){return this.metrics.filter((J)=>J.duration>$)}}function h2($,J={}){let Z=Object.keys(J).sort().map((q)=>`${q}:${J[q]}`).join("|");return Z?`${$}:${Z}`:$}function v2($,J){try{return JSON.stringify($)===JSON.stringify(J)}catch{return $===J}}function f2($){return $.getStats().size*2}var o,q0,d1,Y0=v(()=>{o=new r0,q0=new a0,d1={createKey:h2,isEquivalent:v2,estimateMemoryUsage:f2}});function s2($,J={}){let Q=L0.cwd();while(Q.includes("storage"))Q=S1(Q,"..");let Z=S1(Q,$||"");if(J?.relative)return g2(L0.cwd(),Z);return Z}function A(){if(y.env.NODE_ENV==="test"||y.env.BUN_ENV==="test")return!1;return typeof window<"u"}async function r2(){if(y.env.NODE_ENV==="test"||y.env.BUN_ENV==="test")return!0;if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof y<"u"){let $=y.type;if($==="renderer"||$==="worker")return!1;return!!(y.versions&&(y.versions.node||y.versions.bun))}return!1}class l1{async format($){let J=await r2(),Q=await this.getMetadata(J);return JSON.stringify({timestamp:$.timestamp.toISOString(),level:$.level,name:$.name,message:$.message,metadata:Q})}async getMetadata($){if($){let{hostname:J}=await import("os");return{pid:l.pid,hostname:J(),environment:l.env.NODE_ENV||"development",platform:l.platform,version:l.version}}return{userAgent:navigator.userAgent,hostname:window.location.hostname||"browser",environment:l.env.NODE_ENV||l.env.BUN_ENV||"development",viewport:{width:window.innerWidth,height:window.innerHeight},language:navigator.language}}}class T0{name;fileLocks=new Map;currentKeyId=null;keys=new Map;fingersCrossedConfig;fingersCrossedActive=!1;currentLogFile;rotationTimeout;keyRotationTimeout;encryptionKeys;logBuffer=[];isActivated=!1;pendingOperations=[];enabled;fancy;tagFormat;timestampPosition;environment;config;options;formatter;timers=new Set;subLoggers=new Set;fingersCrossedBuffer=[];ANSI_PATTERN=/\u001B\[.*?m/g;activeProgressBar=null;constructor($,J={}){this.name=$,this.config={...J0},this.options=this.normalizeOptions(J),this.formatter=this.options.formatter||new l1,this.enabled=J.enabled??!0,this.fancy=J.fancy??!0,this.tagFormat=J.tagFormat??{prefix:"[",suffix:"]"},this.timestampPosition=J.timestampPosition??"right",this.environment=J.environment??D.env.APP_ENV??"local",this.fingersCrossedConfig=this.initializeFingersCrossedConfig(J);let Q={...J},Z=J.timestamp!==void 0;if(Z)delete Q.timestamp;if(this.config={...this.config,...Q,timestamp:Z||this.config.timestamp,level:this.options.level??"info"},this.currentLogFile=this.generateLogFilename(),this.encryptionKeys=new Map,this.validateEncryptionConfig()){this.setupRotation();let q=this.generateKeyId(),Y=this.generateKey();this.currentKeyId=q,this.keys.set(q,Y),this.encryptionKeys.set(q,{key:Y,createdAt:new Date}),this.setupKeyRotation()}}shouldActivateFingersCrossed($){if(!this.fingersCrossedConfig)return!1;let J={debug:0,info:1,success:2,warning:3,error:4},Q=this.fingersCrossedConfig.activationLevel??"error";return J[$]>=J[Q]}initializeFingersCrossedConfig($){if(!$.fingersCrossedEnabled&&$.fingersCrossed)return{...D0,...$.fingersCrossed};if(!$.fingersCrossedEnabled)return null;if(!$.fingersCrossed)return{...D0};return{...D0,...$.fingersCrossed}}normalizeOptions($){let J={format:"json",level:"info",logDirectory:J0.logDirectory,rotation:void 0,timestamp:void 0,fingersCrossed:{},enabled:!0,showTags:!1,showIcons:!0,formatter:void 0},Q={...J,...Object.fromEntries(Object.entries($).filter(([,Z])=>Z!==void 0))};if(!Q.level||!["debug","info","success","warning","error"].includes(Q.level))Q.level=J.level;return Q}shouldWriteToFile(){return!A()&&this.config.writeToFile===!0}async writeToFile($){let Q=(async()=>{let q,Y=0,X=3,j=1000;while(Y<X)try{try{try{await l2(this.config.logDirectory,P1.F_OK|P1.W_OK)}catch(H){if(H instanceof Error&&"code"in H)if(H.code==="ENOENT")await i2(this.config.logDirectory,{recursive:!0,mode:493});else if(H.code==="EACCES")throw Error(`No write permission for log directory: ${this.config.logDirectory}`);else throw H;else throw H}}catch(H){throw console.error("Debug: [writeToFile] Failed to create log directory:",H),H}let z=this.validateEncryptionConfig()?(await this.encrypt($)).encrypted:C.from($);try{if(!G0(this.currentLogFile))await v0(this.currentLogFile,"",{mode:420});if(q=N1(this.currentLogFile,"a",420),d2(q,z,{flag:"a"}),V1(q),q!==void 0)h0(q),q=void 0;if((await n(this.currentLogFile)).size===0){if(await v0(this.currentLogFile,z,{flag:"w",mode:420}),(await n(this.currentLogFile)).size===0)throw Error("File exists but is empty after retry write")}return}catch(H){let W=H;if(W.code&&["ENETDOWN","ENETUNREACH","ENOTFOUND","ETIMEDOUT"].includes(W.code)){if(Y<X-1){let U=typeof W.message==="string"?W.message:"Unknown error";console.error(`Network error during write attempt ${Y+1}/${X}:`,U);let G=j*2**Y;await new Promise((B)=>setTimeout(B,G)),Y++;continue}}if(W?.code&&["ENOSPC","EDQUOT"].includes(W.code))throw Error(`Disk quota exceeded or no space left on device: ${W.message}`);throw console.error("Debug: [writeToFile] Error writing to file:",W),W}finally{if(q!==void 0)try{h0(q)}catch(H){console.error("Debug: [writeToFile] Error closing file descriptor:",H)}}}catch(z){if(Y===X-1){let W=z,U=typeof W.message==="string"?W.message:"Unknown error";throw console.error("Debug: [writeToFile] Max retries reached. Final error:",U),z}Y++;let H=j*2**(Y-1);await new Promise((W)=>setTimeout(W,H))}})();this.pendingOperations.push(Q);let Z=this.pendingOperations.length-1;try{await Q}catch(q){throw console.error("Debug: [writeToFile] Error in operation:",q),q}finally{this.pendingOperations.splice(Z,1)}}generateLogFilename(){if(this.name.includes("stream-throughput")||this.name.includes("decompress-perf-test")||this.name.includes("decompression-latency")||this.name.includes("concurrent-read-test")||this.name.includes("clock-change-test"))return d(this.config.logDirectory,`${this.name}.log`);if(this.name.includes("pending-test")||this.name.includes("temp-file-test")||this.name==="crash-test"||this.name==="corrupt-test"||this.name.includes("rotation-load-test")||this.name==="sigterm-test"||this.name==="sigint-test"||this.name==="failed-rotation-test"||this.name==="integration-test")return d(this.config.logDirectory,`${this.name}.log`);let $=new Date().toISOString().split("T")[0];return d(this.config.logDirectory,`${this.name}-${$}.log`)}setupRotation(){if(A())return;if(!this.shouldWriteToFile())return;if(typeof this.config.rotation==="boolean")return;let $=this.config.rotation,J;switch($.frequency){case"daily":J=86400000;break;case"weekly":J=604800000;break;case"monthly":J=2592000000;break;default:return}this.rotationTimeout=setInterval(()=>{this.rotateLog()},J)}setupKeyRotation(){if(!this.validateEncryptionConfig()){console.error("Invalid encryption configuration detected during key rotation setup");return}let J=this.config.rotation.keyRotation;if(!J?.enabled)return;let Q=typeof J.interval==="number"?J.interval:60,Z=Math.max(Q,60)*1000;this.keyRotationTimeout=setInterval(()=>{this.rotateKeys().catch((q)=>{console.error("Error rotating keys:",q)})},Z)}async rotateKeys(){if(!this.validateEncryptionConfig()){console.error("Invalid encryption configuration detected during key rotation");return}let J=this.config.rotation.keyRotation,Q=this.generateKeyId(),Z=this.generateKey();this.currentKeyId=Q,this.keys.set(Q,Z),this.encryptionKeys.set(Q,{key:Z,createdAt:new Date});let q=Array.from(this.encryptionKeys.entries()).sort(([,j],[,z])=>z.createdAt.getTime()-j.createdAt.getTime()),Y=typeof J.maxKeys==="number"?J.maxKeys:1,X=Math.max(1,Y);if(q.length>X)for(let[j]of q.slice(X))this.encryptionKeys.delete(j),this.keys.delete(j)}generateKeyId(){return y0(16).toString("hex")}generateKey(){return y0(32)}getCurrentKey(){if(!this.currentKeyId)throw Error("Encryption is not properly initialized. Make sure encryption is enabled in the configuration.");let $=this.keys.get(this.currentKeyId);if(!$)throw Error(`No key found for ID ${this.currentKeyId}. The encryption key may have been rotated or removed.`);return{key:$,id:this.currentKeyId}}encrypt($){let{key:J}=this.getCurrentKey(),Q=y0(16),Z=u2("aes-256-gcm",J,Q),q=C.isBuffer($)?$:C.from($,"utf8"),Y=Z.update(q),X=Z.final(),j=Y.length+X.length,z=Z.getAuthTag(),H=C.allocUnsafe(16+j+16);return Q.copy(H,0),Y.copy(H,16),X.copy(H,16+Y.length),z.copy(H,16+j),{encrypted:H,iv:Q}}async compressData($){return new Promise((J,Q)=>{let Z=y1(),q=[];Z.on("data",(Y)=>q.push(Y)),Z.on("end",()=>J(C.from(C.concat(q)))),Z.on("error",Q),Z.write($),Z.end()})}getEncryptionOptions(){if(!this.config.rotation||typeof this.config.rotation==="boolean"||!this.config.rotation.encrypt)return{};let $={algorithm:"aes-256-cbc",compress:!1};if(typeof this.config.rotation.encrypt==="object"){let J=this.config.rotation.encrypt;return{...$,...J}}return $}async rotateLog(){if(A())return;if(!this.shouldWriteToFile())return;let $=await n(this.currentLogFile).catch(()=>null);if(!$)return;let J=this.config.rotation;if(typeof J==="boolean")return;if(J.maxSize&&$.size>=J.maxSize){let Q=this.currentLogFile,Z=this.generateLogFilename();if(this.name.includes("rotation-load-test")||this.name==="failed-rotation-test"){let q=await B0(this.config.logDirectory),Y=q.filter((z)=>z.startsWith(this.name)&&/\.log\.\d+$/.test(z)).sort((z,H)=>{let W=Number.parseInt(z.match(/\.log\.(\d+)$/)?.[1]||"0");return Number.parseInt(H.match(/\.log\.(\d+)$/)?.[1]||"0")-W}),X=Y.length>0?Number.parseInt(Y[0].match(/\.log\.(\d+)$/)?.[1]||"0")+1:1,j=`${Q}.${X}`;if(await n(Q).catch(()=>null))try{if(await C1(Q,j),J.compress)try{let z=`${j}.gz`;await this.compressLogFile(j,z),await K0(j)}catch(z){console.error("Error compressing rotated file:",z)}if(Y.length===0&&!q.some((z)=>z.endsWith(".log.1")))try{let z=`${Q}.1`;await v0(z,"")}catch(z){console.error("Error creating backup file:",z)}}catch(z){console.error(`Error during rotation: ${z instanceof Error?z.message:String(z)}`)}}else{let q=new Date().toISOString().replace(/[:.]/g,"-"),Y=Q.replace(/\.log$/,`-${q}.log`);if(await n(Q).catch(()=>null))await C1(Q,Y)}if(this.currentLogFile=Z,J.maxFiles){let Y=(await B0(this.config.logDirectory)).filter((X)=>X.startsWith(this.name)).sort((X,j)=>j.localeCompare(X));for(let X of Y.slice(J.maxFiles))await K0(d(this.config.logDirectory,X))}}}async compressLogFile($,J){let Q=R1($),Z=n2(J),q=y1();await t2(Q,q,Z)}async handleFingersCrossedBuffer($,J){if(!this.fingersCrossedConfig)return;if(this.shouldActivateFingersCrossed($)&&!this.isActivated){this.isActivated=!0;for(let Q of this.logBuffer){let Z=await this.formatter.format(Q);if(this.shouldWriteToFile())await this.writeToFile(Z);console.log(Z)}if(this.fingersCrossedConfig.stopBuffering)this.logBuffer=[]}if(this.isActivated){if(this.shouldWriteToFile())await this.writeToFile(J);console.log(J)}}shouldLog($){if(!this.enabled)return!1;let J={debug:0,info:1,success:2,warning:3,error:4};return J[$]>=J[this.config.level]}async flushPendingWrites(){if(await Promise.all(this.pendingOperations.map(($)=>{if($ instanceof Promise)return $.catch((J)=>{console.error("Error in pending write operation:",J)});return Promise.resolve()})),G0(this.currentLogFile))try{let $=N1(this.currentLogFile,"r+");V1($),h0($)}catch($){console.error(`Error flushing file: ${$}`)}}async destroy(){if(this.rotationTimeout)clearInterval(this.rotationTimeout);if(this.keyRotationTimeout)clearInterval(this.keyRotationTimeout);this.timers.clear();for(let $ of this.pendingOperations)if(typeof $.cancel==="function")$.cancel();return(async()=>{if(this.pendingOperations.length>0)try{await Promise.allSettled(this.pendingOperations)}catch($){console.error("Error waiting for pending operations:",$)}if(!A()&&this.config.rotation&&typeof this.config.rotation!=="boolean"&&this.config.rotation.compress)try{let J=(await B0(this.config.logDirectory)).filter((Q)=>(Q.includes("temp")||Q.includes(".tmp"))&&Q.includes(this.name));for(let Q of J)try{await K0(d(this.config.logDirectory,Q))}catch(Z){console.error(`Failed to delete temp file ${Q}:`,Z)}}catch($){console.error("Error cleaning up temporary files:",$)}})()}getCurrentLogFilePath(){return this.currentLogFile}formatTag($){if(!$)return"";return`${this.tagFormat.prefix}${$}${this.tagFormat.suffix}`}formatFileTimestamp($){return`[${$.toISOString()}]`}formatConsoleTimestamp($){return this.shouldStyleConsole()?I.gray($.toLocaleTimeString()):$.toLocaleTimeString()}shouldStyleConsole(){if(!this.fancy||A())return!1;let $=typeof D.env.NO_COLOR<"u",J=D.env.FORCE_COLOR==="0";if($||J)return!1;return!!(typeof D.stderr<"u"&&D.stderr.isTTY||typeof D.stdout<"u"&&D.stdout.isTTY)}formatConsoleMessage($){let{timestamp:J,icon:Q="",tag:Z="",message:q,level:Y,showTimestamp:X=!0}=$,j=(B)=>B.replace(this.ANSI_PATTERN,"");if(!this.fancy){let B=[];if(X)B.push(J);if(Y==="warning")B.push("WARN");else if(Y==="error")B.push("ERROR");else if(Q)B.push(Q.replace(/[^\p{L}\p{N}\p{P}\p{Z}]/gu,""));if(Z)B.push(Z.replace(/[[\]]/g,""));return B.push(q),B.join(" ")}let z=D.stdout.columns||120,H="";if(Y==="warning"||Y==="error")H=`${Q} ${q}`;else if(Y==="info"||Y==="success")H=`${Q} ${Z} ${q}`;else H=`${Q} ${Z} ${I.cyan(q)}`;if(!X)return H.trim();let W=j(H).trim().length,U=j(J).length,G=Math.max(1,z-2-W-U);return`${H.trim()}${" ".repeat(G)}${J}`}formatMessage($,J){if(J.length===1&&Array.isArray(J[0]))return $.replace(/\{(\d+)\}/g,(Y,X)=>{let j=Number.parseInt(X,10);return j<J[0].length?String(J[0][j]):Y});let Q=/%([sdijfo%])/g,Z=0,q=$.replace(Q,(Y,X)=>{if(X==="%")return"%";if(Z>=J.length)return Y;let j=J[Z++];switch(X){case"s":return String(j);case"d":case"i":return Number(j).toString();case"j":case"o":return JSON.stringify(j,null,2);default:return Y}});if(Z<J.length)q+=` ${J.slice(Z).map((Y)=>typeof Y==="object"?JSON.stringify(Y,null,2):String(Y)).join(" ")}`;return q}formatMarkdown($){if(!$)return $;let J=$;return J=J.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(Q,Z,q)=>{let Y=I.underline(I.blue(Z)),X=this.toAbsoluteFilePath(q);if(X&&this.shouldStyleConsole()&&this.supportsHyperlinks()){let j=`file://${encodeURI(X)}`,z="\x1B]8;;",H="\x1B\\";return`\x1B]8;;${j}\x1B\\${Y}\x1B]8;;\x1B\\`}if(this.shouldStyleConsole()&&this.supportsHyperlinks())return`\x1B]8;;${q}\x1B\\${Y}\x1B]8;;\x1B\\`;return Y}),J=J.replace(/`([^`]+)`/g,(Q,Z)=>I.bgGray(Z)),J=J.replace(/\*\*([^*]+)\*\*/g,(Q,Z)=>I.bold(Z)),J=J.replace(/(?<!\*)\*([^*]+)\*(?!\*)/g,(Q,Z)=>I.italic(Z)),J=J.replace(/(?<!_)_([^_]+)_(?!_)/g,(Q,Z)=>I.italic(Z)),J=J.replace(/~([^~]+)~/g,(Q,Z)=>I.strikethrough(Z)),J}supportsHyperlinks(){if(A())return!1;let $=D.env;if(!$)return!1;if($.TERM_PROGRAM==="iTerm.app"||$.TERM_PROGRAM==="vscode"||$.TERM_PROGRAM==="WezTerm")return!0;if($.WT_SESSION)return!0;if($.TERM==="xterm-kitty")return!0;let J=$.VTE_VERSION?Number.parseInt($.VTE_VERSION,10):0;if(!Number.isNaN(J)&&J>=5000)return!0;return!1}toAbsoluteFilePath($){try{let J=$;if(J.startsWith("file://"))J=J.replace(/^file:\/\//,"");if(J.startsWith("~")){let Q=D.env.HOME||"";if(Q)J=J.replace(/^~(?=$|\/)/,Q)}if(o2(J)||J.startsWith("./")||J.startsWith("../"))J=p2(J);else return null;return G0(J)?J:null}catch{return null}}buildOutputTexts($){let J=this.shouldStyleConsole()?this.formatMarkdown($):$,Q=$.replace(this.ANSI_PATTERN,"");return{consoleText:J,fileText:Q}}async log($,J,...Q){if(!this.shouldLog($))return;let Z=new Date,q=this.formatConsoleTimestamp(Z),Y=this.formatFileTimestamp(Z),X,j;if(J instanceof Error)X=J.message,j=J.stack;else X=this.formatMessage(J,Q);let{consoleText:z,fileText:H}=this.buildOutputTexts(X);if(this.shouldStyleConsole()){let U=this.options.showIcons===!1?"":i1[$],G=this.options.showTags!==!1&&this.name?I.gray(this.formatTag(this.name)):"",B;switch($){case"debug":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:I.gray(z),level:$}),console.error(B);break;case"info":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:z,level:$}),console.warn(B);break;case"success":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:I.green(z),level:$}),console.error(B);break;case"warning":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:z,level:$}),console.warn(B);break;case"error":if(B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:z,level:$}),console.error(B),j){let _=j.split(`
407
+ `.trim()};import{existsSync as b1,statSync as x1}from"fs";import{join as m2,relative as g2,resolve as S1}from"path";import L0 from"process";import{Buffer as C}from"buffer";import{createCipheriv as u2,createDecipheriv as c2,randomBytes as y0}from"crypto";import{closeSync as h0,createReadStream as R1,createWriteStream as n2,existsSync as G0,fsyncSync as V1,openSync as N1,writeFileSync as d2}from"fs";import{access as l2,constants as P1,mkdir as i2,readdir as B0,rename as C1,stat as n,unlink as K0,writeFile as v0}from"fs/promises";import{isAbsolute as o2,join as d,resolve as p2}from"path";import D from"process";import{pipeline as t2}from"stream/promises";import{createGzip as y1}from"zlib";import l from"process";import y from"process";import F0 from"process";import{existsSync as w0}from"fs";import{resolve as u0}from"path";import{existsSync as T7}from"fs";import{existsSync as s0,mkdirSync as E7,readdirSync as A7,readFileSync as O7,writeFileSync as M7}from"fs";import{homedir as i}from"os";import{dirname as u1,resolve as M}from"path";import c from"process";import{existsSync as P7,readdirSync as C7}from"fs";import{extname as c0,resolve as n1}from"path";import y7 from"process";var V2=Object.defineProperty,N2=($)=>$;function P2($,J){this[$]=N2.bind(null,J)}var C2=($,J)=>{for(var Q in J)V2($,Q,{get:J[Q],enumerable:!0,configurable:!0,set:P2.bind(J,Q)})},v=($,J)=>()=>($&&(J=$($=0)),J),y2=import.meta.require;class r0{cache=new Map;totalHits=0;totalMisses=0;options;constructor($={}){this.options={enabled:!0,ttl:300000,maxSize:100,keyPrefix:"bunfig:",...$}}generateKey($,J){let Q=J?`:${J}`:"";return`${this.options.keyPrefix}${$}${Q}`}isExpired($){return Date.now()-$.timestamp.getTime()>$.ttl}estimateSize($){try{return JSON.stringify($).length}catch{return 1000}}evictIfNeeded(){if(this.cache.size<=this.options.maxSize)return;let $=Array.from(this.cache.entries()).sort(([,Q],[,Z])=>Q.timestamp.getTime()-Z.timestamp.getTime()),J=$.length-this.options.maxSize+1;for(let Q=0;Q<J;Q++)this.cache.delete($[Q][0])}set($,J,Q,Z){if(!this.options.enabled)return;let q=this.generateKey($,Q),Y=Z??this.options.ttl,X=this.estimateSize(J);this.cache.set(q,{value:J,timestamp:new Date,ttl:Y,hits:0,size:X}),this.evictIfNeeded()}get($,J){if(!this.options.enabled){this.totalMisses++;return}let Q=this.generateKey($,J),Z=this.cache.get(Q);if(!Z){this.totalMisses++;return}if(this.isExpired(Z)){this.cache.delete(Q),this.totalMisses++;return}return Z.hits++,this.totalHits++,Z.value}isFileModified($,J){try{if(!b1($))return!0;return x1($).mtime>J}catch{return!0}}getWithFileCheck($,J){let Q=this.get($,J);if(!Q)return;if(this.isFileModified(J,Q.fileTimestamp)){this.delete($,J);return}return Q.value}setWithFileCheck($,J,Q,Z){try{let q=b1(Q)?x1(Q):null,Y=q?q.mtime:new Date;this.set($,{value:J,fileTimestamp:Y},Q,Z)}catch{this.set($,J,Q,Z)}}delete($,J){let Q=this.generateKey($,J);return this.cache.delete(Q)}clear(){this.cache.clear(),this.totalHits=0,this.totalMisses=0}cleanup(){let $=0;for(let[J,Q]of this.cache.entries())if(this.isExpired(Q))this.cache.delete(J),$++;return $}getStats(){let $=Array.from(this.cache.values()),J=$.reduce((Z,q)=>Z+q.size,0),Q=$.map((Z)=>Z.timestamp).sort();return{size:J,maxSize:this.options.maxSize,hitRate:this.totalHits+this.totalMisses>0?this.totalHits/(this.totalHits+this.totalMisses):0,totalHits:this.totalHits,totalMisses:this.totalMisses,entries:this.cache.size,oldestEntry:Q[0],newestEntry:Q[Q.length-1]}}export(){let $={};for(let[J,Q]of this.cache.entries())$[J]={value:Q.value,timestamp:Q.timestamp.toISOString(),ttl:Q.ttl,hits:Q.hits,size:Q.size};return $}import($){this.cache.clear();for(let[J,Q]of Object.entries($))if(typeof Q==="object"&&Q!==null){let Z=Q;this.cache.set(J,{value:Z.value,timestamp:new Date(Z.timestamp),ttl:Z.ttl,hits:Z.hits,size:Z.size})}}}class a0{metrics=[];maxMetrics=1000;async track($,J,Q={}){let Z=performance.now(),q=new Date;try{let Y=await J(),X=performance.now()-Z;return this.recordMetric({operation:$,duration:X,timestamp:q,...Q}),Y}catch(Y){let X=performance.now()-Z;throw this.recordMetric({operation:`${$}:error`,duration:X,timestamp:q,...Q}),Y}}recordMetric($){if(this.metrics.push($),this.metrics.length>this.maxMetrics)this.metrics=this.metrics.slice(-this.maxMetrics)}getStats($){let J=$?this.metrics.filter((q)=>q.operation===$):this.metrics;if(J.length===0)return{count:0,averageDuration:0,minDuration:0,maxDuration:0,totalDuration:0,recentMetrics:[]};let Q=J.map((q)=>q.duration),Z=Q.reduce((q,Y)=>q+Y,0);return{count:J.length,averageDuration:Z/J.length,minDuration:Math.min(...Q),maxDuration:Math.max(...Q),totalDuration:Z,recentMetrics:J.slice(-10)}}getAllMetrics(){return[...this.metrics]}clearMetrics(){this.metrics=[]}getSlowOperations($){return this.metrics.filter((J)=>J.duration>$)}}function h2($,J={}){let Z=Object.keys(J).sort().map((q)=>`${q}:${J[q]}`).join("|");return Z?`${$}:${Z}`:$}function v2($,J){try{return JSON.stringify($)===JSON.stringify(J)}catch{return $===J}}function f2($){return $.getStats().size*2}var o,q0,d1,Y0=v(()=>{o=new r0,q0=new a0,d1={createKey:h2,isEquivalent:v2,estimateMemoryUsage:f2}});function s2($,J={}){let Q=L0.cwd();while(Q.includes("storage"))Q=S1(Q,"..");let Z=S1(Q,$||"");if(J?.relative)return g2(L0.cwd(),Z);return Z}function A(){if(y.env.NODE_ENV==="test"||y.env.BUN_ENV==="test")return!1;return typeof window<"u"}async function r2(){if(y.env.NODE_ENV==="test"||y.env.BUN_ENV==="test")return!0;if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof y<"u"){let $=y.type;if($==="renderer"||$==="worker")return!1;return!!(y.versions&&(y.versions.node||y.versions.bun))}return!1}class l1{async format($){let J=await r2(),Q=await this.getMetadata(J);return JSON.stringify({timestamp:$.timestamp.toISOString(),level:$.level,name:$.name,message:$.message,metadata:Q})}async getMetadata($){if($){let{hostname:J}=await import("os");return{pid:l.pid,hostname:J(),environment:l.env.NODE_ENV||"development",platform:l.platform,version:l.version}}return{userAgent:navigator.userAgent,hostname:window.location.hostname||"browser",environment:l.env.NODE_ENV||l.env.BUN_ENV||"development",viewport:{width:window.innerWidth,height:window.innerHeight},language:navigator.language}}}class T0{name;fileLocks=new Map;currentKeyId=null;keys=new Map;fingersCrossedConfig;fingersCrossedActive=!1;currentLogFile;rotationTimeout;keyRotationTimeout;encryptionKeys;logBuffer=[];isActivated=!1;pendingOperations=[];enabled;fancy;tagFormat;timestampPosition;environment;config;options;formatter;timers=new Set;subLoggers=new Set;fingersCrossedBuffer=[];ANSI_PATTERN=/\u001B\[.*?m/g;activeProgressBar=null;constructor($,J={}){this.name=$,this.config={...J0},this.options=this.normalizeOptions(J),this.formatter=this.options.formatter||new l1,this.enabled=J.enabled??!0,this.fancy=J.fancy??!0,this.tagFormat=J.tagFormat??{prefix:"[",suffix:"]"},this.timestampPosition=J.timestampPosition??"right",this.environment=J.environment??D.env.APP_ENV??"local",this.fingersCrossedConfig=this.initializeFingersCrossedConfig(J);let Q={...J},Z=J.timestamp!==void 0;if(Z)delete Q.timestamp;if(this.config={...this.config,...Q,timestamp:Z||this.config.timestamp,level:this.options.level??"info"},this.currentLogFile=this.generateLogFilename(),this.encryptionKeys=new Map,this.validateEncryptionConfig()){this.setupRotation();let q=this.generateKeyId(),Y=this.generateKey();this.currentKeyId=q,this.keys.set(q,Y),this.encryptionKeys.set(q,{key:Y,createdAt:new Date}),this.setupKeyRotation()}}shouldActivateFingersCrossed($){if(!this.fingersCrossedConfig)return!1;let J={debug:0,info:1,success:2,warning:3,error:4},Q=this.fingersCrossedConfig.activationLevel??"error";return J[$]>=J[Q]}initializeFingersCrossedConfig($){if(!$.fingersCrossedEnabled&&$.fingersCrossed)return{...D0,...$.fingersCrossed};if(!$.fingersCrossedEnabled)return null;if(!$.fingersCrossed)return{...D0};return{...D0,...$.fingersCrossed}}normalizeOptions($){let J={format:"json",level:"info",logDirectory:J0.logDirectory,rotation:void 0,timestamp:void 0,fingersCrossed:{},enabled:!0,showTags:!1,showIcons:!0,formatter:void 0},Q={...J,...Object.fromEntries(Object.entries($).filter(([,Z])=>Z!==void 0))};if(!Q.level||!["debug","info","success","warning","error"].includes(Q.level))Q.level=J.level;return Q}shouldWriteToFile(){return!A()&&this.config.writeToFile===!0}async writeToFile($){let Q=(async()=>{let q,Y=0,X=3,j=1000;while(Y<X)try{try{try{await l2(this.config.logDirectory,P1.F_OK|P1.W_OK)}catch(H){if(H instanceof Error&&"code"in H)if(H.code==="ENOENT")await i2(this.config.logDirectory,{recursive:!0,mode:493});else if(H.code==="EACCES")throw Error(`No write permission for log directory: ${this.config.logDirectory}`);else throw H;else throw H}}catch(H){throw console.error("Debug: [writeToFile] Failed to create log directory:",H),H}let z=this.validateEncryptionConfig()?(await this.encrypt($)).encrypted:C.from($);try{if(!G0(this.currentLogFile))await v0(this.currentLogFile,"",{mode:420});if(q=N1(this.currentLogFile,"a",420),d2(q,z,{flag:"a"}),V1(q),q!==void 0)h0(q),q=void 0;if((await n(this.currentLogFile)).size===0){if(await v0(this.currentLogFile,z,{flag:"w",mode:420}),(await n(this.currentLogFile)).size===0)throw Error("File exists but is empty after retry write")}return}catch(H){let W=H;if(W.code&&["ENETDOWN","ENETUNREACH","ENOTFOUND","ETIMEDOUT"].includes(W.code)){if(Y<X-1){let U=typeof W.message==="string"?W.message:"Unknown error";console.error(`Network error during write attempt ${Y+1}/${X}:`,U);let G=j*2**Y;await new Promise((B)=>setTimeout(B,G)),Y++;continue}}if(W?.code&&["ENOSPC","EDQUOT"].includes(W.code))throw Error(`Disk quota exceeded or no space left on device: ${W.message}`);throw console.error("Debug: [writeToFile] Error writing to file:",W),W}finally{if(q!==void 0)try{h0(q)}catch(H){console.error("Debug: [writeToFile] Error closing file descriptor:",H)}}}catch(z){if(Y===X-1){let W=z,U=typeof W.message==="string"?W.message:"Unknown error";throw console.error("Debug: [writeToFile] Max retries reached. Final error:",U),z}Y++;let H=j*2**(Y-1);await new Promise((W)=>setTimeout(W,H))}})();this.pendingOperations.push(Q);let Z=this.pendingOperations.length-1;try{await Q}catch(q){throw console.error("Debug: [writeToFile] Error in operation:",q),q}finally{this.pendingOperations.splice(Z,1)}}generateLogFilename(){if(this.name.includes("stream-throughput")||this.name.includes("decompress-perf-test")||this.name.includes("decompression-latency")||this.name.includes("concurrent-read-test")||this.name.includes("clock-change-test"))return d(this.config.logDirectory,`${this.name}.log`);if(this.name.includes("pending-test")||this.name.includes("temp-file-test")||this.name==="crash-test"||this.name==="corrupt-test"||this.name.includes("rotation-load-test")||this.name==="sigterm-test"||this.name==="sigint-test"||this.name==="failed-rotation-test"||this.name==="integration-test")return d(this.config.logDirectory,`${this.name}.log`);let $=new Date().toISOString().split("T")[0];return d(this.config.logDirectory,`${this.name}-${$}.log`)}setupRotation(){if(A())return;if(!this.shouldWriteToFile())return;if(typeof this.config.rotation==="boolean")return;let $=this.config.rotation,J;switch($.frequency){case"daily":J=86400000;break;case"weekly":J=604800000;break;case"monthly":J=2592000000;break;default:return}this.rotationTimeout=setInterval(()=>{this.rotateLog()},J)}setupKeyRotation(){if(!this.validateEncryptionConfig()){console.error("Invalid encryption configuration detected during key rotation setup");return}let J=this.config.rotation.keyRotation;if(!J?.enabled)return;let Q=typeof J.interval==="number"?J.interval:60,Z=Math.max(Q,60)*1000;this.keyRotationTimeout=setInterval(()=>{this.rotateKeys().catch((q)=>{console.error("Error rotating keys:",q)})},Z)}async rotateKeys(){if(!this.validateEncryptionConfig()){console.error("Invalid encryption configuration detected during key rotation");return}let J=this.config.rotation.keyRotation,Q=this.generateKeyId(),Z=this.generateKey();this.currentKeyId=Q,this.keys.set(Q,Z),this.encryptionKeys.set(Q,{key:Z,createdAt:new Date});let q=Array.from(this.encryptionKeys.entries()).sort(([,j],[,z])=>z.createdAt.getTime()-j.createdAt.getTime()),Y=typeof J.maxKeys==="number"?J.maxKeys:1,X=Math.max(1,Y);if(q.length>X)for(let[j]of q.slice(X))this.encryptionKeys.delete(j),this.keys.delete(j)}generateKeyId(){return y0(16).toString("hex")}generateKey(){return y0(32)}getCurrentKey(){if(!this.currentKeyId)throw Error("Encryption is not properly initialized. Make sure encryption is enabled in the configuration.");let $=this.keys.get(this.currentKeyId);if(!$)throw Error(`No key found for ID ${this.currentKeyId}. The encryption key may have been rotated or removed.`);return{key:$,id:this.currentKeyId}}encrypt($){let{key:J}=this.getCurrentKey(),Q=y0(16),Z=u2("aes-256-gcm",J,Q),q=C.isBuffer($)?$:C.from($,"utf8"),Y=Z.update(q),X=Z.final(),j=Y.length+X.length,z=Z.getAuthTag(),H=C.allocUnsafe(16+j+16);return Q.copy(H,0),Y.copy(H,16),X.copy(H,16+Y.length),z.copy(H,16+j),{encrypted:H,iv:Q}}async compressData($){return new Promise((J,Q)=>{let Z=y1(),q=[];Z.on("data",(Y)=>q.push(Y)),Z.on("end",()=>J(C.from(C.concat(q)))),Z.on("error",Q),Z.write($),Z.end()})}getEncryptionOptions(){if(!this.config.rotation||typeof this.config.rotation==="boolean"||!this.config.rotation.encrypt)return{};let $={algorithm:"aes-256-cbc",compress:!1};if(typeof this.config.rotation.encrypt==="object"){let J=this.config.rotation.encrypt;return{...$,...J}}return $}async rotateLog(){if(A())return;if(!this.shouldWriteToFile())return;let $=await n(this.currentLogFile).catch(()=>null);if(!$)return;let J=this.config.rotation;if(typeof J==="boolean")return;if(J.maxSize&&$.size>=J.maxSize){let Q=this.currentLogFile,Z=this.generateLogFilename();if(this.name.includes("rotation-load-test")||this.name==="failed-rotation-test"){let q=await B0(this.config.logDirectory),Y=q.filter((z)=>z.startsWith(this.name)&&/\.log\.\d+$/.test(z)).sort((z,H)=>{let W=Number.parseInt(z.match(/\.log\.(\d+)$/)?.[1]||"0");return Number.parseInt(H.match(/\.log\.(\d+)$/)?.[1]||"0")-W}),X=Y.length>0?Number.parseInt(Y[0].match(/\.log\.(\d+)$/)?.[1]||"0")+1:1,j=`${Q}.${X}`;if(await n(Q).catch(()=>null))try{if(await C1(Q,j),J.compress)try{let z=`${j}.gz`;await this.compressLogFile(j,z),await K0(j)}catch(z){console.error("Error compressing rotated file:",z)}if(Y.length===0&&!q.some((z)=>z.endsWith(".log.1")))try{let z=`${Q}.1`;await v0(z,"")}catch(z){console.error("Error creating backup file:",z)}}catch(z){console.error(`Error during rotation: ${z instanceof Error?z.message:String(z)}`)}}else{let q=new Date().toISOString().replace(/[:.]/g,"-"),Y=Q.replace(/\.log$/,`-${q}.log`);if(await n(Q).catch(()=>null))await C1(Q,Y)}if(this.currentLogFile=Z,J.maxFiles){let Y=(await B0(this.config.logDirectory)).filter((X)=>X.startsWith(this.name)).sort((X,j)=>j.localeCompare(X));for(let X of Y.slice(J.maxFiles))await K0(d(this.config.logDirectory,X))}}}async compressLogFile($,J){let Q=R1($),Z=n2(J),q=y1();await t2(Q,q,Z)}async handleFingersCrossedBuffer($,J){if(!this.fingersCrossedConfig)return;if(this.shouldActivateFingersCrossed($)&&!this.isActivated){this.isActivated=!0;for(let Q of this.logBuffer){let Z=await this.formatter.format(Q);if(this.shouldWriteToFile())await this.writeToFile(Z);console.log(Z)}if(this.fingersCrossedConfig.stopBuffering)this.logBuffer=[]}if(this.isActivated){if(this.shouldWriteToFile())await this.writeToFile(J);console.log(J)}}shouldLog($){if(!this.enabled)return!1;let J={debug:0,info:1,success:2,warning:3,error:4};return J[$]>=J[this.config.level]}async flushPendingWrites(){if(await Promise.all(this.pendingOperations.map(($)=>{if($ instanceof Promise)return $.catch((J)=>{console.error("Error in pending write operation:",J)});return Promise.resolve()})),G0(this.currentLogFile))try{let $=N1(this.currentLogFile,"r+");V1($),h0($)}catch($){console.error(`Error flushing file: ${$}`)}}async destroy(){if(this.rotationTimeout)clearInterval(this.rotationTimeout);if(this.keyRotationTimeout)clearInterval(this.keyRotationTimeout);this.timers.clear();for(let $ of this.pendingOperations)if(typeof $.cancel==="function")$.cancel();return(async()=>{if(this.pendingOperations.length>0)try{await Promise.allSettled(this.pendingOperations)}catch($){console.error("Error waiting for pending operations:",$)}if(!A()&&this.config.rotation&&typeof this.config.rotation!=="boolean"&&this.config.rotation.compress)try{let J=(await B0(this.config.logDirectory)).filter((Q)=>(Q.includes("temp")||Q.includes(".tmp"))&&Q.includes(this.name));for(let Q of J)try{await K0(d(this.config.logDirectory,Q))}catch(Z){console.error(`Failed to delete temp file ${Q}:`,Z)}}catch($){console.error("Error cleaning up temporary files:",$)}})()}getCurrentLogFilePath(){return this.currentLogFile}formatTag($){if(!$)return"";return`${this.tagFormat.prefix}${$}${this.tagFormat.suffix}`}formatFileTimestamp($){return`[${$.toISOString()}]`}formatConsoleTimestamp($){return this.shouldStyleConsole()?I.gray($.toLocaleTimeString()):$.toLocaleTimeString()}shouldStyleConsole(){if(!this.fancy||A())return!1;let $=typeof D.env.NO_COLOR<"u",J=D.env.FORCE_COLOR==="0";if($||J)return!1;return!!(typeof D.stderr<"u"&&D.stderr.isTTY||typeof D.stdout<"u"&&D.stdout.isTTY)}formatConsoleMessage($){let{timestamp:J,icon:Q="",tag:Z="",message:q,level:Y,showTimestamp:X=!0}=$,j=(B)=>B.replace(this.ANSI_PATTERN,"");if(!this.fancy){let B=[];if(X)B.push(J);if(Y==="warning")B.push("WARN");else if(Y==="error")B.push("ERROR");else if(Q)B.push(Q.replace(/[^\p{L}\p{N}\p{P}\p{Z}]/gu,""));if(Z)B.push(Z.replace(/[[\]]/g,""));return B.push(q),B.join(" ")}let z=D.stdout.columns||120,H="";if(Y==="warning"||Y==="error")H=`${Q} ${q}`;else if(Y==="info"||Y==="success")H=`${Q} ${Z} ${q}`;else H=`${Q} ${Z} ${I.cyan(q)}`;if(!X)return H.trim();let W=j(H).trim().length,U=j(J).length,G=Math.max(1,z-2-W-U);return`${H.trim()}${" ".repeat(G)}${J}`}formatMessage($,J){if(J.length===1&&Array.isArray(J[0]))return $.replace(/\{(\d+)\}/g,(Y,X)=>{let j=Number.parseInt(X,10);return j<J[0].length?String(J[0][j]):Y});let Q=/%([sdijfo%])/g,Z=0,q=$.replace(Q,(Y,X)=>{if(X==="%")return"%";if(Z>=J.length)return Y;let j=J[Z++];switch(X){case"s":return String(j);case"d":case"i":return Number(j).toString();case"j":case"o":return JSON.stringify(j,null,2);default:return Y}});if(Z<J.length)q+=` ${J.slice(Z).map((Y)=>typeof Y==="object"?JSON.stringify(Y,null,2):String(Y)).join(" ")}`;return q}formatMarkdown($){if(!$)return $;let J=$;return J=J.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(Q,Z,q)=>{let Y=I.underline(I.blue(Z)),X=this.toAbsoluteFilePath(q);if(X&&this.shouldStyleConsole()&&this.supportsHyperlinks()){let j=`file://${encodeURI(X)}`,z="\x1B]8;;",H="\x1B\\";return`\x1B]8;;${j}\x1B\\${Y}\x1B]8;;\x1B\\`}if(this.shouldStyleConsole()&&this.supportsHyperlinks())return`\x1B]8;;${q}\x1B\\${Y}\x1B]8;;\x1B\\`;return Y}),J=J.replace(/`([^`]+)`/g,(Q,Z)=>I.bgGray(Z)),J=J.replace(/\*\*([^*]+)\*\*/g,(Q,Z)=>I.bold(Z)),J=J.replace(/(?<!\*)\*([^*]+)\*(?!\*)/g,(Q,Z)=>I.italic(Z)),J=J.replace(/(?<!_)_([^_]+)_(?!_)/g,(Q,Z)=>I.italic(Z)),J=J.replace(/~([^~]+)~/g,(Q,Z)=>I.strikethrough(Z)),J}supportsHyperlinks(){if(A())return!1;let $=D.env;if(!$)return!1;if($.TERM_PROGRAM==="iTerm.app"||$.TERM_PROGRAM==="vscode"||$.TERM_PROGRAM==="WezTerm")return!0;if($.WT_SESSION)return!0;if($.TERM==="xterm-kitty")return!0;let J=$.VTE_VERSION?Number.parseInt($.VTE_VERSION,10):0;if(!Number.isNaN(J)&&J>=5000)return!0;return!1}toAbsoluteFilePath($){try{let J=$;if(J.startsWith("file://"))J=J.replace(/^file:\/\//,"");if(J.startsWith("~")){let Q=D.env.HOME||"";if(Q)J=J.replace(/^~(?=$|\/)/,Q)}if(o2(J)||J.startsWith("./")||J.startsWith("../"))J=p2(J);else return null;return G0(J)?J:null}catch{return null}}buildOutputTexts($){let J=this.shouldStyleConsole()?this.formatMarkdown($):$,Q=$.replace(this.ANSI_PATTERN,"");return{consoleText:J,fileText:Q}}async log($,J,...Q){if(!this.shouldLog($))return;let Z=new Date,q=this.formatConsoleTimestamp(Z),Y=this.formatFileTimestamp(Z),X,j;if(J instanceof Error)X=J.message,j=J.stack;else X=this.formatMessage(J,Q);let{consoleText:z,fileText:H}=this.buildOutputTexts(X);if(this.shouldStyleConsole()){let U=this.options.showIcons===!1?"":i1[$],G=this.options.showTags!==!1&&this.name?I.gray(this.formatTag(this.name)):"",B;switch($){case"debug":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:I.gray(z),level:$}),console.error(B);break;case"info":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:z,level:$}),console.warn(B);break;case"success":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:I.green(z),level:$}),console.error(B);break;case"warning":B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:z,level:$}),console.warn(B);break;case"error":if(B=this.formatConsoleMessage({timestamp:q,icon:U,tag:G,message:z,level:$}),console.error(B),j){let _=j.split(`
408
408
  `);for(let K of _)if(K.trim()&&!K.includes(X))console.error(this.formatConsoleMessage({timestamp:q,message:I.gray(` ${K}`),level:$,showTimestamp:!1}))}break}}else if(!A()){if(console.error(`${Y} ${this.environment}.${$.toUpperCase()}: ${X}`),j)console.error(j)}let W=`${Y} ${this.environment}.${$.toUpperCase()}: ${H}
409
409
  `;if(j)W+=`${j}
410
410
  `;if(W=W.replace(this.ANSI_PATTERN,""),this.shouldWriteToFile())await this.writeToFile(W)}progress($,J=""){let Q={update:(j,z)=>{},finish:(j)=>{},interrupt:(j,z)=>{}};if(!this.enabled)return Q;let Z=30;if(this.activeProgressBar={total:Math.max(1,$||1),current:0,message:J||"",barLength:Z,lastRenderedLine:""},this.shouldStyleConsole()&&!A()&&D.stdout.isTTY)this.renderProgressBar(this.activeProgressBar);return{update:(j,z)=>{if(!this.enabled||!this.activeProgressBar)return;if(this.activeProgressBar.current=Math.min(Math.max(0,j),this.activeProgressBar.total),z!==void 0)this.activeProgressBar.message=z;if(this.shouldStyleConsole()&&!A()&&D.stdout.isTTY)this.renderProgressBar(this.activeProgressBar)},finish:(j)=>{if(!this.activeProgressBar)return;this.finishProgressBar(this.activeProgressBar,j)},interrupt:(j,z="info")=>{if(!A()&&D.stdout.isTTY)D.stdout.write(`
@@ -425,9 +425,9 @@ video {
425
425
  `;Q+=`| Variable | Type | Description | Example |
426
426
  `,Q+=`|----------|------|-------------|----------|
427
427
  `;for(let Z of $)Q+=`| \`${Z.key}\` | ${Z.type} | ${Z.description} | \`${Z.example}\` |
428
- `;return Q}}var t1=v(()=>{Y0(),p()});function w7($,J){let Q=y2("process");if(typeof Q>"u"||!Q.env)return J;let Z=Q.env[$];return Z!==void 0?Z:J}function s1($,J,Q={}){return r1($,J,Q,new WeakMap)}function r1($,J,Q,Z){let{arrayMergeMode:q="replace",skipNullish:Y=!1,customMerger:X}=Q;if(J===null||J===void 0)return Y?$:J;if(X){let j=X($,J);if(j!==void 0)return j}if(Array.isArray(J)||Array.isArray($))return a1($,J,q,Z);if(!N(J)||!N($))return J;return _7($,J,Q,Z)}function a1($,J,Q,Z){if(Array.isArray(J)&&!Array.isArray($))return J;if(Array.isArray($)&&!Array.isArray(J))return J;if(Array.isArray(J)&&Array.isArray($))switch(Q){case"replace":return J;case"concat":return D7($,J);case"smart":return L7($,J,Z);default:return J}return J}function D7($,J){let Q=[...J];for(let Z of $)if(!Q.some((q)=>t0(q,Z)))Q.push(Z);return Q}function L7($,J,Q){if(J.length===0)return $;if($.length===0)return J;if(N(J[0])&&N($[0]))return I7($,J,Q);if(J.every((Z)=>typeof Z==="string")&&$.every((Z)=>typeof Z==="string")){let Z=[...J];for(let q of $)if(!Z.includes(q))Z.push(q);return Z}return J}function I7($,J,Q){let Z=[...J];for(let q of $){if(!N(q)){Z.push(q);continue}let Y=["id","name","key","path","type"],X=!1;for(let j of Y)if(j in q){if(Z.find((H)=>N(H)&&(j in H)&&H[j]===q[j])){X=!0;break}}if(!X)Z.push(q)}return Z}function _7($,J,Q,Z){let q=J;if(N(q)&&Z.has(q))return Z.get(q);let Y={...$};if(N(q))Z.set(q,Y);for(let X in q){if(!Object.prototype.hasOwnProperty.call(q,X))continue;let j=q[X],z=Y[X];if(Q.skipNullish&&(j===null||j===void 0))continue;if(j===null||j===void 0){Y[X]=j;continue}if(N(j)&&N(z))Y[X]=r1(z,j,Q,Z);else if(Array.isArray(j)||Array.isArray(z))Y[X]=a1(z,j,Q.arrayMergeMode||"smart",Z);else Y[X]=j}return Y}function e0($,J,Q="replace"){return s1($,J,{arrayMergeMode:Q==="replace"?"replace":"smart",skipNullish:!0})}function t0($,J){if($===J)return!0;if(Array.isArray($)&&Array.isArray(J)){if($.length!==J.length)return!1;for(let Q=0;Q<$.length;Q++)if(!t0($[Q],J[Q]))return!1;return!0}if(N($)&&N(J)){let Q=Object.keys($),Z=Object.keys(J);if(Q.length!==Z.length)return!1;for(let q of Q){if(!Object.prototype.hasOwnProperty.call(J,q))return!1;if(!t0($[q],J[q]))return!1}return!0}return!1}function N($){return Boolean($&&typeof $==="object"&&!Array.isArray($))}var e1,$1=v(()=>{e1={replace:"replace",concat:"concat",smart:"smart"}});class A0{extensions=[".ts",".js",".mjs",".cjs",".json",".mts",".cts"];async loadFromPath($,J,Q={}){let{arrayStrategy:Z="replace",useCache:q=!0,cacheTtl:Y,trackPerformance:X=!0,verbose:j=!1}=Q;if(q){let H=o.getWithFileCheck("file",$);if(H){if(j)console.log(`Configuration loaded from cache: ${$}`);return H}}let z=async()=>{if(!w0($))return null;try{let H=`?t=${Date.now()}`,W=await import($+H),U=W.default||W,G="default"in W,B=Object.keys(W).length>0;if(!G&&!B)throw new Q0($,Error("Configuration file is empty and exports nothing"),"unknown");if(typeof U!=="object"||U===null||Array.isArray(U))throw new Q0($,Error("Configuration must export a valid object"),"unknown");let L={config:e0(J,U,Z),source:{type:"file",path:$,priority:100,timestamp:new Date}};if(q)o.setWithFileCheck("file",L,$,Y);return L}catch(H){throw H instanceof Error?g.configLoad($,H):g.configLoad($,Error(String(H)))}};if(X)return q0.track("loadFromPath",z,{path:$});return z()}async tryLoadFromPaths($,J,Q={}){for(let Z of $)try{let q=await this.loadFromPath(Z,J,Q);if(q)return q}catch(q){if(q instanceof Error&&q.name==="ConfigLoadError")throw q;if(Q.verbose)console.warn(`Failed to load config from ${Z}:`,q)}return null}generateConfigPaths($,J,Q){let Z=this.generateNamePatterns($,Q),q=[];for(let Y of Z)for(let X of this.extensions)q.push(u0(J,`${Y}${X}`));return q}generateNamePatterns($,J){let Q=[];if(Q.push("config",".config"),$)Q.push($,`.${$}.config`,`${$}.config`,`.${$}`);let Z=J===void 0?[]:Array.isArray(J)?J:[J];for(let Y of Z){if(!Y)continue;if(Q.push(Y,`.${Y}.config`,`${Y}.config`,`.${Y}`),$)Q.push(`${$}.${Y}.config`,`.${$}.${Y}.config`)}let q=new Set;return Q.filter((Y)=>{if(!Y||q.has(Y))return!1;return q.add(Y),!0})}checkFileAccess($){return o1(async()=>{return w0($)},{maxRetries:2,retryDelay:100,fallback:!1})}async discoverConfigFiles($,J,Q){let Z=[];if(!w0($))return Z;if(J||Q){let q=this.generateNamePatterns(J||"",Q);for(let Y of q)for(let X of this.extensions){let j=u0($,`${Y}${X}`);if(await this.checkFileAccess(j))Z.push(j)}}else try{let{readdirSync:q}=await import("fs"),Y=q($);for(let X of Y)if(this.looksLikeConfigFile(X)){let j=u0($,X);if(await this.checkFileAccess(j))Z.push(j)}}catch{return[]}return Z}looksLikeConfigFile($){return[/\.config\.(ts|js|mjs|cjs|json|mts|cts)$/,/^\..*\.(ts|js|mjs|cjs|json|mts|cts)$/,/config\.(ts|js|mjs|cjs|json|mts|cts)$/].some((Q)=>Q.test($))}async validateConfigFile($){let J=[];try{if(!w0($))return J.push("Configuration file does not exist"),J;let Q=await import($),Z=Q.default||Q;if(Z===void 0)J.push("Configuration file must export a default value or named exports");else if(typeof Z!=="object"||Z===null)J.push("Configuration must be an object");else if(Array.isArray(Z))J.push("Configuration cannot be an array at the root level");if($.endsWith(".json"))try{let{readFileSync:q}=await import("fs"),Y=q($,"utf8");JSON.parse(Y)}catch(q){J.push(`Invalid JSON syntax: ${q}`)}}catch(Q){J.push(`Failed to load configuration file: ${Q}`)}return J}async getFileModificationTime($){try{let{statSync:J}=await import("fs");return J($).mtime}catch{return null}}async preloadConfigurations($,J={}){let Q=new Map;return await Promise.allSettled($.map(async(Z)=>{try{let q=await this.loadFromPath(Z,{},J);if(q)Q.set(Z,q.config)}catch(q){if(J.verbose)console.warn(`Failed to preload ${Z}:`,q)}})),Q}}var $5=v(()=>{Y0(),p(),$1()});class J1{async validateConfiguration($,J,Q={}){let{stopOnFirstError:Z=!1,validateRequired:q=!0,validateTypes:Y=!0,customRules:X=[],trackPerformance:j=!0,verbose:z=!1}=Q,H=async()=>{let W=[],U=[],G={stopOnFirstError:Z,validateRequired:q,validateTypes:Y,customRules:X,trackPerformance:j,verbose:z};try{if(typeof J==="string")return await this.validateWithSchemaFile($,J,G);else if(Array.isArray(J))return this.validateWithRules($,[...J,...X],G);else return this.validateWithJSONSchema($,J,G)}catch(B){return W.push({path:"",message:`Validation failed: ${B}`,rule:"system"}),{isValid:!1,errors:W,warnings:U}}};if(j)return await q0.track("validateConfiguration",H);return H()}async validateWithSchemaFile($,J,Q){try{if(!T7(J))throw new Z0(J,[{path:"",message:"Schema file does not exist"}]);let Z=await import(J),q=Z.default||Z;if(Array.isArray(q))return this.validateWithRules($,q,Q);else return this.validateWithJSONSchema($,q,Q)}catch(Z){throw new Z0(J,[{path:"",message:`Failed to load schema: ${Z}`}])}}validateWithJSONSchema($,J,Q){let Z=[],q=[];return this.validateObjectAgainstSchema($,J,"",Z,q,Q),{isValid:Z.length===0,errors:Z,warnings:q}}validateObjectAgainstSchema($,J,Q,Z,q,Y){if(Y.validateTypes&&J.type){let X=Array.isArray($)?"array":typeof $,j=Array.isArray(J.type)?J.type:[J.type];if(!j.includes(X)){if(Z.push({path:Q,message:`Expected type ${j.join(" or ")}, got ${X}`,expected:j.join(" or "),actual:X,rule:"type"}),Y.stopOnFirstError)return}}if(J.enum&&!J.enum.includes($)){if(Z.push({path:Q,message:`Value must be one of: ${J.enum.join(", ")}`,expected:J.enum.join(", "),actual:$,rule:"enum"}),Y.stopOnFirstError)return}if(typeof $==="string"){if(J.minLength!==void 0&&$.length<J.minLength)Z.push({path:Q,message:`String length must be at least ${J.minLength}`,expected:`>= ${J.minLength}`,actual:$.length,rule:"minLength"});if(J.maxLength!==void 0&&$.length>J.maxLength)Z.push({path:Q,message:`String length must not exceed ${J.maxLength}`,expected:`<= ${J.maxLength}`,actual:$.length,rule:"maxLength"});if(J.pattern){if(!new RegExp(J.pattern).test($))Z.push({path:Q,message:`String does not match pattern ${J.pattern}`,expected:J.pattern,actual:$,rule:"pattern"})}}if(typeof $==="number"){if(J.minimum!==void 0&&$<J.minimum)Z.push({path:Q,message:`Value must be at least ${J.minimum}`,expected:`>= ${J.minimum}`,actual:$,rule:"minimum"});if(J.maximum!==void 0&&$>J.maximum)Z.push({path:Q,message:`Value must not exceed ${J.maximum}`,expected:`<= ${J.maximum}`,actual:$,rule:"maximum"})}if(Array.isArray($)&&J.items)for(let X=0;X<$.length;X++){let j=Q?`${Q}[${X}]`:`[${X}]`;if(this.validateObjectAgainstSchema($[X],J.items,j,Z,q,Y),Y.stopOnFirstError&&Z.length>0)return}if($&&typeof $==="object"&&!Array.isArray($)){let X=$;if(Y.validateRequired&&J.required){for(let j of J.required)if(!(j in X)){if(Z.push({path:Q?`${Q}.${j}`:j,message:`Missing required property '${j}'`,expected:"required",rule:"required"}),Y.stopOnFirstError)return}}if(J.properties){for(let[j,z]of Object.entries(J.properties))if(j in X){let H=Q?`${Q}.${j}`:j;if(this.validateObjectAgainstSchema(X[j],z,H,Z,q,Y),Y.stopOnFirstError&&Z.length>0)return}}if(J.additionalProperties===!1){let j=new Set(Object.keys(J.properties||{}));for(let z of Object.keys(X))if(!j.has(z))q.push({path:Q?`${Q}.${z}`:z,message:`Additional property '${z}' is not allowed`,rule:"additionalProperties"})}}}validateWithRules($,J,Q){let Z=[],q=[];for(let Y of J)try{let X=this.getValueByPath($,Y.path),j=this.validateWithRule(X,Y,Y.path);if(Z.push(...j),Q.stopOnFirstError&&Z.length>0)break}catch(X){Z.push({path:Y.path,message:`Rule validation failed: ${X}`,rule:"system"})}return{isValid:Z.length===0,errors:Z,warnings:q}}validateWithRule($,J,Q){let Z=[];if(J.required&&($===void 0||$===null))return Z.push({path:Q,message:J.message||`Property '${Q}' is required`,expected:"required",rule:"required"}),Z;if($===void 0||$===null)return Z;if(J.type){let q=Array.isArray($)?"array":typeof $;if(q!==J.type)Z.push({path:Q,message:J.message||`Expected type ${J.type}, got ${q}`,expected:J.type,actual:q,rule:"type"})}if(J.min!==void 0){let q=Array.isArray($)?$.length:typeof $==="string"?$.length:typeof $==="number"?$:0;if(q<J.min)Z.push({path:Q,message:J.message||`Value must be at least ${J.min}`,expected:`>= ${J.min}`,actual:q,rule:"min"})}if(J.max!==void 0){let q=Array.isArray($)?$.length:typeof $==="string"?$.length:typeof $==="number"?$:0;if(q>J.max)Z.push({path:Q,message:J.message||`Value must not exceed ${J.max}`,expected:`<= ${J.max}`,actual:q,rule:"max"})}if(J.pattern&&typeof $==="string"){if(!J.pattern.test($))Z.push({path:Q,message:J.message||`Value does not match pattern ${J.pattern}`,expected:J.pattern.toString(),actual:$,rule:"pattern"})}if(J.enum&&!J.enum.includes($))Z.push({path:Q,message:J.message||`Value must be one of: ${J.enum.join(", ")}`,expected:J.enum.join(", "),actual:$,rule:"enum"});if(J.validator){let q=J.validator($);if(q)Z.push({path:Q,message:J.message||q,rule:"custom"})}return Z}getValueByPath($,J){if(!J)return $;let Q=J.split("."),Z=$;for(let q of Q)if(Z&&typeof Z==="object"&&q in Z)Z=Z[q];else return;return Z}generateRulesFromInterface($){let J=[],Q=$.matchAll(/(\w+)(\?)?:\s*(\w+)/g);for(let Z of Q){let[,q,Y,X]=Z;J.push({path:q,required:!Y,type:this.mapTypeScriptType(X)})}return J}mapTypeScriptType($){switch($.toLowerCase()){case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"array":return"array";case"object":return"object";default:return"object"}}static createCommonRules(){return{server:[{path:"port",required:!0,type:"number",min:1,max:65535},{path:"host",required:!0,type:"string",min:1},{path:"ssl",type:"boolean"}],database:[{path:"url",required:!0,type:"string",min:1},{path:"pool",type:"number",min:1,max:100},{path:"timeout",type:"number",min:0}],api:[{path:"baseUrl",required:!0,type:"string",pattern:J5},{path:"timeout",type:"number",min:0},{path:"retries",type:"number",min:0,max:10}]}}}var J5,Q5=v(()=>{Y0(),p(),J5=/^https?:\/\//});function k7($){if(!$)return"";let J=Array.isArray($)?$.filter(Boolean):[$];if(J.length===0)return"";if(J.length===1)return` or alias "${J[0]}"`;return` or aliases ${J.map((Q)=>`"${Q}"`).join(", ")}`}class Q1{fileLoader=new A0;envProcessor=new E0;validator=new J1;async loadConfig($){let J=Date.now(),{cache:Q,performance:Z,schema:q,validate:Y,...X}=$;try{if(Q?.enabled){let z=this.checkCache(X.name||"",X);if(z)return z}let j;try{j=await this.loadConfigurationStrategies(X,!0,Q)}catch(z){let H=X.__strictErrorHandling;if(z instanceof Error&&z.name==="ConfigNotFoundError"){if(H)throw z;j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:[`No configuration file found for "${X.name||"config"}", using defaults with environment variables`]}}else if(z instanceof Error&&z.name==="ConfigLoadError"){let W=z.message.includes("EACCES")||z.message.includes("EPERM")||z.message.includes("permission denied"),U=!W&&(z.message.includes("syntax")||z.message.includes("Expected")||z.message.includes("Unexpected")||z.message.includes("BuildMessage")||z.message.includes("errors building")),G=z.message.includes("Configuration must export a valid object")||z.message.includes("Configuration file is empty and exports nothing");if(H&&(G||W))throw z;if(U&&(!H||!G))j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:["Configuration file has syntax errors, using defaults with environment variables"]};else if(!H)j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:[`Configuration loading error, using defaults: ${z.message}`]};else throw z}else j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:[`Configuration loading failed, using defaults: ${z instanceof Error?z.message:String(z)}`]}}if(q||Y)await this.validateConfiguration(j.config,q,Y,X.name);if(Q?.enabled&&j)this.cacheResult(X.name||"",j,Q,X);if(Z?.enabled){let z={operation:"loadConfig",duration:Date.now()-J,configName:X.name,timestamp:new Date};if(Z.onMetrics)Z.onMetrics(z);if(Z.slowThreshold&&z.duration>Z.slowThreshold)V.warn(`Slow configuration loading detected: ${z.duration}ms for ${X.name}`);j.metrics=z}return j}catch(j){let z=Date.now()-J;throw V.error(`Configuration loading failed after ${z}ms:`,[j instanceof Error?j:Error(String(j))]),j}}async loadConfigurationStrategies($,J=!1,Q){let{name:Z="",alias:q,cwd:Y,configDir:X,defaultConfig:j,checkEnv:z=!0,arrayStrategy:H="replace",verbose:W=!1}=$,U=Y||u.cwd(),G=[],B=await this.loadLocalConfiguration(Z,q,U,X,j,H,W,z,Q);if(B)return G.push(...this.getLocalSearchPaths(Z,q,U,X)),this.finalizeResult(B,G,z,Z,W);let _=await this.loadHomeConfiguration(Z,q,j,H,W,z);if(_)return G.push(...this.getHomeSearchPaths(Z,q)),this.finalizeResult(_,G,z,Z,W);let K=await this.loadPackageJsonConfiguration(Z,q,U,j,H,W,z);if(K)return G.push(M(U,"package.json")),this.finalizeResult(K,G,z,Z,W);if(G.push(...this.getAllSearchPaths(Z,q,U,X)),J)throw g.configNotFound(Z,G,q);return{...await this.applyEnvironmentVariables(Z,j,z,W),warnings:[`No configuration file found for "${Z}"${k7(q)}, using defaults with environment variables`]}}async loadLocalConfiguration($,J,Q,Z,q,Y,X,j,z){let H=j?$0($,q,X):q,W=this.getLocalDirectories(Q,Z);for(let U of W){if(X)V.info(`Searching for configuration in: ${U}`);let G=this.fileLoader.generateConfigPaths($,U,J),B=await this.fileLoader.tryLoadFromPaths(G,H,{arrayStrategy:Y,verbose:X,cacheTtl:z?.ttl,useCache:!z?.ttl||z.ttl>100});if(B){if(X)V.success(`Configuration loaded from: ${B.source.path}`);return B}}return null}async loadHomeConfiguration($,J,Q,Z,q,Y){if(!$)return null;let X=Y?$0($,Q,q):Q,j=[M(i(),".config",$),M(i(),".config"),i()];for(let z of j){if(q)V.info(`Checking home directory: ${z}`);let H=this.fileLoader.generateConfigPaths($,z,J),W=await this.fileLoader.tryLoadFromPaths(H,X,{arrayStrategy:Z,verbose:q});if(W){if(q)V.success(`Configuration loaded from home directory: ${W.source.path}`);return W}}return null}async loadPackageJsonConfiguration($,J,Q,Z,q,Y,X){let j=X?$0($,Z,Y):Z;try{let z=M(Q,"package.json");if(!s0(z))return null;let H={};try{H=JSON.parse(O7(z,"utf8"))}catch(G){if(Y)V.warn("Failed to parse package.json:",[G instanceof Error?G:Error(String(G))]);return null}let W=H[$],U=$;if(!W&&J){let G=Array.isArray(J)?J:[J];for(let B of G){if(!B)continue;if(H[B]){W=H[B],U=B;break}}}if(W&&typeof W==="object"&&!Array.isArray(W)){if(Y)V.success(`Configuration loaded from package.json: ${U}`);return{config:e0(j,W,q),source:{type:"package.json",path:z,priority:30,timestamp:new Date}}}}catch(z){if(Y)V.warn("Failed to load package.json:",[z instanceof Error?z:Error(String(z))])}return null}async applyEnvironmentVariables($,J,Q,Z){if(!Q||!$||typeof J!=="object"||J===null||Array.isArray(J))return{config:J,source:{type:"default",priority:10,timestamp:new Date}};return{config:$0($,J,Z),source:{type:"environment",priority:20,timestamp:new Date}}}async finalizeResult($,J,Q,Z,q){return{config:$.config,source:$.source,path:$.source.path}}async validateConfiguration($,J,Q,Z){let q=[];if(Q){let Y=Q($);if(Y)q.push(...Y)}if(J){let Y=await this.validator.validateConfiguration($,J);if(!Y.isValid)q.push(...Y.errors.map((X)=>X.path?`${X.path}: ${X.message}`:X.message))}if(q.length>0)throw g.configValidation(Z||"unknown",q,Z)}checkCache($,J){let Q=this.generateCacheKey($,J);return o.get(Q)||null}cacheResult($,J,Q,Z){let q=this.generateCacheKey($,Z);o.set(q,J,void 0,Q.ttl)}generateCacheKey($,J){let Q=[$];if(J.alias){let Z=Array.isArray(J.alias)?J.alias.join(","):J.alias;Q.push(`alias:${Z}`)}if(J.cwd)Q.push(`cwd:${J.cwd}`);if(J.configDir)Q.push(`configDir:${J.configDir}`);if("checkEnv"in J)Q.push(`checkEnv:${J.checkEnv}`);return Q.join("|")}getLocalDirectories($,J){return Array.from(new Set([$,M($,"config"),M($,".config"),J?M($,J):void 0].filter(Boolean)))}getAllSearchPaths($,J,Q,Z){let q=[];return q.push(...this.getLocalSearchPaths($,J,Q,Z)),q.push(...this.getHomeSearchPaths($,J)),q.push(M(Q,"package.json")),q}getLocalSearchPaths($,J,Q,Z){let q=this.getLocalDirectories(Q,Z),Y=[];for(let X of q)Y.push(...this.fileLoader.generateConfigPaths($,X,J));return Y}getHomeSearchPaths($,J){if(!$)return[];let Q=[M(i(),".config",$),M(i(),".config"),i()],Z=[];for(let q of Q)Z.push(...this.fileLoader.generateConfigPaths($,q,J));return Z}async loadConfigWithResult($){return this.loadConfig($)}}function c1($){let Q=!($.message.includes("EACCES")||$.message.includes("EPERM")||$.message.includes("permission denied"))&&($.message.includes("syntax")||$.message.includes("Expected")||$.message.includes("Unexpected")||$.message.includes("BuildMessage")),Z=$.message.includes("Configuration must export a valid object")||$.message.includes("Configuration file is empty and exports nothing");return Q||Z}async function b7($){return h.loadConfig({...$,__strictErrorHandling:!0})}async function O0($){let J="defaultConfig"in $&&$.defaultConfig!==void 0?$.defaultConfig:{},Q="cache"in $||"performance"in $||"schema"in $||"validate"in $;try{let Z;if(Q)Z=await h.loadConfig($);else Z=await h.loadConfig({...$,defaultConfig:J,cache:{enabled:!0},performance:{enabled:!1}});return Z?.config??J}catch(Z){let q=Z instanceof Error?Z.name:"UnknownError",Y=Z instanceof Error?Z.message:String(Z);if(!(q==="ConfigNotFoundError"||q==="ConfigLoadError"||q==="ConfigValidationError"||Y.includes("config"))&&$.verbose)V.warn("Unexpected error loading config, using defaults:",[Z instanceof Error?Z:Error(String(Z))]);let j=Q?{...$,defaultConfig:J}:{...$,defaultConfig:J,cache:{enabled:!0},performance:{enabled:!1}};if("checkEnv"in $?$.checkEnv!==!1:!0)return(await h.applyEnvironmentVariables(j.name||"",J,!0,j.verbose||!1))?.config??J;return J}}async function x7($={defaultConfig:{}}){if(typeof $==="string"){let{cwd:J}=await import("process");try{return(await h.loadConfig({name:$,cwd:J(),generatedDir:"./generated",configDir:"./config",defaultConfig:{},checkEnv:!0,arrayStrategy:"replace"})).config}catch(Q){if(Q instanceof Error&&(Q.name==="ConfigNotFoundError"||Q.name==="ConfigLoadError"&&c1(Q)))return(await h.applyEnvironmentVariables($,{},!0,!1)).config;throw Q}}try{return(await h.loadConfig({...$,cwd:$.cwd||u.cwd(),cache:{enabled:!0},performance:{enabled:!1}})).config}catch(J){if(J instanceof Error&&(J.name==="ConfigNotFoundError"||J.name==="ConfigLoadError"&&c1(J)))return(await h.applyEnvironmentVariables($.name||"",$.defaultConfig||{},$.checkEnv!==!1,$.verbose||!1)).config;throw J}}async function S7($,J,Q="replace"){let Z=new A0;try{let q=await Z.loadFromPath($,J,{arrayStrategy:Q,useCache:!1,trackPerformance:!1});return q?q.config:null}catch{return null}}function $0($,J,Q=!1){let Z=new E0,q=$.toUpperCase().replace(/[^A-Z0-9]/g,"_");function Y(X,j=[]){let z={...X};for(let[H,W]of Object.entries(X)){let U=[...j,H],G=[`${q}_${U.join("_").toUpperCase()}`,`${q}_${U.map((K)=>K.toUpperCase()).join("")}`,`${q}_${U.map((K)=>K.replace(/([A-Z])/g,"_$1").toUpperCase()).join("")}`],B,_;for(let K of G)if(B=u.env[K],B!==void 0){_=K;break}if(B!==void 0&&_)if(typeof W==="boolean")z[H]=["true","1","yes"].includes(B.toLowerCase());else if(typeof W==="number"){let K=Number(B);if(!Number.isNaN(K))z[H]=K}else if(Array.isArray(W))try{z[H]=JSON.parse(B)}catch{z[H]=B.split(",").map((K)=>K.trim())}else z[H]=B;else if(W&&typeof W==="object"&&!Array.isArray(W))z[H]=Y(W,U)}return z}return Y(J)}function R7($){let J=M(u.cwd(),$.configDir),Q=M(u.cwd(),$.generatedDir),Z=M(Q,"config-types.ts");if(!s0(u1(Z)))E7(u1(Z),{recursive:!0,mode:511});let q=s0(J)?A7(J).map((X)=>X.replace(/\.(ts|js|mjs|cjs|mts|cts|json)$/,"")).sort():[],Y=`// Generated by bunfig v${G7}
428
+ `;return Q}}var t1=v(()=>{Y0(),p()});function w7($,J){let Q=y2("process");if(typeof Q>"u"||!Q.env)return J;let Z=Q.env[$];return Z!==void 0?Z:J}function s1($,J,Q={}){return r1($,J,Q,new WeakMap)}function r1($,J,Q,Z){let{arrayMergeMode:q="replace",skipNullish:Y=!1,customMerger:X}=Q;if(J===null||J===void 0)return Y?$:J;if(X){let j=X($,J);if(j!==void 0)return j}if(Array.isArray(J)||Array.isArray($))return a1($,J,q,Z);if(!N(J)||!N($))return J;return _7($,J,Q,Z)}function a1($,J,Q,Z){if(Array.isArray(J)&&!Array.isArray($))return J;if(Array.isArray($)&&!Array.isArray(J))return J;if(Array.isArray(J)&&Array.isArray($))switch(Q){case"replace":return J;case"concat":return D7($,J);case"smart":return L7($,J,Z);default:return J}return J}function D7($,J){let Q=[...J];for(let Z of $)if(!Q.some((q)=>t0(q,Z)))Q.push(Z);return Q}function L7($,J,Q){if(J.length===0)return $;if($.length===0)return J;if(N(J[0])&&N($[0]))return I7($,J,Q);if(J.every((Z)=>typeof Z==="string")&&$.every((Z)=>typeof Z==="string")){let Z=[...J];for(let q of $)if(!Z.includes(q))Z.push(q);return Z}return J}function I7($,J,Q){let Z=[...J];for(let q of $){if(!N(q)){Z.push(q);continue}let Y=["id","name","key","path","type"],X=!1;for(let j of Y)if(j in q){if(Z.find((H)=>N(H)&&(j in H)&&H[j]===q[j])){X=!0;break}}if(!X)Z.push(q)}return Z}function _7($,J,Q,Z){let q=J;if(N(q)&&Z.has(q))return Z.get(q);let Y={...$};if(N(q))Z.set(q,Y);for(let X in q){if(!Object.prototype.hasOwnProperty.call(q,X))continue;let j=q[X],z=Y[X];if(Q.skipNullish&&(j===null||j===void 0))continue;if(j===null||j===void 0){Y[X]=j;continue}if(N(j)&&N(z))Y[X]=r1(z,j,Q,Z);else if(Array.isArray(j)||Array.isArray(z))Y[X]=a1(z,j,Q.arrayMergeMode||"smart",Z);else Y[X]=j}return Y}function e0($,J,Q="replace"){return s1($,J,{arrayMergeMode:Q==="replace"?"replace":"smart",skipNullish:!0})}function t0($,J){if($===J)return!0;if(Array.isArray($)&&Array.isArray(J)){if($.length!==J.length)return!1;for(let Q=0;Q<$.length;Q++)if(!t0($[Q],J[Q]))return!1;return!0}if(N($)&&N(J)){let Q=Object.keys($),Z=Object.keys(J);if(Q.length!==Z.length)return!1;for(let q of Q){if(!Object.prototype.hasOwnProperty.call(J,q))return!1;if(!t0($[q],J[q]))return!1}return!0}return!1}function N($){return Boolean($&&typeof $==="object"&&!Array.isArray($))}var e1,$1=v(()=>{e1={replace:"replace",concat:"concat",smart:"smart"}});class A0{extensions=[".ts",".js",".mjs",".cjs",".json",".mts",".cts"];async loadFromPath($,J,Q={}){let{arrayStrategy:Z="replace",useCache:q=!0,cacheTtl:Y,trackPerformance:X=!0,verbose:j=!1}=Q;if(q){let H=o.getWithFileCheck("file",$);if(H){if(j)console.log(`Configuration loaded from cache: ${$}`);return H}}let z=async()=>{if(!w0($))return null;try{let H=`?t=${Date.now()}`,W=await import($+H),U=W.default||W,G="default"in W,B=Object.keys(W).length>0;if(!G&&!B)throw new Q0($,Error("Configuration file is empty and exports nothing"),"unknown");if(typeof U!=="object"||U===null||Array.isArray(U))throw new Q0($,Error("Configuration must export a valid object"),"unknown");let L={config:e0(J,U,Z),source:{type:"file",path:$,priority:100,timestamp:new Date}};if(q)o.setWithFileCheck("file",L,$,Y);return L}catch(H){throw H instanceof Error?g.configLoad($,H):g.configLoad($,Error(String(H)))}};if(X)return q0.track("loadFromPath",z,{path:$});return z()}async tryLoadFromPaths($,J,Q={}){for(let Z of $)try{let q=await this.loadFromPath(Z,J,Q);if(q)return q}catch(q){if(q instanceof Error&&q.name==="ConfigLoadError")throw q;if(Q.verbose)console.warn(`Failed to load config from ${Z}:`,q)}return null}generateConfigPaths($,J,Q){let Z=this.generateNamePatterns($,Q),q=[];for(let Y of Z)for(let X of this.extensions)q.push(u0(J,`${Y}${X}`));return q}generateNamePatterns($,J){let Q=[];if(Q.push("config",".config"),$)Q.push($,`.${$}.config`,`${$}.config`,`.${$}`);let Z=J===void 0?[]:Array.isArray(J)?J:[J];for(let Y of Z){if(!Y)continue;if(Q.push(Y,`.${Y}.config`,`${Y}.config`,`.${Y}`),$)Q.push(`${$}.${Y}.config`,`.${$}.${Y}.config`)}let q=new Set;return Q.filter((Y)=>{if(!Y||q.has(Y))return!1;return q.add(Y),!0})}checkFileAccess($){return o1(async()=>{return w0($)},{maxRetries:2,retryDelay:100,fallback:!1})}async discoverConfigFiles($,J,Q){let Z=[];if(!w0($))return Z;if(J||Q){let q=this.generateNamePatterns(J||"",Q);for(let Y of q)for(let X of this.extensions){let j=u0($,`${Y}${X}`);if(await this.checkFileAccess(j))Z.push(j)}}else try{let{readdirSync:q}=await import("fs"),Y=q($);for(let X of Y)if(this.looksLikeConfigFile(X)){let j=u0($,X);if(await this.checkFileAccess(j))Z.push(j)}}catch{return[]}return Z}looksLikeConfigFile($){return[/\.config\.(ts|js|mjs|cjs|json|mts|cts)$/,/^\..*\.(ts|js|mjs|cjs|json|mts|cts)$/,/config\.(ts|js|mjs|cjs|json|mts|cts)$/].some((Q)=>Q.test($))}async validateConfigFile($){let J=[];try{if(!w0($))return J.push("Configuration file does not exist"),J;let Q=await import($),Z=Q.default||Q;if(Z===void 0)J.push("Configuration file must export a default value or named exports");else if(typeof Z!=="object"||Z===null)J.push("Configuration must be an object");else if(Array.isArray(Z))J.push("Configuration cannot be an array at the root level");if($.endsWith(".json"))try{let{readFileSync:q}=await import("fs"),Y=q($,"utf8");JSON.parse(Y)}catch(q){J.push(`Invalid JSON syntax: ${q}`)}}catch(Q){J.push(`Failed to load configuration file: ${Q}`)}return J}async getFileModificationTime($){try{let{statSync:J}=await import("fs");return J($).mtime}catch{return null}}async preloadConfigurations($,J={}){let Q=new Map;return await Promise.allSettled($.map(async(Z)=>{try{let q=await this.loadFromPath(Z,{},J);if(q)Q.set(Z,q.config)}catch(q){if(J.verbose)console.warn(`Failed to preload ${Z}:`,q)}})),Q}}var $5=v(()=>{Y0(),p(),$1()});class J1{async validateConfiguration($,J,Q={}){let{stopOnFirstError:Z=!1,validateRequired:q=!0,validateTypes:Y=!0,customRules:X=[],trackPerformance:j=!0,verbose:z=!1}=Q,H=async()=>{let W=[],U=[],G={stopOnFirstError:Z,validateRequired:q,validateTypes:Y,customRules:X,trackPerformance:j,verbose:z};try{if(typeof J==="string")return await this.validateWithSchemaFile($,J,G);else if(Array.isArray(J))return this.validateWithRules($,[...J,...X],G);else return this.validateWithJSONSchema($,J,G)}catch(B){return W.push({path:"",message:`Validation failed: ${B}`,rule:"system"}),{isValid:!1,errors:W,warnings:U}}};if(j)return await q0.track("validateConfiguration",H);return H()}async validateWithSchemaFile($,J,Q){try{if(!T7(J))throw new Z0(J,[{path:"",message:"Schema file does not exist"}]);let Z=await import(J),q=Z.default||Z;if(Array.isArray(q))return this.validateWithRules($,q,Q);else return this.validateWithJSONSchema($,q,Q)}catch(Z){throw new Z0(J,[{path:"",message:`Failed to load schema: ${Z}`}])}}validateWithJSONSchema($,J,Q){let Z=[],q=[];return this.validateObjectAgainstSchema($,J,"",Z,q,Q),{isValid:Z.length===0,errors:Z,warnings:q}}validateObjectAgainstSchema($,J,Q,Z,q,Y){if(Y.validateTypes&&J.type){let X=Array.isArray($)?"array":typeof $,j=Array.isArray(J.type)?J.type:[J.type];if(!j.includes(X)){if(Z.push({path:Q,message:`Expected type ${j.join(" or ")}, got ${X}`,expected:j.join(" or "),actual:X,rule:"type"}),Y.stopOnFirstError)return}}if(J.enum&&!J.enum.includes($)){if(Z.push({path:Q,message:`Value must be one of: ${J.enum.join(", ")}`,expected:J.enum.join(", "),actual:$,rule:"enum"}),Y.stopOnFirstError)return}if(typeof $==="string"){if(J.minLength!==void 0&&$.length<J.minLength)Z.push({path:Q,message:`String length must be at least ${J.minLength}`,expected:`>= ${J.minLength}`,actual:$.length,rule:"minLength"});if(J.maxLength!==void 0&&$.length>J.maxLength)Z.push({path:Q,message:`String length must not exceed ${J.maxLength}`,expected:`<= ${J.maxLength}`,actual:$.length,rule:"maxLength"});if(J.pattern){if(!new RegExp(J.pattern).test($))Z.push({path:Q,message:`String does not match pattern ${J.pattern}`,expected:J.pattern,actual:$,rule:"pattern"})}}if(typeof $==="number"){if(J.minimum!==void 0&&$<J.minimum)Z.push({path:Q,message:`Value must be at least ${J.minimum}`,expected:`>= ${J.minimum}`,actual:$,rule:"minimum"});if(J.maximum!==void 0&&$>J.maximum)Z.push({path:Q,message:`Value must not exceed ${J.maximum}`,expected:`<= ${J.maximum}`,actual:$,rule:"maximum"})}if(Array.isArray($)&&J.items)for(let X=0;X<$.length;X++){let j=Q?`${Q}[${X}]`:`[${X}]`;if(this.validateObjectAgainstSchema($[X],J.items,j,Z,q,Y),Y.stopOnFirstError&&Z.length>0)return}if($&&typeof $==="object"&&!Array.isArray($)){let X=$;if(Y.validateRequired&&J.required){for(let j of J.required)if(!(j in X)){if(Z.push({path:Q?`${Q}.${j}`:j,message:`Missing required property '${j}'`,expected:"required",rule:"required"}),Y.stopOnFirstError)return}}if(J.properties){for(let[j,z]of Object.entries(J.properties))if(j in X){let H=Q?`${Q}.${j}`:j;if(this.validateObjectAgainstSchema(X[j],z,H,Z,q,Y),Y.stopOnFirstError&&Z.length>0)return}}if(J.additionalProperties===!1){let j=new Set(Object.keys(J.properties||{}));for(let z of Object.keys(X))if(!j.has(z))q.push({path:Q?`${Q}.${z}`:z,message:`Additional property '${z}' is not allowed`,rule:"additionalProperties"})}}}validateWithRules($,J,Q){let Z=[],q=[];for(let Y of J)try{let X=this.getValueByPath($,Y.path),j=this.validateWithRule(X,Y,Y.path);if(Z.push(...j),Q.stopOnFirstError&&Z.length>0)break}catch(X){Z.push({path:Y.path,message:`Rule validation failed: ${X}`,rule:"system"})}return{isValid:Z.length===0,errors:Z,warnings:q}}validateWithRule($,J,Q){let Z=[];if(J.required&&($===void 0||$===null))return Z.push({path:Q,message:J.message||`Property '${Q}' is required`,expected:"required",rule:"required"}),Z;if($===void 0||$===null)return Z;if(J.type){let q=Array.isArray($)?"array":typeof $;if(q!==J.type)Z.push({path:Q,message:J.message||`Expected type ${J.type}, got ${q}`,expected:J.type,actual:q,rule:"type"})}if(J.min!==void 0){let q=Array.isArray($)?$.length:typeof $==="string"?$.length:typeof $==="number"?$:0;if(q<J.min)Z.push({path:Q,message:J.message||`Value must be at least ${J.min}`,expected:`>= ${J.min}`,actual:q,rule:"min"})}if(J.max!==void 0){let q=Array.isArray($)?$.length:typeof $==="string"?$.length:typeof $==="number"?$:0;if(q>J.max)Z.push({path:Q,message:J.message||`Value must not exceed ${J.max}`,expected:`<= ${J.max}`,actual:q,rule:"max"})}if(J.pattern&&typeof $==="string"){if(!J.pattern.test($))Z.push({path:Q,message:J.message||`Value does not match pattern ${J.pattern}`,expected:J.pattern.toString(),actual:$,rule:"pattern"})}if(J.enum&&!J.enum.includes($))Z.push({path:Q,message:J.message||`Value must be one of: ${J.enum.join(", ")}`,expected:J.enum.join(", "),actual:$,rule:"enum"});if(J.validator){let q=J.validator($);if(q)Z.push({path:Q,message:J.message||q,rule:"custom"})}return Z}getValueByPath($,J){if(!J)return $;let Q=J.split("."),Z=$;for(let q of Q)if(Z&&typeof Z==="object"&&q in Z)Z=Z[q];else return;return Z}generateRulesFromInterface($){let J=[],Q=$.matchAll(/(\w+)(\?)?:\s*(\w+)/g);for(let Z of Q){let[,q,Y,X]=Z;J.push({path:q,required:!Y,type:this.mapTypeScriptType(X)})}return J}mapTypeScriptType($){switch($.toLowerCase()){case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"array":return"array";case"object":return"object";default:return"object"}}static createCommonRules(){return{server:[{path:"port",required:!0,type:"number",min:1,max:65535},{path:"host",required:!0,type:"string",min:1},{path:"ssl",type:"boolean"}],database:[{path:"url",required:!0,type:"string",min:1},{path:"pool",type:"number",min:1,max:100},{path:"timeout",type:"number",min:0}],api:[{path:"baseUrl",required:!0,type:"string",pattern:J5},{path:"timeout",type:"number",min:0},{path:"retries",type:"number",min:0,max:10}]}}}var J5,Q5=v(()=>{Y0(),p(),J5=/^https?:\/\//});function k7($){if(!$)return"";let J=Array.isArray($)?$.filter(Boolean):[$];if(J.length===0)return"";if(J.length===1)return` or alias "${J[0]}"`;return` or aliases ${J.map((Q)=>`"${Q}"`).join(", ")}`}class Q1{fileLoader=new A0;envProcessor=new E0;validator=new J1;async loadConfig($){let J=Date.now(),{cache:Q,performance:Z,schema:q,validate:Y,...X}=$;try{if(Q?.enabled){let z=this.checkCache(X.name||"",X);if(z)return z}let j;try{j=await this.loadConfigurationStrategies(X,!0,Q)}catch(z){let H=X.__strictErrorHandling;if(z instanceof Error&&z.name==="ConfigNotFoundError"){if(H)throw z;j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:[`No configuration file found for "${X.name||"config"}", using defaults with environment variables`]}}else if(z instanceof Error&&z.name==="ConfigLoadError"){let W=z.message.includes("EACCES")||z.message.includes("EPERM")||z.message.includes("permission denied"),U=!W&&(z.message.includes("syntax")||z.message.includes("Expected")||z.message.includes("Unexpected")||z.message.includes("BuildMessage")||z.message.includes("errors building")),G=z.message.includes("Configuration must export a valid object")||z.message.includes("Configuration file is empty and exports nothing");if(H&&(G||W))throw z;if(U&&(!H||!G))j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:["Configuration file has syntax errors, using defaults with environment variables"]};else if(!H)j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:[`Configuration loading error, using defaults: ${z.message}`]};else throw z}else j={...await this.applyEnvironmentVariables(X.name||"",X.defaultConfig,X.checkEnv!==!1,X.verbose||!1),warnings:[`Configuration loading failed, using defaults: ${z instanceof Error?z.message:String(z)}`]}}if(q||Y)await this.validateConfiguration(j.config,q,Y,X.name);if(Q?.enabled&&j)this.cacheResult(X.name||"",j,Q,X);if(Z?.enabled){let z={operation:"loadConfig",duration:Date.now()-J,configName:X.name,timestamp:new Date};if(Z.onMetrics)Z.onMetrics(z);if(Z.slowThreshold&&z.duration>Z.slowThreshold)V.warn(`Slow configuration loading detected: ${z.duration}ms for ${X.name}`);j.metrics=z}return j}catch(j){let z=Date.now()-J;throw V.error(`Configuration loading failed after ${z}ms:`,[j instanceof Error?j:Error(String(j))]),j}}async loadConfigurationStrategies($,J=!1,Q){let{name:Z="",alias:q,cwd:Y,configDir:X,defaultConfig:j,checkEnv:z=!0,arrayStrategy:H="replace",verbose:W=!1}=$,U=Y||c.cwd(),G=[],B=await this.loadLocalConfiguration(Z,q,U,X,j,H,W,z,Q);if(B)return G.push(...this.getLocalSearchPaths(Z,q,U,X)),this.finalizeResult(B,G,z,Z,W);let _=await this.loadHomeConfiguration(Z,q,j,H,W,z);if(_)return G.push(...this.getHomeSearchPaths(Z,q)),this.finalizeResult(_,G,z,Z,W);let K=await this.loadPackageJsonConfiguration(Z,q,U,j,H,W,z);if(K)return G.push(M(U,"package.json")),this.finalizeResult(K,G,z,Z,W);if(G.push(...this.getAllSearchPaths(Z,q,U,X)),J)throw g.configNotFound(Z,G,q);return{...await this.applyEnvironmentVariables(Z,j,z,W),warnings:[`No configuration file found for "${Z}"${k7(q)}, using defaults with environment variables`]}}async loadLocalConfiguration($,J,Q,Z,q,Y,X,j,z){let H=j?$0($,q,X):q,W=this.getLocalDirectories(Q,Z);for(let U of W){if(X)V.info(`Searching for configuration in: ${U}`);let G=this.fileLoader.generateConfigPaths($,U,J),B=await this.fileLoader.tryLoadFromPaths(G,H,{arrayStrategy:Y,verbose:X,cacheTtl:z?.ttl,useCache:!z?.ttl||z.ttl>100});if(B){if(X)V.success(`Configuration loaded from: ${B.source.path}`);return B}}return null}async loadHomeConfiguration($,J,Q,Z,q,Y){if(!$)return null;let X=Y?$0($,Q,q):Q,j=[M(i(),".config",$),M(i(),".config"),i()];for(let z of j){if(q)V.info(`Checking home directory: ${z}`);let H=this.fileLoader.generateConfigPaths($,z,J),W=await this.fileLoader.tryLoadFromPaths(H,X,{arrayStrategy:Z,verbose:q});if(W){if(q)V.success(`Configuration loaded from home directory: ${W.source.path}`);return W}}return null}async loadPackageJsonConfiguration($,J,Q,Z,q,Y,X){let j=X?$0($,Z,Y):Z;try{let z=M(Q,"package.json");if(!s0(z))return null;let H={};try{H=JSON.parse(O7(z,"utf8"))}catch(G){if(Y)V.warn("Failed to parse package.json:",[G instanceof Error?G:Error(String(G))]);return null}let W=H[$],U=$;if(!W&&J){let G=Array.isArray(J)?J:[J];for(let B of G){if(!B)continue;if(H[B]){W=H[B],U=B;break}}}if(W&&typeof W==="object"&&!Array.isArray(W)){if(Y)V.success(`Configuration loaded from package.json: ${U}`);return{config:e0(j,W,q),source:{type:"package.json",path:z,priority:30,timestamp:new Date}}}}catch(z){if(Y)V.warn("Failed to load package.json:",[z instanceof Error?z:Error(String(z))])}return null}async applyEnvironmentVariables($,J,Q,Z){if(!Q||!$||typeof J!=="object"||J===null||Array.isArray(J))return{config:J,source:{type:"default",priority:10,timestamp:new Date}};return{config:$0($,J,Z),source:{type:"environment",priority:20,timestamp:new Date}}}async finalizeResult($,J,Q,Z,q){return{config:$.config,source:$.source,path:$.source.path}}async validateConfiguration($,J,Q,Z){let q=[];if(Q){let Y=Q($);if(Y)q.push(...Y)}if(J){let Y=await this.validator.validateConfiguration($,J);if(!Y.isValid)q.push(...Y.errors.map((X)=>X.path?`${X.path}: ${X.message}`:X.message))}if(q.length>0)throw g.configValidation(Z||"unknown",q,Z)}checkCache($,J){let Q=this.generateCacheKey($,J);return o.get(Q)||null}cacheResult($,J,Q,Z){let q=this.generateCacheKey($,Z);o.set(q,J,void 0,Q.ttl)}generateCacheKey($,J){let Q=[$];if(J.alias){let Z=Array.isArray(J.alias)?J.alias.join(","):J.alias;Q.push(`alias:${Z}`)}if(J.cwd)Q.push(`cwd:${J.cwd}`);if(J.configDir)Q.push(`configDir:${J.configDir}`);if("checkEnv"in J)Q.push(`checkEnv:${J.checkEnv}`);return Q.join("|")}getLocalDirectories($,J){return Array.from(new Set([$,M($,"config"),M($,".config"),J?M($,J):void 0].filter(Boolean)))}getAllSearchPaths($,J,Q,Z){let q=[];return q.push(...this.getLocalSearchPaths($,J,Q,Z)),q.push(...this.getHomeSearchPaths($,J)),q.push(M(Q,"package.json")),q}getLocalSearchPaths($,J,Q,Z){let q=this.getLocalDirectories(Q,Z),Y=[];for(let X of q)Y.push(...this.fileLoader.generateConfigPaths($,X,J));return Y}getHomeSearchPaths($,J){if(!$)return[];let Q=[M(i(),".config",$),M(i(),".config"),i()],Z=[];for(let q of Q)Z.push(...this.fileLoader.generateConfigPaths($,q,J));return Z}async loadConfigWithResult($){return this.loadConfig($)}}function c1($){let Q=!($.message.includes("EACCES")||$.message.includes("EPERM")||$.message.includes("permission denied"))&&($.message.includes("syntax")||$.message.includes("Expected")||$.message.includes("Unexpected")||$.message.includes("BuildMessage")),Z=$.message.includes("Configuration must export a valid object")||$.message.includes("Configuration file is empty and exports nothing");return Q||Z}async function b7($){return h.loadConfig({...$,__strictErrorHandling:!0})}async function O0($){let J="defaultConfig"in $&&$.defaultConfig!==void 0?$.defaultConfig:{},Q="cache"in $||"performance"in $||"schema"in $||"validate"in $;try{let Z;if(Q)Z=await h.loadConfig($);else Z=await h.loadConfig({...$,defaultConfig:J,cache:{enabled:!0},performance:{enabled:!1}});return Z?.config??J}catch(Z){let q=Z instanceof Error?Z.name:"UnknownError",Y=Z instanceof Error?Z.message:String(Z);if(!(q==="ConfigNotFoundError"||q==="ConfigLoadError"||q==="ConfigValidationError"||Y.includes("config"))&&$.verbose)V.warn("Unexpected error loading config, using defaults:",[Z instanceof Error?Z:Error(String(Z))]);let j=Q?{...$,defaultConfig:J}:{...$,defaultConfig:J,cache:{enabled:!0},performance:{enabled:!1}};if("checkEnv"in $?$.checkEnv!==!1:!0)return(await h.applyEnvironmentVariables(j.name||"",J,!0,j.verbose||!1))?.config??J;return J}}async function x7($={defaultConfig:{}}){if(typeof $==="string"){let{cwd:J}=await import("process");try{return(await h.loadConfig({name:$,cwd:J(),generatedDir:"./generated",configDir:"./config",defaultConfig:{},checkEnv:!0,arrayStrategy:"replace"})).config}catch(Q){if(Q instanceof Error&&(Q.name==="ConfigNotFoundError"||Q.name==="ConfigLoadError"&&c1(Q)))return(await h.applyEnvironmentVariables($,{},!0,!1)).config;throw Q}}try{return(await h.loadConfig({...$,cwd:$.cwd||c.cwd(),cache:{enabled:!0},performance:{enabled:!1}})).config}catch(J){if(J instanceof Error&&(J.name==="ConfigNotFoundError"||J.name==="ConfigLoadError"&&c1(J)))return(await h.applyEnvironmentVariables($.name||"",$.defaultConfig||{},$.checkEnv!==!1,$.verbose||!1)).config;throw J}}async function S7($,J,Q="replace"){let Z=new A0;try{let q=await Z.loadFromPath($,J,{arrayStrategy:Q,useCache:!1,trackPerformance:!1});return q?q.config:null}catch{return null}}function $0($,J,Q=!1){let Z=new E0,q=$.toUpperCase().replace(/[^A-Z0-9]/g,"_");function Y(X,j=[]){let z={...X};for(let[H,W]of Object.entries(X)){let U=[...j,H],G=[`${q}_${U.join("_").toUpperCase()}`,`${q}_${U.map((K)=>K.toUpperCase()).join("")}`,`${q}_${U.map((K)=>K.replace(/([A-Z])/g,"_$1").toUpperCase()).join("")}`],B,_;for(let K of G)if(B=c.env[K],B!==void 0){_=K;break}if(B!==void 0&&_)if(typeof W==="boolean")z[H]=["true","1","yes"].includes(B.toLowerCase());else if(typeof W==="number"){let K=Number(B);if(!Number.isNaN(K))z[H]=K}else if(Array.isArray(W))try{z[H]=JSON.parse(B)}catch{z[H]=B.split(",").map((K)=>K.trim())}else z[H]=B;else if(W&&typeof W==="object"&&!Array.isArray(W))z[H]=Y(W,U)}return z}return Y(J)}function R7($){let J=M(c.cwd(),$.configDir),Q=M(c.cwd(),$.generatedDir),Z=M(Q,"config-types.ts");if(!s0(u1(Z)))E7(u1(Z),{recursive:!0,mode:511});let q=s0(J)?A7(J).map((X)=>X.replace(/\.(ts|js|mjs|cjs|mts|cts|json)$/,"")).sort():[],Y=`// Generated by bunfig v${G7}
429
429
  export type ConfigNames = ${q.length?`'${q.join("' | '")}'`:"string"}
430
- `;M7(Z,Y,{mode:438})}function V7($){let J=null,Q=null,Z=()=>{if(!Q)Q=O0($).then((Y)=>{return J=Y,Y},(Y)=>{let X="defaultConfig"in $?$.defaultConfig:{};if(J=X,"verbose"in $&&$.verbose)V.warn("Config loading failed, using defaults:",[Y instanceof Error?Y:Error(String(Y))]);return X});return Q},q="defaultConfig"in $?$.defaultConfig:{};return J=q,Z(),new Proxy({},{get(Y,X){if(J)return J[X];let j=q[X];return Z(),j},has(Y,X){return X in(J||q)},ownKeys(){return Object.keys(J||q)},getOwnPropertyDescriptor(Y,X){return Object.getOwnPropertyDescriptor(J||q,X)},set(Y,X,j){if(!J)J={...q};return J[X]=j,!0}})}var V,h,Z5,q5,N7=v(()=>{U7(),B7(),Y0(),p(),t1(),$5(),Q5(),$1(),V=new T0("bunfig",{showTags:!0}),h=new Q1,Z5=M(u.cwd(),"config"),q5=M(u.cwd(),"src/generated")});function h7($){let J=n1(y7.cwd(),$?.configDir||"./config");function Q(){if(!P7(J))return[];let q=new Set([".ts",".js",".mjs",".cjs",".mts",".cts",".json"]),Y=[".ts",".mts",".cts",".js",".mjs",".cjs",".json"],X=C7(J).filter((z)=>q.has(c0(z))).map((z)=>({base:z.replace(/\.(?:ts|js|mjs|cjs|mts|cts|json)$/i,""),file:z})),j=new Map;for(let{base:z,file:H}of X){let W=c0(H).toLowerCase(),U=j.get(z);if(!U){j.set(z,H);continue}let G=c0(U).toLowerCase();if(Y.indexOf(W)<Y.indexOf(G))j.set(z,H)}return Array.from(j.entries()).map(([z,H])=>({base:z,file:H})).sort((z,H)=>z.base.localeCompare(H.base))}function Z(){let q=Q(),Y=q.map((H)=>H.base),X=Y.length?Y.map((H)=>`'${H}'`).join(" | "):"string",j=q.length?`{
430
+ `;M7(Z,Y,{mode:438})}function V7($){let J=null,Q=null,Z=()=>{if(!Q)Q=O0($).then((Y)=>{return J=Y,Y},(Y)=>{let X="defaultConfig"in $?$.defaultConfig:{};if(J=X,"verbose"in $&&$.verbose)V.warn("Config loading failed, using defaults:",[Y instanceof Error?Y:Error(String(Y))]);return X});return Q},q="defaultConfig"in $?$.defaultConfig:{};return J=q,Z(),new Proxy({},{get(Y,X){if(J)return J[X];let j=q[X];return Z(),j},has(Y,X){return X in(J||q)},ownKeys(){return Object.keys(J||q)},getOwnPropertyDescriptor(Y,X){return Object.getOwnPropertyDescriptor(J||q,X)},set(Y,X,j){if(!J)J={...q};return J[X]=j,!0}})}var V,h,Z5,q5,N7=v(()=>{U7(),B7(),Y0(),p(),t1(),$5(),Q5(),$1(),V=new T0("bunfig",{showTags:!0}),h=new Q1,Z5=M(c.cwd(),"config"),q5=M(c.cwd(),"src/generated")});function h7($){let J=n1(y7.cwd(),$?.configDir||"./config");function Q(){if(!P7(J))return[];let q=new Set([".ts",".js",".mjs",".cjs",".mts",".cts",".json"]),Y=[".ts",".mts",".cts",".js",".mjs",".cjs",".json"],X=C7(J).filter((z)=>q.has(c0(z))).map((z)=>({base:z.replace(/\.(?:ts|js|mjs|cjs|mts|cts|json)$/i,""),file:z})),j=new Map;for(let{base:z,file:H}of X){let W=c0(H).toLowerCase(),U=j.get(z);if(!U){j.set(z,H);continue}let G=c0(U).toLowerCase();if(Y.indexOf(W)<Y.indexOf(G))j.set(z,H)}return Array.from(j.entries()).map(([z,H])=>({base:z,file:H})).sort((z,H)=>z.base.localeCompare(H.base))}function Z(){let q=Q(),Y=q.map((H)=>H.base),X=Y.length?Y.map((H)=>`'${H}'`).join(" | "):"string",j=q.length?`{
431
431
  ${q.map((H)=>{let W=n1(J,H.file).replace(/\\/g,"/");return` '${H.base}': typeof import('${W}').default`}).join(`,
432
432
  `)}
433
433
  }`:"Record<string, any>";return`export type ConfigNames = ${X}
@@ -435,4 +435,4 @@ export type ConfigByName = ${j}
435
435
  export type Config<N extends ConfigNames> = N extends keyof ConfigByName ? ConfigByName[N] : unknown
436
436
  export type ConfigOf = Config
437
437
  `}return{name:"bunfig-plugin",setup(q){q.onResolve({filter:/^virtual:bunfig-types$/},(Y)=>{return{path:Y.path,namespace:"bunfig-virtual"}}),q.onLoad({filter:/^virtual:bunfig-types$/,namespace:"bunfig-virtual"},()=>{return{contents:Z(),loader:"ts"}})}}}var v7=()=>{},Y5={};C2(Y5,{withErrorRecovery:()=>o1,tryLoadConfig:()=>S7,loadConfigWithResult:()=>b7,loadConfig:()=>O0,isRetryableError:()=>F7,isConfigNotFoundError:()=>K7,isBunfigError:()=>p1,globalPerformanceMonitor:()=>q0,globalCache:()=>o,getEnvOrDefault:()=>w7,generateConfigTypes:()=>R7,defaultGeneratedDir:()=>q5,defaultConfigDir:()=>Z5,deepMergeWithArrayStrategy:()=>e0,deepMerge:()=>s1,createLibraryConfig:()=>V7,config:()=>x7,bunfigPlugin:()=>h7,applyEnvVarsToConfig:()=>$0,TypeGenerationError:()=>i0,SchemaValidationError:()=>Z0,PluginError:()=>p0,PerformanceMonitor:()=>a0,FileSystemError:()=>l0,ErrorFactory:()=>g,EnvVarError:()=>_0,EnvProcessor:()=>E0,ConfigValidator:()=>J1,ConfigValidationError:()=>n0,ConfigNotFoundError:()=>I0,ConfigMergeError:()=>d0,ConfigLoader:()=>Q1,ConfigLoadError:()=>Q0,ConfigFileLoader:()=>A0,ConfigCache:()=>r0,CacheUtils:()=>d1,BunfigError:()=>S,BrowserConfigError:()=>o0,ArrayMergeStrategies:()=>e1});var z5=v(()=>{N7(),p(),Y0(),p(),v7(),t1(),$5(),Q5(),$1()});z5();var X5={content:["./src/**/*.{html,js,ts,jsx,tsx,stx}"],output:"./dist/crosswind.css",minify:!0,watch:!1,theme:{colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}},spacing:{0:"0",px:"1px",0.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif"],serif:["ui-serif","Georgia","serif"],mono:["ui-monospace","monospace"]},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},borderRadius:{none:"0",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",none:"none"}},shortcuts:{},rules:[],attributify:{enabled:!1,prefix:"hw-",ignoreAttributes:["class","className","style","id","name","type","value","href","src","alt","title","role","for","action","method","target","rel","placeholder","disabled","checked","selected","readonly","required","maxlength","minlength","pattern","autocomplete","autofocus","tabindex","contenteditable","draggable","spellcheck","lang","dir","hidden","slot","part","is","key","ref"]},bracketSyntax:{enabled:!1,colonSyntax:!1,aliases:{col:"col",row:"row",jc:"justify",ji:"justify-items",js:"justify-self",ai:"items",ac:"content",as:"self",wrap:"wrap",nowrap:"nowrap",c:"center",s:"start",e:"end",sb:"between",sa:"around",se:"evenly",st:"stretch"}},variants:{responsive:!0,hover:!0,focus:!0,active:!0,disabled:!0,dark:!0,light:!0,group:!0,peer:!0,before:!0,after:!0,marker:!0,first:!0,last:!0,odd:!0,even:!0,"first-of-type":!0,"last-of-type":!0,visited:!0,checked:!0,"focus-within":!0,"focus-visible":!0,placeholder:!0,selection:!0,file:!0,required:!0,valid:!0,invalid:!0,"read-only":!0,autofill:!0,open:!0,closed:!0,empty:!0,enabled:!0,only:!0,target:!0,indeterminate:!0,default:!0,optional:!0,aria:!0,data:!0,has:!0,not:!0,supports:!0,print:!0,landscape:!0,portrait:!0,"forced-colors":!0,rtl:!0,ltr:!0,"motion-safe":!0,"motion-reduce":!0,"contrast-more":!0,"contrast-less":!0},safelist:[],blocklist:[],preflights:[k1],presets:[],cssVariables:!1},Z1=null;async function aJ(){if(!Z1)Z1=await O0({name:"crosswind",alias:"css",defaultConfig:X5});return Z1}var eJ=X5;
438
- export{G5 as a,B5 as b,j1 as c,X0 as d,K9 as e,F9 as f,w9 as g,D9 as h,L9 as i,I9 as j,_9 as k,T9 as l,E9 as m,A9 as n,O9 as o,M9 as p,k9 as q,b9 as r,x9 as s,R9 as t,c as u,R as v,V9 as w,N9 as x,P9 as y,C9 as z,y9 as A,h9 as B,v9 as C,f9 as D,x0 as E,N0 as F,P0 as G,x2 as H,S2 as I,R2 as J,TJ as K,O0 as L,AJ as M,k1 as N,X5 as O,aJ as P,eJ as Q};
438
+ export{G5 as a,B5 as b,j1 as c,X0 as d,K9 as e,F9 as f,w9 as g,D9 as h,L9 as i,I9 as j,_9 as k,T9 as l,E9 as m,A9 as n,O9 as o,M9 as p,k9 as q,b9 as r,x9 as s,R9 as t,u,R as v,V9 as w,N9 as x,P9 as y,C9 as z,y9 as A,h9 as B,v9 as C,f9 as D,x0 as E,N0 as F,P0 as G,x2 as H,S2 as I,R2 as J,TJ as K,O0 as L,AJ as M,k1 as N,X5 as O,aJ as P,eJ as Q};
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{H as M6,K as N6,N as O6,Q as s}from"../chunk-3frpk224.js";import{existsSync as E,watch as Ez}from"fs";import{unlink as Az}from"fs/promises";import B from"process";import{EventEmitter as h6}from"events";import Z6 from"process";import x from"process";import k from"process";import l6,{stdin as gz,stdout as _z}from"process";import Y6,{stdin as c6,stdout as p6}from"process";import i6 from"readline";var{create:P6,getPrototypeOf:I6,defineProperty:z6,getOwnPropertyNames:R6}=Object,E6=Object.prototype.hasOwnProperty,L=(z,Z,$)=>{$=z!=null?P6(I6(z)):{};let Q=Z||!z||!z.__esModule?z6($,"default",{value:z,enumerable:!0}):$;for(let J of R6(z))if(!E6.call(Q,J))z6(Q,J,{get:()=>z[J],enumerable:!0});return Q},l=(z,Z)=>()=>(Z||z((Z={exports:{}}).exports,Z),Z.exports),A6=l((z,Z)=>{function $(J){return J==null?[]:Array.isArray(J)?J:[J]}function Q(J,Y,X,U){var F,q=J[Y],j=~U.string.indexOf(Y)?X==null||X===!0?"":String(X):typeof X==="boolean"?X:~U.boolean.indexOf(Y)?X==="false"?!1:X==="true"||(J._.push((F=+X,F*0===0)?F:X),!!X):(F=+X,F*0===0)?F:X;J[Y]=q==null?j:Array.isArray(q)?q.concat(j):[q,j]}Z.exports=function(J,Y){J=J||[],Y=Y||{};var X,U,F,q,j,G={_:[]},H=0,K=0,V=0,P=J.length;let f=Y.alias!==void 0,g=Y.unknown!==void 0,t=Y.default!==void 0;if(Y.alias=Y.alias||{},Y.string=$(Y.string),Y.boolean=$(Y.boolean),f)for(X in Y.alias){U=Y.alias[X]=$(Y.alias[X]);for(H=0;H<U.length;H++)(Y.alias[U[H]]=U.concat(X)).splice(H,1)}for(H=Y.boolean.length;H-- >0;){U=Y.alias[Y.boolean[H]]||[];for(K=U.length;K-- >0;)Y.boolean.push(U[K])}for(H=Y.string.length;H-- >0;){U=Y.alias[Y.string[H]]||[];for(K=U.length;K-- >0;)Y.string.push(U[K])}if(t){for(X in Y.default)if(q=typeof Y.default[X],U=Y.alias[X]=Y.alias[X]||[],Y[q]!==void 0){Y[q].push(X);for(H=0;H<U.length;H++)Y[q].push(U[H])}}let o=g?Object.keys(Y.alias):[];for(H=0;H<P;H++){if(F=J[H],F==="--"){G._=G._.concat(J.slice(++H));break}for(K=0;K<F.length;K++)if(F.charCodeAt(K)!==45)break;if(K===0)G._.push(F);else if(F.substring(K,K+3)==="no-"){if(q=F.substring(K+3),g&&!~o.indexOf(q))return Y.unknown(F);G[q]=!1}else{for(V=K+1;V<F.length;V++)if(F.charCodeAt(V)===61)break;q=F.substring(K,V),j=F.substring(++V)||(H+1===P||(""+J[H+1]).charCodeAt(0)===45||J[++H]),U=K===2?[q]:q;for(V=0;V<U.length;V++){if(q=U[V],g&&!~o.indexOf(q))return Y.unknown("-".repeat(K)+q);Q(G,q,V+1<U.length||j,Y)}}}if(t){for(X in Y.default)if(G[X]===void 0)G[X]=Y.default[X]}if(f)for(X in G){U=Y.alias[X]||[];while(U.length>0)G[U.shift()]=G[X]}return G}}),M=l((z,Z)=>{var $=process||{},Q=$.argv||[],J=$.env||{},Y=!(!!J.NO_COLOR||Q.includes("--no-color"))&&(!!J.FORCE_COLOR||Q.includes("--color")||$.platform==="win32"||($.stdout||{}).isTTY&&J.TERM!=="dumb"||!!J.CI),X=(q,j,G=q)=>(H)=>{let K=""+H,V=K.indexOf(j,q.length);return~V?q+U(K,j,G,V)+j:q+K+j},U=(q,j,G,H)=>{let K="",V=0;do K+=q.substring(V,H)+G,V=H+j.length,H=q.indexOf(j,V);while(~H);return K+q.substring(V)},F=(q=Y)=>{let j=q?X:()=>String;return{isColorSupported:q,reset:j("\x1B[0m","\x1B[0m"),bold:j("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:j("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:j("\x1B[3m","\x1B[23m"),underline:j("\x1B[4m","\x1B[24m"),inverse:j("\x1B[7m","\x1B[27m"),hidden:j("\x1B[8m","\x1B[28m"),strikethrough:j("\x1B[9m","\x1B[29m"),black:j("\x1B[30m","\x1B[39m"),red:j("\x1B[31m","\x1B[39m"),green:j("\x1B[32m","\x1B[39m"),yellow:j("\x1B[33m","\x1B[39m"),blue:j("\x1B[34m","\x1B[39m"),magenta:j("\x1B[35m","\x1B[39m"),cyan:j("\x1B[36m","\x1B[39m"),white:j("\x1B[37m","\x1B[39m"),gray:j("\x1B[90m","\x1B[39m"),bgBlack:j("\x1B[40m","\x1B[49m"),bgRed:j("\x1B[41m","\x1B[49m"),bgGreen:j("\x1B[42m","\x1B[49m"),bgYellow:j("\x1B[43m","\x1B[49m"),bgBlue:j("\x1B[44m","\x1B[49m"),bgMagenta:j("\x1B[45m","\x1B[49m"),bgCyan:j("\x1B[46m","\x1B[49m"),bgWhite:j("\x1B[47m","\x1B[49m"),blackBright:j("\x1B[90m","\x1B[39m"),redBright:j("\x1B[91m","\x1B[39m"),greenBright:j("\x1B[92m","\x1B[39m"),yellowBright:j("\x1B[93m","\x1B[39m"),blueBright:j("\x1B[94m","\x1B[39m"),magentaBright:j("\x1B[95m","\x1B[39m"),cyanBright:j("\x1B[96m","\x1B[39m"),whiteBright:j("\x1B[97m","\x1B[39m"),bgBlackBright:j("\x1B[100m","\x1B[49m"),bgRedBright:j("\x1B[101m","\x1B[49m"),bgGreenBright:j("\x1B[102m","\x1B[49m"),bgYellowBright:j("\x1B[103m","\x1B[49m"),bgBlueBright:j("\x1B[104m","\x1B[49m"),bgMagentaBright:j("\x1B[105m","\x1B[49m"),bgCyanBright:j("\x1B[106m","\x1B[49m"),bgWhiteBright:j("\x1B[107m","\x1B[49m")}};Z.exports=F(),Z.exports.createColors=F}),b6=l((z,Z)=>{Z.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}}),k6=L(A6(),1);function H6(z){return z.replace(/[<[].+/,"").trim()}function C6(z){let Z=/<([^>]+)>/g,$=/\[([^\]]+)\]/g,Q=[],J=(U)=>{let F=!1,q=U[1];if(q.startsWith("..."))q=q.slice(3),F=!0;return{required:U[0].startsWith("<"),value:q,variadic:F}},Y;while(Y=Z.exec(z))Q.push(J(Y));let X;while(X=$.exec(z))Q.push(J(X));return Q}function v6(z){let Z={alias:{},boolean:[]};for(let[$,Q]of z.entries()){if(Q.names.length>1)Z.alias[Q.names[0]]=Q.names.slice(1);if(Q.isBoolean)if(Q.negated){if(!z.some((Y,X)=>{return X!==$&&Y.names.some((U)=>Q.names.includes(U))&&typeof Y.required==="boolean"}))Z.boolean.push(Q.names[0])}else Z.boolean.push(Q.names[0])}return Z}function $6(z){return z.sort((Z,$)=>{return Z.length>$.length?-1:1})[0]}function Q6(z,Z){return z.length>=Z?z:`${z}${" ".repeat(Z-z.length)}`}function y6(z){return z.replace(/([a-z])-([a-z])/g,(Z,$,Q)=>{return $+Q.toUpperCase()})}function S6(z,Z,$){let Q=0,J=Z.length,Y=z,X;for(;Q<J;++Q)X=Y[Z[Q]],Y=Y[Z[Q]]=Q===J-1?$:X!=null?X:!!~Z[Q+1].indexOf(".")||!(+Z[Q+1]>-1)?{}:[]}function f6(z,Z){for(let $ of Object.keys(Z)){let Q=Z[$];if(Q.shouldTransform){if(z[$]=Array.prototype.concat.call([],z[$]),typeof Q.transformFunction==="function")z[$]=z[$].map(Q.transformFunction)}}}function g6(z){let Z=/([^\\/]+)$/.exec(z);return Z?Z[1]:""}function K6(z){return z.split(".").map((Z,$)=>{return $===0?y6(Z):Z}).join(".")}class b extends Error{constructor(z){super(z);if(this.name=this.constructor.name,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,this.constructor);else this.stack=Error(z).stack}}function _6(){let{env:z}=Z6,{TERM:Z,TERM_PROGRAM:$}=z;if(Z6.platform!=="win32")return Z!=="linux";return Boolean(z.WT_SESSION)||Boolean(z.TERMINUS_SUBLIME)||z.ConEmuTask==="{cmd::Cmder}"||$==="Terminus-Sublime"||$==="vscode"||Z==="xterm-256color"||Z==="alacritty"||Z==="rxvt-unicode"||Z==="rxvt-unicode-256color"||z.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var C="\x1B",w=`${C}[`;var O={to(z,Z){if(!Z)return`${w}${z+1}G`;return`${w}${Z+1};${z+1}H`},move(z,Z){let $="";if(z<0)$+=`${w}${-z}D`;else if(z>0)$+=`${w}${z}C`;if(Z<0)$+=`${w}${-Z}A`;else if(Z>0)$+=`${w}${Z}B`;return $},up:(z=1)=>`${w}${z}A`,down:(z=1)=>`${w}${z}B`,forward:(z=1)=>`${w}${z}C`,backward:(z=1)=>`${w}${z}D`,nextLine:(z=1)=>`${w}E`.repeat(z),prevLine:(z=1)=>`${w}F`.repeat(z),left:`${w}G`,hide:`${w}?25l`,show:`${w}?25h`,save:`${C}7`,restore:`${C}8`};var _={screen:`${w}2J`,up:(z=1)=>`${w}1J`.repeat(z),down:(z=1)=>`${w}J`.repeat(z),line:`${w}2K`,lineEnd:`${w}K`,lineStart:`${w}1K`,lines(z){let Z="";for(let $=0;$<z;$++)Z+=this.line+($<z-1?O.up():"");if(z)Z+=O.left;return Z}},hz={screen:`${C}c`};class V6{rawName;description;name;names;isBoolean;required;config;negated;constructor(z,Z,$){if(this.rawName=z,this.description=Z,this.config=Object.assign({},$),z=z.replace(/\.\*/g,""),this.negated=!1,this.names=H6(z).split(",").map((Q)=>{let J=Q.trim().replace(/^-{1,2}/,"");if(J.startsWith("no-"))this.negated=!0,J=J.replace(/^no-/,"");return K6(J)}).sort((Q,J)=>Q.length>J.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null)this.config.default=!0;if(z.includes("<"))this.required=!0;else if(z.includes("["))this.required=!1;else this.isBoolean=!0}}var vz=x.argv,d6=`${x.platform}-${x.arch} bun-v${typeof Bun<"u"?Bun.version:"unknown"}`,u6=k.argv,m6=`${k.platform}-${k.arch} node-${k.version}`;class n{rawName;description;config;cli;options;aliasNames;name;args;commandAction;usageText;versionNumber;examples;helpCallback;globalCommand;constructor(z,Z,$,Q){if(this.rawName=z,this.description=Z,this.config=$,this.cli=Q,this.options=[],this.aliasNames=[],this.name=H6(z),this.args=C6(z),this.examples=[],!$)this.config={}}usage(z){return this.usageText=z,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(z,Z="-v, --version"){return this.versionNumber=z,this.option(Z,"Display version number"),this}example(z){return this.examples.push(z),this}option(z,Z,$){let Q=new V6(z,Z,$);return this.options.push(Q),this}alias(z){return this.aliasNames.push(z),this}action(z){return this.commandAction=z,this}isMatched(z){return this.name===z||this.aliasNames.includes(z)}get isDefaultCommand(){return this.name===""||this.aliasNames.includes("!")}get isGlobalCommand(){return this instanceof a}hasOption(z){return z=z.split(".")[0],!!this.options.find((Z)=>{return Z.names.includes(z)})}outputHelp(){let{name:z,commands:Z}=this.cli,{versionNumber:$,options:Q,helpCallback:J}=this.cli.globalCommand,Y=[{body:`${z}${$?`/${$}`:""}`}];if(Y.push({title:"Usage",body:` $ ${z} ${this.usageText||this.rawName}`}),(this.isGlobalCommand||this.isDefaultCommand)&&Z.length>0){let F=$6(Z.map((q)=>q.rawName));Y.push({title:"Commands",body:Z.map((q)=>{return` ${Q6(q.rawName,F.length)} ${q.description}`}).join(`
3
+ import{H as M6,K as N6,N as O6,Q as s}from"./chunk-k9ke1f7b.js";import{existsSync as E,watch as Ez}from"fs";import{unlink as Az}from"fs/promises";import B from"process";import{EventEmitter as h6}from"events";import Z6 from"process";import x from"process";import k from"process";import l6,{stdin as gz,stdout as _z}from"process";import Y6,{stdin as c6,stdout as p6}from"process";import i6 from"readline";var{create:P6,getPrototypeOf:I6,defineProperty:z6,getOwnPropertyNames:R6}=Object,E6=Object.prototype.hasOwnProperty,L=(z,Z,$)=>{$=z!=null?P6(I6(z)):{};let Q=Z||!z||!z.__esModule?z6($,"default",{value:z,enumerable:!0}):$;for(let J of R6(z))if(!E6.call(Q,J))z6(Q,J,{get:()=>z[J],enumerable:!0});return Q},l=(z,Z)=>()=>(Z||z((Z={exports:{}}).exports,Z),Z.exports),A6=l((z,Z)=>{function $(J){return J==null?[]:Array.isArray(J)?J:[J]}function Q(J,Y,X,U){var F,q=J[Y],j=~U.string.indexOf(Y)?X==null||X===!0?"":String(X):typeof X==="boolean"?X:~U.boolean.indexOf(Y)?X==="false"?!1:X==="true"||(J._.push((F=+X,F*0===0)?F:X),!!X):(F=+X,F*0===0)?F:X;J[Y]=q==null?j:Array.isArray(q)?q.concat(j):[q,j]}Z.exports=function(J,Y){J=J||[],Y=Y||{};var X,U,F,q,j,G={_:[]},H=0,K=0,V=0,P=J.length;let f=Y.alias!==void 0,g=Y.unknown!==void 0,t=Y.default!==void 0;if(Y.alias=Y.alias||{},Y.string=$(Y.string),Y.boolean=$(Y.boolean),f)for(X in Y.alias){U=Y.alias[X]=$(Y.alias[X]);for(H=0;H<U.length;H++)(Y.alias[U[H]]=U.concat(X)).splice(H,1)}for(H=Y.boolean.length;H-- >0;){U=Y.alias[Y.boolean[H]]||[];for(K=U.length;K-- >0;)Y.boolean.push(U[K])}for(H=Y.string.length;H-- >0;){U=Y.alias[Y.string[H]]||[];for(K=U.length;K-- >0;)Y.string.push(U[K])}if(t){for(X in Y.default)if(q=typeof Y.default[X],U=Y.alias[X]=Y.alias[X]||[],Y[q]!==void 0){Y[q].push(X);for(H=0;H<U.length;H++)Y[q].push(U[H])}}let o=g?Object.keys(Y.alias):[];for(H=0;H<P;H++){if(F=J[H],F==="--"){G._=G._.concat(J.slice(++H));break}for(K=0;K<F.length;K++)if(F.charCodeAt(K)!==45)break;if(K===0)G._.push(F);else if(F.substring(K,K+3)==="no-"){if(q=F.substring(K+3),g&&!~o.indexOf(q))return Y.unknown(F);G[q]=!1}else{for(V=K+1;V<F.length;V++)if(F.charCodeAt(V)===61)break;q=F.substring(K,V),j=F.substring(++V)||(H+1===P||(""+J[H+1]).charCodeAt(0)===45||J[++H]),U=K===2?[q]:q;for(V=0;V<U.length;V++){if(q=U[V],g&&!~o.indexOf(q))return Y.unknown("-".repeat(K)+q);Q(G,q,V+1<U.length||j,Y)}}}if(t){for(X in Y.default)if(G[X]===void 0)G[X]=Y.default[X]}if(f)for(X in G){U=Y.alias[X]||[];while(U.length>0)G[U.shift()]=G[X]}return G}}),M=l((z,Z)=>{var $=process||{},Q=$.argv||[],J=$.env||{},Y=!(!!J.NO_COLOR||Q.includes("--no-color"))&&(!!J.FORCE_COLOR||Q.includes("--color")||$.platform==="win32"||($.stdout||{}).isTTY&&J.TERM!=="dumb"||!!J.CI),X=(q,j,G=q)=>(H)=>{let K=""+H,V=K.indexOf(j,q.length);return~V?q+U(K,j,G,V)+j:q+K+j},U=(q,j,G,H)=>{let K="",V=0;do K+=q.substring(V,H)+G,V=H+j.length,H=q.indexOf(j,V);while(~H);return K+q.substring(V)},F=(q=Y)=>{let j=q?X:()=>String;return{isColorSupported:q,reset:j("\x1B[0m","\x1B[0m"),bold:j("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:j("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:j("\x1B[3m","\x1B[23m"),underline:j("\x1B[4m","\x1B[24m"),inverse:j("\x1B[7m","\x1B[27m"),hidden:j("\x1B[8m","\x1B[28m"),strikethrough:j("\x1B[9m","\x1B[29m"),black:j("\x1B[30m","\x1B[39m"),red:j("\x1B[31m","\x1B[39m"),green:j("\x1B[32m","\x1B[39m"),yellow:j("\x1B[33m","\x1B[39m"),blue:j("\x1B[34m","\x1B[39m"),magenta:j("\x1B[35m","\x1B[39m"),cyan:j("\x1B[36m","\x1B[39m"),white:j("\x1B[37m","\x1B[39m"),gray:j("\x1B[90m","\x1B[39m"),bgBlack:j("\x1B[40m","\x1B[49m"),bgRed:j("\x1B[41m","\x1B[49m"),bgGreen:j("\x1B[42m","\x1B[49m"),bgYellow:j("\x1B[43m","\x1B[49m"),bgBlue:j("\x1B[44m","\x1B[49m"),bgMagenta:j("\x1B[45m","\x1B[49m"),bgCyan:j("\x1B[46m","\x1B[49m"),bgWhite:j("\x1B[47m","\x1B[49m"),blackBright:j("\x1B[90m","\x1B[39m"),redBright:j("\x1B[91m","\x1B[39m"),greenBright:j("\x1B[92m","\x1B[39m"),yellowBright:j("\x1B[93m","\x1B[39m"),blueBright:j("\x1B[94m","\x1B[39m"),magentaBright:j("\x1B[95m","\x1B[39m"),cyanBright:j("\x1B[96m","\x1B[39m"),whiteBright:j("\x1B[97m","\x1B[39m"),bgBlackBright:j("\x1B[100m","\x1B[49m"),bgRedBright:j("\x1B[101m","\x1B[49m"),bgGreenBright:j("\x1B[102m","\x1B[49m"),bgYellowBright:j("\x1B[103m","\x1B[49m"),bgBlueBright:j("\x1B[104m","\x1B[49m"),bgMagentaBright:j("\x1B[105m","\x1B[49m"),bgCyanBright:j("\x1B[106m","\x1B[49m"),bgWhiteBright:j("\x1B[107m","\x1B[49m")}};Z.exports=F(),Z.exports.createColors=F}),b6=l((z,Z)=>{Z.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}}),k6=L(A6(),1);function H6(z){return z.replace(/[<[].+/,"").trim()}function C6(z){let Z=/<([^>]+)>/g,$=/\[([^\]]+)\]/g,Q=[],J=(U)=>{let F=!1,q=U[1];if(q.startsWith("..."))q=q.slice(3),F=!0;return{required:U[0].startsWith("<"),value:q,variadic:F}},Y;while(Y=Z.exec(z))Q.push(J(Y));let X;while(X=$.exec(z))Q.push(J(X));return Q}function v6(z){let Z={alias:{},boolean:[]};for(let[$,Q]of z.entries()){if(Q.names.length>1)Z.alias[Q.names[0]]=Q.names.slice(1);if(Q.isBoolean)if(Q.negated){if(!z.some((Y,X)=>{return X!==$&&Y.names.some((U)=>Q.names.includes(U))&&typeof Y.required==="boolean"}))Z.boolean.push(Q.names[0])}else Z.boolean.push(Q.names[0])}return Z}function $6(z){return z.sort((Z,$)=>{return Z.length>$.length?-1:1})[0]}function Q6(z,Z){return z.length>=Z?z:`${z}${" ".repeat(Z-z.length)}`}function y6(z){return z.replace(/([a-z])-([a-z])/g,(Z,$,Q)=>{return $+Q.toUpperCase()})}function S6(z,Z,$){let Q=0,J=Z.length,Y=z,X;for(;Q<J;++Q)X=Y[Z[Q]],Y=Y[Z[Q]]=Q===J-1?$:X!=null?X:!!~Z[Q+1].indexOf(".")||!(+Z[Q+1]>-1)?{}:[]}function f6(z,Z){for(let $ of Object.keys(Z)){let Q=Z[$];if(Q.shouldTransform){if(z[$]=Array.prototype.concat.call([],z[$]),typeof Q.transformFunction==="function")z[$]=z[$].map(Q.transformFunction)}}}function g6(z){let Z=/([^\\/]+)$/.exec(z);return Z?Z[1]:""}function K6(z){return z.split(".").map((Z,$)=>{return $===0?y6(Z):Z}).join(".")}class b extends Error{constructor(z){super(z);if(this.name=this.constructor.name,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,this.constructor);else this.stack=Error(z).stack}}function _6(){let{env:z}=Z6,{TERM:Z,TERM_PROGRAM:$}=z;if(Z6.platform!=="win32")return Z!=="linux";return Boolean(z.WT_SESSION)||Boolean(z.TERMINUS_SUBLIME)||z.ConEmuTask==="{cmd::Cmder}"||$==="Terminus-Sublime"||$==="vscode"||Z==="xterm-256color"||Z==="alacritty"||Z==="rxvt-unicode"||Z==="rxvt-unicode-256color"||z.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var C="\x1B",w=`${C}[`;var O={to(z,Z){if(!Z)return`${w}${z+1}G`;return`${w}${Z+1};${z+1}H`},move(z,Z){let $="";if(z<0)$+=`${w}${-z}D`;else if(z>0)$+=`${w}${z}C`;if(Z<0)$+=`${w}${-Z}A`;else if(Z>0)$+=`${w}${Z}B`;return $},up:(z=1)=>`${w}${z}A`,down:(z=1)=>`${w}${z}B`,forward:(z=1)=>`${w}${z}C`,backward:(z=1)=>`${w}${z}D`,nextLine:(z=1)=>`${w}E`.repeat(z),prevLine:(z=1)=>`${w}F`.repeat(z),left:`${w}G`,hide:`${w}?25l`,show:`${w}?25h`,save:`${C}7`,restore:`${C}8`};var _={screen:`${w}2J`,up:(z=1)=>`${w}1J`.repeat(z),down:(z=1)=>`${w}J`.repeat(z),line:`${w}2K`,lineEnd:`${w}K`,lineStart:`${w}1K`,lines(z){let Z="";for(let $=0;$<z;$++)Z+=this.line+($<z-1?O.up():"");if(z)Z+=O.left;return Z}},hz={screen:`${C}c`};class V6{rawName;description;name;names;isBoolean;required;config;negated;constructor(z,Z,$){if(this.rawName=z,this.description=Z,this.config=Object.assign({},$),z=z.replace(/\.\*/g,""),this.negated=!1,this.names=H6(z).split(",").map((Q)=>{let J=Q.trim().replace(/^-{1,2}/,"");if(J.startsWith("no-"))this.negated=!0,J=J.replace(/^no-/,"");return K6(J)}).sort((Q,J)=>Q.length>J.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null)this.config.default=!0;if(z.includes("<"))this.required=!0;else if(z.includes("["))this.required=!1;else this.isBoolean=!0}}var vz=x.argv,d6=`${x.platform}-${x.arch} bun-v${typeof Bun<"u"?Bun.version:"unknown"}`,u6=k.argv,m6=`${k.platform}-${k.arch} node-${k.version}`;class n{rawName;description;config;cli;options;aliasNames;name;args;commandAction;usageText;versionNumber;examples;helpCallback;globalCommand;constructor(z,Z,$,Q){if(this.rawName=z,this.description=Z,this.config=$,this.cli=Q,this.options=[],this.aliasNames=[],this.name=H6(z),this.args=C6(z),this.examples=[],!$)this.config={}}usage(z){return this.usageText=z,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(z,Z="-v, --version"){return this.versionNumber=z,this.option(Z,"Display version number"),this}example(z){return this.examples.push(z),this}option(z,Z,$){let Q=new V6(z,Z,$);return this.options.push(Q),this}alias(z){return this.aliasNames.push(z),this}action(z){return this.commandAction=z,this}isMatched(z){return this.name===z||this.aliasNames.includes(z)}get isDefaultCommand(){return this.name===""||this.aliasNames.includes("!")}get isGlobalCommand(){return this instanceof a}hasOption(z){return z=z.split(".")[0],!!this.options.find((Z)=>{return Z.names.includes(z)})}outputHelp(){let{name:z,commands:Z}=this.cli,{versionNumber:$,options:Q,helpCallback:J}=this.cli.globalCommand,Y=[{body:`${z}${$?`/${$}`:""}`}];if(Y.push({title:"Usage",body:` $ ${z} ${this.usageText||this.rawName}`}),(this.isGlobalCommand||this.isDefaultCommand)&&Z.length>0){let F=$6(Z.map((q)=>q.rawName));Y.push({title:"Commands",body:Z.map((q)=>{return` ${Q6(q.rawName,F.length)} ${q.description}`}).join(`
4
4
  `)}),Y.push({title:"For more info, run any command with the `--help` flag",body:Z.map((q)=>` $ ${z}${q.name===""?"":` ${q.name}`} --help`).join(`
5
5
  `)})}let U=this.isGlobalCommand?Q:[...this.options,...Q||[]];if(!this.isGlobalCommand&&!this.isDefaultCommand)U=U.filter((F)=>F.name!=="version");if(U.length>0){let F=$6(U.map((q)=>q.rawName));Y.push({title:"Options",body:U.map((q)=>{return` ${Q6(q.rawName,F.length)} ${q.description} ${q.config.default===void 0?"":`(default: ${q.config.default})`}`}).join(`
6
6
  `)})}if(this.examples.length>0)Y.push({title:"Examples",body:this.examples.map((F)=>{if(typeof F==="function")return F(z);return F}).join(`
@@ -21,7 +21,7 @@ ${F.body}`:F.body}).join(`
21
21
  `).length-1;this.output.write(O.move(-999,z*-1))}render(){let z=G6(this._render(this)??"",Y6.stdout.columns,{hard:!0,trim:!1});if(z===this._prevFrame)return;if(this.state==="initial")this.output.write(O.hide);else{let Z=a6(this._prevFrame,z);if(this.restoreCursor(),Z&&Z?.length===1){let $=Z[0];this.output.write(O.move(0,$)),this.output.write(_.lines(1));let Q=z.split(`
22
22
  `);this.output.write(Q[$]),this._prevFrame=z,this.output.write(O.move(0,Q.length-$-1));return}if(Z&&Z?.length>1){let $=Z[0];this.output.write(O.move(0,$)),this.output.write(_.down());let J=z.split(`
23
23
  `).slice($);this.output.write(J.join(`
24
- `)),this._prevFrame=z;return}this.output.write(_.down())}if(this.output.write(z),this.state==="initial")this.state="active";this._prevFrame=z}}function Dz(z,Z){if(z===void 0)return 0;if(Z.length===0)return 0;let Q=Z.findIndex((J)=>J.value===z);return Q!==-1?Q:0}function Wz(z,Z){return(Z.label??String(Z.value)).toLowerCase().includes(z.toLowerCase())}function Lz(z,Z){if(!Z)return;if(z)return Z;return Z[0]}class wz extends i{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#z=0;#$="";#Q;#Z;get cursor(){return this.#z}get userInputWithCursor(){if(!this.userInput)return d.default.inverse(d.default.hidden("_"));if(this._cursor>=this.userInput.length)return`${this.userInput}\u2588`;let z=this.userInput.slice(0,this._cursor),[Z,...$]=this.userInput.slice(this._cursor);return`${z}${d.default.inverse(Z)}${$.join("")}`}get options(){if(typeof this.#Z==="function")return this.#Z();return this.#Z}constructor(z){super(z);this.#Z=z.options;let Z=this.options;this.filteredOptions=[...Z],this.multiple=z.multiple===!0,this.#Q=z.filter??Wz;let $;if(z.initialValue&&Array.isArray(z.initialValue))if(this.multiple)$=z.initialValue;else $=z.initialValue.slice(0,1);else if(!this.multiple&&this.options.length>0)$=[this.options[0].value];if($)for(let Q of $){let J=Z.findIndex((Y)=>Y.value===Q);if(J!==-1)this.toggleSelected(Q),this.#z=J}this.focusedValue=this.options[this.#z]?.value,this.on("key",(Q,J)=>this.#J(Q,J)),this.on("userInput",(Q)=>this.#Y(Q))}_isActionKey(z,Z){return z==="\t"||this.multiple&&this.isNavigating&&Z.name==="space"&&z!==void 0&&z!==""}#J(z,Z){let $=Z.name==="up",Q=Z.name==="down",J=Z.name==="return";if($||Q){if(this.#z=Math.max(0,Math.min(this.#z+($?-1:1),this.filteredOptions.length-1)),this.focusedValue=this.filteredOptions[this.#z]?.value,!this.multiple)this.selectedValues=[this.focusedValue];this.isNavigating=!0}else if(J)this.value=Lz(this.multiple,this.selectedValues);else if(this.multiple)if(this.focusedValue!==void 0&&(Z.name==="tab"||this.isNavigating&&Z.name==="space"))this.toggleSelected(this.focusedValue);else this.isNavigating=!1;else{if(this.focusedValue)this.selectedValues=[this.focusedValue];this.isNavigating=!1}}deselectAll(){this.selectedValues=[]}toggleSelected(z){if(this.filteredOptions.length===0)return;if(this.multiple)if(this.selectedValues.includes(z))this.selectedValues=this.selectedValues.filter((Z)=>Z!==z);else this.selectedValues=[...this.selectedValues,z];else this.selectedValues=[z]}#Y(z){if(z!==this.#$){this.#$=z;let Z=this.options;if(z)this.filteredOptions=Z.filter(($)=>this.#Q(z,$));else this.filteredOptions=[...Z];if(this.#z=Dz(this.focusedValue,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#z]?.value,!this.multiple)if(this.focusedValue!==void 0)this.toggleSelected(this.focusedValue);else this.deselectAll()}}}class Mz extends i{options;cursor=0;#z;getGroupItems(z){return this.options.filter((Z)=>Z.group===z)}isGroupSelected(z){let Z=this.getGroupItems(z),$=this.value;if($===void 0)return!1;return Z.every((Q)=>$.includes(Q.value))}toggleValue(){let z=this.options[this.cursor];if(this.value===void 0)this.value=[];if(z.group===!0){let Z=z.value,$=this.getGroupItems(Z);if(this.isGroupSelected(Z))this.value=this.value.filter((Q)=>$.findIndex((J)=>J.value===Q)===-1);else this.value=[...this.value,...$.map((Q)=>Q.value)];this.value=Array.from(new Set(this.value))}else{let Z=this.value.includes(z.value);this.value=Z?this.value.filter(($)=>$!==z.value):[...this.value,z.value]}}constructor(z){super(z,!1);let{options:Z}=z;this.#z=z.selectableGroups!==!1,this.options=Object.entries(Z).flatMap(([$,Q])=>[{value:$,group:!0,label:$},...Q.map((J)=>({...J,group:$}))]),this.value=[...z.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:$})=>$===z.cursorAt),this.#z?0:1),this.on("cursor",($)=>{switch($){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let Q=this.options[this.cursor]?.group===!0;if(!this.#z&&Q)this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let Q=this.options[this.cursor]?.group===!0;if(!this.#z&&Q)this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}case"space":this.toggleValue();break}})}}var nz=L(M(),1);var az=L(M(),1);var cz=L(M(),1),T={red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bold:["\x1B[1m","\x1B[22m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],dim:["\x1B[2m","\x1B[22m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"]},I={primary:"blue",secondary:"cyan",success:"green",warning:"yellow",error:"red",info:"magenta",muted:"gray"};function Nz(){return!0}function Oz(){let z={};z.supportsColor=Nz();function Z(Q,J=[]){let Y=Q===""?[]:[...J,Q],X=function(F){if(!z.supportsColor)return F;let q="",j="";for(let G of Y)if(G in I&&I[G]in T){let H=I[G];q+=T[H][0],j=T[H][1]+j}else if(G in T)q+=T[G][0],j=T[G][1]+j;return q+F+j},U=[...Object.keys(T),...Object.keys(I)];for(let F of U)if(!(F in X))Object.defineProperty(X,F,{get(){return Z(F,Y)}});return X}let $=[...Object.keys(T),...Object.keys(I)];for(let Q of $)if(!(Q in z))Object.defineProperty(z,Q,{get(){return Z(Q)}});return z}var pz=Oz();var Tz=_6();var W=(z,Z)=>Tz?z:Z,iz=W("\u25C6","*"),rz=W("\u25A0","x"),sz=W("\u25B2","x"),ez=W("\u25C7","o"),tz=W("\u250C","T"),Bz=W("\u2502","|"),oz=W("\u2514","\u2014"),z0=W("\u25CF",">"),Z0=W("\u25CB"," "),$0=W("\u25FB","[\u2022]"),Q0=W("\u25FC","[+]"),J0=W("\u25FB","[ ]"),Y0=W("\u25AA","\u2022"),X0=W("\u2500","-"),U0=W("\u256E","+"),j0=W("\u251C","+"),q0=W("\u256F","+"),F0=W("\u25CF","\u2022"),G0=W("\u25C6","*"),H0=W("\u25B2","!"),K0=W("\u25A0","x");var V0=L(M(),1);var D0=L(M(),1);var W0=L(M(),1);var L0=L(M(),1);var w0=L(M(),1);var M0=L(M(),1);var N0=L(M(),1);var O0=L(M(),1);var T0=L(M(),1),B0=L(M(),1);var P0={light:W("\u2500","-"),heavy:W("\u2501","="),block:W("\u2588","#")};var I0=L(M(),1);var R0=L(M(),1);var Pz=L(M(),1);function Iz(){return`${Pz.default.gray(Bz)} `}var E0=Iz();var A0=L(M(),1);var b0=L(M(),1);var r="0.2.3";var N=new c("crosswind");async function S(z){if(z){if(!E(z))console.error(`\u274C Config file not found: ${z}`),B.exit(1);try{let Z=await import(z);return{...s,...Z.default||Z}}catch(Z){console.error(`\u274C Failed to load config file: ${z}`),console.error(Z),B.exit(1)}}return s}function T6(z,Z){return{...z,output:Z.output||z.output,minify:Z.minify??z.minify,content:Z.content?[Z.content]:z.content,verbose:Z.verbose??z.verbose}}async function e(z,Z){try{let $=Z.verbose?"\uD83D\uDE80 Building CSS (verbose mode)...":"\uD83D\uDE80 Building CSS...";if(console.log($),Z.verbose)console.log(`\uD83D\uDCC2 Content patterns: ${z.content.join(", ")}`),console.log(`\uD83D\uDCDD Output: ${z.output}`),console.log(`\uD83D\uDDDC\uFE0F Minify: ${z.minify?"Yes":"No"}`);let Q=await N6(z);if(console.log(`\u2705 Built ${Q.classes.size} classes in ${Q.duration.toFixed(2)}ms`),console.log(`\uD83D\uDCDD Output: ${z.output}`),Q.compiledClasses&&Q.compiledClasses.size>0){if(console.log(`\uD83D\uDD28 Compiled ${Q.compiledClasses.size} class groups`),Q.transformedFiles)console.log(`\uD83D\uDCDD Transformed ${Q.transformedFiles.size} files`);if(Z.verbose){console.log(`
24
+ `)),this._prevFrame=z;return}this.output.write(_.down())}if(this.output.write(z),this.state==="initial")this.state="active";this._prevFrame=z}}function Dz(z,Z){if(z===void 0)return 0;if(Z.length===0)return 0;let Q=Z.findIndex((J)=>J.value===z);return Q!==-1?Q:0}function Wz(z,Z){return(Z.label??String(Z.value)).toLowerCase().includes(z.toLowerCase())}function Lz(z,Z){if(!Z)return;if(z)return Z;return Z[0]}class wz extends i{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#z=0;#$="";#Q;#Z;get cursor(){return this.#z}get userInputWithCursor(){if(!this.userInput)return d.default.inverse(d.default.hidden("_"));if(this._cursor>=this.userInput.length)return`${this.userInput}\u2588`;let z=this.userInput.slice(0,this._cursor),[Z,...$]=this.userInput.slice(this._cursor);return`${z}${d.default.inverse(Z)}${$.join("")}`}get options(){if(typeof this.#Z==="function")return this.#Z();return this.#Z}constructor(z){super(z);this.#Z=z.options;let Z=this.options;this.filteredOptions=[...Z],this.multiple=z.multiple===!0,this.#Q=z.filter??Wz;let $;if(z.initialValue&&Array.isArray(z.initialValue))if(this.multiple)$=z.initialValue;else $=z.initialValue.slice(0,1);else if(!this.multiple&&this.options.length>0)$=[this.options[0].value];if($)for(let Q of $){let J=Z.findIndex((Y)=>Y.value===Q);if(J!==-1)this.toggleSelected(Q),this.#z=J}this.focusedValue=this.options[this.#z]?.value,this.on("key",(Q,J)=>this.#J(Q,J)),this.on("userInput",(Q)=>this.#Y(Q))}_isActionKey(z,Z){return z==="\t"||this.multiple&&this.isNavigating&&Z.name==="space"&&z!==void 0&&z!==""}#J(z,Z){let $=Z.name==="up",Q=Z.name==="down",J=Z.name==="return";if($||Q){if(this.#z=Math.max(0,Math.min(this.#z+($?-1:1),this.filteredOptions.length-1)),this.focusedValue=this.filteredOptions[this.#z]?.value,!this.multiple)this.selectedValues=[this.focusedValue];this.isNavigating=!0}else if(J)this.value=Lz(this.multiple,this.selectedValues);else if(this.multiple)if(this.focusedValue!==void 0&&(Z.name==="tab"||this.isNavigating&&Z.name==="space"))this.toggleSelected(this.focusedValue);else this.isNavigating=!1;else{if(this.focusedValue)this.selectedValues=[this.focusedValue];this.isNavigating=!1}}deselectAll(){this.selectedValues=[]}toggleSelected(z){if(this.filteredOptions.length===0)return;if(this.multiple)if(this.selectedValues.includes(z))this.selectedValues=this.selectedValues.filter((Z)=>Z!==z);else this.selectedValues=[...this.selectedValues,z];else this.selectedValues=[z]}#Y(z){if(z!==this.#$){this.#$=z;let Z=this.options;if(z)this.filteredOptions=Z.filter(($)=>this.#Q(z,$));else this.filteredOptions=[...Z];if(this.#z=Dz(this.focusedValue,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#z]?.value,!this.multiple)if(this.focusedValue!==void 0)this.toggleSelected(this.focusedValue);else this.deselectAll()}}}class Mz extends i{options;cursor=0;#z;getGroupItems(z){return this.options.filter((Z)=>Z.group===z)}isGroupSelected(z){let Z=this.getGroupItems(z),$=this.value;if($===void 0)return!1;return Z.every((Q)=>$.includes(Q.value))}toggleValue(){let z=this.options[this.cursor];if(this.value===void 0)this.value=[];if(z.group===!0){let Z=z.value,$=this.getGroupItems(Z);if(this.isGroupSelected(Z))this.value=this.value.filter((Q)=>$.findIndex((J)=>J.value===Q)===-1);else this.value=[...this.value,...$.map((Q)=>Q.value)];this.value=Array.from(new Set(this.value))}else{let Z=this.value.includes(z.value);this.value=Z?this.value.filter(($)=>$!==z.value):[...this.value,z.value]}}constructor(z){super(z,!1);let{options:Z}=z;this.#z=z.selectableGroups!==!1,this.options=Object.entries(Z).flatMap(([$,Q])=>[{value:$,group:!0,label:$},...Q.map((J)=>({...J,group:$}))]),this.value=[...z.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:$})=>$===z.cursorAt),this.#z?0:1),this.on("cursor",($)=>{switch($){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let Q=this.options[this.cursor]?.group===!0;if(!this.#z&&Q)this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let Q=this.options[this.cursor]?.group===!0;if(!this.#z&&Q)this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}case"space":this.toggleValue();break}})}}var nz=L(M(),1);var az=L(M(),1);var cz=L(M(),1),T={red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bold:["\x1B[1m","\x1B[22m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],dim:["\x1B[2m","\x1B[22m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"]},I={primary:"blue",secondary:"cyan",success:"green",warning:"yellow",error:"red",info:"magenta",muted:"gray"};function Nz(){return!0}function Oz(){let z={};z.supportsColor=Nz();function Z(Q,J=[]){let Y=Q===""?[]:[...J,Q],X=function(F){if(!z.supportsColor)return F;let q="",j="";for(let G of Y)if(G in I&&I[G]in T){let H=I[G];q+=T[H][0],j=T[H][1]+j}else if(G in T)q+=T[G][0],j=T[G][1]+j;return q+F+j},U=[...Object.keys(T),...Object.keys(I)];for(let F of U)if(!(F in X))Object.defineProperty(X,F,{get(){return Z(F,Y)}});return X}let $=[...Object.keys(T),...Object.keys(I)];for(let Q of $)if(!(Q in z))Object.defineProperty(z,Q,{get(){return Z(Q)}});return z}var pz=Oz();var Tz=_6();var W=(z,Z)=>Tz?z:Z,iz=W("\u25C6","*"),rz=W("\u25A0","x"),sz=W("\u25B2","x"),ez=W("\u25C7","o"),tz=W("\u250C","T"),Bz=W("\u2502","|"),oz=W("\u2514","\u2014"),z0=W("\u25CF",">"),Z0=W("\u25CB"," "),$0=W("\u25FB","[\u2022]"),Q0=W("\u25FC","[+]"),J0=W("\u25FB","[ ]"),Y0=W("\u25AA","\u2022"),X0=W("\u2500","-"),U0=W("\u256E","+"),j0=W("\u251C","+"),q0=W("\u256F","+"),F0=W("\u25CF","\u2022"),G0=W("\u25C6","*"),H0=W("\u25B2","!"),K0=W("\u25A0","x");var V0=L(M(),1);var D0=L(M(),1);var W0=L(M(),1);var L0=L(M(),1);var w0=L(M(),1);var M0=L(M(),1);var N0=L(M(),1);var O0=L(M(),1);var T0=L(M(),1),B0=L(M(),1);var P0={light:W("\u2500","-"),heavy:W("\u2501","="),block:W("\u2588","#")};var I0=L(M(),1);var R0=L(M(),1);var Pz=L(M(),1);function Iz(){return`${Pz.default.gray(Bz)} `}var E0=Iz();var A0=L(M(),1);var b0=L(M(),1);var r="0.2.4";var N=new c("crosswind");async function S(z){if(z){if(!E(z))console.error(`\u274C Config file not found: ${z}`),B.exit(1);try{let Z=await import(z);return{...s,...Z.default||Z}}catch(Z){console.error(`\u274C Failed to load config file: ${z}`),console.error(Z),B.exit(1)}}return s}function T6(z,Z){return{...z,output:Z.output||z.output,minify:Z.minify??z.minify,content:Z.content?[Z.content]:z.content,verbose:Z.verbose??z.verbose}}async function e(z,Z){try{let $=Z.verbose?"\uD83D\uDE80 Building CSS (verbose mode)...":"\uD83D\uDE80 Building CSS...";if(console.log($),Z.verbose)console.log(`\uD83D\uDCC2 Content patterns: ${z.content.join(", ")}`),console.log(`\uD83D\uDCDD Output: ${z.output}`),console.log(`\uD83D\uDDDC\uFE0F Minify: ${z.minify?"Yes":"No"}`);let Q=await N6(z);if(console.log(`\u2705 Built ${Q.classes.size} classes in ${Q.duration.toFixed(2)}ms`),console.log(`\uD83D\uDCDD Output: ${z.output}`),Q.compiledClasses&&Q.compiledClasses.size>0){if(console.log(`\uD83D\uDD28 Compiled ${Q.compiledClasses.size} class groups`),Q.transformedFiles)console.log(`\uD83D\uDCDD Transformed ${Q.transformedFiles.size} files`);if(Z.verbose){console.log(`
25
25
  \uD83D\uDCE6 Compiled classes:`);for(let[,{className:J,utilities:Y}]of Q.compiledClasses)console.log(` ${J} \u2190 ${Y.join(" ")}`)}}if(Z.verbose&&Q.classes.size>0){let J=Array.from(Q.classes).sort();console.log(`
26
26
  \uD83D\uDCCB Classes found (${Q.classes.size}):`),J.forEach((Y)=>console.log(` - ${Y}`))}if(E(z.output)){let Y=(Bun.file(z.output).size/1024).toFixed(2);console.log(`\uD83D\uDCE6 File size: ${Y} KB`)}}catch($){if(console.error("\u274C Build failed:",$),Z.verbose&&$ instanceof Error)console.error($.stack);B.exit(1)}}function B6(z,Z){console.log("\uD83D\uDC40 Watching for changes...");let $=new Set;for(let Q of z.content){let J=Q.split("**")[0]||".";$.add(J)}for(let Q of $)Ez(Q,{recursive:!0},async(J,Y)=>{if(Y&&/\.(?:html|js|ts|jsx|tsx|stx)$/.test(Y))console.log(`
27
27
  \uD83D\uDCDD ${Y} changed, rebuilding...`),await e(z,Z)});console.log(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{A as Kx,B as Ox,C as Qx,D as Rx,E as Ux,F as Q,G as Vx,H as Wx,I as Xx,J as Yx,K as Zx,L as R,M as _x,N as $x,O as U,P as jx,Q as kx,a as T,b as y,c as S,d as O,e as h,f as u,g as f,h as C,i as c,j as p,k as g,l as d,m as a,n as l,o as e,p as t,q as n,r as s,s as i,t as o,u as xx,v as mx,w as qx,x as Bx,y as Dx,z as Jx}from"../chunk-3frpk224.js";function v(x={}){return{name:"bun-plugin-crosswind",async setup(V){let m=await R({name:"crosswind",defaultConfig:U}),q={...m,...x.config,theme:{...m.theme,...x.config?.theme},shortcuts:{...m.shortcuts,...x.config?.shortcuts},rules:[...m.rules||[],...x.config?.rules||[]],variants:{...m.variants,...x.config?.variants},safelist:[...m.safelist||[],...x.config?.safelist||[]],blocklist:[...m.blocklist||[],...x.config?.blocklist||[]],preflights:[...m.preflights||[],...x.config?.preflights||[]],presets:[...m.presets||[],...x.config?.presets||[]]},W=x.includePreflight??!0;V.onLoad({filter:/\.html?$/},async({path:X})=>{let D=await Bun.file(X).text(),J=O(D);for(let B of q.safelist)J.add(B);let K=new Q(q);for(let B of J)K.generate(B);let Y=K.toCSS(W,q.minify);return{contents:D.replace("</head>",`<style>${Y}</style>
2
+ import{A as Kx,B as Ox,C as Qx,D as Rx,E as Ux,F as Q,G as Vx,H as Wx,I as Xx,J as Yx,K as Zx,L as R,M as _x,N as $x,O as U,P as jx,Q as kx,a as T,b as y,c as S,d as O,e as h,f as u,g as f,h as C,i as c,j as p,k as g,l as d,m as a,n as l,o as e,p as t,q as n,r as s,s as i,t as o,u as xx,v as mx,w as qx,x as Bx,y as Dx,z as Jx}from"./chunk-k9ke1f7b.js";function v(x={}){return{name:"bun-plugin-crosswind",async setup(V){let m=await R({name:"crosswind",defaultConfig:U}),q={...m,...x.config,theme:{...m.theme,...x.config?.theme},shortcuts:{...m.shortcuts,...x.config?.shortcuts},rules:[...m.rules||[],...x.config?.rules||[]],variants:{...m.variants,...x.config?.variants},safelist:[...m.safelist||[],...x.config?.safelist||[]],blocklist:[...m.blocklist||[],...x.config?.blocklist||[]],preflights:[...m.preflights||[],...x.config?.preflights||[]],presets:[...m.presets||[],...x.config?.presets||[]]},W=x.includePreflight??!0;V.onLoad({filter:/\.html?$/},async({path:X})=>{let D=await Bun.file(X).text(),J=O(D);for(let B of q.safelist)J.add(B);let K=new Q(q);for(let B of J)K.generate(B);let Y=K.toCSS(W,q.minify);return{contents:D.replace("</head>",`<style>${Y}</style>
3
3
  </head>`),loader:"text"}})}}}var A={getCSS:()=>`
4
4
  /* Tailwind Forms */
5
5
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cwcss/crosswind",
3
3
  "type": "module",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "description": "A performant Utility-First CSS framework. Similar to Tailwind or UnoCSS.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",