@stacksjs/stx 0.2.218 → 0.2.220
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/app-shell.js +2 -1
- package/dist/{chunk-3twce5kp.js → chunk-02k0pg5s.js} +1 -1
- package/dist/{chunk-53ajah3v.js → chunk-06f65jz3.js} +2 -2
- package/dist/{chunk-crmk2jzf.js → chunk-08031d2g.js} +1 -1
- package/dist/chunk-0k12epgy.js +2 -0
- package/dist/{chunk-3fwn9edg.js → chunk-135mme4g.js} +1 -1
- package/dist/{chunk-c7pvwvse.js → chunk-1gy7fa09.js} +1 -1
- package/dist/{chunk-bsr7yrxh.js → chunk-1rka3ffx.js} +1 -1
- package/dist/chunk-1y3kc7mb.js +2 -0
- package/dist/chunk-20wgmax7.js +2 -0
- package/dist/chunk-25jkkv9d.js +2 -0
- package/dist/{chunk-wbq7cp57.js → chunk-2bxgan9p.js} +1 -1
- package/dist/{chunk-cqt6ry1e.js → chunk-2v1cj2qp.js} +1 -1
- package/dist/chunk-2y8ss8b3.js +2 -0
- package/dist/chunk-38zpyb7q.js +2 -0
- package/dist/{chunk-yk1smsev.js → chunk-3s3zyq5q.js} +1 -1
- package/dist/chunk-3zhhytkd.js +2 -0
- package/dist/chunk-4k5f40bb.js +2 -0
- package/dist/{chunk-gvm4dw6p.js → chunk-4svjne4w.js} +2 -2
- package/dist/{chunk-z2sp0k8d.js → chunk-4tmw4kjm.js} +1 -1
- package/dist/{chunk-ne8sygmy.js → chunk-4vhxtfkw.js} +1 -1
- package/dist/{chunk-mxqp7x07.js → chunk-4wdbmjmg.js} +2 -2
- package/dist/{chunk-hyrjade7.js → chunk-572ttrsj.js} +1 -1
- package/dist/{chunk-fvpaf9v5.js → chunk-5a5efazd.js} +2 -2
- package/dist/chunk-5fz9n4wq.js +3 -0
- package/dist/{chunk-css1sfnr.js → chunk-5y731xe9.js} +1 -1
- package/dist/chunk-67b47fez.js +2 -0
- package/dist/{chunk-8anh6d36.js → chunk-6b0xz02h.js} +1 -1
- package/dist/{chunk-74gc1x9x.js → chunk-6qjzx44j.js} +2 -2
- package/dist/{chunk-weajy31v.js → chunk-6sm1vr9h.js} +2 -2
- package/dist/{chunk-x8b16v5q.js → chunk-6vdn3qy0.js} +1 -1
- package/dist/{chunk-x13f5bbe.js → chunk-72w4hhbq.js} +1 -1
- package/dist/chunk-735atsqq.js +2 -0
- package/dist/{chunk-n8zpm7xb.js → chunk-74pjj8d0.js} +1 -1
- package/dist/chunk-7cq5b6zp.js +2 -0
- package/dist/chunk-7jhtvcy5.js +2 -0
- package/dist/{chunk-whxregkn.js → chunk-7ryqex47.js} +1 -1
- package/dist/{chunk-1nnpwrqj.js → chunk-7s3wrtpb.js} +2 -2
- package/dist/chunk-7x3nd6r4.js +2 -0
- package/dist/{chunk-m2mhtpwy.js → chunk-80qre9zp.js} +1 -1
- package/dist/{chunk-c0p9kf53.js → chunk-8awfakrk.js} +1 -1
- package/dist/{chunk-st5qggks.js → chunk-8ha8h3s1.js} +1 -1
- package/dist/{chunk-trtm887x.js → chunk-8rn5e39c.js} +1 -1
- package/dist/chunk-9ktvkzcc.js +2 -0
- package/dist/chunk-a4329ma8.js +30 -0
- package/dist/{chunk-y4hkqsgw.js → chunk-a6nnbnmb.js} +2 -2
- package/dist/{chunk-j3njy10j.js → chunk-ad84gwgv.js} +2 -2
- package/dist/{chunk-xwc4pg5w.js → chunk-anenwsj3.js} +2 -2
- package/dist/{chunk-khrtzbxd.js → chunk-arnse15r.js} +1 -1
- package/dist/chunk-bgb5a3q6.js +4 -0
- package/dist/chunk-bj25jvsn.js +2 -0
- package/dist/{chunk-fnkxbnka.js → chunk-bx766t25.js} +1 -1
- package/dist/{chunk-msjzqne1.js → chunk-bz9z4pfr.js} +1 -1
- package/dist/{chunk-yckd6ks5.js → chunk-c0n802j1.js} +1 -1
- package/dist/{chunk-b6jhznkh.js → chunk-cq6fsp6j.js} +1 -1
- package/dist/chunk-cw0352e8.js +2 -0
- package/dist/{chunk-q4se9rtw.js → chunk-dykhpgyx.js} +1 -1
- package/dist/{chunk-7md45k52.js → chunk-e890s5em.js} +2 -2
- package/dist/{chunk-ht51fz7w.js → chunk-efr3ejqt.js} +1 -1
- package/dist/{chunk-1306tswx.js → chunk-efrv1yp5.js} +1 -1
- package/dist/{chunk-jmnftb29.js → chunk-ejspksxd.js} +2 -2
- package/dist/chunk-et555kdz.js +2 -0
- package/dist/{chunk-7mst8kqm.js → chunk-ewdn7s6r.js} +1 -1
- package/dist/{chunk-hncp9gz6.js → chunk-f5cw54q3.js} +1 -1
- package/dist/chunk-fw5d1aev.js +18 -0
- package/dist/chunk-g3rg8afc.js +2 -0
- package/dist/{chunk-9b82d4g5.js → chunk-gnmft4dz.js} +1 -1
- package/dist/chunk-h7xtn6j0.js +2 -0
- package/dist/{chunk-rczpw37w.js → chunk-hcqzbhc1.js} +1 -1
- package/dist/{chunk-7zk48rd8.js → chunk-hg2ja2gj.js} +1 -1
- package/dist/chunk-hh2r7hrb.js +2 -0
- package/dist/chunk-hysfnyh4.js +2 -0
- package/dist/chunk-j3mw2vpt.js +2 -0
- package/dist/{chunk-q8szpd6w.js → chunk-jw1besrt.js} +1 -1
- package/dist/{chunk-3es366z4.js → chunk-k6b7gpk2.js} +1 -1
- package/dist/{chunk-z47tw39z.js → chunk-kdpy5rgk.js} +2 -2
- package/dist/{chunk-j0tfxbns.js → chunk-kvz7rg2x.js} +2 -2
- package/dist/{chunk-tryt2h85.js → chunk-m6damb1f.js} +1 -1
- package/dist/{chunk-1bvstnz4.js → chunk-mcz70xms.js} +2 -2
- package/dist/{chunk-y2jr10y8.js → chunk-mt4cdgz3.js} +2 -2
- package/dist/chunk-n1b7b20f.js +2 -0
- package/dist/{chunk-zgvga8rc.js → chunk-ncvd7673.js} +1 -1
- package/dist/{chunk-47pge5gz.js → chunk-nnw1ka45.js} +1 -1
- package/dist/{chunk-808qy9cq.js → chunk-pscdy0gn.js} +197 -197
- package/dist/{chunk-zat2ndst.js → chunk-pzcf36xm.js} +347 -347
- package/dist/{chunk-dmb6t0qj.js → chunk-q5w0fqd5.js} +2 -2
- package/dist/{chunk-pezxve4a.js → chunk-qfsktf7s.js} +3 -3
- package/dist/{chunk-a2rj5ce0.js → chunk-qr90ng3a.js} +2 -2
- package/dist/{chunk-rg6v68ya.js → chunk-rbnmbeda.js} +1 -1
- package/dist/chunk-rmrnnv87.js +2 -0
- package/dist/{chunk-j5vyt8wd.js → chunk-rpyck7kn.js} +1 -1
- package/dist/chunk-rq20qvkk.js +2 -0
- package/dist/{chunk-1nm2xrvq.js → chunk-ry86fd41.js} +1 -1
- package/dist/{chunk-9xh78snm.js → chunk-s6yn1mbm.js} +1 -1
- package/dist/{chunk-vgk5v31k.js → chunk-s88yt309.js} +1 -1
- package/dist/{chunk-ymccpdg6.js → chunk-snktca7b.js} +1 -1
- package/dist/{chunk-fvjh7rx0.js → chunk-swy03mg9.js} +1 -1
- package/dist/chunk-tc2d9en8.js +2 -0
- package/dist/{chunk-9064gyt5.js → chunk-tgaddq21.js} +2 -2
- package/dist/chunk-th7snpq2.js +2 -0
- package/dist/{chunk-f6jm4hy3.js → chunk-txre2e2m.js} +1 -1
- package/dist/chunk-v7ggp28p.js +2 -0
- package/dist/{chunk-zxb128xa.js → chunk-vaa8tk98.js} +2 -2
- package/dist/chunk-vg0kzfcy.js +2 -0
- package/dist/{chunk-p8pyqr7p.js → chunk-vgf945mj.js} +1 -1
- package/dist/{chunk-xkd164zg.js → chunk-w7ped5p5.js} +1 -1
- package/dist/{chunk-yf3bmmkk.js → chunk-wvc7t11n.js} +1 -1
- package/dist/{chunk-3wd9kfyz.js → chunk-x0bcc9sj.js} +1 -1
- package/dist/chunk-x0f34a44.js +2 -0
- package/dist/{chunk-aw9z3m10.js → chunk-xqnwy1t6.js} +1 -1
- package/dist/{chunk-pdh79z63.js → chunk-xrnqz76v.js} +1 -1
- package/dist/{chunk-p7qqbw2k.js → chunk-ydk1n77q.js} +2 -2
- package/dist/chunk-yk45219d.js +2 -0
- package/dist/{chunk-s7dqawk0.js → chunk-yppz6dgg.js} +2 -2
- package/dist/{chunk-w0ng9e1m.js → chunk-z6ev72qj.js} +1 -1
- package/dist/{chunk-6xg3j487.js → chunk-z794cdmn.js} +1 -1
- package/dist/{chunk-96kpqgh3.js → chunk-zg5mq1cj.js} +1 -1
- package/dist/chunk-zh75hc6a.js +2 -0
- package/dist/{chunk-zj44h5kk.js → chunk-zhfdf2h5.js} +1 -1
- package/dist/chunk-zpskp2xb.js +2 -0
- package/dist/cli.js +14 -14
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/dev-server/serve-app.js +33 -8
- package/dist/dev-server/serve-multi.js +5 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/page-response.d.ts +113 -0
- package/dist/page-response.js +106 -1
- package/dist/process.js +2 -0
- package/dist/production-server.js +13 -5
- package/dist/pwa.js +2 -2
- package/dist/render.d.ts +14 -0
- package/dist/render.js +3 -19
- package/dist/serve.js +19 -10
- package/dist/spa-nav.d.ts +49 -0
- package/dist/spa-nav.js +12 -0
- package/dist/ssg.js +2 -2
- package/dist/template-compiler.d.ts +1 -0
- package/dist/template-compiler.js +2 -0
- package/dist/template-hydrator.d.ts +1 -1
- package/dist/template-hydrator.js +4 -3
- package/dist/variable-extractor.d.ts +1 -1
- package/dist/variable-extractor.js +6 -2
- package/dist/visual-testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-10yft4b7.js +0 -2
- package/dist/chunk-17atrbv2.js +0 -2
- package/dist/chunk-23vxz3hp.js +0 -2
- package/dist/chunk-2me28xee.js +0 -2
- package/dist/chunk-2w5d5tw1.js +0 -2
- package/dist/chunk-2xeq5xnf.js +0 -2
- package/dist/chunk-2z6k7gsa.js +0 -2
- package/dist/chunk-3fxcwk6a.js +0 -2
- package/dist/chunk-4vwxgmg0.js +0 -2
- package/dist/chunk-5gr4vv7m.js +0 -2
- package/dist/chunk-775fabj4.js +0 -2
- package/dist/chunk-8cyv5316.js +0 -2
- package/dist/chunk-8xtvmwpr.js +0 -2
- package/dist/chunk-9db2f09j.js +0 -2
- package/dist/chunk-9h908knr.js +0 -2
- package/dist/chunk-a1ydhf5t.js +0 -3
- package/dist/chunk-ba18hn7n.js +0 -2
- package/dist/chunk-bd0yv6a0.js +0 -2
- package/dist/chunk-cr7s8q08.js +0 -2
- package/dist/chunk-d48tzd8c.js +0 -2
- package/dist/chunk-dcy8hg45.js +0 -2
- package/dist/chunk-e6377wfq.js +0 -4
- package/dist/chunk-jnjxf5t2.js +0 -2
- package/dist/chunk-n4smz31k.js +0 -18
- package/dist/chunk-njkv35c3.js +0 -2
- package/dist/chunk-q3ea7q6t.js +0 -2
- package/dist/chunk-qd1nadff.js +0 -30
- package/dist/chunk-qwzfdq8q.js +0 -2
- package/dist/chunk-r153ybwd.js +0 -2
- package/dist/chunk-tg0w29j1.js +0 -2
- package/dist/chunk-tqhwzjj7.js +0 -2
- package/dist/chunk-vgr8kykv.js +0 -2
- package/dist/chunk-w670sde5.js +0 -2
- package/dist/chunk-x9bsft57.js +0 -2
- package/dist/chunk-y05vd24g.js +0 -2
- package/dist/chunk-yrqnsd3a.js +0 -2
- package/dist/chunk-z0hkt5sk.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as Rk,$a as Im,$b as _n,$c as $o,$d as $p,A as Bj,Aa as Tl,Ab as tn,Ac as Ao,Ad as Ap,Ae as Gq,B as Cj,Ba as Ul,Bb as un,Bc as Bo,Bd as Bp,Be as Hq,C as Dj,Ca as fm,Cb as vn,Cc as Co,Cd as Cp,Ce as Iq,D as Ej,Da as gm,Db as wn,Dc as Do,Dd as Dp,De as Jq,E as uk,Ea as hm,Eb as xn,Ec as Eo,Ed as Ep,Ee as Kq,F as vk,Fa as im,Fb as yn,Fc as Fo,Fd as Fp,Fe as Lq,G as wk,Ga as jm,Gb as zn,Gc as Go,Gd as Gp,Ge as Mq,H as xk,Ha as nm,Hb as An,Hc as Ho,Hd as Hp,He as Nq,I as yk,Ia as om,Ib as Bn,Ic as Io,Id as Ip,Ie as Oq,J as zk,Ja as pm,Jb as Cn,Jc as Jo,Jd as Jp,Je as Pq,K as Ak,Ka as qm,Kb as Dn,Kc as Ko,Kd as Kp,Ke as Qq,L as Bk,La as rm,Lb as En,Lc as Lo,Ld as Lp,Le as Rq,M as Ck,Ma as sm,Mb as Fn,Mc as Mo,Md as Mp,Me as Sq,N as Dk,Na as tm,Nb as Mn,Nc as No,Nd as Np,Ne as Tq,O as Ek,Oa as um,Ob as Nn,Oc as Oo,Od as Op,Oe as Uq,P as Fk,Pa as vm,Pb as On,Pc as Po,Pd as Pp,Pe as Vq,Q as Gk,Qa as wm,Qb as Pn,Qc as Qo,Qd as Qp,Qe as Wq,R as Hk,Ra as xm,Rb as Qn,Rc as Ro,Rd as Rp,Re as Xq,S as Ik,Sa as ym,Sb as Rn,Sc as So,Sd as Sp,Se as Yq,T as Jk,Ta as zm,Tb as Sn,Tc as To,Td as Tp,Te as Zq,U as Kk,Ua as Am,Ub as Tn,Uc as Uo,Ud as Up,Ue as _q,V as Lk,Va as Bm,Vb as Un,Vc as Vo,Vd as Vp,Ve as $q,W as Mk,Wa as Cm,Wb as Vn,Wc as Wo,Wd as Wp,We as ar,X as Nk,Xa as Em,Xb as Wn,Xc as Xo,Xd as Xp,Y as Ok,Ya as Fm,Yb as Xn,Yc as Yo,Yd as Yp,Z as Pk,Za as Gm,Zb as Yn,Zc as Zo,Zd as Zp,_ as Qk,_a as Hm,_b as Zn,_c as _o,_d as _p,aa as Sk,ab as Jm,ac as $n,ad as ap,ae as aq,ba as Tk,bb as Km,bc as ao,bd as bp,be as bq,ca as Uk,cb as Lm,cc as bo,cd as cp,ce as cq,da as Vk,db as Mm,dc as co,dd as dp,de as dq,ea as Wk,eb as Nm,ec as eo,ed as ep,ee as eq,fa as Xk,fb as Om,fc as fo,fd as fp,fe as fq,ga as Yk,gb as Pm,gc as go,gd as gp,ge as gq,ha as Zk,hb as Qm,hc as ho,hd as hp,he as hq,ia as _k,ib as Rm,ic as io,id as ip,ie as iq,ja as $k,jb as Sm,jc as jo,jd as jp,je as jq,ka as al,kb as Tm,kc as ko,kd as kp,ke as kq,la as bl,lb as Um,lc as lo,ld as lp,le as lq,ma as cl,mb as Vm,mc as mo,md as mp,me as mq,na as dl,nb as Wm,nc as no,nd as np,ne as nq,o as a,oa as el,ob as Zm,oc as oo,od as op,oe as uq,p as mj,pa as Il,pb as _m,pc as po,pd as pp,pe as vq,q as nj,qa as Jl,qb as $m,qc as qo,qd as qp,qe as wq,r as oj,ra as Kl,rb as an,rc as ro,rd as rp,re as xq,s as pj,sa as Ll,sb as gn,sc as so,sd as sp,se as yq,t as qj,ta as Ml,tb as hn,tc as to,td as tp,te as zq,u as rj,ua as Nl,ub as jn,uc as uo,ud as up,ue as Aq,v as sj,va as Ol,vb as kn,vc as vo,vd as vp,ve as Bq,w as tj,wa as Pl,wb as pn,wc as wo,wd as wp,we as Cq,x as uj,xa as Ql,xb as qn,xc as xo,xd as xp,xe as Dq,y as zj,ya as Rl,yb as rn,yc as yo,yd as yp,ye as Eq,z as Aj,za as Sl,zb as sn,zc as zo,zd as zp,ze as Fq}from"./chunk-pscdy0gn.js";import{$e as Kn,Xe as Gn,Ye as Hn,Ze as In,_e as Jn,af as Ln}from"./chunk-anenwsj3.js";import{bf as Xm,cf as Ym}from"./chunk-s6yn1mbm.js";import{df as bn}from"./chunk-5a5efazd.js";import{ef as Hl}from"./chunk-tgaddq21.js";import{ff as km,gf as lm,hf as mm,if as Dm,jf as cn,kf as dn,lf as en,mf as fn,nf as ln,of as mn,pf as nn,qf as on}from"./chunk-5fz9n4wq.js";import{Af as Oj,Bf as Pj,Cf as Qj,Df as Rj,Ef as Sj,Ff as Tj,rf as Fj,sf as Gj,tf as Hj,uf as Ij,vf as Jj,wf as Kj,xf as Lj,yf as Mj,zf as Nj}from"./chunk-bx766t25.js";import{Gf as ik,Hf as jk,If as kk,Jf as lk,Kf as mk,Lf as nk,Mf as ok,Nf as pk,Of as qk,Pf as rk,Qf as sk,Rf as tk}from"./chunk-vaa8tk98.js";import{Sf as gk,Tf as hk}from"./chunk-yppz6dgg.js";import{Uf as bj,Wf as cj}from"./chunk-gnmft4dz.js";import{ag as Uj,bg as Vj,cg as Wj,dg as Xj,eg as Yj,fg as Zj,gg as _j,ig as $j,jg as ak,kg as bk,lg as ck,mg as dk,ng as ek,qg as fk}from"./chunk-qr90ng3a.js";import{rg as wl,sg as xl,tg as yl,ug as zl,vg as Cl,wg as Gl}from"./chunk-bgb5a3q6.js";import{Ag as Bl,xg as Al}from"./chunk-ydk1n77q.js";import{Ig as fl,Jg as gl,Kg as hl,Lg as il,Mg as jl,Ng as kl,Og as ll,Pg as ml,Qg as nl,Rg as ol,Sg as pl,Tg as ql,Ug as rl,Vg as Dl,Wg as El,Xg as Fl}from"./chunk-a4329ma8.js";import{$g as Yl,Yg as Vl,Zg as Wl,_g as Xl,ah as Zl,bh as _l,ch as $l,dh as am,eh as bm,fh as cm,gh as dm,hh as em}from"./chunk-8ha8h3s1.js";import{ih as Rg}from"./chunk-4tmw4kjm.js";import{jh as Yg,kh as Zg,lh as _g,mh as $g,nh as ah,oh as bh}from"./chunk-4svjne4w.js";import{ph as qi,qh as ri,rh as si,vh as ti,wh as ui,xh as vi}from"./chunk-bz9z4pfr.js";import{Ah as Di,Bh as Ei,Ch as Fi,Dh as Gi,Eh as Hi,Fh as Ii,Gh as Ji,Hh as Ki,Ih as Li,yh as Bi,zh as Ci}from"./chunk-mt4cdgz3.js";import{Jh as gi,Kh as hi,Lh as ii,Mh as ji,Nh as ki,Ph as li,Qh as mi,Rh as ni,Sh as oi,Th as pi}from"./chunk-jw1besrt.js";import{Uh as cg,Vh as dg,Wh as eg,Xh as fg,Yh as gg}from"./chunk-z6ev72qj.js";import{$h as jg,Zh as hg,_h as ig,ai as kg,bi as lg}from"./chunk-72w4hhbq.js";import{ci as mg,di as ng,ei as og,fi as pg,gi as qg,hi as rg,ii as sg}from"./chunk-snktca7b.js";import{ji as tg,ki as ug,li as vg,mi as wg,ni as xg,oi as yg}from"./chunk-s88yt309.js";import{Ai as Jg,Bi as Kg,Ci as Lg,Di as Mg,qi as zg,ri as Ag,si as Bg,ti as Cg,ui as Dg,vi as Eg,wi as Fg,xi as Gg,yi as Hg,zi as Ig}from"./chunk-74pjj8d0.js";import{Fi as Ng,Gi as Og,Hi as Pg,Ii as Qg}from"./chunk-a6nnbnmb.js";import{Ni as Df,Oi as Ef,Pi as Ff,Qi as Gf,Ri as Hf,Si as If,Ti as Jf,Ui as Kf,Vi as Lf,Wi as Mf,Xi as Nf}from"./chunk-mcz70xms.js";import{Yi as Sf,Zi as Tf}from"./chunk-6sm1vr9h.js";import{aj as Uf}from"./chunk-4wdbmjmg.js";import"./chunk-efr3ejqt.js";import{ej as Vf}from"./chunk-swy03mg9.js";import{fj as Wf,gj as Xf}from"./chunk-cq6fsp6j.js";import{hj as Yf,ij as Zf,jj as _f,kj as $f,lj as ag,mj as bg}from"./chunk-572ttrsj.js";import{Aj as be,nj as Qd,oj as Rd,pj as Sd,qj as Td,rj as Ud,sj as Vd,tj as Wd,uj as Xd,vj as Yd,wj as Zd,xj as _d,yj as $d,zj as ae}from"./chunk-ejspksxd.js";import{Bj as Bf,Cj as Cf}from"./chunk-ad84gwgv.js";import{Jj as nf,Kj as of,Lj as pf,Mj as qf,Nj as rf,Oj as sf,Pj as tf,Qj as uf,Rj as vf,Sj as wf,Tj as xf,Uj as yf,Vj as zf,Wj as Af}from"./chunk-k6b7gpk2.js";import{ok as oq,pk as pq,qk as qq,rk as rq,sk as sq,tk as tq}from"./chunk-fw5d1aev.js";import{Ak as ul,Bk as vl,uk as vj,vk as wj,wk as xj,xk as yj,yk as sl,zk as tl}from"./chunk-7s3wrtpb.js";import"./chunk-c0n802j1.js";import"./chunk-ncvd7673.js";import{$m as Hb,$n as Hc,$p as af,$q as Fh,$r as gj,Al as ea,Am as hb,An as gc,Ao as wd,Ap as Be,Aq as Rf,Ar as ei,Bl as fa,Bm as ib,Bn as hc,Bo as xd,Bp as Ce,Bq as Sg,Br as fi,Cl as ga,Cm as jb,Cn as ic,Co as yd,Cp as De,Cq as Tg,Cr as wi,Dl as ha,Dm as kb,Dn as jc,Do as zd,Dp as Ee,Dq as Ug,Dr as xi,El as ia,Em as lb,En as kc,Eo as Ad,Ep as Fe,Eq as Vg,Er as yi,Fm as mb,Fn as lc,Fo as Bd,Fp as Ge,Fq as Wg,Fr as zi,Gn as mc,Go as Cd,Gp as He,Gq as Xg,Gr as Ai,Hl as ja,Hm as nb,Hn as nc,Ho as Dd,Hp as Ie,Hq as ch,Hr as Mi,Il as ka,Im as ob,In as oc,Io as Ed,Ip as Je,Iq as dh,Ir as Ni,Jl as la,Jm as pb,Jn as pc,Jo as Fd,Jp as Ke,Jq as eh,Jr as Oi,Kl as ma,Km as qb,Kn as qc,Ko as Gd,Kp as Le,Kq as fh,Kr as Pi,Ll as na,Lm as rb,Ln as rc,Lo as Hd,Lp as Me,Lq as gh,Lr as Qi,Mm as sb,Mn as sc,Mo as Id,Mp as Ne,Mq as hh,Mr as Ri,Nm as tb,Nn as tc,No as Jd,Np as Oe,Nq as ih,Nr as Si,Ol as qa,Om as ub,On as uc,Oo as Kd,Op as Pe,Oq as jh,Or as Ti,Pl as ra,Pm as vb,Pn as vc,Po as Ld,Pp as Qe,Pq as kh,Pr as Ui,Ql as ya,Qm as wb,Qn as wc,Qo as Md,Qp as Re,Qq as lh,Qr as Vi,Rl as za,Rm as xb,Rn as xc,Ro as Nd,Rp as Se,Rq as mh,Rr as Wi,Sl as Aa,Sm as yb,Sn as yc,So as Od,Sp as Te,Sq as nh,Sr as Xi,Tl as Ba,Tm as zb,Tn as zc,To as Pd,Tp as Ue,Tq as oh,Tr as Yi,Ul as Ca,Um as Ab,Un as Ac,Up as Ve,Uq as ph,Ur as Zi,Vl as Da,Vm as Bb,Vn as Bc,Vo as ce,Vp as We,Vq as qh,Vr as _i,Wl as Ea,Wm as Cb,Wn as Cc,Wp as Xe,Wq as rh,Wr as $i,Xl as Fa,Xm as Db,Xn as Dc,Xp as Ye,Xq as sh,Xr as aj,Yl as Ga,Ym as Eb,Yn as Ec,Yp as Ze,Yq as Ch,Yr as dj,Zm as Fb,Zn as Fc,Zp as _e,Zq as Dh,Zr as ej,_m as Gb,_n as Gc,_p as $e,_q as Eh,_r as fj,an as Ib,ao as Ic,ap as de,aq as bf,ar as Gh,as as hj,bm as Ha,bn as Jb,bo as Jc,bq as cf,br as Hh,bs as ij,cm as Ia,cn as Kb,co as Kc,cp as ee,cq as df,cr as Ih,cs as jj,dm as Ja,dn as Lb,do as Lc,dq as ef,dr as Jh,ds as kj,em as Ka,en as Mb,eo as Mc,ep as fe,eq as ff,er as Kh,es as lj,fm as La,fn as Nb,fo as Nc,fp as ge,fq as gf,fr as Lh,gm as Ma,gn as Ob,go as Oc,gp as he,gq as hf,gr as Mh,hl as s,hn as Pb,ho as Pc,hp as ie,hq as jf,hr as Nh,il as t,in as Qb,io as Qc,ip as je,iq as kf,ir as Oh,jl as u,jm as Na,jn as Rb,jo as Rc,jp as ke,jq as lf,jr as Ph,kl as v,km as Oa,kn as Sb,ko as Sc,kp as le,kq as mf,kr as Qh,ll as w,lm as Pa,ln as Tb,lo as Tc,lp as me,lr as Rh,ml as x,mm as Qa,mn as Ub,mo as id,mp as ne,mq as Of,mr as Sh,nl as y,nm as Ra,nn as Vb,no as jd,np as oe,nr as Th,ol as z,om as Sa,on as Wb,oo as kd,op as pe,or as Uh,pl as A,pm as Ta,pn as Xb,po as ld,pp as qe,pr as Vh,ql as B,qm as Ua,qn as Yb,qo as md,qp as re,qr as Wh,rl as C,rm as Va,rn as Zb,ro as nd,rp as se,rr as Xh,sl as D,sm as Wa,sn as _b,so as od,sp as te,sr as Yh,tl as E,tm as Xa,tn as $b,to as pd,tp as ue,tr as Zh,ul as F,um as Ya,un as ac,uo as qd,up as ve,ur as _h,vl as G,vm as Za,vn as bc,vo as rd,vp as we,vr as $h,wl as H,wm as _a,wn as cc,wo as sd,wp as xe,wr as ai,xl as I,xm as $a,xn as dc,xo as td,xp as ye,xr as bi,yl as J,yn as ec,yo as ud,yp as ze,yq as Pf,yr as ci,zl as da,zm as gb,zn as fc,zo as vd,zp as Ae,zq as Qf,zr as di}from"./chunk-pzcf36xm.js";import{fs as d,gs as e,hs as f,is as g,js as h,ks as i,ls as j,ms as k,ns as l,os as m,ps as n,qs as o,rs as p,ss as q,ts as r}from"./chunk-kvz7rg2x.js";import{us as b,vs as c}from"./chunk-arnse15r.js";import{ws as oa,xs as pa}from"./chunk-6b0xz02h.js";import{As as vh,Bs as wh,Cs as xh,Ds as yh,Es as zh,Fs as Ah,Gs as Bh,ys as th,zs as uh}from"./chunk-135mme4g.js";import{Hs as ab,Is as bb,Ks as cb,Us as db,Vs as eb,Ws as fb}from"./chunk-qfsktf7s.js";import{$s as wa,Xs as sa,Ys as ta,Zs as ua,_s as va,at as xa}from"./chunk-80qre9zp.js";import{bt as Uc,ct as Vc,dt as Wc,et as Xc,ft as Yc,gt as Zc,ht as _c,it as $c,jt as ad,kt as bd,lt as cd,mt as dd,nt as ed,ot as fd,pt as gd,qt as hd}from"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import{$t as V,Ft as K,Gt as L,Jt as M,Ot as N,Pt as O,Vt as P,Wt as Q,Xt as R,Yt as S,Zt as T,_t as U,au as W,bu as X,cu as Y,du as Z,eu as _,fu as $,gu as aa,hu as ba,ju as ca}from"./chunk-kdpy5rgk.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{Pj as writeNetlifyConfig,El as writeManifest,sk as writeImageManifest,Vn as wrapComponentForHMR,Pq as withDefaults,aj as webComponentDirectiveHandler,Lo as watermark,Np as watchViews,Ck as watchMultiple,Dk as watchEffect,Bk as watch,Qk as waitForStore,Hd as waitForLocale,Hn as virtualPathFor,Pi as videoDirective,cc as validators,Tq as validated,td as validateValueEnhanced,Tg as validateTemplate,Qo as validateParams,ud as validateFormEnhanced,Cp as validateFile,pd as validateFields,od as validateField,Vg as validateDirective,Oc as validateCspDirectives,ij as validateConfig,Jl as validateComponentScripts,fm as validateComponentProps,Rf as validateClientScript,Qg as v,Ua as usesSignalsInScript,gh as userComponentFileExists,wg as useVirtualList,ad as useTitle,Pk as useStoreOrThrow,mo as useStore,zj as useStorage,Yp as useSlots,Bj as useSessionStorage,Zc as useSeoMeta,Rk as useRouteParams,Tk as useRouteParamOrThrow,Sk as useRouteParam,ad as usePageTitle,Af as useOptimistic,Vk as useMiddlewareValue,Uk as useMiddlewareState,Aj as useLocalStorage,On as useLoadingIndicator,Xc as useHead,Ng as useForm,_p as useAttrs,Ep as uploadFiles,Dp as uploadFile,Mk as updateInstance,yf as untrack,wh as unregisterDirective,Nk as unmountInstance,$a as unescapeHtml,Kn as typecheckStxFiles,fh as transpileTypeScript,Dq as translate,w as transitionDirective,$l as toUsers,_l as toUser,uo as thumbnail,vp as thumbHashToRGBA,wp as thumbHashToDataURL,Df as templateCache,vb as syncRecordedResponse,Sn as stxClientHelpers,xe as structuredDataDirective,Gq as stripLocalePrefix,pl as stripDocumentWrapper,pa as stripCommentsAndLiterals,Nm as stringToStream,Cc as strictCspPreset,Yd as streamingSuspenseDirective,ae as streamToResponse,Wd as streamTemplateSimple,Qd as streamTemplate,uj as stopHmrServer,Xl as stopBroadcasting,va as stateDirName,wa as stateDir,nf as state,gf as startsDocument,on as startProductionServer,bn as startInteractive,Wl as startBroadcasting,D as staggerDirective,Oo as srcsetUrls,E as springDirective,lc as splitByPipe,ll as spaNavVaryHeaders,In as sourcePathFor,Vo as smartBatchSign,ih as slotContentHasExpressions,To as signUrl,dh as shouldTranspileTypeScript,rj as shouldReloadOnChange,Yo as shouldRefreshSignature,sj as shouldIgnoreFile,og as shouldCacheComponent,yo as sharpen,Wq as shape,ua as setStateDir,Zk as setRouteParams,_k as setMiddlewareState,Sp as setGlobalProvide,zb as setErrorLocale,uk as setCurrentInstance,Di as setCachedVideoResult,si as setCachedImageResult,mi as setCached,Zq as serveStxFile,$q as serveMultipleStxFiles,mj as serveMarkdownFile,yn as serveFile,ar as serveApp,xn as serve,Yn as serializeState,Dm as serializeSetCookie,Ao as sepia,_c as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ti as scopeHTML,Si as scopeCSS,Ae as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,Eo as saturation,Ro as sanitizeParams,ec as sanitizeFilePath,fc as sanitizeExpression,gc as sanitizeDirectiveParams,dc as sanitizeDirectiveParam,hc as sanitizeComponentProps,Zb as safeExecuteAsync,Yb as safeExecute,qe as runPreProcessingMiddleware,re as runPostProcessingMiddleware,en as runPageAction,tf as runMountCallbacks,ba as runMiddleware,Kk as runHooks,wq as runDoctor,uf as runDestroyCallbacks,Fe as runComposers,Fo as rotate,Rg as rewriteImagesWithSiblings,wb as responseBindings,mh as resolveTemplatePath,c as resolveStxTargets,ej as resolveStxDirectories,Cq as resolveI18n,so as resize,Ha as resetPlaceholders,Wc as resetHead,Xn as resetHMRHandler,Mb as resetErrorConfig,Rq as required,La as replacePlaceholders,Lp as renderView,Mi as renderVideoComponent,za as renderVendorStyleTags,fq as renderToString,gq as renderToStream,hq as renderToDOM,up as renderThumbhashToCanvas,tq as renderTemplateString,rq as renderTemplate,sq as renderString,Td as renderStreamingPage,_g as renderSlot,eg as renderSSRSuspense,ep as renderProtectedVideo,dp as renderProtectedImg,So as renderMediaUpload,qq as renderMarkdownView,ul as renderLayoutTypes,wi as renderImgComponent,ik as renderImageComponent,cd as renderHtmlAttrs,bd as renderHead,Op as renderEmail,kh as renderComponentWithSlot,dd as renderBodyAttrs,ho as render,Ec as relaxedCspPreset,nd as registerValidationRule,_d as registerStreamingDirectives,oo as registerStoresClient,Xk as registerStore,ye as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,Bb as registerErrorMessages,sd as registerEnhancedValidationRule,th as registerDirective,Nc as registerCspDirectives,im as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,yk as ref,Vm as redirect,rb as recordResponseStatus,sb as recordResponseHeader,xa as rebaseOntoStateDir,tb as readResponseStatus,ub as readResponseHeaders,kj as readMarkdownFile,Ef as readFileCached,zk as reactive,Jo as quality,bp as pruneSignatureCache,pi as pruneCache,Qp as provide,pq as protectCodeBlocks,Qq as prop,Je as processVueTemplate,ug as processVirtualListDirectives,yg as processVirtualGridDirectives,Li as processVideo,qd as processValidateDirective,Od as processTranslateDirective,_f as processTransitionDirectives,bg as processTransitionAttributes,gd as processTitleDirective,jb as processTemplateBindings,Wf as processTeleportDirectives,cg as processSuspenseDirectives,te as processStructuredData,Ud as processStreamDirectives,xb as processStatusDirective,Lg as processStaticDirectives,oe as processStackReplacements,ne as processStackPushDirectives,$g as processSlots,nl as processShell,He as processServerBindings,ue as processSeoDirective,$d as processSectionDirectives,Me as processScopedStyles,hb as processReactiveBindings,fp as processProtectedMedia,Eg as processPartialHydrationDirectives,Qf as processOnceDirective,pe as processMiddleware,se as processMetaDirectives,hd as processMetaDirective,lj as processMarkdownFileDirectives,rh as processMarkdownDirectives,ie as processLoops,mg as processKeepAliveDirectives,Pf as processJsonDirective,xg as processInfiniteListDirectives,me as processIncludes,yi as processImgComponents,kk as processImageComponents,Zj as processImage,fd as processHeadDirective,jd as processForms,ld as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,md as processErrorDirective,Ke as processDynamicComponents,Sg as processDirectives,Bh as processDirectiveAttributes,Vf as processDeferDirectives,Sc as processCustomDirectives,Kc as processCspDirectives,Xq as processComponentProps,Ga as processClientScript,kd as processBasicFormDirectives,hg as processAsyncDirectives,Tc as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Dd as preloadTranslationsBackground,Cd as preloadTranslations,Nn as preloadIslandHandlers,ce as preloadIconCollection,Sl as poolStrings,cj as pluginManager,Zf as performLeave,Yf as performEnter,vf as pendingLifecycleCounts,zf as peek,je as partialsCache,Ni as parseVideoDirectiveOptions,qo as parseUrl,xp as parseThumbhashString,rc as parseSwitchBlock,Yg as parseSlots,Zg as parseSlotElement,wc as parseScriptDeclarations,_i as parseSFCComponent,gp as parseProtectedArgs,he as parseLoopBinding,xi as parseImgComponent,Ph as parseImageUrl,jk as parseImageComponent,cn as parseFormBody,tc as parseExpressionWithFilters,Sm as parseCookies,nm as parseContainerSelector,oc as parseConditionalBlock,uc as parseArguments,H as parseAnimationShorthand,Sq as optional,Tl as optimizeTemplate,pk as optimizeImage,qk as optimizeDirectory,Uq as oneOf,ke as onceStore,Hk as onUpdated,gb as onUpdate,Jk as onUnmounted,cl as onServer,Fk as onMounted,rf as onMount,Kg as onHydrated,Wp as onErrorCaptured,sf as onDestroy,sg as onDeactivated,bl as onClient,Gk as onBeforeUpdate,Ik as onBeforeUnmount,Ek as onBeforeMount,rg as onActivated,qp as observeElement,Wm as notFound,Re as normalizeCriticalHeadOrder,Vp as nextTick,lm as negotiateEncoding,P as navigateTo,Lk as mountInstance,z as motionDirective,Dc as moderateCspPreset,Rl as minifyHtml,we as metaDirective,$e as metaDedupKey,ro as mergeParams,bf as mergeHtmlAttrs,Yc as mergeHeadConfigs,Hc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,sh as markdownDirectiveHandler,jj as markdownCache,b as looksLikeGlob,Fq as localizePath,Ed as loadTranslationLazy,Kd as loadTranslation,fj as loadStxConfig,_ as loadMiddlewareFromDirectory,Fl as loadManifest,mp as loadElement,Yl as loadChannels,Lq as lintStxStrict,op as lazyLoadAll,np as lazyLoad,C as keyframeDirective,dq as jsxs,eq as jsxDEV,cq as jsx,Um as jsonResponse,Zd as islandDirective,Jb as isTest,ql as isSpaNavigation,jl as isSpaNavRequest,Wo as isSignatureValid,wf as isSignal,Xj as isSharpAvailable,Gm as isServerEnvironment,$k as isServer,Hb as isProduction,d as isPresentationalRole,jp as isNativeLazySupported,oq as isMarkdownPath,Ad as isLoading,Bd as isLoaded,ch as isJavaScriptScript,kp as isIntersectionObserverSupported,dk as isImageFile,Yj as isImageBackendAvailable,Md as isICUFormat,Jg as isHydrated,hh as isHydrateTrigger,pb as isHttpStatus,Fm as isEdgeEnvironment,Mq as isDirectiveKind,Ib as isDevelopment,xf as isDerived,qj as isCssOnlyChange,km as isCompressible,al as isClient,jg as isAsyncComponent,dn as isActionableMethod,Bo as invert,Gf as invalidateFileCacheByDir,Ff as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Vb as inlineError,Bq as injectThemeBootstrap,ve as injectSeoTags,yq as injectSeo,Of as injectRouterScript,pj as injectHotReload,fa as injectHeatmap,Ic as injectCspMetaTag,fb as injectCrosswindCSS,jf as injectConfigHeadTags,Qe as injectColorModeBootScript,df as injectCloakStyle,Xe as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Rp as inject,Wk as initStoreRegistry,Sj as initNetlify,Pn as initLoadingIndicator,lp as initLazyLoading,an as initFile,tp as initBlurUp,zp as initAllBlurUp,Ai as imgDirective,nk as imageDirective,mn as hydrateTemplateStream,ln as hydrateTemplate,Mn as hydrateIslands,Gg as hydrateIsland,nn as hydrateFragment,Hg as hydrateByStrategy,Ig as hydrateAll,eo as hydrate,wn as htmlResponse,ef as hoistLeadingHeadTags,Se as hoistColorModeBootScript,ga as heatmapDirective,ii as hashString,Nf as hashFilePath,gi as hashFile,hi as hashBuffer,Ie as hasVueTemplateSyntax,ge as hasVariables,jo as hasStore,Ma as hasPlaceholders,Qj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,hf as hasDocumentShell,Wg as hasDirectives,h as hasDOMSupport,gk as handleImageRequest,Xp as handleError,lq as h,ck as groupVariantsByFormat,zo as grayscale,pn as gitHash,Ll as getUnusedDirectives,Fd as getTranslationSync,yd as getTranslationCacheStats,Gd as getTranslationAsync,Nd as getTranslation,Lj as getTotalSize,Xo as getTimeUntilExpiry,Sf as getStoreScript,ko as getStoreNames,io as getStore,Ej as getStorageSize,Dj as getStorageKeys,nh as getSourceLineInfo,eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ui as getScopeAttribute,mf as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Ug as getPositionInfo,Ja as getPlaceholderRegistry,fi as getPlaceholderCacheStats,Vc as getPageMeta,yc as getNonce,ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,zd as getLoadingState,Id as getLoadingLocales,_j as getImageMetadata,co as getHydrationRuntime,Yk as getHydratedStoreState,tj as getHmrServer,Uc as getHead,Wn as getHMRHandler,Th as getFormatExtension,ki as getFileMtime,bk as getFallbackVariant,Db as getErrorMessage,Ab as getErrorLocale,Lb as getErrorConfig,Gb as getErrorCodeName,vh as getDirectives,uh as getDirective,vk as getCurrentInstance,Gc as getCspPreset,Pc as getCspHeaderName,cb as getCrosswindServeAsset,qh as getComponentCacheStats,Ci as getCachedVideoResult,$o as getCachedSignature,If as getCachedSignalsRuntime,Jf as getCachedRouterScript,di as getCachedPlaceholder,ri as getCachedImageResult,li as getCached,oi as getCacheStats,Ve as getBuildId,Vl as getBroadcastServer,Sh as getBestVariant,Qa as getAllFilters,Gh as generateWidthSrcset,vg as generateVirtualListCSS,Gp as generateVideoPreview,vd as generateValidationScript,Hp as generateUploadRuntime,Ml as generateTreeShakenBundle,ag as generateTransitionRuntime,$f as generateTransitionCSS,Gi as generateThumbnails,Yh as generateThumbhashPlaceholder,wm as generateTemplatesDocs,gg as generateSuspenseRuntime,fg as generateSuspenseCSS,Zn as generateStateScript,Qh as generateSrcsetData,vi as generateSrcset,$j as generateSrcSet,Hi as generateSpriteSheet,Pp as generateSpaShell,Rh as generateSourceTags,Mh as generateSizesFromBreakpoints,Lh as generateSizesAttribute,ak as generateSizes,ze as generateSitemapIndex,zq as generateSitemap,ip as generateSimpleMediaPicker,cp as generateSignatureRuntime,Cf as generateSignalsRuntimeDev,Bf as generateSignalsRuntime,Fa as generateServerDataBridge,Ri as generateScopeId,$i as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Be as generateRobotsTxt,Aq as generateRobots,ui as generateResponsiveVariants,Xi as generateReactiveWebComponentTS,Wi as generateReactiveWebComponent,Zi as generateReactiveRuntime,Yi as generateReactiveMixin,Fi as generatePoster,ci as generatePlaceholderStyle,bi as generatePlaceholderCSS,Xh as generatePlaceholder,Fg as generatePartialHydrationCSS,xc as generateNonce,Mj as generateNetlifyToml,Jp as generateMinifiedMediaRuntime,Ip as generateMediaRuntime,hp as generateMediaManagerEmbed,Dl as generateManifest,Rn as generateLoadingIndicatorHtml,sp as generateLazyLoadRuntime,vl as generateLayoutTypes,_h as generateLQIP,qg as generateKeepAliveRuntime,pg as generateKeepAliveCSS,Mg as generateIslandManifest,Fp as generateImagePreview,rk as generateImageManifest,bo as generateHydrationScript,be as generateHydrationRuntime,fo as generateHydrationCSS,zg as generateHydrationBootstrap,oj as generateHotReloadScript,ea as generateHeatmapScript,Un as generateHMRClientScript,Ii as generateHLSManifest,_n as generateEventBindings,Kh as generateDprSrcsetWithVariableQuality,Jh as generateDprSrcset,ff as generateDocumentShell,Bm as generateDocs,xm as generateDirectivesDocs,Ah as generateDirectiveRuntime,Ce as generateDefaultRobotsTxt,Ji as generateDASHManifest,Bc as generateCspMetaTag,Ac as generateCspHeader,eb as generateCrosswindCSS,aq as generateCompositionRuntime,vm as generateComponentsDocs,Ag as generateComponentManifest,tm as generateComponentDoc,ai as generateColorPlaceholder,Pe as generateColorModeBootScript,Ok as generateClientRuntime,ji as generateCacheKey,Da as generateBrowserAutoImportDestructuring,Ap as generateBlurUpRuntime,Bp as generateBlurUpCSS,ib as generateBindingsRuntime,Hh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,lg as generateAsyncComponentRuntime,kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,Ln as formatTypecheckDiagnostics,Fn as formatTypeErrors,Zm as formatStxContent,Kj as formatSize,O as formatRoutes,_m as formatMarkdownContent,Eb as formatLocalizedError,Ld as formatICU,Nb as formatFilePath,Ub as formatError,xq as formatDoctorReport,ym as formatDocsAsMarkdown,Am as formatDocsAsJson,zm as formatDocsAsHtml,Io as format,Ql as foldConstants,Ho as flipVertical,Go as flipHorizontal,wl as fingerprint,Jn as findRuntimeTypeDeclarations,vq as findPantryPackage,nc as findMatchingEndTag,jc as findMatchingDelimiter,oa as findInterpolationEnd,pc as findIfBlocks,sc as findExpressions,N as findErrorPage,qc as findDirectiveBlocks,Nl as findDeadCode,Nl as findDeadBranches,om as findContainerRegion,um as findComponentFiles,_q as findCommonDir,Jj as filterRequiredFiles,lh as fileExists,de as extractVariables,Bl as extractTemplateExpressions,Vd as extractStreamBoundaries,$n as extractState,ah as extractSlotContent,fe as extractScriptFromTemplate,Al as extractScriptBlocks,Ka as extractPlaceholders,mc as extractParenthesizedExpression,qb as extractPageResponseStatus,ca as extractLayoutMetadata,$h as extractDominantColor,vc as extractDirectiveParams,Xg as extractDirectiveNames,rl as extractContainerContent,rm as extractComponentProps,Bg as extractComponentName,sm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,Cg as extractBoundProps,kc as extractBalancedExpression,ya as extractAndStripCssImports,Vi as extractAndScopeStyles,la as extractAndProcessEvents,xj as externalizeSharedAssets,yj as externalizeRepeatedAssets,wj as externalizeHtml,_a as evaluateExpression,Pl as evaluateConstant,yb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,_b as errorRecovery,ac as errorLogger,Xf as ensureTeleportTargets,kf as ensureDocumentShell,rd as enhancedValidationRules,pm as enableDevTools,Ol as eliminateDeadCode,pf as effect,Po as dprUrls,Cm as docsCommand,tl as discoverLayoutNames,rp as disconnectObserver,qm as disableDevTools,bc as devHelpers,ml as detectShell,Em as detectRuntime,Nj as detectProjectConfig,Uh as detectFormat,Il as detectBuildMode,of as derived,Rj as deploy,hj as defineStxConfig,no as defineStore,Zp as defineSlots,Kq as defineSiteConfig,Oq as definePropsWithValidation,Nq as defineProps,bj as definePlugin,$c as definePageMeta,R as defineMiddleware,Og as defineForm,Up as defineExpose,Tp as defineEmits,xh as defineDirective,nq as defineCustomElement,kn as defineConfig,yh as defineClientDirective,ig as defineAsyncComponent,Kp as defaultMediaConfig,tk as defaultImageConfig,wd as defaultI18nConfig,da as defaultHeatmapConfig,id as defaultFormClasses,Na as defaultFilters,Rc as defaultCspConfig,dj as defaultConfig,Yq as default,ab as deepMergeThemes,Le as dedupeScopedStyles,Zh as decodeThumbhash,Mc as cspNonceDirective,Lc as cspDirective,yp as crossfadeTransition,to as crop,tg as createVirtualList,Oi as createVideoDirective,Qm as createVercelHandler,Cn as createTypeChecker,Pd as createTranslateFilter,Mm as createTextEncoderStream,mq as createStxApp,Lm as createStreamingResponse,Xd as createStreamRenderer,lo as createStore,U as createStorageManager,S as createServerCookieManager,xk as createScope,dg as createSSRSuspense,lf as createRouter,$ as createRouteLocation,An as createRoute,yk as createRef,zk as createReactive,$p as createProvideContext,rn as createProject,jn as createProductionBuild,Ia as createPlaceholder,Ul as createOptimizedBuild,Rm as createNetlifyHandler,Fj as createNetlifyClient,aa as createMiddlewareContext,zn as createMiddleware,pp as createLazyObserver,ng as createKeepAliveCache,Im as createKVNamespace,Dg as createIslandRegistry,zi as createImgDirective,ok as createImagePlugin,hk as createImageHandler,mk as createImageDirective,ia as createHeatmapAggregator,Ij as createFileManifest,Hm as createEnvAccessor,Xb as createEnhancedError,Km as createEdgeHandler,Jm as createEdgeCache,oh as createDetailedErrorMessage,Pm as createDenoHandler,Oj as createDefaultNetlifyConfig,Qc as createCspHeaders,Tm as createCookie,Ak as createComputed,wk as createComponentInstance,Om as createCloudflareHandler,T as createClientCookieManager,zh as createBuiltinDirectives,mq as createApp,F as createAnimationTimeline,wo as cover,ee as convertToCommonJS,Do as contrast,vo as contain,Wb as consoleError,Kb as configureErrorHandling,gj as config,Ak as computed,mm as compressResponse,Ee as composerPattern,De as composer,ol as composeShellWithPage,hm as componentDirective,jh as componentClientSignalNames,Cl as compileTemplate,a as collectRepeatedFlag,Hj as collectDeployFiles,Ei as clearVideoCache,xd as clearTranslationCache,Tf as clearStoreCache,Cj as clearStorage,ap as clearSignatureCache,ei as clearPlaceholderCache,le as clearOnceStore,zc as clearNonce,Y as clearMiddleware,lk as clearImageCache,Cb as clearErrorMessages,Kf as clearDevCaches,Ra as clearCustomFilters,Ge as clearComposers,Uf as clearComposableCache,ph as clearComponentCache,ni as clearCache,Qn as cleanupLoadingIndicator,fl as classifyScript,gl as classifyAllScripts,Dn as checkTemplateFile,En as checkTemplate,Lf as checkCache,Zo as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,cm as channel,Ym as captureScreenshots,Xm as captureScreenshot,Jd as cancelPendingLoads,Gj as calculateSha1,Ih as calculateOptimalWidths,Mf as cacheTemplate,Qi as buildWebComponents,Gn as buildVirtualSource,Mp as buildViews,po as buildUrl,Rd as buildSuspenseResolveScript,Jq as buildStaticSite,xl as buildRuntimeAsset,yl as buildRouterAsset,Iq as buildLangPickerScript,Oh as buildImageUrl,af as buildHtmlAttrs,Gl as buildForProduction,jm as buildComponentLibrary,_o as buildAuthParams,Hl as buildApp,Hq as buildAlternateLinks,hn as build,am as broadcastPrivate,bm as broadcastPresence,Zl as broadcast,Co as brightness,xo as blur,Uo as batchSignUrls,qf as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,Ko as auto,e as attributeValue,zl as assetTags,ja as asInvocableStatement,Vq as arrayOf,Eq as applyTranslations,ti as applyTransformations,bh as applySlots,gm as applyPropDefaults,No as applyPreset,cf as applyHtmlAttrs,ed as applyHead,Za as applyFilters,kl as appendVary,Fc as apiCspPreset,y as animationGroupDirective,Ki as analyzeVideo,Kl as analyzeUsage,dl as analyzeTemplate,el as analyzeProject,Kl as analyzeDirectiveUsage,mb as analyticsDirective,un as addStore,tn as addPage,Jc as addNonceToInlineContent,vn as addLayout,sn as addComponent,fn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Hf as __setSignalsGeneratorsForTest,We as __setBuildIdForTest,Bi as VideoProcessorCache,Pg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,ic as Tokenizer,Bn as TemplateTypeChecker,$m as TEMPLATE_PRESETS,Tb as StxValidationError,Pb as StxSyntaxError,Rb as StxSecurityError,Qb as StxRuntimeError,Sb as StxFileError,Ob as StxError,iq as Show,Sd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,hl as SPA_NAV_HEADER,nb as RESPONSE_STATUS_KEY,ob as RESPONSE_HEADERS_KEY,gn as ProductionBuild,kq as Portal,qn as PROJECT_TEMPLATES,Mo as PRESETS,go as MemorySessionStore,Fh as MIME_TYPES,Ch as MEDIA_DEFAULT_WIDTHS,Eh as MEDIA_DEFAULT_FORMATS,sl as LAYOUT_TYPES_FILE,qi as ImageProcessorCache,fk as ImageProcessingError,ao as HydrationRuntime,nj as HotReloadServer,ha as HeatmapAggregator,_e as HTML_CLASS_MARKER,Ze as HTML_ATTRS_MARKER,bq as Fragment,jq as For,il as FRAGMENT_CACHE_CONTROL,$b as ErrorLogger,Fb as ErrorCodes,vj as EXTERNALIZED_ASSET_DIR,Tj as DeployError,Uj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Wj as DEFAULT_QUALITY,Vh as DEFAULT_PLACEHOLDER_OPTIONS,Vj as DEFAULT_FORMATS,Dh as DEFAULT_DPR_VALUES,Tn as ComponentHMRHandler,Nh as COMMON_SIZES,Ne as COLOR_MODE_BOOT_MARKER,Oe as COLOR_MODE_BOOT_GLOBAL,Ye as CLOAK_STYLE,em as BroadcastServer,dm as Broadcast,Te as BUILD_ID_META,Ue as BUILD_ID_HEADER,Wh as BLUR_UP_CSS,uq as $path};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import C from"path";var G=".stx",K="STX_DIR",J=null;function O(j){J=j?.trim()||null}function H(){return process.env[K]?.trim()||J||G}function Q(j=process.cwd(),...q){let B=H();return C.isAbsolute(B)?C.join(B,...q):C.join(j,B,...q)}function W(j){if(!j||C.isAbsolute(j))return j;let q=j.replace(/\\/g,"/");if(q!==G&&!q.startsWith(`${G}/`))return j;let B=q.slice(G.length+1);return B?C.join(H(),B):H()}
|
|
3
|
-
export{G as
|
|
3
|
+
export{G as Xs,K as Ys,O as Zs,H as _s,Q as $s,W as at};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ph as a,qh as b,rh as c,sh as d,th as e,uh as f,vh as g,wh as h,xh as i}from"./chunk-bz9z4pfr.js";import"./chunk-jw1besrt.js";import"./chunk-8rn5e39c.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{Broadcast as D,BroadcastServer as U}from"ts-broadcasting";import{channel as b}from"ts-broadcasting";import{Broadcast as N,BroadcastServer as p}from"ts-broadcasting";var z=null,H=[];function X(){return z}async function Y(j){if(z)return z;let k=j.driver??"bun",q=j.host??"0.0.0.0",G=j.port??6001,J=j.scheme??"ws",E={verbose:j.verbose??!1,driver:k,default:k,connections:{[k]:{driver:k,host:q,port:G,scheme:J}}};return z=new U(E),D.setServer(z),await z.start(),z}async function Z(){for(let j of H)clearInterval(j);if(H.length=0,!z)return;await z.stop(),z=null}async function $(j){let k=await import(j),q=k.default??k;if(typeof q!=="function")throw Error(`routes/channels.ts must export a default function, got ${typeof q}`);let G=0;return q({channel(E,A){if(G++,A.authorize&&z)z.channels.channel(E,A.authorize);if(A.interval&&A.data){let L=A.event??`${E}.updated`,M=A.data,Q=setInterval(async()=>{try{let T=await M();V(E,L,T)}catch{}},A.interval);H.push(Q)}}}),G}var K=!1;function F(){if(z)return!0;if(!K)K=!0,console.warn("[stx] broadcast() called before server started \u2014 messages will be sent once broadcasting is ready");return!1}function V(j,k,q){if(!F())return;D.send(j,k,q)}function x(j,k,q){if(!F())return;D.toUser(j,k,q)}function C(j,k,q){if(!F())return;D.toUsers(j,k,q)}function S(j,k,q){if(!F())return;D.send(`private-${j}`,k,q)}function w(j,k,q){if(!F())return;D.presence(j,k,q)}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as Yg,Y as Zg,Z as _g,$ as $g,V as ah,x as bh,C as ch,S as dh,w as eh,b as fh,N as gh,p as hh};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{defineProperty:e,getOwnPropertyNames:g,getOwnPropertyDescriptor:h}=Object,i=Object.prototype.hasOwnProperty;function j(a){return this[a]}var m=(a)=>{var b=(f??=new WeakMap).get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of g(a))if(!i.call(b,d))e(b,d,{get:j.bind(a,d),enumerable:!(c=h(a,d))||c.enumerable})}return f.set(a,b),b},f;var k=(a)=>a;function l(a,b){this[a]=k.bind(null,b)}var n=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:l.bind(b,c)})};var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var p=import.meta.require;
|
|
3
|
-
export{m as
|
|
3
|
+
export{m as uu,n as vu,o as wu,p as xu};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{qf as a}from"./chunk-5fz9n4wq.js";import"./chunk-a4329ma8.js";import"./chunk-pzcf36xm.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-qfsktf7s.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kdpy5rgk.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{a as startProductionServer};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{fq as T,hm as E,im as M}from"./chunk-pzcf36xm.js";import{ku as d,mu as c,nu as i}from"./chunk-kdpy5rgk.js";import{uu as m,xu as p}from"./chunk-8rn5e39c.js";var y=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function f(z,Q,F){let J={fullTag:F,content:Q,attrs:z};if(/\bserver\b/.test(z))return{...J,type:"server"};if(/\bdata-stx-scoped\b/.test(z))return{...J,type:"client"};if(y.test(Q))return{...J,type:"signals"};if(/\bclient\b/.test(z)||/\btype\s*=\s*["']module["']/.test(z)||/\bsrc\s*=/.test(z))return{...J,type:"client"};return{...J,type:"server"}}var g=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function P(z){let Q=[],F=[],J=[],$=0;while($<z.length){let Y=z.indexOf("<",$);if(Y===-1)break;let K=M(z,Y);if(K>Y){$=K;continue}let Z=E(z,Y);if(Z>Y){let B=z.slice(Y,Z),U=g.exec(B);if(U){let X=f(U[1],U[2],B);switch(X.type){case"signals":Q.push(X);break;case"client":F.push(X);break;case"server":J.push(X);break}}$=Z;continue}$=Y+(z.startsWith("<!--",Y)?4:1)}return{signals:Q,client:F,server:J}}var s="X-STX-Router",a="private, no-store";function R(z){return z.headers.get("X-STX-Router")==="true"}function u(z,Q){if(!z)return Q;return z.split(",").some((J)=>J.trim().toLowerCase()===Q.toLowerCase())?z:`${z}, ${Q}`}function t(z){return{Vary:u(z,"X-STX-Router")}}import L from"path";d();var h="stx-page-head:",o=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,I=null;function r(){if(I!==null)return I;try{let{getRouterScript:z}=(i(),m(c));I=`<script>${z()}</script>`}catch{I=""}return I}async function Yz(z,Q){if(Q===!1)return null;if(Q&&typeof Q==="string"){let J=L.resolve(z,Q);if(await Bun.file(J).exists())return J;return null}let F=L.join(z,"app.stx");if(await Bun.file(F).exists())return F;return null}async function Zz(z,Q){try{let F=await Bun.file(z).text(),J=F,$=F.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)J=$[1].trim();let Y=P(F),K=[...Y.client.map((j)=>j.fullTag),...Y.signals.map((j)=>j.fullTag)],Z=[],B=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,U;while((U=B.exec(F))!==null)Z.push(U[0]);let X=J;for(let j of Y.server)X=X.replace(j.fullTag,"");for(let j of Y.client)X=X.replace(j.fullTag,"");X=X.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let W="<!--__STX_PAGE_SLOT__-->";if(X=X.replace(/<slot\s*\/>/gi,W).replace(/<slot\s*>\s*<\/slot>/gi,W),!X.includes(W))return console.warn(`[stx] Shell ${z} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:q,extractVariables:k,defaultConfig:v,loadStxConfig:H}=await import("./chunk-7x3nd6r4.js"),w=await H(),A={__filename:z,__dirname:L.dirname(z)};for(let j of K){let N=j.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(N&&!j.includes("client")&&!j.includes('type="module"'))await k(N[1],A,z)}let V=await q(X,A,z,{...v,...w,...Q},new Set),G=V.indexOf(W);if(G===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:V.substring(0,G),afterSlot:V.substring(G+W.length),filePath:z,shellScripts:K,shellStyles:Z}}catch(F){return console.error(`[stx] Error processing shell ${z}:`,F),null}}function $z(z,Q,F){let J,$="",Y=Q.match(o);if(Y){Q=Q.replace(Y[0],"");try{let X=Buffer.from(Y[1],"base64").toString("utf8"),W=X.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(W)J=W[1].trim();$=X.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let K=F||J||"stx App",Z=r(),B="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>${K}</title>
|
|
8
|
+
${$?` ${$}
|
|
9
|
+
`:""} ${z.shellStyles.join(`
|
|
10
|
+
`)}
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
${z.beforeSlot}
|
|
14
|
+
<div data-stx-content>${Q}</div>
|
|
15
|
+
${z.afterSlot}
|
|
16
|
+
${z.shellScripts.filter((X)=>!X.includes("server")).join(`
|
|
17
|
+
`)}
|
|
18
|
+
${B}
|
|
19
|
+
${Z}
|
|
20
|
+
</body>
|
|
21
|
+
</html>`}function x(z,Q={}){let F=z.trim();if(!T(F))return z;let J=[],$=F.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if($){let B=$[1],U=/<style\b[^>]*>[\s\S]*?<\/style>/gi,X;while((X=U.exec(B))!==null)J.push(X[0])}if(Q.preserveHead&&$){let B=[],U=/<title\b[^>]*>[\s\S]*?<\/title>|<meta\b[^>]*>|<link\b[^>]*>/gi,X;while((X=U.exec($[1]))!==null){if(/<meta\b[^>]*(?:\bcharset|name="viewport")/i.test(X[0]))continue;B.push(X[0])}if(B.length>0)J.unshift(`<!--${h}${Buffer.from(B.join(`
|
|
22
|
+
`),"utf8").toString("base64")}-->`)}let Y=F.match(/<body\b[^>]*>/i),K=F.lastIndexOf("</body>");if(Y&&K!==-1){let B=Y.index+Y[0].length,U=F.slice(B,K).trim();if(J.length>0)return J.join(`
|
|
23
|
+
`)+`
|
|
24
|
+
`+U;return U}let Z=F;if(Z=Z.replace(/<!DOCTYPE\b[^>]*>/i,""),Z=Z.replace(/<html\b[^>]*>/i,""),Z=Z.replace(/<\/html\s*>/i,""),$)Z=Z.replace(/<head\b[^>]*>[\s\S]*?<\/head>/i,J.join(`
|
|
25
|
+
`));return Z=Z.replace(/<body\b[^>]*>/i,""),Z=Z.replace(/<\/body\s*>/i,""),Z.trim()}function jz(z){return R(z)}function Bz(z,Q="main"){let F=z.trim(),J=[],$=[],Y=F.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if(Y){let G=Y[1],j=/<style\b[^>]*>[\s\S]*?<\/style>/gi,N;while((N=j.exec(G))!==null)J.push(N[0]);let _=/<script\b[^>]*data-stx-route-params[^>]*>[\s\S]*?<\/script>/gi;while((N=_.exec(G))!==null)$.push(N[0])}let K=Q.replace(/^[.#]/,"").toLowerCase(),Z=new RegExp(`<${K}\\b[^>]*>`,"i"),B=F.match(Z);if(!B||B.index===void 0)return x(z);let U=B.index+B[0].length,X=new RegExp(`<${K}\\b[^>]*>`,"gi"),W=new RegExp(`</${K}\\s*>`,"gi");X.lastIndex=U,W.lastIndex=U;let q=1,k=-1;while(q>0){let G=X.exec(F),j=W.exec(F);if(!j)break;if(G&&G.index<j.index)q++,W.lastIndex=G.index+G[0].length;else if(q--,k=j.index,q>0)X.lastIndex=j.index+j[0].length}if(k===-1)return x(z);let v=F.slice(U,k).trim(),H=[],w=F.match(/<body\b[^>]*>/i),A=F.lastIndexOf("</body>");if(w&&w.index!==void 0&&A!==-1){let j=[[w.index+w[0].length,B.index],[k+`</${K}>`.length,A]],N=/<script\b[^>]*>[\s\S]*?<\/script>/gi;for(let[_,O]of j){if(_>=O)continue;let S=F.slice(_,O),b;N.lastIndex=0;while((b=N.exec(S))!==null)H.push(b[0])}}let V=[];if(J.length>0)V.push(J.join(`
|
|
26
|
+
`));if($.length>0)V.push($.join(`
|
|
27
|
+
`));if(H.length>0)V.push(H.join(`
|
|
28
|
+
`));return V.push(v),V.join(`
|
|
29
|
+
`)}import D from"fs";import C from"path";function Nz(z,Q,F){return{version:1,buildTime:new Date().toISOString(),routes:z,assets:Q,outputDir:F}}function Vz(z,Q){let F=C.join(Q,"manifest.json");D.writeFileSync(F,JSON.stringify(z,null,2))}function qz(z){let Q=C.join(z,"manifest.json");if(!D.existsSync(Q))return null;try{let F=D.readFileSync(Q,"utf-8"),J=JSON.parse(F);if(J.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${J.version}`),null;return J}catch(F){return console.warn("[stx] Failed to load manifest:",F),null}}
|
|
30
|
+
export{f as Ig,P as Jg,s as Kg,a as Lg,R as Mg,u as Ng,t as Og,Yz as Pg,Zz as Qg,$z as Rg,x as Sg,jz as Tg,Bz as Ug,Nz as Vg,Vz as Wg,qz as Xg};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Jj as _}from"./chunk-k6b7gpk2.js";function Y(q,z){let B={};for(let C of q)B[C]=_(z(C));return new Proxy({},{get:(C,G)=>B[G]?.(),set:(C,G,L)=>{if(B[G])B[G].set(L);else B[G]=_(L);return!0},has:(C,G)=>(G in B),deleteProperty:(C,G)=>{return delete B[G],!0},ownKeys:()=>Reflect.ownKeys(B),getOwnPropertyDescriptor:(C,G)=>(G in B)?{enumerable:!0,configurable:!0,writable:!0,value:B[G]()}:void 0})}function T(q,z){let B={};for(let C of z)B[C]=q[C];return B}function $(q,z){let B=Object.keys(q),C=Y(B,(I)=>z?.[I]??q[I].getDefaultValue()),G=Y(B,()=>[]),L=Y(B,()=>!1),W=Y(B,()=>!1),X=Y(B,()=>!1),J=_(!1);async function M(I){X[I]=!0;let Q=await q[I].validate(C[I],C);return G[I]=Q,X[I]=!1,Q.length===0}async function O(){J.set(!0);let I=await Promise.all(B.map(M));return J.set(!1),I.every(Boolean)}function j(){for(let I of B)C[I]=z?.[I]??q[I].getDefaultValue(),G[I]=[],L[I]=!1,W[I]=!1}function A(I){for(let Q of B)if(Q in I)C[Q]=I[Q],W[Q]=!0}function H(I,Q){C[I]=Q,W[I]=!0}function K(I,Q=!0){if(L[I]=Q,Q)M(I)}function U(I){return{value:C[I],errors:G[I],touched:L[I],dirty:W[I],valid:G[I].length===0,validating:X[I]}}function k(I){return async(Q)=>{Q?.preventDefault?.();for(let N of B)L[N]=!0;if(await O())await I(T(C,B))}}return{values:C,errors:G,touched:L,dirty:W,get isValid(){return B.every((I)=>G[I].length===0)},get isValidating(){return J()||B.some((I)=>X[I])},get isDirty(){return B.some((I)=>W[I])},validate:O,validateField:M,reset:j,setValues:A,setFieldValue:H,setFieldTouched:K,getFieldState:U,handleSubmit:k}}var E=$;class Z{rules=[];defaultValue="";addRule(q){let z=new Z;return z.rules=[...this.rules,q],z.defaultValue=this.defaultValue,z}required(q="This field is required"){return this.addRule({name:"required",message:q,validate:(z)=>{if(z===null||z===void 0)return q;if(typeof z==="string"&&z.trim()==="")return q;if(Array.isArray(z)&&z.length===0)return q;return!0}})}email(q="Please enter a valid email"){return this.addRule({name:"email",message:q,validate:(z)=>{if(!z)return!0;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(z))||q}})}url(q="Please enter a valid URL"){return this.addRule({name:"url",message:q,validate:(z)=>{if(!z)return!0;try{return new URL(String(z)),!0}catch{return q}}})}min(q,z){let B=z||`Must be at least ${q} characters`;return this.addRule({name:"min",message:B,validate:(C)=>{if(!C)return!0;return String(C).length>=q||B}})}max(q,z){let B=z||`Must be no more than ${q} characters`;return this.addRule({name:"max",message:B,validate:(C)=>{if(!C)return!0;return String(C).length<=q||B}})}length(q,z,B){let C=B||`Must be between ${q} and ${z} characters`;return this.addRule({name:"length",message:C,validate:(G)=>{if(!G)return!0;let L=String(G).length;return L>=q&&L<=z||C}})}pattern(q,z="Invalid format"){return this.addRule({name:"pattern",message:z,validate:(B)=>{if(!B)return!0;return q.test(String(B))||z}})}hasUppercase(q="Must contain an uppercase letter"){return this.pattern(/[A-Z]/,q)}hasLowercase(q="Must contain a lowercase letter"){return this.pattern(/[a-z]/,q)}hasNumber(q="Must contain a number"){return this.pattern(/\d/,q)}hasSpecial(q="Must contain a special character"){return this.pattern(/[!@#$%^&*(),.?":{}|<>]/,q)}alphanumeric(q="Only letters and numbers allowed"){return this.pattern(/^[a-zA-Z0-9]+$/,q)}startsWithLetter(q="Must start with a letter"){return this.pattern(/^[a-zA-Z]/,q)}noSpaces(q="Spaces are not allowed"){return this.addRule({name:"noSpaces",message:q,validate:(z)=>{if(!z)return!0;return!String(z).includes(" ")||q}})}number(q="Must be a number"){let z=this.addRule({name:"number",message:q,validate:(B)=>{if(!B&&B!==0)return!0;return!Number.isNaN(Number(B))||q}});return z.defaultValue=0,z}integer(q="Must be a whole number"){return this.addRule({name:"integer",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number.isInteger(Number(z))||q}})}positive(q="Must be a positive number"){return this.addRule({name:"positive",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number(z)>0||q}})}negative(q="Must be a negative number"){return this.addRule({name:"negative",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number(z)<0||q}})}minValue(q,z){let B=z||`Must be at least ${q}`;return this.addRule({name:"minValue",message:B,validate:(C)=>{if(!C&&C!==0)return!0;return Number(C)>=q||B}})}maxValue(q,z){let B=z||`Must be no more than ${q}`;return this.addRule({name:"maxValue",message:B,validate:(C)=>{if(!C&&C!==0)return!0;return Number(C)<=q||B}})}between(q,z,B){let C=B||`Must be between ${q} and ${z}`;return this.addRule({name:"between",message:C,validate:(G)=>{if(!G&&G!==0)return!0;let L=Number(G);return L>=q&&L<=z||C}})}matches(q,z){let B=z||`Must match ${q}`;return this.addRule({name:"matches",message:B,validate:(C,G)=>{if(!G)return!0;return C===G[q]||B}})}oneOf(q,z){let B=z||`Must be one of: ${q.join(", ")}`;return this.addRule({name:"oneOf",message:B,validate:(C)=>{if(!C)return!0;return q.includes(C)||B}})}notOneOf(q,z){let B=z||`Cannot be one of: ${q.join(", ")}`;return this.addRule({name:"notOneOf",message:B,validate:(C)=>{if(!C)return!0;return!q.includes(C)||B}})}date(q="Must be a valid date"){return this.addRule({name:"date",message:q,validate:(z)=>{if(!z)return!0;let B=new Date(String(z));return!Number.isNaN(B.getTime())||q}})}before(q,z){let B=new Date(q),C=z||`Must be before ${B.toLocaleDateString()}`;return this.addRule({name:"before",message:C,validate:(G)=>{if(!G)return!0;return new Date(String(G))<B||C}})}after(q,z){let B=new Date(q),C=z||`Must be after ${B.toLocaleDateString()}`;return this.addRule({name:"after",message:C,validate:(G)=>{if(!G)return!0;return new Date(String(G))>B||C}})}custom(q,z="Invalid value"){return this.addRule({name:"custom",message:z,validate:q})}async(q,z="Invalid value"){return this.addRule({name:"async",message:z,async:!0,validate:q})}when(q,z){let B=new Z;B.rules=[...this.rules],B.defaultValue=this.defaultValue;for(let C of z.getRules())B.rules.push({...C,validate:(G,L)=>{if(!q(G,L||{}))return!0;return C.validate(G,L)}});return B}getRules(){return this.rules}getDefaultValue(){return this.defaultValue}default(q){let z=new Z;return z.rules=[...this.rules],z.defaultValue=q,z}async validate(q,z){let B=[];for(let C of this.rules){let G=await C.validate(q,z);if(G!==!0)B.push(G)}return B}validateSync(q,z){let B=[];for(let C of this.rules){if(C.async)continue;let G=C.validate(q,z);if(G!==!0)B.push(G)}return B}}var y=new Z;function w(q,z,B){let C=/@error\s*\(\s*([^)]+)\s*\)([\s\S]*?)@enderror/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return M.map((O)=>{return W.replace(/\{\{\s*message\s*\}\}/g,O)}).join(`
|
|
3
3
|
`)}catch{return""}})}function D(q,z,B){let C=/@errors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@enderrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return M.map((O)=>W.replace(/\{\{\s*message\s*\}\}/g,O)).join(`
|
|
4
|
-
`)}catch{return""}})}function S(q,z,B){let C=/@hasErrors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@endhasErrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return W}catch{return""}})}function V(q,z,B){let C=q;return C=w(C,z,B),C=D(C,z,B),C=S(C,z,B),C}export{$ as
|
|
4
|
+
`)}catch{return""}})}function S(q,z,B){let C=/@hasErrors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@endhasErrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return W}catch{return""}})}function V(q,z,B){let C=q;return C=w(C,z,B),C=D(C,z,B),C=S(C,z,B),C}export{$ as Fi,E as Gi,Z as Hi,y as Ii,w as Ji,D as Ki,S as Li,V as Mi};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Jj as K,Kj as N,Lj as O,Mj as P,Nj as Q,Oj as T,Sj as U,Tj as V,Uj as W,Vj as Y}from"./chunk-k6b7gpk2.js";import{Bt as J}from"./chunk-ry86fd41.js";function $(){let w=q(Z());try{let z=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(w);return z=z.replace(/\}(var |let |const |function )/g,"};$1"),z}catch{return w}}function q(w){let E=[],z=0,I="console.log(";while(z<w.length){let F=w.indexOf(I,z);if(F===-1){E.push(w.slice(z));break}E.push(w.slice(z,F));let G=1,x=F+I.length;while(x<w.length&&G>0){let B=w[x];if(B==='"'||B==="'"||B==="`"){let _=B;x++;while(x<w.length&&w[x]!==_){if(w[x]==="\\")x++;x++}x++;continue}if(B==="(")G++;else if(B===")")G--;x++}E.push("0"),z=x}return E.join("")}function Z(){return`
|
|
3
3
|
// STX Signals Runtime (Development Build)
|
|
4
4
|
console.log('[stx] signals runtime loading');
|
|
5
5
|
// Pre-initialization shim: capture onMount/onDestroy calls made before the runtime IIFE runs
|
|
@@ -7995,4 +7995,4 @@ catch (e) { console.warn('[stx] destroy callback error:', e); }
|
|
|
7995
7995
|
}
|
|
7996
7996
|
})();
|
|
7997
7997
|
`}var C={state:K,derived:N,effect:O,batch:P,onMount:Q,onDestroy:T,isSignal:U,isDerived:V,untrack:W,peek:Y,generateSignalsRuntime:$,generateSignalsRuntimeDev:Z};
|
|
7998
|
-
export{$ as
|
|
7998
|
+
export{$ as Bj,Z as Cj,C as Dj};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Cg as t,Dg as e,Eg as HH,Fg as KH,Gg as QH,Hg as YH,xg as S,yg as s,zg as i}from"./chunk-ydk1n77q.js";import{_i as a}from"./chunk-4wdbmjmg.js";import{$s as h}from"./chunk-80qre9zp.js";import{tt as f}from"./chunk-ry86fd41.js";import{existsSync as ZH,readFileSync as XH}from"fs";import J from"path";function qH(K,Q="",V=""){let U=K.startLine>1?`
|
|
3
3
|
`.repeat(K.startLine-1):"",E=i(s(K.code)),X=K.kind==="client"||K.kind==="plain"?e(Q,K.code):"";return KH(`${U+E}
|
|
4
4
|
${X}
|
|
5
5
|
export {}
|
|
@@ -15,4 +15,4 @@ ${b.trim().split(`
|
|
|
15
15
|
`).slice(0,12).join(`
|
|
16
16
|
`)||"(no output)"}`:void 0;return{diagnostics:D,checkedFiles:q,blockCount:B,expressionCount:T,failure:VH}}function PH(K){return K.map((Q)=>{let V=Q.blockKind==="template"?`[template: ${Q.expression??""}]`:`[${Q.blockKind==="plain"?"<script>":`<script ${Q.blockKind}>`}]`;return`${Q.file}:${Q.line}:${Q.column} ${Q.category} TS${Q.code} ${Q.message} ${V}`}).join(`
|
|
17
17
|
`)}
|
|
18
|
-
export{qH as
|
|
18
|
+
export{qH as Xe,r as Ye,wH as Ze,MH as _e,TH as $e,PH as af};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{existsSync as U,statSync as V}from"fs";import z from"path";var W=/[*?[\]{}]/;function X(D){return W.test(D)}async function $(D,E={}){let H=E.cwd??process.cwd(),N=E.recursive!==!1,Q=E.ignorePaths??[],J=globalThis.Bun.Glob,K=new Set,F=(j)=>{if(j.includes(`${z.sep}node_modules${z.sep}`)||j.includes(`${z.sep}dist${z.sep}`))return;if(Q.some((q)=>q&&j.includes(z.normalize(q))))return;K.add(j)},R=async(j)=>{try{for await(let q of new J(j).scan({cwd:H,absolute:!0}))F(q)}catch{}};for(let j of D){if(!j)continue;if(X(j)){await R(j);continue}let q=z.resolve(H,j);if(!U(q))continue;if(V(q).isDirectory()){for await(let T of new J(N?"**/*.stx":"*.stx").scan({cwd:q,absolute:!0}))F(T);continue}F(q)}return[...K].sort()}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as us,$ as vs};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Bg as p}from"./chunk-ydk1n77q.js";import{Sg as a,Ug as JF,Vg as ZF,Wg as qF}from"./chunk-a4329ma8.js";import{Bj as C,Cj as D}from"./chunk-ad84gwgv.js";import{Ck as QF,Dk as XF,Ek as YF}from"./chunk-c0n802j1.js";import{Bq as c,Km as u,Pp as o,Yr as n,_r as N,bm as l,bq as e,dm as d,iq as t,jq as FF}from"./chunk-pzcf36xm.js";import{Ws as r}from"./chunk-qfsktf7s.js";import{lu as S,nu as WF}from"./chunk-kdpy5rgk.js";import G from"fs";import Z from"path";import{createHash as $F}from"crypto";WF();function g(J){return $F("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function UF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as GF}from"crypto";function VF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function i(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=GF("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>p($))),{context:E}=VF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...n,...K,...z,buildMode:"compile",strict:!1},w=await c(X,E,Q,_,L),U=a(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,status:u(X),streamTemplates:E.__streamTemplates}}var kF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function s(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(kF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function lF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=FF(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await i(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=t(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=o(F.html,W);if(k.htmlAttrs)F.html=e(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await r(F.html),F.fragment=JF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=s(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=YF(z);if(v){let{copied:Y,bytes:F}=s(v,Z.join(Q,"public",XF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${QF}/`)}let R={runtime:H.filename,router:$.filename},zF=ZF(j,R,Q);qF(zF,Q);let x=Date.now()-q;return console.log(`
|
|
3
|
+
[stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
|
|
4
|
+
export{g as rg,f as sg,m as tg,UF as ug,i as vg,lF as wg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$o as d,Yo as a,Zo as b,_o as c,ap as e,bp as f,cp as g,dp as h,ep as i,fp as j}from"./chunk-pzcf36xm.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-qfsktf7s.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kdpy5rgk.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
|
|
@@ -27,4 +27,4 @@ Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FO
|
|
|
27
27
|
`))Q+=`
|
|
28
28
|
`}Q+=`NETLIFY_SITE_ID=${K.siteId}
|
|
29
29
|
`,await Bun.write(W,Q)}return{configPath:V,siteId:K.siteId}}class R extends Error{code;constructor(K,L){super(K);this.name="DeployError",this.code=L}}function d(K){let L=process.platform,V=L==="darwin"?"open":L==="win32"?"start":"xdg-open";Bun.spawn([V,K],{stdio:["ignore","ignore","ignore"]})}
|
|
30
|
-
export{D as
|
|
30
|
+
export{D as rf,h as sf,x as tf,T as uf,v as vf,z as wf,N as xf,u as yf,j as zf,q as Af,b as Bf,P as Cf,n as Df,i as Ef,R as Ff};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Jh as x,Oh as M,Ph as C,Qh as v,Rh as P}from"./chunk-jw1besrt.js";import{xu as y}from"./chunk-8rn5e39c.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as ph,w as qh,Q as rh,d as sh,g as th,n as uh,D as vh,t as wh,KJ as xh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{kk as a,lk as b,mk as c,nk as d}from"./chunk-e890s5em.js";import"./chunk-fw5d1aev.js";import"./chunk-pzcf36xm.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-qfsktf7s.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kdpy5rgk.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var E=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),N=new Set(["html","head","body","p","li","dt","dd","rt","rp","option","optgroup","thead","tbody","tfoot","tr","td","th","colgroup","caption"]);function X(Q){return Q.replace(/[^\n]/g," ")}function R(Q){let H=Q.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,X).replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,X).replace(/<!--[\s\S]*?-->/g,X).replace(/\{\{\{[\s\S]*?\}\}\}/g,X).replace(/\{\{[\s\S]*?\}\}/g,X).replace(/\{!![\s\S]*?!!\}/g,X),F=new Map,J=new Map,Y=/<(\/?)([A-Za-z][\w-]*)\b(?:[^>"']|"[^"]*"|'[^']*')*?(\/?)>/g,z;while((z=Y.exec(H))!==null){let j=z[1]==="/",q=z[2],W=z[3]==="/";if(E.has(q.toLowerCase()))continue;if(W)continue;if(j)J.set(q,(J.get(q)??0)+1);else{let Z=F.get(q);if(Z)Z.count++;else{let B=H.slice(0,z.index).split(`
|
|
3
3
|
`).length;F.set(q,{count:1,firstLine:B})}}}let M=[];for(let j of new Set([...F.keys(),...J.keys()])){if(N.has(j.toLowerCase()))continue;let q=F.get(j)?.count??0,W=J.get(j)??0;if(q!==W)M.push({tag:j,opened:q,closed:W,firstOpenLine:F.get(j)?.firstLine??0})}return M}var $=new Set;function U(Q,H){let F;try{F=R(Q)}catch{return}if(F.length===0)return;let J=`${H}:${Q.length}`;if($.has(J))return;$.add(J);let Y=H?H.split(/[/\\]/).pop()||H:"template";for(let{tag:z,opened:M,closed:j,firstOpenLine:q}of F)if(M>j){let W=q?` (first opened at line ${q})`:"";console.warn(`[stx] ${Y}: <${z}> ${M} opened, ${j} closed \u2014 an unclosed <${z}>${W} may swallow the content that follows it.`)}else console.warn(`[stx] ${Y}: <${z}> ${M} opened, ${j} closed \u2014 ${j-M} stray </${z}>.`)}
|
|
4
|
-
export{R as
|
|
4
|
+
export{R as rt,U as st};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rk as m}from"./chunk-fw5d1aev.js";import{xu as z}from"./chunk-8rn5e39c.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -3019,4 +3019,4 @@ Terminal=false
|
|
|
3019
3019
|
Categories=Utility;
|
|
3020
3020
|
Icon=${$.toLowerCase()}
|
|
3021
3021
|
`;z("fs").writeFileSync(Z(Y,`${$.toLowerCase()}.desktop`),_);let E=Buffer.from([137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,1,0,0,0,1,8,2,0,0,0,144,119,83,222,0,0,0,12,73,68,65,84,8,215,99,248,255,255,63,0,5,254,2,254,220,204,89,231,0,0,0,0,73,69,78,68,174,66,96,130]);if(z("fs").writeFileSync(Z(Y,`${$.toLowerCase()}.png`),E),J.icon&&s(J.icon))F(J.icon,Z(Y,`${$.toLowerCase()}.png`));let H=j("appimagetool",[Y,U],{env:{...process.env,ARCH:"x86_64"}});H.on("close",(x)=>{if(z("fs").rmSync(K,{recursive:!0,force:!0}),x===0)A(U,493),W({success:!0});else W({success:!1,error:`appimagetool exited with code ${x}. Install from https://appimage.github.io/appimagetool/`})}),H.on("error",(x)=>{z("fs").rmSync(K,{recursive:!0,force:!0}),W({success:!1,error:`appimagetool not found: ${x.message}`})})}catch(K){W({success:!1,error:K.message})}})}function Vq(){return[I()]}function Fq(q){switch(q){case"macos":return["app","dmg","pkg"];case"windows":return["app","zip","msi"];case"linux":return["app","deb","rpm","appimage"];case"ios":return["ipa"];case"android":return["apk"];default:return["app"]}}var Aq={buildNative:Qq,getAvailableTargets:Vq,getAvailableFormats:Fq,detectPlatform:I},cq=Aq;
|
|
3022
|
-
export{Iq as
|
|
3022
|
+
export{Iq as $j,D as ak,Cq as bk,yq as ck,N as dk,b as ek,h as fk,bq as gk,u as hk,Pq as ik,vq as jk,Qq as kk,Vq as lk,Fq as mk,cq as nk};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import z from"fs";function B(x){return[...x].sort().map((b)=>{try{let j=z.statSync(b);return`${b}:${j.size}:${j.mtimeMs}`}catch{return`${b}:missing`}}).join(`
|
|
3
3
|
`)}function C(x,b,j){let q=x.get(b);return q!==void 0&&q.signature===j?q.value:void 0}function D(x,b,j,q){return x.set(b,{signature:j,value:q}),q}
|
|
4
|
-
export{B as
|
|
4
|
+
export{B as bj,C as cj,D as dj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ls as Q}from"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import{$s as R}from"./chunk-80qre9zp.js";import"./chunk-8rn5e39c.js";import O from"fs";import U from"path";async function W(j,b={}){let q=Date.now(),z={total:0,passed:0,failed:0,new:0,failures:[],duration:0},K=b.snapshotDir||R(j.root,"story","snapshots");await O.promises.mkdir(K,{recursive:!0});let B=j.storyFiles;if(b.filter&&b.filter.length>0)B=B.filter((J)=>b.filter.some((G)=>J.fileName.toLowerCase().includes(G.toLowerCase())));for(let J of B)await X(J,K,b,z);return z.duration=Date.now()-q,z}async function X(j,b,q,z){let K=j.story;if(!K)return;for(let B of K.variants){z.total++;let J=U.join(b,`${j.id}-${B.id}.snap`),G=Y(B.source||""),L=await _(J);if(q.update||!L){let M={storyId:j.id,variantId:B.id,component:j.fileName,timestamp:Date.now(),hash:G};if(await O.promises.writeFile(J,JSON.stringify(M,null,2)),!L)z.new++;z.passed++}else try{let M=await O.promises.readFile(J,"utf-8"),N=JSON.parse(M);if(N.hash===G)z.passed++;else z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:"Snapshot mismatch",difference:Z(N.hash,G)})}catch(M){z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:`Error reading snapshot: ${M}`})}}}async function A(j,b={}){return(await W(j,{...b,update:!0})).total}function Y(j){let b=0;for(let q=0;q<j.length;q++){let z=j.charCodeAt(q);b=(b<<5)-b+z,b=b&b}return b.toString(16)}function Z(j,b){if(j===b)return 0;let q=Math.abs(Number.parseInt(j,16)-Number.parseInt(b,16));return Math.min(q/1e6,1)}async function _(j){try{return await O.promises.access(j),!0}catch{return!1}}function I(j){let b=[];if(b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(" STX Story Visual Regression Tests"),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),j.failures.length>0){b.push(" \u274C Failures:"),b.push("");for(let q of j.failures){if(b.push(` \u2022 ${q.component} / ${q.variantId}`),b.push(` ${q.message}`),q.difference!==void 0)b.push(` Difference: ${(q.difference*100).toFixed(2)}%`);b.push("")}}if(b.push(" Summary:"),b.push(` Total: ${j.total}`),b.push(` Passed: ${j.passed} \u2713`),b.push(` Failed: ${j.failed} \u2717`),j.new>0)b.push(` New: ${j.new} \u26A1`);return b.push(` Time: ${j.duration}ms`),b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),b.join(`
|
|
3
3
|
`)}async function S(j,b={}){let q=performance.now(),z=[],K=0,B=0;for(let G of j.storyFiles)try{let L=await Bun.file(G.path).text(),M=await Q(L,G.path);if(M.length>0){for(let N of M)z.push({storyId:G.id,variantId:"default",component:G.component,message:`A11y: ${N.message}`,expected:"No accessibility violations",actual:`${N.type}: ${N.message} (impact: ${N.impact})`});B++}else K++}catch(L){z.push({storyId:G.id,variantId:"default",component:G.component,message:`Failed to check a11y: ${L instanceof Error?L.message:String(L)}`,expected:"File readable for a11y check",actual:"File read error"}),B++}let J=performance.now()-q;return{total:j.storyFiles.length,passed:K,failed:B,new:0,failures:z,duration:J}}export{A as updateSnapshots,W as runVisualTests,S as runA11yTests,I as formatTestResults};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Bq as H,Tq as x,Yr as g,ap as R,om as O}from"./chunk-pzcf36xm.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -191,4 +191,4 @@ else {
|
|
|
191
191
|
stx.hydrate();
|
|
192
192
|
}
|
|
193
193
|
})();`}
|
|
194
|
-
export{r as
|
|
194
|
+
export{r as nj,N as oj,C as pj,s as qj,a as rj,o as sj,n as tj,e as uj,d as vj,h as wj,t as xj,qq as yj,Bq as zj,Gq as Aj};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{xs as _}from"./chunk-6b0xz02h.js";import"./chunk-8rn5e39c.js";function W(j,G,H=240){return j.slice(G,G+H)}var v=[{rule:"route-params",pattern:/\blocation\s*\.\s*pathname\s*\.\s*(?:match|split)\s*\(/g,primitive:"useRoute() / useRouteParams() / useRouteParam(name)",why:"parsing the URL by hand re-implements the router and does not update on SPA navigation"},{rule:"alert",pattern:/(?<![.#\w$])(?:(?:window|globalThis)\s*\.\s*)?alert\s*\(/g,primitive:"stxAlert(message)",why:"themed, focus-trapped and non-blocking \u2014 but `await` it if the code after it "+"depended on the native dialog blocking until dismissal",reject:(j)=>/\b(?:async\s+)?function\s+alert\s*\(/.test(j)||/\b(?:const|let|var)\s+alert\s*=/.test(j)},{rule:"search-params",pattern:/new\s+URLSearchParams\s*\(/g,primitive:"useSearchParams()",why:"reactive, and writes back through the router instead of history.replaceState",reject:(j,G)=>{let H=j.indexOf("(",G);if(H===-1)return!0;let Q=j.slice(H+1,j.indexOf(")",H)+1);return!/\b(?:location|search|href|url)\b/i.test(Q)}},{rule:"navigate",pattern:/\blocation\s*\.\s*(?:assign|replace)\s*\(|\blocation\s*\.\s*href\s*=/g,primitive:"navigate(path) / goBack()",why:"a full document load throws away every store and the scroll position; navigate() is an SPA transition",reject:(j,G)=>/^[^\n]*?(?:['"`]\s*)?(?:mailto:|tel:|sms:|https?:\/\/|\/\/)/.test(W(j,G,160))},{rule:"fetch",pattern:/new\s+AbortController\s*\(/g,primitive:"useFetch(url) / useAsyncData(key, fn)",why:"cancellation, loading and error state are already wired; hand-rolling them is where the races live"},{rule:"polling",pattern:/setInterval\s*\(/g,primitive:"useEventSource() / useSSE() / useWebSocket() / useChannel()",why:"polling burns requests and lags; the push primitives are delivered",reject:(j,G)=>!/\bfetch\s*\(|\$fetch\b|useFetch\b|\.get\s*\(|axios\b/.test(W(j,G))},{rule:"debounce",pattern:/\bclearTimeout\s*\(/g,primitive:"useDebounce(fn, ms) / useThrottle(fn, ms)",why:"a hand-held timer handle per call site is the usual source of stale-result bugs",requires:(j)=>/setTimeout\s*\(/.test(j)},{rule:"click-outside",pattern:/document\s*\.\s*addEventListener\s*\(\s*['"](?:click|mousedown|pointerdown)['"]/g,primitive:"useClickOutside(ref, fn)",why:"the document-level listener plus the blur race is exactly what this composable exists to remove"},{rule:"focus",pattern:/\.\s*(?:getElementById|querySelector)\s*\([^)]*\)\s*(?:\?\.)?\s*\.?focus\s*\(/g,primitive:"useFocus(ref) with x-ref",why:"a query by id breaks under nested scopes and SPA navigation; a ref does not"},{rule:"clipboard",pattern:/navigator\s*\.\s*(?:clipboard|share)\b/g,primitive:"useClipboard() / useShare()",why:"permission state, the copied flag and the unsupported-browser fallback are already handled"},{rule:"watch",pattern:/\beffect\s*\(\s*\(\s*\)\s*=>\s*\{[^}]*\bvoid\s+\w+\s*\(\s*\)/g,primitive:"watch(source, cb) / watchMultiple([...], cb)",why:"the `void a(); void b()` dance is a manual dependency list; watch takes one directly"}],U=["confirm","tooltip",...v.map((j)=>j.rule)];function N(j,G){let H=1;for(let Q=0;Q<G;Q++)if(j[Q]===`
|
|
3
3
|
`)H++;return H}function P(j,G){let H=j.lastIndexOf(`
|
|
4
4
|
`,G)+1,Q=j.indexOf(`
|
|
5
5
|
`,G);return j.slice(H,Q===-1?j.length:Q).trim().slice(0,120)}function q(j,G){let H=j.slice(0,G),Q=H.lastIndexOf("function"),X=H.lastIndexOf("=>"),M=Math.max(Q,X);if(M===-1)return!1;let z=j.slice(Math.max(0,M-120),M);return/\basync\b[^;{}]*$/.test(z)}function L(j){return/\b(?:async\s+)?function\s+confirm\s*\(/.test(j)||/\b(?:const|let|var)\s+confirm\s*=/.test(j)||/\bimport\s*\{[^}]*\bconfirm\b[^}]*\}/.test(j)}function O(j,G,H){if(L(j))return j;let Q=/(^|[^\w$.])(?:(?:window|globalThis)\s*\.\s*)?confirm\s*\(/g,X=F(j),M="",z=0,Y;while((Y=Q.exec(X))!==null){let Z=Y.index+Y[1].length,$=N(j,Z),J=P(j,Z);if(/stxConfirm\s*\($/.test(j.slice(0,Z+8)))continue;let D=q(j,Z);if(H.push({file:G,line:$,rule:"confirm",applied:D,snippet:J,reason:D?void 0:"stxConfirm() returns a Promise and native confirm() is synchronous, so this needs `await` inside an async function. Rewriting it here would make the condition always true."}),D)M+=j.slice(z,Z)+"await stxConfirm(",z=Z+(Y[0].length-Y[1].length)}return M+j.slice(z)}function w(j,G,H){let Q=/(<[a-z][\w-]*\b[^>]*?)\stitle=(["'])(.*?)\2/gis,X=C(j),M="",z=0,Y;while((Y=Q.exec(X))!==null){let[Z,$,J,D]=Y,K=N(j,Y.index),B=P(j,Y.index),V=$.match(/^<([A-Za-z][\w-]*)/)?.[1]??"";if(/^[A-Z]/.test(V)){H.push({file:G,line:K,rule:"tooltip",applied:!1,snippet:B,reason:`\`title\` on <${V}> is a component prop, not an HTML attribute \u2014 `+"adding x-tooltip here would put a tooltip on a component and may duplicate text it already renders."});continue}if(/\bx-tooltip[=\s]/.test($)||D.trim()===""){H.push({file:G,line:K,rule:"tooltip",applied:!1,snippet:B,reason:/\bx-tooltip[=\s]/.test($)?"already has x-tooltip":"empty title"});continue}H.push({file:G,line:K,rule:"tooltip",applied:!0,snippet:B}),M+=j.slice(z,Y.index)+`${$} x-tooltip=${J}${D}${J} title=${J}${D}${J}`,z=Y.index+Z.length}return M+j.slice(z)}function C(j){return j.replace(/<!--[\s\S]*?-->/g,(G)=>G.replace(/[^\n]/g," ")).replace(/\{\{--[\s\S]*?--\}\}/g,(G)=>G.replace(/[^\n]/g," "))}function E(j){let G=(H)=>H.replace(/[^\n]/g," ");return j.replace(/\/\*[\s\S]*?\*\//g,G).replace(/\/\/[^\n]*/g,G)}function F(j,G=!1){let H=C(j);return(G?E(H):_(H)).replace(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi,(X,M)=>/\bclient\b/i.test(M)?X:X.replace(/[^\n]/g," "))}function S(j,G,H,Q){let X=F(j),M=F(j,!0);for(let z of v){if(!H.includes(z.rule))continue;if(z.requires&&!z.requires(j))continue;z.pattern.lastIndex=0;let Y,Z=/['"]/.test(z.pattern.source)?M:X;z.pattern.lastIndex=0;while((Y=z.pattern.exec(Z))!==null){if(z.reject?.(j,Y.index))continue;Q.push({file:G,line:N(j,Y.index),rule:z.rule,applied:!1,snippet:P(j,Y.index),reason:`${z.primitive} \u2014 ${z.why}`})}}}function k(j,G={}){let H=G.rules??U,Q=G.file??"<source>",X=[];S(j,Q,H,X);let M=j;if(H.includes("confirm"))M=O(M,Q,X);if(H.includes("tooltip"))M=w(M,Q,X);X.sort((Z,$)=>Z.line-$.line);let z=new Set,Y=X.filter((Z)=>{let $=`${Z.rule}:${Z.line}`;if(z.has($))return!1;return z.add($),!0});return{code:M,findings:Y}}var I=new Set(["confirm","tooltip"]);function A(j,G){if(j.length===0)return"No hand-rolled equivalents found.";let H=j.filter((z)=>z.applied),Q=j.filter((z)=>!z.applied&&I.has(z.rule)),X=j.filter((z)=>!z.applied&&!I.has(z.rule)),M=[];if(H.length>0){M.push(G?`Rewrote ${H.length} site(s):`:`Would rewrite ${H.length} site(s) (pass --fix):`);for(let z of H)M.push(` ${z.file}:${z.line} [${z.rule}] ${z.snippet}`)}if(Q.length>0){M.push("",`Needs a human \u2014 ${Q.length} site(s):`);for(let z of Q)M.push(` ${z.file}:${z.line} [${z.rule}] ${z.snippet}
|
|
@@ -5,4 +5,4 @@ var P=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{nam
|
|
|
5
5
|
${F} [${U.join(`,
|
|
6
6
|
${F} `)}]`:"";return`Craft.create("${j.zigType}", ${Q}${W})`}function s(j,q,F){if(q.target==="universal"){let G=[];G.push("// Universal entry point"),G.push("");for(let[Q,U]of F)G.push(`// --- ${Q.toUpperCase()} ---`),G.push(`#if ${Q.toUpperCase()}`),G.push(U),G.push("#endif"),G.push("");return G.join(`
|
|
7
7
|
`)}return F.get(q.target)||J(j,q)}function r(j,q,F){let G=[];function Q(U){G.push({name:U.zigType,hash:D(JSON.stringify(U.props)),props:Object.keys(U.props),events:Array.from(U.events.keys()),slots:[],isNative:U.zigType.startsWith("craft.")});for(let W of U.children)Q(W)}return Q(q),{version:"1.0.0",components:G,entry:j.id,assets:[],styles:j.styles}}function p(j,q){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}var d=0;function E(){return`id_${++d}`}function D(j){let q=0;for(let F=0;F<j.length;F++){let G=j.charCodeAt(F);q=(q<<5)-q+G,q=q&q}return Math.abs(q).toString(36)}function l(j){return j.charAt(0).toUpperCase()+j.slice(1)}function i(j){let q=[],F=/<script[^>]*>([\s\S]*?)<\/script>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function a(j){let q=[],F=/<style[^>]*>([\s\S]*?)<\/style>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function B(j){let q=j.type==="component"?1:0;if(j.children)for(let F of j.children)q+=B(F);return q}function b(j){let q=j.zigType.startsWith("craft.")?1:0;for(let F of j.children)q+=b(F);return q}function o(j){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(q)=>{console.log(`[craft-compiler] File changed: ${q}`)}}}var t={compileToNative:k,createHotReloadServer:o,NATIVE_COMPONENTS:P},e=t;
|
|
8
|
-
export{P as
|
|
8
|
+
export{P as Xj,k as Yj,o as Zj,e as _j};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Bq as k,Fl as A,Gl as D,Pm as T,Qm as y,Uo as x,Wl as B,Yl as F,Yr as w,ap as M,mq as R}from"./chunk-pzcf36xm.js";import{xu as P}from"./chunk-8rn5e39c.js";function b(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,X){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(X?.some((Y)=>q>=Y.start&&N<=Y.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,X)=>J.start-X.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function j(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>D(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as v,resolve as H}from"path";function f(K){let z=K,G=x(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],X=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],Y=$[2],E=$[0],Z=N.includes("server");if(X(Y))J.push(E);else if(Z)Q.push(Y);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,Y,E=[];while((Y=N.exec(q))!==null){let Z=Y.index+Y[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:Y.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>${(z||"stx").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
${K}
|
|
11
|
+
</body>
|
|
12
|
+
</html>`}async function s(K,z={}){let G=H(K),_=Bun.file(G);if(!await _.exists())throw Error(`Template file not found: ${G}`);let U=await _.text(),Q=null;if(b(G)){let J=await j(U,{renderer:z.markdownRenderer});U=J.html,Q=J.frontmatter}if(Q)z={...z,context:{...Q,...z.context||{}}};if(z.layout){let J=H(z.layout),X=Bun.file(J);if(!await X.exists())throw Error(`Layout template not found: ${J}`);let{layout:$,injectCSS:q,...N}=z,Y=await I(U,G,{...N,injectCSS:!1}),E=await X.text(),Z={...z.context||{},content:Y},L={...N,context:Z,injectCSS:q};return I(E,J,L)}return I(U,G,z)}async function i(K,z={},G={}){return I(K,process.cwd(),{context:z,...G})}async function I(K,z,G={}){let{templateContent:_,serverScripts:U,clientScripts:Q}=f(K),J={...w,...G.options},X={__filename:z,__dirname:v(z),__stx:{},__stx_options:J,__stx_sfc_mode:!0,__stx_inject_css:G.injectCSS===!0,__stxServeContext:void 0,...y(G.context??{}),definePageMeta:()=>{},...G.context||{}};for(let N of U)await M(N,X,z);let $=new Set,q=_;if(q=await k(q,X,z,J,$),T(X,G.context),G.templateOnly){if(q=q.replace(/<script data-stx-scoped>[\s\S]*?<\/script>\s*/gi,""),q=q.replace(/<!-- stx SEO Tags -->[\s\S]*?(?=<)/i,""),Q.length>0)q+=`
|
|
13
|
+
${Q.join(`
|
|
14
|
+
`)}`}else{if(G.processClientScripts!==!1&&Q.length>0){let N=X.__stx_event_bindings||[],Y=B(X),Z=(await Promise.all(Q.map(async(V)=>{let W=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!W)return V;return await F(W[1],{eventBindings:N,templateContent:q,serverData:Y,filePath:z})}))).join(`
|
|
15
|
+
`);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${Z}
|
|
16
|
+
$1`);else q+=`
|
|
17
|
+
${Z}`}q=await R(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCrosswindCSS:N}=await import("./chunk-5y731xe9.js");q=await N(q)}catch{}return q}
|
|
18
|
+
export{b as ok,C as pk,j as qk,s as rk,i as sk,I as tk};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Aj as n,nj as a,oj as b,pj as c,qj as d,rj as e,sj as f,tj as g,uj as h,vj as i,wj as j,xj as k,yj as l,zj as m}from"./chunk-ejspksxd.js";import"./chunk-pzcf36xm.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-qfsktf7s.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kdpy5rgk.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function D(j){return j}class F{plugins=new Map;sortedPlugins=[];initialized=!1;async register(j,q){if(this.plugins.has(j.name))throw Error(`Plugin "${j.name}" is already registered`);if(j.dependencies){for(let w of j.dependencies)if(!this.plugins.has(w))throw Error(`Plugin "${j.name}" depends on "${w}" which is not registered`)}if(this.plugins.set(j.name,j),j.onRegister)await j.onRegister(q);this.sortPlugins()}async unregister(j){let q=this.plugins.get(j);if(!q)return!1;for(let[w,z]of this.plugins)if(z.dependencies?.includes(j))throw Error(`Cannot unregister "${j}" because "${w}" depends on it`);if(q.onUnregister)await q.onUnregister();return this.plugins.delete(j),this.sortPlugins(),!0}get(j){return this.plugins.get(j)}has(j){return this.plugins.has(j)}getAll(){return[...this.sortedPlugins]}getAllDirectives(){let j=[];for(let q of this.sortedPlugins)if(q.registerDirectives)j.push(...q.registerDirectives());return j}getAllFilters(){let j={};for(let q of this.sortedPlugins)if(q.registerFilters)Object.assign(j,q.registerFilters());return j}async runBeforeProcess(j){return this.runHooks("beforeProcess",j)}async runAfterParse(j){return this.runHooks("afterParse",j)}async runBeforeDirective(j,q){return this.runDirectiveHooks("beforeDirective",j,q)}async runAfterDirective(j,q){return this.runDirectiveHooks("afterDirective",j,q)}async runBeforeRender(j){return this.runHooks("beforeRender",j)}async runAfterRender(j){return this.runHooks("afterRender",j)}async runOnError(j){for(let q of this.sortedPlugins)if(q.onError)try{let w=await q.onError(j);if(w){if(w.template!==void 0)j.template=w.template;if(w.context)j.context={...j.context,...w.context};if(w.metadata)j.metadata={...j.metadata,...w.metadata};if(w.skip)return j}}catch(w){console.error(`Error in plugin "${q.name}" onError hook:`,w)}return null}sortPlugins(){this.sortedPlugins=Array.from(this.plugins.values()).sort((j,q)=>(j.priority??100)-(q.priority??100))}async runHooks(j,q){let w={...q};for(let z of this.sortedPlugins){let B=z[j];if(B)try{let y=await B(w);if(y){if(y.template!==void 0)w.template=y.template;if(y.context)w.context={...w.context,...y.context};if(y.metadata)w.metadata={...w.metadata,...y.metadata};if(y.skip)break}}catch(y){console.error(`Error in plugin "${z.name}" ${j} hook:`,y)}}return w}async runDirectiveHooks(j,q,w){let z={...w};for(let B of this.sortedPlugins){let y=B[j];if(y)try{let A=await y(q,z);if(A){if(A.template!==void 0)z.template=A.template;if(A.context)z.context={...z.context,...A.context};if(A.metadata)z.metadata={...z.metadata,...A.metadata};if(A.skip)break}}catch(A){console.error(`Error in plugin "${B.name}" ${j} hook:`,A)}}return z}}var G=new F;function H(j,q,w={}){return{name:j,...w,registerDirectives:()=>q}}function I(j,q,w={}){return{name:j,...w,registerFilters:()=>q}}var J=D({name:"stx-debug",version:"1.0.0",description:"Logs all plugin lifecycle events for debugging",priority:0,beforeProcess(j){console.log("[stx-debug] beforeProcess:",j.filePath)},afterParse(j){console.log("[stx-debug] afterParse:",j.template.length,"chars")},beforeDirective(j,q){console.log("[stx-debug] beforeDirective:",j)},afterDirective(j,q){console.log("[stx-debug] afterDirective:",j)},beforeRender(j){console.log("[stx-debug] beforeRender")},afterRender(j){console.log("[stx-debug] afterRender:",j.template.length,"chars")},onError(j){console.error("[stx-debug] onError:",j.error.message,"in phase:",j.phase)}}),K=D({name:"stx-timing",version:"1.0.0",description:"Measures template processing time",priority:1,beforeProcess(j){j.metadata.startTime=performance.now()},afterRender(j){let q=j.metadata.startTime;if(q){let w=performance.now()-q;console.log(`[stx-timing] Processing took ${w.toFixed(2)}ms`)}}});function L(j){return D({name:"stx-variables",version:"1.0.0",description:"Adds predefined variables to template context",beforeProcess(q){return{context:{...q.context,...j}}}})}
|
|
3
|
-
export{D as
|
|
3
|
+
export{D as Uf,F as Vf,G as Wf,H as Xf,I as Yf,J as Zf,K as _f,L as $f};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$h as c,Zh as a,_h as b,ai as d,bi as e}from"./chunk-72w4hhbq.js";import"./chunk-8rn5e39c.js";export{a as processAsyncDirectives,c as isAsyncComponent,e as generateAsyncComponentRuntime,d as generateAsyncComponentCSS,b as defineAsyncComponent};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-
|
|
2
|
+
import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-8rn5e39c.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{createHash as Y}from"crypto";import{readFile as M,stat as w}from"fs/promises";async function G(q){try{let z=await M(q);return Y("sha256").update(z).digest("hex").slice(0,16)}catch{return""}}function u(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function $(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function X(q,z){let B=JSON.stringify(z,Object.keys(z).sort());return`${$(q)}-${$(B)}`}async function Z(q){try{return(await w(q)).mtimeMs}catch{return 0}}async function b(q){try{return await w(q),!0}catch{return!1}}import{mkdir as S,readFile as V,writeFile as E,readdir as A,rm as _,stat as j}from"fs/promises";import{join as U,dirname as x}from"path";var R=new Map,W={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500};async function F(q){try{await S(q,{recursive:!0})}catch{}}function K(q,z,B){return U(q,B,`${z}.json`)}async function v(q,z,B){if((Date.now()-q.createdAt)/86400000>B)return!1;if(await Z(z)!==q.srcMtime)return!1;return!0}async function g(q,z,B,J=W){if(!J.enabled)return null;let I=X(q,z),L=R.get(I);if(L){if(await v(L,q,J.maxAge))return L.lastAccessedAt=Date.now(),L.data;R.delete(I)}let Q=K(J.directory,I,B);if(await b(Q))try{let N=await V(Q,"utf-8"),O=JSON.parse(N);if(await v(O,q,J.maxAge))return O.lastAccessedAt=Date.now(),R.set(I,O),O.data}catch{}return null}async function l(q,z,B,J,I=W){if(!I.enabled)return;let L=X(q,z),Q=await G(q),N=await Z(q),O={key:L,src:q,srcHash:Q,srcMtime:N,optionsHash:X("",z),data:B,createdAt:Date.now(),lastAccessedAt:Date.now()};R.set(L,O);let T=K(I.directory,L,J);try{await F(x(T)),await E(T,JSON.stringify(O,null,2))}catch(H){console.warn(`[stx-media] Failed to write cache: ${H}`)}}async function m(q,z=W){if(q==="all")R.clear();else R.clear();let B=q==="all"?["image","video"]:[q];for(let J of B){let I=U(z.directory,J);try{await _(I,{recursive:!0,force:!0})}catch{}}}async function y(q=W){let z={memoryEntries:R.size,diskEntries:{image:0,video:0},totalSizeMB:0};for(let B of["image","video"]){let J=U(q.directory,B);try{let I=await A(J);z.diskEntries[B]=I.length;for(let L of I){let Q=U(J,L),N=await j(Q);z.totalSizeMB+=N.size/1048576}}catch{}}return z}async function f(q=W){let z=0,B=q.maxAge*24*60*60*1000;for(let J of["image","video"]){let I=U(q.directory,J);try{let L=await A(I);for(let Q of L){let N=U(I,Q);try{let O=await V(N,"utf-8"),T=JSON.parse(O);if(Date.now()-T.createdAt>B)await _(N),R.delete(T.key),z++}catch{await _(N).catch(()=>{}),z++}}}catch{}}return z}
|
|
3
|
-
export{G as
|
|
3
|
+
export{G as Jh,u as Kh,$ as Lh,X as Mh,Z as Nh,b as Oh,g as Ph,l as Qh,m as Rh,y as Sh,f as Th};
|