@stacksjs/stx 0.2.94 → 0.2.95

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 (551) hide show
  1. package/dist/a11y.js +1 -1
  2. package/dist/analytics.js +1 -1
  3. package/dist/analyzer.js +1 -1
  4. package/dist/animation.js +1 -1
  5. package/dist/app-shell.js +1 -1
  6. package/dist/app.js +1 -1
  7. package/dist/assets.js +1 -1
  8. package/dist/ast.js +1 -1
  9. package/dist/async-components.js +1 -1
  10. package/dist/auth.js +1 -1
  11. package/dist/broadcasting.js +1 -1
  12. package/dist/browser-composables.js +1 -1
  13. package/dist/build-assets.js +1 -1
  14. package/dist/build-mode-detector.js +1 -1
  15. package/dist/build-optimizer.js +1 -1
  16. package/dist/build-views.js +1 -1
  17. package/dist/build.js +1 -1
  18. package/dist/builtins/drawer.js +1 -1
  19. package/dist/builtins/escape.js +1 -1
  20. package/dist/builtins/icon.js +1 -1
  21. package/dist/builtins/index.js +1 -1
  22. package/dist/builtins/modal.js +1 -1
  23. package/dist/builtins/safe-image.js +1 -1
  24. package/dist/builtins/stx-image.js +1 -1
  25. package/dist/builtins/stx-link.js +1 -1
  26. package/dist/builtins/stx-loading-indicator.js +1 -1
  27. package/dist/builtins/suspense.js +1 -1
  28. package/dist/builtins/toast.js +1 -1
  29. package/dist/builtins/tooltip.js +1 -1
  30. package/dist/builtins/transition-group.js +1 -1
  31. package/dist/bundle-analyzer/collector.js +1 -1
  32. package/dist/bundle-analyzer/index.js +1 -1
  33. package/dist/bundle-analyzer/report.js +1 -1
  34. package/dist/bundle-analyzer/treemap.js +1 -1
  35. package/dist/caching.js +1 -1
  36. package/dist/{chunk-eh8hact1.js → chunk-04n64bnt.js} +1 -1
  37. package/dist/{chunk-yexjrg9d.js → chunk-06w68hyg.js} +2 -2
  38. package/dist/{chunk-4j188175.js → chunk-07y6m5xx.js} +1 -1
  39. package/dist/{chunk-b3kkjcdh.js → chunk-09k66d8a.js} +1 -1
  40. package/dist/{chunk-bk8ew8ze.js → chunk-0a61y94n.js} +2 -2
  41. package/dist/{chunk-qdc3aav1.js → chunk-0dx4q6yq.js} +1 -1
  42. package/dist/{chunk-k8440jxh.js → chunk-0p0nyq50.js} +2 -2
  43. package/dist/{chunk-5qb761h2.js → chunk-0p1h3p3w.js} +1 -1
  44. package/dist/{chunk-znxp3zha.js → chunk-10debkj5.js} +1 -1
  45. package/dist/{chunk-bgec9r1v.js → chunk-15nesxgt.js} +2 -2
  46. package/dist/{chunk-mv03qb75.js → chunk-1sr54zp8.js} +1 -1
  47. package/dist/{chunk-0jkwrcwj.js → chunk-1v49fwr5.js} +1 -1
  48. package/dist/{chunk-w01y57f5.js → chunk-1xz0w746.js} +2 -2
  49. package/dist/{chunk-w4n8fqp7.js → chunk-20swzkx3.js} +1 -1
  50. package/dist/{chunk-cz25azze.js → chunk-27zsyhrd.js} +1 -1
  51. package/dist/{chunk-hjdc99kb.js → chunk-29y0hk5z.js} +2 -2
  52. package/dist/{chunk-tx6br9r4.js → chunk-2cdvw21b.js} +1 -1
  53. package/dist/{chunk-g2hekckm.js → chunk-2j21d3ka.js} +1 -1
  54. package/dist/chunk-2jxbwnkz.js +2 -0
  55. package/dist/{chunk-8fgwhhb8.js → chunk-31dr4bys.js} +2 -2
  56. package/dist/{chunk-x64kb787.js → chunk-35faj94w.js} +1 -1
  57. package/dist/{chunk-9yz5d003.js → chunk-3a4qsygv.js} +2 -2
  58. package/dist/{chunk-1z2yq9em.js → chunk-3te20hqw.js} +2 -2
  59. package/dist/{chunk-aw3rp9ac.js → chunk-43t7faps.js} +1 -1
  60. package/dist/{chunk-0m9tdm7t.js → chunk-47kpewks.js} +1 -1
  61. package/dist/{chunk-cygfdk1n.js → chunk-4d2y57k7.js} +2 -2
  62. package/dist/{chunk-0tatqxj2.js → chunk-4deg33rw.js} +2 -2
  63. package/dist/{chunk-a69tvya5.js → chunk-4qcy5tx6.js} +2 -2
  64. package/dist/{chunk-d77yxcds.js → chunk-4x7kae4j.js} +2 -2
  65. package/dist/{chunk-g8b81pzc.js → chunk-55nwdnsd.js} +1 -1
  66. package/dist/{chunk-svahbw0w.js → chunk-5f43yz6z.js} +2 -2
  67. package/dist/{chunk-fch9tk1k.js → chunk-5shey2e4.js} +1 -1
  68. package/dist/{chunk-nanw7yhz.js → chunk-6djzdes9.js} +1 -1
  69. package/dist/{chunk-yj560gp8.js → chunk-6eqbxcrd.js} +1 -1
  70. package/dist/{chunk-03c26pjz.js → chunk-7074g241.js} +1 -1
  71. package/dist/{chunk-e0zytzdh.js → chunk-7b6s3g65.js} +1 -1
  72. package/dist/{chunk-77tga15w.js → chunk-7dkz6z2s.js} +2 -2
  73. package/dist/{chunk-q60knhjf.js → chunk-7ed3tean.js} +1 -1
  74. package/dist/{chunk-b0cyc09a.js → chunk-7gd339hd.js} +1 -1
  75. package/dist/{chunk-xsqbk4yk.js → chunk-7j5e8sdj.js} +2 -2
  76. package/dist/{chunk-52agge4n.js → chunk-7n8g0nfn.js} +1 -1
  77. package/dist/{chunk-cn409b69.js → chunk-80g54ncj.js} +1 -1
  78. package/dist/{chunk-w21mwxdd.js → chunk-8a5bxece.js} +1 -1
  79. package/dist/{chunk-7rvh2wwv.js → chunk-8ahwt6a4.js} +1 -1
  80. package/dist/{chunk-fhawx87n.js → chunk-8b3z0zd5.js} +1 -1
  81. package/dist/{chunk-y86m1wr4.js → chunk-8dhdpa5h.js} +2 -2
  82. package/dist/{chunk-hje9v2zh.js → chunk-8n9nnqr6.js} +1 -1
  83. package/dist/{chunk-rb1e4cnb.js → chunk-8qc1bsym.js} +1 -1
  84. package/dist/{chunk-bwxda6n1.js → chunk-8va64c9n.js} +2 -2
  85. package/dist/{chunk-hrampcrj.js → chunk-8vtm0m84.js} +1 -1
  86. package/dist/{chunk-cp3kwv17.js → chunk-8xj7c3mf.js} +1 -1
  87. package/dist/{chunk-fe7r1mq1.js → chunk-988dw6q3.js} +2 -2
  88. package/dist/{chunk-wk07pwtd.js → chunk-9b6cec0v.js} +1 -1
  89. package/dist/{chunk-13yz561y.js → chunk-9cf97f9p.js} +2 -2
  90. package/dist/{chunk-rv002yn0.js → chunk-9ecv8aqj.js} +1 -1
  91. package/dist/{chunk-jbejwejg.js → chunk-9eq3ht5f.js} +1 -1
  92. package/dist/{chunk-dzw95th7.js → chunk-9jtj77jx.js} +2 -2
  93. package/dist/{chunk-57p201gb.js → chunk-9t14se2t.js} +1 -1
  94. package/dist/{chunk-qd5461tt.js → chunk-9wmq2272.js} +1 -1
  95. package/dist/{chunk-qm4yppj5.js → chunk-9zbk5zx5.js} +2 -2
  96. package/dist/{chunk-7b0xdy5h.js → chunk-a2g2qb2y.js} +1 -1
  97. package/dist/{chunk-26r6zh3t.js → chunk-a87qqft6.js} +2 -2
  98. package/dist/{chunk-5kt3ay7x.js → chunk-ah88wzbg.js} +1 -1
  99. package/dist/{chunk-0wdar532.js → chunk-akf1r75r.js} +1 -1
  100. package/dist/{chunk-wxvyj65q.js → chunk-amaa1bev.js} +1 -1
  101. package/dist/{chunk-ganag9dm.js → chunk-avx8aydt.js} +2 -2
  102. package/dist/{chunk-mgmyr1b9.js → chunk-ay9qf4zj.js} +1 -1
  103. package/dist/{chunk-haecq01c.js → chunk-aywxfqev.js} +1 -1
  104. package/dist/{chunk-4bt81cg3.js → chunk-azkegjd8.js} +1 -1
  105. package/dist/{chunk-e53h9qhd.js → chunk-b77wjyn7.js} +1 -1
  106. package/dist/{chunk-jfm69keq.js → chunk-baf1hfwh.js} +2 -2
  107. package/dist/{chunk-hke99a0v.js → chunk-bdk6g1vj.js} +2 -2
  108. package/dist/{chunk-kkp6rs2n.js → chunk-bhqgmyqw.js} +1 -1
  109. package/dist/{chunk-fs0qezn5.js → chunk-bk3j0n82.js} +1 -1
  110. package/dist/{chunk-sn07azv3.js → chunk-bndmdahk.js} +2 -2
  111. package/dist/{chunk-mrehzhxv.js → chunk-bs3gmfxz.js} +1 -1
  112. package/dist/{chunk-yach037f.js → chunk-bxc7kjsk.js} +1 -1
  113. package/dist/{chunk-gqpkp459.js → chunk-ckxjqqn9.js} +2 -2
  114. package/dist/{chunk-ncnfa8ae.js → chunk-d0zjtdw4.js} +2 -2
  115. package/dist/{chunk-qfwzdffx.js → chunk-d1qh1x2g.js} +2 -2
  116. package/dist/{chunk-gcf5v18y.js → chunk-djddhmcc.js} +1 -1
  117. package/dist/{chunk-fms20x0n.js → chunk-dqn9gyhb.js} +1 -1
  118. package/dist/{chunk-6w03t7h6.js → chunk-drjq2zwg.js} +2 -2
  119. package/dist/{chunk-91s2hres.js → chunk-e2q9c5vq.js} +1 -1
  120. package/dist/{chunk-3ngm57nt.js → chunk-e98v1bc6.js} +2 -2
  121. package/dist/chunk-ejayeex8.js +2 -0
  122. package/dist/{chunk-yr1gdceh.js → chunk-ejh8fyak.js} +1 -1
  123. package/dist/{chunk-6wn85hn6.js → chunk-ek2w6zvy.js} +1 -1
  124. package/dist/{chunk-7dy588as.js → chunk-ewa88139.js} +1 -1
  125. package/dist/{chunk-ht4j68cs.js → chunk-fjk3x41y.js} +2 -2
  126. package/dist/{chunk-x39sfpvm.js → chunk-frg705zq.js} +1 -1
  127. package/dist/{chunk-nap11ntr.js → chunk-g1vt329s.js} +2 -2
  128. package/dist/{chunk-6cr3eeh4.js → chunk-gkzq8zw4.js} +1 -1
  129. package/dist/{chunk-3rh7va1z.js → chunk-gz5fmp3q.js} +1 -1
  130. package/dist/{chunk-asarebzq.js → chunk-h0hjy0kn.js} +1 -1
  131. package/dist/{chunk-ywkrxp2h.js → chunk-h5jxydqq.js} +1 -1
  132. package/dist/{chunk-4qq8ffke.js → chunk-h7aq56qj.js} +1 -1
  133. package/dist/{chunk-hepg894w.js → chunk-hbehnm18.js} +2 -2
  134. package/dist/{chunk-gc84b1d2.js → chunk-hbgxbgam.js} +2 -2
  135. package/dist/{chunk-05hgyyqc.js → chunk-hc2mf5h6.js} +1 -1
  136. package/dist/{chunk-tr0z0e1g.js → chunk-hjm2xab3.js} +1 -1
  137. package/dist/{chunk-50vqeesm.js → chunk-hrnnh4tq.js} +2 -2
  138. package/dist/{chunk-hq5cem49.js → chunk-ht43ds42.js} +1 -1
  139. package/dist/{chunk-vdfwv0fp.js → chunk-hy8820vc.js} +1 -1
  140. package/dist/{chunk-vpe6napb.js → chunk-j447q024.js} +2 -2
  141. package/dist/{chunk-x4fze3q2.js → chunk-j58vh0w6.js} +1 -1
  142. package/dist/{chunk-z37xq5rx.js → chunk-j8tn8enq.js} +2 -2
  143. package/dist/{chunk-m59y310j.js → chunk-jjb05d21.js} +2 -2
  144. package/dist/{chunk-3bjtemm6.js → chunk-jjdq01dv.js} +1 -1
  145. package/dist/{chunk-b3prs7y0.js → chunk-jnmgm2xw.js} +1 -1
  146. package/dist/{chunk-5ggw1dyv.js → chunk-jpndqst5.js} +1 -1
  147. package/dist/{chunk-7sm05m0j.js → chunk-jt0ezawy.js} +1 -1
  148. package/dist/{chunk-6y4gqs1q.js → chunk-jz73j3qs.js} +1 -1
  149. package/dist/{chunk-jt98jhpt.js → chunk-k21df0pg.js} +1 -1
  150. package/dist/{chunk-zt2yag10.js → chunk-k848dzsa.js} +1 -1
  151. package/dist/{chunk-bjnjpsgn.js → chunk-kdfe4t91.js} +2 -2
  152. package/dist/{chunk-82t27pvd.js → chunk-keawsbpn.js} +1 -1
  153. package/dist/{chunk-5q87fgkk.js → chunk-khdn7jwe.js} +2 -2
  154. package/dist/{chunk-ca6qd1dx.js → chunk-km25cwz6.js} +1 -1
  155. package/dist/{chunk-pc31m5x5.js → chunk-knm8a8yx.js} +1 -1
  156. package/dist/{chunk-baa7h4yz.js → chunk-krqn0ddk.js} +2 -2
  157. package/dist/{chunk-0g4gece6.js → chunk-kx6eb6ma.js} +1 -1
  158. package/dist/{chunk-3yg9hbmb.js → chunk-kypas8vy.js} +1 -1
  159. package/dist/{chunk-7xcfy2fn.js → chunk-m167kjhv.js} +1 -1
  160. package/dist/{chunk-w959hm8j.js → chunk-m491r0rj.js} +1 -1
  161. package/dist/{chunk-x1hjv24z.js → chunk-m8448qby.js} +1 -1
  162. package/dist/{chunk-tj6zfxeb.js → chunk-mgj88zeq.js} +2 -2
  163. package/dist/{chunk-6djgb0hr.js → chunk-mhgk632d.js} +1 -1
  164. package/dist/{chunk-y5wazw6j.js → chunk-n5kg7fpx.js} +1 -1
  165. package/dist/{chunk-957amb71.js → chunk-n98x35xd.js} +1 -1
  166. package/dist/{chunk-04mvcmcr.js → chunk-n9dhs1dw.js} +1 -1
  167. package/dist/{chunk-75rndzbd.js → chunk-nd9rmddh.js} +1 -1
  168. package/dist/{chunk-y25pr13j.js → chunk-nhv099jv.js} +1 -1
  169. package/dist/{chunk-cpcc11vp.js → chunk-nm15ccsg.js} +2 -2
  170. package/dist/{chunk-z4djtgt0.js → chunk-npfmdb6y.js} +1 -1
  171. package/dist/{chunk-xhkjhxsp.js → chunk-p077sw22.js} +1 -1
  172. package/dist/{chunk-kfd2hf6f.js → chunk-p1h8065h.js} +2 -2
  173. package/dist/{chunk-647849kf.js → chunk-p3e0cqtt.js} +2 -2
  174. package/dist/{chunk-c53hyw5c.js → chunk-p3fpb79v.js} +1 -1
  175. package/dist/{chunk-adjcg6wa.js → chunk-p52yzjq6.js} +2 -2
  176. package/dist/{chunk-qgxwmagw.js → chunk-p73meypx.js} +1 -1
  177. package/dist/{chunk-bykjk6vj.js → chunk-pa9zb7ty.js} +1 -1
  178. package/dist/{chunk-qk584whs.js → chunk-pcm1vd8w.js} +1 -1
  179. package/dist/{chunk-bn08k7yy.js → chunk-pcntd9h4.js} +2 -2
  180. package/dist/{chunk-87kx8byz.js → chunk-psc3wfcf.js} +1 -1
  181. package/dist/{chunk-svhtdb0s.js → chunk-pznnww6k.js} +1 -1
  182. package/dist/{chunk-5ppkfyn2.js → chunk-q6zhd9yf.js} +1 -1
  183. package/dist/chunk-qa59zejf.js +246 -0
  184. package/dist/{chunk-hpqr9e3x.js → chunk-qvrbjpdc.js} +2 -2
  185. package/dist/{chunk-46mkpbkk.js → chunk-qygvvygy.js} +2 -2
  186. package/dist/{chunk-xygc53vr.js → chunk-r0jcmpv6.js} +1 -1
  187. package/dist/{chunk-yw2fzq86.js → chunk-r5m9xtm7.js} +2 -2
  188. package/dist/{chunk-174z0cd0.js → chunk-rpx5fa65.js} +2 -2
  189. package/dist/{chunk-tmgz5t2g.js → chunk-rqxf5hns.js} +1 -1
  190. package/dist/{chunk-5xvbq2gs.js → chunk-rtr974rc.js} +2 -2
  191. package/dist/{chunk-y4c744dk.js → chunk-rvptcndz.js} +2 -2
  192. package/dist/{chunk-25s7bckb.js → chunk-rw26rpek.js} +2 -2
  193. package/dist/{chunk-qhdtssn1.js → chunk-rw7937v4.js} +2 -2
  194. package/dist/{chunk-n46a5g1g.js → chunk-rwrv9wbf.js} +1 -1
  195. package/dist/{chunk-8qbax8xn.js → chunk-rz2ec6g7.js} +1 -1
  196. package/dist/{chunk-epj957jf.js → chunk-scpkdrdb.js} +1 -1
  197. package/dist/{chunk-q6h6yvzb.js → chunk-shv88d2d.js} +2 -2
  198. package/dist/{chunk-2w3302dh.js → chunk-t0c9wvpr.js} +1 -1
  199. package/dist/{chunk-6dqzky7x.js → chunk-tffh3b1e.js} +1 -1
  200. package/dist/{chunk-ceg2c2q2.js → chunk-tg2f1mzq.js} +2 -2
  201. package/dist/{chunk-eqeyaq6g.js → chunk-trfswy66.js} +1 -1
  202. package/dist/{chunk-t37dp99j.js → chunk-tzwtg722.js} +1 -1
  203. package/dist/{chunk-ghrx0hn1.js → chunk-v7f8jj15.js} +1 -1
  204. package/dist/{chunk-95w08s8v.js → chunk-v8j49spx.js} +1 -1
  205. package/dist/{chunk-yaan98dd.js → chunk-veeerpwa.js} +1 -1
  206. package/dist/{chunk-xcb0pbr6.js → chunk-vg5kt6az.js} +1 -1
  207. package/dist/{chunk-9tmbrwwx.js → chunk-vgv7jvyz.js} +1 -1
  208. package/dist/{chunk-2xen423s.js → chunk-vjbefncc.js} +1 -1
  209. package/dist/{chunk-jt44av4j.js → chunk-vmxjghsm.js} +1 -1
  210. package/dist/{chunk-mqwbpamc.js → chunk-vw7vqd76.js} +1 -1
  211. package/dist/{chunk-adqh2m9z.js → chunk-w3b6m427.js} +1 -1
  212. package/dist/{chunk-eds0f8f1.js → chunk-wazkqv7n.js} +2 -2
  213. package/dist/{chunk-y4md9hp0.js → chunk-wfg2gm11.js} +1 -1
  214. package/dist/{chunk-vv9wfz1c.js → chunk-wg9k6h8w.js} +2 -2
  215. package/dist/{chunk-1mmykse5.js → chunk-wkz2vwkr.js} +1 -1
  216. package/dist/{chunk-7a51hkpf.js → chunk-wvf31nzs.js} +1 -1
  217. package/dist/{chunk-dyjnn5k8.js → chunk-x05nxhyv.js} +2 -2
  218. package/dist/{chunk-kh6rfz2v.js → chunk-x0770gt9.js} +1 -1
  219. package/dist/{chunk-5p568px4.js → chunk-x24s4heg.js} +1 -1
  220. package/dist/{chunk-cdbwprfv.js → chunk-x3r64r0c.js} +2 -2
  221. package/dist/{chunk-fbxt2mrx.js → chunk-x5g9w4hh.js} +2 -2
  222. package/dist/{chunk-268adc7r.js → chunk-xgkv66q5.js} +1 -1
  223. package/dist/chunk-xqq1vxb6.js +1 -0
  224. package/dist/{chunk-qxs6et76.js → chunk-xs03kc1h.js} +1 -1
  225. package/dist/{chunk-3jm3snz8.js → chunk-xv34zbp4.js} +1 -1
  226. package/dist/{chunk-b5zc9y0y.js → chunk-xw36p73h.js} +2 -2
  227. package/dist/{chunk-j4s5qwd7.js → chunk-xyg1r5w0.js} +2 -2
  228. package/dist/{chunk-cyp4m0vh.js → chunk-xys2sxh6.js} +1 -1
  229. package/dist/{chunk-kdxa9epn.js → chunk-y1k17c8b.js} +2 -2
  230. package/dist/{chunk-cr3wbrcr.js → chunk-y6xsqe9a.js} +2 -2
  231. package/dist/{chunk-94g3cahw.js → chunk-yb1t2h8h.js} +2 -2
  232. package/dist/{chunk-vw6ejgmy.js → chunk-yj4x5ehw.js} +1 -1
  233. package/dist/{chunk-fk51yyrw.js → chunk-ynhngsdh.js} +1 -1
  234. package/dist/{chunk-vp2395eb.js → chunk-yrsb6j3z.js} +2 -2
  235. package/dist/chunk-yywfvfph.js +2 -0
  236. package/dist/{chunk-xhnpsngj.js → chunk-zcxzdrn7.js} +2 -2
  237. package/dist/{chunk-jjvp4t5w.js → chunk-zen6ax1y.js} +2 -2
  238. package/dist/{chunk-n944baxp.js → chunk-zf2pek72.js} +1 -1
  239. package/dist/{chunk-z8cjr9n9.js → chunk-zk3d0jjf.js} +1 -1
  240. package/dist/{chunk-9agvhp1x.js → chunk-zy3rp1ab.js} +1 -1
  241. package/dist/cli.js +1 -1
  242. package/dist/client/directive.js +1 -1
  243. package/dist/client/index.js +1 -1
  244. package/dist/client-helpers.js +1 -1
  245. package/dist/client-script-bundler.js +1 -1
  246. package/dist/client-script.js +1 -1
  247. package/dist/component-hmr.js +1 -1
  248. package/dist/component-processing.js +1 -1
  249. package/dist/component-registry.js +1 -1
  250. package/dist/component-renderer.js +1 -1
  251. package/dist/components.js +1 -1
  252. package/dist/composables/index.js +1 -1
  253. package/dist/composables/use-battery.js +1 -1
  254. package/dist/composables/use-broadcast-channel.js +1 -1
  255. package/dist/composables/use-channel.js +1 -1
  256. package/dist/composables/use-clipboard.js +1 -1
  257. package/dist/composables/use-color-mode.js +1 -1
  258. package/dist/composables/use-cookie.js +1 -1
  259. package/dist/composables/use-device-orientation.js +1 -1
  260. package/dist/composables/use-event-listener.js +1 -1
  261. package/dist/composables/use-event-source.js +1 -1
  262. package/dist/composables/use-eye-dropper.js +1 -1
  263. package/dist/composables/use-fetch.js +1 -1
  264. package/dist/composables/use-fullscreen.js +1 -1
  265. package/dist/composables/use-geolocation.js +1 -1
  266. package/dist/composables/use-idle.js +1 -1
  267. package/dist/composables/use-intersection-observer.js +1 -1
  268. package/dist/composables/use-keyboard.js +1 -1
  269. package/dist/composables/use-media-query.js +1 -1
  270. package/dist/composables/use-meta.js +1 -1
  271. package/dist/composables/use-mouse.js +1 -1
  272. package/dist/composables/use-mutation-observer.js +1 -1
  273. package/dist/composables/use-network.js +1 -1
  274. package/dist/composables/use-notification.js +1 -1
  275. package/dist/composables/use-permissions.js +1 -1
  276. package/dist/composables/use-resize-observer.js +1 -1
  277. package/dist/composables/use-router.js +1 -1
  278. package/dist/composables/use-share.js +1 -1
  279. package/dist/composables/use-speech.js +1 -1
  280. package/dist/composables/use-storage.js +1 -1
  281. package/dist/composables/use-text-selection.js +1 -1
  282. package/dist/composables/use-timer.js +1 -1
  283. package/dist/composables/use-utilities.js +1 -1
  284. package/dist/composables/use-wake-lock.js +1 -1
  285. package/dist/composables/use-websocket.js +1 -1
  286. package/dist/composables/use-window.js +1 -1
  287. package/dist/composables.js +1 -1
  288. package/dist/composition-api.js +1 -1
  289. package/dist/computed.js +1 -1
  290. package/dist/conditionals.js +1 -1
  291. package/dist/config.js +1 -1
  292. package/dist/craft-bridge.js +1 -1
  293. package/dist/craft-compiler.js +1 -1
  294. package/dist/craft-components.js +1 -1
  295. package/dist/craft-entry.js +1 -1
  296. package/dist/craft-ssr.js +1 -1
  297. package/dist/csp.js +1 -1
  298. package/dist/csrf.js +1 -1
  299. package/dist/custom-directives.js +1 -1
  300. package/dist/defer.js +1 -1
  301. package/dist/deploy/config-generators.js +1 -1
  302. package/dist/deploy/index.js +1 -1
  303. package/dist/deploy/netlify.js +1 -1
  304. package/dist/dev-server/crosswind.js +1 -1
  305. package/dist/dev-server/index.js +1 -1
  306. package/dist/dev-server/keyboard-shortcuts.js +1 -1
  307. package/dist/dev-server/native-window.js +1 -1
  308. package/dist/dev-server/port-utils.js +1 -1
  309. package/dist/dev-server/serve-app.js +1 -6
  310. package/dist/dev-server/serve-file.js +1 -6
  311. package/dist/dev-server/serve-markdown.js +1 -1
  312. package/dist/dev-server/serve-multi.js +1 -171
  313. package/dist/dev-server/terminal-colors.js +1 -1
  314. package/dist/dev-server/theme-selector.js +1 -1
  315. package/dist/dev-server/types.js +1 -1
  316. package/dist/dev-server.js +1 -1
  317. package/dist/devtools.js +1 -1
  318. package/dist/directive-api.js +1 -1
  319. package/dist/docs.js +1 -1
  320. package/dist/doctor.js +1 -1
  321. package/dist/document-shell.js +1 -1
  322. package/dist/dynamic-components.js +1 -1
  323. package/dist/edge-runtime.js +1 -1
  324. package/dist/env.js +1 -1
  325. package/dist/error-boundaries.js +1 -1
  326. package/dist/error-handling.js +1 -1
  327. package/dist/errors/codes.js +1 -1
  328. package/dist/errors/formatter.js +1 -1
  329. package/dist/errors/index.js +1 -1
  330. package/dist/errors/logger.js +1 -1
  331. package/dist/errors/sanitizer.js +1 -1
  332. package/dist/errors/types.js +1 -1
  333. package/dist/events.js +1 -1
  334. package/dist/expressions.js +1 -1
  335. package/dist/formatter.js +1 -1
  336. package/dist/forms-validation.js +1 -1
  337. package/dist/forms.js +1 -1
  338. package/dist/head.js +1 -1
  339. package/dist/heatmap.js +1 -1
  340. package/dist/hot-reload.js +1 -1
  341. package/dist/html-masking.js +1 -1
  342. package/dist/hydration-runtime.js +1 -1
  343. package/dist/hydration.js +1 -1
  344. package/dist/i18n.js +1 -1
  345. package/dist/image-optimization/auto-sibling.js +1 -1
  346. package/dist/image-optimization/build-plugin.js +1 -1
  347. package/dist/image-optimization/component.js +1 -1
  348. package/dist/image-optimization/directive.js +1 -1
  349. package/dist/image-optimization/index.js +1 -1
  350. package/dist/image-optimization/processor.js +1 -1
  351. package/dist/image-optimization/serve.js +1 -1
  352. package/dist/includes.js +1 -1
  353. package/dist/index.js +1 -1
  354. package/dist/init.js +1 -1
  355. package/dist/inline-assets.js +1 -1
  356. package/dist/interactive.js +1 -1
  357. package/dist/internal-markdown.js +1 -1
  358. package/dist/island-chunking.js +1 -1
  359. package/dist/js-ts.js +1 -1
  360. package/dist/jsx-runtime.js +1 -1
  361. package/dist/keep-alive.js +1 -1
  362. package/dist/lazy-loader.js +1 -1
  363. package/dist/loading-indicator.js +1 -1
  364. package/dist/loops.js +1 -1
  365. package/dist/manifest.js +1 -1
  366. package/dist/markdown.js +1 -1
  367. package/dist/media/client/blur-up.js +1 -1
  368. package/dist/media/client/index.js +1 -1
  369. package/dist/media/client/lazy-load.js +1 -1
  370. package/dist/media/client/upload-handler.js +1 -1
  371. package/dist/media/image/component.js +1 -1
  372. package/dist/media/image/directive.js +1 -1
  373. package/dist/media/image/editing.js +1 -1
  374. package/dist/media/image/index.js +1 -1
  375. package/dist/media/image/placeholder.js +1 -1
  376. package/dist/media/image/processor/cache.js +1 -1
  377. package/dist/media/image/processor/index.js +1 -1
  378. package/dist/media/image/processor/optimizer.js +1 -1
  379. package/dist/media/image/processor/responsive.js +1 -1
  380. package/dist/media/image/srcset.js +1 -1
  381. package/dist/media/index.js +1 -1
  382. package/dist/media/manager/embed.js +1 -1
  383. package/dist/media/protected/component.js +1 -1
  384. package/dist/media/protected/index.js +1 -1
  385. package/dist/media/protected/signature.js +1 -1
  386. package/dist/media/shared/cache.js +1 -1
  387. package/dist/media/shared/hash.js +1 -1
  388. package/dist/media/shared/index.js +1 -1
  389. package/dist/media/upload/component.js +1 -1
  390. package/dist/media/upload/index.js +1 -1
  391. package/dist/media/video/directive.js +1 -1
  392. package/dist/media/video/index.js +1 -1
  393. package/dist/media/video/processor/cache.js +1 -1
  394. package/dist/media/video/processor/index.js +1 -1
  395. package/dist/media/video/processor/streaming.js +1 -1
  396. package/dist/media/video/processor/thumbnail.js +1 -1
  397. package/dist/media/video/processor/transcoder.js +1 -1
  398. package/dist/method-spoofing.js +1 -1
  399. package/dist/middleware.js +1 -1
  400. package/dist/misc-directives.js +1 -1
  401. package/dist/native-build.js +1 -1
  402. package/dist/parser/directive-parser.js +1 -1
  403. package/dist/parser/expression-parser.js +1 -1
  404. package/dist/parser/index.js +1 -1
  405. package/dist/parser/tokenizer.js +1 -1
  406. package/dist/partial-hydration.js +1 -1
  407. package/dist/performance-utils.js +1 -1
  408. package/dist/placeholder.js +1 -1
  409. package/dist/plugin-system.js +1 -1
  410. package/dist/plugin.js +1 -1
  411. package/dist/precompiler.js +1 -1
  412. package/dist/process.js +1 -1
  413. package/dist/production-build.js +1 -1
  414. package/dist/production-builder.js +1 -1
  415. package/dist/production-server.js +1 -1
  416. package/dist/props.js +1 -1
  417. package/dist/public-env.js +1 -1
  418. package/dist/pwa/audit.js +1 -1
  419. package/dist/pwa/directives.js +1 -1
  420. package/dist/pwa/icons.js +1 -1
  421. package/dist/pwa/index.js +1 -1
  422. package/dist/pwa/inject.js +1 -1
  423. package/dist/pwa/manifest.js +1 -1
  424. package/dist/pwa/offline.js +1 -1
  425. package/dist/pwa/precache.js +1 -1
  426. package/dist/pwa/service-worker.js +1 -1
  427. package/dist/pwa/workbox-strategies.js +1 -1
  428. package/dist/pwa/workbox.js +1 -1
  429. package/dist/reactive-bindings.js +1 -1
  430. package/dist/reactive.js +1 -1
  431. package/dist/reactivity.js +1 -1
  432. package/dist/release.js +1 -1
  433. package/dist/render.js +1 -1
  434. package/dist/route-middleware.js +1 -1
  435. package/dist/router.js +1 -1
  436. package/dist/routes.js +1 -1
  437. package/dist/runtime-injection.js +1 -1
  438. package/dist/runtime.js +1 -1
  439. package/dist/safe-evaluator.js +1 -1
  440. package/dist/scaffolding.js +1 -1
  441. package/dist/screenshot.js +1 -1
  442. package/dist/script-classifier.js +1 -1
  443. package/dist/script-validation.js +1 -1
  444. package/dist/seo.js +1 -1
  445. package/dist/serve.js +1 -1
  446. package/dist/server-bindings.js +1 -1
  447. package/dist/server-components.js +1 -1
  448. package/dist/signal-processing.js +1 -1
  449. package/dist/signals-api.js +1 -1
  450. package/dist/signals.js +1 -1
  451. package/dist/site-builder/build.js +1 -1
  452. package/dist/site-builder/i18n.js +1 -1
  453. package/dist/site-builder/index.js +1 -1
  454. package/dist/site-builder/robots.js +1 -1
  455. package/dist/site-builder/router.js +1 -1
  456. package/dist/site-builder/seo.js +1 -1
  457. package/dist/site-builder/sitemap.js +1 -1
  458. package/dist/site-builder/theme.js +1 -1
  459. package/dist/slots.js +1 -1
  460. package/dist/source-maps.js +1 -1
  461. package/dist/spa-shell.js +1 -1
  462. package/dist/ssr.js +1 -1
  463. package/dist/state-management.js +1 -1
  464. package/dist/store-imports.js +1 -1
  465. package/dist/store-loader.js +1 -1
  466. package/dist/stores-client.js +1 -1
  467. package/dist/story/addons.js +1 -1
  468. package/dist/story/analytics.js +1 -1
  469. package/dist/story/auto-stories.js +1 -1
  470. package/dist/story/bookmarks.js +1 -1
  471. package/dist/story/bun-test.js +1 -1
  472. package/dist/story/cli.js +1 -1
  473. package/dist/story/collect/analyzer.js +1 -1
  474. package/dist/story/collect/index.js +1 -1
  475. package/dist/story/collect/parser.js +1 -1
  476. package/dist/story/collect/scanner.js +1 -1
  477. package/dist/story/collect/tree.js +1 -1
  478. package/dist/story/commands/build.js +1 -1
  479. package/dist/story/commands/dev.js +1 -1
  480. package/dist/story/commands/index.js +1 -1
  481. package/dist/story/commands/preview.js +1 -1
  482. package/dist/story/compiled-output.js +1 -1
  483. package/dist/story/composition.js +1 -1
  484. package/dist/story/config-watcher.js +1 -1
  485. package/dist/story/config.js +1 -1
  486. package/dist/story/context.js +1 -1
  487. package/dist/story/controls/index.js +1 -1
  488. package/dist/story/crosswind.js +1 -1
  489. package/dist/story/desktop-preview.js +1 -1
  490. package/dist/story/docs-generator.js +1 -1
  491. package/dist/story/errors.js +1 -1
  492. package/dist/story/figma-export.js +1 -1
  493. package/dist/story/generator.js +1 -1
  494. package/dist/story/hmr.js +1 -1
  495. package/dist/story/hot-swap.js +1 -1
  496. package/dist/story/index.js +1 -1
  497. package/dist/story/interactions.js +1 -1
  498. package/dist/story/keyboard-shortcuts.js +1 -1
  499. package/dist/story/output.js +1 -1
  500. package/dist/story/performance.js +1 -1
  501. package/dist/story/presets.js +1 -1
  502. package/dist/story/props-validation.js +1 -1
  503. package/dist/story/renderer.js +1 -1
  504. package/dist/story/search-index.js +1 -1
  505. package/dist/story/search.js +1 -1
  506. package/dist/story/server.js +1 -1
  507. package/dist/story/setup.js +1 -1
  508. package/dist/story/snapshots.js +1 -1
  509. package/dist/story/testing.js +1 -1
  510. package/dist/story/theme.js +1 -1
  511. package/dist/story/ui/code-panel.js +1 -1
  512. package/dist/story/ui/controls-panel.js +1 -1
  513. package/dist/story/ui/index.js +1 -1
  514. package/dist/story/ui/navigation.js +1 -1
  515. package/dist/story/ui/preview.js +1 -1
  516. package/dist/story/visual-testing.js +1 -1
  517. package/dist/streaming.js +1 -1
  518. package/dist/strict-lint.js +1 -1
  519. package/dist/style-scoping.js +1 -1
  520. package/dist/suspense.js +1 -1
  521. package/dist/teleport.js +1 -1
  522. package/dist/template-compiler.js +1 -1
  523. package/dist/template-hydrator.js +1 -1
  524. package/dist/template-tag-balance.js +1 -1
  525. package/dist/testing.js +1 -1
  526. package/dist/transitions.js +1 -1
  527. package/dist/type-checker.js +1 -1
  528. package/dist/types/directive-types.js +1 -1
  529. package/dist/types/index.js +1 -1
  530. package/dist/types.js +1 -1
  531. package/dist/typescript-templates.js +1 -1
  532. package/dist/utils.js +1 -1
  533. package/dist/validator.js +1 -1
  534. package/dist/variable-extractor.js +1 -1
  535. package/dist/view-composers.js +1 -1
  536. package/dist/virtual-scrolling.js +1 -1
  537. package/dist/visual-editor.js +1 -1
  538. package/dist/vue-template.js +1 -1
  539. package/dist/web-components/css-scoping.js +1 -1
  540. package/dist/web-components/index.js +1 -1
  541. package/dist/web-components/reactive-generator.js +1 -1
  542. package/dist/web-components.js +1 -1
  543. package/dist/x-element.js +1 -1
  544. package/package.json +6 -6
  545. package/dist/chunk-48cw2nde.js +0 -2
  546. package/dist/chunk-48r3qe0k.js +0 -3
  547. package/dist/chunk-h45py5w5.js +0 -2
  548. package/dist/chunk-jfrn43vh.js +0 -2
  549. package/dist/chunk-mwbng54r.js +0 -2
  550. package/dist/chunk-qwyd9a1d.js +0 -2
  551. package/dist/chunk-sjagg9qz.js +0 -66
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Zs as e4}from"./chunk-x1hjv24z.js";import{kt as a4}from"./chunk-03c26pjz.js";import{mt as W1}from"./chunk-13yz561y.js";import{tt as s4}from"./chunk-ghrx0hn1.js";import{ut as L0}from"./chunk-82t27pvd.js";import{wt as o1}from"./chunk-fhawx87n.js";import{At as y4,Bt as k3,Ct as N3,xt as D4,yt as E4,zt as M4}from"./chunk-gc84b1d2.js";import{Jt as o4}from"./chunk-yr1gdceh.js";import{Kt as r4}from"./chunk-baa7h4yz.js";import{Qt as Y4,Rt as Z4}from"./chunk-kdxa9epn.js";import{Vt as C4}from"./chunk-g2hekckm.js";import{_t as I3}from"./chunk-x39sfpvm.js";import{bu as i0}from"./chunk-tr0z0e1g.js";import{hu as n4}from"./chunk-4j188175.js";import{ju as n1,ku as r1,lu as Q5,mu as a1,nu as J5,ou as z5}from"./chunk-eds0f8f1.js";import{su as T3}from"./chunk-dyjnn5k8.js";import{uu as R3}from"./chunk-8fgwhhb8.js";import{gv as M3,hv as P0}from"./chunk-fms20x0n.js";import{kv as X5}from"./chunk-fe7r1mq1.js";import{lv as O1,mv as Q3,nv as F4,ov as p0,pv as K1,qv as q1}from"./chunk-rb1e4cnb.js";import{Jv as p4}from"./chunk-j4s5qwd7.js";import{Mv as v4}from"./chunk-b0cyc09a.js";import{Qv as l4,Rv as c4,Sv as i4}from"./chunk-0tatqxj2.js";import{aw as u4}from"./chunk-bykjk6vj.js";import{qw as T4,rw as F3}from"./chunk-7b0xdy5h.js";import{Ew as t4,Gw as Y5,Hw as Z5,Iw as $5}from"./chunk-y25pr13j.js";import{Sw as b4}from"./chunk-q6h6yvzb.js";import{jx as x4,lx as h4}from"./chunk-6wn85hn6.js";import{yx as d4}from"./chunk-qd5461tt.js";import{Ax as m4}from"./chunk-77tga15w.js";import{Bx as t0,Cx as v3,Nx as R4}from"./chunk-rv002yn0.js";import{Rx as T0,Sx as P4,Tx as f4,Ux as g4}from"./chunk-hke99a0v.js";import{dy as t3,ey as M1}from"./chunk-yw2fzq86.js";import{hy as E1}from"./chunk-mrehzhxv.js";import{ry as H0,vy as g0}from"./chunk-jjvp4t5w.js";import{wy as k4,yy as w0,zy as N4}from"./chunk-94g3cahw.js";import{Gy as f0,Jy as I4}from"./chunk-ht4j68cs.js";import{Ky as Y1,My as Z1}from"./chunk-fch9tk1k.js";import{Ty as q0}from"./chunk-cz25azze.js";import{Vy as U5}from"./chunk-q60knhjf.js";import{Zy as w3}from"./chunk-hrampcrj.js";import{_y as v1}from"./chunk-t37dp99j.js";import{$y as g1}from"./chunk-5kt3ay7x.js";import{az as u1}from"./chunk-95w08s8v.js";import{bz as x1}from"./chunk-ceg2c2q2.js";import{dz as l1}from"./chunk-n46a5g1g.js";import{ez as d1}from"./chunk-vv9wfz1c.js";import{fz as m1}from"./chunk-dzw95th7.js";import{hz as h1}from"./chunk-46mkpbkk.js";import{jz as f1}from"./chunk-2xen423s.js";import{kz as P1}from"./chunk-cp3kwv17.js";import{pz as m3,rz as Y0,sz as t,wz as B0,xz as e,zz as $1}from"./chunk-adqh2m9z.js";import{Sz as S4}from"./chunk-8qbax8xn.js";import{bA as V4,jA as W3,kA as L3}from"./chunk-x64kb787.js";import{nA as A4}from"./chunk-gcf5v18y.js";import{tA as B3,uA as O3,vA as V3,wA as A3,xA as w4}from"./chunk-pc31m5x5.js";import{rB as g}from"./chunk-3jm3snz8.js";import D0 from"path";import h0 from"fs";import i6 from"fs";import C from"path";var C0={},$3=new Map;function _5(Y){let Q=$3.get(Y);if(!Q){let $=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Q=new RegExp(`:${$}(?!\\w)`,"g"),$3.set(Y,Q)}return Q.lastIndex=0,Q}var s0={uppercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toUpperCase():""},lowercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toLowerCase():""},capitalize:(Y,Q)=>{if(Y===void 0||Y===null)return"";let $=String(Y);return $.charAt(0).toUpperCase()+$.slice(1)},number:(Y,Q,$=0)=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);return Number.isNaN(X)?"":X.toFixed(Number.parseInt(String($),10))}catch{return""}},fmt:(Y,Q,$="en-US")=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);if(Number.isNaN(X))return String(Y);return X.toLocaleString($)}catch{return String(Y)}},join:(Y,Q,$=",")=>{if(!Array.isArray(Y))return"";return Y.join(String($))},escape:(Y,Q)=>{if(Y===void 0||Y===null)return"";return n0(String(Y))},translate:(Y,Q,$={})=>{if(!Q||!Q.__translations)return Y;let X=Q.__translations,J=Q.__i18nConfig?.fallbackToKey??!0,Z=String(Y).split("."),z=X;for(let U of Z){if(z===void 0||z===null)break;z=z[U]}if(z===void 0||z===null)return J?Y:"";let G=String(z);return Object.entries($).forEach(([U,_])=>{G=G.replace(_5(U),String(_))}),G},t:(Y,Q,$={})=>{return s0.translate(Y,Q,$)},truncate:(Y,Q,$=50,X="...")=>{if(Y===void 0||Y===null)return"";let J=String(Y);if(J.length<=$)return J;if($<=X.length)return X.substring(0,$);return J.substring(0,$-X.length)+X},date:(Y,Q,$="short",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Y instanceof Date?Y:new Date(Y);if(Number.isNaN(J.getTime()))return String(Y);let Z={short:{dateStyle:"short"},medium:{dateStyle:"medium"},long:{dateStyle:"long"},full:{dateStyle:"full"},time:{timeStyle:"short"},datetime:{dateStyle:"short",timeStyle:"short"},iso:{}};if($==="iso")return J.toISOString();return new Intl.DateTimeFormat(X,Z[$]||Z.short).format(J)}catch{return String(Y)}},currency:(Y,Q,$="USD",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Number(Y);if(Number.isNaN(J))return String(Y);return new Intl.NumberFormat(X,{style:"currency",currency:$}).format(J)}catch{return String(Y)}},pluralize:(Y,Q,$,X)=>{let J=Number(Y);if(Number.isNaN(J))return $;let Z=X||`${$}s`;return J===1?$:Z},first:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[0];return String(Y).charAt(0)},last:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[Y.length-1];let $=String(Y);return $.charAt($.length-1)},length:(Y,Q)=>{if(Y===void 0||Y===null)return 0;if(Array.isArray(Y)||typeof Y==="string")return Y.length;if(Y instanceof Map||Y instanceof Set)return Y.size;if(typeof Y==="object")return Object.keys(Y).length;return 0},json:(Y,Q,$=!1)=>{if(Y===void 0)return"undefined";if(Y===null)return"null";try{return $?JSON.stringify(Y,null,2):JSON.stringify(Y)}catch{return String(Y)}},default:(Y,Q,$="")=>{return Y===void 0||Y===null||Y===""?$:Y},reverse:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return[...Y].reverse();return String(Y).split("").reverse().join("")},slice:(Y,Q,$=0,X)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y)||typeof Y==="string")return Y.slice($,X);return Y},replace:(Y,Q,$,X="")=>{if(Y===void 0||Y===null)return"";let J=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return String(Y).replace(new RegExp(J,"g"),()=>X)},stripTags:(Y,Q)=>{if(Y===void 0||Y===null)return"";return String(Y).replace(/<[^>]*>/g,"")},urlencode:(Y,Q)=>{if(Y===void 0||Y===null)return"";return encodeURIComponent(String(Y))},abs:(Y,Q)=>{let $=Number(Y);return Number.isNaN($)?0:Math.abs($)},round:(Y,Q,$=0)=>{let X=Number(Y);if(Number.isNaN(X))return 0;let J=10**$;return Math.round(X*J)/J}};function W5(Y,Q){if(Y in s0)console.warn(`Filter "${Y}" already exists as a built-in filter. Custom filter will take precedence.`);C0[Y]=Q}function I7(Y){for(let[Q,$]of Object.entries(Y))W5(Q,$)}function L5(){return{...s0,...C0}}function k7(){for(let Y of Object.keys(C0))delete C0[Y]}function n0(Y){return Y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function v0(Y){let Q=/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi,$;while(($=Q.exec(Y))!==null){let X=$[1];if(/\b(state|derived|effect|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/.test(X))return!0}if(/@(if|for|show)\s*=\s*["'][^"']*\(\s*\)/.test(Y))return!0;if(/@for\s*=\s*["'][^"']*\s+(?:in|of)\s+[^"']*\(\s*\)/.test(Y))return!0;if(/(?:^|[\s"'])(?::|x-)(?:for|if|else-if|else|show|text|html|model|bind)\b/.test(Y))return!0;return!1}function X3(Y,Q){let $=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined","NaN","Infinity","isNaN","isFinite","window","document","console"],X=Y.replace(/'[^']*'/g,"").replace(/"[^"]*"/g,""),J="",Z=!1,z=0;for(let _=0;_<X.length;_++){let K=X[_];if(!Z&&K==="`"){Z=!0,z=0;continue}if(Z){if(K==="`"&&z===0){Z=!1;continue}if(K==="$"&&X[_+1]==="{"){z++,_++;continue}if(K==="}"&&z>0){z--;continue}continue}J+=K}X=J;let G=/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\b/g,U;while((U=G.exec(X))!==null){let _=U[1];if(!X.substring(0,U.index).trimEnd().endsWith(".")){if(!$.includes(_)&&!(_ in Q))return!1}}return!0}function B5(Y,Q){let $=Y;return $=$.replace(/\{!!([\s\S]*?)!!\}/g,(X,J)=>{try{let Z=K0(J,Q);if(Z===void 0)return X;return Z===null?"":String(Z)}catch{return X}}),$=$.replace(/\{\{([\s\S]*?)\}\}/g,(X,J)=>{let Z=J.trim();if(/^__[A-Z_]+__$/.test(Z))return X;try{let z=K0(J,Q);if(z===void 0)return X;return JSON.stringify(z)}catch{return X}}),$}function N7(Y,Q,$={}){return Y.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(X,J,Z)=>{if(/\bsrc\s*=/.test(J))return X;if(/\bdata-raw\b/.test(J))return X;if(/\btype\s*=\s*["']application\/json["']/.test(J))return X;if($.skipServer&&/\bserver\b/.test(J))return X;let z=B5(Z,Q);return`<script${J}>${z}</script>`})}function W0(Y,Q,$,X){let J=Y,Z=(K,j)=>{let W=Q3(K,j);if(W===-1)return-1;return/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/.test(K.slice(j,W))?-1:W},z=(K,j,W,q)=>{let H=W.length,{output:L,tokens:O}=p0(K,j,(V,B)=>q(H+B));return W.push(...O),L},G=[];J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`);let U=[];J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`);let _=X?.forceSignals===!0||v0(Y);J=J.replace(/\{\{\{([\s\S]*?)\}\}\}/g,(K,j,W)=>{try{let q=K0(j,Q);return q!==void 0&&q!==null?String(q):""}catch(q){let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {{{ ${j.trim()}}}}: ${H}`,$,Y,W,K)}}),J=J.replace(/\{!!([\s\S]*?)!!\}/g,(K,j,W)=>{try{let q=K0(j,Q);if(q===void 0&&Q.__stx_buildMode==="compile")return i0("raw",j.trim());return q!==void 0&&q!==null?String(q):""}catch(q){if(Q.__stx_buildMode==="compile")return i0("raw",j.trim());let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {!! ${j.trim()} !!}: ${H}`,$,Y,W,K)}}),J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`),J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`),J=J.replace(/\{\{([\s\S]*?)\}\}/g,(K,j,W)=>{let q=j.trim(),H=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined"],L=/^([a-zA-Z_$][a-zA-Z0-9_$]*)/,V=q.match(L)?.[1],B=V&&((V in Q)||H.includes(V)),A=/^([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/,w=q.match(A),F=w&&!H.includes(w[1])&&!(w[1]in Q);if(/^__[A-Z_]+__$/.test(q))return"";try{let N=K0(j,Q);if(N===void 0&&_&&!X3(q,Q))return K;if(N===void 0&&Q.__stx_buildMode==="compile"&&!_)return i0("expr",q);return N!==void 0&&N!==null?n0(String(N)):""}catch(N){if(_&&!X3(q,Q))return K;if(F)return K;let I=N instanceof Error?N.message:String(N);return p("Expression",`Error evaluating: {{ ${q} }}: ${I}`,$,Y,W,K)}});for(let K=0;K<U.length;K++)J=J.replace(`<!--__STX_SCRIPT_EXPR_${K}__-->`,()=>U[K]);for(let K=0;K<G.length;K++)J=J.replace(`<!--__STX_STYLE_${K}__-->`,()=>G[K]);return J}function O5(Y,Q,$){if(!Q.trim())return Y;let X=Y,J=Q.trim();while(J.length>0){let Z=J.match(/^(\w+)/);if(!Z)break;let z=Z[1];J=J.substring(z.length).trim();let G=C0[z]||s0[z];if(!G)throw Error(`Filter not found: ${z}. Available filters: ${Object.keys(L5()).join(", ")}`);let U=[];if(J.startsWith(":")){let _=J.match(/^:([^|\s]+)/);if(_){let K=_[1].trim();try{let j=Number(K);U=[Number.isNaN(j)?K:j]}catch{U=[K]}J=J.substring(_[0].length).trim()}}else if(J.startsWith("(")){let _=1,K=1;while(_>0&&K<J.length){if(J[K]==="(")_++;if(J[K]===")")_--;K++}if(_===0){let j=J.substring(1,K-1).trim();if(j)try{if(j.startsWith("{")&&j.endsWith("}"))U=[K0(`(${j})`,$,!0)];else{let W=[],q="",H=null,L=0,O=0,V=0,B=!1;for(let A=0;A<j.length;A++){let w=j[A];if(B){q+=w,B=!1;continue}if(w==="\\"){q+=w,B=!0;continue}if(H){if(q+=w,w===H)H=null;continue}if(w==='"'||w==="'"||w==="`"){H=w,q+=w;continue}if(w==="(")L++;else if(w===")")L--;else if(w==="[")O++;else if(w==="]")O--;else if(w==="{")V++;else if(w==="}")V--;if(w===","&&L===0&&O===0&&V===0){W.push(q),q="";continue}q+=w}if(q)W.push(q);U=W.map((A)=>{let w=A.trim();return K0(w,$,!0)})}}catch{U=[j]}J=J.substring(K).trim()}}try{X=G(X,$,...U)}catch(_){let K=_ instanceof Error?_.message:String(_);throw Error(`Error applying filter '${z}': ${K}`)}if(J.startsWith("|"))J=J.substring(1).trim();else break}return X}function V5(Y){let Q=!1,$="",X=0,J=0,Z=0,z=!1;for(let G=0;G<Y.length;G++){let U=Y[G],_=Y[G+1];if(Q&&z){z=!1;continue}if(Q&&U==="\\"){z=!0;continue}if(z=!1,(U==='"'||U==="'"||U==="`")&&!z){if(!Q)Q=!0,$=U;else if(U===$)Q=!1,$="";continue}if(Q&&$==="`"&&U==="$"&&_==="{"){let K=1;G+=2;while(G<Y.length&&K>0){if(Y[G]==="{")K++;else if(Y[G]==="}")K--;if(K>0)G++}continue}if(Q)continue;if(U==="(")X++;else if(U===")")X--;else if(U==="[")J++;else if(U==="]")J--;else if(U==="{")Z++;else if(U==="}")Z--;if(U==="|"&&X===0&&J===0&&Z===0){if(_==="|"){G++;continue}if(_==="="){G++;continue}return G}}return-1}function K0(Y,Q,$=!1){try{let X=Y.trim(),J=V5(X);if(J>0){let Z=X.substring(0,J).trim(),z=X.substring(J+1).trim(),G=K0(Z,Q,!0);return O5(G,z,Q)}if(!t(X)){if(!$)console.warn(`Potentially unsafe expression detected, using safe evaluator: ${X}`);return Y0(X,Q)}try{let Z=Object.keys(Q),z=Object.values(Q);return e(X,Z)(...z)}catch{return Y0(X,Q)}}catch(X){if(X instanceof ReferenceError){let J=/(\b\w+)\s+is not defined/.exec(X.message);if(J){let Z=J[1],z=A5(Z,Object.keys(Q));if(z&&z!==Z)X.message=`${X.message} \u2014 did you mean '${z}'?`}}if(!$)console.error(`Error evaluating expression: ${Y}`,X);throw X}}function A5(Y,Q){let $=null;for(let J of Q){if(J===Y)continue;let Z=w5(Y,J);if($===null||Z<$.dist)$={key:J,dist:Z}}if(!$)return null;let X=Math.max(Y.length,$.key.length);if($.dist<=2||$.dist/X<=0.35)return $.key;return null}function w5(Y,Q){if(Y===Q)return 0;if(Y.length===0)return Q.length;if(Q.length===0)return Y.length;let[$,X]=Y.length<Q.length?[Y,Q]:[Q,Y],J=Array($.length+1),Z=Array($.length+1);for(let z=0;z<=$.length;z++)J[z]=z;for(let z=1;z<=X.length;z++){Z[0]=z;for(let G=1;G<=$.length;G++){let U=$[G-1]===X[z-1]?0:1;Z[G]=Math.min(Z[G-1]+1,J[G]+1,J[G-1]+U)}for(let G=0;G<=$.length;G++)J[G]=Z[G]}return J[$.length]}function J3(Y){if(!Y)return"";return Y.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&#39;/g,"'").replace(/&amp;/g,"&")}import X0 from"path";var U3=0,F5=0;function r0(Y){return Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function z3(Y,Q){let $=Y.match(new RegExp(`${Q}\\s*=\\s*"([^"]*)"`,"i"));if($)return $[1];let X=Y.match(new RegExp(`${Q}\\s*=\\s*'([^']*)'`,"i"));if(X)return X[1];return null}function R5(Y){let Q=[],$=/<([a-z][a-z0-9-]*)\s+([^>]*x-data\s*=\s*(?:"[^"]*"|'[^']*')[^>]*)>/gi,X;while((X=$.exec(Y))!==null){let[J,Z,z]=X,G=X.index,U=z3(z,"x-data");if(!U)continue;let _=`__stx_scope_${U3++}`,K=z3(z,"x-init"),j=T5(Y,Z,G+J.length),W=Y.slice(G,j.endIndex),q=I5(W);Q.push({id:_,selector:`[data-stx-scope="${_}"]`,stateExpr:U,initExpr:K,bindings:[],refs:q})}return Q}function T5(Y,Q,$){let X=1,J=$,Z=new RegExp(`<${Q}(?:\\s|>)`,"gi"),z=new RegExp(`</${Q}>`,"gi"),G=new RegExp(`<${Q}[^>]*/\\s*>`,"gi");while(X>0&&J<Y.length){Z.lastIndex=J,z.lastIndex=J,G.lastIndex=J;let U=Z.exec(Y),_=z.exec(Y),K=G.exec(Y);if(K&&K.index<(U?.index??1/0)){J=K.index+K[0].length;continue}if(!_)return{endIndex:Y.length};if(U&&U.index<_.index)X++,J=U.index+U[0].length;else{if(X--,X===0)return{endIndex:_.index+_[0].length};J=_.index+_[0].length}}return{endIndex:Y.length}}function I5(Y){let Q=new Map,$=Y.replace(/x-data\s*=\s*"[^"]*"/gi,'x-data="__stripped__"').replace(/x-data\s*=\s*'[^']*'/gi,"x-data='__stripped__'"),X=/<[a-z][a-z0-9-]*\s+([^>]*x-ref\s*=\s*["']([^"']*)["'][^>]*)>/gi,J;while((J=X.exec($))!==null){let[,Z,z]=J,G=k5(Z);Q.set(z,G)}return Q}function k5(Y){let Q=Y.match(/\bid\s*=\s*["']([^"']*)["']/);if(Q)return Q[1];return`__stx_el_${F5++}`}function N5(){return`
2
+ import{Ys as e4}from"./chunk-m8448qby.js";import{jt as a4}from"./chunk-7074g241.js";import{lt as W1}from"./chunk-9cf97f9p.js";import{st as s4}from"./chunk-v7f8jj15.js";import{tt as L0}from"./chunk-keawsbpn.js";import{vt as o1}from"./chunk-8b3z0zd5.js";import{At as k3,Bt as N3,wt as D4,xt as E4,yt as M4,zt as y4}from"./chunk-hbgxbgam.js";import{It as o4}from"./chunk-ejh8fyak.js";import{Jt as r4}from"./chunk-krqn0ddk.js";import{Pt as Y4,Qt as Z4}from"./chunk-y1k17c8b.js";import{Ut as C4}from"./chunk-2j21d3ka.js";import{Zt as I3}from"./chunk-frg705zq.js";import{au as i0}from"./chunk-hjm2xab3.js";import{gu as n4}from"./chunk-07y6m5xx.js";import{iu as n1,ju as r1,ku as Q5,lu as a1,mu as J5,nu as z5}from"./chunk-wazkqv7n.js";import{ru as T3}from"./chunk-x05nxhyv.js";import{tu as R3}from"./chunk-31dr4bys.js";import{fv as M3,gv as P0}from"./chunk-dqn9gyhb.js";import{jv as X5}from"./chunk-988dw6q3.js";import{kv as O1,lv as Q3,mv as F4,nv as p0,ov as K1,pv as q1}from"./chunk-8qc1bsym.js";import{Iv as p4}from"./chunk-xyg1r5w0.js";import{Lv as v4}from"./chunk-7gd339hd.js";import{Pv as l4,Qv as c4,Rv as i4}from"./chunk-4deg33rw.js";import{$v as u4}from"./chunk-pa9zb7ty.js";import{pw as T4,qw as F3}from"./chunk-a2g2qb2y.js";import{Dw as t4,Fw as Y5,Gw as Z5,Hw as $5}from"./chunk-nhv099jv.js";import{Rw as b4}from"./chunk-shv88d2d.js";import{ix as x4,kx as h4}from"./chunk-ek2w6zvy.js";import{xx as d4}from"./chunk-9wmq2272.js";import{zx as m4}from"./chunk-7dkz6z2s.js";import{Ax as t0,Bx as v3,Mx as R4}from"./chunk-9ecv8aqj.js";import{Qx as T0,Rx as P4,Sx as f4,Tx as g4}from"./chunk-bdk6g1vj.js";import{by as t3,cy as M1}from"./chunk-r5m9xtm7.js";import{fy as E1}from"./chunk-bs3gmfxz.js";import{py as H0,ty as g0}from"./chunk-zen6ax1y.js";import{uy as k4,wy as w0,xy as N4}from"./chunk-yb1t2h8h.js";import{Ey as f0,Hy as I4}from"./chunk-fjk3x41y.js";import{Iy as Y1,Ky as Z1}from"./chunk-5shey2e4.js";import{Ry as q0}from"./chunk-27zsyhrd.js";import{Ty as U5}from"./chunk-7ed3tean.js";import{Xy as w3}from"./chunk-8vtm0m84.js";import{Yy as v1}from"./chunk-tzwtg722.js";import{Zy as g1}from"./chunk-ah88wzbg.js";import{_y as u1}from"./chunk-v8j49spx.js";import{$y as x1}from"./chunk-tg2f1mzq.js";import{bz as l1}from"./chunk-rwrv9wbf.js";import{cz as d1}from"./chunk-wg9k6h8w.js";import{dz as m1}from"./chunk-9jtj77jx.js";import{fz as h1}from"./chunk-qygvvygy.js";import{hz as f1}from"./chunk-vjbefncc.js";import{iz as P1}from"./chunk-8xj7c3mf.js";import{nz as m3,pz as Y0,qz as t,uz as B0,vz as e,xz as $1}from"./chunk-w3b6m427.js";import{Qz as S4}from"./chunk-rz2ec6g7.js";import{$z as V4,hA as W3,iA as L3}from"./chunk-35faj94w.js";import{lA as A4}from"./chunk-djddhmcc.js";import{rA as B3,sA as O3,tA as V3,uA as A3,vA as w4}from"./chunk-knm8a8yx.js";import{pB as g}from"./chunk-xv34zbp4.js";import D0 from"path";import h0 from"fs";import i6 from"fs";import C from"path";var C0={},$3=new Map;function _5(Y){let Q=$3.get(Y);if(!Q){let $=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Q=new RegExp(`:${$}(?!\\w)`,"g"),$3.set(Y,Q)}return Q.lastIndex=0,Q}var s0={uppercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toUpperCase():""},lowercase:(Y,Q)=>{return Y!==void 0&&Y!==null?String(Y).toLowerCase():""},capitalize:(Y,Q)=>{if(Y===void 0||Y===null)return"";let $=String(Y);return $.charAt(0).toUpperCase()+$.slice(1)},number:(Y,Q,$=0)=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);return Number.isNaN(X)?"":X.toFixed(Number.parseInt(String($),10))}catch{return""}},fmt:(Y,Q,$="en-US")=>{if(Y===void 0||Y===null)return"";try{let X=Number(Y);if(Number.isNaN(X))return String(Y);return X.toLocaleString($)}catch{return String(Y)}},join:(Y,Q,$=",")=>{if(!Array.isArray(Y))return"";return Y.join(String($))},escape:(Y,Q)=>{if(Y===void 0||Y===null)return"";return n0(String(Y))},translate:(Y,Q,$={})=>{if(!Q||!Q.__translations)return Y;let X=Q.__translations,J=Q.__i18nConfig?.fallbackToKey??!0,Z=String(Y).split("."),z=X;for(let U of Z){if(z===void 0||z===null)break;z=z[U]}if(z===void 0||z===null)return J?Y:"";let G=String(z);return Object.entries($).forEach(([U,_])=>{G=G.replace(_5(U),String(_))}),G},t:(Y,Q,$={})=>{return s0.translate(Y,Q,$)},truncate:(Y,Q,$=50,X="...")=>{if(Y===void 0||Y===null)return"";let J=String(Y);if(J.length<=$)return J;if($<=X.length)return X.substring(0,$);return J.substring(0,$-X.length)+X},date:(Y,Q,$="short",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Y instanceof Date?Y:new Date(Y);if(Number.isNaN(J.getTime()))return String(Y);let Z={short:{dateStyle:"short"},medium:{dateStyle:"medium"},long:{dateStyle:"long"},full:{dateStyle:"full"},time:{timeStyle:"short"},datetime:{dateStyle:"short",timeStyle:"short"},iso:{}};if($==="iso")return J.toISOString();return new Intl.DateTimeFormat(X,Z[$]||Z.short).format(J)}catch{return String(Y)}},currency:(Y,Q,$="USD",X="en-US")=>{if(Y===void 0||Y===null)return"";try{let J=Number(Y);if(Number.isNaN(J))return String(Y);return new Intl.NumberFormat(X,{style:"currency",currency:$}).format(J)}catch{return String(Y)}},pluralize:(Y,Q,$,X)=>{let J=Number(Y);if(Number.isNaN(J))return $;let Z=X||`${$}s`;return J===1?$:Z},first:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[0];return String(Y).charAt(0)},last:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return Y.length===0?"":Y[Y.length-1];let $=String(Y);return $.charAt($.length-1)},length:(Y,Q)=>{if(Y===void 0||Y===null)return 0;if(Array.isArray(Y)||typeof Y==="string")return Y.length;if(Y instanceof Map||Y instanceof Set)return Y.size;if(typeof Y==="object")return Object.keys(Y).length;return 0},json:(Y,Q,$=!1)=>{if(Y===void 0)return"undefined";if(Y===null)return"null";try{return $?JSON.stringify(Y,null,2):JSON.stringify(Y)}catch{return String(Y)}},default:(Y,Q,$="")=>{return Y===void 0||Y===null||Y===""?$:Y},reverse:(Y,Q)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y))return[...Y].reverse();return String(Y).split("").reverse().join("")},slice:(Y,Q,$=0,X)=>{if(Y===void 0||Y===null)return"";if(Array.isArray(Y)||typeof Y==="string")return Y.slice($,X);return Y},replace:(Y,Q,$,X="")=>{if(Y===void 0||Y===null)return"";let J=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return String(Y).replace(new RegExp(J,"g"),()=>X)},stripTags:(Y,Q)=>{if(Y===void 0||Y===null)return"";return String(Y).replace(/<[^>]*>/g,"")},urlencode:(Y,Q)=>{if(Y===void 0||Y===null)return"";return encodeURIComponent(String(Y))},abs:(Y,Q)=>{let $=Number(Y);return Number.isNaN($)?0:Math.abs($)},round:(Y,Q,$=0)=>{let X=Number(Y);if(Number.isNaN(X))return 0;let J=10**$;return Math.round(X*J)/J}};function W5(Y,Q){if(Y in s0)console.warn(`Filter "${Y}" already exists as a built-in filter. Custom filter will take precedence.`);C0[Y]=Q}function I7(Y){for(let[Q,$]of Object.entries(Y))W5(Q,$)}function L5(){return{...s0,...C0}}function k7(){for(let Y of Object.keys(C0))delete C0[Y]}function n0(Y){return Y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function v0(Y){let Q=/<script\b(?![^>]*\bserver\b)(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi,$;while(($=Q.exec(Y))!==null){let X=$[1];if(/\b(state|derived|effect|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/.test(X))return!0}if(/@(if|for|show)\s*=\s*["'][^"']*\(\s*\)/.test(Y))return!0;if(/@for\s*=\s*["'][^"']*\s+(?:in|of)\s+[^"']*\(\s*\)/.test(Y))return!0;if(/(?:^|[\s"'])(?::|x-)(?:for|if|else-if|else|show|text|html|model|bind)\b/.test(Y))return!0;return!1}function X3(Y,Q){let $=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined","NaN","Infinity","isNaN","isFinite","window","document","console"],X=Y.replace(/'[^']*'/g,"").replace(/"[^"]*"/g,""),J="",Z=!1,z=0;for(let _=0;_<X.length;_++){let K=X[_];if(!Z&&K==="`"){Z=!0,z=0;continue}if(Z){if(K==="`"&&z===0){Z=!1;continue}if(K==="$"&&X[_+1]==="{"){z++,_++;continue}if(K==="}"&&z>0){z--;continue}continue}J+=K}X=J;let G=/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\b/g,U;while((U=G.exec(X))!==null){let _=U[1];if(!X.substring(0,U.index).trimEnd().endsWith(".")){if(!$.includes(_)&&!(_ in Q))return!1}}return!0}function B5(Y,Q){let $=Y;return $=$.replace(/\{!!([\s\S]*?)!!\}/g,(X,J)=>{try{let Z=K0(J,Q);if(Z===void 0)return X;return Z===null?"":String(Z)}catch{return X}}),$=$.replace(/\{\{([\s\S]*?)\}\}/g,(X,J)=>{let Z=J.trim();if(/^__[A-Z_]+__$/.test(Z))return X;try{let z=K0(J,Q);if(z===void 0)return X;return JSON.stringify(z)}catch{return X}}),$}function N7(Y,Q,$={}){return Y.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(X,J,Z)=>{if(/\bsrc\s*=/.test(J))return X;if(/\bdata-raw\b/.test(J))return X;if(/\btype\s*=\s*["']application\/json["']/.test(J))return X;if($.skipServer&&/\bserver\b/.test(J))return X;let z=B5(Z,Q);return`<script${J}>${z}</script>`})}function W0(Y,Q,$,X){let J=Y,Z=(K,j)=>{let W=Q3(K,j);if(W===-1)return-1;return/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/.test(K.slice(j,W))?-1:W},z=(K,j,W,q)=>{let H=W.length,{output:L,tokens:O}=p0(K,j,(V,B)=>q(H+B));return W.push(...O),L},G=[];J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`);let U=[];J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`);let _=X?.forceSignals===!0||v0(Y);J=J.replace(/\{\{\{([\s\S]*?)\}\}\}/g,(K,j,W)=>{try{let q=K0(j,Q);return q!==void 0&&q!==null?String(q):""}catch(q){let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {{{ ${j.trim()}}}}: ${H}`,$,Y,W,K)}}),J=J.replace(/\{!!([\s\S]*?)!!\}/g,(K,j,W)=>{try{let q=K0(j,Q);if(q===void 0&&Q.__stx_buildMode==="compile")return i0("raw",j.trim());return q!==void 0&&q!==null?String(q):""}catch(q){if(Q.__stx_buildMode==="compile")return i0("raw",j.trim());let H=q instanceof Error?q.message:String(q);return p("Expression",`Error evaluating: {!! ${j.trim()} !!}: ${H}`,$,Y,W,K)}}),J=z(J,O1,U,(K)=>`<!--__STX_SCRIPT_EXPR_${K}__-->`),J=z(J,Z,G,(K)=>`<!--__STX_STYLE_${K}__-->`),J=J.replace(/\{\{([\s\S]*?)\}\}/g,(K,j,W)=>{let q=j.trim(),H=["parseInt","parseFloat","String","Number","Boolean","Array","Object","JSON","Math","Date","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","true","false","null","undefined"],L=/^([a-zA-Z_$][a-zA-Z0-9_$]*)/,V=q.match(L)?.[1],B=V&&((V in Q)||H.includes(V)),A=/^([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/,w=q.match(A),F=w&&!H.includes(w[1])&&!(w[1]in Q);if(/^__[A-Z_]+__$/.test(q))return"";try{let N=K0(j,Q);if(N===void 0&&_&&!X3(q,Q))return K;if(N===void 0&&Q.__stx_buildMode==="compile"&&!_)return i0("expr",q);return N!==void 0&&N!==null?n0(String(N)):""}catch(N){if(_&&!X3(q,Q))return K;if(F)return K;let I=N instanceof Error?N.message:String(N);return p("Expression",`Error evaluating: {{ ${q} }}: ${I}`,$,Y,W,K)}});for(let K=0;K<U.length;K++)J=J.replace(`<!--__STX_SCRIPT_EXPR_${K}__-->`,()=>U[K]);for(let K=0;K<G.length;K++)J=J.replace(`<!--__STX_STYLE_${K}__-->`,()=>G[K]);return J}function O5(Y,Q,$){if(!Q.trim())return Y;let X=Y,J=Q.trim();while(J.length>0){let Z=J.match(/^(\w+)/);if(!Z)break;let z=Z[1];J=J.substring(z.length).trim();let G=C0[z]||s0[z];if(!G)throw Error(`Filter not found: ${z}. Available filters: ${Object.keys(L5()).join(", ")}`);let U=[];if(J.startsWith(":")){let _=J.match(/^:([^|\s]+)/);if(_){let K=_[1].trim();try{let j=Number(K);U=[Number.isNaN(j)?K:j]}catch{U=[K]}J=J.substring(_[0].length).trim()}}else if(J.startsWith("(")){let _=1,K=1;while(_>0&&K<J.length){if(J[K]==="(")_++;if(J[K]===")")_--;K++}if(_===0){let j=J.substring(1,K-1).trim();if(j)try{if(j.startsWith("{")&&j.endsWith("}"))U=[K0(`(${j})`,$,!0)];else{let W=[],q="",H=null,L=0,O=0,V=0,B=!1;for(let A=0;A<j.length;A++){let w=j[A];if(B){q+=w,B=!1;continue}if(w==="\\"){q+=w,B=!0;continue}if(H){if(q+=w,w===H)H=null;continue}if(w==='"'||w==="'"||w==="`"){H=w,q+=w;continue}if(w==="(")L++;else if(w===")")L--;else if(w==="[")O++;else if(w==="]")O--;else if(w==="{")V++;else if(w==="}")V--;if(w===","&&L===0&&O===0&&V===0){W.push(q),q="";continue}q+=w}if(q)W.push(q);U=W.map((A)=>{let w=A.trim();return K0(w,$,!0)})}}catch{U=[j]}J=J.substring(K).trim()}}try{X=G(X,$,...U)}catch(_){let K=_ instanceof Error?_.message:String(_);throw Error(`Error applying filter '${z}': ${K}`)}if(J.startsWith("|"))J=J.substring(1).trim();else break}return X}function V5(Y){let Q=!1,$="",X=0,J=0,Z=0,z=!1;for(let G=0;G<Y.length;G++){let U=Y[G],_=Y[G+1];if(Q&&z){z=!1;continue}if(Q&&U==="\\"){z=!0;continue}if(z=!1,(U==='"'||U==="'"||U==="`")&&!z){if(!Q)Q=!0,$=U;else if(U===$)Q=!1,$="";continue}if(Q&&$==="`"&&U==="$"&&_==="{"){let K=1;G+=2;while(G<Y.length&&K>0){if(Y[G]==="{")K++;else if(Y[G]==="}")K--;if(K>0)G++}continue}if(Q)continue;if(U==="(")X++;else if(U===")")X--;else if(U==="[")J++;else if(U==="]")J--;else if(U==="{")Z++;else if(U==="}")Z--;if(U==="|"&&X===0&&J===0&&Z===0){if(_==="|"){G++;continue}if(_==="="){G++;continue}return G}}return-1}function K0(Y,Q,$=!1){try{let X=Y.trim(),J=V5(X);if(J>0){let Z=X.substring(0,J).trim(),z=X.substring(J+1).trim(),G=K0(Z,Q,!0);return O5(G,z,Q)}if(!t(X)){if(!$)console.warn(`Potentially unsafe expression detected, using safe evaluator: ${X}`);return Y0(X,Q)}try{let Z=Object.keys(Q),z=Object.values(Q);return e(X,Z)(...z)}catch{return Y0(X,Q)}}catch(X){if(X instanceof ReferenceError){let J=/(\b\w+)\s+is not defined/.exec(X.message);if(J){let Z=J[1],z=A5(Z,Object.keys(Q));if(z&&z!==Z)X.message=`${X.message} \u2014 did you mean '${z}'?`}}if(!$)console.error(`Error evaluating expression: ${Y}`,X);throw X}}function A5(Y,Q){let $=null;for(let J of Q){if(J===Y)continue;let Z=w5(Y,J);if($===null||Z<$.dist)$={key:J,dist:Z}}if(!$)return null;let X=Math.max(Y.length,$.key.length);if($.dist<=2||$.dist/X<=0.35)return $.key;return null}function w5(Y,Q){if(Y===Q)return 0;if(Y.length===0)return Q.length;if(Q.length===0)return Y.length;let[$,X]=Y.length<Q.length?[Y,Q]:[Q,Y],J=Array($.length+1),Z=Array($.length+1);for(let z=0;z<=$.length;z++)J[z]=z;for(let z=1;z<=X.length;z++){Z[0]=z;for(let G=1;G<=$.length;G++){let U=$[G-1]===X[z-1]?0:1;Z[G]=Math.min(Z[G-1]+1,J[G]+1,J[G-1]+U)}for(let G=0;G<=$.length;G++)J[G]=Z[G]}return J[$.length]}function J3(Y){if(!Y)return"";return Y.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&#39;/g,"'").replace(/&amp;/g,"&")}import X0 from"path";var U3=0,F5=0;function r0(Y){return Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function z3(Y,Q){let $=Y.match(new RegExp(`${Q}\\s*=\\s*"([^"]*)"`,"i"));if($)return $[1];let X=Y.match(new RegExp(`${Q}\\s*=\\s*'([^']*)'`,"i"));if(X)return X[1];return null}function R5(Y){let Q=[],$=/<([a-z][a-z0-9-]*)\s+([^>]*x-data\s*=\s*(?:"[^"]*"|'[^']*')[^>]*)>/gi,X;while((X=$.exec(Y))!==null){let[J,Z,z]=X,G=X.index,U=z3(z,"x-data");if(!U)continue;let _=`__stx_scope_${U3++}`,K=z3(z,"x-init"),j=T5(Y,Z,G+J.length),W=Y.slice(G,j.endIndex),q=I5(W);Q.push({id:_,selector:`[data-stx-scope="${_}"]`,stateExpr:U,initExpr:K,bindings:[],refs:q})}return Q}function T5(Y,Q,$){let X=1,J=$,Z=new RegExp(`<${Q}(?:\\s|>)`,"gi"),z=new RegExp(`</${Q}>`,"gi"),G=new RegExp(`<${Q}[^>]*/\\s*>`,"gi");while(X>0&&J<Y.length){Z.lastIndex=J,z.lastIndex=J,G.lastIndex=J;let U=Z.exec(Y),_=z.exec(Y),K=G.exec(Y);if(K&&K.index<(U?.index??1/0)){J=K.index+K[0].length;continue}if(!_)return{endIndex:Y.length};if(U&&U.index<_.index)X++,J=U.index+U[0].length;else{if(X--,X===0)return{endIndex:_.index+_[0].length};J=_.index+_[0].length}}return{endIndex:Y.length}}function I5(Y){let Q=new Map,$=Y.replace(/x-data\s*=\s*"[^"]*"/gi,'x-data="__stripped__"').replace(/x-data\s*=\s*'[^']*'/gi,"x-data='__stripped__'"),X=/<[a-z][a-z0-9-]*\s+([^>]*x-ref\s*=\s*["']([^"']*)["'][^>]*)>/gi,J;while((J=X.exec($))!==null){let[,Z,z]=J,G=k5(Z);Q.set(z,G)}return Q}function k5(Y){let Q=Y.match(/\bid\s*=\s*["']([^"']*)["']/);if(Q)return Q[1];return`__stx_el_${F5++}`}function N5(){return`
3
3
  // STX Reactive Runtime - x-cloak and transition CSS
4
4
  (function() {
5
5
  var style = document.createElement('style');
@@ -1536,4 +1536,4 @@ ${_}${V}
1536
1536
  ${X}${$}
1537
1537
  ${_}
1538
1538
  })()</script>`}
1539
- export{J7 as kr,G7 as lr,j1 as mr,b1 as nr,_1 as or,s0 as pr,W5 as qr,I7 as rr,L5 as sr,k7 as tr,n0 as ur,v0 as vr,B5 as wr,N7 as xr,W0 as yr,O5 as zr,K0 as Ar,J3 as Br,q3 as Cr,H3 as Dr,g7 as Er,A1 as Fr,v5 as Gr,x5 as Hr,x7 as Ir,h7 as Jr,d7 as Kr,m7 as Lr,u7 as Mr,l7 as Nr,h5 as Or,d5 as Pr,j3 as Qr,D3 as Rr,l5 as Sr,E3 as Tr,Q9 as Ur,J9 as Vr,K3 as Wr,M5 as Xr,R1 as Yr,p5 as Zr,y3 as _r,G4 as $r,U4 as as,K4 as bs,$0 as cs,q4 as ds,c1 as es,i1 as fs,p1 as gs,N6 as hs,DY as is,EY as js,MY as ks,yY as ls,bY as ms,C6 as ns,s1 as os,l3 as ps,T9 as qs,C3 as rs,I9 as ss,I1 as ts,k1 as us,N1 as vs,P3 as ws,f3 as xs,p3 as ys,s3 as zs,n3 as As,r3 as Bs,_6 as Cs,W6 as Ds,S1 as Es,X4 as Fs,Q4 as Gs,J4 as Hs,I6 as Is,k6 as Js,z4 as Ks,e1 as Ls,s6 as Ms,I0 as Ns,k0 as Os,L4 as Ps,e6 as Qs,O0 as Rs,x as Ss,a0 as Ts,K5 as Us,p as Vs,QZ as Ws,JZ as Xs};
1539
+ export{J7 as jr,G7 as kr,j1 as lr,b1 as mr,_1 as nr,s0 as or,W5 as pr,I7 as qr,L5 as rr,k7 as sr,n0 as tr,v0 as ur,B5 as vr,N7 as wr,W0 as xr,O5 as yr,K0 as zr,J3 as Ar,q3 as Br,H3 as Cr,g7 as Dr,A1 as Er,v5 as Fr,x5 as Gr,x7 as Hr,h7 as Ir,d7 as Jr,m7 as Kr,u7 as Lr,l7 as Mr,h5 as Nr,d5 as Or,j3 as Pr,D3 as Qr,l5 as Rr,E3 as Sr,Q9 as Tr,J9 as Ur,K3 as Vr,M5 as Wr,R1 as Xr,p5 as Yr,y3 as Zr,G4 as _r,U4 as $r,K4 as as,$0 as bs,q4 as cs,c1 as ds,i1 as es,p1 as fs,N6 as gs,DY as hs,EY as is,MY as js,yY as ks,bY as ls,C6 as ms,s1 as ns,l3 as os,T9 as ps,C3 as qs,I9 as rs,I1 as ss,k1 as ts,N1 as us,P3 as vs,f3 as ws,p3 as xs,s3 as ys,n3 as zs,r3 as As,_6 as Bs,W6 as Cs,S1 as Ds,X4 as Es,Q4 as Fs,J4 as Gs,I6 as Hs,k6 as Is,z4 as Js,e1 as Ks,s6 as Ls,I0 as Ms,k0 as Ns,L4 as Os,e6 as Ps,O0 as Qs,x as Rs,a0 as Ss,K5 as Ts,p as Us,QZ as Vs,JZ as Ws};
@@ -213,4 +213,4 @@ function w(Z,M){let{itemHeight:K,containerHeight:P,overscan:F=3,keyProperty:$="i
213
213
  })();
214
214
  </script>
215
215
  `})}var v={createVirtualList:w,processVirtualListDirectives:C,processInfiniteListDirectives:E,processVirtualGridDirectives:f,generateVirtualListCSS:b,useVirtualList:L};
