@stacksjs/stx 0.2.837 → 0.2.839

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 (238) hide show
  1. package/dist/builtins/image-delivery.js +7 -3
  2. package/dist/chunk-02cntwd8.js +2 -0
  3. package/dist/chunk-07hvjvj1.js +2 -0
  4. package/dist/{chunk-gh62p9mx.js → chunk-11y84h2d.js} +2 -2
  5. package/dist/{chunk-3bjnrmha.js → chunk-1b1ntgt7.js} +2 -2
  6. package/dist/{chunk-z25w7kmr.js → chunk-1m16mvt4.js} +4 -4
  7. package/dist/{chunk-rj68w7em.js → chunk-1zfxmjrf.js} +55 -55
  8. package/dist/{chunk-4ntm3dtk.js → chunk-23r3rby6.js} +2 -2
  9. package/dist/chunk-23zzbsms.js +2 -0
  10. package/dist/{chunk-ya6bp08c.js → chunk-2fj5zev7.js} +1 -1
  11. package/dist/{chunk-29f6vmyz.js → chunk-2j5yane9.js} +4 -4
  12. package/dist/chunk-2pgc087j.js +2 -0
  13. package/dist/{chunk-yeg4cahs.js → chunk-31cnrpd1.js} +9 -9
  14. package/dist/{chunk-ac9ncbfw.js → chunk-321e41ck.js} +3 -3
  15. package/dist/{chunk-hrcpq9k1.js → chunk-3tydmgwh.js} +5 -5
  16. package/dist/chunk-41sh9y5w.js +2 -0
  17. package/dist/chunk-4654xm1h.js +2 -0
  18. package/dist/{chunk-amg6kr1p.js → chunk-4657mnht.js} +4 -4
  19. package/dist/{chunk-s33andzg.js → chunk-4dxq7ft1.js} +2 -2
  20. package/dist/chunk-4eagsz5d.js +2 -0
  21. package/dist/{chunk-f7jgda7x.js → chunk-4j08cbjd.js} +5 -5
  22. package/dist/{chunk-ykyf7513.js → chunk-4w3qpewn.js} +3 -3
  23. package/dist/{chunk-tx8wk6h7.js → chunk-4y6hes3h.js} +2 -2
  24. package/dist/chunk-53j9wakh.js +2 -0
  25. package/dist/{chunk-j97zjjkh.js → chunk-5hmm01av.js} +5 -5
  26. package/dist/chunk-5t93dqft.js +2 -0
  27. package/dist/{chunk-2x9zhezb.js → chunk-6wrf6302.js} +2 -2
  28. package/dist/chunk-78nsbzcm.js +2 -0
  29. package/dist/{chunk-vpnyqf0h.js → chunk-7cg2f588.js} +4 -4
  30. package/dist/chunk-7ka7pvj9.js +2 -0
  31. package/dist/chunk-7m0r7mq9.js +2 -0
  32. package/dist/chunk-7mz6ze0x.js +2 -0
  33. package/dist/{chunk-ckg6q98b.js → chunk-7t57cnz9.js} +5 -5
  34. package/dist/chunk-7t9951at.js +2 -0
  35. package/dist/{chunk-jr0r5pzw.js → chunk-7vhm0jj5.js} +2 -2
  36. package/dist/{chunk-vfj9wp11.js → chunk-8370x30n.js} +2 -2
  37. package/dist/chunk-8913k8g7.js +3 -0
  38. package/dist/{chunk-txd2js5v.js → chunk-89d3h8mp.js} +14 -14
  39. package/dist/chunk-8byydry7.js +2 -0
  40. package/dist/chunk-8c363c2r.js +2 -0
  41. package/dist/chunk-8em568fw.js +2 -0
  42. package/dist/{chunk-n0zdxcfh.js → chunk-8h0pnn5p.js} +6 -6
  43. package/dist/{chunk-em8tv6nz.js → chunk-8pj4v1eh.js} +2 -2
  44. package/dist/{chunk-8z1p3mag.js → chunk-8q3pyq6a.js} +3 -3
  45. package/dist/{chunk-z0ynyz62.js → chunk-8qbp5skx.js} +7 -7
  46. package/dist/chunk-8w0n2rae.js +2 -0
  47. package/dist/{chunk-9snk4mzf.js → chunk-8y3f5fyg.js} +6 -6
  48. package/dist/chunk-8z3yjex0.js +2 -0
  49. package/dist/chunk-8zzepd7g.js +2 -0
  50. package/dist/{chunk-c3dg8qdn.js → chunk-97k72dfh.js} +2 -2
  51. package/dist/chunk-98258444.js +2 -0
  52. package/dist/{chunk-s53wjw7y.js → chunk-9xps62ek.js} +2 -2
  53. package/dist/{chunk-52g026sc.js → chunk-a1s5wqw4.js} +2 -2
  54. package/dist/{chunk-myje6fhm.js → chunk-a9tzjqny.js} +5 -5
  55. package/dist/{chunk-ztkd6mxj.js → chunk-aekq1zyn.js} +6 -6
  56. package/dist/chunk-aywvbcae.js +2 -0
  57. package/dist/chunk-aza2zrhk.js +54 -0
  58. package/dist/chunk-b0fkvrat.js +2 -0
  59. package/dist/chunk-b6w3457c.js +2 -0
  60. package/dist/{chunk-fvgk1w9s.js → chunk-bp918end.js} +2 -2
  61. package/dist/chunk-bq7qcndg.js +3 -0
  62. package/dist/chunk-c18pafmf.js +3 -0
  63. package/dist/chunk-c2v38ghp.js +2 -0
  64. package/dist/{chunk-c9vxm8yq.js → chunk-ca3c5qx2.js} +31 -31
  65. package/dist/chunk-cax1wts7.js +2 -0
  66. package/dist/{chunk-vkynagtn.js → chunk-cw1ar3dq.js} +4 -4
  67. package/dist/{chunk-bky02g7k.js → chunk-d0dzzpfx.js} +2 -2
  68. package/dist/{chunk-sz88tmbm.js → chunk-d1vkjxb1.js} +5 -5
  69. package/dist/chunk-d2mdh669.js +2 -0
  70. package/dist/chunk-d44g9sek.js +2 -0
  71. package/dist/chunk-d5vr9g4b.js +2 -0
  72. package/dist/{chunk-yw1s8kyj.js → chunk-dgn87554.js} +4 -4
  73. package/dist/{chunk-8q7ah3ct.js → chunk-efdfkfp1.js} +3 -3
  74. package/dist/{chunk-33czswpt.js → chunk-f1hkagxk.js} +3 -3
  75. package/dist/chunk-f69cmsz9.js +2 -0
  76. package/dist/{chunk-55e46spy.js → chunk-g7rsd8st.js} +5 -5
  77. package/dist/chunk-gaxx0z19.js +2 -0
  78. package/dist/chunk-gft9pg9n.js +2 -0
  79. package/dist/{chunk-3y9jtfzr.js → chunk-gpschnvk.js} +12 -12
  80. package/dist/chunk-h8h79939.js +2 -0
  81. package/dist/{chunk-q5pwvr98.js → chunk-jc5y35b7.js} +1 -1
  82. package/dist/{chunk-3r65z9vs.js → chunk-jjyt3tsv.js} +2 -2
  83. package/dist/{chunk-q14j0wsq.js → chunk-jzh0n2ct.js} +9 -9
  84. package/dist/{chunk-vfxkn1pe.js → chunk-kd6r7z27.js} +3 -3
  85. package/dist/chunk-ksc83y9t.js +2 -0
  86. package/dist/{chunk-02kycznh.js → chunk-ksr6c2kh.js} +5 -5
  87. package/dist/{chunk-rnm8ejpz.js → chunk-m5bj2jnb.js} +2 -2
  88. package/dist/chunk-mad4g0yx.js +2 -0
  89. package/dist/{chunk-b7tb00nz.js → chunk-mhyd24bg.js} +2 -2
  90. package/dist/chunk-mtjt2z77.js +2 -0
  91. package/dist/{chunk-0psdpeq8.js → chunk-mv49hr9y.js} +1 -1
  92. package/dist/chunk-mzj71r0m.js +3 -0
  93. package/dist/chunk-n7pvz99f.js +2 -0
  94. package/dist/chunk-n8a4jm0p.js +3 -0
  95. package/dist/chunk-nb2tedk0.js +2 -0
  96. package/dist/chunk-ndyj1d0z.js +2 -0
  97. package/dist/{chunk-n4qznmkm.js → chunk-ngnr831a.js} +5 -5
  98. package/dist/chunk-nhk0aat9.js +2 -0
  99. package/dist/{chunk-vntth7mg.js → chunk-nk7nxzxf.js} +2 -2
  100. package/dist/chunk-np6h1ct6.js +2 -0
  101. package/dist/{chunk-50w73wey.js → chunk-nsnzgdjt.js} +1 -1
  102. package/dist/{chunk-7y78ffds.js → chunk-p83h2dbg.js} +52 -52
  103. package/dist/{chunk-dv11h4f0.js → chunk-p9d2txcg.js} +1 -1
  104. package/dist/chunk-phxkmjnw.js +2 -0
  105. package/dist/chunk-pjkdn8zf.js +2 -0
  106. package/dist/{chunk-64b0yzrm.js → chunk-pqg6j26p.js} +3 -3
  107. package/dist/{chunk-xtqapjz3.js → chunk-q0s0kc66.js} +2 -2
  108. package/dist/chunk-q88w2rv9.js +2 -0
  109. package/dist/{chunk-v3xyb3ws.js → chunk-qfvddpcg.js} +2 -2
  110. package/dist/{chunk-e75dntfb.js → chunk-qk079ca7.js} +2 -2
  111. package/dist/{chunk-a40hrcq2.js → chunk-r0ssa1xd.js} +2 -2
  112. package/dist/chunk-r5bhgyes.js +2 -0
  113. package/dist/chunk-rdn1d4bf.js +42 -0
  114. package/dist/{chunk-7bvvv74e.js → chunk-rk2ex6qx.js} +3 -3
  115. package/dist/chunk-rmc6dfj4.js +2 -0
  116. package/dist/chunk-rsn9rh07.js +2 -0
  117. package/dist/chunk-rt29w5ns.js +2 -0
  118. package/dist/chunk-ryrdx5mw.js +2 -0
  119. package/dist/chunk-rzfbffnv.js +2 -0
  120. package/dist/chunk-s85chp3w.js +2 -0
  121. package/dist/chunk-s92f8w68.js +2 -0
  122. package/dist/chunk-sm9f980t.js +2 -0
  123. package/dist/chunk-st75663x.js +2 -0
  124. package/dist/chunk-sv2d6nfe.js +2 -0
  125. package/dist/{chunk-7k9yahng.js → chunk-t0jed809.js} +6 -6
  126. package/dist/{chunk-s5dhvnnd.js → chunk-t3p0jy0s.js} +6 -6
  127. package/dist/{chunk-f49x34sr.js → chunk-v3q126ys.js} +2 -2
  128. package/dist/{chunk-ees0kc6z.js → chunk-v49rvx9y.js} +114 -114
  129. package/dist/{chunk-kw5gra2z.js → chunk-v4ybemgb.js} +2 -2
  130. package/dist/chunk-vcx6dy59.js +2 -0
  131. package/dist/{chunk-q3pw43jm.js → chunk-vr6qa0g2.js} +14 -14
  132. package/dist/chunk-w5h67xec.js +2 -0
  133. package/dist/{chunk-vyv76w55.js → chunk-wbgc2n04.js} +2 -2
  134. package/dist/{chunk-p5r2p459.js → chunk-whmqfr3y.js} +6 -6
  135. package/dist/{chunk-nyg0nbjj.js → chunk-x110ssw2.js} +3 -3
  136. package/dist/{chunk-fwktw49p.js → chunk-x4f7efgp.js} +6 -6
  137. package/dist/chunk-x5wkbcsf.js +2 -0
  138. package/dist/{chunk-w0a6yz73.js → chunk-xbcnnk8x.js} +5 -5
  139. package/dist/{chunk-84nw3921.js → chunk-xmsf1bnx.js} +3 -3
  140. package/dist/{chunk-af50ebx1.js → chunk-xvhxxj4g.js} +92 -92
  141. package/dist/{chunk-dhdezdt2.js → chunk-xx3reejx.js} +2 -2
  142. package/dist/chunk-y64qhgv1.js +2 -0
  143. package/dist/{chunk-52t0qpx6.js → chunk-y68xstqy.js} +1 -1
  144. package/dist/chunk-yg5a54pj.js +2 -0
  145. package/dist/chunk-yjskeqaj.js +2 -0
  146. package/dist/{chunk-qmqc9p98.js → chunk-yn17484y.js} +6 -6
  147. package/dist/{chunk-dc0cde6n.js → chunk-ynf16yz4.js} +3 -3
  148. package/dist/chunk-yxqzarzh.js +2 -0
  149. package/dist/chunk-z4g64re8.js +3 -0
  150. package/dist/{chunk-ms3v5nat.js → chunk-zg44cf8a.js} +7 -7
  151. package/dist/{chunk-s6r54dyf.js → chunk-zjqvbcwa.js} +2 -2
  152. package/dist/{chunk-0rvntfhj.js → chunk-zvy88beh.js} +3 -3
  153. package/dist/{chunk-ycf2qbmz.js → chunk-zyeg9t2t.js} +2 -2
  154. package/dist/cli.js +20 -20
  155. package/dist/compression.js +3 -3
  156. package/dist/craft-entry.js +2 -2
  157. package/dist/craft.js +2 -2
  158. package/dist/dev-server/port-utils.js +2 -1
  159. package/dist/expressions.js +1 -1
  160. package/dist/html-masking.d.ts +2 -0
  161. package/dist/html-masking.js +23 -0
  162. package/dist/image-optimization/processor.js +2 -2
  163. package/dist/includes.js +5 -4
  164. package/dist/misc-directives.js +2 -2
  165. package/dist/pwa.js +3 -3
  166. package/dist/ssg.js +16 -16
  167. package/dist/utils.js +37 -7
  168. package/package.json +5 -5
  169. package/dist/chunk-0a36jnq4.js +0 -2
  170. package/dist/chunk-0rnfywsx.js +0 -2
  171. package/dist/chunk-1bpx9b0m.js +0 -2
  172. package/dist/chunk-1n04yp1x.js +0 -2
  173. package/dist/chunk-205gzszh.js +0 -54
  174. package/dist/chunk-29ptxt2j.js +0 -2
  175. package/dist/chunk-2nxxhcyy.js +0 -2
  176. package/dist/chunk-3ahpedfv.js +0 -3
  177. package/dist/chunk-68f2xqw4.js +0 -2
  178. package/dist/chunk-6aak0b7c.js +0 -2
  179. package/dist/chunk-6cv4kv7w.js +0 -2
  180. package/dist/chunk-72n804gy.js +0 -2
  181. package/dist/chunk-7efkc3gk.js +0 -2
  182. package/dist/chunk-830s2hfc.js +0 -2
  183. package/dist/chunk-87599134.js +0 -2
  184. package/dist/chunk-91zpxwx0.js +0 -2
  185. package/dist/chunk-9w3r1ch2.js +0 -3
  186. package/dist/chunk-a1hxz8q4.js +0 -2
  187. package/dist/chunk-a4k7neqx.js +0 -2
  188. package/dist/chunk-a579jdwb.js +0 -2
  189. package/dist/chunk-ahd8jdzx.js +0 -2
  190. package/dist/chunk-ay7ggc4k.js +0 -2
  191. package/dist/chunk-bc4x45vx.js +0 -2
  192. package/dist/chunk-c7hw37ww.js +0 -2
  193. package/dist/chunk-ca8bj7ga.js +0 -2
  194. package/dist/chunk-cfrgrnej.js +0 -2
  195. package/dist/chunk-chcvz6y7.js +0 -42
  196. package/dist/chunk-cw8vpk41.js +0 -2
  197. package/dist/chunk-d75s3a90.js +0 -2
  198. package/dist/chunk-db1c0c3c.js +0 -2
  199. package/dist/chunk-dkh794nh.js +0 -2
  200. package/dist/chunk-f6vzn90z.js +0 -2
  201. package/dist/chunk-gcxtgezg.js +0 -2
  202. package/dist/chunk-gtj8wy95.js +0 -2
  203. package/dist/chunk-h4tbpr7p.js +0 -2
  204. package/dist/chunk-hjvv9dbw.js +0 -2
  205. package/dist/chunk-hqp6cj7g.js +0 -2
  206. package/dist/chunk-j0w048sj.js +0 -2
  207. package/dist/chunk-jd5e3s4e.js +0 -2
  208. package/dist/chunk-k761q7s7.js +0 -2
  209. package/dist/chunk-k79ftcxh.js +0 -2
  210. package/dist/chunk-m3tnxk01.js +0 -2
  211. package/dist/chunk-mad9bbcp.js +0 -2
  212. package/dist/chunk-mca71wrp.js +0 -2
  213. package/dist/chunk-mdtysd2d.js +0 -2
  214. package/dist/chunk-mjf4naae.js +0 -3
  215. package/dist/chunk-nmtya57z.js +0 -3
  216. package/dist/chunk-nxfyjw59.js +0 -2
  217. package/dist/chunk-pe5qqem0.js +0 -2
  218. package/dist/chunk-ptcvxx5v.js +0 -2
  219. package/dist/chunk-pvab0bq4.js +0 -2
  220. package/dist/chunk-pwv77cyb.js +0 -2
  221. package/dist/chunk-qaswy58a.js +0 -2
  222. package/dist/chunk-qgrhcg7f.js +0 -2
  223. package/dist/chunk-ra967vfn.js +0 -3
  224. package/dist/chunk-s3j5vxy9.js +0 -3
  225. package/dist/chunk-t612xpa4.js +0 -2
  226. package/dist/chunk-tesbhpbp.js +0 -2
  227. package/dist/chunk-tvw571ab.js +0 -2
  228. package/dist/chunk-txzap6yn.js +0 -2
  229. package/dist/chunk-vqpypnys.js +0 -2
  230. package/dist/chunk-w39cfxa6.js +0 -2
  231. package/dist/chunk-wrr61y84.js +0 -2
  232. package/dist/chunk-x50xn4w1.js +0 -2
  233. package/dist/chunk-xefcgvy6.js +0 -2
  234. package/dist/chunk-xhabjf42.js +0 -2
  235. package/dist/chunk-xrspzeqx.js +0 -2
  236. package/dist/chunk-y191vfqa.js +0 -2
  237. package/dist/chunk-y2sdtw2t.js +0 -2
  238. package/dist/chunk-zrrxw94h.js +0 -2
