@stacksjs/stx 0.2.406 → 0.2.408

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 (211) hide show
  1. package/dist/app-service-worker.d.ts +120 -0
  2. package/dist/chunk-00g9x6w2.js +2 -0
  3. package/dist/chunk-02g67164.js +2 -0
  4. package/dist/chunk-04tgatyy.js +2 -0
  5. package/dist/{chunk-4g4yz97f.js → chunk-0a315nbf.js} +3 -3
  6. package/dist/{chunk-zwb8wv5p.js → chunk-0akydm2d.js} +1 -1
  7. package/dist/{chunk-tfy07tmv.js → chunk-0btmm4m2.js} +1 -1
  8. package/dist/{chunk-g0w8dyat.js → chunk-0c2h69k2.js} +1 -1
  9. package/dist/{chunk-aa4ss5pb.js → chunk-0pkk226n.js} +1 -1
  10. package/dist/{chunk-6de3hczw.js → chunk-0we9nw1d.js} +1 -1
  11. package/dist/chunk-178n9c40.js +2 -0
  12. package/dist/{chunk-2r399td7.js → chunk-1fs9jvpb.js} +1 -1
  13. package/dist/chunk-1hc58sh2.js +2 -0
  14. package/dist/chunk-1q4jrkhw.js +2 -0
  15. package/dist/chunk-1qembpzh.js +2 -0
  16. package/dist/chunk-1qq26zt0.js +2 -0
  17. package/dist/{chunk-7q06md6v.js → chunk-1te8k8gp.js} +1 -1
  18. package/dist/{chunk-jw6s8rkk.js → chunk-1ws3xcea.js} +2 -2
  19. package/dist/{chunk-z9a0ft6h.js → chunk-213jwgpx.js} +1 -1
  20. package/dist/{chunk-1yvx8s3v.js → chunk-26r88x1t.js} +2 -2
  21. package/dist/{chunk-k4x5we49.js → chunk-27fgag95.js} +2 -2
  22. package/dist/chunk-2c6t60vw.js +2 -0
  23. package/dist/{chunk-x7qyx7vn.js → chunk-2fw05hs2.js} +1 -1
  24. package/dist/{chunk-0seyntda.js → chunk-38wvkv3s.js} +1 -1
  25. package/dist/chunk-3w6z6tw9.js +2 -0
  26. package/dist/chunk-3za7m29m.js +2 -0
  27. package/dist/{chunk-ypw4egcv.js → chunk-4m7ajama.js} +1 -1
  28. package/dist/{chunk-g81ymdat.js → chunk-4zcbj36p.js} +2 -2
  29. package/dist/{chunk-yh9apppb.js → chunk-50pszj17.js} +1 -1
  30. package/dist/{chunk-59pakqdv.js → chunk-563shnkz.js} +2 -2
  31. package/dist/{chunk-h1yb87ep.js → chunk-5r4s9s38.js} +2 -2
  32. package/dist/chunk-603x5gb2.js +2 -0
  33. package/dist/{chunk-afwbqeb2.js → chunk-6jrczd12.js} +2 -2
  34. package/dist/{chunk-abs56gdt.js → chunk-6kd5jjwc.js} +1 -1
  35. package/dist/{chunk-ewxbx67c.js → chunk-6kdrncsx.js} +1 -1
  36. package/dist/{chunk-pkspqh0m.js → chunk-72rwcbp6.js} +1 -1
  37. package/dist/{chunk-4m4n1sfc.js → chunk-76w34xne.js} +1 -1
  38. package/dist/chunk-7ypm243n.js +2 -0
  39. package/dist/{chunk-z80v5h5h.js → chunk-8036mdat.js} +2 -2
  40. package/dist/{chunk-46zx4pt8.js → chunk-82pd4b5w.js} +1 -1
  41. package/dist/chunk-8ds7rrdc.js +2 -0
  42. package/dist/chunk-8w2mqdnv.js +2 -0
  43. package/dist/chunk-8x05b790.js +2 -0
  44. package/dist/{chunk-pqhpcxsd.js → chunk-90b2vt2n.js} +1 -1
  45. package/dist/{chunk-arjhs9bb.js → chunk-920779jx.js} +2 -2
  46. package/dist/chunk-934eeghd.js +2 -0
  47. package/dist/{chunk-245ft0zp.js → chunk-9e8t0twa.js} +1 -1
  48. package/dist/{chunk-wpsx5avz.js → chunk-9fqp72ze.js} +1 -1
  49. package/dist/chunk-9wze2290.js +2 -0
  50. package/dist/{chunk-dj658wyq.js → chunk-9xew0kgf.js} +1 -1
  51. package/dist/{chunk-ca57sg6v.js → chunk-akwd34xt.js} +2 -2
  52. package/dist/{chunk-rqr735w8.js → chunk-anydpa34.js} +1 -1
  53. package/dist/{chunk-ffdxdgep.js → chunk-aq1xq0r4.js} +2 -2
  54. package/dist/{chunk-9dap2hdv.js → chunk-avaywwsc.js} +2 -2
  55. package/dist/{chunk-36rnwhn2.js → chunk-bbt3tp6f.js} +1 -1
  56. package/dist/{chunk-n4197kjq.js → chunk-bjar18jd.js} +1 -1
  57. package/dist/{chunk-twg0y6ga.js → chunk-bjcsc6wx.js} +1 -1
  58. package/dist/{chunk-akzmq0jr.js → chunk-bn1edb1y.js} +2 -2
  59. package/dist/{chunk-503wfstj.js → chunk-btd7ds3x.js} +1 -1
  60. package/dist/{chunk-8mm86z5w.js → chunk-bwsxym3d.js} +1 -1
  61. package/dist/{chunk-c1f1vtjt.js → chunk-cj3adc77.js} +1 -1
  62. package/dist/{chunk-sjc7x8y1.js → chunk-cqchpe34.js} +396 -165
  63. package/dist/chunk-ct1jwd4r.js +2 -0
  64. package/dist/{chunk-znt6t1dz.js → chunk-ej16bgrr.js} +2 -2
  65. package/dist/{chunk-2c23jad1.js → chunk-esq1k7fj.js} +2 -2
  66. package/dist/{chunk-ayhhvep9.js → chunk-f6s7d1jq.js} +2 -2
  67. package/dist/{chunk-bds4s9d8.js → chunk-fcnrgxck.js} +1 -1
  68. package/dist/chunk-fphs5g19.js +2 -0
  69. package/dist/{chunk-stdkw5st.js → chunk-fpwzacpm.js} +1 -1
  70. package/dist/chunk-gbmeh7jg.js +3 -0
  71. package/dist/{chunk-81zw5vw5.js → chunk-gc06g35w.js} +1 -1
  72. package/dist/{chunk-rctgq5xp.js → chunk-gcvj5zdy.js} +3 -3
  73. package/dist/{chunk-1nnskved.js → chunk-gengvwb7.js} +3 -3
  74. package/dist/{chunk-63dyh42m.js → chunk-gjrgr367.js} +2 -2
  75. package/dist/{chunk-69c5rv6n.js → chunk-gna6dc48.js} +169 -169
  76. package/dist/{chunk-pyyccs6a.js → chunk-gvbf1mhs.js} +1 -1
  77. package/dist/chunk-h1r17awz.js +2 -0
  78. package/dist/chunk-ha46rg9g.js +2 -0
  79. package/dist/chunk-hcvjstmr.js +2 -0
  80. package/dist/{chunk-a01sf1sc.js → chunk-hdysywd8.js} +1 -1
  81. package/dist/{chunk-55g4qm7m.js → chunk-hx998w7n.js} +1 -1
  82. package/dist/chunk-j3r97xs5.js +2 -0
  83. package/dist/chunk-j5qeaprt.js +2 -0
  84. package/dist/chunk-jxvmf02k.js +2 -0
  85. package/dist/{chunk-8t3h7fsk.js → chunk-k80sn8d1.js} +1 -1
  86. package/dist/chunk-kajym1cx.js +2 -0
  87. package/dist/{chunk-f02g2h4p.js → chunk-kbwhs5df.js} +2 -2
  88. package/dist/{chunk-4n6ekt06.js → chunk-kmsyvaex.js} +1 -1
  89. package/dist/{chunk-4tsjysng.js → chunk-kvmx7dnb.js} +1 -1
  90. package/dist/{chunk-s1gwy2rp.js → chunk-m072c38p.js} +2 -2
  91. package/dist/{chunk-jpnja3jy.js → chunk-mgrckqww.js} +1 -1
  92. package/dist/{chunk-971yqxa2.js → chunk-mq5ewmz6.js} +1 -1
  93. package/dist/{chunk-sptvg80e.js → chunk-mrahwn5v.js} +1 -1
  94. package/dist/{chunk-vyq86x5c.js → chunk-n2swas11.js} +1 -1
  95. package/dist/{chunk-zgzzn9qk.js → chunk-n9cqrw9j.js} +1 -1
  96. package/dist/{chunk-3sea73fx.js → chunk-naw4jt7j.js} +1 -1
  97. package/dist/{chunk-1n2ng8nx.js → chunk-ny67c03k.js} +1 -1
  98. package/dist/chunk-p0m4ty6g.js +2 -0
  99. package/dist/chunk-p32x2apf.js +2 -0
  100. package/dist/{chunk-8bg1qmhg.js → chunk-p4zrvt5f.js} +1 -1
  101. package/dist/{chunk-0tnsyynz.js → chunk-p5wp0ce6.js} +2 -2
  102. package/dist/{chunk-mywrb5fy.js → chunk-pcxp4r9n.js} +1 -1
  103. package/dist/{chunk-me7ypzw9.js → chunk-pdfjy3at.js} +2 -2
  104. package/dist/chunk-pjrn29gg.js +2 -0
  105. package/dist/chunk-q738pwv6.js +2 -0
  106. package/dist/{chunk-w6n5c479.js → chunk-qmmp5kb5.js} +1 -1
  107. package/dist/{chunk-015p3jq5.js → chunk-qn5srnj3.js} +1 -1
  108. package/dist/{chunk-1vrk5y92.js → chunk-qvnbnsv9.js} +1 -1
  109. package/dist/{chunk-z8zmp74b.js → chunk-rt3cx932.js} +1025 -58
  110. package/dist/{chunk-7ba7x6jt.js → chunk-rz9f3zqz.js} +2 -2
  111. package/dist/{chunk-dxjtszaa.js → chunk-s8jd13nb.js} +1 -1
  112. package/dist/{chunk-qem2tw9r.js → chunk-s9za1vvd.js} +1 -1
  113. package/dist/{chunk-r909bddf.js → chunk-spxsw4mp.js} +1 -1
  114. package/dist/chunk-ssn5k77d.js +2 -0
  115. package/dist/chunk-sy9pfe3h.js +2 -0
  116. package/dist/{chunk-0nhpymyy.js → chunk-t1htzg9e.js} +1 -1
  117. package/dist/{chunk-rkzfwgr8.js → chunk-t1tdjjht.js} +1 -1
  118. package/dist/{chunk-1x6c4ys1.js → chunk-t5ja7qkn.js} +131 -34
  119. package/dist/{chunk-rx0cntdm.js → chunk-td08rnk3.js} +2 -2
  120. package/dist/chunk-tgadbsd4.js +2 -0
  121. package/dist/{chunk-xakdgn9h.js → chunk-tgrpp58r.js} +1 -1
  122. package/dist/{chunk-pgeh4g3a.js → chunk-tkyrk66a.js} +1 -1
  123. package/dist/chunk-tpcmn119.js +2 -0
  124. package/dist/{chunk-0n054h7w.js → chunk-v3nwkveg.js} +1 -1
  125. package/dist/{chunk-83tefmh1.js → chunk-vsbmc9kt.js} +1 -1
  126. package/dist/{chunk-qcpnfw0k.js → chunk-vx86cf4r.js} +1 -1
  127. package/dist/{chunk-yn8qq8tn.js → chunk-w6hqh4z5.js} +2 -2
  128. package/dist/{chunk-k3wcezqg.js → chunk-w9n12yzf.js} +3 -3
  129. package/dist/chunk-wkanrfb3.js +2 -0
  130. package/dist/chunk-wvegegmb.js +2 -0
  131. package/dist/{chunk-seqmzr8k.js → chunk-xq1acw1r.js} +1 -1
  132. package/dist/{chunk-vtjegbgy.js → chunk-xsng1mtq.js} +1 -1
  133. package/dist/chunk-xv9bhvye.js +12 -0
  134. package/dist/{chunk-gyccx2pr.js → chunk-z52f4zcy.js} +2 -2
  135. package/dist/{chunk-vtmhh3dp.js → chunk-z5rwnnk1.js} +2 -2
  136. package/dist/{chunk-m8bdy2wt.js → chunk-zcz9rs6p.js} +1 -1
  137. package/dist/{chunk-1phxzej9.js → chunk-zpcnbdhn.js} +2 -2
  138. package/dist/{chunk-wxkn47vk.js → chunk-zq4ssxj9.js} +1 -1
  139. package/dist/cli.js +14 -14
  140. package/dist/composables/index.d.ts +10 -1
  141. package/dist/composables/index.js +6 -1
  142. package/dist/composables/use-cached-query.d.ts +18 -0
  143. package/dist/composables/use-cached-query.js +27 -0
  144. package/dist/composables/use-offline.d.ts +18 -0
  145. package/dist/composables/use-offline.js +17 -0
  146. package/dist/composables/use-outbox.d.ts +19 -27
  147. package/dist/composables/use-outbox.js +100 -16
  148. package/dist/composables/use-query.d.ts +2 -0
  149. package/dist/composables/use-storage.d.ts +7 -3
  150. package/dist/composables/use-storage.js +22 -13
  151. package/dist/craft-entry.js +1 -1
  152. package/dist/craft.js +1 -1
  153. package/dist/database.js +1 -1
  154. package/dist/index.d.ts +10 -0
  155. package/dist/index.js +5 -0
  156. package/dist/offline/app-service-worker.d.ts +61 -13
  157. package/dist/offline/app-service-worker.js +398 -58
  158. package/dist/offline/kept-store.d.ts +67 -0
  159. package/dist/offline/kept-store.js +252 -0
  160. package/dist/offline/query-cache.d.ts +137 -0
  161. package/dist/offline/query-cache.js +260 -0
  162. package/dist/pwa.js +2 -2
  163. package/dist/runtime-globals.js +3 -0
  164. package/dist/signals.js +123 -24
  165. package/dist/ssg.js +2 -2
  166. package/dist/stx-module.d.ts +3 -0
  167. package/dist/stx.d.ts +48 -1
  168. package/dist/unresolved-identifiers.js +2 -0
  169. package/dist/visual-testing.js +1 -1
  170. package/package.json +5 -5
  171. package/stx-module.d.ts +3 -0
  172. package/stx.d.ts +48 -1
  173. package/dist/chunk-4hqaxar9.js +0 -2
  174. package/dist/chunk-4md4tj27.js +0 -3
  175. package/dist/chunk-53x9hrx3.js +0 -2
  176. package/dist/chunk-5e2d3grq.js +0 -2
  177. package/dist/chunk-5s44f83p.js +0 -2
  178. package/dist/chunk-62btdm51.js +0 -2
  179. package/dist/chunk-68gspceh.js +0 -2
  180. package/dist/chunk-6cbjhg0y.js +0 -2
  181. package/dist/chunk-8vg5tpts.js +0 -2
  182. package/dist/chunk-b26mjv83.js +0 -2
  183. package/dist/chunk-bmfg13wx.js +0 -2
  184. package/dist/chunk-ccct2hsa.js +0 -2
  185. package/dist/chunk-d8yksesg.js +0 -2
  186. package/dist/chunk-db6fm81v.js +0 -2
  187. package/dist/chunk-emx4ey5d.js +0 -2
  188. package/dist/chunk-gxc02n32.js +0 -2
  189. package/dist/chunk-hch1t137.js +0 -2
  190. package/dist/chunk-jc5kqj3t.js +0 -2
  191. package/dist/chunk-jqm6tbtb.js +0 -2
  192. package/dist/chunk-k6vz8455.js +0 -2
  193. package/dist/chunk-m7b67r66.js +0 -12
  194. package/dist/chunk-mtata78t.js +0 -2
  195. package/dist/chunk-n1yz08j4.js +0 -2
  196. package/dist/chunk-nsese4as.js +0 -2
  197. package/dist/chunk-pqskmpz0.js +0 -2
  198. package/dist/chunk-qa333652.js +0 -2
  199. package/dist/chunk-qcbn5mrw.js +0 -2
  200. package/dist/chunk-sgmqfphy.js +0 -2
  201. package/dist/chunk-wj66sab5.js +0 -2
  202. package/dist/chunk-wqgyb4zb.js +0 -2
  203. package/dist/chunk-wszdgqe3.js +0 -2
  204. package/dist/chunk-wz7ca99x.js +0 -2
  205. package/dist/chunk-xqz9dqef.js +0 -2
  206. package/dist/chunk-xvsz1qy3.js +0 -2
  207. package/dist/chunk-xw23twxw.js +0 -2
  208. package/dist/chunk-xz870mf2.js +0 -2
  209. package/dist/chunk-y3cz15x3.js +0 -2
  210. package/dist/chunk-yf0v44v8.js +0 -2
  211. package/dist/chunk-zawdn9z8.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{bx as y}from"./chunk-x7qyx7vn.js";function b4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function RZ(){return typeof window<"u"&&typeof document<"u"}async function u4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var g=new Map;function m4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function h4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function c4(Z="top-right"){if(!RZ())throw Error("Toast container requires browser environment");try{let Y=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if(Y)return Y}catch{}let $=document.createElement("div");$.className=`stx-toast-container ${Z}`,$.dataset.position=Z;try{if(document.body)document.body.appendChild($)}catch{}return $}function p4(Z){let{options:$}=Z,Y=h4($.type),J=$.type||"info",Q=$.duration!==0;return`
2
+ import{ix as y}from"./chunk-2fw05hs2.js";function b4(){if(typeof Notification<"u"&&Notification.permission==="granted")return!0;return!1}function RZ(){return typeof window<"u"&&typeof document<"u"}async function u4(){if(typeof Notification>"u")return!1;if(Notification.permission==="granted")return!0;if(Notification.permission==="denied")return!1;return await Notification.requestPermission()==="granted"}var g=new Map;function m4(){return`alert-${Date.now()}-${Math.random().toString(36).substring(2,9)}`}function h4(Z){switch(Z){case"info":return"&#x2139;";case"success":return"&#x2714;";case"warning":return"&#x26A0;";case"error":return"&#x2716;";default:return"&#x2139;"}}function c4(Z="top-right"){if(!RZ())throw Error("Toast container requires browser environment");try{let Y=document.querySelector(`.stx-toast-container[data-position="${Z}"]`);if(Y)return Y}catch{}let $=document.createElement("div");$.className=`stx-toast-container ${Z}`,$.dataset.position=Z;try{if(document.body)document.body.appendChild($)}catch{}return $}function p4(Z){let{options:$}=Z,Y=h4($.type),J=$.type||"info",Q=$.duration!==0;return`
3
3
  <div class="stx-toast ${J}" data-alert-id="${Z.id}" role="alert" aria-live="polite">
4
4
  <div class="stx-toast-icon">${Y}</div>
5
5
  <div class="stx-toast-content">
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Xt as a,Yt as b}from"./chunk-5r4s9s38.js";import"./chunk-1te8k8gp.js";import"./chunk-2fw05hs2.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Al as c,Bl as d,Cl as e,Dl as f,El as g,yl as a,zl as b}from"./chunk-gengvwb7.js";import"./chunk-9fqp72ze.js";import"./chunk-tkyrk66a.js";import"./chunk-1te8k8gp.js";import"./chunk-rt3cx932.js";import"./chunk-2fw05hs2.js";export{e as productionApiDispatcher,g as isServerApiSource,b as generateApiTypes,a as discoverServerApi,f as createServerApi,d as createApiDispatcher,c as buildServerApi};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Mr as a,Nr as b,Or as c,Pr as d,Qr as e,Rr as f}from"./chunk-cqchpe34.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-0a315nbf.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-5r4s9s38.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-rt3cx932.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-x7qyx7vn.js";var Z=0;function $(){return`eb-${++Z}-${Date.now().toString(36)}`}var U=/<!--stx-render-failed:([a-z-]+)-->/g;function w(q){return q.replace(U,"")}function O(q,z={},J){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(Q,P,T,W)=>{let X=$(),Y=C(P||"");return G(X,T.trim(),W.trim(),Y)})}function C(q){let z={},J=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=J.exec(q))!==null){let Q=j[1],P=j[2]||j[3]||j[4];switch(Q){case"id":z.id=P;break;case"logErrors":z.logErrors=P==="true";break}}return z}function G(q,z,J,j){let Q=j.logErrors!==!1,P=U.test(z);U.lastIndex=0;let T=P?` <div class="stx-error-boundary-fallback" data-boundary-fallback="${q}">
2
+ import"./chunk-2fw05hs2.js";var Z=0;function $(){return`eb-${++Z}-${Date.now().toString(36)}`}var U=/<!--stx-render-failed:([a-z-]+)-->/g;function w(q){return q.replace(U,"")}function O(q,z={},J){let j=/@errorBoundary(?:\s*\(([^)]*)\))?\s*([\s\S]*?)@fallback\s*([\s\S]*?)@enderrorBoundary/gi;return q.replace(j,(Q,P,T,W)=>{let X=$(),Y=C(P||"");return G(X,T.trim(),W.trim(),Y)})}function C(q){let z={},J=/(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\w+))/g,j;while((j=J.exec(q))!==null){let Q=j[1],P=j[2]||j[3]||j[4];switch(Q){case"id":z.id=P;break;case"logErrors":z.logErrors=P==="true";break}}return z}function G(q,z,J,j){let Q=j.logErrors!==!1,P=U.test(z);U.lastIndex=0;let T=P?` <div class="stx-error-boundary-fallback" data-boundary-fallback="${q}">
3
3
  ${J}
4
4
  </div>`:` <div class="stx-error-boundary-content" data-boundary-content="${q}">
5
5
  ${w(z)}
@@ -318,4 +318,4 @@ else {
318
318
  console.log('[stx] Transition runtime initialized');
319
319
  })();
320
320
  `}function $(b){let j=/@transition\.([a-z-]+)(?:\.(\d+))?="([^"]+)"/gi;return b.replace(j,(B,q,A,z)=>{let F=A||"300",G=`stx-t-${Math.random().toString(36).slice(2,7)}`;return`data-stx-transition="${q}" data-stx-transition-duration="${F}" data-stx-transition-condition="${z}" data-stx-transition-id="${G}"`})}