216
- export{w as tf,C as uf,b as vf,L as wf,E as xf,f as yf,v as zf};
216
+ export{w as wf,C as xf,b as yf,L as zf,E as Af,f as Bf,v as Cf};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  var H={1001:{message:"Unclosed directive: {{directive}}",help:"Make sure to close the directive with the appropriate end tag"},1002:{message:"Unclosed expression at position {{position}}",help:"Check for missing closing braces }}"},1003:{message:"Invalid directive syntax: {{directive}}",help:"Review the directive documentation for correct syntax"},1004:{message:"Malformed expression: {{expression}}",help:"Check for syntax errors in your expression"},1005:{message:"Unexpected token: {{token}}",help:"Remove or fix the unexpected token"},1101:{message:"Undefined variable: {{variable}}",help:"Make sure the variable is defined in the template context"},1102:{message:"Type error: {{details}}",help:"Check that you are using the correct types"},1103:{message:"Evaluation error: {{details}}",help:"Review the expression for errors"},1104:{message:"Infinite loop detected in {{location}}",help:"Check your loop conditions"},1105:{message:"Circular reference detected: {{path}}",help:"Remove the circular dependency"},1201:{message:"Unsafe expression blocked: {{expression}}",help:"This expression contains potentially dangerous code"},1202:{message:"Path traversal attempt blocked: {{path}}",help:"Use only relative paths within allowed directories"},1203:{message:"Potential XSS attempt blocked",help:"Sanitize user input before rendering"},1204:{message:"Code injection attempt blocked: {{code}}",help:"Avoid executing dynamic code"},1205:{message:"Prohibited DOM API usage: {{api}}",help:"Use STX.useRefs(), STX.useRef(), STX.el() and other STX helpers instead of direct DOM manipulation"},1301:{message:"File not found: {{path}}",help:"Check that the file exists and the path is correct"},1302:{message:"Error reading file: {{path}}",help:"Check file permissions and encoding"},1303:{message:"Invalid file path: {{path}}",help:"Use a valid file path"},1304:{message:"Permission denied: {{path}}",help:"Check file permissions"},1401:{message:"Invalid configuration: {{details}}",help:"Review your stx.config.ts file"},1402:{message:"Missing required configuration: {{key}}",help:"Add the required configuration option"},1403:{message:"Deprecated configuration: {{key}}",help:"Update to the new configuration format"},1501:{message:"Component not found: {{name}}",help:"Check that the component exists in your components directory"},1502:{message:"Invalid props for component {{name}}: {{details}}",help:"Check the component prop requirements"},1503:{message:"Error rendering component {{name}}: {{details}}",help:"Check the component template for errors"},1601:{message:"Filter not found: {{filter}}",help:"Register the filter or check the filter name"},1602:{message:"Invalid arguments for filter {{filter}}: {{details}}",help:"Check the filter documentation for correct arguments"},1603:{message:"Expression evaluation timed out",help:"Simplify the expression or increase the timeout"}},z={},D="en";function K(b){D=b}function N(){return D}function O(b){z={...z,...b}}function P(){z={}}function I(b,w={}){let j=z[b]||H[b]||{message:`Unknown error (code: ${b})`},q=j.message,x=j.help;for(let[F,A]of Object.entries(w)){let B=`{{${F}}}`;if(q=q.replace(new RegExp(B,"g"),A),x)x=x.replace(new RegExp(B,"g"),A)}return{message:q,help:x}}function Q(b,w={}){let{message:j,help:q}=I(b,w);return q?`${j}
3
3
  Help: ${q}`:j}var J={UNCLOSED_DIRECTIVE:1001,UNCLOSED_EXPRESSION:1002,INVALID_DIRECTIVE_SYNTAX:1003,MALFORMED_EXPRESSION:1004,UNEXPECTED_TOKEN:1005,UNDEFINED_VARIABLE:1101,TYPE_ERROR:1102,EVALUATION_ERROR:1103,INFINITE_LOOP:1104,CIRCULAR_REFERENCE:1105,UNSAFE_EXPRESSION:1201,PATH_TRAVERSAL:1202,XSS_ATTEMPT:1203,CODE_INJECTION:1204,DOM_API_VIOLATION:1205,FILE_NOT_FOUND:1301,FILE_READ_ERROR:1302,INVALID_FILE_PATH:1303,PERMISSION_DENIED:1304,INVALID_CONFIG:1401,MISSING_REQUIRED_CONFIG:1402,DEPRECATED_CONFIG:1403,COMPONENT_NOT_FOUND:1501,INVALID_PROPS:1502,COMPONENT_RENDER_ERROR:1503,FILTER_NOT_FOUND:1601,INVALID_FILTER_ARGS:1602,EXPRESSION_TIMEOUT:1603};function R(b){for(let[w,j]of Object.entries(J))if(j===b)return w;return}
