@stacksjs/stx 0.2.412 → 0.2.414

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 (350) hide show
  1. package/dist/appearance-bootstrap.js +1 -1
  2. package/dist/binding-manifest.d.ts +1 -1
  3. package/dist/builtins/image-delivery.d.ts +38 -0
  4. package/dist/builtins/image-delivery.js +17 -0
  5. package/dist/builtins/stx-image.js +1 -5
  6. package/dist/bundle-analyzer.js +20 -20
  7. package/dist/chunk-020xyn9q.js +3 -0
  8. package/dist/chunk-04jhmfbz.js +2 -0
  9. package/dist/chunk-10957mcb.js +2 -0
  10. package/dist/chunk-1098mas0.js +2 -0
  11. package/dist/chunk-169n1vpx.js +12 -0
  12. package/dist/chunk-1b6t12hd.js +2 -0
  13. package/dist/chunk-1chw8xsw.js +2 -0
  14. package/dist/chunk-1xdzcy9d.js +14 -0
  15. package/dist/chunk-2ce7f416.js +2 -0
  16. package/dist/chunk-2gr351s0.js +7 -0
  17. package/dist/chunk-2mkcjw08.js +2 -0
  18. package/dist/chunk-2v8wztd5.js +2 -0
  19. package/dist/chunk-340a824p.js +2 -0
  20. package/dist/chunk-39g1134q.js +2 -0
  21. package/dist/chunk-3c74vag1.js +2 -0
  22. package/dist/chunk-3kthfs03.js +3 -0
  23. package/dist/chunk-3qn1wcdg.js +2 -0
  24. package/dist/chunk-3s2vnqcf.js +2 -0
  25. package/dist/chunk-48bwk47q.js +2 -0
  26. package/dist/chunk-4bjravgk.js +2 -0
  27. package/dist/chunk-4jjme6a5.js +2 -0
  28. package/dist/chunk-5g3y8kym.js +2 -0
  29. package/dist/chunk-5gsxpaqk.js +2 -0
  30. package/dist/{chunk-bwsxym3d.js → chunk-5qns2sdz.js} +17 -17
  31. package/dist/chunk-69mc2np8.js +2785 -0
  32. package/dist/chunk-6cfa3g0r.js +2 -0
  33. package/dist/{chunk-bjar18jd.js → chunk-6h38kkjf.js} +46 -52
  34. package/dist/chunk-6hc5vz20.js +3 -0
  35. package/dist/chunk-6q6g76vg.js +499 -0
  36. package/dist/{chunk-dbc5awz9.js → chunk-6sgswrqw.js} +29 -29
  37. package/dist/chunk-6y8hnymb.js +2 -0
  38. package/dist/chunk-74j18qk0.js +930 -0
  39. package/dist/chunk-752hw7cd.js +4 -0
  40. package/dist/{chunk-t5ja7qkn.js → chunk-765e1s44.js} +11 -76
  41. package/dist/chunk-7gkv67ky.js +4 -0
  42. package/dist/chunk-7z2ra0yf.js +2 -0
  43. package/dist/chunk-866n724v.js +2 -0
  44. package/dist/chunk-8nhshfz6.js +5 -0
  45. package/dist/chunk-92ps1xpk.js +2 -0
  46. package/dist/chunk-9g27ybyr.js +3 -0
  47. package/dist/{chunk-xq1acw1r.js → chunk-9pt8fd2n.js} +13 -13
  48. package/dist/{chunk-qvnbnsv9.js → chunk-9vrja6vp.js} +4 -4
  49. package/dist/chunk-9xrbve19.js +2 -0
  50. package/dist/chunk-a688m6js.js +3 -0
  51. package/dist/chunk-afhxw2t8.js +2 -0
  52. package/dist/chunk-ak1cgcah.js +5 -0
  53. package/dist/{chunk-4m7ajama.js → chunk-amd6ey3t.js} +14 -14
  54. package/dist/chunk-apg16xcn.js +2 -0
  55. package/dist/chunk-b52s5z0c.js +2 -0
  56. package/dist/chunk-b84h16er.js +61 -0
  57. package/dist/{chunk-hx998w7n.js → chunk-bay9s6rs.js} +13 -13
  58. package/dist/chunk-bmt7w2pk.js +2 -0
  59. package/dist/chunk-btmhj5t7.js +2 -0
  60. package/dist/chunk-ce1sejr3.js +3 -0
  61. package/dist/chunk-cg8hg6cs.js +3 -0
  62. package/dist/{chunk-8wp64mym.js → chunk-czxt605c.js} +4 -5
  63. package/dist/chunk-d44b9ktb.js +4 -0
  64. package/dist/chunk-daz5aqcf.js +24 -0
  65. package/dist/chunk-dgdm3hy3.js +2 -0
  66. package/dist/chunk-dvgv8nry.js +11 -0
  67. package/dist/chunk-dx7n22ed.js +2 -0
  68. package/dist/chunk-e57rhf65.js +3 -0
  69. package/dist/chunk-eed4fwps.js +3 -0
  70. package/dist/chunk-ej9j6k1q.js +3 -0
  71. package/dist/chunk-et0rr8c7.js +3 -0
  72. package/dist/chunk-f46qsp4m.js +4 -0
  73. package/dist/chunk-f6az0xj5.js +2 -0
  74. package/dist/{chunk-bjcsc6wx.js → chunk-fh1qrp68.js} +21 -21
  75. package/dist/chunk-fjs0a8h7.js +2 -0
  76. package/dist/chunk-fr2txj8q.js +829 -0
  77. package/dist/{chunk-vx86cf4r.js → chunk-ft4p6d28.js} +14 -14
  78. package/dist/chunk-fyzajkrx.js +2 -0
  79. package/dist/chunk-fzapbw9p.js +3 -0
  80. package/dist/chunk-g578mcb0.js +194 -0
  81. package/dist/chunk-gawrg4gb.js +216 -0
  82. package/dist/chunk-gw07qmjk.js +2 -0
  83. package/dist/chunk-h0atqq82.js +32 -0
  84. package/dist/chunk-h6zsqb9r.js +3 -0
  85. package/dist/{chunk-hdysywd8.js → chunk-h85hrwkq.js} +13 -13
  86. package/dist/chunk-hbxz85wy.js +2 -0
  87. package/dist/chunk-hjg3ndgh.js +2 -0
  88. package/dist/chunk-hkxsewzk.js +2 -0
  89. package/dist/chunk-hrbbbtbn.js +2 -0
  90. package/dist/chunk-j03revz2.js +8 -0
  91. package/dist/chunk-j9qcrwbg.js +2 -0
  92. package/dist/chunk-jk4njz0w.js +2 -0
  93. package/dist/chunk-jmabeqfq.js +2 -0
  94. package/dist/chunk-jt0n43mk.js +2 -0
  95. package/dist/chunk-kjbv8a3m.js +2 -0
  96. package/dist/chunk-m1vdghnx.js +2 -0
  97. package/dist/chunk-m4sk62wb.js +5 -0
  98. package/dist/chunk-md8rqn48.js +30 -0
  99. package/dist/chunk-mepdnezf.js +17 -0
  100. package/dist/chunk-mhq0pjws.js +2 -0
  101. package/dist/chunk-mp6hy8g4.js +2 -0
  102. package/dist/chunk-ngc2wke4.js +3 -0
  103. package/dist/chunk-nn2vstke.js +2 -0
  104. package/dist/chunk-p2v2a68k.js +2 -0
  105. package/dist/{chunk-qn5srnj3.js → chunk-pbh4smw3.js} +16 -16
  106. package/dist/chunk-pdt69hpb.js +2 -0
  107. package/dist/chunk-pgzvyrv6.js +29 -0
  108. package/dist/chunk-pj1wg7jg.js +2 -0
  109. package/dist/chunk-pqxzp1bb.js +3 -0
  110. package/dist/chunk-px7fvbj6.js +3 -0
  111. package/dist/chunk-q4c06e8x.js +20 -0
  112. package/dist/chunk-q6vrb2pe.js +2 -0
  113. package/dist/chunk-q7qchkvk.js +2 -0
  114. package/dist/chunk-q9bdh4s5.js +8 -0
  115. package/dist/chunk-qet5gc6s.js +2033 -0
  116. package/dist/chunk-qz519eyp.js +2 -0
  117. package/dist/chunk-r3f9jcf7.js +5 -0
  118. package/dist/chunk-rs4v4fha.js +4 -0
  119. package/dist/chunk-s2x4wcrz.js +2 -0
  120. package/dist/chunk-s5xezjps.js +3 -0
  121. package/dist/chunk-scezfp0w.js +30 -0
  122. package/dist/chunk-sd321bn3.js +2 -0
  123. package/dist/{chunk-eenk6s3t.js → chunk-sd47dzs0.js} +79 -79
  124. package/dist/chunk-se7mwqd1.js +2 -0
  125. package/dist/chunk-shr559s7.js +3 -0
  126. package/dist/chunk-syaw6b75.js +2 -0
  127. package/dist/chunk-t4hzprsm.js +3 -0
  128. package/dist/{chunk-s9za1vvd.js → chunk-t61vdbje.js} +89 -89
  129. package/dist/chunk-tfexmdkt.js +3 -0
  130. package/dist/chunk-thyt8ed8.js +6 -0
  131. package/dist/chunk-v091jft4.js +12 -0
  132. package/dist/chunk-v4vaqxrf.js +33 -0
  133. package/dist/chunk-vgvtnwxa.js +4 -0
  134. package/dist/chunk-x0q32ees.js +3 -0
  135. package/dist/chunk-x5bpeb4a.js +2 -0
  136. package/dist/chunk-x72tv2cg.js +3 -0
  137. package/dist/chunk-xfp7k0v8.js +64 -0
  138. package/dist/chunk-xtdw3692.js +6 -0
  139. package/dist/chunk-y1cmjvk3.js +43 -0
  140. package/dist/chunk-y5310237.js +311 -0
  141. package/dist/chunk-ya0qecph.js +27 -0
  142. package/dist/chunk-yazk54jr.js +8 -0
  143. package/dist/chunk-ydjfar14.js +2 -0
  144. package/dist/chunk-ym95v4nc.js +3 -0
  145. package/dist/chunk-ynvdvbat.js +18 -0
  146. package/dist/chunk-yvx1ap9b.js +3 -0
  147. package/dist/chunk-z0g9jvv0.js +40 -0
  148. package/dist/chunk-z6d0jmjb.js +2 -0
  149. package/dist/{chunk-fpwzacpm.js → chunk-zhxdpzga.js} +4 -4
  150. package/dist/cli.js +110 -110
  151. package/dist/craft-entry.js +7 -7
  152. package/dist/craft.js +7 -7
  153. package/dist/database.js +2 -2
  154. package/dist/image-optimization/component.js +4 -4
  155. package/dist/index.d.ts +2 -0
  156. package/dist/index.js +1 -0
  157. package/dist/media/image/component.js +5 -5
  158. package/dist/media/protected/component.js +2 -2
  159. package/dist/media/video/index.js +4 -4
  160. package/dist/native/bridge/protocol.d.ts +325 -0
  161. package/dist/native/bridge/protocol.js +219 -0
  162. package/dist/native/cli.d.ts +24 -0
  163. package/dist/native/cli.js +52 -0
  164. package/dist/native/compiler/bundle.d.ts +41 -0
  165. package/dist/native/compiler/bundle.js +90 -0
  166. package/dist/native/compiler/client-script.d.ts +8 -0
  167. package/dist/native/compiler/client-script.js +31 -0
  168. package/dist/native/compiler/codegen.d.ts +10 -0
  169. package/dist/native/compiler/codegen.js +145 -0
  170. package/dist/native/compiler/headwind-to-style.d.ts +395 -0
  171. package/dist/native/compiler/headwind-to-style.js +1163 -0
  172. package/dist/native/compiler/html-to-ir.d.ts +41 -0
  173. package/dist/native/compiler/html-to-ir.js +411 -0
  174. package/dist/native/compiler/icons.d.ts +220 -0
  175. package/dist/native/compiler/icons.js +208 -0
  176. package/dist/native/compiler/ir.d.ts +234 -0
  177. package/dist/native/compiler/ir.js +15 -0
  178. package/dist/native/compiler/parser.d.ts +88 -0
  179. package/dist/native/compiler/parser.js +753 -0
  180. package/dist/native/compiler/render-screen.d.ts +26 -0
  181. package/dist/native/compiler/render-screen.js +31 -0
  182. package/dist/native/components/primitives.d.ts +291 -0
  183. package/dist/native/components/primitives.js +22 -0
  184. package/dist/native/hot-reload/client.d.ts +62 -0
  185. package/dist/native/hot-reload/client.js +324 -0
  186. package/dist/native/index.d.ts +90 -0
  187. package/dist/native/index.js +34 -0
  188. package/dist/native/primitives/ActivityIndicator.stx +5 -0
  189. package/dist/native/primitives/Button.stx +5 -0
  190. package/dist/native/primitives/DatePicker.stx +5 -0
  191. package/dist/native/primitives/FlatList.stx +5 -0
  192. package/dist/native/primitives/Image.stx +5 -0
  193. package/dist/native/primitives/ImageBackground.stx +5 -0
  194. package/dist/native/primitives/KeyboardAvoidingView.stx +5 -0
  195. package/dist/native/primitives/Modal.stx +5 -0
  196. package/dist/native/primitives/Picker.stx +5 -0
  197. package/dist/native/primitives/Pressable.stx +5 -0
  198. package/dist/native/primitives/RefreshControl.stx +5 -0
  199. package/dist/native/primitives/SafeAreaView.stx +5 -0
  200. package/dist/native/primitives/ScrollView.stx +5 -0
  201. package/dist/native/primitives/SectionList.stx +5 -0
  202. package/dist/native/primitives/Slider.stx +5 -0
  203. package/dist/native/primitives/StatusBar.stx +5 -0
  204. package/dist/native/primitives/Switch.stx +5 -0
  205. package/dist/native/primitives/Text.stx +5 -0
  206. package/dist/native/primitives/TextInput.stx +5 -0
  207. package/dist/native/primitives/TouchableHighlight.stx +5 -0
  208. package/dist/native/primitives/TouchableOpacity.stx +5 -0
  209. package/dist/native/primitives/View.stx +5 -0
  210. package/dist/native/runtime/craft.d.ts +75 -0
  211. package/dist/native/runtime/craft.js +0 -0
  212. package/dist/native/runtime/entry.d.ts +1 -0
  213. package/dist/native/runtime/entry.js +3 -0
  214. package/dist/native/runtime/index.d.ts +45 -0
  215. package/dist/native/runtime/index.js +165 -0
  216. package/dist/native/runtime/native-host.d.ts +33 -0
  217. package/dist/native/runtime/native-host.js +184 -0
  218. package/dist/native/runtime/screen.d.ts +43 -0
  219. package/dist/native/runtime/screen.js +808 -0
  220. package/dist/pwa/service-worker.js +1 -1
  221. package/dist/pwa/workbox.js +1 -1
  222. package/dist/pwa.js +8 -8
  223. package/dist/site-url.d.ts +1 -1
  224. package/dist/ssg.js +53 -53
  225. package/dist/visual-testing.js +42 -42
  226. package/dist/web-components/reactive-generator.js +2 -2
  227. package/package.json +9 -5
  228. package/dist/chunk-00g9x6w2.js +0 -2
  229. package/dist/chunk-04tgatyy.js +0 -2
  230. package/dist/chunk-097jnwd5.js +0 -2
  231. package/dist/chunk-0btmm4m2.js +0 -147
  232. package/dist/chunk-0c2h69k2.js +0 -4
  233. package/dist/chunk-0pkk226n.js +0 -2
  234. package/dist/chunk-0we9nw1d.js +0 -3
  235. package/dist/chunk-0y46fbkx.js +0 -3
  236. package/dist/chunk-18n1ftn0.js +0 -33
  237. package/dist/chunk-1a0v39k5.js +0 -3
  238. package/dist/chunk-1fs9jvpb.js +0 -2
  239. package/dist/chunk-1qq26zt0.js +0 -2
  240. package/dist/chunk-1te8k8gp.js +0 -3
  241. package/dist/chunk-1ws3xcea.js +0 -1199
  242. package/dist/chunk-213jwgpx.js +0 -3
  243. package/dist/chunk-24w86pek.js +0 -32
  244. package/dist/chunk-27fgag95.js +0 -4
  245. package/dist/chunk-2fw05hs2.js +0 -3
  246. package/dist/chunk-2tbez006.js +0 -2
  247. package/dist/chunk-38wvkv3s.js +0 -2
  248. package/dist/chunk-3rkejwjp.js +0 -2
  249. package/dist/chunk-3t65wb35.js +0 -2
  250. package/dist/chunk-3w6z6tw9.js +0 -2
  251. package/dist/chunk-4q1c6fw2.js +0 -7
  252. package/dist/chunk-50pszj17.js +0 -2
  253. package/dist/chunk-563shnkz.js +0 -3
  254. package/dist/chunk-5h104qh1.js +0 -2
  255. package/dist/chunk-5qjk7drw.js +0 -20
  256. package/dist/chunk-603x5gb2.js +0 -2
  257. package/dist/chunk-6kd5jjwc.js +0 -2
  258. package/dist/chunk-6kdrncsx.js +0 -30
  259. package/dist/chunk-6zggmce7.js +0 -4422
  260. package/dist/chunk-72rwcbp6.js +0 -3
  261. package/dist/chunk-76w34xne.js +0 -3
  262. package/dist/chunk-7dmgt8at.js +0 -2
  263. package/dist/chunk-82pd4b5w.js +0 -2
  264. package/dist/chunk-8d7nf67s.js +0 -2
  265. package/dist/chunk-8w2mqdnv.js +0 -2
  266. package/dist/chunk-90b2vt2n.js +0 -2
  267. package/dist/chunk-9e8t0twa.js +0 -3
  268. package/dist/chunk-9fqp72ze.js +0 -5
  269. package/dist/chunk-9xew0kgf.js +0 -2
  270. package/dist/chunk-a7bnvz91.js +0 -24
  271. package/dist/chunk-akwd34xt.js +0 -29
  272. package/dist/chunk-anydpa34.js +0 -3
  273. package/dist/chunk-aq1xq0r4.js +0 -16
  274. package/dist/chunk-bbt3tp6f.js +0 -499
  275. package/dist/chunk-bn1edb1y.js +0 -47
  276. package/dist/chunk-btd7ds3x.js +0 -2
  277. package/dist/chunk-c4511wng.js +0 -2
  278. package/dist/chunk-c4h579e3.js +0 -2
  279. package/dist/chunk-cj3adc77.js +0 -5
  280. package/dist/chunk-cs54ek9m.js +0 -6
  281. package/dist/chunk-ct1jwd4r.js +0 -2
  282. package/dist/chunk-cxrgxzxc.js +0 -2
  283. package/dist/chunk-de8t7sc9.js +0 -17
  284. package/dist/chunk-fcnrgxck.js +0 -2
  285. package/dist/chunk-fqzcft9d.js +0 -2
  286. package/dist/chunk-gbmeh7jg.js +0 -3
  287. package/dist/chunk-gc06g35w.js +0 -2
  288. package/dist/chunk-gs18069g.js +0 -194
  289. package/dist/chunk-gvbf1mhs.js +0 -930
  290. package/dist/chunk-h564hgzt.js +0 -2
  291. package/dist/chunk-h83jrhfq.js +0 -3
  292. package/dist/chunk-hj4vpyhp.js +0 -2
  293. package/dist/chunk-hrkvsj5c.js +0 -11
  294. package/dist/chunk-hyr4ag1k.js +0 -2
  295. package/dist/chunk-jxvmf02k.js +0 -2
  296. package/dist/chunk-k5ptvy0b.js +0 -4
  297. package/dist/chunk-k80sn8d1.js +0 -2
  298. package/dist/chunk-k8t2cmyd.js +0 -2
  299. package/dist/chunk-kmsyvaex.js +0 -8
  300. package/dist/chunk-kq4b6cwj.js +0 -2
  301. package/dist/chunk-kvmx7dnb.js +0 -2
  302. package/dist/chunk-kxc2h5vn.js +0 -5
  303. package/dist/chunk-mbxehgrq.js +0 -2
  304. package/dist/chunk-mgnq5de2.js +0 -2
  305. package/dist/chunk-mgrckqww.js +0 -2
  306. package/dist/chunk-mq5ewmz6.js +0 -2
  307. package/dist/chunk-mrahwn5v.js +0 -8
  308. package/dist/chunk-n2swas11.js +0 -3
  309. package/dist/chunk-n4299xgy.js +0 -2
  310. package/dist/chunk-naw4jt7j.js +0 -2
  311. package/dist/chunk-ny67c03k.js +0 -3
  312. package/dist/chunk-p4jb9v0w.js +0 -2
  313. package/dist/chunk-p4zrvt5f.js +0 -14
  314. package/dist/chunk-p5wp0ce6.js +0 -43
  315. package/dist/chunk-pcxp4r9n.js +0 -3
  316. package/dist/chunk-pjrn29gg.js +0 -2
  317. package/dist/chunk-prxwsp7n.js +0 -2
  318. package/dist/chunk-py2r6wtv.js +0 -2
  319. package/dist/chunk-q738pwv6.js +0 -2
  320. package/dist/chunk-q9n5swx7.js +0 -3
  321. package/dist/chunk-qmmp5kb5.js +0 -2
  322. package/dist/chunk-qqpqgwvb.js +0 -30
  323. package/dist/chunk-rcv2ehpq.js +0 -18
  324. package/dist/chunk-rq414kn5.js +0 -3
  325. package/dist/chunk-rz9f3zqz.js +0 -7
  326. package/dist/chunk-s6g8wksg.js +0 -2
  327. package/dist/chunk-s8jd13nb.js +0 -3
  328. package/dist/chunk-spxsw4mp.js +0 -2
  329. package/dist/chunk-strcy64y.js +0 -2
  330. package/dist/chunk-t1htzg9e.js +0 -4
  331. package/dist/chunk-t1tdjjht.js +0 -216
  332. package/dist/chunk-tat1cjec.js +0 -2
  333. package/dist/chunk-td08rnk3.js +0 -3
  334. package/dist/chunk-tgadbsd4.js +0 -2
  335. package/dist/chunk-tgrpp58r.js +0 -2
  336. package/dist/chunk-tkyrk66a.js +0 -3
  337. package/dist/chunk-tp8pzf94.js +0 -3
  338. package/dist/chunk-twz64kvy.js +0 -2
  339. package/dist/chunk-v3nwkveg.js +0 -12
  340. package/dist/chunk-vsbmc9kt.js +0 -2
  341. package/dist/chunk-vzgzaw66.js +0 -12
  342. package/dist/chunk-wc66mcn4.js +0 -4367
  343. package/dist/chunk-wkanrfb3.js +0 -2
  344. package/dist/chunk-x8f6wqxd.js +0 -2
  345. package/dist/chunk-xsng1mtq.js +0 -3
  346. package/dist/chunk-xwts5yky.js +0 -4
  347. package/dist/chunk-z5rwnnk1.js +0 -3
  348. package/dist/chunk-zcz9rs6p.js +0 -3
  349. package/dist/chunk-zpcnbdhn.js +0 -64
  350. package/dist/chunk-zq4ssxj9.js +0 -8
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{bg as a}from"./chunk-k5ptvy0b.js";import"./chunk-qqpqgwvb.js";import"./chunk-ny67c03k.js";import"./chunk-t5ja7qkn.js";import"./chunk-9e8t0twa.js";import"./chunk-anydpa34.js";import"./chunk-cs54ek9m.js";import"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{a as buildForProduction};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{Fl as G}from"./chunk-s8jd13nb.js";import{Eq as U,Iq as B}from"./chunk-wc66mcn4.js";import{at as O}from"./chunk-24w86pek.js";import{Jt as L}from"./chunk-tkyrk66a.js";import{ix as y}from"./chunk-2fw05hs2.js";import X from"fs";import Z from"path";var H=new Map,$=new Map;async function p(j){let J;for(let V=0;V<3;V++)try{let q=(await X.promises.stat(j)).mtime.getTime(),W=$.get(j);if(W&&W.mtime===q)return W.content;let I=await Bun.file(j).text(),T=(await X.promises.stat(j)).mtime.getTime();if(T!==q)continue;return $.set(j,{content:I,mtime:T}),I}catch(Q){J=Q;break}throw $.delete(j),Error(`File not found: ${j}${J?` (${J.message})`:""}`)}function m(j){$.delete(j)}function f(j){for(let z of $.keys())if(z.startsWith(j))$.delete(z)}var M=null,v=null,b=null;function r(j){b=j}async function k(j=!1){let z=b??await import("./chunk-tgrpp58r.js");if(j)return z.generateSignalsRuntimeDev();if(M===null)M=z.generateSignalsRuntime();return M}var N=null;async function R(){if(N===null){let{getRouterScript:j}=await import("./chunk-twz64kvy.js");N=j()}return N}var x={};async function d(j,z=!1){let J=j==="runtime"?await k(z):await R(),V=j==="runtime"&&z?"runtime-debug":j,Q=x[V];if(!Q||Q.content!==J)Q={content:J,hash:Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)},x[V]=Q;return{content:J,hash:Q.hash,url:`/_stx/${j}.${Q.hash}.js`}}var E=500,Y=new Map;function w(j){return L(process.cwd(),"module-bundles",`${j}.js`)}function c(j){let z=Bun.hash(j).toString(16).padStart(16,"0").slice(0,16),J=Y.has(z);if(J)Y.delete(z);Y.set(z,j);while(Y.size>E)Y.delete(Y.keys().next().value);if(!J)try{let V=w(z);if(!X.existsSync(V))X.mkdirSync(Z.dirname(V),{recursive:!0}),X.writeFileSync(V,j)}catch{}return`/_stx/modules.${z}.js`}function l(j){if(!/^[0-9a-f]{16}$/.test(j))return;let z=Y.get(j);if(z!==void 0)return z;try{return X.readFileSync(w(j),"utf8")}catch{return}}function o(){$.clear(),B(),O(),M=null,v=null,N=null}function A(j){let z={debug:j.debug===!0,middleware:(j.middleware??[]).map((J)=>({name:J.name,timing:J.timing,handler:String(J.handler)})),customDirectives:(j.customDirectives??[]).map((J)=>({name:J.name,hasEndTag:J.hasEndTag===!0,rawParams:J.rawParams===!0,handler:String(J.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(z)).digest("hex")}async function s(j,z){try{if(!z.cachePath)return null;let J=Z.resolve(z.cachePath),V=Z.join(J,`${D(j)}.html`),Q=Z.join(J,`${D(j)}.meta.json`);if(!await U(V)||!await U(Q))return null;let q=await Bun.file(Q).text(),W=JSON.parse(q);if(W.cacheVersion!==z.cacheVersion)return null;if(W.engine!==G())return null;if(W.optionsSignature!==A(z))return null;if((await X.promises.stat(j)).mtime.getTime()>W.mtime)return null;for(let K of W.dependencies)if(await U(K)){if((await X.promises.stat(K)).mtime.getTime()>W.mtime)return null}else return null;return await Bun.file(V).text()}catch(J){return console.warn(`Cache error for ${j}:`,J),null}}async function n(j,z,J,V){try{if(!V.cachePath)return;let Q=Z.resolve(V.cachePath);await X.promises.mkdir(Q,{recursive:!0});let q=Z.join(Q,`${D(j)}.html`),W=Z.join(Q,`${D(j)}.meta.json`),I=await X.promises.stat(j);await Bun.write(q,z);let K={sourcePath:j,mtime:I.mtime.getTime(),dependencies:Array.from(J),cacheVersion:V.cacheVersion,engine:G(),optionsSignature:A(V),generatedAt:Date.now()};await Bun.write(W,JSON.stringify(K,null,2)),H.set(j,{output:z,mtime:I.mtime.getTime(),dependencies:J})}catch(Q){console.warn(`Failed to cache template ${j}:`,Q)}}var F=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,F)}
3
- export{H as Vj,p as Wj,m as Xj,f as Yj,r as Zj,k as _j,R as $j,d as ak,c as bk,l as ck,o as dk,s as ek,n as fk,D as gk};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Fm as a,Gm as b,Hm as c,Im as d,Jm as e,Km as f,Lm as g,Mm as h,Nm as i,Om as j,Pm as k,Qm as l,Rm as m,Sm as n,Tm as o,Um as p,Vm as q,Wm as r,Xm as s}from"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{j as usesSignalsInScript,s as unescapeHtml,q as resetRejectedExpressionWarnings,g as replaceInterpolations,c as registerFilters,b as registerFilter,o as processExpressions,n as interpolateScriptsInTemplate,l as interpolateScriptExpressions,m as interpolateScriptAttributes,d as getAllFilters,f as findMustacheEnd,r as evaluateExpression,i as escapeHtmlValue,h as escapeHtml,a as defaultFilters,k as clientLoopScopes,e as clearCustomFilters,p as applyFilters};
@@ -1,11 +0,0 @@
1
- // @bun
2
- import{Ri as O,Si as w,Ti as Z}from"./chunk-0c2h69k2.js";import{jl as R,ql as U,wl as T}from"./chunk-de8t7sc9.js";import{Mo as W,Or as C,mm as M,wq as k}from"./chunk-wc66mcn4.js";import{Jv as E,Kv as L}from"./chunk-cj3adc77.js";import{Ov as B}from"./chunk-gbmeh7jg.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd(),externalizeUserModules:!1});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
3
- ${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
4
-
5
- `),x=`;(function(){
6
- var __stx = window.stx || {};
7
- ${B.filter((q)=>!X.has(q)&&new RegExp(`\\b${q}\\b`).test(j)).map((q)=>`var ${q} = __stx[${JSON.stringify(q)}];`).join(`
8
- `)}
9
- ${j}
10
- })();`;return K=O(V()),Z(Y,z,K,x),x}function a(){Y.clear()}
11
- export{l as Pi,a as Qi};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$ as om,$a as so,$b as Dp,$c as Dq,$d as Dr,A as _k,Aa as Dn,Ab as Wo,Ac as cq,Ad as cr,Ae as is,B as $k,Ba as En,Bb as Yo,Bc as dq,Bd as dr,Be as js,C as al,Ca as Fn,Cb as Zo,Cc as eq,Cd as er,Ce as ks,D as bl,Da as Gn,Db as _o,Dc as fq,Dd as fr,De as ls,E as cl,Ea as Hn,Eb as $o,Ec as gq,Ed as gr,Ee as ms,F as dl,Fa as In,Fb as ap,Fc as hq,Fd as hr,Fe as ns,G as el,Ga as Jn,Gb as bp,Gc as iq,Gd as ir,Ge as os,H as fl,Ha as Kn,Hb as cp,Hc as jq,Hd as jr,He as ps,I as gl,Ia as Xn,Ib as dp,Ic as kq,Id as kr,Ie as qs,J as hl,Ja as Yn,Jb as ep,Jc as lq,Jd as lr,Je as rs,K as Zl,Ka as Zn,Kb as fp,Kc as mq,Kd as mr,Ke as ss,L as _l,La as _n,Lb as gp,Lc as nq,Ld as nr,Le as ts,M as $l,Ma as $n,Mb as hp,Mc as oq,Md as or,Me as us,N as am,Na as ao,Nb as ip,Nc as pq,Nd as pr,Ne as vs,O as bm,Oa as fo,Ob as jp,Oc as qq,Od as qr,Oe as ws,P as cm,Pa as go,Pb as kp,Pc as rq,Pd as rr,Pe as xs,Q as dm,Qa as ho,Qb as lp,Qc as sq,Qd as sr,Qe as ys,R as em,Ra as io,Rb as mp,Rc as tq,Rd as tr,S as fm,Sa as jo,Sb as np,Sc as uq,Sd as ur,T as gm,Ta as ko,Tb as vp,Tc as vq,Td as vr,U as hm,Ua as lo,Ub as wp,Uc as wq,Ud as wr,V as im,Va as mo,Vb as xp,Vc as xq,Vd as xr,W as jm,Wa as no,Wb as yp,Wc as yq,Wd as yr,X as km,Xa as oo,Xb as zp,Xc as zq,Xd as zr,Y as lm,Ya as po,Yb as Ap,Yc as Aq,Yd as Ar,Z as mm,Za as qo,Zb as Bp,Zc as Bq,Zd as Br,_ as nm,_a as ro,_b as Cp,_c as Cq,_d as Cr,aa as pm,ab as to,ac as Ep,ad as Eq,ae as Er,ba as qm,bb as uo,bc as Fp,bd as Fq,be as Fr,ca as rm,cb as vo,cc as Gp,cd as Gq,ce as Gr,da as sm,db as wo,dc as Hp,dd as Hq,de as Hr,ea as tm,eb as xo,ec as Ip,ed as Iq,ee as Ir,fa as um,fb as yo,fc as Jp,fd as Jq,fe as Jr,ga as vm,gb as zo,gc as Kp,gd as Kq,ge as Kr,ha as wm,hb as Ao,hc as Lp,hd as Lq,he as Rr,ia as xm,ib as Bo,ic as Mp,id as Mq,ie as Sr,ja as ym,jb as Co,jc as Np,jd as Nq,je as Tr,ka as zm,kb as Do,kc as Op,kd as Oq,ke as Ur,la as Am,lb as Eo,lc as Pp,ld as Pq,le as Vr,ma as Bm,mb as Fo,mc as Qp,md as Qq,me as Wr,na as Cm,nb as Go,nc as Rp,nd as Rq,ne as Xr,o as a,oa as Dm,ob as Ho,oc as Sp,od as Sq,oe as Yr,p as Lk,pa as Em,pb as Io,pc as Tp,pd as Tq,pe as Zr,q as Mk,qa as Fm,qb as Jo,qc as Up,qd as Uq,qe as _r,r as Nk,ra as Gm,rb as Ko,rc as Vp,rd as Vq,re as $r,s as Ok,sa as Hm,sb as Lo,sc as Wp,sd as Wq,se as as,t as Pk,ta as Im,tb as Oo,tc as Xp,td as Xq,te as bs,u as Qk,ua as Jm,ub as Po,uc as Yp,ud as Yq,ue as cs,v as Rk,va as yn,vb as Qo,vc as Zp,vd as Zq,ve as ds,w as Sk,wa as zn,wb as Ro,wc as _p,wd as _q,we as es,x as Tk,xa as An,xb as To,xc as $p,xd as $q,xe as fs,y as Yk,ya as Bn,yb as Uo,yc as aq,yd as ar,ye as gs,z as Zk,za as Cn,zb as Vo,zc as bq,zd as br,ze as hs}from"./chunk-6zggmce7.js";import{Re as op,Se as pp,Te as qp,Ue as rp,Ve as sp,We as tp,Xe as up}from"./chunk-5qjk7drw.js";import{Ye as Mo,Ze as No}from"./chunk-72rwcbp6.js";import{_e as So}from"./chunk-a7bnvz91.js";import{$e as xn}from"./chunk-1a0v39k5.js";import{af as bo,bf as co,cf as eo,df as Xo}from"./chunk-rq414kn5.js";import{ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl,qf as ul,rf as vl,sf as wl}from"./chunk-6kdrncsx.js";import{Af as Ul,Bf as Vl,Cf as Wl,Df as Xl,Ef as Yl,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-p5wp0ce6.js";import{Ff as Ll,Gf as Ml}from"./chunk-td08rnk3.js";import{Hf as xl,If as yl,Jf as zl,Kf as Al,Lf as Bl,Mf as Cl,Nf as Dl,Pf as El,Qf as Fl,Rf as Gl,Sf as Hl,Tf as Il,Uf as Jl,Xf as Kl}from"./chunk-z5rwnnk1.js";import{$f as jn,Yf as fn,Zf as gn,_f as hn,ag as kn,bg as wn}from"./chunk-k5ptvy0b.js";import{Ag as sn,Bg as tn,Cg as un,Dg as vn,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as Xm,qg as Ym,rg as Zm,sg as _m,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-qqpqgwvb.js";import{Eg as $m,Fg as an}from"./chunk-ny67c03k.js";import{Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn,Og as Tn,Pg as Un,Qg as Vn,Rg as Wn}from"./chunk-xsng1mtq.js";import{Sg as ui,Tg as vi,Ug as wi,Vg as xi,Wg as yi,Xg as zi}from"./chunk-tp8pzf94.js";import{Yg as Pj,Zg as Qj,_g as Rj,ch as Sj,dh as Tj,eh as Uj}from"./chunk-0pkk226n.js";import{fh as _j,gh as $j,hh as ak,ih as bk,jh as ck,kh as dk,lh as ek,mh as fk,nh as gk,oh as hk,ph as ik}from"./chunk-akwd34xt.js";import{Ah as Oj,qh as Fj,rh as Gj,sh as Hj,th as Ij,uh as Jj,wh as Kj,xh as Lj,yh as Mj,zh as Nj}from"./chunk-pcxp4r9n.js";import{Bh as Ak,Dh as Bk}from"./chunk-76w34xne.js";import{Jh as Ph,Kh as Qh,Lh as Rh,Mh as Sh,Nh as Th,Oh as Uh}from"./chunk-t1tdjjht.js";import{$h as ei,Qh as Vh,Rh as Wh,Sh as Xh,Th as Yh,Uh as Zh,Vh as _h,Wh as $h,Xh as ai,Yh as bi,Zh as ci,_h as di,ai as fi,bi as gi}from"./chunk-bjar18jd.js";import{di as hi,ei as ii,fi as ji,gi as ki}from"./chunk-27fgag95.js";import{li}from"./chunk-0we9nw1d.js";import{oi as oh}from"./chunk-18n1ftn0.js";import{pi as ph}from"./chunk-bwsxym3d.js";import{qi as qh,ri as rh}from"./chunk-xq1acw1r.js";import{si as sh,ti as th,ui as uh,vi as vh,wi as wh,xi as xh}from"./chunk-hx998w7n.js";import{Ai as Ah,Bi as Bh,Ci as Ch,yi as yh,zi as zh}from"./chunk-bjcsc6wx.js";import{Di as Dh,Ei as Eh,Fi as Fh,Gi as Gh,Hi as Hh}from"./chunk-qn5srnj3.js";import{Ii as Ih,Ji as Jh,Ki as Kh,Li as Lh,Mi as Mh,Ni as Nh,Oi as Oh}from"./chunk-4m7ajama.js";import{Pi as mh,Qi as nh}from"./chunk-hrkvsj5c.js";import"./chunk-0c2h69k2.js";import{$i as We,Ui as Pe,Vi as Qe,Wi as Re,Xi as Se,Yi as Te,Zi as Ue,_i as Ve,aj as Xe,bj as Ye,cj as Ze,dj as _e,ej as $e,fj as af}from"./chunk-gs18069g.js";import{Aj as If,gj as sf,hj as tf,ij as uf,jj as vf,kj as wf,lj as xf,mj as yf,nj as zf,oj as Af,pj as Bf,qj as Cf,rj as Df,sj as Ef,tj as Ff,uj as Gf,zj as Hf}from"./chunk-t5ja7qkn.js";import{Hj as df,Ij as ef,Jj as ff,Kj as gf,Lj as hf,Mj as jf,Nj as kf,Oj as lf,Pj as mf,Qj as nf,Rj as of,Sj as pf,Tj as qf,Uj as rf}from"./chunk-9e8t0twa.js";import{$j as Pf,Vj as Jf,Wj as Kf,Xj as Lf,Yj as Mf,Zj as Nf,_j as Of,ak as Qf,bk as Rf,ck as Sf,dk as Tf,ek as Uf,fk as Vf,gk as Wf}from"./chunk-h83jrhfq.js";import{Ak as Lr,Bk as Mr,Ck as Nr,Dk as Or,Ek as Pr,Fk as Qr}from"./chunk-rcv2ehpq.js";import{Gk as Uk,Hk as Vk,Ik as Wk,Jk as Xk,Kk as bn,Lk as cn,Mk as dn,Nk as en}from"./chunk-kxc2h5vn.js";import"./chunk-anydpa34.js";import"./chunk-de8t7sc9.js";import{Dl as gc,yl as ec,zl as fc}from"./chunk-cs54ek9m.js";import{Fl as bc}from"./chunk-s8jd13nb.js";import{$l as lb,$m as bd,$n as ue,$o as ag,$p as lh,$q as oj,Am as tc,An as Fd,Ap as Mg,Aq as Gi,Ar as ok,Bm as uc,Bn as Gd,Bp as Ng,Bq as Hi,Br as pk,Cm as vc,Cn as Hd,Cp as Og,Cq as Ii,Cr as qk,Dm as wc,Dn as Id,Dp as Pg,Dq as Ji,Dr as rk,Em as xc,En as Jd,Ep as Qg,Eq as Ki,Er as sk,Fm as yc,Fn as Kd,Fp as Rg,Fq as Li,Fr as tk,Gl as xa,Gm as zc,Gn as Ld,Gp as Sg,Gq as Mi,Gr as uk,Hl as ya,Hm as Ac,Hn as Md,Hp as Tg,Hq as Ni,Hr as vk,Il as za,Im as Bc,In as Nd,Ip as Ug,Iq as Oi,Ir as wk,Jl as Aa,Jm as Cc,Jn as Od,Jp as Vg,Jq as Pi,Jr as xk,Kl as Ba,Km as Dc,Kn as Pd,Kp as Wg,Kq as Qi,Kr as yk,Ll as Ca,Lm as Ec,Ln as Qd,Lp as Xg,Lq as Ri,Lr as zk,Ml as Da,Mm as Fc,Mn as Rd,Mp as Yg,Mq as $i,Mr as Ck,Nl as Ea,Nm as Gc,Nn as Sd,Np as Zg,Nq as aj,Nr as Dk,Ol as Fa,Om as Hc,On as Td,Oo as Yf,Op as _g,Oq as bj,Or as Ek,Pl as Ga,Pm as Ic,Pn as Ud,Pp as $g,Pq as cj,Pr as Fk,Ql as Ha,Qm as Jc,Qn as Vd,Qp as ah,Qq as dj,Qr as Gk,Rl as Ia,Rm as Kc,Rn as Wd,Rp as bh,Rq as ej,Rr as Hk,Sl as Ja,Sm as Lc,Sn as Xd,Sp as ch,Sq as fj,Sr as Ik,Tl as Ka,Tm as Mc,Tn as Yd,Tp as dh,Tq as gj,Tr as Jk,Ul as La,Um as Nc,Un as Zd,Up as eh,Uq as hj,Ur as Kk,Vl as Ma,Vm as Oc,Vn as _d,Vp as fh,Vq as ij,Wl as Na,Wm as Pc,Wn as $d,Wo as Zf,Wp as gh,Wq as jj,Xl as Oa,Xm as Qc,Xn as ae,Xp as hh,Xq as kj,Yl as ib,Ym as _c,Yn as re,Yo as _f,Yp as ih,Yq as lj,Zl as jb,Zm as $c,Zn as se,Zp as jh,Zq as mj,_l as kb,_m as ad,_n as te,_o as $f,_p as kh,_q as nj,am as mb,an as cd,ao as ve,ap as bg,aq as mi,ar as pj,bm as nb,bn as dd,bo as we,bp as cg,bq as ni,br as qj,cn as ed,co as xe,cp as dg,cr as rj,do as ye,dp as eg,dr as sj,em as Kb,en as fd,eo as ze,ep as qg,eq as oi,er as tj,fm as Lb,fn as gd,fo as Ae,fp as rg,fr as uj,gm as Mb,gn as hd,go as Be,gp as sg,gr as vj,hm as Nb,hn as id,ho as Ce,hp as tg,hr as wj,im as Ob,in as jd,io as De,ip as ug,ir as xj,jm as Pb,jn as kd,jo as Ee,jp as vg,jr as yj,km as Qb,kn as ld,kp as wg,kr as zj,lm as Ub,ln as md,lo as Ie,lp as xg,lr as Aj,mm as Vb,mn as nd,mo as Je,mp as yg,mr as Bj,nm as Wb,nn as od,no as Ke,np as zg,nr as Cj,om as hc,on as pd,oo as Le,op as Ag,or as Dj,pm as ic,pn as qd,po as Me,pp as Bg,pq as pi,pr as Ej,qm as jc,qn as vd,qo as Ne,qp as Cg,qq as qi,qr as Vj,rm as kc,rn as wd,ro as Oe,rp as Dg,rq as ri,rr as Wj,sm as lc,sn as xd,sp as Eg,sq as si,sr as Xj,tm as mc,tn as yd,tp as Fg,tq as ti,tr as Yj,um as nc,un as zd,up as Gg,uq as Ai,ur as Zj,vm as oc,vn as Ad,vo as bf,vp as Hg,vq as Bi,vr as jk,wm as pc,wn as Bd,wo as cf,wp as Ig,wq as Ci,wr as kk,xm as qc,xn as Cd,xp as Jg,xq as Di,xr as lk,ym as rc,yn as Dd,yo as Xf,yp as Kg,yq as Ei,yr as mk,zm as sc,zn as Ed,zp as Lg,zq as Fi,zr as nk}from"./chunk-wc66mcn4.js";import{$r as S,As as ta,Bs as ua,Cs as va,Ds as wa,Vr as M,Wr as N,Xr as O,Yr as P,Zr as Q,_r as R,as as T,bs as U,cs as V,ds as W,es as X,fs as Y,gs as Z,hs as _,is as $,js as aa,ks as ba,ls as ca,ms as da,ns as ea,os as fa,ps as ia,qs as ja,rs as ka,ss as la,ts as ma,us as na,vs as oa,ws as pa,xs as qa,ys as ra,zs as sa}from"./chunk-aq1xq0r4.js";import{Es as ga,Fs as ha}from"./chunk-zcz9rs6p.js";import{Gs as Rb,Hs as Sb,Is as Tb}from"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import{Ps as Si,Qs as Ti,Rs as Ui,Ss as Vi,Ts as Wi,Us as Xi,Vs as Yi,Ws as Zi,Xs as _i}from"./chunk-0btmm4m2.js";import{Ct as Xc,Dt as Yc,Et as Zc,nt as Rc,ot as Sc,pt as Tc,qt as Uc,rt as Vc,tt as Wc}from"./chunk-24w86pek.js";import{Ft as Xb,Gt as Yb,Ht as Zb,It as _b,Jt as $b,Kt as ac}from"./chunk-tkyrk66a.js";import{Rt as Fe,Tt as Ge,Wt as He}from"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import{$t as cc,au as dc}from"./chunk-1te8k8gp.js";import{eu as fg,fu as gg,gu as hg,hu as ig,iu as jg,ju as kg,ku as lg,mu as mg,nu as ng,ou as og,pu as pg}from"./chunk-zpcnbdhn.js";import{Du as be,Eu as ce,Fu as de,Gu as ee,Hu as fe,Iu as ge,Ju as he,Ku as ie,Lu as je,Mu as ke,Nu as le,Ou as me,Pu as ne,Qu as oe,Ru as pe,Su as qe,qu as rd,ru as sd,su as td,tu as ud}from"./chunk-rz9f3zqz.js";import{$u as m,Tu as b,Uu as c,Vu as d,Wu as e,Xu as f,Yu as g,Zu as h,_u as i,av as n,bv as o,cv as p,dv as q,ev as r,fv as s,gv as t,hv as u,iv as v,jv as w,kv as x,lv as y,mv as z,nv as A,ov as B,pv as C,qv as D,rv as E,sv as F,tv as G,uv as H,vv as I,wv as J,xv as K,yv as L}from"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import{$v as Bb,Ov as ob,Pv as pb,Qv as qb,Rv as rb,Sv as sb,Tv as tb,Uv as ub,Vv as vb,Wv as wb,Xv as xb,Yv as yb,Zv as zb,_v as Ab,aw as Cb,bw as Db,cw as Eb,dw as Fb,ew as Gb,fw as Hb,gw as Ib,hw as Jb}from"./chunk-gbmeh7jg.js";import{Bw as Ua,Cw as Va,Dw as Wa,Ew as Xa,Fw as Ya,Gw as Za,Hw as _a,Iw as $a,Jw as ab,Kw as bb,Lw as cb,Mw as db,Nw as eb,Ow as fb,Pw as gb,Rw as hb,lw as Pa,mw as Qa,pw as Ra,uw as Sa,vw as Ta}from"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import{bx as j,cx as k,dx as l}from"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{sl as writeNetlifyConfig,mn as writeManifest,Xl as writeImageManifest,Ep as wrapComponentForHMR,ls as withDefaults,zk as webComponentDirectiveHandler,tq as watermark,vr as watchViews,fm as watchMultiple,gm as watchEffect,em as watch,Me as warmImagePlaceholders,tm as waitForStore,X as waitForLocale,pp as virtualPathFor,mk as videoDirective,G as validators,ps as validated,Ce as validateValueEnhanced,pi as validateTemplate,$m as validateRouteRules,yq as validateParams,De as validateFormEnhanced,kr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,zn as validateComponentScripts,Xn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,sm as useStoreOrThrow,Wp as useStore,$k as useStorage,Af as useSlots,bl as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,um as useRouteParams,wm as useRouteParamOrThrow,vm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,ym as useMiddlewareValue,xm as useMiddlewareState,al as useLocalStorage,xp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,mr as uploadFiles,lr as uploadFile,pm as updateInstance,pf as untrack,Vi as unregisterDirective,qm as unmountInstance,Qc as unescapeHtml,tp as typecheckStxFiles,Di as transpileTypeScript,_r as translate,Ba as transitionDirective,lc as transformAutoImports,Rn as toUsers,Qn as toUser,cq as thumbnail,dr as thumbHashToRGBA,er as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,Bp as stxClientHelpers,kg as structuredDataDirective,bs as stripLocalePrefix,Xm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,Co as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Nn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Xo as startProductionServer,So as startInteractive,Mn as startBroadcasting,ds as stampLocaleLayoutGroup,Ia as staggerDirective,wq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Tm as spaNavVaryHeaders,qp as sourcePathFor,Dq as smartBatchSign,Hi as slotContentHasExpressions,Bq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Gq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,gq as sharpen,ss as shape,Zb as setStateDir,Cm as setRouteParams,Dm as setMiddlewareState,Zk as setKeptScope,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Zl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,vs as serveStxFile,xs as serveMultipleStxFiles,Lk as serveMarkdownFile,gp as serveFile,ys as serveApp,fp as serve,Hp as serializeState,on as serializeSetCookie,iq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,mq as saturation,zq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,rn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,nm as runHooks,Tr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,nq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Zr as resolveI18n,aq as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Gp as resetHMRHandler,o as resetErrorConfig,ns as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,tr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,Cr as renderToString,Dr as renderToStream,Er as renderToDOM,cr as renderThumbhashToCanvas,Qr as renderTemplateString,Or as renderTemplate,Pr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Oq as renderProtectedVideo,Nq as renderProtectedImg,Aq as renderMediaUpload,Nr as renderMarkdownView,dn as renderLayoutTypes,Vj as renderImgComponent,Nl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,wr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Rp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Yp as registerStoresClient,Am as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,_n as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,bm as ref,Ko as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,cm as reactive,rq as quality,Lq as pruneSignatureCache,Oj as pruneCache,sf as provide,Mr as protectCodeBlocks,ms as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Vm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Pq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Pl as processImageComponents,Cl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ts as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,wp as preloadIslandHandlers,Ne as preloadIconCollection,In as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,_p as parseUrl,fr as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Qq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ol as parseImageComponent,pn as parseFormBody,Cd as parseExpressionWithFilters,$n as parseDefaults,Ho as parseCookies,Mm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,os as optional,Jn as optimizeTemplate,Ul as optimizeImage,Vl as optimizeDirectory,qs as oneOf,sg as onceStore,km as onUpdated,_c as onUpdate,mm as onUnmounted,Hm as onServer,im as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Gm as onClient,jm as onBeforeUpdate,lm as onBeforeUnmount,hm as onBeforeMount,Nh as onActivated,_q as observeElement,Lo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,co as negotiateEncoding,Ua as navigateTo,om as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Hn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,$p as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,as as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,nn as loadManifest,Wq as loadElement,On as loadChannels,Lb as listensPassively,hs as lintStxStrict,Yq as lazyLoadAll,Xq as lazyLoad,Ha as keyframeDirective,gl as keptState,Ar as jsxs,Br as jsxDEV,zr as jsx,Jo as jsonResponse,Ye as islandDirective,l as isTest,Zm as isSpaNavigation,Rm as isSpaNavRequest,Eq as isSignatureValid,nf as isSignal,Al as isSharpAvailable,vo as isServerEnvironment,Em as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Tq as isNativeLazySupported,Lr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Uq as isIntersectionObserverSupported,Il as isImageFile,Bl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,uo as isEdgeEnvironment,is as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,bo as isCompressible,Fm as isClient,Ym as isChromeInstanceScript,Fh as isAsyncComponent,qn as isActionableMethod,jq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Yr as injectThemeBootstrap,ig as injectSeoTags,Vr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,zm as initStoreRegistry,vl as initNetlify,yp as initLoadingIndicator,Vq as initLazyLoading,Ro as initFile,br as initBlurUp,hr as initAllBlurUp,Zj as imgDirective,Sl as imageDirective,un as hydrateTemplateStream,tn as hydrateTemplate,vp as hydrateIslands,ai as hydrateIsland,vn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Op as hydrate,ep as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Tp as hasStore,xc as hasPlaceholders,tl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Ll as handleImageRequest,zf as handleError,Ir as h,Hl as groupVariantsByFormat,hq as grayscale,Zo as gitHash,Bn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ol as getTotalSize,Fq as getTimeUntilExpiry,mh as getStoreScript,Up as getStoreNames,Sp as getStore,el as getStorageSize,dl as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Jl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Dl as getImageMetadata,Fe as getImageDelivery,Np as getHydrationRuntime,Bm as getHydratedStoreState,Sk as getHmrServer,be as getHead,Fp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Gl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,_l as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Jq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Ln as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,or as generateVideoPreview,Ee as generateValidationScript,pr as generateUploadRuntime,Cn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,mo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ip as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,El as generateSrcSet,ek as generateSpriteSheet,xr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Fl as generateSizes,mg as generateSitemapIndex,Wr as generateSitemap,Sq as generateSimpleMediaPicker,Mq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Xr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,pl as generateNetlifyToml,rr as generateMinifiedMediaRuntime,qr as generateMediaRuntime,Rq as generateMediaManagerEmbed,ln as generateManifest,Ap as generateLoadingIndicatorHtml,ar as generateLazyLoadRuntime,en as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,nr as generateImagePreview,Wl as generateImageManifest,Mp as generateHydrationScript,af as generateHydrationRuntime,Pp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,Dp as generateHMRClientScript,fk as generateHLSManifest,Jp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ro as generateDocs,no as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,lo as generateComponentsDocs,Wh as generateComponentManifest,jo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,rm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,ir as generateBlurUpRuntime,jr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,up as formatTypecheckDiagnostics,np as formatTypeErrors,Oo as formatStxContent,nl as formatSize,Ta as formatRoutes,Po as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Ur as formatDoctorReport,oo as formatDocsAsMarkdown,qo as formatDocsAsJson,po as formatDocsAsHtml,qq as format,hl as forgetKeptState,Gn as foldConstants,_k as flushKeptState,pq as flipVertical,oq as flipHorizontal,fn as fingerprint,sp as findStxModuleDeclarations,rp as findRuntimeTypeDeclarations,Sr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,Dn as findDeadCode,Dn as findDeadBranches,Nm as findContainerRegion,ko as findComponentFiles,ws as findCommonDir,ml as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Kp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,_m as extractContainerContent,ho as extractComponentProps,Xh as extractComponentName,io as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Fn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,fo as enableDevTools,En as eliminateDeadCode,ff as effect,xq as dprUrls,so as docsCommand,ec as discoverServerApi,cn as discoverLayoutNames,$q as disconnectObserver,go as disableDevTools,F as devHelpers,Um as detectShell,to as detectRuntime,ql as detectProjectConfig,rj as detectFormat,yn as detectBuildMode,ef as derived,ul as deploy,Gk as defineStxConfig,Xp as defineStore,Bf as defineSlots,gs as defineSiteConfig,ks as definePropsWithValidation,js as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Kr as defineCustomElement,Wo as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Yo as defineApiHandler,sr as defaultMediaConfig,Yl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,us as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Qm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,gr as crossfadeTransition,bq as crop,Ph as createVirtualList,lk as createVideoDirective,Fo as createVercelHandler,kp as createTypeChecker,fa as createTranslateFilter,Bo as createTextEncoderStream,Jr as createStxApp,Ao as createStreamingResponse,We as createStreamRenderer,Vp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,am as createScope,zh as createSSRSuspense,bf as createRouter,an as createRouteRuleResolver,eb as createRouteLocation,ip as createRoute,bm as createRef,cm as createReactive,Df as createProvideContext,$o as createProject,Vo as createProductionBuild,tc as createPlaceholder,Kn as createOptimizedBuild,Go as createNetlifyHandler,il as createNetlifyClient,fb as createMiddlewareContext,hp as createMiddleware,Zq as createLazyObserver,Jh as createKeepAliveCache,xo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Tl as createImagePlugin,Ml as createImageHandler,Rl as createImageDirective,nb as createHeatmapAggregator,ll as createFileManifest,wo as createEnvAccessor,z as createEnhancedError,zo as createEdgeHandler,yo as createEdgeCache,Ni as createDetailedErrorMessage,Eo as createDenoHandler,rl as createDefaultNetlifyConfig,Zd as createCspHeaders,Io as createCookie,dm as createComputed,$l as createComponentInstance,Do as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Jr as createApp,Ka as createAnimationTimeline,eq as cover,_f as convertToCommonJS,lq as contrast,dq as contain,y as consoleError,m as configureErrorHandling,Fk as config,dm as computed,eo as compressResponse,Bg as composerPattern,Ag as composer,Wm as composeShellWithPage,Zn as componentDirective,Ii as componentClientSignalNames,kn as compileTemplate,a as collectRepeatedFlag,kl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,cl as clearStorage,Kq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Ql as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,zp as cleanupLoadingIndicator,Km as classifyScript,Lm as classifyAllScripts,lp as checkTemplateFile,mp as checkTemplate,Uf as checkCache,Hq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Un as channel,No as captureScreenshots,Mo as captureScreenshot,Z as cancelPendingLoads,jl as calculateSha1,fj as calculateOptimalWidths,Yk as cachedQuery,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,op as buildVirtualSource,ur as buildViews,Zp as buildUrl,Qe as buildSuspenseResolveScript,fs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,gn as buildRuntimeAsset,hn as buildRouterAsset,es as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,wn as buildForProduction,ao as buildComponentLibrary,Iq as buildAuthParams,xn as buildApp,cs as buildAlternateLinks,Uo as build,Sn as broadcastPrivate,Tn as broadcastPresence,Pn as broadcast,kq as brightness,Tb as bracketDepths,fq as blur,Jb as blankInertHtmlRegions,Cq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,sq as auto,ja as attributeValue,jn as assetTags,Mb as asInvocableStatement,rs as arrayOf,$r as applyTranslations,Sj as applyTransformations,zi as applySlots,Yn as applyPropDefaults,vq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Sm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,An as analyzeUsage,Im as analyzeTemplate,Jm as analyzeProject,An as analyzeDirectiveUsage,ed as analyticsDirective,cp as addStore,bp as addPage,Sd as addNonceToInlineContent,dp as addLayout,ap as addComponent,sn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,jp as TemplateTypeChecker,Qo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Fr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Om as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,To as ProductionBuild,Hr as Portal,_o as PROJECT_TEMPLATES,uq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Qp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,bn as LAYOUT_TYPES_FILE,fl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Kl as ImageProcessingError,Lp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,yr as Fragment,Gr as For,Pm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,wl as DeployError,xl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,zl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,yl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,Cp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Wn as BroadcastServer,Vn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Rr as $path};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Lv as a,Mv as b}from"./chunk-t1htzg9e.js";import"./chunk-2fw05hs2.js";export{b as warnUnbalancedTags,a as findUnbalancedTags};
@@ -1,4 +0,0 @@
1
- // @bun
2
- import{Cg as EF,pg as e,sg as kF,tg as UF,ug as wF}from"./chunk-qqpqgwvb.js";import{Fg as BF}from"./chunk-ny67c03k.js";import{Aj as d,zj as l}from"./chunk-t5ja7qkn.js";import{Ok as HF,Pk as IF,Qk as KF}from"./chunk-anydpa34.js";import{Al as ZF,yl as YF}from"./chunk-cs54ek9m.js";import{Bm as i,Mr as t,Or as M,Qp as GF,Yp as VF,aq as r,fq as o,hn as s,vo as zF,yp as $F,zm as p}from"./chunk-wc66mcn4.js";import{Os as XF}from"./chunk-9fqp72ze.js";import{Et as qF}from"./chunk-24w86pek.js";import{Yt as WF}from"./chunk-4q1c6fw2.js";import{bu as QF}from"./chunk-1te8k8gp.js";import{Tw as h,Ww as _F}from"./chunk-8wp64mym.js";import G from"fs";import q from"path";import{createHash as NF}from"crypto";_F();function u(Q){return NF("sha256").update(Q).digest("hex").slice(0,8)}function c(Q=!1){let z=Q?d():l(),Z=u(z);return{content:z,filename:`runtime.${Z}.js`,hash:Z}}function a(){let Q=h(),z=u(Q);return{content:Q,filename:`router.${z}.js`,hash:z}}function bF(Q){return{runtimeTag:Q.runtime?`<script src="/__stx/${Q.runtime.filename}"></script>`:"",routerTag:Q.router?`<script src="/__stx/${Q.router.filename}"></script>`:"",cssTag:Q.css?`<link rel="stylesheet" href="/__stx/${Q.css.filename}">`:""}}import n from"path";import{createHash as OF}from"crypto";function TF(Q={}){let z=new Set;return{context:new Proxy(Q,{get(X,F){if(F in X)return X[F];if(typeof F==="string"&&!F.startsWith("__"))z.add(F);return},has(X,F){if(F in X)return!0;if(typeof F==="string"&&!F.startsWith("__"))z.add(F);return!1}}),accessedKeys:z}}async function FF(Q,z,Z={}){let X=n.resolve(Q),F=await Bun.file(X).text(),U=OF("sha256").update(F).digest("hex").slice(0,16);p();let w={};try{w=await M(Z.configDir)}catch{}let H=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(F))!==null){let E=k[1];if(/\bserver\b/.test(E))H.push(k[2])}let W=new Set(H.flatMap((E)=>o(E))),{context:_}=TF({__filename:X,__dirname:n.dirname(X),__stx_serverDeclared:W}),N=new Set,x={...t,...w,...Z,buildMode:"compile",strict:!1},I=await r(F,_,X,x,N),O=e(I),j=i();return{route:z,sourceFile:Q,html:I,fragment:O,placeholders:j,hasServerScripts:H.length>0,serverScriptContent:H,dependencies:Array.from(N),contentHash:U,status:s(F),streamTemplates:_.__streamTemplates}}var MF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function JF(Q,z){let Z=0,X=0;if(!G.existsSync(Q))return{copied:Z,bytes:X};G.mkdirSync(z,{recursive:!0});function F(U,w){let H=G.readdirSync(U,{withFileTypes:!0});for(let V of H){if(MF.has(V.name))continue;let k=q.join(U,V.name),W=q.join(w,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),F(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),Z++,X+=G.statSync(W).size}}}return F(Q,z),{copied:Z,bytes:X}}async function qJ(Q={}){let z=Date.now(),Z=q.resolve(Q.root||process.cwd()),X=q.resolve(Z,Q.outputDir||".output");console.log("[stx build] Starting production build...");let F=await M(Z),U=q.resolve(Z,Q.componentsDir??F.componentsDir??"components"),w=q.resolve(Z,Q.partialsDir??F.partialsDir??"partials"),H=q.resolve(Z,Q.layoutsDir??F.layoutsDir??"layouts"),V=Q.publicDir??F.publicDir??"public",k=F.app?.head||{},W=F.app?.colorMode,_=F.router?.container||"main",N=Q.routeRules??F.routeRules??{},x=BF(N),I=Q.serverApi??F.serverApi,O=typeof I==="object"?I:{};if(I)YF(Z,O);if(F.runtimeConfig)QF(F.runtimeConfig,{});if(G.existsSync(X))G.rmSync(X,{recursive:!0});let j=[q.join(X,"public","__stx"),q.join(X,"public","assets"),q.join(X,"server","pages"),q.join(X,"server","fragments")];for(let Y of j)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let E=zF(Z,{pagesDirs:F._layerPageDirs}),LF=["components","layouts","partials"],y=E.filter((Y)=>{return!LF.some((B)=>Y.pattern.startsWith(`/${B}/`)||Y.pattern===`/${B}`)});console.log(`[stx build] Found ${y.length} page routes (${E.length-y.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let L=c(Q.debug),K=a();await Bun.write(q.join(X,"public","__stx",L.filename),L.content),await Bun.write(q.join(X,"public","__stx",K.filename),K.content),console.log(`[stx build] Runtime: ${L.filename} (${(L.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${K.filename} (${(K.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let R=[],v=[];for(let Y of y){let B=x(Y.pattern),b=B.rendering==="prerender";if(b&&(Y.pattern.includes(":")||Y.pattern.includes("[")))throw Error(`Cannot prerender parameter route ${Y.pattern}; use dynamic rendering (explicit path enumeration is not supported here)`);try{let J=await FF(Y.filePath,Y.pattern,{configDir:Z,componentsDir:U,partialsDir:w,layoutsDir:H,debug:Q.debug});if(R.push(J),J.html=J.html.replace(/runtime\.__STX_HASH__\.js/g,L.filename).replace(/router\.__STX_HASH__\.js/g,K.filename),J.html=VF(J.html,k,{bodyScripts:[`<script src="/__stx/${K.filename}"></script>`],...W&&{colorMode:W}}),W)J.html=$F(J.html,W);if(k.htmlAttrs)J.html=GF(J.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(J.html)){let $=J.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if($&&$[1]){let m=$[1];J.html=J.html.replace(" "+m,""),J.html=J.html.replace(/<body([^>]*)>/,`<body$1 ${m}>`)}}if(J.html=J.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),J.html=await qF(J.html),b){let $=await EF(J,{params:{},request:new Request(`http://stx.build${Y.pattern}`),method:"GET",__stx_strict_hydration:!0});if($.redirect||$.cookies?.length||$.boundaries?.length||$.headers&&Object.keys($.headers).length)throw Error(`Prerendered route ${Y.pattern} cannot set response headers/cookies, redirect or stream`);J.html=$.html,J.status=$.status??J.status,J.hasServerScripts=!1,J.serverScriptContent=[],J.placeholders={}}J.fragment=kF(J.html,_);let C=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),g=q.join("server","pages",`${C}.compiled.json`),f=q.join("server","fragments",`${C}.html`);await Bun.write(q.join(X,g),JSON.stringify(J,null,2)),await Bun.write(q.join(X,f),J.fragment),v.push({pattern:Y.pattern,compiledPath:g,fragmentPath:f,isDynamic:J.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("["),prerendered:b}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(J){if(Object.keys(B).length)throw J;console.error(`[stx build] \u2717 ${Y.pattern}:`,J instanceof Error?J.message:J)}}let P=q.resolve(Z,V);if(G.existsSync(P)){let{copied:Y,bytes:B}=JF(P,q.join(X,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(B/1024).toFixed(1)}KB) from ${V}/`)}let A=KF(Z);if(A){let{copied:Y,bytes:B}=JF(A,q.join(X,"public",IF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(B/1024).toFixed(1)}KB) from ${HF}/`)}let S={runtime:L.filename,router:K.filename},T=UF(v,S,X);if(T.routeRules=N,T.routerContainer=_,I)T.apiRoutes=await ZF(Z,X,O);if(F.runtimeConfig)await Bun.write(q.join(X,"server/runtime-config.json"),JSON.stringify(F.runtimeConfig)),await WF(Z,F.runtimeConfig);if(F._layerGraph)await Bun.write(q.join(X,"server/layers.json"),JSON.stringify(XF(F._layerGraph),null,2));wF(T,X);let D=Date.now()-z;return console.log(`
3
- [stx build] Done in ${D}ms \u2014 ${R.length} pages compiled`),{pageCount:R.length,assets:S,outputDir:X,duration:D}}
4
- export{u as Yf,c as Zf,a as _f,bF as $f,FF as ag,qJ as bg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Du as a,Eu as b,Fu as c,Gu as d,Hu as e,Iu as f,Ju as g,Ku as h,Lu as i,Mu as j,Nu as k,Ou as l,Pu as m,Qu as n,Ru as o,Su as p}from"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{i as useTitle,f as useSeoMeta,i as usePageTitle,d as useHead,g as seoMetaToHeadConfig,c as resetHead,k as renderHtmlAttrs,j as renderHead,l as renderBodyAttrs,o as processTitleDirective,p as processMetaDirective,n as processHeadDirective,e as mergeHeadConfigs,b as getPageMeta,a as getHead,h as definePageMeta,m as applyHead};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{jl as a,kl as b,ll as c,ml as d,nl as e,ol as f,pl as g,ql as h,rl as i,sl as j,tl as k,ul as l,vl as m,wl as n,xl as o}from"./chunk-de8t7sc9.js";import"./chunk-cs54ek9m.js";import"./chunk-s8jd13nb.js";import"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
@@ -1,8 +0,0 @@
1
- // @bun
2
- import Q from"fs";import U from"path";function W(H){let v=[],j=H.pwa;if(v.push({id:"pwa-enabled",name:"PWA Enabled",category:"required",passed:j?.enabled===!0,message:j?.enabled?"PWA is enabled":"PWA is not enabled in config"}),!j?.enabled)return v;v.push({id:"manifest-name",name:"App Name",category:"required",passed:Boolean(j.manifest?.name),message:j.manifest?.name?`App name: "${j.manifest.name}"`:"Missing required manifest name"}),v.push({id:"manifest-short-name",name:"Short Name",category:"recommended",passed:Boolean(j.manifest?.shortName),message:j.manifest?.shortName?`Short name: "${j.manifest.shortName}"`:"Short name not set (will use full name)"}),v.push({id:"manifest-description",name:"App Description",category:"recommended",passed:Boolean(j.manifest?.description),message:j.manifest?.description?"Description is set":"App description not provided"}),v.push({id:"manifest-theme-color",name:"Theme Color",category:"required",passed:Boolean(j.manifest?.themeColor),message:j.manifest?.themeColor?`Theme color: ${j.manifest.themeColor}`:"Theme color not set"}),v.push({id:"manifest-background-color",name:"Background Color",category:"required",passed:Boolean(j.manifest?.backgroundColor),message:j.manifest?.backgroundColor?`Background color: ${j.manifest.backgroundColor}`:"Background color not set"}),v.push({id:"manifest-display",name:"Display Mode",category:"required",passed:["standalone","fullscreen","minimal-ui"].includes(j.manifest?.display||""),message:j.manifest?.display?`Display mode: ${j.manifest.display}`:"Display mode should be standalone, fullscreen, or minimal-ui"}),v.push({id:"manifest-start-url",name:"Start URL",category:"required",passed:Boolean(j.manifest?.startUrl),message:j.manifest?.startUrl?`Start URL: ${j.manifest.startUrl}`:"Start URL not set"}),v.push({id:"icons-source",name:"Icon Source",category:"required",passed:Boolean(j.icons?.src),message:j.icons?.src?`Icon source: ${j.icons.src}`:"No icon source configured"});let J=j.icons?.sizes||[];v.push({id:"icons-192",name:"192x192 Icon",category:"required",passed:J.includes(192),message:J.includes(192)?"192x192 icon will be generated":"Missing 192x192 icon (required for Android)"}),v.push({id:"icons-512",name:"512x512 Icon",category:"required",passed:J.includes(512),message:J.includes(512)?"512x512 icon will be generated":"Missing 512x512 icon (required for splash screen)"}),v.push({id:"icons-maskable",name:"Maskable Icon",category:"recommended",passed:j.icons?.purpose?.includes("maskable")||!1,message:j.icons?.purpose?.includes("maskable")?"Maskable icon purpose is set":"Consider adding maskable icon purpose for adaptive icons"}),v.push({id:"sw-configured",name:"Service Worker",category:"required",passed:Boolean(j.serviceWorker),message:j.serviceWorker?"Service worker is configured":"Service worker configuration missing"}),v.push({id:"sw-cache-version",name:"Cache Version",category:"recommended",passed:Boolean(j.serviceWorker?.cacheVersion),message:j.serviceWorker?.cacheVersion?`Cache version: ${j.serviceWorker.cacheVersion}`:"Set cache version for proper cache busting"}),v.push({id:"offline-enabled",name:"Offline Support",category:"required",passed:j.offline?.enabled===!0,message:j.offline?.enabled?"Offline support is enabled":"Offline support is disabled"});let L=j.routes||[];return v.push({id:"caching-strategies",name:"Caching Strategies",category:"recommended",passed:L.length>0,message:L.length>0?`${L.length} route caching strategies configured`:"No custom caching strategies defined"}),v.push({id:"push-config",name:"Push Notifications",category:"optional",passed:!j.push?.enabled||Boolean(j.push?.vapidPublicKey),message:j.push?.enabled?j.push?.vapidPublicKey?"Push notifications configured with VAPID key":"Push enabled but missing VAPID key":"Push notifications not enabled"}),v.push({id:"share-target",name:"Share Target",category:"optional",passed:!0,message:j.shareTarget?.enabled?`Share target enabled at ${j.shareTarget.action}`:"Share target not enabled"}),v.push({id:"auto-inject",name:"Auto-injection",category:"recommended",passed:j.autoInject!==!1,message:j.autoInject!==!1?"PWA tags will be auto-injected":"Auto-injection disabled - manual tag insertion required"}),v}function X(H){let v=[],j=U.join(H,"manifest.json"),J=Q.existsSync(j);if(v.push({id:"build-manifest",name:"Manifest File",category:"required",passed:J,message:J?"manifest.json exists":"manifest.json not found in build output"}),J)try{let M=JSON.parse(Q.readFileSync(j,"utf-8"));v.push({id:"build-manifest-valid",name:"Valid Manifest JSON",category:"required",passed:!0,message:"Manifest is valid JSON"}),v.push({id:"build-manifest-icons",name:"Manifest Icons",category:"required",passed:Array.isArray(M.icons)&&M.icons.length>0,message:M.icons?.length?`${M.icons.length} icons defined in manifest`:"No icons defined in manifest"})}catch{v.push({id:"build-manifest-valid",name:"Valid Manifest JSON",category:"required",passed:!1,message:"Manifest is not valid JSON"})}let L=U.join(H,"sw.js"),N=Q.existsSync(L);v.push({id:"build-sw",name:"Service Worker File",category:"required",passed:N,message:N?"Service worker (sw.js) exists":"Service worker not found in build output"});let K=U.join(H,"offline.html"),T=Q.existsSync(K);v.push({id:"build-offline",name:"Offline Page",category:"recommended",passed:T,message:T?"Offline page exists":"No offline.html found"});let I=U.join(H,"pwa-icons");if(Q.existsSync(I)){let M=Q.readdirSync(I).filter((V)=>V.endsWith(".png")||V.endsWith(".webp"));v.push({id:"build-icons",name:"Generated Icons",category:"required",passed:M.length>0,message:M.length>0?`${M.length} icon files generated`:"No icon files found"})}else v.push({id:"build-icons",name:"Generated Icons",category:"required",passed:!1,message:"Icons directory not found"});return v}function Y(H){let v=H.filter((I)=>I.category==="required"),j=H.filter((I)=>I.category==="recommended"),J=v.filter((I)=>I.passed).length,L=j.filter((I)=>I.passed).length,N=v.length>0?J/v.length*70:70,K=j.length>0?L/j.length*30:30;return{score:Math.round(N+K),passed:H.filter((I)=>I.passed).length,failed:H.filter((I)=>!I.passed&&I.category==="required").length,warnings:H.filter((I)=>!I.passed&&I.category!=="required").length,checks:H}}function A(H,v){let j=W(H),J=v&&Q.existsSync(v)?X(v):[];return Y([...j,...J])}function B(H){let v=[];v.push(`
3
- === PWA Audit Report ===
4
- `);let j=H.score>=90?"32":H.score>=70?"33":"31";v.push(`Score: \x1B[${j}m${H.score}/100\x1B[0m`),v.push(`Passed: ${H.passed} | Failed: ${H.failed} | Warnings: ${H.warnings}
5
- `);let J=["required","recommended","optional"];for(let L of J){let N=H.checks.filter((K)=>K.category===L);if(N.length===0)continue;v.push(`
6
- ${L.toUpperCase()}:`);for(let K of N){let T=K.passed?"\x1B[32m\u2713\x1B[0m":"\x1B[31m\u2717\x1B[0m";if(v.push(` ${T} ${K.name}: ${K.message}`),K.details)v.push(` ${K.details}`)}}return v.push(""),v.join(`
7
- `)}
8
- export{W as Rk,X as Sk,Y as Tk,A as Uk,B as Vk};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ap as a,bp as b,cp as c,dp as d}from"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{b as reportDeferredLoopWarnings,c as processLoops,a as parseLoopBinding,d as declareBareLoopHead};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ii as a,Ji as b,Ki as c,Li as d,Mi as e,Ni as f,Oi as g}from"./chunk-4m7ajama.js";import"./chunk-2fw05hs2.js";export{c as shouldCacheComponent,a as processKeepAliveDirectives,g as onDeactivated,f as onActivated,e as generateKeepAliveRuntime,d as generateKeepAliveCSS,b as createKeepAliveCache};
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{Ww as y}from"./chunk-8wp64mym.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
3
- `);return C.push("declare module '@stacksjs/stx' {"," interface KnownLayouts {",...M.map((v)=>` '${v}': true`)," }","}","","export {}",""),C.join(`
4
- `)}function HM(M,C){if(!M)return[];let v=F.isAbsolute(M)?M:F.resolve(process.cwd(),M),q=f(v),g=c(q),j=F.join(C,h);try{if(Z.existsSync(j)&&Z.readFileSync(j,"utf8")===g)return q;Z.mkdirSync(C,{recursive:!0}),Z.writeFileSync(j,g)}catch{}return q}
5
- export{Y as Gk,_ as Hk,a as Ik,s as Jk,h as Kk,f as Lk,c as Mk,HM as Nk};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$j as h,Vj as b,Wj as c,Xj as d,Yj as e,Zj as f,_j as g,ak as i,bk as j,ck as k,dk as l,ek as m,fk as n,gk as o}from"./chunk-h83jrhfq.js";import{Fl as a}from"./chunk-s8jd13nb.js";import"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Re as c,Se as d,Te as e,Ue as f,Ve as g,We as h,Xe as i}from"./chunk-5qjk7drw.js";import"./chunk-18n1ftn0.js";import"./chunk-0c2h69k2.js";import"./chunk-de8t7sc9.js";import"./chunk-cs54ek9m.js";import"./chunk-s8jd13nb.js";import{bq as a,eq as b}from"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{d as virtualPathFor,h as typecheckStxFiles,e as sourcePathFor,i as formatTypecheckDiagnostics,g as findStxModuleDeclarations,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Lt as a,Pt as b,Qt as c,Rt as d,St as e,Tt as f,Ut as g,Vt as h,Wt as i}from"./chunk-213jwgpx.js";import"./chunk-2fw05hs2.js";export{a as webpHeaderHasAlpha,g as snapshotImageDelivery,b as setImageEncoderIdentity,i as prepareImageDelivery,e as isTransparentImage,h as installImageDelivery,c as imageEncoderIdentity,d as getImageDelivery,f as clearImageDeliveryCatalog};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{si as a,ti as b,ui as c,vi as d,wi as e,xi as f}from"./chunk-hx998w7n.js";import"./chunk-2fw05hs2.js";export{c as processTransitionDirectives,f as processTransitionAttributes,b as performLeave,a as performEnter,e as generateTransitionRuntime,d as generateTransitionCSS};
@@ -1,8 +0,0 @@
1
- // @bun
2
- var P=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{name:"variant",type:"string",required:!1,default:"primary"},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onclick",type:"callback",required:!1}],children:"single"}],["craft-text-input",{name:"TextInput",zigType:"craft.TextInput",props:[{name:"value",type:"string",required:!1,default:""},{name:"placeholder",type:"string",required:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-textarea",{name:"TextArea",zigType:"craft.TextArea",props:[{name:"value",type:"string",required:!1,default:""},{name:"placeholder",type:"string",required:!1},{name:"rows",type:"number",required:!1,default:3},{name:"disabled",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-checkbox",{name:"Checkbox",zigType:"craft.Checkbox",props:[{name:"checked",type:"boolean",required:!1,default:!1},{name:"label",type:"string",required:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-select",{name:"Select",zigType:"craft.Select",props:[{name:"value",type:"string",required:!1},{name:"options",type:"array",required:!0},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-slider",{name:"Slider",zigType:"craft.Slider",props:[{name:"value",type:"number",required:!1,default:0},{name:"min",type:"number",required:!1,default:0},{name:"max",type:"number",required:!1,default:100},{name:"step",type:"number",required:!1,default:1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-toggle",{name:"Toggle",zigType:"craft.Toggle",props:[{name:"checked",type:"boolean",required:!1,default:!1},{name:"disabled",type:"boolean",required:!1,default:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-modal",{name:"Modal",zigType:"craft.Modal",props:[{name:"open",type:"boolean",required:!1,default:!1},{name:"title",type:"string",required:!1},{name:"closable",type:"boolean",required:!1,default:!0},{name:"onclose",type:"callback",required:!1}],children:"multiple"}],["craft-alert",{name:"Alert",zigType:"craft.Alert",props:[{name:"variant",type:"string",required:!1,default:"info"},{name:"title",type:"string",required:!1},{name:"dismissible",type:"boolean",required:!1,default:!1}],children:"single"}],["craft-progress",{name:"ProgressBar",zigType:"craft.ProgressBar",props:[{name:"value",type:"number",required:!1,default:0},{name:"max",type:"number",required:!1,default:100},{name:"indeterminate",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-spinner",{name:"Spinner",zigType:"craft.Spinner",props:[{name:"size",type:"number",required:!1,default:24}],children:"none"}],["craft-avatar",{name:"Avatar",zigType:"craft.Avatar",props:[{name:"src",type:"string",required:!1},{name:"alt",type:"string",required:!1},{name:"size",type:"number",required:!1,default:40}],children:"none"}],["craft-badge",{name:"Badge",zigType:"craft.Badge",props:[{name:"variant",type:"string",required:!1,default:"default"}],children:"single"}],["craft-card",{name:"Card",zigType:"craft.Card",props:[{name:"padding",type:"number",required:!1,default:16}],children:"multiple"}],["craft-sidebar",{name:"Sidebar",zigType:"craft.NativeSidebar",props:[{name:"id",type:"string",required:!1},{name:"variant",type:"string",required:!1,default:"desktop"},{name:"material",type:"string",required:!1,default:"sidebar"},{name:"backgroundEffect",type:"string",required:!1,default:"shimmer"},{name:"allowsVibrancy",type:"boolean",required:!1,default:!0},{name:"materialOpacity",type:"number",required:!1,default:0.68},{name:"minWidth",type:"number",required:!1,default:240},{name:"maxWidth",type:"number",required:!1,default:340},{name:"canCollapse",type:"boolean",required:!1,default:!0},{name:"selectedItem",type:"string",required:!1},{name:"sections",type:"array",required:!1}],children:"multiple",platform:["macos"],fallback:"aside"}],["craft-sidebar-section",{name:"SidebarSection",zigType:"craft.NativeSidebarSection",props:[{name:"id",type:"string",required:!0},{name:"title",type:"string",required:!1},{name:"header",type:"string",required:!1}],children:"multiple",platform:["macos"],fallback:"section"}],["craft-sidebar-item",{name:"SidebarItem",zigType:"craft.NativeSidebarItem",props:[{name:"id",type:"string",required:!0},{name:"label",type:"string",required:!0},{name:"icon",type:"string",required:!1},{name:"badge",type:"string",required:!1},{name:"tintColor",type:"color",required:!1}],children:"none",platform:["macos"],fallback:"button"}],["craft-accordion",{name:"Accordion",zigType:"craft.Accordion",props:[{name:"title",type:"string",required:!0},{name:"open",type:"boolean",required:!1,default:!1}],children:"multiple"}],["craft-tabs",{name:"TabView",zigType:"craft.TabView",props:[{name:"activeTab",type:"number",required:!1,default:0},{name:"ontabchange",type:"callback",required:!1}],children:"multiple"}],["craft-tooltip",{name:"Tooltip",zigType:"craft.Tooltip",props:[{name:"content",type:"string",required:!0},{name:"position",type:"string",required:!1,default:"top"}],children:"single"}],["craft-date-picker",{name:"DatePicker",zigType:"craft.DatePicker",props:[{name:"value",type:"string",required:!1},{name:"min",type:"string",required:!1},{name:"max",type:"string",required:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-time-picker",{name:"TimePicker",zigType:"craft.TimePicker",props:[{name:"value",type:"string",required:!1},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-color-picker",{name:"ColorPicker",zigType:"craft.ColorPicker",props:[{name:"value",type:"color",required:!1,default:"#000000"},{name:"onchange",type:"callback",required:!1}],children:"none"}],["craft-data-table",{name:"DataTable",zigType:"craft.DataTable",props:[{name:"data",type:"array",required:!0},{name:"columns",type:"array",required:!0},{name:"sortable",type:"boolean",required:!1,default:!1},{name:"paginated",type:"boolean",required:!1,default:!1}],children:"none"}],["craft-virtual-list",{name:"VirtualList",zigType:"craft.VirtualList",props:[{name:"items",type:"array",required:!0},{name:"itemHeight",type:"number",required:!1,default:48},{name:"renderItem",type:"callback",required:!0}],children:"none"}],["craft-tree-view",{name:"TreeView",zigType:"craft.TreeView",props:[{name:"data",type:"object",required:!0},{name:"expandable",type:"boolean",required:!1,default:!0}],children:"none"}]]);async function k(j,q={}){let F=performance.now(),G={target:q.target||"universal",format:q.format||"zig",optimize:q.optimize??!0,treeShake:q.treeShake??!0,hotReload:q.hotReload??!1,debug:q.debug??!1,sourceMaps:q.sourceMaps??!1,bundle:q.bundle??!0,minify:q.minify??!1,components:q.components||P},Q=typeof j==="string"?I(j):j,U=z(Q.tree,G),W=f(U),K=G.treeShake?m(U,W):U,X=new Map;if(G.target==="universal"){let $=["macos","windows","linux","ios","android"];for(let _ of $){let R=J(K,{...G,target:_});X.set(_,R)}}else{let $=J(K,G);X.set(G.target,$)}let Y=s(K,G,X),x=r(Q,K,G),M={compilationTime:performance.now()-F,totalComponents:B(Q.tree),nativeComponents:b(K),webComponents:B(Q.tree)-b(K),bundleSize:Y.length,treeShakenSize:G.treeShake?g(U,K):Y.length,warnings:[],errors:[]},L;if(G.sourceMaps)L=p(Q,K);return{code:Y,platformCode:X,dependencies:W,manifest:x,sourceMaps:L,stats:M}}function I(j){let q={type:"fragment",children:[]},F=j.match(/<body[^>]*>([\s\S]*?)<\/body>/i),G=F?F[1]:j;return A(G,q),{id:E(),hash:D(j),tree:q,scripts:i(j),styles:a(j),staticParts:new Map,dynamicParts:new Map,dependencies:[],metadata:{hasSlots:!1,hasDynamicContent:j.includes("{{"),hasEventHandlers:j.includes("onclick")||j.includes("onchange"),hasAsyncContent:!1,componentCount:0,maxDepth:0,estimatedSize:j.length}}}function A(j,q){let F=/<(@?[\w-]+)([^>]*)(?:\/>|>([\s\S]*?)<\/\1>)/g,G;while((G=F.exec(j))!==null){let[,Q,U,W]=G,K=Q.startsWith("@craft-"),X={type:K?"component":"element",tag:K?Q.slice(1):Q,props:S(U),children:[],componentName:K?Q.slice(1):void 0};if(W){let Y=W.replace(/<[^>]+>/g,"").trim();if(Y)X.children=X.children??[],X.children.push({type:"text",text:Y});A(W,X)}q.children=q.children??[],q.children.push(X)}}function S(j){let q={},F=/([\w-:@]+)(?:=["']([^"']*)["'])?/g,G;while((G=F.exec(j))!==null){let[,Q,U]=G;q[Q]=U??!0}return q}function z(j,q){return Z(j,q)}function Z(j,q){let F=j.componentName?q.components?.get(j.componentName):void 0,G="craft.View";if(F)G=F.zigType;else if(j.type==="text")G="craft.Text";else if(j.tag)G=T(j.tag);let Q={};if(j.props)for(let[X,Y]of Object.entries(j.props))Q[X]=N(Y);let U=[];if(j.children)for(let X of j.children)U.push(Z(X,q));let W=new Map;if(j.props){for(let[X,Y]of Object.entries(j.props))if(X.startsWith("on")&&typeof Y==="string")W.set(X.slice(2).toLowerCase(),Y)}let K=C(j);return{type:y(j,F),zigType:G,props:Q,children:U,events:W,styles:K,id:j.hydrationKey,key:j.props?.key}}function T(j){return{div:"craft.View",span:"craft.Text",p:"craft.Text",h1:"craft.Text",h2:"craft.Text",h3:"craft.Text",h4:"craft.Text",h5:"craft.Text",h6:"craft.Text",button:"craft.Button",input:"craft.TextInput",textarea:"craft.TextArea",select:"craft.Select",img:"craft.Image",a:"craft.Link",ul:"craft.List",ol:"craft.List",li:"craft.ListItem",form:"craft.Form",label:"craft.Label",nav:"craft.View",header:"craft.View",footer:"craft.View",main:"craft.View",section:"craft.View",article:"craft.View",aside:"craft.View"}[j.toLowerCase()]||"craft.View"}function N(j){if(typeof j==="string"){if(j.startsWith("{{")&&j.endsWith("}}"))return{type:"binding",path:j.slice(2,-2).trim()};if(j.includes("(")&&j.includes(")"))return{type:"callback",handler:j};return{type:"literal",value:j}}if(typeof j==="number"||typeof j==="boolean")return{type:"literal",value:j};return{type:"literal",value:String(j)}}function y(j,q){if(q){let G=q.name.toLowerCase();if(G.includes("button"))return"button";if(G.includes("input")||G.includes("text"))return"input";if(G.includes("image")||G.includes("avatar"))return"image";if(G.includes("list")||G.includes("table"))return"list";if(G.includes("scroll"))return"scroll";return"custom"}if(j.type==="text")return"text";let F=j.tag?.toLowerCase();if(F==="button")return"button";if(F==="input"||F==="textarea")return"input";if(F==="img")return"image";if(F==="ul"||F==="ol")return"list";return"view"}function C(j){let q=j.props?.style,F={},G={};if(q){let Q=q.split(";").filter(Boolean);for(let U of Q){let[W,K]=U.split(":").map((X)=>X.trim());if(!W||!K)continue;switch(W){case"display":F.display=K;break;case"flex-direction":F.flexDirection=K;break;case"justify-content":F.justifyContent=h(K);break;case"align-items":F.alignItems=v(K);break;case"gap":F.gap=Number.parseInt(K,10);break;case"padding":F.padding=Number.parseInt(K,10);break;case"margin":F.margin=Number.parseInt(K,10);break;case"width":F.width=K==="auto"?"auto":Number.parseInt(K,10);break;case"height":F.height=K==="auto"?"auto":Number.parseInt(K,10);break;case"background-color":case"background":G.backgroundColor=K;break;case"border-color":G.borderColor=K;break;case"border-width":G.borderWidth=Number.parseInt(K,10);break;case"border-radius":G.borderRadius=Number.parseInt(K,10);break;case"opacity":G.opacity=Number.parseFloat(K);break}}}return{layout:F,appearance:G}}function h(j){return{"flex-start":"start","flex-end":"end",center:"center","space-between":"between","space-around":"around"}[j]||"start"}function v(j){return{"flex-start":"start","flex-end":"end",center:"center",stretch:"stretch"}[j]||"start"}function f(j){let q=[],F=new Set;function G(Q,U){let W=Q.id||E();if(F.has(W))return;F.add(W);let K={id:W,type:"component",path:Q.zigType,dependencies:U?[U]:[],size:w(Q),isStatic:u(Q)};q.push(K);for(let X of Q.children)G(X,W)}return G(j),q}function w(j){let q=100;return q+=Object.keys(j.props).length*20,q+=j.events.size*50,q}function u(j){for(let q of Object.values(j.props))if(q.type!=="literal")return!1;return j.events.size===0}function m(j,q){return j}function g(j,q){let F=0;function G(Q){F+=w(Q);for(let U of Q.children)G(U)}return G(q),F}function J(j,q){switch(q.format){case"zig":return H(j,q);case"typescript":return c(j,q);case"json":return JSON.stringify(j,null,q.minify?0:2);default:return H(j,q)}}function H(j,q){let F=[];return F.push("// Auto-generated by stx compiler"),F.push("// Target: "+q.target),F.push(""),F.push('const std = @import("std");'),F.push('const craft = @import("craft");'),F.push(""),F.push("pub fn render(allocator: std.mem.Allocator) !craft.Element {"),F.push(" return try build(allocator);"),F.push("}"),F.push(""),O(j,F,0),F.join(`
3
- `)}function O(j,q,F){let G=" ".repeat(F);if(F===0)q.push("fn build(allocator: std.mem.Allocator) !craft.Element {");let Q=`node_${F}`;q.push(`${G} var ${Q} = try ${j.zigType}.init(allocator);`);for(let[U,W]of Object.entries(j.props))if(W.type==="literal"){let K=typeof W.value==="string"?`"${W.value}"`:String(W.value);q.push(`${G} ${Q}.set${l(U)}(${K});`)}for(let U=0;U<j.children.length;U++){let W=j.children[U];if(W.type==="text"){let K=W.props.text?.type==="literal"?String(W.props.text.value):"";q.push(`${G} try ${Q}.addChild(try craft.Text.init(allocator, "${K}"));`)}else O(W,q,F+1),q.push(`${G} try ${Q}.addChild(node_${F+1});`)}if(F===0)q.push(` return ${Q}.element();`),q.push("}")}function c(j,q){let F=[];return F.push("// Auto-generated by stx compiler"),F.push("// Target: "+q.target),F.push(""),F.push('import { Craft } from "@stacksjs/craft";'),F.push(""),F.push("export function render(): Craft.Element {"),F.push(" return "+V(j,1)+";"),F.push("}"),F.join(`
4
- `)}function V(j,q){let F=" ".repeat(q),G=[];for(let[K,X]of Object.entries(j.props))if(X.type==="literal"){let Y=typeof X.value==="string"?`"${X.value}"`:String(X.value);G.push(`${K}: ${Y}`)}let Q=G.length>0?`{ ${G.join(", ")} }`:"{}",U=j.children.map((K)=>K.type==="text"?`"${K.props.text?.type==="literal"?K.props.text.value:""}"`:V(K,q+1)),W=U.length>0?`,
5
- ${F} [${U.join(`,
6
- ${F} `)}]`:"";return`Craft.create("${j.zigType}", ${Q}${W})`}function s(j,q,F){if(q.target==="universal"){let G=[];G.push("// Universal entry point"),G.push("");for(let[Q,U]of F)G.push(`// --- ${Q.toUpperCase()} ---`),G.push(`#if ${Q.toUpperCase()}`),G.push(U),G.push("#endif"),G.push("");return G.join(`
7
- `)}return F.get(q.target)||J(j,q)}function r(j,q,F){let G=[];function Q(U){G.push({name:U.zigType,hash:D(JSON.stringify(U.props)),props:Object.keys(U.props),events:Array.from(U.events.keys()),slots:[],isNative:U.zigType.startsWith("craft.")});for(let W of U.children)Q(W)}return Q(q),{version:"1.0.0",components:G,entry:j.id,assets:[],styles:j.styles}}function p(j,q){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}var d=0;function E(){return`id_${++d}`}function D(j){let q=0;for(let F=0;F<j.length;F++){let G=j.charCodeAt(F);q=(q<<5)-q+G,q=q&q}return Math.abs(q).toString(36)}function l(j){return j.charAt(0).toUpperCase()+j.slice(1)}function i(j){let q=[],F=/<script[^>]*>([\s\S]*?)<\/script>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function a(j){let q=[],F=/<style[^>]*>([\s\S]*?)<\/style>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function B(j){let q=j.type==="component"?1:0;if(j.children)for(let F of j.children)q+=B(F);return q}function b(j){let q=j.zigType.startsWith("craft.")?1:0;for(let F of j.children)q+=b(F);return q}function o(j){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(q)=>{console.log(`[craft-compiler] File changed: ${q}`)}}}var t={compileToNative:k,createHotReloadServer:o,NATIVE_COMPONENTS:P},e=t;
8
- export{P as hk,k as ik,o as jk,e as kk};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{vs as Q}from"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import{Jt as R}from"./chunk-tkyrk66a.js";import"./chunk-bn1edb1y.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";import O from"fs";import U from"path";async function W(j,b={}){let q=Date.now(),z={total:0,passed:0,failed:0,new:0,failures:[],duration:0},K=b.snapshotDir||R(j.root,"story","snapshots");await O.promises.mkdir(K,{recursive:!0});let B=j.storyFiles;if(b.filter&&b.filter.length>0)B=B.filter((J)=>b.filter.some((G)=>J.fileName.toLowerCase().includes(G.toLowerCase())));for(let J of B)await X(J,K,b,z);return z.duration=Date.now()-q,z}async function X(j,b,q,z){let K=j.story;if(!K)return;for(let B of K.variants){z.total++;let J=U.join(b,`${j.id}-${B.id}.snap`),G=Y(B.source||""),L=await _(J);if(q.update||!L){let M={storyId:j.id,variantId:B.id,component:j.fileName,timestamp:Date.now(),hash:G};if(await O.promises.writeFile(J,JSON.stringify(M,null,2)),!L)z.new++;z.passed++}else try{let M=await O.promises.readFile(J,"utf-8"),N=JSON.parse(M);if(N.hash===G)z.passed++;else z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:"Snapshot mismatch",difference:Z(N.hash,G)})}catch(M){z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:`Error reading snapshot: ${M}`})}}}async function A(j,b={}){return(await W(j,{...b,update:!0})).total}function Y(j){let b=0;for(let q=0;q<j.length;q++){let z=j.charCodeAt(q);b=(b<<5)-b+z,b=b&b}return b.toString(16)}function Z(j,b){if(j===b)return 0;let q=Math.abs(Number.parseInt(j,16)-Number.parseInt(b,16));return Math.min(q/1e6,1)}async function _(j){try{return await O.promises.access(j),!0}catch{return!1}}function I(j){let b=[];if(b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(" STX Story Visual Regression Tests"),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),j.failures.length>0){b.push(" \u274C Failures:"),b.push("");for(let q of j.failures){if(b.push(` \u2022 ${q.component} / ${q.variantId}`),b.push(` ${q.message}`),q.difference!==void 0)b.push(` Difference: ${(q.difference*100).toFixed(2)}%`);b.push("")}}if(b.push(" Summary:"),b.push(` Total: ${j.total}`),b.push(` Passed: ${j.passed} \u2713`),b.push(` Failed: ${j.failed} \u2717`),j.new>0)b.push(` New: ${j.new} \u26A1`);return b.push(` Time: ${j.duration}ms`),b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),b.join(`
3
- `)}async function S(j,b={}){let q=performance.now(),z=[],K=0,B=0;for(let G of j.storyFiles)try{let L=await Bun.file(G.path).text(),M=await Q(L,G.path);if(M.length>0){for(let N of M)z.push({storyId:G.id,variantId:"default",component:G.component,message:`A11y: ${N.message}`,expected:"No accessibility violations",actual:`${N.type}: ${N.message} (impact: ${N.impact})`});B++}else K++}catch(L){z.push({storyId:G.id,variantId:"default",component:G.component,message:`Failed to check a11y: ${L instanceof Error?L.message:String(L)}`,expected:"File readable for a11y check",actual:"File read error"}),B++}let J=performance.now()-q;return{total:j.storyFiles.length,passed:K,failed:B,new:0,failures:z,duration:J}}export{A as updateSnapshots,W as runVisualTests,S as runA11yTests,I as formatTestResults};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Pi as a,Qi as b}from"./chunk-hrkvsj5c.js";import"./chunk-0c2h69k2.js";import"./chunk-de8t7sc9.js";import"./chunk-cs54ek9m.js";import"./chunk-s8jd13nb.js";import"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ef as a,ff as b,gf as c,hf as d,if as e,jf as f,kf as g,lf as h,mf as i,nf as j,of as k,pf as l,qf as m,rf as n,sf as o}from"./chunk-6kdrncsx.js";import"./chunk-2fw05hs2.js";export{k as writeNetlifyConfig,n as initNetlify,l as hasNetlifyConfig,g as getTotalSize,h as generateNetlifyToml,f as formatSize,e as filterRequiredFiles,i as detectProjectConfig,m as deploy,a as createNetlifyClient,d as createFileManifest,j as createDefaultNetlifyConfig,c as collectDeployFiles,b as calculateSha1,o as DeployError};
@@ -1,3 +0,0 @@
1
- // @bun
2
- function E(z){if(!z.startsWith("/")||/[?#\\]/.test(z))throw Error(`Invalid route rule pattern: ${z}`);let w=z==="/"?[]:z.slice(1).split("/");if(w.some((q,j)=>!q||q.includes("*")&&q!=="*"&&q!=="**"||q==="**"&&j!==w.length-1||q.startsWith(":")&&!/^:[\w]+$/.test(q)))throw Error(`Unsupported route rule pattern: ${z}`);return w}function F(z){for(let[w,q]of Object.entries(z)){if(E(w),!q||typeof q!=="object"||Object.keys(q).some((j)=>j!=="rendering"&&j!=="cache"))throw Error(`Unsupported route rule for ${w}`);if(q.rendering!==void 0&&q.rendering!=="prerender"&&q.rendering!=="dynamic")throw Error(`Unsupported rendering mode for ${w}`);if(q.cache!==void 0&&q.cache!==!1){let j=q.cache;if(!j||j.public!==!0||Object.keys(j).some((x)=>!["public","maxAge","swr"].includes(x))||!Number.isFinite(j.maxAge)||j.maxAge<=0||j.swr!==void 0&&(!Number.isFinite(j.swr)||j.swr<0))throw Error(`Route cache for ${w} requires public: true, maxAge > 0 and swr >= 0`);if(q.rendering==="prerender")throw Error(`Prerendered route ${w} cannot revalidate; use dynamic rendering with cache`)}}}function G(z={}){F(z);let w=(j)=>j==="**"?0:j==="*"?1:j.startsWith(":")?2:3,q=Object.entries(z).map(([j,x])=>({pattern:j,parts:E(j),rule:x}));return q.sort((j,x)=>{for(let A=0;A<Math.max(j.parts.length,x.parts.length);A++){let B=(x.parts[A]===void 0?4:w(x.parts[A]))-(j.parts[A]===void 0?4:w(j.parts[A]));if(B)return B}return j.pattern.localeCompare(x.pattern)}),(j)=>{let x=j==="/"?[]:j.replace(/\/$/,"").slice(1).split("/");return q.find(({parts:A})=>A.every((B,D)=>B==="**"||x[D]!==void 0&&(B==="*"||B.startsWith(":")||B===x[D]))&&(A.at(-1)==="**"||A.length===x.length))?.rule??{}}}
3
- export{F as Eg,G as Fg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$o as d,Aq as p,Bq as q,Cq as r,Dq as s,Eq as t,Fq as u,Gq as v,Hq as w,Iq as x,Jq as y,Wo as a,Yo as b,_o as c,pq as e,qq as f,rq as g,sq as h,tq as i,uq as j,vq as k,wq as l,xq as m,yq as n,zq as o}from"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{e as validateTemplate,g as validateDirective,o as userComponentFileExists,m as transpileTypeScript,q as slotContentHasExpressions,k as shouldTranspileTypeScript,n as scopeOnRootElement,u as resolveTemplatePath,s as renderComponentWithSlot,j as isJavaScriptScript,p as isHydrateTrigger,d as hasVariables,h as hasDirectives,v as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,y as getComponentCacheStats,t as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,w as createDetailedErrorMessage,b as convertToCommonJS,r as componentClientSignalNames,x as clearComponentCache};
@@ -1,14 +0,0 @@
1
- // @bun
2
- import"./chunk-2fw05hs2.js";var Y=null,S=[],F=new WeakMap;function I(z){let K=z,B=new Set,G={get value(){if(Y){let H=F.get(G);if(!H)H=new Set,F.set(G,H);H.add(Y)}return K},set value(H){if(!Object.is(K,H)){K=H,B.forEach((J)=>J(H));let L=F.get(G);if(L)L.forEach((J)=>J())}},subscribe(H){return B.add(H),()=>B.delete(H)},peek(){return K}};return G}function W(z){return z!==null&&typeof z==="object"&&"value"in z&&"subscribe"in z&&"peek"in z}function P(z){return W(z)?z.value:z}function j(z){let K={};for(let B in z)if(Object.prototype.hasOwnProperty.call(z,B))K[B]=I(z[B]);return K}function D(z){return I(z)}function U(z){let K=typeof z==="function",B=K?z:z.get,G=K?void 0:z.set,H=K?Object.is:z.equals||Object.is,L,J=!0,Q=new Set,X=new Set,_=()=>{if(J=!0,X.size>0){let N=T.value;X.forEach(($)=>$(N))}};function Z(){Q.clear();let N=Y;Y=_,S.push(_);try{return B()}finally{S.pop(),Y=N}}let T={get value(){if(Y){let N=F.get(T);if(!N)N=new Set,F.set(T,N);N.add(Y)}if(J){let N=Z();if(!H(L,N))L=N;J=!1}return L},set value(N){if(G)G(N);else console.warn("Computed property is readonly")},subscribe(N){return X.add(N),()=>X.delete(N)},peek(){if(J)L=B(),J=!1;return L},invalidate(){J=!0},get dirty(){return J},get deps(){return Q}};return T}function x(z,K,B={}){let{immediate:G=!1,deep:H=!1,flush:L="pre",once:J=!1}=B,Q,X=!0,_=!1,Z=()=>{if(W(z))return H?q(z.value):z.value;return z()},T=()=>{if(!X||_)return;let M=Z();if(Q!==void 0&&Object.is(Q,M)&&!H)return;let A=()=>{if(K(M,Q),Q=H?q(M):M,J)$()};if(L==="sync")A();else if(L==="post")queueMicrotask(A);else Promise.resolve().then(A)},N=null;if(W(z))N=z.subscribe(()=>T());else N=U(z).subscribe(()=>T());if(G)Q=void 0,T();else Q=Z();let $=()=>{if(X=!1,N)N(),N=null};return $.pause=()=>{_=!0},$.resume=()=>{_=!1},$}function E(z,K,B={}){let{immediate:G=!1,once:H=!1}=B,L=z.map((T)=>W(T)?T.value:void 0),J=!0,Q=!1,X=()=>{if(!J||Q)return;let T=z.map((N)=>W(N)?N.value:void 0);if(K(T,L),L=[...T],H)Z()},_=z.map((T)=>{if(W(T))return T.subscribe(()=>X());return()=>{}});if(G)X();let Z=()=>{J=!1,_.forEach((T)=>T())};return Z.pause=()=>{Q=!0},Z.resume=()=>{Q=!1},Z}function y(z,K={}){let{flush:B="pre"}=K,G,H=!0,L=!1,J=()=>{if(!H||L)return;if(G)G();let X=Y;Y=J,S.push(J);try{G=z()}finally{S.pop(),Y=X}};if(B==="sync")J();else if(B==="post")queueMicrotask(J);else Promise.resolve().then(J);let Q=()=>{if(H=!1,G)G()};return Q.pause=()=>{L=!0},Q.resume=()=>{L=!1},Q}function C(z,K={},B){let G=/@computed\s*\(\s*(\w+)\s*,\s*(.+?)\s*\)/gi;return z.replace(G,(H,L,J)=>{try{let X=Function(...Object.keys(K),`return ${J}`)(...Object.values(K));return K[L]=X,`<!-- computed: ${L} = ${X} -->`}catch(Q){return`<!-- computed error: ${L} - ${Q} -->`}})}function R(z,K={},B){let G=/@watch\s*\(\s*(\w+)\s*\)\s*([\s\S]*?)@endwatch/gi;return z.replace(G,(H,L,J)=>{return`
3
- <script data-watch="${`watch-${Math.random().toString(36).substring(2,9)}`}">
4
- (function() {
5
- // Watch implementation for ${L}
6
- const handler = ${J.trim()};
7
- if (window.__stxState && window.__stxState['${L}']) {
8
- window.__stxState['${L}'].subscribe(function(newValue) {
9
- handler(newValue);
10
- });
11
- }
12
- })();
13
- </script>
14
- `})}function q(z){if(z===null||typeof z!=="object")return z;if(Array.isArray(z))return z.map((B)=>q(B));if(z instanceof Date)return new Date(z.getTime());if(z instanceof Map){let B=new Map;return z.forEach((G,H)=>B.set(q(H),q(G))),B}if(z instanceof Set){let B=new Set;return z.forEach((G)=>B.add(q(G))),B}let K={};for(let B in z)if(Object.prototype.hasOwnProperty.call(z,B))K[B]=q(z[B]);return K}function O(z,K=100){let B=I(z()),G=null,H=()=>{if(G)clearTimeout(G);G=setTimeout(()=>{B.value=z()},K)};return U(z).subscribe(()=>H()),{get value(){return B.value},set value(J){console.warn("Debounced computed is readonly")},subscribe:B.subscribe,peek:B.peek,invalidate(){H()},get dirty(){return!1},get deps(){return new Set}}}function h(z,K=100){let B=I(z()),G=0,H=()=>{let J=Date.now();if(J-G>=K)G=J,B.value=z()};return U(z).subscribe(()=>H()),{get value(){return B.value},set value(J){console.warn("Throttled computed is readonly")},subscribe:B.subscribe,peek:B.peek,invalidate(){H()},get dirty(){return!1},get deps(){return new Set}}}var g={ref:I,computed:U,watch:x,watchMultiple:E,watchEffect:y,isRef:W,unref:P,toRefs:j,shallowRef:D,debouncedComputed:O,throttledComputed:h,processComputedDirectives:C,processWatchDirectives:R};export{E as watchMultiple,y as watchEffect,x as watch,P as unref,j as toRefs,h as throttledComputed,E as stxWatchMultiple,y as stxWatchEffect,x as stxWatch,P as stxUnref,j as stxToRefs,h as stxThrottledComputed,D as stxShallowRef,I as stxRef,W as stxIsRef,O as stxDebouncedComputed,U as stxComputed,D as shallowRef,I as ref,R as processWatchDirectives,C as processComputedDirectives,W as isRef,g as default,O as debouncedComputed,U as computed};
@@ -1,43 +0,0 @@
1
- // @bun
2
- import{Hf as L,If as w,Jf as x,Kf as p,Lf as F,Mf as T,Pf as I,Qf as f,Rf as l,Sf as n,Tf as i,Uf as P,Vf as o,Wf as a}from"./chunk-z5rwnnk1.js";import{Ts as ZG}from"./chunk-0btmm4m2.js";function HG(X,Z={}){let{src:G,alt:J,width:q,height:$,sizes:K="100vw",loading:Q="lazy",priority:Y=!1,quality:M=x,placeholder:N="none",formats:j=w,widths:C=L,decoding:B="async",fetchpriority:V,objectFit:O,objectPosition:W}=X,H=X.class,z=X.style,{processedImage:R,variants:_,optimize:E=!0,isDev:S=!1}=Z;if(_&&_.length>0)return OG(X,_,R);if(S||!E)return MG(X);return VG(X)}function OG(X,Z,G){let{src:J,alt:q,width:$,height:K,sizes:Q="100vw",loading:Y="lazy",priority:M=!1,decoding:N="async",fetchpriority:j,objectFit:C,objectPosition:B,placeholder:V="none"}=X,O=X.class,W=X.style,H=n(Z),z=l(Z),R=typeof Q==="object"?f(Q):Q,_=G?G.aspectRatio:$&&K?Number($)/Number(K):void 0,E=[];if(_)E.push(`aspect-ratio: ${_}`);if(C)E.push(`object-fit: ${C}`);if(B)E.push(`object-position: ${B}`);if(W)E.push(W);let S=E.length>0?` style="${E.join("; ")}"`:"",b=O?` class="${O}"`:"",u=M?"":` loading="${Y}"`,d=` decoding="${N}"`,h=j?` fetchpriority="${j}"`:M?' fetchpriority="high"':"",r=["avif","webp","jpeg","png"],s=[];for(let U of r){let D=H.get(U);if(D&&D.length>0){let m=I(D),QG=P(U);s.push(` <source type="${QG}" srcset="${m}" sizes="${R}" />`)}}let e="",t="",g;if(V!=="none"&&G?.placeholder){let U=`img-${Math.random().toString(36).slice(2,8)}`;if(e=`<div class="stx-image-wrapper" id="${U}">`,t="</div>",V==="blur")g=`
3
- #${U} {
4
- position: relative;
5
- background-image: url('${G.placeholder}');
6
- background-size: cover;
7
- background-position: center;
8
- }
9
- #${U} img {
10
- transition: opacity 0.3s ease;
11
- }
12
- #${U}.loaded img {
13
- opacity: 1;
14
- }
15
- `.trim();else if(V==="color")g=`
16
- #${U} {
17
- background-color: ${G.placeholder};
18
- }
19
- `.trim()}let BG=$?` width="${$}"`:G?` width="${G.width}"`:"",NG=K?` height="${K}"`:G?` height="${G.height}"`:"",WG=`${e}<picture>
20
- ${s.join(`
21
- `)}
22
- <img
23
- src="${z?.url||J}"
24
- alt="${c(q)}"${BG}${NG}${b}${S}${u}${d}${h}
25
- />
26
- </picture>${t}`,GG;if(M&&z){let U=H.get("webp"),D=U?.[Math.floor(U.length/2)]||z,m=P(D.format);GG=`<link rel="preload" as="image" href="${D.url}" type="${m}" />`}return{html:WG,preloadLink:GG,placeholderCss:g}}function MG(X){let{src:Z,alt:G,width:J,height:q,loading:$="lazy",decoding:K="async",priority:Q=!1,fetchpriority:Y,objectFit:M,objectPosition:N}=X,j=X.class,C=X.style,B=[];if(M)B.push(`object-fit: ${M}`);if(N)B.push(`object-position: ${N}`);if(C)B.push(C);let V=B.length>0?` style="${B.join("; ")}"`:"",O=j?` class="${j}"`:"",W=J?` width="${J}"`:"",H=q?` height="${q}"`:"",z=Q?"":` loading="${$}"`,R=` decoding="${K}"`,_=Y?` fetchpriority="${Y}"`:Q?' fetchpriority="high"':"";return{html:`<img src="${Z}" alt="${c(G)}"${W}${H}${O}${V}${z}${R}${_} />`}}function VG(X){let{src:Z,alt:G,width:J,height:q,sizes:$="100vw",loading:K="lazy",priority:Q=!1,quality:Y=x,formats:M=w,widths:N=L,decoding:j="async",fetchpriority:C,objectFit:B,objectPosition:V}=X,O=X.class,W=X.style,H=[];if(B)H.push(`object-fit: ${B}`);if(V)H.push(`object-position: ${V}`);if(W)H.push(W);let z=H.length>0?` style="${H.join("; ")}"`:"",R=O?` class="${O}"`:"",_=J?` width="${J}"`:"",E=q?` height="${q}"`:"",S=Q?"":` loading="${K}"`,b=` decoding="${j}"`,u=C?` fetchpriority="${C}"`:Q?' fetchpriority="high"':"",d=typeof $==="object"?f($):$,h=`
27
- data-stx-image
28
- data-src="${Z}"
29
- data-sizes="${d}"
30
- data-quality="${Y}"
31
- data-formats="${M.join(",")}"
32
- data-widths="${N.join(",")}"
33
- `.replace(/\s+/g," ").trim();return{html:`<img src="${Z}" alt="${c(G)}"${_}${E}${R}${z}${S}${b}${u} ${h} />`}}function JG(X){let Z=X.match(/<Image\s+([^>]*?)\/?>/);if(!Z)return null;let G=Z[1],J={},q=/(\w+)(?:=(?:"([^"]*)"|'([^']*)'|(\{[^}]+\})))?/g,$;while(($=q.exec(G))!==null){let[,K,Q,Y,M]=$,N=Q??Y??M??!0;switch(K){case"src":J.src=String(N);break;case"alt":J.alt=String(N);break;case"width":J.width=Number(N)||N;break;case"height":J.height=Number(N)||N;break;case"sizes":J.sizes=String(N);break;case"loading":J.loading=N;break;case"priority":J.priority=N===!0||N==="true";break;case"quality":J.quality=Number(N);break;case"placeholder":J.placeholder=N;break;case"class":J.class=String(N);break;case"style":J.style=String(N);break;case"decoding":J.decoding=N;break;case"fetchpriority":J.fetchpriority=N;break;case"objectFit":J.objectFit=N;break;case"objectPosition":J.objectPosition=String(N);break}}if(!J.src||!J.alt)return null;return J}async function jG(X,Z){let G=/<Image\s+[^>]*?\/?>/g,J=[],q=[],$=X,K,Q=[];while((K=G.exec(X))!==null)Q.push({match:K[0],index:K.index});for(let Y=Q.length-1;Y>=0;Y--){let{match:M}=Q[Y],N=JG(M);if(N){let j=await Z(N);if($=$.replace(M,j.html),j.preloadLink)J.push(j.preloadLink);if(j.placeholderCss)q.push(j.placeholderCss)}}return{html:$,preloadLinks:J,styles:q}}function c(X){return X.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}var y=new Map;function CG(){y.clear()}async function _G(X,Z){let G=`${X}:${JSON.stringify(Z)}`;if(y.has(G))return y.get(G);try{let J=await T(X,Z);return y.set(G,J),J}catch{return null}}function $G(){return ZG({name:"image",hasEndTag:!1,description:"Render an optimized image with responsive variants",transform:async(X,Z,G)=>{let{src:J,alt:q,options:$}=EG(X,Z,G);if(!J)return console.warn("@image directive: missing src argument"),"<!-- @image: missing src -->";let K={widths:$.widths||($.width?[$.width]:L),formats:$.formats||w,quality:$.quality||x,placeholder:($.placeholder==="color"?"dominant-color":$.placeholder)||"none"};if(!await F())return XG(J,q||"",$);let Y=await _G(J,K);if(!Y)return XG(J,q||"",$);return zG(Y,q||"",$)}})}function EG(X,Z,G){if(Z.src)return{src:String(Z.src),alt:String(Z.alt||""),options:Z.options||{}};let q=X.trim();if(q.startsWith("@image(")||q.startsWith("("))q=q.replace(/^@image\(/,"").replace(/^\(/,"").replace(/\)$/,"");let $=RG(q),K=$[0]||"",Q=$[1]||"",Y={};if(K&&!K.startsWith("/")&&!K.startsWith(".")&&!K.startsWith("http")){let M=G[K];if(typeof M==="string")K=M}if($[2])try{if(typeof $[2]==="string")Y=JSON.parse($[2]);else Y=$[2]}catch{}return{src:K,alt:Q,options:Y}}function RG(X){let Z=[],G="",J=!1,q="",$=0,K=0;for(let Q=0;Q<X.length;Q++){let Y=X[Q],M=Q>0?X[Q-1]:"";if((Y==='"'||Y==="'")&&M!=="\\"){if(!J)J=!0,q=Y;else if(Y===q)J=!1,q="";else G+=Y;continue}if(!J){if(Y==="{")$++;if(Y==="}")$--;if(Y==="[")K++;if(Y==="]")K--;if(Y===","&&$===0&&K===0){Z.push(G.trim()),G="";continue}}G+=Y}if(G.trim())Z.push(G.trim());return Z}function XG(X,Z,G){let J=[`src="${k(X)}"`];if(Z)J.push(`alt="${k(Z)}"`);if(G.width)J.push(`width="${G.width}"`);if(G.height)J.push(`height="${G.height}"`);if(G.class)J.push(`class="${k(G.class)}"`);if(G.style)J.push(`style="${k(G.style)}"`);if(G.lazy!==!1)J.push('loading="lazy"');return J.push('decoding="async"'),`<img ${J.join(" ")} />`}function zG(X,Z,G){let{variants:J,placeholder:q,width:$,height:K,aspectRatio:Q}=X,Y=new Map;for(let W of J){let H=Y.get(W.format)||[];H.push(W),Y.set(W.format,H)}let M=["avif","webp","jpeg","png"],N=[];for(let W of M){let H=Y.get(W);if(H&&H.length>0){let z=I(H),R=P(W),_=G.sizes||"100vw";N.push(` <source type="${R}" srcset="${k(z)}" sizes="${k(_)}" />`)}}let j=Y.get("jpeg")||[],C=j.length>0?j[Math.floor(j.length/2)]:J[Math.floor(J.length/2)],B=[`src="${C?.url||X.src}"`,`alt="${k(Z)}"`];if(G.width||$)B.push(`width="${G.width||$}"`);if(G.height||K)B.push(`height="${G.height||K}"`);if(G.class)B.push(`class="${k(G.class)}"`);let V=[];if(Q)V.push(`aspect-ratio: ${Q.toFixed(4)}`);if(G.style)V.push(G.style);if(V.length>0)B.push(`style="${V.join("; ")}"`);if(G.lazy!==!1&&!G.priority)B.push('loading="lazy"');if(B.push('decoding="async"'),G.priority)B.push('fetchpriority="high"');let O=`<picture>
34
- `;if(O+=N.join(`
35
- `)+`
36
- `,O+=` <img ${B.join(" ")} />
37
- `,O+="</picture>",G.placeholder&&q){let W=`stx-img-${Math.random().toString(36).slice(2,8)}`;if(G.placeholder==="blur"||G.placeholder==="thumbhash"){let H=q.replace(/'/g,"%27").replace(/"/g,"%22");O=`<div id="${W}" class="stx-image-placeholder" style="background-image: url('${H}'); background-size: cover;">
38
- ${O}
39
- </div>`}else if(G.placeholder==="color"){let H=q.replace(/[^a-zA-Z0-9#(),.\s%-]/g,"");O=`<div id="${W}" class="stx-image-placeholder" style="background-color: ${H};">
40
- ${O}
41
- </div>`}}if(G.priority&&C){let W=P(C.format);O=`<link rel="preload" as="image" href="${k(C.url)}" type="${W}" />
42
- `+O}return O}function k(X){return X.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var UG=$G();import v from"fs";import A from"path";function LG(X={}){let{inputDirs:Z=["public","src/assets","assets"],outputDir:G="dist/images",baseUrl:J="/images",formats:q=w,widths:$=L,quality:K=x,placeholder:Q="none",concurrency:Y=4,cache:M=!0,cacheDir:N=".stx/image-cache",referencedOnly:j=!1,verbose:C=!1}=X,B={imageReferences:new Set,processedImages:new Map,stats:{totalImages:0,optimizedImages:0,savedBytes:0,variants:0}};return{name:"stx-image-optimization",async setup(V){if(!await F()){console.warn("[stx-images] no image backend available, optimization disabled");return}if(M)await v.promises.mkdir(N,{recursive:!0});if(C){let W=await p();console.log("[stx-images] Plugin initialized"),console.log(` Backend: ${W?"sharp (native fast path) + ts-images":"ts-images (pure TS)"}`),console.log(` Input dirs: ${Z.join(", ")}`),console.log(` Output dir: ${G}`),console.log(` Formats: ${q.join(", ")}`),console.log(` Widths: ${$.join(", ")}`)}},async buildStart(){B.imageReferences.clear(),B.processedImages.clear(),B.stats={totalImages:0,optimizedImages:0,savedBytes:0,variants:0}},async transform(V,O){if(O.endsWith(".html")||O.endsWith(".stx")){let W=wG(V);for(let H of W)B.imageReferences.add(H)}if(V.includes("<Image")||V.includes("@image"))return await kG(V,{formats:q,widths:$,quality:K,placeholder:Q,outputDir:G,baseUrl:J,processedImages:B.processedImages});return V},async buildEnd(V){if(!await F())return;await v.promises.mkdir(G,{recursive:!0});let W=[];for(let R of Z){if(!v.existsSync(R))continue;let _=await KG(R);W.push(..._)}let H=j?W.filter((R)=>xG(R,B.imageReferences)):W;if(B.stats.totalImages=H.length,C)console.log(`[stx-images] Processing ${H.length} images...`);let z=qG(H,Y);for(let R of z)await Promise.all(R.map(async(_)=>{try{let E=await T(_,{formats:q,widths:$,quality:K,placeholder:Q,outputDir:G,baseUrl:J});B.processedImages.set(_,E),B.stats.optimizedImages++,B.stats.variants+=E.variants.length;let S=v.statSync(_).size,b=o(E.variants);if(B.stats.savedBytes+=Math.max(0,S-b/E.variants.length),C)console.log(` \u2713 ${A.basename(_)} \u2192 ${E.variants.length} variants`)}catch(E){console.error(`[stx-images] Error processing ${_}:`,E)}}));if(console.log("[stx-images] Optimization complete:"),console.log(` Images: ${B.stats.optimizedImages}/${B.stats.totalImages}`),console.log(` Variants: ${B.stats.variants}`),B.stats.savedBytes>0)console.log(` Saved: ~${a(B.stats.savedBytes)}`)}}}function wG(X){let Z=[],G=/src=["']([^"']+\.(jpg|jpeg|png|webp|avif|gif))["']/gi,J;while((J=G.exec(X))!==null)Z.push(J[1]);let q=/<Image[^>]+src=["']([^"']+)["']/gi;while((J=q.exec(X))!==null)Z.push(J[1]);let $=/@image\s*\(\s*['"]([^'"]+)['"]/gi;while((J=$.exec(X))!==null)Z.push(J[1]);let K=/background(?:-image)?:\s*url\(["']?([^"')]+\.(jpg|jpeg|png|webp|avif|gif))["']?\)/gi;while((J=K.exec(X))!==null)Z.push(J[1]);return Z}function xG(X,Z){let G=A.basename(X);for(let J of Z)if(J.endsWith(G)||J.includes(G))return!0;return!1}async function kG(X,Z){return X}async function KG(X){let Z=[];async function G(J){let q=await v.promises.readdir(J,{withFileTypes:!0});for(let $ of q){let K=A.join(J,$.name);if($.isDirectory())await G(K);else if($.isFile()&&i(K))Z.push(K)}}return await G(X),Z}function qG(X,Z){let G=[];for(let J=0;J<X.length;J+=Z)G.push(X.slice(J,J+Z));return G}async function FG(X,Z,G={}){if(!await F())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");return T(X,{...G,outputDir:Z})}async function SG(X,Z,G={}){let{formats:J=w,widths:q=L,quality:$=x,placeholder:K="none",concurrency:Q=4,verbose:Y=!1}=G;if(!await F())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");await v.promises.mkdir(Z,{recursive:!0});let N=await KG(X),j=[],C={totalImages:N.length,optimizedImages:0,savedBytes:0,variants:0},B=qG(N,Q);for(let V of B){let O=await Promise.all(V.map(async(W)=>{try{let H=await T(W,{formats:J,widths:q,quality:$,placeholder:K,outputDir:Z,baseUrl:"/"});if(C.optimizedImages++,C.variants+=H.variants.length,Y)console.log(` \u2713 ${A.basename(W)}`);return H}catch(H){return console.error(`Error processing ${W}:`,H),null}}));j.push(...O.filter((W)=>W!==null))}return{processed:j,stats:C}}function YG(X){let Z={};for(let G of X)Z[G.src]={variants:G.variants,placeholder:G.placeholder};return Z}async function PG(X,Z){let G=YG(X);await Bun.write(Z,JSON.stringify(G,null,2))}var cG={enabled:!0,widths:[320,640,768,1024,1280,1536,1920],formats:["webp","jpeg"],quality:80,devOptimize:!1,cacheDir:".stx/image-cache",placeholder:"none",inputDirs:["public","src/assets","assets"],outputDir:"dist/images",baseUrl:"/images"};
43
- export{HG as tf,JG as uf,jG as vf,CG as wf,$G as xf,UG as yf,LG as zf,FG as Af,SG as Bf,YG as Cf,PG as Df,cG as Ef};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{createHash as Y}from"crypto";import{readFile as M,stat as w}from"fs/promises";async function G(q){try{let z=await M(q);return Y("sha256").update(z).digest("hex").slice(0,16)}catch{return""}}function u(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function $(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function X(q,z){let B=JSON.stringify(z,Object.keys(z).sort());return`${$(q)}-${$(B)}`}async function Z(q){try{return(await w(q)).mtimeMs}catch{return 0}}async function b(q){try{return await w(q),!0}catch{return!1}}import{mkdir as S,readFile as V,writeFile as E,readdir as A,rm as _,stat as j}from"fs/promises";import{join as U,dirname as x}from"path";var R=new Map,W={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500};async function F(q){try{await S(q,{recursive:!0})}catch{}}function K(q,z,B){return U(q,B,`${z}.json`)}async function v(q,z,B){if((Date.now()-q.createdAt)/86400000>B)return!1;if(await Z(z)!==q.srcMtime)return!1;return!0}async function g(q,z,B,J=W){if(!J.enabled)return null;let I=X(q,z),L=R.get(I);if(L){if(await v(L,q,J.maxAge))return L.lastAccessedAt=Date.now(),L.data;R.delete(I)}let Q=K(J.directory,I,B);if(await b(Q))try{let N=await V(Q,"utf-8"),O=JSON.parse(N);if(await v(O,q,J.maxAge))return O.lastAccessedAt=Date.now(),R.set(I,O),O.data}catch{}return null}async function l(q,z,B,J,I=W){if(!I.enabled)return;let L=X(q,z),Q=await G(q),N=await Z(q),O={key:L,src:q,srcHash:Q,srcMtime:N,optionsHash:X("",z),data:B,createdAt:Date.now(),lastAccessedAt:Date.now()};R.set(L,O);let T=K(I.directory,L,J);try{await F(x(T)),await E(T,JSON.stringify(O,null,2))}catch(H){console.warn(`[stx-media] Failed to write cache: ${H}`)}}async function m(q,z=W){if(q==="all")R.clear();else R.clear();let B=q==="all"?["image","video"]:[q];for(let J of B){let I=U(z.directory,J);try{await _(I,{recursive:!0,force:!0})}catch{}}}async function y(q=W){let z={memoryEntries:R.size,diskEntries:{image:0,video:0},totalSizeMB:0};for(let B of["image","video"]){let J=U(q.directory,B);try{let I=await A(J);z.diskEntries[B]=I.length;for(let L of I){let Q=U(J,L),N=await j(Q);z.totalSizeMB+=N.size/1048576}}catch{}}return z}async function f(q=W){let z=0,B=q.maxAge*24*60*60*1000;for(let J of["image","video"]){let I=U(q.directory,J);try{let L=await A(I);for(let Q of L){let N=U(I,Q);try{let O=await V(N,"utf-8"),T=JSON.parse(O);if(Date.now()-T.createdAt>B)await _(N),R.delete(T.key),z++}catch{await _(N).catch(()=>{}),z++}}}catch{}}return z}
3
- export{G as qh,u as rh,$ as sh,X as th,Z as uh,b as vh,g as wh,l as xh,m as yh,y as zh,f as Ah};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{li as a}from"./chunk-0we9nw1d.js";import"./chunk-2fw05hs2.js";export{a as rewriteImagesWithSiblings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{lm as c,om as d,pm as e,qm as f,rm as g,sm as h,tm as i,um as j,vm as k,wm as l,xm as m,ym as n}from"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import{Gs as a,Hs as b}from"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$e as a}from"./chunk-1a0v39k5.js";import"./chunk-ny67c03k.js";import"./chunk-wc66mcn4.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-24w86pek.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-4q1c6fw2.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-8wp64mym.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{a as buildApp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jv as a,Kv as b}from"./chunk-cj3adc77.js";import"./chunk-2fw05hs2.js";export{a as transformStoreImports,b as stripModuleImports};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import N from"path";var D=[{label:"Mobile (Small)",width:320,height:568},{label:"Mobile (Medium)",width:375,height:667},{label:"Mobile (Large)",width:414,height:896},{label:"Tablet",width:768,height:1024},{label:"Laptop",width:1024},{label:"Desktop",width:1280},{label:"Desktop (Large)",width:1920}],E=[{label:"Transparent",color:"transparent",contrastColor:"#333"},{label:"White",color:"#ffffff",contrastColor:"#333"},{label:"Light Gray",color:"#f5f5f5",contrastColor:"#333"},{label:"Dark Gray",color:"#333333",contrastColor:"#fff"},{label:"Black",color:"#000000",contrastColor:"#fff"}],H={file:"title",order:"asc",groups:[]},L={enabled:!0,outDir:".stx/dist/story",storyMatch:["**/*.story.stx"],storyIgnored:["**/node_modules/**","**/dist/**","**/.stx/**"],tree:H,theme:{title:"STX Components",defaultColorScheme:"auto",darkClass:"dark"},responsivePresets:D,backgroundPresets:E,autoApplyContrastColor:!1,port:6006};function I(q){let j={...L,...q};return{enabled:j.enabled??!0,outDir:j.outDir??".stx/dist/story",storyMatch:j.storyMatch??["**/*.story.stx"],storyIgnored:j.storyIgnored??["**/node_modules/**","**/dist/**","**/.stx/**"],tree:{...H,...j.tree},theme:{title:"STX Components",defaultColorScheme:"auto",darkClass:"dark",...j.theme},responsivePresets:j.responsivePresets??D,backgroundPresets:j.backgroundPresets??E,autoApplyContrastColor:j.autoApplyContrastColor??!1,setupFile:j.setupFile,port:j.port??6006}}async function Y(q){let j=q.root??process.cwd(),z;try{let A=await import(N.join(j,"stx.config.ts"));z=(A.default||A).story}catch{}let J={...z,...q.config},K=I(J);return{root:j,config:K,storyFiles:[],tree:void 0,mode:q.mode}}function Z(q,j){q.storyFiles=j}function _(q,j){q.tree=j}
3
- export{Y as l,Z as m,_ as n};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Gg as a,Hg as b,Ig as c,Jg as d,Kg as e,Lg as f,Mg as g,Ng as h,Og as i,Pg as j,Qg as k,Rg as l}from"./chunk-xsng1mtq.js";import"./chunk-2fw05hs2.js";export{g as toUsers,f as toUser,c as stopBroadcasting,b as startBroadcasting,d as loadChannels,a as getBroadcastServer,j as channel,h as broadcastPrivate,i as broadcastPresence,e as broadcast,l as BroadcastServer,k as Broadcast};
@@ -1,30 +0,0 @@
1
- // @bun
2
- import{Dm as R,Em as O,Nm as P,Po as i,Vp as m,Wm as k,Wo as T,kn as c,ln as l}from"./chunk-wc66mcn4.js";import{et as S,gt as y}from"./chunk-24w86pek.js";import{Sw as ZJ,Vw as $J,Ww as UJ}from"./chunk-8wp64mym.js";import{cx as u,ex as YJ}from"./chunk-563shnkz.js";import{fx as XJ,ix as q}from"./chunk-2fw05hs2.js";var r=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function s(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(r.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var o=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function v(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=y(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=o.exec(j);if(F){let K=s(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function t(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function C(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function e(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function JJ(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=e(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=t(J),Z;while((Z=X.exec(J))!==null){if(C(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||a.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!JJ(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(C(B.index,$))continue;let N=B[1]==="/";if(!N&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=N?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var AJ="X-STX-Router",HJ="private, no-store";function IJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function QJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function LJ(J){return{Vary:QJ(J,"X-STX-Router")}}import M from"path";YJ();ZJ();var WJ="stx-page-head:",jJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,D={dev:null,prod:null};function KJ(){let J=u()?"dev":"prod",Y=D[J];if(Y!==null)return Y;try{let Q=(UJ(),XJ($J)),X=J==="dev"&&typeof Q.getRouterScriptDev==="function"?Q.getRouterScriptDev:Q.getRouterScript;D[J]=`<script>${X()}</script>`}catch{D[J]=""}return D[J]}async function kJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=M.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=M.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function TJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=v(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:N,defaultConfig:w,loadStxConfig:A}=await import("./chunk-hyr4ag1k.js"),H=await A(),z={__filename:J,__dirname:M.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await N(L[1],z,J)}let _=await B(K,z,J,{...w,...H,...Y},new Set),I=_.indexOf(G);if(I===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:_.substring(0,I),afterSlot:_.substring(I+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function SJ(J,Y,Q){let X,$="",Z=Y.match(jJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=KJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>${U}</title>
8
- ${$?` ${$}
9
- `:""} ${J.shellStyles.join(`
10
- `)}
11
- </head>
12
- <body>
13
- ${J.beforeSlot}
14
- <div data-stx-content>${Y}</div>
15
- ${J.afterSlot}
16
- ${J.shellScripts.filter((K)=>!K.includes("server")).join(`
17
- `)}
18
- ${j}
19
- ${W}
20
- </body>
21
- </html>`}function FJ(J,Y={}){let Q=J.trim();if(!m(Q))return J;let X=[],$=Q.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if($){let j=$[1],F=/<style\b[^>]*>[\s\S]*?<\/style>/gi,K;while((K=F.exec(j))!==null)X.push(K[0]);let G=j.match(/<script\b[^>]*data-stx-server-data[^>]*>[\s\S]*?<\/script>/i);if(G)X.push(G[0]);let B=j.match(/<script\b[^>]*data-stx-runtime-config[^>]*>[\s\S]*?<\/script>/i);if(B)X.push(B[0])}if(Y.preserveHead&&$){let j=[],F=/<title\b[^>]*>[\s\S]*?<\/title>|<meta\b[^>]*>|<link\b[^>]*>/gi,K;while((K=F.exec($[1]))!==null){if(/<meta\b[^>]*(?:\bcharset|name="viewport")/i.test(K[0]))continue;j.push(K[0])}if(j.length>0)X.unshift(`<!--${WJ}${Buffer.from(j.join(`
22
- `),"utf8").toString("base64")}-->`)}let Z=Q.match(/<body\b[^>]*>/i),U=Q.lastIndexOf("</body>");if(Z&&U!==-1){let j=Z.index+Z[0].length,F=Q.slice(j,U).trim();if(X.length>0)return X.join(`
23
- `)+`
24
- `+F;return F}let W=Q;if(W=W.replace(/<!DOCTYPE\b[^>]*>/i,""),W=W.replace(/<html\b[^>]*>/i,""),W=W.replace(/<\/html\s*>/i,""),$)W=W.replace(/<head\b[^>]*>[\s\S]*?<\/head>/i,X.join(`
25
- `));return W=W.replace(/<body\b[^>]*>/i,""),W=W.replace(/<\/body\s*>/i,""),W.trim()}var h=/^<script\b[^>]*\sdata-stx-(?:owner|instance)(?=[\s=/>])/i;function GJ(J,Y,Q,X){if(!h.test(Y))return!1;let $=Y.slice(0,Y.indexOf(">")+1),Z=/\sdata-stx-owner="([^"]+)"/i.exec($)?.[1];if(!Z)return!0;let U=`data-stx-scope="${Z}"`;for(let W=J.indexOf(U);W!==-1;W=J.indexOf(U,W+U.length))if(W>=Q&&W<X)return!1;return!0}function yJ(J){return g(J)}function vJ(J,Y="main"){let Q=J.trim(),X=[],$=[],Z=Q.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if(Z){let A=Z[1],H=/<style\b[^>]*>[\s\S]*?<\/style>/gi,z;while((z=H.exec(A))!==null)X.push(z[0]);let _=/<script\b[^>]*data-stx-(?:route-params|server-data|scoped|component-factories)[^>]*>[\s\S]*?<\/script>/gi;while((z=_.exec(A))!==null){if(h.test(z[0])||z[0].includes("__stx_early_mounts")||/^<script\b[^>]*\bdata-stx-runtime(?=[\s=>])/i.test(z[0]))continue;$.push(z[0])}}let U=x(Q,Y);if(!U)return FJ(J);let{tagName:W,start:j,end:F}=U,K=Q.slice(j,F).trim(),G=[],B=Q.match(/<body\b[^>]*>/i),N=Q.lastIndexOf("</body>");if(B&&B.index!==void 0&&N!==-1){let H=[[B.index+B[0].length,U.openIndex],[F+`</${W}>`.length,N]],z=/<script\b[^>]*>[\s\S]*?<\/script>/gi;for(let[_,I]of H){if(_>=I)continue;let V=Q.slice(_,I),L;z.lastIndex=0;while((L=z.exec(V))!==null){if(GJ(Q,L[0],j,F))continue;G.push(L[0])}}}let w=[];if(X.length>0)w.push(X.join(`
26
- `));if($.length>0)w.push($.join(`
27
- `));if(G.length>0)w.push(G.join(`
28
- `));return w.push(K),w.join(`
29
- `)}import E from"fs";import p from"path";function uJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function mJ(J,Y){let Q=p.join(Y,"manifest.json");E.writeFileSync(Q,JSON.stringify(J,null,2))}function hJ(J){let Y=p.join(J,"manifest.json");if(!E.existsSync(Y))return null;try{let Q=E.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function zJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function BJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!BJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await zJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=VJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function VJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function lJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function eJ(J,Y={}){return(await n(J,Y)).html}async function JQ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-cxrgxzxc.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-2tbez006.js"),{defaultConfig:B}=await import("./chunk-tat1cjec.js"),N=X.streamBoundaries||{},w={...B,autoShell:!1},A=Object.keys(K).map((z)=>({id:z,render:async()=>{let _=typeof N[z]==="function"?await N[z]():void 0;return G(K[z],{...X,$boundary:_},J.sourceFile,w,new Set)}})),H=new Set(A.map((z)=>z.id));F=[...(F||[]).filter((z)=>!H.has(z.id)),...A]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function n(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!O(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await d(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=i(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!O(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?P(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(R(J.html,Z)),context:Q,cookies:X.cookies}}async function QQ(J,Y={}){if(!J.hasServerScripts&&!O(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!O(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?P(String(U)):"")}catch{X.set($,"")}return R(J.fragment,X)}
30
- export{s as cg,v as dg,e as eg,x as fg,AJ as gg,HJ as hg,IJ as ig,g as jg,QJ as kg,LJ as lg,kJ as mg,TJ as ng,SJ as og,FJ as pg,GJ as qg,yJ as rg,vJ as sg,uJ as tg,mJ as ug,hJ as vg,b as wg,zJ as xg,BJ as yg,d as zg,lJ as Ag,eJ as Bg,JQ as Cg,QQ as Dg};