321
- export{W as pi,X as qi,Y as ri,Z as si,_ as ti,$ as ui};
321
+ export{W as si,X as ti,Y as ui,Z as vi,_ as wi,$ as xi};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Pi as a,Qi as b}from"./chunk-z52f4zcy.js";import"./chunk-0c2h69k2.js";import"./chunk-gjrgr367.js";import"./chunk-gengvwb7.js";import"./chunk-s8jd13nb.js";import"./chunk-cqchpe34.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-0a315nbf.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-5r4s9s38.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-rt3cx932.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{a as getStoreScript,b as clearStoreCache};
@@ -0,0 +1,2 @@
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-gna6dc48.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-920779jx.js";import{Ye as Mo,Ze as No}from"./chunk-72rwcbp6.js";import{_e as So}from"./chunk-f6s7d1jq.js";import{$e as xn}from"./chunk-w6hqh4z5.js";import{af as bo,bf as co,cf as eo,df as Xo}from"./chunk-8036mdat.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-pdfjy3at.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-gcvj5zdy.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-4zcbj36p.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-m072c38p.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-z52f4zcy.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-avaywwsc.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-kbwhs5df.js";import{Ak as Lr,Bk as Mr,Ck as Nr,Dk as Or,Ek as Pr,Fk as Qr}from"./chunk-w9n12yzf.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-6jrczd12.js";import"./chunk-anydpa34.js";import"./chunk-gjrgr367.js";import{Dl as gc,yl as ec,zl as fc}from"./chunk-gengvwb7.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-cqchpe34.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-0a315nbf.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-5r4s9s38.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-rt3cx932.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};
@@ -0,0 +1,2 @@
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,2 +1,2 @@
1
1
  // @bun