4
- export{K as Ny,N as Oy,O as Py,P as Qy,I as Ry,Q as Sy,J as Ty,R as Uy};
4
+ export{K as Ly,N as My,O as Ny,P as Oy,I as Py,Q as Qy,J as Ry,R as Sy};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{ur as y}from"./chunk-w01y57f5.js";import{sz as F,xz as V}from"./chunk-adqh2m9z.js";function R(j,z){let J=1,q=z,G="<template",U="</template";while(q<j.length&&J>0){let Q=j.indexOf("<",q);if(Q===-1)break;if(q=Q,j.startsWith(G,q)&&(q+G.length>=j.length||/[\s>\/]/.test(j[q+G.length]))){J++,q+=G.length;continue}if(j.startsWith(U,q)){let W=j.indexOf(">",q+U.length);if(W!==-1){if(J--,J===0)return W+1;q=W+1;continue}}q++}return J===0?q:-1}function w(j){let z={default:"",named:new Map},J=j,q=/<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>/gi,G=[],U;while((U=q.exec(j))!==null){let[X,Z,K,I,L]=U,$=Z||K||I,O=U.index+X.length,H=R(j,O);if(H!==-1){let B=j.slice(O,H-11).trim();G.push({start:U.index,end:H,slotName:$,content:B,propsBinding:L||void 0}),z.named.set($,{name:$,content:B,propsBinding:L||void 0})}}G.sort((X,Z)=>Z.start-X.start);for(let X of G)J=J.slice(0,X.start)+J.slice(X.end);let Q=[],W=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,Y;while((Y=W.exec(J))!==null){let[X,Z,K,I,L,$]=Y,O=K.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),H=L.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(O+H).trim(),D=`<${Z}${B?" "+B:""}>${$}</${Z}>`;Q.push({start:Y.index,end:Y.index+X.length,slotName:I,element:D})}let _=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((Y=_.exec(J))!==null){let[X,Z,K,I,L]=Y,$=K.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=L.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),H=($+O).trim(),B=`<${Z}${H?" "+H:""} />`;Q.push({start:Y.index,end:Y.index+X.length,slotName:I,element:B})}Q.sort((X,Z)=>Z.start-X.start);for(let X of Q){let Z=z.named.get(X.slotName);if(Z)Z.content+=X.element;else z.named.set(X.slotName,{name:X.slotName,content:X.element});J=J.slice(0,X.start)+J.slice(X.end)}return z.default=J.trim(),z}function S(j){let z=j.match(/name\s*=\s*["']([^"']+)["']/),J=z?z[1]:"",q={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,U;while((U=G.exec(j))!==null)q[U[1]]=U[2];let Q=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),W=Q?Q[1].trim():"";return{name:J,props:q,defaultContent:W}}async function b(j,z,J,q){if(!j)return J;let G=j.content;if(j.propsBinding&&Object.keys(z).length>0){let U=j.propsBinding.trim(),Q={...q};if(U.startsWith("{")&&U.endsWith("}")){let W=U.slice(1,-1).split(",").map((Y)=>Y.trim()).filter(Boolean);for(let Y of W){let[_,X]=Y.split(":").map((K)=>K.trim()),Z=X||_;if(z[_]!==void 0)Q[Z]=z[_]}}else Q[U]=z;G=N(G,Q)}return G}function N(j,z){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(J,q)=>{try{let G=q.trim(),U=P(G,z);return y(String(U??""))}catch{return`{{ ${q} }}`}})}function P(j,z){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let q=j.split("."),G=z;for(let U of q)if(G&&typeof G==="object"&&U in G)G=G[U];else return;return G}let J=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(J){let[,q,G,U]=J,Q=z[q],W=parseInt(U,10);if(typeof Q==="number")switch(G){case"+":return Q+W;case"-":return Q-W;case"*":return Q*W;case"/":return Q/W}}try{if(!F(j))return;return V(j,Object.keys(z))(...Object.values(z))}catch{return}}async function k(j,z,J){let q=j;q=await E(q,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(Q,W,Y,_)=>{let X=z.named.get(W),Z=_?.trim()||"",K=Y||"",I={},L=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,$;while(($=L.exec(K))!==null){let O=$[1],H=$[2];I[O]=P(H,J)}return await b(X,I,Z,J)});let U=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return q=q.replace(U,(Q,W)=>{if(Q.includes("name="))return Q;let Y=W?.trim()||"";return z.default||Y}),q}async function E(j,z,J){let q=[],G=[];j.replace(z,(W,...Y)=>{let _=Y[Y.length-2];return G.push({match:W,index:_}),q.push(J(W,...Y.slice(0,-2))),W});let U=await Promise.all(q),Q=j;for(let W=G.length-1;W>=0;W--){let{match:Y,index:_}=G[W];Q=Q.slice(0,_)+U[W]+Q.slice(_+Y.length)}return Q}function T(j){let z=w(j);return{defaultSlot:z.default,namedSlots:z.named}}async function M(j,z,J,q){return await k(j,{default:z,named:J},q)}
3
- export{w as gg,S as hg,b as ig,k as jg,T as kg,M as lg};
2
+ import{tr as y}from"./chunk-1xz0w746.js";import{qz as F,vz as V}from"./chunk-w3b6m427.js";function R(j,z){let J=1,q=z,G="<template",U="</template";while(q<j.length&&J>0){let Q=j.indexOf("<",q);if(Q===-1)break;if(q=Q,j.startsWith(G,q)&&(q+G.length>=j.length||/[\s>\/]/.test(j[q+G.length]))){J++,q+=G.length;continue}if(j.startsWith(U,q)){let W=j.indexOf(">",q+U.length);if(W!==-1){if(J--,J===0)return W+1;q=W+1;continue}}q++}return J===0?q:-1}function w(j){let z={default:"",named:new Map},J=j,q=/<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>/gi,G=[],U;while((U=q.exec(j))!==null){let[X,Z,K,I,L]=U,$=Z||K||I,O=U.index+X.length,H=R(j,O);if(H!==-1){let B=j.slice(O,H-11).trim();G.push({start:U.index,end:H,slotName:$,content:B,propsBinding:L||void 0}),z.named.set($,{name:$,content:B,propsBinding:L||void 0})}}G.sort((X,Z)=>Z.start-X.start);for(let X of G)J=J.slice(0,X.start)+J.slice(X.end);let Q=[],W=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,Y;while((Y=W.exec(J))!==null){let[X,Z,K,I,L,$]=Y,O=K.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),H=L.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(O+H).trim(),D=`<${Z}${B?" "+B:""}>${$}</${Z}>`;Q.push({start:Y.index,end:Y.index+X.length,slotName:I,element:D})}let _=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((Y=_.exec(J))!==null){let[X,Z,K,I,L]=Y,$=K.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=L.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),H=($+O).trim(),B=`<${Z}${H?" "+H:""} />`;Q.push({start:Y.index,end:Y.index+X.length,slotName:I,element:B})}Q.sort((X,Z)=>Z.start-X.start);for(let X of Q){let Z=z.named.get(X.slotName);if(Z)Z.content+=X.element;else z.named.set(X.slotName,{name:X.slotName,content:X.element});J=J.slice(0,X.start)+J.slice(X.end)}return z.default=J.trim(),z}function S(j){let z=j.match(/name\s*=\s*["']([^"']+)["']/),J=z?z[1]:"",q={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,U;while((U=G.exec(j))!==null)q[U[1]]=U[2];let Q=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),W=Q?Q[1].trim():"";return{name:J,props:q,defaultContent:W}}async function b(j,z,J,q){if(!j)return J;let G=j.content;if(j.propsBinding&&Object.keys(z).length>0){let U=j.propsBinding.trim(),Q={...q};if(U.startsWith("{")&&U.endsWith("}")){let W=U.slice(1,-1).split(",").map((Y)=>Y.trim()).filter(Boolean);for(let Y of W){let[_,X]=Y.split(":").map((K)=>K.trim()),Z=X||_;if(z[_]!==void 0)Q[Z]=z[_]}}else Q[U]=z;G=N(G,Q)}return G}function N(j,z){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(J,q)=>{try{let G=q.trim(),U=P(G,z);return y(String(U??""))}catch{return`{{ ${q} }}`}})}function P(j,z){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let q=j.split("."),G=z;for(let U of q)if(G&&typeof G==="object"&&U in G)G=G[U];else return;return G}let J=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(J){let[,q,G,U]=J,Q=z[q],W=parseInt(U,10);if(typeof Q==="number")switch(G){case"+":return Q+W;case"-":return Q-W;case"*":return Q*W;case"/":return Q/W}}try{if(!F(j))return;return V(j,Object.keys(z))(...Object.values(z))}catch{return}}async function k(j,z,J){let q=j;q=await E(q,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(Q,W,Y,_)=>{let X=z.named.get(W),Z=_?.trim()||"",K=Y||"",I={},L=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,$;while(($=L.exec(K))!==null){let O=$[1],H=$[2];I[O]=P(H,J)}return await b(X,I,Z,J)});let U=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return q=q.replace(U,(Q,W)=>{if(Q.includes("name="))return Q;let Y=W?.trim()||"";return z.default||Y}),q}async function E(j,z,J){let q=[],G=[];j.replace(z,(W,...Y)=>{let _=Y[Y.length-2];return G.push({match:W,index:_}),q.push(J(W,...Y.slice(0,-2))),W});let U=await Promise.all(q),Q=j;for(let W=G.length-1;W>=0;W--){let{match:Y,index:_}=G[W];Q=Q.slice(0,_)+U[W]+Q.slice(_+Y.length)}return Q}function T(j){let z=w(j);return{defaultSlot:z.default,namedSlots:z.named}}async function M(j,z,J,q){return await k(j,{default:z,named:J},q)}
3
+ export{w as jg,S as kg,b as lg,k as mg,T as ng,M as og};
@@ -271,4 +271,4 @@ else {
271
271
  })();
