@stacksjs/stx 0.2.290 → 0.2.291
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.
- package/dist/{chunk-38c4xz9b.js → chunk-0nr9jcv2.js} +1 -1
- package/dist/{chunk-3w7zzc09.js → chunk-12nxyp7k.js} +1 -1
- package/dist/{chunk-hxrj0068.js → chunk-1f3hhrfj.js} +1 -1
- package/dist/{chunk-7wfm9ydm.js → chunk-1pmf8mbc.js} +1 -1
- package/dist/{chunk-xws9mpmv.js → chunk-1y7105dt.js} +1 -1
- package/dist/{chunk-cz9srk67.js → chunk-3225x47e.js} +1 -1
- package/dist/{chunk-dkb0vas3.js → chunk-3maxrw5t.js} +1 -1
- package/dist/{chunk-raczxett.js → chunk-6tna7a7t.js} +1 -1
- package/dist/{chunk-3sgrdrav.js → chunk-6yy15yee.js} +1 -1
- package/dist/{chunk-r09mh5jg.js → chunk-8x7699qk.js} +1 -1
- package/dist/{chunk-5qn5hm0m.js → chunk-a4tv4wwg.js} +1 -1
- package/dist/{chunk-dd4yb7x1.js → chunk-b2x8jxbq.js} +1 -1
- package/dist/{chunk-d7gf69nf.js → chunk-bxpvqbm3.js} +1 -1
- package/dist/{chunk-kth7xvwx.js → chunk-cjtd0qqc.js} +1 -1
- package/dist/{chunk-q1sv9qtc.js → chunk-cp4dpkz8.js} +2 -2
- package/dist/{chunk-1sptqk7h.js → chunk-dd9qpsxg.js} +1 -1
- package/dist/{chunk-d8t2719e.js → chunk-dwfhkbnb.js} +1 -1
- package/dist/{chunk-teptnq41.js → chunk-g10bygzc.js} +1 -1
- package/dist/{chunk-f6fe6rnb.js → chunk-g71eqm8f.js} +1 -1
- package/dist/{chunk-ppdc35r2.js → chunk-gttwdcq3.js} +1 -1
- package/dist/{chunk-e7mmb0b3.js → chunk-h6emafs7.js} +1 -1
- package/dist/{chunk-qbzf9eaf.js → chunk-hmercfd9.js} +1 -1
- package/dist/{chunk-htkktmh3.js → chunk-hpks3cks.js} +1 -1
- package/dist/{chunk-gw9twshb.js → chunk-j7thx96e.js} +1 -1
- package/dist/{chunk-m31cshyg.js → chunk-jszyej4e.js} +1 -1
- package/dist/{chunk-jxpjb31v.js → chunk-jze6dxct.js} +1 -1
- package/dist/{chunk-gc57b4y2.js → chunk-k049j105.js} +165 -164
- package/dist/{chunk-vdb2696a.js → chunk-kgjpgnk0.js} +2 -2
- package/dist/{chunk-68fb23tb.js → chunk-kr4mzzdn.js} +1 -1
- package/dist/{chunk-41zwd0va.js → chunk-nna2ra7b.js} +1 -1
- package/dist/{chunk-n0dbcnxr.js → chunk-np744hxn.js} +1 -1
- package/dist/{chunk-ywhapcwn.js → chunk-nszr6tyg.js} +1 -1
- package/dist/{chunk-27mcbgsp.js → chunk-q9xk76f2.js} +1 -1
- package/dist/{chunk-8gyh1gsg.js → chunk-swe9ctpv.js} +1 -1
- package/dist/{chunk-65rj7hds.js → chunk-tnxq5ygy.js} +1 -1
- package/dist/{chunk-nhk9xscz.js → chunk-tt318keb.js} +1 -1
- package/dist/{chunk-8xw54xkz.js → chunk-v9fjy3rs.js} +8 -8
- package/dist/{chunk-vkv3deyw.js → chunk-vvzp0ev2.js} +1 -1
- package/dist/{chunk-4xg7zasg.js → chunk-w43x27h2.js} +1 -1
- package/dist/{chunk-rwaxnpr3.js → chunk-wwcdnhh5.js} +1 -1
- package/dist/{chunk-2ky53kzn.js → chunk-yrz3hq80.js} +1 -1
- package/dist/{chunk-wsf5hxe3.js → chunk-z3te7cgf.js} +1 -1
- package/dist/{chunk-mw4kqnjq.js → chunk-zbxbg129.js} +1 -1
- package/dist/{chunk-bpjmm432.js → chunk-zcwpr2kc.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/inline-assets.d.ts +0 -14
- package/dist/inline-assets.js +16 -2
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as vl,$a as pn,$b as Ho,$c as Hp,$d as Hq,A as fk,Aa as zm,Ab as $n,Ac as gp,Ad as gq,Ae as mr,B as gk,Ba as Am,Bb as ao,Bc as hp,Bd as hq,Be as nr,C as hk,Ca as Nm,Cb as bo,Cc as ip,Cd as iq,Ce as or,D as ik,Da as Om,Db as co,Dc as jp,Dd as jq,De as pr,E as _k,Ea as Pm,Eb as eo,Ec as kp,Ed as kq,Ee as qr,F as $k,Fa as Qm,Fb as fo,Fc as lp,Fd as lq,Fe as rr,G as al,Ga as Rm,Gb as go,Gc as mp,Gd as mq,Ge as sr,H as bl,Ha as Sm,Hb as ho,Hc as np,Hd as nq,He as tr,I as cl,Ia as Wm,Ib as io,Ic as op,Id as oq,Ie as ur,J as dl,Ja as Xm,Jb as jo,Jc as pp,Jd as pq,Je as vr,K as el,Ka as Ym,Kb as ko,Kc as qp,Kd as qq,Ke as wr,L as fl,La as Zm,Lb as lo,Lc as rp,Ld as rq,Le as xr,M as gl,Ma as _m,Mb as so,Mc as sp,Md as sq,Me as yr,N as hl,Na as $m,Nb as to,Nc as tp,Nd as tq,Ne as zr,O as il,Oa as an,Ob as uo,Oc as up,Od as uq,Oe as Ar,P as jl,Pa as bn,Pb as vo,Pc as vp,Pd as vq,Pe as Br,Q as kl,Qa as cn,Qb as wo,Qc as wp,Qd as wq,Qe as Cr,R as ll,Ra as dn,Rb as xo,Rc as xp,Rd as xq,Re as Dr,S as ml,Sa as en,Sb as yo,Sc as yp,Sd as yq,Se as Er,T as nl,Ta as fn,Tb as zo,Tc as zp,Td as zq,Te as Fr,U as ol,Ua as gn,Ub as Ao,Uc as Ap,Ud as Aq,Ue as Gr,V as pl,Va as hn,Vb as Bo,Vc as Bp,Vd as Bq,Ve as Hr,W as ql,Wa as kn,Wb as Co,Wc as Cp,Wd as Cq,We as Ir,X as rl,Xa as ln,Xb as Do,Xc as Dp,Xd as Dq,Y as sl,Ya as mn,Yb as Eo,Yc as Ep,Yd as Eq,Z as tl,Za as nn,Zb as Fo,Zc as Fp,Zd as Fq,_ as ul,_a as on,_b as Go,_c as Gp,_d as Gq,aa as wl,ab as qn,ac as Io,ad as Ip,ae as Iq,ba as xl,bb as rn,bc as Jo,bd as Jp,be as Jq,ca as yl,cb as sn,cc as Ko,cd as Kp,ce as Kq,da as zl,db as tn,dc as Lo,dd as Lp,de as Lq,ea as Al,eb as un,ec as Mo,ed as Mp,ee as Mq,fa as Bl,fb as vn,fc as No,fd as Np,fe as Nq,ga as Cl,gb as wn,gc as Oo,gd as Op,ge as Oq,ha as Dl,hb as xn,hc as Po,hd as Pp,he as Pq,ia as El,ib as yn,ic as Qo,id as Qp,ie as Qq,ja as Fl,jb as zn,jc as Ro,jd as Rp,je as Rq,ka as Gl,kb as An,kc as So,kd as Sp,ke as Sq,la as Hl,lb as Bn,lc as To,ld as Tp,le as Tq,ma as Il,mb as Cn,mc as Uo,md as Up,me as Uq,na as Jl,nb as Fn,nc as Vo,nd as Vp,ne as $q,o as a,oa as Kl,ob as Gn,oc as Wo,od as Wp,oe as ar,p as Sj,pa as om,pb as Hn,pc as Xo,pd as Xp,pe as br,q as Tj,qa as pm,qb as In,qc as Yo,qd as Yp,qe as cr,r as Uj,ra as qm,rb as On,rc as Zo,rd as Zp,re as dr,s as Vj,sa as rm,sb as Pn,sc as _o,sd as _p,se as er,t as Wj,ta as sm,tb as Qn,tc as $o,td as $p,te as fr,u as Xj,ua as tm,ub as Rn,uc as ap,ud as aq,ue as gr,v as Yj,va as um,vb as Wn,vc as bp,vd as bq,ve as hr,w as Zj,wa as vm,wb as Xn,wc as cp,wd as cq,we as ir,x as _j,xa as wm,xb as Yn,xc as dp,xd as dq,xe as jr,y as dk,ya as xm,yb as Zn,yc as ep,yd as eq,ye as kr,z as ek,za as ym,zb as _n,zc as fp,zd as fq,ze as lr}from"./chunk-8xw54xkz.js";import{Xe as Jn}from"./chunk-7wfm9ydm.js";import{$e as jn,Ye as Tm,Ze as Um,_e as Vm,af as Kn,bf as Ln,cf as Mn,df as Nn,ef as Sn,ff as Tn,gf as Un,hf as Vn}from"./chunk-teptnq41.js";import{if as jk,jf as kk,kf as lk,lf as mk,mf as nk,nf as ok,of as pk,pf as qk,qf as rk,rf as sk,sf as tk,tf as uk,uf as vk,vf as wk,wf as xk}from"./chunk-ps20v1ah.js";import{Af as Rk,Bf as Sk,Cf as Tk,Df as Uk,Ef as Vk,Ff as Wk,Gf as Xk,Hf as Yk,If as Zk,xf as Ok,yf as Pk,zf as Qk}from"./chunk-6b9tm22t.js";import{Jf as mo,Kf as no,Lf as oo,Mf as po,Nf as qo,Of as ro}from"./chunk-hxrj0068.js";import{Pf as Dn,Qf as En}from"./chunk-mjpqz66q.js";import{Rf as cm,Sf as dm,Tf as em,Uf as fm,Vf as im,Wf as mm}from"./chunk-wsf5hxe3.js";import{$f as Pl,Xf as Ll,Yf as Ml,Zf as Nl,_f as Ol,ag as Ql,bg as Rl,cg as Sl,dg as Tl,eg as Ul,fg as Vl,gg as Wl,hg as Xl,ig as Yl,jg as Zl,kg as jm,lg as km,mg as lm}from"./chunk-2ky53kzn.js";import{ng as gm,qg as hm}from"./chunk-r09mh5jg.js";import{Ag as Dm,Bg as Em,Cg as Fm,Dg as Gm,Eg as Hm,Fg as Im,Gg as Jm,Hg as Km,Ig as Lm,Jg as Mm,yg as Bm,zg as Cm}from"./chunk-8bxtvsgm.js";import{Kg as Mk,Lg as Nk}from"./chunk-6sme368t.js";import{Mg as nm}from"./chunk-f6fe6rnb.js";import{Ng as Ch,Og as Dh,Pg as Eh,Qg as Fh,Rg as Gh,Sg as Hh}from"./chunk-n0dbcnxr.js";import{$g as $i,Tg as Wi,Ug as Xi,Vg as Yi,Zg as Zi,_g as _i}from"./chunk-0nsa242z.js";import{ah as fj,bh as gj,ch as hj,dh as ij,eh as jj,fh as kj,gh as lj,hh as mj,ih as nj,jh as oj,kh as pj}from"./chunk-ry9mp3gp.js";import{lh as Mi,mh as Ni,nh as Oi,oh as Pi,ph as Qi,rh as Ri,sh as Si,th as Ti,uh as Ui,vh as Vi}from"./chunk-k78gvm0g.js";import{wh as Hj,yh as Ij}from"./chunk-hmf9z4jx.js";import{Eh as yk,Fh as zk,Gh as Ak,Hh as Bk,Ih as Ck,Jh as Dk,Kh as Ek,Mh as Fk,Nh as Gk,Oh as Hk,Ph as Ik,Qh as Jk,Rh as Kk,Uh as Lk}from"./chunk-9rww0f53.js";import{$h as jh,Vh as dh,Wh as eh,Xh as fh,Yh as gh,Zh as hh,_h as ih,ai as kh,bi as lh,ci as mh,di as nh,ei as oh,fi as ph,gi as qh}from"./chunk-mywp77gt.js";import{ii as rh,ji as sh,ki as th,li as uh}from"./chunk-nmkra8q5.js";import{qi as vh}from"./chunk-k0y7ta0d.js";import{ri as zg}from"./chunk-a668m28h.js";import{si as Ag,ti as Bg}from"./chunk-ynt7y2n5.js";import{ui as Cg,vi as Dg,wi as Eg,xi as Fg,yi as Gg,zi as Hg}from"./chunk-wvq1g6gr.js";import{Ai as Ig,Bi as Jg,Ci as Kg,Di as Lg,Ei as Mg}from"./chunk-wyxw61az.js";import{Fi as Ng,Gi as Og,Hi as Pg,Ii as Qg,Ji as Rg}from"./chunk-k70fgb2f.js";import{Ki as Sg,Li as Tg,Mi as Ug,Ni as Vg,Oi as Wg,Pi as Xg,Qi as Yg}from"./chunk-4vpsvh6x.js";import{Ri as Zg,Si as _g,Ti as $g,Ui as ah,Vi as bh,Wi as ch}from"./chunk-jem20v5k.js";import{Yi as wg,Zi as xg}from"./chunk-mw4kqnjq.js";import{aj as yg}from"./chunk-cz9srk67.js";import"./chunk-efr3ejqt.js";import{ej as ue,fj as ve,gj as we,hj as xe,ij as ye,jj as ze,kj as Ae,lj as Be,mj as Ce,nj as De,oj as Ee,pj as Fe,qj as Ge,rj as He}from"./chunk-e7mmb0b3.js";import{sj as Ye,tj as Ze}from"./chunk-64gh98cz.js";import{Aj as Ke,Bj as Le,Cj as Me,Dj as Ne,Ej as Oe,Fj as Pe,Gj as Qe,Hj as Re,Ij as Se,Jj as Te,Kj as Ue,Lj as Ve,Mj as We,Nj as Xe}from"./chunk-fed3xsp9.js";import{Oj as _e,Pj as $e,Qj as af,Rj as bf,Sj as cf,Tj as df,Uj as ef,Vj as ff,Wj as gf,Xj as hf,Yj as jf}from"./chunk-5qn5hm0m.js";import{qk as Vq,rk as Wq,sk as Xq,tk as Yq,uk as Zq,vk as _q}from"./chunk-vdb2696a.js";import{Ak as _l,Bk as $l,Ck as am,Dk as bm,wk as $j,xk as ak,yk as bk,zk as ck}from"./chunk-mzstheqe.js";import"./chunk-58f0mthg.js";import"./chunk-kth7xvwx.js";import{$l as bc,$m as ed,$o as Pf,$p as Vh,$q as Dj,Al as La,Am as Gc,An as Fd,Ao as of,Ap as og,Aq as Di,Bl as Ma,Bm as Hc,Bn as Gd,Bo as pf,Bp as pg,Bq as Ei,Cl as Na,Cm as Ic,Cn as Hd,Co as qf,Cp as qg,Cq as Fi,Dl as Oa,Dm as Jc,Dn as Yd,Do as rf,Dp as rg,Dq as Gi,El as ib,Em as Kc,En as Zd,Eo as sf,Ep as sg,Eq as Hi,Fl as jb,Fm as Lc,Fn as _d,Fo as tf,Fp as tg,Fq as Ii,Gl as kb,Gn as $d,Go as uf,Gp as ug,Gq as Ji,Hl as lb,Hm as Mc,Hn as ae,Ho as vf,Hp as vg,Hq as Ki,Il as mb,Im as Nc,In as be,Io as wf,Ip as wh,Iq as Li,Jl as nb,Jm as Oc,Jn as ce,Jo as xf,Jp as xh,Jq as aj,Km as Pc,Kn as de,Ko as yf,Kp as yh,Kq as bj,Lm as Qc,Ln as ee,Lo as zf,Lp as zh,Lq as cj,Ml as Fb,Mm as Rc,Mn as fe,Mo as Af,Mp as Ah,Mq as dj,Nl as Gb,Nm as Sc,Nn as ge,No as Bf,Np as Bh,Nq as ej,Ol as Hb,Om as Tc,On as he,Oo as Cf,Op as Ih,Oq as qj,Pl as Ib,Pm as Uc,Pn as ie,Po as Df,Pp as Jh,Pq as rj,Ql as Jb,Qm as Vc,Qn as je,Qo as Ef,Qp as Kh,Qq as sj,Rl as Nb,Rm as Wc,Ro as Ff,Rp as Lh,Rq as tj,Sl as Ob,Sm as Xc,Sn as ne,So as Gf,Sp as Mh,Sq as uj,Tl as Pb,Tm as Yc,Tn as oe,To as Hf,Tp as Nh,Tq as vj,Ul as Wb,Um as Zc,Un as pe,Uo as If,Up as Oh,Uq as wj,Vl as Xb,Vm as _c,Vn as qe,Vo as Jf,Vp as Ph,Vq as xj,Wl as Yb,Wm as $c,Wn as re,Wo as Kf,Wp as Qh,Wq as yj,Xl as Zb,Xm as ad,Xn as se,Xo as Lf,Xp as Rh,Xq as zj,Yl as _b,Ym as bd,Yn as te,Yo as Mf,Yp as Sh,Yq as Aj,Zl as $b,Zm as cd,Zo as Nf,Zp as Th,Zq as Bj,_l as ac,_m as dd,_o as Of,_p as Uh,_q as Cj,am as cc,an as fd,ao as Ie,ap as Qf,aq as Wh,ar as Ej,bm as dc,bn as gd,bo as Je,bp as Rf,bq as Xh,br as Fj,cm as ec,cn as hd,cp as Sf,cq as Yh,cr as Gj,dm as fc,dn as id,do as kf,dp as Tf,dq as gi,dr as Jj,em as gc,en as jd,ep as Uf,eq as hi,er as Kj,fm as hc,fn as kd,fp as Vf,fq as ii,fr as Lj,gm as ic,gn as ld,gp as Wf,gq as ji,gr as Mj,hm as jc,hn as md,hp as Xf,hq as ki,hr as Nj,in as nd,ip as Yf,iq as li,ir as Oj,jn as od,jp as Zf,jq as mi,jr as Pj,km as kc,kn as pd,kp as _f,kq as ni,kr as Qj,lm as lc,ln as qd,lp as $f,lq as oi,lr as Rj,ml as xa,mm as mc,mn as rd,mp as ag,mq as pi,nl as ya,nm as nc,nn as sd,np as bg,nq as qi,ol as za,om as oc,on as td,op as cg,oq as ri,pl as Aa,pm as pc,pn as ud,pp as dg,pq as si,ql as Ba,qm as qc,qn as vd,qp as eg,qq as ti,rl as Ca,rm as rc,rn as wd,rp as fg,rq as ui,sl as Da,sm as sc,sn as xd,sp as gg,sq as vi,tl as Ea,tm as tc,tn as yd,tp as hg,tq as wi,ul as Fa,um as uc,un as zd,up as ig,uq as xi,vl as Ga,vm as vc,vn as Ad,vo as lf,vp as jg,vq as yi,wl as Ha,wm as wc,wn as Bd,wp as kg,wq as zi,xl as Ia,xm as xc,xn as Cd,xo as mf,xp as lg,xq as Ai,yl as Ja,ym as yc,yn as Dd,yp as mg,yq as Bi,zl as Ka,zm as Fc,zn as Ed,zo as nf,zp as ng,zq as Ci}from"./chunk-gc57b4y2.js";import{Ar as p,As as ja,Br as q,Bs as ka,Cr as r,Cs as la,Dr as s,Ds as ma,Er as t,Es as na,Fr as u,Fs as oa,Gr as v,Gs as pa,Hr as w,Hs as qa,Ir as x,Is as ra,Jr as y,Js as sa,Kr as z,Ks as ta,Lr as A,Ls as ua,Mr as B,Ms as va,Nr as C,Ns as wa,Or as D,Pr as E,Qr as F,Rr as G,Sr as H,Tr as I,Ur as J,Vr as K,Wr as L,ds as M,es as N,fs as O,gs as P,hs as Q,is as R,js as S,ks as T,ls as U,mr as b,ms as V,nr as c,ns as W,or as d,os as X,pr as e,ps as Y,qr as f,qs as Z,rr as g,rs as _,sr as h,ss as $,tr as i,ts as aa,ur as j,us as ba,vr as k,vs as ca,wr as l,ws as da,xr as m,xs as ea,yr as n,ys as fa,zr as o,zs as ia}from"./chunk-kzt0ycg7.js";import{Os as Zh,Ps as _h,Qs as $h,Rs as ai,Ss as bi,Ts as ci,Us as di,Vs as ei,Ws as fi}from"./chunk-r2pck10q.js";import{Xs as ga,Ys as ha}from"./chunk-278ay77z.js";import{$s as Mb,Zs as Kb,_s as Lb}from"./chunk-fq5d2r74.js";import{at as ke,bt as le,ct as me}from"./chunk-ant3p5v8.js";import{lt as zc,mt as Ac,ot as Bc,xt as Cc,yt as Dc,zt as Ec}from"./chunk-4xg7zasg.js";import{At as Qb,Bt as Rb,Ct as Sb,Dt as Tb,Et as Ub,Ft as Vb}from"./chunk-bf4xr43a.js";import{Gt as Id,Ht as Jd,It as Kd,Jt as Ld,Kt as Md,Lt as Nd,Mt as Od,Nt as Pd,Ot as Qd,Pt as Rd,Qt as Sd,Rt as Td,St as Ud,Tt as Vd,Ut as Wd,Vt as Xd}from"./chunk-n3kmd544.js";import"./chunk-c1rwzz7v.js";import"./chunk-wzb9q4ta.js";import{$t as ob,au as pb,bu as qb,cu as rb,du as sb,eu as tb,fu as ub,gu as vb,hu as wb,iu as xb,ju as yb,ku as zb,lu as Ab,mu as Bb,nu as Cb,ou as Db,pu as Eb}from"./chunk-ncnmb3kq.js";import{Cu as Sa,Du as Ta,Ju as Ua,Ku as Va,Lu as Wa,Mu as Xa,Nu as Ya,Ou as Za,Pu as _a,Qu as $a,Ru as ab,Su as bb,Tu as cb,Uu as db,Vu as eb,Wu as fb,Xu as gb,Zu as hb,tu as Pa,uu as Qa,xu as Ra}from"./chunk-8ybhs27t.js";import"./chunk-0jznnssx.js";import"./chunk-vqq5zjbg.js";export{tk as writeNetlifyConfig,km as writeManifest,Yk as writeImageManifest,Bo as wrapComponentForHMR,vr as withDefaults,Gj as webComponentDirectiveHandler,qp as watermark,sq as watchViews,gl as watchMultiple,hl as watchEffect,fl as watch,re as warmImagePlaceholders,ul as waitForStore,X as waitForLocale,no as virtualPathFor,tj as videoDirective,G as validators,zr as validated,he as validateValueEnhanced,xh as validateTemplate,vp as validateParams,ie as validateFormEnhanced,hq as validateFile,de as validateFields,ce as validateField,zh as validateDirective,Cd as validateCspDirectives,Oj as validateConfig,pm as validateComponentScripts,Nm as validateComponentProps,vg as validateClientScript,uh as v,rc as usesSignalsInScript,ub as usesReactiveRuntime,Mh as userComponentFileExists,ah as useVirtualList,Qd as useTitle,tl as useStoreOrThrow,To as useStore,dk as useStorage,Dq as useSlots,fk as useSessionStorage,Nd as useSeoMeta,vl as useRouteParams,xl as useRouteParamOrThrow,wl as useRouteParam,Qd as usePageTitle,Xe as useOptimistic,zl as useMiddlewareValue,yl as useMiddlewareState,ek as useLocalStorage,uo as useLoadingIndicator,Ld as useHead,rh as useForm,Fq as useAttrs,jq as uploadFiles,iq as uploadFile,ql as updateInstance,Ve as untrack,ai as unregisterDirective,rl as unmountInstance,yc as unescapeHtml,qo as typecheckStxFiles,Lh as transpileTypeScript,ir as translate,Ba as transitionDirective,_b as transformAutoImports,Hm as toUsers,Gm as toUser,$o as thumbnail,aq as thumbHashToRGBA,bq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,_e as templateCache,Uc as syncRecordedResponse,yo as stxClientHelpers,Ff as structuredDataDirective,lr as stripLocalePrefix,Xl as stripDocumentWrapper,Lb as stripCommentsAndLiterals,tn as stringToStream,qd as strictCspPreset,Ce as streamingSuspenseDirective,Ge as streamToResponse,Ae as streamTemplateSimple,ue as streamTemplate,_j as stopHmrServer,Dm as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ke as state,pg as startsDocument,Vn as startProductionServer,Jn as startInteractive,Cm as startBroadcasting,nr as stampLocaleLayoutGroup,Ia as staggerDirective,tp as srcsetUrls,Ja as springDirective,$c as splitByPipe,Tl as spaNavVaryHeaders,oo as sourcePathFor,Ap as smartBatchSign,Oh as slotContentHasExpressions,yp as signUrl,Jh as shouldTranspileTypeScript,Xj as shouldReloadOnChange,Dp as shouldRefreshSignature,Yj as shouldIgnoreFile,Ug as shouldCacheComponent,dp as sharpen,Cr as shape,Sb as setStateDir,Dl as setRouteParams,El as setMiddlewareState,qe as setImagePlaceholder,xq as setGlobalProvide,b as setErrorLocale,_k as setCurrentInstance,hj as setCachedVideoResult,Yi as setCachedImageResult,Si as setCached,Fr as serveStxFile,Hr as serveMultipleStxFiles,Sj as serveMarkdownFile,eo as serveFile,Ir as serveApp,co as serve,Eo as serializeState,jn as serializeSetCookie,fp as sepia,Od as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,xj as scopeHTML,wj as scopeCSS,If as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,jp as saturation,wp as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,yf as runPreProcessingMiddleware,zf as runPostProcessingMiddleware,Mn as runPageAction,Qe as runMountCallbacks,gb as runMiddleware,ol as runHooks,br as runDoctor,Re as runDestroyCallbacks,Nf as runComposers,kp as rotate,vh as rewriteImagesWithSiblings,Vc as responseBindings,Sh as resolveTemplatePath,ha as resolveStxTargets,Kj as resolveStxDirectories,hr as resolveI18n,Zo as resize,ec as resetPlaceholders,Kd as resetHead,Do as resetHMRHandler,o as resetErrorConfig,xr as required,ic as replacePlaceholders,qq as renderView,qj as renderVideoComponent,Xb as renderVendorStyleTags,Mq as renderToString,Nq as renderToStream,Oq as renderToDOM,$p as renderThumbhashToCanvas,_q as renderTemplateString,Yq as renderTemplate,Zq as renderString,xe as renderStreamingPage,Eh as renderSlot,Kg as renderSSRSuspense,Lp as renderProtectedVideo,Kp as renderProtectedImg,xp as renderMediaUpload,Xq as renderMarkdownView,am as renderLayoutTypes,aj as renderImgComponent,Ok as renderImageComponent,Sd as renderHtmlAttrs,Rd as renderHead,tq as renderEmail,Qh as renderComponentWithSlot,Td as renderBodyAttrs,Oo as render,sd as relaxedCspPreset,be as registerValidationRule,Ee as registerStreamingDirectives,Vo as registerStoresClient,Bl as registerStore,Gf as registerSeoDirectives,_a as registerMiddleware,mc as registerFilters,lc as registerFilter,d as registerErrorMessages,ge as registerEnhancedValidationRule,Zh as registerDirective,Bd as registerCspDirectives,Qm as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,cl as ref,Bn as redirect,Qc as recordResponseStatus,Rc as recordResponseHeader,Vb as rebaseOntoStateDir,Sc as readResponseStatus,Tc as readResponseHeaders,Qj as readMarkdownFile,$e as readFileCached,dl as reactive,op as quality,Ip as pruneSignatureCache,Vi as pruneCache,vq as provide,Wq as protectCodeBlocks,wr as prop,Qf as processVueTemplate,_g as processVirtualListDirectives,ch as processVirtualGridDirectives,pj as processVideo,ee as processValidateDirective,ea as processTranslateDirective,Eg as processTransitionDirectives,Hg as processTransitionAttributes,Wd as processTitleDirective,Ic as processTemplateBindings,Ag as processTeleportDirectives,Ig as processSuspenseDirectives,Bf as processStructuredData,ye as processStreamDirectives,Wc as processStatusDirective,ph as processStaticDirectives,wf as processStackReplacements,vf as processStackPushDirectives,Fh as processSlots,Vl as processShell,te as processServerBindings,Cf as processSeoDirective,Fe as processSectionDirectives,Tf as processScopedStyles,Gc as processReactiveBindings,Mp as processProtectedMedia,ih as processPartialHydrationDirectives,ug as processOnceDirective,xf as processMiddleware,Af as processMetaDirectives,Xd as processMetaDirective,Rj as processMarkdownFileDirectives,Xh as processMarkdownDirectives,qf as processLoops,Sg as processKeepAliveDirectives,tg as processJsonDirective,bh as processInfiniteListDirectives,uf as processIncludes,cj as processImgComponents,Qk as processImageComponents,Dk as processImage,Vd as processHeadDirective,Zd as processForms,$d as processFormInputDirectives,vc as processExpressions,Ib as processEventDirectives,ae as processErrorDirective,Rf as processDynamicComponents,wh as processDirectives,fi as processDirectiveAttributes,zg as processDeferDirectives,Gd as processCustomDirectives,yd as processCspDirectives,Dr as processComponentProps,dc as processClientScript,_d as processBasicFormDirectives,Ng as processAsyncDirectives,Hd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,me as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,to as preloadIslandHandlers,se as preloadIconCollection,ym as poolStrings,Ij as pluginManager,oe as placeholdersWarmed,Dg as performLeave,Cg as performEnter,Se as pendingLifecycleCounts,We as peek,rf as partialsCache,rj as parseVideoDirectiveOptions,Xo as parseUrl,cq as parseThumbhashString,fd as parseSwitchBlock,Ch as parseSlots,Dh as parseSlotElement,kd as parseScriptDeclarations,Ej as parseSFCComponent,Np as parseProtectedArgs,pf as parseLoopBinding,bj as parseImgComponent,ti as parseImageUrl,Pk as parseImageComponent,Kn as parseFormBody,hd as parseExpressionWithFilters,Rm as parseDefaults,yn as parseCookies,Nl as parseContainerSelector,cd as parseConditionalBlock,id as parseArguments,Ma as parseAnimationShorthand,yr as optional,zm as optimizeTemplate,Vk as optimizeImage,Wk as optimizeDirectory,Ar as oneOf,sf as onceStore,ll as onUpdated,Fc as onUpdate,nl as onUnmounted,Il as onServer,jl as onMounted,Oe as onMount,oh as onHydrated,Bq as onErrorCaptured,Pe as onDestroy,Yg as onDeactivated,Hl as onClient,kl as onBeforeUpdate,ml as onBeforeUnmount,il as onBeforeMount,Xg as onActivated,Xp as observeElement,Cn as notFound,Yf as normalizeCriticalHeadOrder,Aq as nextTick,Um as negotiateEncoding,Ua as navigateTo,pl as mountInstance,Ea as motionDirective,rd as moderateCspPreset,xm as minifyHtml,Ef as metaDirective,hg as metaDedupKey,Yo as mergeParams,jg as mergeHtmlAttrs,Md as mergeHeadConfigs,Ac as mergeCssConfig,vd as mergeCspDirectives,Ra as matchRoute,Yh as markdownDirectiveHandler,Pj as markdownCache,ga as looksLikeGlob,kr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Lj as loadStxConfig,db as loadMiddlewareFromDirectory,lm as loadManifest,Tp as loadElement,Em as loadChannels,rr as lintStxStrict,Vp as lazyLoadAll,Up as lazyLoad,Ha as keyframeDirective,Kq as jsxs,Lq as jsxDEV,Jq as jsx,An as jsonResponse,De as islandDirective,l as isTest,Yl as isSpaNavigation,Rl as isSpaNavRequest,Bp as isSignatureValid,Te as isSignal,Bk as isSharpAvailable,mn as isServerEnvironment,Fl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Qp as isNativeLazySupported,Vq as isMarkdownPath,Q as isLoading,R as isLoaded,Ih as isJavaScriptScript,Rp as isIntersectionObserverSupported,Jk as isImageFile,Ck as isImageBackendAvailable,aa as isICUFormat,nh as isHydrated,Nh as isHydrateTrigger,Oc as isHttpStatus,ln as isEdgeEnvironment,sr as isDirectiveKind,k as isDevelopment,Ue as isDerived,Wj as isCssOnlyChange,Tm as isCompressible,Gl as isClient,Pg as isAsyncComponent,Ln as isActionableMethod,gp as invert,bf as invalidateFileCacheByDir,af as invalidateFileCache,uc as interpolateScriptsInTemplate,sc as interpolateScriptExpressions,tc as interpolateScriptAttributes,x as inlineError,gr as injectThemeBootstrap,Df as injectSeoTags,dr as injectSeo,kf as injectRouterScript,Vj as injectHotReload,kb as injectHeatmap,Ec as injectCss,wd as injectCspMetaTag,rg as injectConfigHeadTags,Xf as injectColorModeBootScript,lg as injectCloakStyle,cg as injectBuildId,Zb as injectBrowserCoreAutoImports,Kc as injectAnalytics,wq as inject,Al as initStoreRegistry,wk as initNetlify,vo as initLoadingIndicator,Sp as initLazyLoading,In as initFile,_p as initBlurUp,eq as initAllBlurUp,ej as imgDirective,Tk as imageDirective,Tn as hydrateTemplateStream,Sn as hydrateTemplate,so as hydrateIslands,kh as hydrateIsland,Un as hydrateFragment,lh as hydrateByStrategy,mh as hydrateAll,Lo as hydrate,bo as htmlResponse,ng as hoistLeadingHeadTags,Zf as hoistColorModeBootScript,lb as heatmapDirective,Oi as hashString,jf as hashFilePath,Mi as hashFile,Ni as hashBuffer,Pf as hasVueTemplateSyntax,of as hasVariables,Qo as hasStore,jc as hasPlaceholders,uk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,qg as hasDocumentShell,Ah as hasDirectives,ma as hasDOMSupport,Mk as handleImageRequest,Cq as handleError,Sq as h,Ik as groupVariantsByFormat,ep as grayscale,Wn as gitHash,rm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,pk as getTotalSize,Cp as getTimeUntilExpiry,wg as getStoreScript,Ro as getStoreNames,Po as getStore,ik as getStorageSize,hk as getStorageKeys,Th as getSourceLineInfo,Kh as getSharedTranspiler,la as getScreenReaderOnlyStyle,yj as getScopeAttribute,Je as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,yh as getPositionInfo,gc as getPlaceholderRegistry,Li as getPlaceholderCacheStats,Jd as getPageMeta,md as getNonce,Kk as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ne as getImagePlaceholder,Ek as getImageMetadata,ke as getImageDelivery,Ko as getHydrationRuntime,Cl as getHydratedStoreState,Zj as getHmrServer,Id as getHead,Co as getHMRHandler,xi as getFormatExtension,Qi as getFileMtime,Hk as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,$h as getDirectives,_h as getDirective,$k as getCurrentInstance,Bc as getCssServeAsset,ud as getCspPreset,Dd as getCspHeaderName,Wh as getComponentCacheStats,gj as getCachedVideoResult,Gp as getCachedSignature,df as getCachedSignalsRuntime,ef as getCachedRouterScript,Ji as getCachedPlaceholder,Xi as getCachedImageResult,Ri as getCached,Ui as getCacheStats,ag as getBuildId,Bm as getBroadcastServer,wi as getBestVariant,nc as getAllFilters,ki as generateWidthSrcset,$g as generateVirtualListCSS,lq as generateVideoPreview,je as generateValidationScript,mq as generateUploadRuntime,sm as generateTreeShakenBundle,Gg as generateTransitionRuntime,Fg as generateTransitionCSS,kj as generateThumbnails,Ci as generateThumbhashPlaceholder,bn as generateTemplatesDocs,Mg as generateSuspenseRuntime,Lg as generateSuspenseCSS,Fo as generateStateScript,ui as generateSrcsetData,$i as generateSrcset,Fk as generateSrcSet,lj as generateSpriteSheet,uq as generateSpaShell,vi as generateSourceTags,qi as generateSizesFromBreakpoints,pi as generateSizesAttribute,Gk as generateSizes,Hf as generateSitemapIndex,er as generateSitemap,Pp as generateSimpleMediaPicker,Jp as generateSignatureRuntime,Ze as generateSignalsRuntimeDev,Ye as generateSignalsRuntime,cc as generateServerDataBridge,vj as generateScopeId,Fj as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Jf as generateRobotsTxt,fr as generateRobots,_i as generateResponsiveVariants,Bj as generateReactiveWebComponentTS,Aj as generateReactiveWebComponent,Dj as generateReactiveRuntime,Cj as generateReactiveMixin,jj as generatePoster,Ii as generatePlaceholderStyle,Hi as generatePlaceholderCSS,Bi as generatePlaceholder,jh as generatePartialHydrationCSS,ld as generateNonce,qk as generateNetlifyToml,oq as generateMinifiedMediaRuntime,nq as generateMediaRuntime,Op as generateMediaManagerEmbed,jm as generateManifest,xo as generateLoadingIndicatorHtml,Zp as generateLazyLoadRuntime,bm as generateLayoutTypes,Ei as generateLQIP,Wg as generateKeepAliveRuntime,Vg as generateKeepAliveCSS,qh as generateIslandManifest,kq as generateImagePreview,Xk as generateImageManifest,Jo as generateHydrationScript,He as generateHydrationRuntime,Mo as generateHydrationCSS,dh as generateHydrationBootstrap,Uj as generateHotReloadScript,jb as generateHeatmapScript,Ao as generateHMRClientScript,mj as generateHLSManifest,Go as generateEventBindings,oi as generateDprSrcsetWithVariableQuality,ni as generateDprSrcset,og as generateDocumentShell,gn as generateDocs,cn as generateDirectivesDocs,ei as generateDirectiveRuntime,Kf as generateDefaultRobotsTxt,nj as generateDASHManifest,Dc as generateCss,pd as generateCspMetaTag,od as generateCspHeader,Hq as generateCompositionRuntime,an as generateComponentsDocs,eh as generateComponentManifest,_m as generateComponentDoc,Gi as generateColorPlaceholder,Wf as generateColorModeBootScript,sl as generateClientRuntime,Pi as generateCacheKey,ac as generateBrowserAutoImportDestructuring,fq as generateBlurUpRuntime,gq as generateBlurUpCSS,Hc as generateBindingsRuntime,li as generateAutoWidthSrcset,$b as generateAutoImportDestructuring,Rg as generateAsyncComponentRuntime,Qg as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Jc as generateAnalyticsScript,ro as formatTypecheckDiagnostics,lo as formatTypeErrors,Fn as formatStxContent,ok as formatSize,Ta as formatRoutes,Gn as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,cr as formatDoctorReport,dn as formatDocsAsMarkdown,fn as formatDocsAsJson,en as formatDocsAsHtml,np as format,wm as foldConstants,mp as flipVertical,lp as flipHorizontal,cm as fingerprint,po as findRuntimeTypeDeclarations,ar as findPantryPackage,bd as findMatchingEndTag,Zc as findMatchingDelimiter,Kb as findInterpolationEnd,dd as findIfBlocks,gd as findExpressions,Sa as findErrorPage,ed as findDirectiveBlocks,tm as findDeadCode,tm as findDeadBranches,Ol as findContainerRegion,$m as findComponentFiles,Gr as findCommonDir,nk as filterRequiredFiles,Rh as fileExists,lf as extractVariables,hm as extractTemplateExpressions,ze as extractStreamBoundaries,Ho as extractState,Gh as extractSlotContent,nf as extractScriptFromTemplate,gm as extractScriptBlocks,hc as extractPlaceholders,ad as extractParenthesizedExpression,Pc as extractPageResponseStatus,hb as extractLayoutMetadata,Fi as extractDominantColor,jd as extractDirectiveParams,Bh as extractDirectiveNames,Zl as extractContainerContent,Ym as extractComponentProps,fh as extractComponentName,Zm as extractComponentDescription,Cc as extractClassNames,bc as extractBridgeData,gh as extractBoundProps,_c as extractBalancedExpression,Wb as extractAndStripCssImports,zj as extractAndScopeStyles,Hb as extractAndProcessEvents,bk as externalizeSharedAssets,ck as externalizeRepeatedAssets,ak as externalizeHtml,xc as evaluateExpression,vm as evaluateConstant,Xc as evaluateAuthExpression,qc as escapeHtmlValue,pc as escapeHtml,C as errorRecovery,E as errorLogger,Bg as ensureTeleportTargets,sg as ensureDocumentShell,fe as enhancedValidationRules,Wm as enableDevTools,um as eliminateDeadCode,Me as effect,up as dprUrls,hn as docsCommand,$l as discoverLayoutNames,Yp as disconnectObserver,Xm as disableDevTools,F as devHelpers,Ul as detectShell,kn as detectRuntime,rk as detectProjectConfig,yi as detectFormat,om as detectBuildMode,Le as derived,vk as deploy,Nj as defineStxConfig,Uo as defineStore,Eq as defineSlots,qr as defineSiteConfig,ur as definePropsWithValidation,tr as defineProps,Hj as definePlugin,Pd as definePageMeta,Wa as defineMiddleware,sh as defineForm,zq as defineExpose,yq as defineEmits,bi as defineDirective,Uq as defineCustomElement,Rn as defineConfig,ci as defineClientDirective,Og as defineAsyncComponent,pq as defaultMediaConfig,Zk as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Yd as defaultFormClasses,kc as defaultFilters,Fd as defaultCspConfig,Jj as defaultConfig,Er as default,zc as deepMergeThemes,Sf as dedupeScopedStyles,Di as decodeThumbhash,Ad as cspNonceDirective,zd as cspDirective,dq as crossfadeTransition,_o as crop,Zg as createVirtualList,sj as createVideoDirective,wn as createVercelHandler,io as createTypeChecker,fa as createTranslateFilter,sn as createTextEncoderStream,Tq as createStxApp,rn as createStreamingResponse,Be as createStreamRenderer,So as createStore,Za as createStorageManager,Xa as createServerCookieManager,bl as createScope,Jg as createSSRSuspense,Ie as createRouter,eb as createRouteLocation,go as createRoute,cl as createRef,dl as createReactive,Gq as createProvideContext,Yn as createProject,Qn as createProductionBuild,fc as createPlaceholder,Am as createOptimizedBuild,xn as createNetlifyHandler,jk as createNetlifyClient,fb as createMiddlewareContext,fo as createMiddleware,Wp as createLazyObserver,Tg as createKeepAliveCache,on as createKVNamespace,hh as createIslandRegistry,dj as createImgDirective,Uk as createImagePlugin,Nk as createImageHandler,Sk as createImageDirective,nb as createHeatmapAggregator,mk as createFileManifest,nn as createEnvAccessor,z as createEnhancedError,qn as createEdgeHandler,pn as createEdgeCache,Uh as createDetailedErrorMessage,vn as createDenoHandler,sk as createDefaultNetlifyConfig,Ed as createCspHeaders,zn as createCookie,el as createComputed,al as createComponentInstance,un as createCloudflareHandler,Ya as createClientCookieManager,di as createBuiltinDirectives,Tq as createApp,Ka as createAnimationTimeline,bp as cover,mf as convertToCommonJS,ip as contrast,ap as contain,y as consoleError,m as configureErrorHandling,Mj as config,el as computed,Vm as compressResponse,Mf as composerPattern,Lf as composer,Wl as composeShellWithPage,Pm as componentDirective,Ph as componentClientSignalNames,im as compileTemplate,a as collectRepeatedFlag,lk as collectDeployFiles,mg as cloakStyleFragment,ij as clearVideoCache,N as clearTranslationCache,xg as clearStoreCache,gk as clearStorage,Hp as clearSignatureCache,Ki as clearPlaceholderCache,tf as clearOnceStore,nd as clearNonce,bb as clearMiddleware,pe as clearImagePlaceholders,le as clearImageDeliveryCatalog,Rk as clearImageCache,e as clearErrorMessages,ff as clearDevCaches,oc as clearCustomFilters,Of as clearComposers,yg as clearComposableCache,Vh as clearComponentCache,Ti as clearCache,Db as clearBlankCache,wo as cleanupLoadingIndicator,Ll as classifyScript,Ml as classifyAllScripts,jo as checkTemplateFile,ko as checkTemplate,gf as checkCache,Ep as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Km as channel,En as captureScreenshots,Dn as captureScreenshot,Z as cancelPendingLoads,kk as calculateSha1,mi as calculateOptimalWidths,hf as cacheTemplate,uj as buildWebComponents,mo as buildVirtualSource,rq as buildViews,Wo as buildUrl,ve as buildSuspenseResolveScript,pr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,dm as buildRuntimeAsset,em as buildRouterAsset,or as buildLangPickerScript,si as buildImageUrl,dg as buildIdFragment,ig as buildHtmlAttrs,mm as buildForProduction,Sm as buildComponentLibrary,Fp as buildAuthParams,nm as buildApp,mr as buildAlternateLinks,Pn as build,Im as broadcastPrivate,Jm as broadcastPresence,Fm as broadcast,hp as brightness,Mb as bracketDepths,cp as blur,Eb as blankInertHtmlRegions,zp as batchSignUrls,Ne as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,pp as auto,ja as attributeValue,fm as assetTags,Fb as asInvocableStatement,Br as arrayOf,jr as applyTranslations,Zi as applyTransformations,Hh as applySlots,Om as applyPropDefaults,sp as applyPreset,kg as applyHtmlAttrs,Ud as applyHead,wc as applyFilters,Sl as appendVary,td as apiCspPreset,Da as animationGroupDirective,oj as analyzeVideo,qm as analyzeUsage,Jl as analyzeTemplate,Kl as analyzeProject,qm as analyzeDirectiveUsage,Lc as analyticsDirective,$n as addStore,_n as addPage,xd as addNonceToInlineContent,ao as addLayout,Zn as addComponent,Nn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,cf as __setSignalsGeneratorsForTest,bg as __setBuildIdForTest,fj as VideoProcessorCache,th as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Yc as Tokenizer,ho as TemplateTypeChecker,Hn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Pq as Show,we as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Yb as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Pl as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Mc as RESPONSE_STATUS_KEY,Nc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,On as ProductionBuild,Rq as Portal,Xn as PROJECT_TEMPLATES,rp as PRESETS,sb as NON_CLIENT_PRIMITIVES,No as MemorySessionStore,ji as MIME_TYPES,gi as MEDIA_DEFAULT_WIDTHS,ii as MEDIA_DEFAULT_FORMATS,_l as LAYOUT_TYPES_FILE,Wi as ImageProcessorCache,Lk as ImageProcessingError,Io as HydrationRuntime,Tj as HotReloadServer,mb as HeatmapAggregator,gg as HTML_CLASS_MARKER,fg as HTML_ATTRS_MARKER,Iq as Fragment,Qq as For,Ql as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,$j as EXTERNALIZED_ASSET_DIR,xk as DeployError,yk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Ak as DEFAULT_QUALITY,zi as DEFAULT_PLACEHOLDER_OPTIONS,zk as DEFAULT_FORMATS,hi as DEFAULT_DPR_VALUES,zo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,ri as COMMON_SIZES,Uf as COLOR_MODE_BOOT_MARKER,Vf as COLOR_MODE_BOOT_GLOBAL,eg as CLOAK_STYLE,Mm as BroadcastServer,Lm as Broadcast,_f as BUILD_ID_META,$f as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Ai as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,$q as $path};
|
|
2
|
+
import{$ as vl,$a as pn,$b as Ho,$c as Hp,$d as Hq,A as fk,Aa as zm,Ab as $n,Ac as gp,Ad as gq,Ae as mr,B as gk,Ba as Am,Bb as ao,Bc as hp,Bd as hq,Be as nr,C as hk,Ca as Nm,Cb as bo,Cc as ip,Cd as iq,Ce as or,D as ik,Da as Om,Db as co,Dc as jp,Dd as jq,De as pr,E as _k,Ea as Pm,Eb as eo,Ec as kp,Ed as kq,Ee as qr,F as $k,Fa as Qm,Fb as fo,Fc as lp,Fd as lq,Fe as rr,G as al,Ga as Rm,Gb as go,Gc as mp,Gd as mq,Ge as sr,H as bl,Ha as Sm,Hb as ho,Hc as np,Hd as nq,He as tr,I as cl,Ia as Wm,Ib as io,Ic as op,Id as oq,Ie as ur,J as dl,Ja as Xm,Jb as jo,Jc as pp,Jd as pq,Je as vr,K as el,Ka as Ym,Kb as ko,Kc as qp,Kd as qq,Ke as wr,L as fl,La as Zm,Lb as lo,Lc as rp,Ld as rq,Le as xr,M as gl,Ma as _m,Mb as so,Mc as sp,Md as sq,Me as yr,N as hl,Na as $m,Nb as to,Nc as tp,Nd as tq,Ne as zr,O as il,Oa as an,Ob as uo,Oc as up,Od as uq,Oe as Ar,P as jl,Pa as bn,Pb as vo,Pc as vp,Pd as vq,Pe as Br,Q as kl,Qa as cn,Qb as wo,Qc as wp,Qd as wq,Qe as Cr,R as ll,Ra as dn,Rb as xo,Rc as xp,Rd as xq,Re as Dr,S as ml,Sa as en,Sb as yo,Sc as yp,Sd as yq,Se as Er,T as nl,Ta as fn,Tb as zo,Tc as zp,Td as zq,Te as Fr,U as ol,Ua as gn,Ub as Ao,Uc as Ap,Ud as Aq,Ue as Gr,V as pl,Va as hn,Vb as Bo,Vc as Bp,Vd as Bq,Ve as Hr,W as ql,Wa as kn,Wb as Co,Wc as Cp,Wd as Cq,We as Ir,X as rl,Xa as ln,Xb as Do,Xc as Dp,Xd as Dq,Y as sl,Ya as mn,Yb as Eo,Yc as Ep,Yd as Eq,Z as tl,Za as nn,Zb as Fo,Zc as Fp,Zd as Fq,_ as ul,_a as on,_b as Go,_c as Gp,_d as Gq,aa as wl,ab as qn,ac as Io,ad as Ip,ae as Iq,ba as xl,bb as rn,bc as Jo,bd as Jp,be as Jq,ca as yl,cb as sn,cc as Ko,cd as Kp,ce as Kq,da as zl,db as tn,dc as Lo,dd as Lp,de as Lq,ea as Al,eb as un,ec as Mo,ed as Mp,ee as Mq,fa as Bl,fb as vn,fc as No,fd as Np,fe as Nq,ga as Cl,gb as wn,gc as Oo,gd as Op,ge as Oq,ha as Dl,hb as xn,hc as Po,hd as Pp,he as Pq,ia as El,ib as yn,ic as Qo,id as Qp,ie as Qq,ja as Fl,jb as zn,jc as Ro,jd as Rp,je as Rq,ka as Gl,kb as An,kc as So,kd as Sp,ke as Sq,la as Hl,lb as Bn,lc as To,ld as Tp,le as Tq,ma as Il,mb as Cn,mc as Uo,md as Up,me as Uq,na as Jl,nb as Fn,nc as Vo,nd as Vp,ne as $q,o as a,oa as Kl,ob as Gn,oc as Wo,od as Wp,oe as ar,p as Sj,pa as om,pb as Hn,pc as Xo,pd as Xp,pe as br,q as Tj,qa as pm,qb as In,qc as Yo,qd as Yp,qe as cr,r as Uj,ra as qm,rb as On,rc as Zo,rd as Zp,re as dr,s as Vj,sa as rm,sb as Pn,sc as _o,sd as _p,se as er,t as Wj,ta as sm,tb as Qn,tc as $o,td as $p,te as fr,u as Xj,ua as tm,ub as Rn,uc as ap,ud as aq,ue as gr,v as Yj,va as um,vb as Wn,vc as bp,vd as bq,ve as hr,w as Zj,wa as vm,wb as Xn,wc as cp,wd as cq,we as ir,x as _j,xa as wm,xb as Yn,xc as dp,xd as dq,xe as jr,y as dk,ya as xm,yb as Zn,yc as ep,yd as eq,ye as kr,z as ek,za as ym,zb as _n,zc as fp,zd as fq,ze as lr}from"./chunk-v9fjy3rs.js";import{Xe as Jn}from"./chunk-1pmf8mbc.js";import{$e as jn,Ye as Tm,Ze as Um,_e as Vm,af as Kn,bf as Ln,cf as Mn,df as Nn,ef as Sn,ff as Tn,gf as Un,hf as Vn}from"./chunk-g10bygzc.js";import{if as jk,jf as kk,kf as lk,lf as mk,mf as nk,nf as ok,of as pk,pf as qk,qf as rk,rf as sk,sf as tk,tf as uk,uf as vk,vf as wk,wf as xk}from"./chunk-ps20v1ah.js";import{Af as Rk,Bf as Sk,Cf as Tk,Df as Uk,Ef as Vk,Ff as Wk,Gf as Xk,Hf as Yk,If as Zk,xf as Ok,yf as Pk,zf as Qk}from"./chunk-6b9tm22t.js";import{Jf as mo,Kf as no,Lf as oo,Mf as po,Nf as qo,Of as ro}from"./chunk-1f3hhrfj.js";import{Pf as Dn,Qf as En}from"./chunk-mjpqz66q.js";import{Rf as cm,Sf as dm,Tf as em,Uf as fm,Vf as im,Wf as mm}from"./chunk-z3te7cgf.js";import{$f as Pl,Xf as Ll,Yf as Ml,Zf as Nl,_f as Ol,ag as Ql,bg as Rl,cg as Sl,dg as Tl,eg as Ul,fg as Vl,gg as Wl,hg as Xl,ig as Yl,jg as Zl,kg as jm,lg as km,mg as lm}from"./chunk-yrz3hq80.js";import{ng as gm,qg as hm}from"./chunk-8x7699qk.js";import{Ag as Dm,Bg as Em,Cg as Fm,Dg as Gm,Eg as Hm,Fg as Im,Gg as Jm,Hg as Km,Ig as Lm,Jg as Mm,yg as Bm,zg as Cm}from"./chunk-8bxtvsgm.js";import{Kg as Mk,Lg as Nk}from"./chunk-6sme368t.js";import{Mg as nm}from"./chunk-g71eqm8f.js";import{Ng as Ch,Og as Dh,Pg as Eh,Qg as Fh,Rg as Gh,Sg as Hh}from"./chunk-np744hxn.js";import{$g as $i,Tg as Wi,Ug as Xi,Vg as Yi,Zg as Zi,_g as _i}from"./chunk-0nsa242z.js";import{ah as fj,bh as gj,ch as hj,dh as ij,eh as jj,fh as kj,gh as lj,hh as mj,ih as nj,jh as oj,kh as pj}from"./chunk-ry9mp3gp.js";import{lh as Mi,mh as Ni,nh as Oi,oh as Pi,ph as Qi,rh as Ri,sh as Si,th as Ti,uh as Ui,vh as Vi}from"./chunk-k78gvm0g.js";import{wh as Hj,yh as Ij}from"./chunk-hmf9z4jx.js";import{Eh as yk,Fh as zk,Gh as Ak,Hh as Bk,Ih as Ck,Jh as Dk,Kh as Ek,Mh as Fk,Nh as Gk,Oh as Hk,Ph as Ik,Qh as Jk,Rh as Kk,Uh as Lk}from"./chunk-9rww0f53.js";import{$h as jh,Vh as dh,Wh as eh,Xh as fh,Yh as gh,Zh as hh,_h as ih,ai as kh,bi as lh,ci as mh,di as nh,ei as oh,fi as ph,gi as qh}from"./chunk-mywp77gt.js";import{ii as rh,ji as sh,ki as th,li as uh}from"./chunk-nmkra8q5.js";import{qi as vh}from"./chunk-k0y7ta0d.js";import{ri as zg}from"./chunk-a668m28h.js";import{si as Ag,ti as Bg}from"./chunk-ynt7y2n5.js";import{ui as Cg,vi as Dg,wi as Eg,xi as Fg,yi as Gg,zi as Hg}from"./chunk-wvq1g6gr.js";import{Ai as Ig,Bi as Jg,Ci as Kg,Di as Lg,Ei as Mg}from"./chunk-wyxw61az.js";import{Fi as Ng,Gi as Og,Hi as Pg,Ii as Qg,Ji as Rg}from"./chunk-k70fgb2f.js";import{Ki as Sg,Li as Tg,Mi as Ug,Ni as Vg,Oi as Wg,Pi as Xg,Qi as Yg}from"./chunk-4vpsvh6x.js";import{Ri as Zg,Si as _g,Ti as $g,Ui as ah,Vi as bh,Wi as ch}from"./chunk-jem20v5k.js";import{Yi as wg,Zi as xg}from"./chunk-zbxbg129.js";import{aj as yg}from"./chunk-3225x47e.js";import"./chunk-efr3ejqt.js";import{ej as ue,fj as ve,gj as we,hj as xe,ij as ye,jj as ze,kj as Ae,lj as Be,mj as Ce,nj as De,oj as Ee,pj as Fe,qj as Ge,rj as He}from"./chunk-h6emafs7.js";import{sj as Ye,tj as Ze}from"./chunk-64gh98cz.js";import{Aj as Ke,Bj as Le,Cj as Me,Dj as Ne,Ej as Oe,Fj as Pe,Gj as Qe,Hj as Re,Ij as Se,Jj as Te,Kj as Ue,Lj as Ve,Mj as We,Nj as Xe}from"./chunk-fed3xsp9.js";import{Oj as _e,Pj as $e,Qj as af,Rj as bf,Sj as cf,Tj as df,Uj as ef,Vj as ff,Wj as gf,Xj as hf,Yj as jf}from"./chunk-a4tv4wwg.js";import{qk as Vq,rk as Wq,sk as Xq,tk as Yq,uk as Zq,vk as _q}from"./chunk-kgjpgnk0.js";import{Ak as _l,Bk as $l,Ck as am,Dk as bm,wk as $j,xk as ak,yk as bk,zk as ck}from"./chunk-mzstheqe.js";import"./chunk-58f0mthg.js";import"./chunk-cjtd0qqc.js";import{$l as bc,$m as ed,$o as Pf,$p as Vh,$q as Dj,Al as La,Am as Gc,An as Fd,Ao as of,Ap as og,Aq as Di,Bl as Ma,Bm as Hc,Bn as Gd,Bo as pf,Bp as pg,Bq as Ei,Cl as Na,Cm as Ic,Cn as Hd,Co as qf,Cp as qg,Cq as Fi,Dl as Oa,Dm as Jc,Dn as Yd,Do as rf,Dp as rg,Dq as Gi,El as ib,Em as Kc,En as Zd,Eo as sf,Ep as sg,Eq as Hi,Fl as jb,Fm as Lc,Fn as _d,Fo as tf,Fp as tg,Fq as Ii,Gl as kb,Gn as $d,Go as uf,Gp as ug,Gq as Ji,Hl as lb,Hm as Mc,Hn as ae,Ho as vf,Hp as vg,Hq as Ki,Il as mb,Im as Nc,In as be,Io as wf,Ip as wh,Iq as Li,Jl as nb,Jm as Oc,Jn as ce,Jo as xf,Jp as xh,Jq as aj,Km as Pc,Kn as de,Ko as yf,Kp as yh,Kq as bj,Lm as Qc,Ln as ee,Lo as zf,Lp as zh,Lq as cj,Ml as Fb,Mm as Rc,Mn as fe,Mo as Af,Mp as Ah,Mq as dj,Nl as Gb,Nm as Sc,Nn as ge,No as Bf,Np as Bh,Nq as ej,Ol as Hb,Om as Tc,On as he,Oo as Cf,Op as Ih,Oq as qj,Pl as Ib,Pm as Uc,Pn as ie,Po as Df,Pp as Jh,Pq as rj,Ql as Jb,Qm as Vc,Qn as je,Qo as Ef,Qp as Kh,Qq as sj,Rl as Nb,Rm as Wc,Ro as Ff,Rp as Lh,Rq as tj,Sl as Ob,Sm as Xc,Sn as ne,So as Gf,Sp as Mh,Sq as uj,Tl as Pb,Tm as Yc,Tn as oe,To as Hf,Tp as Nh,Tq as vj,Ul as Wb,Um as Zc,Un as pe,Uo as If,Up as Oh,Uq as wj,Vl as Xb,Vm as _c,Vn as qe,Vo as Jf,Vp as Ph,Vq as xj,Wl as Yb,Wm as $c,Wn as re,Wo as Kf,Wp as Qh,Wq as yj,Xl as Zb,Xm as ad,Xn as se,Xo as Lf,Xp as Rh,Xq as zj,Yl as _b,Ym as bd,Yn as te,Yo as Mf,Yp as Sh,Yq as Aj,Zl as $b,Zm as cd,Zo as Nf,Zp as Th,Zq as Bj,_l as ac,_m as dd,_o as Of,_p as Uh,_q as Cj,am as cc,an as fd,ao as Ie,ap as Qf,aq as Wh,ar as Ej,bm as dc,bn as gd,bo as Je,bp as Rf,bq as Xh,br as Fj,cm as ec,cn as hd,cp as Sf,cq as Yh,cr as Gj,dm as fc,dn as id,do as kf,dp as Tf,dq as gi,dr as Jj,em as gc,en as jd,ep as Uf,eq as hi,er as Kj,fm as hc,fn as kd,fp as Vf,fq as ii,fr as Lj,gm as ic,gn as ld,gp as Wf,gq as ji,gr as Mj,hm as jc,hn as md,hp as Xf,hq as ki,hr as Nj,in as nd,ip as Yf,iq as li,ir as Oj,jn as od,jp as Zf,jq as mi,jr as Pj,km as kc,kn as pd,kp as _f,kq as ni,kr as Qj,lm as lc,ln as qd,lp as $f,lq as oi,lr as Rj,ml as xa,mm as mc,mn as rd,mp as ag,mq as pi,nl as ya,nm as nc,nn as sd,np as bg,nq as qi,ol as za,om as oc,on as td,op as cg,oq as ri,pl as Aa,pm as pc,pn as ud,pp as dg,pq as si,ql as Ba,qm as qc,qn as vd,qp as eg,qq as ti,rl as Ca,rm as rc,rn as wd,rp as fg,rq as ui,sl as Da,sm as sc,sn as xd,sp as gg,sq as vi,tl as Ea,tm as tc,tn as yd,tp as hg,tq as wi,ul as Fa,um as uc,un as zd,up as ig,uq as xi,vl as Ga,vm as vc,vn as Ad,vo as lf,vp as jg,vq as yi,wl as Ha,wm as wc,wn as Bd,wp as kg,wq as zi,xl as Ia,xm as xc,xn as Cd,xo as mf,xp as lg,xq as Ai,yl as Ja,ym as yc,yn as Dd,yp as mg,yq as Bi,zl as Ka,zm as Fc,zn as Ed,zo as nf,zp as ng,zq as Ci}from"./chunk-k049j105.js";import{Ar as p,As as ja,Br as q,Bs as ka,Cr as r,Cs as la,Dr as s,Ds as ma,Er as t,Es as na,Fr as u,Fs as oa,Gr as v,Gs as pa,Hr as w,Hs as qa,Ir as x,Is as ra,Jr as y,Js as sa,Kr as z,Ks as ta,Lr as A,Ls as ua,Mr as B,Ms as va,Nr as C,Ns as wa,Or as D,Pr as E,Qr as F,Rr as G,Sr as H,Tr as I,Ur as J,Vr as K,Wr as L,ds as M,es as N,fs as O,gs as P,hs as Q,is as R,js as S,ks as T,ls as U,mr as b,ms as V,nr as c,ns as W,or as d,os as X,pr as e,ps as Y,qr as f,qs as Z,rr as g,rs as _,sr as h,ss as $,tr as i,ts as aa,ur as j,us as ba,vr as k,vs as ca,wr as l,ws as da,xr as m,xs as ea,yr as n,ys as fa,zr as o,zs as ia}from"./chunk-kzt0ycg7.js";import{Os as Zh,Ps as _h,Qs as $h,Rs as ai,Ss as bi,Ts as ci,Us as di,Vs as ei,Ws as fi}from"./chunk-r2pck10q.js";import{Xs as ga,Ys as ha}from"./chunk-278ay77z.js";import{$s as Mb,Zs as Kb,_s as Lb}from"./chunk-fq5d2r74.js";import{at as ke,bt as le,ct as me}from"./chunk-ant3p5v8.js";import{lt as zc,mt as Ac,ot as Bc,xt as Cc,yt as Dc,zt as Ec}from"./chunk-w43x27h2.js";import{At as Qb,Bt as Rb,Ct as Sb,Dt as Tb,Et as Ub,Ft as Vb}from"./chunk-bf4xr43a.js";import{Gt as Id,Ht as Jd,It as Kd,Jt as Ld,Kt as Md,Lt as Nd,Mt as Od,Nt as Pd,Ot as Qd,Pt as Rd,Qt as Sd,Rt as Td,St as Ud,Tt as Vd,Ut as Wd,Vt as Xd}from"./chunk-n3kmd544.js";import"./chunk-c1rwzz7v.js";import"./chunk-wzb9q4ta.js";import{$t as ob,au as pb,bu as qb,cu as rb,du as sb,eu as tb,fu as ub,gu as vb,hu as wb,iu as xb,ju as yb,ku as zb,lu as Ab,mu as Bb,nu as Cb,ou as Db,pu as Eb}from"./chunk-ncnmb3kq.js";import{Cu as Sa,Du as Ta,Ju as Ua,Ku as Va,Lu as Wa,Mu as Xa,Nu as Ya,Ou as Za,Pu as _a,Qu as $a,Ru as ab,Su as bb,Tu as cb,Uu as db,Vu as eb,Wu as fb,Xu as gb,Zu as hb,tu as Pa,uu as Qa,xu as Ra}from"./chunk-8ybhs27t.js";import"./chunk-0jznnssx.js";import"./chunk-vqq5zjbg.js";export{tk as writeNetlifyConfig,km as writeManifest,Yk as writeImageManifest,Bo as wrapComponentForHMR,vr as withDefaults,Gj as webComponentDirectiveHandler,qp as watermark,sq as watchViews,gl as watchMultiple,hl as watchEffect,fl as watch,re as warmImagePlaceholders,ul as waitForStore,X as waitForLocale,no as virtualPathFor,tj as videoDirective,G as validators,zr as validated,he as validateValueEnhanced,xh as validateTemplate,vp as validateParams,ie as validateFormEnhanced,hq as validateFile,de as validateFields,ce as validateField,zh as validateDirective,Cd as validateCspDirectives,Oj as validateConfig,pm as validateComponentScripts,Nm as validateComponentProps,vg as validateClientScript,uh as v,rc as usesSignalsInScript,ub as usesReactiveRuntime,Mh as userComponentFileExists,ah as useVirtualList,Qd as useTitle,tl as useStoreOrThrow,To as useStore,dk as useStorage,Dq as useSlots,fk as useSessionStorage,Nd as useSeoMeta,vl as useRouteParams,xl as useRouteParamOrThrow,wl as useRouteParam,Qd as usePageTitle,Xe as useOptimistic,zl as useMiddlewareValue,yl as useMiddlewareState,ek as useLocalStorage,uo as useLoadingIndicator,Ld as useHead,rh as useForm,Fq as useAttrs,jq as uploadFiles,iq as uploadFile,ql as updateInstance,Ve as untrack,ai as unregisterDirective,rl as unmountInstance,yc as unescapeHtml,qo as typecheckStxFiles,Lh as transpileTypeScript,ir as translate,Ba as transitionDirective,_b as transformAutoImports,Hm as toUsers,Gm as toUser,$o as thumbnail,aq as thumbHashToRGBA,bq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,_e as templateCache,Uc as syncRecordedResponse,yo as stxClientHelpers,Ff as structuredDataDirective,lr as stripLocalePrefix,Xl as stripDocumentWrapper,Lb as stripCommentsAndLiterals,tn as stringToStream,qd as strictCspPreset,Ce as streamingSuspenseDirective,Ge as streamToResponse,Ae as streamTemplateSimple,ue as streamTemplate,_j as stopHmrServer,Dm as stopBroadcasting,Tb as stateDirName,Ub as stateDir,Ke as state,pg as startsDocument,Vn as startProductionServer,Jn as startInteractive,Cm as startBroadcasting,nr as stampLocaleLayoutGroup,Ia as staggerDirective,tp as srcsetUrls,Ja as springDirective,$c as splitByPipe,Tl as spaNavVaryHeaders,oo as sourcePathFor,Ap as smartBatchSign,Oh as slotContentHasExpressions,yp as signUrl,Jh as shouldTranspileTypeScript,Xj as shouldReloadOnChange,Dp as shouldRefreshSignature,Yj as shouldIgnoreFile,Ug as shouldCacheComponent,dp as sharpen,Cr as shape,Sb as setStateDir,Dl as setRouteParams,El as setMiddlewareState,qe as setImagePlaceholder,xq as setGlobalProvide,b as setErrorLocale,_k as setCurrentInstance,hj as setCachedVideoResult,Yi as setCachedImageResult,Si as setCached,Fr as serveStxFile,Hr as serveMultipleStxFiles,Sj as serveMarkdownFile,eo as serveFile,Ir as serveApp,co as serve,Eo as serializeState,jn as serializeSetCookie,fp as sepia,Od as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,xj as scopeHTML,wj as scopeCSS,If as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,jp as saturation,wp as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,yf as runPreProcessingMiddleware,zf as runPostProcessingMiddleware,Mn as runPageAction,Qe as runMountCallbacks,gb as runMiddleware,ol as runHooks,br as runDoctor,Re as runDestroyCallbacks,Nf as runComposers,kp as rotate,vh as rewriteImagesWithSiblings,Vc as responseBindings,Sh as resolveTemplatePath,ha as resolveStxTargets,Kj as resolveStxDirectories,hr as resolveI18n,Zo as resize,ec as resetPlaceholders,Kd as resetHead,Do as resetHMRHandler,o as resetErrorConfig,xr as required,ic as replacePlaceholders,qq as renderView,qj as renderVideoComponent,Xb as renderVendorStyleTags,Mq as renderToString,Nq as renderToStream,Oq as renderToDOM,$p as renderThumbhashToCanvas,_q as renderTemplateString,Yq as renderTemplate,Zq as renderString,xe as renderStreamingPage,Eh as renderSlot,Kg as renderSSRSuspense,Lp as renderProtectedVideo,Kp as renderProtectedImg,xp as renderMediaUpload,Xq as renderMarkdownView,am as renderLayoutTypes,aj as renderImgComponent,Ok as renderImageComponent,Sd as renderHtmlAttrs,Rd as renderHead,tq as renderEmail,Qh as renderComponentWithSlot,Td as renderBodyAttrs,Oo as render,sd as relaxedCspPreset,be as registerValidationRule,Ee as registerStreamingDirectives,Vo as registerStoresClient,Bl as registerStore,Gf as registerSeoDirectives,_a as registerMiddleware,mc as registerFilters,lc as registerFilter,d as registerErrorMessages,ge as registerEnhancedValidationRule,Zh as registerDirective,Bd as registerCspDirectives,Qm as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,cl as ref,Bn as redirect,Qc as recordResponseStatus,Rc as recordResponseHeader,Vb as rebaseOntoStateDir,Sc as readResponseStatus,Tc as readResponseHeaders,Qj as readMarkdownFile,$e as readFileCached,dl as reactive,op as quality,Ip as pruneSignatureCache,Vi as pruneCache,vq as provide,Wq as protectCodeBlocks,wr as prop,Qf as processVueTemplate,_g as processVirtualListDirectives,ch as processVirtualGridDirectives,pj as processVideo,ee as processValidateDirective,ea as processTranslateDirective,Eg as processTransitionDirectives,Hg as processTransitionAttributes,Wd as processTitleDirective,Ic as processTemplateBindings,Ag as processTeleportDirectives,Ig as processSuspenseDirectives,Bf as processStructuredData,ye as processStreamDirectives,Wc as processStatusDirective,ph as processStaticDirectives,wf as processStackReplacements,vf as processStackPushDirectives,Fh as processSlots,Vl as processShell,te as processServerBindings,Cf as processSeoDirective,Fe as processSectionDirectives,Tf as processScopedStyles,Gc as processReactiveBindings,Mp as processProtectedMedia,ih as processPartialHydrationDirectives,ug as processOnceDirective,xf as processMiddleware,Af as processMetaDirectives,Xd as processMetaDirective,Rj as processMarkdownFileDirectives,Xh as processMarkdownDirectives,qf as processLoops,Sg as processKeepAliveDirectives,tg as processJsonDirective,bh as processInfiniteListDirectives,uf as processIncludes,cj as processImgComponents,Qk as processImageComponents,Dk as processImage,Vd as processHeadDirective,Zd as processForms,$d as processFormInputDirectives,vc as processExpressions,Ib as processEventDirectives,ae as processErrorDirective,Rf as processDynamicComponents,wh as processDirectives,fi as processDirectiveAttributes,zg as processDeferDirectives,Gd as processCustomDirectives,yd as processCspDirectives,Dr as processComponentProps,dc as processClientScript,_d as processBasicFormDirectives,Ng as processAsyncDirectives,Hd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,me as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,to as preloadIslandHandlers,se as preloadIconCollection,ym as poolStrings,Ij as pluginManager,oe as placeholdersWarmed,Dg as performLeave,Cg as performEnter,Se as pendingLifecycleCounts,We as peek,rf as partialsCache,rj as parseVideoDirectiveOptions,Xo as parseUrl,cq as parseThumbhashString,fd as parseSwitchBlock,Ch as parseSlots,Dh as parseSlotElement,kd as parseScriptDeclarations,Ej as parseSFCComponent,Np as parseProtectedArgs,pf as parseLoopBinding,bj as parseImgComponent,ti as parseImageUrl,Pk as parseImageComponent,Kn as parseFormBody,hd as parseExpressionWithFilters,Rm as parseDefaults,yn as parseCookies,Nl as parseContainerSelector,cd as parseConditionalBlock,id as parseArguments,Ma as parseAnimationShorthand,yr as optional,zm as optimizeTemplate,Vk as optimizeImage,Wk as optimizeDirectory,Ar as oneOf,sf as onceStore,ll as onUpdated,Fc as onUpdate,nl as onUnmounted,Il as onServer,jl as onMounted,Oe as onMount,oh as onHydrated,Bq as onErrorCaptured,Pe as onDestroy,Yg as onDeactivated,Hl as onClient,kl as onBeforeUpdate,ml as onBeforeUnmount,il as onBeforeMount,Xg as onActivated,Xp as observeElement,Cn as notFound,Yf as normalizeCriticalHeadOrder,Aq as nextTick,Um as negotiateEncoding,Ua as navigateTo,pl as mountInstance,Ea as motionDirective,rd as moderateCspPreset,xm as minifyHtml,Ef as metaDirective,hg as metaDedupKey,Yo as mergeParams,jg as mergeHtmlAttrs,Md as mergeHeadConfigs,Ac as mergeCssConfig,vd as mergeCspDirectives,Ra as matchRoute,Yh as markdownDirectiveHandler,Pj as markdownCache,ga as looksLikeGlob,kr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Lj as loadStxConfig,db as loadMiddlewareFromDirectory,lm as loadManifest,Tp as loadElement,Em as loadChannels,rr as lintStxStrict,Vp as lazyLoadAll,Up as lazyLoad,Ha as keyframeDirective,Kq as jsxs,Lq as jsxDEV,Jq as jsx,An as jsonResponse,De as islandDirective,l as isTest,Yl as isSpaNavigation,Rl as isSpaNavRequest,Bp as isSignatureValid,Te as isSignal,Bk as isSharpAvailable,mn as isServerEnvironment,Fl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Qp as isNativeLazySupported,Vq as isMarkdownPath,Q as isLoading,R as isLoaded,Ih as isJavaScriptScript,Rp as isIntersectionObserverSupported,Jk as isImageFile,Ck as isImageBackendAvailable,aa as isICUFormat,nh as isHydrated,Nh as isHydrateTrigger,Oc as isHttpStatus,ln as isEdgeEnvironment,sr as isDirectiveKind,k as isDevelopment,Ue as isDerived,Wj as isCssOnlyChange,Tm as isCompressible,Gl as isClient,Pg as isAsyncComponent,Ln as isActionableMethod,gp as invert,bf as invalidateFileCacheByDir,af as invalidateFileCache,uc as interpolateScriptsInTemplate,sc as interpolateScriptExpressions,tc as interpolateScriptAttributes,x as inlineError,gr as injectThemeBootstrap,Df as injectSeoTags,dr as injectSeo,kf as injectRouterScript,Vj as injectHotReload,kb as injectHeatmap,Ec as injectCss,wd as injectCspMetaTag,rg as injectConfigHeadTags,Xf as injectColorModeBootScript,lg as injectCloakStyle,cg as injectBuildId,Zb as injectBrowserCoreAutoImports,Kc as injectAnalytics,wq as inject,Al as initStoreRegistry,wk as initNetlify,vo as initLoadingIndicator,Sp as initLazyLoading,In as initFile,_p as initBlurUp,eq as initAllBlurUp,ej as imgDirective,Tk as imageDirective,Tn as hydrateTemplateStream,Sn as hydrateTemplate,so as hydrateIslands,kh as hydrateIsland,Un as hydrateFragment,lh as hydrateByStrategy,mh as hydrateAll,Lo as hydrate,bo as htmlResponse,ng as hoistLeadingHeadTags,Zf as hoistColorModeBootScript,lb as heatmapDirective,Oi as hashString,jf as hashFilePath,Mi as hashFile,Ni as hashBuffer,Pf as hasVueTemplateSyntax,of as hasVariables,Qo as hasStore,jc as hasPlaceholders,uk as hasNetlifyConfig,ab as hasMiddleware,Jb as hasEventDirectives,qg as hasDocumentShell,Ah as hasDirectives,ma as hasDOMSupport,Mk as handleImageRequest,Cq as handleError,Sq as h,Ik as groupVariantsByFormat,ep as grayscale,Wn as gitHash,rm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,pk as getTotalSize,Cp as getTimeUntilExpiry,wg as getStoreScript,Ro as getStoreNames,Po as getStore,ik as getStorageSize,hk as getStorageKeys,Th as getSourceLineInfo,Kh as getSharedTranspiler,la as getScreenReaderOnlyStyle,yj as getScopeAttribute,Je as getRouteParams,Ob as getPublicEnvDefine,Pb as getPublicEnv,yh as getPositionInfo,gc as getPlaceholderRegistry,Li as getPlaceholderCacheStats,Jd as getPageMeta,md as getNonce,Kk as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ne as getImagePlaceholder,Ek as getImageMetadata,ke as getImageDelivery,Ko as getHydrationRuntime,Cl as getHydratedStoreState,Zj as getHmrServer,Id as getHead,Co as getHMRHandler,xi as getFormatExtension,Qi as getFileMtime,Hk as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,$h as getDirectives,_h as getDirective,$k as getCurrentInstance,Bc as getCssServeAsset,ud as getCspPreset,Dd as getCspHeaderName,Wh as getComponentCacheStats,gj as getCachedVideoResult,Gp as getCachedSignature,df as getCachedSignalsRuntime,ef as getCachedRouterScript,Ji as getCachedPlaceholder,Xi as getCachedImageResult,Ri as getCached,Ui as getCacheStats,ag as getBuildId,Bm as getBroadcastServer,wi as getBestVariant,nc as getAllFilters,ki as generateWidthSrcset,$g as generateVirtualListCSS,lq as generateVideoPreview,je as generateValidationScript,mq as generateUploadRuntime,sm as generateTreeShakenBundle,Gg as generateTransitionRuntime,Fg as generateTransitionCSS,kj as generateThumbnails,Ci as generateThumbhashPlaceholder,bn as generateTemplatesDocs,Mg as generateSuspenseRuntime,Lg as generateSuspenseCSS,Fo as generateStateScript,ui as generateSrcsetData,$i as generateSrcset,Fk as generateSrcSet,lj as generateSpriteSheet,uq as generateSpaShell,vi as generateSourceTags,qi as generateSizesFromBreakpoints,pi as generateSizesAttribute,Gk as generateSizes,Hf as generateSitemapIndex,er as generateSitemap,Pp as generateSimpleMediaPicker,Jp as generateSignatureRuntime,Ze as generateSignalsRuntimeDev,Ye as generateSignalsRuntime,cc as generateServerDataBridge,vj as generateScopeId,Fj as generateSFCWebComponent,Gb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Jf as generateRobotsTxt,fr as generateRobots,_i as generateResponsiveVariants,Bj as generateReactiveWebComponentTS,Aj as generateReactiveWebComponent,Dj as generateReactiveRuntime,Cj as generateReactiveMixin,jj as generatePoster,Ii as generatePlaceholderStyle,Hi as generatePlaceholderCSS,Bi as generatePlaceholder,jh as generatePartialHydrationCSS,ld as generateNonce,qk as generateNetlifyToml,oq as generateMinifiedMediaRuntime,nq as generateMediaRuntime,Op as generateMediaManagerEmbed,jm as generateManifest,xo as generateLoadingIndicatorHtml,Zp as generateLazyLoadRuntime,bm as generateLayoutTypes,Ei as generateLQIP,Wg as generateKeepAliveRuntime,Vg as generateKeepAliveCSS,qh as generateIslandManifest,kq as generateImagePreview,Xk as generateImageManifest,Jo as generateHydrationScript,He as generateHydrationRuntime,Mo as generateHydrationCSS,dh as generateHydrationBootstrap,Uj as generateHotReloadScript,jb as generateHeatmapScript,Ao as generateHMRClientScript,mj as generateHLSManifest,Go as generateEventBindings,oi as generateDprSrcsetWithVariableQuality,ni as generateDprSrcset,og as generateDocumentShell,gn as generateDocs,cn as generateDirectivesDocs,ei as generateDirectiveRuntime,Kf as generateDefaultRobotsTxt,nj as generateDASHManifest,Dc as generateCss,pd as generateCspMetaTag,od as generateCspHeader,Hq as generateCompositionRuntime,an as generateComponentsDocs,eh as generateComponentManifest,_m as generateComponentDoc,Gi as generateColorPlaceholder,Wf as generateColorModeBootScript,sl as generateClientRuntime,Pi as generateCacheKey,ac as generateBrowserAutoImportDestructuring,fq as generateBlurUpRuntime,gq as generateBlurUpCSS,Hc as generateBindingsRuntime,li as generateAutoWidthSrcset,$b as generateAutoImportDestructuring,Rg as generateAsyncComponentRuntime,Qg as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Jc as generateAnalyticsScript,ro as formatTypecheckDiagnostics,lo as formatTypeErrors,Fn as formatStxContent,ok as formatSize,Ta as formatRoutes,Gn as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,cr as formatDoctorReport,dn as formatDocsAsMarkdown,fn as formatDocsAsJson,en as formatDocsAsHtml,np as format,wm as foldConstants,mp as flipVertical,lp as flipHorizontal,cm as fingerprint,po as findRuntimeTypeDeclarations,ar as findPantryPackage,bd as findMatchingEndTag,Zc as findMatchingDelimiter,Kb as findInterpolationEnd,dd as findIfBlocks,gd as findExpressions,Sa as findErrorPage,ed as findDirectiveBlocks,tm as findDeadCode,tm as findDeadBranches,Ol as findContainerRegion,$m as findComponentFiles,Gr as findCommonDir,nk as filterRequiredFiles,Rh as fileExists,lf as extractVariables,hm as extractTemplateExpressions,ze as extractStreamBoundaries,Ho as extractState,Gh as extractSlotContent,nf as extractScriptFromTemplate,gm as extractScriptBlocks,hc as extractPlaceholders,ad as extractParenthesizedExpression,Pc as extractPageResponseStatus,hb as extractLayoutMetadata,Fi as extractDominantColor,jd as extractDirectiveParams,Bh as extractDirectiveNames,Zl as extractContainerContent,Ym as extractComponentProps,fh as extractComponentName,Zm as extractComponentDescription,Cc as extractClassNames,bc as extractBridgeData,gh as extractBoundProps,_c as extractBalancedExpression,Wb as extractAndStripCssImports,zj as extractAndScopeStyles,Hb as extractAndProcessEvents,bk as externalizeSharedAssets,ck as externalizeRepeatedAssets,ak as externalizeHtml,xc as evaluateExpression,vm as evaluateConstant,Xc as evaluateAuthExpression,qc as escapeHtmlValue,pc as escapeHtml,C as errorRecovery,E as errorLogger,Bg as ensureTeleportTargets,sg as ensureDocumentShell,fe as enhancedValidationRules,Wm as enableDevTools,um as eliminateDeadCode,Me as effect,up as dprUrls,hn as docsCommand,$l as discoverLayoutNames,Yp as disconnectObserver,Xm as disableDevTools,F as devHelpers,Ul as detectShell,kn as detectRuntime,rk as detectProjectConfig,yi as detectFormat,om as detectBuildMode,Le as derived,vk as deploy,Nj as defineStxConfig,Uo as defineStore,Eq as defineSlots,qr as defineSiteConfig,ur as definePropsWithValidation,tr as defineProps,Hj as definePlugin,Pd as definePageMeta,Wa as defineMiddleware,sh as defineForm,zq as defineExpose,yq as defineEmits,bi as defineDirective,Uq as defineCustomElement,Rn as defineConfig,ci as defineClientDirective,Og as defineAsyncComponent,pq as defaultMediaConfig,Zk as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Yd as defaultFormClasses,kc as defaultFilters,Fd as defaultCspConfig,Jj as defaultConfig,Er as default,zc as deepMergeThemes,Sf as dedupeScopedStyles,Di as decodeThumbhash,Ad as cspNonceDirective,zd as cspDirective,dq as crossfadeTransition,_o as crop,Zg as createVirtualList,sj as createVideoDirective,wn as createVercelHandler,io as createTypeChecker,fa as createTranslateFilter,sn as createTextEncoderStream,Tq as createStxApp,rn as createStreamingResponse,Be as createStreamRenderer,So as createStore,Za as createStorageManager,Xa as createServerCookieManager,bl as createScope,Jg as createSSRSuspense,Ie as createRouter,eb as createRouteLocation,go as createRoute,cl as createRef,dl as createReactive,Gq as createProvideContext,Yn as createProject,Qn as createProductionBuild,fc as createPlaceholder,Am as createOptimizedBuild,xn as createNetlifyHandler,jk as createNetlifyClient,fb as createMiddlewareContext,fo as createMiddleware,Wp as createLazyObserver,Tg as createKeepAliveCache,on as createKVNamespace,hh as createIslandRegistry,dj as createImgDirective,Uk as createImagePlugin,Nk as createImageHandler,Sk as createImageDirective,nb as createHeatmapAggregator,mk as createFileManifest,nn as createEnvAccessor,z as createEnhancedError,qn as createEdgeHandler,pn as createEdgeCache,Uh as createDetailedErrorMessage,vn as createDenoHandler,sk as createDefaultNetlifyConfig,Ed as createCspHeaders,zn as createCookie,el as createComputed,al as createComponentInstance,un as createCloudflareHandler,Ya as createClientCookieManager,di as createBuiltinDirectives,Tq as createApp,Ka as createAnimationTimeline,bp as cover,mf as convertToCommonJS,ip as contrast,ap as contain,y as consoleError,m as configureErrorHandling,Mj as config,el as computed,Vm as compressResponse,Mf as composerPattern,Lf as composer,Wl as composeShellWithPage,Pm as componentDirective,Ph as componentClientSignalNames,im as compileTemplate,a as collectRepeatedFlag,lk as collectDeployFiles,mg as cloakStyleFragment,ij as clearVideoCache,N as clearTranslationCache,xg as clearStoreCache,gk as clearStorage,Hp as clearSignatureCache,Ki as clearPlaceholderCache,tf as clearOnceStore,nd as clearNonce,bb as clearMiddleware,pe as clearImagePlaceholders,le as clearImageDeliveryCatalog,Rk as clearImageCache,e as clearErrorMessages,ff as clearDevCaches,oc as clearCustomFilters,Of as clearComposers,yg as clearComposableCache,Vh as clearComponentCache,Ti as clearCache,Db as clearBlankCache,wo as cleanupLoadingIndicator,Ll as classifyScript,Ml as classifyAllScripts,jo as checkTemplateFile,ko as checkTemplate,gf as checkCache,Ep as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Km as channel,En as captureScreenshots,Dn as captureScreenshot,Z as cancelPendingLoads,kk as calculateSha1,mi as calculateOptimalWidths,hf as cacheTemplate,uj as buildWebComponents,mo as buildVirtualSource,rq as buildViews,Wo as buildUrl,ve as buildSuspenseResolveScript,pr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,dm as buildRuntimeAsset,em as buildRouterAsset,or as buildLangPickerScript,si as buildImageUrl,dg as buildIdFragment,ig as buildHtmlAttrs,mm as buildForProduction,Sm as buildComponentLibrary,Fp as buildAuthParams,nm as buildApp,mr as buildAlternateLinks,Pn as build,Im as broadcastPrivate,Jm as broadcastPresence,Fm as broadcast,hp as brightness,Mb as bracketDepths,cp as blur,Eb as blankInertHtmlRegions,zp as batchSignUrls,Ne as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,pp as auto,ja as attributeValue,fm as assetTags,Fb as asInvocableStatement,Br as arrayOf,jr as applyTranslations,Zi as applyTransformations,Hh as applySlots,Om as applyPropDefaults,sp as applyPreset,kg as applyHtmlAttrs,Ud as applyHead,wc as applyFilters,Sl as appendVary,td as apiCspPreset,Da as animationGroupDirective,oj as analyzeVideo,qm as analyzeUsage,Jl as analyzeTemplate,Kl as analyzeProject,qm as analyzeDirectiveUsage,Lc as analyticsDirective,$n as addStore,_n as addPage,xd as addNonceToInlineContent,ao as addLayout,Zn as addComponent,Nn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,cf as __setSignalsGeneratorsForTest,bg as __setBuildIdForTest,fj as VideoProcessorCache,th as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Yc as Tokenizer,ho as TemplateTypeChecker,Hn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Pq as Show,we as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Yb as STX_AUTO_IMPORTS,Rb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Pl as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Mc as RESPONSE_STATUS_KEY,Nc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,On as ProductionBuild,Rq as Portal,Xn as PROJECT_TEMPLATES,rp as PRESETS,sb as NON_CLIENT_PRIMITIVES,No as MemorySessionStore,ji as MIME_TYPES,gi as MEDIA_DEFAULT_WIDTHS,ii as MEDIA_DEFAULT_FORMATS,_l as LAYOUT_TYPES_FILE,Wi as ImageProcessorCache,Lk as ImageProcessingError,Io as HydrationRuntime,Tj as HotReloadServer,mb as HeatmapAggregator,gg as HTML_CLASS_MARKER,fg as HTML_ATTRS_MARKER,Iq as Fragment,Qq as For,Ql as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,$j as EXTERNALIZED_ASSET_DIR,xk as DeployError,yk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Qb as DEFAULT_STATE_DIR,Ak as DEFAULT_QUALITY,zi as DEFAULT_PLACEHOLDER_OPTIONS,zk as DEFAULT_FORMATS,hi as DEFAULT_DPR_VALUES,zo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,ri as COMMON_SIZES,Uf as COLOR_MODE_BOOT_MARKER,Vf as COLOR_MODE_BOOT_GLOBAL,eg as CLOAK_STYLE,Mm as BroadcastServer,Lm as Broadcast,_f as BUILD_ID_META,$f as BUILD_ID_HEADER,Nb as BROWSER_CORE_IMPORTS,Ai as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,$q as $path};
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{Ha as a,Te as F,Va as r,Ve as v,We as P,nb as n,o as m,oa as l,ob as p,pe as s,qb as i,qe as t,vb as e}from"./chunk-
|
|
3
|
+
import{Ha as a,Te as F,Va as r,Ve as v,We as P,nb as n,o as m,oa as l,ob as p,pe as s,qb as i,qe as t,vb as e}from"./chunk-v9fjy3rs.js";import"./chunk-1pmf8mbc.js";import"./chunk-g10bygzc.js";import"./chunk-ps20v1ah.js";import"./chunk-6b9tm22t.js";import"./chunk-1f3hhrfj.js";import"./chunk-mjpqz66q.js";import"./chunk-z3te7cgf.js";import"./chunk-yrz3hq80.js";import"./chunk-8x7699qk.js";import"./chunk-8bxtvsgm.js";import"./chunk-6sme368t.js";import"./chunk-g71eqm8f.js";import"./chunk-np744hxn.js";import"./chunk-0nsa242z.js";import"./chunk-ry9mp3gp.js";import"./chunk-k78gvm0g.js";import"./chunk-hmf9z4jx.js";import"./chunk-9rww0f53.js";import"./chunk-mywp77gt.js";import"./chunk-nmkra8q5.js";import"./chunk-k0y7ta0d.js";import"./chunk-a668m28h.js";import"./chunk-ynt7y2n5.js";import"./chunk-wvq1g6gr.js";import"./chunk-wyxw61az.js";import"./chunk-k70fgb2f.js";import"./chunk-4vpsvh6x.js";import"./chunk-jem20v5k.js";import"./chunk-zbxbg129.js";import"./chunk-3225x47e.js";import"./chunk-efr3ejqt.js";import"./chunk-h6emafs7.js";import"./chunk-64gh98cz.js";import"./chunk-fed3xsp9.js";import"./chunk-a4tv4wwg.js";import"./chunk-kgjpgnk0.js";import"./chunk-mzstheqe.js";import"./chunk-58f0mthg.js";import{cl as u,dl as c}from"./chunk-cjtd0qqc.js";import"./chunk-k049j105.js";import{Gs as f}from"./chunk-kzt0ycg7.js";import"./chunk-r2pck10q.js";import"./chunk-278ay77z.js";import"./chunk-fq5d2r74.js";import"./chunk-ant3p5v8.js";import{ft as A}from"./chunk-w43x27h2.js";import"./chunk-bf4xr43a.js";import"./chunk-n3kmd544.js";import"./chunk-c1rwzz7v.js";import"./chunk-wzb9q4ta.js";import"./chunk-ncnmb3kq.js";import"./chunk-8ybhs27t.js";import"./chunk-0jznnssx.js";import{lv as B}from"./chunk-vqq5zjbg.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.291";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
|
|
4
4
|
Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-5k2vmefg.js");if(x==="list"){console.log(`
|
|
5
5
|
\uD83D\uDCDA Fetching available icon collections...
|
|
6
6
|
`);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
|
|
7
7
|
`);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
|
|
8
8
|
Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
|
|
9
9
|
\u2713 Package generated successfully!`),console.log(`
|
|
10
|
-
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-vynan80s.js"),{loadConfig:j}=await import("./chunk-
|
|
10
|
+
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-vynan80s.js"),{loadConfig:j}=await import("./chunk-3maxrw5t.js");console.log(`
|
|
11
11
|
\uD83D\uDD0D Running PWA audit...
|
|
12
12
|
`);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
|
|
13
13
|
No .stx files matched ${x}
|
|
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
69
69
|
File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
|
|
70
70
|
File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
|
|
71
71
|
Pages directory not found: ${k}`),console.log(`
|
|
72
|
-
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-
|
|
72
|
+
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-0nr9jcv2.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
|
|
73
73
|
Build complete! (SSR)
|
|
74
74
|
`),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
|
|
75
75
|
`);else if(H.ssg){if(console.log(`
|
|
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
84
84
|
Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
|
|
85
85
|
`),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
|
|
86
86
|
`)}}catch(z){console.error(`
|
|
87
|
-
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-
|
|
87
|
+
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-tt318keb.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
|
|
88
88
|
Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-12sfyfes.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
|
|
89
89
|
\uD83D\uDCDD Initializing Netlify configuration...
|
|
90
90
|
`);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
|
|
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
|
|
|
124
124
|
\uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
|
|
125
125
|
${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
|
|
126
126
|
\uD83D\uDCCA STX Performance Statistics
|
|
127
|
-
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-
|
|
127
|
+
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-dd9qpsxg.js"),{resolveStxTargets:j}=await import("./chunk-gb98w455.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
|
|
128
128
|
No .stx files matched ${H.join(", ")}
|
|
129
129
|
`);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
|
|
130
130
|
Type-check did not run.
|
|
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
|
|
|
160
160
|
\uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
|
|
161
161
|
\uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
|
|
162
162
|
\u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-sdfr543c.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
|
|
163
|
-
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-
|
|
163
|
+
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-b2x8jxbq.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-j7thx96e.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
|
|
164
164
|
\uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
|
|
165
165
|
`);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
|
|
166
166
|
\uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
|
|
167
|
-
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-
|
|
167
|
+
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-cp4dpkz8.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-yh6he959.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-0ya4v5pr.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-cdmk58g1.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-0pjqw9nf.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
|
|
168
168
|
\uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
|
|
169
169
|
`);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
|
|
170
170
|
\uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
|
package/dist/craft-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$j as Yj,Zj as Uj,_j as Xj,ak as Zj,bk as _j,ck as $j,dk as qj,ek as Fj,fk as Oj,gk as Vj,hk as Ij,ik as Qj,jk as Wj,kk as Kj}from"./chunk-
|
|
2
|
+
import{$j as Yj,Zj as Uj,_j as Xj,ak as Zj,bk as _j,ck as $j,dk as qj,ek as Fj,fk as Oj,gk as Vj,hk as Ij,ik as Qj,jk as Wj,kk as Kj}from"./chunk-nszr6tyg.js";import{mk as Nj,nk as wj,ok as Aj}from"./chunk-fvh9ca47.js";import"./chunk-kgjpgnk0.js";import"./chunk-k049j105.js";import"./chunk-kzt0ycg7.js";import"./chunk-r2pck10q.js";import"./chunk-278ay77z.js";import"./chunk-fq5d2r74.js";import"./chunk-ant3p5v8.js";import"./chunk-w43x27h2.js";import"./chunk-bf4xr43a.js";import"./chunk-n3kmd544.js";import"./chunk-c1rwzz7v.js";import"./chunk-wzb9q4ta.js";import"./chunk-ncnmb3kq.js";import"./chunk-8ybhs27t.js";import"./chunk-0jznnssx.js";import"./chunk-vqq5zjbg.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
|
|
3
3
|
`),scripts:j.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
|
|
5
5
|
`),scripts:j.scripts.join(`
|
package/dist/craft.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$j as Yj,Zj as Uj,_j as Xj,ak as Zj,bk as _j,ck as $j,dk as qj,ek as Fj,fk as Oj,gk as Vj,hk as Ij,ik as Qj,jk as Wj,kk as Kj}from"./chunk-
|
|
2
|
+
import{$j as Yj,Zj as Uj,_j as Xj,ak as Zj,bk as _j,ck as $j,dk as qj,ek as Fj,fk as Oj,gk as Vj,hk as Ij,ik as Qj,jk as Wj,kk as Kj}from"./chunk-nszr6tyg.js";import{mk as Nj,nk as wj,ok as Aj}from"./chunk-fvh9ca47.js";import"./chunk-kgjpgnk0.js";import"./chunk-k049j105.js";import"./chunk-kzt0ycg7.js";import"./chunk-r2pck10q.js";import"./chunk-278ay77z.js";import"./chunk-fq5d2r74.js";import"./chunk-ant3p5v8.js";import"./chunk-w43x27h2.js";import"./chunk-bf4xr43a.js";import"./chunk-n3kmd544.js";import"./chunk-c1rwzz7v.js";import"./chunk-wzb9q4ta.js";import"./chunk-ncnmb3kq.js";import"./chunk-8ybhs27t.js";import"./chunk-0jznnssx.js";import"./chunk-vqq5zjbg.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
|
|
3
3
|
`),scripts:j.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
|
|
5
5
|
`),scripts:j.scripts.join(`
|
package/dist/inline-assets.d.ts
CHANGED
|
@@ -11,18 +11,4 @@ export declare function isExternalUrl(url: string): boolean;
|
|
|
11
11
|
* @returns Resolved absolute path, or null if not found
|
|
12
12
|
*/
|
|
13
13
|
export declare function resolveInlinePath(assetPath: string, templateDir: string, _filePath: string): Promise<string | null>;
|
|
14
|
-
/**
|
|
15
|
-
* Automatically inline local JS/CSS files.
|
|
16
|
-
*
|
|
17
|
-
* This function handles:
|
|
18
|
-
* - `<script src="./file.js"></script>` → `<script>...file contents...</script>`
|
|
19
|
-
* - `<link href="./file.css" rel="stylesheet">` → `<style>...file contents...</style>`
|
|
20
|
-
*
|
|
21
|
-
* Only local/relative paths are inlined. External URLs (http://, https://, //) are left as-is.
|
|
22
|
-
*
|
|
23
|
-
* @param template - The template string to process
|
|
24
|
-
* @param filePath - Path to the current template file (for resolving relative paths)
|
|
25
|
-
* @param dependencies - Set to track included file dependencies
|
|
26
|
-
* @returns Template with local assets inlined
|
|
27
|
-
*/
|
|
28
14
|
export declare function processInlineAssets(template: string, filePath: string, dependencies: Set<string>): Promise<string>;
|
package/dist/inline-assets.js
CHANGED
|
@@ -26,6 +26,15 @@ export async function resolveInlinePath(assetPath, templateDir, _filePath) {
|
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
const IMPORT_META_ERROR = Symbol.for("stx.inline-assets.import-meta");
|
|
30
|
+
function assertInlinableForClassicScript(code, source) {
|
|
31
|
+
if (!code.includes("import.meta"))
|
|
32
|
+
return;
|
|
33
|
+
const error = Error(`[stx] ${source} still references \`import.meta\` after bundling, and it is being inlined as a classic <script> where that is a SyntaxError \u2014 the whole script fails to parse, taking every other script on the page with it.
|
|
34
|
+
` + " `import.meta.env.STX_PUBLIC_*` is substituted at build time and is safe; anything else is not.\n Fix it by moving the module-only code (`import.meta.glob`, `import.meta.url`) into its own module, or by resolving the value without `import.meta`.");
|
|
35
|
+
error[IMPORT_META_ERROR] = !0;
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
29
38
|
export async function processInlineAssets(template, filePath, dependencies) {
|
|
30
39
|
let output = template;
|
|
31
40
|
const templateDir = path.dirname(filePath), scriptRegex = /<script\b([^>]*)src=["']([^"']+)["']([^>]*)><\/script>/gi;
|
|
@@ -46,8 +55,10 @@ export async function processInlineAssets(template, filePath, dependencies) {
|
|
|
46
55
|
minify: !0,
|
|
47
56
|
define: getPublicEnvDefine()
|
|
48
57
|
});
|
|
49
|
-
if (result.outputs.length > 0)
|
|
58
|
+
if (result.outputs.length > 0) {
|
|
50
59
|
fileContent = await result.outputs[0].text();
|
|
60
|
+
assertInlinableForClassicScript(fileContent, srcPath);
|
|
61
|
+
}
|
|
51
62
|
}
|
|
52
63
|
const inlineScript = `<script>
|
|
53
64
|
// Source: ${srcPath}
|
|
@@ -55,7 +66,10 @@ ${fileContent}
|
|
|
55
66
|
</script>`;
|
|
56
67
|
output = output.replace(fullMatch, inlineScript);
|
|
57
68
|
scriptRegex.lastIndex = 0;
|
|
58
|
-
} catch (error) {
|
|
69
|
+
} catch (error) {
|
|
70
|
+
if (error?.[IMPORT_META_ERROR])
|
|
71
|
+
throw error;
|
|
72
|
+
}
|
|
59
73
|
}
|
|
60
74
|
const linkRegex = /<link\b([^>]*)href=["']([^"']+)["']([^>]*)(?:\/?>)/gi;
|
|
61
75
|
let linkMatch;
|
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{Hk as wq,Ik as dq,Jk as Cq,Kk as mq,Lk as gq}from"./chunk-hpybjwwf.js";import{Mk as S,Nk as Tq,Ok as _q,Pk as z,Qk as D,Rk as P,Sk as kq,Tk as vq,Uk as w,Vk as Iq,Wk as d,Xk as Hq,Yk as Oq,Zk as Mq}from"./chunk-f8hdq4gt.js";import{cv as Aq,dv as bq,ev as Sq,fv as zq,gv as Dq,hv as Pq}from"./chunk-0jznnssx.js";import{lv as N}from"./chunk-vqq5zjbg.js";import p from"fs";import E from"path";import C from"fs";import L from"path";var k=[72,96,128,144,152,192,384,512],v=[120,152,167,180],I=[16,32];async function H(G,B){let q={success:!0,generatedFiles:[],errors:[],warnings:[]},K=G.pwa?.icons;if(!K?.src)return q.errors.push("No source icon specified in pwa.icons.src"),q.success=!1,q;let Y=L.isAbsolute(K.src)?K.src:L.resolve(process.cwd(),K.src);if(!await Bun.file(Y).exists())return q.errors.push(`Source icon not found: ${Y}`),q.success=!1,q;let Q=L.resolve(B,K.outputDir||"pwa-icons");try{C.mkdirSync(Q,{recursive:!0})}catch{return q.errors.push(`Failed to create output directory: ${Q}`),q.success=!1,q}let X=K.sizes||k,j=K.generateWebP??!0,J=K.generateAppleIcons??!0;try{let y;try{y=await import("sharp")}catch{return q.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-6yy15yee.js"),Y=await Bun.file(q).text();return await K(Y,{},q,G,new Set)}catch(K){console.warn(`[PWA] Failed to process custom offline page: ${K}`)}else console.warn(`[PWA] Custom offline page not found: ${q}`)}return f(G)}function f(G){let B=G.pwa?.offline,q=G.pwa?.manifest,K=B?.fallbackTitle||"You are offline",Y=B?.fallbackMessage||"Please check your internet connection and try again.",Q=q?.themeColor||"#4f46e5",X=q?.shortName||q?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Dk as Fq,yk as Uq,zk as Iq}from"./chunk-mzstheqe.js";import{Ek as Eq,Fk as Tq,Gk as Dq}from"./chunk-58f0mthg.js";import{$k as _q,cl as zq,dl as Aq}from"./chunk-
|
|
2
|
+
import{Dk as Fq,yk as Uq,zk as Iq}from"./chunk-mzstheqe.js";import{Ek as Eq,Fk as Tq,Gk as Dq}from"./chunk-58f0mthg.js";import{$k as _q,cl as zq,dl as Aq}from"./chunk-cjtd0qqc.js";import{Gm as Oq,Ip as P,Vo as Bq,ao as l,do as Hq,fr as n}from"./chunk-k049j105.js";import"./chunk-kzt0ycg7.js";import"./chunk-r2pck10q.js";import"./chunk-278ay77z.js";import"./chunk-fq5d2r74.js";import"./chunk-ant3p5v8.js";import{zt as Xq}from"./chunk-w43x27h2.js";import{Et as d}from"./chunk-bf4xr43a.js";import"./chunk-n3kmd544.js";import"./chunk-c1rwzz7v.js";import"./chunk-wzb9q4ta.js";import"./chunk-ncnmb3kq.js";import{Su as Yq,Tu as Vq,Uu as jq,Vu as Gq,Wu as Lq,Xu as Nq}from"./chunk-8ybhs27t.js";import"./chunk-0jznnssx.js";import{lv as y}from"./chunk-vqq5zjbg.js";import O from"fs";import j from"path";import{createHash as xq}from"crypto";function yq(q){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(q).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return q}}var Pq=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Cq(q){return Bun.hash(q).toString(16)}function Qq(q,Z={}){if(!q.includes('type="stx/island"'))return{html:q,chunks:[]};let $=new Map,Q=q.replace(Pq,(J,W,z,A)=>{let G=A.trim();if(!G)return J;if(/\bdata-stx-src=/.test(z))return J;if(Z.minify)G=yq(G);let X=Cq(G);if(!$.has(X))$.set(X,G);let B=Z.integrity?` data-stx-integrity="sha384-${xq("sha384").update(G).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${W}" data-stx-src="/_stx/islands/${X}.js"${B}${z}></script>`}),K=Array.from($,([J,W])=>({hash:J,code:W}));return{html:Q,chunks:K}}var gq=new Set(["visible","idle"]);function Zq(q){if(!q.includes("data-stx-src="))return q;let Z=new Map,$=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,Q;while((Q=$.exec(q))!==null)Z.set(Q[1],Q[2]);let K=new Set,J=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,W;while((W=J.exec(q))!==null)if(gq.has(Z.get(W[1])||""))K.add(W[2]);let z=q.lastIndexOf("</head>");if(K.size===0||z===-1)return q;let A=Array.from(K).filter((G)=>!q.includes(`rel="prefetch" href="${G}"`)).map((G)=>`<link rel="prefetch" href="${G}" as="script">`).join("");if(!A)return q;return q.slice(0,z)+A+q.slice(z)}var fq=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function h(q){let Z=q.trim();if(!Z)return null;let $=/^https?:\/\//i.test(Z)?Z:`https://${Z}`;try{return new URL($).origin+new URL($).pathname.replace(/\/$/,"")}catch{return null}}function mq(q){for(let Z of fq){let $=q[Z];if(!$)continue;let Q=h($);if(Q)return{url:Q,source:"env",via:Z}}return null}function $q(q){if(!q||typeof q!=="object")return null;let Z=q,$=Z.site?.url??Z.url??Z.app?.url;return typeof $==="string"?h($):null}async function dq(q){let{existsSync:Z}=await import("fs"),$=await import("path");for(let Q of["site.config.ts","site.config.js",".config/site.config.ts"]){let K=$.resolve(q,Q);if(!Z(K))continue;try{let J=await import(K),W=$q(J.default??J);if(W)return W}catch{}}return null}async function Kq(q={}){let Z=q.cwd??process.cwd(),$=q.env??process.env;if(q.explicit){let W=h(q.explicit);if(W)return{url:W,source:"option"}}let Q=$q(q.stxConfig);if(Q)return{url:Q,source:"stx.config",via:"site.url"};let K=await dq(Z);if(K)return{url:K,source:"site.config",via:"url"};let J=mq($);if(J)return J;return{url:"http://localhost",source:"fallback"}}function Wq(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
3
|
`)}class wq{cacheDir;cache=new Map;loaded=!1;salt;constructor(q,Z=""){this.cacheDir=q,this.salt=Z}async load(){if(this.loaded)return;let q=j.join(this.cacheDir,"build-cache.json");if(await Bun.file(q).exists())try{let Z=JSON.parse(await Bun.file(q).text());for(let[$,Q]of Object.entries(Z))this.cache.set($,Q)}catch{}this.loaded=!0}async save(){await O.promises.mkdir(this.cacheDir,{recursive:!0});let q=j.join(this.cacheDir,"build-cache.json"),Z={};for(let[$,Q]of this.cache)Z[$]=Q;await Bun.write(q,JSON.stringify(Z))}getHash(q,Z){let $=O.statSync(q),Q=`${this.salt}|${q}:${$.mtimeMs}`;for(let J of Z)if(O.existsSync(J)){let W=O.statSync(J);Q+=`:${J}:${W.mtimeMs}`}let K=0;for(let J=0;J<Q.length;J++){let W=Q.charCodeAt(J);K=(K<<5)-K+W,K=K&K}return Math.abs(K).toString(36)}get(q,Z){let $=this.cache.get(q);if(!$)return null;let Q=this.getHash(Z,$.dependencies??[]);if($.hash!==Q)return this.cache.delete(q),null;return $.html}set(q,Z,$,Q){let K=this.getHash(Z,$);this.cache.set(q,{hash:K,html:Q,generatedAt:Date.now(),dependencies:$})}}class Rq{cacheDir;constructor(q){this.cacheDir=q}getFilePath(q){let Z=q.replace(/[^a-zA-Z0-9]/g,"_")+".json";return j.join(this.cacheDir,"isr",Z)}async get(q){let Z=this.getFilePath(q);if(!await Bun.file(Z).exists())return null;try{return JSON.parse(await Bun.file(Z).text())}catch{return null}}async set(q,Z){let $=this.getFilePath(q);await O.promises.mkdir(j.dirname($),{recursive:!0}),await Bun.write($,JSON.stringify(Z))}async invalidate(q){let Z=this.getFilePath(q);if(await Bun.file(Z).exists())await O.promises.unlink(Z)}async invalidatePattern(q){let Z=j.join(this.cacheDir,"isr");if(!O.existsSync(Z))return;let $=await O.promises.readdir(Z);for(let Q of $){let K=Q.replace(/_/g,"/").replace(".json","");if(q.test(K))await O.promises.unlink(j.join(Z,Q))}}async needsRevalidation(q){let Z=await this.get(q);if(!Z)return!0;return Date.now()>Z.revalidateAfter}}async function pq(q){try{let $=(await Bun.file(q).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!$)return null;let Q=$[1];if(!Q.includes("getStaticPaths"))return null;let K=Q.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!K)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${K[1]}
|
|
@@ -41,7 +41,7 @@ ${q.map((Q)=>{let K=new URL(Q.loc,Z).href,J=` <url>
|
|
|
41
41
|
${$.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function aq(q={}){let Z=Date.now();Aq();let $=await n(process.cwd()),Q=$.build||{},K=await Kq({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Wq());let J={router:q.router??$?.router??{},pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||d(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},z=new Set,A=0,G={},X={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&O.existsSync(J.outputDir))await O.promises.rm(J.outputDir,{recursive:!0});await O.promises.mkdir(J.outputDir,{recursive:!0});let L=J.cacheSalt;if(!L){let{resolveUserCssConfig:Y,fingerprintConfig:N}=await import("./chunk-
|
|
44
|
+
</rss>`}async function aq(q={}){let Z=Date.now();Aq();let $=await n(process.cwd()),Q=$.build||{},K=await Kq({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Wq());let J={router:q.router??$?.router??{},pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||d(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},z=new Set,A=0,G={},X={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&O.existsSync(J.outputDir))await O.promises.rm(J.outputDir,{recursive:!0});await O.promises.mkdir(J.outputDir,{recursive:!0});let L=J.cacheSalt;if(!L){let{resolveUserCssConfig:Y,fingerprintConfig:N}=await import("./chunk-swe9ctpv.js");try{L=N(await Y(process.cwd()))}catch{}}let{prepareImageDelivery:_}=await import("./chunk-vvnfyt9w.js"),F=await _(J.publicDir,J.outputDir);if(F.count>0)console.log(`Optimized ${F.count} image(s) for responsive delivery`),L=[L,F.fingerprint].filter(Boolean).join(":");let C=new wq(J.cacheDir,L);if(J.cache)await C.load();try{let{generateCss:Y}=await import("./chunk-swe9ctpv.js");await Y('<div class="bg-black"></div>')}catch{}Yq();let kq=$?.routeMiddleware?.dir||"middleware";await jq(process.cwd(),kq);let p=Vq();if(p.length>0)console.log(`Loaded ${p.length} middleware: ${p.join(", ")}`);let bq=$?.routeMiddleware?.global||[];Fq($?.layoutsDir,d(process.cwd()));let i=l(".",{pagesDir:J.pagesDir});console.log(`Found ${i.length} routes`);let g=[];for(let Y of i){let N=await uq(Y);for(let H of N)g.push({route:Y,url:H.url,params:H.params,props:H.props,revalidate:H.revalidate??J.revalidate})}W.totalPages=g.length,console.log(`Generating ${W.totalPages} pages...`);let b=[],s=[];for(let Y=0;Y<g.length;Y+=J.concurrency)s.push(g.slice(Y,Y+J.concurrency));for(let Y of s)await Promise.all(Y.map(async(N)=>{let{route:H,url:V,params:S,props:Sq,revalidate:a}=N;try{await J.hooks.onPageStart?.(V);let w=await Bun.file(H.filePath).text(),R=JJ(w),vq=R?.middleware?Array.isArray(R.middleware)?R.middleware:[R.middleware]:[],t=[...bq,...vq];if(t.length>0){let D=Gq(V,S,R||{}),M=Lq(D,null,void 0,{isServer:!0}),E=await Nq(t,M);if(E.redirect){let U=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,x=QJ(String(U),V),k=ZJ(V,J);await O.promises.mkdir(j.dirname(k),{recursive:!0}),await Bun.write(k,x),W.successCount++,W.pages.push({route:V,outputPath:k,size:Buffer.byteLength(x),cached:!1}),b.push({loc:V,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${V} \u2192 redirect to ${U}`);return}if(E.abort){let U=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${V} \u2014 middleware aborted: ${U}`);return}}let e=w.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(e)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${e[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:S})){console.warn(`Validation failed for ${V}, skipping...`);return}}catch{}let I=null,qq=!1;if(J.cache){if(I=C.get(V,H.filePath),I)qq=!0,W.cachedCount++}if(!I){let D=await Mq(H,S,Sq,J,$);if(I=D.html,J.failOnIncludeError&&D.includeFailures.length>0)throw Error(`${D.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.291",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"dependencies": {
|
|
118
118
|
"@stacksjs/ts-css": "^0.3.2",
|
|
119
119
|
"@stacksjs/clapp": "^0.2.14",
|
|
120
|
-
"@stacksjs/desktop": "0.2.
|
|
121
|
-
"@stacksjs/sanitizer": "0.2.
|
|
120
|
+
"@stacksjs/desktop": "0.2.291",
|
|
121
|
+
"@stacksjs/sanitizer": "0.2.291",
|
|
122
122
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
123
|
-
"bun-plugin-stx": "0.2.
|
|
123
|
+
"bun-plugin-stx": "0.2.291",
|
|
124
124
|
"bunfig": "^0.15.17",
|
|
125
|
-
"stx-router": "0.2.
|
|
125
|
+
"stx-router": "0.2.291",
|
|
126
126
|
"ts-broadcasting": "^0.0.9",
|
|
127
127
|
"ts-images": "^0.2.18",
|
|
128
128
|
"ts-syntax-highlighter": "^0.2.1"
|