2
- import{Au as e,Bu as f,Cu as g,Du as h,Eu as i,Fu as j,Gu as k,Hu as l,Iu as m,Ju as n,Ku as o,Lu as p,wu as a,xu as b,yu as c,zu as d}from"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.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};
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};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$p as d,Zp as b,_p as c,aq as e,yo as a}from"./chunk-cqchpe34.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-0a315nbf.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-5r4s9s38.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-rt3cx932.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{yl as G}from"./chunk-dxjtszaa.js";import{Bq as B,xq as U}from"./chunk-sjc7x8y1.js";import{Vs as O}from"./chunk-4g4yz97f.js";import{Ct as L}from"./chunk-pgeh4g3a.js";import{bx as y}from"./chunk-x7qyx7vn.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-xakdgn9h.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-zwb8wv5p.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 Oj,p as Pj,m as Qj,f as Rj,r as Sj,k as Tj,R as Uj,d as Vj,c as Wj,l as Xj,o as Yj,s as Zj,n as _j,D as $j};
2
+ import{Fl as G}from"./chunk-s8jd13nb.js";import{Eq as U,Iq as B}from"./chunk-cqchpe34.js";import{at as O}from"./chunk-0a315nbf.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-0akydm2d.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};
@@ -5,4 +5,4 @@ import Q from"fs";import U from"path";function W(H){let v=[],j=H.pwa;if(v.push({
5
5
  `);let J=["required","recommended","optional"];for(let L of J){let N=H.checks.filter((K)=>K.category===L);if(N.length===0)continue;v.push(`
6
6
  ${L.toUpperCase()}:`);for(let K of N){let T=K.passed?"\x1B[32m\u2713\x1B[0m":"\x1B[31m\u2717\x1B[0m";if(v.push(` ${T} ${K.name}: ${K.message}`),K.details)v.push(` ${K.details}`)}}return v.push(""),v.join(`
7
7
  `)}
8
- export{W as Kk,X as Lk,Y as Mk,A as Nk,B as Ok};
8
+ export{W as Rk,X as Sk,Y as Tk,A as Uk,B as Vk};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Fi as a,Gi as b,Hi as c,Ii as d,Ji as e,Ki as f,Li as g}from"./chunk-ypw4egcv.js";import"./chunk-x7qyx7vn.js";export{c as shouldCacheComponent,a as processKeepAliveDirectives,g as onDeactivated,f as onActivated,e as generateKeepAliveRuntime,d as generateKeepAliveCSS,b as createKeepAliveCache};
2
+ import{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 +1,5 @@
1
1
  // @bun
2
- import{Oi as T,Pi as u,Qi as A}from"./chunk-g0w8dyat.js";import{cl as g,jl as h,pl as b}from"./chunk-63dyh42m.js";import{Fo as f,Hr as I,fm as k,pq as B}from"./chunk-sjc7x8y1.js";import{Cv as D,Dv as S}from"./chunk-c1f1vtjt.js";import{Hv as F}from"./chunk-4md4tj27.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
2
+ import{Ri as T,Si as u,Ti as A}from"./chunk-0c2h69k2.js";import{jl as g,ql as h,wl as b}from"./chunk-gjrgr367.js";import{Mo as f,Or as I,mm as k,wq as B}from"./chunk-cqchpe34.js";import{Jv as D,Kv as S}from"./chunk-cj3adc77.js";import{Ov as F}from"./chunk-gbmeh7jg.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
3
3
  ${Q.trim()}`)}catch(Q){console.warn(`[stx] Failed to load composable ${q}:`,Q)}if(R.length===0||L.size===0)return A(j,M,W,""),null;let t=[...L].map((q)=>` try { if (!(${JSON.stringify(q)} in __c)) __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
4
4
  `),N=JSON.stringify([...L]),E=R.join(`
5
5
 
@@ -30,4 +30,4 @@ ${t}
30
30
  __published[__n] = true;
31
31
  }
32
32
  })();`;return W=T(Z()),A(j,M,W,x),x}function Zq(){j.clear(),K.clear()}
33
- export{Wq as ji,Yq as ki,Zq as li};
33
+ export{Wq as mi,Yq as ni,Zq as oi};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Et as a,It as b,Jt as c,Kt as d,Lt as e,Mt as f,Nt as g,Ot as h,Pt as i}from"./chunk-z9a0ft6h.js";import"./chunk-x7qyx7vn.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};
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 +1,2 @@
1
1
  // @bun
2
- import{pi as a,qi as b,ri as c,si as d,ti as e,ui as f}from"./chunk-55g4qm7m.js";import"./chunk-x7qyx7vn.js";export{c as processTransitionDirectives,f as processTransitionAttributes,b as performLeave,a as performEnter,e as generateTransitionRuntime,d as generateTransitionCSS};
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};
@@ -5,4 +5,4 @@ var P=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{nam
5
5
  ${F} [${U.join(`,
6
6
  ${F} `)}]`:"";return`Craft.create("${j.zigType}", ${Q}${W})`}function s(j,q,F){if(q.target==="universal"){let G=[];G.push("// Universal entry point"),G.push("");for(let[Q,U]of F)G.push(`// --- ${Q.toUpperCase()} ---`),G.push(`#if ${Q.toUpperCase()}`),G.push(U),G.push("#endif"),G.push("");return G.join(`
7
7
  `)}return F.get(q.target)||J(j,q)}function r(j,q,F){let G=[];function Q(U){G.push({name:U.zigType,hash:D(JSON.stringify(U.props)),props:Object.keys(U.props),events:Array.from(U.events.keys()),slots:[],isNative:U.zigType.startsWith("craft.")});for(let W of U.children)Q(W)}return Q(q),{version:"1.0.0",components:G,entry:j.id,assets:[],styles:j.styles}}function p(j,q){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}var d=0;function E(){return`id_${++d}`}function D(j){let q=0;for(let F=0;F<j.length;F++){let G=j.charCodeAt(F);q=(q<<5)-q+G,q=q&q}return Math.abs(q).toString(36)}function l(j){return j.charAt(0).toUpperCase()+j.slice(1)}function i(j){let q=[],F=/<script[^>]*>([\s\S]*?)<\/script>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function a(j){let q=[],F=/<style[^>]*>([\s\S]*?)<\/style>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function B(j){let q=j.type==="component"?1:0;if(j.children)for(let F of j.children)q+=B(F);return q}function b(j){let q=j.zigType.startsWith("craft.")?1:0;for(let F of j.children)q+=b(F);return q}function o(j){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(q)=>{console.log(`[craft-compiler] File changed: ${q}`)}}}var t={compileToNative:k,createHotReloadServer:o,NATIVE_COMPONENTS:P},e=t;
8
- export{P as ak,k as bk,o as ck,e as dk};
8
+ export{P as hk,k as ik,o as jk,e as kk};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{os as Q}from"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import{Ct as R}from"./chunk-pgeh4g3a.js";import"./chunk-akzmq0jr.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.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(`
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
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 +1,2 @@
1
1
  // @bun
2
- import{mt as a,nt as b,ot as c,pt as d,qt as e,rt as f,st as g,tt as h,ut as i,vt as j,wt as k,xt as l}from"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-x7qyx7vn.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
2
+ import{At as h,Bt as i,Ct as j,Dt as k,Et as l,tt as a,ut as b,vt as c,wt as d,xt as e,yt as f,zt as g}from"./chunk-0a315nbf.js";import"./chunk-tkyrk66a.js";import"./chunk-2fw05hs2.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{bf as a,cf as b,df as c,ef as d,ff as e,gf as f,hf as g,if as h,jf as i,kf as j,lf as k,mf as l,nf as m,of as n,pf as o}from"./chunk-ewxbx67c.js";import"./chunk-x7qyx7vn.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};
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 +1,3 @@
1
1
  // @bun