272
272
  </script>
273
273
  `}var J=null;function X(k){if(!J)J=new K(k);return J}function Y(){if(J)J.getRegistry().clear(),J=null}var Z={ComponentHMRHandler:K,getHMRHandler:X,resetHMRHandler:Y,generateHMRClientScript:U,wrapComponentForHMR:W};
274
- export{K as ap,U as bp,W as cp,X as dp,Y as ep,Z as fp};
274
+ export{K as $o,U as ap,W as bp,X as cp,Y as dp,Z as ep};
@@ -158,4 +158,4 @@ else {
158
158
  })();
159
159
  </script>
160
160
  `,j}function E(C){let{html:D,bindings:w,stores:j}=y(C);if(w.length===0)return C;let k=B(w,j),q=D.lastIndexOf("</body>");if(q!==-1)return D.slice(0,q)+k+D.slice(q);return D+k}
161
- export{y as Tt,B as Ut,E as Vt};
161
+ export{y as St,B as Tt,E as Ut};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ export{w as iy,A as jy,N as ky,T as ly,V as my,b as ny};
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import{vu as $}from"./chunk-tj6zfxeb.js";import{Au as Z,yu as Y}from"./chunk-7xcfy2fn.js";import{yw as X}from"./chunk-ywkrxp2h.js";function f(){return X({name:"img",hasEndTag:!1,description:"Render an optimized responsive image with srcset and lazy loading",transform:async(G,B,j,y)=>{let{src:z,alt:N,options:q}=H(G,B,j);if(!z)return console.warn("@img directive: missing src argument"),"<!-- @img: missing src -->";let J={src:z,alt:N||"",widths:q.widths||Y,formats:q.formats||Z,quality:q.quality,sizes:q.sizes,dpr:q.dpr,params:q.params,placeholder:q.placeholder,placeholderOptions:q.placeholderOptions,lazy:q.lazy!==!1,priority:q.priority||!1,loading:q.loading,decoding:q.decoding,fetchpriority:q.fetchpriority,objectFit:q.objectFit,objectPosition:q.objectPosition,class:q.class,style:q.style,id:q.id,width:q.width,height:q.height},w=j.__isDev||!1,K=await $(J,{isDev:w}),P=K.html;if(K.preloadLink)P=K.preloadLink+`
2
+ import{uu as $}from"./chunk-mgj88zeq.js";import{xu as Y,zu as Z}from"./chunk-m167kjhv.js";import{xw as X}from"./chunk-h5jxydqq.js";function f(){return X({name:"img",hasEndTag:!1,description:"Render an optimized responsive image with srcset and lazy loading",transform:async(G,B,j,y)=>{let{src:z,alt:N,options:q}=H(G,B,j);if(!z)return console.warn("@img directive: missing src argument"),"<!-- @img: missing src -->";let J={src:z,alt:N||"",widths:q.widths||Y,formats:q.formats||Z,quality:q.quality,sizes:q.sizes,dpr:q.dpr,params:q.params,placeholder:q.placeholder,placeholderOptions:q.placeholderOptions,lazy:q.lazy!==!1,priority:q.priority||!1,loading:q.loading,decoding:q.decoding,fetchpriority:q.fetchpriority,objectFit:q.objectFit,objectPosition:q.objectPosition,class:q.class,style:q.style,id:q.id,width:q.width,height:q.height},w=j.__isDev||!1,K=await $(J,{isDev:w}),P=K.html;if(K.preloadLink)P=K.preloadLink+`
3
3
  `+P;if(K.css)P+=`
4
4
  <style>${K.css}</style>`;if(K.script)P+=`
5
5
  <script>${K.script}</script>`;return P},defaults:{src:"",alt:"",options:{lazy:!0,placeholder:"none"}}})}function H(G,B,j){if(B.src)return{src:String(B.src),alt:String(B.alt||""),options:B.options||{}};let y=G.trim();if(y.startsWith("@img(")||y.startsWith("("))y=y.replace(/^@img\(/,"").replace(/^\(/,"").replace(/\)$/,"");let z=M(y),N=Q(z[0],j)||"",q=Q(z[1],j)||"",J={};if(z[2]){let w=Q(z[2],j);if(typeof w==="object"&&w!==null)J=w;else if(typeof z[2]==="string")try{J=JSON.parse(z[2])}catch{}}return{src:N,alt:q,options:J}}function M(G){let B=[],j="",y=!1,z="",N=0,q=0;for(let J=0;J<G.length;J++){let w=G[J],K=J>0?G[J-1]:"";if((w==='"'||w==="'"||w==="`")&&K!=="\\"){if(!y)y=!0,z=w;else if(w===z)y=!1,z="";else j+=w;continue}if(!y){if(w==="{")N++;if(w==="}")N--;if(w==="[")q++;if(w==="]")q--;if(w===","&&N===0&&q===0){B.push(j.trim()),j="";continue}}j+=w}if(j.trim())B.push(j.trim());return B}function Q(G,B){if(typeof G!=="string")return G;let j=G.trim();if(j.startsWith('"')&&j.endsWith('"')||j.startsWith("'")&&j.endsWith("'"))return j.slice(1,-1);if(!j.startsWith("/")&&!j.startsWith(".")&&!j.startsWith("http")&&!j.startsWith("{")){let y=B[j];if(y!==void 0)return y}if(j.startsWith("{")||j.startsWith("["))try{return JSON.parse(j)}catch{}return j}var L=f();
6
- export{f as tu,L as uu};
6
+ export{f as su,L as tu};
@@ -12,4 +12,4 @@ import $ from"path";function u(G,X,H,J){let q=G;q=q.replace(/@a11y\(\s*['"]([^'"
12
12
  border-width: 0;
13
13
  }
14
14
  `.trim()}function A(){return typeof globalThis.document<"u"&&typeof globalThis.document.createElement==="function"}function M(G,X){let H=[],J=/<img\s+([^>]*)>/gi,q;q=J.exec(G);while(q!==null){let U=q[1];if(!/\balt\s*=/i.test(U))H.push({type:"missing-alt",element:q[0].substring(0,100),message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"});q=J.exec(G)}let K=/<button([^>]*)>\s*<\/button>/gi;q=K.exec(G);while(q!==null){let U=q[1];if(!/\baria-label\s*=/i.test(U)&&!/\btitle\s*=/i.test(U))H.push({type:"missing-accessible-name",element:q[0].substring(0,100),message:"Empty button missing accessible name",impact:"critical",help:"Add text content, aria-label, or title",helpUrl:"https://web.dev/learn/accessibility/aria-html/"});q=K.exec(G)}let N=/<a\s+([^>]*)>\s*<\/a>/gi;q=N.exec(G);while(q!==null){let U=q[1];if(!/\baria-label\s*=/i.test(U)&&!/\btitle\s*=/i.test(U))H.push({type:"link-missing-text",element:q[0].substring(0,100),message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"});q=N.exec(G)}let j=/<(input|select|textarea)\s+([^>]*)>/gi;q=j.exec(G);while(q!==null){let U=q[2];if(/\btype\s*=\s*["']hidden["']/i.test(U)){q=j.exec(G);continue}let O=/\baria-label\s*=/i.test(U)||/\baria-labelledby\s*=/i.test(U),D=U.match(/\bid\s*=\s*["']([^"']+)["']/i);if(!O){let F=D&&new RegExp(`<label[^>]*\\bfor\\s*=\\s*["']${D[1]}["']`,"i").test(G),E=q.index,w=G.substring(0,E),b=G.substring(E),T=(w.match(/<label\b/gi)||[]).length,I=(w.match(/<\/label>/gi)||[]).length,B=T>I;if(!F&&!B)H.push({type:"input-missing-label",element:q[0].substring(0,100),message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})}q=j.exec(G)}let z=/<h([1-6])[^>]*>/gi,Q=[];q=z.exec(G);while(q!==null)Q.push(Number.parseInt(q[1],10)),q=z.exec(G);let V=0;for(let U of Q){if(V>0&&U>V+1)H.push({type:"heading-skip",element:`<h${U}>`,message:`Heading level skipped from h${V} to h${U}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});V=U}if(/<html\b/i.test(G)&&!/<html[^>]*\slang\s*=/i.test(G))H.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});let Y=/<table[^>]*>([\s\S]*?)<\/table>/gi;q=Y.exec(G);while(q!==null){let U=q[1];if(!/<th\b/i.test(U))H.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});q=Y.exec(G)}let _=/<(video|audio)[^>]*\sautoplay\s[^>]*>/gi;q=_.exec(G);while(q!==null){if(!/\bmuted\b/i.test(q[0]))H.push({type:"autoplay-audio",element:`<${q[1]}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"});q=_.exec(G)}let Z=/\btabindex\s*=\s*["']([1-9]\d*)["']/gi;q=Z.exec(G);while(q!==null)H.push({type:"positive-tabindex",element:`tabindex="${q[1]}"`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"}),q=Z.exec(G);let S=/<iframe\s+([^>]*)>/gi;q=S.exec(G);while(q!==null){let U=q[1];if(!/\btitle\s*=/i.test(U)&&!/\baria-label\s*=/i.test(U))H.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"});q=S.exec(G)}let W=/<([a-z]+)\s+([^>]*role\s*=\s*["']button["'][^>]*)>/gi;q=W.exec(G);while(q!==null){let U=q[1].toLowerCase(),O=q[2];if(U!=="button"&&!/\btabindex\s*=/i.test(O))H.push({type:"button-not-focusable",element:q[0].substring(0,100),message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"});q=W.exec(G)}return H}async function C(G,X){if(!A())return M(G,X);let H=[];try{let J=globalThis.document.createElement("div");J.innerHTML=G,J.querySelectorAll("img").forEach((j)=>{if(!j.hasAttribute("alt"))H.push({type:"missing-alt",element:`<${j.outerHTML}>`,message:"Image missing alt attribute",impact:"serious",help:"Add alt text to images for screen readers",helpUrl:"https://web.dev/learn/accessibility/images/"})}),J.querySelectorAll('button, a, [role="button"]').forEach((j)=>{if(!(j.hasAttribute("aria-label")||j.hasAttribute("aria-labelledby")||j.textContent&&j.textContent.trim().length>0))H.push({type:"missing-accessible-name",element:`<${j.outerHTML}>`,message:"Interactive element missing accessible name",impact:"critical",help:"Add text content, aria-label, or aria-labelledby",helpUrl:"https://web.dev/learn/accessibility/aria-html/"})}),J.querySelectorAll("input, select, textarea").forEach((j)=>{let z=j.getAttribute("id"),Q=z&&J.querySelector(`label[for="${z}"]`),V=j.hasAttribute("aria-label")||j.hasAttribute("aria-labelledby"),Y=j.closest("label")!==null;if(!Q&&!V&&!Y)H.push({type:"input-missing-label",element:`<${j.outerHTML}>`,message:"Form input missing associated label",impact:"serious",help:"Associate a label with the input or use aria-label",helpUrl:"https://web.dev/learn/accessibility/forms/"})});let q=Array.from(J.querySelectorAll("h1, h2, h3, h4, h5, h6")),K=0;for(let j of q){let z=Number.parseInt(j.tagName.charAt(1));if(K>0&&z>K+1)H.push({type:"heading-skip",element:`<${j.outerHTML}>`,message:`Heading level skipped from h${K} to h${z}`,impact:"moderate",help:"Maintain proper heading hierarchy without skipping levels",helpUrl:"https://web.dev/learn/accessibility/structure/"});K=z}let N=J.querySelector("html");if(G.includes("<html")&&N&&!N.hasAttribute("lang"))H.push({type:"missing-lang",element:"<html>",message:"Document language not specified",impact:"serious",help:"Add lang attribute to the html element",helpUrl:"https://web.dev/learn/accessibility/more-html/#language"});if(J.querySelectorAll("a").forEach((j)=>{let z=j.textContent&&j.textContent.trim().length>0,Q=j.hasAttribute("aria-label")||j.hasAttribute("aria-labelledby"),V=j.hasAttribute("title"),Y=j.querySelector("img[alt]");if(!z&&!Q&&!V&&!Y)H.push({type:"link-missing-text",element:`<${j.outerHTML}>`,message:"Link has no accessible text",impact:"serious",help:"Add text content, aria-label, or title to links",helpUrl:"https://web.dev/learn/accessibility/more-html/#links"})}),G.includes("<nav")||G.includes("<header")){if(!J.querySelector('a[href="#main"], a[href="#content"], .skip-link, [class*="skip"]')&&J.querySelectorAll("a").length>5)H.push({type:"missing-skip-link",element:"<nav>",message:"Consider adding a skip navigation link",impact:"minor",help:"Add a skip link to allow keyboard users to bypass navigation",helpUrl:"https://web.dev/learn/accessibility/focus/#skip-links"})}if(J.querySelectorAll("table").forEach((j)=>{let z=j.querySelector("caption");if(!j.querySelector("th"))H.push({type:"table-missing-headers",element:"<table>",message:"Table missing header cells (th)",impact:"serious",help:"Use th elements for table headers",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"});if(!z&&!j.hasAttribute("aria-label")&&!j.hasAttribute("aria-labelledby"))H.push({type:"table-missing-caption",element:"<table>",message:"Table missing caption or accessible name",impact:"minor",help:"Add a caption element or aria-label to describe the table",helpUrl:"https://web.dev/learn/accessibility/more-html/#tables"})}),J.querySelectorAll('[style*="color"]').forEach((j)=>{let z=j.getAttribute("style")||"";if(z.includes("color:")&&!z.includes("background"))H.push({type:"potential-contrast-issue",element:`<${j.tagName.toLowerCase()}>`,message:"Element has inline color style - verify contrast ratio",impact:"minor",help:"Ensure text has sufficient contrast ratio (4.5:1 for normal text)",helpUrl:"https://web.dev/learn/accessibility/color-contrast/"})}),J.querySelectorAll("video[autoplay], audio[autoplay]").forEach((j)=>{if(!j.hasAttribute("muted"))H.push({type:"autoplay-audio",element:`<${j.tagName.toLowerCase()}>`,message:"Auto-playing media may disrupt users",impact:"moderate",help:"Add muted attribute or provide controls to stop playback",helpUrl:"https://web.dev/learn/accessibility/more-html/#multimedia"})}),J.querySelectorAll("[tabindex]").forEach((j)=>{if(Number.parseInt(j.getAttribute("tabindex")||"0")>0)H.push({type:"positive-tabindex",element:`<${j.tagName.toLowerCase()}>`,message:"Positive tabindex disrupts natural tab order",impact:"moderate",help:'Use tabindex="0" or "-1" instead of positive values',helpUrl:"https://web.dev/learn/accessibility/focus/#tab-index"})}),J.querySelectorAll('[role="button"]').forEach((j)=>{if(!j.hasAttribute("tabindex"))H.push({type:"button-not-focusable",element:`<${j.outerHTML}>`,message:'Element with role="button" is not keyboard focusable',impact:"serious",help:'Add tabindex="0" to make custom buttons focusable',helpUrl:"https://web.dev/learn/accessibility/focus/"})}),G.includes("<body")&&!J.querySelector('main, [role="main"]'))H.push({type:"missing-main-landmark",element:"<body>",message:"Document missing main landmark region",impact:"moderate",help:"Add a main element to identify the primary content",helpUrl:"https://web.dev/learn/accessibility/structure/#landmarks"});J.querySelectorAll("iframe").forEach((j)=>{if(!j.hasAttribute("title")&&!j.hasAttribute("aria-label"))H.push({type:"iframe-missing-title",element:"<iframe>",message:"Iframe missing title attribute",impact:"serious",help:"Add a title attribute to describe the iframe content",helpUrl:"https://web.dev/learn/accessibility/more-html/#frames"})})}catch(J){console.error(`Error checking accessibility in ${X}:`,J)}return H}async function x(G,X={}){let H={},{recursive:J=!0,ignorePaths:q=[]}=X,K=$.join(G,J?"**/*.stx":"*.stx"),N=new Bun.Glob(K),j=[];for await(let z of N.scan())if(!q.some((V)=>z.includes($.normalize(V))))j.push(z);for(let z of j)try{let Q=await Bun.file(z).text();if(z.endsWith("good-a11y.stx"))continue;let V=await C(Q,z);if(V.length>0)H[z]=V}catch(Q){console.error(`Error scanning ${z}:`,Q)}return H}var P={fixMissingAlt:!0,fixMissingLabels:!0,fixMissingFormLabels:!0,fixTableHeaders:!0,fixMissingLang:!0,fixPositiveTabindex:!0,fixButtonFocusable:!0,defaultLang:"en"};function L(G,X={}){let H={...P,...X},J=[],q=G;if(H.fixMissingAlt)q=q.replace(/<img([^>]*?)(?<!\balt\s*=\s*["'][^"']*["'])(\s*\/?>)/gi,(K,N,j)=>{if(/\balt\s*=/i.test(N))return K;let z=K,Q=`<img${N} alt=""${j}`;return J.push({type:"missing-alt",description:"Added empty alt attribute to image",before:z,after:Q}),Q});if(H.fixMissingLabels)q=q.replace(/<button([^>]*)>\s*<\/button>/gi,(K,N)=>{if(/\baria-label\s*=/i.test(N)||/\btitle\s*=/i.test(N))return K;let j=K,z=`<button${N} aria-label="Button"></button>`;return J.push({type:"missing-accessible-name",description:"Added aria-label to empty button",before:j,after:z}),z}),q=q.replace(/<a([^>]*)>\s*(<(?:i|span|svg)[^>]*(?:class="[^"]*icon[^"]*")?[^>]*>.*?<\/(?:i|span|svg)>)?\s*<\/a>/gi,(K,N,j)=>{if(/\baria-label\s*=/i.test(N)||/\btitle\s*=/i.test(N))return K;if(!j&&K.replace(/<a[^>]*>|<\/a>/gi,"").trim())return K;let z=K,Q=`<a${N} aria-label="Link">${j||""}</a>`;return J.push({type:"missing-accessible-name",description:"Added aria-label to link without text",before:z,after:Q}),Q});if(H.fixMissingFormLabels)q=q.replace(/<(input|select|textarea)([^>]*)>/gi,(K,N,j)=>{if(/\baria-label\s*=/i.test(j)||/\baria-labelledby\s*=/i.test(j))return K;if(/\btype\s*=\s*["']hidden["']/i.test(j))return K;let z=j.match(/\bname\s*=\s*["']([^"']+)["']/i),Q=j.match(/\bid\s*=\s*["']([^"']+)["']/i),V=z?.[1]||Q?.[1]||N,Y=K,_=`<${N}${j} aria-label="${V}">`;return J.push({type:"input-missing-label",description:`Added aria-label to ${N} element`,before:Y,after:_}),_});if(H.fixMissingLang)q=q.replace(/<html([^>]*)>/gi,(K,N)=>{if(/\blang\s*=/i.test(N))return K;let j=K,z=`<html${N} lang="${H.defaultLang}">`;return J.push({type:"missing-lang",description:`Added lang="${H.defaultLang}" to html element`,before:j,after:z}),z});if(H.fixPositiveTabindex)q=q.replace(/\btabindex\s*=\s*["']([1-9]\d*)["']/gi,(K,N)=>{let j=K,z='tabindex="0"';return J.push({type:"positive-tabindex",description:`Changed tabindex="${N}" to tabindex="0"`,before:j,after:'tabindex="0"'}),'tabindex="0"'});if(H.fixButtonFocusable)q=q.replace(/<([a-z]+)(\s[^>]*role\s*=\s*["']button["'][^>]*)>/gi,(K,N,j)=>{if(/\btabindex\s*=/i.test(j))return K;if(N.toLowerCase()==="button")return K;let z=K,Q=`<${N}${j} tabindex="0">`;return J.push({type:"button-not-focusable",description:'Added tabindex="0" to element with role="button"',before:z,after:Q}),Q});if(H.fixTableHeaders)q=q.replace(/<th([^>]*)>/gi,(K,N)=>{if(/\bscope\s*=/i.test(N))return K;let j=K,z=`<th${N} scope="col">`;return J.push({type:"table-missing-scope",description:'Added scope="col" to table header',before:j,after:z}),z});return{original:G,fixed:q,fixCount:J.length,fixes:J}}async function k(G,X={},H=!1){let J=await Bun.file(G).text(),q=L(J,X);if(H&&q.fixCount>0)await Bun.write(G,q.fixed);return q}async function p(G,X={},H={}){let J={},{recursive:q=!0,ignorePaths:K=[],writeBack:N=!1,extensions:j=[".stx",".html",".htm"]}=H,z=j.length===1?`*${j[0]}`:`*{${j.join(",")}}`,Q=$.join(G,q?`**/${z}`:z),V=new Bun.Glob(Q);for await(let Y of V.scan()){if(K.some((Z)=>Y.includes($.normalize(Z))))continue;try{let Z=await k(Y,X,N);if(Z.fixCount>0)J[Y]=Z}catch(Z){console.error(`Error fixing ${Y}:`,Z)}}return J}var y={name:"a11y",handler:(G,X,H,J)=>{if(!X.length)return G;let q=X[0].replace(/['"]/g,""),K=X.length>1?X[1].replace(/['"]/g,""):"",j={"aria-label":"Ensure interactive elements have accessible labels","alt-text":"Provide alternative text for images",focus:"Ensure the element can receive keyboard focus",landmark:"Use appropriate landmark roles","heading-order":"Maintain proper heading hierarchy","color-contrast":"Ensure sufficient color contrast","keyboard-nav":"Make sure element is keyboard navigable","screen-reader":"Optimize for screen reader users"}[q]||"Make this element accessible";return`<!-- a11y-hint: ${K||j} -->${G}`},hasEndTag:!1},R={name:"screenReader",handler:(G)=>{return`<span class="sr-only">${G}</span>`},hasEndTag:!0};function g(){return[y,R]}
15
- export{u as bA,v as cA,A as dA,C as eA,x as fA,L as gA,k as hA,p as iA,y as jA,R as kA,g as lA};
15
+ export{u as $z,v as aA,A as bA,C as cA,x as dA,L as eA,k as fA,p as gA,y as hA,R as iA,g as jA};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{rB as q}from"./chunk-3jm3snz8.js";var D={strategy:"thumbhash",width:20,quality:50,blurLevel:40,transitionDuration:300,easing:"ease-out"},K=`
2
+ import{pB as q}from"./chunk-xv34zbp4.js";var D={strategy:"thumbhash",width:20,quality:50,blurLevel:40,transitionDuration:300,easing:"ease-out"},K=`
3
3
  .stx-img-placeholder {
4
4
  position: relative;
5
5
  overflow: hidden;
@@ -48,4 +48,4 @@ import{rB as q}from"./chunk-3jm3snz8.js";var D={strategy:"thumbhash",width:20,qu
48
48
  opacity: 1;
49
49
  }
50
50
  `.trim()}function T(j){return`background-image: url('${j.dataURL}'); background-size: cover; background-position: center;`}var Q=new Map;async function _(j,f={}){let x=`${j}:${JSON.stringify(f)}`;if(Q.has(x))return Q.get(x);let z=await Z(j,f);return Q.set(x,z),z}function C(){Q.clear()}function u(){return{size:Q.size,keys:Array.from(Q.keys())}}
51
- export{D as Vu,K as Wu,Z as Xu,O as Yu,b as Zu,L as _u,y as $u,A as av,P as bv,T as cv,_ as dv,C as ev,u as fv};
51
+ export{D as Uu,K as Vu,Z as Wu,O as Xu,b as Yu,L as Zu,y as _u,A as $u,P as av,T as bv,_ as cv,C as dv,u as ev};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Sk as H,Xk as Q}from"./chunk-5ggw1dyv.js";import{rB as F}from"./chunk-3jm3snz8.js";import{resolve as T,basename as E,extname as U,join as b}from"path";import{mkdir as D}from"fs/promises";async function R(){try{return await import("ts-images")}catch{return null}}var I=[320,480,640,768,1024,1280,1536,1920];async function S(K,Y,C){let Z=await R();if(!Z)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=T(K);if(!await Q(X))return console.warn(`[stx-media] Source file not found: ${K}`),null;try{let k=Y.responsiveWidths||C.breakpoints||I,L=Y.formats||C.defaultFormats||["avif","webp","jpeg"],q=C.outputDir||"dist/images",V=C.baseUrl||"/images";await D(q,{recursive:!0});let _=await H(X),x=E(K,U(K)),M=C.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},$={src:K,byFormat:{},srcsets:{}};for(let J of L){$.byFormat[J]=[];let N=[];for(let j of k){let W=`${x}-${j}w-${_}.${J}`,B=b(q,W),G=`${V}/${W}`;try{let O=M[J]?.quality||80;if(await Q(B)){$.byFormat[J].push({path:B,url:G,width:j,height:0,format:J,size:0}),N.push(`${G} ${j}w`);continue}let z=await Z.processImage({input:X,output:B,format:J,quality:O,resize:{width:j}});if(z)$.byFormat[J].push({path:B,url:G,width:j,height:z.height||Math.round(j*(z.height||1)/(z.width||1)),format:J,size:z.outputSize||0}),N.push(`${G} ${j}w`)}catch(O){console.warn(`[stx-media] Failed to generate ${J} at ${j}w: ${O}`)}}$.srcsets[J]=N.join(", ")}let A=Y.placeholder||C.placeholderStrategy||"thumbhash";if(A!=="none")try{if(A==="thumbhash"){let J=await Z.generateThumbHash(X);$.placeholder={dataURL:J.dataUrl,width:J.width||32,height:J.height||32,strategy:"thumbhash"}}else{let J=await Z.generatePlaceholder(X,{strategy:A,width:20});$.placeholder={dataURL:J.dataURL,width:J.width,height:J.height,strategy:A}}}catch(J){console.warn(`[stx-media] Failed to generate placeholder: ${J}`)}return $.sizes=Y.sizes||y(k),$}catch(k){return console.error(`[stx-media] Responsive generation failed: ${k}`),null}}function y(K){let Y=[...K].sort((Z,X)=>Z-X),C=[];for(let Z=0;Z<Y.length-1;Z++){let X=Y[Z];C.push(`(max-width: ${X}px) ${X}px`)}return C.push(`${Y[Y.length-1]}px`),C.join(", ")}function d(K,Y="width"){if(!K||K.length===0)return"";if(Y==="dpr")return K.filter((C)=>C.dpr).map((C)=>`${C.url} ${C.dpr}x`).join(", ");return K.map((C)=>`${C.url} ${C.width}w`).join(", ")}async function m(K,Y,C){let Z=[];for(let X of Y){let k=await S(X.src,{responsiveWidths:X.widths},C);if(k){for(let[L,q]of Object.entries(k.srcsets))if(q)Z.push({media:X.media,srcset:q,type:P(L)})}}return Z}function P(K){switch(K){case"avif":return"image/avif";case"webp":return"image/webp";case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";default:return"image/jpeg"}}
3
- export{I as Ok,S as Pk,d as Qk,m as Rk};
2
+ import{Vk as H,_k as Q}from"./chunk-jpndqst5.js";import{pB as F}from"./chunk-xv34zbp4.js";import{resolve as T,basename as E,extname as U,join as b}from"path";import{mkdir as D}from"fs/promises";async function R(){try{return await import("ts-images")}catch{return null}}var I=[320,480,640,768,1024,1280,1536,1920];async function S(K,Y,C){let Z=await R();if(!Z)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=T(K);if(!await Q(X))return console.warn(`[stx-media] Source file not found: ${K}`),null;try{let k=Y.responsiveWidths||C.breakpoints||I,L=Y.formats||C.defaultFormats||["avif","webp","jpeg"],q=C.outputDir||"dist/images",V=C.baseUrl||"/images";await D(q,{recursive:!0});let _=await H(X),x=E(K,U(K)),M=C.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},$={src:K,byFormat:{},srcsets:{}};for(let J of L){$.byFormat[J]=[];let N=[];for(let j of k){let W=`${x}-${j}w-${_}.${J}`,B=b(q,W),G=`${V}/${W}`;try{let O=M[J]?.quality||80;if(await Q(B)){$.byFormat[J].push({path:B,url:G,width:j,height:0,format:J,size:0}),N.push(`${G} ${j}w`);continue}let z=await Z.processImage({input:X,output:B,format:J,quality:O,resize:{width:j}});if(z)$.byFormat[J].push({path:B,url:G,width:j,height:z.height||Math.round(j*(z.height||1)/(z.width||1)),format:J,size:z.outputSize||0}),N.push(`${G} ${j}w`)}catch(O){console.warn(`[stx-media] Failed to generate ${J} at ${j}w: ${O}`)}}$.srcsets[J]=N.join(", ")}let A=Y.placeholder||C.placeholderStrategy||"thumbhash";if(A!=="none")try{if(A==="thumbhash"){let J=await Z.generateThumbHash(X);$.placeholder={dataURL:J.dataUrl,width:J.width||32,height:J.height||32,strategy:"thumbhash"}}else{let J=await Z.generatePlaceholder(X,{strategy:A,width:20});$.placeholder={dataURL:J.dataURL,width:J.width,height:J.height,strategy:A}}}catch(J){console.warn(`[stx-media] Failed to generate placeholder: ${J}`)}return $.sizes=Y.sizes||y(k),$}catch(k){return console.error(`[stx-media] Responsive generation failed: ${k}`),null}}function y(K){let Y=[...K].sort((Z,X)=>Z-X),C=[];for(let Z=0;Z<Y.length-1;Z++){let X=Y[Z];C.push(`(max-width: ${X}px) ${X}px`)}return C.push(`${Y[Y.length-1]}px`),C.join(", ")}function d(K,Y="width"){if(!K||K.length===0)return"";if(Y==="dpr")return K.filter((C)=>C.dpr).map((C)=>`${C.url} ${C.dpr}x`).join(", ");return K.map((C)=>`${C.url} ${C.width}w`).join(", ")}async function m(K,Y,C){let Z=[];for(let X of Y){let k=await S(X.src,{responsiveWidths:X.widths},C);if(k){for(let[L,q]of Object.entries(k.srcsets))if(q)Z.push({media:X.media,srcset:q,type:P(L)})}}return Z}function P(K){switch(K){case"avif":return"image/avif";case"webp":return"image/webp";case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";default:return"image/jpeg"}}
3
+ export{I as Rk,S as Sk,d as Tk,m as Uk};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Md as $}from"./chunk-svhtdb0s.js";import Y from"fs";import X from"path";async function V(q){let{componentsDir:A,outputDir:K=A,include:R=["**/*.stx"],exclude:M=["**/*.story.stx","**/node_modules/**"],generateVariants:O=!0,includeDefaults:Q=!0,overwrite:J=!1}=q,T=[],j=await w(A,R,M);for(let H of j){let U=H.replace(/\.stx$/,".story.stx"),W=await z(U);if(W&&!J){T.push({componentPath:H,storyPath:U,content:"",status:"skipped"});continue}let b=await $(H),B=L(b,{generateVariants:O,includeDefaults:Q}),Z=K===A?U:X.join(K,X.basename(U));await Y.promises.mkdir(X.dirname(Z),{recursive:!0}),await Y.promises.writeFile(Z,B),T.push({componentPath:H,storyPath:Z,content:B,status:W?"updated":"created"})}return T}function L(q,A={}){let{generateVariants:K=!0,includeDefaults:R=!0}=A,M=[],O={};if(R){for(let j of q.props)if(j.default!==void 0)O[j.name]=j.default}if(M.push({id:"default",title:"Default",state:O}),K){for(let j of q.props)if(j.type==="boolean")M.push({id:`${j.name}-true`,title:`${_(j.name)} (true)`,state:{...O,[j.name]:!0}}),M.push({id:`${j.name}-false`,title:`${_(j.name)} (false)`,state:{...O,[j.name]:!1}});for(let j of q.props)if(j.options&&j.options.length>0)for(let H of j.options)M.push({id:`${j.name}-${H}`,title:`${_(j.name)}: ${H}`,state:{...O,[j.name]:H}})}let Q=q.name,J=q.description||`Stories for ${Q} component`,T=M.map((j)=>{let H=Object.entries(j.state).map(([U,W])=>{if(typeof W==="string")return`${U}="${W}"`;return`:${U}="${JSON.stringify(W)}"`}).join(" ");return`
2
+ import{Md as $}from"./chunk-pznnww6k.js";import Y from"fs";import X from"path";async function V(q){let{componentsDir:A,outputDir:K=A,include:R=["**/*.stx"],exclude:M=["**/*.story.stx","**/node_modules/**"],generateVariants:O=!0,includeDefaults:Q=!0,overwrite:J=!1}=q,T=[],j=await w(A,R,M);for(let H of j){let U=H.replace(/\.stx$/,".story.stx"),W=await z(U);if(W&&!J){T.push({componentPath:H,storyPath:U,content:"",status:"skipped"});continue}let b=await $(H),B=L(b,{generateVariants:O,includeDefaults:Q}),Z=K===A?U:X.join(K,X.basename(U));await Y.promises.mkdir(X.dirname(Z),{recursive:!0}),await Y.promises.writeFile(Z,B),T.push({componentPath:H,storyPath:Z,content:B,status:W?"updated":"created"})}return T}function L(q,A={}){let{generateVariants:K=!0,includeDefaults:R=!0}=A,M=[],O={};if(R){for(let j of q.props)if(j.default!==void 0)O[j.name]=j.default}if(M.push({id:"default",title:"Default",state:O}),K){for(let j of q.props)if(j.type==="boolean")M.push({id:`${j.name}-true`,title:`${_(j.name)} (true)`,state:{...O,[j.name]:!0}}),M.push({id:`${j.name}-false`,title:`${_(j.name)} (false)`,state:{...O,[j.name]:!1}});for(let j of q.props)if(j.options&&j.options.length>0)for(let H of j.options)M.push({id:`${j.name}-${H}`,title:`${_(j.name)}: ${H}`,state:{...O,[j.name]:H}})}let Q=q.name,J=q.description||`Stories for ${Q} component`,T=M.map((j)=>{let H=Object.entries(j.state).map(([U,W])=>{if(typeof W==="string")return`${U}="${W}"`;return`:${U}="${JSON.stringify(W)}"`}).join(" ");return`
3
3
  @story('${j.title}')
4
4
  <${Q} ${H} />
5
5
  @endstory`}).join(`
@@ -68,4 +68,4 @@ var J=0;function O(){return`stx-teleport-${++J}`}function P(k){let j=k.split(","
68
68
  })();
69
69
  </script>
70
70
  `}
71
- export{U as Lf,V as Mf};
71
+ export{U as Of,V as Pf};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{rB as l}from"./chunk-3jm3snz8.js";import U from"fs";import G from"path";import I from"os";import H from"crypto";import{generatePlaceholder as m,processImage as g}from"ts-images";var d=[320,640,768,1024,1280,1536,1920],h=["webp","jpeg"],b=80,u=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],P={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},N=null,W=!1;async function Y(){if(W)return N;W=!0;try{let J=await import("sharp");return N=J.default||J,N}catch{return null}}async function e(){return await Y()!==null}async function t(){return!0}async function JJ(J,K={}){let{widths:Z=d,formats:$=h,quality:q=b,fit:C="cover",placeholder:X="none",outputDir:Q=".stx/images",baseUrl:_="/images"}=K,j,x;if(typeof J==="string"){if(x=J,!await Bun.file(J).exists())throw new L(`Image not found: ${J}`,"NOT_FOUND");j=await Bun.file(J).arrayBuffer().then((V)=>Buffer.from(V))}else x="buffer-input",j=J;let w=H.createHash("sha256").update(j).digest("hex").slice(0,12),y=await O(j),{width:B,height:D}=y,A=B/D;await U.promises.mkdir(Q,{recursive:!0});let T=[],v=G.basename(x,G.extname(x)),z=Z.filter((V)=>V<=B);if(!z.includes(B)&&B<=Math.max(...Z))z.push(B);z.sort((V,R)=>V-R);for(let V of z){let R=Math.round(V/A);for(let F of $){let S=`${v}-${V}w-${w}.${F}`,k=G.join(Q,S),c=`${_}/${S}`,E=await n(j,{width:V,height:R,format:F,quality:q,fit:C});await Bun.write(k,E),T.push({path:k,url:c,width:V,height:R,format:F,size:E.length})}}let M;if(X!=="none")M=await o(j,X);return{src:x,variants:T,placeholder:M,width:B,height:D,aspectRatio:A,hash:w}}async function O(J){let K=typeof J==="string"?Buffer.from(await Bun.file(J).arrayBuffer()):J,Z=await Y();if(Z){let q=await Z(K).metadata();return{width:q.width||0,height:q.height||0,format:q.format||"unknown",hasAlpha:q.hasAlpha}}return p(K)}function p(J){if(J[0]===137&&J[1]===80&&J[2]===78&&J[3]===71){let K=J.readUInt32BE(16),Z=J.readUInt32BE(20);return{width:K,height:Z,format:"png",hasAlpha:!0}}if(J[0]===255&&J[1]===216){let K=2;while(K<J.length){if(J[K]!==255)break;let Z=J[K+1];if(Z>=192&&Z<=207&&Z!==196&&Z!==200&&Z!==204){let q=J.readUInt16BE(K+5);return{width:J.readUInt16BE(K+7),height:q,format:"jpeg",hasAlpha:!1}}let $=J.readUInt16BE(K+2);K+=2+$}}if(J.toString("utf8",0,4)==="RIFF"&&J.toString("utf8",8,12)==="WEBP"){let K=J.toString("utf8",12,16);if(K==="VP8 "){let Z=J.readUInt16LE(26)&16383,$=J.readUInt16LE(28)&16383;return{width:Z,height:$,format:"webp",hasAlpha:!1}}if(K==="VP8L"){let Z=J.readUInt32LE(21),$=(Z&16383)+1,q=(Z>>14&16383)+1;return{width:$,height:q,format:"webp",hasAlpha:!0}}}if(J.toString("utf8",0,3)==="GIF"){let K=J.readUInt16LE(6),Z=J.readUInt16LE(8);return{width:K,height:Z,format:"gif",hasAlpha:!0}}throw new L("Unable to parse image dimensions","PARSE_ERROR")}async function n(J,K){let Z=await Y();if(Z){let q=Z(J).resize(K.width,K.height,{fit:K.fit});switch(K.format){case"webp":q=q.webp({quality:K.quality});break;case"avif":q=q.avif({quality:K.quality});break;case"jpeg":q=q.jpeg({quality:K.quality});break;case"png":q=q.png({quality:K.quality});break}return q.toBuffer()}let $=G.join(I.tmpdir(),`stx-img-${H.randomBytes(8).toString("hex")}.${K.format}`);try{return await g({input:J,output:$,format:K.format,quality:K.quality,resize:{width:K.width,height:K.height,fit:K.fit}}),Buffer.from(await Bun.file($).arrayBuffer())}finally{await U.promises.unlink($).catch(()=>{})}}async function o(J,K){let Z=await Y();if(K==="blur"&&Z){let X=(await Z(J).resize(20).blur(10).toBuffer()).toString("base64"),Q=await O(J);return`data:${P[Q.format]||"image/jpeg"};base64,${X}`}if(K==="dominant-color"&&Z){let{dominant:C}=await Z(J).resize(1,1).toBuffer().then(async(X)=>{let Q=await Z(X).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${C.r}, ${C.g}, ${C.b})`}let $=await O(J),q=G.join(I.tmpdir(),`stx-ph-${H.randomBytes(8).toString("hex")}.${$.format==="unknown"?"bin":$.format}`);try{await Bun.write(q,J);let C=K==="blur"?"blur":K==="thumbhash"?"thumbhash":"dominant-color",Q=await m(q,{strategy:C,width:C==="thumbhash"?void 0:32});if(K==="dominant-color"&&Q.dominantColor)return Q.dominantColor;if(Q.dataURL)return Q.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{await U.promises.unlink(q).catch(()=>{})}}function KJ(J,K){return(K?J.filter(($)=>$.format===K):J).sort(($,q)=>$.width-q.width).map(($)=>`${$.url} ${$.width}w`).join(", ")}function ZJ(J){if(!J||Object.keys(J).length===0)return"100vw";return Object.entries(J).sort((Z,$)=>{let q=Number.parseInt(Z[0].replace(/\D/g,""))||0;return(Number.parseInt($[0].replace(/\D/g,""))||0)-q}).map(([Z,$])=>`(max-width: ${Z}) ${$}`).join(", ")+", 100vw"}function $J(J){let K=J.filter(($)=>$.format==="jpeg");if(K.length===0)return J[Math.floor(J.length/2)];let Z=K.sort(($,q)=>$.width-q.width);return Z[Math.floor(Z.length/2)]}function qJ(J){let K=new Map;for(let Z of J){let $=K.get(Z.format)||[];$.push(Z),K.set(Z.format,$)}return K}function CJ(J){let K=G.extname(J).toLowerCase();return u.includes(K)}function QJ(J){return P[J]||"application/octet-stream"}function VJ(J){return J.reduce((K,Z)=>K+Z.size,0)}function XJ(J){if(J<1024)return`${J} B`;if(J<1048576)return`${(J/1024).toFixed(1)} KB`;return`${(J/1048576).toFixed(2)} MB`}class L extends Error{code;constructor(J,K){super(J);this.name="ImageProcessingError",this.code=K}}
3
- export{d as Jm,h as Km,b as Lm,e as Mm,t as Nm,JJ as Om,O as Pm,n as Qm,KJ as Rm,ZJ as Sm,$J as Tm,qJ as Um,CJ as Vm,QJ as Wm,VJ as Xm,XJ as Ym,L as Zm};
2
+ import{pB as l}from"./chunk-xv34zbp4.js";import U from"fs";import G from"path";import I from"os";import H from"crypto";import{generatePlaceholder as m,processImage as g}from"ts-images";var d=[320,640,768,1024,1280,1536,1920],h=["webp","jpeg"],b=80,u=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],P={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},N=null,W=!1;async function Y(){if(W)return N;W=!0;try{let J=await import("sharp");return N=J.default||J,N}catch{return null}}async function e(){return await Y()!==null}async function t(){return!0}async function JJ(J,K={}){let{widths:Z=d,formats:$=h,quality:q=b,fit:C="cover",placeholder:X="none",outputDir:Q=".stx/images",baseUrl:_="/images"}=K,j,x;if(typeof J==="string"){if(x=J,!await Bun.file(J).exists())throw new L(`Image not found: ${J}`,"NOT_FOUND");j=await Bun.file(J).arrayBuffer().then((V)=>Buffer.from(V))}else x="buffer-input",j=J;let w=H.createHash("sha256").update(j).digest("hex").slice(0,12),y=await O(j),{width:B,height:D}=y,A=B/D;await U.promises.mkdir(Q,{recursive:!0});let T=[],v=G.basename(x,G.extname(x)),z=Z.filter((V)=>V<=B);if(!z.includes(B)&&B<=Math.max(...Z))z.push(B);z.sort((V,R)=>V-R);for(let V of z){let R=Math.round(V/A);for(let F of $){let S=`${v}-${V}w-${w}.${F}`,k=G.join(Q,S),c=`${_}/${S}`,E=await n(j,{width:V,height:R,format:F,quality:q,fit:C});await Bun.write(k,E),T.push({path:k,url:c,width:V,height:R,format:F,size:E.length})}}let M;if(X!=="none")M=await o(j,X);return{src:x,variants:T,placeholder:M,width:B,height:D,aspectRatio:A,hash:w}}async function O(J){let K=typeof J==="string"?Buffer.from(await Bun.file(J).arrayBuffer()):J,Z=await Y();if(Z){let q=await Z(K).metadata();return{width:q.width||0,height:q.height||0,format:q.format||"unknown",hasAlpha:q.hasAlpha}}return p(K)}function p(J){if(J[0]===137&&J[1]===80&&J[2]===78&&J[3]===71){let K=J.readUInt32BE(16),Z=J.readUInt32BE(20);return{width:K,height:Z,format:"png",hasAlpha:!0}}if(J[0]===255&&J[1]===216){let K=2;while(K<J.length){if(J[K]!==255)break;let Z=J[K+1];if(Z>=192&&Z<=207&&Z!==196&&Z!==200&&Z!==204){let q=J.readUInt16BE(K+5);return{width:J.readUInt16BE(K+7),height:q,format:"jpeg",hasAlpha:!1}}let $=J.readUInt16BE(K+2);K+=2+$}}if(J.toString("utf8",0,4)==="RIFF"&&J.toString("utf8",8,12)==="WEBP"){let K=J.toString("utf8",12,16);if(K==="VP8 "){let Z=J.readUInt16LE(26)&16383,$=J.readUInt16LE(28)&16383;return{width:Z,height:$,format:"webp",hasAlpha:!1}}if(K==="VP8L"){let Z=J.readUInt32LE(21),$=(Z&16383)+1,q=(Z>>14&16383)+1;return{width:$,height:q,format:"webp",hasAlpha:!0}}}if(J.toString("utf8",0,3)==="GIF"){let K=J.readUInt16LE(6),Z=J.readUInt16LE(8);return{width:K,height:Z,format:"gif",hasAlpha:!0}}throw new L("Unable to parse image dimensions","PARSE_ERROR")}async function n(J,K){let Z=await Y();if(Z){let q=Z(J).resize(K.width,K.height,{fit:K.fit});switch(K.format){case"webp":q=q.webp({quality:K.quality});break;case"avif":q=q.avif({quality:K.quality});break;case"jpeg":q=q.jpeg({quality:K.quality});break;case"png":q=q.png({quality:K.quality});break}return q.toBuffer()}let $=G.join(I.tmpdir(),`stx-img-${H.randomBytes(8).toString("hex")}.${K.format}`);try{return await g({input:J,output:$,format:K.format,quality:K.quality,resize:{width:K.width,height:K.height,fit:K.fit}}),Buffer.from(await Bun.file($).arrayBuffer())}finally{await U.promises.unlink($).catch(()=>{})}}async function o(J,K){let Z=await Y();if(K==="blur"&&Z){let X=(await Z(J).resize(20).blur(10).toBuffer()).toString("base64"),Q=await O(J);return`data:${P[Q.format]||"image/jpeg"};base64,${X}`}if(K==="dominant-color"&&Z){let{dominant:C}=await Z(J).resize(1,1).toBuffer().then(async(X)=>{let Q=await Z(X).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${C.r}, ${C.g}, ${C.b})`}let $=await O(J),q=G.join(I.tmpdir(),`stx-ph-${H.randomBytes(8).toString("hex")}.${$.format==="unknown"?"bin":$.format}`);try{await Bun.write(q,J);let C=K==="blur"?"blur":K==="thumbhash"?"thumbhash":"dominant-color",Q=await m(q,{strategy:C,width:C==="thumbhash"?void 0:32});if(K==="dominant-color"&&Q.dominantColor)return Q.dominantColor;if(Q.dataURL)return Q.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{await U.promises.unlink(q).catch(()=>{})}}function KJ(J,K){return(K?J.filter(($)=>$.format===K):J).sort(($,q)=>$.width-q.width).map(($)=>`${$.url} ${$.width}w`).join(", ")}function ZJ(J){if(!J||Object.keys(J).length===0)return"100vw";return Object.entries(J).sort((Z,$)=>{let q=Number.parseInt(Z[0].replace(/\D/g,""))||0;return(Number.parseInt($[0].replace(/\D/g,""))||0)-q}).map(([Z,$])=>`(max-width: ${Z}) ${$}`).join(", ")+", 100vw"}function $J(J){let K=J.filter(($)=>$.format==="jpeg");if(K.length===0)return J[Math.floor(J.length/2)];let Z=K.sort(($,q)=>$.width-q.width);return Z[Math.floor(Z.length/2)]}function qJ(J){let K=new Map;for(let Z of J){let $=K.get(Z.format)||[];$.push(Z),K.set(Z.format,$)}return K}function CJ(J){let K=G.extname(J).toLowerCase();return u.includes(K)}function QJ(J){return P[J]||"application/octet-stream"}function VJ(J){return J.reduce((K,Z)=>K+Z.size,0)}function XJ(J){if(J<1024)return`${J} B`;if(J<1048576)return`${(J/1024).toFixed(1)} KB`;return`${(J/1048576).toFixed(2)} MB`}class L extends Error{code;constructor(J,K){super(J);this.name="ImageProcessingError",this.code=K}}
3
+ export{d as Mm,h as Nm,b as Om,e as Pm,t as Qm,JJ as Rm,O as Sm,n as Tm,KJ as Um,ZJ as Vm,$J as Wm,qJ as Xm,CJ as Ym,QJ as Zm,VJ as _m,XJ as $m,L as an};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{rz as g,sz as M}from"./chunk-adqh2m9z.js";import V from"crypto";function L(j){return String(j??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var W={input:"form-control",inputError:"is-invalid",checkInput:"form-check-input",label:"form-label",errorFeedback:"invalid-feedback"};function b(j){return{...W,...j.forms?.classes}}function N(j,q,K,U){let Z=j||q;return K?`${Z} ${U}`:Z}function h(){return V.randomUUID()}function v(j,q,K,U){let Z=b(U),X=j;return X=d(X,q),X=Q(X,q),X=f(X,q,Z),X=x(X,q,Z),X}function Q(j,q){let K=j;return K=K.replace(/@csrf/g,()=>{if(!q.csrf||typeof q.csrf!=="object"){let U=h();q.csrf={token:U}}if(q.csrf.field)return q.csrf.field;if(q.csrf.token)return`<input type="hidden" name="_token" value="${L(q.csrf.token)}">`;return'<input type="hidden" name="_token" value="">'}),K=K.replace(/@method\(['"]([^'"]+)['"]\)/g,(U,Z)=>{let X=Z.toUpperCase();if(Z&&!["GET","POST"].includes(X))return`<input type="hidden" name="_method" value="${L(X)}">`;return U}),K}function f(j,q,K=W){let U=j;return U=U.replace(/@form\(\s*(?:(?:'([^']+)'|"([^"]+)")\s*)?(?:,\s*(?:'([^']+)'|"([^"]+)")?)?\s*(?:,\s*\{([^}]+)\}\s*)?\)/g,(Z,X,$,Y,G,_="")=>{let w=X||$||"POST",P=Y||G||"",B=k(_),J=w.toUpperCase(),I=["GET","POST"].includes(J)?J:"POST",z=`<form method="${L(I)}" action="${L(P)}"${B?` ${B}`:""}>`;if(z+=`
2
+ import{pz as g,qz as M}from"./chunk-w3b6m427.js";import V from"crypto";function L(j){return String(j??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var W={input:"form-control",inputError:"is-invalid",checkInput:"form-check-input",label:"form-label",errorFeedback:"invalid-feedback"};function b(j){return{...W,...j.forms?.classes}}function N(j,q,K,U){let Z=j||q;return K?`${Z} ${U}`:Z}function h(){return V.randomUUID()}function v(j,q,K,U){let Z=b(U),X=j;return X=d(X,q),X=Q(X,q),X=f(X,q,Z),X=x(X,q,Z),X}function Q(j,q){let K=j;return K=K.replace(/@csrf/g,()=>{if(!q.csrf||typeof q.csrf!=="object"){let U=h();q.csrf={token:U}}if(q.csrf.field)return q.csrf.field;if(q.csrf.token)return`<input type="hidden" name="_token" value="${L(q.csrf.token)}">`;return'<input type="hidden" name="_token" value="">'}),K=K.replace(/@method\(['"]([^'"]+)['"]\)/g,(U,Z)=>{let X=Z.toUpperCase();if(Z&&!["GET","POST"].includes(X))return`<input type="hidden" name="_method" value="${L(X)}">`;return U}),K}function f(j,q,K=W){let U=j;return U=U.replace(/@form\(\s*(?:(?:'([^']+)'|"([^"]+)")\s*)?(?:,\s*(?:'([^']+)'|"([^"]+)")?)?\s*(?:,\s*\{([^}]+)\}\s*)?\)/g,(Z,X,$,Y,G,_="")=>{let w=X||$||"POST",P=Y||G||"",B=k(_),J=w.toUpperCase(),I=["GET","POST"].includes(J)?J:"POST",z=`<form method="${L(I)}" action="${L(P)}"${B?` ${B}`:""}>`;if(z+=`
3
3
  ${Q("@csrf",q)}`,!["GET","POST"].includes(J))z+=`
4
4
  ${Q(`@method('${J}')`,q)}`;return z}),U=U.replace(/@endform/g,"</form>"),U=U.replace(/@input\(\s*(?:'([^']+)'|"([^"]+)")\s*(?:,\s*(?:(?:'([^']*)'|"([^"]*)")\s*)?)?(?:,\s*\{([^}]+)\})?\s*\)/g,(Z,X,$,Y,G,_="")=>{let w=X||$||"",P=Y||G||"",B=k(_),J=H(w,q),I=J!==void 0&&J!==null?J:P||"",z=B.match(/type=['"]([^'"]+)['"]/i),T=z?z[1]:"text",R=O(w,q),D=B.match(/class=['"]([^'"]+)['"]/i),F=N(D?D[1]:"",K.input,R,K.inputError),y=B.replace(/class=['"][^'"]+['"]/i,"");return y=y.replace(/type=['"][^'"]+['"]/i,""),`<input type="${L(T)}" name="${L(w)}" value="${L(I)}" class="${F}"${y?` ${y}`:""}>`}),U=U.replace(/@textarea\(\s*['"]([^'"]+)['"]\s*(?:,\s*\{([^}]+)\})?\)([\s\S]*?)@endtextarea/g,(Z,X,$="",Y="")=>{let G=k($),_=H(X,q)||Y.trim(),w=O(X,q),P=G.match(/class=['"]([^'"]+)['"]/i),B=N(P?P[1]:"",K.input,w,K.inputError),J=G.replace(/class=['"][^'"]+['"]/i,"");return`<textarea name="${L(X)}" class="${B}"${J?` ${J}`:""}>${L(_)}</textarea>`}),U=U.replace(/@select\(\s*['"]([^'"]+)['"]\s*(?:,\s*\{([^}]+)\})?\)([\s\S]*?)@endselect/g,(Z,X,$="",Y)=>{let G=k($),_=H(X,q),w=O(X,q),P=G.match(/class=['"]([^'"]+)['"]/i),B=N(P?P[1]:"",K.input,w,K.inputError),J=G.replace(/class=['"][^'"]+['"]/i,""),I=Y;if(_!==void 0)I=Y.replace(/(<option[^>]*value=['"]([^'"]+)['"][^>]*>)/gi,(z,T,R)=>{if((Array.isArray(_)?_.some((F)=>String(F)===R):String(_)===R)&&!T.includes("selected"))return T.replace(/(<option)/,"$1 selected");return z});return`<select name="${L(X)}" class="${B}"${J?` ${J}`:""}>${I}</select>`}),U=U.replace(/@checkbox\(\s*['"]([^'"]+)['"]\s*(?:,\s*['"]([^'"]+)['"]\s*)?(?:,\s*\{([^}]+)\})?\)/g,(Z,X,$="1",Y="")=>{let G=k(Y),_=H(X,q),w=_!==void 0&&(Array.isArray(_)?_.some((I)=>String(I)===$):_===!0||String(_)===$),P=G.match(/class=['"]([^'"]+)['"]/i),B=P?P[1]:K.checkInput,J=G.replace(/class=['"][^'"]+['"]/i,"");return`<input type="checkbox" name="${L(X)}" value="${L($)}" class="${B}"${w?" checked":""}${J?` ${J}`:""}>`}),U=U.replace(/@radio\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*(?:,\s*\{([^}]+)\})?\)/g,(Z,X,$,Y="")=>{let G=k(Y),_=H(X,q),w=_!==void 0&&_===$,P=G.match(/class=['"]([^'"]+)['"]/i),B=P?P[1]:K.checkInput,J=G.replace(/class=['"][^'"]+['"]/i,"");return`<input type="radio" name="${L(X)}" value="${L($)}" class="${B}"${w?" checked":""}${J?` ${J}`:""}>`}),U=U.replace(/@file\(\s*['"]([^'"]+)['"]\s*(?:,\s*\{([^}]+)\})?\)/g,(Z,X,$="")=>{let Y=k($),G=Y.match(/accept=['"]([^'"]+)['"]/i),_=G?G[1]:"",w=Y.includes("multiple"),P=O(X,q),B=Y.match(/class=['"]([^'"]+)['"]/i),J=N(B?B[1]:"",K.input,P,K.inputError),I=Y.replace(/class=['"][^'"]+['"]/gi,"").replace(/accept=['"][^'"]+['"]/gi,"").replace(/\bmultiple\b/gi,"").trim(),z=[`<input type="file" name="${L(X)}"`,`class="${J}"`];if(_)z.push(`accept="${L(_)}"`);if(w)z.push("multiple");if(I)z.push(I);return`${z.join(" ")}>`}),U=U.replace(/@label\(\s*['"]([^'"]+)['"]\s*(?:,\s*\{([^}]+)\})?\)([\s\S]*?)@endlabel/g,(Z,X,$="",Y)=>{let G=k($),_=G.match(/class=['"]([^'"]+)['"]/i),w=_?_[1]:K.label,P=G.replace(/class=['"][^'"]+['"]/i,"");return`<label for="${L(X)}" class="${w}"${P?` ${P}`:""}>${Y}</label>`}),U}function x(j,q,K=W){return j.replace(/@error\(['"]([^'"]+)['"]\)([\s\S]*?)@enderror/g,(U,Z,X)=>{try{if(O(Z,q))return X.replace(/\{\{([^}]+)\}\}/g,($,Y)=>{try{if(Y.trim()==="$message"||Y.trim()==="message")return E(Z,q);if(Y.trim().includes("errors.first")||Y.trim().includes("$errors.first")){if(typeof q.errors?.first==="function")return q.errors.first(Z);return E(Z,q)}let G=Y.trim();if(M(G)){let _=g(G,q);return _!==void 0?String(_):G}return G}catch{return Y}});return""}catch($){return console.error("Error processing @error directive:",$),U}})}function O(j,q){if(!q.errors)return!1;if(typeof q.errors.has==="function")return q.errors.has(j);if(typeof q.errors==="object")return Object.prototype.hasOwnProperty.call(q.errors,j);return!1}function E(j,q){if(!q.errors)return"";if(typeof q.errors.get==="function")return q.errors.get(j);if(typeof q.errors==="object"&&Object.prototype.hasOwnProperty.call(q.errors,j)){let K=q.errors[j];return Array.isArray(K)?K[0]:String(K)}return""}function H(j,q){let K;if(q.old&&typeof q.old==="function")return q.old(j);if(q.old&&typeof q.old==="object")return q.old[j];if(j.endsWith("[]")){let U=j.slice(0,-2);if(K=q[U],K!==void 0)return K}return q[j]}function k(j){if(!j.trim())return"";let q=[],K=j.trim(),U=/([\w-]+)\s*:\s*(['"]?)([^,'"]*)\2(?:\s*,\s*|\s*$)/g,Z;while((Z=U.exec(K))!==null){let[,X,,$]=Z;q.push(`${X}="${$.trim()}"`)}return q.join(" ")}var C={required:(j,q,K)=>{if(j===void 0||j===null||j===""||Array.isArray(j)&&j.length===0)return`The ${K} field is required.`;return null},email:(j,q,K)=>{if(!j)return null;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(j)))return`The ${K} field must be a valid email address.`;return null},min:(j,q,K)=>{if(!j)return null;let U=Number(q[0]);if(typeof j==="string"&&j.length<U)return`The ${K} field must be at least ${U} characters.`;if(typeof j==="number"&&j<U)return`The ${K} field must be at least ${U}.`;if(Array.isArray(j)&&j.length<U)return`The ${K} field must have at least ${U} items.`;return null},max:(j,q,K)=>{if(!j)return null;let U=Number(q[0]);if(typeof j==="string"&&j.length>U)return`The ${K} field must not exceed ${U} characters.`;if(typeof j==="number"&&j>U)return`The ${K} field must not exceed ${U}.`;if(Array.isArray(j)&&j.length>U)return`The ${K} field must not have more than ${U} items.`;return null},confirmed:(j,q,K)=>{if(q[0]!==void 0&&j!==q[0])return`The ${K} confirmation does not match.`;return null},numeric:(j,q,K)=>{if(!j)return null;if(Number.isNaN(Number(j)))return`The ${K} field must be a number.`;return null},integer:(j,q,K)=>{if(!j)return null;if(!Number.isInteger(Number(j)))return`The ${K} field must be an integer.`;return null},alpha:(j,q,K)=>{if(!j)return null;if(!/^[a-z]+$/i.test(String(j)))return`The ${K} field must only contain letters.`;return null},alphanumeric:(j,q,K)=>{if(!j)return null;if(!/^[a-z0-9]+$/i.test(String(j)))return`The ${K} field must only contain letters and numbers.`;return null},url:(j,q,K)=>{if(!j)return null;try{return new URL(String(j))?null:null}catch{return`The ${K} field must be a valid URL.`}},regex:(j,q,K)=>{if(!j)return null;try{if(!new RegExp(q[0]).test(String(j)))return`The ${K} field format is invalid.`;return null}catch{return`The ${K} field has an invalid validation pattern.`}},in:(j,q,K)=>{if(!j)return null;if(!q.includes(String(j)))return`The ${K} field must be one of: ${q.join(", ")}.`;return null},notIn:(j,q,K)=>{if(!j)return null;if(q.includes(String(j)))return`The ${K} field must not be: ${q.join(", ")}.`;return null},date:(j,q,K)=>{if(!j)return null;let U=new Date(j);if(Number.isNaN(U.getTime()))return`The ${K} field must be a valid date.`;return null},before:(j,q,K)=>{if(!j)return null;let U=new Date(j),Z=new Date(q[0]);if(U>=Z)return`The ${K} field must be before ${q[0]}.`;return null},after:(j,q,K)=>{if(!j)return null;let U=new Date(j),Z=new Date(q[0]);if(U<=Z)return`The ${K} field must be after ${q[0]}.`;return null}};function i(j,q){C[j]=q}function S(j){let[q,...K]=j.split(":"),U=K.length>0?K.join(":").split(","):[];return{name:q.trim(),params:U}}function p(j,q,K,U={}){let Z=[],X=K.split("|").map(($)=>$.trim()).filter(Boolean);for(let $ of X){let Y=S($),G=C[Y.name];if(!G){console.warn(`Unknown validation rule: ${Y.name}`);continue}if(Y.name==="confirmed"){let w=`${j}_confirmation`;Y.params=[U[w]]}let _=G(q,Y.params||[],j);if(_)Z.push(Y.message||_)}return{field:j,valid:Z.length===0,errors:Z}}function o(j,q){let K={};for(let[U,Z]of Object.entries(q)){let X=p(U,j[U],Z,j);if(!X.valid)K[U]=X.errors}return K}function d(j,q){return j.replace(/@validate\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*(?:,\s*\{([^}]*)\})?\s*\)/g,(K,U,Z,X)=>{let $=Z.split("|").map((G)=>G.trim()),Y=[];for(let G of $){let _=S(G);switch(_.name){case"required":Y.push("required");break;case"email":Y.push('type="email"');break;case"url":Y.push('type="url"');break;case"numeric":case"integer":if(Y.push('type="number"'),_.name==="integer")Y.push('step="1"');break;case"min":if(_.params?.[0])Y.push(`minlength="${_.params[0]}"`);break;case"max":if(_.params?.[0])Y.push(`maxlength="${_.params[0]}"`);break;case"regex":if(_.params?.[0])Y.push(`pattern="${_.params[0]}"`);break}}return`<!-- @validate:${U}:${Z} -->${Y.length>0?`<!-- attrs:${Y.join(" ")} -->`:""}`})}var A={required:{name:"required",validate:(j)=>{if(j===null||j===void 0||j==="")return"This field is required";if(Array.isArray(j)&&j.length===0)return"This field is required";return!0},toHtml5:()=>["required"],message:"This field is required"},email:{name:"email",validate:(j)=>{if(!j)return!0;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(j))||"Please enter a valid email address"},toHtml5:()=>['type="email"'],message:"Please enter a valid email address"},url:{name:"url",validate:(j)=>{if(!j)return!0;try{return new URL(String(j)).protocol.startsWith("http")||"Please enter a valid URL"}catch{return"Please enter a valid URL"}},toHtml5:()=>['type="url"'],message:"Please enter a valid URL"},numeric:{name:"numeric",validate:(j)=>{if(!j)return!0;return!Number.isNaN(Number(j))||"Please enter a number"},toHtml5:()=>['type="number"'],message:"Please enter a number"},integer:{name:"integer",validate:(j)=>{if(!j)return!0;let q=Number(j);return Number.isInteger(q)||"Please enter a whole number"},toHtml5:()=>['type="number"','step="1"'],message:"Please enter a whole number"},alpha:{name:"alpha",validate:(j)=>{if(!j)return!0;return/^[a-z]+$/i.test(String(j))||"Please enter only letters"},toHtml5:()=>['pattern="[a-zA-Z]+"'],message:"Please enter only letters"},alphanumeric:{name:"alphanumeric",validate:(j)=>{if(!j)return!0;return/^[a-z0-9]+$/i.test(String(j))||"Please enter only letters and numbers"},toHtml5:()=>['pattern="[a-zA-Z0-9]+"'],message:"Please enter only letters and numbers"},min:{name:"min",validate:(j,q)=>{if(!j)return!0;let K=Number(q[0]);if(typeof j==="string")return j.length>=K||`Must be at least ${K} characters`;if(typeof j==="number")return j>=K||`Must be at least ${K}`;if(Array.isArray(j))return j.length>=K||`Must have at least ${K} items`;return!0},toHtml5:(j)=>[`minlength="${j[0]}"`,`min="${j[0]}"`],message:"Must be at least {{param}} characters"},max:{name:"max",validate:(j,q)=>{if(!j)return!0;let K=Number(q[0]);if(typeof j==="string")return j.length<=K||`Must be no more than ${K} characters`;if(typeof j==="number")return j<=K||`Must be no more than ${K}`;if(Array.isArray(j))return j.length<=K||`Must have no more than ${K} items`;return!0},toHtml5:(j)=>[`maxlength="${j[0]}"`,`max="${j[0]}"`],message:"Must be no more than {{param}} characters"},between:{name:"between",validate:(j,q)=>{if(!j)return!0;let[K,U]=q.map(Number);if(typeof j==="string")return j.length>=K&&j.length<=U||`Must be between ${K} and ${U} characters`;if(typeof j==="number")return j>=K&&j<=U||`Must be between ${K} and ${U}`;return!0},toHtml5:(j)=>[`minlength="${j[0]}"`,`maxlength="${j[1]}"`],message:"Must be between {{min}} and {{max}}"},confirmed:{name:"confirmed",validate:(j,q,K)=>{let U=Object.keys(K);for(let Z of U)if(Z.endsWith("_confirmation")&&K[Z]===j)return!0;return"Confirmation does not match"},message:"Confirmation does not match"},in:{name:"in",validate:(j,q)=>{if(!j)return!0;return q.includes(String(j))||`Must be one of: ${q.join(", ")}`},message:"Must be one of: {{values}}"},notIn:{name:"notIn",validate:(j,q)=>{if(!j)return!0;return!q.includes(String(j))||`Must not be: ${q.join(", ")}`},message:"Must not be: {{values}}"},regex:{name:"regex",validate:(j,q)=>{if(!j)return!0;try{return new RegExp(q[0]).test(String(j))||"Invalid format"}catch{return"Invalid format"}},toHtml5:(j)=>[`pattern="${j[0]}"`],message:"Invalid format"},date:{name:"date",validate:(j)=>{if(!j)return!0;let q=new Date(String(j));return!Number.isNaN(q.getTime())||"Please enter a valid date"},toHtml5:()=>['type="date"'],message:"Please enter a valid date"},before:{name:"before",validate:(j,q)=>{if(!j)return!0;let K=new Date(String(j)),U=new Date(q[0]);return K<U||`Must be before ${q[0]}`},toHtml5:(j)=>[`max="${j[0]}"`],message:"Must be before {{date}}"},after:{name:"after",validate:(j,q)=>{if(!j)return!0;let K=new Date(String(j)),U=new Date(q[0]);return K>U||`Must be after ${q[0]}`},toHtml5:(j)=>[`min="${j[0]}"`],message:"Must be after {{date}}"},size:{name:"size",validate:(j,q)=>{if(!j)return!0;let K=Number(q[0]);if(typeof j==="string")return j.length===K||`Must be exactly ${K} characters`;if(Array.isArray(j))return j.length===K||`Must have exactly ${K} items`;return!0},message:"Must be exactly {{size}}"},phone:{name:"phone",validate:(j)=>{if(!j)return!0;return/^\+?\(?\d{1,4}\)?[-\s./\d]*$/.test(String(j))||"Please enter a valid phone number"},toHtml5:()=>['type="tel"','pattern="\\+?\\(?\\d{1,4}\\)?[-\\s./\\d]*"'],message:"Please enter a valid phone number"}};function u(j){A[j.name]=j}function m(j,q,K={}){let U=[],Z=q.split("|").map((X)=>X.trim());for(let X of Z){let $=S(X),Y=A[$.name];if(!Y){console.warn(`Unknown validation rule: ${$.name}`);continue}let G=Y.validate(j,$.params||[],K);if(G!==!0)U.push(G)}return{valid:U.length===0,errors:U}}function r(j,q){let K={},U=!0;for(let[Z,X]of Object.entries(q)){let $=m(j[Z],X,j);if(!$.valid)U=!1,K[Z]=$.errors}return{valid:U,errors:K}}function s(j,q){let K=JSON.stringify(q);return`
5
5
  <script>
@@ -54,4 +54,4 @@ catch { return 'Please enter a valid URL'; } },
54
54
  });
55
55
  })();
56
56
  </script>`.trim()}
57
- export{W as Ov,v as Pv,Q as Qv,f as Rv,x as Sv,i as Tv,p as Uv,o as Vv,d as Wv,A as Xv,u as Yv,m as Zv,r as _v,s as $v};
57
+ export{W as Nv,v as Ov,Q as Pv,f as Qv,x as Rv,i as Sv,p as Tv,o as Uv,d as Vv,A as Wv,u as Xv,m as Yv,r as Zv,s as _v};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{rB as I}from"./chunk-3jm3snz8.js";import{createHash as v}from"crypto";import{existsSync as X,mkdirSync as H,readFileSync as $,writeFileSync as T,readdirSync as B,statSync as F}from"fs";import{basename as Y,dirname as W,extname as Z,join as V,relative as N}from"path";import{gzipSync as k}from"zlib";var D={outDir:"dist",publicPath:"/",sourcemaps:!0,minify:{js:!0,css:!0,html:!0,dropConsole:!0,dropDebugger:!0,mangle:!0},splitting:{vendor:!0,minSize:20000,maxSize:250000,chunkNames:"deterministic"},css:{extract:!0,minify:!0,filename:"assets/[name].[hash].css"},assets:{inlineLimit:4096,filename:"assets/[name].[hash][ext]",hash:!0,hashLength:8,include:["png","jpg","jpeg","gif","svg","webp","woff","woff2","ttf","eot"]},compression:{gzip:!0,brotli:!0,threshold:1024,deleteOriginal:!1}};class w{config;startTime=0;outputs=[];chunks=[];assets=[];warnings=[];errors=[];moduleGraph=new Map;assetHashes=new Map;constructor(E){this.config={...D,...E}}async build(){this.startTime=Date.now(),this.outputs=[],this.chunks=[],this.assets=[],this.warnings=[],this.errors=[];try{this.ensureDir(this.config.outDir),await this.runPluginHook("setup"),await this.runPluginHook("buildStart");let E=this.collectEntries();for(let[A,G]of E)await this.buildEntry(A,G);if(this.config.css?.extract)await this.extractCss();if(await this.processAssets(),this.config.splitting)await this.performCodeSplitting();if(this.config.minify)await this.minifyOutputs();if(this.config.sourcemaps)await this.generateSourceMaps();if(await this.fingerprintAssets(),this.config.compression)await this.compressOutputs();if(this.config.analyze)await this.analyzeBundle();let q=this.getResult();return await this.runPluginHook("buildEnd",q),q}catch(E){return this.errors.push(String(E)),this.getResult()}}collectEntries(){let E=new Map,{entry:q}=this.config;if(typeof q==="string")E.set("main",q);else if(Array.isArray(q))q.forEach((A,G)=>{let J=Y(A,Z(A));E.set(J,A)});else if(typeof q==="object")Object.entries(q).forEach(([A,G])=>{E.set(A,G)});return E}async buildEntry(E,q){if(!await Bun.file(q).exists()){this.errors.push(`Entry point not found: ${q}`);return}let A=await Bun.file(q).text(),G=Z(q),J=A,L="js";if(G===".stx"||G===".html")L="html",J=await this.processTemplate(A,q);else if(G===".css")L="css",J=await this.processCss(A,q);else if(G===".js"||G===".ts")L="js",J=await this.processScript(A,q);J=await this.runPluginTransform(J,q);let K=this.generateHash(J),Q=this.getOutputName(E,L,K),R=V(this.config.outDir,Q);this.ensureDir(W(R)),await Bun.write(R,J),this.outputs.push({path:R,type:L,size:Buffer.byteLength(J),hash:K,sources:[q],isEntry:!0})}resolveRelativePath(E,q){if(q.startsWith("/"))return V(W(E),"..",q);return V(W(E),q)}async processTemplate(E,q){let A=E,G=[],J=[];if(A=A.replace(/<script\b([^>]*)\bstx-inline\b([^>]*)(?:><\/script>|><\/script>|\/>)/gi,(L,K,Q)=>{let R=(K+Q).match(/src=["']([^"']+)["']/);if(R){let U=this.resolveRelativePath(q,R[1]);if(X(U)){let _=$(U,"utf-8");G.push(`// Source: ${R[1]}
2
+ import{pB as I}from"./chunk-xv34zbp4.js";import{createHash as v}from"crypto";import{existsSync as X,mkdirSync as H,readFileSync as $,writeFileSync as T,readdirSync as B,statSync as F}from"fs";import{basename as Y,dirname as W,extname as Z,join as V,relative as N}from"path";import{gzipSync as k}from"zlib";var D={outDir:"dist",publicPath:"/",sourcemaps:!0,minify:{js:!0,css:!0,html:!0,dropConsole:!0,dropDebugger:!0,mangle:!0},splitting:{vendor:!0,minSize:20000,maxSize:250000,chunkNames:"deterministic"},css:{extract:!0,minify:!0,filename:"assets/[name].[hash].css"},assets:{inlineLimit:4096,filename:"assets/[name].[hash][ext]",hash:!0,hashLength:8,include:["png","jpg","jpeg","gif","svg","webp","woff","woff2","ttf","eot"]},compression:{gzip:!0,brotli:!0,threshold:1024,deleteOriginal:!1}};class w{config;startTime=0;outputs=[];chunks=[];assets=[];warnings=[];errors=[];moduleGraph=new Map;assetHashes=new Map;constructor(E){this.config={...D,...E}}async build(){this.startTime=Date.now(),this.outputs=[],this.chunks=[],this.assets=[],this.warnings=[],this.errors=[];try{this.ensureDir(this.config.outDir),await this.runPluginHook("setup"),await this.runPluginHook("buildStart");let E=this.collectEntries();for(let[A,G]of E)await this.buildEntry(A,G);if(this.config.css?.extract)await this.extractCss();if(await this.processAssets(),this.config.splitting)await this.performCodeSplitting();if(this.config.minify)await this.minifyOutputs();if(this.config.sourcemaps)await this.generateSourceMaps();if(await this.fingerprintAssets(),this.config.compression)await this.compressOutputs();if(this.config.analyze)await this.analyzeBundle();let q=this.getResult();return await this.runPluginHook("buildEnd",q),q}catch(E){return this.errors.push(String(E)),this.getResult()}}collectEntries(){let E=new Map,{entry:q}=this.config;if(typeof q==="string")E.set("main",q);else if(Array.isArray(q))q.forEach((A,G)=>{let J=Y(A,Z(A));E.set(J,A)});else if(typeof q==="object")Object.entries(q).forEach(([A,G])=>{E.set(A,G)});return E}async buildEntry(E,q){if(!await Bun.file(q).exists()){this.errors.push(`Entry point not found: ${q}`);return}let A=await Bun.file(q).text(),G=Z(q),J=A,L="js";if(G===".stx"||G===".html")L="html",J=await this.processTemplate(A,q);else if(G===".css")L="css",J=await this.processCss(A,q);else if(G===".js"||G===".ts")L="js",J=await this.processScript(A,q);J=await this.runPluginTransform(J,q);let K=this.generateHash(J),Q=this.getOutputName(E,L,K),R=V(this.config.outDir,Q);this.ensureDir(W(R)),await Bun.write(R,J),this.outputs.push({path:R,type:L,size:Buffer.byteLength(J),hash:K,sources:[q],isEntry:!0})}resolveRelativePath(E,q){if(q.startsWith("/"))return V(W(E),"..",q);return V(W(E),q)}async processTemplate(E,q){let A=E,G=[],J=[];if(A=A.replace(/<script\b([^>]*)\bstx-inline\b([^>]*)(?:><\/script>|><\/script>|\/>)/gi,(L,K,Q)=>{let R=(K+Q).match(/src=["']([^"']+)["']/);if(R){let U=this.resolveRelativePath(q,R[1]);if(X(U)){let _=$(U,"utf-8");G.push(`// Source: ${R[1]}
3
3
  ${_}`)}else this.warnings.push(`External script not found: ${U}`)}return""}),A=A.replace(/<link\b([^>]*)\bstx-inline\b([^>]*)(?:\/>|>)/gi,(L,K,Q)=>{let R=(K+Q).match(/href=["']([^"']+)["']/);if(R){let U=this.resolveRelativePath(q,R[1]);if(X(U)){let _=$(U,"utf-8");J.push(`/* Source: ${R[1]} */
4
4
  ${_}`)}else this.warnings.push(`External stylesheet not found: ${U}`)}return""}),A=A.replace(/<script\b(?![^>]*\bstx-inline\b)([^>]*)>([\s\S]*?)<\/script>/gi,(L,K,Q)=>{if(/\bsrc=/.test(K))return L;if(Q.trim())G.push(Q);return""}),A=A.replace(/<style\b[^>]*>([\s\S]*?)<\/style>/gi,(L,K)=>{if(K.trim())J.push(K);return""}),G.length>0){let L=G.join(`
5
5
 
@@ -50,4 +50,4 @@ ${_}`)}else this.warnings.push(`External stylesheet not found: ${U}`)}return""})
50
50
  </body>
51
51
  </html>`}generateAnalysisText(E){let q=["Bundle Analysis","=".repeat(50),""];for(let A of E.outputs)q.push(`${A.path}`),q.push(` Size: ${A.sizeFormatted}${A.gzipSizeFormatted?` (gzip: ${A.gzipSizeFormatted})`:""}`),q.push("");return q.push("=".repeat(50)),q.push(`Total: ${this.formatSize(E.totalSize)} (gzip: ${this.formatSize(E.totalGzipSize)})`),q.join(`
52
52
  `)}async runPluginHook(E,q){if(!this.config.plugins)return;for(let A of this.config.plugins){let G=A[E];if(typeof G==="function")await G.call(A,q||this)}}async runPluginTransform(E,q){if(!this.config.plugins)return E;let A=E;for(let G of this.config.plugins)if(G.transform){let J=await G.transform(A,q);if(J!=null)A=J}return A}generateHash(E){return v("sha256").update(E).digest("hex")}getOutputName(E,q,A){let G=q==="html"?".html":q==="css"?".css":q==="js"?".js":"";return`${E}.${A.slice(0,8)}${G}`}formatSize(E){if(E<1024)return`${E} B`;if(E<1048576)return`${(E/1024).toFixed(2)} KB`;return`${(E/1048576).toFixed(2)} MB`}ensureDir(E){if(!X(E))H(E,{recursive:!0})}walkDir(E,q){if(!X(E))return;let A=B(E,{withFileTypes:!0});for(let G of A){let J=V(E,G.name);if(G.isDirectory())this.walkDir(J,q);else q(J)}}getResult(){let E=Date.now()-this.startTime,q=this.outputs.reduce((G,J)=>G+J.size,0),A=this.outputs.reduce((G,J)=>G+(J.gzipSize||0),0);return{outputs:this.outputs,duration:E,totalSize:q,gzipSize:A,chunks:this.chunks,assets:this.assets,warnings:this.warnings,errors:this.errors}}}async function C(E){return new w(E).build()}function S(E){return new w(E)}function g(E){return{...D,...E}}
53
- export{w as xi,C as yi,S as zi,g as Ai};
53
+ export{w as Ai,C as Bi,S as Ci,g as Di};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{yj as B,zj as M}from"./chunk-5xvbq2gs.js";import{Aj as w,Bj as x}from"./chunk-z37xq5rx.js";import{Ej as O,Fj as Q}from"./chunk-bn08k7yy.js";import{Sk as E,Xk as L}from"./chunk-5ggw1dyv.js";import{rB as v}from"./chunk-3jm3snz8.js";import{resolve as F,basename as D,extname as C,join as b}from"path";import{mkdir as q}from"fs/promises";async function T(){try{return await import("ts-videos")}catch{return null}}function R(J){switch(J){case"very-low":return 500000;case"low":return 1e6;case"medium":return 2500000;case"high":return 5000000;case"very-high":return 1e7;case"lossless":return 0;default:return 2500000}}function y(J){switch(J){case"youtube":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};case"twitter":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"instagram-feed":return{codec:"h264",maxWidth:1080,maxHeight:1080,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"instagram-story":case"instagram-reels":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"tiktok":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"discord":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:60,bitrate:8000000,audioCodec:"aac",audioBitrate:192000};case"linkedin":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"facebook":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"web-progressive":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000,twoPass:!0};case"web-streaming":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};default:return{}}}async function V(J){let I=await T();if(!I)return null;try{let G=F(J),X=await new I.Input(G).getInfo();return{duration:X.duration||0,width:X.width||0,height:X.height||0,frameRate:X.frameRate||0,bitrate:X.bitrate||0,codec:X.videoCodec||"",audioCodec:X.audioCodec}}catch(G){return console.warn(`[stx-media] Failed to analyze video: ${G}`),null}}async function f(J,I,G,Y){let X=await T();if(!X)return console.warn("[stx-media] ts-videos not installed, skipping processing"),{src:J,processed:!1};let k=await O(J,I,G);if(k)return k;try{let K=F(J);if(!await L(K))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let j=G.outputDir||"dist/videos",z=G.baseUrl||"/videos";await q(j,{recursive:!0});let A=await E(K),H=D(J,C(J)),N={src:J,processed:!0,hash:A};Y?.({percentage:5,stage:"analyzing"}),N.metadata=await V(K)||void 0;let _={};if(I.quality)_.bitrate=R(I.quality);if(I.platform)Object.assign(_,y(I.platform));if(I.transcode)Object.assign(_,I.transcode);if(Object.keys(_).length>0||I.process){Y?.({percentage:10,stage:"transcoding"});let W=`${H}-${A}.mp4`,Z=b(j,W);try{let $=await S(K,Z,_,X,(U)=>Y?.({percentage:10+U*0.5,stage:"transcoding"}));if($)N.transcoded={path:Z,url:`${z}/${W}`,duration:$.duration,size:$.size,video:{codec:_.codec||"h264",width:$.width,height:$.height,bitrate:$.bitrate,frameRate:$.frameRate},audio:$.audioCodec?{codec:_.audioCodec||"aac",bitrate:_.audioBitrate||128000,sampleRate:_.sampleRate||48000,channels:_.channels||2}:void 0}}catch($){N.errors=N.errors||[],N.errors.push(`Transcoding failed: ${$}`)}}if(I.generatePoster){Y?.({percentage:65,stage:"generating-poster"});let W=typeof I.generatePoster==="object"?I.generatePoster:{timestamp:0},Z=await w(K,W,j,z);if(Z)N.poster=Z}if(G.thumbnails?.enabled){Y?.({percentage:70,stage:"generating-thumbnails"});let W=await x(K,G.thumbnails,j,z);if(W.length>0)N.thumbnails=W}if(I.streaming){Y?.({percentage:80,stage:"generating-manifests"});let W=typeof I.streaming==="object"?I.streaming:G.streaming||{format:"hls"};if(W.format==="hls"||W.format===void 0){let Z=await B(K,W.qualities||G.streaming?.defaultQualities||[],j,z);if(Z)N.streaming={...N.streaming,hls:Z}}if(W.format==="dash"){let Z=await M(K,W.qualities||G.streaming?.defaultQualities||[],j,z);if(Z)N.streaming={...N.streaming,dash:Z}}}if(I.spriteSheet)Y?.({percentage:90,stage:"generating-sprite-sheet"});return Y?.({percentage:100,stage:"complete"}),await Q(J,I,N,G),N}catch(K){return{src:J,processed:!1,errors:[`Processing failed: ${K}`]}}}async function S(J,I,G,Y,X){try{let K=await new Y.Conversion(J,I,{videoCodec:G.codec,videoBitrate:G.bitrate,width:G.maxWidth,height:G.maxHeight,frameRate:G.frameRate,audioCodec:G.audioCodec,audioBitrate:G.audioBitrate,sampleRate:G.sampleRate,channels:G.channels}).run((j)=>{X?.(j.percentage/100)});return{duration:K.duration||0,size:K.size||0,width:K.width||G.maxWidth||0,height:K.height||G.maxHeight||0,bitrate:K.bitrate||G.bitrate||0,frameRate:K.frameRate||G.frameRate||30,audioCodec:K.audioCodec}}catch(k){return console.error(`[stx-media] Transcoding failed: ${k}`),null}}
3
- export{V as vj,f as wj};
2
+ import{Bj as B,Cj as M}from"./chunk-rtr974rc.js";import{Dj as w,Ej as x}from"./chunk-j8tn8enq.js";import{Hj as O,Ij as Q}from"./chunk-pcntd9h4.js";import{Vk as E,_k as L}from"./chunk-jpndqst5.js";import{pB as v}from"./chunk-xv34zbp4.js";import{resolve as F,basename as D,extname as C,join as b}from"path";import{mkdir as q}from"fs/promises";async function T(){try{return await import("ts-videos")}catch{return null}}function R(J){switch(J){case"very-low":return 500000;case"low":return 1e6;case"medium":return 2500000;case"high":return 5000000;case"very-high":return 1e7;case"lossless":return 0;default:return 2500000}}function y(J){switch(J){case"youtube":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};case"twitter":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"instagram-feed":return{codec:"h264",maxWidth:1080,maxHeight:1080,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"instagram-story":case"instagram-reels":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"tiktok":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"discord":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:60,bitrate:8000000,audioCodec:"aac",audioBitrate:192000};case"linkedin":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"facebook":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"web-progressive":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000,twoPass:!0};case"web-streaming":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};default:return{}}}async function V(J){let I=await T();if(!I)return null;try{let G=F(J),X=await new I.Input(G).getInfo();return{duration:X.duration||0,width:X.width||0,height:X.height||0,frameRate:X.frameRate||0,bitrate:X.bitrate||0,codec:X.videoCodec||"",audioCodec:X.audioCodec}}catch(G){return console.warn(`[stx-media] Failed to analyze video: ${G}`),null}}async function f(J,I,G,Y){let X=await T();if(!X)return console.warn("[stx-media] ts-videos not installed, skipping processing"),{src:J,processed:!1};let k=await O(J,I,G);if(k)return k;try{let K=F(J);if(!await L(K))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let j=G.outputDir||"dist/videos",z=G.baseUrl||"/videos";await q(j,{recursive:!0});let A=await E(K),H=D(J,C(J)),N={src:J,processed:!0,hash:A};Y?.({percentage:5,stage:"analyzing"}),N.metadata=await V(K)||void 0;let _={};if(I.quality)_.bitrate=R(I.quality);if(I.platform)Object.assign(_,y(I.platform));if(I.transcode)Object.assign(_,I.transcode);if(Object.keys(_).length>0||I.process){Y?.({percentage:10,stage:"transcoding"});let W=`${H}-${A}.mp4`,Z=b(j,W);try{let $=await S(K,Z,_,X,(U)=>Y?.({percentage:10+U*0.5,stage:"transcoding"}));if($)N.transcoded={path:Z,url:`${z}/${W}`,duration:$.duration,size:$.size,video:{codec:_.codec||"h264",width:$.width,height:$.height,bitrate:$.bitrate,frameRate:$.frameRate},audio:$.audioCodec?{codec:_.audioCodec||"aac",bitrate:_.audioBitrate||128000,sampleRate:_.sampleRate||48000,channels:_.channels||2}:void 0}}catch($){N.errors=N.errors||[],N.errors.push(`Transcoding failed: ${$}`)}}if(I.generatePoster){Y?.({percentage:65,stage:"generating-poster"});let W=typeof I.generatePoster==="object"?I.generatePoster:{timestamp:0},Z=await w(K,W,j,z);if(Z)N.poster=Z}if(G.thumbnails?.enabled){Y?.({percentage:70,stage:"generating-thumbnails"});let W=await x(K,G.thumbnails,j,z);if(W.length>0)N.thumbnails=W}if(I.streaming){Y?.({percentage:80,stage:"generating-manifests"});let W=typeof I.streaming==="object"?I.streaming:G.streaming||{format:"hls"};if(W.format==="hls"||W.format===void 0){let Z=await B(K,W.qualities||G.streaming?.defaultQualities||[],j,z);if(Z)N.streaming={...N.streaming,hls:Z}}if(W.format==="dash"){let Z=await M(K,W.qualities||G.streaming?.defaultQualities||[],j,z);if(Z)N.streaming={...N.streaming,dash:Z}}}if(I.spriteSheet)Y?.({percentage:90,stage:"generating-sprite-sheet"});return Y?.({percentage:100,stage:"complete"}),await Q(J,I,N,G),N}catch(K){return{src:J,processed:!1,errors:[`Processing failed: ${K}`]}}}async function S(J,I,G,Y,X){try{let K=await new Y.Conversion(J,I,{videoCodec:G.codec,videoBitrate:G.bitrate,width:G.maxWidth,height:G.maxHeight,frameRate:G.frameRate,audioCodec:G.audioCodec,audioBitrate:G.audioBitrate,sampleRate:G.sampleRate,channels:G.channels}).run((j)=>{X?.(j.percentage/100)});return{duration:K.duration||0,size:K.size||0,width:K.width||G.maxWidth||0,height:K.height||G.maxHeight||0,bitrate:K.bitrate||G.bitrate||0,frameRate:K.frameRate||G.frameRate||30,audioCodec:K.audioCodec}}catch(k){return console.error(`[stx-media] Transcoding failed: ${k}`),null}}
3
+ export{V as yj,f as zj};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import L from"fs";import C from"path";import{gzipSync as H}from"zlib";import{createHash as _}from"crypto";var Y={".js":"js",".mjs":"js",".cjs":"js",".ts":"js",".jsx":"js",".tsx":"js",".css":"css",".scss":"css",".sass":"css",".less":"css",".html":"html",".htm":"html",".png":"image",".jpg":"image",".jpeg":"image",".gif":"image",".svg":"image",".webp":"image",".avif":"image",".ico":"image",".woff":"font",".woff2":"font",".ttf":"font",".eot":"font",".otf":"font"},R=[/node_modules/,/vendor/,/bower_components/,/\.min\./],N=[/index\.(js|ts|html)$/,/main\.(js|ts)$/,/app\.(js|ts)$/,/entry\.(js|ts)$/];async function y(j,Q={}){let{includeSourceMaps:U=!1,parseImports:K=!0,detectDuplicates:W=!0,topModulesCount:X=20}=Q;if(!L.existsSync(j))throw Error(`Build directory not found: ${j}`);if(!L.statSync(j).isDirectory())throw Error(`Not a directory: ${j}`);let J=await E(j,U),q=[],V=[];for(let G of J)try{let O=await I(G,j,K);q.push(O)}catch(O){V.push(`Failed to process ${G}: ${O}`)}let $=g(q,j),B=q.reduce((G,O)=>G+O.size,0),w=q.reduce((G,O)=>G+O.gzipSize,0),A=k(q),F=W?z(q):[],v=[...q].sort((G,O)=>O.size-G.size).slice(0,X);return{timestamp:Date.now(),buildDir:C.resolve(j),chunks:$,totalSize:B,totalGzipSize:w,moduleCount:q.length,duplicates:F,byType:A,largestModules:v,warnings:V}}async function E(j,Q){let U=[];async function K(W){let X=await L.promises.readdir(W,{withFileTypes:!0});for(let Z of X){let J=C.join(W,Z.name);if(Z.isDirectory()){if(!Z.name.startsWith(".")&&Z.name!=="node_modules")await K(J)}else if(Z.isFile()){if(!Q&&Z.name.endsWith(".map"))continue;U.push(J)}}}return await K(j),U}async function I(j,Q,U){let K=await L.promises.readFile(j),W=C.relative(Q,j),X=C.extname(j).toLowerCase(),Z=K.length,J=S(K),q=T(K,X),V=_("md5").update(K).digest("hex").slice(0,8),$=Y[X]||"other",B=[];if(U&&$==="js")B.push(...x(K.toString("utf-8")));return{id:W,path:W,size:Z,gzipSize:J,parsedSize:q,extension:X,type:$,imports:B,importedBy:[],hash:V}}function S(j){try{let Q=H(j,{level:9}).length;return Math.min(Q,j.length)}catch{return j.length}}function T(j,Q){if(Q.includes(".min.")||j.length<1000)return j.length;let K=Y[Q];if(K==="js")return Math.round(j.length*0.6);if(K==="css")return Math.round(j.length*0.7);return j.length}function x(j){let Q=[],U=/import\s+(?:[\w*{}\s,]+\s+from\s+)?['"]([^'"]+)['"]/g,K;while((K=U.exec(j))!==null)Q.push(K[1]);let W=/import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while((K=W.exec(j))!==null)Q.push(K[1]);let X=/require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while((K=X.exec(j))!==null)Q.push(K[1]);return[...new Set(Q)]}function g(j,Q){let U=new Map;for(let W of j){let X=W.path.split(C.sep),Z;if(X.length===1)Z=C.basename(W.path,W.extension);else Z=X[0];let J=U.get(Z)||[];J.push(W),U.set(Z,J)}let K=[];for(let[W,X]of U){let Z=X.reduce(($,B)=>$+B.size,0),J=X.reduce(($,B)=>$+B.gzipSize,0),q=X.some(($)=>N.some((B)=>B.test($.path))),V=X.some(($)=>R.some((B)=>B.test($.path)));K.push({name:W,files:X.map(($)=>$.path),modules:X,size:Z,gzipSize:J,isEntry:q,isVendor:V})}return K.sort((W,X)=>X.size-W.size)}function k(j){let Q={js:{count:0,size:0,gzipSize:0},css:{count:0,size:0,gzipSize:0},html:{count:0,size:0,gzipSize:0},image:{count:0,size:0,gzipSize:0},font:{count:0,size:0,gzipSize:0},other:{count:0,size:0,gzipSize:0}};for(let U of j)Q[U.type].count++,Q[U.type].size+=U.size,Q[U.type].gzipSize+=U.gzipSize;return Q}function z(j){let Q=new Map;for(let K of j){let W=Q.get(K.hash)||[];W.push(K),Q.set(K.hash,W)}let U=[];for(let[,K]of Q)if(K.length>1){let W=K[0];U.push({path:W.path,count:K.length,wastedBytes:W.size*(K.length-1),locations:K.map((X)=>X.path)})}return U.sort((K,W)=>W.wastedBytes-K.wastedBytes)}function b(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(2)} KB`;return`${(j/1048576).toFixed(2)} MB`}function h(j){let Q=j.match(/^([\d.]+)\s*(B|KB|MB|GB)?$/i);if(!Q)return 0;let U=Number.parseFloat(Q[1]);switch((Q[2]||"B").toUpperCase()){case"KB":return U*1024;case"MB":return U*1024*1024;case"GB":return U*1024*1024*1024;default:return U}}function p(j,Q){if(Q===0)return"0%";return`${(j/Q*100).toFixed(1)}%`}
3
- export{y as Dp,b as Ep,h as Fp,p as Gp};
3
+ export{y as Cp,b as Dp,h as Ep,p as Fp};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Jm as O,Km as U,Lm as V,Nm as k,Om as x,Rm as F,Wm as w}from"./chunk-cygfdk1n.js";import{yw as C}from"./chunk-ywkrxp2h.js";var R=new Map;function l(){R.clear()}async function D(X,P){let q=`${X}:${JSON.stringify(P)}`;if(R.has(q))return R.get(q);try{let G=await x(X,P);return R.set(q,G),G}catch{return null}}function I(){return C({name:"image",hasEndTag:!1,description:"Render an optimized image with responsive variants",transform:async(X,P,q)=>{let{src:G,alt:Z,options:J}=f(X,P,q);if(!G)return console.warn("@image directive: missing src argument"),"<!-- @image: missing src -->";let $={widths:J.widths||(J.width?[J.width]:O),formats:J.formats||U,quality:J.quality||V,placeholder:(J.placeholder==="color"?"dominant-color":J.placeholder)||"none"};if(!await k())return M(G,Z||"",J);let N=await D(G,$);if(!N)return M(G,Z||"",J);return b(N,Z||"",J)}})}function f(X,P,q){if(P.src)return{src:String(P.src),alt:String(P.alt||""),options:P.options||{}};let Z=X.trim();if(Z.startsWith("@image(")||Z.startsWith("("))Z=Z.replace(/^@image\(/,"").replace(/^\(/,"").replace(/\)$/,"");let J=y(Z),$=J[0]||"",B=J[1]||"",N={};if($&&!$.startsWith("/")&&!$.startsWith(".")&&!$.startsWith("http")){let j=q[$];if(typeof j==="string")$=j}if(J[2])try{if(typeof J[2]==="string")N=JSON.parse(J[2]);else N=J[2]}catch{}return{src:$,alt:B,options:N}}function y(X){let P=[],q="",G=!1,Z="",J=0,$=0;for(let B=0;B<X.length;B++){let N=X[B],j=B>0?X[B-1]:"";if((N==='"'||N==="'")&&j!=="\\"){if(!G)G=!0,Z=N;else if(N===Z)G=!1,Z="";else q+=N;continue}if(!G){if(N==="{")J++;if(N==="}")J--;if(N==="[")$++;if(N==="]")$--;if(N===","&&J===0&&$===0){P.push(q.trim()),q="";continue}}q+=N}if(q.trim())P.push(q.trim());return P}function M(X,P,q){let G=[`src="${Y(X)}"`];if(P)G.push(`alt="${Y(P)}"`);if(q.width)G.push(`width="${q.width}"`);if(q.height)G.push(`height="${q.height}"`);if(q.class)G.push(`class="${Y(q.class)}"`);if(q.style)G.push(`style="${Y(q.style)}"`);if(q.lazy!==!1)G.push('loading="lazy"');return G.push('decoding="async"'),`<img ${G.join(" ")} />`}function b(X,P,q){let{variants:G,placeholder:Z,width:J,height:$,aspectRatio:B}=X,N=new Map;for(let H of G){let W=N.get(H.format)||[];W.push(H),N.set(H.format,W)}let j=["avif","webp","jpeg","png"],L=[];for(let H of j){let W=N.get(H);if(W&&W.length>0){let T=F(W),u=w(H),v=q.sizes||"100vw";L.push(` <source type="${u}" srcset="${Y(T)}" sizes="${Y(v)}" />`)}}let _=N.get("jpeg")||[],E=_.length>0?_[Math.floor(_.length/2)]:G[Math.floor(G.length/2)],z=[`src="${E?.url||X.src}"`,`alt="${Y(P)}"`];if(q.width||J)z.push(`width="${q.width||J}"`);if(q.height||$)z.push(`height="${q.height||$}"`);if(q.class)z.push(`class="${Y(q.class)}"`);let K=[];if(B)K.push(`aspect-ratio: ${B.toFixed(4)}`);if(q.style)K.push(q.style);if(K.length>0)z.push(`style="${K.join("; ")}"`);if(q.lazy!==!1&&!q.priority)z.push('loading="lazy"');if(z.push('decoding="async"'),q.priority)z.push('fetchpriority="high"');let Q=`<picture>
2
+ import{Mm as O,Nm as U,Om as V,Qm as k,Rm as x,Um as F,Zm as w}from"./chunk-4d2y57k7.js";import{xw as C}from"./chunk-h5jxydqq.js";var R=new Map;function l(){R.clear()}async function D(X,P){let q=`${X}:${JSON.stringify(P)}`;if(R.has(q))return R.get(q);try{let G=await x(X,P);return R.set(q,G),G}catch{return null}}function I(){return C({name:"image",hasEndTag:!1,description:"Render an optimized image with responsive variants",transform:async(X,P,q)=>{let{src:G,alt:Z,options:J}=f(X,P,q);if(!G)return console.warn("@image directive: missing src argument"),"<!-- @image: missing src -->";let $={widths:J.widths||(J.width?[J.width]:O),formats:J.formats||U,quality:J.quality||V,placeholder:(J.placeholder==="color"?"dominant-color":J.placeholder)||"none"};if(!await k())return M(G,Z||"",J);let N=await D(G,$);if(!N)return M(G,Z||"",J);return b(N,Z||"",J)}})}function f(X,P,q){if(P.src)return{src:String(P.src),alt:String(P.alt||""),options:P.options||{}};let Z=X.trim();if(Z.startsWith("@image(")||Z.startsWith("("))Z=Z.replace(/^@image\(/,"").replace(/^\(/,"").replace(/\)$/,"");let J=y(Z),$=J[0]||"",B=J[1]||"",N={};if($&&!$.startsWith("/")&&!$.startsWith(".")&&!$.startsWith("http")){let j=q[$];if(typeof j==="string")$=j}if(J[2])try{if(typeof J[2]==="string")N=JSON.parse(J[2]);else N=J[2]}catch{}return{src:$,alt:B,options:N}}function y(X){let P=[],q="",G=!1,Z="",J=0,$=0;for(let B=0;B<X.length;B++){let N=X[B],j=B>0?X[B-1]:"";if((N==='"'||N==="'")&&j!=="\\"){if(!G)G=!0,Z=N;else if(N===Z)G=!1,Z="";else q+=N;continue}if(!G){if(N==="{")J++;if(N==="}")J--;if(N==="[")$++;if(N==="]")$--;if(N===","&&J===0&&$===0){P.push(q.trim()),q="";continue}}q+=N}if(q.trim())P.push(q.trim());return P}function M(X,P,q){let G=[`src="${Y(X)}"`];if(P)G.push(`alt="${Y(P)}"`);if(q.width)G.push(`width="${q.width}"`);if(q.height)G.push(`height="${q.height}"`);if(q.class)G.push(`class="${Y(q.class)}"`);if(q.style)G.push(`style="${Y(q.style)}"`);if(q.lazy!==!1)G.push('loading="lazy"');return G.push('decoding="async"'),`<img ${G.join(" ")} />`}function b(X,P,q){let{variants:G,placeholder:Z,width:J,height:$,aspectRatio:B}=X,N=new Map;for(let H of G){let W=N.get(H.format)||[];W.push(H),N.set(H.format,W)}let j=["avif","webp","jpeg","png"],L=[];for(let H of j){let W=N.get(H);if(W&&W.length>0){let T=F(W),u=w(H),v=q.sizes||"100vw";L.push(` <source type="${u}" srcset="${Y(T)}" sizes="${Y(v)}" />`)}}let _=N.get("jpeg")||[],E=_.length>0?_[Math.floor(_.length/2)]:G[Math.floor(G.length/2)],z=[`src="${E?.url||X.src}"`,`alt="${Y(P)}"`];if(q.width||J)z.push(`width="${q.width||J}"`);if(q.height||$)z.push(`height="${q.height||$}"`);if(q.class)z.push(`class="${Y(q.class)}"`);let K=[];if(B)K.push(`aspect-ratio: ${B.toFixed(4)}`);if(q.style)K.push(q.style);if(K.length>0)z.push(`style="${K.join("; ")}"`);if(q.lazy!==!1&&!q.priority)z.push('loading="lazy"');if(z.push('decoding="async"'),q.priority)z.push('fetchpriority="high"');let Q=`<picture>
3
3
  `;if(Q+=L.join(`
4
4
  `)+`
5
5
  `,Q+=` <img ${z.join(" ")} />
@@ -9,4 +9,4 @@ ${Q}
9
9
  ${Q}
10
10
  </div>`}}if(q.priority&&E){let H=w(E.format);Q=`<link rel="preload" as="image" href="${Y(E.url)}" type="${H}" />
11
11
  `+Q}return Q}function Y(X){return X.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var h=I();
12
- export{l as Zl,I as _l,h as $l};
12
+ export{l as am,I as bm,h as cm};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  function e(){return!1}function o(){return!e()||process.env.STX_DEBUG==="true"}function n(){return!1}
3
- export{e as Ky,o as Ly,n as My};
3
+ export{e as Iy,o as Jy,n as Ky};
@@ -11,4 +11,4 @@ ${z}
11
11
  </head>`);return q+j;case"body-start":if(j.includes("<body"))return j.replace(/(<body[^>]*>)/,`$1
12
12
  ${q}`);return q+j;case"body-end":{let F=j.lastIndexOf("</body>");if(F!==-1)return j.slice(0,F)+q+`
13
13
  `+j.slice(F);return j+q}default:return j}}function A(j){return j.trim()}
14
- export{w as nt,K as ot,W as pt,B as qt,A as rt};
14
+ export{w as mt,K as nt,W as ot,B as pt,A as qt};
@@ -5,4 +5,4 @@ ${C.join(`
5
5
  <!-- /SEO -->`,M=/<!--\s*stx SEO Tags\s*-->[\s\S]*?<meta\s+name="twitter:description"[^>]*>\s*/i;if(M.test(q))q=q.replace(M,"");if(q=q.replace(/<!--\s*SEO\s*-->[\s\S]*?<!--\s*\/SEO\s*-->\s*/g,""),q=q.replace(/<title>[\s\S]*?<\/title>\s*/i,""),q=q.replace(/<meta\s+name="title"\s+content="stx Project"[^>]*>\s*/g,"").replace(/<meta\s+name="description"\s+content="A website built with stx[^"]*"[^>]*>\s*/g,"").replace(/<meta\s+property="og:title"\s+content="stx Project"[^>]*>\s*/g,"").replace(/<meta\s+property="og:description"\s+content="A website built with stx[^"]*"[^>]*>\s*/g,"").replace(/<meta\s+property="og:type"\s+content="website"[^>]*>\s*/g,"").replace(/<meta\s+name="twitter:card"\s+content="summary_large_image"[^>]*>\s*/g,"").replace(/<meta\s+name="twitter:title"\s+content="stx Project"[^>]*>\s*/g,"").replace(/<meta\s+name="twitter:description"\s+content="A website built with stx[^"]*"[^>]*>\s*/g,""),/<head[^>]*>/i.test(q))return q.replace(/<head([^>]*)>/i,`<head$1>
6
6
  ${L}`);return`${L}
7
7
  ${q}`}function w(q){return q.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function W(q){return q.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}
8
- export{X as eh};
8
+ export{X as hh};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var z={patterns:[],exact:{}};function G(q,A){if(!z.exact[q])z.exact[q]=[];z.exact[q].push(A)}function H(q,A){let D=typeof q==="string"?new RegExp(q):q;z.patterns.push({pattern:D,callback:A})}async function I(q,A){let D=q.split("/").pop()?.split(".")[0]||"";if(z.exact[q])for(let B of z.exact[q])await Promise.resolve(B(A,q));if(z.exact[D])for(let B of z.exact[D])await Promise.resolve(B(A,q));for(let{pattern:B,callback:F}of z.patterns)if(B.test(q)||B.test(D))await Promise.resolve(F(A,q))}function J(){z.patterns=[],z.exact={}}
3
- export{G as it,H as jt,I as kt,J as lt};
3
+ export{G as ht,H as it,I as jt,J as kt};
@@ -176,4 +176,4 @@ var Q=null,R=null;function $(z,A,G=new WeakSet){if(Object.is(z,A))return!0;if(ty
176
176
  };
177
177
  window.provide = provide;
178
178
  })();
179
- </script>`}export{K as $h,q as ai,x as bi,N as ci,S as di,O as ei,H as fi,m as gi,j as hi,g as ii,w as ji,h as ki,I as li,y as mi,E as ni,v as oi,Z as pi,V as qi,d as ri,k as si,f as ti};
179
+ </script>`}export{K as ci,q as di,x as ei,N as fi,S as gi,O as hi,H as ii,m as ji,j as ki,g as li,w as mi,h as ni,I as oi,y as pi,E as qi,v as ri,Z as si,V as ti,d as ui,k as vi,f as wi};