@stacksjs/stx 0.2.340 → 0.2.341

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.
Files changed (176) hide show
  1. package/README.md +1 -1
  2. package/dist/browser-core-imports.js +0 -1
  3. package/dist/caching.d.ts +4 -0
  4. package/dist/caching.js +34 -0
  5. package/dist/{chunk-hrdd26r4.js → chunk-01ggk8k8.js} +1 -1
  6. package/dist/chunk-025z2btp.js +2 -0
  7. package/dist/{chunk-p7ntrtaj.js → chunk-0abjpkv7.js} +1 -1
  8. package/dist/{chunk-x4vhn880.js → chunk-0sq5mdrh.js} +1 -1
  9. package/dist/chunk-19fp0z9s.js +2 -0
  10. package/dist/{chunk-d3kjaae0.js → chunk-1gwbw81h.js} +1 -1
  11. package/dist/{chunk-vaggjvsm.js → chunk-1spzqjve.js} +1 -1
  12. package/dist/{chunk-t00ga194.js → chunk-1t3j8a0q.js} +1 -1
  13. package/dist/{chunk-shtg7kah.js → chunk-1xwfws06.js} +2 -2
  14. package/dist/{chunk-x48crnwa.js → chunk-23sv24cm.js} +1 -1
  15. package/dist/{chunk-7r79j1hs.js → chunk-25b8z7xa.js} +1 -1
  16. package/dist/{chunk-hq9fa4pe.js → chunk-25f0s8t1.js} +2 -2
  17. package/dist/chunk-2p68bkza.js +2 -0
  18. package/dist/{chunk-r10fypcd.js → chunk-2swnc8kg.js} +1 -1
  19. package/dist/chunk-3b0mgxbk.js +2 -0
  20. package/dist/{chunk-fx07kyz7.js → chunk-3tjqjpwb.js} +1 -1
  21. package/dist/{chunk-nvp546bb.js → chunk-48x5bsqv.js} +1 -1
  22. package/dist/{chunk-r5kr6jk4.js → chunk-4wpxbkbe.js} +2 -2
  23. package/dist/{chunk-7a21q2q4.js → chunk-5g9vbhbt.js} +1 -1
  24. package/dist/chunk-5grrqaqs.js +2 -0
  25. package/dist/{chunk-284ag6fs.js → chunk-5qr420a9.js} +130 -130
  26. package/dist/chunk-6jx4r94x.js +2 -0
  27. package/dist/{chunk-0xgc5t3y.js → chunk-6nvm939g.js} +1 -1
  28. package/dist/{chunk-tr1174hz.js → chunk-6nxq8rcw.js} +1 -1
  29. package/dist/{chunk-7r80apc5.js → chunk-6p6b01kp.js} +1 -1
  30. package/dist/{chunk-xe6zmdfq.js → chunk-74r1zw2h.js} +1 -1
  31. package/dist/{chunk-97ej3abh.js → chunk-8tsr51hj.js} +1 -1
  32. package/dist/chunk-a1rt1fms.js +2 -0
  33. package/dist/{chunk-aved735s.js → chunk-ahpmjg3f.js} +2 -2
  34. package/dist/chunk-akp89n3w.js +2 -0
  35. package/dist/{chunk-b4cabzk9.js → chunk-anf2y2h5.js} +1 -1
  36. package/dist/{chunk-d6yyzpsv.js → chunk-beextc84.js} +53 -20
  37. package/dist/chunk-bqhrryqs.js +2 -0
  38. package/dist/{chunk-799s9mwc.js → chunk-bt8w146r.js} +2 -2
  39. package/dist/{chunk-fa2mg49t.js → chunk-byjy9far.js} +2 -2
  40. package/dist/{chunk-axqfm9b4.js → chunk-c0n802j1.js} +1 -1
  41. package/dist/{chunk-vxt5c5aq.js → chunk-c33y19bn.js} +1 -1
  42. package/dist/{chunk-2gc4cevb.js → chunk-c73pyeak.js} +1 -1
  43. package/dist/{chunk-6av24ywm.js → chunk-cqw3c1xg.js} +1 -1
  44. package/dist/chunk-czvzaa42.js +3 -0
  45. package/dist/{chunk-yxpr7h26.js → chunk-d389vyyz.js} +2 -2
  46. package/dist/{chunk-apa2v787.js → chunk-d8cng4x9.js} +1 -1
  47. package/dist/chunk-da0tfpa2.js +2 -0
  48. package/dist/chunk-de2cfcf5.js +2 -0
  49. package/dist/{chunk-756dqqn1.js → chunk-drs93sry.js} +1 -1
  50. package/dist/{chunk-t8ctvjqe.js → chunk-e0kzyf1g.js} +1 -1
  51. package/dist/{chunk-3b9sxnty.js → chunk-ebd3z4j9.js} +1 -1
  52. package/dist/chunk-ejj7qbzd.js +2 -0
  53. package/dist/{chunk-rkykwy3z.js → chunk-evtrctj9.js} +1 -1
  54. package/dist/{chunk-q9ckfwhh.js → chunk-f2qbjr3z.js} +1 -1
  55. package/dist/{chunk-xy4jt4ek.js → chunk-f5cw54q3.js} +1 -1
  56. package/dist/chunk-fhhp6pmx.js +2 -0
  57. package/dist/{chunk-yne23w3c.js → chunk-fm5211ec.js} +1 -1
  58. package/dist/chunk-fqsrft0a.js +2 -0
  59. package/dist/{chunk-mjf3xmxn.js → chunk-fvsefztj.js} +1 -1
  60. package/dist/{chunk-m46edxtt.js → chunk-fx29n4vc.js} +1 -1
  61. package/dist/{chunk-f476c9fb.js → chunk-gbkq5qnw.js} +3 -3
  62. package/dist/{chunk-6zsc0z5a.js → chunk-ghd80w8a.js} +3 -3
  63. package/dist/{chunk-7xjm1zqa.js → chunk-gkq323fg.js} +1 -1
  64. package/dist/chunk-gqzccw30.js +2 -0
  65. package/dist/{chunk-5ggt2ryn.js → chunk-gwc54hjc.js} +2 -2
  66. package/dist/chunk-h47e1c03.js +2 -0
  67. package/dist/{chunk-ay336sqb.js → chunk-hk8j3eps.js} +1 -1
  68. package/dist/{chunk-86v2rps7.js → chunk-hnffkdzc.js} +1 -1
  69. package/dist/{chunk-mb7rn0bf.js → chunk-hrmxxs0w.js} +1 -1
  70. package/dist/{chunk-d964bsxm.js → chunk-j82hfkcf.js} +280 -280
  71. package/dist/chunk-jcbj3xp4.js +2 -0
  72. package/dist/{chunk-h0y4mb2m.js → chunk-k3w3gwm3.js} +1 -1
  73. package/dist/{chunk-jx03a693.js → chunk-k5b9471y.js} +1 -1
  74. package/dist/chunk-kbemcvp1.js +2 -0
  75. package/dist/{chunk-zj039s33.js → chunk-kznb3hdj.js} +1 -1
  76. package/dist/{chunk-m11pb9cx.js → chunk-m39hb2a2.js} +1 -1
  77. package/dist/chunk-m3b6kx1j.js +2 -0
  78. package/dist/chunk-mbstfjnj.js +2 -0
  79. package/dist/{chunk-95e1m9p8.js → chunk-mkgbrbr9.js} +1 -1
  80. package/dist/{chunk-dekxwgc2.js → chunk-mznr9nyp.js} +1 -1
  81. package/dist/{chunk-5qsg9q46.js → chunk-p52cm7ch.js} +1 -1
  82. package/dist/{chunk-5g6rprcy.js → chunk-p5d8sb50.js} +1 -1
  83. package/dist/chunk-pbct6nxk.js +2 -0
  84. package/dist/chunk-peerbcwj.js +2 -0
  85. package/dist/chunk-pt1w6vq2.js +2 -0
  86. package/dist/{chunk-kdhrk7x5.js → chunk-q4cemvkw.js} +1 -1
  87. package/dist/{chunk-k3dtvay1.js → chunk-r1rfwm01.js} +1 -1
  88. package/dist/{chunk-q0srntf6.js → chunk-r46cg4qa.js} +1 -1
  89. package/dist/{chunk-22hch2me.js → chunk-reskzmsb.js} +1 -1
  90. package/dist/chunk-rgda0gwf.js +2 -0
  91. package/dist/{chunk-d7zxg9bp.js → chunk-rh7mwwb4.js} +2 -2
  92. package/dist/{chunk-pxw0cpxe.js → chunk-rr49zrz6.js} +1 -1
  93. package/dist/chunk-rwa10jm4.js +2 -0
  94. package/dist/{chunk-w72v0ab1.js → chunk-s4mmmwj4.js} +1 -1
  95. package/dist/{chunk-zg2hvb1j.js → chunk-saqbtgqr.js} +21 -2
  96. package/dist/chunk-snsh9ye4.js +2 -0
  97. package/dist/{chunk-a26hcag1.js → chunk-sytwy0mg.js} +1 -1
  98. package/dist/chunk-td39mtts.js +2 -0
  99. package/dist/{chunk-tr41gn5j.js → chunk-thrv2nbz.js} +1 -1
  100. package/dist/{chunk-066yt1hy.js → chunk-tmj45xq5.js} +1 -1
  101. package/dist/chunk-trfx00jf.js +2 -0
  102. package/dist/chunk-trncnwem.js +2 -0
  103. package/dist/{chunk-y8vj3rtt.js → chunk-ts3wfjh9.js} +1 -1
  104. package/dist/chunk-v3yh931q.js +2 -0
  105. package/dist/{chunk-ppp84wry.js → chunk-vfggb00k.js} +2 -2
  106. package/dist/chunk-vk2j3vvs.js +2 -0
  107. package/dist/chunk-vph6zpeq.js +2 -0
  108. package/dist/chunk-wa3ks5zv.js +2 -0
  109. package/dist/chunk-wv8h3d68.js +3 -0
  110. package/dist/{chunk-28q3vycz.js → chunk-wvc7t11n.js} +1 -1
  111. package/dist/{chunk-2tjk867y.js → chunk-x7dv5rq7.js} +1 -1
  112. package/dist/{chunk-3agx4hyd.js → chunk-xe93ae3r.js} +3 -3
  113. package/dist/{chunk-mys0rat0.js → chunk-xec226zb.js} +1 -1
  114. package/dist/chunk-xer5kn26.js +2 -0
  115. package/dist/{chunk-tr9ynxdw.js → chunk-y956wapy.js} +1 -1
  116. package/dist/{chunk-stbns4bg.js → chunk-yhvrq2qd.js} +1 -1
  117. package/dist/{chunk-eq2j7w8p.js → chunk-yq7fc8sa.js} +1 -1
  118. package/dist/{chunk-wb90259a.js → chunk-yr7camcd.js} +1 -1
  119. package/dist/{chunk-8de19dmw.js → chunk-ys56ecvx.js} +1 -1
  120. package/dist/{chunk-5t8ersrw.js → chunk-ytx17bg2.js} +1 -1
  121. package/dist/{chunk-64qg8jes.js → chunk-yzv702kk.js} +2 -2
  122. package/dist/{chunk-6nde3nmc.js → chunk-zv4nf0x2.js} +1 -1
  123. package/dist/cli.js +14 -14
  124. package/dist/client-script.js +2 -2
  125. package/dist/craft-entry.js +1 -1
  126. package/dist/craft.js +1 -1
  127. package/dist/database.js +1 -1
  128. package/dist/events.d.ts +14 -0
  129. package/dist/events.js +12 -1
  130. package/dist/hydration.d.ts +0 -39
  131. package/dist/hydration.js +7 -1
  132. package/dist/process.js +4 -0
  133. package/dist/pwa.js +2 -2
  134. package/dist/runtime-globals.js +1 -0
  135. package/dist/signals.js +20 -1
  136. package/dist/ssg.js +2 -2
  137. package/dist/stx.d.ts +4 -0
  138. package/dist/visual-testing.js +1 -1
  139. package/package.json +5 -5
  140. package/stx.d.ts +4 -0
  141. package/dist/chunk-0pje0pjq.js +0 -2
  142. package/dist/chunk-1w8bpytb.js +0 -2
  143. package/dist/chunk-58j32d7n.js +0 -2
  144. package/dist/chunk-605955nh.js +0 -2
  145. package/dist/chunk-6es5r4az.js +0 -3
  146. package/dist/chunk-6j6ek3j1.js +0 -2
  147. package/dist/chunk-82h5rp34.js +0 -2
  148. package/dist/chunk-9pv7gcey.js +0 -2
  149. package/dist/chunk-a2mj88c6.js +0 -2
  150. package/dist/chunk-b3pn6dh5.js +0 -2
  151. package/dist/chunk-cjcj2gsq.js +0 -2
  152. package/dist/chunk-deqnt1w5.js +0 -3
  153. package/dist/chunk-dy9xs2q0.js +0 -2
  154. package/dist/chunk-eb1v7f55.js +0 -2
  155. package/dist/chunk-fx5m9d3t.js +0 -2
  156. package/dist/chunk-g0059g3p.js +0 -2
  157. package/dist/chunk-gf6t4419.js +0 -2
  158. package/dist/chunk-h7hnzwd0.js +0 -2
  159. package/dist/chunk-hkgnpf6v.js +0 -2
  160. package/dist/chunk-hvw4mwee.js +0 -2
  161. package/dist/chunk-jwa2jhd8.js +0 -2
  162. package/dist/chunk-kwxcertb.js +0 -2
  163. package/dist/chunk-nwz43t6d.js +0 -2
  164. package/dist/chunk-p1cddybx.js +0 -2
  165. package/dist/chunk-rceawm7w.js +0 -2
  166. package/dist/chunk-t3mh10z3.js +0 -2
  167. package/dist/chunk-vhzc08aa.js +0 -2
  168. package/dist/chunk-vz0ebk4j.js +0 -2
  169. package/dist/chunk-wjcrcbd1.js +0 -2
  170. package/dist/chunk-x80ahcnw.js +0 -2
  171. package/dist/chunk-x81z8m6a.js +0 -2
  172. package/dist/chunk-y07fna67.js +0 -2
  173. package/dist/chunk-yz0d60px.js +0 -2
  174. package/dist/chunk-z19pk2pn.js +0 -2
  175. package/dist/chunk-z7vb3mgn.js +0 -2
  176. package/dist/chunk-zzfpwxpp.js +0 -2
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$ as dm,$a as go,$b as qp,$c as qq,$d as qr,A as Pk,Aa as rn,Ab as Lo,Ac as Rp,Ad as Rq,Ae as Xr,B as Qk,Ba as sn,Bb as Mo,Bc as Sp,Bd as Sq,Be as Yr,C as Rk,Ca as Fn,Cb as No,Cc as Tp,Cd as Tq,Ce as Zr,D as Sk,Da as Gn,Db as Oo,Dc as Up,Dd as Uq,De as _r,E as Il,Ea as Hn,Eb as Po,Ec as Vp,Ed as Vq,Ee as $r,F as Jl,Fa as In,Fb as Qo,Fc as Wp,Fd as Wq,Fe as as,G as Kl,Ga as Jn,Gb as Ro,Gc as Xp,Gd as Xq,Ge as bs,H as Ll,Ha as Kn,Hb as So,Hc as Yp,Hd as Yq,He as cs,I as Ml,Ia as On,Ib as To,Ic as Zp,Id as Zq,Ie as ds,J as Nl,Ja as Pn,Jb as Uo,Jc as _p,Jd as _q,Je as es,K as Ol,Ka as Qn,Kb as Vo,Kc as $p,Kd as $q,Ke as fs,L as Pl,La as Rn,Lb as Wo,Lc as aq,Ld as ar,M as Ql,Ma as Sn,Mb as Xo,Mc as bq,Md as br,N as Rl,Na as Tn,Nb as cp,Nc as cq,Nd as cr,O as Sl,Oa as Un,Ob as dp,Oc as dq,Od as dr,P as Tl,Pa as Vn,Pb as ep,Pc as eq,Pd as er,Q as Ul,Qa as Wn,Qb as fp,Qc as fq,Qd as fr,R as Vl,Ra as Xn,Rb as gp,Rc as gq,Rd as gr,S as Wl,Sa as Yn,Sb as hp,Sc as hq,Sd as hr,T as Xl,Ta as Zn,Tb as ip,Tc as iq,Td as ir,U as Yl,Ua as _n,Ub as jp,Uc as jq,Ud as jr,V as Zl,Va as $n,Vb as kp,Vc as kq,Vd as kr,W as _l,Wa as ao,Wb as lp,Wc as lq,Wd as lr,X as $l,Xa as bo,Xb as mp,Xc as mq,Xd as mr,Y as am,Ya as co,Yb as np,Yc as nq,Yd as nr,Z as bm,Za as eo,Zb as op,Zc as oq,Zd as or,_ as cm,_a as fo,_b as pp,_c as pq,_d as pr,aa as em,ab as ho,ac as rp,ad as rq,ae as rr,ba as fm,bb as io,bc as sp,bd as sq,be as yr,ca as gm,cb as jo,cc as tp,cd as tq,ce as zr,da as hm,db as ko,dc as up,dd as uq,de as Ar,ea as im,eb as lo,ec as vp,ed as vq,ee as Br,fa as jm,fb as mo,fc as wp,fd as wq,fe as Cr,ga as km,gb as no,gc as xp,gd as xq,ge as Dr,ha as lm,hb as oo,hc as yp,hd as yq,he as Er,ia as mm,ib as po,ic as zp,id as zq,ie as Fr,ja as nm,jb as qo,jc as Ap,jd as Aq,je as Gr,ka as om,kb as ro,kc as Bp,kd as Bq,ke as Hr,la as pm,lb as so,lc as Cp,ld as Cq,le as Ir,ma as qm,mb as to,mc as Dp,md as Dq,me as Jr,na as rm,nb as wo,nc as Ep,nd as Eq,ne as Kr,o as a,oa as sm,ob as xo,oc as Fp,od as Fq,oe as Lr,p as Ak,pa as fn,pb as yo,pc as Gp,pd as Gq,pe as Mr,q as Bk,qa as gn,qb as zo,qc as Hp,qd as Hq,qe as Nr,r as Ck,ra as hn,rb as Bo,rc as Ip,rd as Iq,re as Or,s as Dk,sa as jn,sb as Co,sc as Jp,sd as Jq,se as Pr,t as Ek,ta as kn,tb as Do,tc as Kp,td as Kq,te as Qr,u as Fk,ua as ln,ub as Eo,uc as Lp,ud as Lq,ue as Rr,v as Gk,va as mn,vb as Go,vc as Mp,vd as Mq,ve as Sr,w as Hk,wa as nn,wb as Ho,wc as Np,wd as Nq,we as Tr,x as Ik,xa as on,xb as Io,xc as Op,xd as Oq,xe as Ur,y as Nk,ya as pn,yb as Jo,yc as Pp,yd as Pq,ye as Vr,z as Ok,za as qn,zb as Ko,zc as Qp,zd as Qq,ze as Wr}from"./chunk-5qr420a9.js";import{Le as Yo,Me as Zo,Ne as _o,Oe as $o,Pe as ap,Qe as bp}from"./chunk-drs93sry.js";import{Re as uo,Se as vo}from"./chunk-2ver2s2y.js";import{Te as Ao}from"./chunk-ebd3z4j9.js";import{Ue as en}from"./chunk-d8cng4x9.js";import{Ve as Ln,We as Mn,Xe as Nn,Ye as Fo}from"./chunk-0abjpkv7.js";import{$e as Vk,Ze as Tk,_e as Uk,af as Wk,bf as Xk,cf as Yk,df as Zk,ef as _k,ff as $k,gf as al,hf as bl,if as cl,jf as dl,kf as el,lf as fl}from"./chunk-ym3r8ktq.js";import{mf as wl,nf as xl,of as yl,pf as zl,qf as Al,rf as Bl,sf as Cl,tf as Dl,uf as El,vf as Fl,wf as Gl,xf as Hl}from"./chunk-y956wapy.js";import{yf as ul,zf as vl}from"./chunk-m39hb2a2.js";import{Af as gl,Bf as hl,Cf as il,Df as jl,Ef as kl,Ff as ll,Gf as ml,If as nl,Jf as ol,Kf as pl,Lf as ql,Mf as rl,Nf as sl,Qf as tl}from"./chunk-74r1zw2h.js";import{Rf as Pm,Sf as Qm,Tf as Rm,Uf as Sm,Vf as Tm,Wf as dn}from"./chunk-3tjqjpwb.js";import{$f as xm,Xf as tm,Yf as um,Zf as vm,_f as wm,ag as ym,bg as zm,cg as Am,dg as Bm,eg as Cm,fg as Dm,gg as Em,hg as Fm,ig as Gm,jg as Hm,kg as Im,lg as Um,mg as Vm,ng as Wm,og as Xm,pg as Ym,qg as Zm,rg as _m,sg as $m,tg as an,ug as bn,vg as cn}from"./chunk-vfggb00k.js";import{wg as Jm,xg as Km}from"./chunk-57atgbyq.js";import{Ag as vn,Bg as wn,Cg as xn,Dg as yn,Eg as zn,Fg as An,Gg as Bn,Hg as Cn,Ig as Dn,Jg as En,yg as tn,zg as un}from"./chunk-8bxtvsgm.js";import{Kg as ki,Lg as li,Mg as mi,Ng as ni,Og as oi,Pg as pi}from"./chunk-mkgbrbr9.js";import{Qg as Ej,Rg as Fj,Sg as Gj,Wg as Hj,Xg as Ij,Yg as Jj}from"./chunk-fm5211ec.js";import{$g as Rj,Zg as Pj,_g as Qj,ah as Sj,bh as Tj,ch as Uj,dh as Vj,eh as Wj,fh as Xj,gh as Yj,hh as Zj}from"./chunk-s4mmmwj4.js";import{ih as uj,jh as vj,kh as wj,lh as xj,mh as yj,oh as zj,ph as Aj,qh as Bj,rh as Cj,sh as Dj}from"./chunk-18018jkn.js";import{th as pk,vh as qk}from"./chunk-sqvqwd0p.js";import{Bh as Fh,Ch as Gh,Dh as Hh,Eh as Ih,Fh as Jh,Gh as Kh}from"./chunk-7r9vgzg4.js";import{Ih as Lh,Jh as Mh,Kh as Nh,Lh as Oh,Mh as Ph,Nh as Qh,Oh as Rh,Ph as Sh,Qh as Th,Rh as Uh,Sh as Vh,Th as Wh,Uh as Xh,Vh as Yh}from"./chunk-a959m68j.js";import{Xh as Zh,Yh as _h,Zh as $h,_h as ai}from"./chunk-1vb2rj09.js";import{di as bi}from"./chunk-g6czgcg4.js";import{gi as eh}from"./chunk-zv4nf0x2.js";import{hi as fh}from"./chunk-1z1efvtw.js";import{ii as gh,ji as hh}from"./chunk-vgfd9582.js";import{ki as ih,li as jh,mi as kh,ni as lh,oi as mh,pi as nh}from"./chunk-qsbjtp60.js";import{qi as oh,ri as ph,si as qh,ti as rh,ui as sh}from"./chunk-nf7k53ap.js";import{vi as th,wi as uh,xi as vh,yi as wh,zi as xh}from"./chunk-zk6ghjnj.js";import{Ai as yh,Bi as zh,Ci as Ah,Di as Bh,Ei as Ch,Fi as Dh,Gi as Eh}from"./chunk-bgrkxzr7.js";import{Hi as ch,Ii as dh}from"./chunk-ys56ecvx.js";import"./chunk-7we3xfde.js";import{Mi as Je,Ni as Ke,Oi as Le,Pi as Me,Qi as Ne,Ri as Oe,Si as Pe,Ti as Qe,Ui as Re,Vi as Se,Wi as Te,Xi as Ue,Yi as Ve,Zi as We}from"./chunk-ytx17bg2.js";import{$i as nf,_i as mf,aj as of,bj as pf,cj as qf,dj as rf,ej as sf,fj as tf,gj as uf,hj as vf,ij as wf,jj as xf,kj as yf,lj as zf,mj as Af,nj as Bf,oj as Cf}from"./chunk-saqbtgqr.js";import{Aj as cf,Bj as df,Cj as ef,Dj as ff,Ej as gf,Fj as hf,Gj as jf,Hj as kf,Ij as lf,vj as Ze,wj as _e,xj as $e,yj as af,zj as bf}from"./chunk-e4g8wz6t.js";import{Jj as Df,Kj as Ef,Lj as Ff,Mj as Gf,Nj as Hf,Oj as If,Pj as Jf,Qj as Kf,Rj as Lf,Sj as Mf,Tj as Nf,Uj as Of,Vj as Pf,Wj as Qf}from"./chunk-czvzaa42.js";import{ok as sr,pk as tr,qk as ur,rk as vr,sk as wr,tk as xr}from"./chunk-ghd80w8a.js";import{Ak as Nm,Bk as Om,uk as Jk,vk as Kk,wk as Lk,xk as Mk,yk as Lm,zk as Mm}from"./chunk-byjy9far.js";import"./chunk-c0n802j1.js";import"./chunk-4wpxbkbe.js";import{ml as $b,nl as ac,rl as bc}from"./chunk-gbkq5qnw.js";import{tl as Yb}from"./chunk-fvsefztj.js";import{$l as Pb,$m as hd,$n as xe,$o as qg,$p as hi,$q as Mj,Al as Da,Am as Ac,An as Id,Ap as Rg,Aq as Xi,Ar as yk,Bl as Ea,Bm as Bc,Bn as Jd,Bp as Sg,Bq as Yi,Br as zk,Cl as Fa,Cm as Cc,Cn as Kd,Cp as Tg,Cq as Zi,Dl as Ga,Dm as Dc,Dn as Ld,Dp as Ug,Dq as _i,El as Ha,Em as Ec,En as Md,Eo as Sf,Ep as Vg,Eq as $i,Fl as Ia,Fm as Fc,Fn as Nd,Fp as Wg,Fq as aj,Gl as Ja,Gm as Gc,Gn as Od,Gp as Xg,Gq as bj,Hl as Ka,Hm as Hc,Hn as Pd,Hp as Yg,Hq as cj,Il as La,Im as Ic,In as Qd,Ip as Zg,Iq as dj,Jl as Ma,Jm as Jc,Jn as Rd,Jp as _g,Jq as ej,Kl as Na,Km as Kc,Kn as Sd,Kp as $g,Kq as fj,Ll as Oa,Lm as Uc,Ln as Td,Lo as Tf,Lp as ah,Lq as gj,Ml as ib,Mm as Vc,Mn as Ud,Mp as bh,Mq as hj,Nl as jb,Nm as Wc,Nn as Vd,No as Uf,Np as ci,Nq as ij,Ol as kb,Om as Xc,On as Wd,Op as di,Oq as jj,Pl as lb,Pm as Yc,Pn as le,Po as Vf,Pq as kj,Ql as mb,Qm as Zc,Qn as me,Qo as Wf,Qq as lj,Rl as nb,Rm as _c,Rn as ne,Ro as Xf,Rp as ei,Rq as mj,Sn as oe,So as Yf,Sq as nj,Tm as $c,Tn as pe,To as Zf,Tq as oj,Ul as Fb,Um as ad,Un as qe,Uo as jg,Uq as pj,Vl as Gb,Vm as bd,Vn as re,Vo as kg,Vq as qj,Wl as Hb,Wm as cd,Wn as se,Wo as lg,Wq as rj,Xl as Ib,Xm as dd,Xn as te,Xo as mg,Xq as sj,Yl as Jb,Ym as ed,Yn as ue,Yo as ng,Yq as tj,Zl as Kb,Zm as fd,Zn as ve,Zo as og,Zp as fi,Zq as Kj,_l as Lb,_m as gd,_n as we,_o as pg,_p as gi,_q as Lj,am as Qb,an as id,ao as ye,ap as rg,aq as ii,ar as Nj,bm as Rb,bn as jd,bp as sg,bq as ji,br as Oj,cm as cc,cn as kd,co as Ce,cp as tg,cq as qi,cr as _j,dm as dc,dn as ld,do as De,dp as ug,dq as ri,dr as $j,em as ec,en as md,eo as Ee,ep as vg,eq as si,er as ak,fm as fc,fn as nd,fo as Fe,fp as wg,fq as ti,fr as bk,gm as gc,gn as od,go as Ge,gp as xg,gq as ui,gr as ck,hm as hc,hn as pd,ho as He,hp as yg,hq as vi,hr as dk,im as ic,in as qd,io as Ie,ip as zg,iq as wi,ir as ek,jm as jc,jn as rd,jp as Ag,jq as xi,jr as fk,km as kc,kn as sd,kp as Bg,kq as yi,kr as gk,lm as lc,ln as td,lp as Cg,lq as zi,lr as hk,mm as mc,mn as ud,mo as Xe,mp as Dg,mq as Ai,mr as ik,nm as nc,nn as vd,no as Ye,np as Eg,nq as Bi,nr as jk,om as oc,on as wd,op as Fg,oq as Ci,or as kk,pm as pc,pn as xd,po as Rf,pp as Gg,pq as Di,pr as lk,qm as qc,qn as yd,qp as Hg,qq as Ei,qr as mk,rm as rc,rn as zd,rp as Ig,rq as Fi,rr as nk,sm as sc,sn as Ad,sp as Jg,sq as Gi,sr as ok,tm as tc,tn as Bd,tp as Kg,tq as Qi,tr as rk,ul as xa,um as uc,un as Cd,up as Lg,uq as Ri,ur as sk,vl as ya,vm as vc,vn as Dd,vp as Mg,vq as Si,vr as tk,wl as za,wm as wc,wn as Ed,wp as Ng,wq as Ti,wr as uk,xl as Aa,xm as xc,xn as Fd,xp as Og,xq as Ui,xr as vk,yl as Ba,ym as yc,yn as Gd,yp as Pg,yq as Vi,yr as wk,zl as Ca,zm as zc,zn as Hd,zp as Qg,zq as Wi,zr as xk}from"./chunk-j82hfkcf.js";import{$r as la,Cr as M,Dr as N,Er as O,Fr as P,Gr as Q,Hr as R,Ir as S,Jr as T,Kr as U,Lr as V,Mr as W,Nr as X,Or as Y,Pr as Z,Qr as _,Rr as $,Sr as aa,Tr as ba,Ur as ca,Vr as da,Wr as ea,Xr as fa,Yr as ia,Zr as ja,_r as ka,as as ma,bs as na,cs as oa,ds as pa,es as qa,fs as ra,gs as sa,hs as ta,is as ua,js as va,ks as wa}from"./chunk-rh7mwwb4.js";import{ls as ga,ms as ha}from"./chunk-1t3j8a0q.js";import{ns as Mb,os as Nb,ps as Ob}from"./chunk-01ggk8k8.js";import"./chunk-25b8z7xa.js";import{As as Li,Bs as Mi,Cs as Ni,Ds as Oi,Es as Pi,ws as Hi,xs as Ii,ys as Ji,zs as Ki}from"./chunk-hk8j3eps.js";import{Ws as Lc,Xs as Mc,Ys as Nc,Zs as Oc,_s as Pc,at as Qc,jt as Rc,kt as Sc,lt as Tc}from"./chunk-xe93ae3r.js";import{mt as Sb,nt as Tb,ot as Ub,pt as Vb,qt as Wb,rt as Xb}from"./chunk-1spzqjve.js";import{At as Ae,Dt as Be,yt as ze}from"./chunk-f2qbjr3z.js";import"./chunk-1xwfws06.js";import{It as Zb,Jt as _b}from"./chunk-r1rfwm01.js";import{Nt as _f,Ot as $f,Pt as ag,Qt as bg,Rt as cg,St as dg,Tt as eg,Vt as fg,Wt as gg,Xt as hg,Yt as ig}from"./chunk-ahpmjg3f.js";import{$t as d,Au as E,Bu as F,Cu as G,Du as H,Eu as I,Fu as J,Gu as K,Hu as L,Zt as b,_t as c,au as e,bu as f,cu as g,du as h,eu as i,fu as j,gu as k,hu as l,iu as m,ju as n,ku as o,lu as p,mu as q,nu as r,ou as s,pu as t,qu as u,ru as v,su as w,tu as x,uu as y,vu as z,wu as A,xu as B,yu as C,zu as D}from"./chunk-bt8w146r.js";import{$u as fe,Ru as Xd,Su as Yd,Tu as Zd,Uu as _d,Vu as $d,Wu as ae,Xu as be,Yu as ce,Zu as de,_u as ee,av as ge,bv as he,cv as ie,dv as je,ev as ke}from"./chunk-6p6b01kp.js";import"./chunk-x7dv5rq7.js";import"./chunk-e0kzyf1g.js";import{Av as Eb,kv as ob,lv as pb,mv as qb,nv as rb,ov as sb,pv as tb,qv as ub,rv as vb,sv as wb,tv as xb,uv as yb,vv as zb,wv as Ab,xv as Bb,yv as Cb,zv as Db}from"./chunk-wv8h3d68.js";import{$v as $a,Ev as Pa,Fv as Qa,Iv as Ra,Nv as Sa,Ov as Ta,Uv as Ua,Vv as Va,Wv as Wa,Xv as Xa,Yv as Ya,Zv as Za,_v as _a,aw as ab,bw as bb,cw as cb,dw as db,ew as eb,fw as fb,gw as gb,iw as hb}from"./chunk-beextc84.js";import"./chunk-yr7camcd.js";import"./chunk-p5d8sb50.js";export{bl as writeNetlifyConfig,Vm as writeManifest,Gl as writeImageManifest,lp as wrapComponentForHMR,Ur as withDefaults,ok as webComponentDirectiveHandler,aq as watermark,cr as watchViews,Ql as watchMultiple,Rl as watchEffect,Pl as watch,Ge as warmImagePlaceholders,cm as waitForStore,X as waitForLocale,Zo as virtualPathFor,bk as videoDirective,G as validators,Yr as validated,we as validateValueEnhanced,fi as validateTemplate,Jm as validateRouteRules,fq as validateParams,xe as validateFormEnhanced,Tq as validateFile,se as validateFields,re as validateField,hi as validateDirective,Rd as validateCspDirectives,wk as validateConfig,gn as validateComponentScripts,Fn as validateComponentProps,bh as validateClientScript,ai as v,Cc as usesSignalsInScript,ub as usesReactiveRuntime,ui as userComponentFileExists,Ih as useVirtualList,de as useTitle,bm as useStoreOrThrow,Dp as useStore,Nk as useStorage,uf as useSlots,Pk as useSessionStorage,Zb as useServerRuntimeConfig,Sf as useServerData,ae as useSeoMeta,_b as useRuntimeConfig,dm as useRouteParams,fm as useRouteParamOrThrow,em as useRouteParam,de as usePageTitle,lf as useOptimistic,zf as useModel,hm as useMiddlewareValue,gm as useMiddlewareState,Ok as useLocalStorage,ep as useLoadingIndicator,_d as useHead,Zh as useForm,wf as useAttrs,Vq as uploadFiles,Uq as uploadFile,_l as updateInstance,jf as untrack,Ki as unregisterDirective,$l as unmountInstance,Kc as unescapeHtml,ap as typecheckStxFiles,ti as transpileTypeScript,Hr as translate,Ba as transitionDirective,gc as transformAutoImports,zn as toUsers,yn as toUser,Lp as thumbnail,Mq as thumbHashToRGBA,Nq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Df as templateCache,hd as syncRecordedResponse,ip as stxClientHelpers,dg as structuredDataDirective,Kr as stripLocalePrefix,Gm as stripDocumentWrapper,Nb as stripCommentsAndLiterals,ko as stringToStream,Fd as strictCspPreset,Re as streamingSuspenseDirective,Ve as streamToResponse,Pe as streamTemplateSimple,Je as streamTemplate,Ik as stopHmrServer,vn as stopBroadcasting,Vb as stateDirName,Wb as stateDir,Ze as state,Xg as startsDocument,Fo as startProductionServer,Ao as startInteractive,un as startBroadcasting,Mr as stampLocaleLayoutGroup,Ia as staggerDirective,dq as srcsetUrls,Ja as springDirective,od as splitByPipe,Cm as spaNavVaryHeaders,_o as sourcePathFor,kq as smartBatchSign,wi as slotContentHasExpressions,iq as signUrl,ri as shouldTranspileTypeScript,Fk as shouldReloadOnChange,nq as shouldRefreshSignature,Gk as shouldIgnoreFile,Ah as shouldCacheComponent,Pp as sharpen,$r as shape,Ub as setStateDir,lm as setRouteParams,mm as setMiddlewareState,Fe as setImagePlaceholder,of as setGlobalProvide,b as setErrorLocale,Il as setCurrentInstance,Rj as setCachedVideoResult,Gj as setCachedImageResult,Aj as setCached,cs as serveStxFile,es as serveMultipleStxFiles,Ak as serveMarkdownFile,Qo as serveFile,fs as serveApp,Po as serve,op as serializeState,Xm as serializeSetCookie,Rp as sepia,be as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,fk as scopeHTML,ek as scopeCSS,gg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,Vp as saturation,gq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,rg as runPreProcessingMiddleware,sg as runPostProcessingMiddleware,_m as runPageAction,df as runMountCallbacks,gb as runMiddleware,Yl as runHooks,Ar as runDoctor,ef as runDestroyCallbacks,vg as runComposers,Wp as rotate,bi as rewriteImagesWithSiblings,id as responseBindings,Ai as resolveTemplatePath,ha as resolveStxTargets,sk as resolveStxDirectories,Gr as resolveI18n,Jp as resize,jg as resetUnscopedSignalWarnings,Ic as resetRejectedExpressionWarnings,nc as resetPlaceholders,Zd as resetHead,np as resetHMRHandler,o as resetErrorConfig,Wr as required,Yf as reportDeferredLoopWarnings,rc as replacePlaceholders,zc as replaceInterpolations,ar as renderView,_j as renderVideoComponent,dc as renderVendorStyleTags,jr as renderToString,kr as renderToStream,lr as renderToDOM,Lq as renderThumbhashToCanvas,xr as renderTemplateString,vr as renderTemplate,wr as renderString,Me as renderStreamingPage,mi as renderSlot,qh as renderSSRSuspense,vq as renderProtectedVideo,uq as renderProtectedImg,hq as renderMediaUpload,ur as renderMarkdownView,Nm as renderLayoutTypes,Kj as renderImgComponent,wl as renderImageComponent,fe as renderHtmlAttrs,ee as renderHead,dr as renderEmail,yi as renderComponentWithSlot,ge as renderBodyAttrs,yp as render,Hd as relaxedCspPreset,qe as registerValidationRule,Te as registerStreamingDirectives,Fp as registerStoresClient,jm as registerStore,Lf as registerServeModuleBundle,eg as registerSeoDirectives,_a as registerMiddleware,vc as registerFilters,uc as registerFilter,d as registerErrorMessages,ve as registerEnhancedValidationRule,Hi as registerDirective,Qd as registerCspDirectives,In as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,hc as referencesName,Ml as ref,so as redirect,dd as recordResponseStatus,ed as recordResponseHeader,Xb as rebaseOntoStateDir,fd as readResponseStatus,gd as readResponseHeaders,yk as readMarkdownFile,Ef as readFileCached,Nl as reactive,_p as quality,sq as pruneSignatureCache,Dj as pruneCache,mf as provide,tr as protectCodeBlocks,Vr as prop,yg as processVueTemplate,Gh as processVirtualListDirectives,Kh as processVirtualGridDirectives,Zj as processVideo,te as processValidateDirective,ea as processTranslateDirective,kh as processTransitionDirectives,nh as processTransitionAttributes,je as processTitleDirective,Xc as processTemplateBindings,gh as processTeleportDirectives,oh as processSuspenseDirectives,$f as processStructuredData,Ne as processStreamDirectives,jd as processStatusDirective,Xh as processStaticDirectives,pg as processStackReplacements,og as processStackPushDirectives,ni as processSlots,Em as processShell,Ie as processServerBindings,ag as processSeoDirective,Ue as processSectionDirectives,Pc as processScopedStyles,Vc as processReactiveBindings,wq as processProtectedMedia,Qh as processPartialHydrationDirectives,ah as processOnceDirective,qg as processMiddleware,_f as processMetaDirectives,ke as processMetaDirective,zk as processMarkdownFileDirectives,Fi as processMarkdownDirectives,Zf as processLoops,yh as processKeepAliveDirectives,$g as processJsonDirective,Jh as processInfiniteListDirectives,ng as processIncludes,Mj as processImgComponents,yl as processImageComponents,ll as processImage,ie as processHeadDirective,me as processForms,oe as processFormInputDirectives,Gc as processExpressions,Kb as processEventDirectives,pe as processErrorDirective,zg as processDynamicComponents,ci as processDirectives,Pi as processDirectiveAttributes,fh as processDeferDirectives,Vd as processCustomDirectives,Nd as processCspDirectives,as as processComponentProps,mc as processClientScript,ne as processBasicFormDirectives,th as processAsyncDirectives,Wd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Be as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,dp as preloadIslandHandlers,He as preloadIconCollection,qn as poolStrings,qk as pluginManager,De as placeholdersWarmed,jh as performLeave,ih as performEnter,ff as pendingLifecycleCounts,kf as peek,kg as partialsCache,$j as parseVideoDirectiveOptions,Hp as parseUrl,Oq as parseThumbhashString,ud as parseSwitchBlock,ki as parseSlots,li as parseSlotElement,zd as parseScriptDeclarations,mk as parseSFCComponent,xq as parseProtectedArgs,Xf as parseLoopBinding,Lj as parseImgComponent,bj as parseImageUrl,xl as parseImageComponent,Ym as parseFormBody,wd as parseExpressionWithFilters,Jn as parseDefaults,po as parseCookies,vm as parseContainerSelector,rd as parseConditionalBlock,xd as parseArguments,Ma as parseAnimationShorthand,Xr as optional,rn as optimizeTemplate,Dl as optimizeImage,El as optimizeDirectory,Zr as oneOf,lg as onceStore,Vl as onUpdated,Uc as onUpdate,Xl as onUnmounted,qm as onServer,Tl as onMounted,bf as onMount,Wh as onHydrated,sf as onErrorCaptured,cf as onDestroy,Eh as onDeactivated,pm as onClient,Ul as onBeforeUpdate,Wl as onBeforeUnmount,Sl as onBeforeMount,Dh as onActivated,Hq as observeElement,to as notFound,Eg as normalizeCriticalHeadOrder,rf as nextTick,Mn as negotiateEncoding,Ua as navigateTo,Zl as mountInstance,Ea as motionDirective,Gd as moderateCspPreset,pn as minifyHtml,cg as metaDirective,Pg as metaDedupKey,Ip as mergeParams,Rg as mergeHtmlAttrs,$d as mergeHeadConfigs,Mc as mergeCssConfig,Kd as mergeCspDirectives,Ra as matchRoute,Gi as markdownDirectiveHandler,xk as markdownCache,ga as looksLikeGlob,Jr as localizePath,U as loadTranslationLazy,_ as loadTranslation,tk as loadStxConfig,db as loadMiddlewareFromDirectory,Wm as loadManifest,Dq as loadElement,wn as loadChannels,Gb as listensPassively,Qr as lintStxStrict,Fq as lazyLoadAll,Eq as lazyLoad,Ha as keyframeDirective,hr as jsxs,ir as jsxDEV,gr as jsx,ro as jsonResponse,Se as islandDirective,l as isTest,Hm as isSpaNavigation,Am as isSpaNavRequest,lq as isSignatureValid,gf as isSignal,jl as isSharpAvailable,co as isServerEnvironment,nm as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Aq as isNativeLazySupported,sr as isMarkdownPath,Q as isLoading,R as isLoaded,qi as isJavaScriptScript,Bq as isIntersectionObserverSupported,rl as isImageFile,kl as isImageBackendAvailable,aa as isICUFormat,Vh as isHydrated,vi as isHydrateTrigger,bd as isHttpStatus,bo as isEdgeEnvironment,Rr as isDirectiveKind,k as isDevelopment,hf as isDerived,Ek as isCssOnlyChange,Ln as isCompressible,om as isClient,vh as isAsyncComponent,Zm as isActionableMethod,Sp as invert,Gf as invalidateFileCacheByDir,Ff as invalidateFileCache,Fc as interpolateScriptsInTemplate,Dc as interpolateScriptExpressions,Ec as interpolateScriptAttributes,x as inlineError,Fr as injectThemeBootstrap,bg as injectSeoTags,Cr as injectSeo,Rf as injectRouterScript,Dk as injectHotReload,kb as injectHeatmap,Tc as injectCss,Ld as injectCspMetaTag,Zg as injectConfigHeadTags,Dg as injectColorModeBootScript,Tg as injectCloakStyle,Kg as injectBuildId,fc as injectBrowserCoreAutoImports,Zc as injectAnalytics,nf as inject,im as initStoreRegistry,el as initNetlify,fp as initLoadingIndicator,Cq as initLazyLoading,zo as initFile,Kq as initBlurUp,Qq as initAllBlurUp,Oj as imgDirective,Bl as imageDirective,bn as hydrateTemplateStream,an as hydrateTemplate,cp as hydrateIslands,Sh as hydrateIsland,cn as hydrateFragment,Th as hydrateByStrategy,Uh as hydrateAll,vp as hydrate,Oo as htmlResponse,Vg as hoistLeadingHeadTags,Fg as hoistColorModeBootScript,lb as heatmapDirective,wj as hashString,Qf as hashFilePath,uj as hashFile,vj as hashBuffer,xg as hasVueTemplateSyntax,Wf as hasVariables,Ap as hasStore,sc as hasPlaceholders,cl as hasNetlifyConfig,ab as hasMiddleware,Lb as hasEventDirectives,Yg as hasDocumentShell,ii as hasDirectives,ma as hasDOMSupport,ul as handleImageRequest,tf as handleError,pr as h,ql as groupVariantsByFormat,Qp as grayscale,Ho as gitHash,jn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,Zk as getTotalSize,mq as getTimeUntilExpiry,ch as getStoreScript,Bp as getStoreNames,zp as getStore,Sk as getStorageSize,Rk as getStorageKeys,Bi as getSourceLineInfo,si as getSharedTranspiler,Mf as getServeModuleBundle,Kf as getServeClientAsset,la as getScreenReaderOnlyStyle,gk as getScopeAttribute,Ye as getRouteParams,Qb as getPublicEnvDefine,Rb as getPublicEnv,gi as getPositionInfo,pc as getPlaceholderRegistry,tj as getPlaceholderCacheStats,Yd as getPageMeta,Bd as getNonce,sl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ce as getImagePlaceholder,ml as getImageMetadata,ze as getImageDelivery,up as getHydrationRuntime,km as getHydratedStoreState,Hk as getHmrServer,Xd as getHead,mp as getHMRHandler,fj as getFormatExtension,yj as getFileMtime,pl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ji as getDirectives,Ii as getDirective,Jl as getCurrentInstance,Qc as getCssServeAsset,Jd as getCspPreset,Sd as getCspHeaderName,Ei as getComponentCacheStats,Qj as getCachedVideoResult,qq as getCachedSignature,If as getCachedSignalsRuntime,Jf as getCachedRouterScript,rj as getCachedPlaceholder,Fj as getCachedImageResult,zj as getCached,Cj as getCacheStats,Ig as getBuildId,tn as getBroadcastServer,ej as getBestVariant,wc as getAllFilters,Ui as generateWidthSrcset,Hh as generateVirtualListCSS,Xq as generateVideoPreview,ye as generateValidationScript,Yq as generateUploadRuntime,kn as generateTreeShakenBundle,mh as generateTransitionRuntime,lh as generateTransitionCSS,Uj as generateThumbnails,kj as generateThumbhashPlaceholder,Vn as generateTemplatesDocs,sh as generateSuspenseRuntime,rh as generateSuspenseCSS,pp as generateStateScript,cj as generateSrcsetData,Jj as generateSrcset,nl as generateSrcSet,Vj as generateSpriteSheet,er as generateSpaShell,dj as generateSourceTags,_i as generateSizesFromBreakpoints,Zi as generateSizesAttribute,ol as generateSizes,fg as generateSitemapIndex,Dr as generateSitemap,zq as generateSimpleMediaPicker,tq as generateSignatureRuntime,Cf as generateSignalsRuntimeDev,Bf as generateSignalsRuntime,lc as generateServerDataBridge,dk as generateScopeId,nk as generateSFCWebComponent,Ib as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,hg as generateRobotsTxt,Er as generateRobots,Ij as generateResponsiveVariants,jk as generateReactiveWebComponentTS,ik as generateReactiveWebComponent,lk as generateReactiveRuntime,kk as generateReactiveMixin,Tj as generatePoster,qj as generatePlaceholderStyle,pj as generatePlaceholderCSS,jj as generatePlaceholder,Rh as generatePartialHydrationCSS,Ad as generateNonce,_k as generateNetlifyToml,_q as generateMinifiedMediaRuntime,Zq as generateMediaRuntime,yq as generateMediaManagerEmbed,Um as generateManifest,hp as generateLoadingIndicatorHtml,Jq as generateLazyLoadRuntime,Om as generateLayoutTypes,mj as generateLQIP,Ch as generateKeepAliveRuntime,Bh as generateKeepAliveCSS,Yh as generateIslandManifest,Wq as generateImagePreview,Fl as generateImageManifest,tp as generateHydrationScript,We as generateHydrationRuntime,wp as generateHydrationCSS,Lh as generateHydrationBootstrap,Ck as generateHotReloadScript,jb as generateHeatmapScript,kp as generateHMRClientScript,Wj as generateHLSManifest,qp as generateEventBindings,Yi as generateDprSrcsetWithVariableQuality,Xi as generateDprSrcset,Wg as generateDocumentShell,_n as generateDocs,Wn as generateDirectivesDocs,Oi as generateDirectiveRuntime,ig as generateDefaultRobotsTxt,Xj as generateDASHManifest,Sc as generateCss,Ed as generateCspMetaTag,Dd as generateCspHeader,yf as generateCompositionRuntime,Un as generateComponentsDocs,Mh as generateComponentManifest,Sn as generateComponentDoc,oj as generateColorPlaceholder,Cg as generateColorModeBootScript,am as generateClientRuntime,xj as generateCacheKey,jc as generateBrowserAutoImportDestructuring,Rq as generateBlurUpRuntime,Sq as generateBlurUpCSS,Wc as generateBindingsRuntime,Vi as generateAutoWidthSrcset,ic as generateAutoImportDestructuring,xh as generateAsyncComponentRuntime,wh as generateAsyncComponentCSS,ac as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,Yc as generateAnalyticsScript,bp as formatTypecheckDiagnostics,Xo as formatTypeErrors,wo as formatStxContent,Yk as formatSize,Ta as formatRoutes,xo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Br as formatDoctorReport,Xn as formatDocsAsMarkdown,Zn as formatDocsAsJson,Yn as formatDocsAsHtml,Zp as format,on as foldConstants,Yp as flipVertical,Xp as flipHorizontal,Pm as fingerprint,$o as findRuntimeTypeDeclarations,zr as findPantryPackage,yc as findMustacheEnd,qd as findMatchingEndTag,md as findMatchingDelimiter,Mb as findInterpolationEnd,sd as findIfBlocks,vd as findExpressions,Sa as findErrorPage,Nc as findDuplicateScopedStyleRanges,td as findDirectiveBlocks,ln as findDeadCode,ln as findDeadBranches,wm as findContainerRegion,Tn as findComponentFiles,ds as findCommonDir,Xk as filterRequiredFiles,zi as fileExists,Tf as extractVariables,ei as extractTemplateExpressions,Oe as extractStreamBoundaries,rp as extractState,oi as extractSlotContent,Vf as extractScriptFromTemplate,di as extractScriptBlocks,qc as extractPlaceholders,pd as extractParenthesizedExpression,cd as extractPageResponseStatus,hb as extractLayoutMetadata,nj as extractDominantColor,yd as extractDirectiveParams,ji as extractDirectiveNames,Im as extractContainerContent,Qn as extractComponentProps,Nh as extractComponentName,Rn as extractComponentDescription,Rc as extractClassNames,kc as extractBridgeData,Oh as extractBoundProps,nd as extractBalancedExpression,cc as extractAndStripCssImports,hk as extractAndScopeStyles,Jb as extractAndProcessEvents,Lk as externalizeSharedAssets,Mk as externalizeRepeatedAssets,Kk as externalizeHtml,Jc as evaluateExpression,nn as evaluateConstant,kd as evaluateAuthExpression,Bc as escapeHtmlValue,Ac as escapeHtml,C as errorRecovery,E as errorLogger,hh as ensureTeleportTargets,_g as ensureDocumentShell,ue as enhancedValidationRules,On as enableDevTools,mn as eliminateDeadCode,$e as effect,eq as dprUrls,$n as docsCommand,$b as discoverServerApi,Mm as discoverLayoutNames,Iq as disconnectObserver,Pn as disableDevTools,F as devHelpers,Dm as detectShell,ao as detectRuntime,$k as detectProjectConfig,gj as detectFormat,fn as detectBuildMode,_e as derived,dl as deploy,vk as defineStxConfig,Ep as defineStore,vf as defineSlots,Pr as defineSiteConfig,Tr as definePropsWithValidation,Sr as defineProps,pk as definePlugin,ce as definePageMeta,Wa as defineMiddleware,_h as defineForm,qf as defineExpose,pf as defineEmits,Li as defineDirective,rr as defineCustomElement,Eo as defineConfig,Mi as defineClientDirective,uh as defineAsyncComponent,Go as defineApiHandler,$q as defaultMediaConfig,Hl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,le as defaultFormClasses,tc as defaultFilters,Ud as defaultCspConfig,rk as defaultConfig,bs as default,Lc as deepMergeThemes,Oc as dedupeScopedStyles,zm as decodeTitleEntities,lj as decodeThumbhash,Pd as cspNonceDirective,Od as cspDirective,Pq as crossfadeTransition,Kp as crop,Fh as createVirtualList,ak as createVideoDirective,no as createVercelHandler,Uo as createTypeChecker,fa as createTranslateFilter,jo as createTextEncoderStream,qr as createStxApp,io as createStreamingResponse,Qe as createStreamRenderer,Cp as createStore,Za as createStorageManager,Xa as createServerCookieManager,bc as createServerApi,Ll as createScope,ph as createSSRSuspense,Xe as createRouter,Km as createRouteRuleResolver,eb as createRouteLocation,So as createRoute,Ml as createRef,Nl as createReactive,xf as createProvideContext,Jo as createProject,Do as createProductionBuild,oc as createPlaceholder,sn as createOptimizedBuild,oo as createNetlifyHandler,Tk as createNetlifyClient,fb as createMiddlewareContext,Ro as createMiddleware,Gq as createLazyObserver,zh as createKeepAliveCache,fo as createKVNamespace,Ph as createIslandRegistry,Nj as createImgDirective,Cl as createImagePlugin,vl as createImageHandler,Al as createImageDirective,nb as createHeatmapAggregator,Wk as createFileManifest,eo as createEnvAccessor,z as createEnhancedError,ho as createEdgeHandler,go as createEdgeCache,Ci as createDetailedErrorMessage,mo as createDenoHandler,al as createDefaultNetlifyConfig,Td as createCspHeaders,qo as createCookie,Ol as createComputed,Kl as createComponentInstance,lo as createCloudflareHandler,Ya as createClientCookieManager,Ni as createBuiltinDirectives,qr as createApp,Ka as createAnimationTimeline,Np as cover,Uf as convertToCommonJS,Up as contrast,Mp as contain,y as consoleError,m as configureErrorHandling,uk as config,Ol as computed,Nn as compressResponse,ug as composerPattern,tg as composer,Fm as composeShellWithPage,Hn as componentDirective,xi as componentClientSignalNames,Tm as compileTemplate,a as collectRepeatedFlag,Vk as collectDeployFiles,Ug as cloakStyleFragment,Sj as clearVideoCache,N as clearTranslationCache,dh as clearStoreCache,Qk as clearStorage,rq as clearSignatureCache,Af as clearServerData,sj as clearPlaceholderCache,mg as clearOnceStore,Cd as clearNonce,bb as clearMiddleware,Ee as clearImagePlaceholders,Ae as clearImageDeliveryCatalog,zl as clearImageCache,e as clearErrorMessages,Nf as clearDevCaches,xc as clearCustomFilters,wg as clearComposers,eh as clearComposableCache,Di as clearComponentCache,Bj as clearCache,Db as clearBlankCache,gp as cleanupLoadingIndicator,tm as classifyScript,um as classifyAllScripts,Vo as checkTemplateFile,Wo as checkTemplate,Of as checkCache,oq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Cn as channel,vo as captureScreenshots,uo as captureScreenshot,Z as cancelPendingLoads,Uk as calculateSha1,Wi as calculateOptimalWidths,Pf as cacheTemplate,Yb as cacheEngineFingerprint,ck as buildWebComponents,Yo as buildVirtualSource,br as buildViews,Gp as buildUrl,Ke as buildSuspenseResolveScript,Or as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Qm as buildRuntimeAsset,Rm as buildRouterAsset,Nr as buildLangPickerScript,aj as buildImageUrl,Lg as buildIdFragment,Qg as buildHtmlAttrs,dn as buildForProduction,Kn as buildComponentLibrary,pq as buildAuthParams,en as buildApp,Lr as buildAlternateLinks,Co as build,An as broadcastPrivate,Bn as broadcastPresence,xn as broadcast,Tp as brightness,Ob as bracketDepths,Op as blur,Eb as blankInertHtmlRegions,jq as batchSignUrls,af as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,$p as auto,ja as attributeValue,Sm as assetTags,Hb as asInvocableStatement,_r as arrayOf,Ir as applyTranslations,Hj as applyTransformations,pi as applySlots,Gn as applyPropDefaults,cq as applyPreset,Sg as applyHtmlAttrs,he as applyHead,Hc as applyFilters,Bm as appendVary,Id as apiCspPreset,Da as animationGroupDirective,Yj as analyzeVideo,hn as analyzeUsage,rm as analyzeTemplate,sm as analyzeProject,hn as analyzeDirectiveUsage,_c as analyticsDirective,Mo as addStore,Lo as addPage,Md as addNonceToInlineContent,No as addLayout,Ko as addComponent,$m as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Hf as __setSignalsGeneratorsForTest,Jg as __setBuildIdForTest,Pj as VideoProcessorCache,$h as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,ld as Tokenizer,To as TemplateTypeChecker,yo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,mr as Show,Le as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,ec as STX_AUTO_IMPORTS,Tb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,xm as SPA_NAV_HEADER,Fb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,$c as RESPONSE_STATUS_KEY,ad as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Bo as ProductionBuild,or as Portal,Io as PROJECT_TEMPLATES,bq as PRESETS,sb as NON_CLIENT_PRIMITIVES,xp as MemorySessionStore,Ti as MIME_TYPES,Qi as MEDIA_DEFAULT_WIDTHS,Si as MEDIA_DEFAULT_FORMATS,Lm as LAYOUT_TYPES_FILE,Ej as ImageProcessorCache,tl as ImageProcessingError,sp as HydrationRuntime,Bk as HotReloadServer,mb as HeatmapAggregator,Og as HTML_CLASS_MARKER,Ng as HTML_ATTRS_MARKER,fr as Fragment,nr as For,ym as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Jk as EXTERNALIZED_ASSET_DIR,fl as DeployError,gl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Sb as DEFAULT_STATE_DIR,il as DEFAULT_QUALITY,hj as DEFAULT_PLACEHOLDER_OPTIONS,hl as DEFAULT_FORMATS,Ri as DEFAULT_DPR_VALUES,jp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,$i as COMMON_SIZES,Ag as COLOR_MODE_BOOT_MARKER,Bg as COLOR_MODE_BOOT_GLOBAL,Mg as CLOAK_STYLE,En as BroadcastServer,Dn as Broadcast,Gg as BUILD_ID_META,Hg as BUILD_ID_HEADER,Pb as BROWSER_CORE_IMPORTS,ij as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,yr as $path};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Bo as i,Cp as h,Fm as k,Ho as T,Vm as c,Wm as l,nm as R,om as O,xm as P}from"./chunk-d964bsxm.js";import{Js as S,Ls as y}from"./chunk-3agx4hyd.js";import{cu as m}from"./chunk-799s9mwc.js";import{fw as YJ,iw as ZJ,jw as $J}from"./chunk-d6yyzpsv.js";import{qw as XJ,tw as q}from"./chunk-5g6rprcy.js";var r=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function s(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(r.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var o=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function C(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=y(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=o.exec(j);if(F){let K=s(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function t(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function v(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function e(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function JJ(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=e(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=t(J),Z;while((Z=X.exec(J))!==null){if(v(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||a.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!JJ(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(v(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var NJ="X-STX-Router",_J="private, no-store";function AJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function QJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:QJ(J,"X-STX-Router")}}import E from"path";YJ();var UJ="stx-page-head:",WJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,D={dev:null,prod:null};function jJ(){let J=m()?"dev":"prod",Y=D[J];if(Y!==null)return Y;try{let Q=($J(),XJ(ZJ)),X=J==="dev"&&typeof Q.getRouterScriptDev==="function"?Q.getRouterScriptDev:Q.getRouterScript;D[J]=`<script>${X()}</script>`}catch{D[J]=""}return D[J]}async function RJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function PJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=C(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:A}=await import("./chunk-vz0ebk4j.js"),I=await A(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let _=await B(K,z,J,{...N,...I,...Y},new Set),H=_.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:_.substring(0,H),afterSlot:_.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function kJ(J,Y,Q){let X,$="",Z=Y.match(WJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=jJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
2
+ import{Bm as P,Fo as i,Gp as h,Jm as k,Lo as T,Zm as c,_m as l,rm as R,sm as O}from"./chunk-j82hfkcf.js";import{Ns as S,Ps as y}from"./chunk-xe93ae3r.js";import{gu as m}from"./chunk-bt8w146r.js";import{jw as YJ,mw as ZJ,nw as $J}from"./chunk-beextc84.js";import{uw as XJ,xw as q}from"./chunk-p5d8sb50.js";var r=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function s(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(r.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var o=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function C(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=y(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=o.exec(j);if(F){let K=s(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function t(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function v(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function e(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function JJ(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=e(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=t(J),Z;while((Z=X.exec(J))!==null){if(v(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||a.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!JJ(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(v(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var NJ="X-STX-Router",_J="private, no-store";function AJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function QJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:QJ(J,"X-STX-Router")}}import E from"path";YJ();var UJ="stx-page-head:",WJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,D={dev:null,prod:null};function jJ(){let J=m()?"dev":"prod",Y=D[J];if(Y!==null)return Y;try{let Q=($J(),XJ(ZJ)),X=J==="dev"&&typeof Q.getRouterScriptDev==="function"?Q.getRouterScriptDev:Q.getRouterScript;D[J]=`<script>${X()}</script>`}catch{D[J]=""}return D[J]}async function RJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function PJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=C(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:A}=await import("./chunk-v3yh931q.js"),I=await A(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let _=await B(K,z,J,{...N,...I,...Y},new Set),H=_.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:_.substring(0,H),afterSlot:_.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function kJ(J,Y,Q){let X,$="",Z=Y.match(WJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=jJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -26,5 +26,5 @@ ${W}
26
26
  `));if($.length>0)N.push($.join(`
27
27
  `));if(G.length>0)N.push(G.join(`
28
28
  `));return N.push(K),N.join(`
29
- `)}import M from"fs";import p from"path";function fJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function gJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function uJ(J){let Y=p.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function FJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function GJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!GJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await FJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=zJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function zJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function dJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function aJ(J,Y={}){return(await n(J,Y)).html}async function tJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-wjcrcbd1.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-605955nh.js"),{defaultConfig:B}=await import("./chunk-yz0d60px.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},A=Object.keys(K).map((z)=>({id:z,render:async()=>{let _=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:_},J.sourceFile,N,new Set)}})),I=new Set(A.map((z)=>z.id));F=[...(F||[]).filter((z)=>!I.has(z.id)),...A]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function n(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!O(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await d(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=i(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!O(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?P(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(R(J.html,Z)),context:Q,cookies:X.cookies}}async function eJ(J,Y={}){if(!J.hasServerScripts&&!O(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!O(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?P(String(U)):"")}catch{X.set($,"")}return R(J.fragment,X)}
29
+ `)}import M from"fs";import p from"path";function fJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function gJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function uJ(J){let Y=p.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function FJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function GJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!GJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await FJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=zJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function zJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function dJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function aJ(J,Y={}){return(await n(J,Y)).html}async function tJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-wa3ks5zv.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-rwa10jm4.js"),{defaultConfig:B}=await import("./chunk-2p68bkza.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},A=Object.keys(K).map((z)=>({id:z,render:async()=>{let _=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:_},J.sourceFile,N,new Set)}})),I=new Set(A.map((z)=>z.id));F=[...(F||[]).filter((z)=>!I.has(z.id)),...A]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function n(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!O(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await d(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=i(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!O(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?P(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(R(J.html,Z)),context:Q,cookies:X.cookies}}async function eJ(J,Y={}){if(!J.hasServerScripts&&!O(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!O(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?P(String(U)):"")}catch{X.set($,"")}return R(J.fragment,X)}
30
30
  export{s as Xf,C as Yf,e as Zf,x as _f,NJ as $f,_J as ag,AJ as bg,g as cg,QJ as dg,IJ as eg,RJ as fg,PJ as gg,kJ as hg,KJ as ig,TJ as jg,SJ as kg,fJ as lg,gJ as mg,uJ as ng,b as og,FJ as pg,GJ as qg,d as rg,dJ as sg,aJ as tg,tJ as ug,eJ as vg};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ls as a,ms as b}from"./chunk-1t3j8a0q.js";import"./chunk-p5d8sb50.js";export{b as resolveStxTargets,a as looksLikeGlob};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$l as c,cm as d,dm as e,em as f,fm as g,gm as h,hm as i,im as j,jm as k,km as l,lm as m,mm as n}from"./chunk-j82hfkcf.js";import"./chunk-rh7mwwb4.js";import"./chunk-1t3j8a0q.js";import{ns as a,os as b}from"./chunk-01ggk8k8.js";import"./chunk-25b8z7xa.js";import"./chunk-hk8j3eps.js";import"./chunk-xe93ae3r.js";import"./chunk-1spzqjve.js";import"./chunk-f2qbjr3z.js";import"./chunk-1xwfws06.js";import"./chunk-r1rfwm01.js";import"./chunk-ahpmjg3f.js";import"./chunk-bt8w146r.js";import"./chunk-6p6b01kp.js";import"./chunk-x7dv5rq7.js";import"./chunk-e0kzyf1g.js";import"./chunk-wv8h3d68.js";import"./chunk-beextc84.js";import"./chunk-yr7camcd.js";import"./chunk-p5d8sb50.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Mi as a,Ni as b,Oi as c,Pi as d,Qi as e,Ri as f,Si as g,Ti as h,Ui as i,Vi as j,Wi as k,Xi as l,Yi as m,Zi as n}from"./chunk-ytx17bg2.js";import"./chunk-j82hfkcf.js";import"./chunk-rh7mwwb4.js";import"./chunk-1t3j8a0q.js";import"./chunk-01ggk8k8.js";import"./chunk-25b8z7xa.js";import"./chunk-hk8j3eps.js";import"./chunk-xe93ae3r.js";import"./chunk-1spzqjve.js";import"./chunk-f2qbjr3z.js";import"./chunk-1xwfws06.js";import"./chunk-r1rfwm01.js";import"./chunk-ahpmjg3f.js";import"./chunk-bt8w146r.js";import"./chunk-6p6b01kp.js";import"./chunk-x7dv5rq7.js";import"./chunk-e0kzyf1g.js";import"./chunk-wv8h3d68.js";import"./chunk-beextc84.js";import"./chunk-yr7camcd.js";import"./chunk-p5d8sb50.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};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import y from"fs";import V from"path";var B=/\b(?:state|derived|effect|ref|reactive|computed|watch|watchEffect|useModel)\s*(?:<[^<>()]*>)?\s*\(/,X=/(?:^|\n)\s*(?:import|export)\s+(?:[^'"]*?\sfrom\s+)?['"](\.[^'"]*)['"]/g,D=["",".ts",".tsx",".js",".jsx",".mts",".mjs","/index.ts","/index.js"],g=3;function H(j,q){let J=V.resolve(V.dirname(q),j);for(let Q of D){let z=J+Q;try{if(y.statSync(z).isFile())return z}catch{}}return null}function K(j,q,J=0,Q=new Set){if(!q||J>=g)return!1;for(let z of j.matchAll(X)){let Z=H(z[1],q);if(!Z||Q.has(Z))continue;Q.add(Z);let $;try{$=y.readFileSync(Z,"utf8")}catch{continue}if(B.test($))return!0;if(K($,Z,J+1,Q))return!0}return!1}var Y=["batch","clearServerData","computed","configureFetch","defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","defineStore","derived","effect","goBack","goForward","inject","invalidateRoute","isDerived","isSignal","navigate","nextTick","onBeforeMount","onBeforeUnmount","onDestroy","onMount","onMounted","onUnmounted","peek","provide","reactive","ref","refresh","registerStoresClient","setRouteParams","state","untrack","useAsync","useClickOutside","useColorMode","useCookie","useCounter","useDark","useDebounce","useDebouncedValue","useDocumentVisibility","useEventListener","useFetch","useFocus","useHead","useId","useInterval","useLocalStorage","useMediaQuery","useModel","useMutation","useOptimistic","usePreferredContrast","usePreferredDark","usePreferredLight","usePreferredReducedMotion","useQuery","useReactiveProp","useRef","useRoute","useRouteParam","useRouteParams","useScrollLock","useSearchParams","useSeoMeta","useSessionStorage","useSlots","useStore","useThrottle","useTimeout","useToggle","useWebSocket","watch","watchEffect","watchMultiple","withDefaults"],R=["onMount","onDestroy"];function A(j="const",q=[],J){let Q=q.length?Y.filter((z)=>!q.includes(z)):Y;if(J!==void 0)Q=Q.filter((z)=>{let Z=z.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(^|[^\\w$])${Z}(?![\\w$])`).test(J)});return`${j} { ${Q.join(", ")} } = window.stx;`}var k=["defineEmits","defineExpose","definePageMeta","defineProps","defineSlots","withDefaults"],E={useServerData:{category:"server-only",reason:"loads and serializes request-scoped data from <script server>; clients consume it through a keyed useFetch/useAsyncData."},redirect:{category:"server-only",reason:"returns an HTTP Response for <script server>/edge/build; use navigate() on the client."},useAsyncData:{category:"browser-composable",reason:"inlined on demand from src/composables when a script references it; reachable, not a bare global."},Teleport:{category:"compile-time-directive",reason:"template tag resolved by processTeleportDirectives; not a script callable."},StxModalBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; drive open/close from the modal store."},StxToastBuiltin:{category:"builtin-component",reason:"builtin component used as a template tag; push toasts via the toast store."},useForm:{category:"browser-composable",reason:"reactive form primitive; lives in src/composables/use-form.ts and is inlined on demand when a <script client> references it (#1846)."},defineForm:{category:"browser-composable",reason:"deprecated alias of useForm, kept for a minor (#1843). Same delivery path \u2014 inlined on demand from src/composables/use-form.ts."},validateFields:{category:"isomorphic-import",reason:"pure validation helper; import it directly, not auto-delivered to <script client> (per client-api-delivery.test.ts)."},validateField:{category:"isomorphic-import",reason:"singular pure validation helper; same explicit-import boundary as validateFields."}},x=Y.filter((j)=>!k.includes(j));function O(j){if(!j)return!1;return x.some((q)=>new RegExp(`\\b${q}\\s*(?:<[^>]*>)?\\s*\\(`).test(j))}var M=[/@if\s*=/,/@for\s*=/,/@show\s*=/,/@model\s*=/,/@bind:/,/@class\s*=/,/@style\s*=/,/\bx-data\s*=/,/\bstate\s*(?:<[^>]*>)?\s*\(/,/\bderived\s*(?:<[^>]*>)?\s*\(/,/\beffect\s*(?:<[^>]*>)?\s*\(/,/\bref\s*(?:<[^>]*>)?\s*\(/,/\bcomputed\s*(?:<[^>]*>)?\s*\(/,/\breactive\s*(?:<[^>]*>)?\s*\(/,/\bwatch\s*(?:<[^>]*>)?\s*\(/,/\bwatchEffect\s*(?:<[^>]*>)?\s*\(/,/\s:[a-z][\w-]*\s*=\s*["']/i,/\s:(?:if|else-if|else|for|show|text|html|model)\s*=/,/data-stx(?:-auto)?(?![-\w])/,/data-stx-scoped/],C=/\s@[a-z][\w.:-]*\s*=/i;function T(j,q){if(!j)return!1;let J=U(j);return F(J,q)}function F(j,q){if(M.some((J)=>J.test(j)))return!0;if(O(j))return!0;return P(j,q)}function P(j,q){if(!q)return!1;for(let J of j.matchAll(/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script\s*>/gi))if(K(J[1],q))return!0;return!1}function d(j,q){if(!j)return!1;let J=U(j);return C.test(J)||F(J,q)}var u=["if","else-if","elseif","else","for","show","key","text","html","model","ref"];function _(j){return u.includes(j.toLowerCase())}var G=["x-text","x-html","x-model","x-show","x-if","x-for","x-cloak","x-ref","x-data","x-bind","x-class","x-style","x-tooltip","x-tooltip-position"],b=["x-init","x-transition","x-effect","x-on"],p=[...G,...b];function c(){return`{${G.map((j)=>`'${j}':1`).join(",")}}`}var v=65536,S=4,w=new Map;function r(){w.clear()}function U(j){if(!j)return j;if(!j.includes("<!--")&&!/<(?:pre|code)\b/i.test(j))return j;let q=j.length>=v;if(q){let z=w.get(j);if(z!==void 0)return z}let J=(z)=>z.replace(/(<[^>]*>)|([^<]+)/g,(Z,$,W)=>$??" ".repeat(W.length)),Q=j.replace(/(<pre\b[^>]*>)([\s\S]*?)(<\/pre>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/(<code\b[^>]*>)([\s\S]*?)(<\/code>)/gi,(z,Z,$,W)=>Z+J($)+W).replace(/<!--[\s\S]*?-->/g,(z)=>" ".repeat(z.length));if(q){while(w.size>=S){let z=w.keys().next();if(z.done)break;w.delete(z.value)}w.set(j,Q)}return Q}
3
+ export{K as jv,Y as kv,R as lv,A as mv,k as nv,E as ov,x as pv,O as qv,T as rv,d as sv,u as tv,_ as uv,G as vv,b as wv,p as xv,c as yv,r as zv,U as Av};
@@ -5,4 +5,4 @@ import Q from"fs";import U from"path";function W(H){let v=[],j=H.pwa;if(v.push({
5
5
  `);let J=["required","recommended","optional"];for(let L of J){let N=H.checks.filter((K)=>K.category===L);if(N.length===0)continue;v.push(`
6
6
  ${L.toUpperCase()}:`);for(let K of N){let T=K.passed?"\x1B[32m\u2713\x1B[0m":"\x1B[31m\u2717\x1B[0m";if(v.push(` ${T} ${K.name}: ${K.message}`),K.details)v.push(` ${K.details}`)}}return v.push(""),v.join(`
7
7
  `)}
8
- export{W as Dk,X as Ek,Y as Fk,A as Gk,B as Hk};
8
+ export{W as Fk,X as Gk,Y as Hk,A as Ik,B as Jk};
@@ -2,4 +2,4 @@
2
2
  function A(h){let q=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;h=h.replace(q,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
3
3
  `});let v=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return h=h.replace(v,(w,j)=>{return`const { ${j.split(",").map((k)=>k.trim()).filter(Boolean).join(", ")} } = window.__composables
4
4
  `}),h}function B(h){return h.replace(/^import\s+[^'"]*?from\s*['"][^'"]+['"]\s*;?[ \t]*$/gm,"").replace(/^import\s+['"][^'"]+['"]\s*;?[ \t]*$/gm,"")}
5
- export{A as bv,B as cv};
5
+ export{A as fv,B as gv};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{mt as uJ}from"./chunk-vaggjvsm.js";import{tw as gJ}from"./chunk-5g6rprcy.js";import z from"path";import{hasLocalConfig as yJ}from"bunfig";var wJ={fg:{light:"gray-900",dark:"gray-100",description:"Primary text"},"fg-strong":{light:"gray-700",dark:"gray-300",description:"Labels, secondary headings"},"fg-muted":{light:"gray-600",dark:"gray-400",description:"Supporting text"},"fg-soft":{light:"gray-500",dark:"gray-400",description:"De-emphasised text"},"fg-subtle":{light:"gray-400",dark:"gray-500",description:"Placeholders, disabled text"},surface:{light:"gray-50",dark:"gray-800",description:"Page and panel background"},"surface-raised":{light:"gray-100",dark:"gray-700",description:"Cards, popovers"},"surface-sunken":{light:"gray-200",dark:"gray-700",description:"Wells, track backgrounds"},line:{light:"gray-200",dark:"gray-700",description:"Default border, divider"},"line-strong":{light:"gray-300",dark:"gray-600",description:"Input border, focus ring track"},accent:{light:"indigo-600",dark:"indigo-400",description:"Primary action, selected state"},info:{light:"blue-600",dark:"blue-400",description:"Informational emphasis, links"},danger:{light:"red-600",dark:"red-400",description:"Errors, destructive actions"},success:{light:"green-600",dark:"green-400",description:"Confirmation"},warning:{light:"yellow-500",dark:"yellow-400",description:"Caution"},"accent-solid":{light:"indigo-600",dark:"indigo-500",description:"Primary button fill"},"info-solid":{light:"blue-600",dark:"blue-500",description:"Informational fill"},"danger-solid":{light:"red-600",dark:"red-500",description:"Destructive button fill"},"success-solid":{light:"green-600",dark:"green-500",description:"Confirmation fill"}};function p(J){return`--stx-${J}`}function m(J,Q){let Z=Q.lastIndexOf("-");if(Z===-1)return typeof J[Q]==="string"?J[Q]:void 0;let $=J[Q.slice(0,Z)];if(!$||typeof $!=="object")return;let U=$[Q.slice(Z+1)];return typeof U==="string"?U:void 0}function BJ(J){let Q={};for(let[Z,$]of Object.entries(wJ)){let U=m(J,$.light);if(U===void 0)continue;Q[Z]=`var(${p(Z)}, ${U})`}return Q}function HJ(J){let Q=[],Z=[];for(let[$,U]of Object.entries(wJ)){let F=m(J,U.light),W=m(J,U.dark);if(F===void 0)continue;if(Q.push(` ${p($)}: ${F};`),W!==void 0)Z.push(` ${p($)}: ${W};`)}if(Q.length===0)return"";return["/* stx role tokens \u2014 override any of these to re-theme by meaning. */",":root {",...Q,"}",".dark {",...Z,"}",""].join(`
2
+ import{qt as uJ}from"./chunk-1spzqjve.js";import{xw as gJ}from"./chunk-p5d8sb50.js";import z from"path";import{hasLocalConfig as yJ}from"bunfig";var wJ={fg:{light:"gray-900",dark:"gray-100",description:"Primary text"},"fg-strong":{light:"gray-700",dark:"gray-300",description:"Labels, secondary headings"},"fg-muted":{light:"gray-600",dark:"gray-400",description:"Supporting text"},"fg-soft":{light:"gray-500",dark:"gray-400",description:"De-emphasised text"},"fg-subtle":{light:"gray-400",dark:"gray-500",description:"Placeholders, disabled text"},surface:{light:"gray-50",dark:"gray-800",description:"Page and panel background"},"surface-raised":{light:"gray-100",dark:"gray-700",description:"Cards, popovers"},"surface-sunken":{light:"gray-200",dark:"gray-700",description:"Wells, track backgrounds"},line:{light:"gray-200",dark:"gray-700",description:"Default border, divider"},"line-strong":{light:"gray-300",dark:"gray-600",description:"Input border, focus ring track"},accent:{light:"indigo-600",dark:"indigo-400",description:"Primary action, selected state"},info:{light:"blue-600",dark:"blue-400",description:"Informational emphasis, links"},danger:{light:"red-600",dark:"red-400",description:"Errors, destructive actions"},success:{light:"green-600",dark:"green-400",description:"Confirmation"},warning:{light:"yellow-500",dark:"yellow-400",description:"Caution"},"accent-solid":{light:"indigo-600",dark:"indigo-500",description:"Primary button fill"},"info-solid":{light:"blue-600",dark:"blue-500",description:"Informational fill"},"danger-solid":{light:"red-600",dark:"red-500",description:"Destructive button fill"},"success-solid":{light:"green-600",dark:"green-500",description:"Confirmation fill"}};function p(J){return`--stx-${J}`}function m(J,Q){let Z=Q.lastIndexOf("-");if(Z===-1)return typeof J[Q]==="string"?J[Q]:void 0;let $=J[Q.slice(0,Z)];if(!$||typeof $!=="object")return;let U=$[Q.slice(Z+1)];return typeof U==="string"?U:void 0}function BJ(J){let Q={};for(let[Z,$]of Object.entries(wJ)){let U=m(J,$.light);if(U===void 0)continue;Q[Z]=`var(${p(Z)}, ${U})`}return Q}function HJ(J){let Q=[],Z=[];for(let[$,U]of Object.entries(wJ)){let F=m(J,U.light),W=m(J,U.dark);if(F===void 0)continue;if(Q.push(` ${p($)}: ${F};`),W!==void 0)Z.push(` ${p($)}: ${W};`)}if(Q.length===0)return"";return["/* stx role tokens \u2014 override any of these to re-theme by meaning. */",":root {",...Q,"}",".dark {",...Z,"}",""].join(`
3
3
  `)}function OJ(J){return typeof J==="object"&&J!==null&&!Array.isArray(J)}function h(J,Q){let Z={...J};for(let[$,U]of Object.entries(Q))Z[$]=OJ(U)&&OJ(Z[$])?h(Z[$],U):U;return Z}function LJ(J={},Q={}){let Z=J.theme||{},$=Q.theme||{},{extend:U,...F}=$,{extend:W,...j}=Z,V=j.colors||{};j.colors={...V,...BJ(V)};let X=h(j,F),q=h(W||{},U||{});if(Object.keys(q).length>0)X.extend=q;let G=[...J.safelist||[],...Q.safelist||[]],w={...J.shortcuts||{},...Q.shortcuts||{}},K=[...J.preflights||[],...Q.preflights||[]];return{config:{...J,...Q,theme:X,safelist:G,shortcuts:w,...K.length>0?{preflights:K}:{},content:[],output:""},safelist:G,shortcuts:w,includePreflight:Q.preflight!==!1,minify:Q.minify===!0,tokenCSS:HJ(V)}}var x=/<script\b[^>]*>/iy,c=/<\/script\s*>/ig,S=/<style\b[^>]*>/iy,o=/<\/style\s*>/ig;function KJ(J,Q,Z,$){Z.lastIndex=Q;let U=Z.exec(J);if(!U||U.index!==Q)return-1;$.lastIndex=Z.lastIndex;let F=$.exec(J);if(!F)return-1;return F.index+F[0].length}function l(J,Q){return KJ(J,Q,x,c)}function IJ(J,Q){return KJ(J,Q,S,o)}function iJ(J,Q){if(!J.startsWith("<!--",Q))return-1;let Z=J.indexOf("-->",Q+4);if(Z===-1)return-1;return Z+3}function DJ(J,Q){if(J.startsWith("<!--",Q)){let U=iJ(J,Q);return U===-1?J.length:U}if(x.lastIndex=Q,x.exec(J)?.index===Q){c.lastIndex=x.lastIndex;let U=c.exec(J);return U?U.index+U[0].length:J.length}if(S.lastIndex=Q,S.exec(J)?.index===Q){o.lastIndex=S.lastIndex;let U=o.exec(J);return U?U.index+U[0].length:J.length}return-1}function rJ(J,Q){let Z=[],$=0,U=J.length,F=!1,W=null;while($<U){let j=J[$];if(F){if(W){if(j===W)W=null}else if(j==='"'||j==="'")W=j;else if(j===">")F=!1;$++;continue}if(j!=="<"){let G=J.indexOf("<",$+1);if(G===-1)break;$=G;continue}let V=Q(J,$);if(V>$){Z.push({start:$,end:V,token:J.slice($,V)}),$=V;continue}let X=DJ(J,$);if(X>$){$=X;continue}let q=J.charCodeAt($+1);if(q>=65&&q<=90||q>=97&&q<=122)F=!0;$++}return Z}function vQ(J){let Q=0,Z=0,$=0,U=!1,F=null;while($<J.length){if(U){let G=J[$];if(F){if(G===F)F=null}else if(G==='"'||G==="'")F=G;else if(G===">")U=!1;$++;continue}let W=J.indexOf("<",$),j=W===-1?J.length:W;while($<j){let G=J[$++];if(G==="{")Q++;else if(G==="}")Z++;if(Q>=2&&Z>=2)return!0}if(W===-1)break;let V=DJ(J,W);if(V>W){$=V;continue}let X=J.charCodeAt(W+1),q=X===47?J.charCodeAt(W+2):X;if(q>=65&&q<=90||q>=97&&q<=122)U=!0;$=W+1}return!1}function NJ(J,Q){while(J.size>=Q){let Z=J.keys().next();if(Z.done)return;J.delete(Z.value)}}var nJ=65536,cJ=12,i=new Map;function a(J,Q,Z,$){let U=$!==void 0&&J.length>=nJ,F=U?`${$}\x00${J}`:"";if(U){let q=i.get(F);if(q)return{output:q.output,tokens:q.tokens.slice()}}let W=rJ(J,Q);if(W.length===0)return{output:J,tokens:[]};let j=W.map((q)=>q.token),V="",X=0;for(let q=0;q<W.length;q++){let G=W[q];V+=J.slice(X,G.start),V+=Z(G.token,q),X=G.end}if(V+=J.slice(X),U)return NJ(i,cJ),i.set(F,{output:V,tokens:j}),{output:V,tokens:j.slice()};return{output:V,tokens:j}}var oJ=65536,lJ=4,r=new Map;function n(J,Q,Z){return{output:Q,scripts:Z,restore:($)=>$===Q?J:aJ($,Z)}}function RQ(J){let Q=J.length>=oJ;if(Q){let U=r.get(J);if(U)return n(J,U.output,U.scripts.slice())}let{output:Z,tokens:$}=a(J,l,(U,F)=>`\x00STX_SCRIPT_${F}\x00`);if(Q)return NJ(r,lJ),r.set(J,{output:Z,scripts:$}),n(J,Z,$.slice());return n(J,Z,$)}function aJ(J,Q){if(Q.length===0)return J;return J.replace(/\x00STX_SCRIPT_(\d+)\x00/g,(Z,$)=>Q[+$]??"")}function MJ(J,Q=""){let Z=`${J}${Q}`,$=0;for(let U=0;U<Z.length;U++){let F=Z.charCodeAt(U);$=($<<5)-$+F,$=$&$}return`stx-${Math.abs($).toString(36)}`}function PJ(J,Q,Z={}){let{prefix:$="",preserveHost:U=!0,scopeKeyframes:F=!0,scopeCustomProperties:W=!1}=Z;if(!J.trim())return"";let j=s(J),V=[],X=new Map;if(F)for(let q of j){let G=q.selector.match(/@keyframes\s+([a-z_-][a-z0-9_-]*)/i);if(G){let w=G[1],K=`${Q}_${w}`;X.set(w,K)}}for(let q of j){let G=AJ(q,Q,$,U,X,W);V.push(G)}return V.join(`
4
4
 
5
5
  `)}function s(J){let Q=[],Z=J.replace(/\/\*[\s\S]*?\*\//g,""),$=0,U="",F=!1,W="";for(let j=0;j<Z.length;j++){let V=Z[j];if(V==="@"&&$===0)F=!0;if(V==="{")$++;else if(V==="}"){if($--,$===0){if(F){W+=V;let X=W.match(/@([a-z-]+)\s*([^{]*)\{([\s\S]*)\}/i);if(X){let[,q,G,w]=X;if(q==="keyframes")Q.push({selector:`@keyframes ${G.trim()}`,declarations:w.trim()});else if(q==="media"||q==="supports"||q==="container"){let K=s(w);Q.push({selector:`@${q} ${G.trim()}`,declarations:K.map((M)=>`${M.selector} { ${M.declarations} }`).join(`
@@ -17,7 +17,7 @@ catch (e) {
17
17
  }
18
18
  throw e;
19
19
  }
20
- `),U.set(X,q)}return q(...j)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:W,context:Q.slice()});return W}clear(){this.pool.length=0,this.fnCache.clear()}}var CQ=new bJ;class kJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let W={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(W);while(this.violations.length>this.maxViolations)this.violations.shift();for(let V of this.violationHandlers)try{V(W)}catch{}let j=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(j);break;case"warn":console.warn(j);break;case"error":console.error(j);break;case"throw":if(F)throw Error(j);else console.warn(j);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var $J=null;function WQ(){if(!$J)$J=new kJ;return $J}var gQ=new Proxy({},{get(J,Q){return WQ()[Q]}});var xJ=[];function SJ(J){let Q=new ZJ(J);return xJ.push(Q),Q}function mQ(){for(let J of xJ)J.clear()}function UJ(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function hQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:EJ.statSync(Z).mtimeMs})}catch{}return Q}function iQ(J){for(let Q of J)try{if(EJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var O=null,WJ=!1,H=null,T="",A=!1,dJ=256,D=new Map,L=new Map,N=null,b=null;function y(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function FJ(J,Q){if(D.has(J))D.delete(J);else if(D.size>=dJ)D.delete(D.keys().next().value);D.set(J,Q)}function VQ(J){let Q=y(J);if(L.has(Q))L.delete(Q);else if(L.size>=dJ)L.delete(L.keys().next().value);return L.set(Q,J),Q}function eQ(J){let Q=L.get(J);if(Q===void 0)return;return L.delete(J),L.set(J,Q),Q}async function XQ(J){if(!N)return null;try{let Q=Bun.file(z.join(N,`cw-${y(J)}.css`));if(!await Q.exists())return null;return await Q.text()}catch{return null}}async function jQ(J,Q){if(!N)return;try{if(!fs.existsSync(N))fs.mkdirSync(N,{recursive:!0});await Bun.write(z.join(N,`cw-${y(J)}.css`),Q)}catch{}}async function fJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var qQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],GQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function zQ(){let J=[],Q=process.cwd();while(Q!==z.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of qQ)J.push(z.join(Q,Z,...$));Q=z.dirname(Q)}return J}function YQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&z.join(Q,"Code","Tools","ts-css"),Q&&z.join(Q,"Code","Tools","crosswind"),Q&&z.join(Q,"repos","stacks-org","ts-css"),Q&&z.join(Q,"repos","stacks-org","crosswind"),z.join(process.cwd(),"..","ts-css"),z.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(z.join($,"packages","toolkit","dist","engine","index.js")),J.push(z.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(z.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function pJ(){if(WJ)return O;WJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let W=await fJ(F);if(W){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${z.dirname(z.dirname(F))}`);return W}}return null};if(process.env.CROSSWIND_SRC){let U=z.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return O=F,O}let Q=await J(zQ());if(Q)return O=Q,O;let Z=GQ;for(let U of Z){let F=await fJ(U);if(F){if(O=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return O}}let $=await J(YQ());if($)return O=$,O;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function J0(){VJ.clear(),O=null,WJ=!1,H=null,T="",D.clear(),L.clear(),b=null}var CJ=!1;async function mJ(J){try{let Q=yJ({name:"css",cwd:J})?"css":yJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!CJ)CJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=z.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function wQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-yz0d60px.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=z.isAbsolute($.css)?$.css:z.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=z.isAbsolute($.css.config)?$.css.config:z.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await mJ(J)}function BQ(J){try{let Q=new WeakSet;return y(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function HQ(J){if(A)return T;A=!0;try{let Q=await pJ();if(!Q||!Q.build)return A=!1,"";if(!H)H=await mJ(J);if(!H)return A=!1,"";let Z=Q.defaultConfig?.theme||{},$=H.theme||{},U={...Q.defaultConfig,...H,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),W=await Q.build(U),j=performance.now()-F;if(T=W.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${W.classes.size} classes in ${j.toFixed(1)}ms`),U.output){let V=z.isAbsolute(U.output)?U.output:z.join(J,U.output),X=z.dirname(V);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(V,W.css)}return A=!1,W.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),A=!1,T}}async function Q0(J){H=null,await HQ(J)}function $0(){return T}function OQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let W of $[1].split(/\s+/))if(W.trim())Q.add(W.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let W=F[1].match(/'([^']+)'/g);if(W){for(let j of W)for(let V of j.slice(1,-1).split(/\s+/))if(V.trim())Q.add(V.trim())}F=U.exec(J)}return Q}var VJ=SJ(64);async function LQ(J,Q){let Z=VJ.get(UJ(J,Q,b));if(Z!==void 0)return Z;let $=await KQ(J,Q);if($)VJ.set(UJ(J,Q,b),$);return $}async function KQ(J,Q){try{let Z=await pJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):OQ(J);if($.size===0)return"";let U=Q?z.resolve(Q):process.cwd();if(!N)N=uJ(U,"cache");let F=[...$].sort().join(" "),W=`${b||"default"}::${F}`,j=D.get(W);if(j!==void 0)return FJ(W,j),j;let V=await XQ(W);if(V!==null)return FJ(W,V),V;if(!H)H=await wQ(U),b=BQ(H);let X=Z.defaultConfig||Z.config,q=H||{},G=LJ(X,q),{safelist:w,includePreflight:K,minify:M,tokenCSS:hJ}=G,XJ=G.config,_=new Z.CSSGenerator(XJ);for(let B of w)_.generate(B);for(let B of $)_.generate(B);let I=_.toCSS(K,M),jJ=XJ.shortcuts||q.shortcuts||{};for(let[B,f]of Object.entries(jJ)){if(!$.has(B)&&!w.includes(B))continue;let C=f.split(/\s+/).filter(Boolean);for(let R of C)_.generate(R)}I=_.toCSS(K,M);let v=I.split(`
20
+ `),U.set(X,q)}return q(...j)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:W,context:Q.slice()});return W}clear(){this.pool.length=0,this.fnCache.clear()}}var CQ=new bJ;class kJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let W={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(W);while(this.violations.length>this.maxViolations)this.violations.shift();for(let V of this.violationHandlers)try{V(W)}catch{}let j=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(j);break;case"warn":console.warn(j);break;case"error":console.error(j);break;case"throw":if(F)throw Error(j);else console.warn(j);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var $J=null;function WQ(){if(!$J)$J=new kJ;return $J}var gQ=new Proxy({},{get(J,Q){return WQ()[Q]}});var xJ=[];function SJ(J){let Q=new ZJ(J);return xJ.push(Q),Q}function mQ(){for(let J of xJ)J.clear()}function UJ(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function hQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:EJ.statSync(Z).mtimeMs})}catch{}return Q}function iQ(J){for(let Q of J)try{if(EJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var O=null,WJ=!1,H=null,T="",A=!1,dJ=256,D=new Map,L=new Map,N=null,b=null;function y(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function FJ(J,Q){if(D.has(J))D.delete(J);else if(D.size>=dJ)D.delete(D.keys().next().value);D.set(J,Q)}function VQ(J){let Q=y(J);if(L.has(Q))L.delete(Q);else if(L.size>=dJ)L.delete(L.keys().next().value);return L.set(Q,J),Q}function eQ(J){let Q=L.get(J);if(Q===void 0)return;return L.delete(J),L.set(J,Q),Q}async function XQ(J){if(!N)return null;try{let Q=Bun.file(z.join(N,`cw-${y(J)}.css`));if(!await Q.exists())return null;return await Q.text()}catch{return null}}async function jQ(J,Q){if(!N)return;try{if(!fs.existsSync(N))fs.mkdirSync(N,{recursive:!0});await Bun.write(z.join(N,`cw-${y(J)}.css`),Q)}catch{}}async function fJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var qQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],GQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function zQ(){let J=[],Q=process.cwd();while(Q!==z.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of qQ)J.push(z.join(Q,Z,...$));Q=z.dirname(Q)}return J}function YQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&z.join(Q,"Code","Tools","ts-css"),Q&&z.join(Q,"Code","Tools","crosswind"),Q&&z.join(Q,"repos","stacks-org","ts-css"),Q&&z.join(Q,"repos","stacks-org","crosswind"),z.join(process.cwd(),"..","ts-css"),z.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(z.join($,"packages","toolkit","dist","engine","index.js")),J.push(z.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(z.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function pJ(){if(WJ)return O;WJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let W=await fJ(F);if(W){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${z.dirname(z.dirname(F))}`);return W}}return null};if(process.env.CROSSWIND_SRC){let U=z.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return O=F,O}let Q=await J(zQ());if(Q)return O=Q,O;let Z=GQ;for(let U of Z){let F=await fJ(U);if(F){if(O=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return O}}let $=await J(YQ());if($)return O=$,O;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function J0(){VJ.clear(),O=null,WJ=!1,H=null,T="",D.clear(),L.clear(),b=null}var CJ=!1;async function mJ(J){try{let Q=yJ({name:"css",cwd:J})?"css":yJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!CJ)CJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=z.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function wQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-2p68bkza.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=z.isAbsolute($.css)?$.css:z.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=z.isAbsolute($.css.config)?$.css.config:z.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await mJ(J)}function BQ(J){try{let Q=new WeakSet;return y(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function HQ(J){if(A)return T;A=!0;try{let Q=await pJ();if(!Q||!Q.build)return A=!1,"";if(!H)H=await mJ(J);if(!H)return A=!1,"";let Z=Q.defaultConfig?.theme||{},$=H.theme||{},U={...Q.defaultConfig,...H,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),W=await Q.build(U),j=performance.now()-F;if(T=W.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${W.classes.size} classes in ${j.toFixed(1)}ms`),U.output){let V=z.isAbsolute(U.output)?U.output:z.join(J,U.output),X=z.dirname(V);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(V,W.css)}return A=!1,W.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),A=!1,T}}async function Q0(J){H=null,await HQ(J)}function $0(){return T}function OQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let W of $[1].split(/\s+/))if(W.trim())Q.add(W.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let W=F[1].match(/'([^']+)'/g);if(W){for(let j of W)for(let V of j.slice(1,-1).split(/\s+/))if(V.trim())Q.add(V.trim())}F=U.exec(J)}return Q}var VJ=SJ(64);async function LQ(J,Q){let Z=VJ.get(UJ(J,Q,b));if(Z!==void 0)return Z;let $=await KQ(J,Q);if($)VJ.set(UJ(J,Q,b),$);return $}async function KQ(J,Q){try{let Z=await pJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):OQ(J);if($.size===0)return"";let U=Q?z.resolve(Q):process.cwd();if(!N)N=uJ(U,"cache");let F=[...$].sort().join(" "),W=`${b||"default"}::${F}`,j=D.get(W);if(j!==void 0)return FJ(W,j),j;let V=await XQ(W);if(V!==null)return FJ(W,V),V;if(!H)H=await wQ(U),b=BQ(H);let X=Z.defaultConfig||Z.config,q=H||{},G=LJ(X,q),{safelist:w,includePreflight:K,minify:M,tokenCSS:hJ}=G,XJ=G.config,_=new Z.CSSGenerator(XJ);for(let B of w)_.generate(B);for(let B of $)_.generate(B);let I=_.toCSS(K,M),jJ=XJ.shortcuts||q.shortcuts||{};for(let[B,f]of Object.entries(jJ)){if(!$.has(B)&&!w.includes(B))continue;let C=f.split(/\s+/).filter(Boolean);for(let R of C)_.generate(R)}I=_.toCSS(K,M);let v=I.split(`
21
21
  `);for(let[B,f]of Object.entries(jJ)){if(!$.has(B)&&!w.includes(B))continue;let C=f.split(/\s+/).filter(Boolean),R=[],g=[];for(let u of C){let qJ=u.startsWith("dark:"),GJ=`.${(qJ?u.slice(5):u).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let k=0;k<v.length;k++){let zJ=v[k].trim();if(zJ===`${GJ} {`||zJ.startsWith(`${GJ} {`)){let E=k,YJ="";while(E<v.length){if(YJ+=v[E],v[E].includes("}"))break;E++}let d=YJ.match(/\{([^}]+)\}/);if(d)if(qJ)g.push(d[1].trim());else R.push(d[1].trim());break}}}if(R.length)I+=`
22
22
  .${B} { ${R.join(" ")} }`;if(g.length)I+=`
23
23
  @media (prefers-color-scheme: dark) { .dark .${B} { ${g.join(" ")} } }`}return I=hJ+I,FJ(W,I),jQ(W,I),I}catch(Z){return console.warn("Failed to generate Css CSS:",Z),""}}async function Z0(J,Q,Z=!1,$=!1){let U=await LQ(J,Q);if(!U)return $?QJ(J):J;let F=Z?`<link data-css="generated" rel="stylesheet" href="/_stx/css.${VQ(U)}.css">`:`<style data-css="generated">
@@ -29,4 +29,4 @@ ${F}`);return F+J}function IQ(J,Q){let Z=JJ(J).map((V)=>({...V,replacement:""}))
29
29
  ${Q}`});else Z.push({start:0,end:0,replacement:Q})}}Z.sort((V,X)=>V.start-X.start||V.end-X.end);for(let V=1;V<Z.length;V++)if(Z[V].start<Z[V-1].end)return DQ(QJ(J),Q);let F=Array(Z.length*2+1),W=0,j=0;for(let V of Z)F[j++]=J.slice(W,V.start),F[j++]=V.replacement,W=V.end;return F[j]=J.slice(W),F.join("")}function DQ(J,Q){let Z=/(?:<style\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>[\s\S]*?<\/style>|<link\b[^>]*\bdata-css=(?:"generated"|'generated')[^>]*>)/g;if(Z.test(J)){let $=!1;return J.replace(Z,()=>{if($)return"";return $=!0,Q})}if(J.includes("</head>"))return J.replace("</head>",`${Q}
30
30
  </head>`);if(J.includes("<body"))return J.replace(/<body([^>]*)>/,`<body$1>
31
31
  ${Q}`);return Q+J}
32
- export{ZJ as Bs,fQ as Cs,gQ as Ds,SJ as Es,mQ as Fs,UJ as Gs,hQ as Hs,iQ as Is,l as Js,IJ as Ks,iJ as Ls,rJ as Ms,vQ as Ns,NJ as Os,a as Ps,RQ as Qs,aJ as Rs,h as Ss,LJ as Ts,JJ as Us,QJ as Vs,xQ as Ws,Y as Xs,eQ as Ys,pJ as Zs,J0 as _s,mJ as $s,wQ as at,BQ as bt,HQ as ct,Q0 as dt,$0 as et,OQ as ft,LQ as gt,Z0 as ht};
32
+ export{ZJ as Fs,fQ as Gs,gQ as Hs,SJ as Is,mQ as Js,UJ as Ks,hQ as Ls,iQ as Ms,l as Ns,IJ as Os,iJ as Ps,rJ as Qs,vQ as Rs,NJ as Ss,a as Ts,RQ as Us,aJ as Vs,h as Ws,LJ as Xs,JJ as Ys,QJ as Zs,xQ as _s,Y as $s,eQ as at,pJ as bt,J0 as ct,mJ as dt,wQ as et,BQ as ft,HQ as gt,Q0 as ht,$0 as it,OQ as jt,LQ as kt,Z0 as lt};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ai as a,Bi as b,Ci as c,Di as d,Ei as e,Fi as f,Gi as g}from"./chunk-bgrkxzr7.js";import"./chunk-5g6rprcy.js";export{c as shouldCacheComponent,a as processKeepAliveDirectives,g as onDeactivated,f as onActivated,e as generateKeepAliveRuntime,d as generateKeepAliveCSS,b as createKeepAliveCache};
2
+ import{Ai as a,Bi as b,Ci as c,Di as d,Ei as e,Fi as f,Gi as g}from"./chunk-bgrkxzr7.js";import"./chunk-p5d8sb50.js";export{c as shouldCacheComponent,a as processKeepAliveDirectives,g as onDeactivated,f as onActivated,e as generateKeepAliveRuntime,d as generateKeepAliveCSS,b as createKeepAliveCache};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Te as a}from"./chunk-ebd3z4j9.js";import"./chunk-j82hfkcf.js";import"./chunk-rh7mwwb4.js";import"./chunk-1t3j8a0q.js";import"./chunk-01ggk8k8.js";import"./chunk-25b8z7xa.js";import"./chunk-hk8j3eps.js";import"./chunk-xe93ae3r.js";import"./chunk-1spzqjve.js";import"./chunk-f2qbjr3z.js";import"./chunk-1xwfws06.js";import"./chunk-r1rfwm01.js";import"./chunk-ahpmjg3f.js";import"./chunk-bt8w146r.js";import"./chunk-6p6b01kp.js";import"./chunk-x7dv5rq7.js";import"./chunk-e0kzyf1g.js";import"./chunk-wv8h3d68.js";import"./chunk-beextc84.js";import"./chunk-yr7camcd.js";import"./chunk-p5d8sb50.js";export{a as startInteractive};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Af as L,Bf as w,Cf as x,Df as p,Ef as F,Ff as T,If as I,Jf as f,Kf as l,Lf as n,Mf as i,Nf as P,Of as o,Pf as a}from"./chunk-xe6zmdfq.js";import{ws as ZG}from"./chunk-ay336sqb.js";function HG(X,Z={}){let{src:G,alt:J,width:q,height:$,sizes:K="100vw",loading:Q="lazy",priority:Y=!1,quality:M=x,placeholder:N="none",formats:j=w,widths:C=L,decoding:B="async",fetchpriority:V,objectFit:O,objectPosition:W}=X,H=X.class,z=X.style,{processedImage:R,variants:_,optimize:E=!0,isDev:S=!1}=Z;if(_&&_.length>0)return OG(X,_,R);if(S||!E)return MG(X);return VG(X)}function OG(X,Z,G){let{src:J,alt:q,width:$,height:K,sizes:Q="100vw",loading:Y="lazy",priority:M=!1,decoding:N="async",fetchpriority:j,objectFit:C,objectPosition:B,placeholder:V="none"}=X,O=X.class,W=X.style,H=n(Z),z=l(Z),R=typeof Q==="object"?f(Q):Q,_=G?G.aspectRatio:$&&K?Number($)/Number(K):void 0,E=[];if(_)E.push(`aspect-ratio: ${_}`);if(C)E.push(`object-fit: ${C}`);if(B)E.push(`object-position: ${B}`);if(W)E.push(W);let S=E.length>0?` style="${E.join("; ")}"`:"",b=O?` class="${O}"`:"",u=M?"":` loading="${Y}"`,d=` decoding="${N}"`,h=j?` fetchpriority="${j}"`:M?' fetchpriority="high"':"",r=["avif","webp","jpeg","png"],s=[];for(let U of r){let D=H.get(U);if(D&&D.length>0){let m=I(D),QG=P(U);s.push(` <source type="${QG}" srcset="${m}" sizes="${R}" />`)}}let e="",t="",g;if(V!=="none"&&G?.placeholder){let U=`img-${Math.random().toString(36).slice(2,8)}`;if(e=`<div class="stx-image-wrapper" id="${U}">`,t="</div>",V==="blur")g=`
2
+ import{Af as L,Bf as w,Cf as x,Df as p,Ef as F,Ff as T,If as I,Jf as f,Kf as l,Lf as n,Mf as i,Nf as P,Of as o,Pf as a}from"./chunk-74r1zw2h.js";import{As as ZG}from"./chunk-hk8j3eps.js";function HG(X,Z={}){let{src:G,alt:J,width:q,height:$,sizes:K="100vw",loading:Q="lazy",priority:Y=!1,quality:M=x,placeholder:N="none",formats:j=w,widths:C=L,decoding:B="async",fetchpriority:V,objectFit:O,objectPosition:W}=X,H=X.class,z=X.style,{processedImage:R,variants:_,optimize:E=!0,isDev:S=!1}=Z;if(_&&_.length>0)return OG(X,_,R);if(S||!E)return MG(X);return VG(X)}function OG(X,Z,G){let{src:J,alt:q,width:$,height:K,sizes:Q="100vw",loading:Y="lazy",priority:M=!1,decoding:N="async",fetchpriority:j,objectFit:C,objectPosition:B,placeholder:V="none"}=X,O=X.class,W=X.style,H=n(Z),z=l(Z),R=typeof Q==="object"?f(Q):Q,_=G?G.aspectRatio:$&&K?Number($)/Number(K):void 0,E=[];if(_)E.push(`aspect-ratio: ${_}`);if(C)E.push(`object-fit: ${C}`);if(B)E.push(`object-position: ${B}`);if(W)E.push(W);let S=E.length>0?` style="${E.join("; ")}"`:"",b=O?` class="${O}"`:"",u=M?"":` loading="${Y}"`,d=` decoding="${N}"`,h=j?` fetchpriority="${j}"`:M?' fetchpriority="high"':"",r=["avif","webp","jpeg","png"],s=[];for(let U of r){let D=H.get(U);if(D&&D.length>0){let m=I(D),QG=P(U);s.push(` <source type="${QG}" srcset="${m}" sizes="${R}" />`)}}let e="",t="",g;if(V!=="none"&&G?.placeholder){let U=`img-${Math.random().toString(36).slice(2,8)}`;if(e=`<div class="stx-image-wrapper" id="${U}">`,t="</div>",V==="blur")g=`
3
3
  #${U} {
4
4
  position: relative;
5
5
  background-image: url('${G.placeholder}');
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ah as h,th as a,uh as b,vh as c,wh as d,xh as e,yh as f,zh as g}from"./chunk-sqvqwd0p.js";import"./chunk-5g6rprcy.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
2
+ import{Ah as h,th as a,uh as b,vh as c,wh as d,xh as e,yh as f,zh as g}from"./chunk-sqvqwd0p.js";import"./chunk-p5d8sb50.js";export{g as timingPlugin,c as pluginManager,a as definePlugin,f as debugPlugin,h as createVariablesPlugin,e as createFilterPlugin,d as createDirectivePlugin,b as PluginManager};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Bh as a,Ch as b,Dh as c,Eh as d,Fh as e,Gh as f,Hh as g}from"./chunk-7r9vgzg4.js";import"./chunk-5g6rprcy.js";export{d as useVirtualList,b as processVirtualListDirectives,f as processVirtualGridDirectives,e as processInfiniteListDirectives,c as generateVirtualListCSS,g as default,a as createVirtualList};
2
+ import{Bh as a,Ch as b,Dh as c,Eh as d,Fh as e,Gh as f,Hh as g}from"./chunk-7r9vgzg4.js";import"./chunk-p5d8sb50.js";export{d as useVirtualList,b as processVirtualListDirectives,f as processVirtualGridDirectives,e as processInfiniteListDirectives,c as generateVirtualListCSS,g as default,a as createVirtualList};
@@ -299,4 +299,4 @@ catch (error) {
299
299
  }
300
300
  })();
301
301
  </script>`}var N={name:"pwa.installButton",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return H(j,q)},hasEndTag:!0,description:"Renders a PWA install prompt button that appears when the app can be installed"},Q={name:"pwa.updatePrompt",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return J(j,q)},hasEndTag:!0,description:"Renders a PWA update notification UI when a new version is available"},T={name:"pwa.offlineIndicator",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return L(j,q)},hasEndTag:!0,description:"Renders an offline status indicator that shows when the user loses connection"},V={name:"pwa.pushSubscribe",handler:(j,z,k,E)=>{let q=k.__stx_options||{};return M(j,q)},hasEndTag:!0,description:"Renders a push notification subscription button"},X=[N,Q,T,V];function Z(j){return[...j,...X]}
302
- export{N as kw,Q as lw,T as mw,V as nw,X as ow,Z as pw};
302
+ export{N as ow,Q as pw,T as qw,V as rw,X as sw,Z as tw};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ji as O,Ki as w,Li as Z}from"./chunk-7we3xfde.js";import{Xk as R,cl as U,il as T}from"./chunk-r5kr6jk4.js";import{Yl as M,aq as k,rr as C,yo as W}from"./chunk-d964bsxm.js";import{bv as E,cv as L}from"./chunk-2tjk867y.js";import{gv as B}from"./chunk-deqnt1w5.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
2
+ import{Ji as O,Ki as w,Li as Z}from"./chunk-7we3xfde.js";import{Zk as R,el as U,kl as T}from"./chunk-4wpxbkbe.js";import{Co as W,am as M,eq as k,vr as C}from"./chunk-j82hfkcf.js";import{fv as E,gv as L}from"./chunk-x7dv5rq7.js";import{kv as B}from"./chunk-wv8h3d68.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
3
3
  ${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
4
4
 
5
5
  `),x=`;(function(){
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ho as R,Jp as H,kq as x,pr as g,wm as O}from"./chunk-d964bsxm.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;">
2
+ import{Am as O,Lo as R,Np as H,oq as x,tr as g}from"./chunk-j82hfkcf.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>
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{qw as W,rw as k,sw as G}from"./chunk-5g6rprcy.js";import A from"fs";import B from"path";function h(j){let q=0;for(let K=0;K<j.length;K++){let Q=j[K];q=(q<<5)-q+Q,q=q&q}return Math.abs(q).toString(16).padStart(8,"0")}function u(j,q){let K=B.basename(j);for(let Q of q)if(Q.startsWith("*.")){let Y=Q.slice(1);if(K.endsWith(Y))return!0}else if(Q.includes("*")){let Y=new RegExp(`^${Q.replace(/\*/g,".*")}$`);if(Y.test(K)||Y.test(j))return!0}else if(K===Q||j.includes(Q))return!0;return!1}function f(j,q,K){let Q=B.extname(j).toLowerCase(),Y=l[Q],X=(K.maxFileSizeKB||500)*1024;if(q>X)return!1;if(K.exclude&&u(j,K.exclude))return!1;if(K.include&&K.include.length>0){for(let Z of K.include)if(Z.startsWith("*.")){if(j.endsWith(Z.slice(1)))return!0}else if(j.includes(Z))return!0}if(Y&&K[Y]===!0)return!0;if(!Y)return!1;return!1}function T(j,q,K,Q){let Y=A.readdirSync(j,{withFileTypes:!0});for(let X of Y){let Z=B.join(j,X.name);if(X.isDirectory()){if(["node_modules",".git",".stx"].includes(X.name))continue;T(Z,q,K,Q)}else if(X.isFile()){let O=A.statSync(Z),_=B.relative(q,Z);if(f(_,O.size,K)){let $=A.readFileSync(Z),L=h($),V=`/${_.replace(/\\/g,"/")}`;Q.push({url:V,revision:L,size:O.size})}}}}function U(j,q){let K=q.pwa?.precache,Q=[];if(!K?.enabled)return{entries:[],totalSize:0,fileCount:0};if(!A.existsSync(j))return{entries:[],totalSize:0,fileCount:0};T(j,j,K,Q),Q.sort((X,Z)=>X.url.localeCompare(Z.url));let Y=Q.reduce((X,Z)=>X+Z.size,0);return{entries:Q,totalSize:Y,fileCount:Q.length}}function J(j){if(j.entries.length===0)return"[]";return`[
2
+ import{uw as W,vw as k,ww as G}from"./chunk-p5d8sb50.js";import A from"fs";import B from"path";function h(j){let q=0;for(let K=0;K<j.length;K++){let Q=j[K];q=(q<<5)-q+Q,q=q&q}return Math.abs(q).toString(16).padStart(8,"0")}function u(j,q){let K=B.basename(j);for(let Q of q)if(Q.startsWith("*.")){let Y=Q.slice(1);if(K.endsWith(Y))return!0}else if(Q.includes("*")){let Y=new RegExp(`^${Q.replace(/\*/g,".*")}$`);if(Y.test(K)||Y.test(j))return!0}else if(K===Q||j.includes(Q))return!0;return!1}function f(j,q,K){let Q=B.extname(j).toLowerCase(),Y=l[Q],X=(K.maxFileSizeKB||500)*1024;if(q>X)return!1;if(K.exclude&&u(j,K.exclude))return!1;if(K.include&&K.include.length>0){for(let Z of K.include)if(Z.startsWith("*.")){if(j.endsWith(Z.slice(1)))return!0}else if(j.includes(Z))return!0}if(Y&&K[Y]===!0)return!0;if(!Y)return!1;return!1}function T(j,q,K,Q){let Y=A.readdirSync(j,{withFileTypes:!0});for(let X of Y){let Z=B.join(j,X.name);if(X.isDirectory()){if(["node_modules",".git",".stx"].includes(X.name))continue;T(Z,q,K,Q)}else if(X.isFile()){let O=A.statSync(Z),_=B.relative(q,Z);if(f(_,O.size,K)){let $=A.readFileSync(Z),L=h($),V=`/${_.replace(/\\/g,"/")}`;Q.push({url:V,revision:L,size:O.size})}}}}function U(j,q){let K=q.pwa?.precache,Q=[];if(!K?.enabled)return{entries:[],totalSize:0,fileCount:0};if(!A.existsSync(j))return{entries:[],totalSize:0,fileCount:0};T(j,j,K,Q),Q.sort((X,Z)=>X.url.localeCompare(Z.url));let Y=Q.reduce((X,Z)=>X+Z.size,0);return{entries:Q,totalSize:Y,fileCount:Q.length}}function J(j){if(j.entries.length===0)return"[]";return`[
3
3
  ${j.entries.map((K)=>` { url: '${K.url}', revision: '${K.revision}' }`).join(`,
4
4
  `)}
5
5
  ]`}function E(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;return`${(j/1048576).toFixed(2)} MB`}var l;var F=G(()=>{l={".html":"includeHtml",".htm":"includeHtml",".js":"includeJs",".mjs":"includeJs",".css":"includeCss",".png":"includeImages",".jpg":"includeImages",".jpeg":"includeImages",".gif":"includeImages",".webp":"includeImages",".svg":"includeImages",".ico":"includeImages",".woff":"includeFonts",".woff2":"includeFonts",".ttf":"includeFonts",".eot":"includeFonts",".otf":"includeFonts"}});function g(j){let q={"cache-first":{className:"CacheFirst",importFrom:"workbox-strategies"},"network-first":{className:"NetworkFirst",importFrom:"workbox-strategies"},"stale-while-revalidate":{className:"StaleWhileRevalidate",importFrom:"workbox-strategies"},"network-only":{className:"NetworkOnly",importFrom:"workbox-strategies"},"cache-only":{className:"CacheOnly",importFrom:"workbox-strategies"}};return q[j]||q["network-first"]}function R(j){return g(j).className}function M(j){let q=j.pwa;if(!q?.enabled)return"";let K=q.routes||[],Q=q.cacheStorage,Y=[];for(let X of K){let Z=R(X.strategy),O=[];if(X.maxAgeSeconds||X.maxEntries||Q?.maxEntries){let $=X.maxEntries||Q?.maxEntries||100,L=X.maxAgeSeconds||(Q?.maxAge?Q.maxAge*24*60*60:void 0);O.push(`new ExpirationPlugin({
@@ -1191,4 +1191,4 @@ if ('serviceWorker' in navigator) {
1191
1191
  });
1192
1192
  }
1193
1193
  </script>`}function Vj(){return'<link rel="manifest" href="/manifest.json">'}function Aj(j){return`<meta name="theme-color" content="${N(j)}">`}function N(j){return j.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}
1194
- export{U as Ik,J as Jk,E as Kk,F as Lk,w as Mk,z as Nk,y as Ok,qj as Pk,H as Qk,I as Rk,Lj as Sk,Uj as Tk,Vj as Uk,Aj as Vk};
1194
+ export{U as Kk,J as Lk,E as Mk,F as Nk,w as Ok,z as Pk,y as Qk,qj as Rk,H as Sk,I as Tk,Lj as Uk,Uj as Vk,Vj as Wk,Aj as Xk};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ji as D,Ki as S,Li as R}from"./chunk-7we3xfde.js";import{Yl as I,aq as K,rr as k}from"./chunk-d964bsxm.js";import{bv as x,cv as F}from"./chunk-2tjk867y.js";import{gv as y}from"./chunk-deqnt1w5.js";import P from"path";var U=new Map,T=new Map,u=["composables","functions"];function b(q){let z=P.basename(q,".ts");return z==="index"||z==="types"||q.endsWith(".d.ts")}async function p(q){if(q)return P.resolve(q);let z=`<default>:${process.cwd()}`,W=T.get(z);if(W!==void 0)return W;let H=await m();if(H!==null)T.set(z,H);return H}async function m(){let q=await k(),z=q.root||process.cwd(),W=q.composablesDir;if(W)return P.resolve(z,W);for(let H of u){let Q=P.resolve(z,H);try{let V=new Bun.Glob("**/*.ts");for await(let Z of V.scan({cwd:Q,absolute:!0}))if(!b(Z))return Q}catch{}}return null}async function g(q){let z=Array.isArray(q)?q:q?[P.resolve(q)]:(await k())._layerComposableDirs??[await p()].filter((H)=>!!H),W=new Map;for(let H of z){let Q=new Bun.Glob("**/*.ts");try{for await(let V of Q.scan({cwd:H,absolute:!0})){let Z=P.relative(H,V);if(!b(V)&&!W.has(Z))W.set(Z,V)}}catch{}}return{key:z.join("\x00"),files:[...W.values()].sort()}}async function e(q){let{files:z}=await g(q),W=K({loader:"ts",target:"browser",define:I()}),H=[];for(let Q of z)try{let V=await Bun.file(Q).text(),Z=W.scan(V).exports.filter(($)=>$!=="default");if(Z.length>0)H.push({file:Q,names:Z})}catch{}return H}function t(q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(q)}function n(q,z,W){let H=new Map;for(let{file:$,names:G}of q)for(let O of G)if(!H.has(O))H.set(O,$);let Q=($)=>{let G=[];for(let[O,j]of H)if(t($,O))G.push(j);return G},V=new Set,Z=W.flatMap(Q);while(Z.length>0){let $=[];for(let G of Z){if(V.has(G))continue;V.add(G);for(let O of Q(z.get(G)??""))if(!V.has(O))$.push(O)}Z=$}return V}async function qq(q,z,W){let{key:H,files:Q}=await g(q);if(!H)return null;let V=D(Q);if(Q.length===0)return R(U,H,V,""),null;Q.sort();let Z=K({loader:"ts",target:"browser",define:I()}),$=new Map,G=[];for(let J of Q)try{let Y=await Bun.file(J).text();$.set(J,Y);let L=Z.scan(Y).exports.filter((X)=>X!=="default");if(L.length>0)G.push({file:J,names:L})}catch{$.set(J,"")}let O=z===void 0?new Set(Q):n(G,$,W?[z,...W]:[z]);if(O.size===0)return null;let j=Q.filter((J)=>O.has(J)),A=`${H}\x00${j.join("\x00")}`,B=S(U,A,V);if(B!==void 0)return B||null;let M=[],w=new Set,_=new Set;for(let J of j)try{let Y=$.get(J)??await Bun.file(J).text(),L=P.basename(J,".ts");for(let X of Y.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])_.add(X[1]);try{for(let X of Z.scan(Y).exports)if(X!=="default")w.add(X)}catch{}Y=x(Y),Y=F(Y),Y=Y.replace(/^export\s+(default\s+)?/gm,""),Y=Z.transformSync(Y),M.push(`// Composable: ${L}
2
+ import{Ji as D,Ki as S,Li as R}from"./chunk-7we3xfde.js";import{am as I,eq as K,vr as k}from"./chunk-j82hfkcf.js";import{fv as x,gv as F}from"./chunk-x7dv5rq7.js";import{kv as y}from"./chunk-wv8h3d68.js";import P from"path";var U=new Map,T=new Map,u=["composables","functions"];function b(q){let z=P.basename(q,".ts");return z==="index"||z==="types"||q.endsWith(".d.ts")}async function p(q){if(q)return P.resolve(q);let z=`<default>:${process.cwd()}`,W=T.get(z);if(W!==void 0)return W;let H=await m();if(H!==null)T.set(z,H);return H}async function m(){let q=await k(),z=q.root||process.cwd(),W=q.composablesDir;if(W)return P.resolve(z,W);for(let H of u){let Q=P.resolve(z,H);try{let V=new Bun.Glob("**/*.ts");for await(let Z of V.scan({cwd:Q,absolute:!0}))if(!b(Z))return Q}catch{}}return null}async function g(q){let z=Array.isArray(q)?q:q?[P.resolve(q)]:(await k())._layerComposableDirs??[await p()].filter((H)=>!!H),W=new Map;for(let H of z){let Q=new Bun.Glob("**/*.ts");try{for await(let V of Q.scan({cwd:H,absolute:!0})){let Z=P.relative(H,V);if(!b(V)&&!W.has(Z))W.set(Z,V)}}catch{}}return{key:z.join("\x00"),files:[...W.values()].sort()}}async function e(q){let{files:z}=await g(q),W=K({loader:"ts",target:"browser",define:I()}),H=[];for(let Q of z)try{let V=await Bun.file(Q).text(),Z=W.scan(V).exports.filter(($)=>$!=="default");if(Z.length>0)H.push({file:Q,names:Z})}catch{}return H}function t(q,z){return new RegExp(`\\b${z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(q)}function n(q,z,W){let H=new Map;for(let{file:$,names:G}of q)for(let O of G)if(!H.has(O))H.set(O,$);let Q=($)=>{let G=[];for(let[O,j]of H)if(t($,O))G.push(j);return G},V=new Set,Z=W.flatMap(Q);while(Z.length>0){let $=[];for(let G of Z){if(V.has(G))continue;V.add(G);for(let O of Q(z.get(G)??""))if(!V.has(O))$.push(O)}Z=$}return V}async function qq(q,z,W){let{key:H,files:Q}=await g(q);if(!H)return null;let V=D(Q);if(Q.length===0)return R(U,H,V,""),null;Q.sort();let Z=K({loader:"ts",target:"browser",define:I()}),$=new Map,G=[];for(let J of Q)try{let Y=await Bun.file(J).text();$.set(J,Y);let L=Z.scan(Y).exports.filter((X)=>X!=="default");if(L.length>0)G.push({file:J,names:L})}catch{$.set(J,"")}let O=z===void 0?new Set(Q):n(G,$,W?[z,...W]:[z]);if(O.size===0)return null;let j=Q.filter((J)=>O.has(J)),A=`${H}\x00${j.join("\x00")}`,B=S(U,A,V);if(B!==void 0)return B||null;let M=[],w=new Set,_=new Set;for(let J of j)try{let Y=$.get(J)??await Bun.file(J).text(),L=P.basename(J,".ts");for(let X of Y.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])_.add(X[1]);try{for(let X of Z.scan(Y).exports)if(X!=="default")w.add(X)}catch{}Y=x(Y),Y=F(Y),Y=Y.replace(/^export\s+(default\s+)?/gm,""),Y=Z.transformSync(Y),M.push(`// Composable: ${L}
3
3
  ${Y.trim()}`)}catch(Y){console.warn(`[stx] Failed to load composable ${J}:`,Y)}if(M.length===0||w.size===0)return R(U,A,V,""),null;let h=[...w].map((J)=>` try { if (!(${JSON.stringify(J)} in __c)) __c[${JSON.stringify(J)}] = ${J}; } catch (e) {}`).join(`
4
4
  `),v=JSON.stringify([...w]),E=M.join(`
5
5