2
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 Bg,G as Cg};
3
+ export{F as Eg,G as Fg};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ep as a,fp as b,gp as c,hp as d,ip as e,jp as f,kp as g}from"./chunk-cqchpe34.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-0a315nbf.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-5r4s9s38.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-rt3cx932.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{a as resetUnscopedSignalWarnings,g as processStackReplacements,f as processStackPushDirectives,e as processIncludes,b as partialsCache,c as onceStore,d as clearOnceStore};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{bg as a}from"./chunk-pdfjy3at.js";import"./chunk-gcvj5zdy.js";import"./chunk-ny67c03k.js";import"./chunk-t5ja7qkn.js";import"./chunk-9e8t0twa.js";import"./chunk-anydpa34.js";import"./chunk-gengvwb7.js";import"./chunk-cqchpe34.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-0a315nbf.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-5r4s9s38.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-rt3cx932.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{a as buildForProduction};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-x7qyx7vn.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`
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
3
  <script data-watch="${`watch-${Math.random().toString(36).substring(2,9)}`}">
4
4
  (function() {
5
5
  // Watch implementation for ${L}
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ef as L,Ff as w,Gf as x,Hf as p,If as F,Jf as T,Mf as I,Nf as f,Of as l,Pf as n,Qf as i,Rf as P,Sf as o,Tf as a}from"./chunk-vtmhh3dp.js";import{Ms as ZG}from"./chunk-tfy07tmv.js";function HG(X,Z={}){let{src:G,alt:J,width:q,height:$,sizes:K="100vw",loading:Q="lazy",priority:Y=!1,quality:M=x,placeholder:N="none",formats:j=w,widths:C=L,decoding:B="async",fetchpriority:V,objectFit:O,objectPosition:W}=X,H=X.class,z=X.style,{processedImage:R,variants:_,optimize:E=!0,isDev:S=!1}=Z;if(_&&_.length>0)return OG(X,_,R);if(S||!E)return MG(X);return VG(X)}function OG(X,Z,G){let{src:J,alt:q,width:$,height:K,sizes:Q="100vw",loading:Y="lazy",priority:M=!1,decoding:N="async",fetchpriority:j,objectFit:C,objectPosition:B,placeholder:V="none"}=X,O=X.class,W=X.style,H=n(Z),z=l(Z),R=typeof Q==="object"?f(Q):Q,_=G?G.aspectRatio:$&&K?Number($)/Number(K):void 0,E=[];if(_)E.push(`aspect-ratio: ${_}`);if(C)E.push(`object-fit: ${C}`);if(B)E.push(`object-position: ${B}`);if(W)E.push(W);let S=E.length>0?` style="${E.join("; ")}"`:"",b=O?` class="${O}"`:"",u=M?"":` loading="${Y}"`,d=` decoding="${N}"`,h=j?` fetchpriority="${j}"`:M?' fetchpriority="high"':"",r=["avif","webp","jpeg","png"],s=[];for(let U of r){let D=H.get(U);if(D&&D.length>0){let m=I(D),QG=P(U);s.push(` <source type="${QG}" srcset="${m}" sizes="${R}" />`)}}let e="",t="",g;if(V!=="none"&&G?.placeholder){let U=`img-${Math.random().toString(36).slice(2,8)}`;if(e=`<div class="stx-image-wrapper" id="${U}">`,t="</div>",V==="blur")g=`
2
+ import{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
3
  #${U} {
4
4
  position: relative;
5
5
  background-image: url('${G.placeholder}');
@@ -40,4 +40,4 @@ ${O}
40
40
  ${O}
41
41
  </div>`}}if(G.priority&&C){let W=P(C.format);O=`<link rel="preload" as="image" href="${k(C.url)}" type="${W}" />
42
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 qf,JG as rf,jG as sf,CG as tf,$G as uf,UG as vf,LG as wf,FG as xf,SG as yf,YG as zf,PG as Af,cG as Bf};
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 +1,3 @@
1
1
  // @bun