@@ -1,54 +0,0 @@
1
- // @bun
2
- import{T,u,f,P,d,K}from"./chunk-txd2js5v.js";import{V,Is,Ne,pe,_r,Be,Fe,s,h,ke,_}from"./chunk-af50ebx1.js";import{ct}from"./chunk-4ntm3dtk.js";import{I}from"./chunk-s6r54dyf.js";import{oe}from"./chunk-3bjnrmha.js";import{B,Ze}from"./chunk-ybq56wam.js";import{E,En}from"./chunk-jr0r5pzw.js";import A from"path";import{existsSync as St}from"fs";function at(a,t){let c=0;for(let i=t;i<a.length;i++){let S=a[i];if(S==="("||S==="["||S==="{")c++;else if(S===")"||S==="]"||S==="}")c--;else if(S===","&&c===0)return i}return-1}function yt(a,t,c){let i=a,S=new RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\s*\\(`,"g"),n=S.exec(i);while(n){let g=n.index,e=g+n[0].length-1,D=1,U=e+1;while(U<i.length&&D>0){if(i[U]==="(")D++;else if(i[U]===")")D--;U++}if(D!==0)break;let rt=i.substring(e+1,U-1),j=`${c}(${rt})`;i=i.substring(0,g)+j+i.substring(U),S.lastIndex=g+j.length,n=S.exec(i)}return i}function $t(a){return/\b(state|derived|effect)\s*(?:<[^<>()]*>)?\s*\(/.test(a)}function mt(a){let t=a,c=[],i=new Set,S=0,n=0,g=t.length,e=(j)=>{n++;while(n<g){if(t[n]==="\\"){n+=2;continue}if(t[n]===j){n++;return}n++}},D=()=>{n++;while(n<g){if(t[n]==="\\"){n+=2;continue}if(t[n]==="`"){n++;return}if(t[n]==="$"&&t[n+1]==="{"){n+=2;let j=1;while(n<g&&j>0)if(t[n]==="{")j++,n++;else if(t[n]==="}")j--,n++;else if(t[n]==="'"||t[n]==='"')e(t[n]);else if(t[n]==="`")D();else n++;continue}n++}},U=()=>{if(t[n]==="/"&&t[n+1]==="/"){while(n<g&&t[n]!==`
3
- `)n++;return!0}if(t[n]==="/"&&t[n+1]==="*"){n+=2;while(n<g-1&&!(t[n]==="*"&&t[n+1]==="/"))n++;return n+=2,!0}return!1},rt=()=>{if(S!==0)return;let j=t.slice(n).match(/^(const|let|var)\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=/);if(j){let Z=j[2];if(!i.has(Z))c.push(Z),i.add(Z);return}let et=t.slice(n).match(/^function\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/);if(et){let Z=et[1];if(!i.has(Z))c.push(Z),i.add(Z);return}let Y=t.slice(n).match(/^async\s+function\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/);if(Y){let Z=Y[1];if(!i.has(Z))c.push(Z),i.add(Z)}};while(n<g){if(U())continue;if(t[n]==="'"||t[n]==='"'){e(t[n]);continue}if(t[n]==="`"){D();continue}if(t[n]==="{"){S++,n++;continue}if(t[n]==="}"){S--,n++;continue}if(S===0&&/[a-z]/i.test(t[n])&&(n===0||/\s|[;{}()]/.test(t[n-1])))rt();n++}return c.join(", ")}function Et(a,t=""){let c=mt(a).split(",").map((i)=>i.trim()).filter(Boolean);return`
4
- (function() {
5
- ${ct("var",c)}
6
- var __destroyHooks = [];
7
- var __origOnDestroy = onDestroy;
8
- onDestroy = function(fn) { __origOnDestroy(fn); __destroyHooks.push(fn); };
9
-
10
- ${a}
11
- ${t}})();
12
- `}function vt(a,t){let i=mt(a).split(",").map((g)=>g.trim()).filter(Boolean),S=new Set(V(a,!0).split(",").map((g)=>g.trim())),n=i.map((g)=>S.has(g)?` try { ${g}; Object.defineProperty(__scopeRegistration, ${JSON.stringify(g)}, ${Is(g)}); } catch (e) { /* not actually top-level */ }`:` try { __scopeRegistration[${JSON.stringify(g)}] = ${g}; } catch (e) { /* not actually top-level */ }`).join(`
13
- `);return`
14
- // Register scope variables for STX runtime
15
- if (!window.stx._scopes) window.stx._scopes = {};
16
- var __scopeRegistration = window.stx._scopes['${t}'] || { __destroyCallbacks: __destroyHooks };
17
- ${n}
18
- // #1767: when the bundler renamed a component const that collided with an
19
- // inlined import (foo -> foo2), rebind the ORIGINAL template name to the
20
- // renamed declaration so it resolves to the component's value, not the
21
- // shadowing import. __stxScopeRenames is emitted by bundleClientScript.
22
- try { if (typeof __stxScopeRenames !== 'undefined' && __stxScopeRenames) { for (var __stxRK in __stxScopeRenames) __scopeRegistration[__stxRK] = __stxScopeRenames[__stxRK]; } } catch (e) { /* no renames */ }
23
- if (typeof __stxLiveBindings !== 'undefined') Object.defineProperties(__scopeRegistration, Object.getOwnPropertyDescriptors(__stxLiveBindings));
24
- window.stx._scopes['${t}'] = __scopeRegistration;
25
- `}function Rt(a,t){return a.replace(/<script data-stx-scoped data-stx-run="always" data-stx-owner="([^"]*)"/g,(c,i)=>i===t?c:'<script data-stx-scoped data-stx-run="always"')}function gt(a,t){let c=vt(a,t);return kt(Et(a,c),t)}function kt(a,t){let c=`
26
- (function() {
27
- var __stxScopeEl = (typeof document !== 'undefined') ? document.querySelector('[data-stx-scope="${t}"]') : null;
28
- var __stxPrevEl = (typeof window !== 'undefined') ? window.__STX_CURRENT_ELEMENT__ : undefined;
29
- if (__stxScopeEl && typeof window !== 'undefined') window.__STX_CURRENT_ELEMENT__ = __stxScopeEl;
30
- if (__stxScopeEl && typeof window !== 'undefined' && window.stx) {
31
- if (!window.stx._scopes) window.stx._scopes = {};
32
- window.stx._scopes['${t}'] = {};
33
- }
34
- var __stxEndEffects = (typeof window !== 'undefined' && window.stx && window.stx._beginEffects) ? window.stx._beginEffects() : null;
35
- try {`,i=`
36
- } finally {
37
- // The body's effects end where its onDestroy callbacks run: with the scope
38
- // when the partial has a root, with the page when it has none.
39
- if (__stxEndEffects) {
40
- var __stxDisposeEffects = __stxEndEffects();
41
- var __stxRegistered = __stxScopeEl && window.stx._scopes && window.stx._scopes['${t}'];
42
- if (__stxRegistered) __stxRegistered.__disposeEffects = __stxDisposeEffects;
43
- else if (window.stx._destroyCallbacks) window.stx._destroyCallbacks.push(__stxDisposeEffects);
44
- }
45
- if (typeof window !== 'undefined') window.__STX_CURRENT_ELEMENT__ = __stxPrevEl;
46
- }
47
- })();`;return c+a+i}function It(a,t){if(B(a)){let S=B(a).tag.match(/data-stx-scope="([^"]*)"/);if(S)return{html:a,mergedIntoExisting:S[1],stamped:!0,root:"body"};return{html:Ze(a,(n,g)=>`<body${g} data-stx-scope="${t}">`),mergedIntoExisting:null,stamped:!0,root:"body"}}let c=a.match(/^(\s*(?:(?:<!--[\s\S]*?-->|\x00STX_HTML_COMMENT_\d+\x00)\s*)*)(<[a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*>|>)/s);if(c){let i=c[2]+c[3],S=c[2].slice(1),n=i.match(/data-stx-scope="([^"]*)"/);if(n)return{html:a,mergedIntoExisting:n[1],stamped:!0,root:S};let g=c[1],e=c[2],D=c[3];return{html:`${g}${e} data-stx-scope="${t}"${D}${a.slice(c[0].length)}`,mergedIntoExisting:null,stamped:!0,root:S}}return{html:a,mergedIntoExisting:null,stamped:!1,root:null}}var Mt=0;function ut(a,t){let c=A.basename(a,".stx").replace(/[^a-zA-Z0-9]/g,"_"),i=t.__stx_scope_seq;return i?`stx_scope_${c}_${++i.n}_${i.key}`:`stx_scope_${c}_${++Mt}`}var lt=new Set,pt=new Set;function Ih(){lt.clear(),pt.clear()}var Tt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function Nf(a){let t=(e)=>e.replace(/[^\n]/g," "),c=a.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,t).replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,t).replace(/<!--[\s\S]*?-->/g,t).replace(/\x00STX_HTML_COMMENT_\d+\x00/g,t).replace(/\{\{[\s\S]*?\}\}/g,t).replace(/\{!![\s\S]*?!!\}/g,t),i=[],S=0,n=/<(\/?)([A-Za-z][\w-]*)\b(?:[^<>"']|"[^"]*"|'[^']*')*?(\/?)>/g,g;while((g=n.exec(c))!==null){let e=g[1]==="/",D=g[2],U=g[3]==="/"||Tt.has(D.toLowerCase());if(e){S=Math.max(0,S-1);continue}if(S===0)i.push(D);if(!U)S++}return i}function ft(a){return/\btype\s*=\s*["'](?!(?:text\/javascript|application\/javascript|module)["'])[^"']*["']/i.test(a)}var Ye=new T(500),cc=new Set;function Oh(){cc.clear()}function Ct(a){if(a.__onceStore instanceof Set)return a.__onceStore;return cc}async function as(a,t,c,i,S,n=new Set){let g=i.partialsDir||A.join(A.dirname(c),"partials");if(g&&!A.isAbsolute(g))g=A.resolve(process.cwd(),g);let e=yt(a,"@partial","@include"),D=Ct(t);e=e.replace(/@once([\s\S]*?)@endonce/g,(m,k,x)=>{let p=k.trim(),r=`${c}:${p}`;if(D.has(r))return"";return D.add(r),k});{let m=/@includeIf\s*\(/g,k;while((k=m.exec(e))!==null){let x=k.index,p=x+k[0].length-1,r=1,w=p+1;while(w<e.length&&r>0){if(e[w]==="(")r++;else if(e[w]===")")r--;w++}if(r!==0)break;let l=e.substring(p+1,w-1),o=l.match(/^\s*['"]([^'"]+)['"]/);if(!o){m.lastIndex=w;continue}let O=o[1],W=U(O,g,c),R="";if(W&&await Bun.file(W).exists())S.add(W),R=`@include(${l})`;e=e.substring(0,x)+R+e.substring(w),m.lastIndex=0}}for(let[m,k]of[["@includeWhen",!1],["@includeUnless",!0]]){let x=new RegExp(`${m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\s*\\(`,"g"),p;while((p=x.exec(e))!==null){let r=p.index,w=r+p[0].length-1,l=1,o=w+1;while(o<e.length&&l>0){if(e[o]==="(")l++;else if(e[o]===")")l--;o++}if(l!==0)break;let O=e.substring(w+1,o-1),W=at(O,0);if(W===-1){x.lastIndex=o;continue}let R=O.substring(0,W).trim(),H=O.substring(W+1).trim(),z=H.match(/^\s*['"]([^'"]+)['"]/);if(!z){x.lastIndex=o;continue}let b=z[1],J=H.substring(z[0].length),N,M=at(J,0);if(M!==-1)N=J.substring(M+1).trim();try{let C=`Boolean(${R})`,L;if(f(C)){let it=d(C,Object.keys(t));L=Boolean(it(...Object.values(t)))}else L=Boolean(u(C,t));let tt=k?!L:L,nt="";if(tt){let it=U(b,g,c);if(it&&await Bun.file(it).exists())S.add(it);nt=`@include('${b}'${N?`, ${N}`:""})`}e=e.substring(0,r)+nt+e.substring(o),x.lastIndex=0}catch(C){let L=C instanceof Error?C.message:String(C),tt=h("Include",`Error evaluating ${m} condition: ${L}`,c,a,r);e=e.substring(0,r)+tt+e.substring(o),x.lastIndex=0}}}{let m=/@each\s*\(/g,k;while((k=m.exec(e))!==null){let x=k.index,p=x+k[0].length-1,r=1,w=p+1;while(w<e.length&&r>0){if(e[w]==="(")r++;else if(e[w]===")"){if(r--,r===0)break}w++}if(r!==0)break;let l=e.substring(p+1,w),o=e.substring(x,w+1),O=l.match(/^\s*['"]([^'"]+)['"]\s*,\s*([^,]+)\s*,\s*['"]([^'"]+)['"](?:\s*,\s*['"]([^'"]+)['"])?\s*$/);if(!O){m.lastIndex=0,e=e.replace(o,"");continue}let[,W,R,H,z]=O;try{let b,J=R.trim();if(f(J))b=d(J,Object.keys(t))(...Object.values(t));else b=u(J,t);let N="";if(Array.isArray(b)&&b.length>0)for(let M of b){let C={...t,[H]:M},L=await et(W,C,a,x);N+=L}else if(z)N=await et(z,{},a,x);e=e.substring(0,x)+N+e.substring(w+1),m.lastIndex=0}catch(b){let J=b instanceof Error?b.message:String(b);e=e.substring(0,x)+h("Each",`Error in @each: ${J}`,c,a,x)+e.substring(w+1),m.lastIndex=0}}}{let m=/@includeFirst\s*\(/g,k;while((k=m.exec(e))!==null){let x=k.index,p=x+k[0].length-1,r=1,w=p+1;while(w<e.length&&r>0){if(e[w]==="(")r++;else if(e[w]===")"){if(r--,r===0)break}w++}if(r!==0)break;let l=e.substring(p+1,w),o=e.substring(x,w+1),O=l.match(/^\s*(\[[^\]]+\])/);if(!O){m.lastIndex=0,e=e.replace(o,"");continue}let W=O[1],R=l.slice(O[0].length),H,z=R.match(/^\s*,\s*\{/);if(z){R=R.slice(z[0].length-1);let N=1,M=1;while(M<R.length&&N>0){if(R[M]==="{")N++;else if(R[M]==="}"){if(N--,N===0)break}M++}H=R.substring(0,M+1),R=R.slice(M+1)}let b,J=R.match(/^\s*,\s*['"]([^'"]*)['"]\s*$/);if(J)b=J[1];try{let N=JSON.parse(W.replace(/'/g,'"')),M={};if(H)try{M=P(H,t)}catch(L){let tt=L instanceof Error?L.message:String(L);if(i.debug){let nt=h("Include",`Error parsing includeFirst variables: ${tt}`,c,a,x,o);e=e.replace(o,()=>nt)}else e=e.replace(o,()=>b||"");continue}let C=!1;for(let L of N){let tt=U(L,g,c);if(!tt)continue;if(await s(tt)){let nt=await et(L,M,a,x);e=e.replace(o,()=>nt),C=!0;break}}if(!C)if(b!==void 0)e=e.replace(o,()=>b);else if(i.debug){let L=h("Include",`None of the includeFirst paths exist: ${W}`,c,a,x,o);e=e.replace(o,()=>L)}else e=e.replace(o,"")}catch(N){let M=N instanceof Error?N.message:String(N),C=h("Include",`Error processing @includeFirst: ${M}`,c,a,x,o);e=e.replace(o,()=>C)}m.lastIndex=0}}function U(m,k,x){try{let p=m;if(!m.endsWith(".stx"))p=`${m}.stx`;let r=A.resolve(k),w=A.resolve(A.dirname(x)),l;if(!p.startsWith("./")&&!p.startsWith("../")){for(let z of i._layerPartialDirs??[]){let b=A.resolve(z,p);if(b.startsWith(`${A.resolve(z)}${A.sep}`)&&St(b))return b}l=A.resolve(k,p)}else l=A.resolve(w,p);let o=A.normalize(l),O=o.startsWith(r+A.sep)||o===r,W=o.startsWith(w+A.sep)||o===w,R=!1,H=A.dirname(w);if(o.startsWith(H+A.sep)){if(!A.relative(H,o).split(A.sep).some((N)=>N.startsWith(".")&&N!=="."&&N!==".."))R=!0}if(!O&&!W&&!R)return console.error(`Security: Path traversal attempt blocked for include path: ${m}`),console.error(` Resolved to: ${o}`),console.error(` Allowed dirs: ${r}, ${w}`),null;return o}catch(p){return console.error(`Error resolving path ${m}: ${p}`),null}}let rt=A.resolve(c);n.add(rt);function j(m,k,x,p){return i.onIncludeError?.({includePath:m,templatePath:c,message:k,partialsDir:g}),h("Include",k,c,x,p)}async function et(m,k={},x,p){let r=U(m,g,c);if(!r)return j(m,`Could not resolve path for include: ${m}`,x,p);let w=A.resolve(r);if(n.has(w)){let l=[...n,w].map((o)=>A.basename(o)).join(" -> ");return j(m,`Circular include detected: ${l}`,x,p)}try{S.add(r);let l;if(!l)try{l=await Bun.file(r).text()}catch(v){let q=v instanceof Error?v.message:String(v);return j(m,`Error loading include file ${m}: ${q}`,x,p)}if(l)l=l.replace(/\{\{--[\s\S]*?--\}\}/g,"");if(l&&l.includes("@stream")){let{processStreamDirectives:v}=await import("./chunk-6cv4kv7w.js");l=v(l,t)}if(l&&(i.debug||!E()&&!En()))try{let{warnUnbalancedTags:v}=await import("./chunk-vqpypnys.js");v(l,r)}catch{}try{let{processESImports:v}=await import("./chunk-y191vfqa.js");l=await v(l,t,r,i,S)}catch(v){if(i.debug)console.warn(`[stx] partial ES import extraction skipped for ${r}:`,v instanceof Error?v.message:v)}let o=l,O=pe(o);if(O)o=O.content.trim();let R=l.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").match(/<style\b([^>]*)>([\s\S]*?)<\/style>/i),H="";if(R)H=`<style${R[1]}>${R[2]}</style>`;let z=[];o=o.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(v,q,y)=>{if(!ft(q))return"";return z.push({attrs:q,body:y}),`__STX_DATA_BLOCK_${z.length-1}__`}),o=o.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let b={...t};b.__stx_signals_gate=ke(l,r);for(let[v,q]of Object.entries(k))b[v]=q;let J=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,N=[...l.matchAll(J)].sort((v,q)=>{let y=(v[1]||"").includes("server"),X=(q[1]||"").includes("server");return Number(X)-Number(y)}),M="",C=null,L=!1,tt=!1;for(let v of N){let q=v[1]||"",y=v[2]||"";if(ft(q))continue;let X=q.includes("server"),wt=Be(q);if(!X&&!/\bsrc\s*=/i.test(q))Ne(y,r,i.strict);if(!X&&y.trim()){let{interpolateScriptExpressions:F}=await import("./chunk-mad9bbcp.js");y=F(y,b,m)}let ot="";try{let{extractAndStripCssImports:F,renderVendorStyleTags:Q}=await import("./chunk-wrr61y84.js"),st=F(y,{filePath:r,projectRoot:process.cwd()});y=st.code,ot=Q(st.styles)}catch(F){if(i.debug)console.warn(`[stx] vendor-css extractor skipped for ${r}:`,F instanceof Error?F.message:F)}if(wt&&y.trim())y=Fe(y);if(!X){try{let{injectBrowserCoreAutoImports:Q}=await import("./chunk-wrr61y84.js");y=Q(y).code;let{hasUserImports:st,bundleClientScript:bt}=await import("./chunk-xefcgvy6.js");if(st(y))y=await bt(y,r,{projectRoot:process.cwd()})}catch(Q){if(i.debug)console.warn(`[stx] bundler skipped for ${r}:`,Q instanceof Error?Q.message:Q)}let{stripStxRuntimeImports:F}=await import("./chunk-hjvv9dbw.js");y=F(y)}let dt=$t(y);if(!X){let{extractBridgeData:F,generateServerDataBridge:Q}=await import("./chunk-wrr61y84.js"),st=Q(y,F(b));if(st)y=`${st}
48
- ${y}`}if(dt&&!X){L=!0,C=ut(r,t);let F=I(y),Q=gt(F,C);M+=`${ot}<script data-stx-scoped data-stx-run="always" data-stx-owner="${C}">${Q}</script>
49
- `;continue}if(X)try{let{extractVariables:F}=await import("./chunk-zrrxw94h.js");await F(y,b,r)}catch(F){if(i.debug)console.warn(`Warning: Could not extract variables from server script in ${r}:`,F)}if(!X&&!dt){let F=q.replace(/\bclient\b/i,"").trim();C=ut(r,t);let Q=I(y),st=gt(Q,C);if(/__scopeRegistration\["(?!__stx)[^"]+"\]\s*=|Object\.defineProperty\(__scopeRegistration, "(?!__stx)/.test(st))tt=!0;M+=`${ot}<script data-stx-scoped data-stx-run="always" data-stx-owner="${C}"${F?` ${F}`:""}>${st}</script>
50
- `}}if(z.length>0){let{interpolateScriptExpressions:v}=await import("./chunk-mad9bbcp.js");o=o.replace(/__STX_DATA_BLOCK_(\d+)__/g,(q,y)=>{let X=z[Number(y)];return`<script${X.attrs}>${v(X.body,b,m)}</script>`})}if(C){let v=It(o,C);if(o=v.html,v.mergedIntoExisting){let y=C,X=v.mergedIntoExisting;M=M.split(`'${y}'`).join(`'${X}'`).split(`"${y}"`).join(`"${X}"`),C=X}else if(!v.stamped&&L&&!lt.has(r))lt.add(r),console.warn(`[stx] ${A.relative(process.cwd(),r)} declares signals but has no element to scope them to, so nothing in it will hydrate. Wrap the partial's markup in a single root element.`);if(v.stamped&&v.root!=="body"&&(L||tt)&&!pt.has(r)){let y=Nf(o);if(y.length>1)pt.add(r),console.warn(`[stx] ${A.relative(process.cwd(),r)} declares ${L?"signals":"bindings"} and has ${y.length} top-level elements (${y.map((X)=>`<${X}>`).join(", ")}). Only the first is scoped, so bindings in the others cannot see what this partial's script declares. Wrap the partial's markup in a single root element.`)}let q=v.stamped&&v.root!==null&&_r(v.root);M=Rt(M,q?C:null)}if(o.includes("@include")||o.includes("@partial"))o=await as(o,b,r,i,S,n);let{processLoops:nt,reportDeferredLoopWarnings:it}=await import("./chunk-29ptxt2j.js"),G=nt(o,b,r,void 0,!0);G=oe(G,b,r),G=it(G);let{processMetaDirectives:ht,processSeoDirective:xt,processStructuredData:_t}=await import("./chunk-j0w048sj.js");if(G=ht(G,b,r,i),G=_t(G,b,r),G=xt(G,b,r,i),G=_(G,b,r),H)G+=`
51
- `+H;if(M)G+=`
52
- `+M;return G}catch(l){if(l instanceof K)throw l;let o=l instanceof Error?l.message:String(l);return j(m,`Error processing include ${m}: ${o}`,x,p)}}let Y=/@include\s*\(/g,Z;while((Z=Y.exec(e))!==null){let m=Z.index,k=m+Z[0].length-1,x=1,p=k+1;while(p<e.length&&x>0){if(e[p]==="(")x++;else if(e[p]===")")x--;p++}if(x!==0)break;let r=e.substring(m,p),w=e.substring(k+1,p-1),l=w.match(/^\s*['"]([^'"]+)['"]/);if(!l){Y.lastIndex=p;continue}let o=l[1],O,W=w.substring(l[0].length),R=at(W,0);if(R!==-1)O=W.substring(R+1).trim();let H={};if(O)try{H=P(O,t)}catch(b){let J=b instanceof Error?b.message:String(b);e=e.replace(r,h("Include",`Error parsing include variables for ${o}: ${J}`,c,a,m)),Y.lastIndex=0;continue}let z=await et(o,H,a,m);e=e.substring(0,m)+z+e.substring(p),Y.lastIndex=0}return e}function cs(a,t){let c=a;function i(S,n,g,e){let D=S,U=!0;while(U){U=!1;let rt=new RegExp(`@${n}\\(['"]([^'"]+)['"]\\)`),j=D.match(rt);if(!j||j.index===void 0)break;let et=j.index,Y=j[1],Z=et+j[0].length,m=new RegExp(`@${n}\\(`),k=new RegExp(`@${g}(?![a-z])`),x=1,p=Z,r=-1;while(x>0&&p<D.length){let l=D.slice(p),o=l.match(m),O=l.match(k),W=o?p+o.index:1/0,R=O?p+O.index:1/0;if(W<R)x++,p=W+(o[0].length||1);else if(R<1/0){if(x--,x===0){r=R;break}p=R+g.length+1}else break}if(r===-1)break;let w=D.slice(Z,r);if(!t[Y])t[Y]=[];if(e)t[Y].unshift(w);else t[Y].push(w);D=D.substring(0,et)+D.substring(r+`@${g}`.length),U=!0}return D}return c=i(c,"push","endpush",!1),c=i(c,"prepend","endprepend",!0),c}function ls(a,t){return a.replace(/@stack\(['"]([^'"]+)['"]\)/g,(c,i)=>{if(!t[i]||t[i].length===0)return"";return t[i].join(`
53
- `)})}
54
- export{Ih,Nf,Ye,cc,Oh,as,cs,ls};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ps,Df,zo,Lf}from"./chunk-ykyf7513.js";import"./chunk-3bjnrmha.js";import"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{Pt}from"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Lf as declareBareLoopHead,Pt as parseLoopBinding,Df as processLoops,zo as processLoopsAsync,ps as reportDeferredLoopWarnings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Br,Fr,Vg,Ug,Wg,qg,Kg}from"./chunk-vfxkn1pe.js";export{Br as collectMessageCatalogs,Ug as loadPageMessages,Wg as messageAreasIn,qg as pageLanguages,Vg as pageMessagesEnabled,Kg as pageMessagesScript,Fr as pathSpellings};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{He,M,Lt}from"./chunk-vfj9wp11.js";import{T}from"./chunk-txd2js5v.js";import{gt,Ee,j,Ke,Te,fa,yo,ga,Nn}from"./chunk-qmqc9p98.js";import{kt,de,tt}from"./chunk-29f6vmyz.js";import{Oo}from"./chunk-02kycznh.js";import{Mn}from"./chunk-fvgk1w9s.js";import{we}from"./chunk-ztkd6mxj.js";import Z from"fs";import P from"path";var{serve:ce}=globalThis.Bun;import F from"zlib";import{promisify as Q}from"util";var K=Q(F.brotliCompress),ee=Q(F.gzip),te=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],ne=["text/event-stream","multipart/x-mixed-replace"],re=1024;function se(t){if(!t)return!1;let e=t.toLowerCase();if(ne.some((a)=>e.startsWith(a)))return!1;return te.some((a)=>e.startsWith(a))}function oe(t){let e=new Map;for(let a of t.split(",")){let[r,...i]=a.trim().split(";"),f=r.trim().toLowerCase();if(!f)continue;let h=1;for(let g of i){let l=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(g);if(!l)continue;let m=Number.parseFloat(l[1]);if(Number.isFinite(m))h=m}e.set(f,h)}return e}function ae(t){if(!t)return null;let e=oe(t),a=e.get("*"),r=(i)=>e.get(i)??a??0;if(r("br")>0)return"br";if(r("gzip")>0)return"gzip";return null}var Y=33554432,H=new Map,U=0;function ie(t,e){if(e.length>Y/8)return;H.set(t,e),U+=e.length;for(let[a,r]of H){if(U<=Y)break;H.delete(a),U-=r.length}}async function An(t,e,a={}){if(e.headers.get("content-encoding"))return e;if(e.status===204||e.status===304||!e.body)return e;if(!se(e.headers.get("content-type")))return e;let r=ae(t.headers.get("accept-encoding"));if(!r)return e;let i;try{i=new Uint8Array(await e.arrayBuffer())}catch{return e}let f=()=>new Response(i,{status:e.status,statusText:e.statusText,headers:J(e.headers)});if(i.length<(a.threshold??re))return f();try{let h=a.quality??5,g=`${r}:${h}:${i.length}:${Bun.hash(i)}`,l=H.get(g);if(!l)l=r==="br"?await K(i,{params:{[F.constants.BROTLI_PARAM_QUALITY]:h,[F.constants.BROTLI_PARAM_SIZE_HINT]:i.length}}):await ee(i),ie(g,l);if(l.length>=i.length)return f();let m=J(e.headers);return m.set("Content-Encoding",r),m.set("Content-Length",String(l.length)),new Response(l,{status:e.status,statusText:e.statusText,headers:m})}catch{return f()}}function J(t){let e=new Headers(t),a=e.get("Vary");if(!a)return e.set("Vary","Accept-Encoding"),e;if(!a.split(",").some((i)=>i.trim().toLowerCase()==="accept-encoding"))e.set("Vary",`${a}, Accept-Encoding`);return e}class G{now;entries=new T(1000,{maxBytes:33554432,sizeOf:(t)=>t.body.byteLength+JSON.stringify(t.headers).length*2});pending=new Map;generation=0;constructor(t=Date.now){this.now=t}invalidate(t){this.generation++,this.pending.clear();for(let e of Array.from(this.entries.keys()))if(t===void 0||this.entries.get(e)?.path===t)this.entries.delete(e)}async respond(t,e,a){let r,i=async()=>{let s=r??await a();return s.headers.set("Cache-Control","private, no-store"),s.headers.set("Vary",j(s.headers.get("Vary")).Vary),s};if(!e||t.method!=="GET"||t.headers.has("Cookie")||t.headers.has("Authorization")||t.headers.has("Range"))return i();let f=new URL(t.url),h=`${f.origin}${f.pathname}${f.search}|${Ee(t)?"fragment":"document"}`,g=this.entries.get(h),l=(s)=>{let b=new Headers(s.headers);return b.set("Cache-Control","private, no-store"),b.set("Age",String(Math.max(0,Math.floor((this.now()-s.created)/1000)))),new Response(s.body.slice(0),{headers:b})},m=g?(this.now()-g.created)/1000:1/0;if(g&&m<e.maxAge)return l(g);let v=this.generation,k=async()=>{let s=await a();r=s;let b=(s.headers.get("Vary")??"").toLowerCase().split(",").map((y)=>y.trim()).filter(Boolean);if(s.status!==200||s.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(s.headers.get("Cache-Control")??"")||b.some((y)=>y!=="x-stx-router"&&y!=="accept-encoding"))return null;let B=await s.clone().arrayBuffer();if(B.byteLength>1048576)return null;s.headers.set("Vary",j(s.headers.get("Vary")).Vary);let n={body:B,headers:Array.from(s.headers.entries()),created:this.now(),path:f.pathname};if(this.generation===v)this.entries.set(h,n);return n},x=this.pending.get(h);if(!x){if(this.pending.size>=1000)return i();x=k().finally(()=>{if(this.pending.get(h)===x)this.pending.delete(h)}),this.pending.set(h,x)}if(g&&m<e.maxAge+(e.swr??0))return x.catch(()=>{}),l(g);let E=await x;return E?l(E):i()}}var pe={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function Yg(t={}){let e=P.resolve(t.outputDir||".output"),a=t.port??3000,r=fa(e);if(!r)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${r.routes.length} routes...`);let i=Mn(r.routeRules),f=new G,h=Oo(e,r.apiRoutes??[]),g=Bun.file(P.join(e,"server/runtime-config.json")),l=t.runtimeConfig??(await g.exists()?await g.json():void 0),m=l?M(l):void 0,v=new Map,k=new Map,x=new Map,E=new Map;for(let n of r.routes)try{let y=P.join(e,n.compiledPath),c=JSON.parse(await Bun.file(y).text());if(m)c.html=Lt(c.html,m);v.set(n.pattern,c),x.set(n.pattern,tt(c.html)),E.set(n.pattern,we(c.html));let _=P.join(e,n.fragmentPath);if(Ke(c.html,r.routerContainer||"main")&&await Bun.file(_).exists()){let A=await Bun.file(_).text();k.set(n.pattern,m?Lt(A,m):A)}}catch(y){console.warn(`[stx] Failed to load route ${n.pattern}:`,y)}let s=new Map,b=[];for(let n of r.routes)if(n.hasParams){let{regex:y,params:c}=de(n.pattern,{page:!0});b.push({regex:y,route:n,paramNames:c})}else s.set(n.pattern,n);let B=ce({port:a,async fetch(n){return An(n,await He(m??M(),async()=>{let c=new URL(n.url).pathname;if(t.onRequest){let p=await t.onRequest(n);if(p)return p}if(t.apiRouter){let p=await t.apiRouter.handleRequest(n);if(p.status!==404)return p}if(t.apiRoutes?.[c])return t.apiRoutes[c](n);let _=await h(n);if(_)return _;if((n.method==="GET"||n.method==="HEAD")&&c!=="/"){let p=P.resolve(e,"public"),d;try{d=decodeURIComponent(c)}catch{d=c}if(!d.includes("\x00")){let u=P.resolve(p,`.${d}`);if(u===p||u.startsWith(`${p}${P.sep}`))try{if(Z.existsSync(u)&&Z.statSync(u).isFile()){let R=P.extname(u).toLowerCase(),L=pe[R]||"application/octet-stream",N=c.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(c);return new Response(Bun.file(u),{headers:{"Content-Type":L,"Cache-Control":N?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let A=Ee(n),C=null,q={};if(C=s.get(c)||null,!C)for(let{regex:p,route:d,paramNames:u}of b){let o=c.match(p);if(o){C=d,u.forEach((R,L)=>{q[R]=o[L+1]});break}}if(!C){let p=kt(c)?null:s.get("/404")||null;if(p){let d=v.get(p.pattern);if(d)return new Response(d.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404,headers:{"Content-Type":"text/plain; charset=utf-8"}})}let O=i(c),W=Object.keys(O).length>0;return f.respond(n,O.cache,async()=>{let p=v.get(C.pattern);if(A&&n.method==="GET"&&p&&!p.hasServerScripts&&Object.keys(p.placeholders).length===0){let o=k.get(C.pattern);if(o){let R=x.get(C.pattern);return new Response(o,{status:p.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...E.has(C.pattern)?{"X-STX-Runtime":E.get(C.pattern)?"true":"false"}:{},...R?{"X-STX-Layout":R.layout,"X-STX-Layout-Group":R.group}:{},...j(),...O.cache?{}:{"Cache-Control":gt}}})}}let d=yo(n.method),u=v.get(C.pattern);if(!u){let o=s.get("/500")||null;if(o){let R=v.get(o.pattern);if(R)return new Response(R.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(C.prerendered&&d)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!d&&!u.hasServerScripts&&Object.keys(u.placeholders).length===0)return new Response(u.html,{status:u.status??200,headers:{"Content-Type":"text/html",...j(),"Cache-Control":"public, max-age=60"}});try{let{html:o,boundaries:R,redirect:L,cookies:N,status:I,headers:D}=await Nn(u,{params:q,request:n,method:n.method,__stx_strict_hydration:W,__stx_runtime_config:m});if(L)return ga(L,N,D);if(R&&R.length>0){let{renderStreamingPage:S,streamToResponse:z}=await import("./chunk-6cv4kv7w.js"),X=new Headers({...j(),...D,"Cache-Control":"private, no-store"});for(let V of N??[])X.append("Set-Cookie",V);if(A&&!d&&Ke(o,r.routerContainer||"main")){let V=tt(o);X.set("X-STX-Fragment","true"),X.set("X-STX-Runtime",we(o)?"true":"false"),X.set("X-STX-Layout",V.layout),X.set("X-STX-Layout-Group",V.group)}return z(S(A&&!d&&Ke(o,r.routerContainer||"main")?Te(o,r.routerContainer||"main",!0):o,R,{timeoutMs:30000}),{status:I??u.status??200,headers:X})}let w=new Headers({"Content-Type":"text/html",...j(),...O.cache?{}:{"Cache-Control":"private, no-store"}});for(let S of N??[])w.append("Set-Cookie",S);for(let[S,z]of Object.entries(D??{}))w.set(S,z);if(w.set("Vary",j(w.get("Vary")).Vary),A&&!d&&Ke(o,r.routerContainer||"main")){let S=tt(o);return w.set("X-STX-Fragment","true"),w.set("X-STX-Runtime",we(o)?"true":"false"),w.set("X-STX-Layout",S.layout),w.set("X-STX-Layout-Group",S.group),new Response(Te(o,r.routerContainer||"main",!0),{status:I??u.status??200,headers:w})}return new Response(o,{status:I??u.status??200,headers:w})}catch(o){if(console.error(`[stx] Hydration error for ${c}:`,o),W)return new Response("Internal Server Error",{status:500});return new Response(u.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${B.port}`),console.log(`[stx] Serving ${r.routes.length} routes (${v.size} pre-loaded)`),{port:B.port,stop:()=>{f.invalidate(),B.stop()},invalidate:(n)=>f.invalidate(n)}}
3
- export{An,Yg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wa,cu,Hn,Mm,lu,uu,du,Dm}from"./chunk-64b0yzrm.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Hn as Validator,cu as defineForm,lu as processErrorDirective,uu as processErrorsDirective,Dm as processFormValidationDirectives,du as processHasErrorsDirective,wa as useForm,Mm as v};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Em,Tm,$m,Rm,Am,Pm,Im}from"./chunk-ckg6q98b.js";export{Tm as createKeepAliveCache,Rm as generateKeepAliveCSS,Am as generateKeepAliveRuntime,Pm as onActivated,Im as onDeactivated,Em as processKeepAliveDirectives,$m as shouldCacheComponent};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Lm,va,pu,jm,Bm,Fm,zm,Hm,fu,gu,Vm,Um,Wm,qm}from"./chunk-9snk4mzf.js";import"./chunk-rj68w7em.js";import"./chunk-yeg4cahs.js";import"./chunk-205gzszh.js";import"./chunk-s33andzg.js";import"./chunk-chcvz6y7.js";import"./chunk-mjf4naae.js";import"./chunk-ykyf7513.js";import"./chunk-3bjnrmha.js";import"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-ra967vfn.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{pu as SUSPENSE_RESOLVER_RUNTIME,va as buildSuspenseResolveScript,Hm as createStreamRenderer,Fm as extractStreamBoundaries,qm as generateHydrationRuntime,gu as islandDirective,Um as processSectionDirectives,Bm as processStreamDirectives,Vm as registerStreamingDirectives,jm as renderStreamingPage,Lm as streamTemplate,zm as streamTemplateSimple,Wm as streamToResponse,fu as streamingSuspenseDirective};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jm,Ym,Zm,Qm,eh,th}from"./chunk-myje6fhm.js";export{Qm as generateTransitionCSS,eh as generateTransitionRuntime,Jm as performEnter,Ym as performLeave,th as processTransitionAttributes,Zm as processTransitionDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{He,kn,qs,ki,M,Lt}from"./chunk-vfj9wp11.js";export{kn as currentRuntimeConfig,Lt as injectRuntimeConfig,M as resolveRuntimeConfig,ki as useRuntimeConfig,qs as useServerRuntimeConfig,He as withRuntimeConfig};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ff,Lh,jh,Bh,Fh,zf,Hf,zh,Hh,Jo,Vh,ur,dr,vs}from"./chunk-ra967vfn.js";import{rt}from"./chunk-car6nhfe.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Fh as __setSignalsGeneratorsForTest,rt as cacheEngineFingerprint,dr as cacheTemplate,ur as checkCache,Vh as clearDevCaches,Hf as getCachedRouterScript,zf as getCachedSignalsRuntime,zh as getServeClientAsset,Jo as getServeModuleBundle,vs as hashFilePath,jh as invalidateFileCache,Bh as invalidateFileCacheByDir,Lh as readFileCached,Hh as registerServeModuleBundle,Ff as templateCache};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{om}from"./chunk-ycf2qbmz.js";import"./chunk-qmqc9p98.js";import"./chunk-w0a6yz73.js";import"./chunk-dhdezdt2.js";import"./chunk-02kycznh.js";import"./chunk-rj68w7em.js";import"./chunk-yeg4cahs.js";import"./chunk-205gzszh.js";import"./chunk-s33andzg.js";import"./chunk-chcvz6y7.js";import"./chunk-mjf4naae.js";import"./chunk-ykyf7513.js";import"./chunk-3bjnrmha.js";import"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-ra967vfn.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{om as buildForProduction};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Vl,bm,Ul,Wl,wm,vm}from"./chunk-a40hrcq2.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{vm as applySlots,wm as extractSlotContent,bm as parseSlotElement,Vl as parseSlots,Wl as processSlots,Ul as renderSlot};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import i from"path";var dn=".stx",o="STX_DIR",e=null;function Rc(t){e=t?.trim()||null}function hr(){return process.env[o]?.trim()||e||dn}function c(t=process.cwd(),...n){let r=hr();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function yr(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==dn&&!n.startsWith(`${dn}/`))return t;let r=n.slice(dn.length+1);return r?i.join(hr(),r):hr()}
3
- export{dn,Rc,hr,c,yr};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{si,oi,kt,de,fr,$s,gr,Rs,As,Wf,qf,Kf,mr,Xf,Gf,Jf,Yf,Cc,Ec,Tc,ii,$c,Zf,_t,Ct,Et,Tt,$t,Rt,nt,Qf}from"./chunk-29f6vmyz.js";export{gr as Router,Jf as abortNavigation,$s as bracketPathToRegex,_t as clearMiddleware,Ec as createClientCookieManager,$t as createMiddlewareContext,Tt as createRouteLocation,Cc as createServerCookieManager,Tc as createStorageManager,Yf as defineMiddleware,qf as defineRoute,Kf as defineRoutes,Rs as findErrorPage,As as formatRoutes,oi as generateRouteManifest,si as generateRouteTypes,$c as getMiddleware,Ct as getMiddlewareNames,nt as getRouterScript,Qf as getRouterScriptDev,Zf as hasMiddleware,kt as isFileRequestPath,Et as loadMiddlewareFromDirectory,fr as matchRoute,Gf as navigateTo,de as patternToRegex,ii as registerMiddleware,Xf as resetRoutes,mr as route,Rt as runMiddleware,Wf as setAppUrl};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Yg}from"./chunk-3ahpedfv.js";import"./chunk-qmqc9p98.js";import"./chunk-dhdezdt2.js";import"./chunk-02kycznh.js";import"./chunk-mjf4naae.js";import"./chunk-ztkd6mxj.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Yg as startProductionServer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ji,Bi,Fi,Bg,zi,Hi,Fg,Vi,Ui,El,zg}from"./chunk-nyg0nbjj.js";export{ji as VideoProcessorCache,El as analyzeVideo,Bg as clearVideoCache,Ui as generateDASHManifest,Vi as generateHLSManifest,zi as generatePoster,Fg as generateSpriteSheet,Hi as generateThumbnails,Bi as getCachedVideoResult,zg as processVideo,Fi as setCachedVideoResult};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Al,Xg}from"./chunk-e75dntfb.js";export{Al as captureScreenshot,Xg as captureScreenshots};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Km}from"./chunk-b7tb00nz.js";export{Km as processDeferDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ri,sy,oy,dl,Ue,kg,Zs,iy,ay,cy,ly,uy,dy,py,fy,gy}from"./chunk-txd2js5v.js";export{dy as applyHead,iy as definePageMeta,Ri as getHead,sy as getPageMeta,Ue as mergeHeadConfigs,py as processHeadDirective,gy as processMetaDirective,fy as processTitleDirective,uy as renderBodyAttrs,cy as renderHead,ly as renderHtmlAttrs,oy as resetHead,Zs as seoMetaToHeadConfig,dl as useHead,ay as usePageTitle,kg as useSeoMeta,ay as useTitle};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{yt,Un,gh}from"./chunk-w0a6yz73.js";import{ue,Wn,mh,qn,xo,Jr,Yr,hh,yh,bh,Kn,Xn,So,Zr,wh}from"./chunk-rnm8ejpz.js";import"./chunk-4ntm3dtk.js";export{xo as batch,gh as default,Wn as derived,qn as effect,yt as generateSignalsRuntime,Un as generateSignalsRuntimeDev,Xn as isDerived,Kn as isSignal,mh as memo,Yr as onDestroy,Jr as onMount,Zr as peek,bh as pendingLifecycleCounts,yh as runDestroyCallbacks,hh as runMountCallbacks,ue as state,So as untrack,wh as useOptimistic};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{jr,oo,Hg,Tl,io}from"./chunk-p5r2p459.js";export{Hg as buildModuleRegistryScript,io as buildSharedModuleRegistries,Tl as exportsMutableBinding,jr as registeredModuleIdsIn,oo as registeredModuleNamesIn};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ha,ym}from"./chunk-q5pwvr98.js";export{ha as definePlugin,ym as pluginManager};
@@ -1,42 +0,0 @@
1
- // @bun
2
- import{ml,hl}from"./chunk-4ntm3dtk.js";import{f,P,ot,d}from"./chunk-txd2js5v.js";import{U,br,Ns,Ms,ai,ci,Ds,vr,fn,Me,fe,J,Sr,ie,Y,N,st,kr,di,Er,ze,s,p,W,xn}from"./chunk-af50ebx1.js";import{n}from"./chunk-mjf4naae.js";import{oe}from"./chunk-3bjnrmha.js";import{r}from"./chunk-fwktw49p.js";import{g}from"./chunk-0dve54ne.js";import{createHash as Ct}from"crypto";import Q from"fs";import Z from"path";import{decode as on,generateThumbHash as an}from"ts-images";import{createImageDeliveryCatalog as yt}from"ts-images/delivery";import je from"fs";function Ce(e,i,t){let o=Buffer.alloc(t),a=je.readSync(e,o,0,t,i);return o.subarray(0,a)}function Le(e){if(e.length<25)return!1;let i=(o,a)=>String.fromCharCode(...e.subarray(o,a));if(i(0,4)!=="RIFF"||i(8,12)!=="WEBP")return!1;let t=i(12,16);if(t==="VP8X")return(e[20]&16)!==0;if(t==="VP8L")return((e[21]|e[22]<<8|e[23]<<16|e[24]<<24)>>>28&1)===1;return!1}function Ue(e){let i;try{i=je.openSync(e,"r");let t=Ce(i,0,33);if(t.length>=3&&t[0]===255&&t[1]===216&&t[2]===255)return"none";if(t.length>=26&&t[0]===137&&t.toString("latin1",1,4)==="PNG"){let o=t[25];if(o===4||o===6)return"possible";let a=8;for(let c=0;c<64;c++){let l=Ce(i,a,8);if(l.length<8)return"unknown";let m=l.toString("latin1",4,8);if(m==="tRNS")return"possible";if(m==="IDAT"||m==="IEND")return"none";a+=12+l.readUInt32BE(0)}return"unknown"}if(t.length>=25&&t.toString("latin1",0,4)==="RIFF"&&t.toString("latin1",8,12)==="WEBP"){if(Le(t))return"possible";let o=t.toString("latin1",12,16);return o==="VP8 "||o==="VP8X"?"none":"unknown"}return"unknown"}catch{return"unknown"}finally{if(i!==void 0)je.closeSync(i)}}import Yt from"fs";import ke from"os";import{join as gt}from"path";import{fileURLToPath as pt}from"url";var Pe=Symbol("stx.image-worker.unavailable");function Qt(e=typeof ke.availableParallelism==="function"?ke.availableParallelism():ke.cpus().length){return Math.max(1,Math.min(2,e-1))}var Ae=0,ht=[];async function en(){if(Ae<Qt()){Ae++;return}await new Promise((e)=>ht.push(e)),Ae++}function tn(){Ae--,ht.shift()?.()}var nn="@stacksjs/stx/builtins/image-warmup-worker";function rn(e=process.cwd()){let i=import.meta.url.endsWith(".ts")?"ts":"js";try{let t=new URL(`./image-warmup-worker.${i}`,import.meta.url);if(t.protocol==="file:"&&Yt.existsSync(pt(t)))return pt(t)}catch{}try{let t=typeof Bun<"u"?Bun.resolveSync(nn,e):void 0;return t&&sn(t)?t:void 0}catch{return}}function sn(e,i=process.env){let t=e.replace(/\\/g,"/");if(t.split("/").some((a)=>/@\d[^/]*@@@\d+$/.test(a)))return!1;return![i.BUN_INSTALL_CACHE_DIR,gt(i.BUN_INSTALL||gt(ke.homedir(),".bun"),"install","cache")].filter((a)=>!!a).map((a)=>`${a.replace(/\\/g,"/").replace(/\/$/,"")}/`).some((a)=>t.startsWith(a))}var mt=!1;function ue(e){if(!mt)mt=!0,console.warn(`[stx] image worker unavailable (${e}); running the image pass on the serving thread instead. Results are the same, but requests may stall while it runs.`);return Pe}function Re(e){return e instanceof Error?e.message:String(e)}async function Fe(e,i){let t;try{t=(await import("worker_threads")).Worker}catch(a){return ue(`could not load node:worker_threads: ${Re(a)}`)}if(typeof t!=="function")return ue("node:worker_threads has no Worker in this runtime");let o=rn();if(!o)return ue("no image-warmup-worker entry beside this module or in the installed @stacksjs/stx");await en();try{return await new Promise((a,c)=>{let l;try{l=new t(o)}catch(y){a(ue(`could not start ${o}: ${Re(y)}`));return}let m=!1,u=!1,x=(y)=>{if(u)return;u=!0,y(),l.terminate()};l.on("message",(y)=>{if(y.type==="ready"){m=!0,l.postMessage({task:e,args:i});return}if(y.type==="result"){x(()=>a(y.value));return}let h=Error(y.error?.message??"image worker failed");if(y.error?.name)h.name=y.error.name;if(y.error?.stack)h.stack=y.error.stack;x(()=>c(h))}),l.on("error",(y)=>{x(()=>m?c(y instanceof Error?y:Error(Re(y)||"image worker crashed")):a(ue(`the worker failed before it was ready: ${Re(y)}`)))}),l.on("exit",(y)=>{x(()=>m?c(Error("image worker exited before it finished")):a(ue(`the worker exited with code ${y} before it was ready`)))})})}finally{tn()}}var cn=new Set([".avif",".jpeg",".jpg",".png",".webp"]),ln=[320,640,960,1280,1920],ye="/_stx/images",un=`stx:${ye}:alpha-1`,dn=`stx:${ye}:opaque-1`,gn=["@stacksjs/ts-webp","@stacksjs/ts-avif","ts-images"],Ie;function pn(e,i){let t=Z.dirname(Bun.resolveSync(e,i));while(t!==Z.dirname(t)){let o=Z.join(t,"package.json");if(Q.existsSync(o)){let a=JSON.parse(Q.readFileSync(o,"utf8"));if(a.name===e)return a.version}t=Z.dirname(t)}return}function bt(){if(Ie!==void 0)return Ie;let e;try{e=Z.dirname(Bun.resolveSync("ts-images",import.meta.dir))}catch{}return Ie=gn.map((i)=>{let t;try{t=e?pn(i,e):void 0}catch{}return`${i.replace("@stacksjs/","")}@${t??"unknown"}`}).join("+"),Ie}var vt=Symbol.for("stx.image-delivery");function be(){let e=globalThis;return e[vt]??={catalog:new Map,transparent:new Set},e[vt]}var xt=new Set;function mn(e){return`/${e.split(Z.sep).map(encodeURIComponent).join("/")}`}function hn(e){let i=Z.extname(e),t=e.slice(0,-i.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),o=Ct("sha256").update(e).digest("hex").slice(0,8);return`${t||"image"}-${o}`}function wt(e,i=`stx:${ye}`){let t=(o)=>`${ye}/${o.split("/").map(encodeURIComponent).join("/")}`;return{cacheNamespace:i,async stat(o){let a=Z.join(e,o);try{let c=await Q.promises.stat(a);return c.size>0?{bytes:c.size,path:a,url:t(o)}:null}catch{return null}},async write(o,a){let c=Z.join(e,o);await Q.promises.mkdir(Z.dirname(c),{recursive:!0});let l=`${c}.${process.pid}.tmp`;return await Q.promises.writeFile(l,a),await Q.promises.rename(l,c),{bytes:a.byteLength,path:c,url:t(o)}},url:t}}async function Rt(e,i=e){let t=await Q.promises.readdir(i,{withFileTypes:!0});t.sort((a,c)=>a.name.localeCompare(c.name));let o=[];for(let a of t){let c=Z.join(i,a.name);if(a.isDirectory()){o.push(...await Rt(e,c));continue}if(!a.isFile()||!cn.has(Z.extname(a.name).toLowerCase()))continue;o.push({absolutePath:c,relativePath:Z.relative(e,c)})}return o}function $t(e,i){return e.map((t)=>({key:mn(t.relativePath),input:t.absolutePath,name:hn(t.relativePath),...yn(t.absolutePath)?{options:{storage:i}}:{}}))}function yn(e){return Ue(e)==="possible"}function bn(e){for(let i=3;i<e.length;i+=4)if(e[i]!==255)return!0;return!1}async function vn(e){let i=Object.entries(e).filter(([,a])=>a.fallback.format==="png"),t=new Set,o=8;for(let a=0;a<i.length;a+=8)await Promise.all(i.slice(a,a+8).map(async([c,l])=>{let m=l.variants.filter((u)=>u.format==="png").sort((u,x)=>u.width-x.width)[0];try{let u=await on(new Uint8Array(await Q.promises.readFile(m?.path??l.fallback.path)));if(bn(u.data))t.add(c)}catch{t.add(c)}}));return t}function wn(e,i){let t=[];for(let o of i){let a=e[o],c=a?.variants.filter((m)=>m.format==="webp")??[];if(!a||c.length===0)continue;if(!c.some((m)=>{let u;try{return u=Q.openSync(m.path,"r"),!Le(Ce(u,0,32))}catch{return!0}finally{if(u!==void 0)Q.closeSync(u)}}))continue;if(a.variants=a.variants.filter((m)=>m.format!=="webp"),delete a.sources.webp,t.push(o),!xt.has(o))xt.add(o),console.warn(`[stx-images] ${o} is transparent but its WebP variants have no alpha channel; serving PNG instead. Upgrade @stacksjs/ts-webp to 0.1.6 or later.`)}return t}async function $n(e){let i=[],t=8;for(let o=0;o<e.length;o+=8){let a=e.slice(o,o+8),c=await Promise.all(a.map(async(l)=>{try{return await an(l.absolutePath),l}catch{return console.warn(`[stx-images] Skipping unreadable raster: ${l.relativePath}`),null}}));i.push(...c.filter((l)=>l!==null))}return i}function We(e){return Z.join(e,"undecodable.json")}function Sn(e){try{let i=Q.readFileSync(We(e),"utf-8"),t=JSON.parse(i);return t&&typeof t==="object"?t:{}}catch{return{}}}function Cn(e,i){try{Q.mkdirSync(Z.dirname(We(e)),{recursive:!0}),Q.writeFileSync(We(e),JSON.stringify(i))}catch{}}function St(e){try{let i=Q.statSync(e);return{mtimeMs:i.mtimeMs,size:i.size}}catch{return}}function kt(e){if(!e||e.startsWith("data:")||e.startsWith("blob:")||/^https?:\/\//i.test(e)||e.startsWith("//"))return;let i=e.split(/[?#]/,1)[0];if(!i)return;try{return`/${i.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function jo(e){let i=kt(e);return i?be().catalog.get(i):void 0}function Bo(e){let i=kt(e);return i?be().transparent.has(i):!1}function Fo(e){let i=(o)=>e.variants.filter((a)=>a.format===o).reduce((a,c)=>a+c.bytes,0),t=i(e.fallback.format);return["avif","webp"].map((o)=>({format:o,srcset:e.sources[o]||"",bytes:i(o)})).filter((o)=>o.srcset&&o.bytes>0&&o.bytes<t).sort((o,a)=>o.bytes-a.bytes).map(({format:o,srcset:a})=>({format:o,srcset:a}))}function Nh(e){let i=jo(e);if(!i)return;return{src:i.fallback.url,srcset:i.sources[i.fallback.format]||"",sources:Fo(i).map(({format:t,srcset:o})=>({type:`image/${t}`,srcset:o})),width:i.source.width,height:i.source.height,placeholder:Bo(e)?void 0:i.placeholder?.dataUrl}}function us(){let e=be();e.catalog=new Map,e.transparent=new Set}function Rn(e){let i=be();i.catalog=new Map(e.entries),i.transparent=new Set(e.transparent)}async function Mh(e,i,t={}){if(!e||!Q.existsSync(e))return us(),{count:0,fingerprint:""};if(t.offThread){let v=await Fe("delivery",{publicDir:e,outputDir:i});if(v!==Pe)return Rn(v.state),v.result}let o=await Rt(e);if(o.length===0)return us(),{count:0,fingerprint:""};let a=Sn(i),c=o.filter((v)=>{let b=a[v.relativePath];if(!b)return!0;let S=St(v.absolutePath);return!S||S.mtimeMs!==b.mtimeMs||S.size!==b.size});if(c.length===0)return us(),{count:0,fingerprint:""};let l=wt(Z.join(i,"_stx","images"),`${un}:${bt()}`),m={outDir:Z.join(i,"_stx","images"),storage:wt(Z.join(i,"_stx","images"),`${dn}:${bt()}`),baseUrl:ye,widths:ln,formats:["avif","webp"],quality:{avif:70,webp:78,jpeg:82,png:100},includeOriginal:!1,placeholder:!0,batchConcurrency:4,concurrency:4},u=c,x;try{x=await yt({...m,entries:$t(c,l)})}catch(v){if(u=await $n(c),u.length===c.length)throw v;let b=new Set(u.map((k)=>k.relativePath)),S=!1;for(let k of c){if(b.has(k.relativePath))continue;let A=St(k.absolutePath);if(!A)continue;a[k.relativePath]=A,S=!0}if(S)Cn(i,a);if(u.length===0)return us(),{count:0,fingerprint:""};x=await yt({...m,entries:$t(u,l)})}let y=await vn(x.entries),h=wn(x.entries,y),C=be();C.catalog=new Map(Object.entries(x.entries)),C.transparent=y;let w=y.size===0&&h.length===0?x.fingerprint:Ct("sha256").update(x.fingerprint).update(JSON.stringify({transparent:[...y].sort(),droppedWebp:h.sort()})).digest("hex");return{count:u.length,fingerprint:w}}class At{builtins=new Map;registerBuiltin(e){this.builtins.set(e.name.toLowerCase(),e);for(let i of e.aliases)this.builtins.set(i.toLowerCase(),e)}isBuiltin(e){return this.builtins.has(e.toLowerCase())}getBuiltin(e){return this.builtins.get(e.toLowerCase())??null}async resolveFile(e,i,t,o){let a=ai(e,o);if(a!==void 0)return a;for(let c of ci(e,i,t,o))if(await s(c))return c;return null}}var de=new At;var re="\x00stx-boolean-attribute";function He(e){return e.indexOf("\x00")===-1?e:e.replace(/\0/g,"")}var kn=new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","role","slot","spellcheck","style","tabindex","title","translate","accept","action","alt","autocomplete","capture","cite","cols","colspan","content","controls","datetime","default","download","enctype","for","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","href","hreflang","kind","label","loading","loop","max","maxlength","media","method","min","minlength","multiple","muted","name","open","pattern","placeholder","playsinline","poster","preload","readonly","referrerpolicy","rel","required","reversed","rows","rowspan","scope","selected","shape","size","span","src","srcdoc","srclang","srcset","start","step","target","type","usemap","value","width","wrap"]);function qe(e){let i=e.toLowerCase();return i.startsWith("aria-")||i.startsWith("data-")||kn.has(i)}function se(e,i){let t=[];for(let[o,a]of Object.entries(e.static)){if(i.has(o))continue;let c=e.staticNames?.[o]??o;if(typeof a==="boolean"){if(a)t.push(p(c));continue}if(a===re){t.push(p(c));continue}t.push(`${p(c)}="${xn(c,He(String(a)))}"`)}return t}function ae(e,i){let t=[];for(let[o,a]of Object.entries(e.serverDynamic??{})){if(i.has(o))continue;if(a===null||a===void 0||a===!1)continue;let c=e.serverDynamicNames?.[o]??o;if(a===!0){t.push(p(c));continue}if(typeof a==="object")continue;t.push(`${p(c)}="${xn(c,He(String(a)))}"`)}return t}function An(e){if(e.clientReactive.to)return{value:e.clientReactive.to,reactive:!0};if(e.serverDynamic.to!==void 0)return{value:String(e.serverDynamic.to),reactive:!1};if(typeof e.static.to==="string")return{value:e.static.to,reactive:!1};return{value:"#",reactive:!1}}var Xe={name:"StxLink",aliases:["stx-link"],render(e,i,t){let o=An(e),a=(typeof e.static.class==="string"?e.static.class:"")||(typeof e.static.className==="string"?e.static.className:""),c=typeof e.static.activeClass==="string"?e.static.activeClass:"active",l=typeof e.static.exactActiveClass==="string"?e.static.exactActiveClass:"exact-active",m=e.static.prefetch===!0||e.static.prefetch==="true"||e.serverDynamic.prefetch===!0,u=[];if(o.reactive)u.push(`:href="${n(o.value)}"`);else u.push(`href="${n(vr(o.value,"navigable"))}"`);if(a)u.push(`class="${n(a)}"`);if(u.push("data-stx-link"),u.push(`data-stx-active-class="${n(c)}"`),u.push(`data-stx-exact-active-class="${n(l)}"`),m)u.push("data-stx-prefetch");let x=typeof e.static.activeMatch==="string"?e.static.activeMatch.trim():"";if(x)u.push(`data-stx-active-match="${n(x)}"`);let y=new Set(["to","class","className","activeClass","exactActiveClass","activeMatch","prefetch"]);return u.push(...se(e,y)),u.push(...ae(e,y)),`<a ${u.join(" ")}>${i}</a>`}};var Pn=new Map;function Ve(e){if(!e)return;let i=e.split("?")[0].split("#")[0];return Pn.get(i)}var In={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Ze=[320,640,768,1024,1280,1536,1920];function V(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function _e(e,i,t=!1){let o=e.serverDynamic[i];if(o!==void 0)return o!==!1&&o!=="false";let a=e.static[i];if(a!==void 0)return a!=="false"&&a!==!1;return t}function Ge(e){if(e.includes("(")||e.includes(","))return e;let i=e.trim().split(/\s+/),t=[];for(let o of i)if(o.includes(":")){let[a,c]=o.split(":"),l=In[a];if(l)t.push(`(max-width: ${l}px) ${c}`);else{let m=Number.parseInt(a);if(!Number.isNaN(m))t.push(`(max-width: ${m}px) ${c}`)}}else t.push(o);return t.join(", ")}function Ke(e,i,t,o){return i.map((a)=>`${ve(e,a,void 0,t,o)} ${a}w`).join(", ")}function _n(e,i,t,o,a){return i.map((c)=>{let l=t?t*c:void 0;return`${ve(e,l,void 0,o,a)} ${c}x`}).join(", ")}function ve(e,i,t,o,a){if(!o||o==="local"||o==="static")return e;if(o==="cloudinary"){let c=[];if(i)c.push(`w_${i}`);if(t)c.push(`h_${t}`);if(a)c.push(`f_${a}`);c.push("q_auto");let l=c.join(",");return e.replace("/upload/",`/upload/${l}/`)}if(o==="imgix"){let c=new URLSearchParams;if(i)c.set("w",String(i));if(t)c.set("h",String(t));if(a)c.set("fm",a);c.set("auto","format");let l=e.includes("?")?"&":"?";return`${e}${l}${c.toString()}`}if(o==="bunny"){let c=new URLSearchParams;if(i)c.set("width",String(i));if(t)c.set("height",String(t));if(a)c.set("format",a);let l=e.includes("?")?"&":"?";return`${e}${l}${c.toString()}`}return e}function En(e){return`var s=this.style;${e.map((i)=>`s.${i}=''`).join(";")}`}function Nn(e,i,t="#e5e7eb"){let o=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${i}"><rect width="100%" height="100%" fill="${t}"/></svg>`;return`data:image/svg+xml;base64,${btoa(o)}`}var Je={name:"StxImage",aliases:["Image","stx-image","stx-img"],render(e,i,t){let o=V(e,"src")||"",a=jo(o),c=V(e,"alt")||"",l=V(e,"width")||(a?String(a.source.width):void 0),m=V(e,"height")||(a?String(a.source.height):void 0),u=V(e,"sizes"),x=V(e,"srcset"),y=V(e,"densities"),h=V(e,"format"),C=Bo(o)||Ve(o)?.transparent===!0,w=V(e,"placeholder")||(a&&!C?"thumbhash":void 0),v=V(e,"placeholderColor")||"#e5e7eb",b=V(e,"provider"),S=V(e,"class")||V(e,"className")||"",k=V(e,"style")||"",A=V(e,"objectFit")||V(e,"fit"),R=V(e,"objectPosition")||V(e,"position"),B=V(e,"quality"),G=_e(e,"lazy",!0),M=_e(e,"preload",!1),F=_e(e,"priority",!1),H=V(e,"loading"),E=V(e,"decoding")||"async",D=!!a||_e(e,"picture",!1)||!!h,O=l?Number.parseInt(l):void 0,q=m?Number.parseInt(m):void 0,z=x||"",X="";if(a)z=a.sources[a.fallback.format]||"",X=u?Ge(u):"100vw";else if(!z&&u&&b&&b!=="local"&&b!=="static")z=Ke(o,Ze,b,h),X=Ge(u);else if(!z&&y){let I=y.split(/\s+/).map((_)=>Number.parseFloat(_.replace("x","")));z=_n(o,I,O,b,h)}else if(u)X=Ge(u);let L=[];if(k)L.push(k);if(A)L.push(`object-fit:${A}`);if(R)L.push(`object-position:${R}`);if(O&&q)L.push(`aspect-ratio:${O}/${q}`);let T=[],ce=w==="blur"||w==="color"||w==="thumbhash";if(ce&&!C){let I=a?.placeholder?{dataUrl:a.placeholder.dataUrl,color:v}:Ve(o);if(I&&w==="color")L.push(`background-color:${I.color}`),T.push("backgroundColor");else if(I)L.push(`background-color:${I.color}`),L.push(`background-image:url(${I.dataUrl})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),T.push("backgroundColor","backgroundImage");else{let _=Nn(O||16,q||9,v);L.push(`background-image:url(${_})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),T.push("backgroundImage")}}else if(!ce&&w&&w!=="empty"&&w!=="none")L.push(`background-image:url(${n(w)})`),L.push("background-size:cover"),L.push("background-repeat:no-repeat"),T.push("backgroundImage");let $e=a?.fallback.url||ve(o,O,q,b,h),K=[];if(K.push(`src="${n(vr($e,"fetched"))}"`),K.push(`alt="${n(c)}"`),l)K.push(`width="${n(l)}"`);if(m)K.push(`height="${n(m)}"`);let le=H||(F||M?"eager":G?"lazy":"");if(le)K.push(`loading="${n(le)}"`);if(F)K.push('fetchpriority="high"');if(K.push(`decoding="${n(E)}"`),S)K.push(`class="${n(S)}"`);if(L.length>0)K.push(`style="${n(L.join(";"))}"`);if(z)K.push(`srcset="${n(vr(z,"fetched"))}"`);if(X)K.push(`sizes="${n(X)}"`);let te=new Set(["src","alt","width","height","lazy","sizes","srcset","placeholder","placeholderColor","class","className","style","objectFit","objectPosition","fit","position","format","provider","quality","densities","preload","priority","picture","loading","decoding"]);if(T.length>0){let I=typeof e.static.onload==="string"?e.static.onload:"",_=En(T)+(I?`;${I}`:"");K.push(`onload="${n(_)}"`),te.add("onload")}K.push(...se(e,te)),K.push(...ae(e,te));let Te=`<img ${K.join(" ")} />`,j="";if(M){let _=h==="webp"?"image/webp":h==="avif"?"image/avif":"";j=`<link rel="preload" as="image" href="${n($e)}"${_?` type="${_}"`:""}${z?` imagesrcset="${n(z)}"`:""}${X?` imagesizes="${n(X)}"`:""} />
3
- `}if(D){let I=[];if(a)for(let _ of Fo(a))I.push(`<source type="image/${_.format}" srcset="${n(_.srcset)}"${X?` sizes="${n(X)}"`:""} />`);if(!a&&(h==="avif"||h==="auto")){let _=ve(o,O,q,b,"avif"),ee=z?Ke(o,Ze,b,"avif"):`${_}`;I.push(`<source type="image/avif" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}if(!a&&(h==="webp"||h==="auto")){let _=ve(o,O,q,b,"webp"),ee=z?Ke(o,Ze,b,"webp"):`${_}`;I.push(`<source type="image/webp" srcset="${n(ee)}"${X?` sizes="${n(X)}"`:""} />`)}return`${j}<picture>
4
- ${I.join(`
5
- `)}
6
- ${Te}
7
- </picture>`}return`${j}${Te}`}};var Pt="/images/safe-image-default.svg";function ge(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var On=`<script>window.__stxSafeImageHandler||(window.__stxSafeImageHandler=function(i){if(i.__stx_fb)return;i.__stx_fb=1;var f=i.getAttribute('data-fallback')||'${Pt}';var c=i.getAttribute('data-fallback-class');i.src=f;if(c)i.className=c;});</script>`,Ye={name:"SafeImage",aliases:["safe-image","safe-img"],render(e,i,t){let o=ge(e,"src")||"",a=ge(e,"alt")||"",c=ge(e,"fallback")||Pt,l=ge(e,"class")||ge(e,"className")||"",m=ge(e,"fallbackClassName")||"",u=[];if(u.push(`src="${n(o)}"`),u.push(`alt="${n(a)}"`),l)u.push(`class="${n(l)}"`);if(u.push(`data-fallback="${n(c)}"`),m)u.push(`data-fallback-class="${n(m)}"`);u.push('onerror="window.__stxSafeImageHandler(this)"');let x=new Set(["src","alt","fallback","class","className","fallbackClassName"]);u.push(...se(e,x)),u.push(...ae(e,x));let y=`<img ${u.join(" ")} />`,h=t.context;if(!h.__safeImageHandlerEmitted)return h.__safeImageHandlerEmitted=!0,`${On}${y}`;return y}};function Qe(e){return e.replace(/[;{}()]/g,"").replace(/url/gi,"")}function xe(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function Ee(e,i,t){let o=xe(e,i);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return t}var et={name:"StxLoadingIndicator",aliases:["stx-loading-indicator"],render(e,i,t){let o=Qe(xe(e,"color")||"#6366f1"),a=Qe(xe(e,"initialColor")||xe(e,"initial-color")||""),c=Qe(xe(e,"height")||"3px"),l=Ee(e,"duration",2000),m=Ee(e,"throttle",200),u=Ee(e,"zIndex",999999)||Ee(e,"z-index",999999),x=a?`linear-gradient(to right, ${a}, ${o})`:o;return`
8
- <div id="stx-loading-indicator" style="position:fixed;top:0;left:0;right:0;height:${c};background:${x};z-index:${u};transform:scaleX(0);transform-origin:left;transition:transform 0.1s ease-out,opacity 0.3s ease;opacity:0;pointer-events:none">
9
- <div style="position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.4) 50%,transparent 100%);animation:stx-shimmer 1.5s infinite"></div>
10
- </div>
11
- <style>@keyframes stx-shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}</style>
12
- <script>
13
- (function(){var el=document.getElementById('stx-loading-indicator'),p=0,l=!1,i=null;function u(v){p=Math.min(Math.max(v,0),100);if(el){el.style.opacity=p>0?'1':'0';el.style.transform='scaleX('+(p/100)+')'}}window.stxLoading={start:function(){l=!0;p=0;u(10);if(i)clearInterval(i);i=setInterval(function(){if(!l)return;var r=90-p,inc=Math.max(0.5,r*0.1);if(p<90)u(p+inc)},${m})},finish:function(){l=!1;if(i){clearInterval(i);i=null}u(100);setTimeout(function(){if(el)el.style.opacity='0';setTimeout(function(){p=0;if(el)el.style.transform='scaleX(0)'},300)},200)},set:function(v){u(v)},clear:function(){l=!1;p=0;if(i){clearInterval(i);i=null}if(el){el.style.opacity='0';el.style.transform='scaleX(0)'}}};document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a');if(!a)return;var h=a.getAttribute('href');if(!h||h.startsWith('http')||h.startsWith('#')||h.startsWith('mailto:')||h.startsWith('tel:')||a.target==='_blank')return;window.stxLoading.start()});window.addEventListener('popstate',function(){window.stxLoading.start()});window.addEventListener('load',function(){window.stxLoading.finish()})})();
14
- </script>`}};function _t(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}function Bn(e,i,t){let o=_t(e,i);if(o!==void 0){let a=Number.parseInt(o,10);if(!Number.isNaN(a))return a}return t}var It={"top-right":"top:1rem;right:1rem","top-left":"top:1rem;left:1rem","top-center":"top:1rem;left:50%;transform:translateX(-50%)","bottom-right":"bottom:1rem;right:1rem","bottom-left":"bottom:1rem;left:1rem","bottom-center":"bottom:1rem;left:50%;transform:translateX(-50%)"},tt={name:"StxToast",aliases:["stx-toast"],render(e,i,t){let o=n(_t(e,"position")||"top-right"),a=Bn(e,"max",5),c=It[o]||It["top-right"];return`<div id="stx-toast-container" data-stx-toast-position="${o}" data-stx-toast-max="${a}" style="position:fixed;${c};z-index:999999;display:flex;flex-direction:column;gap:0.5rem;pointer-events:none;max-width:24rem;width:100%"></div>
15
- <style>
16
- @keyframes stx-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
17
- @keyframes stx-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}
18
- @keyframes stx-toast-in-left{from{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}
19
- @keyframes stx-toast-out-left{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-100%)}}
20
- @keyframes stx-toast-in-center{from{opacity:0;transform:translateY(-1rem)}to{opacity:1;transform:translateY(0)}}
21
- @keyframes stx-toast-out-center{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-1rem)}}
22
- </style>`}};function Ne(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var Et={sm:"max-width:24rem",md:"max-width:32rem",lg:"max-width:42rem",xl:"max-width:56rem",full:"max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)"},nt={name:"StxModal",aliases:["stx-modal"],render(e,i,t){let o=Ne(e,"id");if(!o)return console.warn('[stx] <StxModal> requires an "id" prop'),"<!-- StxModal: missing id prop -->";let a=n(o),c=Ne(e,"size")||"md",l=Ne(e,"closeOnBackdrop")!=="false",m=Ne(e,"closeOnEscape")!=="false",u=Et[c]||Et.md;return`<div id="stx-modal-${a}" class="stx-modal-backdrop" data-stx-modal="${a}" data-close-backdrop="${l}" data-close-escape="${m}" style="display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);backdrop-filter:blur(2px);opacity:0;transition:opacity 0.2s ease" aria-modal="true" role="dialog">
23
- <div class="stx-modal-panel" style="${u};width:100%;margin:1rem;border-radius:0.75rem;box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow:hidden;transform:scale(0.95) translateY(8px);transition:transform 0.2s ease,opacity 0.2s ease;opacity:0;background:var(--stx-modal-bg,#fff);color:var(--stx-modal-text,#1f2937)">
24
- <div style="padding:1.5rem">${i}</div>
25
- </div>
26
- </div>
27
- <style>
28
- @media(prefers-color-scheme:dark){[data-stx-modal]{--stx-modal-bg:#1f2937;--stx-modal-text:#f3f4f6}}
29
- .stx-modal-backdrop[data-stx-modal-open]{display:flex!important;opacity:1}
30
- .stx-modal-backdrop[data-stx-modal-open] .stx-modal-panel{transform:scale(1) translateY(0);opacity:1}
31
- </style>`}};function pe(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);let t=e.static[i];if(typeof t==="string")return t;return}var Nt={sm:"16rem",md:"24rem",lg:"32rem",xl:"40rem"},rt={name:"StxDrawer",aliases:["stx-drawer"],render(e,i,t){let o=pe(e,"id");if(!o)return console.warn('[stx] <StxDrawer> requires an "id" prop'),"<!-- StxDrawer: missing id prop -->";let a=n(o),c=pe(e,"side")||"right",l=pe(e,"size")||"md",m=pe(e,"closeOnBackdrop")!=="false",u=pe(e,"closeOnEscape")!=="false",x=pe(e,"overlay")!=="false",y=Nt[l]||Nt.md,h=c==="left",C=h?"left:0":"right:0",w=h?"translateX(-100%)":"translateX(100%)",v=h?"stx-drawer-slide-left":"stx-drawer-slide-right";return`<div id="stx-drawer-${a}" class="stx-drawer-backdrop" data-stx-drawer="${a}" data-close-backdrop="${m}" data-close-escape="${u}" style="display:none;position:fixed;inset:0;z-index:99999;${x?"background:rgba(0,0,0,0.5);backdrop-filter:blur(2px)":"background:transparent;pointer-events:none"};opacity:0;transition:opacity 0.2s ease" role="dialog" aria-modal="true">
32
- <div class="stx-drawer-panel" style="position:fixed;top:0;bottom:0;${C};width:${y};max-width:100vw;transform:${w};transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);background:var(--stx-drawer-bg,#fff);color:var(--stx-drawer-text,#1f2937);box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow-y:auto;pointer-events:auto">
33
- <div style="padding:1.5rem">${i}</div>
34
- </div>
35
- </div>
36
- <style>
37
- @media(prefers-color-scheme:dark){[data-stx-drawer]{--stx-drawer-bg:#1f2937;--stx-drawer-text:#f3f4f6}}
38
- .stx-drawer-backdrop[data-stx-drawer-open]{display:block!important;opacity:1}
39
- .stx-drawer-backdrop[data-stx-drawer-open] .stx-drawer-panel{transform:translateX(0)}
40
- </style>`}};import{existsSync as Dn,readFileSync as Tn}from"fs";var Oe=new Map,Ot=new Set;function jn(e){if(Ot.has(e))return;Ot.add(e),console.warn(`[stx] icon collection "${e}" is not installed, so its icons render as nothing. Install it with \`bun add -d @iconify-json/${e}\`.`)}function Mn(e){let i=process.cwd();for(let t of[`${i}/node_modules/@iconify-json/${e}/icons.json`,`${i}/pantry/@iconify-json/${e}/icons.json`,`${i}/node_modules/@iconify/json/json/${e}.json`,`${i}/pantry/@iconify/json/json/${e}.json`])if(Dn(t))return t;for(let t of[`@iconify-json/${e}/icons.json`,`@iconify/json/json/${e}.json`])try{return g.resolve(t)}catch{}return null}function Ln(e){if(Oe.has(e))return Oe.get(e);let i=Mn(e);if(!i)return jn(e),null;try{let t=JSON.parse(Tn(i,"utf8"));return Oe.set(e,t),t}catch{return null}}function zn(e,i,t,o){let a=[];if(i.rotate)a.push(`rotate(${i.rotate*90} ${t/2} ${o/2})`);if(i.hFlip)a.push(`translate(${t} 0) scale(-1 1)`);if(i.vFlip)a.push(`translate(0 ${o}) scale(1 -1)`);return a.length?`<g transform="${a.join(" ")}">${e}</g>`:e}function Un(e,i){let t=i,o=e.icons[t],a={hFlip:!1,vFlip:!1,rotate:0};for(let m=0;!o&&m<8;m++){let u=e.aliases?.[t];if(!u)return null;if(u.hFlip)a.hFlip=!a.hFlip;if(u.vFlip)a.vFlip=!a.vFlip;if(u.rotate)a.rotate=((a.rotate+u.rotate)%4+4)%4;t=u.parent,o=e.icons[t]}if(!o)return null;let c=o.width??e.width??24,l=o.height??e.height??24;return{body:zn(o.body,a,c,l),width:c,height:l}}function me(e,i){if(e.serverDynamic[i]!==void 0)return String(e.serverDynamic[i]);if(e.static[i]!==void 0)return String(e.static[i]);if(e.clientReactive[i]!==void 0)return e.clientReactive[i];return}var it={name:"Icon",aliases:["icon","stx-icon"],render(e,i,t){let o=me(e,"name")??me(e,"icon");if(!o)return"<!-- Icon: missing name/icon prop -->";let a="lucide",c=o;if(o.includes(":")){let S=o.split(":");a=S[0],c=S[1]}let l=n(me(e,"size")||"24"),m=n(me(e,"color")||"currentColor"),u=n(me(e,"class")||""),x=n(me(e,"style")||""),y=Oe.get(a)??Ln(a);if(!y)return`<!-- Icon: collection "${a}" not loaded -->`;let h=Un(y,c);if(!h)return`<!-- Icon: "${c}" not found in ${a} -->`;let C=`0 0 ${h.width} ${h.height}`,w=h.body;if(m!=="currentColor")w=w.replace(/currentColor/g,m);let v=u?` class="${u}"`:"",b=x?` style="${x}"`:"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${l}" height="${l}" viewBox="${C}" fill="none"${v}${b}>${w}</svg>`}};function Bt(e,...i){for(let t of i){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let o=e.static[t];if(typeof o==="string")return o}return}function Dt(e,i){let t=new RegExp(`<(template|div|span)[^>]*\\bslot=["']${i}["'][^>]*>([\\s\\S]*?)<\\/\\1>`,"i"),o=e.match(t);if(!o)return{region:null,rest:e};return{region:o[2],rest:e.replace(o[0],"")}}var at={name:"Suspense",aliases:["suspense"],render(e,i,t){let o=Dt(i,"fallback"),a=o.rest,c=Dt(a,"error"),l=c.rest,m=o.region??Bt(e,"fallback")??'<div class="stx-suspense-loading">Loading\u2026</div>',u=c.region??Bt(e,"errorFallback","error-fallback")??'<div class="stx-suspense-error">Something went wrong.</div>';return`<div data-stx-suspense><div data-stx-suspense-fallback>${m}</div><div data-stx-suspense-error hidden>${u}</div><div data-stx-suspense-content hidden>${l}</div></div>`}};function Be(e,...i){for(let t of i){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let o=e.static[t];if(typeof o==="string")return o}return}var ct={name:"TransitionGroup",aliases:["transition-group"],render(e,i,t){let o=(Be(e,"name")||"v").replace(/["'<>]/g,""),a=(Be(e,"tag")||"div").replace(/[^a-z0-9-]/gi,"")||"div",c=Be(e,"class"),l=Be(e,"id"),m=[`data-stx-transition-group="${o}"`,c?`class="${c}"`:"",l?`id="${l}"`:""].filter(Boolean).join(" ");return`<${a} ${m}>${i}</${a}>`}};function Tt(e=de){e.registerBuiltin(Xe),e.registerBuiltin(Je),e.registerBuiltin(Ye),e.registerBuiltin(et),e.registerBuiltin(tt),e.registerBuiltin(nt),e.registerBuiltin(rt),e.registerBuiltin(it),e.registerBuiltin(at),e.registerBuiltin(ct)}var jt=new Map;function Fn(e){let i=jt.get(e.source);if(!i)i=new RegExp(`(${e.source})(?![\\w.:-])`,"y"),jt.set(e.source,i);return i}var Mt=new WeakMap;function Lt(e){let i=Mt.get(e);if(!i)i=new Set([...e].map((o)=>o.toLowerCase())),Mt.set(e,i);let t=i;return(o)=>!/[a-z]/.test(o)&&t.has(o.toLowerCase())}function Wn(e,i){let t="";for(let o=i;o<e.length;o++){let a=e[o];if(t){if(a==="\\")o++;else if(a===t)t=""}else if(a==='"'||a==="'")t=a;else if(a===">")return o}return e.length}function zt(e,i,t){let o=[],a=0,c=typeof t==="function"?t:t?(l)=>t.has(l.toLowerCase()):void 0;while(a<e.length){let l=e.indexOf("<",a);if(l===-1)break;let m=Fn(i);m.lastIndex=l+1;let u=m.exec(e);if(!u){a=l+1;continue}let x=u[1];if(c&&c(x)){let S=l+1+x.length;while(S<e.length&&e[S]!==">")S++;a=S+1;continue}let y=l+1+x.length,h=null,C=y,w=-1,v=!1;while(y<e.length){let S=e[y];if(h){if(S==="\\"&&y+1<e.length){y+=2;continue}if(S===h)h=null;y++;continue}if(S==='"'||S==="'"){h=S,y++;continue}if(S==="/"&&y+1<e.length&&e[y+1]===">"){w=y+2,v=!0;break}if(S===">"){w=y+1;break}y++}if(w===-1){a=l+1;continue}let b=e.slice(C,v?w-2:w-1).trim();if(v)o.push({fullMatch:e.slice(l,w),tagName:x,attributes:b,content:"",startIndex:l,endIndex:w,isSelfClosing:!0}),a=w;else{let S=`<${x}`,k=`</${x}>`,A=1,R=w,B=-1;while(A>0&&R<e.length){let F=e.indexOf(S,R),H=e.indexOf(k,R);if(H===-1)break;if(F!==-1&&F<H){let E=e[F+S.length];if(E===" "||E===">"||E==="/"||E===`
41
- `||E==="\t"){let D=Wn(e,F+S.length);if(e[D-1]!=="/")A++;R=D+1}else R=F+S.length}else{if(A--,A===0){B=H;break}R=H+k.length}}if(B===-1){a=w;continue}let G=e.slice(w,B),M=B+k.length;o.push({fullMatch:e.slice(l,M),tagName:x,attributes:b,content:G,startIndex:l,endIndex:M,isSelfClosing:!1}),a=M}}return o}function lt(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#0?39;/g,"'").replace(/&#x27;/gi,"'").replace(/&amp;/g,"&")}function Ut(e,i){try{let t=Buffer.from(e,"base64").toString("utf8");return JSON.parse(t)}catch{}try{let t=e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");return JSON.parse(t)}catch(t){if(i?.debug)console.error("Error decoding __stx_ prop:",t);return e}}function De(e,i){let t=0,o="",a=i;while(a<e.length){let c=e[a];if(o){if(c==="\\")a++;else if(c===o)o=""}else if(c==='"'||c==="'"||c==="`")o=c;else if(c==="{")t++;else if(c==="}"){if(t--,t===0)return e.slice(i,a+1)}a++}return e.slice(i)}function Ft(e){let i=e.trim();if(!i.startsWith("{")||!i.endsWith("}"))return null;if(De(i,0).length!==i.length)return null;return i.slice(1,-1).trim()}function Wt(e){let i=[],t=0,o=e.length;while(t<o){while(t<o&&/\s/.test(e[t]))t++;if(t>=o)break;let a="";while(t<o&&!/[\s=]/.test(e[t]))a+=e[t],t++;if(!a)break;while(t<o&&/\s/.test(e[t]))t++;if(t<o&&e[t]==="="){t++;while(t<o&&/\s/.test(e[t]))t++;let c="";if(t<o&&(e[t]==='"'||e[t]==="'")){let l=e[t];t++;while(t<o&&e[t]!==l){if(e[t]==="\\"&&t+1<o)t++,c+=e[t];else c+=e[t];t++}if(t<o)t++}else if(e[t]==="{")c=De(e,t),t+=c.length;else while(t<o&&!/\s/.test(e[t]))c+=e[t],t++;i.push({name:a,value:c})}else i.push({name:a,value:!0})}return i}var Hn=new Set(["disabled","checked","readonly","required","autofocus","autoplay","controls","default","defer","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","reversed","selected"]),qn=new Set([":for","x-for","v-for","@for"]),Xn=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function Vn(e){return ut(e).map((i)=>[i.start,i.end])}function ut(e){let i=[],t=new Map;for(let o of fn(e)){let a=o.name.toLowerCase();if(o.closing){let x=t.get(a)?.pop();if(x)x.end=o.end;continue}let l=/(?::for|x-for|v-for|@for)\s*=/.test(o.attributes)?Wt(o.attributes).find((x)=>qn.has(x.name)):void 0,m=typeof l?.value==="string"?l.value:null,u=m!==null?{start:o.start,end:o.end,names:Y(m)}:null;if(u)i.push(u);if(!o.selfClosing&&!Xn.has(a)){let x=t.get(a);if(!x)x=[],t.set(a,x);x.push(u)}}return i}function Ht(e){if(typeof e==="string")return e;if(Array.isArray(e))return e.filter(Boolean).map((i)=>Ht(i)).join(" ");if(e&&typeof e==="object")return Object.entries(e).filter(([,i])=>i).map(([i])=>i).join(" ");return e?String(e):""}function lc(e,i){if(!/:[\w-]+=/.test(e))return e;let t=e,o=/<(script|style)\b[^>]*>[\s\S]*?<\/\1>/gi,a=[],c;while((c=o.exec(e))!==null)a.push([c.index,c.index+c[0].length]);a.push(...Vn(e));let l=new Set([...st(i),...Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[]]);function m(h){return a.some(([C,w])=>h>=C&&h<w)}let u=[],x=new Map,y=256;for(let h of fn(t)){if(h.closing||m(h.start))continue;let C=h.attributes.trimEnd();if(!C||!C.includes(":"))continue;let w=/(?:^|\s)data-native(?:\s|=|$)/i.test(C.replace(/"[^"]*"|'[^']*'/g,"")),v=/\s:([a-zA-Z_][\w-]*)\s*=\s*"([^"]*)"/g,b,S=C,k=!1;while((b=v.exec(C))!==null){if(Sr(C,b.index,!0)?.kind==="attribute")continue;let A=b[1],R=b[2];if(ml(A))continue;if(N(R,l))continue;if(R.includes("()")&&!R.includes(".get(")||R.includes("$store")||R.includes("$ref"))continue;try{let B=Object.keys(i),G=Object.values(i),M=R.match(/^([a-zA-Z_$][\w$]*)/);if(M&&!B.includes(M[1])&&!["true","false","null","undefined","Math","JSON","String","Number","Array","Object","Date","parseInt","parseFloat"].includes(M[1]))continue;let F=JSON.stringify([B,R]),H=x.get(F);if(!H){if(H=Function(...B,`return (${R})`),x.size>=y)x.clear();x.set(F,H)}let E=H(...G);if(A==="class"){let D=W(Ht(E));if(D){let O=S.match(/\sclass="([^"]*)"/);if(O)S=S.replace(O[0],()=>` class="${O[1]} ${D}"`);else S=S.replace(b[0],()=>` class="${D}"`)}else S=S.replace(b[0],"");k=!0;continue}if(Hn.has(A)){if(E)S=S.replace(b[0],` ${A}`);else S=S.replace(b[0],"");k=!0;continue}if(E===null||E===void 0||E===!1)S=S.replace(b[0],"");else{let D=w&&typeof E==="object"?JSON.stringify(E):String(E),O=xn(A,D);S=S.replace(b[0],()=>` ${A}="${O}"`)}k=!0}catch(B){if(B instanceof ie)throw B;continue}}if(k){let A=h.selfClosing?" /":"",B=`<${h.name}${S}${A}>`;u.push({start:h.start,end:h.end,replacement:B})}}if(u.length>0){let h=Array(u.length*2+1),C=0;for(let w=0;w<u.length;w++){let{start:v,end:b,replacement:S}=u[w];h[w*2]=t.slice(C,v),h[w*2+1]=S,C=b}h[u.length*2]=t.slice(C),t=h.join("")}return t}import qt from"fs";import Xt from"path";var Vt=!1;function Zn(e,i,t,o=!1,a=new Set){let c={static:{},staticNames:{},serverDynamic:{},serverDynamicNames:{},clientReactive:{},events:{}},l=new Set(Array.isArray(i.__stx_client_signal_names)?i.__stx_client_signal_names:[]),m=(h)=>{if(l.size===0)return!1;let C=r(h),w=C.match(/^\s*[!+~(-]*\s*([a-zA-Z_$][\w$]*)/)?.[1];if(w&&l.has(w))return!0;for(let v of l){let b=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`(?:^|[^\\w$.])${b}\\s*\\(`).test(C))return!0}return!1},u=new Set(hl),x=(h)=>{if(!h.includes("-")||h.startsWith("@")||h.startsWith(":")||h.startsWith("x-")||h.startsWith("__"))return h;if(h.startsWith("aria-")||h.startsWith("data-"))return h;return h.replace(/-([a-z0-9])/g,(C,w)=>w.toUpperCase())},y=(h,C)=>{let w=x(h);if(c.static[w]=C,w!==h)c.staticNames[w]=h};for(let[h,C]of Object.entries(e)){let w=h.startsWith("x-")&&!u.has(h)&&!h.startsWith("x-bind:")&&!h.startsWith("x-on:")?`:${h.slice(2)}`:h;if(w.startsWith("@")){c.events[w]=C;continue}if(w.startsWith("__stx_")){let v=x(w.slice(6));c.serverDynamic[v]=Ut(C,t);continue}if(w.startsWith(":")){let v=x(w.slice(1)),b=C===re?v:C;if(v==="if"||v==="for"||v==="show"){c.clientReactive[v]=b;continue}if(o){c.clientReactive[v]=b;continue}if(N(b,a)){c.clientReactive[v]=b;continue}if(m(b)){c.clientReactive[v]=b;continue}try{if(!f(b)){if(t.debug)console.error(`Unsafe expression in :${v} binding: ${b}`);c.clientReactive[v]=b;continue}let S=Object.keys(i),k=new Set(["true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","if","else"]),A=new Set(Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[]);if(ot(b).some((M)=>!k.has(M)&&!S.includes(M)&&(!(M in globalThis)||A.has(M)))){c.clientReactive[v]=b;continue}let G=d(b,S)(...Object.values(i));if(c.serverDynamic[v]=G,v!==w.slice(1)&&c.serverDynamicNames)c.serverDynamicNames[v]=w.slice(1)}catch{c.clientReactive[v]=b}continue}if(typeof C==="string"&&C.includes("{{")&&C.includes("}}")){let v=Gn(C,a);if(v!==null){c.clientReactive[x(w)]=v;continue}let b=C.match(/^\{\{\s*([\s\S]+?)\s*\}\}$/);if(b)try{let S=b[1];if(f(S)){let A=d(S,Object.keys(i))(...Object.values(i));y(w,A!=null?String(A):"")}else{if(t.debug)console.error(`Unsafe expression in ${w}: ${S}`);y(w,C)}}catch(S){if(t.debug)console.error(`Error evaluating expression for ${w}:`,S);y(w,C)}else{let S=C,k=/\{\{\s*([\s\S]+?)\s*\}\}/g,A;while((A=k.exec(C))!==null)try{let R=A[1];if(!f(R)){if(t.debug)console.error(`Unsafe expression in ${w}: ${R}`);continue}let G=d(R,Object.keys(i))(...Object.values(i));S=S.replace(A[0],String(G??""))}catch(R){if(t.debug)console.error(`Error evaluating expression in ${w}:`,R)}y(w,S)}continue}y(w,C===re?"true":lt(C))}return c}function Gn(e,i){if(i.size===0)return null;let t=/\{\{\s*([\s\S]+?)\s*\}\}/g,o=[...e.matchAll(t)];if(!o.some((m)=>N(m[1],i)))return null;let a=e.match(/^\{\{\s*([\s\S]+?)\s*\}\}$/);if(a&&o.length===1)return a[1];let c="",l=0;for(let m of o)c+=e.slice(l,m.index).replace(/[`\\$]/g,(u)=>`\\${u}`),c+=`\${${m[1]}}`,l=m.index+m[0].length;return c+=e.slice(l).replace(/[`\\$]/g,(m)=>`\\${m}`),`\`${c}\``}var Kn=[[/@if\s*\(/,"@endif"],[/@unless\s*\(/,"@endunless"]];function Jn(e,i,t){if(!e.includes("@"))return e;if(!Kn.some(([a,c])=>a.test(e)&&e.includes(c)))return e;try{return oe(e,i,t)}catch{return e}}function he(e){let i={},t=0,o=e.length;while(t<o){while(t<o&&/\s/.test(e[t]))t++;if(t>=o)break;let a="";while(t<o&&!/[\s=]/.test(e[t]))a+=e[t],t++;if(!a)break;while(t<o&&/\s/.test(e[t]))t++;if(t<o&&e[t]==="="){t++;while(t<o&&/\s/.test(e[t]))t++;let c="";if(t<o&&(e[t]==='"'||e[t]==="'")){let l=e[t];t++;while(t<o){let m=e[t];if(m==="\\"&&t+1<o){t++,c+=e[t],t++;continue}if(m===l){t++;break}c+=m,t++}}else if(e[t]==="{"){c=De(e,t),t+=c.length;let l=Ft(c);if(l!==null){i[`:${a}`]=l;continue}}else while(t<o&&!/\s/.test(e[t]))c+=e[t],t++;i[a]=c}else i[a]=re}return i}function Zt(e){return Object.entries(e).map(([i,t])=>t===re?i:`${i}="${Yn(t)}"`).join(" ")}function Yn(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Qn(e){let i=new Set,t=/<([A-Z][A-Za-z0-9]*|stx-[a-z0-9-]+)\b[^>]*>/g,o;while((o=t.exec(e))!==null){let a=o[1];if(de.isBuiltin(a))i.add(a)}return[...i].sort()}async function Mf(e,i,t,o,a){if(!/import\s/.test(e))return e;if(!i.__importedComponents)i.__importedComponents=new Map;let c=i.__importedComponents,l=Xt.dirname(t),m=[],u=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;for(let h of e.matchAll(u)){let[C,w,v]=h,b=/import\s+(?:(\{[^}]*\})|([A-Za-z_$][\w$]*))\s+from\s+['"]([^'"]+)['"]\s*;?\s*\n?/g,S=v,k,A=[];while((k=b.exec(v))!==null){let[R,B,G,M]=k,F=null,H=null;if(M.startsWith(".")||M.startsWith("/")){let O=Xt.resolve(l,M);if(O.endsWith(".stx"))H=O;else{let q=`${O}.stx`;try{if(qt.statSync(q).isFile())H=q}catch{try{if(qt.statSync(O).isDirectory())F=O}catch{}}}}else F=Ns(M,l);if(!F&&!H)continue;let E=!1,D=(O,q)=>{c.set(O,q),c.set(O.toLowerCase(),q);let z=O.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();c.set(z,q),a.add(q)};if(G&&H)D(G,H),E=!0;else if(B){let O=B.slice(1,-1).split(",").map((z)=>z.trim()).filter(Boolean).map((z)=>{let X=z.match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(X)return{source:X[1],local:X[2]};return{source:z,local:z}}),q=F?br(F):null;for(let{source:z,local:X}of O){let L=null;if(H)L=H;else if(q)L=q.get(z)??q.get(z.toLowerCase())??q.get(z.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())??null;if(L)D(X,L),E=!0}}if(E)A.push({start:k.index,end:k.index+R.length})}if(A.length===0)continue;for(let R=A.length-1;R>=0;R--)S=S.slice(0,A[R].start)+S.slice(A[R].end);m.push({start:h.index,end:h.index+C.length,value:`<script${w}>${S}</script>`})}if(m.length===0)return e;let x=[],y=0;for(let h of m)x.push(e.slice(y,h.start),h.value),y=h.end;return x.push(e.slice(y)),x.join("")}async function er(e,i,t,o,a){let c=e;if(!i.__importedComponents)i.__importedComponents=new Map;let l=i.__importedComponents,m=/@import\s*\(\s*([^)]+)\s*\)/g,u;while((u=m.exec(c))!==null){let[x,y]=u,h=y.split(",").map((C)=>C.trim().replace(/^['"]|['"]$/g,"")).filter((C)=>C.length>0);for(let C of h){let w=C.split("/"),b=w[w.length-1].replace(/\.stx$/,""),S=b.includes("-")?b.split("-").map((R)=>R.charAt(0).toUpperCase()+R.slice(1)).join(""):b.charAt(0).toUpperCase()+b.slice(1),k=null,A=Ms(C,t,o);for(let R of A)try{if(await Bun.file(R).exists()){k=R;break}}catch{}if(k){l.set(S,k),l.set(b,k),l.set(b.toLowerCase(),k);let R=S.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();if(l.set(R,k),a.add(k),o.debug)console.log(`Imported component: ${S} -> ${k}`)}else if(o.debug)console.warn(`Could not resolve imported component: ${C}`)}c=c.replace(x,""),m.lastIndex=0}return c}async function tr(e,i,t,o,a){let c=e,l=o.componentsDir||"components";if(!i.__processedComponents)i.__processedComponents=new Set;let m=i.__processedComponents,u=/@component\s*\(/g,x;while((x=u.exec(c))!==null){let y=x.index,h=y+x[0].length-1,C=1,w=h+1;while(w<c.length&&C>0){if(c[w]==="(")C++;else if(c[w]===")"){if(C--,C===0)break}w++}if(C!==0)break;let v=c.substring(h+1,w),b=w+1,S=v.match(/^\s*['"]([^'"]+)['"]/);if(!S){u.lastIndex=b;continue}let k=S[1],A,R=v.slice(S[0].length),B=R.match(/^\s*,\s*/);if(B)A=R.slice(B[0].length).trim();let G={};if(A)try{G=P(A,i)}catch(O){let q=O instanceof Error?O.message:String(O);c=c.replace(c.substring(y,b),`[Error parsing component props: ${q}]`);continue}let M="",F=b,E=c.substring(b).match(/^([\s\S]*?)@endcomponent/);if(E)M=E[1].trim(),F=b+E[0].length;let D=await ze(k,G,M,l,i,t,o,m,a);c=c.substring(0,y)+D+c.substring(F),u.lastIndex=0}return c}async function nr(e,i,t,o,a){if(!e)return e;let c=e,l=o.componentsDir||"components";if(!i.__processedComponents)i.__processedComponents=new Set;let m=i.__processedComponents,u=ir(c);if(u.size>0){let b=Array.isArray(i.__stx_client_declared_names)?i.__stx_client_declared_names:[];i.__stx_client_declared_names=[...new Set([...b,...u])]}let x=J(c);c=x.output;let y=st(i);return c=await v(c,/[a-z][a-z0-9]*-[a-z0-9-]*/,!1),c=await v(c,/[A-Z][a-zA-Z0-9]*/,!0,Lt(kr)),c=await v(c,/[a-z][a-z0-9]*/,!1,kr),c=x.restore(c),c;async function v(b,S,k,A){if(!b)return b;let R=b,B=zt(R,S,A),G=ut(R),M=new Map;for(let E=B.length-1;E>=0;E--){let D=B[E],O=k?U(D.tagName):D.tagName,q=he(Jn(D.attributes,i,t)),z=G.filter(({start:I,end:_})=>D.startIndex>=I&&D.startIndex<_),X=z.length>0,L=new Set(y);for(let I of z)for(let _ of I.names)L.add(_);let T=Zn(q,i,o,X,L);if(typeof T.clientReactive.for==="string")for(let I of Y(T.clientReactive.for))L.add(I);let ce=de.getBuiltin(D.tagName),$e=ce?await Er(D.tagName,l,i,t,o):!1,K=D.tagName==="Image"&&Ds([...Object.keys(T.static),...Object.keys(T.serverDynamic),...Object.keys(T.clientReactive)],Object.keys(T.events),{...T.static,...T.serverDynamic})&&(o._pluginComponentDirs??[]).some((I)=>br(I).has("Image"));if(ce&&!$e&&!K){let I={context:i,filePath:t,options:o,dependencies:a},_=ce.render(T,D.content,I);if(Object.keys(T.events).length>0){let ee=Zt(T.events);_=_.replace(/^(\s*<[a-zA-Z][a-zA-Z0-9-]*)/,`$1 ${ee}`)}if(Object.keys(T.clientReactive).length>0)_=Gt(_,T.clientReactive);M.set(E,_);continue}if(!k&&D.tagName.includes("-")&&!await Er(O,l,i,t,o))continue;let le={};for(let[I,_]of Object.entries(T.static))le[I]=_;for(let[I,_]of Object.entries(T.serverDynamic))le[I]=_;let te={declaredProps:new Set,consumedProps:new Set,reactiveProps:Object.keys(T.clientReactive),events:Object.keys(T.events)},j=await ze(O,le,x.restore(D.content),l,i,t,o,m,a,[...L],te,D.tagName);if(j=rr(j,T,te.declaredProps,te.consumedProps,o._nativeHostAttrs),o._nativeHostAttrs){let I=te.reactiveProps.filter((ne)=>!te.consumedProps.has(ne)&&!["if","for","show","key","ref"].includes(ne)).map(U),_=ft(j,!0);if(I.length&&_){if(!Object.hasOwn(he(j.slice(_.insertPos,_.tagEnd)),"data-stx-native-host-root"))j=j.slice(0,_.insertPos)+' data-stx-native-host-root="true"'+j.slice(_.insertPos);let ne=we(j);j=j.slice(0,ne.insertPos)+` data-stx-native-forward="${I.join(" ")}"`+j.slice(ne.insertPos)}let ee=ft(j,!0);if(ee){let ne=he(j.slice(ee.insertPos,ee.tagEnd)),Se=we(j),Jt=he(j.slice(Se.insertPos,Se.tagEnd));if(Object.hasOwn(ne,"data-stx-native-host-root")&&!Object.hasOwn(Jt,"data-stx-native-host-owner"))j=j.slice(0,Se.insertPos)+" data-stx-native-host-owner"+j.slice(Se.insertPos)}}if(Object.keys(T.events).length>0){let I=we(j);if(I){let _=Zt(T.events),ee=Object.keys(T.events).map((ne)=>ne.replace(/^@/,"").split(".")[0]).join(" ");j=j.substring(0,I.insertPos)+` data-stx-parent-events="${ee}" ${_}`+j.substring(I.insertPos)}}if(Object.keys(T.clientReactive).length>0)j=Gt(j,T.clientReactive);M.set(E,j)}if(M.size===0)return R;let F="",H=0;for(let E=0;E<B.length;E++){let D=M.get(E);if(D===void 0)continue;F+=R.slice(H,B[E].startIndex),F+=D,H=B[E].endIndex}return F+=R.slice(H),F}}function Gt(e,i){let t=new Set(["if","for"]),o=new Set(["show"]),a=Object.entries(i).filter(([y])=>!t.has(y)),c=a.filter(([y])=>!o.has(y)).map(([y])=>U(y)).join(" "),l=e,m=a.length>0?we(l):null;if(m){let y=a.map(([C,w])=>`:${U(C)}="${w.replace(/"/g,"&quot;")}"`).join(" "),h=c?` data-stx-parent-bindings="${c}"`:"";l=l.substring(0,m.insertPos)+`${h} ${y}`+l.substring(m.insertPos)}let u=i.if;if(u)l=`<template :if="${u.replace(/"/g,"&quot;")}">${l}</template>`;let x=i.for;if(x){let y=i.key,h=y?` :key="${y.replace(/"/g,"&quot;")}"`:"";l=`<template :for="${x.replace(/"/g,"&quot;")}"${h}>${l}</template>`}return l}function rr(e,i,t=new Set,o=new Set,a=!1){let c=ft(e,a);if(!c)return e;let l=e.slice(c.insertPos,c.tagEnd),m=i.serverDynamic.class??i.static.class;if(a&&typeof m==="string"&&m&&!o.has("class")){let v=/(^|\s)class\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i,b=v.test(l)?l.replace(v,(S,k,A,R,B)=>`${k}class="${n(`${lt(A??R??B)} ${m}`)}"`):` class="${n(m)}"${l}`;e=e.slice(0,c.insertPos)+b+e.slice(c.tagEnd),c.tagEnd+=b.length-l.length,l=b}let u=a||/\bdata-native(?:\s|=)/i.test(l),x=u?o:t,y=new Set(Object.keys(he(l))),h=new Set(["class","className"]);for(let v of Object.keys(i.static)){let b=i.staticNames[v]??v;if(y.has(b)||x.has(v)||!u&&!qe(b))h.add(v)}for(let v of Object.keys(i.serverDynamic)){let b=i.serverDynamicNames?.[v]??v;if(y.has(b)||x.has(v)||!u&&!qe(b))h.add(v)}let C=[];if(u){for(let[v,b]of Object.entries(i.static)){if(h.has(v)||b!==!0&&b!==re)continue;h.add(v),C.push(`${n(i.staticNames?.[v]??v)}="true"`)}for(let[v,b]of Object.entries(i.serverDynamic)){if(h.has(v)||b!==!0)continue;h.add(v),C.push(`${n(i.serverDynamicNames?.[v]??v)}="true"`)}}let w=[...se(i,h),...ae(i,h),...C];if(u){for(let[v,b]of Object.entries(i.serverDynamic)){if(h.has(v)||b!==!1)continue;let S=i.serverDynamicNames?.[v]??v;w.push(`${n(S)}="false"`)}for(let[v,b]of Object.entries(i.serverDynamic)){if(h.has(v)||b===null||typeof b!=="object")continue;let S=JSON.stringify(b);if(S!==void 0){let k=i.serverDynamicNames?.[v]??v;w.push(`${n(k)}="${n(S)}"`)}}}if(w.length===0)return e;return`${e.slice(0,c.insertPos)} ${w.join(" ")}${e.slice(c.insertPos)}`}function we(e){let i=Kt(e,0);if(i)return i;let t=/<([a-zA-Z][a-zA-Z0-9-]*)\b[^>]*\bdata-stx-scope(?:\s|=|>)/i.exec(e);if(t)return{insertPos:t.index+1+t[1].length,tagEnd:dt(e,t.index+1+t[1].length)};return null}function ft(e,i=!1){let t=we(e);if(!t)return null;let o=e.slice(t.insertPos,t.tagEnd),a=/\bdata-stx-component-wrapper(?:\s|=|>|$)/i.test(o)?Kt(e,t.tagEnd+1):t;return a&&i?sr(e,a)??a:a}function sr(e,i){if(!e.includes("data-stx-native-host-root"))return null;let t=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),o=e.lastIndexOf("<",i.insertPos),a=0,c;while(o>=0&&o<e.length){if(e.startsWith("<!--",o)){let y=e.indexOf("-->",o+4);if(y<0)return null;o=e.indexOf("<",y+3);continue}let l=/^<(\/?)([a-z][\w-]*)\b/i.exec(e.slice(o));if(!l){o=e.indexOf("<",o+1);continue}let m=l[2].toLowerCase(),u=o+l[0].length,x=dt(e,u);if(l[1]){if(a--,c!==void 0&&a<c)c=void 0;if(a<=0)return null}else if(m==="script"||m==="style"){let y=new RegExp(`</${m}\\s*>`,"gi");if(y.lastIndex=x+1,!y.exec(e))return null;o=e.indexOf("<",y.lastIndex);continue}else{let y=he(e.slice(u,x)),h=a>0&&(Object.hasOwn(y,"data-stx-component-wrapper")||Object.hasOwn(y,"data-stx-native-host-owner"));if(c===void 0&&!h&&Object.hasOwn(y,"data-stx-native-host-root"))return{insertPos:u,tagEnd:x};if(!t.has(m)&&e[x-1]!=="/"){if(a++,c===void 0&&h)c=a}else if(a===0)return null}o=e.indexOf("<",x+1)}return null}function Kt(e,i){let t=i;while(t<e.length){let o=e.slice(t),a=o.match(/^\s+/);if(a){t+=a[0].length;continue}if(o.startsWith("<!--")){let m=e.indexOf("-->",t+4);if(m===-1)return null;t=m+3;continue}let c=o.match(/^<(script|style)\b[^>]*>/i);if(c){let m=`</${c[1].toLowerCase()}>`,u=e.toLowerCase().indexOf(m,t+c[0].length);if(u===-1)return null;t=u+m.length;continue}let l=o.match(/^<([a-zA-Z][a-zA-Z0-9-]*)(?:\s|>|\/)/);if(!l)return null;return{insertPos:t+1+l[1].length,tagEnd:dt(e,t+1+l[1].length)}}return null}function dt(e,i){let t="";for(let o=i;o<e.length;o++){let a=e[o];if(t){if(a==="\\")o++;else if(a===t)t=""}else if(a==='"'||a==="'")t=a;else if(a===">")return o}return e.length}function ir(e){let i=new Set;for(let t of e.matchAll(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi)){let o=t[1];if(!/\bclient\b/.test(o)||/\bserver\b/.test(o))continue;for(let a of di(t[2]))i.add(a);for(let a of t[2].matchAll(/^\s*import\s+(?:type\s+)?(?:([\w$]+)\s*,?\s*)?(?:\{([^}]*)\}|\*\s+as\s+([\w$]+))?\s*from\s/gm)){if(a[1])i.add(a[1]);if(a[3])i.add(a[3]);for(let c of(a[2]??"").split(",")){let l=c.replace(/^\s*type\s+/,"").split(/\s+as\s+/).pop().trim();if(/^[A-Za-z_$][\w$]*$/.test(l))i.add(l)}}}return i}async function ds(e,i,t,o,a){if(!Vt)Tt(de),Vt=!0;let c=await Mf(e,i,t,o,a);c=await er(c,i,t,o,a),c=await tr(c,i,t,o,a);let l=[];for(let m=0;m<3;m++){let u=l.length,x=fe(c,Me,(h,C)=>`\x00STX_COMPONENT_COMMENT_${u+C}\x00`,`STX_COMPONENT_COMMENT:${u}`);l.push(...x.tokens);let y=c;if(c=await nr(x.output,i,t,o,a),c===y)break}if(l.length>0)c=c.replace(/\x00STX_COMPONENT_COMMENT_(\d+)\x00/g,(m,u)=>l[Number(u)]??"");if(o.debug){let m=Qn(c);if(m.length>0)console.warn(`[stx] ${t}: unresolved component tag(s) after render passes: ${m.join(", ")}. Check nested component output for malformed root tags or recursive component markup.`)}return c}
42
- export{jo,Bo,Fo,Nh,us,Mh,lc,Mf,ds};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ya,ba,Xl,Gl,Jl,Yl,Om}from"./chunk-s5dhvnnd.js";export{ya as createVirtualList,Om as default,Xl as generateVirtualListCSS,Jl as processInfiniteListDirectives,Yl as processVirtualGridDirectives,ba as processVirtualListDirectives,Gl as useVirtualList};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{m,hi,Kc,Xc,ug,dg,pg,fg,gg,Us,mg,Be,Z,Fe,hg,Er,yg,Yc,Zc,wi,ze,s,vn,Qc,h,ge,Zh}from"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Zc as SIGNAL_COMPOSABLE_CALL,ge as clearComponentCache,wi as componentClientSignalNames,hi as convertToCommonJS,h as createDetailedErrorMessage,gg as extractDirectiveNames,Kc as extractScriptFromTemplate,m as extractVariables,s as fileExists,Zh as getComponentCacheStats,dg as getPositionInfo,Z as getSharedTranspiler,Qc as getSourceLineInfo,fg as hasDirectives,Xc as hasVariables,yg as isHydrateTrigger,mg as isJavaScriptScript,ze as renderComponentWithSlot,vn as resolveTemplatePath,hg as scopeOnRootElement,Us as scopeSequenceKey,Be as shouldTranspileTypeScript,Yc as slotContentHasExpressions,Fe as transpileTypeScript,Er as userComponentFileExists,pg as validateDirective,ug as validateTemplate};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{im,am,cm,lm,zl,um,dm,pm,fm,gm,mm,hm}from"./chunk-f49x34sr.js";export{mm as Broadcast,hm as BroadcastServer,zl as broadcast,fm as broadcastPresence,pm as broadcastPrivate,gm as channel,im as getBroadcastServer,lm as loadChannels,am as startBroadcasting,cm as stopBroadcasting,um as toUser,dm as toUsers};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{aa,tm,ca,nm,Bl,Fl,rm,sm}from"./chunk-3y9jtfzr.js";import"./chunk-8z1p3mag.js";import"./chunk-vkynagtn.js";import"./chunk-02kycznh.js";import"./chunk-tx8wk6h7.js";import"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{It,eg}from"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{aa as buildScriptVirtualFile,tm as buildVirtualSource,It as extractScriptBlocks,eg as extractTemplateExpressions,Bl as findRuntimeTypeDeclarations,Fl as findStxModuleDeclarations,sm as formatTypecheckDiagnostics,nm as sourcePathFor,rm as typecheckStxFiles,ca as virtualPathFor};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{uo,na,Ur,po,fo,Pn,Xt,ra,Wr,qr,go,mo,Zg,Qg,ft}from"./chunk-n4qznmkm.js";export{ft as DeployError,na as calculateSha1,Ur as collectDeployFiles,qr as createDefaultNetlifyConfig,po as createFileManifest,uo as createNetlifyClient,Zg as deploy,Wr as detectProjectConfig,fo as filterRequiredFiles,Pn as formatSize,ra as generateNetlifyToml,Xt as getTotalSize,mo as hasNetlifyConfig,Qg as initNetlify,go as writeNetlifyConfig};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ta,$a,Ra,Aa,Ch}from"./chunk-q3pw43jm.js";import"./chunk-c9vxm8yq.js";import"./chunk-sz88tmbm.js";import"./chunk-s53wjw7y.js";import"./chunk-rj68w7em.js";import"./chunk-yeg4cahs.js";import"./chunk-205gzszh.js";import"./chunk-s33andzg.js";import"./chunk-chcvz6y7.js";import"./chunk-mjf4naae.js";import"./chunk-ykyf7513.js";import"./chunk-3bjnrmha.js";import"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-ra967vfn.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Ta as buildNative,Ch as default,$a as findCraftBinary,Aa as getAvailableFormats,Ra as getAvailableTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Uf,Zo}from"./chunk-gh62p9mx.js";export{Uf as looksLikeGlob,Zo as resolveStxTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{to,Vt,_l,Rg}from"./chunk-yw1s8kyj.js";export{to as generateServiceWorker,Rg as generateServiceWorkerAuto,Vt as getServiceWorkerFileName,_l as isWorkboxEnabled};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Dh,gs,Wo,ms,ar,qo,Ko,jf,hs,ys,bs,Xo,uc,Bf,vt}from"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{V}from"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{jf as bindLoopInterpolations,Dh as clearScriptScanCache,hs as convertServerLoopAttributesToDirectives,qo as convertSignalDirectivesToAttributes,ys as convertSignalLoopsToAttributes,ar as extractClientSignalNames,V as extractExports,uc as findMarkupIndexOutsideScripts,ms as hasSignalsSyntax,Wo as parseLoopExpression,Ko as preEvalLiteralReactiveIfs,bs as processScriptSetup,Xo as processSignals,Bf as rewriteStxImportSpecifiers,gs as scanScriptTags,vt as stripStxRuntimeImports};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{vo,ph,fh}from"./chunk-8z1p3mag.js";import"./chunk-vkynagtn.js";import"./chunk-02kycznh.js";import"./chunk-tx8wk6h7.js";import"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{fh as clearComposableCache,ph as getComposableScript,vo as listComposableModules};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ei,ti,ni,ri,Cs,Es,qh,Kh,Xh,Gh,Ts,Jh}from"./chunk-ms3v5nat.js";import"./chunk-txd2js5v.js";export{Jh as generateDefaultRobotsTxt,Ts as generateRobotsTxt,Kh as generateSitemap,Xh as generateSitemapIndex,ri as injectSeoTags,Cs as metaDirective,ei as processMetaDirectives,ni as processSeoDirective,ti as processStructuredData,qh as registerSeoDirectives,Gh as scanForSitemapEntries,Es as structuredDataDirective};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Gg}from"./chunk-dc0cde6n.js";import"./chunk-rj68w7em.js";import"./chunk-yeg4cahs.js";import"./chunk-205gzszh.js";import"./chunk-s33andzg.js";import"./chunk-chcvz6y7.js";import"./chunk-mjf4naae.js";import"./chunk-ykyf7513.js";import"./chunk-3bjnrmha.js";import"./chunk-q14j0wsq.js";import"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-ra967vfn.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Gg as startInteractive};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Pl,sa,Il,Ol,oa,Nl,Ml,Dl,Ll,ia,jl,em}from"./chunk-55e46spy.js";import{ma,Hl}from"./chunk-xtqapjz3.js";import{ee,te,ne,Dn,he,$e,Xr,mt,Gt,Ln,jn,Bn,re,Fn,zn,Gr}from"./chunk-nmtya57z.js";import{Kl}from"./chunk-vyv76w55.js";import"./chunk-s53wjw7y.js";export{te as DEFAULT_FORMATS,ne as DEFAULT_QUALITY,ee as DEFAULT_WIDTHS,Gr as ImageProcessingError,Ol as clearImageCache,oa as createImageDirective,Hl as createImageHandler,Ml as createImagePlugin,em as defaultImageConfig,zn as formatSize,ia as generateImageManifest,Gt as generateSizes,mt as generateSrcSet,Ln as getFallbackVariant,Xr as getImageMetadata,re as getMimeType,Fn as getTotalSize,jn as groupVariantsByFormat,ma as handleImageRequest,Nl as imageDirective,he as isImageBackendAvailable,Bn as isImageFile,Dn as isSharpAvailable,Ll as optimizeDirectory,Dl as optimizeImage,sa as parseImageComponent,$e as processImage,Il as processImageComponents,Pl as renderImageComponent,Kl as rewriteImagesWithSiblings,jl as writeImageManifest};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{F,Vf,Yo,a,O,Uh,Wh}from"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{O as config,F as defaultConfig,Uh as defineStxConfig,Yo as discoverConfig,a as loadStxConfig,Vf as resolveStxDirectories,Wh as validateConfig};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xm,Sm,km,_m,Cm}from"./chunk-z25w7kmr.js";export{Sm as defineAsyncComponent,_m as generateAsyncComponentCSS,Cm as generateAsyncComponentRuntime,km as isAsyncComponent,xm as processAsyncDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xe,Ws,bg,Qh,wg,ey,Dt,p,W,Q,xn,ke,vg,xi,xg,ty,_,Sg,ny,R,ry}from"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Sg as applyFilters,ey as clearCustomFilters,vg as clientLoopScopes,Ws as defaultFilters,xn as escapeAttributeValue,p as escapeHtml,W as escapeHtmlValue,Q as escapeInterpolatedHtmlValue,R as evaluateExpression,xe as findMustacheEnd,wg as getAllFilters,xg as interpolateScriptAttributes,xi as interpolateScriptExpressions,ty as interpolateScriptsInTemplate,_ as processExpressions,bg as registerFilter,Qh as registerFilters,Dt as replaceInterpolations,ny as resetRejectedExpressionWarnings,ry as unescapeHtml,ke as usesSignalsInScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ih,Nf,Ye,cc,Oh,as,cs,ls}from"./chunk-205gzszh.js";import"./chunk-chcvz6y7.js";import"./chunk-mjf4naae.js";import"./chunk-3bjnrmha.js";import"./chunk-ya6bp08c.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{Oh as clearOnceStore,cc as onceStore,Ye as partialsCache,as as processIncludes,cs as processStackPushDirectives,ls as processStackReplacements,Ih as resetUnscopedSignalWarnings,Nf as topLevelElements};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{eo,Oi,Eg,Tg,$g}from"./chunk-z0ynyz62.js";import"./chunk-yw1s8kyj.js";export{Tg as generateManifestLink,eo as generatePwaTags,Eg as generateSwRegistrationScript,$g as generateThemeColorMeta,Oi as injectPwaTags};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{W}from"./chunk-af50ebx1.js";function n(t){return W(t)}
3
- export{n};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{Xe,se,Za}from"./chunk-s53wjw7y.js";import v from"fs";import g from"path";import V from"crypto";import{generatePlaceholder as T,processImage as L}from"ts-images";var ee=[320,640,768,1024,1280,1536,1920],te=["webp","jpeg"],ne=80,D=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],U={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},I=null,M=!1;async function d(){if(M)return I;M=!0;try{let t=await import("sharp");return I=t.default||t,I}catch{return null}}async function Dn(){return await d()!==null}async function he(){return!0}async function $e(t,e={}){let{widths:a=ee,formats:r=te,quality:n=ne,fit:c="cover",placeholder:i="none",outputDir:m=".stx/images",baseUrl:s="/images"}=e,h,l;if(typeof t==="string"){if(l=t,!await Bun.file(t).exists())throw new Gr(`Image not found: ${t}`,"NOT_FOUND");h=await Bun.file(t).arrayBuffer().then((o)=>Buffer.from(o))}else l="buffer-input",h=t;let b=V.createHash("sha256").update(h).digest("hex").slice(0,12),j=await Xr(h),{width:u,height:x}=j,F=u/x;await v.promises.mkdir(m,{recursive:!0});let B=[],A=g.basename(l,g.extname(l)),f=a.filter((o)=>o<=u);if(!f.includes(u)&&u<=Math.max(...a))f.push(u);f.sort((o,p)=>o-p);for(let o of f){let p=Math.round(o/F);for(let w of r){let S=`${A}-${o}w-${b}.${w}`,P=g.join(m,S),q=`${s}/${S}`,E=await ql(h,{width:o,height:p,format:w,quality:n,fit:c});await Bun.write(P,E),B.push({path:P,url:q,width:o,height:p,format:w,size:E.length})}}let y;if(i!=="none")y=await k(h,i);return{src:l,variants:B,placeholder:y,width:u,height:x,aspectRatio:F,hash:b}}async function Xr(t){let e=typeof t==="string"?Buffer.from(await Bun.file(t).arrayBuffer()):t,a=await d();if(a){let n=await a(e).metadata();return{width:n.width||0,height:n.height||0,format:n.format||"unknown",hasAlpha:n.hasAlpha}}return R(e)}function R(t){if(t[0]===137&&t[1]===80&&t[2]===78&&t[3]===71){let e=t.readUInt32BE(16),a=t.readUInt32BE(20);return{width:e,height:a,format:"png",hasAlpha:!0}}if(t[0]===255&&t[1]===216){let e=2;while(e<t.length){if(t[e]!==255)break;let a=t[e+1];if(a>=192&&a<=207&&a!==196&&a!==200&&a!==204){let n=t.readUInt16BE(e+5);return{width:t.readUInt16BE(e+7),height:n,format:"jpeg",hasAlpha:!1}}let r=t.readUInt16BE(e+2);e+=2+r}}if(t.toString("utf8",0,4)==="RIFF"&&t.toString("utf8",8,12)==="WEBP"){let e=t.toString("utf8",12,16);if(e==="VP8 "){let a=t.readUInt16LE(26)&16383,r=t.readUInt16LE(28)&16383;return{width:a,height:r,format:"webp",hasAlpha:!1}}if(e==="VP8L"){let a=t.readUInt32LE(21),r=(a&16383)+1,n=(a>>14&16383)+1;return{width:r,height:n,format:"webp",hasAlpha:!0}}}if(t.toString("utf8",0,3)==="GIF"){let e=t.readUInt16LE(6),a=t.readUInt16LE(8);return{width:e,height:a,format:"gif",hasAlpha:!0}}throw new Gr("Unable to parse image dimensions","PARSE_ERROR")}async function ql(t,e){let a=await d();if(a){let r=a(t).resize(e.width,e.height,{fit:e.fit});switch(e.format){case"webp":r=r.webp({quality:e.quality});break;case"avif":r=r.avif({quality:e.quality});break;case"jpeg":r=r.jpeg({quality:e.quality});break;case"png":r=r.png({quality:e.quality});break}return r.toBuffer()}return await Za("img",async(r)=>{let n=g.join(r,`out.${e.format}`);return await L({input:t,output:n,format:e.format,quality:e.quality,resize:{width:e.width,height:e.height,fit:e.fit}}),Buffer.from(await Bun.file(n).arrayBuffer())})}async function k(t,e){let a=await d();if(e==="blur"&&a){let m=(await a(t).resize(20).blur(10).toBuffer()).toString("base64"),s=await Xr(t);return`data:${U[s.format]||"image/jpeg"};base64,${m}`}if(e==="dominant-color"&&a){let{dominant:i}=await a(t).resize(1,1).toBuffer().then(async(m)=>{let s=await a(m).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${i.r}, ${i.g}, ${i.b})`}let r=await Xr(t),n=Xe("ph"),c=g.join(n,`in.${r.format==="unknown"?"bin":r.format}`);try{await Bun.write(c,t);let i=e==="blur"?"blur":e==="thumbhash"?"thumbhash":"dominant-color",s=await T(c,{strategy:i,width:i==="thumbhash"?void 0:32});if(e==="dominant-color"&&s.dominantColor)return s.dominantColor;if(s.dataURL)return s.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{se(n)}}function mt(t,e){return(e?t.filter((r)=>r.format===e):t).sort((r,n)=>r.width-n.width).map((r)=>`${r.url} ${r.width}w`).join(", ")}function Gt(t){if(!t||Object.keys(t).length===0)return"100vw";return Object.entries(t).sort((a,r)=>{let n=Number.parseInt(a[0].replace(/\D/g,""))||0;return(Number.parseInt(r[0].replace(/\D/g,""))||0)-n}).map(([a,r])=>`(max-width: ${a}) ${r}`).join(", ")+", 100vw"}function Ln(t){let e=t.filter((r)=>r.format==="jpeg");if(e.length===0)return t[Math.floor(t.length/2)];let a=e.sort((r,n)=>r.width-n.width);return a[Math.floor(a.length/2)]}function jn(t){let e=new Map;for(let a of t){let r=e.get(a.format)||[];r.push(a),e.set(a.format,r)}return e}function Bn(t){let e=g.extname(t).toLowerCase();return D.includes(e)}function re(t){return U[t]||"application/octet-stream"}function Fn(t){return t.reduce((e,a)=>e+a.size,0)}function zn(t){if(t<1024)return`${t} B`;if(t<1048576)return`${(t/1024).toFixed(1)} KB`;return`${(t/1048576).toFixed(2)} MB`}class Gr extends Error{code;constructor(t,e){super(t);this.name="ImageProcessingError",this.code=e}}
3
- export{ee,te,ne,Dn,he,$e,Xr,ql,mt,Gt,Ln,jn,Bn,re,Fn,zn,Gr};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{hu,Co,Gn,yu,bu,wu,vu,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Mu,Du,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd,sd,od,id,ad,Yt,Pa,cd,ld,ud,Ia,dd,pd,fd,gd,md,hd,Oa,yd,bd,wd,vd,xd,Sd,kd,_d,Cd,Jn,Ed,Td,$d,Rd,Ad,Pd,Id,Od,Nd,Md,Dd,Ld,Eo,jd,Bd,Fd,zd,Hd,es,ts,Vd,Ud,Wd,qd,Kd,Na,Xd,Gd,Jd,Ma,To,Yd,Zd,Da,La,ns,ja,Qd,Zt,ep,Ba,Fa,$o,tp,Ro,np,rp,sp,op,ip,ap,cp,za,lp,up,Ha,dp,pp,fp,gp,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Pp,Ip,Op,Np,Va,Mp,Dp,Lp,jp,Bp,Fp,zp,Hp,Vp,Up,Wp,Yn,Ua,Wa,qp,Zn,Kp,Xp,Gp,qa,Ka,rs,ss,Jp,Ao,Yp,Zp,Qp,ef,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,gf,mf,hf,yf,Xa,bf,wf,Ga,Ja,vf,xf}from"./chunk-c9vxm8yq.js";export{id as AVAILABLE_COMPONENTS,Na as AutoUpdater,ad as COMPONENT_STYLES,rs as DEFAULT_WATCH_INTERVAL_MS,Ka as MAX_WATCH_INTERVAL_MS,qa as MIN_WATCH_INTERVAL_MS,hd as MODAL_STYLES,Cu as TOAST_STYLES,kd as TRAY_MENU_STYLES,Da as UPDATE_MANIFEST_ASSET,pd as alert,Pp as appInfo,nf as appleScript,xf as applicationDataDirectory,tf as audio,wf as backgroundDelay,Tp as battery,ef as biometric,Up as bluetooth,cf as bonjour,Zt as bundlePathForExecutable,tp as caffeinate,Xd as canReplaceBundle,Gd as clearQuarantine,bp as clipboard,md as closeAllModals,Ld as closeAllWindows,dd as confirm,Np as contextMenu,gf as continuityCamera,ff as coreml,qd as craftBinaryNotFoundMessage,Eo as craftWindowArguments,Yn as crashReporter,Xu as createAccordion,zu as createAutocomplete,Iu as createAvatar,Pu as createBadge,Eu as createButton,Ou as createCard,td as createChart,$u as createCheckbox,Uu as createChip,nd as createCodeEditor,ju as createColorPicker,ed as createDataGrid,Bu as createDatePicker,ts as createDiskImage,Mu as createDropdown,sd as createFileExplorer,Qd as createGitHubUpdateManifest,ja as createGitHubUpdater,Vu as createImageView,gp as createInterval,Hu as createLabel,Yu as createListView,rd as createMediaPlayer,yd as createMenubar,Ju as createModalComponent,vf as createNativeUpdateApi,Ja as createPantrySelfUpdater,ip as createPreferences,Au as createProgressBar,Lu as createRadioButton,Du as createRating,qu as createScrollView,$o as createSelfUpdater,Ru as createSlider,Ku as createSplitView,Gu as createStepper,Oa as createSystemTray,Zu as createTable,Nu as createTabs,Tu as createTextInput,Fu as createTimePicker,fp as createTimer,Wu as createTooltip,Qu as createTreeView,od as createWebView,jd as createWindow,Fd as createWindowWithHTML,Ro as decaffeinate,Ep as deepLinks,mp as delay,Su as dismissAlertById,ku as dismissAllAlerts,_p as dragOut,Jd as extractBundle,rf as fileAssociations,Ao as focus,Zp as focusShortcutsReady,yp as formatCompact,op as formatDuration,sp as formatRemainingTime,lp as formatShortcut,hp as formatTime,vp as fs,Ma as generateUpdateManifest,_u as getActiveAlertCount,gd as getActiveModalCount,bd as getActiveTrayInstances,Md as getActiveWindowIds,rp as getCaffeinateStatus,yf as getCapabilities,Xa as getCapability,Od as getDesktopConfig,Pd as getDialogBridgeScript,pp as getRegisteredHotkeys,xd as getSimulatedTrayHTML,Sd as getTrayBridgeScript,wd as getTrayInstance,Dd as getWindow,Hd as getWindowBridgeScript,La as githubLatestAssetUrl,ns as githubReleaseAssetUrl,Sp as globalShortcuts,Zn as handoff,Yp as hasFocusShortcuts,qp as iap,cp as isAutoLaunchEnabled,bf as isAvailable,np as isCaffeinated,Cp as isDragOutAvailable,zd as isWebviewAvailable,Lp as keychain,Kp as liveActivities,Qp as localServer,Xp as location,af as log,Vd as macOSRuntimeExecutablePath,Op as menu,pf as midi,Fp as nativeAutoLaunch,zp as nativeTray,Hp as nativeWindow,$p as network,wp as notifications,xu as notify,Bd as openDevWindow,Ud as pack,Wd as packageApp,Ga as parsePantryUpdateManifest,za as parseShortcut,of as pdf,jp as permissions,Bp as printing,fd as prompt,Ba as quitLauncher,To as readBundleIdentity,Ua as redactPII,up as registerHotkey,Fa as relaunchBundle,hu as requestNotificationPermission,Nd as resetDesktopConfig,Kd as resolveCraftBinary,es as resolveCraftExecutablePath,ep as runningBundleTeamId,Dp as screen,Gp as screenCapture,ss as screenSharing,hf as serial,mf as serviceMenu,ap as setAutoLaunch,Id as setDesktopConfig,xp as shell,Co as showAlert,Td as showAlertDialog,Ed as showColorPicker,$d as showConfirmDialog,Rd as showErrorDialog,ld as showErrorModal,vu as showErrorToast,Pa as showInfoModal,yu as showInfoToast,Jn as showMessageBox,Yt as showModal,_d as showOpenDialog,Ia as showQuestionModal,Cd as showSaveDialog,ud as showSuccessModal,bu as showSuccessToast,Gn as showToast,Ad as showWarningDialog,cd as showWarningModal,wu as showWarningToast,Va as sidebar,Wa as signPayload,Wp as speech,uf as speechRecognition,lf as spotlight,Ip as standardMenus,Yd as swapBundle,Mp as system,sf as tags,kp as theme,Vp as touchbar,vd as triggerTrayAction,dp as unregisterAllHotkeys,Ha as unregisterHotkey,Rp as updater,Zd as verifyBundleTrust,df as vision,Jp as watchScreenSharing,Ap as windowEvents};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Zl,Ql,eu,tu,nu,ru,su,ou,iu,au,Nm}from"./chunk-7k9yahng.js";export{Zl as createIslandRegistry,Nm as default,au as generateIslandManifest,eu as generatePartialHydrationCSS,ru as hydrateAll,nu as hydrateByStrategy,tu as hydrateIsland,su as isHydrated,ou as onHydrated,Ql as processPartialHydrationDirectives,iu as processStaticDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Rf,ic,Rh,ac,Af,Pf,ln,ir,Ah,If,Of,Ph,b}from"./chunk-yeg4cahs.js";import"./chunk-ra967vfn.js";import"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{ln as buildCss,If as extractClassNames,Pf as fingerprintConfig,Of as generateCss,Ah as getCachedCSS,Rf as getCssServeAsset,b as injectCss,ic as loadCssEngine,ac as loadCssEngineConfig,ir as rebuildCss,Rh as resetCssCache,Af as resolveUserCssConfig,Ph as withLinkedModuleBundles};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{rr,i}from"./chunk-rj68w7em.js";import"./chunk-yeg4cahs.js";import"./chunk-205gzszh.js";import"./chunk-s33andzg.js";import"./chunk-chcvz6y7.js";import"./chunk-mjf4naae.js";import"./chunk-ykyf7513.js";import"./chunk-3bjnrmha.js";import"./chunk-q14j0wsq.js";import{ve}from"./chunk-ztkd6mxj.js";import"./chunk-ya6bp08c.js";import"./chunk-ra967vfn.js";import"./chunk-7y78ffds.js";import"./chunk-8q7ah3ct.js";import"./chunk-gh62p9mx.js";import"./chunk-amg6kr1p.js";import"./chunk-ms3v5nat.js";import"./chunk-29f6vmyz.js";import{Ne,Hs,Vs}from"./chunk-af50ebx1.js";import"./chunk-3r65z9vs.js";import"./chunk-vfj9wp11.js";import"./chunk-txd2js5v.js";import"./chunk-s6r54dyf.js";import"./chunk-4ntm3dtk.js";export{rr as buildModulesTag,ve as injectRouterScript,i as processDirectives,Hs as processJsonDirective,Vs as processOnceDirective,Ne as validateClientScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{I,$n}from"./chunk-s6r54dyf.js";export{$n as stripModuleImports,I as transformStoreImports};