2
2
  import{createHash as Y}from"crypto";import{readFile as M,stat as w}from"fs/promises";async function G(q){try{let z=await M(q);return Y("sha256").update(z).digest("hex").slice(0,16)}catch{return""}}function u(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function $(q){return Y("sha256").update(q).digest("hex").slice(0,16)}function X(q,z){let B=JSON.stringify(z,Object.keys(z).sort());return`${$(q)}-${$(B)}`}async function Z(q){try{return(await w(q)).mtimeMs}catch{return 0}}async function b(q){try{return await w(q),!0}catch{return!1}}import{mkdir as S,readFile as V,writeFile as E,readdir as A,rm as _,stat as j}from"fs/promises";import{join as U,dirname as x}from"path";var R=new Map,W={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500};async function F(q){try{await S(q,{recursive:!0})}catch{}}function K(q,z,B){return U(q,B,`${z}.json`)}async function v(q,z,B){if((Date.now()-q.createdAt)/86400000>B)return!1;if(await Z(z)!==q.srcMtime)return!1;return!0}async function g(q,z,B,J=W){if(!J.enabled)return null;let I=X(q,z),L=R.get(I);if(L){if(await v(L,q,J.maxAge))return L.lastAccessedAt=Date.now(),L.data;R.delete(I)}let Q=K(J.directory,I,B);if(await b(Q))try{let N=await V(Q,"utf-8"),O=JSON.parse(N);if(await v(O,q,J.maxAge))return O.lastAccessedAt=Date.now(),R.set(I,O),O.data}catch{}return null}async function l(q,z,B,J,I=W){if(!I.enabled)return;let L=X(q,z),Q=await G(q),N=await Z(q),O={key:L,src:q,srcHash:Q,srcMtime:N,optionsHash:X("",z),data:B,createdAt:Date.now(),lastAccessedAt:Date.now()};R.set(L,O);let T=K(I.directory,L,J);try{await F(x(T)),await E(T,JSON.stringify(O,null,2))}catch(H){console.warn(`[stx-media] Failed to write cache: ${H}`)}}async function m(q,z=W){if(q==="all")R.clear();else R.clear();let B=q==="all"?["image","video"]:[q];for(let J of B){let I=U(z.directory,J);try{await _(I,{recursive:!0,force:!0})}catch{}}}async function y(q=W){let z={memoryEntries:R.size,diskEntries:{image:0,video:0},totalSizeMB:0};for(let B of["image","video"]){let J=U(q.directory,B);try{let I=await A(J);z.diskEntries[B]=I.length;for(let L of I){let Q=U(J,L),N=await j(Q);z.totalSizeMB+=N.size/1048576}}catch{}}return z}async function f(q=W){let z=0,B=q.maxAge*24*60*60*1000;for(let J of["image","video"]){let I=U(q.directory,J);try{let L=await A(I);for(let Q of L){let N=U(I,Q);try{let O=await V(N,"utf-8"),T=JSON.parse(O);if(Date.now()-T.createdAt>B)await _(N),R.delete(T.key),z++}catch{await _(N).catch(()=>{}),z++}}}catch{}}return z}
3
- export{G as nh,u as oh,$ as ph,X as qh,Z as rh,b as sh,g as th,l as uh,m as vh,y as wh,f as xh};
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,4 +1,4 @@
1
1
  // @bun
2
- import{mg as e,pg as kF,qg as UF,rg as wF,zg as EF}from"./chunk-rctgq5xp.js";import{Cg as BF}from"./chunk-1n2ng8nx.js";import{sj as l,tj as d}from"./chunk-1x6c4ys1.js";import{Hk as HF,Ik as IF,Jk as KF}from"./chunk-rqr735w8.js";import{rl as YF,tl as ZF}from"./chunk-1nnskved.js";import{Fr as t,Hr as M,Jp as GF,Rp as VF,Vp as r,_p as o,an as s,oo as zF,rp as $F,sm as p,um as i}from"./chunk-sjc7x8y1.js";import{Hs as XF}from"./chunk-wpsx5avz.js";import{xt as qF}from"./chunk-4g4yz97f.js";import{Rt as WF}from"./chunk-h1yb87ep.js";import{Wt as QF}from"./chunk-7q06md6v.js";import{Mw as h,Pw as _F}from"./chunk-z8zmp74b.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(`
2
+ import{Cg as EF,pg as e,sg as kF,tg as UF,ug as wF}from"./chunk-gcvj5zdy.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-gengvwb7.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-cqchpe34.js";import{Os as XF}from"./chunk-9fqp72ze.js";import{Et as qF}from"./chunk-0a315nbf.js";import{Yt as WF}from"./chunk-5r4s9s38.js";import{bu as QF}from"./chunk-1te8k8gp.js";import{Tw as h,Ww as _F}from"./chunk-rt3cx932.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
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 Vf,c as Wf,a as Xf,bF as Yf,FF as Zf,qJ as _f};
4
+ export{u as Yf,c as Zf,a as _f,bF as $f,FF as ag,qJ as bg};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{li as a}from"./chunk-0we9nw1d.js";import"./chunk-2fw05hs2.js";export{a as rewriteImagesWithSiblings};
@@ -0,0 +1,2 @@
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,2 +1,2 @@
1
1
  // @bun
2
- import{Dg as a,Eg as b,Fg as c,Gg as d,Hg as e,Ig as f,Jg as g,Kg as h,Lg as i,Mg as j,Ng as k,Og as l}from"./chunk-vtjegbgy.js";import"./chunk-x7qyx7vn.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};
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};
@@ -355,4 +355,4 @@ catch (error) {
355
355
  console.log('[stx] Async component runtime initialized');
356
356
  })();
357
357
  `}
358
- export{X as Ai,Y as Bi,Z as Ci,_ as Di,$ as Ei};
358
+ export{X as Di,Y as Ei,Z as Fi,_ as Gi,$ as Hi};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-x7qyx7vn.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
2
+ import{a as N,c as R,e as W,g as j,i as H,k as J}from"./chunk-0y46fbkx.js";import{l as k,m as w,n as B}from"./chunk-q9n5swx7.js";import"./chunk-2fw05hs2.js";import E from"fs";import K from"path";var V=[];function _(U){V=[];for(let A of U.storyFiles)if(V.push({text:A.fileName.toLowerCase(),original:A.fileName,type:"story",storyId:A.id}),V.push({text:A.relativePath.toLowerCase(),original:A.relativePath,type:"story",storyId:A.id}),A.story)for(let z of A.story.variants)V.push({text:z.title.toLowerCase(),original:z.title,type:"story",storyId:A.id,variantId:z.id})}function $(){return JSON.stringify(V)}async function O(U={}){let A=Date.now();N();let z=await k({mode:"build"});if(!z.config.enabled){W("Story feature is disabled in config.");return}let P=await H(z);w(z,P);let Y=J(z.config,P);B(z,Y),R(P.length);let X=U.outDir??z.config.outDir,Q=K.resolve(z.root,X);await E.promises.mkdir(Q,{recursive:!0}),console.log(` Building to ${X}...`);let M=F(z);await E.promises.writeFile(K.join(Q,"index.html"),M);let v={files:P.map((G)=>({id:G.id,fileName:G.fileName,relativePath:G.relativePath,treePath:G.treePath})),tree:Y};await E.promises.writeFile(K.join(Q,"stories.json"),JSON.stringify(v,null,2));let L={theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets};await E.promises.writeFile(K.join(Q,"config.json"),JSON.stringify(L,null,2));let Z=K.join(Q,"stories");await E.promises.mkdir(Z,{recursive:!0});for(let G of P){let g=await E.promises.readFile(G.path,"utf-8");await E.promises.writeFile(K.join(Z,`${G.id}.stx`),g)}_(z);let T=$();await E.promises.writeFile(K.join(Q,"search-index.json"),T);let C=Date.now()-A;j(P.length,X,C)}function F(U){let{theme:A}=U.config,z=A.title||"STX Story";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">